1 2004-04-03 Roger Sayle <roger@eyesopen.com>
3 * fold-const.c (fold) <PLUS_EXPR>: Guard (-A)+B -> B-A transformation
4 with reorder_operands_p.
6 2004-04-03 Jan Hubicka <jh@suse.cz>
8 * md.texi (vec_set, vec_extract, vec_init): Document.
10 2004-04-02 Gabor Loki <loki@inf.u-szeged.hu>
12 * opts.c (decode_options): Do function inlining with very small
13 max-inline-insns-* parameters when optimizing for size.
15 2004-04-02 Vladimir Makarov <vmakarov@redhat.com>
17 * config/i386/i386.h (TARGET_NOCONA): New macro.
18 (TARGET_CPU_CPP_BUILTINS): Add code for Nocona.
19 (processor_type): Add PROCESSOR_NOCONA.
21 * config/i386/i386.md (cpu): Add nocona to the attribute values.
23 * config/i386/i386.c (nocona_cost): New variable.
24 (m_NOCONA): New macro.
25 (x86_push_memory, x86_movx, x86_cmove, x86_deep_branch,
26 x86_branch_hints, x86_use_sahf, x86_single_stringop,
27 x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8,
28 x86_integer_DFmode_moves, x86_partial_reg_dependency,
29 x86_memory_mismatch_stall, x86_accumulate_outgoing_args,
30 x86_decompose_lea, x86_arch_always_fancy_math_387,
31 x86_sse_partial_reg_dependency, x86_sse_load0_by_pxor,
32 x86_ext_80387_constants, x86_four_jump_limit):
33 (override_options): Add nocona_cost to processor_target_table.
34 Set up PROCESSOR_NOCONA for Nocona entry in processor_alias_table.
35 (incdec_operand): Prevent inc/dec generation for Nocona too.
36 (ix86_issue_rate): Add PROCESSOR_NOCONA.
38 2004-04-01 Andrew Pinski <pinskia@physics.uc.edu>
40 * rtlanal.c (find_reg_note): Manually
43 2004-04-01 Mark Mitchell <mark@codesourcery.com>
45 * genemit.c (gen_split): Change prototype of generated code.
46 * genrecog.c (write_action): Adjust prototype for and calls to
48 * gensupport.c (struct queue_elem): Add split field.
49 (queue_pattern): Return a value. Clear the split field.
50 (process_rtx): Maintain an association between an insn and the
51 split generated from it for a define_insn_and_split.
52 (process_one_cond_exec): Generate a new split for a
53 define_insn_and_split.
54 * config/arm/arm-protos.h (arm_split_constant): Add insn
56 (emit_constant_insn): New function.
57 (arm_gen_constant): Use it.
58 * config/arm/arm.md: Adjust calls to arm_split_constant.
60 2004-04-02 Jan Hubicka <jh@suse.cz>
62 * cgraph.c: Add overall comment.
63 (cgraph_inline_hash): New global variable.
64 (cgraph_create_node): Break out from ...
65 (cgraph_node): ... here.
66 (cgraph_edge): New function.
67 (cgraph_create_edge): New CALL_EXPR argument; some sanity checking.
68 (cgraph_remove_edge): Accept edge, intead of source and destination.
69 (cgraph_redirect_edge_callee): New.
70 (cgraph_remove_node): Update all new datastructures.
71 (cgraph_record_call, cgraph_remove_call): Kill.
72 (dump_cgraph_node): Break out from ... ; dump new datastructures.
73 (dump_cgraph): ... here.
74 (cgraph_function_possibly_inlined_p): Use new hashtable.
75 (cgraph_clone_edge, cgraph_clone_node): New.
76 * cgraph.h: Include hashtab.h
77 (struct cgraph_global_info): Kill cloned_times, inline_once, will_be_output
78 fields, add inlined_to pointer.
79 (cgraph_node): Add pointer to next_clone.
80 (cgraph_remove_edge, cgraph_create_edge): Update prototype.
81 (cgraph_remove_call, cgraph_record_call): Kill.
82 (cgraph_inline_hash): Declare.
83 (dump_cgraph_node, cgraph_edge, cg4raph_clone_edge, cgraph_clone_node,
84 cgraph_redirect_edge_callee): Declare.
85 (cgraph_create_edges, cgraph_inline_p): Update prorotype.
86 (cgraph_preserve_function_body_p, verify_cgraph, verify_cgraph_node,
87 cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Declare.
88 * cgraphunit.c: Add overall comment.
89 (cgraph_optimize_function): Kill.
90 (cgraph_assemble_pending_functions): Do not assemble inline clones.
91 (cgraph_finalize_function): Update call of cgraph_remove_node
92 (record_call_1): Record call sites.
93 (cgraph_create_edges): Accept node instead of decl argument.
94 (error_found): New static variable.
95 (verify_cgraph_node_1, verify_cgraph_node, verify_cgraph): New functions.
96 (cgraph_analyze_function): Update for new datastructures.
97 (cgraph_finalize_compilation_unit): Plug memory leak.
98 (cgraph_optimize_function): Kill.
99 (cgraph_expand_function): Do not use cgraph_optimize_function.
100 (INLINED_TIMES, SET_INLINED_TIMES, cgraph_inlined_into,
101 cgraph_inlined_callees): Kill.
102 (cgraph_remove_unreachable_nodes): Verify cgraph; update handling of
104 (estimate_growth): Simplify.
105 (cgraph_clone_inlined_nodes): New function.
106 (cgraph_mark_inline_edge): Re-implement.
107 (cgraph_mark_inline): Likewise.
108 (cgraph_check_inline_limits): Simplify.
109 (cgraph_recursive_inlining_p): New.
110 (update_callee_keys): Break out from ...
111 (cgraph_decide_inlining_of_small_functions): ... here; simplify.
112 (cgraph_decide_inlining, cgraph_decide_inlining_incrementally):
114 (cgraph_expand_all_functions): Remove inline clones from the ordered
116 (cgraph_preserve_function_body_p): New predicate.
117 (cgraph_optimize): Verify cgraph.
118 * function.h (struct function): Add fields saved_tree/saved_args.
119 * timevar.def (TV_CGRAPH_VERIFY): Use verifier.
120 * toplev.c (rest_of_compilation): Do not free cfun.
121 * tree-inline.c: Include function.h
122 (struct inline_data): Add saving_p field; replace decl/current_decl by
124 (insert_decl_map): New function.
125 (copy_body_r): Handle saving; update cgraph datastructure.
126 (copy_body): Handle recursive inlining.
127 (initialize_inlined_parameters): Likewise.
128 (expand_call_inline): Propagate node attributes; update cgraph.
129 (optimize_inline_calls): Verify that datastructure still match.
130 (save_body): New function.
131 * tree-inline.h (save_body): New.
132 * tree-optimize.c (tree_rest_of_compilation): preserve function body; do inlining.
133 * langhooks-def.c (LANG_HOOKS_UPDATE_DECL_AFTER_SAVING): New.
134 * langhooks.c (lang_hooks): Add update_decl_after_saving.
136 2004-04-01 Serge Belyshev <1319@bot.ru>
139 * config/i386/i386.md: fix source operand constraints in
140 mmx_pshufw, sse2_pshufd, sse2_pshuflw, sse2_pshufhw
142 2004-04-01 Waldek Hebisch <hebisch@math.uni.wroc.pl>
144 * fold-const.c (folda): Preserve types of comparisons.
146 2004-04-01 Richard Henderson <rth@redhat.com>
148 * toplev.c (backend_init): Move init_optimization_passes call ...
149 (lang_dependent_init): ... here.
151 2004-04-01 Alan Modra <amodra@bigpond.net.au>
152 Jakub Jelinek <jakub@redhat.com>
154 * gcc.c (init_gcc_specs): If HAVE_LD_AS_NEEDED, link with
155 -lgcc --as-needed -lgcc_s --no-as-needed by default.
156 * configure.ac (HAVE_LD_AS_NEEDED): Check for ld --as-needed.
157 * configure: Rebuilt.
158 * config.in: Rebuilt.
159 * Makefile.in (stage1-start): Copy also libgcc_s*$(SHLIB_EXT).
160 (stage2-start, stage3-start, stage4-start): Likewise.
161 (stageprofile-start, stagefeedback-start): Likewise.
163 2004-04-01 Jakub Jelinek <jakub@redhat.com>
165 * config/sparc/sparc.h (DITF_CONVERSION_LIBFUNCS): Define to 0.
166 * config/sparc/linux.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
167 * config/sparc/linux64.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
168 * config/sparc/sol2.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
169 (SOLARIS_CONVERSION_LIBFUNCS): Rename to SUN_CONVERSION_LIBFUNCS.
170 * config/sparc/sparc.c (sparc_init_libfuncs): Initialize optabs
171 with _Q_qtoll, _Q_qtoull and _Q_lltoq if DITF_CONVERSION_LIBFUNCS.
172 * config.gcc (sparc-*-linux*): Revert 2004-03-23 change.
173 * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Likewise.
174 * config/sparc/t-linux: Removed.
176 2004-04-01 Jakub Jelinek <jakub@redhat.com>
179 * fold-const.c (fold) <EQ_EXPR>: Properly compute newconst in
180 "bitfld++ == const" to "++bitfld == const + incr" transformations.
182 2004-04-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
184 * expr.c (get_inner_reference): Use DECL_UNSIGNED, not TREE_UNSIGNED.
185 * stor-layout.c (layout_decl): Likewise.
186 * tree.c (get_narrower): Likewise and also use BIT_FIELD_REF_UNSIGNED.
187 * fold-const.c (make_bit_field_ref): Use BIT_FIELD_REF_UNSIGNED.
188 * print-tree.c (print_node): Handle various used of unsigned_flag.
189 * tree.def (BIT_FIELD_REF): Update comment.
190 * tree.h (TREE_UNSIGNED): Deleted.
191 (DECL_UNSIGNED, BIT_FIELD_REF_UNSIGNED): New macros.
193 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
195 * builtins.c, c-aux-info.c, c-common.c, c-cppbuiltin.c, c-decl.c:
196 Change most occurrences of TREE_UNSIGNED to TYPE_UNSIGNED.
197 * c-format.c, c-opts.c, c-pretty-print.c, c-typeck.c: Likewise.
198 * calls.c, convert.c, dbxout.c, dojump.c, dwarf2out.c: Likewise.
199 * expmed.c, expr.c, fold-const.c, function.c, integrate.c: Likewise.
200 * optabs.c, sdbout.c, stmt.c, stor-layout.c, tree-dump.c: Likewise.
201 * tree.c, config/iq2000/iq2000.c, config/m32r/m32r.c: Likewise.
202 * config/mips/mips.c, config/rs6000/rs6000.c: Likewise.
203 * config/s390/s390.c, config/sparc/sparc.c, objc/objc-act.c: Likewise.
204 * stor-layout.c (layout_type, case COMPLEX_TYPE): Test for
205 REAL_TYPE, not INTEGER_TYPE.
206 (layout_type, case VECTOR_TYPE): Simplify code.
207 * tree.c (build_vector_type_for_mode): Remove dup unsigned setting.
208 * tree.h: Update comments.
209 (STRIP_NOPS): Use TYPE_UNSIGNED.
210 (TYPE_UNSIGNED): New macro.
211 (TYPE_TRAP_SIGNED): Remove now redundant check.
212 (SAVE_EXPR_NOPLACEHOLDER): Don't use TREE_UNSIGNED.
214 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
216 * function.c (put_var_into_stack): Properly set orig_reg for indirect.
218 2004-03-31 Andrew Pinski <pinskia@physics.uc.edu>
220 * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA):
221 Add darwin-fpsave.asm, darwin-vecsave.asm,
222 and darwin-world.asm.
223 (TARGET_LIBGCC2_CFLAGS): Add -Wa,-force_cpusubtype_ALL
224 as the asm files contain altivec instructions.
225 * config/rs6000/darwin-fpsave.asm: New file.
226 * config/rs6000/darwin-vecsave.asm: New file.
227 * config/rs6000/darwin-world.asm: New file.
229 2004-03-31 Zack Weinberg <zack@codesourcery.com>
231 * gengtype-yacc.y (option, stringseq): Add missing
232 terminating semicolon.
234 2004-03-30 David Edelsohn <edelsohn@gnu.org>
236 * config/rs6000/rs6000.md (tls_gd_32, tls_gd_64,
237 tls_ld_32, tls_ld_64, tls_dtprel_32, tls_dtprel_64,
238 tls_dtprel_ha_32, tls_dtprel_ha_64,
239 tls_dtprel_lo_32, tls_dtprel_lo_64,
240 tls_got_dtprel_64, tls_tprel_32, tls_tprel_64,
241 tls_tprel_ha_32, tls_tprel_ha_64,
242 tls_tprel_lo_32, tls_tprel_lo_64,
243 tls_got_tprel_32, tls_got_tprel_64,
244 tls_tls_32, tls_tls_64): Replace register_operand with
247 2004-03-30 Mostafa Hagog <mustafa@il.ibm.com>
249 * config/rs6000/rs6000.md (*ctrsi_internal1, *ctrsi_internal2,
250 *ctrdi_internal1, *ctrdi_internal2, *ctrsi_internal3,
251 *ctrsi_internal4, *ctrdi_internal3, *ctrdi_internal4,
252 *ctrsi_internal5, *ctrsi_internal6, *ctrdi_internal5,
253 *ctrdi_internal6): Replace register_operand with
254 nonimmediate_operand.
256 2004-03-29 Fariborz Jahanian <fjahanian@apple.com>
258 * fold-const.c (fold): Reassociate multiply expression
259 with an adjacent non-multiply expression to use
260 architecture's multiply-add instruction.
262 2004-03-30 Zack Weinberg <zack@codesourcery.com>
264 * gengtype.c (create_option): New function.
265 * gengtype.h: Prototype it.
266 * gengtype-yacc.y (stringseq): New rule.
267 (option): Use create_option. Add new bare ID production. Use
268 stringseq, not STRING directly.
270 * alias.c, bitmap.c, c-decl.c, cgraph.h, cpplib.h, cselib.h
271 * dwarf2out.c, emit-rtl.c, function.h, lists.c, tree.h
272 * varray.h, config/alpha/alpha.c:
273 Use new shorter form of GTY markers.
275 * doc/gty.texi: Rewrite.
277 2004-03-30 Andrew Pinski <pinskia@physics.uc.edu>
279 * config/darwin.c (machopic_function_base_name):
280 Remove current_name and getting the name of the
283 2004-03-30 Nick Clifton <nickc@redhat.com>
285 * config/arm/arm.md (thumb_jump): Reduce the backward branch
286 range, and increase the forward branch range, to allow for
287 the fact that the PC will be off by 4.
289 2004-03-30 Alan Modra <amodra@bigpond.net.au>
291 * .cvsignore: Add GPATH, GRTAGS, GSYMS and GTAGS (GNU GLOBAL)
293 2004-03-30 Hartmut Penner <hpenner@de.ibm.com>
295 * config/rs6000/rs6000.c (output_vec_const_move):
296 Find all cases of EASY_VECTOR_15_ADD_SELF.
297 (easy_vector_constant_add_self): Accept
298 all vector constant loadable by vsplt* and vadd*.
299 (easy_vector_same): Use easy_vector_splat_const.
300 (easy_vector_const): Use easy_vector_splat_const.
301 (easy_vector_splat_const): New function.
302 (gen_easy_vector_constant_add_self): New function.
304 * config/rs6000/rs6000-protos.c (gen_easy_vector_constant_add_self):
307 * config/rs6000/altivec.md (movv4si splitter): Change to
308 emit move insn with halfed vector constant.
309 (*movv8hi splitter): Likewise.
310 (*movv16qi splitter): Likewise.
312 2004-03-30 Hartmut Penner <hpenner@de.ibm.com>
315 * config/rs6000/rs6000.c (rs6000_legitimate_address):
316 Allow any offset to argument pointer in no-strict case.
318 2004-03-30 Jan Hubicka <jh@suse.cz>
320 * toplev.c (backend_init): Add missing call to inint_optimization_passes.
321 * passes.c (init_optimization_passes, finish_optimization_passes): Output cgraph
322 dump file in non-unit-at-a-time mode.
324 2004-03-29 Hans-Peter Nilsson <hp@axis.com>
326 * config/cris/cris.h: Correct #ifdef to test for
327 HAVE_AS_NO_MUL_BUG_ABORT_OPTION, not
328 HAVE_AS_MUL_BUG_ABORT_OPTION.
330 2004-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
332 * function.c (put_var_into_stack): If old RTL was ADDRESSOF, update
333 the address inside the old RTL.
335 2004-03-28 Zack Weinberg <zack@codesourcery.com>
337 * c-decl.c: Verify that C_SIZEOF_STRUCT_LANG_IDENTIFIER is correct.
338 (struct c_binding, struct c_scope): Add chain_next
339 attributes to GTY markers.
340 (struct lang_identifier, struct lang_tree_node): Define
342 * c-tree.h: ... not here. No longer need to declare struct
343 c_binding either. Do define C_SIZEOF_STRUCT_LANG_IDENTIFIER.
344 * c-lang.c, objc/objc-lang.c: Set LANG_HOOKS_IDENTIFIER_SIZE
345 to C_SIZEOF_STRUCT_LANG_IDENTIFIER.
348 * c-decl.c (get_parm_info): If error_mark_node is encountered
349 in the bindings chain, unbind and discard it; don't abort.
351 2004-03-28 Olga Golovonevsky <olga@il.ibm.com>
352 Dorit Naishlos <dorit@il.ibm.com>
354 * config/rs6000/altivec.md: (andvv16qi3, andv8hi3, one_cmplv16qi2,
355 one_cmplv8hi2, one_cmplv4si2, iorv16qi3, iorv8hi3,): New modelling.
357 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
359 * config/m68hc11/m68hc11-protos.h (m68hc11_page0_symbol_p): Declare.
361 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute): New.
362 (m68hc11_attribute_table): New attribute "page0" to mark a global
363 variable as being allocated from within page0 section.
364 (m68hc11_encode_label): New function.
365 (m68hc11_strip_name_encoding): New function.
366 (m68hc11_page0_symbol_p): New function.
367 (m68hc11_indirect_p): Accept global variables marked in page0.
368 (m68hc11_encode_section_info): Lookup "page0" attribute.
370 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): 'R' constraint also
371 represents access to page0 variables.
373 * config/m68hc11/m68hc11.md ("*logicalsi3_zexthi"): Use gen_rtx_REG.
374 ("*logicalsi3_silshl16_zext"): Likewise.
375 ("*ashldi3_const32"): Likewise.
376 (peephole2 ashift): Likewise.
378 2004-03-28 Joseph S. Myers <jsm@polyomino.org.uk>
380 * c-tree.h (C_DECL_REGISTER): New.
381 * c-aux-info.c (gen_decl), c-decl.c (objc_mark_locals_volatile,
382 finish_decl, grokdeclarator, get_parm_info), c-typeck.c
383 (build_array_ref, c_mark_addressable): Set and use it.
384 * c-decl.c (grokdeclarator), c-typeck.c (c_mark_addressable):
385 Allow structures with volatile fields to be declared register.
386 Don't check TREE_ADDRESSABLE before warning about taking address
388 * c-decl.c (finish_decl): Don't allow structures with volatile
389 fields to be placed in named register.
390 * doc/trouble.texi: Remove reference to structures with volatile
393 2004-03-27 Ulrich Weigand <uweigand@de.ibm.com>
395 * function.c (thread_prologue_and_epilogue): Move
396 NOTE_INSN_FUNCTION_END and NOTE_INSN_FUNCTION_BEG notes
399 2004-03-27 Ulrich Weigand <uweigand@de.ibm.com>
401 * expr.c (store_constructor): Use gen_int_mode to correctly
402 sign-extend CONST_INT value.
404 2004-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
406 * builtin-types.def (BT_WINT, BT_FN_INT_WINT, BT_FN_WINT_WINT): New.
407 * builtins.def (DEF_C94_BUILTIN): New. Add wctype builtins.
408 * doc/extend.texi: Likewise.
410 2004-03-26 Diego Novillo <dnovillo@redhat.com>
412 * c-typeck.c (comptypes): Replace calls to TYPE_DOMAIN
413 with TYPE_ORIG_SIZE_TYPE.
415 2004-03-25 Aldy Hernandez <aldyh@redhat.com>
418 * c-typeck.c (build_binary_op): Do not allow comparisons of
421 2004-03-26 James A. Morrison <ja2morri@uwaterloo.ca>
423 * config.gcc: Remove sparc-tti-*.
424 * config/sparc/pbd.h: Delete.
426 * config/sparc/sol2.h: Remove note about Sun OS 4.x.
427 * config/sparc/aout.h: Likewise.
429 * config/sparc/sparc.h: Remove if 0'd code.
430 * config/sparc/sparc.md (call): Remove if 0'd code.
431 (call_value): Likewise.
432 (nonlocal_goto): Likewise.
433 (unimp_insn): Delete.
435 2004-03-25 Roger Sayle <roger@eyesopen.com>
437 * fold-const.c (tree_expr_nonnegative_p): Handle BIT_XOR_EXPR like
438 BIT_IOR_EXPR; A^B is nonnegative when A and B are nonnegative.
440 2004-03-25 Richard Henderson <rth@redhat.com>
443 * c-typeck.c (pop_init_level): Emit pending init elements earlier
446 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
448 * builtins.c (fold_builtin): Fix error in last change.
450 2004-03-25 Richard Sandiford <rsandifo@redhat.com>
452 * config/mips/mips.h: Formatting fix.
454 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
456 * builtins.def: Add ctype builtins.
457 * doc/extend.texi: Likewise.
459 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
461 * builtins.c (fold_builtin): Add new builtin optimizations for
463 * fold-const.c (fold): Likewise.
465 2004-03-25 David Edelsohn <edelsohn@gnu.org>
467 * config/rs6000/rs6000.c (rs6000_always_hint): New variable.
468 (rs6000_sched_groups): New variable.
469 (processor_target_table): Add power5.
470 (rs6000_override_options): Set rs6000_sched_insert_nops,
471 rs6000_sched_costly_dep and rs6000_sched_restricted_insns_priority
472 from rs6000_sched_groups.
473 (output_cbranch): Use rs6000_always_hint.
474 (rs6000_variable_issue): Use rs6000_sched_groups.
475 (rs6000_adjust_cost): Add CPU_POWER5.
476 (is_microcoded_insn): Use rs6000_sched_groups.
477 (is_dispatch_slot_restricted): Use rs6000_sched_groups.
478 Return 2 for POWER5 cracked instructions.
479 (is_cracked_insn): Use rs6000_sched_groups.
480 (is_branch_slot_insn): Use rs6000_sched_groups.
481 (rs6000_issue_rate): Add CPU_POWER5.
482 (rs6000_sched_finish): Use rs6000_sched_groups.
483 (rs6000_rtx_costs): Add PROCESSOR_POWER5.
484 * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_POWER5.
485 (DEFAULT_SCHED_COSTLY_DEP): Delete.
486 (DEFAULT_RESTRICTED_INSNS_PRIORITY): Delete.
487 (DEFAULT_SCHED_FINISH_NOP_INSERTION_SCHEME): Delete.
488 * config/rs6000/rs6000.md (define_attr "cpu"): Add power5.
489 * config/rs6000/power5.md: New file.
490 * doc/invoke.texi: Add power5 option.
492 2004-03-25 Kazu Hirata <kazu@cs.umass.edu>
494 * cfgrtl.c, dbxout.c, tree.def, config/darwin.h,
495 config/arm/arm.c, objc/objc-act.c: Fix comment typos.
496 * doc/invoke.texi: Fix a typo.
498 2004-03-25 Kazu Hirata <kazu@cs.umass.edu>
500 PR optimization/9707.
501 * stmt.c (emit_case_nodes): Emit equality comparisons instead
502 of recursing if both children are single-valued cases with no
505 2004-03-25 Paul Brook <paul@codesourcery.com>
507 * config/arm/arm.c (vfp_print_multi): Remove.
508 (arm_output_fldmx): New function.
509 (vfp_emit_fstmx): Return block size, not insn. Add ARM10 VFPr1 bugfix.
510 (arm_expand_prologue): Update to match.
511 (arm_get_vfp_saved_size): New Function.
512 (arm_get_frame_offsets): Use it.
513 (arm_output_epilogue): Use new functions.
515 2004-03-24 Richard Henderson <rth@redhat.com>
517 * alias.c (alias_invariant, alias_invariant_size): Mark GTY.
518 (reg_known_value, reg_known_value_size): Likewise; make static.
519 (reg_known_equiv_p): Make static.
520 (clear_reg_alias_info): Update for new indexing.
521 (get_reg_known_value, set_reg_known_value): New.
522 (get_reg_known_equiv_p, set_reg_known_equiv_p): New.
523 (canon_rtx): Use them.
524 (init_alias_analysis): Likewise. Allocate reg_known_value with gc.
525 Don't play queer offsetting games with reg_known_value and
527 (end_alias_analysis): Free reg_known_value with gc.
528 * rtl.h (get_reg_known_value, get_reg_known_equiv_p): Declare.
529 * sched-deps.c (reg_known_equiv_p, reg_known_value): Remove.
530 (deps_may_trap_p, sched_analyze_1, sched_analyze_2): Use the new
533 2004-03-24 Kazu Hirata <kazu@cs.umass.edu>
535 * dwarf2asm.c, loop.h, pretty-print.c, pretty-print.h,
536 config/i386/mmintrin.h: Update copyright.
538 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
540 * configure.ac: Add --enable-werror-always (for top level bootstrap
542 * configure: Regenerate.
544 2004-03-24 Ziemowit Laski <zlaski@apple.com>
546 * objc/objc-act.c (objc_comptypes): Treat comparisons
547 between 'Class' and '<class> *' as explicitly invalid.
549 2004-03-24 David Edelsohn <edelsohn@gnu.org>
551 * doc/invoke.texi (-frename-registers: Add enabled at -O3.
552 (-fprofile-values): Add enabled with profile-{generate,use}.
554 (-ftracer): Add enabled with profile-use.
555 (-funit-at-a-time): Add enabled at -O2,-O3.
556 (-funroll-loops): Add enabled with profile-use.
557 (-funswitch-loops): Add enabled with profile-use. Remove duplicates.
558 (max-gcse-passes): Mention default.
559 (max-cse-path-length): Mention default.
561 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
563 * Makefile.in (STRICT2_WARN): Reorder.
564 * configure.ac: Check for -Wold-style-definition, and use it
565 in strict1_warn if it's available.
566 * configure: Regnerate.
568 2004-03-24 Paul Brook <paul@nowt.org>
570 * config.gcc <arm>: Add --with-abi=
571 * config/arm/arm-protos.h (arm_get_frame_size, thumb_get_frame_size,
572 thumb_far_jump_used): Remove prototypes.
573 (arm_needs_doubleword_align): Add prototype.
574 (thumb_compute_initial_elimination_offset): Ditto.
575 * config/arm/arm.c (arm_get_frame_offsets): New function.
576 (use_return_insn, output_return_instruction, arm_output_epilogue,
577 arm_output_function_epilogue, arm_compute_initial_elimination_offset,
578 arm_expand_prologue, thumb_expand_epilogue): Use it.
579 (arm_abi, target_abi_name, all_arm_abis): New variables.
580 (arm_override_options): Set them. Set structure padding for AAPCS.
581 (arm_return_in_memory): Update ABI check.
582 (arm_init_cumulative_args): Initialize can_split.
583 (arm_needs_doubleword_align): New function.
584 (arm_function_arg): Don't split args after pushing to stack. Handle
585 doubleword/even reg alignment.
586 (arm_va_arg): Handle all doubleword aligned args.
587 (add_minpoolforward ref, dump_minpool, push_minpool_fix): Align based
589 (arm_compute_save_reg0_reg12_mask): Fix comment.
590 (thumb_get_frame_size, thumb_get_frame_size): Remove.
591 (thumb_jump_far_used_p): Remove superfluous argument. Return save
593 (thumb_unexpanded_epilogue, thumb_output_function_prologue): Change
595 (thumb_compute_initial_elimination_offset): New function.
596 (thumb_expand_prologue): Use arm_get_frame_offsets. Remove
597 unneccessary rounding.
598 * config/arm/arm.h (target_abi_name): Declare.
599 (ARM_DOUBLEWORD_ALIGN, DOUBLEWORD_ALIGNMENT, TARGET_IWMMXT_ABI,
600 arm_abi_type, ARM_DEFAULT_ABI): Define.
601 (ARM_FLAG_ATPCS): Remove.
602 (TARGET_OPTIONS, OPTION_DEFAULT_SPECS): Add -mabi=.
603 (BIGGEST_ALIGNMENT, PREFERRED_STACK_BOUNDARY, STACK_BOUNDARY): Use it.
604 (ADJUST_FIELD_ALIGN, DATA_ALIGNMENT, LOCAL_ALIGNMENT,
605 TYPE_NEEDS_IWMMXT_ALIGNMENT): Remove.
606 (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P, FUNCTION_ARG_REGNO_P):
607 Contitionalize on ABI, not CPU.
608 (struct arm_stack_offsets): Define.
609 (struct machine_function): Add stack_offsets. Remove frame_size.
610 (FUNCTION_ARG_PARTIAL_NREGS): Don't split if previous args have been
612 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_BOUNDARY): Handle general
613 doubleword alignment.
614 (THUMB_INITIAL_ELIMINATION_OFFSET,
615 ARM_INITIAL_ELIMINATION_OFFSET): Remove.
616 (INITIAL_ELIMINATION_OFFSET): Call functions directly.
617 * config/arm/arm.md (align_8): Enable for all targets.
618 * config/arm/netbsd-elf.h (TARGET_DEFAULT): Remove TARGET_ATPCS.
619 (ARM_DEFAULT_ABI): Define.
620 * doc/invoke.texi <ARM>: Document -mabi=. Update documentation for
621 -mstructure-size-boundary.
623 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
625 * configure.ac: Check for -Wno-variadic-macros; don't use
626 -pedantic (in stage 1 or a simple 'make all') unless it's available,
627 and if it's available, use it. Also, clean up check for
629 * configure: Regenerate.
631 2004-03-24 Richard Sandiford <rsandifo@redhat.com>
633 * config.gcc (mips64vr-*-elf*, mips64vrel-*-elf*): Remove tm_defines.
634 * config/mips/vr.h (DEFAULT_VR_ARCH): New macro, defined to vr4130.
635 (MULTILIB_DEFAULTS): Use it.
636 (MIPS_CPU_STRING_DEFAULT): Remove.
637 (MIPS_ABI_DEFAULT, MIPS_MARCH_CONTROLS_SOFT_FLOAT): Define.
638 (DRIVER_SELF_SPECS): Make -mfix-vr4122-bugs imply -march=vr4120. Make
639 EABI64 -mlong32 the default ABI. Enforce the default architecture.
640 * config/mips/t-vr (MULTILIB_OPTIONS): Add mfix-vr4122-bugs,
641 march=vr4130, march=vr4300, march=vr5000 and march=vr5500.
642 (MULTILIB_MATCHES): Use -mfix-vr4122-bugs multilibs for -march=vr4120.
643 (MULTILIB_EXCEPTIONS): Change choice of multilibs. Update comments
646 2004-03-24 DJ Delorie <dj@redhat.com>
647 Richard Sandiford <rsandifo@redhat.com>
649 * config/mips/mips.h (MASK_FIX_VR4122, TARGET_FIX_VR4122): New macros.
650 (TARGET_SWITCHES): Add -mfix-vr4122-bugs and -mno-fix-vr4122-bugs.
651 (ASM_SPEC): Pass down -mfix-vr4122-bugs.
652 * config/mips/mips.c (mips_avoid_hazards): Don't emit whole functions
653 in .set noreorder and .set nomacro if TARGET_FIX_VR4122.
654 (mips_init_libfuncs): Use special functions for divsi3 and modsi3
655 if TARGET_FIX_VR4122.
656 * config/mips/mips.md (define_attr length): Account for nops inserted
657 after macc and dmult when using -mfix-vr4122-bugs.
658 (umuldi3_highpart, divmodsi4, divmoddi4): Disable if TARGET_FIX_VR4122.
659 * config/mips/t-vr (LIB2FUNCS_STATIC_EXTRA): Define instead of
660 LIB2FUNCS_EXTRA. Add config/mips/vr4122-div.S.
661 * config/mips/vr4122-div.S: New file.
662 * doc/invoke.texi: Document -mfix-vr4122-bugs.
664 2004-03-24 Richard Sandiford <rsandifo@redhat.com>
666 * config/mips/mips.h (PROCESSOR_R4130): New processor_type.
667 (TARGET_MIPS4130): New macro.
668 (ISA_HAS_MACC): Return true if TARGET_MIPS4130 && !TARGET_MIPS16.
669 * config/mips/mips.c (mips_cpu_info_table): Add a vr4130 entry.
670 (override_options): Extend MIPS_MARCH_CONTROLS_SOFT_FLOAT to deal
671 with PROCESSOR_R4130.
672 * config/mips/mips.md (define_attr cpu): Add r4130.
673 * doc/invoke.texi: Document vr4130 as a supported MIPS architecture.
675 2004-03-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
676 Richard Sandiford <rsandifo@redhat.com>
678 * doc/invoke.texi: Apply missed hunk from 2004-03-03 change.
680 2004-03-24 Alexandre Oliva <aoliva@redhat.com>
682 PR preprocessor/14438
683 * cpplib.c (do_pragma): Remove line_change call after pragma
686 2004-03-23 Ian Lance Taylor <ian@wasabisystems.com>
688 * doc/extend.texi (ARM Built-in Functions): Replace with correct
691 2004-03-23 Roger Sayle <roger@eyesopen.com>
693 * reg-stack.c (get_true_reg): Handle FLOAT_TRUNCATE like FLOAT_EXTEND
694 if flag_unsafe_math_optimizations.
695 * config/i386/i386.md (truncdfsf2): If flag_unsafe_math_optimizations
696 and TARGET_80387 expand using truncdfsf2_noop pattern.
697 (truncxfsf2): Likewise using truncxfsf2_noop.
698 (truncxfdf2): Likewise using truncxfdf2_noop.
699 (truncdfsf2_noop, truncxfsf2_noop, truncxfdf2_noop): New patterns.
701 2004-03-23 Ziemowit Laski <zlaski@apple.com>
703 * hooks.c (hook_constcharptr_tree_null): New hook.
704 * hooks.h (hook_constcharptr_tree_null): New prototype.
705 * target-def.h (TARGET_MANGLE_FUNDAMENTAL_TYPE): New target hook.
706 * target.h (mangle_fundamental_type): New target hook.
707 * config/rs6000/rs6000.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Point
708 target hook at rs6000_mangle_fundamental_type.
709 (rs6000_mangle_fundamental_type): New function.
710 * doc/tm.texi (TARGET_MANGLE_FUNDAMENTAL_TYPE): Document.
712 2004-03-23 Zack Weinberg <zack@codesourcery.com>
714 PR 12267, 12391, 12560, 13129, 14114, 14133
715 * c-tree.h: Forward declare struct c_binding. Declare
716 c_override_bindings_to_false. Update prototypes.
717 (struct lang_identifier): Update comments. Change fields to be
719 (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE)
720 (IDENTIFIER_LABEL_VALUE, C_DECL_INVISIBLE)
721 (KEEP_NO, KEEP_YES, KEEP_MAYBE): Delete.
722 (C_DECL_IN_EXTERNAL_SCOPE, C_DECL_DECLARED_BUILTIN): New.
723 * c-common.h: Update prototypes.
724 * c-decl.c (struct c_scope): Update commentary. Remove names,
725 names_last, parms, parms_last, tags, and shadowed fields. Add
726 bindings and depth fields.
727 (scope_freelist): Move to more appropriate location.
728 (c_print_identifier): Update for changes to struct lang_identifier.
729 (objc_mark_locals_volatile): Update for new bindings structures.
730 (global_bindings_p): Honor c_override_global_bindings_to_false.
731 (pushlevel): Rename to push_scope; take no arguments; use the
732 scope_freelist; initialize scope->depth and check for overflow.
733 (poplevel): Rename to pop_scope; totally rewritten for new bindings
735 (diagnose_mismatched_decls): Use C_DECL_DECLARED_BUILTIN, not
736 C_DECL_INVISIBLE, for certain decisions. Adjust some diagnostics.
737 Improve some commentary. Adjust handling of forward parm decls.
738 (merge_decls): Set C_DECL_DECLARED_BUILTIN when appropriate.
739 Preserve C_DECL_IN_EXTERNAL_SCOPE.
740 (warn_if_shadowing): Correct indentation. Improve diagnostics.
741 (pushdecl): Remove unnecessary assertion. Short-circuit anonymous
742 decls. Rewrite for new bindings structures. Improve commentary.
743 Eliminate the copy_node call.
744 (implicit_decl_warning): Use the "diag" idiom (as seen in
745 locate_old_decl) to reduce code duplication; call locate_old_decl
746 if appropriate. Relocate to remove need for forward declaration.
747 (implicitly_declare): Adjust for new bindings structures. Kludge
748 around Objective-C not-really-builtin functions.
749 (undeclared_variable): Improve diagnostics. If current_function_decl
750 is nonnull but current_function_scope is null, use current_scope.
752 (lookup_tag): Adjust for new bindings structures. Kludge around
753 Objective-C's tag declarations that wind up in the external scope.
754 (lookup_name): Adjust for new bindings structures. Kludge around
755 c-common.c's pseudo-typedefs that wind up in the external scope.
756 (lookup_name_current_level): Rename lookup_name_in_scope; take a
757 second argument indicating the scope to examine; rewrite for
758 new bindings structures.
759 (c_init_decl_processing): Adjust for renamed functions. Do not
760 initialize current_file_decl, first_builtin_decl, last_builtin_decl.
761 First scope pushed is the external scope, not the global scope.
762 (builtin_function): Use bind, not pushdecl. Adjust other bits
763 for new data structures. Keep track of builtins that should be
764 made visible automatically.
765 (start_decl): Adjust diagnostics. Remove unnecessary call to
767 (grokparms): Return 0 if arg_types is error_mark_node.
768 (get_parm_info): Rename "void_at_end" argument to "ellipsis", with
769 reversed sense. Rewrite for new bindings structures. Do not
770 leave any decls in the scope, to prevent pop_scope from doing
771 contradictory things with them.
772 (finish_struct, finish_enum): Remove redundant diagnostics.
773 (build_enumerator): Don't cascade diagnostics for error_mark_node.
774 Mark location where -pedantic changes the meaning of the program.
775 (store_parm_decls_newstyle, store_parm_decls_oldstyle): Load the
776 parameter decls into the function's scope structure using bind.
777 Warn here about function definitions in the wrong style.
779 (store_parm_decls): Correct the determination of whether a
780 function was defined with a prototype.
781 (c_write_global_declarations): Operate on all file decls and on
782 the external scope. Split body of the loop to...
783 (c_write_global_declarations_1): ... this new function, to avoid
785 (truly_local_externals, first_builtin_decl, last_builtin_decl)
786 (make_scope, pop_scope, in_parm_level_p, set_block)
787 (any_external_decl, record_external_decl, bind_label, getdecls)
788 (link_hash_hash, link_hash_eq, merge_translation_unit_decls)
789 (c_reset_state): Delete.
790 (visible_builtins, c_override_global_bindings_to_false)
791 (c_binding, I_SYMBOL_BINDING, I_SYMBOL_DECL, I_TAG_BINDING)
792 (I_TAG_DECL, I_LABEL_BINDING, I_LABEL_DECL, file_scope)
793 (external_scope, binding_freelist, bind, free_binding_and_advance)
794 (push_file_scope, pop_file_scope): New.
795 (pushtag, pushdecl_top_level, lookup_label, declare_label)
796 (define_label, c_make_fname_decl, finish_decl)
797 (mark_forward_parm_decls, build_compound_literal)
798 (grokdeclarator, start_function, check_for_loop_decls)
799 (identifier_global_value, record_builtin_type): Minor adjustments
800 for new bindings structures. Improve diagnostics and commentary.
801 * c-objc-common.c (start_cdtor, finish_cdtor): Adjust calls to
802 pushlevel/poplevel respectively.
803 (c_objc_common_finish_file): Don't call merge_translation_unit_decls.
804 * c-opts.c (c_common_parse_file): Remove spurious ATTRIBUTE_UNUSED.
805 Warn about YYDEBUG not being defined only if -dy. Remove no-longer-
806 correct loop over multiple translation units; call fatal_error if
807 requested to compile more than one file at once. (This disables
808 IMA temporarily - an up-front error being preferable to a crash.)
809 * c-parse.in (pushlevel, poplevel rules): Rename push_scope, pop_scope.
810 (all actions): Adjust calls to pushlevel/poplevel.
811 (parsing_iso_function_signature): Delete.
812 (extdef_1): Fold into extdef.
813 (old_style_parm_decls_1): Fold into old_style_parm_decls. Don't
814 warn here about function definitions in the wrong style.
815 (after_tyle_declarator, parm_declarator_starttypename)
816 (parm_declarator_nostarttypename, notype_declarator): Remove
817 commented-out productions.
818 (parmlist_1, parmlist_2): Use make_node, not tree_cons, to create
819 an empty TREE_LIST node. Adjust calls to get_parm_info.
820 (parmlist_2 : ELLIPSIS): Tag the arg-info block with error_mark_node
821 to suppress -Wold-style-definition after this error.
822 (c_parse_file): Don't clear the binding stack or call
823 finish_fname_decls here. Correct comment.
824 * c-typeck.c (same_translation_unit_p): Export.
825 (common_type): Use c_override_global_bindings_to_false, not
826 pushlevel/poplevel/declare_parm_level.
827 * c-lang.c: Override LANG_HOOKS_CLEAR_BINDING_STACK,
828 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK,
829 and LANG_HOOKS_GETDECLS with do-nothing stubs.
830 * objc/objc-lang.c: Likewise.
831 * objc/objc-act.c: Adjust all calls to pushlevel, poplevel,
833 (OBJC_VOID_AT_END): Delete; replace all uses
835 (generate_forward_declaration_to_string_table): Delete.
836 * objc/objc-act.h (OCTI_STRG_DECL, UOBJC_STRINGS_decl): Delete.
838 * coverage.c (create_coverage): Don't pushdecl anything.
839 * langhooks.c (lhd_clear_binding_stack): Call
840 lang_hooks.decls.poplevel, not poplevel.
841 * tree.c (list_length): If ENABLE_TREE_CHECKING, abort on a
842 circular list rather than going into an infinite loop.
844 2004-03-23 Olivier Hainque <hainque@act-europe.fr>
846 * optabs.c (expand_binop): When synthesizing double word rotates
847 from single word shifts, use a new register target if the provided
848 target is not a REG already.
850 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
852 * alias.c (get_alias_set): Add support for TYPE_REF_CAN_ALIAS_ALL.
853 * c-common.c (handle_mode_attribute): Add extra arg to
854 build_pointer_type_for_mode and build_reference_type_for_mode.
855 * c-typeck.c (build_c_cast): Only look at TREE_CONSTANT_OVERFLOW
857 * tree.c (build_pointer_type_for_mode): Add arg CAN_ALIAS_ALL.
858 Chain pointers via TYPE_NEXT_PTR_TO.
859 (build_reference_type_for_mode): Similarly.
860 (build_type_no_quals): Add extra arg to build_pointer_type_for_mode
861 and build_reference_type_for_mode.
862 (tree_check4_failed): New function.
863 * tree.h (TREE_CHECK4, PTR_OR_REF_CHECK): New macros.
864 (TYPE_REF_CAN_ALIAS_ALL, TYPE_NEXT_PTR_TO, TYPE_NEXT_REF_TO): Likewise.
865 (TREE_NO_UNSUED_WARNING, TREE_VIA_VIRTUAL, TREE_CONSTANT_OVERFLOW):
868 2004-03-23 Roger Sayle <roger@eyesopen.com>
870 * fold-const.c (tree_expr_nonnegative_p): A&B is nonnegative when
871 A is nonnegative or B is nonnegative. Similarly A|B is nonnegative
872 when both A and B are nonnegative.
873 (tree_expr_nonzero_p): A|B is nonzero when A is nonzero or B is
876 2004-03-23 Kazu Hirata <kazu@cs.umass.edu>
878 * fold-const.c (fold): Remove cases for INTEGER_CST, REAL_CST,
879 VECTOR_CST, STRING_CST, COMPLEX_CST, and CONSTRUCTOR.
881 2004-03-23 Kazu Hirata <kazu@cs.umass.edu>
883 PR optimization/14669
884 * fold-const.c (fold): Only unwiden integer comparisons for equality
885 and inequality operators, or when the signedness doesn't change.
887 2004-03-23 Jakub Jelinek <jakub@redhat.com>
889 * config.gcc (sparc-*-linux*): Add sparc/t-linux to tmake_file.
890 * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Set.
891 * config/sparc/t-linux: New file.
893 2004-03-23 Richard Sandiford <rsandifo@redhat.com>
895 * gcse.c (can_assign_to_reg_p): New function, split out from...
896 (want_to_gcse_p): ...here.
897 (compute_ld_motion_mems): Use can_assign_to_reg_p to validate
900 2004-03-22 Diego Novillo <dnovillo@redhat.com>
902 * c-typeck.c (same_translation_unit_p): Fix pasto.
904 2004-03-22 David Edelsohn <edelsohn@gnu.org>
906 * params.def (PARAM_MAX_SCHED_REGION_BLOCKS): New.
907 (PARAM_MAX_SCHED_REGION_INSNS): New.
908 * sched-rgn.c: Include params.h
909 (MAX_RGN_BLOCKS): Delete.
910 (MAX_RGN_INSNS): Delete.
911 (too_large): Return bool. Convert to PARAM_VALUE.
912 * Makefile.in (sched-rgn.o): Depend on $(PARAMS_H).
913 * doc/invoke.texi (param): Document max-sched-region-blocks and
914 max-sched-region-insns.
916 2004-03-22 Joel Brobecker <brobecker@gnat.com>
918 * dwarf2out.c (is_subrange_type): Do not emit a subrange_type DIE
921 2004-03-22 Joel Brobecker <brobecker@gnat.com>
923 * dwarf2out.c (is_subrange_type): Minor code rework. No behavior
926 2004-03-22 Jakub Jelinek <jakub@redhat.com>
929 * c-decl.c (finish_struct): Change type of incorrect flexible array
930 field into error_mark_node.
932 2004-03-22 Andrew Pinski <pinskia@physics.uc.edu>
935 * config/rs6000/rs6000.c (symbol_ref_operand): Reject symbols
936 who are not local for Darwin PIC.
938 2004-03-22 Ulrich Weigand <uweigand@de.ibm.com>
940 * regrename.c (regrename_optimize): Set regs_ever_live for all
941 registers introduced as replacement.
943 2004-03-22 Eric Botcazou <ebotcazou@libertysurf.fr>
946 * expr.c (mark_queue): New function.
947 (emit_insns_enqueued_after_mark): New function replacing
948 emit_queue. Clear the body of emitted queued insns.
949 (emit_queue): Call emit_insns_enqueued_after_mark.
950 (store_expr): Mark the increment queue on entry. Emit
951 only the incrementations queued when expanding the source.
953 2004-03-22 Nathanael Nerode <neroden@gcc.gnu.org>
955 * configure.ac: Allow --disable-coverage-flags (for the future benefit
956 of top level bootstrap, and consistency). Reindent.
957 * configure: Regenerate.
959 2004-03-21 Kazu Hirata <kazu@cs.umass.edu>
961 * bt-load.c, builtins.c, cfghooks.c, cfgrtl.c, gcse.c,
962 ggc-page.c, integrate.c, var-tracking.c, web.c: Remove
965 2004-03-22 Danny Smith <dannysmith@users.sourceforge.net>
968 * gcov-io.h (gcov_truncate): Define ftruncate as _chsize for
971 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
973 * config/s390/s390.md ("*doloop_si"): Change predicate for operand 2
974 to nonimmediate_operand.
975 ("*doloop_di"): Likewise.
977 2004-03-21 Alexandre Oliva <aoliva@redhat.com>
979 * real.h (struct real_value): Use the same type for all
980 bitfields. Rename exp to uexp.
981 (REAL_EXP, SET_REAL_EXP): New accessor macros for uexp.
982 Adjust all uses of exp...
983 * builtins.c: ... here, ...
984 * emit-rtl.c: ... here, and ...
985 * real.c: ... and here.
987 2004-03-21 Gabriel Dos Reis <gdr@integrable-solutions.net>
989 * pretty-print.c (pp_base_maybe_space): New function.
990 * pretty-print.h (pp_base_maybe_space): Declare.
991 (pp_maybe_space): New macro.
993 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
995 * config/s390/s390.md ("addti3", "subti3"): New insns and splitters.
997 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
999 * expmed.c (choose_mult_variant): Pass MULT_COST as argument instead
1000 of using register multiplication cost.
1001 (expand_mult): Adapt choose_mult_variant call.
1002 (expand_mult_highpart): Call choose_mult_variant with WIDER_MODE
1003 of MODE; pass appropriate cost bound. Adjust result when
1004 performing signed multiplication by a negative constant.
1005 Don't use intermediate modes larger than word_mode.
1007 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1009 * alias.c (get_alias_set): Remove handling of PLACEHOLDER_EXPR.
1010 * emit-rtl.c (component_ref_for_mem_expr): Likewise.
1011 (set_mem_attributes_minus_bitpos): Call SUBSTITUTE_PLACEHOLDER_IN_EXPR.
1012 * explow.c (expr_size): Likewise.
1013 * expr.h (placeholder_list, find_placeholder): Deleted.
1014 * expr.c (store_constructor): Likewise.
1015 (get_inner_reference): Likewise. Also don't call find_placeholder.
1016 (placeholder_list, find_placeholder): Deleted.
1017 (is_aligning_offset): Don't handle WITH_RECORD_EXPR, PLACEHOLDER_EXPR.
1018 (expand_expr_real, cases PLACEHOLDER_EXPR, WITH_RECORD_EXPR): Likewise.
1019 (highest_pow2_factor, case WITH_RECORD_EXPR): Remove.
1020 * dojump.c (do_jump, case WITH_RECORD_EXPR): Likewise.
1021 * dwarf2out.c (loc_descriptor_from_tree, case WITH_RECORD_EXPR):
1023 * fold-const.c (invert_truthvalue, case WITH_RECORD_EXPR): Likewise.
1024 (extract_muldiv, case WITH_RECORD_EXPR): Likewise.
1025 * tree.c (expr_align, case WITH_RECORD_EXPR): Likewise.
1026 (contains_placeholder_p): Don't handle WITH_RECORD_EXPR.
1027 Clean up by using first_rtl_op.
1028 (substitute_in_expr): Use SUBSTITUTE_IN_EXPR for recursive call.
1029 (substitute_placeholder_in_expr): New function.
1030 * tree.def (WITH_RECORD_EXPR): Deleted.
1031 * tree.h (SUBSTITUTE_IN_EXPR, SUBSTITUTE_PLACEHOLDER_IN_EXPR): New.
1032 (substitute_placeholder_in_expr): New.
1034 2004-03-21 Andrew Pinski <pinskia@gcc.gnu.org>
1036 * dojump.c (prefer_and_bit_test): Fix which part of
1037 the and_test is replaced.
1039 2004-03-21 Joseph S. Myers <jsm@polyomino.org.uk>
1041 * frontends.texi: Add missing line.
1043 2004-03-21 Zack Weinberg <zack@codesourcery.com>
1044 Chris Devers <cdevers@pobox.com>
1045 Joseph S. Myers <jsm@polyomino.org.uk>
1047 * doc/frontends.texi: Rewrite.
1048 * doc/gcc.texi: Update last modification date.
1050 2004-03-21 Josef Zlomek <zlomekj@suse.cz>
1052 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Print the debug
1053 message before redirecting the edge.
1055 2004-03-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1057 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_POINTER
1059 * explow.c (force_not_mem): Set REG_POINTER flag according to
1061 * rtl.h (MEM_POINTER): New macro.
1062 (struct rtx_def): Use integrated for MEM_SCALAR_P and frame_related
1065 2004-03-20 Roger Sayle <roger@eyesopen.com>
1068 * cse.c (fold_rtx): Avoid substituting constants into unary
1069 conversion operations.
1071 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
1073 * fold-const.c (fold): Replace "expr" with "t".
1075 2004-03-20 Ian Lance Taylor <ian@wasabisystems.com>
1078 * c-typeck.c (tagged_types_tu_compatible_p): Don't use
1079 DECL_ORIGINAL_TYPE if there isn't one.
1081 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
1083 * fold-const.c (fold): Replace "final_type" with "type".
1084 Remove variable "final_type".
1086 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
1088 * fold-const.c (fold): Constify "type".
1089 Replace "TREE_TYPE (t)" with "type".
1091 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
1093 * bb-reorder.c, bt-load.c, c-decl.c, cfgcleanup.c, coverage.c,
1094 dwarf2asm.c, ifcvt.c, stor-layout.c, varasm.c: Replace calls
1095 via (*targetm.foo) () with targetm.foo ().
1097 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
1100 * doc/install.texi: Add info directory category and entry.
1102 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
1104 * fold-const.c (fold): Replace "t" with "tem" where it is used
1105 as a temporary variable. Remove "orig_t" and all of its uses.
1107 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
1109 * fold-const.c (fold): Remove variable "invert".
1110 Move the handling of relational expressions that can be folded
1112 (fold_relational_const): ... here.
1113 (tree_expr_nonzero_p): New.
1115 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
1118 * builtins.def (nan, nanf, nanl, nans, nansf, nansl): Change to
1121 2004-03-20 Richard Sandiford <rsandifo@redhat.com>
1123 * Makefile.in (dojump.o): Depend on $(GGC_H) and dojump.h.
1124 (GTFILES): Add $(srcdir)/dojump.h.
1125 (gt-dojump.h): New dependency.
1126 * dojump.c (and_reg, and_test, shift_test): New static variables.
1127 (prefer_and_bit_test): New function.
1128 (do_jump): Use it to choose between (X & (1 << C)) and (X >> C) & 1.
1130 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
1132 * c-common.c, cfgcleanup.c, cgraphunit.c, c-pretty-print.c,
1133 expmed.c, ggc-common.c, jump.c, passes.c, recog.c, regmove.c,
1134 reorg.c, tree.h: Fix comment typos.
1136 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
1138 * alias.c, attribs.c, bt-load.c, builtins.c, c-common.c,
1139 c-decl.c, c-objc-common.c, c-typeck.c, calls.c, cfglayout.c,
1140 cse.c, dbxout.c, dwarf2out.c, except.c, final.c,
1141 haifa-sched.c, integrate.c, passes.c, rtlanal.c, sched-rgn.c,
1142 sched-vis.c, simplify-rtx.c, stor-layout.c, tree.c, varasm.c,
1143 vmsdbgout.c: Replace calls via (*targetm.foo) () with
1146 2004-03-19 Ziemowit Laski <zlaski@apple.com>
1148 * config/rs6000/altivec.h (vec_dst, vec_dstst, vec_dststt,
1149 vec_dstt, vec_sld, vec_splat): Add prototypes, marked with
1150 always_inline attribute.
1151 * config/rs6000/rs6000.c (altivec_expand_dst_builtin):
1152 Treat expansion as completed even if literal argument is
1153 invalid (so that other expansions are not tried in vain).
1155 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
1157 * loop-doloop.c (add_test): Replace GEN_INT (0) with
1160 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
1162 * fold-const.c (fold) <ABS_EXPR>: Move the handling of constants
1164 (fold_abs_const): ... here.
1166 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1168 * tree.h (TYPE_ARRAY_MAX_SIZE): Use type.maxval directly.
1170 2004-03-19 Denis Chertykov <denisc@overta.ru>
1173 * config/avr/avr.md ("call_insn"): Handle explicit integer
1175 (call_value_insn): Likewise.
1177 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1179 * tree.c (substitute_in_expr): Rewrite to simplify and be more generic.
1181 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
1183 * fold-const.c (negate_expr): Move the handling of constants
1185 (fold_negate_const): ... here.
1187 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1189 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): New macro and hook.
1190 * langhooks.h (struct lang_hooks_for_types): New field hash_types.
1191 * tree.c (debug_no_type_hash): Deleted.
1192 (type_hash_canon): Abort if passed a variant.
1193 Check lang_hooks.types.hash_types.
1194 (build_type_no_quals): Copy mode of POINTER_TYPE and REFERENCE_TYPE.
1195 (build_array_type): Remove unnecessary allocation of pointer type.
1196 (build_complex_type): Properly qualify resulting type.
1198 2004-03-19 Paolo Bonzini <bonzini@gnu.org>
1200 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo.
1202 2004-03-19 Richard Sandiford <rsandifo@redhat.com>
1204 * expmed.c (choose_mult_variant, expand_mult_const): New, split from...
1205 (expand_mult): ...here.
1206 (extract_high_half): New, split out from expand_mult_highpart.
1207 (expand_highpart_optab): Likewise. Don't clobber target prematurely.
1208 (expand_highpart): Evaluate the cost of a shift/add sequence,
1209 then see if any of the specialized optabs are cheaper.
1211 2004-03-18 Ian Lance Taylor <ian@wasabisystems.com>
1213 * mklibgcc.in: Remove obsolete MAYBE_USE_COLLECT2.
1215 2004-03-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1217 * convert.c (convert_to_real): Add more math builtins.
1219 2004-03-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1221 * convert.c (convert_to_real): Reformat using switch stmt.
1223 2004-03-18 Mark Mitchell <mark@codesourcery.com>
1225 * c-common.c (pointer_int_sum): Do not complain about using
1226 pointers to pointers-to-members.
1228 2004-03-18 Kazu Hirata <kazu@cs.umass.edu>
1230 * system.h (MD_ASM_CLOBBERS): Move to "Old target macros that
1231 have moved to the target hooks structure".
1233 2004-03-18 James E Wilson <wilson@specifixinc.com>
1235 * config/mips/mips.md (type): Split move into arith and fmove. Split
1236 hilo into mthilo and mfhilo. Add trap. Delete icmp. Fix all uses.
1237 * config/mips/5400.md (ir_vr54_hilo, ir_vr54_arith, ir_vr54_fabs):
1239 * config/mips/5500.md (ir_vr55_hilo, ir_vr55_arith, ir_vr55_fabs):
1241 * config/mips/7000.md (rm7_int_other, rm7_mthilo, rm7_mfhilo,
1242 rm7_fp_quick): Likewise.
1243 * config/mips/9000.md (rm9k_int, rm9k_mfhilo, rm9k_mthilo,
1244 rm9k_fquick): Likewise.
1245 * config/mips/sr71k.md (ir_sr70_hilo, ir_sr70_arith, ir_sr70_fabs):
1247 (ir_sr70_icmp): Delete.
1249 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1251 * tree.h (TREE_CHECK2, TREE_CHECK3, TREE_CHECK5): New macros.
1252 (tree_check2_failed, tree_check3_failed, tree_check5_failed): New decl.
1253 (FUNC_OR_METHOD_CHECK, SET_ARRAY_OR_VECTOR_CHECK): New macros.
1254 (REC_OR_UNION_CHECK, NUMERICAL_TYPE_CHECK): Likewise.
1255 (TYPE_VALUES, TYPE_DOMAIN, TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD):
1256 Protect with proper check.
1257 (TYPE_ARG_TYPES, TYPE_METHOD_BASETYPE, TYPE_OFFSET_BASETYPE): Likewise.
1258 (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Likewise.
1259 * tree.c (type_hash_eq): Rewrite to access proper fields for each type.
1260 (tree_check2_failed, tree_check3_failed, tree_check5_failed): New.
1261 * c-typeck.c (build_array_ref): Use TYPE_DOMAIN, not TYPE_VALUES.
1262 * dwarf2out.c (gen_enumeration_type_die): Use TYPE_VALUES,
1264 * stor-layout.c (set_sizetype): Use TYPE_ORIG_SIZE_TYPE.
1266 2004-03-18 Mostafa Hagog <mustafa@il.ibm.com>
1268 * gcse.c (eliminate_partially_redundant_loads): Reject change if
1269 dest is set between beginning and current insn.
1271 2004-03-18 Mark Mitchell <mark@codesourcery.com>
1273 * c-decl.c (grokdeclarator): Do not complain about redeclaring
1274 visible "static" identifiers "extern" in a local scope.
1275 * dwarf2out.c (loc_descriptor_from_tree): Handle pre- and
1276 post-increments/decrements.
1278 2004-03-18 Bob Wilson <bob.wilson@acm.org>
1280 * config/xtensa/xtensa.c (current_function_arg_words): Delete.
1281 (xtensa_builtin_saveregs): Use current_function_args_info.arg_words.
1282 (xtensa_va_start): Remove assignment to current_function_arg_words.
1284 2004-03-18 Richard Sandiford <rsandifo@redhat.com>
1286 * alias.c (record_set): Detect the case where a register is assigned
1287 a new value that has the same base term as the old one.
1289 2004-03-18 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1291 * doloop.c: Removed.
1292 * loop-doloop.c: New file.
1293 * Makefile.in (doloop.o): Remove.
1294 (loop-doloop.o): New.
1295 * cfgloop.h (get_loop_level, doloop_optimize_loops): Declare.
1296 * cfgloopanal.c (get_loop_level): New function.
1297 * loop-iv.c (iv_number_of_iterations): Handle case when loop
1298 is leaved immediatelly.
1299 * loop.c (strength_reduce): Do not call doloop optimization.
1300 * loop.h (LOOP_BCT): Removed.
1301 * passes.c (rest_of_handle_loop_optimize): Do not use LOOP_BCT.
1302 (rest_of_handle_loop2): Call doloop_optimize_loops.
1303 (rest_of_compilation): Test for optimizations moved to
1304 rest_of_handle_loop2.
1306 2004-03-17 Fariborz Jahanian <fjahanian@apple.com>
1308 * config/rs6000/rs6000.c (rs6000_stack_info): correct reg_size
1310 (rs6000_emit_prologue): Ditto.
1311 (rs6000_emit_epilogue): Ditto.
1312 * config/rs6000/rs6000.h: Definition of DWARF_CIE_DATA_ALIGNMENT
1313 macro for mixed mode.
1315 2004-03-18 Jan Hubicka <jh@suse.cz>
1317 * predict.c (propagate_freq): Compute correctly frequency of
1320 2004-03-17 Eric Christopher <echristo@redhat.com>
1322 * builtins.c (apply_args_size): Use reg_raw_mode.
1323 (apply_result_size): Ditto.
1325 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1328 * config/rtems.h: Add STD_LIB_SPEC and LIB_SPEC.
1330 2004-03-17 Jakub Jelinek <jakub@redhat.com>
1332 * config/rs6000/t-linux64 (bispecs): Don't add -mlong-double-128 for
1333 32-bit builds when defaulting to 32-bit.
1335 2004-03-17 Jan Hubicka <jh@suse.cz>
1337 * cfgrtl.c (rtl_create_basic_block): Pre-allocate basic_block_info
1340 2004-03-17 James E Wilson <wilson@specifixinc.com>
1342 * config/mips/mips.md (zero_extendsidi2): Add length attribute.
1343 (hazard_nop): Change type to nop.
1344 (type): Split arith into arith, shift, slt, clz. Delete darith.
1345 Fix all uses. Change arith to multi if more than one insn emitted.
1346 * config/mips/5400.md (ir_vr54_arith): Likewise.
1347 * config/mips/5500.md (ir_vr55_arith): Likewise.
1348 * config/mips/7000.md (rm7_int_other): Likewise.
1349 * config/mips/9000.md (rm9k_int): Likewise.
1350 * config/mips/sr71k.md (ir_sr70_arith): Likewise.
1352 2004-03-17 Joel Brobecker <brobecker@gnat.com>
1354 * dwarf2out.c (subrange_type_die): Define new variable "subtype"
1355 to hold the subtype tree instead of recomputing it several times.
1357 2004-03-17 Kazu Hirata <kazu@cs.umass.edu>
1359 * config/mn10300/mn10300.c (notice_update_cc): Don't handle
1361 * config/mn10300/mn10300.md (cc): Remove "invert".
1363 2004-03-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1365 * builtins.c (integer_valued_real_p): Add builtin rint.
1366 (fold_builtin): Likewise.
1367 * convert.c (convert_to_real): Likewise.
1369 * convert.c (convert_to_real): Fix typos in `long double'
1372 2004-03-16 Mark Mitchell <mark@codesourcery.com>
1375 * fold-const.c (fold): Set TREE_NO_UNUSED_WARNING on implicitly
1376 generated COMPOUND_EXPRs.
1378 2004-03-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1380 * config/h8300/t-rtems (h8300-*-rtems*): New.
1382 2004-03-16 Eric Christopher <echristo@redhat.com>
1384 * doc/cppopts.texi(fwide-exec-charset): Fix typo.
1386 2004-03-16 Kazu Hirata <kazu@cs.umass.edu>
1388 * config/i386/i386-protos.h: Add a prototype for
1389 ix86_reverse_condition.
1390 * config/i386/i386.c (ix86_reverse_condition): New.
1391 * config/i386/i386.h (REVERSE_CONDITION): Use
1392 ix86_reverse_condition.
1393 * config/i386/i386.md: Use ix86_reverse_condition instead of
1396 2004-03-16 J. Brobecker <brobecker@gnat.com>
1398 * dwarf2out.c (loc_descriptor_from_tree): Add handling for MIN_EXPR.
1400 2004-03-16 Nathanael Nerode <neroden@gcc.gnu.org>
1403 * Makefile.in: Pass $(INCLUDES) down to libgcc.mk explicitly.
1405 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
1407 * c-common.c (c_common_type_for_mode): Build vector types on
1409 (handle_mode_attribute): Deprecate using the mode attribute
1410 to create vector types. Fix indentation.
1411 (vector_type_node_list): Remove.
1412 (handle_vector_size_attribute): Create vector types on demand.
1413 Strip a NON_LVALUE_EXPR from the attribute if there is one.
1414 * c-typeck.c (comptypes): Make vector types compatible if they
1415 have the same underlying mode.
1416 (convert_for_assignment): Use comptypes to convert between
1418 * tree.c (build_common_tree_nodes_2): Do not create vector types.
1419 * config/arm/arm.c (arm_init_iwmmxt_builtins): Create necessary
1421 * tree.h: Remove vector types.
1422 * config/i386/i386.c (i386_init_mmx_sse_builtins): Likewise.
1423 * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
1424 (V16QI_type_node, V2SI_type_node, V2SF_type_node, V4HI_type_node,
1425 V4SI_type_node, V4SF_type_node, V8HI_type_node): New globals.
1426 * doc/extend.texi (Vector Types): Document how to use the
1427 vector_size attribute to create vectors, rather than mode.
1429 * config/arm/mmintrin.h: Use vector_size attribute, not mode.
1430 * config/i386/emmintrin.h: Likewise.
1431 * config/i386/mmintrin.h: Likewise.
1432 * config/i386/xmmintrin.h: Likewise.
1433 * config/sh/ushmedia.h: Likewise.
1435 2004-03-16 Kazu Hirata <kazu@cs.umass.edu>
1437 * config/freebsd-spec.h, config/arc/arc-protos.h,
1438 config/arm/aout.h, config/arm/elf.h, config/arm/freebsd.h,
1439 config/arm/linux-gas.h, config/arm/semi.h,
1440 config/cris/cris-protos.h, config/i386/xm-djgpp.h,
1441 config/ia64/freebsd.h, config/mips/7000.md,
1442 config/mips/9000.md, config/ns32k/ns32k-protos.h,
1443 config/sparc/pbd.h: Update copyright.
1445 2004-03-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1448 * config.gcc: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff.
1450 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
1452 * combine.c (combine_simplify_rtx): Remove the "last"
1453 parameter and its documentation. Adjust recursive calls.
1454 (simplify_logical): Always perform the only simplification
1455 controlled by "last", if the simplified expression is
1457 (try_combine): Do not pass the "last" parameter to
1458 combine_simplify_rtx.
1460 2004-03-16 Richard Sandiford <rsandifo@redhat.com>
1463 * config/mips/mips.md (UNSPEC_GP): New constant.
1464 * config/mips/mips.c (CONST_GP_P): Expect the CONST to contain
1465 an UNSPEC instead of (reg $gp).
1466 (mips16_gp_pseudo_reg): Change accordingly.
1467 (print_operand): Print $gp directly when handling CONST_GP_P.
1469 2004-03-16 Richard Zidlicky <rz@linux-m68k.org>
1471 * config.gcc, config/m68k/linux.h: Implement with-cpu for m68k-linux.
1472 * longlong.h: Make code 68060 clean when compiling for m68060.
1474 2004-03-16 Richard Zidlicky <rz@linux-m68k.org>
1476 * config/m68k/m68k.md: Fix constraints for bitfield instructions.
1477 * doc/md.texi: Clarify description of "i" constraint.
1479 2004-03-15 James E Wilson <wilson@specifixinc.com>
1481 * config/mips/mips.md (type): Split load into load, fpload, fpidxload.
1482 Split store into store, fpstore, fpidxstore. Fix all uses.
1483 * config/mips/5400.md (ir_vr54_load, ir_vr54_store, ir_vr54_fstore):
1485 * config/mips/5500.md (ir_vr55_load, i5_vr55_store): Likewise.
1486 * config/mips/7000.md (rm7_ld, rm7_st): Likewise.
1487 * config/mips/9000.md (rm9k_load, rm9k_store): Likewise.
1488 * config/mips/sr71k.md (ir_sr70_load, ir_sr70_store, ir_sr70_fload,
1489 ir_sr70_fstore): Likewise.
1491 2004-03-15 Richard Henderson <rth@redhat.com>
1494 * except.c (collect_one_action_chain): Record action for cleanup
1495 outer of exception spec.
1497 2004-03-15 Ian Lance Taylor <ian@wasabisystems.com>
1499 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
1500 Fix the check for abort and only do the mmap if we can.
1502 2004-03-15 Eric Botcazou <ebotcazou@act-europe.fr>
1504 * config/sparc/sparc.h: Rework comments about the code model
1505 in 64-bit environment and the mode 'Pmode'.
1506 * doc/invoke.texi (SPARC options): Rework description of the
1507 different code models supported in 64-bit environment.
1509 2004-03-15 Kazu Hirata <kazu@cs.umass.edu>
1511 * defaults.h (REVERSIBLE_CC_MODE): Define.
1512 * jump.c (reversed_comparison_code_parts): Don't check if
1513 REVERSIBLE_CC_MODE is defined.
1515 2004-03-15 Kazu Hirata <kazu@cs.umass.edu>
1517 * c-incpath.c, c-incpath.h, c-pch.c, c.opt, cppexp.c,
1518 et-forest.h, genattr.c, ggc-none.c, hosthooks-def.h,
1519 hosthooks.h, params.h, ra-colorize.c, web.c,
1520 config/darwin-c.c, config/alpha/freebsd.h, config/arm/pe.c,
1521 config/avr/avr-protos.h, config/avr/avr.md,
1522 config/fr30/fr30-protos.h, config/fr30/fr30.md,
1523 config/h8300/fixunssfsi.c, config/i386/darwin.h,
1524 config/i386/freebsd.h, config/i386/freebsd64.h,
1525 config/ia64/hpux.h, config/ia64/unwind-ia64.c,
1526 config/ip2k/libgcc.S, config/m32r/xm-m32r.h,
1527 config/mmix/mmix-modes.def, config/ns32k/netbsd.h,
1528 config/ns32k/ns32k.md, config/pa/pa64-hpux.h,
1529 config/pa/pa64-regs.h, config/rs6000/aix41.h,
1530 config/rs6000/aix43.h, config/rs6000/host-darwin.c,
1531 config/sparc/aout.h, config/sparc/freebsd.h,
1532 config/sparc/litecoff.h, config/vax/vax-protos.h,
1533 doc/hostconfig.texi, doc/include/gcc-common.texi: Update
1536 2004-03-15 Paul Brook <paul@codesourcery.com>
1538 * config/arm/arm.c (thumb_expand_prologue): Tie prologue insns to fp.
1540 2004-03-15 Gabriel Dos Reis <gdr@integrable-solutions.net>
1542 * c-pretty-print.c (pp_c_semicolon): Fix formatting.
1543 (pp_c_cv_qualifier): Document.
1544 (pp_c_space_for_pointer_operator): Likewise.
1545 (pp_c_integer_constant): Likewise.
1546 (pp_c_identifier): Likewise.
1547 (pp_c_init_declarator): Don't print function body.
1549 2004-03-14 Joseph S. Myers <jsm@polyomino.org.uk>
1551 * doc/contrib.texi, doc/extend.texi, doc/gcov.texi,
1552 doc/install.texi, doc/invoke.texi, doc/makefile.texi,
1553 doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi: Capitalize
1554 "gcc", "g++" and "g77" or mark up with appropriate markup. Adjust
1555 wording and grammar.
1557 2004-03-14 Roger Sayle <roger@eyesopen.com>
1559 * alias.c (get_alias_set): Replace calls via (*lang_hooks.foo) ()
1560 with lang_hooks.foo ().
1561 * builtins.c (expand_builtin_va_arg): Likewise.
1562 * c-common.c (fname_as_string, c_common_truthvalue_conversion,
1563 c_common_type_for_mode, c_common_nodes_and_builtins,
1564 handle_mode_attribute, handle_vector_size_attribute): Likewise.
1565 * c-convert.c (convert): Likewise.
1566 * c-format.c (check_format_types): Likewise.
1567 * c-objc-common.c (c_tree_printer): Likewise.
1568 * c-typeck.c (build_unary_op, build_conditional_expr,
1569 build_binary_op): Likewise.
1570 * calls.c (try_to_integrate, expand_call,
1571 emit_library_call_value_1): Likewise.
1572 * cgraph.c (cgraph_node_name, cgraph_function_possibly_inlined_p):
1574 * cgraphunit.c (record_call_1, cgraph_analyze_function,
1575 cgraph_expand_function): Likewise.
1576 * convert.c (convert_to_pointer, convert_to_integer): Likewise.
1577 * coverage.c (build_fn_info_type, build_ctr_info_type,
1578 build_gcov_info, create_coverage): Likewise.
1579 * dbxout.c (dbxout_init): Likewise.
1580 * diagnostic.c (diagnostic_report_current_function): Likewise.
1581 * dojump.c (do_jump): Likewise.
1582 * dwarf2out.c (dwarf2_name): Likewise.
1583 * except.c (init_eh): Likewise.
1584 * explow.c (expr_size, int_expr_size): Likewise.
1585 * expmed.c (make_tree, const_mult_add_overflow_p, expand_mult_add):
1587 * expr.c (store_expr, store_constructor, safe_from_p,
1588 expand_expr_real, do_store_flag, try_casesi): Likewise.
1589 * function.c (push_function_context_to, pop_function_context_from,
1590 free_after_parsing, assign_stack_local_1, assign_stack_temp_for_type,
1591 put_var_into_stack, allocate_struct_function, current_function_name):
1593 * integrate.c (copy_decl_for_inlining, expand_inline_function):
1595 * langhooks.c (lhd_clear_binding_stack, write_global_declarations,
1596 lhd_print_error_function): Likewise.
1597 * opts.c (handle_option, decode_options): Likewise.
1598 * passes.c (open_dump_file): Likewise.
1599 * print-tree.c (print_node): Likewise.
1600 * stmt.c (expand_fixup, fixup_gotos, expand_asm_operands,
1601 expand_decl_cleanup, emit_case_nodes): Likewise.
1602 * stor-layout.c (variable_size): Likewise.
1603 * toplev.c (announce_function, wrapup_global_declarations,
1604 check_global_declarations, compile_file, default_tree_printer,
1605 process_options, lang_dependent_init, finalize): Likewise.
1606 * tree-dump.c (dequeue_and_dump): Likewise.
1607 * tree-inline.c (remap_decl, remap_block, copy_body_r,
1608 initialize_inlined_parameters, declare_return_variable,
1609 inlinable_function_p, expand_call_inline, optimize_inline_calls,
1610 walk_tree, copy_tree_r): Likewise.
1611 * tree-optimize.c (tree_rest_of_compilation): Likewise.
1612 * tree.c (decl_assembler_name, tree_size, size_in_bytes, staticp,
1613 unsafe_for_reeval, get_unwidened, get_narrower, get_callee_fndecl,
1614 variably_modified_type_p, dump_tree_statistics): Likewise.
1615 * varasm.c (assemble_variable, compare_constant, copy_constant,
1616 force_const_mem, compute_reloc_for_constant, output_constant,
1617 output_addressed_constants, initializer_constant_valid_p): Likewise.
1619 2004-03-14 Kelley Cook <kcook@gcc.gnu.org>
1621 * doc/install.texi: Make autoconf 2.13 the exception, not the rule.
1623 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
1625 * doc/install.texi: Reflect autoconf and automake version for
1626 libffi. Update autoconf version to 2.59.
1628 2004-03-13 Roger Sayle <roger@eyesopen.com>
1630 * fold-const.c (negate_expr, operand_equal_for_comparison_p,
1631 optimize_bit_field_compare, decode_field_reference, all_ones_mask_p,
1632 make_range, build_range_check, fold_range_test, unextend,
1633 constant_boolean_node, fold_binary_op_with_conditional_arg,
1634 fold_truthop, fold_mathfn_compare, fold_inf_compare,
1635 fold_single_bit_test, fold): Replace calls via (*lang_hooks.foo) ()
1636 with lang_hooks.foo ().
1638 2004-03-14 Richard Earnshaw <rearnsha@arm.com>
1640 * arm.h (EXTRA_CONSTRAINT_STR_ARM): Update comment.
1642 2004-03-13 Dara Hazeghi <dhazeghi@yahoo.com>
1644 * doc/install.texi: Note status of -fnew-ra.
1646 2004-03-13 Eric Botcazou <ebotcazou@libertysurf.fr>
1649 * expr.c (store_expr): Call emit_queue before generating the move
1650 from the temporary to the original target. Protect the temporary
1653 2004-03-13 Jakub Jelinek <jakub@redhat.com>
1656 * config/s390/s390.c (legitimize_pic_address): Don't abort on UNSPEC
1657 other than UNSPEC_GOTOFF.
1659 2004-03-13 Richard Earnshaw <rearnsha@arm.com>
1661 * arm.c (arm_legitimate_address_p): New argument, OUTER. Pass through
1662 to arm_legitimate_index_p. Update all callers with SET as default
1664 (arm_legitimate_index_p): New argument, OUTER. Restrict the index
1665 range if OUTER is a sign-extend operation on QImode. Correctly
1666 reject shift operations on sign-extended QImode addresses.
1667 (bad_signed_byte_operand): Delete.
1668 (arm_extendqisi_mem_op): New function.
1669 * arm.h (EXTRA_CONSTRAINT_ARM): Delete. Replace with...
1670 (EXTRA_CONSTRAINT_STR_ARM): ... this. Handle extended address
1672 (CONSTRAINT_LEN): New.
1673 (EXTRA_CONSTRAINT): Delete. Replace with...
1674 (EXTRA_CONSTRAINT_STR): ... this.
1675 (PREDICATE_CODES): Remove bad_signed_byte_operand.
1676 * arm.md (extendqihi_insn): Use new constraint Uq. Rework. Length
1677 is now always default.
1678 (define_splits for bad sign-extend loads): Delete.
1679 (arm_extendqisi, arm_extendqisi_v5): Likewise.
1680 * arm/vfp.md (arm_movsi_vfp, arm_movdi_vfp, movsf_vfp, movdf_vfp):
1681 Rework 'U' constraint to 'Uv'.
1682 * arm-protos.h: Remove bad_signed_byte_operand. Add
1683 arm_extendqisi_mem_op.
1684 * doc/md.texi (ARM constraints): Rename VFP constraint (now Uv).
1687 2004-03-13 Alan Modra <amodra@bigpond.net.au>
1689 * config/rs6000/rs6000.c (rs6000_va_arg): Replace SPLIT_COMPLEX_ARGS
1690 with targetm version.
1693 * config/rs6000/rs6000.h (UNITS_PER_ARG, RS6000_ARG_SIZE): Delete.
1694 (HARD_REGNO_MODE_OK): Disallow TFmode for fp31.
1695 * config/rs6000/rs6000.c (rs6000_arg_size): New function.
1696 Update all users of RS6000_ARG_SIZE.
1697 (function_arg_advance): Count fregno using mode size.
1698 (function_arg): Handle long double split over regs and memory.
1699 (function_arg_partial_nregs): Likewise.
1700 (rs6000_va_arg): Repackage complex args.
1702 2004-03-13 Dean Ferreyra <dferreyra@igc.org>
1705 * config/avr/avr.c (avr_progmem_p): Add "attributes" parameter.
1706 (avr_insert_attributes): Pass "attributes" to avr_progmem_p.
1707 * config/avr/avr-protos.h (avr_progmem_p): Change prototype.
1709 2004-03-12 Jakub Jelinek <jakub@redhat.com>
1711 * config/rs6000/rs6000-protos.h (rs6000_output_dwarf_dtprel): Add
1713 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): New.
1714 * config/rs6000/rs6000.h (ASM_OUTPUT_DWARF_DTPREL): Define.
1716 2003-03-12 Andrew Pinski <apinski@apple.com>
1718 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
1719 Use ret instead of result. Use addr instead of base.
1721 2004-03-12 David Edelsohn <edelsohn@gnu.org>
1723 * doc/install.texi (*-ibm-aix*): Document assembler and achiver
1724 fixes required by libstdc++ and update installation instructions
1727 2004-03-12 Danny Smith <dannysmith@users.sourceforge.net>
1729 * config/i386/winnt.c (i386_pe_strip_name_encoding_full): Strip
1730 leading '@' on fastcall symbols before stripping suffix.
1732 2004-03-12 Roger Sayle <roger@eyesopen.com>
1734 * combine.c (unmentioned_reg_p): New function to check whether an
1735 expression is a "specialization" of another, i.e. that there are
1736 no registers or memory references mentioned in the first that don't
1737 appear in the second.
1738 (unmentioned_reg_p_1): New helper subroutine of unmentioned_reg_p.
1739 (combine_instructions): Also try combining instructions using the
1740 REG_EQUAL note from a preceding log-linked instruction.
1742 2004-03-12 Roger Sayle <roger@eyesopen.com>
1744 * config/i386/i386.c (ix86_split_ashrdi): Optimize shift by 63.
1746 2004-03-12 Matt Austern <austern@apple.com>
1748 * target.h (struct gcc_target): New target hook, unwind_label.
1749 * target-def.h (TARGET_ASM_EMIT_UNWIND_LABEL): New hook.
1750 * output.h (default_emit_unwind_label): New function.
1751 * default.h (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): New macro.
1752 (TARGET_USES_WEAK_UNWIND_INFO): New target macro.
1753 (TARGET_SUPPORTS_HIDDEN): New target macro.
1754 * dwarf2out.c (struct dw_fde_struct): Add field for function decl
1755 that corresponds to this FDE.
1756 (FRAME_BEGIN_LABEL): Allow target to override default label.
1757 (output_call_frame_info): If FDEs are linknonce, then use extra
1758 indirection for FDE encoding, output a label for each FDE, and
1759 output an empty label for each function without an FDE.
1760 (dwarf2out_begin_prologue): Set up decl field when creating an FDE.
1761 * varasm.c (globalize_decl): Call ASM_MAKE_LABEL_LINKONCE for
1762 decls with DECL_ONE_ONLY set, if that macro is defined.
1763 (make_decl_one_only): Don't use DECL_COMMON if we're compiling
1764 for a SUPPORTS_ONE_ONLY target.
1765 * config/darwin-protos.h (darwin_unique_section): Declare.
1766 (darwin_asm_named_section): Likewise.
1767 (darwin_section_type_flags): Likewise.
1768 (darwin_non_lazy_pcrel): Likewise.
1769 (darwin_emit_unwind_label): Likewise.
1770 (darwin_make_decl_one_only): Likewise.
1771 * config/darwin.c (machopic_finish): Get rid of tweak that
1772 eliminate stubs for symbols that are defined.
1773 (darwin_encode_section_info): Don't treat weak functions as defined.
1774 (darwin_make_decl_one_only): Define.
1775 (darwin_asm_named_section): Likewise.
1776 (darwin_section_type_flags): Likewise.
1777 (darwin_unique_section): Likewise.
1778 (darwin_emit_unwind_label): Likewise.
1779 (darwin_non_lazy_pcrel): Likewise.
1780 (darwin_asm_output_dwarf_delta): Difference between two labels is
1781 local only if both labels are local.
1782 * config/darwin.h (MAKE_DECL_ONE_ONLY): Define.
1783 (ASM_MAKE_LABEL_LINKONCE): Likewise.
1784 (TARGET_SUPPORTS_HIDDEN): Likewise.
1785 (TARGET_USES_WEAK_UNWIND_INFO): Likewise.
1786 (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): Likewise.
1787 (FRAME_BEGIN_LABEL): Likewise.
1788 (ASM_DECLARE_OBJECT_NAME): Make references to weak symbols indirect.
1789 (ASM_DECLARE_FUNCTION_NAME): Likewise.
1790 (darwin_eh_frame_section): Give __eh_frame section the coalesced flag.
1791 (TARGET_ASM_UNIQUE_SECTION): Define.
1792 (EH_FRAME_SECTION_NAME): Define.
1793 (EH_FRAME_SECTION_ATTR): Likewise.
1794 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
1795 (TARGET_ASM_NAMED_SECTION): Likewise.
1796 (TARGET_SECTION_TYPE_FLAGS): Likewise.
1797 * doc/tm.texi: Document TARGET_USES_WEAK_UNWIND_INFO,
1798 TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY, TARGET_SUPPORTS_HIDDEN,
1799 TARGET_ASM_EMIT_UNWIND_LABEL.
1801 2004-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1803 * builtins.c (expand_builtin_mathfn): Add pow10* to the
1804 existing exp10* case.
1805 (expand_builtin): Likewise.
1807 2004-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
1809 * doc/tm.texi (registers) <Values in Registers>: Add
1810 entry for REGMODE_NATURAL_SIZE.
1812 2004-03-12 Richard Henderson <rth@redhat.com>
1815 * target.h (struct gcc_target): Move calls substructure before
1816 booleans. Add split_complex_arg.
1817 * function.c (assign_parms, split_complex_args): Use it.
1818 * calls.c (expand_call): Likewise.
1819 (split_complex_values): Likewise. Check for splittable types
1820 before allocating memory.
1821 (split_complex_types): Likewise.
1822 * system.h (SPLIT_COMPLEX_ARGS): Poison.
1823 * expr.h (SPLIT_COMPLEX_ARGS): Remove.
1824 * target-def.h (TARGET_SPLIT_COMPLEX_ARG): New.
1825 * config/alpha/alpha.c (alpha_split_complex_arg): New.
1826 (TARGET_SPLIT_COMPLEX_ARG): New.
1827 * config/alpha/alpha.h (SPLIT_COMPLEX_ARGS): Remove.
1828 * config/rs6000/rs6000.c (TARGET_SPLIT_COMPLEX_ARG): New.
1829 (rs6000_override_options): Zap it for non-AIX.
1830 (rs6000_function_value): Use targetm.calls.split_complex_arg.
1831 * config/rs6000/rs6000.h (SPLIT_COMPLEX_ARGS): Remove.
1832 * config/xtensa/xtensa.c (TARGET_SPLIT_COMPLEX_ARG): New.
1833 * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Remove.
1834 * doc/tm.texi (TARGET_SPLIT_COMPLEX_ARG): Modify from old
1835 SPLIT_COMPLEX_ARGS entry.
1837 2004-03-11 Richard Henderson <rth@redhat.com>
1839 * config/alpha/alpha.c (xfloating_ops, vax_cvt_ops): New.
1840 (alpha_lookup_xfloating_lib_func): Use them, return rtx.
1841 (alpha_emit_xfloating_arith): Update to match.
1842 (alpha_emit_xfloating_compare): Likewise.
1843 (alpha_emit_xfloating_cvt): Likewise.
1844 (alpha_emit_xfloating_libcall): Take already built symbol,
1846 * config/alpha/alpha.md (extendsftf2, extenddftf2): Take
1849 2004-03-11 Richard Henderson <rth@redhat.com>
1852 * config/alpha/alpha.h (STACK_BOUNDARY): Set to 128.
1854 * simplify-rtx.c (simplify_relational_operation): Fix typo.
1856 2004-03-11 Richard Henderson <rth@redhat.com>
1859 * except.c (remove_unreachable_regions): Look thru CALL_PLACEHOLDER.
1861 2004-03-11 Ulrich Weigand <uweigand@de.ibm.com>
1864 * calls.c (load_register_parameters): If BLOCK_REG_PADDING is not
1865 defined, pass small BLKmode values in registers in the low-order part.
1867 2004-03-11 Ulrich Weigand <uweigand@de.ibm.com>
1869 * combine.c (if_then_else_cond): Check for NULL return value of
1870 simplify_gen_subreg.
1872 2004-03-11 Richard Sandiford <rsandifo@redhat.com>
1875 * config/mips/mips.h (UNITS_PER_FPVALUE): Fix value for
1876 TARGET_SINGLE_FLOAT.
1878 2004-03-11 Steve Ellcey <sje@cup.hp.com>
1880 * config/ia64/hpux.h (TARGET_INIT_LIBFUNCS): Add undef.
1881 * config/ia64/ia64.h (TARGET_INIT_LIBFUNCS): Add define.
1882 * config/ia64/ia64.c (ia64_init_libfuncs): New.
1883 (ia64_hpux_init_libfuncs): Add call to ia64_init_libfuncs.
1885 2004-03-11 Roger Sayle <roger@eyesopen.com>
1887 * fold-const.c (negate_expr_p) <RSHIFT_EXPR>: We can optimize
1888 -((int)X>>C) where C is an integer constant one bit less than the
1889 size of X into (unsigned)X>>C. Similarly for unsigned->signed.
1890 (negate_expr) <RSHIFT_EXPR>: Implement the above transformations.
1892 * simplify-rtx.c (simplify_unary_operation): Also implement the
1893 above transformations at the RTL level.
1895 2004-03-11 Alan Modra <amodra@bigpond.net.au>
1897 * real.c (encode_ibm_extended): Do round low word.
1899 2004-03-11 Ben Elliston <bje@wasabisystems.com>
1901 * config/arm/arm.md (is_xscale): Comment this attribute and move
1902 it a bit further up in the file, closer to related attributes.
1904 2004-03-11 Eric Botcazou <ebotcazou@libertysurf.fr>
1906 * config/host-solaris.c (sol_gt_pch_use_address): Add
1907 missing terminating marker to comment.
1909 2004-03-11 Richard Sandiford <rsandifo@redhat.com>
1911 * config/mips/mips.md: Use move_operand in splitters for 64-bit moves.
1912 (movdi, movsi, movhi, movqi, movsf, movdf): Remove predicates.
1913 (*movdi_32bit_mips16, *movsi_mips16, *movhi_mips16, *movqi_mips16)
1914 (*movsf_mips16, *movdf_mips16): Name unnamed patterns. Use
1915 move_operand as source predicate in all cases.
1916 (*movdi_32bit): Renamed from movdi_internal. Remove 'F' constraint.
1917 Test reg_or_0_operand. Use move_operand as source predicate.
1918 (*movdi_64bit): Renamed from movdi_internal2. Test reg_or_0_operand.
1919 (*movdi_64bit_mips16): Renamed from movdi_internal2_mips16.
1920 (*movsi_internal): Renamed from movsi_internal. Test reg_or_0_operand.
1921 (movhi, movqi, movsf, movdf): Use mips_legitimize_move.
1922 (*movhi_internal): Renamed from movhi_internal. Test reg_or_0_operand.
1923 Use move_operand as source predicate. Remove 'K' constraint.
1924 (*movqi_internal): Likewise movqi_internal.
1925 (*movsf_hardfloat): Renamed from movsf_internal1. Test
1926 reg_or_0_operand. Use move_operand as source predicate.
1927 (*movsf_softfloat): Likewise movsf_internal2.
1928 (*movdf_hardfloat_64bit): Likewise movsf_internal1a.
1929 (*movdf_hardfloat_32bit): Likewise movsf_internal1b.
1930 (*movdf_softfloat): Likewise movdf_internal2.
1931 * config/mips/mips.c (move_operand): Match arbitrary CONST_INTs
1932 for DImode if !TARGET_64BIT.
1933 (mips_legitimize_move): Simplify accordingly.
1935 2004-03-11 Josef Zlomek <zlomekj@suse.cz>
1938 * var-tracking.c (struct variable_def): Added field refcount.
1939 (variable_htab_free): Decrease the refcount and delete variable
1940 only if there are no more references.
1941 (unshare_variable): New function.
1942 (vars_copy_1): Increase refcount instead of copying the variable.
1943 (variable_union): Share the variables where possible, unshare
1944 the variables if needed.
1945 (variable_different_p): Return false if var1 and var2 are
1947 (variable_was_changed): Init the refcount of new variable.
1948 (set_frame_base_location): Unshare variable if needed.
1949 (set_variable_part): Init the refcount of new variable.
1950 Unshare the variables if needed.
1951 (delete_variable_part): Unshare the variables if needed.
1952 (emit_notes_for_differences_1): Init the refcount of new variable.
1953 (vt_add_function_parameters): Do not add function parameters to
1954 IN set of ENTRY_BLOCK_PTR because it is unused anyway.
1955 (vt_initialize): Do not add frame_base_decl to IN set of
1956 ENTRY_BLOCK_PTR because it is unused anyway.
1958 2004-03-11 Josef Zlomek <zlomekj@suse.cz>
1960 * var-tracking.c (vars_copy_1): Cleanup and speedup chain operations.
1961 (vars_copy): Likewise.
1962 (variable_union): Likewise.
1963 (set_variable_part): Likewise.
1964 (delete_variable_part): Likewise.
1966 2004-03-11 Kazu Hirata <kazu@cs.umass.edu>
1968 * c-typeck.c, combine.c, cse.c, dominance.c, et-forest.h,
1969 ggc-page.c, var-tracking.c, config/fp-bit.c, config/c4x/c4x.c,
1970 config/cris/cris.c, config/i386/ppro.md, config/i860/i860.c,
1971 config/i860/i860.h, config/m32r/m32r.h, config/m32r/xm-m32r.h,
1972 config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
1973 config/mips/mips.c, config/mmix/mmix.c, config/ns32k/ns32k.h,
1974 config/pa/pa.c, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
1975 config/pdp11/pdp11.h, config/rs6000/rs6000.c,
1976 config/stormy16/stormy16.c: Fix comment typos and formatting.
1978 2004-03-11 Nathanael Nerode <neroden@gcc.gnu.org>
1980 * configure: Regenerate, since I forgot to while committing Paolo's
1983 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
1986 Move language detection to the top level.
1987 * configure.ac: Remove code to detect languages,
1988 it now lives exclusively in the top level.
1989 * aclocal.m4 (gcc_AC_PROG_GNAT): Moved to the
1990 top level, renamed to ACX_PROG_GNAT.
1992 2004-03-10 Richard Henderson <rth@redhat.com>
1994 * c-pch.c (c_common_no_more_pch): Update for gt_pch_use_address
1996 * config.host (*-*-solaris2*, *-*-linux*): Add out_host_hook_obj
1997 and host_xmake_file fragments.
1998 * ggc-common.c (gt_pch_save): Update for gt_pch_get_address change.
1999 (gt_pch_restore): Similarly for gt_pch_use_address.
2000 (default_gt_pch_get_address): New.
2001 (mmap_gt_pch_get_address): Split out of gt_pch_save.
2002 (default_gt_pch_use_address): Split out of gt_pch_restore.
2003 (mmap_gt_pch_use_address): Likewise.
2004 * hooks.c (hook_voidp_size_t_null): Remove.
2005 (hook_bool_voidp_size_t_false): Remove.
2006 * hooks.h: Likewise.
2007 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): Use one of the
2008 default_ or mmap_ definitions.
2009 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Likewise.
2010 * hosthooks.h (struct host_hooks): Update gt_pch_get_address
2011 and gt_pch_use_address.
2012 * config/host-linux.c, config/host-solaris.c: New files.
2013 * config/x-linux, config/x-solaris: New files.
2014 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_get_address):
2015 Update for changed definition.
2016 (darwin_rs6000_gt_pch_use_address): Likewise.
2017 * doc/hostconfig.texi: Update docs.
2019 2004-03-10 Richard Henderson <rth@redhat.com>
2022 * c-decl.c (grokdeclarator): Don't warn for duplicate qualifiers
2023 except for pedantic c90 mode.
2025 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
2027 * configure.ac: Bump AC_PREREQ to 2.59.
2028 * configure: Regenerate.
2030 2004-03-10 Uros Bizjak <uros@kss-loka.si>
2032 * optabs.h (enum optab_index): Add new OTI_exp10 and OTI_exp2.
2033 (exp10_optab, exp2_optab): Define corresponding macros.
2034 * optabs.c (init_optabs): Initialize exp10_optab and exp2_optab.
2035 * genopinit.c (optabs): Implement exp10_optab and exp2_optab
2036 using exp10?f2 and exp2?f2 patterns.
2037 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP10{,F,L}
2038 using exp10_optab, and BUILT_IN_EXP2{,F,L} using exp2_optab.
2039 (expand_builtin): Expand BUILT_IN_EXP10{,F,L} and BUILT_IN_EXP2{,F,L}
2040 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
2042 * config/i386/i386.md (exp10sf2, exp10df2, exp10xf2, exp2sf2,
2043 exp2df2, exp2xf2): New patterns to implement exp10, exp10f, exp10l,
2044 exp2, exp2f and exp2l built-ins as inline x87 intrinsics.
2046 2004-03-10 Anthony Green <green@redhat.com>
2048 * doc/invoke.texi (ARM Options): Fix -mpfu typo.
2050 2004-03-10 David Edelsohn <edelsohn@gnu.org>
2052 * config/rs6000/aix.h (TARGET_OS_CPP_BUILTINS): Rename to ...
2053 (TARGET_OS_AIX_CPP_BUILTINS): this. Conditionally define
2055 * config/rs6000/aix41.h (TARGET_OS_CPP_BUILTINS): Use
2056 TARGET_OS_AIX_CPP_BUILTINS.
2057 * config/rs6000/aix43.h (TARGET_OS_CPP_BUILTINS): Same.
2058 * config/rs6000/aix51.h (TARGET_OS_CPP_BUILTINS): Same.
2059 * config/rs6000/aix52.h (TARGET_OS_CPP_BUILTINS): Same.
2060 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Revert
2063 2004-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2065 * fold-const.c (tree_expr_nonnegative_p): Add more builtin cases.
2067 2004-03-10 David Edelsohn <edelsohn@gnu.org>
2069 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
2070 __LONGDOUBLE128 on AIX.
2072 2004-03-10 Andrew Haley <aph@redhat.com>
2074 PR optimization/14381
2075 * function.c (expand_function_end): Emit a blockage insn before
2076 the epilogue when -fnon-call-exceptions is used.
2078 * except.c (expand_start_all_catch): Make comment more accurate.
2080 2004-03-08 Joel Sherrill <joel@oarcorp.com>
2083 * config/rs6000/t-rtems: Add missing file on branch.
2085 2004-03-10 Ulrich Weigand <uweigand@de.ibm.com>
2087 * dbxout.c (dbxout_symbol_location): Do not output references
2088 to optimized-out constant pool symbols.
2090 2004-03-10 Andreas Schwab <schwab@suse.de>
2092 * config/ia64/ia64.md (divsi3, udivsi3): Remove unused variable
2095 2004-03-09 James E Wilson <wilson@specifixinc.com>
2097 * alias.c (alias_sets_might_conflict_p): New.
2098 * c-typeck.c (build_c_cast): Call it if warn_strict_aliasing > 1.
2099 * common.opt (Wstrict-aliasing=): New.
2100 * flags.h (warn_strict_aliasing): Change type to int.
2101 * opts.c (warn_strict_aliasing): Change type to int.
2102 (common_handle_option): Handle OPT_Wstrict_aliasing_.
2103 * tree.h (alias_sets_might_conflict_p): Declare it.
2104 * doc/invoke.tex (-Wstrict-aliasing=2): Document it.
2106 2004-03-10 Roman Zippel <zippel@linux-m68k.org>
2109 * config/m68k/m68k.h (FIXED_REGISTERS): Add arg pointer.
2110 (CALL_USED_REGISTERS): Likewise.
2111 (REG_CLASS_CONTENTS): Likewise.
2112 (REG_ALLOC_ORDER): New.
2113 (REGNO_REG_CLASS): Use regno_reg_class.
2114 * config/m68k/m68k.c: Add regno_reg_class array.
2116 2004-03-09 Steve Ellcey <sje@cup.hp.com>
2118 * config/ia64/ia64.md (divsi3): Fix algorithm.
2120 (setf_exp_xf): Remove '*' from name.
2121 * testsuite/gcc.dg/20040309-1.c: New test.
2123 2004-03-09 Ian Lance Taylor <ian@wasabisystems.com>
2125 * system.h (SUNOS4_SHARED_LIBRARIES): Poison.
2126 * collect2.c: Remove SUNOS4_SHARED_LIBRARIES code.
2127 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): Don't define.
2128 * config/sparc/sparc.c (sparc_aout_select_section): Remove.
2129 (sparc_aout_select_rtx_section): Don't check
2130 SUNOS4_SHARED_LIBRARIES.
2131 * config/sparc/sparc.h (SUNOS4_SHARED_LIBRARIES): Don't define.
2133 2004-03-10 Hans-Peter Nilsson <hp@axis.com>
2136 * doc/md.texi (Pattern Ordering, Dependent Patterns)
2137 (Jump Patterns, Looping Patterns): Wrap in separate "@ifset
2140 2004-03-09 Zack Weinberg <zack@codesourcery.com>
2142 * config/ia64/hpux.h (MULTILIB_DEFAULTS): Define.
2143 (LIBGCC_SPEC): Update to match.
2145 2004-03-09 Zack Weinberg <zack@codesourcery.com>
2147 * c-decl.c (last_function_parms, last_function_parm_tags)
2148 (last_function_parm_others, current_function_parms)
2149 (current_function_parm_tags, current_function_parm_others):
2151 (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES, ARG_INFO_OTHERS):
2153 (grokdeclarator): For function definitions, save the arg-info
2154 block from the declarator in DECL_ARGUMENTS.
2155 (grokparms): Do not write to last_function_parm*. Use ARG_INFO_*
2156 macros to operate on arg-info block. Can assume ARG_INFO_PARMS
2157 contains only PARM_DECLs. Improve diagnostics.
2158 (get_parm_info): Use ARG_INFO_* macros. Improve comments and
2159 diagnostics. Disable some expensive checks if not ENABLE_CHECKING.
2160 (store_parm_decls_newstyle): Take the function to operate on,
2161 and an arg-info block, as arguments; don't get anything from
2162 current_function_* globals.
2163 (store_parm_decls_oldstyle): Likewise.
2164 (store_parm_decls): Pass fndecl and its arg-info block down to
2165 store_parm_decls_newstyle/oldstyle. Send functions with empty
2166 argument lists through store_parm_decls_newstyle to reduce
2168 (pushdecl): Comment on the problems with the call to copy_node.
2169 Clear DECL_ARGUMENTS of the old node after copying it, if it
2170 is an arg-info block instead of a chain of decls.
2171 (start_function): Do not manipulate current_function_parm* or
2172 last_function_parm*.
2174 2004-03-09 Roger Sayle <roger@eyesopen.com>
2175 Andrew Pinski <pinskia@physics.uc.edu>
2177 * ifcvt.c (noce_try_sign_mask): New function to transform
2178 "x = (y < 0) ? z : 0" into the equivalent "x = (y >> C) & z".
2179 (noce_process_if_block): Call noce_try_sign_mask.
2181 2004-03-09 Andrew Pinski <apinski@apple.com>
2183 * c-typeck.c (tagged_types_tu_compatible_p):
2186 2004-03-09 Roger Sayle <roger@eyesopen.com>
2188 * simplify-rtx.c (simplify_const_relational_operation): New function
2189 renamed from simplify_relational_operation.
2190 (simplify_relational_operation): Change prototype to accept an
2191 additional mode argument. Call simplify_const_relational_operation.
2192 (simplify_gen_relational): Update simplify_relational_operation call.
2193 (simplify_ternary_operation): Update simplify_relational_operation
2194 subroutine call to use simplify_const_relational_operation instead.
2196 * rtl.h (simplify_const_relational_operation): Prototype here.
2197 (simplify_relational_operation): Add addtional mode argument.
2199 * combine.c (combine_simplify_rtx): Update calls to
2200 simplify_relational_operation.
2201 (simplify_set): Likewise.
2202 (gen_binary): Likewise.
2203 * cse.c (fold_rtx): Likewise.
2204 * dojump.c (compare_from_rtx): Likewise.
2205 (do_compare_rtx_and_jump): Likewise.
2206 * integrate.c (subst_constants): Likewise.
2207 * unroll.c (simplify_cmp_and_jump_insns): Likewise.
2209 2004-03-09 Kazu Hirata <kazu@cs.umass.edu>
2211 * config/m32r/m32r.md: Remove all define_peephole's.
2213 2004-03-09 Alan Modra <amodra@bigpond.net.au>
2215 * config/rs6000/rs6000.md: Remove trailing whitespace.
2217 2004-03-08 Eric Christopher <echristo@redhat.com>
2219 * Makefile.in (site.exp): Add libiconv variable definition.
2221 2004-03-09 Hans-Peter Nilsson <hp@axis.com>
2223 * configure: Regenerate for config/accross.m4 correction.
2225 2004-03-08 Joel Sherrill <joel@oarcorp.com>
2228 * config/rs6000/t-rtems: Add missing file on branch.
2230 2004-03-08 Roger Sayle <roger@eyesopen.com>
2233 * c-typeck.c (c_mark_addressable): A register variable should
2234 be considered global if its not automatic, i.e. TREE_PUBLIC,
2235 TREE_STATIC or DECL_EXTERNAL.
2236 * function.c (put_var_into_stack): Call abort when placing a
2237 hard register into the stack, if x_parm_reg_stack_loc is NULL.
2239 2004-03-08 Ulrich Weigand <uweigand@de.ibm.com>
2241 * config/s390/s390.md ("*extendqidi2_short_displ"): Add CC clobber.
2242 ("*extendqisi2_short_displ"): Likewise.
2244 2004-03-08 Kazu Hirata <kazu@cs.umass.edu>
2246 * config/pdp11/pdp11.c (comparison_operator_index): Remove.
2247 (comp_operator): Likewise.
2248 * config/pdp11/pdp11-protos.h: Remove corresponding
2251 2004-03-08 Eric Botcazou <ebotcazou@act-europe.fr>
2253 * expr.c (highest_pow2_factor_for_type): Rename into
2254 highest_pow2_factor_for_target. Use DECL_ALIGN instead of
2255 TYPE_ALIGN when the target is a COMPONENT_REF.
2256 (expand_assignment): Ajust call to highest_pow2_factor_for_type.
2258 2004-03-08 Alan Modra <amodra@bigpond.net.au>
2260 * config/rs6000/rs6000.c: Formatting fix.
2261 (legitimate_offset_address_p): Correct offset range check.
2263 * config/rs6000/rs6000.c (rs6000_override_options): Don't override
2264 -msoft-float by -mcpu. Consolidate similar code for MASK_MULTIPLE
2267 2004-03-07 Aldy Hernandez <aldyh@redhat.com>
2269 * config/rs6000/rs6000.md (ashrdi3): Do not call ashrdi3_no_power
2271 ("ashrdi3_no_power"): Disable for little endian.
2274 2004-03-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2276 * fold-const.c (tree_expr_nonnegative_p): Reformat checks for
2279 2004-03-08 Hans-Peter Nilsson <hp@axis.com>
2282 * configure.ac (Target-specific assembler checks) <cris-*-*>: New
2283 case, checking for -no-mul-bug-abort option.
2284 * configure, config.in: Regenerate.
2285 * doc/invoke.texi (CRIS Options): Document -mmul-bug-workaround
2286 and -mno-mul-bug-workaround.
2287 * config/cris/cris.md ("smulsi3_highpart", "umulsi3_highpart")
2288 ("mulsidi3", "umulsidi3"): Prefix output template with "%!".
2289 ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3"):
2290 Ditto. Make attribute "slottable" dependent on TARGET_MUL_BUG.
2291 * config/cris/mulsi3.asm (__Mul) [__CRIS_arch_version >= 10]: Make
2292 sure mulu.d is not last on cache-line.
2293 * config/cris/cris.h (ASM_SPEC): Translate -mno-mul-bug-workaround
2294 into -no-mul-bug-abort depending on HAVE_AS_MUL_BUG_ABORT_OPTION.
2295 (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG): New macros.
2296 (TARGET_SWITCHES): New options -mmul-bug-workaround and
2297 -mno-mul-bug-workaround.
2298 (TARGET_DEFAULT): Include TARGET_MASK_MUL_BUG.
2299 (PRINT_OPERAND_PUNCT_VALID_P): Include '!'.
2300 * config/cris/cris.c (cris_operand_extend_operator): Clarify
2301 relation to MULT in head comment.
2302 (cris_op_str): Abort for MULT.
2303 (cris_print_operand) <case '!'>: New case.
2305 2004-03-08 Alan Modra <amodra@bigpond.net.au>
2308 * dwarf2out.c (enum dw_val_class): Rename dw_val_class_float to
2309 dw_val_class_vec. Replace use throughout file.
2310 (dw_float_const): Delete.
2311 (dw_vec_const): New.
2312 (dw_val_struct_union): Rename val_float to val_vec. Replace use
2314 (add_AT_vec): Rename from add_AT_float. Add elt_size param.
2315 (same_dw_val_p): Adjust vec comparison. Use memcmp.
2316 (size_of_die): Adjust dw_val_class_vec sizing.
2317 (output_die): Output dw_val_class_vec.
2318 (insert_int, extract_int, insert_float): New functions.
2319 (add_const_value_attribute): Use insert_float for CONST_DOUBLE.
2320 Handle CONST_VECTOR.
2321 (add_location_or_const_value_attribute): Handle CONST_VECTOR.
2323 2004-03-07 Aldy Hernandez <aldyh@redhat.com>
2325 * config/rs6000/rs6000.c (rs6000_parse_abi_options): SPE and
2326 AltiVec abi cannot co-exist.
2328 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Same.
2330 2004-03-07 Jan Hubicka <jh@suse.cz>
2332 * except.c (emit_to_new_bb_before): Break fallthru edges.
2334 2004-03-07 Stephane Carrez <stcarrez@nerim.fr>
2336 * config/m68hc11/m68hc11.md ("*lshrsi3_const"): Disable for 68HC12.
2337 ("*lshrsi3"): Also accept an immediate for 68HC12.
2338 ("*ashrsi3_const"): Likewise.
2339 ("*ashrsi3"): Likewise.
2340 ("*ashlsi3_const"): Likewise.
2341 ("*ashlsi3"): Likewise.
2342 ("cmphi_1_hc12"): Compare two hard register by pushing them and
2343 comparing with a pop; don't use a split for that.
2344 ("cmphi split"): Disable compare split for 68HC12.
2346 * config/m68hc11/m68hc11.c (m68hc11_notice_update_cc): Invalidate
2347 the status operands if they have side effects.
2349 2004-03-07 Kazu Hirata <kazu@cs.umass.edu>
2351 * defaults.h (LEGITIMIZE_ADDRESS): Provide a default
2353 * config/arc/arc.h, config/fr30/fr30.h, config/frv/frv.h,
2354 config/h8300/h8300.h, config/ia64/ia64.h,
2355 config/mcore/mcore.h, config/mmix/mmix.h,
2356 config/ns32k/ns32k.h, config/pdp11/pdp11.h,
2357 config/stormy16/stormy16.h, config/v850/v850.h,
2358 config/vax/vax.h (LEGITIMIZE_ADDRESS): Remove.
2359 * doc/tm.texi (LEGITIMIZE_ADDRESS): Mention the default
2362 2004-03-07 Roger Sayle <roger@eyesopen.com>
2364 * fold-const.c (fold) <IOR_EXPR>: Fold x | x as x.
2365 <XOR_EXPR>: Fold x ^ x as zero.
2366 <AND_EXPR>: Fold x & x as x.
2368 2004-03-07 Roger Sayle <roger@eyesopen.com>
2370 * fold-const.c (fold) <EQ_EXPR>: Rewrite optimization to transform
2371 "foo++ == const" into "++foo == const+incr".
2373 2004-03-07 Richard Sandiford <rsandifo@redhat.com>
2375 * config/mips/mips.c (mips_in_small_data_p): Return false if
2378 2004-03-06 Stephane Carrez <stcarrez@nerim.fr>
2380 * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Use 2,-sp to push
2382 (expand_prologue): Don't make an interrupt or a trap handler a far
2384 (m68hc11_initial_elimination_offset): Likewise.
2386 2004-03-06 Richard Henderson <rth@redhat.com>
2388 * config/alpha/alpha.c (alpha_in_small_data_p): False for functions.
2390 2004-03-06 Kazu Hirata <kazu@cs.umass.edu>
2392 * config/ns32k/ns32k-protos.h: Add a prototype for
2393 ns32k_notice_update_cc.
2394 * config/ns32k/ns32k.c (ns32k_notice_update_cc): New.
2395 * config/ns32k/ns32k.h (NOTICE_UPDATE_CC): Call
2396 ns32k_notice_update_cc.
2398 2004-03-06 Ulrich Weigand <uweigand@de.ibm.com>
2400 * config/s390/s390.md ("load_multiple", "*load_multiple_di",
2401 "*load_multiple_si"): Allow only if reload_completed.
2402 ("store_multiple", "*store_multiple_di", "*store_multiple_si"):
2405 2004-03-06 Kazu Hirata <kazu@cs.umass.edu>
2407 * config/vax/vax-protos.h: Add a prototype for
2408 vax_notice_update_cc.
2409 * config/vax/vax.c (vax_notice_update_cc): New.
2410 * config/vax/vax.h (NOTICE_UPDATE_CC): Call
2411 vax_notice_update_cc.
2413 2004-03-06 David Edelsohn <edelsohn@gnu.org>
2415 * collect2.c (main): Only export initfunc and finifunc if
2416 LD_INIT_SWITCH not defined.
2417 (scan_prog_file): Only export constructors and destructors if
2418 LD_INIT_SWITCH not defined. Only export symbols not found in
2421 2004-03-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2423 * pa.md (icacheflush): Reorder operands to make match_scratch operand
2425 * pa.h (INITIALIZE_TRAMPOLINE): Remove unnecessary scratch argument
2426 from calls to gen_icacheflush.
2428 2004-03-06 Richard Henderson <rth@redhat.com>
2430 * config/alpha/alpha.h (MASK_LONG_DOUBLE_128): New.
2431 (TARGET_LONG_DOUBLE_128): New.
2432 (TARGET_SWITCHES): Add long-double-{128,64}.
2433 (TARGET_HAS_XFLOATING_LIBS): Default to TARGET_LONG_DOUBLE_128.
2434 (LONG_DOUBLE_TYPE_SIZE): Honor TARGET_LONG_DOUBLE_128.
2435 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): New.
2436 (WIDEST_HARDWARE_FP_SIZE): New.
2437 (TARGET_CPU_CPP_BUILTINS): Define __LONG_DOUBLE_128__.
2438 * config/alpha/alpha.c (override_options): Clear MASK_LONG_DOUBLE_128
2439 if TARGET_VAX_FLOAT.
2440 * config/alpha/osf5.h (LONG_DOUBLE_TYPE_SIZE): Remove.
2441 (TARGET_DEFAULT): Set MASK_LONG_DOUBLE_128.
2443 2004-03-06 Richard Henderson <rth@redhat.com>
2445 * config/alpha/alpha.c (alpha_swapped_comparison_operator): Fix
2446 botched rtx class conversion.
2448 2004-03-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2450 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P,
2451 BUILTIN_CBRT_P, BUILTIN_ROOT_P): New macros.
2453 * builtins.c (fold_builtin_logarithm, fold_builtin): Use new
2455 * fold-const.c (fold_mathfn_compare, fold): Likewise.
2457 2004-03-06 Eric Botcazou <ebotcazou@libertysurf.fr>
2460 * config/i386/i386.md (movv2di_internal): Conditionalize on
2461 TARGET_SSE, not TARGET_SSE2.
2463 2004-03-05 Chris Demetriou <cgd@broadcom.com>
2465 * config.gcc (mips64orion-*-elf*, mips64orionel-*-elf*): Delete
2468 2004-03-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2470 * builtins.c: Consistently use logN not log* in comments.
2472 2004-03-05 Andreas Krebbel <krebbel1@de.ibm.com>
2474 * rtl.h (mem_expr_equal_p): Function prototype added.
2475 * cfgcleanup.c (merge_memattrs): New function.
2476 (flow_find_cross_jump): Call merge_memattrs for matching insns.
2477 * emit-rtl.c (mem_expr_equal_p): New function.
2479 2004-03-05 Ziemowit Laski <zlaski@apple.com>
2481 * objc/objc-act.c (synth_module_prologue): Const-qualify
2482 objc_selector type if using the GNU runtime; fix generated
2483 signatures for objc_msg_lookup and objc_msg_lookup_super
2484 to match what GNU ObjC headers provide; reformat and clean up.
2485 (synth_self_and_ucmd_args): Use previously constructed (and
2486 hence possibly const-qualified) objc_selector type.
2488 2004-03-05 Kazu Hirata <kazu@cs.umass.edu>
2490 * doc/tm.texi (HARD_REGNO_RENAME_OK): Document.
2492 2004-03-05 Jason Merrill <jason@redhat.com>
2494 * tree.h (TYPE_HASH): Use TYPE_UID.
2495 (TREE_HASH): New macro with old definition of TYPE_HASH.
2496 * tree.c (build_type_attribute_variant): Use iterative_hash_object.
2497 (build_array_type, build_function_type): Likewise.
2498 (build_method_type_directly): Likewise.
2499 (build_offset_type, build_complex_type): Likewise.
2500 (type_hash_list, attribute_hash_list): Likewise. Now static.
2501 * except.c: s/TYPE_HASH/TREE_HASH/.
2503 2004-03-05 Bob Wilson <bob.wilson@acm.org>
2505 * config/xtensa/xtensa.c (function_arg): Handle 16-byte aligned args.
2506 (xtensa_va_start): Initialize __va_stk to ($arg_ptr - 32). Adjust
2507 __va_ndx by 2 words when referencing an argument on the stack.
2508 (xtensa_va_arg): Handle 16-byte aligned args. Adjust __va_ndx by 2
2509 words when an arg on the stack is first seen.
2511 2004-03-05 Paul Brook <paul@codesourcery.com>
2513 * arm.h (ARM_FLAG_VFP): Remove.
2514 (ARM_FLAG_ATPCS, CIRRUS_FIX_INVALID_INSNS): Renumber.
2515 * netbsd-elf.h (ARM_FLAG_VFP): Remove.
2517 2004-03-05 Paul Brook <paul@codesourcery.com>
2519 * function.c (assign_parms): Include pretend alignment offset.
2521 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2523 * stor-layout.c (layout_type, case FUNCTION_TYPE): Make size
2524 FUNCTION_BOUNDARY, not POINTER_SIZE * 2.
2526 2004-03-05 Ian Lance Taylor <ian@wasabisystems.com>
2528 * configure.ac: When passing --enable-languages to subdir
2529 configure when host != build, make sure we don't pass an empty
2531 * configure: Regenerate.
2533 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
2536 * gcc.c (cc1_options): Robustify -auxbase-strip from multiple -o
2539 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
2541 * simplify-rtx.c (simplify_relational_operation): If
2542 flag_wrapv is set, do not move terms between the two
2543 side of a relational operator.
2545 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
2547 * rtlanal.c: Include target.h and output.h
2548 (rtx_cost, address_cost, default_address_cost): Move from...
2549 * cse.c (rtx_cost, address_cost, default_address_cost):
2551 * rtl.h (rtx_cost, address_cost): Move under rtlanal.c.
2552 * Makefile.in: Adjust dependencies.
2554 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
2556 * cse.c (cse_end_of_basic_block): Make static.
2557 * local-alloc.c (function_invariant_p): Move to
2559 * loop.c (libcall_other_reg, record_excess_regs):
2561 * reload1.c (function_invariant_p): Moved here
2562 from local-alloc.c, made static.
2563 * rtl.h (cse_end_of_basic_block, function_invariant_p,
2564 libcall_other_reg, record_excess_regs): Remove
2567 2004-03-05 Kazu Hirata <kazu@cs.umass.edu>
2569 * config/m32r/m32r.c (signed_comparison_operator): Add a
2570 missing parenthesis.
2572 2004-03-04 Ian Lance Taylor <ian@wasabisystems.com>
2574 * ggc-common.c (gt_pch_restore): Don't unmap addr unless we are
2575 going to call mmap again. Read the file into the right place.
2576 Give a fatal error if we have to relocate.
2578 2004-03-04 Bob Wilson <bob.wilson@acm.org>
2580 * config/xtensa/xtensa.c (xtensa_return_in_msb): New function.
2581 (TARGET_RETURN_IN_MSB): Define to xtensa_return_in_msb.
2583 2004-03-05 Hans-Peter Nilsson <hp@axis.com>
2586 * config/fp-bit.c (_fpdiv_parts): Do not round when pack_d would
2587 round the same. When rounding, clear bits that would cause a
2588 second rounding in pack_d.
2589 (_fpmul_parts): Ditto. Remove #if 0:d code.
2591 2004-03-04 Ziemowit Laski <zlaski@apple.com>
2593 PR c++/14425, c++/14426
2594 * config/rs6000/altivec.h (vec_splat_s8, vec_splat_s16,
2595 vec_splat_s32, vec_splat_u8, vec_splat_u16, vec_splat_u32):
2596 Change C++ definitions to accept a 'const int' argument;
2597 the prototypes already do.
2598 * config/rs6000/rs6000.c (rs6000_common_init_builtins):
2599 Rename v4si_ftype_char, v8hi_ftype_char, v16qi_ftype_char,
2600 v4sf_ftype_v4si_char, v4si_ftype_v4sf_char, v4si_ftype_v4si_char,
2601 v8hi_ftype_v8hi_char, v16qi_ftype_v16qi_char,
2602 v16qi_ftype_v16qi_v16qi_char, v8hi_ftype_v8hi_v8hi_char,
2603 v4si_ftype_v4si_v4si_char and v4sf_ftype_v4sf_v4sf_char to
2604 end in ..._int; change them to accept an int instead of a char
2605 as the last parameter.
2607 2004-03-04 Phil Edwards <phil@codesourcery.com>
2609 * genmultilib: Change '=' to '-' when translating option names
2612 2004-03-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2614 * expr.c (expand_expr_real, case COMPONENT_REF): Get proper type of
2615 stack slot for temp used for result of BLKmode but in integral mode.
2617 2004-03-04 Jan Hubicka <jh@suse.cz>
2619 * reload.c (find_reloads): Reorganize if seqeunce to switch.
2621 * cfgrtl.c (rtl_redirect_edge_and_branch): Set the source BB as dirty.
2622 (cfglayout_redirect_edge_and_branch): Set the source BB as dirty.
2624 2004-03-04 Steve Ellcey <sje@cup.hp.com>
2626 * config/ia64/ia64.md (divdf3_internal_thr): Fix algorithm.
2627 * testsuite/gcc.dg/20040303-1.c: New test.
2629 2004-03-04 Steven Bosscher <stevenb@suse.de>
2631 * ppro.md: Rewrite as a DFA pipeline description.
2632 * i386.md: Remove all uses of the ppro_uops attribute.
2633 * i386.c: (ix86_safe_ppro_uops, ix86_dump_ppro_packet,
2634 ix86_reorder_insn, ix86_sched_reorder_ppro, ix86_sched_init,
2635 ix86_sched_reorder, ix86_variable_issue,
2636 struct ix86_sched_data, TARGET_SCHED_VARIABLE_ISSUE,
2637 TARGET_SCHED_INIT, TARGET_SCHED_REORDER): Remove.
2638 (ia32_use_dfa_pipeline_interface): Add TARGET_PENTIUMPRO.
2639 (ia32_multipass_dfa_lookahead): Add TARGET_PENTIUMPRO.
2640 * athlon.md (athlon_ssecmp_load): Fix comment
2642 2004-03-04 Stuart Hastings <stuart@apple.com>
2644 * gcc/doc/invoke.texi: Document -mlongcall for Darwin/PPC.
2646 2004-03-04 Stuart Hastings <stuart@apple.com>
2648 * gcc/config/i386/darwin.h: Darwin/x86 doesn't support CPUs before
2649 686, tell Darwin assembler to allow prefetch insns, non-empty def
2650 of SUBTARGET_OPTION_TRANSLATE_TABLE.
2652 2004-03-04 DJ Delorie <dj@redhat.com>
2654 PR optimization/14282
2655 * sched-deps.c (sched_analyze_insn): Allow a stack adjustment
2656 between a call and the assignment of its return value.
2658 2004-03-04 Kazu Hirata <kazu@cs.umass.edu>
2660 * config/h8300/h8300.c: Put a comment for every function.
2662 2004-03-04 Kazu Hirata <kazu@cs.umass.edu>
2664 * config/h8300/h8300.md: Add comments about peephole2's.
2666 2004-03-04 Steven Bosscher <stevenb@suse.de>
2668 * i386.h (TARGET_CPU_DEFAULT_nocona): Fix value.
2670 2004-03-04 Jan Hubicka <jh@suse.cz>
2672 * cfgcleanup.c (thread_jump): Update call of cselib_init.
2673 * cselib.c (cselib_record_memory): New static variable.
2674 (cselib_lookup_mem, cselib_record_set, cselib_record_sets):
2675 Give up on memories when asked for.
2676 (cselib_init): Accept new argument.
2677 * cselib.h (cselib_init): Update prototype.
2678 * gcse.c (local_cprop_pass): Update call of cselib_init.
2679 * loop.c (load_mems): Update call of cselib_init.
2680 * postreload.c (reload_cse_regs_1): Update call of cselib_init.
2681 * sched-deps.c (sched_analyze): Update call of cselib_init.
2683 2004-03-04 David Edelsohn <edelsohn@gnu.org>
2686 * config/rs6000/rs6000.c (output_function_profiler): Append @plt
2689 2004-03-04 Josef Zlomek <zlomekj@suse.cz>
2692 * var-tracking.c (track_expr_p): Do not track variables which
2693 should be ignored for debugging purposes.
2695 2004-03-04 Alan Modra <amodra@bigpond.net.au>
2697 * real.c (encode_ibm_extended): Don't bother rounding low double.
2698 * c-cppbuiltin.c (builtin_define_float_constants): Tweak MAX
2699 when fmt->pnan < fmt->p.
2701 2004-03-04 Eric Christopher <echristo@redhat.com>
2703 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Fix to check
2704 only range of valid arg registers and fixed_regs.
2706 2004-03-04 Alan Modra <amodra@bigpond.net.au>
2709 * config/rs6000/rs6000.md (abstf2, abstf2+1): Delete define_insn.
2710 (abstf2, abstf2_internal): New define_expand.
2712 2004-03-04 Eric Botcazou <ebotcazou@libertysurf.fr>
2714 PR optimization/14235
2715 * expr.c (convert_move): Copy the source to a new pseudo
2716 when converting from a sub-word source to a larger-than-word
2717 register which conflicts with the source.
2719 2004-03-03 Zack Weinberg <zack@codesourcery.com>
2722 * c-decl.c (diagnose_mismatched_decls): Issue an error for two
2723 parameters with the same name, unless one is a forward decl.
2724 Do not issue a redundant-redeclaration warning for forward
2725 decls of parameters.
2727 2004-03-04 David Edelsohn <edelsohn@gnu.org>
2729 * doc/install.texi (*-ibm-aix*): Document use of Bash to speed up
2732 2004-03-03 Ian Lance Taylor <ian@wasabisystems.com>
2734 * ggc-zone.c (ggc_pch_write_object): Don't align file pointer.
2736 2004-03-04 Alan Modra <amodra@bigpond.net.au>
2738 * target-def.h (TARGET_OPTF): Delete.
2739 * c-opts.c (TARGET_OPTF): Define.
2741 2004-03-04 Jan Hubicka <jh@suse.cz>
2743 * cselib.c (cselib_finish): Fix another miss-application of my previous
2746 2004-03-03 Mike Stump <mrs@apple.com>
2748 Add framework support for darwin.
2750 * c-incpath.c: Include target.h and machmode.h.
2751 (add_path): Use a consistent style for cpp_dir. Initialize
2753 (add_cpp_dir_path): New.
2754 (register_include_chains): Add use of extra_includes callback.
2755 (hook_void_int): Add.
2756 (target_c_incpath): Add.
2757 * c-incpath.h (add_cpp_dir_path): New.
2758 (target_c_incpath_s): Add.
2759 (target_c_incpath): Add.
2760 (C_INCPATH_INIT): Add.
2761 * c-opts.c (c_common_missing_argument,
2762 c_common_handle_option): Add -F argument processing.
2763 * c.opt: Add -F argument processing.
2764 * gcc.c (trad_capable_cpp): Add -F argument processing.
2765 * cppfiles.c (find_file_in_dir): Update to use construct
2767 (search_path_exhausted, cpp_get_path, cpp_get_buffer,
2769 (_cpp_find_file): Use search_path_exhausted.
2770 (make_cpp_dir): Initialize construct to 0.
2771 * cpplib.h (missing_header_cb
2772 cpp_get_path, cpp_get_buffer, cpp_get_file, cpp_get_prev): New.
2773 (cpp_callbacks): Add missing_header
2774 (cpp_dir): Add construct.
2775 * target-def.h: (TARGET_OPTF): New.
2776 * hooks.c (hook_void_int, hook_void_charptr): Add.
2777 * hooks.h (hook_void_int, hook_void_charptr): Add.
2778 * Makefile.in (c-incpath.o) : Add $(TARGET_H) and
2779 $(MACHMODE_H) dependencies.
2780 * doc/invoke.texi (Darwin Options): Document -F.
2781 * doc/tm.texi (TARGET_EXTRA_INCLUDES): Add.
2783 * fix-header.c (target_c_incpath): Add.
2785 * config/darwin-c.c: Add c-incpath.h include.
2786 (using_frameworks, find_subframework_file,
2787 find_subframework_header, add_system_framework_path,
2788 frameworks_in_use, num_frameworks, max_frameworks,
2789 add_framework, find_framework, struct framework_header,
2790 framework_header_dirs, framework_construct_pathname,
2791 find_subframework_file, add_system_framework_path,
2792 add_framework_path, framework_defaults,
2793 darwin_register_frameworks, find_subframework_header): Add.
2794 * config/darwin.h (TARGET_EXTRA_INCLUDES, TARGET_OPTF): New.
2795 (TARGET_OPTION_TRANSLATE_TABLE): Add -framework support.
2796 (CPP_SPEC): Add __APPLE_CC__ support.
2797 * t-darwin (darwin-c.o): Add c-incpath.h dependency.
2799 2004-03-04 Jan Hubicka <jh@suse.cz>
2801 * cselib.c (cselib_finish): Fix miss-application of my previous
2804 2004-03-03 Kazu Hirata <kazu@cs.umass.edu>
2806 * hooks.c (hook_tree_tree_identity): New.
2807 * hooks.h: Add a prototype for hook_tree_tree_identity.
2808 * stmt.c (expand_asm_operands): Use targetm.md_asm_clobbers
2809 instead of MD_ASM_CLOBBERS.
2810 * system.h (MD_ASM_CLOBBERS): Poison.
2811 * target-def.h (TARGET_MD_ASM_CLOBBERS): New.
2812 (TARGET_INITIALIZER): Add TARGET_MD_ASM_CLOBBERS.
2813 * target.h (gcc_target): Add md_asm_clobbers.
2814 * config/i386/i386.c (TARGET_MD_ASM_CLOBBERS): New.
2815 (ix86_md_asm_clobbers): New.
2816 * config/i386/i386.h (MD_ASM_CLOBBERS): Remove.
2817 * doc/tm.texi (MD_ASM_CLOBBERS): Change to
2818 TARGET_MD_ASM_CLOBBERS.
2820 2004-03-03 Stuart Hastings <stuart@apple.com>
2822 * gcc/config.gcc: Arrange for Darwin/x86 to build libgcc_eh.a.
2824 2004-03-03 Eric Botcazou <ebotcazou@libertysurf.fr>
2826 * config/sparc/sparc.c (noov_compare64_op): Fix typo.
2828 * config/sparc/sparc.h (ASM_FLOAT): Delete.
2829 (ASM_DOUBLE): Likewise.
2830 (ASM_LONGDOUBLE): Likewise.
2831 * config/sparc/pbd.h (ASM_INT_OP): Delete.
2833 2003-03-03 Richard Henderson <rth@redhat.com>
2836 * cselib.c (cselib_record_sets): Don't record multiple sets in
2839 2004-03-03 Mostafa Hagog <mustafa@il.ibm.com>
2841 * common.opt: Add description of the new -fgcse-after-reload flag.
2843 * flags.h (flag_gcse_after_reload): Declaration of global variable.
2845 * gcse.c (reg_used_on_edge ,reg_set_between_after_reload_p,
2846 reg_used_between_after_reload_p, rtx get_avail_load_store_reg,
2847 is_jump_table_basic_block, bb_has_well_behaved_predecessors,
2848 get_bb_avail_insn, hash_scan_set_after_reload,
2849 compute_hash_table_after_reload, eliminate_partially_redundant_loads,
2850 gcse_after_reload, get_bb_avail_insn): New functions to implement
2852 (gcse_after_reload_main): New function, the main entry point to
2855 * rtl.h (gcse_after_reload_main): Declaration of the new function.
2857 * opts.c (common_handle_option): Handle the -fgcse-after-reload flag.
2859 * toplev.c (flag_gcse_after_reload): Initialization.
2861 * passes.c (rest_of_handl_gcse2): Call gcse_after_reload_main.
2863 * params.def (PARAM_GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
2864 PARAM_GCSE_AFTER_RELOAD_CRITICAL_FRACTION): New parameters for tuning
2865 the gcse after reload optimization.
2867 * params.h (GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
2868 GCSE_AFTER_RELOAD_CRITICAL_FRACTION): Two macros to access the tuning
2871 * doc/invoke.texi: Documentation for the new flag gcse-after-reload.
2873 2004-03-03 Nicolas Pitre <nico@cam.org>
2875 * config/arm/ieee754-df.S (muldf3, divdf3): Fix denormalization of
2876 small negative values.
2878 2004-03-03 Jan Hubicka <jh@suse.cz>
2880 * cselib.c (hash_table): Remove GTY marker.
2881 (reg_values): Turn into array.
2882 (used_regs): Likewise.
2883 (n_used_regs): New static variable.
2884 (reg_values_old): Kill.
2885 (clear_table): Update uses of arrays.
2886 (cselib_lookup): Likewise.
2887 (cselib_record_set): Likewise.
2888 (cselib_init): Likewise.
2889 (cselib_finish): Likewise.
2890 (cselib_udpate_varray_sizes): Kill.
2891 * cselib.h (cselib_update_varray_sizes): Kill.
2893 2004-03-03 Paul Brook <paul@codesourcery.com>
2895 * flow.c (ior_reg_cond, and_reg_cond): Remove stray ")".
2897 2004-03-03 Jan Hubicka <jh@suse.cz>
2899 * ggc-common.c (ggc_alloc_cleared_stat, ggc_realloc_stat):
2900 Rename from ...; make statistics transparent.
2901 (ggc_alloc_cleared, ggc_realloc_stat): ... these.
2902 (loc_descriptor): New structure.
2903 (hash_descriptor, eq_descriptor, loc_descriptor, cmp_statistics,
2905 New static function.
2906 (ggc_record_overhead, dump_statistics): New global function.
2907 * ggc-none.c (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
2908 ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Rename
2909 from ...; accept locations
2910 (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
2911 ggc_realloc, ggc_alloc_typed): ... this one.
2912 from ...; accept locations
2913 * ggc-page.c (ggc_alloc_typed_stat, ggc_alloc_zone_stat,
2914 ggc_alloc_stat): Rename from ... ; pass locations
2915 * ggc-page.c (ggc_alloc_typed, ggc_alloc_zone, ggc_alloc):
2917 (ggc_alloc_stat): Record overehead.
2918 * ggc.h (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
2919 ggc_realloc, ggc_alloc_typed): Turn to macros
2920 (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
2921 ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Declare.
2922 (dump_ggc_loc_satistics, ggc_record_overehead): Declare.
2923 * langhooks.h (lhd_make_node): Declare.
2924 (LANG_HOOKS_MAKE_TYPE): Default to new function,
2925 * langhooks.c (lhd_make_node): New.
2926 * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Rename from ... ; pass
2928 (rtx_alloc, swallow_copy_rtx): ... this one.
2929 * rtl.h (rtx_alloc, swallow_copy_rtx): Turn to macros.
2930 * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Declare.
2931 * toplpev.c (finalize): Dump stats.
2932 * tree.c (make_node_stat, copy_node_stat, make_tree_vec_stat,
2933 build_tree_list_stat, tree_cons_stat, build?_stat, build_decl_stat):
2934 Rename from ... ; pass locators.
2935 (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
2936 build?, build_decl): Declare.
2937 * tree.h (make_node_stat, copy_node_stat, make_tree_vec_stat,
2938 build_tree_list_stat, tree_cons_stat, build?_stat, build_decl_stat):
2940 (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
2941 build?, build_decl): New macros.
2942 * Makefile.in (RTL_H, TREE_H): Add statistics.h dependency.
2943 * statistics.h: New file.
2945 2004-03-03 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2946 Richard Sandiford <rsandifo@redhat.com>
2948 * config/mips/mips.h (MASK_FIX_SB1): Bump.
2949 (MASK_FIX_R4400, TARGET_FIX_R4400): New macros.
2950 (TARGET_SWITCHES): Add -mfix-r4400 and -mno-fix-r4400.
2951 * config/mips/mips.c (mips_output_division): Fill the branch delay
2952 slot with a nop if TARGET_FIX_R4000. Extend R4000 workarounds to
2954 (mips_output_division): Adjust accordingly.
2955 (override_options): Make -march=r4400 imply -mfix-r4400 by default.
2956 * doc/invoke.texi: Document -mfix-r4400 and new errata workarounds.
2958 2004-03-03 Paolo Bonzini <bonzini@gnu.org>
2960 * alias.c (rtx_equal_for_memref_p): Use predicates
2961 to test rtx classes and new rtx class codes, possibly
2962 splitting conditionals that tested against '<' and 'o'.
2963 * caller-save.c (save_call_clobbered_regs): Likewise.
2964 * combine.c (contains_muldiv, find_split_point, subst,
2965 combine_simplify_rtx, simplify_if_then_else,
2966 simplify_set, simplify_logical, expand_compound_operation,
2967 make_compound_operation, if_then_else_cond, known_cond,
2968 apply_distributive_law, cached_nonzero_bits,
2969 cached_num_sign_bit_copies, simplify_shift_const,
2970 gen_binary, simplify_comparison, update_table_tick,
2971 record_value_for_reg, get_lsat_value_validate): Likewise.
2972 * cse.c (mention_regs, find_best_addr, find_comparison_args,
2973 fold_rtx, cse_insn, invalidate_memory, cse_basic_block):
2975 * emit-rtl.c (copy_insn_1): Likewise.
2976 * expr.c (force_operand): Likewise.
2977 * final.c (final_scan_insn, get_mem_expr_from_op): Likewise.
2978 * flow.c (notice_stack_pointer_modification_1,
2979 invalidate_mems_from_autoinc, ior_reg_cond, not_reg_cond,
2980 and_reg_cond, elim_reg_cond): Likewise.
2981 * function.c (update_epilogue_consts): Likewise.
2982 * genattrtab.c (attr_rtx_1): Likewise.
2983 * genopinit.c (gen_insn): Likewise.
2984 * integrate.c (subst_constants): Likewise.
2985 * jump.c (reversed_comparison_code_parts,
2986 reversed_comparison_code, delete_related_insns,
2987 rtx_renumbered_equal_p): Likewise.
2988 * local-alloc.c (block_alloc): Likewise.
2989 * loop.c (rtx_equal_for_prefetch_p, maybe_eliminate_biv,
2990 canonicalize_condition): Likewise.
2991 * loop-iv.c (simplify_using_conditions, iv_number_of_iterations):
2993 * optabs.c (add_equal_node, expand_binop): Likewise.
2994 * predict.c (estimate_probability): Likewise.
2995 * ra-debug.c (ra_print_rtx_2op, ra_print_rtx): Likewise.
2996 * recog.c (validate_replace_rtx_1, comparison_operator,
2997 offsettable_address_p, constrain_operands): Likewise.
2998 * reg-stack.c (swap_rtx_condition_1, subst_stack_regs_pat):
3000 * regclass.c (scan_one_insn): Likewise.
3001 * regmove.c (stable_and_no_regs_but_for_p): Likewise.
3002 * regrename.c (kill_autoinc_value): Likewise.
3003 * reload.c (find_reusable_reload, find_reloads,
3004 reg_overlap_mentioned_for_reload_p): Likewise.
3005 * reload1.c (gen_reload, delete_address_reloads_1): Likewise.
3006 * rtl.c (copy_rtx): Likewise.
3007 * rtl.h (CONSTANT_P, INSN_P): Likewise.
3008 * rtlanal.c (commutative_operand_precedence): Likewise.
3009 * sched-deps.c (conditions_mutex_p): Likewise.
3010 * sched-rgn.c (is_cfg_nonregular): Likewise.
3011 * simplify-rtx.c (simplify_gen_binary,
3012 simplify_gen_relational, simplify_replace_rtx,
3013 simplify_unary_operation, simplify_binary_operation,
3014 simplify_ternary_operation, simplify_rtx): Likewise.
3015 * unroll.c (reg_dead_after_loop): Likewise.
3016 * config/alpha/alpha.c (alpha_swapped_comparison_operator,
3017 print_operand): Likewise.
3018 * config/arc/arc.c (proper_comparison_operator): Likewise.
3019 * config/arm/arm.c (arm_arm_address_cost, arm_select_cc_mode):
3021 * config/avr/avr.c (_reg_unused_after): Likewise.
3022 * config/frv/frv.c (frv_ifcvt_modify_tests,
3023 frv_ifcvt_modify_insn, frv_pack_insn): Likewise.
3024 * config/i386/i386.c (ix86_comparison_operator,
3025 ix86_carry_flag_operator, fcmov_comparison_operator,
3026 arith_or_logical_operator, print_operand,
3027 ix86_expand_binary_operator, ix86_binary_operator_ok):
3029 * config/i386/i386.md: Likewise.
3030 * config/ia64/ia64.c (not_postinc_memory_operand,
3031 ia64_print_operand, update_set_flags, errata_emit_nops):
3033 * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS,
3034 CONSTRAINT_OK_FOR_S): Likewise.
3035 * config/ip2k/ip2k.c (mdr_resequence_xy_yx,
3036 mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
3037 ip2k_xexp_not_uses_reg_for_mem, ip2k_xexp_not_uses_reg_p,
3038 ip2k_composite_xexp_not_uses_reg_p, ip2k_unary_operator):
3040 * config/iq2000/iq2000.c (cmp_op, symbolic_expression_p,
3041 eqne_comparison_operator, signed_comparison_operator):
3043 * config/mips/mips.c (cmp_op, symbolic_expression_p):
3045 * config/mmix/mmix (mmix_foldable_comparison_operator,
3046 mmix_comparison_operator): Likewise.
3047 * config/pa/pa.c (hppa_legitimize_address): Likewise.
3048 * config/rs6000/rs6000.c (stmw_operation,
3049 branch_comparison_operator, trap_comparison_operator,
3051 * config/rs6000/rs6000.h (SELECT_CC_MODE): Likewise.
3052 * config/s390/s390.c (s390_alc_comparison,
3053 s390_slb_comparison):L Likewise.
3054 * config/sh/sh.c (gen_block_redirect, reg_unused_after):
3056 * config/sparc/sparc.c (eq_or_neq, normal_comp_operator,
3057 noov_compare_op, noov_compare64_op, v9_regcmp_op,
3058 emit_hard_tfmode_operation, reg_unused_after)
3059 * doc/md.texi, doc/rtl.texi: Likewise.
3061 * ra-debug.c: Add 2004 to list of copyright years.
3062 * unroll.c: Likewise.
3064 * combine.c (simplify_logical): Remove dummy test,
3065 (apply_distributive_law): Fix typo in comment.
3066 GET_CODE (x) == AND so x is a commutative binary op.
3067 * jump.c (delete_related_insns): simplify loop
3068 condition, move testing of RTX codes inside the loop.
3069 (rtx_renumbered_equal_p): do not use RTX_CODE.
3070 * rtl.c (rtx_class): Declare as enum rtx_class.
3071 * rtl.def (EQ, NE, UNEQ, LTGT, UNORDERED, ORDERED):
3072 Move to RTX_COMM_COMPARE class.
3073 (HIGH, SYMBOL_REF, LABEL_REF, CONST, CONST_INT, CONST_DOUBLE):
3074 Move to RTX_CONST_OBJ class.
3075 * rtl.h (enum rtx_class): New declaration,
3076 (RTX_OBJ_MASK, RTX_OBJ_RESULT, RTX_COMPARE_MASK,
3077 RTX_COMPARE_RESULT, RTX_ARITHMETIC_MASK, RTX_ARITHMETIC_RESULT,
3078 RTX_BINARY_MASK, RTX_BINARY_RESULT, RTX_COMMUTATIVE_MASK,
3079 RTX_COMMUTATIVE_RESULT, RTX_NON_COMMUTATIVE_RESULT,
3080 RTX_EXPR_FIRST, RTX_EXPR_LAST, UNARY_P, BINARY_P,
3081 ARITHMETIC_P, COMMUTATIVE_ARITHMETIC_P, COMPARISON_P,
3082 SWAPPABLE_OPERANDS_P, NON_COMMUTATIVE_P, COMMUTATIVE_P,
3083 OBJECT_P): New macros.
3084 * config/sparc/sparc.c (noov_compare_op): Remove register
3087 2004-03-03 Kazu Hirata <kazu@cs.umass.edu>
3089 * target.h: Remove texi jargons in comments.
3091 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
3093 * config/h8300/lib1funcs.asm (___fixunssfsi): Change the
3097 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
3098 * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
3100 * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
3101 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
3103 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
3105 * doc/md.texi (cbranchmode4): New.
3107 2004-03-02 Eric Christopher <echristo@redhat.com>
3109 * config/mips/mips16.S: Change fixsfsi and fixdfsi to
3111 * config/mips/mips.c (mips_init_libfuncs): Change accordingly.
3112 * config/mips/t-elf (LIB1ASMFUNCS): Ditto.
3113 * config/mips/t-isa3264 (LIB1ASMFUNCS): Ditto.
3114 * config/mips/t-r3900 (LIB1ASMFUNCS): Ditto.
3116 2004-03-02 Richard Henderson <rth@redhat.com>
3119 * coverage.c (coverage_counter_ref): Set MEM_NOTRAP_P.
3120 * optabs.c (prepare_cmp_insn): Force trapping memories to registers
3121 before the compare, if flag_non_call_exceptions.
3123 2004-03-02 Richard Henderson <rth@redhat.com>
3126 * stmt.c (expand_computed_goto): Do do_pending_stack_adjust before
3127 emitting the label, not after.
3129 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
3131 * config/m68hc11/m68hc11.c (m68hc11_addr_mode): New variable.
3132 (m68hc11_mov_addr_mode): Likewise.
3133 (m68hc11_override_options): Initialize them based on target.
3134 (register_indirect_p): Allow a MEM for indirect addressing modes and
3135 use flags to control what is allowed.
3136 (m68hc11_small_indexed_indirect_p): Use m68hc11_mov_addr_mode for
3137 supported addressing modes.
3138 (m68hc11_register_indirect_p): Use m68hc11_addr_mode.
3139 (go_if_legitimate_address_internal): Likewise.
3140 (m68hc11_indirect_p): Likewise and check the mode.
3141 (print_operand): Allow a (MEM (MEM)) and generate indirect addressing.
3143 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
3145 * builtins.c (BUILTIN_SETJMP_FRAME_VALUE): Remove.
3146 (expand_builtin_setjmp_setup): Use
3147 targetm.builtin_setjmp_frame_value instead of
3148 BUILTIN_SETJMP_FRAME_VALUE.
3149 * system.h (BUILTIN_SETJMP_FRAME_VALUE): Poison.
3150 * target-def.h (TARGET_BUILTIN_SETJMP_FRAME_VALUE): New.
3151 (TARGET_INITIALIZER): Add TARGET_BUILTIN_SETJMP_FRAME_VALUE.
3152 * target.h (gcc_target): Add builtin_setjmp_frame_value.
3153 * targhooks.c (default_builtin_setjmp_frame_value): New.
3154 * targhooks.h: Add a prototype for
3155 default_builtin_setjmp_frame_value.
3156 * doc/tm.texi (BUILTIN_SETJMP_FRAME_VALUE): Change to
3157 TARGET_BUILTIN_SETJMP_FRAME_VALUE.
3159 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
3161 * config/m68hc11/m68hc11.md (move peephole2): New peepholes to optimize
3163 (add peepholes): New peepholes to optimize sequences adding small
3165 (bset peepholes): New peepholes to transform an OR in a bset form
3166 (bclr peepholes): Likewise for bclr form.
3167 (cmp peepholes): New peepholes to avoid register copies when comparing.
3169 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
3171 * config/m68hc11/m68hc11.md ("*pushdi_internal"): New insn and split
3172 to separate push from moves.
3173 ("*pushdf_internal"): Likewise.
3174 ("*pushsf_internal"): Likewise.
3175 ("*pushsi_internal"): Likewise.
3176 ("movdi_internal"): Use define_insn_and_split; non push operand.
3177 ("movdf_internal"): Likewise.
3178 ("movsf_internal"): Likewise.
3179 ("movsi_internal"): Likewise.
3180 ("*movhi_68hc12", "*addhi3_68hc12"): Fix and tune constraints
3181 ("*addhi3", "*subhi3", "*andhi3_mem", "*iorhi3_mem"): Likewise.
3182 ("*ashlsi3_const1", "*lshrsi3_const1"): Likewise.
3184 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
3186 * config/m68hc11/m68hc11.md ("tstqi_z_used"): Use define_insn_and_split.
3187 ("cmphi_z_used", "cmpqi_z_used"): Likewise.
3188 ("movstrictsi", "movstricthi", "movstrictqi"): Likewise.
3189 ("anddi3", "andsi3", "iordi3", "iorsi3"): Likewise.
3190 ("xordi3", "xorsi3", "*logicalsi3_zexthi"): Likewise.
3191 ("*logicalsi3_zextqi", "*logicalhi3_zexthi_ashift8"): Likewise.
3192 ("logicalhi3_zexthi", "*logicalsi3_silshr16"): Likewise.
3193 ("*logicalsi3_silshl16", "*logicalsi3_silshl16_zext"): Likewise.
3194 ("*ashldi3_const32", "*ashldi3_const1", "addsi_silshr16"): Likewise.
3195 ("addsi_andshr16", "*ashlsi3_const16_zexthi"): Likewise.
3196 ("*lshrdi3_const32", "*lshrdi_const1"): Likewise.
3198 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
3200 * config/m68hc11/m68hc11.md (SOFT_TMP_REGNUM): Define.
3201 (SOFT_XY_REGNUM): Define.
3202 (cmp split): Use the above instead of hard coded numbers.
3203 (8-bit op split): No need to check the mode; allow Q_REG.
3204 (ashift split): Adjust the first operand if it uses the SP and we
3205 are pushing the shifted value.
3206 (plus shift split): Fix when a source is in register D+X.
3207 ("doloop_end"): Pass dummy arguments to gen_rtx_NE.
3209 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
3211 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix when
3212 comparing with Z register.
3214 2004-03-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3216 * cfgloop.h (struct loop_desc): Removed.
3217 (struct loop): Fields simple, desc and has_desc removed.
3218 (simple_loop_p, count_loop_iterations): Declaration removed.
3219 * cfgloopanal.c (struct unmark_altered_insn_data): Removed.
3220 (unmark_altered, blocks_invariant_registers, unmark_altered_insn
3221 blocks_single_set_registers, invariant_rtx_wrto_regs_p_helper,
3222 invariant_rtx_wrto_regs_p, test_for_iteration, constant_iterations,
3223 simple_loop_exit_p, variable_initial_value, variable_initial_values,
3224 simple_condition_p, simple_increment, count_strange_loop_iterations,
3225 inverse, fits_in_mode_p, simple_loop_p, count_loop_iterations):
3227 * loop-iv.c (check_simple_exit, find_simple_exit): Update comments.
3229 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
3231 * genattrtab.c: Don't handle MATCH_INSN.
3232 * genrecog.c: Likewise.
3233 * gensupport.c: Likewise.
3234 * rtl.def (match_insn): Remove.
3235 * doc/md.texi (match_insn, match_insn2): Remove.
3237 2004-03-02 Mark Mitchell <mark@codesourcery.com>
3239 * doc/c-tree.texi (DECL_ASSEMBLER_NAME): Mention that using this
3240 macro results in memory allocation.
3242 2004-03-02 David O'Brien <obrien@FreeBSD.org>
3244 * config/freebsd-spec.h (FBSD_DYNAMIC_LINKER): Add.
3245 * config/alpha/freebsd.h (SUBTARGET_EXTRA_SPECS): Define
3246 %(fbsd_dynamic_linker),
3247 (LINK_SPEC): Use %(fbsd_dynamic_linker), and sync style with
3248 config/i386/freebsd.h
3249 * config/arm/freebsd.h: Ditto.
3250 * config/i386/freebsd.h: Ditto.
3251 * config/i386/freebsd64.h: Ditto.
3252 * config/ia64/freebsd.h: Ditto.
3253 * config/rs6000/sysv4.h: Ditto.
3254 * config/sparc/freebsd.h: Ditto.
3256 2004-03-02 Loren James Rittle <ljrittle@acm.org>
3258 * gcc/doc/install.texi (*-*-freebsd*): Update target information.
3260 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
3262 * rtl.def (define_combine): Remove.
3264 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
3266 * config/h8300/h8300.md: Tweak formatting.
3268 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
3270 * config/h8300/h8300.md (*cmphi_h8300): Rename to
3272 (*cmphi_h8300hs): Rename to *cmphi_h8300hs_znvc.
3274 2004-03-01 Mark Mitchell <mark@codesourcery.com>
3277 * gcc.c (process_command): Remove const-qualification from argv.
3280 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
3282 * config/h8300/h8300.md (pushqi1_h8300hs): Rename to
3283 pushqi1_h8300hs_advanced. Adjust its caller.
3284 (pushhi1_h8300hs): Rename to pushhi1_h8300hs_advanced.
3287 2004-03-02 Nicolas Roche <roche@act-europe.fr>
3289 * Makefile.in (install-libgcc, install-multilib): Pass
3290 mkinstalldirs var to libgcc.mk.
3292 2004-03-01 Kazu Hirata <kazu@cs.umass.edu>
3294 * system.h (DBX_OUTPUT_STANDARD_TYPES): Poison.
3295 * doc/tm.texi (DBX_OUTPUT_STANDARD_TYPES): Remove.
3297 2004-03-01 Kazu Hirata <kazu@cs.umass.edu>
3299 * config/h8300/h8300.c (gtle_operator): Accept GT and LE.
3300 * config/h8300/h8300.md: Split several peephole2's, each into
3303 2004-03-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3305 * dominance.c (recount_dominator): Handle postdominators.
3307 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
3309 * config/mips/mips-protos.h (enum mips_symbol_type): Move from mips.h.
3310 (NUM_SYMBOL_TYPES): Likewise.
3311 (SYMBOL_64_HIGH, SYMBOL_64_MID, SYMBOL_64_LOW): New symbol types.
3312 (mips_unspec_address): Declare.
3313 (mips_gotoff_page, mips_gotoff_global): Delete.
3314 * config/mips/mips.h (PREDICATE_CODES): Add general_symbolic_operand.
3315 * config/mips/mips.c (enum mips_symbol_type, NUM_SYMBOL_TYPES): Delete.
3316 (mips_symbolic_constant_p, mips_symbolic_address_p)
3317 (mips_symbol_insns): Handle new symbol types.
3318 (general_symbolic_operand): New predicate.
3319 (mips_unspec_address): Make extern.
3320 (mips_gotoff_page, mips_gotoff_global): Delete.
3321 (override_options): Allow -mabi=64 -mno-abicalls -mexplicit-relocs.
3322 Handle new symbol types.
3323 * config/mips/mips.md (*lea_high64, *lea64): New patterns.
3324 (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_disp[sd]i): Call
3325 mips_unspec_address directly.
3326 * doc/invoke.texi: Remove the -mabi=64 -mno-abicalls exception from
3327 the documentation of -mexplicit-relocs.
3329 2004-03-01 Jeff Law <law@redhat.com>
3331 * fold-const.c (fold): An equality comparison of a non-weak object
3332 against zero has a known result. Similarly an equality comparison
3333 of the address of two non-weak, unaliased symbols has a known result.
3335 * ggc-page.c (struct page_entry): New field PREV.
3336 (ggc_alloc): Update PREV field appropriately.
3337 (sweep_pages): Likewise.
3338 (ggc_free): Likewise. Use PREV field rather than loop to
3339 improve ggc_free performance.
3341 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
3343 * config/mips/mips.c (mips_output_division): Use the division
3344 instruction to fill the delay slot of a zero check.
3345 (mips_idiv_insns): Adjust accordingly.
3347 2004-03-01 Nathanael Nerode <neroden@gcc.gnu.org>
3349 * config.gcc: Create a default tmake_file for linux, and use
3350 it in all but two linux clauses. Comment those two.
3352 2004-03-01 Paolo Bonzini <bonzini@gnu.org>
3354 * combine.c (try_combine): Do not refer to is_replaced.
3355 (gen_lowpart_for_combine): Perverse subregs now have a
3356 more politically correct name.
3357 * cse.c (cse_insn): Likewise.
3358 * jump.c: Fix bogus reference to delete_insn.
3360 2004-02-29 Mark Mitchell <mark@codesourcery.com>
3363 * dwarf2out.c (gen_enumeration_type_die): Output all enumeration
3364 constants as signed values.
3367 * c-tree.h (readonly_warning): Rename to ...
3368 (readonly_error): ... this.
3369 * c-typeck.c (build_unary_op): Adjust accordingly.
3370 (readonly_warning): Rename to ...
3371 (readonly_error): ... this and issue errors, not warnings.
3372 (build_modify_expr): Call readonly_error, not readonly_warning.
3373 (c_expand_asm_operands): Likewise.
3374 * tree-inline.c (optimize_inline_calls): Do not inline functions
3375 after errors have occurred.
3377 2004-02-29 Nathanael Nerode <neroden@gcc.gnu.org>
3379 * configure.ac: Rearrange some threading code for clarity;
3380 add section comment.
3381 * configure: Regenerate.
3383 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
3385 * passes.c, config/frv/frv.c, config/sh/sh.c: Fix comment
3387 * doc/cppopts.texi: Fix a typo.
3389 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
3391 * config/i386/i386.md: Fix formatting.
3393 2004-02-29 Nathanael Nerode <neroden@gcc.gnu.org>
3395 * configure.ac: Add some comments delineating sections of code.
3397 * doc/install.texi: Note that libada uses autoconf 2.57 also.
3399 * doc/install.texi: Fix idiot typo in previous commit.
3401 * doc/install.texi: Update for conversion of intl to autoconf 2.57.
3403 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
3405 * config/h8300/h8300.md: Add comments about peephole2's.
3407 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
3409 * config/h8300/h8300.md: Tweak operand numbers of some
3412 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
3414 * config/h8300/h8300.md: Tweak comments about peephole2's.
3416 2004-02-29 Waldek Hebisch <hebisch@math.uni.wroc.pl>
3419 * function.c (uninitialized_vars_warning): Use DECL_RTL_SET_P
3420 instead of testing whether DECL_RTL is not NULL.
3422 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
3424 * config/sh/sh.c: Fix formatting.
3426 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
3428 * config/sh/sh.c: Convert to ISO-C.
3430 2004-02-28 Andrew Pinski <pinskia@physics.uc.edu>
3432 * c-typeck.c (tagged_types_tu_compatible_p): Fix pasto in
3435 * config/darwin.h (machopic_finish): Output stub even if the
3436 symbol is already defined.
3438 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3440 * pa64-hpux.h (LIB_SPEC): Fix linking under HP-UX 11.00 with -p and -pg.
3442 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
3444 * genattr.c (main): Don't define
3445 TRADITIONAL_PIPELINE_INTERFACE or DFA_PIPELINE_INTERFACE.
3446 * system.h (TRADITIONAL_PIPELINE_INTERFACE): Poison.
3447 (DFA_PIPELINE_INTERFACE): Likewise.
3448 * doc/tm.texi (TRADITIONAL_PIPELINE_INTERFACE): Remove.
3449 (DFA_PIPELINE_INTERFACE): Likewise.
3451 2004-02-28 Richard Sandiford <rsandifo@redhat.com>
3453 * config/mips/mips.md (tstsi, tstdi): Delete.
3455 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3457 * config/mips/mips.c (override_options): Remove an obsolete
3458 duplicate definition of the "e" constraint.
3459 * config/mips/mips.h: Update a comment accordingly.
3461 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3463 * config/mips/mips.md: Complete the unfinished R4000
3464 multiply/shift errata workaround. Improve documentation.
3465 (hazard): Use TARGET_FIX_R4000 to decide whether an "imul" instruction
3467 (mulsi3, mulsi3_internal, mulsi3_r4000): Use TARGET_FIX_R4000.
3468 (muldi3, muldi3_internal): Likewise.
3469 (muldi3_internal2): Remove, replacing with...
3470 (muldi3_mult3, muldi3_r4000): ...these new patterns.
3471 (mulsidi3): Take the errata into account.
3472 (mulsidi3_32bit): Remove, replacing with...
3473 (mulsidi3_32bit_internal, mulsidi3_32bit_r4000): ...these new patterns.
3474 (mulsidi3_64bit, mulsidi3_64bit_parts): Disable if TARGET_FIX_R4000.
3475 (umulsidi3): Take the errata into account.
3476 (umulsidi3_32bit): Remove, replacing with..
3477 (umulsidi3_32bit_internal, umulsidi3_32bit_r4000): ...these patterns.
3478 (umulsi3_highpart, umulsi3_highpart_internal): Disable if
3480 (smulsi3_highpart, smulsi3_highpart_internal): Likewise.
3481 (smuldi3_highpart, umuldi3_highpart): Likewise.
3482 * doc/invoke.texi: Document the errata workaround.
3484 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3486 * config/mips/mips-protos.h (mips_idiv_insns): Declare.
3487 * config/mips/mips.h (MASK_FIX_SB1): Bump.
3488 (MASK_FIX_R4000, TARGET_FIX_R4000): New macros.
3489 (TARGET_SWITCHES): Add -mfix-r4000 and -mno-fix-r4000.
3490 * config/mips/mips.c (mips_idiv_insns): New function.
3491 (override_options): Make -march=r4000 imply -mfix-r4000 by default.
3492 (mips_output_division): Add a workaround for the R4000 divide/shift
3494 * config/mips/mips.md (length): Use mips_idiv_insns() to calculate
3495 the length of an "idiv" instruction.
3496 * doc/invoke.texi: Document the new switches.
3498 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
3500 * doc/tm.texi (IS_COSTLY_DEPENDENCE): Change to
3501 TARGET_SCHED_IS_COSTLY_DEPENDENCE.
3503 2004-02-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3505 PR optimization/14229
3506 * cfgrtl.c (rtl_tidy_fallthru_edge): Do not fail for !onlyjump jump.
3508 2004-02-28 Eric Botcazou <ebotcazou@act-europe.fr>
3510 * fold-const.c (fold): Strip NOPs that change the signedness
3511 for RSHIFT too. Expand comment.
3513 2004-02-27 Ian Lance Taylor <ian@wasabisystems.com>
3515 PR optimization/7871
3516 * flow.c (mark_set_1): Don't add LOG_LINKS for global registers
3517 from or to call insns.
3519 2004-02-27 Eric Botcazou <ebotcazou@libertysurf.fr>
3521 PR optimization/7871
3522 * flow.c (propagate_one_insn): Interpret calls as setting global
3523 registers, not merely clobbering them.
3525 2004-02-27 Dale Johannesen <dalej@apple.com>
3527 * config/darwin.c (machopic_output_possible_stub_label): Remove.
3528 config/darwin-protos.h: Ditto.
3529 config/darwin.h: Remove call to it.
3530 * combine.c (distribute_notes): Do not place a REG_DEAD note
3531 when value is both set and used.
3533 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
3535 * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
3537 * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
3538 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
3540 2004-02-27 Andrew Pinski <apinski@apple.com>
3542 * c-typeck.c (tagged_types_tu_compatible_p) <ENUMERAL_TYPE>:
3543 Speedup common case of the type values being in the same order.
3545 2004-02-27 Steve Ellcey <sje@cup.hp.com>
3547 * config/ia64/ia64.h (no-inline-float-divide): New option.
3548 * config/ia64/ia64.h (no-inline-int-divide): New option.
3549 * config/ia64/ia64.h (no-inline-sqrt): New option.
3550 (TARGET_DEFAULT): Add MASK_INLINE_FLOAT_DIV_THR to define.
3551 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
3552 * config/ia64/ia64.c (ia64_override_options): Modify error
3553 checking for inlined division/sqrt.
3555 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
3557 * bb-reorder.c, cfgbuild.c, diagnostic.c, explow.c, profile.c,
3558 ra-build.c, read-rtl.c, tracer.c, unwind-dw2-fde-glibc.c,
3559 value-prof.c, config/darwin-protos.h, config/frv/frv-abi.h,
3560 config/i386/pmmintrin.h, config/pa/pa-hpux.h: Update
3563 2004-02-27 Paul Brook <paul@codesourcery.com>
3565 * function.c (assign_parms): Don't count pretend args for alignment.
3567 2004-02-27 Richard Henderson <rth@redhat.com>
3569 * passes.c: New file.
3570 * Makefile.in (OBJS-common): Add it.
3571 * diagnostic.c (rtl_dump_and_exit): Move decl ...
3572 * flags.h (rtl_dump_and_exit): ... here.
3573 * output.h (size_directive_output, last_assemble_variable_decl):
3575 * rtl.h (reg_alloc): Move from toplev.c.
3576 * toplev.c (HAVE_conditional_execution, DUMPFILE_FORMAT,
3577 struct dump_file_info, enum dump_file_index, dump_file_tbl,
3578 open_dump_file, close_dump_file, rest_of_decl_compilation,
3579 rest_of_type_compilation, rest_of_handle_final,
3580 rest_of_handle_delay_slots, rest_of_handle_stack_regs,
3581 rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
3582 rest_of_handle_new_regalloc, rest_of_handle_old_regalloc,
3583 rest_of_handle_regrename, rest_of_handle_reorder_blocks,
3584 rest_of_handle_sched, rest_of_handle_sched2, rest_of_handle_regmove,
3585 rest_of_handle_tracer, rest_of_handle_if_conversion,
3586 rest_of_handle_if_after_combine, rest_of_handle_web,
3587 rest_of_handle_branch_prob,
3588 rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
3589 rest_of_handle_addressof, rest_of_handle_sibling_calls,
3590 rest_of_handle_jump_bypass, rest_of_handle_inlining,
3591 rest_of_handle_null_pointer, rest_of_handle_combine,
3592 rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
3593 rest_of_handle_gcse, rest_of_handle_loop_optimize,
3594 rest_of_handle_loop2, rest_of_compilation): Move to passes.c.
3595 (decode_d_option): Use enable_rtl_dump_file.
3596 (compile_file, finalize, do_compile): Move profile+combine+graph
3597 cleanup to finish_optimization_passes.
3598 * toplev.h (init_optimization_passes, finish_optimization_passes,
3599 enable_rtl_dump_file): Declare.
3601 2004-02-27 Eric Botcazou <ebotcazou@act-europe.fr>
3602 Roger Sayle <roger@eyesopen.com>
3604 * fold-const.c (fold): Revert 2004-02-25 change. Use the original
3605 operands to build a tree with swapped operands.
3606 * expr.c (expand_expr_real) <MAX_EXPR>: Consistently use the
3607 'unsignedp' predicate to specify the signedness.
3609 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
3611 * c-decl.c, c-ppoutput.c, combine.c, cppfiles.c, dwarf2out.c,
3612 expr.c, fold-const.c, gcc.c, haifa-sched.c, loop-iv.c,
3613 params.def, read-rtl.c, rtl.c, rtlanal.c, toplev.c: Fix
3614 comment typos and formatting. Follow spelling conventions.
3616 2004-02-26 Aldy Hernandez <aldyh@redhat.com>
3618 * config/rs6000/rs6000.md: Add fixuns_truncsfsi2 and
3621 * config/rs6000/spe.md: Delete spe_efsctuiz.
3622 Add spe_fixuns_truncsfsi2.
3623 Add spe_fix_truncsfsi2.
3625 2004-02-26 Eric Christopher <echristo@redhat.com>
3627 * c-lex.c (c_lex_string_translate): New variable.
3628 (lex_string): Use to determine string translation.
3629 * c-pragma.h: Prototype.
3630 * c-parse.in (start_string_translation): New. Set above.
3631 (stop_string_translation): Ditto.
3632 (attribute, attribute_list, asm_def, asm_stmt,
3633 asm_operand): Use above functions.
3634 * cp/parser.c (cp_parser_declaration): Translate strings
3635 unless token is RID_EXTERN. Set c_lex_string_translate
3637 (cp_parser_asm_definition): Only translate argument strings
3639 (cp_parser_asm_operand_list): Ditto.
3640 (cp_parser_attribute_list): Do not translate attribute strings.
3642 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
3644 * stmt.c (expand_start_case_dummy): Remove.
3645 * tree.h: Remove the corresponding prototype.
3647 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
3649 * builtins.c (apply_args_register_offset): Remove.
3650 * tree.h: Remove the corresponding prototype.
3652 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
3654 * stor-layout.c (is_pending_size): Remove.
3655 * tree.h: Remove the corresponding prototype.
3657 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
3659 * recog.c (validate_replace_src): Remove.
3660 * recog.h: Remove the corresponding prototype.
3662 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
3664 * calls.c: Don't reference FINAL_REG_PARM_STACK_SPACE or
3665 MAYBE_REG_PARM_STACK_SPACE.
3666 * function.c: Likewise.
3667 * system.h (FINAL_REG_PARM_STACK_SPACE): Poison.
3668 (MAYBE_REG_PARM_STACK_SPACE): Likewise.
3669 * doc/tm.texi (FINAL_REG_PARM_STACK_SPACE): Remove.
3670 (MAYBE_REG_PARM_STACK_SPACE): Likewise.
3672 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
3674 * c-decl.c (c_expand_deferred_function): Remove.
3675 * c-tree.h: Remove the corresponding prototype.
3677 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
3679 * postreload.c (reload_cse_move2add): Generate just a PLUS
3680 instead of an entire SET.
3682 2004-02-26 Jan Hubicka <jh@suse.cz>
3684 * config.gcc: Add support for nocoma/prescott/pentium-m/pentium3m
3686 * i386.c (override_options): Add support for new CPUs.
3687 * i386.h (TARGET_CPU_DEFAULT_NAMES): New names.
3688 (TARGET_CPU_DEFAULT_pentium_m, TARGET_CPU_DEFAULT_pentium4e): New
3690 * invoke.texi: Extend documentation of -mtune/-march for new CPUs.
3692 2004-02-26 Bob Wilson <bob.wilson@acm.org>
3694 * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define __xtensa__.
3696 2004-02-26 Eric Botcazou <ebotcazou@act-europe.fr>
3698 * config/sparc/sparc-protos.h (sparc_emit_floatunsdi): Add 'mode'.
3699 (sparc_emit_fixunsdi): New prototype.
3700 * config/sparc/sparc.c (sparc_emit_floatunsdi): Use 'mode' argument.
3701 (sparc_emit_fixunsdi): New function.
3702 * config/sparc/sparc.md (floatunsdisf2): Use 'general_operand' for
3703 operand 1. Pass SFmode to sparc_emit_floatunsdi.
3704 (floatunsdidf2): Use 'general_operand' for operand 1. Pass DFmode
3705 to sparc_emit_floatunsdi.
3706 (fixuns_truncsfdi2): New expander.
3707 (fixuns_truncdfdi2): Likewise.
3709 2004-02-26 Alan Modra <amodra@bigpond.net.au>
3711 * gcse.c (delete_null_pointer_checks_1): Do not delete CC setter
3714 2004-02-25 Richard Henderson <rth@redhat.com>
3716 * explow.c (force_reg): Call mark_reg_pointer as appropriate.
3717 * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't
3718 use (op0-op1) == 0 if op0 is a pointer.
3719 * config/alpha/alpha.md (cmpdi): Use some_operand.
3720 (three comparison combine splits): Remove.
3722 2004-02-25 Richard Henderson <rth@redhat.com>
3725 * c-common.c (handle_alias_attribute): Reject the attribute if
3726 current_function_decl is set.
3728 2004-02-25 Kelley Cook <kcook@gcc.gnu.org>
3730 * config.gcc: Add comment describing extra_gcc_objs.
3731 i[34567]86-*-cygwin*): Replace host_extra_gcc_objs with extra_gcc_objs.
3732 * configure.ac (extra_gcc_objs): New substitution variable.
3733 (host_extra_gcc_objs): Don't substitute.
3734 * configure: Regenerate.
3735 * Makefile.in: Use extra_gcc_objs.
3737 2004-02-25 Kelley Cook <kcook@gcc.gnu.org>
3739 * doc/contrib.texi: Add an entry for myself.
3741 2004-02-25 Jan Hubicka <jh@suse.cz>
3743 * basic-block.h (make_eh_edge, break_superblocks): Declare.
3744 * cfgbuild.c (make_eh_edge): Make global.
3745 * cfglayout.c (break_superblocks): Likewise; fix memory leak.
3746 * except.c (build_post_landing_pads, connect_post_landing_pads,
3747 dw2_build_landing_pads, sjlj_emit_function_enter,
3748 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
3749 sjlj_build_landing_pads): Update CFG.
3750 (emit_to_new_bb_before): New function.
3751 (finish_eh_generation): Do not rebuild the CFG.
3753 2004-02-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3755 * config.gcc (hppa*-*-*, parisc*-*-*): Add MASK_BIG_SWITCH to all
3756 target_cpu_default defines.
3757 * pa-hpux.h (TARGET_DEFAULT): Add MASK_BIG_SWITCH to define.
3758 * pa.h (TARGET_DEFAULT): Likewise.
3760 2004-02-25 Eric Botcazou <ebotcazou@act-europe.fr>
3762 * fold-const.c (fold): Treat MAX_EXPR and MIN_EXPR like
3763 comparisons with regard to signedness.
3765 2004-02-25 Richard Earnshaw <rearnsha@arm.com>
3767 * arm.c (thumb_legitimize_address): New function.
3768 * arm-protos.h: Prototype it.
3769 * arm.h (THUMB_LEGITIMIZE_ADDRESS): Define.
3770 (LEGITIMIZE_ADDRESS): Use it.
3772 2004-02-25 J"orn Rennecke <joern.rennecke@superh.com>
3774 * reload1.c (reload): Only spill eliminable register with multiple
3775 adjacent elimination alternatives if all alternatives fail.
3777 2004-02-25 Richard Earnshaw <rearnsha@arm.com>
3779 * arm.c (arm_legitimate_index_p): For QImode the range of an offset
3780 is -4095...+4095 inclusive.
3782 2004-02-25 Eric Botcazou <ebotcazou@libertysurf.fr>
3784 * doc/install.texi (sparc-sun-solaris2* specific notes): Document
3785 the bootstrap failure with Sun CC 5.4 and 5.5.
3787 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
3789 * cse.c (cse_change_cc_mode_insns): Stop at any instruction
3790 which modifies NEWREG.
3791 (cse_condition_code_reg): Update the mode of CC_REG in
3792 CC_SRC_INSN on our own.
3794 2004-02-24 Michael Matz <matz@suse.de>
3796 * config/i386/i386.c (ix86_comp_type_attributes): Check for
3799 2004-02-24 Richard Henderson <rth@redhat.com>
3801 * toplev.c (dump_file_tbl): Rename from dump_file.
3802 * bb-reorder.c, bt-load.c, cfgcleanup.c, cfglayout.c, cfgloopanal.c,
3803 cfgloopmanip.c, cfgrtl.c, config/arm/arm.c, config/frv/frv.c,
3804 config/i386/i386.c, config/ia64/ia64.c, config/mips/mips.c,
3805 config/sh/sh.c, cse.c, flow.c, ifcvt.c, loop-iv.c, loop-unroll.c,
3806 loop-unswitch.c, output.h, predict.c, profile.c, ra-build.c,
3807 ra-colorize.c, ra-debug.c, ra-rewrite.c, ra.c, regrename.c, reload1.c,
3808 toplev.c, tracer.c, value-prof.c, var-tracking.c, web.c:
3809 s/rtl_dump_file/dump_file/g.
3811 2004-02-24 Aldy Hernandez <aldyh@redhat.com>
3813 * config/rs6000/spe.md (spe_fix_truncsfsi2): Delete.
3814 (spe_fixuns_truncsfsi2): Delete.
3816 * config/rs6000/rs6000.md (fix_truncsfsi2): Delete.
3817 (fixuns_truncsfsi2): Delete.
3819 2004-02-24 Josef Zlomek <zlomekj@suse.cz>
3822 * rtlanal.c (replace_label): Fix replacing labels in constant pool.
3824 2004-02-24 Geoffrey Keating <geoffk@apple.com>
3826 * config/darwin.h (TARGET_HAS_F_SETLKW): Define.
3828 2004-02-24 Jason Merrill <jason@redhat.com>
3830 * tree.c (check_qualified_type): New fn.
3831 (get_qualified_type): Use it. If type already has the desired
3832 quals, just return it.
3833 * tree.h: Declare it.
3835 2003-02-24 Sanjiv Kumar Gupta <sanjivg@noida.hcltech.com>
3837 * target-def.h (TARGET_SCHED_INIT_GLOBAL,
3838 TARGET_SCHED_FINISH_GLOBAL): New macros.
3840 * target.h (md_init_global, md_finish_global): Function
3841 declarations corresponding to new target macros.
3843 * haifa-sched.c (sched_init, sched_finish): Allow target to
3844 call the new schedular hooks.
3846 * flow.c (recompute_reg_usage): Add PROP_DEATH_NOTES flag in
3847 call to update_life_info.
3849 * config/sh/sh.h (OVERRIDE_OPTIONS): Re-enable
3850 flag_schedule_insns for SH4.
3852 * config/sh/sh.c (sh_md_init_global, sh_md_finish_global,
3853 find_set_regmode_weight, find_insn_regmode_weight,
3854 find_regmode_weight), sh_md_init, sh_dfa_new_cycle,
3855 sh_variable_issue, high_pressure, ready_reorder,
3856 rank_for_reorder, swap_reorder, sh_reorder, sh_reorder2): New
3857 functions used to throttle the insn movement in first
3858 scheduling pass for SH.
3860 * gcc/doc/tm.texi: Document TARGET_SCHED_INIT_GLOBAL and
3861 TARGET_SCHED_FINISH_GLOBAL.
3863 2004-02-24 Alexandre Oliva <aoliva@redhat.com>
3865 Implement FR-V FDPIC ABI support for frv-uclinux and frv-linux.
3866 2004-02-05 Alexandre Oliva <aoliva@redhat.com>
3867 * config/frv/frv.c (frv_emit_movsi): Use GOT relocations for
3868 symbols in sections named by the user.
3869 2004-01-30 Alexandre Oliva <aoliva@redhat.com>
3870 * config/frv/linux.h (TARGET_OS_CPP_BUILTINS): New.
3871 2004-01-27 Alexandre Oliva <aoliva@redhat.com>
3872 * config.gcc (frv-*-*linux*): Handle like *-*-linux*.
3873 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove, obviated by
3875 2004-01-20 Alexandre Oliva <aoliva@redhat.com>
3876 * config/frv/frv.md (symGOT2reg_hilo, symGOTOFF2reg_hilo): Add
3877 one more pseudo to further improve code generation.
3878 2004-01-19 Alexandre Oliva <aoliva@redhat.com>
3879 * config/frv/frv.md (movdi_ldd): Introduce explicit indirection
3881 2004-01-16 Alexandre Oliva <aoliva@redhat.com>
3882 * config/frv/frv.c (frv_legitimate_address_p): Added
3883 allow_double_reg_p argument. Adjust all callers. Use it to
3884 decide whether to enable double-register indirect addressing.
3885 (frv_funcdesc_alias_set): Remove.
3886 (frv_expand_fdpic_call): Force non-SYMBOL_REF operand into
3887 register. Emit movdi_ldd.
3888 (ldd_address_operand): New.
3889 * config/frv/frv-protos.h (frv_legitimate_address_p): Adjust.
3890 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Likewise.
3891 (PREDICATE_CODES): Add ldd_address_operand.
3892 * config/frv/frv.md (movdi_ldd): New.
3893 (symGOT2reg_hilo, symGOTOFF2reg_hilo): Use separate pseudo for
3894 intermediate computations if possible.
3895 (symGOTOFF2reg_i): Fix harmless typo.
3896 2003-12-18 Alexandre Oliva <aoliva@redhat.com>
3897 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Cast
3898 relocated p_vaddr to vaddr type.
3899 * config/frv/frv-protos.h (frv_expand_fdpic_call): Return void.
3900 * config/frv/frv.c (frv_get_funcdesc_alias_set): New.
3901 (frv_expand_fdpic_call): Propagate incoming MEM's expr to funcdesc
3902 MEM, or use a funcdesc alias set. Use regular move instead of
3904 (dbl_memory_one_insn_operand): Recognize function descriptors by
3905 type or by alias set, and don't split them.
3906 * config/frv/frv.md (call, call_value): Never use call_internal
3908 (call_internal, call_value_internal): Never match for FDPIC.
3909 (call_fdpicdi, call_fdpicsi, call_value_fdpicdi,
3910 call_value_fdpicsi): Require FDPIC.
3912 2003-12-17 Alexandre Oliva <aoliva@redhat.com>
3913 * config/frv/frv.h (CRT_GET_RFIB_DATA): Define for __FRV_FDPIC__.
3914 * unwind-dw2-fde-glibc.c: Don't include elf-fdpic.h any more.
3915 (_Unwind_IteratePhdrCallback): Adjust type of load_base for FRV
3916 FDPIC. Compute data base address.
3917 * config/frv/linux.h (SUBTARGET_DRIVER_SELF_SPECS): Enable -mfdpic
3918 before the other self-specs are processed.
3919 * config/frv/t-linux (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS):
3921 2003-12-15 Alexandre Oliva <aoliva@redhat.com>
3922 * unwind-dw2-fde-glibc.c: Don't include bits/elf-fdpic.h if
3923 inhibit_libc is defined.
3924 2003-12-12 Alexandre Oliva <aoliva@redhat.com>
3925 * unwind-dw2-fde-glibc.c: Include bits/elf-fdpic.h for
3927 (__RELOC_POINTER): Define.
3928 (_Unwind_IteratePhdrCallback): Use it.
3929 * config/frv/frv.h (Twrite): Define.
3930 (TRANSFER_FROM_TRAMPOLINE): Use it.
3931 * config/frv/linux.h (INVOKE__main): Undefine.
3933 2003-12-05 Richard Sandiford <rsandifo@redhat.com>
3934 * doc/invoke.texi (-mlong-calls, -mlinked-fp): Document FRV options.
3935 (-mlibrary-pic): Emphasize that this option generates EABI code.
3938 2003-11-30 Alexandre Oliva <aoliva@redhat.com>
3939 * config/frv/frv.c (int_2word_operand): Reject LABELs, SYMBOL_REFs
3940 and CONSTs in FDPIC mode.
3941 * gcc/config.gcc (with_cpu): Default to fr400 on frv-*-*linux*.
3942 2003-11-29 Richard Sandiford <rsandifo@redhat.com>
3943 * config/frv/frv.c (move_source_operand): Don't accept symbolic
3945 * config/frv/frv.md (*movhi_internal, *movsi_internal): Use an 'n'
3946 rather than 'i' constraint for the 2-instruction alternative.
3947 (*movsi_2word): New, incorporating existing int_2word_operand splitter.
3948 2003-11-29 Richard Sandiford <rsandifo@redhat.com>
3949 * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Q): Renamed from
3950 EXTRA_CONSTRAINT_FOR_Y.
3951 (EXTRA_CONSTRAINT): Remove handling of 'Y'.
3952 * config/frv/frv.md (*movsi_internal): Remove 'Q' constraint.
3953 (addsi3): Change 'Y' constraint to 'Q'.
3954 2003-11-27 Richard Sandiford <rsandifo@redhat.com>
3955 * reload.c (CONST_POOL_OK_P): New macro.
3956 (find_reloads): Use it to decide whether a constant can be forced
3958 * config/frv/frv.h (LEGITIMATE_PIC_OPERAND_P): Return true if the
3959 constant satisfies got12_operand.
3960 (frv_cannot_force_const_mem): Always return true for TARGET_FDPIC.
3961 (frv_legitimate_address_p): Check for valid unspec offsets using
3962 got12_operand rather than frv_legitimate_fdpic_operand_p.
3963 (frv_legitimate_fdpic_operand_p): Delete.
3964 (frv_emit_movsi): Abort if we try to use the FDPIC register during
3966 (frv_legitimate_constant_p): Return LEGITIMATE_PIC_OPERAND_P if
3968 * config/frv/frv.md (*movdf_double): Add alternatives for CONST_DOUBLE.
3969 2003-11-19 Richard Sandiford <rsandifo@redhat.com>
3970 * config/frv/frv-protos.h (fdpic_operand, fdpic_got12_operand)
3971 (frv_fdpic_fptr_operand): Don't declare here.
3972 * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Y): Call got12_operand
3973 rather than fdpic_got12_operand.
3974 (PREDICATE_CODES): Remove symbolic_operand entry. Add entries for
3975 got12_operand and const_unspec_operand.
3976 * config/frv/frv.c (got12_operand): Renamed from fdpic_got12_operand.
3977 (gpr_or_int12_operand, dbl_memory_one_insn_operand): Update calls.
3978 (symbolic_operand): Remove.
3979 (const_unspec_operand): New predicate.
3980 * config/frv/frv.md (*movsi_got): Use got12_operand.
3981 (*movsi_high_got, *movsi_lo_sum_got): Use const_unspec_operand.
3982 2003-11-18 Richard Sandiford <rsandifo@redhat.com>
3983 * config/frv/frv-protos.h (frv_output_addr_const_extra): Remove.
3984 * config/frv/frv.h (OUTPUT_ADDR_CONST_EXTRA): Remove definition.
3985 * config/frv/frv.c (frv_unspec): New structure.
3986 (frv_small_data_reloc_p, frv_const_unspec_p): New functions.
3987 (frv_print_operand_memory_reference): Use frv_const_unspec_p to
3988 validate CONST indices. Use frv_output_const_unspec to print them.
3989 (frv_print_operand): Update call to unspec_got_name. Use
3990 frv_output_const_unspec to print constant unspecs.
3991 (frv_legitimate_fdpic_operand_p): Return true if frv_const_unspec_p.
3992 Reject UNSPECs otherwise.
3993 (unspec_got_name): Take the relocation number as argument, not an
3995 (frv_output_addr_const_extra): Remove, replacing with...
3996 (frv_output_const_unspec): ...this new function.
3997 (frv_find_base_term): Use frv_const_unspec_p & frv_small_data_reloc_p.
3998 (gpr_or_int12_operand): Use fdpic_got12_operand.
3999 (dbl_memory_one_insn_operand): Likewise.
4000 (fdpic_got12_operand): Use frv_const_unspec_p.
4001 (frv_emit_movsi): Use frv_const_unspec_p to check for CONSTs that
4002 are already legitimate. Use frv_small_data_reloc_p when deciding
4003 whether to use HIGH/LO_SUM for R_FRV_GOTOFF12 and R_FRV_GPREL12.
4004 2003-11-18 Alexandre Oliva <aoliva@redhat.com>
4005 * config/frv/t-linux (SHLIB_MAPFILES): Override so as to export...
4006 * config/frv/libgcc-frv.ver: ... frv-specific symbols. New file.
4007 * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
4008 label, for real this time.
4009 * config/frv/frv.c (frv_local_funcdesc_p): Update to new
4010 representation of visibility.
4011 (fdpic_got12_operand, symbolic_operand): Mark unused arguments as
4013 2003-11-17 Richard Sandiford <rsandifo@redhat.com>
4014 * config/frv/frv.h (MASK_LINKED_FP, TARGET_LINKED_FP): New macros.
4015 (TARGET_SWITCHES): Add -mlinked-fp and -mno-linked-fp.
4016 * config/frv/frv.c (frv_override_options): Set MASK_LINKED_FP unless
4017 it was explicitly disabled.
4018 (frv_stack_info): There is no need to save the link register in every
4019 frame unless TARGET_LINKED_FP is true.
4020 (frv_frame_pointer_required): If !TARGET_LINKED_FP, only require a
4021 frame pointer if the stack pointer might change value.
4022 (frv_return_addr_rtx): Check and process "count" argument.
4023 2003-11-14 Richard Sandiford <rsandifo@redhat.com>
4024 * config/frv/frv-protos.h (frv_legitimize_address): Remove.
4025 (frv_find_base_term): Declare.
4026 * config/frv/frv.h (LEGITIMIZE_ADDRESS): Do nothing.
4027 (FIND_BASE_TERM): Define.
4028 (PREDICATE_CODES): Remove pic_register_operand, pic_symbolic_operand,
4029 small_data_register_operand, small_data_symbolic_operand. Add
4031 * config/frv/frv.c (const_small_data_p, plus_small_data_p): Delete.
4032 (frv_print_operand_memory_reference, output_move_single): Remove
4033 special handling for unlegitimized sdata addresses.
4034 (frv_legitimate_address_p): Don't allow sums of SDA_BASE_REG
4035 and symbolic addresses.
4036 (frv_legitimize_address, frv_legitimize_fdpic_address): Delete.
4037 (frv_find_base_term): New function.
4038 (int_2word_operand): Check specifically for symbolic address constants.
4039 (pic_register_operand, pic_symbolic_operand): Delete.
4040 (small_data_register_operand, small_data_symbolic_operand): Delete.
4041 (dbl_memory_one_insn_operand): Don't call plus_small_data_p.
4042 Allow UNSPEC_GOT constants if !TARGET_FDPIC.
4043 (move_source_operand): Only accept CONSTs if they're a two-insn
4045 (fdpic_got12_operand): Don't require TARGET_FDPIC.
4046 (frv_emit_movsi): Legitimize sdata and -mlibrary-pic addresses
4047 using gen_symGOTOFF2reg*.
4048 (frv_ifcvt_rewrite_mem): Remove (plus gr16 ...) special cases.
4049 (frv_rtx_costs): Give all MEM addresses a cost of 0. Give MEMs
4050 themselves a cost of 3 insns.
4051 * config/mips/mips.md (*movsi_got): Allow for !TARGET_FDPIC too.
4052 Change predicate to symbolic_operand.
4053 (*movsi_high_got, *movsi_lo_sum_got): Likewise.
4054 (*movsi_lda_sdata): Delete.
4055 (*movsi_pic, movsi_high_pic, movsi_lo_sum_pic): Delete.
4056 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
4057 * config.gcc: Add t-slibgcc-elf-ver and support --with-cpu for
4059 * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
4061 * config/frv/frv.h (DRIVER_SELF_SPECS): Add blank before
4062 -multilib-library-pic.
4063 (LINK_SPEC): Add -z text for -mfdpic.
4064 * config/frv/frvbegin.c (__ROFIXUP_LIST__): Don't define on FDPIC.
4065 * config/frv/frvend.c (__ROFIXUP_END__): Likewise.
4066 * config/frv/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, LINK_SPEC):
4068 (OPTION_DEFAULT_SPECS, HAS_INIT_SECTION, INIT_SECTION_ASM_OP,
4069 FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION): Define.
4070 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Use
4071 crtstuff-generated files.
4072 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
4073 * config.gcc: Add frv-*-*linux*.
4074 * config/frv/linux.h, config/frv/t-linux: New.
4075 2003-10-06 Alexandre Oliva <aoliva@redhat.com>
4076 * config/frv/frv.h (LINK_SPEC): Pass -melf32frvfd to the linker
4077 when -mfdpic even if a linker script is explicitly listed.
4078 2003-10-02 Alexandre Oliva <aoliva@redhat.com>
4079 * config/frv/frv.c (frv_override_options): Clear asm_out
4080 unaligned_op for SImode on FDPIC.
4081 (frv_emit_movsi): Use compute_reloc_for_constant to compute the
4082 argument passed to decl_readonly_section.
4083 (frv_assemble_integer): Revert 2003-09-30's change, but make the
4084 whole block run with FDPIC even with -fno-PIC.
4085 2003-10-02 Alexandre Oliva <aoliva@redhat.com>
4086 * config/frv/frv.c (frv_cannot_force_const_mem): Don't force
4087 symbol or label plus offset to memory.
4088 (frv_emit_movsi): Emit GPREL only if -mgprel-ro. Emit 32-bit
4089 GOTOFF and GPREL for LABEL_REF.
4090 * config/frv/frv.h (DRIVER_SELF_SPECS): Add -mgprel-ro with
4091 -mfdpic unless -mno-gprel-ro, -fpic or -fpie.
4092 (MASK_GPREL_RO, TARGET_GPREL_RO): New.
4093 (TARGET_SWITCHES): Added gprel-ro and no-gprel-ro.
4094 * doc/invoke.texi: Document them.
4095 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
4096 * config/frv/frv-protos.h (frv_gen_GPsym2reg): Declare.
4097 (frv_splittable_got_operand): Removed.
4098 * config/frv/frv.c (frv_cannot_force_const_mem): Reject HIGH and
4099 LO_SUM. Add comments.
4100 (frv_override_options): Moved enabling of FDPIC to
4101 DRIVER_SELF_SPECS. Don't enable MASK_DWORD.
4102 (frv_local_funcdesc_p): Remove unnecessary heck for flag_pie.
4103 (frv_legitimize_fdpic_address): Don't duplicate logic in
4105 (frv_gen_GPsym2reg): New.
4106 (unspec_got_name): Added gprel.
4107 (frv_expand_fdpic_call): Add support for inlining PLTs.
4108 (fdpic_fptr_operand): Renamed from frv_fdpic_fptr_operand.
4109 (gpr_or_int12_operand): Added GPREL12.
4110 (pic_symbolic_operand): Match even if !flag_pic for FDPIC.
4111 (small_data_symbolic_operand): Fail if FDPIC.
4112 (fdpic_splittable_got_operand): Removed.
4113 (fdpic_got12_operand): Added GPREL12.
4114 (frv_emit_movsi): Reorganize to avoid duplication. Emit GPREL
4115 when appropriate. Fix sdata GOTOFF.
4116 (frv_legitimate_constant_p): Require legitimate PIC operand for
4117 FDPIC with pic, but only a legitimate fdpic operand for non-pic.
4118 (frv_assemble_integer): Move FDPIC funcdesc handling out of
4120 (frv_asm_out_constructor, frv_asm_out_destructor): Abort if
4121 frv_assemble_integer fails.
4122 * config/frv/frv.h (DRIVER_SELF_SPECS): New.
4123 (SUBTARGET_DRIVER_SELF_SPECS): New.
4124 (ASM_SPEC): Don't pass -mno-fdpic.
4125 (LINK_SPEC): Pass -melf32frvfd for FDPIC.
4126 (MASK_INLINE_PLT, TARGET_INLINE_PLT): New.
4127 (TARGET_SWITCHES): Add -minline-plt, -mno-inline-plt and
4128 -multilib-library-pic.
4129 (PREDICATE_CODES): Added fdpic_operand, fdpic_fptr_operand,
4130 condexec_si_media_operator, condexec_sf_add_operator and
4131 condexec_sf_conv_operator. Removed condexec_sf_binary_operator
4132 and condexec_sf_unary_operator.
4133 * config/frv/frv.md (R_FRV_GPREL12, R_FRV_GPRELHI, R_FRV_GPRELLO):
4135 (movsi_got, movsi_high_got, movsi_lo_sum_got): Move before
4136 movsi_internal. Give them internal names. movsi_got has type
4138 (fdpic got splitters): Remove.
4139 (symGPREL2reg, symGPREL2reg_hilo): New.
4140 * config/frv/t-frv (MULTILIB_MATCHES): Don't map -fpic and -fPIC
4141 to -mlibrary-pic. Map -multilib-library-pic to it.
4142 * doc/invoke.texi: -mfdpic, -minline-plt, -multilib-library-pic:
4144 2003-09-28 Alexandre Oliva <aoliva@redhat.com>
4145 * config/frv/frv.c (frv_function_symbol_referenced_p): Declare.
4146 (TARGET_CANNOT_FORCE_CONST_MEM): Define to...
4147 (frv_cannot_force_const_mem): New function.
4148 (const_small_data_p, plus_small_data_p): Update comments on sdata
4150 (frv_override_options): Set flag_pie for FDPIC too.
4151 (frv_conditional_register_usage): Mark gr16 and gr17 as non-fixed,
4152 call-saved registers on FDPIC.
4153 (frv_stack_info): Don't preserve the PIC register on FDPIC, and
4154 don't force LR to be preserved.
4155 (frv_expand_prologue): Likewise.
4156 (frv_asm_output_mi_thunk): Use 12-bit funcdesc gotoff for -fpic.
4157 (frv_frame_pointer_required): Don't force it just because the
4158 FDPIC register is used.
4159 (frv_legitimate_address_p) <CONST>: Accept a legitimate FDPIC
4160 operand only if !condexec_p.
4161 (frv_legitimize_address): Return the FDPIC-legitimized address.
4162 Don't match small data here on FDPIC.
4163 (frv_legitimate_fdpic_operand_p): Don't accept unadorned function
4164 symbols. Use TRUE/FALSE instead of 1/0.
4165 (frv_local_funcdesc_p): New.
4166 (frv_legitimize_fdpic_address): Rewrite to use GOTOFF and 12-bit
4167 immediates when possible.
4168 (pic_symbolic_operand): Accept SYMBOL_REFs and CONSTs in FDPIC.
4169 (dbl_memory_one_insn_operand): Accept addresses that add a REG and
4171 (frv_emit_movsi): Handle FDPIC before small data. Use GOTOFF and
4172 12-bit immediates when possible.
4173 (frv_legitimate_constant_p): In FDPIC, reject SImode operands that
4174 are not legitimate pic operands.
4175 (frv_in_small_data_p): Re-enable for FDPIC.
4176 * config/frv/frv.h (SDA_BASE_REG): Remove comment about FDPIC.
4177 (FRV_GLOBAL_P): Removed.
4178 * config/frv/frv.md: Add modes to CONSTs.
4180 (movsi_lo_sum_got): Use separate matches instead of match_dup.
4181 (movsi_high_pic, movsi_lo_sum_pic): Match on non-FDPIC only.
4182 (fdpic splittable operations): Match on flag_pic != 1.
4183 2003-09-22 Alexandre Oliva <aoliva@redhat.com>
4184 * config/frv/frv.c (frv_asm_out_constructor,
4185 frv_asm_out_destructor): Pass to frv_assemble_integer the size in
4187 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
4188 * config/frv/frv.c (frv_assemble_integer): Reject complex
4189 expressions referencing function SYMBOL_REFs.
4190 * config/frv/frv.c (frv_function_symbol_referenced_p): New.
4191 (move_source_operand): Reject CONSTs that reference function
4192 SYMBOL_REFs on FDPIC.
4193 (frv_emit_movsi): If we get such a CONST, break it up.
4194 * config/frv/frv.h (CPP_SPEC): Define __FRV_FDPIC__ for -mfdpic.
4195 (TRANSFER_FROM_TRAMPOLINE): Use different definitions for FDPIC.
4196 * config/frv/frv.c (frv_print_operand) <I>: Recognize PLUS without
4198 (frv_assemble_integer): Don't use funcdesc for LABEL_REFs.
4199 (frv_trampoline_size): Increase for FDPIC.
4200 * config/frv/frv.h (TRAMPOLINE_ALIGNMENT): Bump to 64 for FDPIC.
4201 (TRANSFER_FROM_TRAMPOLINE): Handle FDPIC trampolines.
4202 * config/frv/frv.c (frv_legitimize_fdpic_address, frv_emit_movsi):
4203 Disable use of GOTOFF for now.
4204 (const_small_data_p, plus_small_data_p, frv_in_small_data_p):
4205 Disable use of small data in FDPIC for now.
4206 (frv_asm_output_mi_thunk): Implement for FDPIC.
4207 * config/frv/frv.h (SDA_BASE_REG): Set to -1 with FDPIC.
4208 * config/frv/frv.c (frv_asm_out_constructor): Use
4209 frv_assemble_integer for FDPIC pointers.
4210 (frv_asm_out_destructor): Likewise.
4211 * config/frv/frv.md (ldd): Fix order of operands. Use
4212 address_operand for input.
4213 2003-09-18 DJ Delorie <dj@redhat.com>
4214 * config/frv/frv.c (frv_legitimate_fdpic_operand_p): Remove UNSPEC_PIC.
4215 (unspec_got_name): Correct typo.
4216 (frv_emit_movsi): Pre-expand splittable GOTs.
4217 (frv_expand_fdpic_call): Rename gen_lddi to gen_ldd.
4218 * config/frv/frv.md (lddi): Fix syntax error, rename to ldd.
4219 (symGOT2reg_hilo, symGOTOFF2reg_hilo): New.
4220 * config/frv/t-frv: Add -mfdpic multilibs.
4221 * config/frv/frv.h (ASM_SPEC): Pass -mfdpic/-mno-fdpic.
4222 (TARGET_SWITCHES): Add -mno-fdpic, fix documentation.
4223 * config/frv/frv.c (frv_override_options): -mfdpic assumes
4224 flag_pic, default to 32-bit pics, require DWORD ops.
4225 (frv_override_options): Add W and Z constraints.
4226 (frv_expand_prologue): No pic prologue for -mfdpic.
4227 (frv_asm_output_mi_thunk): Support -mfdpic (soon).
4228 (frv_print_operand_memory_reference): Handle GOT constants.
4229 (frv_legitimate_address_p): Allow GOT constants.
4230 (frv_legitimize_address): Handle GOT addresses too.
4231 (frv_legitimate_fdpic_operand_p): New.
4232 (frv_legitimize_fdpic_address): New.
4233 (unspec_got_name): New.
4234 (frv_output_addr_const_extra): New.
4235 (frv_expand_fdpic_call): New.
4236 (frv_fdpic_fptr_operand): New.
4237 (gpr_or_int12_operand): Handle GOT operands.
4238 (int_2word_operand): Handle GOT operands.
4239 (fdpic_operand): New.
4240 (fdpic_splittable_got_operand): New.
4241 (fdpic_got12_operand): New.
4242 (frv_emit_movsi): Handle GOT operands.
4243 (frv_assemble_integer): -mfdpic doesn't use rofixups.
4244 (frv_print_operand): Support 'g' code for GOT operands.
4245 * config/frv/frv-protos.h: Add prototypes as needed.
4246 * config/frv/frv.md (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
4247 R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
4248 R_FRV_FUNCDESC_GOTLO, R_FRV_FUNCDESC_VALUE,
4249 R_FRV_FUNCDESC_GOTOFF12, R_FRV_FUNCDESC_GOTOFFHI,
4250 R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12, R_FRV_GOTOFFHI,
4251 R_FRV_GOTOFFLO): New.
4252 (movsi_high_got, movsi_lo_sum_got): New.
4253 (*movsi_pic): Don't use this splitter for -mfdpic.
4254 (addsi3): Allow GOT references also.
4255 (call, call_value): Handle -mfdpic separately.
4256 (call_fdpicdi, call_fdpicsi, lddi, call_value_fdpicdi,
4257 call_value_fdpicsi): New.
4258 (symGOT2reg, symGOT2reg_i, got splitters, symGOTOFF2reg,
4259 symGOTOFF2reg_i): New.
4260 * config/frv/frv.h (MASK_FDPIC): New.
4261 (TARGET_FDPIC): New.
4262 (TARGET_SWITCHES): Add -mfdpic.
4263 (FDPIC_FPTR_REGNO): New.
4265 (OUR_FDPIC_REG): New.
4266 (enum reg_class): Add FDPIC_REGS, FDPIC_FPTR_REGS, and
4268 (REG_CLASS_NAMES): Likewise.
4269 (REG_CLASS_CONTENTS): Likewise.
4270 (EXTRA_CONSTRAINT_FOR_Y): New, for 12-bit GOTs.
4271 (EXTRA_CONSTRAINT): Add it here.
4272 (FRV_GLOBAL_P): New.
4273 (OUTPUT_ADDR_CONST_EXTRA): New.
4275 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
4277 * config/sparc/sparc.h: Remove commented-out definitions of
4278 TARGET_EDOM and GEN_ERRNO_RTX.
4280 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
4282 * df.c, df.h, ra-build.c, ra-rewrite.c, ra.c, web.c: Replace
4283 df_analyse with df_analyze.
4285 2004-02-24 Alan Modra <amodra@bigpond.net.au>
4287 * gcse.c (delete_null_pointer_checks_1): Set stop_insn to end, not
4290 2004-02-23 James E Wilson <wilson@specifixinc.com>
4292 * calls.c (precompute_arguments): Update comment.
4294 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
4296 * et-forest.c: Replace et_occurences with et_occurrences.
4298 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
4300 * cfgloop.h, loop-iv.c, loop-unswitch.c: Replace iv_analyse
4303 2004-02-23 Kelley Cook <kcook@gcc.gnu.org>
4305 * config/i386/i386.c: Rename pni to sse3.
4306 * config/i386/i386.h: Likewise.
4307 * config/i386/i386.md: Likewise.
4308 * config/i386/pmmintrin.h: Likewise.
4309 * doc/extend.texi: Likewise.
4310 * doc/invoke.texi: Likewise.
4312 2004-02-23 Zack Weinberg <zack@codesourcery.com>
4313 Kazu Hirata <kazu@cs.umass.edu>
4315 Remove -fwritable-strings.
4316 * c-common.c (fix_string_type): Don't check
4317 flag_writable_strings.
4318 (fix_string_type): Likewise.
4319 * c-opts.c (set_std_c89): Don't initialize
4320 flag_writable_strings.
4321 (set_std_c99): Likewise.
4322 * common.opt (fwritable-strings): Remove.
4323 * flags.h: Remove the external declaration of
4324 flag_writable_strings.
4325 * opts.c (common_handle_option) <OPT_fwritable_strings>:
4327 * toplev.c (flag_writable_strings): Remove.
4328 (f_options): Remove an entry for writable-strings.
4329 * varasm.c (const_hash_1) <STRING_CST>: Don't check
4330 flag_writable_strings.
4331 (compare_constant) <STRING_CST>: Likewise.
4332 (build_constant_desc): Likewise.
4333 * config/darwin.c (machopic_select_section): Likewise.
4334 * config/arm/arm.c (AOF_ASSEMBLER): Likewise.
4335 * config/arm/pe.c (arm_pe_encode_section_info): Likewise.
4336 * config/iq2000/iq2000.c (iq2000_select_section): Likewise.
4337 * config/mips/mips.c (mips_select_section): Likewise.
4338 (mips_encode_section_info): Likewise.
4339 * config/pa/pa.c (pa_select_section): Likewise.
4340 * config/pa/pa.h (TEXT_SPACE_P): Likewise.
4341 * config/v850/v850.c (v850_select_section): Likewise.
4342 * doc/invoke.texi (-fwritable-strings): Remove.
4343 (-fno-const-strings): Don't mention -fwritable-strings.
4344 * doc/trouble.texi: Don't mention -fwritable-strings.
4346 2003-02-23 Nathanael Nerode <neroden@gcc.gnu.org>
4348 * doc/install.texi: Update for switch of boehm-gc to autoconf 2.57.
4350 2004-02-23 Dale Johannesen <dalej@apple.com>
4352 * config/rs6000.md (movsf_hardfloat): Add POWER form of nop.
4353 (movdf_hardfloat64): Ditto.
4354 (movdf_softfloat64): Ditto.
4356 2004-02-23 Fariborz Jahanian <fjahanian@apple.com>
4357 * config/rs6000/rs6000.c (function_arg): call to
4358 rs6000_mixed_function_arg for DFmode moved to allow
4359 normal DFmode incoming register assignment.
4361 2004-02-23 Dale Johannesen <dalej@apple.com>
4363 * config/rs6000.md (movsf_hardfloat): Accept CTR-to-CTR copy.
4364 (movdf_hardfloat64): Ditto.
4366 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
4368 * convert.c, gcov-io.c, libgcov.c, sched-int.h, sibcall.c,
4369 config/rs6000/linux.h, config/rs6000/rs6000-c.c: Update
4372 2004-02-23 Andrew Pinski <pinskia@physics.uc.edu>
4375 * c-typeck.c (c_expand_return): Change check for VAR_DECL
4376 to use DECL_P instead.
4378 * config/rs6000/linux.h (OS_MISSING_POWERPC64): Define.
4379 * config/rs6000/linux64.h (OS_MISSING_POWERPC64): Define.
4381 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
4383 * Makefile.in (opts.o): Depend on target.h.
4384 * opts.c (decode_options): Use targetm.default_short_enums
4385 instead of DEFAULT_SHORT_ENUMS.
4386 * system.h (DEFAULT_SHORT_ENUMS): Poison.
4387 * target-def.h (TARGET_DEFAULT_SHORT_ENUMS): New.
4388 (TARGET_INITIALIZER): Add TARGET_DEFAULT_SHORT_ENUMS.
4389 * target.h (gcc_target): Add default_short_enums.
4390 * config/cris/cris.h: Remove a comment about
4391 DEFAULT_SHORT_ENUMS.
4392 * config/ip2k/ip2k.h: Likewise.
4393 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Change to
4394 TARGET_DEFAULT_SHORT_ENUMS. Update the description.
4396 2004-02-23 Eric Botcazou <ebotcazou@libertysurf.fr>
4397 Falk Hueffner <falk@debian.org>
4400 * builtins.c (expand_builtin_va_arg): Emit an informative message
4401 if a trap is generated.
4402 * c-typeck.c (build_function_call): Likewise.
4404 2004-02-22 Jakub Jelinek <jakub@redhat.com>
4406 * gcov-io.c (gcov_open) [GCOV_LOCKED]: Use open + fdopen instead of
4408 * libgcov.c: Include sys/stat.h.
4409 * config/rs6000/linux.h (TARGET_HAS_F_SETLKW): Define.
4410 * config/rs6000/linux64.h (TARGET_HAS_F_SETLKW): Define.
4411 * config/sparc/linux.h (TARGET_HAS_F_SETLKW): Define.
4412 * config/sparc/linux64.h (TARGET_HAS_F_SETLKW): Define.
4414 2004-02-22 Kazu Hirata <kazu@cs.umass.edu>
4416 * reorg.c: Remove comments about dead ports.
4418 2004-02-22 Christopher Faylor <cgf@redhat.com>
4420 * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): *Really* specify
4421 extra host object file when targetting cygwin rather than generic
4424 2004-02-22 Josef Zlomek <zlomekj@suse.cz>
4426 Merge from tree-ssa:
4427 2003-11-20 Richard Henderson <rth@redhat.com>
4429 * tree-inline.c (insert_decl_map): New.
4430 (remap_decl, remap_type, remap_block, copy_body_r,
4431 initialize_inlined_parameters, declare_return_variable,
4432 remap_save_expr): Use it.
4434 * function.c (copy_body_r): Add mapping from id->ret_label to
4435 id->ret_label. Revert test for ret_label.
4437 2004-02-22 Jakub Jelinek <jakub@redhat.com>
4439 * genoutput.c (process_template): Strip trailing whitespace in @
4440 templates and issue a warning if there was any.
4442 2004-02-21 Christopher Faylor <cgf@redhat.com>
4444 * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): Specify extra host
4445 object file when targetting cygwin.
4446 * config/i386/t-cygwin (EXTRA_GCC_OBJS): Remove definition since it is
4447 overridden by top-level Makefile.
4449 2004-02-21 Roger Sayle <roger@eyesopen.com>
4451 * config/i386/i386.c (standard_80387_constant_p): Also prefer
4452 the x87's load constant instructions when optimizing for size.
4454 2004-02-21 Kazu Hirata <kazu@cs.umass.edu>
4456 * combine.c (SHIFT_COUNT_TRUNCATED): Remove.
4457 * defaults.h (SHIFT_COUNT_TRUNCATED): Provide the default.
4458 * expmed.c: Assume SHIFT_COUNT_TRUNCATED is always defined.
4459 * fold-const.c: Likewise.
4460 * simplify-rtx.c: Likewise.
4462 2004-02-21 Alan Modra <amodra@bigpond.net.au>
4464 * combine.c (can_combine_p): Don't ignore SETs marked with
4465 REG_EH_REGION notes.
4466 (try_combine): When attemting to fix unrecognized insns, don't
4467 split a PARALLEL that contains the original i2.
4469 2004-02-21 Ziemowit Laski <zlaski@apple.com>
4471 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Refer to
4472 SUBTARGET_OPTION_TRANSLATE_TABLE for architecture-specific options.
4473 * config/i386/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): Define it.
4474 * config/rs6000/altivec.h: #error out if '-maltivec' not specified.
4475 (vector, pixel, bool): #define to __vector, __pixel and __bool.
4476 (__un_args_eq, __bin_args_eq, __tern_args_eq): Move to C-specific
4478 (__altivec_link_error_invalid_argument): Remove prototype; will use
4479 __builtin_altivec_compiletime_error("vec_*") instead.
4480 (vec_*): Fix/complete set of available operation overloads given the
4481 existence of distinct 'vector bool ...' and 'vector pixel' types; tighten
4482 cv-correctness of pointer arguments; in C, always check for correct
4483 argument types before macro expansion.
4484 * config/rs6000/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): New macro
4485 defining Darwin/PowerPC-specific '-f[no-]altivec' and
4486 '-W[no-]altivec-long-deprecated' switches.
4487 * config/rs6000/rs6000-c (rs6000_cpu_cpp_builtins): Pre-define
4488 '__vector', '__pixel' and '__bool' macros using
4489 '__attribute__((altivec(...)))' types.
4490 * config/rs6000/rs6000.c (bool_char_type_node, bool_short_type_node,
4491 bool_int_type_node, pixel_type_node, bool_V16QI_type_node,
4492 bool_V8HI_type_node, bool_V4SI_type_node, pixel_V8HI_type_node):
4494 (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): New, for
4495 handling '-W[no-]altivec-long-deprecated'.
4496 (rs6000_override_options): Handle '-W[no-]altivec-long-deprecated'.
4497 (rs6000_expand_binop_builtin, rs6000_expand_ternop_builtin,
4498 altivec_expand_dst_builtin): Remove casts from integer literals.
4499 (altivec_expand_builtin): Likewise; handle expansion of new
4500 '__builtin_altivec_compiletime_error' function.
4501 (rs6000_init_builtins): Initialize 'vector bool ...' and 'vector pixel'
4502 types, and make them distinct from other vector types; register
4503 '__builtin_altivec_compiletime_error' function.
4504 (print_operand): For 'P', print a full target register name instead of
4506 (rs6000_attribute_table): Add "altivec" attribute.
4507 (rs6000_handle_altivec_attribute): New function.
4508 * config/rs6000/rs6000.h (TARGET_OPTIONS): Describe
4509 '-m[no-]-warn-altivec-long' (which '-W[no-]altivec-long-deprecated'
4511 (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): Forward
4513 (ALTIVEC_BUILTIN_COMPILETIME_ERROR): New built-in enumeration.
4515 2004-02-20 James E Wilson <wilson@specifixinc.com>
4517 * config/ia64/ia64.md (shift_mix4left+1): Delete reload_completed
4519 (shift_mix4left+2): Delete redundant pattern.
4521 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
4523 * alias.c (OUTGOING_REGNO): Don't define the default.
4524 * builtins.c (OUTGOING_REGNO): Likewise.
4525 (INCOMING_REGNO): Likewise.
4526 (apply_args_register_offset): Always use OUTGOING_REGNO.
4527 * combine.c (OUTGOING_REGNO): Likewise.
4528 * sibcall.c (OUTGOING_REGNO): Likewise.
4529 * defaults.h (INCOMING_REGNO): Provide the default.
4530 (OUTGOING_REGNO): Likewise.
4532 2004-02-21 Jan Hubicka <jh@suse.cz>
4534 * params.def (max-peeled-insns, max-completely-peeled-insns,
4535 max-once-peeled-insns): Set to 400.
4537 2004-02-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4540 * dbxout.c (dbxout_parms): Check that DECL_RTL and DECL_INCOMING_RTL
4541 are set for parameters before outputing debugging information.
4543 2004-02-20 Falk Hueffner <falk@debian.org>
4546 * config/alpha/alpha.md (*fix_truncsfsi_ieee): Fix typoed operand
4549 2004-02-20 Per Bothner <per@bothner.com>
4551 * input.h: Don't #include line-map.h. It may cause link problems
4552 with undefined linemap_line_start when line-map.h is included but
4553 line-map.o is not linked, as currently happens with gengtype on
4554 compilers that don't support inline.
4555 * toplev.c: So we do have to explicitly #include line-map.h here.
4557 2004-02-20 Richard Henderson <rth@redhat.com>
4559 * doc/invoke.texi: Add -Wvariadic-macros.
4561 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
4563 * haifa-sched.c (sched_emit_insn): Remove.
4564 * sched-int.h: Remove the corresponding prototype.
4566 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
4569 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
4570 * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
4571 * system.h (DEFAULT_SHORT_ENUMS): Poison.
4572 * config/cris/cris.h: Remove a comment about
4573 DEFAULT_SHORT_ENUMS.
4574 * config/ip2k/ip2k.h: Likewise.
4575 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
4577 2004-02-20 Mohan Embar <gnustuff@thisiscool.com>
4578 Tom Tromey <tromey@redhat.com>
4580 * doc/install.texi: Moved --disable-libgcj and
4581 --with-system-zlib documentation to new section for
4582 Java-specific options.
4583 Added explicit Cross-Compiler-Specific Options subheading.
4584 Added section for Java-specific options.
4586 2004-02-20 Matt Kraai <kraai@alumni.cmu.edu>
4588 * doc/install.texi (Building the Ada compiler): Remove
4591 2004-02-20 James E Wilson <wilson@specifixinc.com>
4593 * toplev.c (dump_file_index, dump_file): Put ce3 before rnreg.
4595 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
4597 * gcc.c (process_command): Allow translation of the copyright
4598 symbol but not the rest of the copyright message.
4599 * gcov.c (print_version): Likewise. Allow translation of the
4600 message about warranty.
4602 2004-02-20 Hans-Peter Nilsson <hp@axis.com>
4604 * config/cris/cris.md ("*andsi_movu"): Correct parentheses in
4606 ("*andsi_clear"): Tweak constraints to not match postincrement.
4607 Adjust the predicate to exclude a volatile memory reference.
4608 ("*andhi_clear"): Ditto. Rename from "*andhi_clear_signed".
4609 ("*andhi_clear_unsigned"): Remove, non-matching pattern.
4611 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
4613 * move-if-change: Remove.
4614 * Makefile.in (s-mlib, c-parse.y, s-check, s-gencheck)
4615 (s-specs, s-options, s-config, s-conditions, s-flags, s-codes)
4616 (s-constants, s-emit, s-recog, s-opinit, s-extract, s-peep)
4617 (s-attr, s-attrtab, s-output, s-genrtl, s-modes, s-preds)
4618 (s-gtyp-gen, s-iov): Use the top level move-if-change.
4619 * objc/Make-lang.in (objc/objc-parse.y): Likewise.
4621 2004-02-19 James E Wilson <wilson@specifixinc.com>
4623 * config/i386/i386.md (doloop_end_internal): Use nonimmediate_operand
4624 for operand2. Add condition that requires register_operand operand2
4627 2004-02-19 Richard Sandiford <rsandifo@redhat.com>
4628 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4630 * config/mips/mips.c (mips_address_insns): Treat BLKmode specially.
4631 * config/mips/mips.md: Expand comment above unaligned loads and stores.
4633 2004-02-19 Richard Henderson <rth@redhat.com>
4635 * Makefile.in (STRICT2_WARN): Add -Wno-variadic-macros.
4636 * tree.c (build0, build1, build2, build3, build4): Split out from...
4637 (build): ... here. Call them.
4638 * tree.h (build, _buildN1, _buildN2, _buildC1, _buildC2): New.
4640 * convert.c (convert_to_integer): Remove extra build argument.
4641 * tree-inline.c (expand_call_inline): Likewise.
4643 2004-02-19 Richard Henderson <rth@redhat.com>
4645 * c-opts.c (warn_variadic_macros): New.
4646 (c_common_handle_option): Set it.
4647 (sanitize_cpp_opts): Copy it to cpp_opts.
4648 * c.opt (Wvariadic-macros): New.
4649 * cpplib.h (struct cpp_options): Add warn_variadic_macros.
4650 * cppinit.c (cpp_create_reader): Initialize it.
4651 * cppmacro.c (parse_params): Check it.
4653 2004-02-19 David Daney <ddaney@avtrex.com>
4655 PR preprocessor/14198
4656 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Add
4657 builtin_assert ("machine=mips")
4659 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
4661 * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
4662 * system.h (DEFAULT_SHORT_ENUMS): Poison.
4663 * config/cris/cris.h: Remove a comment about
4664 DEFAULT_SHORT_ENUMS.
4665 * config/ip2k/ip2k.h: Likewise.
4666 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
4668 2004-02-19 Zack Weinberg <zack@codesourcery.com>
4670 * config/ia64/ia64.c (ia64_function_arg): In big-endian mode,
4671 when passing single SFmode quantities in general registers,
4672 put them in the high half.
4674 2004-02-19 Aldy Hernandez <aldyh@redhat.com>
4676 * doc/md.texi (Standard Names): Document additional dependency on
4679 * optabs.c (ftruncify): Remove.
4680 (expand_fix): Manually inline ftruncify above.
4681 (can_fix_p): Add FIXME note.
4683 2004-02-19 Aldy Hernandez <aldyh@redhat.com>
4685 * config/rs6000/spe.md (spe_fixunssfsi2): Rename to
4686 spe_fixuns_truncsfsi2.
4688 * config/rs6000/rs6000.md (fixunssfsi2): Rename to
4691 2004-02-19 Steve Ellcey <sje@cup.hp.com>
4693 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
4694 * testsuite/gcc.dg/20040219-1.c: New test.
4696 2004-02-19 Ulrich Weigand <uweigand@de.ibm.com>
4698 * config/s390/s390.md ("*subdf3_cc", "*subdf3_cconly", "*subsf3_cc",
4699 "*subsf3_cconly"): Subtraction is not commutative.
4701 2004-02-19 Zack Weinberg <zack@codesourcery.com>
4703 * sdbout.c (preinit_symbols, sdbout_initialized): New statics.
4704 (sdbout_symbol): If called before sdbout_init, queue DECL for
4706 (sdbout_init): Set sdbout_initialized true, process decls
4707 queued earlier by sdbout_symbol.
4708 (sdbout_finish): Use size_t for index variable.
4710 2004-02-19 Jeff Law <law@redhat.com>
4712 * fold-const.c (invert_truthvalue): Do not call invert_tree_comparison
4713 for unordered comparison codes.
4715 2004-02-19 Ian Lance Taylor <ian@wasabisystems.com>
4717 * reload1.c (reload): Correct comment.
4718 (scan_paradoxical_subregs): Remove #if 0 and old comment.
4719 * doc/extend.texi (Local Reg Vars): Remove obsolete comment that
4720 register variables are not used by reload.
4722 2004-02-19 Hans-Peter Nilsson <hp@axis.com>
4725 * config/cris/cris.md ("*andsi_movu", "*andhi_movu"): Tweak
4726 constraints to not match postincrement. Adjust the predicate to
4727 exclude a volatile memory reference.
4729 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
4731 * config/mcore/mcore.h (ASM_OUTPUT_EXTERNAL): Remove.
4733 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
4735 * hooks.c (hook_void_tree_int): Remove.
4736 (hook_void_constcharptr): Likewise.
4737 (hook_int_void_0): Likewise.
4738 * hooks.h: Remove the prototypes for the above three
4740 * targhooks.c (hook_bool_machine_mode_true): Remove.
4741 * targhooks.h: Remove the prototype for
4742 hook_bool_machine_mode_true.
4744 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
4746 * emit-rtl.c (subreg_realpart_p): Remove.
4747 (reorder_insns_with_line_notes): Likewise.
4748 (end_full_sequence): Likewise.
4749 * rtl.h: Remove the prototype for the above functions.
4751 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
4753 * config/arc/arc.h, config/arm/arm.h, config/frv/frv.h,
4754 config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
4755 config/iq2000/iq2000.h, config/m32r/m32r.h,
4756 config/pdp11/pdp11.h, config/sparc/sparc.h,
4757 config/xtensa/xtensa.h: Remove commented-out or useless
4758 definitions of CASE_VECTOR_PC_RELATIVE.
4760 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
4762 * loop.c (all_sets_invariant_p): Remove.
4764 2004-02-19 Eric Botcazou <ebotcazou@libertysurf.fr>
4767 * config/sparc/sparc.h (NPARM_REGS): Delete.
4768 (BASE_RETURN_VALUE_REG): Likewise.
4769 (BASE_OUTGOING_VALUE_REG): Likewise.
4770 (BASE_PASSING_ARG_REG): Likewise.
4771 (BASE_INCOMING_ARG_REG): Likewise.
4772 * config/sparc/sparc.c (sparc_strict_argument_naming): Test
4773 TARGET_ARCH64, not TARGET_V9.
4774 (function_arg_slotno): Dispatch based on the mode class.
4775 Handle vector modes like floating-point modes.
4776 (function_arg_record_value_1): Handle vector types like
4777 floating-point types.
4778 (function_arg_record_value_2): Likewise.
4779 Calculate regno after mode transformation.
4780 (function_arg): Handle vector modes like floating-point modes.
4781 (function_arg_partial_nregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX.
4782 If ARCH64, do not recheck alignment.
4783 (function_arg_pass_by_reference): Reorder the conditions.
4784 (sparc_return_in_memory): Move after function_arg_padding.
4785 Implement calling conventions for vector modes.
4786 (sparc_struct_value_rtx): Move after sparc_return_in_memory.
4787 (function_value): Move scope of 'regbase'.
4788 Implement calling conventions for vector modes.
4789 (sparc_builtin_saveregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX
4790 and BASE_INCOMING_ARG_REG by SPARC_INCOMING_INT_ARG_FIRST.
4791 (sparc_va_arg): Use function_arg_pass_by_reference to test whether
4792 the argument is passed by reference.
4793 (sparc_type_code): Handle vector types.
4795 2004-02-19 Alan Modra <amodra@bigpond.net.au>
4797 * function.c (assign_parms): When building decl_rtl for
4798 SPLIT_COMPLEX_ARGS, ensure inner modes of concat match outer.
4800 2004-02-19 Olivier Hainque <hainque@act-europe.fr>
4802 * expr.c (is_aligning_offset): Check if we are aligning the
4803 expressions's address over BIGGEST_ALIGNMENT in bytes, not
4806 2003-02-18 Matt Austern <austern@apple.com>
4808 * gcc.c (LIBGCC_SPEC): If REAL_LIBGCC_SPEC is defined, and
4809 LIBGCC_SPEC isn't, set LIBGCC_SPEC to REAL_LIBGCC_SPEC.
4810 (init_gcc_spec): Don't define or call if REAL_LIBGCC_SPEC is
4811 defined. Instead use REAL_LIBGCC_SPEC, unmodifed, as the libgcc
4813 * doc/tm.texi (REAL_LIBGCC_SPEC): Document.
4815 2004-02-18 Zack Weinberg <zack@codesourcery.com>
4817 * dwarf2out.c (loclabel_num): Move outside #ifdef
4818 DWARF2_DEBUGGING_INFO and mark with GTY(()).
4819 * config/ia64/ia64.c (struct extern_func_list,extern_func_head):
4821 (ia64_hpux_add_extern_decl): Save the decl, not the name string.
4822 Allocate memory with ggc_alloc. No need to copy anything.
4823 (ia64_hpux_file_end): Update to match.
4825 2004-02-18 Jakub Jelinek <jakub@redhat.com>
4827 * config/i386/i386.c (override_options): Don't imply 3DNow! for -m64
4830 2004-02-18 Ulrich Weigand <uweigand@de.ibm.com>
4832 * config/s390/s390.md ("divmodtidi3"): Use canonical RTL.
4833 ("divmodtisi3"): Likewise.
4834 ("udivmoddi4", "udivmodtidi3"): Likewise.
4835 ("divmodsi4", "divmoddisi3"): Likewise.
4836 ("udivmodsi4", "udivmoddisi3"): Likewise.
4837 ("udivsi3", "umodsi3"): Likewise.
4839 2004-02-18 Ulrich Weigand <uweigand@de.ibm.com>
4841 * config/s390/s390.c (s390_mainpool_start): Delete the main pool
4842 placeholder insn when chunkifying the pool.
4844 2004-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4846 * pa.h (PIC_OFFSET_TABLE_REGNUM): Define to INVALID_REGNUM when not
4847 generating PIC code.
4849 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
4851 * config/h8300/h8300-protos.h: Add a prototype for
4852 h8300_expand_branch.
4853 * config/h8300/h8300.c (h8300_expand_branch): New.
4854 * config/h8300/h8300.md (ble, bleu, bge, bgeu, blt, bltu, bgt,
4855 bgtu, beq, bne): Call h8300_expand_branch().
4857 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
4859 * config/h8300/h8300-protos.h: Add prototypes for
4860 h8300_hard_regno_nregs and h8300_hard_regno_mode_ok.
4861 * config/h8300/h8300.c (h8300_hard_regno_nregs): New.
4862 (h8300_hard_regno_mode_ok): Likewise.
4863 * config/h8300/h8300.h (HARD_REGNO_NREGS): Call
4864 h8300_hard_regno_nregs().
4865 (HARD_REGNO_MODE_OK): Call h8300_hard_regno_mode_ok().
4867 2004-02-18 Per Bothner <per@bothner.com>
4869 * cpphash.h (struct cpp_buffer): Restore return_at_eof field. This
4870 partly reverts my 2003-10-01 change, because we're back to logically
4871 including <command line> inside the main line.
4872 * cpplex.c (_cpp_get_fresh_line): Check return_at_eof field.
4873 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof of current buffer.
4874 Fixes PR preprocessor/14103.
4876 * cppfiles.c (_cpp_stack_include): When appropriate decrement
4877 line_table's highest_location, fixing LAST_SOURCE_LINE_LOCATION.
4878 (cpp_push_include): Don't need to increment pfile's line field.
4879 * line-map.h (LAST_SOURCE_LINE_LOCATION): Only decrement by 1.
4881 * c-ppoutput.c (print struct): New first_time field.
4882 (init_pp_output): Set print.first_time.
4883 (pp_file_change): Use print.first_time, rather than MAIN_FILE_P,
4884 which is set also for (say) <command line>. Clear print.first_time.
4886 * cppfiles.c (struct _cpp_file): Comment and type for pch field
4887 does not match the code, so fix both.
4888 (should_stack_file): Inline include_pch_p function.
4889 (include_pch_p): Remove pointless function.
4891 * cpphash.h (struct cpp_buffer): Remove unused search_cached field.
4893 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
4895 * config/h8300/h8300.md (four define_peephole2's): Use
4896 h8300_regs_ok_for_stm().
4898 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
4900 * config/h8300/h8300-protos.h: Update the prototype for
4902 * config/h8300/h8300.c (expand_a_rotate): Remove the first
4904 * config/h8300/h8300.md: Update all callers.
4906 2004-02-18 Jan Hubicka <jh@suse.cz>
4908 * simplify-rtx.c (simplify_unary_operation): Deal with logicals on
4910 (simplify_binary_operation): Deal with logicals on floats.
4912 * i386.md (SSE fabs splitters): Emit new patterns.
4913 (SSE cmov splitters): Likewise.
4914 (sse_andv4sf3, sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3
4915 (sse_andv2df3, sse_nandv2df3, sse_iorv2df3, sse_xorv2df3): Do not use
4917 (sse_andsf3, sse_nandsf3, sse_xorsf3): Kill.
4918 (sse_anddf3, sse_nanddf3, sse_xordf3): Kill.
4920 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
4922 * config/h8300/h8300.c (expand_a_rotate): Don't generate insns
4924 (output_a_rotate): Tweak a comment.
4925 * config/h8300/h8300.md (*rotlqi3_1): Change to rotlqi3_1.
4926 (*rotlhi3_1): Change to rotlhi3_1.
4927 (*rotlsi3_1): Change to rotlsi3_1.
4929 2004-02-18 Richard Earnshaw <rearnsha@arm.com>
4932 * arm.c (load_multiple_operation): Don't insist that the source reg
4933 of a post-increment component is the same as the destination.
4934 (store_multiple_operation): Likewise.
4936 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
4938 * config/h8300/h8300.md: Move movsf patterns into one section
4941 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
4943 * cfgloop.h, cfgloopanal.c, cpplex.c, except.h, loop-init.c,
4944 loop-unroll.c, scan-decls.c, scan.h, stor-layout.c,
4945 xcoffout.c, xcoffout.h, config/arm/mmintrin.h,
4946 config/mips/linux64.h, config/pa/pa-64.h,
4947 config/rs6000/aix51.h, config/rs6000/aix52.h,
4948 config/rs6000/spe.md, config/sparc/linux.h,
4949 config/sparc/linux64.h: Update copyright.
4951 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
4953 * config/h8300/h8300.md: Move push patterns into one
4954 section of the file.
4956 2004-02-18 Mark Mitchell <mark@codesourcery.com>
4959 * config/ia64/ia64.c (ia64_struct_value_rtx): Cope with NULL
4962 2004-02-18 Paul Brook <paul@codesourcery.com>
4964 * rtlanal.c (rtx_varies_p): Return 0 for NULL_RTX
4966 2004-02-18 Paul Brook <paul@codesourcery.com>
4969 * dwarf2out.c (loc_descriptor_from_tree): Handle
4970 EXPR_WITH_FILE_LOCATION.
4972 2004-02-18 Jakub Jelinek <jakub@redhat.com>
4974 * config/i386/i386.md (zero_extendqidi2, zero_extendqidi2,
4975 testdi_1_rex64, anddi_2, xordi_1_rex64, xordi_2_rex64): Remove
4976 trailing whitespace from instructions.
4978 2004-02-17 Geoffrey Keating <geoffk@apple.com>
4980 * configure.ac: When generating auto-build.h, pass
4981 --enable-languages to the sub-configure.
4982 Put quotes around ${program_transform_name} when generating
4983 name of as, ld, nm, objdump.
4984 * configure: Regenerate.
4986 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
4988 * Makefile.in (s-check, s-config, s-conditions, s-flags)
4989 (s-codes, s-constants, s-emit, s-recog, s-opinit, s-extract)
4990 (s-peep, s-attr, s-attrtab, s-output, s-genrtl, s-modes)
4991 (s-preds, s-iov): Do not depend on move-if-change.
4993 2004-02-17 James E Wilson <wilson@specifixinc.com>
4995 * caller-save.c (insert_restore): Pass mem through copy_rtx.
4996 (insert_save): Likewise.
4998 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
5000 * config/h8300/h8300.c (h8300_emit_stack_adjustment): Fix a
5003 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
5005 * config/h8300/h8300.md (*one_complsi2_h8300): Change to
5007 (*one_complsi2_h8300hs): Change to *one_cmplsi2_h8300hs.
5009 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
5011 * config/h8300/h8300-protos.h: Update the prototype of
5013 * config/h8300/h8300.c (fix_bit_operand): Remove the second
5015 * config/h8300/h8300.md: Update all callers.
5017 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
5019 * config/h8300/h8300.c (fix_bit_operand): Change the name of
5020 the last argument to "code" from "type".
5022 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
5024 * config/h8300/h8300.c: Remove an extern declaration of
5025 rtx_equal_function_value_matters.
5027 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
5029 * config/h8300/h8300.c (fix_bit_operand): Don't generate insns
5031 * config/h8300/h8300.md (*andqi3_1): Change to andqi3_1.
5032 (*iorqi3_1): Change to iorqi3_1.
5033 (*xorqi3_1): Change to xorqi3_1.
5035 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
5037 * c-common.c, cfghooks.c, rtlanal.c, varasm.c: Fix comment
5040 2004-02-17 Jan Hubicka <jh@suse.cz>
5042 * i386.c (x86_prologue_using_move, x86_epilogue_using_move): Disable for P4.
5044 2004-02-18 Alan Modra <amodra@bigpond.net.au>
5046 PR optimization/14119
5047 * combine.c (try_combine): When attemting to fix unrecognized insns,
5048 don't delete SETs marked with REG_EH_REGION notes.
5050 2004-02-17 Ulrich Weigand <uweigand@de.ibm.com>
5052 * combine.c (simplify_if_then_else): Do not replace
5053 (if_then_else (ne reg 0) (0) (const_int)) by (reg) if the
5056 2004-02017 Steven Bosscher <stevenb@suse.de>
5058 * (c-decl.c, c-semantics.c, calls.c, cgraph.c, cgraphunit.c,
5059 function.c, integrate.c, print-tree.c, toplev.c, tree-optimize.c,
5060 tree.h): Replace DECL_SAVED_INSNS with DECL_STRUCT_FUNCTION.
5061 * ada/utils.c: Likewise.
5062 * cp/decl.c: Likewise.
5063 * f/com.c: Likewise.
5064 * java/class.c: Likewise.
5066 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
5068 * config/h8300/h8300.md: Fix comment typos.
5070 2004-02-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5072 * config/mips/t-iris6gld: Renamed to ...
5073 * config/mips/t-irix-gld: ... this.
5074 * config.gcc (mips-sgi-irix6*): Reflect this
5075 (mips-sgi-irix5*): Use it with GNU ld.
5077 * config/mips/irix6-crti.asm, config/mips/irix6-crtn.asm: Renamed
5079 * config/mips/irix-crti.asm, config/mips/irix-crtn.asm: ... this.
5080 * config/mips/t-irix-gld: Reflect this.
5081 * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5083 * config/mips/iris5gld.h: New file.
5084 * config.gcc (mips-sgi-irix5*): Use it with GNU ld.
5085 Only use collect2 without gas.
5087 * config/mips/iris6.h (IRIX6_STARTFILE_SPEC, IRIX6_ENDFILE_SPEC):
5088 Renamed to IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
5089 (STARTFILE_SPEC, ENDFILE_SPEC, SUBTARGET_EXTRA_SPECS): Reflect this.
5090 * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5092 * config/mips/iris6.h (SUBTARGET_EXTRA_SPECS): Moved ...
5093 * config/mips/iris5.h: ... here.
5095 * config/mips/iris5.h (STARTFILE_SPEC, ENDFILE_SPEC): Renamed to
5096 IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
5097 (STARTFILE_SPEC, ENDFILE_SPEC): Define.
5099 * config/mips/iris5gas.h (STARTFILE_SPEC, ENDFILE_SPEC): Simplify
5100 using irix_startfile_spec, irix_endfile_spec.
5102 2004-02-16 Gunther Nikl <gni@gecko.de>
5104 * config/m68k/m68k.c: Remove obsolete support for HPUX_ASM.
5106 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
5108 * config/h8300/h8300.c (h8300_expand_prologue): Don't generate
5111 2004-02-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5113 * cfghooks.c (split_edge): Speed up updating of dominators.
5115 2004-02-17 Mark Mitchell <mark@codesourcery.com>
5118 * c-common.c (flag_abi_version): Remove.
5119 * c-common.h (flag_abi_version): Likewise.
5120 * c-opts.c (c_common_handle_option): Remove OPT_fabi_version case.
5121 * c.opt (fabi-version): Remove.
5122 * calls.c (expand_call): Always pass a function type to
5123 struct_value_rtx. Use convert_memory_address.
5124 * common.opt (fabi-version): Add it.
5125 * flags.h (flag_abi_version): Likewise.
5126 (abi_version_at_least): New macro.
5127 * opts.c (common_handle_option): Add OPT_fabi_version.
5128 * toplev.c (flag_abi_version): Define it.
5129 * config/ia64/ia64.c (ia64_struct_retval_addr_is_first_parm_p):
5131 (ia64_output_mi_thunk): Use it.
5132 (ia64_struct_value_rtx): Likewise.
5134 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
5136 * config/h8300/h8300.c (h8300_emit_stack_adjustment):
5137 Don't generate insns by hand.
5139 2004-02-17 Andrew Pinski <pinskia@physics.uc.edu>
5142 * doc/invoke.texi (fabi-version): The default is 2 now.
5144 2004-02-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5146 * loop-iv.c: New file.
5147 * Makefile.in (loop-iv.o): New.
5148 * basic_block.h (FOR_BB_INSNS, FOR_BB_INSNS_REVERSE): New macros.
5149 * cfgloop.c (fill_sons_in_loop, get_loop_body_in_dom_order,
5150 num_loop_branches): New functions.
5151 * cfgloop.h (get_loop_body_in_dom_order, num_loop_branches,
5152 iv_analysis_loop_init, iv_get_reaching_def, iv_analyse, get_iv_value,
5153 find_simple_exit, iv_number_of_iterations, iv_analysis_done,
5154 get_simple_loop_desc, free_simple_loop_desc): Declare.
5155 (simple_loop_desc): New inline function.
5156 (struct rtx_iv, struct niter_desc): New.
5157 * cfgloopmanip.c (loopify): Specify semantics more precisely.
5158 * expr.c (force_operand): Handle subregs of expressions created by
5160 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Move
5161 parts of the initialization to toplev.c
5162 * loop-unroll.c (loop_exit_at_end_p): New.
5163 (unroll_and_peel_loops): Call iv_analysis_done.
5164 (decide_peel_once_rolling, decide_peel_completely,
5165 decide_unroll_stupid, decide_unroll_constant_iterations,
5166 decide_unroll_runtime_iterations, decide_peel_simple,
5167 peel_loop_simple, unroll_loop_stupid, unroll_loop_constant_iterations,
5168 unroll_loop_runtime_iterations): Use new simple loop analysis.
5169 * loop-unswitch.c (compare_and_jump_seq): New.
5170 (may_unswitch_on_p): Renamed to ...
5171 (may_unswitch_on): Use new iv analysis.
5172 (reversed_condition): Export.
5173 (unswitch_single_loop, unswitch_loop): Use new iv analysis.
5174 * predict.c (estimate_probability): Use new simple loop analysis.
5175 * rtl.h (get_mode_bounds, reversed_condition,compare_and_jump_seq,
5176 canon_condition, simplify_using_condition): Declare.
5177 * stor-layout.c (get_mode_bounds): New.
5178 * toplev.c (rest_of_handle_loop2): Some parts of
5179 initialization/finalization moved here from loop-init.c.
5181 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
5183 * config/h8300/h8300.h (FIXED_REGISTERS): Add the soft frame
5185 (CALL_USED_REGISTERS): Likewise.
5186 (REG_ALLOC_ORDER): Likewise.
5187 (REG_CLASS) <GENERAL_REGS>: Likewise.
5189 2004-02-16 Geoffrey Keating <geoffk@apple.com>
5191 * doc/md.texi (Insn Canonicalizations): Document left-chaining
5192 in associative operators.
5193 * rtlanal.c (commutative_operand_precedence): Create some new
5194 variables. Prefer a commutative operand on the left, then
5195 binary expressions, then NEG and NOT.
5197 2004-02-16 Matthias Klose <doko@debian.org>
5199 * config/t-slibgcc-elf-ver: Define SHLIB_NAME and SHLIB_SONAME
5200 in terms of SHLIB_SOVERSION.
5201 * config/m68k/t-slibgcc-elf-ver: New file.
5202 * config/pa/t-slibgcc-elf-ver: New file.
5203 * config.gcc (m68k-linux, parisc-linux): Use them when not
5204 sjlj exceptions are not configured.
5206 2004-02-16 Eric Botcazou <ebotcazou@libertysurf.fr>
5208 * config/sparc/sparc.c (get_pc_symbol_name): Mark with GTY(()).
5210 2004-02-16 Zack Weinberg <zack@codesourcery.com>
5212 * sdbout.c (sdb_debug_hooks): Correct the type_decl entry.
5214 2004-02-16 Joseph S. Myers <jsm@polyomino.org.uk>
5216 * doc/sourcebuild.texi: Mention backends.html.
5218 2004-02-16 Kazu Hirata <kazu@cs.umass.edu>
5220 * c-decl.c, c-ppoutput.c, cpphash.h, cpplib.h, dbxout.c,
5221 line-map.c, line-map.h, var-tracking.c: Fix comment
5224 2004-02-16 Richard Henderson <rth@redhat.com>
5226 * cse.c (cse_insn): Don't lose REG_NON_LOCAL_GOTO note.
5228 * fold-const.c (operand_equal_p): Fix VECTOR_CST comparison.
5230 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
5232 * config/h8300/h8300.md: Remove unnecessary parallels from
5233 all define_insn and define_split patterns.
5235 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
5237 * config/h8300/h8300.md: Remove explicit (set_attr "cc"
5240 2004-02-15 Bernardo Innocenti <bernie@develer.com>
5242 * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Restore support for
5245 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
5247 * config/ia64/ia64.c, config/mips/mips.c,
5248 config/mmix/mmix-modes.def: Fix comment typos.
5250 2004-02-15 Roger Sayle <roger@eyesopen.com>
5252 * c-common.h (GET_DIRECTIVE_LINE): Remove unused macro.
5253 (get_directive_line): Remove unused function prototype.
5255 2004-02-14 Josef Zlomek <zlomekj@suse.cz>
5257 * tree-inline.c (copy_body_r): Do not replace ret_label.
5259 2004-02-14 Jan Hubicka <jh@suse.cz>
5261 * i386.c (x86_four_jump_limit): New variable.
5262 (k8_avoid_jump_misspredicts): Rename to ...
5263 (ix86_avoid_jump_misspredicts): .. this one.
5264 (ix86_pad_returns): Break out from ...
5265 (ix86_reorg): ... this one; do ix86_avoid_jump_misspredicts when asked
5267 * i386.h (TARGET_FOUR_JUMP_LIMIT): New macro.
5269 2004-02-14 Josef Zlomek <zlomekj@suse.cz>
5271 * emit-rtl.c (set_decl_incoming_rtl): Check whether the 0th element of
5274 2004-02-14 Per Bothner <per@bothner.com>
5276 * fix-header.c (line_table): Move local variable in main to global.
5277 * scan.h (line_table): Use it.
5278 * scan-decls.c (scan_decls): Need to call linemap_lookup on token's
5279 line (recently renamed to src_loc) before calling recognized_function.
5281 2004-02-14 Matt Kraai <kraai@alumni.cmu.edu>
5283 * Makefile.in: Fix comment typos.
5285 2004-02-14 Olivier Hainque <hainque@act-europe.fr>
5287 * loop.c (check_dbra_loop): Use gen_int_mode instead of GEN_INT
5288 for start_value when it is directly moved into reg, and factorize
5289 the retrieval of GET_MODE (reg).
5291 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
5293 * config/mips/mips-protos.h (mips_load_got_page): Delete.
5294 (mips_load_got_global): Delete.
5295 (mips_gotoff_page): Declare.
5296 * config/mips/mips.md (UNSPEC_LOAD_GOT): New constant.
5297 (*xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i): Build an
5298 UNSPEC_LOAD_GOT pattern rather than a MEM.
5299 (*load_got[sd]i): New patterns.
5300 * config/mips/mips.c (mips_got_alias_set, mips_load_got): Delete.
5301 (mips_load_got_page, mips_load_got_global): Delete.
5302 (mips_gotoff_page): New function.
5303 (override_options): Don't initialize mips_got_alias_set.
5305 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
5307 * config/mips/mips.h (MASK_DEBUG_[ABEFI], TARGET_DEBUG_[ABEFI]_MODE)
5308 (TARGET_MIPS4100, TARGET_MIPS4300, TARGET_MIPS4KC, TARGET_MIPS5KC)
5309 (TARGET_SB1, TUNE_SB1, TUNE_SR71K, BIGGEST_MAX_ARGS_IN_REGISTERS)
5310 (GO_PRINTF, GO_PRINTF2, GO_DEBUG_RTX, DFMODE_NAN, SFMODE_NAN): Delete.
5311 (TARGET_SWITCHES): Remove MASK_DEBUG_[ABEFI].
5312 * config/mips/mips.c: Fix some overly-long lines.
5313 (SINGLE_WORD_MODE_P, PIC_OFFSET_TABLE_MASK): Delete.
5314 (init_cumulative_args): Remove TARGET_DEBUG_E_MODE handling.
5316 2004-02-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5318 * configure.ac: Search for as, ld below libexec/gcc.
5319 * configure: Regenerate.
5321 2004-02-14 Ben Elliston <bje@wasabisystems.com>
5323 * config/arm/mmintrin.h (_mm_setwcx): Reverse arguments in call to
5324 __builtin_arm_setwcx ().
5325 * config/arm/arm.c (arm_expand_builtin): Generate operands
5326 correctly and reverse their order in call to gen_iwmmxt_tmcr ().
5328 2004-02-14 Ben Elliston <bje@wasabisystems.com>
5330 * config/arm/arm.c (bdesc_2arg): Correct builtin names "wmulsh"
5331 and "wmuluh" to "wmulsm" and "wmulum", respectively.
5332 * config/arm/arm.h (enum arm_builtins): Rename enumerators to
5333 ARM_BUILTIN_WMULSM and ARM_BUILTIN_WMULUM.
5334 * config/arm/mmintrin.h (_mm_mulhi_pi16): Update intrinsic call.
5335 (_mm_mulhi_pu16): Likewise.
5337 2004-02-13 Zack Weinberg <zack@codesourcery.com>
5339 * xcoffout.c (xcoff_assign_fundamental_type_number): Check
5340 DECL_NAME != 0 before dereferencing.
5342 2004-02-13 Ulrich Weigand <uweigand@de.ibm.com>
5344 * config/s390/s390-protos.h (s390_output_symbolic_const): Remove.
5345 (s390_output_addr_const_extra): Declare.
5346 (s390_output_pool_entry): Remove FILE * argument.
5347 * config/s390/s390.c (s390_output_symbolic_const): Remove.
5348 (s390_output_addr_const_extra): New function.
5349 (print_operand_address): Call output_addr_const instead of
5350 s390_output_symbolic_const.
5351 (print_operand): Likewise.
5352 (s390_output_pool_entry): Use assemble_integer for symbolic constants.
5353 Remove FILE * argument.
5354 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Define.
5355 * config/s390/s390.md ("*pool_entry"): Adapt s390_output_pool_entry
5358 2004-02-13 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5360 * cfgloopanal.c (mark_irreducible_loops): Rewriten.
5361 (struct edge, struct vertex, struct graph): New.
5362 (dump_graph, new_graph, add_edge, dfs, check_irred, for_each_edge,
5363 free_graph): New functions.
5365 2004-02-12 Chris Demetriou <cgd@broadcom.com>
5367 * config/mips/mips.md (casesi_internal, casesi_internal_di):
5368 Use ".set macro" to avoid warnings about multi-instruction
5369 macros, since they're intentional.
5371 2004-02-12 Geoffrey Keating <geoffk@apple.com>
5373 * config/darwin.h: Add include guards. Remove old, now incorrect,
5374 comment about STANDARD_EXEC_PREFIX.
5376 * Makefile.in (install-man): Use $(CPP_INSTALL_NAME) and
5377 $(GCOV_INSTALL_NAME) to install manpages. Remove generic rule
5378 for installing .1 manpages. Add rules for installing cpp
5379 and gcov manpages under their installed names.
5381 2004-02-12 Alexandre Oliva <aoliva@redhat.com>
5383 * configure.ac (gcc_cv_ld): Don't set to LD if target is not
5384 host, but try LD_FOR_TARGET first.
5385 * configure: Rebuilt.
5387 2004-02-12 Zack Weinberg <zack@codesourcery.com>
5389 * dbxout.c: Move declaration of dbxout_type_decl outside
5390 #ifdef DBX_DEBUGGING_INFO.
5391 * c-parse.in: Don't give the asmdef production a type.
5393 2004-02-12 Zack Weinberg <zack@codesourcery.com>
5395 * debug.h (struct gcc_debug_hooks): Add type_decl field.
5396 (debug_nothing_tree_int): Prototype.
5397 (dwarf_debug_hooks): Delete, unused.
5398 * debug.c (do_nothing_debug_hooks): Update.
5399 (debug_nothing_tree_int): New function.
5400 * langhooks.h (struct lang_hooks_for_decls):
5401 Remove builtin_type_decls field.
5402 * langhooks-def.h (LANG_HOOKS_BUILTIN_TYPE_DECLS): Delete.
5403 (LANG_HOOKS_DECLS): Update.
5404 * toplev.c (rest_of_decl_compilation, rest_of_type_compilation):
5405 Use debug_hooks->type_decl.
5406 * dbxout.c (preinit_symbols): New static.
5407 (dbx_debug_hooks, xcoff_debug_hooks): Update.
5408 (dbxout_init): Don't call DBX_OUTPUT_STANDARD_TYPES or
5409 lang_hooks.decls.builtin_type_decls. Do scan preinit_symbols
5410 for symbols to output.
5411 (dbxout_type_decl): New function.
5412 (dbxout_symbol): If called before dbxout_init has run, queue
5413 the symbol for later. Apply DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER
5414 to TYPE_DECLs before emitting them.
5415 * xcoffout.c (assign_type_number): Delete.
5416 (xcoff_type_numbers): New static table.
5417 (xcoff_assign_fundamental_type_number): New function.
5418 * xcoffout.h: Define DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER, not
5419 DBX_OUTPUT_STANDARD_TYPES. Remove unnecessary #ifdefs.
5420 * sdbout.c: Include varray.h.
5421 (deferred_global_decls): New static.
5422 (sdb_debug_hooks): Update.
5423 (sdbout_global_decl): If we can't emit something right now,
5424 remember it in deferred_global_decls.
5425 (sdbout_finish): Just scan deferred_global_decls; don't call getdecls.
5426 (sdbout_init): Initialize deferred_global_decls.
5427 * Makefile.in: Update dependencies of sdbout.o.
5428 * dwarf2out.c (dwarf2out_type_decl): New function.
5429 (dwarf2_debug_hooks): Update.
5430 * vmsdbgout.c (vmsdbg_debug_hooks): Update.
5431 * c-decl.c (getdecls): Just return 0.
5432 (check_for_loop_decls): Don't use getdecls.
5433 (record_builtin_type): Call debug_hooks->type_decl on the TYPE_DECL.
5434 * c-objc-common.c (c_objc_common_finish_file): Don't use getdecls.
5436 2004-02-12 Ulrich Weigand <uweigand@de.ibm.com>
5438 * config/s390/s390.c (s390_sched_reorder2): Remove.
5439 (TARGET_SCHED_REORDER2): Do not redefine.
5441 2004-02-12 Zack Weinberg <zack@codesourcery.com>
5443 * c-parse.in (maybe_type_qual): Delete.
5444 (maybe_volatile, simple_asm_expr, asmdef, asm_stmt)
5445 (asm_argument): New grammar rules.
5446 (extdef_1): Use asmdef.
5447 (maybeasm): Move down with other asm rules; use simple_asm_expr.
5448 (xexpr): Move up with other expression rules.
5449 (stmt): Use asm_stmt.
5451 * c-typeck.c (build_asm_expr): New function - body mostly
5452 pulled from build_asm_stmt.
5453 (build_asm_stmt): Just handle tacking on the volatile qualifier.
5454 * c-tree.h (build_asm_expr, build_asm_stmt): Update prototypes.
5456 2004-02-12 Richard Sandiford <rsandifo@redhat.com>
5459 * config/mips/mips-protos.h (mips_output_aligned_decl_common): Declare.
5460 (mips_declare_object): Make variadic.
5461 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use
5462 mips_output_aligned_decl_common.
5463 * config/mips/mips.c (mips_output_aligned_decl_common): New function.
5464 (mips_declare_object): Make variadic.
5466 2004-02-12 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5468 * function.c (update_epilogue_consts): Teach about binary operations.
5470 * emit-rtl.c (set_mem_attributes_minus_bitpos): Don't kill
5471 previous MEM_VOLATILE in REF.
5472 * function.c (fixup_var_refs): Save volatile_ok and set to 1.
5473 * expr.c (emit_block_move_via_movstr): Save and restore volatile_ok.
5475 2004-02-12 Gunther Nikl <gni@gecko.de>
5477 * config.gcc: Restore support for m68k-openbsd.
5479 2004-02-12 Jan Hubicka <jh@suse.cz>
5481 * tree-optimize.c (tree_rest_of_compilation): Do not release
5484 2004-02-11 Matt Kraai <kraai@alumni.cmu.edu>
5486 * doc/install.texi: Fix the spelling of "explicitly".
5488 2004-02-11 Eric Christopher <echristo@redhat.com>
5490 * cppcharset.c (_cpp_interpret_string_notranslate): Rename and
5491 duplicate argument structure of cpp_interpret_string.
5492 * cpphash.h: Move prototype...
5494 * cpplib.c: Fix calls to match new function signature.
5496 2004-02-11 Joseph S. Myers <jsm@polyomino.org.uk>
5499 * cppexp.c (num_binary_op): Don't allow comma operators in #if
5500 constant expressions at all outside C99 mode if pedantic.
5502 2004-02-11 Uros Bizjak <uros@kss-loka.si>
5504 * optabs.h (enum optab_index): Add new OTI_log10 and OTI_log2.
5505 (log10_optab, log2_optab): Define corresponding macros.
5506 * optabs.c (init_optabs): Initialize log10_optab and log2_optab.
5507 * genopinit.c (optabs): Implement log10_optab and log2_optab
5508 using log10?f2 and log2?f2 patterns.
5509 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOG10{,F,L}
5510 using log10_optab, and BUILT_IN_LOG2{,F,L} using log2_optab.
5511 (expand_builtin): Expand BUILT_IN_LOG10{,F,L} and BUILT_IN_LOG2{,F,L}
5512 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
5514 * config/i386/i386.md (log10sf2, log10df2, log10xf2, log2sf2,
5515 log2df2, log2xf2): New patterns to implement log10, log10f, log10l,
5516 log2, log2f and log2l built-ins as inline x87 intrinsics.
5518 2004-02-11 Richard Henderson <rth@redhat.com>
5521 * flow.c (insn_dead_p): A clobber of a dead hard register is a
5522 dead insn after reload.
5524 2004-02-11 Ulrich Weigand <uweigand@de.ibm.com>
5526 * tree.h (frame_base_decl): Add GTY marker.
5527 * var-tracking.c (frame_base_decl): Likewise.
5529 2004-02-11 Daniel Berlin <dberlin@dberlin.org>
5531 * dwarf2out.c (output_loc_list): Remove no longer necessary, and now
5533 (add_location_or_const_value_attribute): Use text_section_label,
5534 not TEXT_SECTION_NAME.
5536 2004-02-11 Per Bothner <per@bothner.com>
5538 Represent column numbers using line-map's source_location.
5539 The "next available source_location" is now managed internally by
5540 line-maps.c rather than by clients.
5541 * line-map.h (struct line_map): New field column_bits.
5542 <from_line>: Rename field to start_location.
5543 (struct line_maps): New fields highest_location and max_column_hint.
5544 (linemap_check_files_exited): New declaration.
5545 (linemap_line_start): New declaration.
5546 (linemap_add): Remove from_line parameter; use highest_location field.
5547 (SOURCE_LINE, LAST_SOURCE_LINE): Modify to use column_bits.
5548 (SOURCE_COLUMN, LAST_SOURCE_LINE_LOCATION): New macros.
5549 (CURRENT_LINE_MAP): Remove macro.
5550 (linemap_position_for_column): New inline function.
5551 * line-map.c (linemap_init): Clear new fields.
5552 (linemap_check_files_exited): New function, extracted from ...
5553 (linemap_free): Use linemap_check_files_exited.
5554 (linemap_add): Remove from_line parameter. Various updates.
5555 (linemap_line_start): New function.
5556 (linemap_lookeup): Update for new field names.
5557 * cpphash.h (struct cpp_reader) <map>: Field removed. Because
5558 linemap_position_for_column may unpredictably change the current map,
5559 it is cleaner and simpler for us to not cache it in cpp_reader.
5560 (struct cpp_buffer): New sysp field.
5561 Changed warned_cplusplus_comments and from_stage3 to bitfields.
5562 * cppinit.c (cpp_read_min_file): pfile->map no longer exists.
5563 * cpplib.c (do_line, do_linemarker, _cpp_do_file_change): Get
5564 current map using linemap_lookup.
5565 (do_linemarker): Also set buffer's sysp field.
5566 (destringize_and_run): No longer need to decrement current line.
5567 * cppfiles.c (_cpp_stack_file): Set sysp from and in buffer.
5568 (search_path_head, open_file_failed): Use buffer's sysp.
5569 (cpp_make_system_header): Get current map using linemap_lookup.
5570 Also set buffer's sysp flag.
5571 * cppmacro.c (_cpp_builtin_macro_text): Likewise use linemap_lookup.
5572 * cpphash.h (CPP_INCREMENT_LINE): New macro.
5573 (struct cpp_buffer): Moved fields saved_cur, saved_rlimit to ...
5574 (struct cpp_reader): ... and adding saved_line_base field.
5575 * cpptrad.c (_cpp_overlay_buffer, _cpp_remove_overlay):
5576 Update accordingly. Don't adjust line.
5577 (_cpp_scan_out_logical_line): Use CPP_INCREMENT_LINE.
5578 * cpphash.c (CPP_IN_SYSTEM_HEADER): Replaced macro by ...
5579 (cpp_in_system_header): ... new inline function, using buffer's sysp.
5580 * cpperror.c (_cpp_begin_message): Update to use cpp_in_system_header.
5581 * cpplex.c (_cpp_lex_direct): Likewise.
5582 * cppmacro.c (_cpp_builtin_macro_text): Likewise.
5583 * cppmacro.c (_cpp_create_definition): Use buffer's sysp field.
5584 * cpplib.h (struct cpp_token): Rename line field to src_loc.
5585 Remove col field as it is now subsumed by src_loc.
5586 * cpperror.c: Update various field, parameter, and macro names.
5587 (print_location): If col==0, try SOURCE_COLUMN of line.
5588 (cpp_error): Use cur_token's src_loc field, rather than line+col.
5589 * cpplib.c (do_diagnostic): Token's src_loc fields replaces line+col.
5590 * cpplex.c (_cpp_process_line_notes, _cpp_lex_direct,
5591 _cpp_skip_block_comment): Use CPP_INCREMENT_LINE.
5592 (_cpp_temp_token): Replace cpp_token's line+col fields by src_loc.
5593 (_cpp_get_fresh_line): Don't need to adjust line for missing newline.
5594 (_cpp_lex_direct): Use linemap_position_for_column.
5595 * c-ppoutput.c (maybe_print_line, print_line): Don't take map
5596 parameter. Instead get it from the line_table global. Adjust callers.
5597 (print): Remove map field. Replace line field to src_line.
5598 (init_pp_output, account_for_newlines, maybe_print_line): Adjust.
5599 (cb_line_change): Use SOURCE_COLUMN. Minor optimizations.
5600 (pp_file_change): Use MAIN_FILE_P since we cannot checked print.map.
5601 Use LAST_SOURCE_LINE_LOCATION to "catch up" after #include.
5602 * cpptrad.c (copy_comment): Rename variable.
5603 * c-lex.c (map): Remove static variable, for same reason we removed
5604 cpp_reader's map field.
5605 (cb_line_change, cb_def_pragma, cb_define, cb_undef): Hence we need
5606 to call linemap_lookup.
5607 (cb_line_change): Token's line field replaced by src_loc.
5608 (fe_file_change): Use MAINFILE_P and LAST_SOURCE_LINE macros.
5611 * cpphash.h, cpperror.c, cpplib.h: Some renames of fileline to
5614 2004-02-11 Hartmut Penner <hpenner@de.ibm.com>
5616 * config/rs6000/altivec.md (*movv4si_internal): At least one
5617 operand must be register_operand.
5618 (*movv8hi_internal1): Likewise.
5619 (*movv16qi_internal1): Likewise.
5620 (*movv4sf_internal1): Likewise.
5622 2004-02-10 Aldy Hernandez <aldyh@redhat.com>
5624 * config/rs6000/spe.md ("*movv2si_internal"): Check for register
5626 (movv4hi_internal): Same.
5627 (movv2sf_internal): Same.
5628 (movv1di_internal): Same.
5630 2004-02-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5632 * config/mips/mips.h (TARGET_OLDABI): Define. Use TARGET_NEWABI and
5633 TARGET_OLDABI consistently.
5634 * config/mips/mips.c (function_arg,mips_setup_incoming_varargs,
5635 mips_va_arg,override_options,compute_frame_size,
5636 mips_initial_elimination_offset,mips16_fp_args,build_mips16_call_stub
5637 ,mips_return_in_memory,mips_strict_argument_naming): Use TARGET_NEWABI
5638 and TARGET_OLDABI consistently.
5639 * config/mips/mips.md (exception_receiver): Likewise.
5640 * config/mips/linux64.h: Likewise.
5642 2004-02-11 Hartmut Penner <hpenner@de.ibm.com>
5644 * gcc/config/rs6000/rs6000.c (rs6000_override_options)
5645 Set AltiVec ABI and vrsave as default for ppc64 linux.
5646 (init_cumulative_args): Post error, if try to return
5647 value in AltiVec register without enable AltiVec.
5648 (function_arg_advance): Ditto for passing arguments.
5650 2004-02-11 Richard Sandiford <rsandifo@redhat.com>
5652 * emit-rtl.c (mark_label_nuses): Check that a LABEL_REF refers to
5653 a label before updating its usage count.
5655 2004-02-10 Matt Kraai <kraai@alumni.cmu.edu>
5657 * doc/install.texi: Remove extra cd.
5659 2004-02-10 Ziemowit Laski <zlaski@apple.com>
5661 * c-common.c (vector_size_helper): Remove; call
5662 reconstruct_complex_type() instead.
5663 * tree.c (reconstruct_complex_type): New function
5664 (formerly vector_size_helper() in c-common.c).
5665 (make_vector): Make externally visible.
5666 * tree.h (reconstruct_complex_type, make_vector): Add prototypes.
5668 2004-02-10 Kazu Hirata <kazu@cs.umass.edu>
5670 * config/h8300/h8300-protos.h: Add a prototype for
5671 h8300_regs_ok_for_stm.
5672 * config/h8300/h8300.c (h8300_regs_ok_for_stm): New.
5673 * config/h8300/h8300.md (stm_h8300s_2_advanced,
5674 stm_h8300s_2_normal, stm_h8300s_2, stm_h8300s_3_advanced,
5675 stm_h8300s_3_normal, stm_h8300s_3, stm_h8300s_4_advanced,
5676 stm_h8300s_4_normal, stm_h8300s_4, ldm_h8300s_2_advanced,
5677 ldm_h8300s_2_normal, ldm_h8300s_2, ldm_h8300s_3_advanced,
5678 ldm_h8300s_3_normal, ldm_h8300s_3, ldm_h8300s_4_advanced,
5679 ldm_h8300s_4_normal, ldm_h8300s_4): Use
5680 h8300_regs_ok_for_stm().
5682 2004-02-10 Danny Smith <dannysmith@users.sourceforge.net>
5685 * real.c (real_from_string): Look for 'X' as well as 'x' in
5688 2004-02-10 Kazu Hirata <kazu@cs.umass.edu>
5690 * config/h8300/h8300.md: Remove an incorrect comment about
5691 peephole2. Add comments.
5693 2004-02-10 Josef Zlomek <zlomekj@suse.cz>
5696 * emit-rtl.c (set_decl_incoming_rtl): New.
5697 * tree.h (set_decl_incoming_rtl): New.
5698 * function.c (assign_parms): Use set_decl_incoming_rtl for setting
5700 * ada/misc.c (adjust_decl_rtl): Likewise.
5702 2004-02-10 Per Bothner <per@bothner.com>
5704 * c-opts.c (c_common_post_options): Don't emit working directory
5705 in cpp output if -P was specified.
5707 2004-02-10 Paolo Bonzini <bonzini@gnu.org>
5710 * fold-const.c (fold) <NEGATE_EXPR>: Convert result of
5711 negate_expr back to the original type.
5713 2004-02-10 Alan Modra <amodra@bigpond.net.au>
5715 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Don't
5718 2004-02-10 Paolo Bonzini <bonzini@gnu.org>
5720 * rtl.h (schedule_insns, schedule_ebbs, fix_sched_param,
5721 gen_lowpart_SUBREG): Move under the file in which they
5722 are actually declared.
5724 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>
5726 * doc/sourcebuild.texi: Add libada documentation.
5728 * doc/install.texi: Update documentation on Ada build, now
5729 that the GNAT lib and tools are built automatically.
5731 2004-02-10 Richard Sandiford <rsandifo@redhat.com>
5733 * config/mips/mips.h (TARGET_GPWORD): Return false for TARGET_NEWABI
5736 2004-02-09 Ziemowit Laski <zlaski@apple.com>
5738 * objc/objc-act.c (get_super_receiver): Move '#ifdef OBJCPLUS'
5739 boundaries outside build_component_ref() call (a macro in ObjC++).
5741 2004-02-09 Bob Wilson <bob.wilson@acm.org>
5743 * config/xtensa/xtensa-protos.h (xtensa_copy_incoming_a7): Update.
5744 (init_cumulative_args): Likewise.
5745 (a7_overlap_mentioned_p): Delete prototype.
5746 * config/xtensa/xtensa.c (struct machine_function): Replace
5747 incoming_a7_copied field with need_a7_copy and vararg_a7 flags.
5748 Add set_frame_ptr_insn field.
5749 (xtensa_emit_move_sequence): Update call to xtensa_copy_incoming_a7.
5750 (xtensa_copy_incoming_a7): Rewrite to check need_a7_copy flag and check
5751 if the operand is an argument in a7. If so, copy a7 to a new pseudo
5752 at the function entry and replace the operand with the pseudo.
5753 (init_cumulative_args): Remove unused arguments. Add new "incoming"
5754 argument and record this flag in CUMULATIVE_ARGS.
5755 (function_arg): Remove result_mode and special-case code to handle
5756 arguments in a7. Instead, set need_a7_copy flag when there is an
5757 incoming argument in a7.
5758 (xtensa_expand_prologue): Remove code to search for set_frame_ptr insn
5759 and use the value recorded in cfun->machine->set_frame_ptr_insn.
5760 (xtensa_builtin_saveregs): Check for negative gp_left value. Set
5761 need_a7_copy and vararg_a7 flags. Use move_block_from_reg instead of
5763 (a7_overlap_mentioned_p): Delete.
5764 * config/xtensa/xtensa.h (CUMULATIVE_ARGS): Add "incoming" flag.
5765 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Remove useless
5766 arguments to init_cumulative_args and pass "incoming" flag instead.
5767 (BLOCK_REG_PADDING): Delete.
5768 * config/xtensa/xtensa.md (movdi, movsf, movdf): Remove unnecessary
5769 checks for reload_in_progress and reload_completed. Update calls to
5770 xtensa_copy_incoming_a7.
5771 (ashlsi3): Rename existing insn to ashlsi3_internal. Add expander
5772 to call xtensa_copy_incoming_a7.
5774 2004-02-09 DJ Delorie <dj@redhat.com>
5776 * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): No
5777 longer modify standard_exec_prefix, standard_bindir_prefix, or
5778 standard_startfile_prefix.
5780 2004-02-09 James E Wilson <wilson@specifixinc.com>
5783 * c-common.c (c_expand_expr, case STMT_EXPR): Change expand_expr call
5784 to expand_expr_real call, and pass in alt_rtl as last argument.
5787 * builtin-types.def (BT_WORD, BT_FN_WORD_PTR): New.
5788 * builtins.c (expand_builtin): Handle BUILT_IN_EXTEND_POINTER.
5789 * builtins.def (BUILT_IN_EXTEND_POINTER): New.
5790 * except.c (expand_builtin_extend_pointer): New.
5791 * except.h (expand_builtin_extend_pointer): Declare.
5793 2004-02-09 David Edelsohn <edelsohn@gnu.org>
5795 * config/rs6000/rs6000.c (rs6000_emit_move): Remove splitting slow
5796 unaligned loads and stores.
5798 2004-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5800 * config/mips/iris5.h (BSS_SECTION_ASM_OP): Define.
5801 * config/mips/iris6.h (BSS_SECTION_ASM_OP): Undef.
5803 * config/mips/iris6.h (TARGET_ASM_NAMED_SECTION): Moved ...
5804 * config/mips/iris5.h: ... here.
5805 * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Remove.
5807 * config/mips/iris6.h (EXTRA_SECTION_FUNCTIONS): Move ...
5808 * config/mips/iris5.h: ... here.
5810 2004-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5812 * configure.ac: Remove default executable files before AC_PROG_CC.
5813 * configure: Regenerate.
5815 2004-02-09 Kazu Hirata <kazu@cs.umass.edu>
5818 * config/h8300/h8300.c (byte_reg): Call abort() if asked to
5819 print a operand other than a register.
5821 2004-02-09 Roger Sayle <roger@eyesopen.com>
5823 * fold-const.c (fold) <NOP_EXPR>: Use the original type conversion
5824 tree code rather than call fold_convert, which doesn't specify a
5825 default floating point to integer conversion.
5827 2004-02-08 Bernardo Innocenti <bernie@develer.com>
5829 * config/m68k/m68k.c, config/m68k/m68k.md (SGS, SGS_CMP_ORDER): Remove
5830 code to support SGS assembler. Reformat adjacent code where possible.
5831 * config/m68k/m68k.c (switch_table_difference_label_flag): Remove
5833 * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Remove support
5835 * config/m68k/linux.h, config/m68k/m68k.c,
5836 * config/m68k/math-68881.h: Replace `%#' with `#' in inline asm
5837 macros and asm_printf() format strings.
5838 * config/m68k/m68kelf.h (ASM_OUTPUT_CASE_END): Remove macro definition.
5839 * config/m68k/linux.h: Update copyright.
5840 * config/m68k/linux.h, config/m68k/m68k.c: Remove traling whitespace.
5842 2004-02-08 Andreas Schwab <schwab@suse.de>
5843 Bernardo Innocenti <bernie@develer.com>
5845 * config/m68k/m68k.h (REGISTER_NAMES): Prefix each name with
5847 * (M68K_FP_REG_NAME): New macro to specify an alternate name for the
5848 frame pointer register, overridable by OS targets.
5849 * (M68K_REGNAME): Macro to obtain register name for asm output,
5850 eventually replacing %a6 with M68K_FP_REG_NAME.
5851 * config/m68k/coff.h (REGISTER_NAMES): Don't redefine.
5852 * config/m68k/linux.h (REGISTER_NAMES): Likewise.
5853 * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
5854 * config/m68k/netbsd-elf.h (REGISTER_NAMES): Likewise.
5855 * config/m68k/m68k.c: Use M68K_REGNAME(x) in place of reg_names[x].
5857 2004-02-08 Kazu Hirata <kazu@cs.umass.edu>
5859 * target-def.h (TARGET_STRUCT_VALUE_RTX): Define as
5860 hook_rtx_tree_int_null.
5861 * targhooks.c (default_struct_value_rtx): Remove.
5862 * targhooks.h: Remove the prototype for
5863 default_struct_value_rtx.
5864 * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
5865 config/fr30/fr30.c, config/h8300/h8300.c, config/i386/i386.c,
5866 config/ip2k/ip2k.c, config/iq2000/iq2000.c,
5867 config/m32r/m32r.c, config/mcore/mcore.c, config/mips/mips.c,
5868 config/mn10300/mn10300.c, config/pdp11/pdp11.c,
5869 config/rs6000/rs6000.c, config/s390/s390.c,
5870 config/stormy16/stormy16.c, config/v850/v850.c,
5871 config/xtensa/xtensa.c (TARGET_STRUCT_VALUE_RTX): Remove.
5872 * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document the default.
5874 2004-02-08 Joseph S. Myers <jsm@polyomino.org.uk>
5876 * README.Portability: Change "ISO C89" to "ISO C90".
5877 * c-parse.in (primary, initelt): Likewise.
5879 2004-02-08 Richard Sandiford <rsandifo@redhat.com>
5881 * real.c (encode_ibm_extended): Normalize the input value before
5882 converting it to a double. Handle the case where a normal value
5885 2004-02-08 Kazu Hirata <kazu@cs.umass.edu>
5887 * c-objc-common.c (c_cannot_inline_tree_fn): Fix a typo in a
5889 * cse.c (preferrable): Change to preferable. Update all of its
5891 * genautomata.c (ainsn): Change
5892 first_ainsn_with_given_equialence_num to
5893 first_ainsn_with_given_equivalence_num. Update all of its
5896 2004-02-08 Jan Hubicka <jh@suse.cz>
5898 * schedule-ebb.c (schedule_ebbs): Do not allocate reg life data.
5900 2004-02-07 David Edelsohn <edelsohn@gnu.org>
5902 * function.c (assign_parms): Fix formatting.
5904 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
5906 * default.h (PROMOTE_PROTOTYPES): Remove.
5907 * system.h (PROMOTE_FUNCTION_RETURN, PROMOTE_PROTOTYPES,
5908 STRUCT_VALUE_REGNUM, SETUP_INCOMING_VARARGS,
5909 EXPAND_BUILTIN_SAVEREGS): Poison.
5910 * target-def.h (TARGET_PROMOTE_FUNCTION_RETURN): Define as
5911 hook_bool_tree_false.
5912 (TARGET_PROMOTE_PROTOTYPES): Likewise.
5913 * target.h: Replace SETUP_INCOMING_VARARGS with
5914 targetm.calls.setup_incoming_varargs().
5915 * targhooks.c (default_promote_function_return): Remove.
5916 (default_promote_prototypes): Likewise.
5917 (default_struct_value_rtx): Always abort().
5918 (default_expand_builtin_saveregs): Always print an error
5920 (default_setup_incoming_varargs): Do nothing.
5921 (default_pretend_outgoing_varargs_named): Don't depend on
5922 SETUP_INCOMING_VARARGS.
5923 * targhooks.h: Remove the prototype for
5924 default_promote_function_return and
5925 default_promote_prototypes.
5927 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
5929 * system.h (SHARED_SECTION_ASM_OP): Poison.
5930 * varasm.c (data_section): Don't use SHARED_SECTION_ASM_OP.
5931 * doc/tm.texi (SHARED_SECTION_ASM_OP): Remove.
5933 2004-02-07 Zack Weinberg <zack@codesourcery.com>
5936 * c-decl.c (diagnose_mismatched_decls): Only give special
5937 treatment when olddecl is DECL_BUILT_IN, if C_DECL_INVISIBLE
5939 (merge_decls): Don't clear DECL_BUILT_IN_CLASS and
5940 DECL_FUNCTION_CODE when defining a built-in function.
5941 Don't update DECL_ESTIMATED_INSNS.
5942 * dwarf2out.c (dwarf2out_decl): Don't ignore built-in
5944 * tree.h: Delete DECL_ESTIMATED_INSNS.
5945 * tree-inline.c (struct inline_data): Delete inlined_insns field.
5946 (expand_call_inline, optimize_inline_calls): Don't update
5947 DECL_ESTIMATED_INSNS nor inlined_insns.
5948 * cgraphunit.c (cgraph_analyze_function): Don't update
5949 DECL_ESTIMATED_INSNS.
5951 2004-02-07 Zack Weinberg <zack@codesourcery.com>
5953 * c-common.c (shadow_warning): Delete.
5954 * c-common.h (free_parser_stacks, shadow_warning, sw_kind): Delete.
5955 * c-decl.c (warn_if_shadowing): Issue shadow warnings directly.
5956 * c-opts.c (c_common_parse_file): Don't call free_parser_stacks.
5957 * c-parse.in (free_parser_stacks): Delete.
5959 2004-02-07 Nathanael Nerode <neroden@gcc.gnu.org>
5961 * Makefile.in, config/t-slibgcc-darwin, config/t-slibgcc-elf-ver,
5962 config/t-slibgcc-sld, config/mips/t-iris5-6, config/sh/t-linux:
5963 Use the top level mkinstalldirs, not the one in the gcc subdir.
5964 * mkinstalldirs: Remove (from the gcc subdir).
5966 2004-02-07 Roger Sayle <roger@eyesopen.com>
5969 * fold-const.c (fold_convert): New function to provide type
5970 conversion to the middle-end without using convert.
5971 (negate_expr, associate_trees, size_diffop, omit_one_operand,
5972 operand_equal_for_comparison_p, pedantic_omit_one_operand,
5973 invert_truthvalue, optimize_bit_field_compare, range_binop,
5974 decode_field_reference, make_range, build_range_check, unextend,
5975 fold_truthop, extract_muldiv_1, fold_mathfn_compare,
5976 fold_binary_op_with_conditional_arg, fold_inf_compare,
5977 fold_single_bit_test, fold, multiple_of_p): Replace all calls to
5978 convert with calls to fold_convert.
5980 2004-02-07 Jan Hubicka <jh@suse.cz>
5982 * genrecog.c (find_operand): add extra argument stop.
5983 (validate_pattern): Verify that mach_dup is duplicating operand
5984 defined lexically earlier.
5986 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
5988 * config.gcc: Don't mention MAX_LONG_TYPE_SIZE.
5989 * system.h (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
5990 MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Poison.
5991 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
5992 config/ia64/ia64.h, config/ip2k/ip2k.h,
5993 config/iq2000/iq2000.h, config/mips/iris5.h,
5994 config/mips/mips.h, config/pa/pa-64.h, config/pa/pa.h,
5995 config/rs6000/aix51.h, config/rs6000/aix52.h,
5996 config/rs6000/darwin.h, config/rs6000/rs6000.h,
5997 config/s390/s390.h, config/sh/sh.h, config/sparc/freebsd.h,
5998 config/sparc/linux.h, config/sparc/linux64.h,
5999 config/sparc/netbsd-elf.h, config/sparc/sparc.h,
6000 config/xtensa/xtensa.h: Remove the definitions of
6001 MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE, and/or
6002 MAX_WCHAR_TYPE_SIZE.
6003 * doc/tm.texi (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
6004 MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Remove.
6006 2004-02-07 Stephane Carrez <stcarrez@nerim.fr>
6009 * config/m68hc11/m68hc11.md ("doloop_end"): Pass dummy arguments to
6012 2004-02-07 Josef Zlomek <zlomekj@suse.cz>
6014 * var-tracking.c (vt_add_function_parameters): Surround checkings by
6015 #ifdef ENABLE_CHECKING and #endif.
6017 2004-02-07 Roger Sayle <roger@eyesopen.com>
6019 * fold-const.c (negate_expr_p, negate_expr): Optimize -(A+B) into
6020 either (-A)-B or (-B)-A, if A or B is easily negated respectively.
6021 (fold) <MINUS_EXPR>: Optimize (A*C) - (B*C) -> (A-B)*C for both
6022 integer types and floating point with unsafe_math_optimizations.
6023 Add similar optimization for (A*C1) - (A*C2) -> A*(C1-C2).
6024 Optimize A - B as A + (-B), if B is easily negated.
6026 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
6028 * c-ppoutput.c, cfganal.c, diagnostic.h, print-rtl.c,
6029 config/darwin.c, config/darwin.h, config/ia64/ia64-c.c,
6030 config/m32r/linux.h, config/rs6000/ppc64-fp.c,
6031 config/sparc/openbsd.h, doc/makefile.texi, doc/passes.texi:
6034 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
6036 * c-ppoutput.c, var-tracking.c: Fix comment typos.
6038 2004-02-06 James E Wilson <wilson@specifixinc.com>
6040 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Only define for
6041 glibc 2.3 or better.
6043 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
6045 * doc/tm.texi (TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL): Change
6046 to FLOAT_LIB_COMPARE_RETURNS_BOOL.
6048 2004-02-07 Alan Modra <amodra@bigpond.net.au>
6050 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add darwin-ldouble.c.
6051 (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
6052 (SHLIB_MKMAP_OPTS): Delete.
6053 (TARGET_LIBGCC2_CFLAGS): Add -specs.
6054 (bispecs): Add rule.
6055 * config/rs6000/libgcc-ppc64.ver: New file.
6056 * config/rs6000/ppc64-fp.c (__fixtfdi, __floatditf): New functions.
6057 (__floatdidf, __floatdisf): Optimize multiply.
6058 (__fixunstfdi): New function.
6059 * config/rs6000/rs6000.c (rs6000_complex_function_value): Allow for
6060 real and imag parts larger than one register.
6061 (function_arg): Correct type of reg used when fp arg split partially
6063 * config/rs6000/darwin-ldouble.c: Protect with #if !_SOFT_FLOAT
6064 and __MACH__ or __powerpc64__.
6066 2004-02-06 Roger Sayle <roger@eyesopen.com>
6067 Ulrich Weigand <uweigand@de.ibm.com>
6069 * builtins.c (expand_builtin_signbit): Use extract_bit_field instead
6070 of gen_highpart or gen_lowpart when the floating point format is
6071 wider than the result mode.
6073 2004-02-06 Andrew Pinski <pinskia@physics.uc.edu>
6075 * dwarf2out.c (loclabel_num): Move into #ifdef
6076 DWARF2_DEBUGGING_INFO.
6078 2004-02-06 Ziemowit Laski <zlaski@apple.com>
6080 * objc/objc-act.c (build_super_template) the 'class' field of
6081 'struct _objc_super' shall be named 'super_class' #ifdef OBJCPLUS.
6082 (get_super_receiver): Likewise.
6084 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
6086 * reload1.c (check_eliminable_occurrences): Optimize the reset
6088 (eliminate_regs_in_insn): Likewise.
6090 2004-02-06 Daniel Berlin <dberlin@dberlin.org>
6091 Josef Zlomek <zlomekj@suse.cz>
6093 * dwarf2out.c (struct gcc_debug_hooks): Call dwarf2out_begin_function
6094 at the beginning of function, call dwarf2out_var_location for
6095 NOTE_INSN_VAR_LOCATION note.
6096 (struct var_loc_node, struct var_loc_list_def, loclabel_num,
6097 decl_loc_table): New.
6098 (lookup_decl_loc): New function.
6099 (add_var_loc_to_decl): New function.
6100 (based_loc_descr): Added parameter can_use_fbreg, DW_OP_fbreg is used
6101 only if can_use_fbreg.
6102 (mem_loc_descriptor): Added parameter can_use_fbreg, pass it to other
6104 (loc_descriptor): Likewise. Process VAR_LOCATION.
6105 (concat_loc_descriptor): Call loc_descriptor with can_use_fbreg == true.
6106 (loc_descriptor_from_tree): Call mem_loc_descriptor with
6107 can_use_fbreg == true.
6108 (add_location_or_const_value_attribute): Added parameter enum
6109 dwarf_attribute attr, generate attribute ATTR. Create the location list.
6110 (add_bound_info): Call loc_descriptor with can_use_fbreg == true.
6111 (gen_formal_parameter_die): Call add_location_or_const_value_attribute
6112 with attr == DW_AT_location.
6113 (gen_subprogram_die): Generate the location list for DW_AT_frame_base
6114 if frame_base_decl is defined and has a location list.
6115 (gen_variable_die): Call add_location_or_const_value_attribute with
6116 attr == DW_AT_location.
6117 (dwarf2out_var_location): New function.
6118 (dwarf2out_begin_function): New function.
6119 (dwarf2out_init): Create decl_loc_table.
6121 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
6123 * loop.c (force_movables): Transitively increase the priorities of
6124 all insns forces by an insn, not just the first one.
6126 2004-02-06 Josef Zlomek <zlomekj@suse.cz>
6127 Daniel Berlin <dberlin@dberlin.org>
6129 Josef Zlomek <zlomekj@suse.cz>
6130 * Makefile.in (var-tracking.o): New.
6131 * common.opt (fvar-tracking): New.
6132 * flags.h (flag_var_tracking): New.
6133 * gengtype.c (adjust_field_rtx_def): NOTE_INSN_VAR_LOCATION was added.
6134 * opts.c (common_handle_option): Add OPT_fvar_tracking.
6135 * print-rtl.c (print_rtx): NOTE_INSN_VAR_LOCATION was added.
6136 * rtl.c (note_insn_name): Likewise.
6137 * rtl.def (VAR_LOCATION): New.
6138 * rtl.h (NOTE_VAR_LOCATION): New.
6139 (NOTE_VAR_LOCATION_DECL): New.
6140 (NOTE_VAR_LOCATION_LOC): New.
6141 (enum insn_note): NOTE_INSN_VAR_LOCATION was added.
6142 (variable_tracking_main): New exported function.
6143 * timevar.def (TV_VAR_TRACKING): New.
6144 * toplev.c (enum dump_file_index): Added DFI_vartrack.
6145 (dump_file): "vartrack" was added (-dV).
6146 (flag_var_tracking): New.
6147 (f_options): "var-tracking" was added.
6148 (rest_of_handle_variable_tracking): New function.
6149 (rest_of_compilation): Run variable tracking.
6150 (process_options): If user has not specified flag_var_tracking set it
6151 according to optimize, debug_info_level and debug_hooks.
6152 * tree.h (frame_base_decl): New.
6153 * var-tracking.c: New file.
6154 * config/ia64/ia64.c (ia64_flag_var_tracking): New variable.
6155 (ia64_override_options): Set flags to run variable tracking in machine
6156 dependent reorg instead of toplev.c.
6157 (ia64_reorg): Run variable tracking if wanted.
6158 * doc/invoke.texi: Mention variable tracking in -dV,
6159 add and -fvar-tracking.
6160 * doc/passes.texi: Added variable tracking pass.
6162 Daniel Berlin <dberlin@dberlin.org>
6163 * debug.h (struct gcc_debug_hooks): Added var_location debug hook.
6164 * dbxout.c (dbx_debug_hooks): Likewise.
6165 (xcoff_debug): Likewise.
6166 * debug.c (do_nothing_debug_hooks): Likewise.
6167 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
6168 * dwarfout.c (dwarf_debug_hooks): Likewise.
6169 * sdbout.c (sdb_debug_hooks): Likewise.
6170 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6171 * final.c (final_scan_insn): Call var_location debug hook for each
6172 NOTE_INSN_VAR_LOCATION.
6174 2004-02-06 Jan Hubicka <jh@suse.cz>
6176 * flow.c (update_life_info): Allocate reg_deaths when called from
6178 (attempt_auto_inc): Update life ranges accordingly.
6180 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
6183 * dwarf2out.c (gen_decl_die): Handle anonymous struct members.
6185 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
6187 * cfganal.c (flow_call_edges_add): Never split a libcall block.
6189 2004-02-06 Daniel Berlin <dberlin@dberlin.org>
6191 * dwarf2out.c (output_loc_list): Don't use deltas if we have
6192 a separate line info table in use.
6193 Use the correct size for terminators.
6194 (output_die): Use offset, not delta.
6196 2004-02-06 H.J. Lu <hongjiu.lu@intel.com>
6198 * doc/invoke.texi: Remove the pni option from -mfpmath=.
6200 2004-02-06 Jan Hubicka <jh@suse.cz>
6202 * recog.c (split_all_insns): Do not update reg info.
6203 * regrename.c (regrename_optimize): Likewise.
6204 * toplev.c (rest_of_handle_reorder_blocks): Likewise.
6205 * flow.c (struct propagate_block_info): Add insn_num field.
6206 (reg_deaths): New array.
6207 (life_analysis): Free reg_deaths info.
6208 (allocate_reg_life_data): Allocate reg_deaths array.
6209 (propagate_one_insn): Use new array.
6210 (init_propagate_block): Initialize it.
6211 (free_propagate_block_info): Finish compuation of
6213 (attempt_auto_inc): Sanity check that REG_INFO is not
6214 computed at same time.
6215 (mark_used_regs): Update new array.
6217 * reg-stack.c (subst_stack_regs): Unshare clobbers before
6220 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
6222 * config/s390/s390.md (*extendsiqi2_short_displ): Change to
6223 *extendqisi2_short_displ.
6225 2004-02-06 Alan Modra <amodra@bigpond.net.au>
6227 * doc/tm.texi (INIT_CUMULATIVE_ARGS): Update doco.
6228 * calls.c (expand_call): Pass n_named_args to INIT_CUMULATIVE_ARGS.
6229 (emit_library_call_value_1): Likewise pass nargs.
6230 * expr.c (block_move_libcall_safe_for_call_parm): Pass 3 here.
6231 * function.c (assign_parms): Pass -1 to INIT_CUMULATIVE_ARGS.
6232 * config/rs6000/rs6000.c (init_cumulative_args): Use n_named_args
6233 parameter instead of scanning TYPE_ARGS_TYPES to count args.
6234 * config/rs6000/rs6000-protos.h (init_cumulative_args): Update
6236 * config/rs6000/rs6000.h (INIT_CUMULATIVE_ARGS): Pass extra arg.
6237 (INIT_CUMULATIVE_INCOMING_ARGS): Set extra arg to 1000.
6238 (INIT_CUMULATIVE_LIBCALL_ARGS): Set extra arg to 0.
6239 * config/sh/sh.c (sh_output_mi_thunk): Pass 1 as n_named_args to
6240 INIT_CUMULATIVE_ARGS.
6241 * config/alpha/alpha.h (INIT_CUMULATIVE_ARGS): Update.
6242 * config/alpha/unicosmk.h, config/alpha/vms.h, config/arc/arc.h,
6243 config/arm/arm.h, config/avr/avr.h, config/c4x/c4x.h,
6244 config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.h,
6245 config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
6246 config/ia64/ia64.h, config/ip2k/ip2k.h, config/iq2000/iq2000.h,
6247 config/iq2000/iq2000.c, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
6248 config/m68k/m68k.h, config/mcore/mcore.h, config/mips/mips.h,
6249 config/mmix/mmix.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h,
6250 config/pa/pa.h, config/pdp11/pdp11.h, config/s390/s390.h,
6251 config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
6252 config/v850/v850.h, config/vax/vax.h, config/xtensa/xtensa.h: Likewise.
6254 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
6256 * genemit.c (gen_exp) [CONST_INT]: Use const_int_rtx whenever
6259 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
6261 * reload1.c (eliminate_regs_in_insn): If a set has a REG_EQUAL
6262 note containing (plus (reg) (const_int)), where reg is an
6263 eliminable reg, then perform the register elimination without
6264 depending on eliminate_regs().
6266 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
6268 * config/arc/arc.c (arc_return_in_memory): Check the return
6269 value of int_size_in_bytes against -1. Don't check
6271 * config/avr/avr.c (avr_return_in_memory): Check the return
6272 value of int_size_in_bytes against -1.
6273 * config/ip2k/ip2k.c (ip2k_return_in_memory): Likewise.
6274 * config/m68hc11/m68hc11.c (m68hc11_return_in_memory):
6276 * config/mcore/mcore.c (mcore_return_in_memory): Likewise.
6277 * config/stormy16/stormy16.c (xstormy16_return_in_memory):
6280 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
6282 * config/frv/frv-protos.h: Remove the prototype for
6283 frv_setup_incoming_varargs.
6284 * config/frv/frv.c (TARGET_SETUP_INCOMING_VARARGS): New.
6285 (frv_setup_incoming_varargs): Make it static.
6286 * config/frv/frv.h (SETUP_INCOMING_VARARGS): Remove.
6288 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
6290 * config/fr30/fr30-protos.h: Remove the prototype for
6291 fr30_setup_incoming_varargs.
6292 Update the prototypes for fr30_num_arg_regs and
6293 fr30_function_arg_partial_nregs.
6294 * config/fr30/fr30.c (TARGET_STRUCT_VALUE_RTX): New.
6295 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
6296 (fr30_setup_incoming_varargs): Make it static.
6297 Add argument second_time. Don't do anything when second_time
6299 (fr30_num_arg_regs): Change the type of the first argument to
6301 (fr30_function_arg_partial_nregs): Change the type of the
6302 second argument to enum machine_mode.
6303 * config/fr30/fr30.h (STRUCT_VALUE): Remove.
6304 (SETUP_INCOMING_VARARGS): Remove.
6306 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
6308 * config/arc/arc-protos.h: Remove the prototype for
6309 arc_setup_incoming_varargs.
6310 * config/arc/arc.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
6311 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
6312 (arc_setup_incoming_varargs): Make it static.
6313 (arc_external_libcall): Likewise.
6314 * config/arc/arc.h (SETUP_INCOMING_VARARGS): Remove.
6315 Remove the commented-out definition of
6316 ASM_OUTPUT_EXTERNAL_LIBCALL.
6318 2004-02-05 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
6320 * config/sh/t-linux (SHLIB_INSTALL): Prepend $$(DESTDIR)
6321 to $$(slibdir) in the installation commands.
6323 2004-02-05 David Edelsohn <edelsohn@gnu.org>
6325 * reload.c (refers_to_regno_for_reload_p): Index hard_regno_nregs
6326 with inner_regno, not regno.
6327 * rtlanal.c (refers_to_regno_p): Same.
6329 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
6331 * config.gcc: Remove i370 support.
6333 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
6335 * doc/install.texi: Update automake and autoconf version
6336 requirements. Note where to find gcj automake version.
6338 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
6340 * Makefile.in (generate-manpages): Move dependencies to ...
6342 * doc/makefile.texi: Document new targets.
6343 * doc/sourcebuild.texi (Make-lang.in): Document new langhooks.
6345 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
6348 Makefile.in (srcextra): Add a level of indirection to ...
6349 (gcc.srcextra): ... here.
6350 (po-generated): Delete.
6351 (po/$(PACKAGE).pot: Use srcextra instead of po-generated. Depend on
6353 (start.encap): Remove superfluous lang.srcextra dependency.
6354 objc/Make-lang.in (po-generated): Delete.
6356 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
6358 * config/ia64/ia64.c (REG_GP): Remove.
6360 2004-02-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6362 * config/mips/iris5gas.h (PREFERRED_DEBUGGING_TYPE): Define.
6364 2004-02-05 Devang Patel <dpatel@apple.com>
6366 * dwarf2out.c (force_type_die): Look up input type itself
6367 instead of root_type() of type.
6369 2004-02-05 Andreas Krebbel <krebbel1@de.ibm.com>
6371 * config/s390/s390.md ("*tmqidi_ext"): New insn.
6372 ("*extendqidi2_short_displ", "*extendsiqi2_short_displ"): Old
6373 pre-reload splitters are transformed to post-reload
6374 define_insn_and_split patterns.
6375 ("*tmqisi_ext"): Renamed old "*tmqi_ext".
6377 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
6379 * config/cris/cris.h: Replace PROMOTE_PROTOTYPES with
6380 TARGET_PROMOTE_PROTOTYPES.
6382 2004-02-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6386 2004-01-15 Geoffrey Keating <geoffk@apple.com>
6388 * c-typeck.c (constructor_asmspec): Delete.
6389 (struct initializer_stack): Delete field 'asmspec'.
6390 (start_init): Delete saving of asmspec.
6391 (finish_init): Don't update constructor_asmspec.
6392 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
6393 * stmt.c (expand_asm): Duplicate strings from tree.
6394 (expand_asm_operands): Likewise.
6395 * tree.c (tree_size): Update computation of size of STRING_CST.
6396 (make_node): Don't make STRING_CST nodes.
6397 (build_string): Allocate string with tree node.
6398 * tree.def (STRING_CST): Update comment.
6399 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
6400 (tree_string): Place contents of string in tree node.
6401 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
6404 2004-02-05 Joseph S. Myers <jsm@polyomino.org.uk>
6406 * diagnostic.h (DEFINE_DIAGNOSTIC_KIND): Change parameter M to
6409 2004-02-05 Dorit Naishlos <dorit@il.ibm.com>
6411 * config/rs6000/altivec.md (*movv4si_internal): At least one
6412 operand must be altivec_register_operand.
6413 (*movv8hi_internal1): Likewise.
6414 (*movv16qi_internal1): Likewise.
6415 (*movv4sf_internal1): Likewise.
6417 2004-02-05 David Edelsohn <edelsohn@gnu.org>
6419 * configure.ac (gcc_cv_as_powerpc_mfcrf): Correct test for mfcr.
6420 * configure: Regenerate.
6422 2004-02-05 Jonathan Wakely <redi@gcc.gnu.org>
6424 * doc/install.texi: Update description of --gxx-include-dir to
6425 give correct default value.
6427 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
6429 * config/h8300/h8300.h (REG_OK_FOR_BASE_NONSTRICT_P): Replace
6432 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
6434 * config/pa/pa.c (emit_hpdiv_const): Replace gen_rtx with
6437 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
6439 * emit-rtl.c: Update the comment about the file.
6441 2004-02-05 Joseph S. Myers <jsm@polyomino.org.uk>
6443 * sourcebuild.texi (Test Idioms): Update testcase naming
6446 2004-02-04 Per Bothner <per@bothner.com>
6448 Partially revert/redo 2003-10-01 change; fix -fworking-directory.
6449 * c-ppoutput.c (pp_dir_change): New function.
6450 * c-common.h (pp_dir_change): New declaration.
6451 * cpplib.h (struct cpp_options): Remove working_directory field.
6452 * cppinit.c (cpp_find_main_file, cpp_push_main_file): Merge back to
6453 (cpp_read_main_file): as before 10-01. Call _cpp_stack_file.
6454 Don't handle -fworking_directory here, but in c_common_post_options.
6455 (read_original_directory): Don't back up when done.
6456 Don't clear no-longer used working_directory flag.
6457 * cpplib.h: Update declarations to match.
6458 * c-lex.c (cb_dir_change): Move to c-opts.c.
6459 (init_c_lex): Don't set dir_change callback here, since we want
6460 to set it even if flag_preprocess_only.
6461 * c-opts.c (cb_dir_change): Function moved from c-lex.c.
6462 (c_common_post_options): Set dir_change callback.
6463 Call pp_dir_change if approporiate.
6464 (finish_options): Don't call cpp_find_main_file here. Hence remove
6465 unneeded parameter and result. Do LC_RENAME for <built-in>.
6466 (c_common_post_options): Call cpp_read_main_file here instead.
6467 (c_common_init): Update accordingly.
6468 (push_command_line_include): Don't cpp_push_main_file.
6469 Do LC_RENAME rather than LC_LEASE to get back to main file.
6470 Compared to pre-10-01 version, inline cpp_rename_to_main_file.
6471 (c_common_parse_file): Call cpp_read_main_file for subsequent main
6472 files, but call finish_options for all files.
6473 * c-opts.c (sanitize_cpp_opts): Don't set cpp_opts->working_directory.
6474 * fix-header.c (read_scan_file): Call cpp_read_main_file instead of
6475 cpp_find_main_file + cpp_push_main_file.
6476 * c-lex.c (fe_file_change): Don't set main_input_filename here.
6477 * opts.c (handle_options): Only set main_input_filename first time.
6479 2004-02-05 Ian Lance Taylor <ian@wasabisystems.com>
6481 * config/arm/arm.h (REG_CLASS_NAMES): Add missing comma.
6483 2004-02-04 Geoffrey Keating <geoffk@apple.com>
6485 * reload.c (find_equiv_reg): When checking for register overlap,
6486 don't index hard_regno_nregs with a pseudo-reg.
6488 2004-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6490 * config/s390/s390.c (s390_trampoline_template): Remove gen_rtx().
6492 2004-02-04 David Edelsohn <edelsohn@gnu.org>
6494 * reload.c (refers_to_regno_for_reload_p): Test regno, not inner_regno,
6495 against FIRST_PSEUDO_REGISTER.
6497 2004-02-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6499 * Makefile.in: Move target, host overrides after per-language
6502 * config/mips/t-iris5-as (FORCE_DEBUG_ADAFLAGS): Clear.
6503 (GNATLIBCFLAGS): Remove -g.
6505 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
6507 * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
6508 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
6509 config/ia64/ia64.c, config/ia64/unwind-ia64.c,
6510 config/m32r/m32r.c, config/ns32k/ns32k.c, config/pa/pa.c,
6511 config/pdp11/pdp11.c, config/rs6000/rs6000.c,
6512 config/sparc/sparc.c, config/vax/vax.c: Revert the
6513 replacements of "FALLTHRU" with "Fall through" done in the
6516 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
6518 * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
6519 config/arm/arm.c, config/arm/arm.md,
6520 config/cris/cris-protos.h, config/fr30/fr30.c,
6521 config/fr30/fr30.h, config/h8300/h8300.c, config/i386/i386.h,
6522 config/i860/i860.c, config/i860/i860.h, config/ia64/ia64-c.c,
6523 config/ia64/ia64.c, config/ia64/ia64.h, config/ip2k/ip2k.h,
6524 config/ip2k/ip2k.md, config/ip2k/libgcc.S,
6525 config/m32r/linux.h, config/m32r/m32r.c, config/m32r/m32r.h,
6526 config/m68k/m68k.c, config/m68k/netbsd-elf.h,
6527 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.md,
6528 config/ns32k/netbsd.h, config/ns32k/ns32k.c,
6529 config/ns32k/ns32k.h, config/pdp11/pdp11.h,
6530 config/rs6000/darwin-ldouble.c, config/s390/s390.h,
6531 config/s390/s390.md, config/sparc/netbsd-elf.h,
6532 config/sparc/openbsd.h, config/sparc/sparc.c,
6533 config/xtensa/lib2funcs.S: Fix comment formatting.
6535 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
6537 * config/alpha/alpha.c, config/arc/arc.c,
6538 config/arm/arm-cores.def, config/arm/arm.c, config/arm/arm.h,
6539 config/arm/arm1026ejs.md, config/arm/arm1136jfs.md,
6540 config/arm/arm926ejs.md, config/arm/vfp.md, config/avr/avr.c,
6541 config/c4x/c4x.c, config/cris/cris.c, config/frv/frv.md,
6542 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
6543 config/ia64/ia64.c, config/ia64/unwind-ia64.c,
6544 config/iq2000/iq2000.c, config/m32r/m32r.c,
6545 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
6546 config/ns32k/ns32k.c, config/pa/pa.c, config/pdp11/pdp11.c,
6547 config/rs6000/darwin-ldouble.c, config/rs6000/rs6000.c,
6548 config/rs6000/rs6000.h, config/sparc/sparc.c,
6549 config/vax/vax.c: Fix comment typos. Follow spelling
6552 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
6554 * alloc-pool.h, c-convert.c, c-lang.c, c-tree.h,
6555 caller-save.c, df.h, genconfig.c, global.c, lcm.c,
6556 ra-rewrite.c, ra.c, regclass.c, regs.h, resource.c,
6557 sched-rgn.c, config/arm/aof.h, config/arm/cirrus.md,
6558 config/arm/fpa.md, config/arm/iwmmxt.md,
6559 config/arm/netbsd-elf.h, config/arm/netbsd.h,
6560 config/m68hc11/m68hc11.md, config/mips/iris5.h,
6561 config/mn10300/mn10300.md, config/rs6000/altivec.md,
6562 config/sparc/netbsd-elf.h: Update copyright.
6564 2004-02-04 Eric Botcazou <ebotcazou@libertysurf.fr>
6566 * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
6567 for all modes whose size is greater than 8 bytes if ARCH32.
6568 (sparc_va_arg): Handle all modes whose size is greater than 8 bytes
6569 by reference if ARCH32.
6571 2004-02-04 Aldy Hernandez <aldyh@redhat.com>
6573 * cgraphunit.c (cgraph_postorder): Fix typo in comment.
6575 2004-02-04 Ulrich Weigand <uweigand@de.ibm.com>
6577 * config/s390/s390.md ("*la_64" + peepholes, "reload_indi"): Move
6578 to before adddi3 insn patterns.
6579 ("*la_31" + peepholes, "*la_31_and", "*la_31_and_cc", "force_la_31",
6580 "reload_insi"): Move to before addsi3 insn patterns.
6582 2004-02-04 Mark Mitchell <mark@codesourcery.com>
6584 * calls.c (initialize_argument_information): Add CALL_FROM_THUNK_P
6585 parameter. Use it instead of current_function_is_thunk.
6586 * function.h (struct function): Update documentation for is_thunk.
6587 * tree.h (CALL_FROM_THUNK_P): New macro.
6588 * config/alpha/alpha.c (alpha_sa_mask): Do not check
6589 no_new_pseudos when testing current_function_is_thunk.
6590 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likeiwse.
6592 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
6594 * doc/tm.texi: Replace SETUP_INCOMING_VARARGS with
6595 TARGET_SETUP_INCOMING_VARARGS.
6597 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
6599 * emit-rtl.c (gen_rtx): Remove.
6600 * genattrtab.c: Don't mention gen_rtx in a comment.
6601 * rtl.h: Remove the prototype for gen_rtx.
6602 * doc/md.texi: Replace gen_rtx with gen_rtx_REG.
6604 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
6606 * config/arc/arc.h, config/fr30/fr30.h
6607 (SETUP_INCOMING_VARARGS): Remove the target-independent
6609 * doc/tm.texi: Don't mention deprecated target macros.
6611 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
6613 * config/fr30/fr30.h (FUNCTION_VALUE): Remove the
6614 target-independent comment.
6616 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
6618 * doc/interface.texi, doc/tm.texi, doc/trouble.texi: Don't
6619 mention deprecated target macros.
6621 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
6623 * config.gcc: Remove obsolete ports and configurations.
6624 * config/linux-aout.h, config/netware.h,
6625 config/t-linux-gnulibc1, config/d30v/abi,
6626 config/d30v/d30v-protos.h, config/d30v/d30v.c,
6627 config/d30v/d30v.h, config/d30v/d30v.md,
6628 config/d30v/libgcc1.asm, config/d30v/t-d30v,
6629 config/dsp16xx/dsp16xx-modes.def,
6630 config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
6631 config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md,
6632 config/i370/README, config/i370/i370-c.c,
6633 config/i370/i370-protos.h, config/i370/i370.c,
6634 config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
6635 config/i370/mvs.h, config/i370/oe.h, config/i370/t-i370,
6636 config/i386/freebsd-aout.h, config/i386/linux-aout.h,
6637 config/i386/moss.h, config/i386/netware.h,
6638 config/i386/svr3.ifile, config/i386/svr3dbx.h,
6639 config/i386/svr3gas.h, config/i386/svr3z.ifile,
6640 config/i386/t-udk, config/i386/udk.h, config/i386/vsta.h,
6641 config/i960/i960-c.c, config/i960/i960-coff.h,
6642 config/i960/i960-modes.def, config/i960/i960-protos.h,
6643 config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
6644 config/i960/rtems.h, config/i960/t-960bare,
6645 config/m68k/hp310.h, config/m68k/hp320.h,
6646 config/m68k/hp320base.h, config/m68k/m68kv4.h,
6647 config/m68k/netbsd.h, config/m68k/sgs.h, config/m68k/t-hp320:
6649 * doc/extend.texi, doc/install.texi, doc/invoke.texi,
6650 doc/md.texi: Remove mentions of obsolete ports.
6652 2004-02-04 Jan Hubicka <jh@suse.cz>
6654 * alias.c (find_base_term, get_addr): Do not dereference NULL
6655 pointer when all VALUE's locations has been invalidated.
6656 (rtx_equal_for_memref_p): Simplify checking of VALUEs.
6658 2004-02-03 Wolfgang Bangerth <bangerth@dealii.org>
6660 * doc/invoke.texi (x86 options): Fix spelling/wording.
6662 2004-02-03 Richard Sandiford <rsandifo@redhat.com>
6664 * config/mips/iris5.h (ASM_OUTPUT_ASCII): Use mips_output_ascii to
6665 put the original string in a comment.
6666 * config/mips/mips-protos.h (mips_output_ascii): Add prefix argument.
6667 * config/mips/mips.c (mips_output_ascii): Likewise.
6668 * config/mips/mips.h (ASM_OUTPUT_ASCII): Adjust accordingly.
6670 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
6672 * system.h (GIV_SORT_CRITERION): Poison.
6673 * config/avr/avr.h (GIV_SORT_CRITERION): Remove.
6674 * config/ip2k/ip2k.h (GIV_SORT_CRITERION): Likewise.
6676 2004-02-03 Roger Sayle <roger@eyesopen.com>
6679 * expr.c (expand_expr_real) <MULT_EXPR>: When performing widening
6680 multiplies with a multiplication of the wrong signedness, its the
6681 signedness of the multiplication that we've performed that needs to
6682 be passed to expand_mult_highpart_adjust. Avoid emitting a nop-move
6683 if expand_mult_highpart_adjust places the result in target.
6685 2004-02-03 Richard Henderson <rth@redhat.com>
6687 * varasm.c (const_desc_rtx_sym_eq): Compare symbol strings.
6689 2004-02-03 J"orn Rennecke <joern.rennecke@superh.com>
6691 * config.gcc (sh[234]l): Use little endian fragments.
6693 2004-02-03 Paul Koning <pkoning@equallogic.com>
6695 * config/pdp11/pdp11-modes.def: Add RESET_FLOAT_FORMAT calls.
6696 * config/pdp11/pdp11-protos.h (legitimate_const_double_p): Add.
6697 * config/pdp11/pdp11.c (encode_pdp11_f, decode_pdp11_f,
6698 encode_pdp11_d, decode_pdp11_d): New functions to handle PDP11
6699 floating point format.
6700 (pdp11_f_format, pdp11_d_format): New real_format descriptors for
6701 the above functions.
6702 (output_move_quad): Output float values in correct target format.
6703 (legitimate_const_double_p): New function.
6704 * config/pdp11/pdp11.h: Fix typos.
6705 (FLOAT_WORDS_BIG_ENDIAN): Add definition.
6706 (TARGET_FLOAT_FORMAT): Ditto.
6707 (pdp11_f_format, pdp11_d_format): Add external declarations.
6708 (MAX_REGS_PER_ADDRESS): Corrected.
6709 (LEGITIMATE_CONSTANT_P): Use legitimate_const_double_p().
6710 (PRINT_OPERAND): Output float literals in target format.
6712 2004-02-03 Mark Mitchell <mark@codesourcery.com>
6715 * tree.h (enum tree_index): Add TI_PUBLIC, TI_PROTECTED, and
6717 (access_public_node): Redefine.
6718 (access_protected_node): Likewise.
6719 (access_private_node): Likewise.
6720 * tree.c (build_common_tree_nodes): Create access_public_node,
6721 access_protected_node, and access_private_node.
6723 2004-02-03 Steve Ellcey <sje@cup.hp.com>
6725 * config/ia64/ia64.h (MASK_INLINE_INT_DIV_LAT): Change value.
6726 (MASK_INLINE_INT_DIV_THR): Ditto.
6727 (MASK_INLINE_SQRT_LAT): Ditto.
6728 (MASK_INLINE_SQRT_THR): Ditto.
6729 (MASK_DWARF2_ASM): Ditto.
6730 (MASK_EARLY_STOP_BITS): Ditto.
6732 2004-02-02 Paul Brook <paul@codesourcery.com>
6734 Merge from csl-arm-branch.
6736 2004-01-30 Paul Brook <paul@codesourcery.com>
6738 * aof.h (REGISTER_NAMES): Add vfp reg names
6739 (ADDITIONAL_REGISTER_NAMES): Ditto.
6740 * aout.h (REGISTER_NAMES): Ditto.
6741 (ADDITIONAL_REGISTER_NAMES): Ditto.
6742 * arm-protos.h: Update/Add Prototypes.
6743 * arm.c (init_fp_table): Rename from init_fpa_table. Update users.
6744 Only allow 0.0 for VFP.
6745 (fp_consts_inited): Rename from fpa_consts_inited. Update users.
6746 (values_fp): Rename from values_fpa. Update Users.
6747 (arm_const_double_rtx): Rename from const_double_rtx_ok_for_fpa.
6748 Update users. Only check valid constants for this hardware.
6749 (arm_float_rhs_operand): Rename from fpa_rhs_operand. Update Users.
6750 Only allow consts for FPA.
6751 (arm_float_add_operand): Rename from fpa_add_operand. Update users.
6752 Only allow consts for FPA.
6753 (use_return_insn): Check for saved VFP regs.
6754 (arm_legitimate_address_p): Handle VFP DFmode addressing.
6755 (arm_legitimize_address): Ditto.
6756 (arm_general_register_operand): New function.
6757 (vfp_mem_operand): New function.
6758 (vfp_compare_operand): New function.
6759 (vfp_secondary_reload_class): New function.
6760 (arm_float_compare_operand): New function.
6761 (vfp_print_multi): New function.
6762 (vfp_output_fstmx): New function.
6763 (vfp_emit_fstm): New function.
6764 (arm_output_epilogue): Output VPF reg restore code.
6765 (arm_expand_prologue): Output VFP reg save code.
6766 (arm_print_operand): Add 'P'.
6767 (arm_hard_regno_mode_ok): Return modes for VFP regs.
6768 (arm_regno_class): Return classes for VFP regs.
6769 (arm_compute_initial_elimination_offset): Include space for VFP regs.
6770 (arm_get_frame_size): Ditto.
6771 * arm.h (FIXED_REGISTERS): Add VFP regs.
6772 (CALL_USED_REGISTERS): Ditto.
6773 (CONDITIONAL_REGISTER_USAGE): Enable VFP regs.
6774 (FIRST_VFP_REGNUM): Define.
6775 (LAST_VFP_REGNUM): Define.
6776 (IS_VFP_REGNUM): Define.
6777 (FIRST_PSEUDO_REGISTER): Include VFP regs.
6778 (HARD_REGNO_NREGS): Handle VFP regs.
6779 (REG_ALLOC_ORDER): Add VFP regs.
6780 (enum reg_class): Add VFP_REGS.
6781 (REG_CLASS_NAMES): Ditto.
6782 (REG_CLASS_CONTENTS): Ditto.
6783 (CANNOT_CHANGE_MODE_CLASS) Handle VFP Regs.
6784 (REG_CLASS_FROM_LETTER): Add 'w'.
6785 (EXTRA_CONSTRAINT_ARM): Add 'U'.
6786 (EXTRA_MEMORY_CONSTRAINT): Define.
6787 (SECONDARY_OUTPUT_RELOAD_CLASS): Handle VFP regs.
6788 (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
6789 (REGISTER_MOVE_COST): Ditto.
6790 (PREDICATE_CODES): Add arm_general_register_operand,
6791 arm_float_compare_operand and vfp_compare_operand.
6792 * arm.md (various): Rename as above.
6793 (divsf3): Enable when TARGET_VFP.
6798 (arm_movdi): Disable when TARGET_VFP.
6799 (arm_movsi_insn): Ditto.
6800 (movsi): Only split with general regs.
6801 (cmpsf): Use arm_float_compare_operand.
6802 (push_fp_multi): Restrict to TARGET_FPA.
6805 * fpa.md (various): Rename as above.
6806 * doc/md.texi: Document ARM w and U constraints.
6808 2004-01-15 Paul Brook <paul@codesourcery.com>
6810 * config.gcc: Add with_fpu. Allow with-float=softfp.
6811 * config/arm/arm.c (arm_override_options): Rename *-s to *s.
6812 Break out of loop when we find a float-abi. Fix typo.
6813 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "fpu".
6815 * doc/install.texi: Document --with-fpu.
6817 2003-01-14 Paul Brook <paul@codesourcery.com>
6819 * config.gcc (with_arch): Add armv6.
6820 * config/arm/arm.h: Rename TARGET_CPU_*_s to TARGET_CPU_*s.
6821 * config/arm/arm.c (arm_overrride_options): Ditto.
6823 2004-01-08 Richard Earnshaw <rearnsha@arm.com>
6825 * arm.c (FL_ARCH3M): Renamed from FL_FAST_MULT.
6826 (FL_ARCH6): Renamed from FL_ARCH6J.
6827 (arm_arch3m): Renamed from arm_fast_multiply.
6828 (arm_arch6): Renamed from arm_arch6j.
6829 * arm.h: Update all uses of above.
6830 * arm-cores.def: Likewise.
6833 * arm.h (CPP_CPU_ARCH_SPEC): Emit __ARM_ARCH_6J__ define for armV6j,
6834 not arm6j. Add entry for arch armv6.
6836 2004-01-07 Richard Earnshaw <rearnsha@arm.com>
6838 * arm.c (arm_emit_extendsi): Delete.
6839 * arm-protos.h (arm_emit_extendsi): Delete.
6840 * arm.md (zero_extendhisi2): Also handle zero-extension of
6842 (zero_extendqisi2, extendhisi2, extendqisi2): Likewise.
6843 (thumb_zero_extendhisi2): Only match if not v6.
6844 (arm_zero_extendhisi2, thumb_zero_extendqisi2, arm_zero_extendqisi2)
6845 (thumb_extendhisi2, arm_extendhisi2, arm_extendqisi)
6846 (thumb_extendqisi2): Likewise.
6847 (thumb_zero_extendhisi2_v6, arm_zero_extendhisi2_v6): New patterns.
6848 (thumb_zero_extendqisi2_v6, arm_zero_extendqisi2_v6): New patterns.
6849 (thumb_extendhisi2_insn_v6, arm_extendhisi2_v6): New patterns.
6850 (thumb_extendqisi2_v6, arm_extendqisi_v6): New patterns.
6851 (arm_zero_extendhisi2_reg, arm_zero_extendqisi2_reg): Delete.
6852 (arm_extendhisi2_reg, arm_extendqisi2_reg): Delete.
6853 (arm_zero_extendhisi2addsi): Remove subreg. Add attributes.
6854 (arm_zero_extendqisi2addsi, arm_extendhisi2addsi): Likewise.
6855 (arm_extendqisi2addsi): Likewise.
6857 2003-12-31 Mark Mitchell <mark@codesourcery.com>
6860 * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
6861 + REG addressing modes.
6863 * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
6864 + REG addressing modes.
6866 2003-12-30 Mark Mitchell <mark@codesourcery.com>
6868 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept
6871 2003-30-12 Paul Brook <paul@codesourcery.com>
6873 * longlong.h: protect arm inlines with !defined (__thumb__)
6875 2003-30-12 Paul Brook <paul@codesourcery.com>
6877 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Always define __arm__.
6879 2003-12-30 Nathan Sidwell <nathan@codesourcery.com>
6881 * builtins.c (expand_builtin_apply_args_1): Fix typo in previous
6884 2003-12-29 Nathan Sidwell <nathan@codesourcery.com>
6886 * builtins.c (expand_builtin_apply_args_1): Add pretend args size
6887 to the virtual incoming args pointer for downward stacks.
6889 2003-12-29 Paul Brook <paul@codesourcery.com>
6891 * config/arm/arm-cores.def: Add cost function.
6892 * config/arm/arm.c (arm_*_rtx_costs): New functions.
6893 (arm_rtx_costs): Remove
6894 (struct processors): Add rtx_costs field.
6895 (all_cores, all_architectures): Ditto.
6896 (arm_override_options): Set targetm.rtx_costs.
6897 (thumb_rtx_costs): New function.
6898 (arm_rtx_costs_1): Remove cases handled elsewhere.
6899 * config/arm/arm.h (processor_type): Add COSTS parameter.
6901 2003-12-29 Nathan Sidwell <nathan@codesourcery.com>
6903 * config/arm/arm.md (generic_sched): arm926 has its own scheduler.
6904 (arm926ejs.md): Include it.
6905 * config/arm/arm926ejs.md: New pipeline description.
6907 2003-12-24 Paul Brook <paul@codesourcery.com>
6909 * config/arm/arm.c (arm_arch6j): New variable.
6910 (arm_override_options): Set it.
6911 (arm_emit_extendsi): New function.
6912 * config/arm/arm-protos.h (arm_emit_extendsi): Add prototype.
6913 * config/arm/arm.h (arm_arch6j): Declare.
6914 * config/arm/arm.md: Add sign/zero extend insns.
6916 2003-12-23 Paul Brook <paul@codesourcery.com>
6918 * config/arm/arm.c (all_architectures): Add armv6.
6919 * doc/invoke.texi: Document it.
6921 2003-12-19 Paul Brook <paul@codesourcery.com>
6923 * config/arm/arm.md: Add load1 and load_byte "type" attrs. Modify
6924 insn patterns to match.
6925 * config/arm/arm-generic.md: Ditto.
6926 * config/arm/cirrus.md: Ditto.
6927 * config/arm/fpa.md: Ditto.
6928 * config/amm/iwmmxt.md: Ditto.
6929 * config/arm/arm1026ejs.md: Ditto.
6930 * config/arm/arm1135jfs.md: Ditto. Add insn_reservation and bypasses
6933 2003-12-18 Nathan Sidwell <nathan@codesourcery.com>
6935 * config/arm/arm-protos.h (arm_no_early_alu_shift_value_dep): Declare.
6936 * config/arm/arm.c (arm_adjust_cost): Check shift cost for
6937 TYPE_ALU_SHIFT and TYPE_ALU_SHIFT_REG.
6938 (arm_no_early_store_addr_dep, arm_no_early_alu_shift_dep,
6939 arm_no_early_mul_dep): Correctly deal with conditional execution,
6940 parallels and single shift operations.
6941 (arm_no_early_alu_shift_value_dep): Define.
6942 * arm.md (attr type): Replace 'normal' with 'alu',
6943 'alu_shift' and 'alu_shift_reg'.
6944 (attr core_cycles): Adjust.
6945 (*addsi3_carryin_shift, andsi_not_shiftsi_si, *arm_shiftsi3,
6946 *shiftsi3_compare0, *notsi_shiftsi, *notsi_shiftsi_compare0,
6947 *not_shiftsi_compare0_scratch, *cmpsi_shiftsi, *cmpsi_shiftsi_swp,
6948 *cmpsi_neg_shiftsi, *arith_shiftsi, *arith_shiftsi_compare0,
6949 *arith_shiftsi_compare0_scratch, *sub_shiftsi,
6950 *sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch,
6951 *if_shift_move, *if_move_shift, *if_shift_shift): Set type
6952 attribute appropriately.
6953 * config/arm/arm1026ejs.md (alu_op): Adjust.
6954 (alu_shift_op, alu_shift_reg_op): New.
6955 * config/arm/arm1136.md: Add better bypasses for early
6956 registers. Remove load[234] and store[234] bypasses.
6957 (11_alu_op): Adjust.
6958 (11_alu_shift_op, 11_alu_shift_reg_op): New.
6960 2003-12-15 Nathan Sidwell <nathan@codesourcery.com>
6962 * config/arm/arm-protos.h (arm_no_early_store_addr_dep,
6963 arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Declare.
6964 * config/arm/arm.c (arm_no_early_store_addr_dep,
6965 arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Define.
6966 * config/arm/arm1026ejs.md: Add load-store bypass.
6967 * config/arm/arm1136jfs.md (11_alu_op): Take 2 cycles.
6968 Add bypasses between instructions.
6970 2003-12-10 Paul Brook <paul@codesourcery.com>
6972 * config/arm/arm.c (arm_fpu_model): New variable.
6973 (arm_fload_abi): New variable.
6974 (target_fpe_name): Rename from target_fp_name.
6975 (target_fpu_name): New variable.
6976 (arm_is_cirrus): Remove.
6977 (fpu_desc): New struct.
6979 (pf_model_for_fpu): Define.
6980 (all_loat_abis): Define.
6981 (arm_override_options): Set fp arch flags based on -mfpu=
6983 (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
6984 (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
6985 (*): Use new TARGET_* flags.
6986 * config/arm/arm.h (TARGET_ANY_HARD_FLOAT): Remove.
6987 (TARGET_HARD_FLOAT): No longer implies TARGET_FPA.
6988 (TARGET_SOFT_FLOAT): Ditto.
6989 (TARGET_SOFT_FLOAT_ABI): New.
6990 (TARGET_MAVERICK): Rename from TARGET_CIRRUS. No longer implies
6992 (TARGET_VFP): No longer implies TARGET_HARD_FLOAT.
6993 (TARGET_OPTIONS): Add -mfpu=.
6994 (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
6995 (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
6996 (arm_pf_model): Define.
6997 (arm_float_abi_type): Define.
6998 (fputype): Add FPUTYPE_VFP. Change SOFT_FPA->NONE
6999 * config/arm/arm.md: Use new TARGET_* flags.
7000 * config/arm/cirrus.md: Ditto.
7001 * config/arm/fpa.md: Ditto.
7002 * config/arm/elf.h (ASM_SPEC): Pass -mfloat-abi= and -mfpu=.
7003 * config/arm/semi.h (ASM_SPEC): Ditto.
7004 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Specify vfp.
7005 (FPUTYPE_DEFAULT): Set to VFP.
7006 * doc/invoke.texi: Document -mfpu= and -mfloat-abi=.
7008 2003-11-22 Phil Edwards <phil@codesourcery.com>
7011 * config/arm/arm.c (arm_output_mi_thunk): In Thumb mode, use
7012 'bx' instead of 'b' to avoid branch range restrictions. Output
7013 the thunk immediately before the thunked-to function.
7014 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Do not emit
7015 .thumb_func if a thunk is being generated. Emit .code 16 along
7016 with .thumb_func if a thunk is not being generated.
7018 2003-11-15 Nicolas Pitre <nico@cam.org>
7020 * config/arm/arm.md (ashldi3, arm_ashldi3_1bit, ashrdi3,
7021 arm_ashrdi3_1bit, lshrdi3, arm_lshrdi3_1bit): New patterns.
7022 * config/arm/iwmmxt.md (ashrdi3_iwmmxt): Renamed from ashrdi3.
7023 (lshrdi3_iwmmxt): Renamed from lshrdi3.
7024 * config/arm/arm.c (IWMMXT_BUILTIN2): Renamed argument accordingly.
7026 2003-11-12 Steve Woodford <scw@wasabisystems.com>
7027 Ian Lance Taylor <ian@wasabisystems.com>
7029 * config/arm/lib1funcs.asm (ARM_DIV_BODY, ARM_MOD_BODY): Add new
7030 code for __ARM_ARCH__ >= 5 && ! defined (__OPTIMIZE_SIZE__).
7032 2003-11-05 Phil Edwards <phil@codesourcery.com>
7034 * config/arm/arm.md (insn): Add new V6 instruction names.
7035 (generic_sched): New attr.
7036 * config/arm/arm-generic.md: Use generic_sched here.
7037 * config/arm/arm1026ejs.md: Do not model fetch/issue/decode
7038 stages of pipeline. Adjust latency counts accordingly.
7039 * config/arm/arm1136jfs.md: New file.
7041 2003-10-28 Mark Mitchell <mark@codesourcery.com>
7043 * config/arm/arm.h (processor_type): New enumeration type.
7044 (CPP_ARCH_DEFAULT_SPEC): Set appropriately for ARM 926EJ-S,
7045 ARM1026EJ-S, ARM1136J-S, and ARM1136JF-S processor cores.
7046 (CPP_CPU_ARCH_SPEC): Likewise.
7047 * config/arm/arm.c (arm_tune): New variable.
7048 (all_cores): Use cores.def.
7049 (all_architectures): Add representative processor.
7050 (arm_override_options): Restructure way in which tuning
7051 information is deduced.
7052 * arm.md: Update "insn" and "type" attributes throughout.
7053 (insn): New attribute.
7054 (type): Compute "mult" from "insn" attribute. Add load2,
7055 load3, load4 alternatives.
7056 (arm automaton): Move to arm-generic.md.
7057 * config/arm/arm-cores.def: New file.
7058 * config/arm/arm-generic.md: Likewise.
7059 * config/arm/arm1026ejs.md: Likewise.
7061 2004-02-03 Eric Botcazou <ebotcazou@libertysurf.fr>
7063 * doc/invoke.texi (SPARC options): Remove -mflat and
7064 all -mxxx (xxx:chip) options.
7065 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Delete.
7066 * config/sparc/litecoff.h (DBX_REGISTER_NUMBER): Likewise.
7067 * config/sparc/netbsd-elf.h (DBX_REGISTER_NUMBER): Likewise.
7068 * config/sparc/sol2.h (DBX_REGISTER_NUMBER): Likewise.
7069 * config/sparc/sparc-protos.h: Delete sparc_flat_* prototypes.
7070 * config/sparc/sparc.c: Likewise.
7071 (sparc_output_function_prologue): Remove TARGET_FLAT handling.
7072 (sparc_nonflat_function_prologue): Rename into sparc_function_prologue.
7073 (sparc_output_function_epilogue): Remove TARGET_FLAT handling.
7074 (sparc_nonflat_function_epilogue): Rename into sparc_function_epilogue.
7075 (struct sparc_frame_info, current_frame_info, zero_frame_info): Delete.
7076 (sparc_flat_must_save_register_p): Likewise.
7077 (sparc_flat_compute_frame_size): Likewise.
7078 (sparc_flat_save_restore): Likewise.
7079 (sparc_flat_function_prologue): Likewise.
7080 (sparc_flat_function_epilogue): Likewise.
7081 (sparc_flat_epilogue_delay_slots): Likewise.
7082 (sparc_flat_eligible_for_epilogue_delay): Likewise.
7083 (sparc_function_ok_for_sibcall): Remove TARGET_FLAT handling.
7084 * config/sparc/sparc.h (MASK_FLAT, TARGET_FLAT): Delete.
7085 (TARGET_SWITCHES): Remove -mflat and all -mxxx (xxx:chip) options.
7086 (SPARC_INCOMING_INT_ARG_FIRST): Remove TARGET_FLAT handling.
7087 (CONDITIONAL_REGISTER_USAGE): Likewise.
7088 (FRAME_POINTER_REQUIRED): Likewise.
7089 (INITIAL_ELIMINATION_OFFSET): Likewise.
7090 (BASE_RETURN_VALUE_REG): Likewise.
7091 (BASE_OUTGOING_VALUE_REG): Likewise.
7092 (BASE_PASSING_ARG_REG): Likewise.
7093 (BASE_INCOMING_ARG_REG): Likewise.
7094 (INCOMING_REGNO): Likewise.
7095 (OUTGOING_REGNO): Likewise.
7096 (LOCAL_REGNO): Likewise.
7097 (DELAY_SLOTS_FOR_EPILOGUE): Likewise.
7098 (ELIGIBLE_FOR_EPILOGUE_DELAY): Likewise.
7099 (EPILOGUE_USES): Likewise.
7100 * config/sparc/sparc.md ("isa" attribute): Change "v6" into "v7".
7101 ("flat" attribute): Delete.
7102 (do_builtin_setjmp_setup): Remove TARGET_FLAT and "flat" attribute
7104 (call followed by jump define_peephole's): Delete.
7105 (exception_receiver): Likewise.
7106 (builtin_setjmp_receiver): Likewise.
7107 * config/sparc/t-sparclite (MULTILIB_OPTIONS): Remove -mflat.
7109 2004-02-03 Paolo Bonzini <bonzini@gnu.org>
7113 * Makefile.in (c-parse.o, c-convert.o, c-typeck.o): Depend
7115 * objc/Make-lang.in (objc-parse.o): Depend on langhooks.h.
7116 * c-parse.in, c-convert.c, c-typeck.c, objc/objc-act.c:
7117 Include langhooks.h. Replace c_common_truthvalue_conversion
7118 with the truthvalue_conversion language hook throughout.
7119 (expr_no_commas): Call default_conversion before save_expr
7120 for the first term of the production 'x ? : y'.
7121 * c-common.c (c_common_truthvalue_conversion): Remove
7122 obsolete block. Invoke recursively the hook instead
7124 * c-convert.c (convert): handle ERROR_MARK_NODE.
7125 * c-typeck.c (build_binary_op): handle ERROR_MARK_NODE
7126 returned by the truthvalue_conversion language hook.
7127 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
7128 c_objc_common_truthvalue_conversion.
7129 * c-objc-common.c (c_objc_common_truthvalue_conversion):
7131 * c-tree.h (c_objc_common_truthvalue_conversion): Declare it.
7132 * objc/objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
7133 c_objc_common_truthvalue_conversion.
7135 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
7137 * config/c4x/c4x.h (FUNCTION_VALUE): Use gen_rtx_REG instead
7139 (LIBCALL_VALUE): Likewise.
7140 * config/ip2k/ip2k.c (mdr_try_propagate_clr_sequence): Use
7141 gen_rtx_CC0 instead of gen_rtx.
7142 * config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Use
7143 gen_rtx_fmt_e and gen_rtx_fmt_ee instead of gen_rtx.
7144 (m68hc11_expand_compare): Use gen_rtx_fmt_ee instead of
7146 (m68hc11_emit_logical): Likewise.
7148 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
7150 * config/alpha/alpha.c, config/arm/arm.c, config/c4x/c4x.c,
7151 config/fr30/fr30.md, config/frv/frv.c, config/frv/frv.md,
7152 config/h8300/h8300.c, config/ia64/ia64.c, config/ip2k/ip2k.md,
7153 config/m32r/m32r.md, config/m68hc11/m68hc11.c,
7154 config/mips/mips.md, config/mmix/mmix.c,
7155 config/mn10300/mn10300.c, config/mn10300/mn10300.md,
7156 config/ns32k/ns32k.c, config/pa/pa.md, config/pdp11/pdp11.c,
7157 config/rs6000/altivec.md, config/s390/s390.c,
7158 config/s390/s390.h, config/s390/s390.md, config/sh/sh.c,
7159 config/sh/sh.h, config/sh/sh.md, config/stormy16/stormy16.c:
7160 Use const0_rtx instead of GEN_INT (0). Do the same for other
7161 constants that are readily available.
7163 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
7165 * doloop.c, optabs.c, regmove.c, sched-deps.c,
7166 config/i386/i386.c, config/i386/i386.md: Use const0_rtx
7167 instead of GEN_INT (0). Do the same for other constants that
7168 are readily available.
7170 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
7172 * combine.c (simplify_set): Use gen_rtx_fmt_e instead of
7174 * emit-rtl.c (init_emit_once): Use gen_rtx_PC and gen_rtx_CC0
7176 * reload1.c (init_elim_table): Use gen_rtx_fmt_e instead of
7178 * config/ns32k/ns32k.md (udivmodhi4): Use gen_rtx_IOR and
7179 gen_rtx_ASHIFT instead of gen_rtx.
7180 (udivmodqi4): Likewise.
7182 2004-02-02 Richard Henderson <rth@redhat.com>
7185 * expr.c (store_expr): Use force_operand before emit_move_insn.
7187 2004-02-02 Jeff Law <law@redhat.com>
7188 Roger Sayle <roger@eyesopen.com>
7190 * tree.c (commutative_tree_code, associative_tree_code): New
7192 (iterative_hash_expr): Use commutative_tree_code.
7193 * tree.h (commutative_tree_code, associative_tree_code): Declare.
7194 * fold-const.c (operand_equal_p): Use commutative_tree_code
7195 rather than inlining the commutativity check.
7198 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
7200 * system.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Poison.
7201 * config/frv/frv-protos.h: Remove the prototype for
7202 frv_function_arg_keep_as_reference.
7203 * config/frv/frv.c (frv_function_arg_keep_as_reference):
7205 * config/frv/frv.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Likewise.
7206 * config/stormy16/stormy16.h: Remove the commented-out
7207 definition of FUNCTION_ARG_KEEP_AS_REFERENCE.
7209 2004-02-03 Alan Modra <amodra@bigpond.net.au>
7212 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Use ap
7215 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
7217 * genemit.c (gen_exp): Generate gen_rtx_fmt_e* instead of
7220 2004-02-02 Eric Christopher <echristo@redhat.com>
7221 Zack Weinberg <zack@codesourcery.com>
7223 * c-opts.c (c_common_handle_option): Add -finput-charset.
7225 * cppcharset.c (one_iso88591_to_utf8): Remove.
7226 (convert_iso88591_utf8): Ditto.
7227 (conversion_tab): Remove 8859-1 converter.
7228 (_cpp_input_to_utf8): Remove.
7229 (_cpp_init_iconv_buffer): Ditto.
7230 (_cpp_close_iconv_buffer): Ditto.
7231 (_cpp_convert_input): New function.
7232 (_cpp_default_encoding): Ditto.
7233 * cpphash.h: Add/remove prototypes for above.
7234 * cppfiles.c (read_file_guts): Use _cpp_convert_input.
7235 * cppinit.c (cpp_create_reader): Use _cpp_default_encoding
7236 for narrow execution and input character sets.
7237 * cpplib.c (cpp_push_buffer): Delete uses of removed functions.
7238 * doc/cppopts.texi: Document -finput-charset.
7240 2004-02-02 David Edelsohn <edelsohn@gnu.org>
7242 * rtlanal.c (refers_to_regno_p): Test regno, not inner_regno,
7243 against FIRST_PSEUDO_REGISTER.
7245 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
7247 * doc/invoke.texi (SPARC options): Further improve.
7249 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
7251 * config/arm/arm.md, config/c4x/c4x.md, config/cris/cris.md,
7252 config/h8300/h8300.c, config/ip2k/ip2k.md,
7253 config/iq2000/iq2000.c, config/mips/mips.c,
7254 config/rs6000/rs6000.c, config/rs6000/rs6000.md,
7255 config/sh/sh.c, config/sh/sh.md, config/stormy16/stormy16.c,
7256 config/v850/v850.md: Fix indentation.
7258 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
7260 * config/sparc/sparc.c (function_arg_slotno): Align TImode
7261 arguments on a 16-byte boundary in the parameter array if ARCH64.
7262 Split handling of TFmode.
7264 2004-02-02 Paolo Bonzini <bonzini@gnu.org>
7266 * rtlanal.c (reg_overlap_mentioned_p) [!ENABLE_CHECKING]:
7267 Don't test CONSTANT_P (x).
7268 (reg_overlap_mentioned_p): Merge check for STRICT_LOWPART,
7269 ZERO_EXTRACT, SIGN_EXTRACT with the switch statement.
7272 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
7274 * doc/invoke.texi (SPARC options): Document that -mflat is deprecated.
7276 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
7278 * config/arc/arc.md, config/arm/arm.c, config/arm/arm.md,
7279 config/c4x/c4x.c, config/c4x/c4x.md, config/cris/cris.md,
7280 config/frv/frv.c, config/h8300/h8300.c, config/ip2k/ip2k.md,
7281 config/iq2000/iq2000.c, config/m32r/m32r.c,
7282 config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.md,
7283 config/mn10300/mn10300.c, config/rs6000/rs6000.c,
7284 config/rs6000/rs6000.md, config/sh/sh.c, config/sh/sh.md,
7285 config/stormy16/stormy16.c, config/v850/v850.md,
7286 config/xtensa/xtensa.c: Replace gen_rtx with gen_rtx_fmt_e*.
7288 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
7290 * config/mcore/mcore.c (block_move_sequence): Replace
7291 gen_rtx_CONST_INT with GEN_INT.
7293 2004-02-02 Jan Hubicka <jh@suse.cz>
7295 * alias.c (record_set): Use hard_regno_nregs.
7296 * bt-load.c (find_btr_reference, note_btr_set): Likewise.
7297 * builtins.c (apply_args_size): Likewise.
7298 * caller-save.c (setup_save_areas, save_call_clobbered_regs,
7299 mark_set_regs, add_stored_regs, mark_referenced_regs,
7300 insert_restore, insert_save, insert_one_insn): Likewise.
7301 * cfgcleanup.c: Include regs.h
7302 (mark_effect, mentions_nonequal_regs): Likewise.
7303 * cfgrtl.c (mark_killed_regs): Likewise
7304 * combine.c (update_table_tick, record_value_for_reg,
7305 record_dead_and_set_regs, get_last_value_validate, use_crosses_set_p,
7306 reg_dead_at_p_1, reg_dead_at_p, mark_used_regs_combine, move_deaths,
7307 reg_bitfield_target_p, distribute_notes): Likewise.
7308 * cse.c (mention_regs, insert, invalidate, invalidate_for_call,
7309 exp_equiv_p, cse_insn): Likewise.
7310 * cselib.c (cselib_lookup): Likewise.
7311 (cselib_invalidate_regno, cselib_record_set): Likewise.
7312 * df.c (df_ref_record): Likewise.
7313 * dwarf2out.c (reg_loc_descriptor, multiple_reg_loc_descriptor):
7315 * flow.c (mark_reg, insn_dead_p, mark_set_1, mark_used_reg,
7316 count_or_remove_death_notes_bb): Likewise.
7317 * function.c (aggregate_value_p, keep_stack_depressed): Likewise.
7318 * gloval.c (global_alloc, find_reg, mark_reg_store, mark_reg_conflicts,
7319 mark_reg_death, set_preference, reg_becomes_live, reg_dies): Likewise.
7320 * integrate.c (mark_stores): Likewise.
7321 * jump.c (delete_prior_computation): Likewise.
7322 * lcm.c (reg_dies, reg_becomes_live): Likewise.
7323 * local-alloc.c (combine_regs, find_free_reg, post_mark_life): Likewise.
7324 * loop.c (LOOP_REGNO_NREGS): Likewise.
7325 * postreload.c (reload_combine, reload_combine_note_store,
7326 reload_combine_note_use, reload_cse_move2add, move2add_note_store): Likewise.
7327 * ra-colorize.c (combine, color_usable_p, get_free_reg,
7328 calculate_dont_begin, calculate_dont_begin, colorize_one_web,
7329 try_recolor_web, insert_coalesced_conflicts, check_colors,
7330 break_precolored_alias): Likewise.
7331 * ra-debug.c: Include regs.h
7332 (ra_print_rtx_object): Likewise.
7333 * ra-rewrite (choose_spill_colors): Likewise.
7334 (spill_same_color_p, update_spill_colors, spill_is_free): Likewise.
7335 * ra.c (init_ra): Likewise.
7336 * recog.c (reg_fits_class_p, peep2_reg_dead_p,
7337 peep2_find_free_register): Likewise.
7338 * reg-stack.c (subst_stack_regs_pat, convert_regs_exit): Likewise.
7339 * regclass.c (hard_regno_nregs): New array.
7340 (init_reg_modes_once): Initialize it.
7341 (choose_hard_reg_mode): Use it.
7342 (record_reg_classes): Likewise.
7343 * regmove.c (mark_flags_life_zones): Likewise.
7344 * regrename.c (note_sets, clear_dead_regs, regrename_optimize,
7345 scan_rtx_reg, dump_def_use_chain, kill_value, set_value_regno,
7346 copy_value, maybe_mode_change, find_oldest_value_reg,
7347 copyprop_hardreg_forward_1):
7348 * regs.h (hard_regno_nregs): Declare.
7349 * realod.c (reload_inner_reg_of_subreg): Use it.
7350 (push_reload, combine_reloads, find_dummy_reload,
7351 hard_reg_set_here_p, operands_match_p, decompose, find_reloads,
7352 refers_to_regno_for_reload_p, find_equiv_reg, regno_clobbered_p,
7353 reload_adjust_reg_for_mode): Likewise.
7354 * reload1.c (compute_use_by_pseudos, count_pseudo,
7355 count_spilled_pseudo, find_reg, find_reload_regs, mark_home_live,
7356 spill_hard_reg, forget_old_reloads_1, mark_reload_reg_in_use,
7357 clear_reload_reg_in_use, reload_reg_free_for_value_p, free_for_value_p
7358 allocate_reload_reg, choose_reload_regs, emit_reload_insns,
7359 delete_output_reload): Likewise.
7360 * resource.c (update_live_status, mark_referenced_resources,
7361 mark_set_resources, mark_target_live_regs): Likewise.
7362 * rtlanal.c: Include regs.h
7363 (refers_to_regno_p, reg_overlap_mentioned_p, dead_or_set_p,
7364 dead_or_set_regno_p, find_regno_note, find_reg_fusage,
7365 subreg_regno_offset, subreg_offset_representable_p,
7366 hoist_test_store): Likewise.
7367 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
7368 * sched-rgn.c (check_live_1, update_live_1): Likewise.
7369 * stmt.c: Include regs.h
7370 (decl_conflicts_with_clobbers_p): Likewise.
7371 * varasm.c (make_decl_rtl): Likewise.
7372 * Makefile.in (cfgcleanup.o, rtlanal.o, ra-debug.o): Add regs.h dependnecy.
7374 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
7376 * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
7377 config/arm/linux-gas.h, config/arm/netbsd-elf.h,
7378 config/arm/netbsd.h, config/arm/pe.c, config/avr/avr.c,
7379 config/avr/avr.h, config/avr/avr.md, config/c4x/c4x.h,
7380 config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.c,
7381 config/frv/frv.h, config/ip2k/ip2k.c, config/iq2000/iq2000.c,
7382 config/iq2000/iq2000.h, config/m32r/m32r.c,
7383 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
7384 config/m68hc11/m68hc11.md, config/m68k/m68k.md,
7385 config/mcore/mcore.c, config/mcore/mcore.h,
7386 config/mcore/mcore.md, config/mips/mips.c,
7387 config/ns32k/ns32k.h, config/ns32k/ns32k.md,
7388 config/rs6000/rs6000.c, config/s390/s390.c,
7389 config/s390/s390.md, config/sparc/sparc.c, config/v850/v850.c,
7390 config/xtensa/xtensa.h, config/xtensa/xtensa.md: Replace
7391 "gen_rtx (FOO, " with "gen_rtx_FOO (".
7393 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
7395 * config/h8300/h8300.md (two peephole2's): New.
7397 2004-02-01 Eric Botcazou <ebotcazou@libertysurf.fr>
7399 * config/sparc/sol2-bi.h: Handle TARGET_CPU_ultrasparc3.
7400 (CPP_CPU_SPEC): Handle -mcpu=ultrasparc3.
7401 (ASM_CPU_SPEC): Likewise
7402 * config/sparc/sol2.h: Handle TARGET_CPU_ultrasparc3.
7403 (ASM_CPU_SPEC): Remove -mcpu=v8plus. Handle -mcpu=ultrasparc3.
7405 2004-02-01 Roger Sayle <roger@eyesopen.com>
7407 * builtins.c (expand_builtin_pow): If flag_unsafe_math_optimizations
7408 isn't set, don't call expand_builtin_mathfn_2 to use the pow optab.
7409 (expand_builtin): Always call expand_builtin_pow.
7411 2004-02-01 Roger Sayle <roger@eyesopen.com>
7413 * builtins.def (BUILT_IN_SIGNBIT, BUILT_IN_SIGNBITF,
7414 BUILT_IN_SIGNBITL): New GCC builtins.
7415 * builtins.c (expand_builtin_signbit): New function to RTL expand
7416 calls to signbit, signbitf and signbitl as inline intrinsics.
7417 (expand_builtin): Call expand_builtin_signbit for BUILT_IN_SIGNBIT*.
7418 (fold_builtin_signbit): New function to perform constant folding
7419 of signbit, signbitf and signbitl.
7420 (fold_builtin): Call fold_builtin_signbit for BUILT_IN_SIGNBIT*.
7422 * doc/extend.texi: Document new signbit{,f,l} builtins.
7424 2004-02-01 Richard Sandiford <rsandifo@redhat.com>
7426 * config/mips/mips.md (adddi3_internal_2): Remove superfluous %s.
7428 2004-02-01 Chris Demetriou <cgd@broadcom.com>
7430 * config/mips/mips.h (PREDICATE_CODES): Remove entries for
7431 "mips_const_double_ok" and "simple_memory_operand", which were
7432 removed from the MIPS port with the mips-3_4-rewrite branch merge.
7433 * config/mips/mips.c (mips16_lay_out_constants): Update comment
7434 for removal of simple_memory_operand.
7436 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
7438 * config/c4x/c4x.md: Use GEN_INT instead of
7439 gen_rtx (CONST_INT, ...).
7441 2004-01-31 Richard Henderson <rth@redhat.com>
7443 * varasm.c (output_constant_pool): Don't zap the pool.
7445 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
7447 * genrecog.c (decision_type): Add DT_const_int.
7448 (write_cond) [DT_const_int]: Print a comparison against small
7450 (write_node): Simplify comparisons against small constants
7451 before printing tests.
7453 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
7455 * config/m32r/m32r.c (m32r_load_pic_register): Use GEN_INT
7456 instead of gen_rtx_CONST_INT.
7458 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
7460 * config/xtensa/xtensa.h (DYNAMIC_CHAIN_ADDRESS): Use GEN_INT
7461 instead of gen_rtx_CONST_INT.
7463 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
7465 * target-def.h (TARGET_STRICT_ARGUMENT_NAMING): Define as
7466 hook_bool_CUMULATIVE_ARGS_false.
7467 * targhooks.c (default_strict_argument_naming): Rename to
7468 hook_bool_CUMULATIVE_ARGS_false.
7469 * targhooks.h: Update the prototype for
7470 default_strict_argument_naming.
7472 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
7474 * config/sh/sh.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
7475 * config/sh/sh.h: Likewise.
7476 * config/sh/sh.md: Likewise.
7478 2004-01-31 Eric Botcazou <ebotcazou@libertysurf.fr>
7480 * doc/invoke.texi (SPARC options): Restructure and update.
7482 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
7484 * system.h (PROMOTE_FUNCTION_ARGS, STRUCT_VALUE_INCOMING, and
7485 STRICT_ARGUMENT_NAMING): Poison.
7486 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS): Define as
7487 hook_bool_tree_false.
7488 * targhooks.c (default_promote_function_args): Remove.
7489 (default_struct_value_rtx): Don't use STRUCT_VALUE_INCOMING.
7490 Don't check incoming.
7491 (default_strict_argument_naming): Don't use
7492 STRICT_ARGUMENT_NAMING.
7493 * targhooks.h: Remove the prototype for
7494 default_promote_function_args.
7496 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
7498 * config/i386/i386-protos.h: Remove the prototype for
7499 ix86_setup_incoming_varargs.
7500 * config/i386/i386.c (TARGET_SETUP_INCOMING_VARARGS): New.
7501 (ix86_setup_incoming_varargs): Make it static.
7502 * config/i386/i386.h (SETUP_INCOMING_VARARGS): Remove.
7504 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
7506 * alloc-pool.c: Fix comment typos.
7507 * builtin-types.def: Likewise.
7508 * builtins.def: Likewise.
7509 * c-pretty-print.c: Likewise.
7511 * reload1.c: Likewise.
7513 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
7515 * doc/invoke.texi: Follow spelling conventions.
7516 * doc/tm.texi: Likewise.
7518 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
7520 * doc/install.texi: Fix typos.
7521 * doc/invoke.texi: Likewise.
7523 2004-01-31 Ulrich Weigand <uweigand@de.ibm.com>
7525 * config/s390/s390.c (s390_decompose_address): Do not treat virtual
7526 registers as pointers.
7527 * config/s390/s390.md ("*la_31" second peephole2): Fix incorrect mode.
7529 2004-01-31 Paolo Bonzini <bonzini@gnu.org>
7531 * combine.c (cse_main): Set gen_lowpart to gen_lowpart_for_combine
7532 and restore it to gen_lowpart_general on exit.
7533 (gen_lowpart_for_combine): Adjust all callers to go through
7535 * cse.c (cse_main): Set gen_lowpart to gen_lowpart_if_possible
7536 and restore it to gen_lowpart_general on exit.
7537 (gen_lowpart_if_possible): Adjust all callers to go through
7539 * emit-rtl.c (gen_lowpart_general): New name of gen_lowpart.
7540 (gen_lowpart): Declare as pointer to function, initialized to
7541 gen_lowpart_general.
7542 * rtl.h (gen_lowpart): Declare as pointer to function.
7544 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
7546 * bt-load.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
7547 * calls.c: Likewise.
7548 * emit-rtl.c: Likewise.
7549 * function.c: Likewise.
7550 * reload1.c: Likewise.
7551 * config/i386/cygming.h: Likewise.
7552 * config/i386/i386.c: Likewise.
7553 * config/i386/winnt.c: Likewise.
7555 2004-01-30 Dara Hazeghi <dhazeghi@yahoo.com>
7558 * doc/install.texi: document --enable-__cxa_atexit option.
7559 * configure.ac: Disable __cxa_atexit if not supported.
7560 * configure: Regenerate.
7562 2003-01-30 Daniel Berlin <dberlin@dberlin.org>
7564 * ggc-zone.c (ggc_free): New function.
7566 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
7568 alloc-pool.c, c-lex.c, c-pragma.h, c-semantics.c, cfghooks.c,
7569 cfghooks.h, cfglayout.c, cfgloopmanip.c, debug.c, debug.h,
7570 flow.c, genextract.c, ggc-common.c, ggc-page.c, ggc.h,
7571 ifcvt.c, jump.c, loop-unswitch.c, timevar.c, timevar.def,
7572 tree-optimize.c, vmsdbgout.c, config/fp-bit.c,
7573 config/alpha/alpha.c, config/alpha/alpha.h,
7574 config/alpha/alpha.md, config/alpha/unicosmk.h,
7575 config/alpha/vms.h, config/arm/linux-elf.h, config/avr/avr.c,
7576 config/c4x/c4x-protos.h, config/c4x/c4x.md,
7577 config/d30v/d30v.h, config/frv/frv.md, config/frv/frvbegin.c,
7578 config/frv/frvend.c, config/i386/cygming.h,
7579 config/i386/djgpp.h, config/i386/emmintrin.h,
7580 config/i386/gthr-win32.c, config/i386/i386-interix.h,
7581 config/i386/i386-protos.h, config/i386/openbsd.h,
7582 config/i386/winnt.c, config/i386/xm-mingw32.h,
7583 config/i386/xmmintrin.h, config/ia64/ia64.md,
7584 config/iq2000/iq2000.md, config/m32r/m32r.md,
7585 config/m68k/m68k.md, config/mcore/mcore-elf.h,
7586 config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
7587 config/mips/iris5gas.h, config/mips/iris6.h,
7588 config/mips/iris6gas.h, config/mips/linux.h,
7589 config/mips/mips.md, config/mips/netbsd.h,
7590 config/mips/openbsd.h, config/mips/windiss.h,
7591 config/pa/fptr.c, config/rs6000/aix.h,
7592 config/rs6000/altivec.h, config/rs6000/darwin.h,
7593 config/rs6000/xcoff.h, config/s390/s390-protos.h,
7594 config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
7595 config/sh/netbsd-elf.h, config/sh/sh.h, config/sh/vxworks.h,
7596 config/sparc/sol2.h: Update copyright.
7598 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
7600 * Makefile.in (abs_docdir, abs_srcdir): Define.
7601 (doc/%.dvi, doc/gccinstall.dvi): Use $(abs_docdir).
7603 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
7605 * genconfig.c (main): Have CC0_P check its operand even on a
7608 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
7610 * config/alpha/alpha.c: Remove mentions of deprecates macros
7611 in comments, remove some target-independent comments about target
7612 macros, and/or add minimal function comments for target hook
7614 * config/avr/avr.c: Likewise.
7615 * config/ia64/ia64.h: Likewise.
7616 * config/ip2k/ip2k.c: Likewise.
7617 * config/iq2000/iq2000.c: Likewise.
7618 * config/m32r/m32r.h: Likewise.
7619 * config/m68hc11/m68hc11.c: Likewise.
7620 * config/mcore/mcore.c: Likewise.
7621 * config/mmix/mmix.c: Likewise.
7622 * config/mn10300/mn10300.c: Likewise.
7623 * config/pa/pa.c: Likewise.
7624 * config/pdp11/pdp11.c: Likewise.
7625 * config/rs6000/rs6000.h: Likewise.
7626 * config/sh/sh.c: Likewise.
7627 * config/sh/sh.h: Likewise.
7628 * config/sparc/sparc.c: Likewise.
7629 * config/sparc/sparc.h: Likewise.
7630 * config/stormy16/stormy16.c: Likewise.
7631 * config/xtensa/xtensa.c: Likewise.
7633 2004-01-30 Ulrich Weigand <uweigand@de.ibm.com>
7635 PR optimization/12147
7636 * reload1.c (reload_reg_free_p): RELOAD_OTHER conflicts with
7637 RELOAD_FOR_OPADDR_ADDR.
7638 (reload_reg_reaches_end_p): RELOAD_FOR_OTHER_ADDRESS register
7639 might be reused as RELOAD_FOR_OPADDR_ADDR register.
7641 2004-01-30 Jan Hubicka <jh@suse.cz>
7643 * reload.c (get_secondary_mem): Fix updating of
7644 secondary_memlocs_elim_used.
7646 2004-01-30 Richard Henderson <rth@redhat.com>
7648 * varasm.c (struct rtx_const, struct pool_constant): Remove.
7649 (MAX_RTX_HASH_TABLE): Remove.
7650 (const_rtx_hash_table, const_rtx_sym_hash_table): Remove.
7651 (first_pool, last_pool, pool_offset): Remove.
7652 (struct rtx_constant_pool): Split out from ...
7653 (struct varasm_status): ... here. Reference one via pointer.
7654 (struct constant_descriptor_rtx): Merge struct pool_constant.
7656 (decode_rtx_const): Remove.
7657 (const_hash_rtx, compare_constant_rtx): Remove.
7658 (record_constant_rtx): Remove.
7659 (const_desc_rtx_hash, const_desc_rtx_eq): New.
7660 (const_desc_rtx_sym_hash, const_desc_rtx_sym_eq): New.
7661 (const_rtx_hash_1, const_rtx_hash): New.
7662 (init_varasm_status): Allocate a rtx_constant_pool, and its hashes.
7663 (simplify_subtraction): Use simplify_rtx.
7664 (force_const_mem): Rewrite to use new data structures.
7665 (find_pool_constant): Likewise.
7666 (get_pool_constant, get_pool_constant_mark,
7667 get_pool_constant_for_function, get_pool_mode,
7668 get_pool_mode_for_function, get_pool_offset, get_pool_size): Likewise.
7669 (output_constant_pool_2): Split out from output_constant_pool.
7670 (output_constant_pool_1): Likewise. Use new pool datastructures.
7671 (output_constant_pool): Zap entire pool datastructure.
7672 (mark_constant): Use new pool datastructures.
7673 (mark_constants): Use for_each_rtx.
7674 (mark_constant_pool): Use new pool datastructures.
7676 2004-01-30 Fariborz Jahanian <fjahanian@apple.com>
7678 * config/rs6000/rs6000.c (rs6000_emit_move): Remove #if 0.
7679 Copy operands[1] to pseudo for simplify_gen_subreg.
7681 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
7683 * gcse.c (bypass_block): Fix a typo in the previous check-in
7686 2004-01-30 Andrew Pinski <pinskia@physics.uc.edu>
7688 * toplev.c: Include alloc-pool.h.
7689 * Makefile.in (toplev.c): Update dependencies.
7691 2004-01-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7693 * combine.c (simplify_shift_const, case XOR): Be careful when
7694 commuting XOR with ASHIFTRT.
7696 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
7697 Eric Botcazou <ebotcazou@libertysurf.fr>
7699 * config/sparc/sparc-protos.h: Remove the prototype for
7700 sparc_builtin_saveregs.
7701 * config/sparc/sparc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
7702 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
7703 (TARGET_PROMOTE_PROTOTYPES): Likewise.
7704 (TARGET_STRUCT_VALUE_RTX): Likewise.
7705 (TARGET_RETURN_IN_MEMORY): Likewise.
7706 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
7707 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
7708 (sparc_builtin_saveregs): Make it static.
7709 (sparc_promote_prototypes): New.
7710 (sparc_struct_value_rtx): Likewise.
7711 (sparc_return_in_memory): Likewise.
7712 * config/sparc/sparc.h: (PROMOTE_FUNCTION_ARGS): Remove.
7713 (PROMOTE_FUNCTION_RETURN): Likewise.
7714 (RETURN_IN_MEMORY): Likewise.
7715 (STRUCT_VALUE): Likewise.
7716 (STRUCT_VALUE_INCOMING): Likewise.
7717 (EXPAND_BUILTIN_SAVEREGS): Likewise.
7718 (STRICT_ARGUMENT_NAMING): Likewise.
7719 (PROMOTE_PROTOTYPES): Likewise.
7721 * config/sparc/sparc.h (PROMOTE_MODE): Use word_mode.
7723 2004-01-30 Eric Botcazou <ebotcazou@libertysurf.fr>
7726 * varasm.c (const_hash_1) <STRING_CST>: Use the
7727 address to compute the hash value if flag_writable_strings.
7728 (compare_constant) <STRING_CST>: Compare the addresses
7729 if flag_writable_strings.
7730 (build_constant_desc): Do not copy the expression for a
7731 STRING_CST if flag_writable_strings.
7733 2004-01-30 Jan Hubicka <jh@suse.cz>
7735 * alloc-pool.c: Include hashtab.h
7736 (alloc_pool_descriptor): New structure
7737 (alloc_pool_hash): New global variable.
7738 (hash_descriptor, eq_descriptor, alloc_pool_descriptor): New.
7739 (create_alloc_pool): Update statistics.
7740 (free_alloc_pool): Likewise.
7741 (pool_alloc): Likewise.
7742 (output_info): New structure
7743 (print_statistics, dump_alloc_pool_statistics): New function.
7744 * alloc-pool.h (alloc_pool_def): Turn name to be constant.
7745 (dump_alloc_pool_statistics): Declare.
7746 * toplev.c (finalize): Dump statistics.
7748 * reload.c (secondary_memlocs_elim_used): New static variable.
7749 (get_secondary_mem): Update it.
7750 (find_reloads): Use it.
7752 2004-01-30 Steven Bosscher <s.bosscher@student.tudelft.nl>
7754 * toplev.c: Fix broken checkin of 2003-12-30, again.
7756 2004-01-30 Ulrich Weigand <uweigand@de.ibm.com>
7758 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
7759 s390*-*-* targets by specifying a 'nop' insn.
7760 * configure: Regenerate.
7762 2004-01-30 Eric Botcazou <ebotcazou@libertysurf.fr>
7765 * config/sparc/sparc.md (movhi_lo_sum): Tighten predicates.
7767 2004-01-29 Jakub Jelinek <jakub@redhat.com>
7769 * emit-rtl.c (change_address): Use XEXP (memref, 0) instead
7770 of addr when creating MEM copy.
7772 2004-01-29 Devang Patel <dpatel@apple.com>
7774 * dwarf2out.c (gen_field_die): Do not equate decl number to die.
7776 2004-01-28 Ian Lance Taylor <ian@wasabisystems.com>
7779 * reload.c (find_reloads): Only support one pair of commutative
7782 2004-01-29 Roger Sayle <roger@eyesopen.com>
7785 * tree.c (unsafe_for_reeval): Handle EXIT_BLOCK_EXPR nodes specially
7786 as their EXIT_BLOCK_LABELED_BLOCK operands can lead to unbounded
7789 2004-01-29 Kazu Hirata <kazu@cs.umass.edu>
7791 * config/frv/frv.c: Don't mention deprecated macros in
7792 comments. Remove some target-independent comments about
7794 * config/frv/frv.h: Likewise.
7796 2004-01-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7798 * cfghooks.c (split_block): Set probability and count of the
7801 2005-01-29 Josef Zlomek <zlomekj@suse.cz>
7803 * dwarf2out.c (struct die_struct): Added field decl_id.
7804 (decl_die_table): Changed to hash table.
7805 (decl_die_table_allocated): Deleted.
7806 (decl_die_table_in_use): Deleted.
7807 (DECL_DIE_TABLE_INCREMENT): Deleted.
7808 (decl_die_table_hash): New function.
7809 (decl_die_table_eq): New function.
7810 (lookup_decl_die): Lookup in a hash table.
7811 (equate_decl_number_to_die): Insert into a hash table.
7812 (dwarf2out_init): Init hash table decl_die_table.
7814 2004-01-29 Jakub Jelinek <jakub@redhat.com>
7816 PR optimization/13424
7817 * expr.c (store_constructor): Revert 2003-12-03 change.
7819 * emit-rtl.c (change_address): Check also if MEM_ATTRS is set as
7820 expected before returning early. Avoid sharing RTL if they
7823 * config/i386/i386.c (ix86_expand_movstr): Rework rep_mov and strmov
7824 handling so that memory attributes are preserved. Don't call
7825 ix86_set_move_mem_attrs.
7826 (ix86_set_move_mem_attrs_1, ix86_set_move_mem_attrs): Removed.
7827 (ix86_expand_clrstr): Rename src argument to
7828 dst. Rework rep_stos and strset handling so that memory attributes
7830 (ix86_expand_strlen): Pass src argument to
7831 ix86_expand_strlensi_unroll_1. Rework strlenqi_1 handling so that
7832 memory attributes are preserved.
7833 (ix86_expand_strlensi_unroll_1): Add src argument. Use
7834 change_address instead of gen_rtx_MEM.
7835 * config/i386/i386.md (strmov, strmov_singleop, rep_mov): New
7837 (strmovdi_rex64, strmovsi, strmovsi_rex64, strmovhi, strmovhi_rex64,
7838 strmovqi, strmovqi_rex64): Remove.
7839 (rep_mov*, strmov*): Prefix insn names with *.
7840 (strset, strset_singleop, rep_stos): New expanders.
7841 (strsetdi_rex64, strsetsi, strsetsi_rex64, strsethi, strsethi_rex64,
7842 strsetqi, strsetqi_rex64): Remove.
7843 (rep_stos*, strset*): Prefix insn names with *.
7844 (rep_stosqi_rex64): Likewise. Fix mode of dirflag reg from DImode
7846 (cmpstrsi): Rework cmpstrqi_1 handling so that memory attributes
7848 (cmpstrqi_nz_1, cmpstrqi_nz_rex_1, cmpstrqi_1, cmpstrqi_rex_1):
7849 Prefix insn names with *.
7850 (cmpstrqi_nz_1, cmpstrqi_1): New expanders.
7851 (strlenqi_1, strlenqi_rex_1): Prefix insn names with *.
7852 (strlenqi_1): New expander.
7853 * config/i386/i386.h (ix86_set_move_mem_attrs): Remove prototype.
7855 2004-01-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7857 * Makefile.in (cfghooks.o): Add TIMEVAR_H and toplev.h dependency.
7858 * basic-block.h (tidy_fallthru_edge, tidy_fallthru_edges, dump_bb,
7859 verify_flow_info): Declaration removed.
7860 * cfg.c (verify_flow_info, dump_bb): Moved to cfghooks.c.
7861 (debug_bb, debug_bb_n): Add argument to dump_bb call.
7862 * cfgcleanup.c (try_simplify_condjump, try_crossjump_to_edge,
7863 try_optimize_cfg, delete_unreachable_blocks): Use delete_basic_block
7864 instead of delete_block.
7865 * cfghooks.c: Include timevar.h and toplev.h.
7866 (cfg_hooks): Define here.
7867 (verify_flow_info, dump_bb): Moved from cfg.c.
7868 (redirect_edge_and_branch, redirect_edge_and_branch_force,
7869 split_block, split_block_after_labels, move_block_after,
7870 delete_basic_block, split_edge, create_basic_block,
7871 create_empty_bb, can_merge_blocks_p, merge_blocks,
7872 make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
7874 * cfghooks.h (struct cfg_hooks): Added fields name,
7875 make_forwarder_block, tidy_fallthru_edge and
7876 move_block_after. Changed type of verify_flow_info, dump_bb,
7877 split_block fields. Renamed cfgh_split_edge and delete_block
7879 (redirect_edge_and_branch, redirect_edge_and_branch_force,
7880 split_block, delete_block, split_edge, create_basic_block,
7881 can_merge_blocks_p, merge_blocks): Macros removed.
7882 (cfg_hooks): Do not export.
7883 (verify_flow_info, dump_bb, redirect_edge_and_branch,
7884 redirect_edge_and_branch_force, split_block, split_block_after_labels,
7885 move_block_after, delete_basic_block, split_edge, create_basic_block,
7886 create_empty_bb, can_merge_blocks_p, merge_blocks,
7887 make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
7889 (cfg_layout_rtl_cfg_hooks): Declare.
7890 * cfgloop.c (update_latch_info, mfb_keep_just, mfb_keep_nonlatch):
7892 (canonicalize_loop_headers): Use new semantics of make_forwarder_block.
7893 (redirect_edge_with_latch_update): Removed.
7894 (make_forwarder_block): Moved to cfghooks.c, semantics changed.
7895 * cfgloopmanip.c (remove_bbs): Do not update dominators here.
7896 * cfgrtl.c (cfg_layout_split_block, rtl_split_block, rtl_dump_bb,
7897 rtl_delete_block, rtl_split_block, rtl_merge_blocks,
7898 tidy_fallthru_edge, rtl_split_edge, cfg_layout_delete_block,
7899 cfg_layout_merge_blocks, cfg_layout_split_edge): Partly moved to
7901 (rtl_create_basic_block): Coding style fix.
7902 (rtl_tidy_fallthru_edge, rtl_move_block_after,
7903 rtl_make_forwarder_block): New functions.
7904 (update_cfg_after_block_merging): Removed.
7905 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Fill in new entries.
7906 * flow.c (verify_wide_reg, verify_local_live_at_start): Add argument
7908 * ifcvt.c (merge_if_block, find_cond_trap, find_if_case_1,
7909 find_if_case_2): Don't update dominators.
7910 * timevar.def (TV_CFG_VERIFY): New.
7911 * loop-unswitch.c (unswitch_loop): Don't call add_to_dominance_info.
7912 * cfglayout.c (copy_bbs): Don't call add_to_dominance_info.
7913 * cfgloopmanip.c (split_loop_bb): Don't update dominators.
7914 (remove_bbs): Don't call remove_bbs.
7915 (create_preheader): Use make_forwarder_block.
7916 (mfb_keep_just, mfb_update_loops): New static functions.
7918 2004-01-29 Kazu Hirata <kazu@cs.umass.edu>
7920 * config/avr/avr.h: Remove target-independent comments about
7923 2004-01-28 Daniel Berlin <dberlin@dberlin.org>
7925 * timevar.c (timevar_print): Mention when checking is enabled.
7927 2004-01-28 Giovanni Bajo <giovannibajo@gcc.gnu.org>
7929 * c-lex.c (c_lex): Rename to...
7930 (c_lex_with_flags): Add new parameter to get CPP flags.
7931 (c_lex): Thunk to c_lex_with_flags while keeping the old interface.
7932 * c-pragma.h (c_lex_with_flags): Declare.
7934 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
7936 * config/mcore/mcore.c (mcore_external_libcall): Add a
7938 (mcore_return_in_memory): Likewise.
7940 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
7942 * config/mcore/mcore-protos.h: Remove the prototype for
7943 mcore_setup_incoming_varargs.
7944 * config/mcore/mcore.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
7945 (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
7946 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
7947 (TARGET_PROMOTE_PROTOTYPES): Likewise.
7948 (TARGET_STRUCT_VALUE_RTX): Likewise.
7949 (TARGET_RETURN_IN_MEMORY): Likewise.
7950 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
7951 (mcore_setup_incoming_varargs): Make it static. Receive the
7952 first argument by reference. Add argument second_time.
7953 (mcore_external_libcall): New.
7954 (mcore_return_in_memory): Likewise.
7955 * config/mcore/mcore.h (PROMOTE_FUNCTION_ARGS): New.
7956 (PROMOTE_FUNCTION_RETURN): Likewise.
7957 (STRUCT_VALUE): Likewise.
7958 (RETURN_IN_MEMORY): Likewise.
7959 (SETUP_INCOMING_VARARGS): Likewise.
7960 (PROMOTE_PROTOTYPES): Likewise.
7961 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
7963 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
7965 * config/m32r/m32r-protos.h: Remove the prototype for
7966 m32r_setup_incoming_varargs.
7967 * config/m32r/m32r.c (TARGET_PROMOTE_PROTOTYPES): New.
7968 (TARGET_STRUCT_VALUE_RTX): Likewise.
7969 (TARGET_RETURN_IN_MEMORY): Likewise.
7970 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
7971 (m32r_return_in_memory): New.
7972 (m32r_setup_incoming_varargs): Make it static.
7973 * config/m32r/m32r.h: Remove #undef of
7974 ASM_OUTPUT_EXTERNAL_LIBCALL. Remove the commented-out
7975 definitions of PROMOTE_FUNCTION_ARGS and
7976 PROMOTE_FUNCTION_RETURN.
7977 (PROMOTE_PROTOTYPES): Remove.
7978 (RETURN_IN_MEMORY): Likewise.
7979 (STRUCT_VALUE): Likewise.
7981 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
7983 * config/m68k/m68k.c (TARGET_PROMOTE_PROTOTYPES): New.
7984 (TARGET_STRUCT_VALUE_RTX): Likewise.
7985 (m68k_struct_value_rtx): Likewise.
7986 * config/m68k/m68k.h (STRUCT_VALUE_REGNUM): Rename to
7987 STRUCT_VALUE_REGNUM.
7988 (PROMOTE_PROTOTYPES): Remove.
7989 * config/m68k/m68kelf.h (STRUCT_VALUE_REGNUM): Rename to
7990 STRUCT_VALUE_REGNUM.
7991 * config/m68k/m68kv4.h (STRUCT_VALUE_REGNUM): Likewise.
7992 * config/m68k/netbsd-elf.h (STRUCT_VALUE_REGNUM): Likewise.
7994 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
7996 * config/stormy16/stormy16.c
7997 (TARGET_BUILD_BUILTIN_VA_LIST_TYPE): Rename to
7998 TARGET_BUILD_BUILTIN_VA_LIST.
8000 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
8002 * config/v850/v850.c (TARGET_PROMOTE_PROTOTYPES): New.
8003 (TARGET_STRUCT_VALUE_RTX): Likewise.
8004 (TARGET_RETURN_IN_MEMORY): Likewise.
8005 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
8006 (v850_return_in_memory): Likewise.
8007 (v850_setup_incoming_varargs): Likewise.
8008 * config/v850/v850.h (PROMOTE_PROTOTYPES): Remove.
8009 (SETUP_INCOMING_VARARGS): Likewise.
8010 (RETURN_IN_MEMORY): Likewise.
8011 (STRUCT_VALUE): Likewise.
8013 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
8015 * config/fr30/fr30.c (TARGET_PROMOTE_PROTOTYPES): New.
8016 (fr30_setup_incoming_varargs): Don't use
8017 STRICT_ARGUMENT_NAMING.
8018 * config/fr30/fr30.h (PROMOTE_PROTOTYPES): Remove.
8019 (STRICT_ARGUMENT_NAMING): Likewise.
8021 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
8023 * config/frv/frv-protos.h: Remove the prototype for
8024 frv_expand_builtin_saveregs.
8025 * config/frv/frv.c (TARGET_STRUCT_VALUE_RTX): Likewise.
8026 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
8027 (frv_stack_info): Use FRV_STRUCT_VALUE_REGNUM instead of
8028 STRUCT_VALUE_REGNUM.
8029 (frv_expand_builtin_saveregs): Make it static.
8030 (frv_struct_value_rtx): New.
8031 * config/frv/frv.h (EXPAND_BUILTIN_SAVEREGS): Remove.
8033 2004-01-29 Jan Hubicka <jh@suse.cz>
8036 * cgraph.c (cgraph_remove_node): Clear out saved/insns/arguments and
8038 * cgraphunit.c (cgraph_finalize_function): Clear out DECL_SAVED_INSNS
8039 for functions that will be only inlined.
8040 (cgraph_mark_function_to_output): Likewise.
8041 (cgraph_expand_function): Sanity check that DECL_DEFER_OUTPUT is clear;
8042 do not clear function body.
8043 * tree-optimize.c (clear_decl_rtl): Use decl_function_context.
8044 (tree_rest_of_compilation): Reorganize the logic releasing function
8045 body to use callgraph datastructure.
8047 2004-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8049 * pa.md: Change predicate of a peephole2 pattern from reg_or_0_operand
8050 to register_operand.
8052 2004-01-28 Zack Weinberg <zack@codesourcery.com>
8054 * config/ia64/ia64.md (fetchadd_acq_si, fetchadd_acq_di)
8055 (cmpxchg_acq_si, cmpxchg_acq_di): Exchange match_dup and
8056 match_operand expressions so that all match_dups appear
8057 lexically after their corresponding match_operands.
8059 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
8061 * config/h8300/h8300.c (WORD_REG_USED): Use
8062 HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
8063 (compute_saved_regs): Likewise.
8064 (h8300_expand_prologue): Likewise. Allocate locals after
8066 (h8300_expand_epilogue): Use HARD_FRAME_POINTER_REGNUM instead
8067 of FRAME_POINTER_REGNUM. Deallocate locals before saving
8069 (h8300_initial_elimination_offset): Adjust for the new frame
8070 layout, which swaps flips the order of locals and saved
8072 * config/h8300/h8300.h (FIRST_PSEUDO_REGISTER): Change to 12.
8073 (HARD_FRAME_POINTER_REGNUM): New.
8074 (ELIMINABLE_REGS): Add an elimination rule from
8075 FRAME_POINTER_REGNUM to HARD_FRAME_POINTER_REGNUM.
8076 (REGISTER_NAMES): Add fp.
8077 * config/h8300/h8300.md (FP_REG): Change to 11.
8080 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
8082 * genrecog.c (write_node): Remove a useless local variable.
8084 2004-01-28 Ian Lance Taylor <ian@wasabisystems.com>
8086 * Makefile.in (options.c options.h): Use stamp file s-options to
8087 avoid unnecessary rebuilds.
8088 (options.o): New target listing dependencies.
8089 (gtyp-gen.h): Use stamp file s-gtyp-gen.
8090 (STAGESTUFF): Add s-gtyp-gen.
8092 2004-01-28 Richard Henderson <rth@redhat.com>
8094 * ggc.h (ggc_free): Declare.
8095 * ggc-common.c (ggc_realloc): Use it.
8096 * ggc-page.c: Remove lots of inline markers.
8097 (globals): Add free_object_list.
8099 (ggc_free, validate_free_objects): New.
8100 (poison_pages): Provide default.
8101 (ggc_collect): Call validate_free_objects; emit markers to
8104 2004-01-28 Zack Weinberg <zack@codesourcery.com>
8105 Jim Wilson <wilson@specifixinc.com>
8107 * config/ia64/ia64.c (ia64_split_tmode, ia64_split_tmode_move):
8108 Rewrite to use POST_INC/POST_DEC/POST_MODIFY instead of a
8110 (ia64_secondary_reload_class): Delete case GR_REGS.
8111 * config/ia64/ia64.md (movti, *movti_internal, movtf, *movtf_internal):
8112 Do not allocate a scratch register.
8113 (reload_inti, reload_outti, reload_intf, reload_outtf): Delete.
8115 2004-01-28 Jan Hubicka <jh@suse.cz>
8117 * gcse.c (bypass_block): Prevent edges to be unified when we are
8118 about to emit compenstation code.
8120 2004-01-28 Nick Clifton <nickc@redhat.com>
8122 * config/arm/arm.c (arm_expand_builtin): Force second argument of
8123 the setcwx insn into a register.
8125 2004-01-28 Richard Sandiford <rsandifo@redhat.com>
8127 * config/fp-bit.c (pack_d): When using paired doubles to implement
8128 a long double, round the high part separately.
8129 (unpack_d): Fix the case in which the high part is a power of two
8130 and the low part is a nonzero value of the opposite sign.
8132 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
8134 * config/c4x/c4x.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
8135 (TARGET_STRUCT_VALUE_RTX): Likewise.
8136 (c4x_external_libcall): Likewise.
8137 (c4x_struct_value_rtx): Likewise.
8138 * config/c4x/c4x.h: Remove.
8139 (STRUCT_VALUE_REGNUM): Likewise.
8140 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
8142 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
8144 * config/i386/i386.c (TARGET_PROMOTE_PROTOTYPES): New.
8145 (TARGET_STRUCT_VALUE_RTX): Likewise.
8146 * config/i386/i386.h (STRUCT_VALUE_INCOMING): Remove.
8147 (STRUCT_VALUE): Likewise.
8148 (PROMOTE_PROTOTYPES): Likewise.
8150 2004-01-27 Roger Sayle <roger@eyesopen.com>
8152 * config/pa/pa.c (emit_move_sequence): Check that operand1 is a
8153 CONST_INT before using INTVAL.
8155 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
8157 * config/s390/s390.h (TARGET_DEFAULT): Default to !TARGET_BACKCHAIN.
8158 * config/s390/s390.c (s390_return_addr_rtx): Fail for all but current
8159 frame if !TARGET_BACKCHAIN.
8160 * config/s390/s390.md ("allocate_stack"): Use pattern only if
8162 * doc/invoke.texi (-mbackchain/-mno-backchain): Document new default.
8164 2004-01-27 Zack Weinberg <zack@codesourcery.com>
8166 * ia64.c (ia64_function_arg): When placing HFAs in integer
8167 registers, do not special case the mode used for complex
8168 types. Do not advance int_regs until the current register
8171 2004-01-27 Richard Sandiford <rsandifo@redhat.com>
8174 * except.c (init_eh): Use a 5-word __jbuf for __builtin_setjmp().
8176 2004-01-27 David Edelsohn <edelsohn@gnu.org>
8178 * config/rs6000/rs6000.c (rs6000_emit_move): #if 0 splitting
8179 slow, unaligned loads and stores while debugging. Fix formatting.
8181 2004-01-27 David Edelsohn <edelsohn@gnu.org>
8183 * config/rs6000/rs6000.md (save_stack_nonlocal): Use Pmode instead
8185 (restore_stack_nonlocal): Same.
8187 2004-01-27 Devang Patel <dpatel@apple.com>
8189 * Makefile.in (dwarf2out.o): Depend on input.h
8190 * dbxout.c (dbx_debug_hooks): Add new empty hook for
8191 imported_module_or_decl.
8192 (xcoff_debug_hooks): Same.
8193 * sdbout.c (sdb_debug_hooks): Same.
8194 * vmsdbgout.c (vmsdbg_debug_hooks): Same.
8195 * debug.c (do_nothing_debug_hooks): Same.
8196 (debug_nothing_tree_tree): New function.
8197 * debug.h (gcc_debug_hooks): New hook, imported_module_or_decl.
8198 * dwarf2out.c: Include input.h.
8199 (dwarf2_debug_hooks): Add new hook for imported_module_or_decl.
8200 (remove_child_TAG): New function.
8201 (dwarf_tag_name): Handle DW_TAG_imported_module.
8202 (gen_subprogram_die): Equate decl number to declaration die. Do not
8203 remove all children dies while reusing declaration die for definition.
8204 Instead, selectively remove only formal parameters.
8205 (gen_variable_die): Equate variable decl to declaration die.
8206 (gen_field_die): Equate field decl to line number.
8207 (force_namespace_die): Replace it with ...
8208 (force_decl_die): ... this.
8209 (force_type_die): New function.
8210 (setup_namespace_context): Replace use of force_namespace_die() with
8212 (gen_namespace_die): Same.
8213 (dwarf2out_imported_module_or_decl): New function.
8215 2004-01-27 Bob Wilson <bob.wilson@acm.org>
8217 * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Remove SUBREG
8218 on CQImode and CHImode incoming arguments in register a7.
8219 (function_arg): Wrap BLKmode argument in register a7 in a PARALLEL.
8220 * config/xtensa/xtensa.h (BLOCK_REG_PADDING): Define.
8221 * config/xtensa/xtensa.md (movdi, movdf): Only call force_reg or
8222 xtensa_copy_incoming_a7 before reload.
8224 2004-01-27 J"orn Rennecke <joern.rennecke@superh.com>
8226 * coverage.c (get_coverage_counts): Give a different message
8227 if flag_guess_branch_prob is set.
8228 * predict.c (counts_to_freqs): Return an int.
8229 (estimate_bb_frequencies): If counts_to_freqs returns zero,
8230 calculate estimates.
8232 2004-01-27 Kazu Hirata <kazu@cs.umass.edu>
8234 * config/iq2000/iq2000-protos.h: Remove the prototype for
8235 iq2000_setup_incoming_varargs.
8236 * config/iq2000/iq2000.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
8237 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
8238 (TARGET_PROMOTE_PROTOTYPES): Likewise.
8239 (TARGET_STRUCT_VALUE_RTX): Likewise.
8240 (TARGET_RETURN_IN_MEMORY): Likewise.
8241 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
8242 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
8243 (iq2000_return_in_memory): Likewise.
8244 (iq2000_setup_incoming_varargs): Make it static. Receive the
8245 first argument by reference.
8246 * config/iq2000/iq2000.h (PROMOTE_FUNCTION_ARGS): Remove.
8247 (PROMOTE_FUNCTION_RETURN): Likewise.
8248 (PROMOTE_PROTOTYPES): Likewise.
8249 (RETURN_IN_MEMORY): Likewise.
8250 (STRUCT_VALUE): Likewise.
8251 (SETUP_INCOMING_VARARGS): Likewise.
8252 (STRICT_ARGUMENT_NAMING): Likewise.
8254 2004-01-24 James A. Morrison <ja2morri@uwaterloo.ca>
8256 * fixinc/fixinc.c (test_test): Initialize res.
8257 (start_flexer): Initialize pz_cmd_save.
8259 2004-01-27 Zack Weinberg <zack@codesourcery.com>
8261 * doc/rtl.texi (Arithmetic): Rewrite entries for PLUS,
8262 SS_PLUS, US_PLUS, LO_SUM, MINUS, SS_MINUS, US_MINUS.
8264 2004-01-27 Zack Weinberg <zack@codesourcery.com>
8267 * config/ia64/ia64.md (*nmaddsf4, *nmadddf4, *nmadddf4_alts)
8268 (*nmadddf4_trunc, *nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf)
8269 (*nmaddxf4_alts, *nmaddxf4_truncdf_alts):
8270 Rewrite pattern as (minus (op 3) (mult (op 1) (op 2))).
8271 Possibly rename pattern for consistency.
8272 Remove ??? comments suggesting that this be done.
8273 (*nmaddsf4_alts, *nmadddf4_truncsf_alts, *nmaddxf4_truncsf_alts):
8275 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr)
8276 (divsf3_internal_lat, divsf3_internal_thr, sqrtsf2_internal_thr)
8277 (divdf3_internal_lat, divdf3_internal_thr, sqrtdf2_internal_thr)
8278 (divxf3_internal_lat, divxf3_internal_thr, sqrtxf2_internal_thr):
8281 2004-01-27 Ian Lance Taylor <ian@wasabisystems.com>
8283 * config/arm/arm.c (output_return_instruction): Only restore IP
8284 into SP if frame_pointer_needed.
8286 2004-01-27 Eric Botcazou <ebotcazou@libertysurf.fr>
8288 * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
8289 for SCmode and DCmode if ARCH32.
8290 (sparc_va_arg): Handle SCmode and DCmode by reference if ARCH32.
8291 * config/sparc/sparc.h (RETURN_IN_MEMORY): Return 0 for TCmode
8293 (BASE_RETURN_VALUE_REG): Return 32 for all FP modes except TFmode
8295 (BASE_OUTGOING_VALUE_REG): Likewise.
8297 2004-01-27 Eric Botcazou <ebotcazou@libertysurf.fr>
8301 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): New.
8302 Forbid mode changes from SImode for lower FP regs if ARCH64.
8304 2004-01-27 J"orn Rennecke <joern.rennecke@superh.com>
8306 * Makefile.in (bt-load.o): Depend on except.h.
8307 * bt-load.c (except.h): #include.
8308 (compute_defs_uses_and_gen): If insn at end of BB can throw
8309 within this function, consider registers used by it unavailable for
8311 (move_btr_def): If insn at end of BB can throw, insert before rather
8314 * flags.h (flag_btr_bb_exclusive): Declare.
8315 * toplev.c (flag_btr_bb_exclusive): New variable.
8316 (f_options): Add btr-bb-exclusive.
8317 * bt-load.c (augment_live_range): Restore old behaviour if
8318 flag_btr_bb_exclusive is set.
8319 * common.opt: Add entry for -fbtr-bb-exclusive.
8320 * opts.c (common_handle_options): Same.
8321 * doc/invoke.texi: Document -fbtr-bb-exclusive.
8323 * bt-load.c (btrs_live_at_end): New variable.
8324 (compute_defs_uses_and_gen): Compute its pointed-to array.
8325 (clear_btr_from_live_range, add_btr_to_live_range): Update it.
8326 (augment_live_range): When augmenting with a new dominator,
8327 use only its btrs_live_at_end set, but also add in the full set
8328 of the old dominator.
8329 (btr_def_live_range): Use btrs_live_at_end.
8330 (move_btr_def): Set other_btr_uses_before_def, and move new set
8331 to the end of the basic block, if appropriate.
8332 (migrate_btr_defs): Allocate and free btrs_live_at_end.
8334 * bt-load.c (basic_block_freq): Remove outdated comment.
8336 2004-01-27 Alan Modra <amodra@bigpond.net.au>
8338 * config/rs6000/rs6000.h: Correct target_flags free bits comment.
8339 (PREDICATE_CODES): Remove duplicate.
8340 * config/rs6000/linux64.h (CPP_SYSV_SPEC): Don't define.
8341 (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow 32 bit TARGET_PROFILE_KERNEL.
8342 (MASK_PROFILE_KERNEL): Adjust define.
8344 2004-01-27 Jakub Jelinek <jakub@redhat.com>
8346 * config/i386/i386.c (ix86_constant_alignment): Decrease alignment
8347 of long string literals from 32 bytes to sizeof (void *) when !-Os
8350 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
8352 * config/h8300/h8300.c (h8300_tiny_constant_address_p): Accept
8353 constant addresses in the normal mode.
8355 2004-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8357 * system.h (CHAR_BITFIELD): Delete.
8358 (BOOL_BITFIELD): New.
8359 * c-decl.c (c_scope): Use BOOL_BITFIELD.
8360 * gengtype-lex.l: Recognize BOOL_BITFIELD instead of CHAR_BITFIELD.
8362 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
8364 * config/arc/arc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
8365 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
8366 (TARGET_PROMOTE_PROTOTYPES): Likewise.
8367 (TARGET_STRUCT_VALUE_RTX): Likewise.
8368 (TARGET_RETURN_IN_MEMORY): Likewise.
8369 (arc_return_in_memory): Likewise.
8370 * config/arc/arc.h (PROMOTE_FUNCTION_ARGS): Remove.
8371 (PROMOTE_FUNCTION_RETURN): Likewise.
8372 (RETURN_IN_MEMORY): Likewise.
8373 (STRUCT_VALUE): Likewise.
8375 2004-01-26 Richard Henderson <rth@redhat.com>
8377 * c-parse.in (extension): Use itype.
8378 (SAVE_EXT_FLAGS): Don't allocate a tree.
8379 (RESTORE_EXT_FLAGS): Don't read a tree.
8381 2004-01-26 Jan Hubicka <jh@suse.cz>
8383 * cselib.c (discard_useless_values): Clear out value pointer pointing
8384 to datastructure to be recycled.
8386 2004-01-25 Jan Hubicka <jh@suse.cz>
8388 * genextract.c (main): Do not output the memset when not checking.
8390 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
8392 * config/h8300/h8300.c (h8300_tiny_constant_address_p): Use a
8393 switch statement instead of a chain of if statements.
8395 2004-01-26 Jeff Law <law@redhat.com>
8397 * doc/contrib.texi: Minor cleanup for Paolo Carlini's entry. Add
8398 acute accents for Petur Runolfsson's entry.
8400 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
8402 * config/pdp11/pdp11.c (TARGET_STRUCT_VALUE_RTX): New.
8403 (TARGET_RETURN_IN_MEMORY): Likewise.
8404 * config/pdp11/pdp11.h (STRUCT_VALUE): Remove.
8405 (RETURN_IN_MEMORY): Likewise.
8407 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
8409 * config/rs6000/rs6000.c (rs6000_emit_move): split slow
8410 unaligned load/store into smaller loads and stores.
8412 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
8414 * function.c (assign_parms): Do not assign
8415 long long argument to memory in prologue if
8416 is it loaded into register.
8418 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
8421 * expr.c (emit_group_load): split constant
8422 correctly into register components of PARALLEL insn.
8424 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
8426 * gcc/config/rs6000/rs6000.md (save_stack_nonlocal):
8427 Use adjust_address_nv directly with appropriate mode.
8428 (restore_stack_nonlocal): Ditto.
8430 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
8432 * config/xtensa/xtensa-protos.h: Remove the prototype for
8433 xtensa_builtin_saveregs.
8434 * config/xtensa/xtensa.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
8435 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
8436 (TARGET_PROMOTE_PROTOTYPES): Likewise.
8437 (TARGET_STRUCT_VALUE_RTX): Likewise.
8438 (TARGET_RETURN_IN_MEMORY): Likewise.
8439 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
8440 (xtensa_builtin_saveregs): Make it static.
8441 (xtensa_return_in_memory): New.
8442 * config/xtensa/xtensa.h (PROMOTE_FUNCTION_ARGS: Remove.
8443 (PROMOTE_FUNCTION_RETURN): Likewise.
8444 (PROMOTE_PROTOTYPES): Likewise.
8445 (STRUCT_VALUE): Likewise.
8446 (RETURN_IN_MEMORY): Likewise.
8447 (EXPAND_BUILTIN_SAVEREGS): Likewise.
8449 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
8451 * config/arm/arm.c (TARGET_SETUP_INCOMING_VARARGS): New.
8452 (arm_setup_incoming_varargs): Likewise.
8453 * config/arm/arm.h (SETUP_INCOMING_VARARGS): Remove.
8455 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
8457 * config/cris/cris.c (TARGET_SETUP_INCOMING_VARARGS): New.
8458 (cris_setup_incoming_varargs): Likewise.
8459 * config/cris/cris.h (SETUP_INCOMING_VARARGS): Remove.
8461 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
8463 * config/ns32k/ns32k.c (TARGET_STRUCT_VALUE_RTX): New.
8464 (ns32k_struct_value_rtx): Likewise.
8465 * config/ns32k/ns32k.h (STRUCT_VALUE_REGNUM): Rename to
8466 NS32K_STRUCT_VALUE_REGNUM.
8468 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
8470 * config/arm/arm.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
8471 (TARGET_PROMOTE_PROTOTYPES): Likewise.
8472 (TARGET_STRUCT_VALUE_RTX): Likewise.
8473 (arm_struct_value_rtx): Likewise.
8474 * config/arm/arm.h (PROMOTE_FUNCTION_ARGS): Remove.
8475 (STRUCT_VALUE): Likewise.
8476 (STRUCT_VALUE_REGNUM): Likewise.
8477 (PROMOTE_PROTOTYPES): Likewise.
8479 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
8481 * config/ia64/ia64-protos.h: Remove the prototype for
8482 ia64_setup_incoming_varargs and ia64_return_in_memory.
8483 * config/ia64/ia64.c (TARGET_STRUCT_VALUE_RTX): New.
8484 (TARGET_RETURN_IN_MEMORY): Likewise.
8485 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
8486 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
8487 (ia64_setup_incoming_varargs): Adjust the arguments to meet
8488 the requirement of TARGET_SETUP_INCOMING_VARARGS.
8489 (ia64_return_in_memory): Make it static. Change the return
8490 type to bool from int. Add an argument.
8491 (ia64_struct_value_rtx): New.
8492 * config/ia64/ia64.h: Remove commented-out definitions of
8493 PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN, and
8495 (RETURN_IN_MEMORY): Remove.
8496 (STRUCT_VALUE_REGNUM): Likewise.
8497 (STRICT_ARGUMENT_NAMING): Likewise.
8499 2004-01-26 Eric Botcazou <ebotcazou@libertysurf.fr>
8502 * config/sparc/sparc.c (function_arg_union_value): New function.
8503 (function_arg): Use it to deal with unions.
8504 (function_value): Likewise. Define 'regbase' only for ARCH64.
8505 Replace a conditional statement by a simpler one.
8507 2004-01-26 Richard Sandiford <rsandifo@redhat.com>
8509 * config/mips/mips.c (mips16_optimize_gp): Delete.
8510 (mips_reorg): Don't call it.
8512 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8514 * config/c4x/c4x.md (addqi3_noclobber): Move up pecking order.
8515 (floatunsqihf2): Remove operand 6.
8516 (fixhfqi_set, fix_trunchfqi2, fixuns_trunchfqi2): Group with other
8518 (ldi_conditional, ldf_conditional): Validate operands.
8520 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8522 * config/c4x/c4x.h (BCT_CHECK_LOOP_ITERATIONS): Remove.
8523 (HAVE_GAS_HIDDEN): Undefine as interim measure.
8525 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8527 * config/c4x/c4x.c (c4x_legitimate_address_p): Invalidate direct
8528 memory references if TARGET_EXPOSE_LDP nonzero.
8530 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8532 * config/c4x/c4x.c (legitimize_operands): Truncate invalid shift counts.
8534 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8536 * config/c4x/c4x.c (c4x_valid_operands): More aggressively reject
8537 invalid operand combinations.
8539 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8541 * config/c4x/c4x.c (c4x_check_legit_addr): Rename to
8542 c4x_legitimate_address_p. Fix post_modify check.
8544 * config/c4x/c4x-protos.h (c4x_check_legit_addr): Adjust.
8545 * config/c4x/c4x.h (c4x_check_legit_addr): Adjust.
8547 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
8549 * config/pa/pa-protos.h: Remove the prototype for
8550 hppa_builtin_saveregs. Add a prototype for
8551 pa_return_in_memory.
8552 * config/pa/pa.c (TARGET_PROMOTE_FUNCTION_RETURN): New.
8553 (TARGET_PROMOTE_PROTOTYPES): Likewise.
8554 (TARGET_STRUCT_VALUE_RTX): Likewise.
8555 (TARGET_RETURN_IN_MEMORY): Likewise.
8556 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
8557 (pa_struct_value_rtx): Likewise.
8558 (pa_return_in_memory): Likewise.
8559 * config/pa/pa.h (STRUCT_VALUE_REGNUM): Rename to
8560 PA_STRUCT_VALUE_REGNUM.
8561 (INIT_CUMULATIVE_ARGS): Use pa_return_in_memory.
8562 (EXPAND_BUILTIN_SAVEREGS): Remove.
8563 (PROMOTE_PROTOTYPES): Likewise.
8564 (PROMOTE_FUNCTION_RETURN): Likewise.
8566 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
8568 * config/vax/vax.c (TARGET_PROMOTE_PROTOTYPES): New.
8569 (TARGET_STRUCT_VALUE_RTX): Likewise.
8570 (vax_struct_value_rtx): Likewise.
8571 * config/vax/vax.h (STRUCT_VALUE_REGNUM): Rename to
8572 VAX_STRUCT_VALUE_REGNUM.
8573 (PROMOTE_PROTOTYPES): Remove.
8575 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
8577 * config/c4x/c4x.h (LEGITIMIZE_RELOAD_ADDRESS): Handle symref.
8579 2003-04-25 Chris Demetriou <cgd@broadcom.com>
8581 * config/mips/mips.h (ISA_HAS_HILO_INTERLOCKS): MIPS32, MIPS32r2,
8582 and MIPS64 have HI/LO interlocks. Update comment.
8584 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
8586 * config/stormy16/stormy16-protos.h: Remove the prototype for
8587 xstormy16_setup_incoming_varargs.
8588 * config/stormy16/stormy16.c
8589 (xstormy16_setup_incoming_varargs): Remove.
8590 (xstormy16_return_in_memory): New.
8591 (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
8592 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
8593 (TARGET_PROMOTE_PROTOTYPES): Likewise.
8594 (TARGET_STRUCT_VALUE_RTX): Likewise.
8595 (TARGET_RETURN_IN_MEMORY): Likewise.
8596 * config/stormy16/stormy16.h (PROMOTE_FUNCTION_ARGS): Remove.
8597 (PROMOTE_FUNCTION_RETURN): Likewise
8598 (PROMOTE_PROTOTYPES): Likewise
8599 (RETURN_IN_MEMORY): Likewise
8600 (STRUCT_VALUE): Likewise
8601 (SETUP_INCOMING_VARARGS): Likewise
8603 2004-01-25 Richard Sandiford <rsandifo@redhat.com>
8605 * config/mips/mips.c (mips_offset_within_object_p): New function.
8606 (mips_symbolic_constant_p): Use it in the SYMBOL_SMALL_DATA and
8607 SYMBOL_CONSTANT_POOL cases. Also use it for SYMBOL_GENERAL if the
8608 ABI has 64-bit pointers and the object file only allows 32-bit symbols.
8610 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
8612 * config/sh/sh.h (PROMOTE_FUNCTION_ARGS): Remove.
8613 (PROMOTE_FUNCTION_RETURN): Likewise.
8615 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
8617 * config/mn10300/mn10300-protos.h: Remove the prototype for
8618 mn10300_builtin_saveregs.
8619 * config/mn10300/mn10300.c (TARGET_PROMOTE_PROTOTYPES): New.
8620 (TARGET_STRUCT_VALUE_RTX): Likewise.
8621 (TARGET_RETURN_IN_MEMORY): Likewise.
8622 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
8623 (mn10300_return_in_memory): Likewise.
8624 (mn10300_builtin_saveregs): Make it static.
8625 * config/mn10300/mn10300.h (PROMOTE_PROTOTYPES): Remove.
8626 (RETURN_IN_MEMORY): Likewise.
8627 (STRUCT_VALUE): Likewise.
8628 (EXPAND_BUILTIN_SAVEREGS): Likewise.
8630 2004-01-25 Eric Botcazou <ebotcazou@act-europe.fr>
8633 * cfgcleanup.c (try_optimize_cfg): Explicitly test against 0.
8635 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
8637 * config/h8300/lib1funcs.asm (divnorm, modnorm): Optimize by
8640 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
8642 * config/i860/i860-protos.h: Remove the prototype for
8644 * config/i860/i860.c (i860_saveregs): Make it static.
8645 (i860_struct_value_rtx): New.
8646 (TARGET_STRUCT_VALUE_RTX): Likewise.
8647 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
8648 * config/i860/i860.h (STRUCT_VALUE_REGNUM): Rename to
8649 I860_STRUCT_VALUE_REGNUM.
8650 (EXPAND_BUILTIN_SAVEREGS): Remove.
8652 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
8654 * config/m68hc11/m68hc11.c (TARGET_STRUCT_VALUE_RTX): New.
8655 (TARGET_RETURN_IN_MEMORY): Likewise.
8656 (m68hc11_struct_value_rtx): Likewise.
8657 (m68hc11_return_in_memory): Likewise.
8658 * config/m68hc11/m68hc11.h: Remove a commented-out definition
8659 of PROMOTE_PROTOTYPES.
8660 (RETURN_IN_MEMORY): Remove.
8661 (STRUCT_VALUE_REGNUM): Likewise.
8663 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
8665 * config/mmix/mmix-protos.h: Remove the prototype for
8666 mmix_setup_incoming_varargs.
8667 * config/mmix/mmix.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
8668 (TARGET_STRUCT_VALUE_RTX): Likewise.
8669 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
8670 (mmix_setup_incoming_varargs): Make it static.
8671 (mmix_struct_value_rtx): New.
8672 * config/mmix/mmix.h (PROMOTE_FUNCTION_ARGS): Remove.
8673 Remove a commented-out definition of PROMOTE_FUNCTION_RETURN.
8674 (STRUCT_VALUE_REGNUM): Remove.
8675 (SETUP_INCOMING_VARARGS): Likewise.
8677 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
8679 * config/mips/mips-protos.h: Remove the prototypes for
8680 mips_setup_incoming_varargs and mips_return_in_memory.
8681 * config/mips/mips.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
8682 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
8683 (TARGET_PROMOTE_PROTOTYPES): Likewise.
8684 (TARGET_STRUCT_VALUE_RTX): Likewise.
8685 (TARGET_RETURN_IN_MEMORY): Likewise.
8686 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
8687 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
8688 (mips_setup_incoming_varargs): Match the prototype for
8689 TARGET_SETUP_INCOMING_VARARGS.
8690 (mips_return_in_memory): Make it static. Add argument fntype.
8691 (mips_strict_argument_naming): New.
8692 * config/mips/mips.h (PROMOTE_PROTOTYPES): Remove.
8693 (PROMOTE_FUNCTION_ARGS): Likewise.
8694 (PROMOTE_FUNCTION_RETURN): Likewise.
8695 (STRUCT_VALUE): Likewise.
8696 (RETURN_IN_MEMORY): Likewise.
8697 (SETUP_INCOMING_VARARGS): Likewise.
8698 (STRICT_ARGUMENT_NAMING): Likewise.
8700 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
8702 * config/ip2k/ip2k.c (TARGET_STRUCT_VALUE_RTX): New.
8703 (TARGET_RETURN_IN_MEMORY): Likewise.
8704 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
8705 (ip2k_return_in_memory): Likewise.
8706 (ip2k_setup_incoming_varargs): Likewise.
8707 * config/ip2k/ip2k.h (RETURN_IN_MEMORY): Remove.
8708 (STRUCT_VALUE): Likewise.
8709 (STRUCT_VALUE_INCOMING): Likewise.
8710 (SETUP_INCOMING_VARARGS): Likewise.
8712 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
8714 * config/avr/avr.c (TARGET_STRUCT_VALUE_RTX): New.
8715 (TARGET_RETURN_IN_MEMORY): Likewise.
8716 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
8717 (avr_return_in_memory): Remove.
8718 * config/avr/avr.h (RETURN_IN_MEMORY): Remove.
8719 (STRUCT_VALUE): Likewise.
8720 (STRUCT_VALUE_INCOMING): Likewise.
8721 (STRICT_ARGUMENT_NAMING): Likewise.
8723 2004-01-25 Jan Hubicka <jh@suse.cz>
8725 * combine.c (recog_for_combine): Avoid allocating unnecesary RTX.
8727 2004-01-25 Richard Sandiford <rsandifo@redhat.com>
8729 * config/mips/mips-protos.h (mips_reg_mode_ok_for_base_p): Delete.
8730 (mips_regno_mode_ok_for_base_p): Declare.
8731 * config/mips/mips.h (ARG_POINTER_REGNUM): Renumber to 77.
8732 (FRAME_POINTER_REGNUM): Renumber to 78.
8733 (FIRST_PSEUDO_REGISTER): Update comment accordingly.
8734 (BASE_REG_P, GP_REG_OR_PSEUDO_STRICT_P): Delete.
8735 (GP_REG_OR_PSEUDO_NONSTRICT_P): Delete.
8736 (REGNO_MODE_OK_FOR_BASE_P): Use mips_regno_mode_ok_for_base_p.
8737 (REG_MODE_OK_FOR_BASE_P): Likewise.
8738 * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Change
8739 entry for 77 to "$arg" and entry for 78 to "$frame".
8740 (mips_regno_to_class): Map 77 and 78 to ALL_REGS.
8741 (mips_reg_mode_ok_for_base_p): Remove.
8742 (mips_regno_mode_ok_for_base_p): New function, derived from old
8743 BASE_REG_P macro. Don't enforce the mips16 stack pointer
8744 restrictions unless we're being strict.
8745 (mips_valid_base_register_p): Use mips_regno_mode_ok_for_base_p.
8747 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
8749 * c-common.h: Fix comment typos.
8750 * c-decl.c: Likewise.
8751 * cgraphunit.c: Likewise.
8752 * combine.c: Likewise.
8753 * et-forest.c: Likewise.
8755 * function.c: Likewise.
8756 * ifcvt.c: Likewise.
8757 * integrate.c: Likewise.
8759 * postreload.c: Likewise.
8760 * varray.c: Likewise.
8762 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
8764 * doc/frontends.texi: Update copyright.
8765 * doc/gcov.texi: Likewise.
8766 * doc/gty.texi: Likewise.
8767 * doc/sourcebuild.texi: Likewise.
8768 * doc/standards.texi: Likewise.
8770 2004-01-24 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
8773 * c4x.md: (movstrqi*) Use match_scratch instead of match_dup.
8774 Remove movstrqi_small because it conflicts with movstrqi_large.
8776 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
8778 * config/cris/cris.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
8779 (TARGET_STRUCT_VALUE_RTX): Likewise.
8780 (cris_struct_value_rtx): Likewise.
8781 * config/cris/cris.h (PROMOTE_FUNCTION_ARGS): Remove.
8782 (CRIS_STACKADJ_REG): Use CRIS_STRUCT_VALUE_REGNUM instead of
8783 STRUCT_VALUE_REGNUM.
8784 (STRUCT_VALUE_REGNUM): Rename to CRIS_STRUCT_VALUE_REGNUM.
8786 2004-01-24 Ian Lance Taylor <ian@wasabisystems.com>
8789 * cse.c (cse_cc_succs): Change the mode of the source expression
8790 as soon as decide we need a new mode. Don't permit changing modes
8791 if we found a match in a successor block.
8792 (cse_condition_code_reg): Save original mode of source expression
8793 so that we know whether we have to change the mode in other
8796 2004-01-24 Jan Hubicka <jh@suse.cz>
8798 * emit-rtl.c (change_address, adjust_address_1, offset_address,
8799 widen_memory_access): Return early when there is nothing to change.
8801 2004-01-24 Jakub Jelinek <jakub@redhat.com>
8803 * simplify-rtx.c (simplify_relational_operation): Don't
8804 simplify address == constant into address + -constant == 0.
8806 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
8808 * gcc.c (process_command): Don't internationalize the
8810 * mips-tfile.c (main): Likewise.
8812 2004-01-24 Andreas Tobler <a.tobler@schweiz.ch>
8814 * cse.c: (cse_cc_succs) Fix comparison warning.
8816 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
8818 * config/h8300/h8300.md: Remove extraneous USE in expanders.
8820 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
8822 * config/h8300/h8300-protos.h: Provide prototypes for
8823 h8300_legitimate_constant_p and h8300_legitimate_address_p.
8824 * config/h8300/h8300.c (h8300_legitimate_constant_p): New.
8825 (h8300_rtx_ok_for_base_p): Likewise.
8826 (h8300_legitimate_address_p): Likewise.
8827 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Use
8828 h8300_legitimate_constant_p.
8829 (RTX_OK_FOR_BASE_P): Remove.
8830 (GO_IF_LEGITIMATE_ADDRESS): Use h8300_legitimate_address_p.
8832 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
8834 * config/h8300/h8300.h (REG_OK_FOR_INDEX_NONSTRICT_P): New.
8835 (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
8836 (REG_OK_FOR_INDEX_STRICT_P): Likewise.
8837 (REG_OK_FOR_BASE_STRICT_P): Likewise.
8838 (REG_OK_FOR_INDEX_STRICT_P): Use REGNO_OK_FOR_INDEX_P.
8839 (REG_OK_FOR_BASE_STRICT_P): Use REGNO_OK_FOR_BASE_P.
8840 (REG_OK_FOR_INDEX_P): Use REG_OK_FOR_INDEX_STRICT_P.
8841 (REG_OK_FOR_BASE_P): Use REG_OK_FOR_BASE_STRICT_P.
8843 2004-01-24 Jan Hubicka <jh@suse.cz>
8845 * cselib.c (remove_useless_values): Do not access discarded values.
8847 2004-01-24 Joseph S. Myers <jsm@polyomino.org.uk>
8849 * c-typeck.c (build_conditional_expr): Do not allow non-lvalue
8852 2004-01-23 Kazu Hirata <kazu@cs.umass.edu>
8854 * recog.c: Fix a typo in copyright.
8856 2004-01-23 Andrew Pinski <apinski@apple.com>
8858 * config/rs6000/rs6000.md (call): Fix misappiled patch.
8859 (call_value): Likewise.
8861 2004-01-23 Richard Henderson <rth@redhat.com>
8864 * combine.c (SHIFT_COUNT_TRUNCATED): Provide default value.
8865 (simplify_comparison): Don't simplify (eq (zero_extract c 1 r) 0)
8866 if SHIFT_COUNT_TRUNCATED is set.
8868 2004-01-23 Bob Wilson <bob.wilson@acm.org>
8870 * config/xtensa/xtensa.c (xtensa_va_arg): Handle complex values as
8871 separate real and imaginary parts.
8872 * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Define.
8874 2004-01-23 Hartmut Penner <hpenner@de.ibm.com>
8877 * config/rs6000/rs6000.md (movdf_hardfloat64): Do not disparage
8880 2004-01-23 Jan Hubicka <jh@suse.cz>
8882 * emit-rtl.c (change_address_1): Do not re-generate the RTX if nothing
8885 * alloc-pool.c (align_four): Kill.
8886 (create_alloc_pool): Align size to eight.
8887 (free_alloc_pool, free_pool): Invalidate deallocated data.
8889 2004-01-23 Ian Lance Taylor <ian@wasabisystems.com>
8892 * cse.c (cse_change_cc_mode): New static function.
8893 (cse_change_cc_mode_insns, cse_cc_succs): Likewise.
8894 (cse_condition_code_reg): New function.
8895 * rtl.h (cse_condition_code_reg): Declare.
8896 * toplev.c (rest_of_handle_cse2): Call cse_condition_code_reg.
8897 * target.h (struct gcc_target): Add fixed_condition_code_regs and
8898 cc_modes_compatible.
8899 * target-def.h (TARGET_FIXED_CONDITION_CODE_REGS): Define.
8900 (TARGET_CC_MODES_COMPATIBLE): Define.
8901 (TARGET_INITIALIZER): Add new initializers.
8902 * targhooks.c (default_cc_modes_compatible): New function.
8903 * targhooks.c (default_cc_modes_compatible): Declare.
8904 * hooks.c (hook_bool_intp_intp_false): New function.
8905 * hooks.h (hook_bool_intp_intp_false): Declare.
8906 * config/i386/i386.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
8907 (TARGET_CC_MODES_COMPATIBLE): Define.
8908 (ix86_fixed_condition_code_regs): New static function.
8909 (ix86_cc_modes_compatible): Likewise.
8910 * doc/tm.texi (Condition Code): Document new hooks.
8912 2004-01-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8914 * fixinc/inclhack.def (bad_lval): Renamed to ...
8915 (alpha_bad_lval): ... this.
8917 Restrict to alpha*-dec-osf*.
8918 * fixinc/fixincl.x: Regenerate.
8919 * fixinc/tests/base/dirent.h: Remove, moving test ...
8920 * fixinc/tests/base/testing.h: ... here, reflecting new name.
8922 2004-01-23 Zack Weinberg <zack@codesourcery.com>
8925 * c-decl.c (diagnose_mismatched_decls): Also discard a
8926 built-in if we encounter an old-style definition with the
8929 2004-01-23 Jakub Jelinek <jakub@redhat.com>
8931 * config.gcc (powerpc*-*): Clear $with_cpu or $with_tune if it was
8932 set to default{32,64}.
8934 2004-01-21 Jakub Jelinek <jakub@redhat.com>
8936 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR)
8937 [!__powerpc64__]: Corrected to handle kernels with changed ucontext.
8939 2004-01-23 Eric Botcazou <ebotcazou@act-europe.fr>
8940 Olivier Hainque <hainque@act-europe.fr>
8942 * fold-const.c (fold_binary_op_with_conditional_arg): Only
8943 build a COMPOUND_EXPR if 'arg' is really a SAVE_EXPR.
8945 2004-01-23 Daniel Jacobowitz <drow@mvista.com>
8947 * config/arm/arm.c (arm_legitimate_address_p): Don't check the mode
8948 size for minipool references.
8950 2004-01-23 Roger Sayle <roger@eyesopen.com>
8952 * real.c (real_floor, real_ceil): Tweak to allow input and output
8953 arguments to overlap.
8954 (real_round): New function to implement round(3m) semantics.
8955 * real.h (real_round): Prototype here.
8956 * builtins.c (fold_builtin_round): New function to constant fold
8957 round, roundf and roundl.
8958 (fold_builtin): Call fold_builtin_round for BUILT_IN_ROUND{,F,L}.
8960 2004-01-23 Alexandre Oliva <aoliva@redhat.com>
8962 PR optimization/13819
8963 * config/sh/sh.c (sh_reorg): Compensate for sharing of CLOBBERs
8964 introduced by 2004-01-20's Jan Hubicka's copy_insn change.
8965 (sh_handle_sp_switch_attribute): Remove warning.
8967 2003-11-30 Jan Hubicka <jh@suse.cz>
8969 * i386.c (ix86_emit_restore_regs_using_mov): Deal with large offsets.
8971 2004-01-23 J"orn Rennecke <joern.rennecke@superh.com>
8973 * doc/tm.texi: Insert some weasel words when LOAD_EXTEND_OP
8974 may or may not return non-NIL.
8975 * postreload.c (reload_cse_simplify_operands): In LOAD_EXTEND_OP code,
8976 check CANNOT_CHANGE_MODE_CLASS
8978 2004-01-23 Jan Hubicka <jh@suse.cz>
8980 * basic-block.h (PROP_POSTRELOAD): New macro.
8981 (CLEANUP_LOG_LINKS): New.
8982 * cfgcleanup.c (cleanup_cfg): Only PROP_LOG_LINKS when asked to.
8983 * toplev.c (rest_of_handle_life): Preserve LOG_LINKS trought cleanup_cfg.
8985 * cselib.c (value_pool): New.
8986 (new_cselib_val): Use pool.
8987 (cselib_init): Initialize value_pool
8988 (cselib_finish): Free pool.
8990 2004-01-23 Eric Botcazou <ebotcazou@libertysurf.fr>
8992 * config/sparc/sparc.c (scan_record_type): New function.
8993 (function_arg_slotno): Use it to determine which kinds of
8994 registers the record can be passed in.
8996 2004-01-22 James A. Mmorrison <ja2morri@uwaterloo.ca>
8998 * config/pa/fptr.c: Fix old-style definition.
9000 2004-01-22 Paolo Bonzini <bonzini@gnu.org>
9002 PR optimization/13724
9003 * cse.c (fold_rtx) <SUBREG>: Fold a SUBREG to zero if it
9004 represents the zero bits produced by a ZERO_EXTEND operation.
9006 2004-01-22 Roger Sayle <roger@eyesopen.com>
9008 PR optimization/13821
9009 * simplify-rtx.c (simplify_subreg): Use subreg_lowpart_offset to
9010 correctly calculate the lowpart offset of the contracted subreg.
9012 2004-01-22 Ian Lance Taylor <ian@wasabisystems.com>
9014 * doc/invoke.texi (Optimize Options): Note that --param arguments
9015 are subject to change without notice.
9017 2004-01-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9019 * config.gcc (mips-sgi-irix6*o32): Removed.
9020 * config/mips/iris6-o32-as.h: Likewise.
9021 * config/mips/iris6-o32-gas.h: Likewise.
9022 * config/mips/iris6-o32.h: Likewise.
9024 2004-01-22 Jan Hubicka <jh@suse.cz>
9026 * cfgcleanup.c (first_pass): New static variable.
9027 (try_forward_edges): Add work limiting check for threading.
9028 (try_crossjump_bb): Add work limiting check for crossjumping.
9029 (try_optimize_cfg): Maintain first pass variable.
9031 2004-01-22 Bob Wilson <bob.wilson@acm.org>
9033 * config/xtensa/xtensa.c (function_arg): Generalize logic so that it
9034 handles complex and vector modes.
9036 2004-01-22 Kazu Hirata <kazu@cs.umass.edu>
9038 * config/h8300/h8300.h (REG_OK_FOR_INDEX_P_STRICT): Remove.
9039 (REG_OK_FOR_BASE_P_STRICT): Likewise.
9042 2004-01-22 Daniel Jacobowitz <drow@mvista.com>
9044 * c-semantics.c (genrtl_while_stmt, genrtl_do_stmt_1)
9045 (genrtl_for_stmt): Remove emit_nop calls.
9047 2004-01-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9051 * pa.md (movstrsi_prereload, movstrsi_postreload, movstrdi_prereload,
9052 movstrdi_postreload, clrstrsi_prereload, clrstrsi_postreload,
9053 clrstrdi_prereload, clrstrdi_postreload): Fix constraints.
9055 2004-01-22 Daniel Jacobowitz <drow@mvista.com>
9057 * config/arm/arm.c: Include "debug.h".
9058 (thumb_pushpop): Take two new arguments. Add some commentary.
9059 Output frame information when pushing.
9060 (thumb_exit, thumb_unexpanded_epilogue): Update calls to
9062 (thumb_output_function_prologue): Likewise. Accumulate a CFA
9063 offset, and pass it to thumb_pushpop. Output CFI information.
9064 (thumb_expand_prologue): Add some frame-related markers and notes.
9066 2004-01-22 Ulrich Weigand <uweigand@de.ibm.com>
9068 * config/s390/s390.c (s390_frame_info): Allow large frame sizes
9070 (s390_arg_frame_offset): Change return type to HOST_WIDE_INT.
9071 * config/s390/s390-protos.h (s390_arg_frame_offset): Likewise.
9073 2004-01-22 Roger Sayle <roger@eyesopen.com>
9074 Paolo Bonzini <bonzini@gnu.org>
9076 * rtlanal.c (subreg_lsb_1): New function split out from subreg_lsb.
9077 (subreg_lsb): Change to call new subreg_lsb_1 helper function.
9078 * rtl.h (subreg_lsb_1): Prototype here.
9079 * simplify-rtx.c (simplify_subreg): Optimize subregs of zero and
9082 2004-01-22 Kazu Hirata <kazu@cs.umass.edu>
9084 * doc/tm.texi (CASE_VECTOR_PC_RELATIVE): Mention that the
9085 macro need not be defined if jump-tables should contain
9086 relative addresses only when -fPIC or -fPIC is in effect.
9088 2004-01-22 Jan Hubicka <jh@suse.cz>
9090 * alias.c (reg_base_value): Turn into varray.
9091 (reg_base_value_size): Kill.
9092 (old_reg_base_value): New deletable varray.
9093 (alias_invariant_size): New variable.
9094 (REG_BASE_VALUE): Update to use varray.
9095 (find_base_value): Likewise.
9096 (record_set): Likewise.
9097 (record_base_value): Likewise.
9098 (memrefs_conflict_p): Likewise.
9099 (record_set): Likewise
9100 (record_base_value): Likewise.
9101 (memrefs_conflict_p): Use alias_invariant_size.
9102 (init_alias_analysis): Use varray; set alias_invariant_size;
9103 rescale other arrays to be sized by maxreg.
9104 (end_alias_analysis): Save reg_base_value; clear alias_invariant_size.
9106 2004-01-22 Eric Botcazou <ebotcazou@libertysurf.fr>
9108 * config/sparc/sparc.c (function_arg_slotno): Use
9109 FLOAT_TYPE_P to detect FP fields in structures.
9110 (function_arg_record_value_1): Likewise.
9111 (function_arg_record_value_2): Likewise.
9113 2004-01-22 Jan Hubicka <jh@suse.cz>
9115 * function.c (allocate_struct_function): Do not initialize expr, emit
9117 (prepare_function_start): Do it here.
9118 * c-parse.in (maybe_type_qual): Do not produce line number notes.
9120 2004-01-22 Eric Botcazou <ebotcazou@libertysurf.fr>
9123 * config/sparc/sparc.c (function_arg_record_value_3): Revert
9124 to 'word_mode' once the first slot has been filled.
9126 2004-01-22 Olivier Hainque <hainque@act-europe.fr>
9128 * config/sparc/sparc.c (function_arg_record_value_1): Fix
9129 computation of the number of integer registers required.
9131 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
9133 * config/i386/i386.md: Simplify certain comparisons of
9136 2004-01-21 Andrew Pinski <apinski@apple.com>
9139 * config/rs6000/rs6000.md (call_value): Force operand
9140 1 not operand 0 into a register.
9142 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
9144 * cpperror.c, cpptrad.c, longlong.h, params.def, rtl.def,
9145 unwind-dw2-fde.h: Update copyright.
9147 2004-01-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9149 * pa-protos.h: Update copyright.
9153 2004-01-21 Caroline Tice <ctice@apple.com>
9156 * config/i386/i386.md (fix_truncxfdi2): Add clause to clobber
9158 (fix_truncdfdi2): Likewise.
9159 (fix_truncsfdi2): Likewise.
9160 (*fix_truncdi_1): Likewise.
9161 (fix_truncxfsi2): Likewise.
9162 (fix_truncdfsi2): Likewise.
9163 (fix_truncsfsi2): Likewise.
9164 (*fix_truncsi_1): Likewise.
9165 (fix_truncxfhi2): Likewise.
9166 (fix_truncdfhi2): Likewise.
9167 (fix_truncsfhi2): Likewise.
9168 (*fix_trunchi_1): Likewise.
9170 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
9172 * alias.c, basic-block.h, c-common.c, c-common.h,
9173 c-cppbuiltin.c, c-opts.c, c-pragma.c, c-pretty-print.c,
9174 calls.c, cfg.c, cfgcleanup.c, cfgrtl.c, cgraph.h, collect2.c,
9175 combine.c, cppcharset.c, cpphash.h, cppinit.c, cpplib.c,
9176 cpplib.h, cppmacro.c, crtstuff.c, cselib.c, cselib.h,
9177 defaults.h, df.c, dominance.c, et-forest.c, expmed.c, expr.c,
9178 expr.h, fix-header.c, function.h, gcc.c, gcse.c, genattrtab.c,
9179 genautomata.c, genconditions.c, genemit.c, genflags.c,
9180 gengtype.c, gengtype.h, genopinit.c, genrecog.c, gensupport.c,
9181 ggc-zone.c, graph.c, haifa-sched.c, input.h, integrate.c,
9182 langhooks-def.h, langhooks.c, langhooks.h, line-map.c,
9183 line-map.h, local-alloc.c, optabs.c, optabs.h, postreload.c,
9184 ra.h, recog.c, reg-stack.c, regmove.c, reload.c, reorg.c,
9185 rtl.c, sched-deps.c, sched-ebb.c, sdbout.c, system.h,
9186 target.h, targhooks.c, toplev.h, tree-inline.c, unwind-pe.h,
9187 unwind.h, varray.c, varray.h: Update copyright.
9189 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
9191 * config/h8300/coff.h: Update copyright.
9192 * config/h8300/elf.h: Likewise.
9193 * config/h8300/h8300-protos.h: Likewise.
9194 * config/h8300/h8300.c: Likewise.
9195 * config/h8300/h8300.h: Likewise.
9196 * config/h8300/h8300.md: Likewise.
9198 2004-01-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9200 * fixinc/inclhack.def (hpux10_stdio_declarations, ultrix_const3,
9201 ultrix_locale, ultrix_stdlib, ultrix_strings, ultrix_sys_time,
9202 ultrix_unistd): New hacks.
9203 * fixinc/tests/base/stdio.h (HPUX10_STDIO_DECLARATIONS_CHECK,
9204 ULTRIX_CONST2_CHECK): Add checks.
9205 * fixinc/tests/base/stdlib.h (ULTRIX_STDLIB_CHECK): Likewise.
9206 * fixinc/tests/base/strings.h (ULTRIX_STRINGS2_CHECK): Likewise.
9207 * fixinc/tests/base/unistd.h (ULTRIX_UNISTD_CHECK): Likewise.
9208 * fixinc/tests/base/sys/time.h (ULTRIX_SYS_TIME_CHECK): Likewise.
9209 * fixinc/tests/base/locale.h: New file.
9210 * fixinc/fixincl.x: Rebuilt.
9212 2004-01-21 Andreas Jaeger <aj@suse.de>
9213 Michael Matz <matz@suse.de>
9215 * doc/extend.texi (Extended Asm): Clarify memory clobber.
9217 2004-01-21 Jakub Jelinek <jakub@redhat.com>
9219 * crtstuff.c (frame_dummy, __do_global_ctors_1): Call
9220 _Jv_RegisterClasses through a function pointer.
9222 2004-01-21 Falk Hueffner <falk@debian.org>
9225 * config/alpha/alpha.c (alpha_emit_set_const_1): If
9226 no_new_pseudos, use gen_rtx_SET directly for SImode constants
9227 which need multiple instructions to emit.
9229 2004-01-21 Inaoka Kazuhiro <inaoka.kazuhiro@renesas.com>
9231 * config/m32r/m32r.h (CPP_SPEC): Define.
9233 2004-01-21 Zack Weinberg <zack@codesourcery.com>
9235 * c-decl.c (merge_decls): Kill different_binding_level and
9236 different_tu arguments; simplify throughout.
9237 (duplicate_decls): Likewise.
9238 (pushdecl, merge_translation_unit_decls): Update calls to
9241 2004-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9243 * Makefile.in (pretty-print.o): Depend on $(CONFIG_H) and
9245 (print-rtl1.o): Depend on $(SYSTEM_H).
9247 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
9250 * configure.ac: Delete definition and subsitution of docdir.
9251 Add info, man, srcman and srcinfo to target hooks. Create doc/
9253 * configure: Regenerate.
9254 * Makefile.in: Don't substitute docdir and delete all references
9256 (MAKEINFOFLAGS): Define.
9257 (stmp-docobjdir): Delete.
9258 (INFOFILES, MANFILES): Define.
9259 (info): Call lang.info, srcinfo and lang.srcinfo.
9260 (generated-manpages): Call lang.man, srcman and lang.srcman.
9261 (srcinfo, srcman): New rules to copy back files to source directory.
9262 (doc/%.info, doc/%.dvi, doc/%.1, doc/%.7): New implict rule.
9263 (install-man): Revamp rule.
9264 (clean): Update dvi directory.
9265 (distclean): Delete TAGS from front end directorys.
9266 (maintainer-clean): Delete all document files in source directory.
9268 objc/Make-lang.in (objc.man, objc.info): Dummy entries.
9269 (objc.srcman, objc.srcinfo): Likewise.
9271 2004-01-20 Bruce Korb <bkorb@gnu.org>
9273 * fixinc/inclhack.def(math_exception): bypass only for glibc.
9274 (matherr_decl): rename & relocate as exception_structure.
9275 This fix must precede the math_exception fix.
9277 2004-01-20 Roger Sayle <roger@eyesopen.com>
9279 * fold-const.c (fold_convert): Rename to fold_convert_const.
9280 (fold_convert_const): Change arguments to take a tree_code,
9281 a type and the operand/expression to be converted. Return
9282 NULL_TREE if no simplification is possible. Add support for
9283 FIX_CEIL_EXPR and FIX_FLOOR_EXPR in addition to FIX_TRUNC_EXPR.
9284 (fold): Handle FIX_CEIL_EXPR and FIX_FLOOR_EXPR.
9285 Adjust call to fold_convert to match new fold_convert_const.
9286 Avoid modifying the tree passed to fold in-place.
9288 2004-01-21 Alan Modra <amodra@bigpond.net.au>
9290 * config/rs6000/sysv4.h (DWARF2_FRAME_REG_OUT): Define.
9291 * dwarf2out.c (output_cfi): Map regs using DWARF2_FRAME_REG_OUT.
9292 * doc/tm.texi (DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Document.
9294 2004-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9296 * pa-protos.h (compute_frame_size): Use HOST_WIDE_INT for frame sizes.
9297 * pa.c (store_reg, store_reg_modify, load_reg, set_reg_plus_d):
9298 Likewise. Handle frames larger than 0x7fffffff on 64-bit ports.
9299 (emit_move_sequence): Check scratch_reg first in various if statements.
9300 Extend source simplification to handle all 64-bit CONST_INTs.
9301 (pa_output_function_prologue): Use HOST_WIDE_INT_PRINT_DEC for printing
9303 (hppa_expand_prologue, hppa_expand_epilogue): Use HOST_WIDE_INT for
9304 frame offset calculations.
9305 * pa.h (NEW_HP_ASSEMBLER): Add comment.
9306 (MAX_LEGIT_64BIT_CONST_INT, MIN_LEGIT_64BIT_CONST_INT,
9307 LEGITIMATE_64BIT_CONST_INT_P): Define.
9308 (LEGITIMATE_CONSTANT_P): Use LEGITIMATE_64BIT_CONST_INT_P. Treat
9309 any CONST_INT as legitimate during and after reload.
9310 (VAL_32_BITS_P, INT_32_BITS): Define.
9311 (LEGITIMIZE_RELOAD_ADDRESS): Handle large frame offsets.
9313 2004-01-20 Jan Hubicka <jh@suse.cz>
9315 * emit-rtl.c (verify_rtx_sharing, copy_insn_1,
9316 emit_copy_of_insn_after, emit_copy_of_insn_after): Clobbers
9317 containing hard regs are shared.
9318 (gen_hard_reg_clobber): New function.
9319 (hard_reg_clobbers): New array.
9320 * genemit.c (gen_exp): Use gen_hard_reg_clobber.
9321 (copy_rtx): Do not copy clobbers containing hard regs.
9322 * rtl.h (gen_hard_reg_clobber): Declare.
9324 2004-01-20 Jan Hubicka <jh@suse.cz>
9326 * varray.c: Include hashtab.h
9327 (varray_descriptor): New structure.
9328 (hash_descriptor, eq_descriptor, varray_descriptor,
9329 print_statistics): New static functions
9330 (varray_init, varray_grow): Update statistics
9331 (dump_varray_statistics): New function.
9332 * varray.h (dump_varray_statistics): Declare.
9333 * toplev.c (finalize): Call it.
9334 * Makefile.in (varray.o): Add dependency.
9336 2004-01-20 Jan Hubicka <jh@suse.cz>
9338 * cselib.c: Include alloc-pool.h
9339 (empty_vals, empty_elt_lists, empty_elt_loc_lists): Kill.
9340 (elt_loc_list_pool, elt_list_pool, cselib_val_pool): Declare.
9341 (new_elt_list, new_elt_loc_list, unchain_one_elt_list,
9342 unchain_one_elt_loc_list_pool, unchain_one_value,
9343 new_cselib_val): Simplify using allocpool.
9344 (cselib_init): Initialize allocpools.
9345 (cselib_finish): Finish allocpools.
9346 * Makefile.in (cselib.o): Depend on alloc-pool.h
9348 2004-01-20 Richard Sandiford <rsandifo@redhat.com>
9350 * config/mips/mips.c (mips_load_call_address): Make the call insn
9351 use $gp if it could be calling a lazy binding stub.
9353 2004-01-20 Kazu Hirata <kazu@cs.umass.edu>
9355 * config/s390/s390.c (TARGET_PROMOTE_FUNCTION_ARGS): Define.
9356 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
9357 (TARGET_STRUCT_VALUE_RTX): Likewise.
9358 * config/s390/s390.h (PROMOTE_FUNCTION_ARGS): Remove.
9359 (PROMOTE_FUNCTION_RETURN): Remove.
9360 (STRUCT_VALUE): Remove.
9362 2004-01-20 Denis Chertykov <denisc@overta.ru>
9365 * config/avr/avr.h (BASE_REG_CLASS): Don't permit to use X
9366 register as pointer after reload.
9368 2004-01-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
9370 PR optimization/12440
9371 * loop.c: Include ggc.h.
9372 (loop_optimize): Run garbage collector between optimization of loops.
9373 * Makefile.in (loop.o): Add GGC_H dependency.
9375 2004-01-20 Hartmut Penner <hpenner@de.ibm.com>
9377 * gcc/config/rs6000/rs6000.c (function_arg) Handle
9378 vector register special in function without prototype.
9379 (function_arg_advance): Vector parameters get always
9380 GPRs allocated for the linux64 target.
9382 2004-01-20 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
9384 * config/m32r/m32r.h (TARGET_M32R2). Test for TARGET_M32R2_MASK
9385 not TARGET_M32RX_MASK.
9387 2004-01-20 Eric Botcazou <ebotcazou@libertysurf.fr>
9390 * config/sparc/sparc.c (function_arg): Reorder the cases.
9392 2004-01-19 Per Bothner <per@bothner.com>
9394 Move cpp_reader's line_maps field to a shared global.
9395 * cpphash.h (cpp_reader): Rename line_maps field to line_table
9396 and change the type to a pointer rather than a struct.
9397 * cppinit.c (cpp_push_main_field): Adjust accordingly.
9398 * cpplib.c (do_include_common, _cpp_do_file_change, cpp_get_callbacks):
9400 * cppfiles.c (validate_pch): Likewise.
9401 * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_builtin_macro_text):
9403 * cpperror.c (print_location): Likewise.
9404 * cpplib.h (cpp_create_reader): New line_maps pointer parameter.
9405 * cppinit.c (cpp_create_reader): Handle new parameter.
9406 (cpp_destroy): Don't free line_maps - that's no longer our job.
9407 * input.h (line_table): New variable.
9408 * toplev.c (line_table): Declare variable.
9409 (general_init): Initialize line_table.
9410 * c-opts.c (c_common_init_options): Pass line_table to
9412 * fix-header.c (read_scan_file): New local variable line_table.
9413 Initialize, and pass it to cpp_create_reader.
9414 * Makefile.in (LIBS, LIBDEPS): Add libcpp.a.
9415 (C_AND_OBJC_OBJS, fix-header): Remove redundant libcpp.a.
9417 2004-01-19 Per Bothner <per@bothner.com>
9419 Implement a cache for linemap_lookup.
9420 * line-map.h (struct_line_maps): Add cache field.
9421 * line-map.c (linemap_init): Zero cache field.
9422 (linemap_add): Set cache field to offset of newly allocated map.
9423 (linemap_lookup): Use and set cache field.
9425 2004-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
9427 PR optimization/13567
9428 * cse.c (cse_basic_block): Call cse_insn with a non-null
9429 libcall_insn for the last SET insn of a no-confilict block.
9431 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
9433 * Makefile.in (target_noncanonical, program_transform_name): Use
9434 immediate define instead of deferred.
9435 (GCC_INSTALL_NAME, GCC_TARGET_INSTALL_NAME, CPP_INSTALL_NAME,
9436 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
9437 GCCBUG_INSTALL_NAME): Define via a immediate $(shell) instead of
9440 2004-01-20 Joseph S. Myers <jsm@polyomino.org.uk>
9442 * c-decl.c (c_init_decl_processing): Set pedantic_lvalues to
9443 true unconditionally.
9444 * c-typeck.c (unary_complex_lvalue, pedantic_lvalue_warning):
9446 (build_unary_op, build_modify_expr): Don't handle extended
9448 (build_component_ref, build_conditional_expr): Call non_lvalue
9449 instead of pedantic_non_lvalue.
9450 (build_c_cast): Don't condition use of non_lvalue on pedantic.
9451 * fold-const.c (fold): Don't check pedantic directly for
9452 COMPOUND_EXPR. Ensure that results for COMPOUND_EXPR are
9453 passed to pedantic_non_lvalue.
9454 * doc/extend.texi: Remove documentation of extended lvalues.
9456 2004-01-19 Roger Sayle <roger@eyesopen.com>
9458 PR optimization/5263
9459 * simplify-rtx.c (associative_constant_p): Delete.
9460 (simplify_associative_operation): Rewrite to linearize terms, and
9461 attempt to simplify new term against both left and right subterms.
9462 (simplify_binary_operation): Call swap_commutative_operands_p on
9463 op0 and op1, not trueop0 and trueop1. Move the initialization of
9464 trueop0 and trueop1 down to where first needed.
9465 (simplify_relational_operation): Likewise.
9466 * rtlanal.c (commutative_operand_precedence): Also order constant
9467 operands using avoid_constant_pool_reference.
9469 2004-01-19 Richard Henderson <rth@redhat.com>
9471 * config/alpha/alpha.c (aligned_memory_operand): Check MEM_ALIGN,
9472 don't check memory mode.
9473 (unaligned_memory_operand): Likewise.
9474 (reload_inqi, reload_inhi, reload_outqi, reload_outhi): Don't
9475 abort for op0 not MEM.
9477 * config/alpha/alpha.c (alpha_expand_mov_nobwx): If the destination
9478 is not a reg, copy to a scratch first.
9479 (aligned_loadqi, aligned_loadhi, unaligned_loadqi, unaligned_loadhi,
9480 unaligned_loadqi_le, unaligned_loadqi_be, unaligned_loadhi_le,
9481 unaligned_loadhi_be): Expect op0 in DImode; don't SUBREG.
9482 (reload_inqi, reload_inhi): Fix mode of op0.
9483 (reload_inqi_help, reload_inhi_help, reload_outqi_help,
9484 reload_outhi_help): Likewise. Use define_insn_and_split.
9486 * config/alpha/alpha.md (call peepholes): Check for REG_NORETURN
9487 as well as $29 dead.
9489 2004-01-19 Eric Botcazou <ebotcazou@libertysurf.fr>
9491 * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): New. Emit
9492 "tls_object" for thread-local objects.
9493 * config/sparc/sparc.c (sparc_elf_asm_named_section): Emit
9494 "#tls" for thread-local sections.
9495 * configure.ac (thread-local checks): Specify --fatal-warnings in
9496 every binutils-specific checks. For sparc*-*-*, test whether the
9497 OS is Solaris and the tools are native and act accordingly.
9498 * configure: Rebuild.
9500 2004-01-19 Jeff Law <law@redhat.com>
9502 * contrib.texi: Update Paolo Carlini's entry. New entries for
9503 Jerry Quinn and Petur Runolfsson.
9505 2004-01-19 Roger Sayle <roger@eyesopen.com>
9507 * config/i386/i386.md (*movhi_1, *movqi_1): When optimizing for
9508 size, don't use the larger zero-extending loads.
9510 2004-01-19 Richard Henderson <rth@redhat.com>
9512 * alpha.h (HARD_REGNO_MODE_OK): Disallow SImode in FP regs.
9513 * alpha.md (UNSPEC_NT_LDA): Remove.
9514 (UNSPEC_CVTLQ, cvtlq): New.
9515 (extendsidi2_1): Rename from extendsidi2_nofix; remove f/f.
9516 (extendsidi2_fix): Remove.
9517 (extendsidi2 splitter): Use cvtlq.
9518 (extendsidi2 fp peepholes): Remove.
9519 (cvtql): Use SFmode instead of SImode.
9520 (fix_trunc?fsi): Update to match.
9521 (floatsisf2_ieee, floatsisf2, floatsidf2_ieee, floatsidf2): New.
9522 (movsi): Rename from movsi_nofix, remove f alternatives.
9523 (movsi_nt_vms): Similarly.
9524 (movsi_fix, movsi_nt_vms_fix): Remove.
9526 * alpha.c (alpha_expand_prologue): Use adddi3, not nt_lda.
9528 2004-01-19 Jan Hubicka <jh@suse.cz>
9530 * cgraph.c (cgraph_remove_node): Fix removal from linked list.
9531 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear next_needed
9533 (cgraph_remove_unreachable_nodes): New function
9534 (cgraph_decide_inlining_of_small_function): Fix pasto.
9535 (cgraph_decide_inlining_incrementally): Fix pasto.
9536 (cgrpah_decide_inlining): Likewise; remove unreachable nodes.
9538 2004-01-19 Steven Bosscher <stevenb@suse.de>
9540 * gengtype.c (header_file): Make it static.
9541 (write_types_process_field, write_enum_defn): Minor whitespace fixes.
9542 * gengtype.h (header_file): No longer extern.
9544 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
9546 * defaults.h (CASE_VECTOR_PC_RELATIVE): Provide the default.
9547 * expr.c (CASE_VECTOR_PC_RELATIVE): Remove.
9548 * stmt.c (CASE_VECTOR_PC_RELATIVE): Likewise.
9550 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
9552 * stmt.c (HAVE_casesi): Define it not already defined.
9553 (HAVE_tablejump): Likewise.
9554 (expand_end_case_type): Resort to the binary tree method if
9555 neither casesi or tablejump is available.
9557 2004-01-18 Daniel Jacobowitz <drow@mvista.com>
9559 * final.c (final_scan_insn): Make non-static again.
9560 * output.h (final_scan_insn): Re-add prototype.
9561 * config/arc/arc.c (arc_output_function_epilogue): Add NULL
9562 to final_scan_insn call.
9563 * config/cris/cris.c (cris_target_asm_function_epilogue): Likewise.
9564 * config/mips/mips.c (mips_output_conditional_branch): Likewise.
9565 * config/pa/pa.c (output_lbranch, output_call): Likewise.
9566 * config/sh/sh.c (print_slot): Likewise.
9567 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Likewise.
9568 (output_sibcall, sparc_flat_function_epilogue): Likewise.
9570 2004-01-18 Jan Hubicka <jh@suse.cz>
9572 * basic-block.h (try_redirect_by_replacing_jump): Declare.
9573 * cfgcleanup.c (try_optimize_cfg): Use it.
9574 * cfgrtl.c (try_redirect_by_replacing_jump): Export.
9575 (rtl_redirect_edge_and_branch, cfg_layout_redirect_edge_and_branch):
9577 (cfg_layout_merge_blocks): Use try_redirect_by_replacing_jump.
9580 2004-01-16 Geoffrey Keating <geoffk@apple.com>
9582 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
9583 even after reload, just don't remove the actual jump tables.
9585 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
9587 * config/rs6000/rs6000.h (STRICT_ARGUMENT_NAMING): Remove.
9589 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
9591 * defaults.h (ASM_OUTPUT_ADDR_VEC_ELT): Fix the computation of
9592 the size of a pointer in bytes.
9594 2004-01-18 Roger Sayle <roger@eyesopen.com>
9596 * builtins.c (expand_builtin_expect_jump): Fix thinko of reusing
9597 live "next" variable, which could lead to an infinite loop.
9599 2004-01-18 Andrew Pinski <pinskia@physics.uc.edu>
9601 * config/rs6000/altivec.h: Wrap C++ functions in extern "C++"
9604 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
9605 Check for NULL in the chain and remove repeated code.
9607 2004-01-18 Jan Hubicka <jh@suse.cz>
9609 * coverage.c (checksum_string): Rename to ...
9610 (coverage_checksum_string): ... this one, Use crc32_string; recognize
9611 names containing random number and zero the number out in order to get
9614 2004-01-18 Richard Sandiford <rsandifo@redhat.com>
9616 * config/mips/mips.c (mips_got_alias_set): Mark for PCH.
9618 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
9620 * doc/c-tree.texi, doc/cpp.texi, doc/extend.texi,
9621 doc/frontends.texi, doc/gcov.texi, doc/gty.texi, doc/install.texi,
9622 doc/invoke.texi, doc/libgcc.texi, doc/md.texi, doc/rtl.texi,
9623 doc/sourcebuild.texi, doc/standards.texi, doc/tm.texi,
9624 doc/trouble.texi: Remove trailing whitespace.
9626 2004-01-18 Richard Sandiford <rsandifo@redhat.com>
9629 * config/mips/mips.c: Include cfglayout.h.
9630 (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
9631 (mips_unspec_offset_high): Add temporary register argument.
9632 (mips_load_call_address): New function, split out from...
9633 (mips_expand_call): ...here.
9634 (mips_output_cplocal): New function.
9635 (mips_output_function_prologue, mips_output_function_epilogue): Use it.
9636 (mips_emit_loadgp): New function, split out from...
9637 (mips_expand_prologue): ...here.
9638 (mips_output_mi_thunk): New function.
9640 2004-01-17 Bernardo Innocenti <bernie@develer.com>
9642 * longlong.h (mc68020, __mc68030__, mc68030, __mc68040__, mc68040,
9643 mcpu32): Remove redundant checks for implied target predefines.
9645 2004-1-17 Andrew Pinski <pinskia@physics.uc.edu>
9647 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
9648 Return type is unsigned int not int.
9649 * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
9652 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
9654 * doc/contrib.texi, doc/cppenv.texi, doc/extend.texi,
9655 doc/install.texi, doc/invoke.texi, doc/tm.texi: Consistently use
9656 "GNU/Linux" and "Microsoft Windows" terminology.
9658 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
9660 * doc/c-tree.texi, doc/compat.texi, doc/cpp.texi,
9661 doc/cppopts.texi, doc/extend.texi, doc/install.texi,
9662 doc/interface.texi, doc/invoke.texi, doc/libgcc.texi, doc/md.texi,
9663 doc/objc.texi, doc/rtl.texi, doc/tm.texi, doc/trouble.texi: Use
9664 @smallexample instead of @example.
9666 2004-01-17 Ziemowit Laski <zlaski@apple.com>
9668 * objc/objc-act.c (build_objc_method_call): Use target
9669 hooks instead of macros to determine if ..._stret
9670 dispatchers should be used (NeXT runtime only).
9672 2004-01-17 Roger Sayle <roger@eyesopen.com>
9674 * builtins.c (expand_builtin_expect_jump): Fix mistake in my
9675 last patch. Use XEXP (x, 0) to get a LABEL_REF's CODE_LABEL.
9677 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
9679 * rtl.h (emit_insn_before_sameloc, emit_jump_insn_before_sameloc)
9680 (emit_call_insn_before_sameloc, emit_insn_after_sameloc)
9681 (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): New
9683 * reload1.c (emit_reload_insns): Use them.
9684 * emit-rtl.c (emit_insn_before_sameloc, emit_insn_after_sameloc)
9685 (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): Check
9688 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
9690 * final.c (SEEN_BB, SEEN_NOTE, SEEN_EMITTED): Define.
9691 (final_scan_insn): Update to take an additional SEEN argument. Emit
9692 a line note after the prologue. Make static.
9693 (line_note_exists): Remove.
9694 (final): Don't initialize line_note_exists. Update call to
9696 * output.h (final_scan_insn): Remove prologue.
9697 * function.c (set_insn_locators): Update comment.
9698 (thread_prologue_and_epilogue_insns): Add a comment.
9700 2004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
9703 * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
9705 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
9707 * config/rs6000/linux64.h (ROUND_TYPE_ALIGN): Use it.
9708 * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Likewise.
9709 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Likewise.
9711 2004-01-17 Jan Hubicka <jh@suse.cz>
9713 * toplev.c (rest_of_handle_reorder_blocks): Fix pasto in previous
9716 * toplev.c (HAVE_conditional_execution): Provide default.
9717 (rest_of_handle_reorder_blocks): For conditional_execution target
9718 update liveness once after all transformations
9719 (rest_of_compilation): Do crossjumping before ce3.
9721 2004-01-17 Geoffrey Keating <geoffk@apple.com>
9723 * alias.c (new_alias_set): Mark last_alias_set for PCH.
9724 (get_varargs_alias_set): Rename 'set' to 'varargs_set' and mark it
9726 (get_frame_alias_set): Likewise, except rename it to 'frame_set'.
9727 * config/rs6000/rs6000.c (rs6000_sr_alias_set): Mark for PCH.
9728 (get_TOC_alias_set): Mark 'set' for PCH.
9730 2004-01-16 Geoffrey Keating <geoffk@apple.com>
9732 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
9733 even after reload, just don't remove the actual jump tables.
9735 2004-01-17 J. Brobecker <brobecker@gnat.com>
9737 * dwarf2out.c (is_subrange_type): Renamed from is_ada_subrange_type().
9738 Remove checks for is_ada() and TREE_UNSIGNED.
9739 (subrange_type_die): Emit a byte_size attribute if the subrange
9740 type size is different from the base type size.
9741 (modified_type_die): Replace call to is_ada_subrange_type() by
9742 call to is_subrange_type().
9744 2004-01-16 Andrew Pinski <pinskia@physics.uc.edu>
9746 * config/sh/sh.c: Include ggc.h.
9748 2004-01-16 Geoffrey Keating <geoffk@apple.com>
9750 * Makefile.in (MD5_H): New.
9751 (fold-const.o): Depend on md5.h.
9752 (dwarf2out.o): Likewise.
9753 (cppfiles.o): Likewise.
9754 * cppfiles.c: Include md5.h.
9755 (should_stack_file): Check against list read from PCH file.
9756 (struct pchf_data): New.
9757 (pchf): New variable.
9758 (struct pchf_adder_info): New.
9760 (pchf_save_compare): New.
9761 (_cpp_save_file_entries): New.
9762 (_cpp_read_file_entries): New.
9763 (struct pchf_compare_data): New.
9764 (pchf_compare): New.
9765 (check_file_against_entries): New.
9766 * cpphash.h (_cpp_save_file_entries): Prototype.
9767 (_cpp_read_file_entries): Prototype.
9768 * cpppch.c (cpp_write_pch_state): Write the list of headers.
9769 (cpp_read_state): Read the list of headers.
9771 2004-01-17 Jan Hubicka <jh@suse.cz>
9773 * c-common.c (c_estimate_num_insns_1): Handle builtin_constant_p and
9774 builtin_expect specially.
9775 * params.def (PARAM_MAX_INLINE_INSNS_AUTO): Set to 100.
9776 (PARAM_LARGE_FUNCTION_INSNS): Set to 3000.
9777 * invoke.texi (max-inline-insns-single): Set to 100.
9778 (large-function-insns): Set to 3000.
9780 2004-01-16 Eric Christopher <echristo@redhat.com>
9781 Chandrakala Chavva <cchavva@redhat.com>
9783 * cppcharset.c (one_iso88591_to_utf8): New function.
9784 (convert_iso88591_utf8): Ditto. Use.
9785 (conversion_tab): Use.
9786 (_cpp_input_to_utf8): New function.
9787 (_cpp_init_iconv_buffer): Ditto.
9788 (_cpp_close_iconv_buffer): Ditto.
9789 * cpphash.h: Prototype new functions.
9790 (cpp_buffer): Add input_cset_desc.
9791 * cppinit.c: Add input_charset default.
9792 * cpplib.c (cpp_push_buffer): Support init and
9794 * cpplib.h (cpp_options): Add input_charset.
9796 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
9798 * system.h (ASM_OUTPUT_SECTION_NAME): Poison.
9799 * config/alpha/unicosmk.h: Remove a commented-out definition
9800 of ASM_OUTPUT_SECTION_NAME.
9801 * config/stormy16/stormy16.h: Likewise.
9803 2004-01-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9805 * fixinc/inclhack.def (alpha___extern_prefix): Renamed to ...
9806 (alpha___extern_prefix_sys_stat): ... this.
9807 Apply to <sys/mount.h>, too.
9808 Tweak to match more variations.
9809 * fixinc/tests/base/sys/stat.h: Adapt for new hackname.
9811 * fixinc/inclhack.def (alpha___extern_prefix,
9812 alpha___extern_prefix_standards): New hacks to obey
9813 __PRAGMA_EXTERN_PREFIX.
9814 * fixinc/tests/base/testing.h [ALPHA___EXTERN_PREFIX_CHECK]: New
9816 * fixinc/tests/base/standards.h: Likewise.
9818 * fixincl/inclhack.def (alpha_pthread): Tweak to match more
9821 * fixinc/tests/base/pthread.h: Handle it.
9823 * fixincl/inclhack.def (bad_lval): Sort file list.
9824 Add many missing files up to Tru64 UNIX V5.1B.
9825 * gcc/fixinc/tests/base/libgen.h: Renamed to ...
9826 * gcc/fixinc/tests/base/dirent.h: ... this to match new file list
9829 * fixinc/fixincl.x: Regenerate.
9831 2004-01-16 Mark Mitchell <mark@codesourcery.com>
9833 * version.c (version_string): Change to 3.5.0.
9834 * doc/include/gcc-common.texi (version-GCC): Likewise.
9836 2004-01-16 Jan Hubicka <jh@suse.cz>
9838 * i386.md (load_tp_di): Fix pasto.
9841 * i386.c (ix86_compute_frame_layout): Fix for alloca on leaf function.
9843 * c-pretty-print.c (pp_c_type_cast, pp_c_abstract_declarator,
9844 pp_c_character_constant, pp_c_floating_constant,
9845 pp_c_additive_expression, pp_c_shift_expression,
9846 pp_c_equality_expression, pp_c_and_expression,
9847 pp_c_exclusive_or_expression, pp_c_inclusive_or_expression,
9848 pp_c_logical_and_expression): Remove inline modifier.
9849 * dwarf2out.c (get_AT): Likewise.
9850 * et-forest.c (et_splay): Likewise.
9851 * ra.h (ra_alloc, ra_calloc): Likewise
9853 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
9855 * config/frv/frv-protos.h: Fix comment formatting.
9856 * config/frv/frv.c: Likewise.
9857 * config/frv/frv.h: Likewise.
9858 * config/frv/frv.md: Likewise.
9859 * config/frv/frvbegin.c: Likewise.
9860 * config/frv/frvend.c: Likewise.
9862 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
9864 * system.h (LINKER_DOES_NOT_WORK_WITH_DWARF2): Poison.
9865 * doc/tm.texi (PREFERRED_DEBUGGING_TYPE): Don't mention
9866 LINKER_DOES_NOT_WORK_WITH_DWARF2.
9867 (LINKER_DOES_NOT_WORK_WITH_DWARF2): Remove.
9869 2004-01-16 J"orn Rennecke <joern.rennecke@superh.com>
9872 * postreload.c (reload_cse_simplify_operands): Don't remove
9873 implicit extension from LOAD_EXTEND_OP.
9875 2004-01-16 Jan Hubicka <jh@suse.cz>
9878 * cfgcleanup.c (try_optimize_cfg): Suppress tablejump removal
9880 * cfgrtl.c (rtl_can_merge_blocks, cfglayout_can_merge_blocks,
9881 rtl_try_redirect_by_replacing_branch): Likewise.
9883 2004-01-15 Geoffrey Keating <geoffk@apple.com>
9886 * alias.c (struct alias_set_entry): Mark for GC.
9887 (alias_sets): Make static, mark for GC.
9888 (record_alias_subset): Use GC to allocate alias structures.
9889 * varray.c (element): Make generic varrays GCed.
9892 * c-typeck.c (constructor_asmspec): Delete.
9893 (struct initializer_stack): Delete field 'asmspec'.
9894 (start_init): Delete saving of asmspec.
9895 (finish_init): Don't update constructor_asmspec.
9896 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
9897 * stmt.c (expand_asm): Duplicate strings from tree.
9898 (expand_asm_operands): Likewise.
9899 * tree.c (tree_size): Update computation of size of STRING_CST.
9900 (make_node): Don't make STRING_CST nodes.
9901 (build_string): Allocate string with tree node.
9902 * tree.def (STRING_CST): Update comment.
9903 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
9904 (tree_string): Place contents of string in tree node.
9905 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
9908 * config/rs6000/rs6000.c (rs6000_va_arg): No need to special-case
9911 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
9913 * c-common.h: Fix comment formatting.
9914 * c-cppbuiltin.c: Likewise.
9915 * c-pragma.c: Likewise.
9916 * calls.c: Likewise.
9917 * collect2.c: Likewise.
9918 * cppcharset.c: Likewise.
9919 * cpptrad.c: Likewise.
9920 * dbxout.c: Likewise.
9921 * defaults.h: Likewise.
9922 * dwarf2out.c: Likewise.
9923 * fold-const.c: Likewise.
9924 * genautomata.c: Likewise.
9925 * genconditions.c: Likewise.
9926 * genflags.c: Likewise.
9927 * gengtype.c: Likewise.
9928 * integrate.c: Likewise.
9930 * predict.c: Likewise.
9931 * sdbout.c: Likewise.
9933 2004-01-15 Zack Weinberg <zack@codesourcery.com>
9935 * config/ia64/ia64.md (*movti_internal): C output template
9936 extracted to ia64.c.
9937 (*movti_internal_reg): Delete.
9938 (reload_inti, reload_outti): Use the correct mode on operand 2
9939 in the first place, don't fix it up in the output template.
9940 (movtf, reload_ointf, reload_outtf): New expanders.
9941 (*movtf_internal): New define_insn_and_split.
9942 * config/ia64/ia64.c (ia64_split_timode): Rename to ia64_split_tmode;
9943 make static; do not hand TFmode CONST_DOUBLEs to split_double.
9944 (ia64_split_tmode_move): New function, body mostly pulled
9945 from ia64.md:*movti_internal.
9946 (ia64_function_arg_words): New function, extracted common
9947 logic from ia64_function_arg et seq.
9948 (ia64_function_arg_offset): Likewise. Handle correctly the
9949 case of a scalar quantity 16 bytes wide with only 8-byte alignment.
9950 (ia64_function_arg, ia64_function_arg_partial_nregs)
9951 (ia64_function_arg_advance): Use ia64_function_arg_words and
9952 ia64_function_arg_offset.
9953 (ia64_function_value): TCmode does not go in float regs.
9954 (ia64_secondary_reload_class): Also handle TFmode.
9955 * config/ia64/ia64-protos.h: Remove prototype for
9956 ia64_split_timode; add prototype for ia64_split_tmode_move.
9958 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
9960 * Makefile.in (MAINT): Make it an immediate assignment.
9962 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
9964 * config/m32r/m32r.md: Remove useless calls to gen_lowpart.
9966 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
9968 * config/h8300/coff.h: Replace Hitachi with Renesas.
9969 * config/h8300/elf.h: Likewise.
9970 * config/h8300/h8300-protos.h: Likewise.
9971 * config/h8300/h8300.c: Likewise.
9972 * config/h8300/h8300.h: Likewise.
9973 * config/h8300/h8300.md: Likewise.
9974 * config/h8300/lib1funcs.asm: Likewise.
9976 2004-01-15 Andrew Pinski <apinski@apple.com>
9978 * config/rs6000/rs6000.c (uses_TOC): Wrap #if TARGET_ELF
9981 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
9983 * config/h8300/h8300.c (h8300_return_in_memory): New.
9984 (TARGET_STRUCT_VALUE_RTX): Likewise.
9985 (TARGET_RETURN_IN_MEMORY): Likewise.
9986 * config/h8300/h8300.h (STRUCT_VALUE): Remove.
9987 (RETURN_IN_MEMORY): Likewise.
9989 2004-01-15 Richard Earnshaw <rearnsha@arm.com>
9991 PR optimization/13375
9992 * gcse.c (handle_avail_expr): Just return if the source is not a
9995 2004-01-15 Richard Earnshaw <rearnsha@arm.com>
9996 Daniel Jacobowitz <drow@mvista.com>
9998 * arm/lib1funcs.asm (ARM_FUNC_START): Correct interworking case.
10000 (ARM_FUNC_ALIAS): New macro.
10001 * arm/ieee754-df.S (gedf2, ledf2, nedf2, eqdf2): Use it.
10002 * arm/ieee754-sf.S (gesf2, lesf2, nesf2, eqsf2): Use it.
10004 2004-01-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10006 PR optimization/12372
10007 * calls.c (expand_call): Add call_fusage data for stack arguments in
10010 2004-01-15 Alan Modra <amodra@bigpond.net.au>
10012 * config/rs6000/rs6000.c (uses_TOC): Correct comment. Make static.
10013 (rs6000_elf_declare_function_name): Formatting.
10014 * config/rs6000/rs6000-protos.h (uses_TOC): Remove declaration.
10016 2004-01-15 Jan Hubicka <jh@suse.cz>
10019 * sched-deps.c (sched_analyze_1, sched_analyze_2): Fix thinko in
10022 2004-01-15 Richard Henderson <rth@redhat.com>
10024 * config/alpha/alpha.h (REG_ALLOC_ORDER): Reorder fp regs after
10025 integer regs of the same call-savedness.
10027 2004-01-15 Andreas Schwab <schwab@suse.de>
10030 * config/m68k/m68k.c (output_move_const_into_data_reg): Clear cc
10031 status for NOTB/NOTW/NEGW methods.
10033 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
10035 * doc/invoke.texi: Update dump file names. Fix a typo.
10037 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
10039 * builtins.c (expand_builtin_va_end): Don't use
10040 EXPAND_BUILTIN_VA_END.
10041 * system.h (EXPAND_BUILTIN_VA_END): Poison.
10042 * config/d30v/d30v.h: Remove a commented-out definition of
10043 EXPAND_BUILTIN_VA_END.
10044 * config/stormy16/stormy16.h: Likewise.
10046 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
10048 * system.h (STRUCT_VALUE_INCOMING_REGNUM): Poison.
10049 * targhooks.c (default_struct_value_rtx): Don't use
10050 STRUCT_VALUE_INCOMING_REGNUM.
10052 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
10055 * configure.in: Revamp enable-generated-files-in-srcdir rule to define
10056 GENINSRC and not parsedir. Define srcextra as a langhook.
10057 * configure: Regenerate.
10058 * Makefile.in: Suppress default .l.c rule. Don't substitute
10059 parsedir and delete all references throughout. Conditionally define
10060 rule for srcextra dependent on GENINSRC.
10061 (stmp-docobjdir): Delete.
10062 (c-parse.o, gengtype-lex.o, gengtype-yacc.o): Use implicit build rule.
10063 (srcextra): Copy c-parse.y, c-parse.c, gengtype-lex.c, gengtype-yacc.c,
10064 and gengtype-yacc.h back to source directory.
10065 (maintainer-clean): Delete all parse files in source directory.
10066 (distclean): Delete generated files.
10068 * objc/Make-lang.in (objc-parse.o): Use implicit build rule.
10069 (objc-parse.c, objc-parse.y): Don't use parsedir.
10070 (objc.srcextra): Copy objc-parse.y and objc-parse.c back to source
10071 directory if requested.
10072 (po-generated): Don't use parsedir.
10073 (objc.maintainer-clean): Delete above files from source directory.
10075 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
10077 * doc/tm.texi (FUNCTION_VALUE): Fix a typo.
10079 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
10081 * doc/tm.texi: Replace RETURN_IN_MEMORY with
10082 TARGET_RETURN_IN_MEMORY.
10084 2004-01-15 Jan Hubicka <jh@suse.cz>
10086 * builtins.c (std_expand_builtin_va_arg): Align operand when needed.
10087 * i386.c (init_cumulative_args): Set warn_sse; fix handling of variadic
10088 functions accepting SSE arguments
10089 (function_arg): Warn only when asked to warn.
10090 * i386.h (ix86_args): Add warn_sse/warn_mmx fiels.
10092 2004-01-14 Joseph S. Myers <jsm@polyomino.org.uk>
10094 * c-parse.in (stmts_and_decls): Make label at end of compound
10095 statement a hard error.
10097 2004-01-14 Jan Hubicka <jh@suse.cz>
10099 * cgraph.c (create_edge): Use local.redefined_extern_inline.
10100 * cgraph.h (cgraph_local_info): Sort fields by size; add
10101 redefined_extern_inline
10102 (cgraph_global_info): Sort fields by size.
10103 (cgraph_node): Likewise.
10104 * cgraphunit.c (cgraph_finalize_function): Se
10105 local.redefined_extern_inline on redefinition.
10106 (cgraph_analyze_function): Use it; fix formating.
10108 2004-01-14 Jan Hubicka <jh@suse.cz>
10111 * sched-deps.c (trye_dependency_cache, anti_dependency_cache,
10112 outptu_dependency_cache, forward_dependency_cahe): Trun to vectors of
10114 (cache_size): New variable
10115 (add_dependence): Update use; canonize early memory locations
10116 (sched_analyze_1): Likewise.
10117 (sched_analyze_2): Likewise.
10118 (init_dependency_caches): Initialize bitmaps.
10119 (free_dependency_caches): Free bitmaps
10121 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
10123 * calls.c: Replace STRICT_ARGUMENT_NAMING in comments with
10124 targetm.calls.strict_argument_naming().
10125 * target.h: Likewise.
10127 2004-01-14 Richard Henderson <rth@redhat.com>
10130 * dwarf2out.c (dwarf2out_stack_adjust): Skip prologue and epilogue
10133 2004-01-14 Richard Henderson <rth@redhat.com>
10136 * except.c (struct eh_region): Add u.fixup.resolved.
10137 (resolve_one_fixup_region): Split out from ...
10138 (resolve_fixup_regions): ... here.
10140 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
10142 * config/mn10300/mn10300.h (STRUCT_VALUE): Change to 0.
10144 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
10146 * config/alpha/alpha.h (STRUCT_VALUE): Remove.
10147 * config/alpha/vms.h (STRUCT_VALUE_REGNUM): Remove #undef.
10148 (STRUCT_VALUE): Remove.
10150 2004-01-14 Steven Bosscher <stevenb@suse.de>
10152 * system.h: Poison PROMOTED_MODE
10153 * integrate.c (expand_inline_function): Don't mention the
10155 * loop.c (update_giv_derive): Same.
10156 * tree.h (DECL_RTL): Same.
10158 2004-01-14 J"orn Rennecke <joern.rennecke@superh.com>
10161 * sh.c (gen_block_redirect): Add special handling of RETURN.
10162 (gen_far_branch) Don't call gen_stuff_delay_slot if there is no
10163 far branch target (i.e. it's a return).
10165 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
10167 * regrename.c (find_oldest_value_reg): Fix a warning.
10169 2004-01-14 Richard Earnshaw <rearnsha@arm.com>
10172 * config.gcc (arm*-*-linux*): Don't include unknown-elf.h in tm_file.
10173 Move linux-gas.h and linux-elf.h before aout.h.
10174 * arm/arm.h (INITIALIZE_TRAMPOLINE): Only define if not already.
10175 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Define.
10177 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
10179 * config/m32r/m32r.md: Use GEN_INT instead of gen_rtx
10180 (CONST_INT, VOIDmode, ...).
10182 2004-01-14 Richard Earnshaw <rearnsha@arm.com>
10184 * regrename.c (find_oldest_value_reg): If the replacement uses
10185 multiple hard registers, check that all of them are in CLASS.
10187 2004-01-14 Jan Hubicka <jh@suse.cz>
10189 * alias.c (get_alias_set): Initialize alias set to 0 when subset is
10192 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
10194 * Makefile.in: Define MAINT from --enable-maintainer-mode.
10196 2004-01-14 Hartmut Penner <hpenner@de.ibm.com>
10198 * gcc/config/rs6000/rs6000.c (rs6000_stack_info)
10199 Calculate always vrsave_mask if TARGET_ALTIVEC.
10200 (rs6000_emit_prologue): Emit code for vrsave
10201 only if TARGET_ALTIVEC_VRSAVE.
10202 (rs6000_emit_epilogue): Likewise.
10204 2004-01-14 Eric Botcazou <ebotcazou@libertysurf.fr>
10206 * config/sparc/sparc.md (tie_add32): Fix pasto.
10207 (tie_add64): Likewise.
10209 2004-01-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10211 * config/i386/i386.md (*addqi_1_slp): Do not access operands[2].
10213 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
10215 * config/iq2000/iq2000-protos.h: Fix comment formatting.
10216 * config/iq2000/iq2000.c: Likewise.
10217 * config/iq2000/iq2000.md: Likewise.
10219 2004-01-14 J. Brobecker <brobecker@gnat.com>
10221 * dwarf2out.c (is_ada_subrange_type): No longer check the TYPE_NAME.
10222 (subrange_type_die): Add handle for nameless subrange types.
10224 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
10226 * config/h8300/h8300-protos.h: Replace do_movsi with
10227 h8300_expand_movsi.
10228 * config/h8300/h8300.c (do_movsi): Change to
10229 h8300_expand_movsi.
10230 * config/h8300/h8300.md (movsi): Replace do_movsi with
10231 h8300_expand_movsi.
10234 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
10236 * config/h8300/h8300.c (dosize): Change to
10237 h8300_emit_stack_adjustment. Update callers.
10239 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
10241 * config/h8300/h8300.md (movstrictqi): Add an alternative with
10242 the source being post_inc. Tighten the predicate for the
10243 destination to register_operand.
10244 (movstricthi): Likewise.
10246 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
10248 * system.h (SHARED_BSS_SECTION_ASM_OP): Poison.
10249 * varasm.c (bss_section): Don't use SHARED_BSS_SECTION_ASM_OP.
10250 * doc/tm.texi (SHARED_BSS_SECTION_ASM_OP): Remove.
10252 2004-01-14 Jan Hubicka <jh@suse.cz>
10254 Partial fix PR c++/12850
10255 * cgraphunit.c (cgraph_finalize_function): Always ggc_collect when
10256 at zero nest level.
10258 2004-01-13 Bernardo Innocenti <bernie@develer.com>
10260 * config/m68k/netbsd-elf.h (REGISTER_NAMES): Add missing "argptr"
10263 2004-01-13 Devang Patel <dpatel@apple.com
10266 * dbxout.c (dbxout_symbol_name): Emit mangled names for
10267 NAMESPACE_DECL memebers.
10269 2004-01-13 Andrew Pinski <pinskia@physics.uc.edu>
10272 * c-common.c (finish_fname_decls): Use the chain only if the
10273 tree is an expr_stmt.
10275 2004-01-13 Vladimir Makarov <vmakarov@redhat.com>
10277 * rtl.def: Add comment about new option in automata_option.
10279 * genautomata.c (PROGRESS_OPTION): New macro.
10280 (progress_flag): New global variable.
10281 (gen_automata_option): Process `progress'.
10282 (transform_insn_regexps, check_unit_distributions_to_automata,
10283 make_automaton, NDFA_to_DFA, build_automaton, create_automata,
10284 expand_automata, write_automata): Print about the progress only if
10285 progress_flag. Remove fflush.
10286 (initiate_automaton_gen): Process command line flag `-progress'.
10288 * doc/md.texi: Describe the new option.
10290 2004-01-13 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10292 * cfg.c (dump_bb): Dump entry edges.
10294 2004-01-13 Richard Earnshaw <rearnsha@arm.com>
10296 * arm.c (thumb_legitimate_address_p): Only allow constant pool
10297 references from SImode.
10298 * arm.md (thumb_movhi_insn): Don't allow minipool references.
10300 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
10302 * system.h (TEXT_SECTION): Poison.
10303 * varasm.c (text_section): Don't use TEXT_SECTION.
10304 * config/sh/sh.c (sh_file_start): Fix a comment typo.
10305 * doc/tm.texi (TEXT_SECTION): Remove.
10307 2004-01-13 Ben Elliston <bje@wasabisystems.com>
10309 * doc/rtl.texi (Vector Operations): Remove defunct vec_const item.
10311 2004-01-12 James E Wilson <wilson@specifixinc.com>
10313 * unwind-libunwind.c: Delete.
10315 2004-01-12 Zack Weinberg <zack@codesourcery.com>
10318 * c-decl.c (diagnose_mismatched_decls): Whenever newtype or
10319 oldtype is set, set *newtypep or *oldtypep too. Do not set
10320 them at the very end.
10321 (validate_proto_after_old_defn): Restructure for comprehensibility;
10322 make error messages clearer.
10324 2004-01-12 Zack Weinberg <zack@codesourcery.com>
10326 * varray.h (VARRAY_POP): Add checking variant, aborts on underflow.
10327 (VARRAY_TOP): Use VARRAY_CHECK so the access is bounds-checked.
10328 * varray.c: No need to prototype error.
10329 (varray_check_failed): Wrap long string onto two lines.
10330 (varray_underflow): New function.
10332 2004-01-13 Steven Bosscher <stevenb@suse.de>
10335 * function.h (struct function): Kill `name' field.
10336 (current_function_name): Make it an extern function.
10337 * function.c (current_function_name): New function.
10338 * graph.c: Update all uses of current_function_name.
10339 * gcse.c: Likewise.
10340 * config/alpha/alpha.c, config/avr/avr.c, config/c4x/c4x.c,
10341 config/mips/mips.c, config/pdp11/pdp11.c: Likewise.
10342 * config/ip2k/ip2k.c (function_prologue): Use MAIN_NAME_P
10343 instead of a strcmp with "main".
10345 2004-01-13 Jan Hubicka <jh@suse.cz>
10347 * c-decl.c (diagnose_mismatched_decls): Fix warning calls.
10349 * cgraphunit.c (cgraph_optimize_function): Always do
10350 optimize_inline_calls when there is always_inline callee.
10351 (cgraph_decide_inlining): Fix formating.
10352 * tree-inline.c (inlinable_function_p): Do sorry for alwaysinline
10354 (expand_call_inline): Likewise.
10355 * toplev.h (sorry): Fix prototype.
10357 2004-01-12 Roger Sayle <roger@eyesopen.com>
10359 * builtins.c (expand_builtin_expect_jump): Simplify logic. Handle
10360 conditional jumps that drop through to unconditional jumps or the
10361 end of the sequence.
10363 2004-01-13 Jan Hubicka <jh@suse.cz>
10365 * alias.c (new_alias_set): Construct the alias_set varray.
10366 (init_alias_once): Don't do it here.
10368 2004-01-12 Marc Espie <espie@openbsd.org>
10370 * system.h: handle YYBYACC like YYBISON.
10372 2004-01-12 Jonathan Merriman <jonm@dualitymedia.com>
10375 * config.gcc: No longer includes conflicting header sparc/sol2.h when
10376 building on sparc64-*-openbsd*.
10378 2004-01-12 Andrew Pinski <pinskia@physics.uc.edu>
10381 * dbxout.c (dbxout_type): Protected inheritance is not
10382 private but protected.
10384 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
10386 * config/mips/mips.c (mips_symbolic_constant_p): Revert last patch.
10388 2004-01-12 Kazu Hirata <kazu@cs.umass.edu>
10390 PR optimization/12508.
10391 * combine.c (try_combine): Remove a dead set in a parallel
10392 even if its destination is a subreg.
10395 2003-06-03 Kazu Hirata <kazu@cs.umass.edu>
10396 * combine.c (simplify_set): Don't move a subreg in SET_SRC to
10397 SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
10399 2004-01-12 Geoffrey Keating <geoffk@apple.com>
10401 * real.c: Update copyright date.
10402 * emit-rtl.c: Likewise.
10404 * dwarf2out.c: Likewise.
10405 * config/rs6000/darwin-ldouble.c: Likewise.
10406 * config/rs6000/rs6000.md: Likewise.
10408 2004-01-12 David Edelsohn <edelsohn@gnu.org>
10410 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Add AIX
10411 TFmode to SImode libfuncs.
10413 2004-01-12 Roger Sayle <roger@eyesopen.com>
10415 PR middle-end/11397
10416 * varasm.c (assemble_alias): Remove weak aliases from weak_decls.
10418 2004-01-12 Jan Hubicka <jh@suse.cz>
10421 * loop.c (insert_loop_mem): Preffer VOLATILE memory references to be
10425 * cfgcleanup.c (label_is_jump_target_p): Move to...
10426 * rtlanal.c (label_is_jump_target_p): ... here.
10427 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Fix redirecting of fallthru
10428 edges unified with branch edges.
10430 2004-01-12 Richard Earnshaw <rearnsha@arm.com>
10432 * simplify-rtx.c (simplify_immed_subreg): Correctly extract the
10433 high word of an integral CONST_DOUBLE.
10435 2004-01-12 Paul Brook <paul@codesourcery.com>
10437 * simplify-rtx.c (simplify_plus_minus): Always generate canonical form.
10439 2004-01-12 J"orn Rennecke <joern.rennecke@superh.com>
10442 * sh-protos.h (check_use_sfunc_addr): Declare.
10443 * sh.c (extract_sfunc_addr, check_use_sfunc_addr): New functions.
10444 * sh.md (use_sfunc_addr): Use check_use_sfunc_addr in insn predicate.
10446 2004-01-12 Jan Hubicka <jh@suse.cz>
10448 * alias.c: Invlude varray.h
10449 (alias_sets): Turn into varray.
10450 (get_alias_set_entry): Use VARRAY; mark inline.
10451 (mems_in_disjoint_alias_sets_p): Mark inline.
10452 (record_alias_subset): Use varray.
10453 (init_alias_once): Initialize varray.
10454 (new_alias_set): Grow array.
10455 * varray.c: Make VARRAY_GENERIC_PTR non GTYized.
10457 2004-01-12 Jan Hubicka <jh@suse.cz>
10459 Partial fix for PR opt/10776 II
10460 * cselib.c: Include params.h
10461 (cselib_invalidate_mem): Limit amount of nonconflicting memory
10463 * params.def (PARAM_MAX_CSELIB_MEMORY_LOCATIONS): New.
10464 * Makefile.in (cselib.o): Depend on params.h
10466 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
10468 * combine.c (combine_simplify_rtx): Don't pass VOIDmode to
10469 simplify_unary_operation if the operand has a known mode.
10471 2004-01-12 Hartmut Penner <hpenner@de.ibm.com>
10474 * gcc/config/rs6000/rs6000.c (word_offset_memref_operand): New
10475 predicate to handle 'ld' conform addresses.
10476 * gcc/config/rs6000/rs6000.h (EXTRA_CONSTRAINT): New 'Y'
10478 (EXTRA_MEMORY_CONSTRAINT): Tell reload which constraint
10479 are memory contraints.
10480 * gcc/config/rs6000/rs6000-protos.h (word_offset_memref_operand):
10482 * gcc/config/rs6000/rs6000.md (*movdf_hardfloat64):
10483 Change 'o' to 'Y' constraint.
10484 (*movdf_softfloat64): Ditto.
10486 2004-01-12 Bernardo Innocenti <bernie@develer.com>
10488 * gcc/config/m68k/m68k.md: Switch from the "*..." syntax to the
10489 brace-enclosed syntax in all C output statements.
10491 2004-01-12 David Edelsohn <edelsohn@gnu.org>
10494 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
10495 Objective-C language type value is 14.
10497 2004-01-12 Markus F.X.J. Oberhumer <markus@oberhumer.com>
10500 * config/m68k/fpgnulib.c: Fix `-mshort' bugs: Use `long' instead of
10501 `int' in a number of places to make sure we always have a SImode
10502 and not a HImode. Add a 'L' suffix to a number of constants.
10504 2004-01-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10506 * pa.c: Don't include obstack.h.
10508 * pa.md: Correct constraint in pattern for loading PIC label address.
10510 2004-01-11 Kaz Kojima <kkojima@gcc.gnu.org>
10512 * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine
10515 2004-01-11 Steven Bosscher <stevenb@suse.de>
10518 * toplev.c (rest_of_handle_inline): Also consider functions
10519 for deferral if the language is GNU F77.
10521 2004-01-11 Zack Weinberg <zack@codesourcery.com>
10523 * c-decl.c (diagnose_arglist_conflict): Add missing space to
10524 diagnostic messages.
10526 2004-01-11 Jakub Jelinek <jakub@redhat.com>
10528 PR middle-end/13392
10529 * builtins.c (expand_builtin_expect_jump): Handle conditional jumps
10530 to drop through label. Don't fall back to SCC even when conditional
10531 jump has not been found.
10533 2004-01-11 Jan Hubicka <jh@suse.cz>
10535 * invoke.texi: Fix syntax error in previous patch.
10537 Partial fix for PR opt/10776
10538 * Makefile.in (reload.o): Include param.h
10539 * params.def (PARAM_MAX_RELOAD_SEARCH_INSNS): New parameter.
10540 * reload.c: Include params.h.
10541 (find_equiv_reg): Work limiting check.
10542 * invoke.texi: Document.
10544 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
10546 * config/mips/mips.c (mips_symbolic_constant_p): Don't allow
10547 out-of-bounds accesses to string constants. Simplify mips16
10550 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
10552 PR optimization/13469
10553 * toplev.c (rest_of_compilation): Call purge_all_dead_edges after
10554 reload_cse_regs (-fnon-call-exceptions only).
10556 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
10558 * config/mcore/lib1.asm: Fix comment formatting.
10559 * config/mcore/mcore-elf.h: Likewise.
10560 * config/mcore/mcore.c: Likewise.
10561 * config/mcore/mcore.h: Likewise.
10562 * config/mcore/mcore.md: Likewise.
10564 2004-01-10 Zack Weinberg <zack@codesourcery.com>
10566 * c-decl.c (duplicate_decls): Break apart into...
10567 (diagnose_arglist_conflict, validate_proto_after_old_defn)
10568 (locate_old_defn, diagnose_mismatched_decls, merge_decls):
10569 ... these new functions. Restructure for comprehensibility.
10570 Remove various archaic special cases. Always report the
10571 location of the previous declaration when a diagnostic is issued.
10572 (redeclaration_error_message): Fold into diagnose_mismatched_decls.
10573 (match_builtin_function_types): Delete unnecessary forward declaration.
10575 2004-01-10 Zack Weinberg <zack@codesourcery.com>
10577 * genautomata.c (make_automaton, NDFA_to_DFA):
10578 Print progress bars with '.' characters instead of '*'.
10579 (build_automaton): Change notes to match.
10581 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
10583 * config/m32r/m32r.md: Use define_constants for unspec and
10586 2004-01-10 Jan Hubicka <jh@suse.cz>
10589 * expr.c (expand_expr_real): More curefully expand union casts.
10591 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
10593 * config/m32r/m32r.md (flush_icache): Use 1 for
10596 2004-01-10 David Edelsohn <edelsohn@gnu.org>
10597 James E Wilson <wilson@specifixinc.com>
10600 * dbxout.c (dbxout_symbol): Remove initialization of
10601 current_sym_code, current_sym_value, and current_sym_addr.
10602 (dbxout_symbol_location): Same.
10603 (dbxout_prepare_symbol): Zero current_sym_code,
10604 current_sym_value, and current_sym_addr.
10606 2004-01-10 Richard Sandiford <rsandifo@redhat.com>
10608 * tree.c (get_unwidened): Reorder conditions so that the null pointer
10609 check is done first.
10611 2004-01-09 Eric Christopher <echristo@redhat.com>
10613 * toplev.c (rest_of_handle_cfg): Add reg_scan pass
10614 if we're running mark_constant_function.
10616 2004-01-09 Jeff Bailey <jbailey@nisa.net>
10619 * config/t-gnu: Rename SYSTEM_HEADER_DIR to NATIVE_SYSTEM_HEADER_DIR.
10621 2004-01-09 Andrew Pinski <pinskia@physics.uc.edu>
10624 * dbxout.c (dbxout_type_fields): Return if any item is
10625 error_mark_node or the type is error_mark_node.
10627 2004-01-09 Geoffrey Keating <geoffk@apple.com>
10629 * config/rs6000/darwin-ldouble.c: Add big comment explaining
10630 exactly what is expected as a 'long double'.
10631 (_xlqadd): When a value to be returned is representable as a
10632 'double', just return it directly, do not construct it using a union.
10633 Also, correct final fixup.
10634 (_xlqmul): Likewise.
10635 (_xlqdiv): Likewise.
10636 * real.c (encode_ibm_extended): Make consistent with darwin-ldouble.c.
10638 * config/rs6000/rs6000.md (fix_trunctfdi2): Delete.
10640 2004-01-09 Richard Henderson <rth@redhat.com>
10642 * recog.c (constrain_operands): Validate mem operands.
10644 2004-01-09 James E Wilson <wilson@specifixinc.com>
10646 * gcc.c (init_spec): Remove -lunwind from shared case.
10647 * conifg/ia64/t-hpux (SHLIB_LINK): Add -lunwind.
10649 2004-01-09 Steve Ellcey <sje@cup.hp.com>
10651 * configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*.
10652 * configure: Regenerate
10654 2004-01-09 Joseph S. Myers <jsm@polyomino.org.uk>
10657 * c-typeck.c (build_c_cast): If pedantic, warn for conversions
10658 between function and object pointers.
10659 (digest_init): When comparing a pointer to function type to the
10660 target type, only apply TREE_TYPE once to the pointer to function
10662 * except.c (for_each_eh_label_1): Treat data as a pointer to a
10663 function pointer rather than casting it to a function pointer.
10664 (for_each_eh_label): Update caller.
10665 * recog.h (struct insn_data): Use a struct or union for output.
10666 * genoutput.c (output_insn_data): Update.
10667 * final.c (get_insn_template): Update.
10669 2004-01-09 Mark Mitchell <mark@codesourcery.com>
10671 * expr.h (expand_expr): Make it a macro, not a function.
10672 (expand_expr_real): New function.
10673 * expr.c (store_expr): Adjust logic for deciding whether or not to
10674 copy the value returned by expand_expr.
10675 (expand_expr): Rename to ...
10676 (expand_expr_real): ... this. Add alt_rtl parameter. Adjust
10677 calls to language hooks.
10678 * c-common.h (c_expand_expr): Adjust prototype.
10679 * c-common.c (c_expand_expr): Add alt_rtl parameter.
10680 * langhooks-def.h (lhd_expand_expr): Change prototype.
10681 * langhooks.c (lhd_expand_expr): Add all_rtl parameter.
10682 * langhooks.h (lang_hooks): Change type of expand_expr.
10683 * stmt.c (stmt_status): Add x_last_expr_alt_rtl.
10684 (last_expr_alt_rtl): Likewise.
10685 (expand_expr_stmt_value): Set last_expr_alt_rtl.
10686 (clear_last_expr): Clear it.
10687 (expand_end_stmt_expr): Set RTL_EXPR_ATL_RTL.
10688 (expand_end_bindings): Save and restor last_expr_alt_rtl.
10689 * tree.def (RTL_EXPR): Give it an additional operand.
10690 * tree.h (RTL_EXPR_ALT_RTL): New macro.
10692 2004-01-09 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
10694 * config/m32r/m32r.h (TARGET_CPU_CPP_BUILTINS): Add __m32r__.
10695 * config/m32r/m32r.c (call26_operand): Allow in PIC mode.
10697 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
10700 * config/m32r/m32r.md: Replace (reg:SI 17) with (reg:CC 17)
10701 or (ne:SI (reg:CC 17) (const_int 0)).
10702 Be specific about modes wherever possible.
10704 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
10706 * config/m32r/m32r.c (m32r_expand_block_move): Call
10707 gen_movestrsi_internal with two more arguments.
10708 (m32r_output_block_move): Adjust operand numbers.
10709 Properly update the source and destination pointers.
10710 * config/m32r/m32r.md (movstrsi_internal): Use 'r' instead of
10711 'r+'. Change the set detinations to match_operand.
10713 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
10715 * final.c (FIRST_INSN_ADDRESS): Remove.
10716 (shorten_branches): Don't use FIRST_INSN_ADDRESS.
10717 * system.h (FIRST_INSN_ADDRESS): Poison.
10718 * config/avr/avr.h: Remove a comment about FIRST_INSN_ADDRESS.
10719 * config/m32r/m32r-protos.h: Remove the prototype for
10720 m32r_first_insn_address.
10721 * config/m32r/m32r.c (m32r_first_insn_address): Remove.
10722 * config/m32r/m32r.h (FIRST_INSN_ADDRESS): Likewise.
10723 * doc/md.texi (FIRST_INSN_ADDRESS): Likewise.
10725 2004-01-09 J. Brobecker <brobecker@gnat.com>
10727 * dwarf2out.c (gen_enumeration_type_die): Return the DIE that
10729 (is_ada_subrange_type): DIEs for enumeration subtypes should be
10730 emitted as subrange types too.
10731 (subrange_type_die): Add handling of enumeration subtypes.
10733 2004-01-08 Richard Henderson <rth@redhat.com>
10736 Revert: Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
10737 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
10738 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
10739 (ix86_address_cost): Be prepared for SUBREGed registers.
10740 (legitimate_address_p): Accept SUBREGed registers.
10742 2004-01-08 Kelley Cook <kcook@gcc.gnu.org>
10744 * Makefile.in: Rename configure.in to configure.ac
10745 * doc/sourcebuild.texi: Likewise.
10746 * configure: Regenerate.
10747 * config.in: Regenerate.
10749 2004-01-08 Stuart Hastings <stuart@apple.com>
10751 * config/i386/i386.md: Typos in MMX/SSE immediate shifts.
10753 2004-01-08 Jan Hubicka <jh@suse.cz>
10755 * cgraphunit.c (cgraph_decide_inlining): Fix typo.
10757 2004-01-08 Geoffrey Keating <geoffk@apple.com>
10759 * config/rs6000/rs6000.md (cmptf_internal1): Correct branch offset.
10760 (UNSPEC_FIX_TRUNC_TF): New constant.
10761 (movtf_internal): Make splitter active only when insn is active.
10762 (extenddftf2): Rewrite to properly load zero into low part.
10763 (extenddftf2_internal): New.
10764 (extendsftf2): Rewrite.
10765 (truncdftf2): Correct length.
10766 (floatditf2): Delete.
10767 (fix_trunc_helper): New.
10768 (fix_trunctfdi2): Use fix_trunc_helper.
10769 (fix_trunctfsi2): Likewise.fix_trunc
10770 (fix_trunctfsi2_internal): New.
10772 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): lo_sum
10773 addresses are legitimate on Darwin even when flag_pic.
10774 (rs6000_legitimize_reload_address) [TARGET_MACHO]: Don't create
10775 non-offsettable addresses for loads of TFmode constants.
10777 2004-01-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
10779 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Actually emit
10780 variables in the appropriate bss section.
10782 2004-01-09 Alan Modra <amodra@bigpond.net.au>
10784 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure
10785 target_flags has MASK_POWERPC64 when -m64.
10786 * config/rs6000/rs6000.c (processor_target_table): Add MASK_POWERPC64
10787 to 620, 630, power3, power4 and rs64a entries.
10788 * config/rs6000/rs6000.h (MASK_64BIT): Expand comment.
10790 2004-01-08 Richard Sandiford <rsandifo@redhat.com>
10792 * simplify-rtx.c (simplify_immed_subreg): Fix construction of
10793 floating-point constants.
10795 2004-01-08 J. Brobecker <brobecker@gnat.com>
10797 * dwarf2out.c (subrange_type_die): Add context_die parameter.
10798 Create the subrange_type DIE using the given context DIE.
10799 (modified_type_die): Update call to subrange_type_die.
10801 2004-01-08 Zack Weinberg <zack@codesourcery.com>
10803 * dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
10804 Add multiple-include guard.
10806 2004-01-08 Hartmut Penner <hpenner@de.ibm.com>
10808 * gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept
10809 all vector constant loadable by vsplt*.
10810 (output_vec_const_move): Likewise.
10812 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
10815 * c-typeck.c (comptypes): Only treat enumerated types in the same
10816 translation unit as compatible with each other when they are the
10818 * doc/extend.texi: Update.
10820 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
10823 * c-decl.c (grokdeclarator): Take type qualifiers of typedefed
10824 array type from the array element type.
10826 2004-01-07 Alan Modra <amodra@bigpond.net.au>
10828 * config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
10829 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
10830 * config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
10831 (DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
10832 * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.
10834 2004-01-06 Eric Christopher <echristo@redhat.com>
10836 * config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
10837 (DWARF2_DEBUGGING_INFO): Define.
10838 (PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
10839 * config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
10840 * config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
10842 (SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
10843 * config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
10844 * config/mips/iris5gas.h: Ditto.
10845 (DBX_DEBUGGING_INFO): Remove.
10846 (DWARF2_DEBUGGING_INFO): Ditto.
10847 (MIPS_DEBUGGING_INFO): Ditto.
10848 (PREFERRED_DEBUGGING_TYPE): Ditto.
10849 * config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
10850 (PREFERRED_DEBUGGING_TYPE): Ditto.
10851 (SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
10852 * config/mips/elf64.h: Ditto.
10854 2004-01-06 Jan Hubicka <jh@suse.cz>
10856 * Makefile.in (STAGEPROFILE_FLAGS_TO_PASS): Use -fprofile-generate.
10857 (STAGEFEEDBACK_FLAGS_TO_PASS): Use -fprofile-use.
10859 2004-01-06 Geoffrey Keating <geoffk@apple.com>
10861 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
10862 (TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
10863 * config/rs6000/darwin-ldouble.c: New.
10865 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
10867 (constant_subword): Delete.
10868 * rtl.h (constant_subword): Delete prototype.
10869 (immed_double_const): Is not in varasm.c.
10870 * simplify-rtx.c (simplify_immed_subreg): New.
10871 (simplify_subreg): Use simplify_immed_subreg.
10873 * config/rs6000/rs6000.md (floatsitf2): Use expand_float rather
10874 than trying to generate RTL directly.
10875 (fix_trunctfsi2): Use expand_fix rather than trying to generate
10878 * dwarf2out.c (add_const_value_attribute): Remove incorrect comment.
10880 2004-01-06 David Edelsohn <edelsohn@gnu.org>
10882 * config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
10883 function into a separate macro.
10884 (read_only_data_section): Add void argument.
10885 (private_data_section): Same.
10886 (read_only_private_data_section): Same.
10887 (toc_section): Same.
10889 2004-01-06 Jan Hubicka <jh@suse.cz>
10891 * invoke.texi: Remove typo in last change.
10894 * config.gcc: Accept opteron and athlon-64 as variants
10896 * i386.c (override_options): Likewise.
10897 * invoke.texi (i386 -mtune): Expand documentation.
10899 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
10901 * alias.c: Fix comment typos.
10902 * builtins.c: Likewise.
10905 * dominance.c: Likewise.
10906 * dwarf2out.c: Likewise.
10907 * emit-rtl.c: Likewise.
10908 * expr.c: Likewise.
10909 * final.c: Likewise.
10910 * fold-const.c: Likewise.
10911 * gcse.c: Likewise.
10912 * genattrtab.c: Likewise.
10913 * genrecog.c: Likewise.
10914 * gensupport.c: Likewise.
10915 * ggc-zone.c: Likewise.
10916 * integrate.c: Likewise.
10917 * local-alloc.c: Likewise.
10918 * loop.c: Likewise.
10919 * recog.c: Likewise.
10920 * regmove.c: Likewise.
10921 * reg-stack.c: Likewise.
10922 * reorg.c: Likewise.
10923 * rtlanal.c: Likewise.
10925 * sched-ebb.c: Likewise.
10926 * simplify-rtx.c: Likewise.
10927 * toplev.c: Likewise.
10928 * varasm.c: Likewise.
10930 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
10932 * doc/install.texi: Fix typos.
10933 * doc/invoke.texi: Likewise.
10934 * doc/md.texi: Likewise.
10936 2004-01-06 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
10938 * config/m32r/m32r.h (TRAMPOLINE_LINE_SIZE): Changed
10940 2004-01-06 Jan Hubicka <jh@suse.cz>
10942 * i386.c (init_cumulative_args): Add handling of MMX_REGPARM.
10943 (function_arg_advance): Do not pass aggregates in SSE; deal handling
10945 (function_arg): Add new warnings about ABI changes; fix SSE_REGPARM;
10947 * i386.h (ix86_args): Add mmx_words/mmx_regs/mmx_regno fields.
10948 (SSE_REGPARM_MAX): Default to 3 on i386 -msse ABI.
10949 (MMX_REGPARM_MAX): Similarly for -mmmx.
10951 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
10953 * config/sh/linux.h: Fix comment formatting.
10954 * config/sh/netbsd-elf.h: Likewise.
10955 * config/sh/sh.c: Likewise.
10956 * config/sh/sh.h: Likewise.
10957 * config/sh/vxworks.h: Likewise.
10959 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
10961 * system.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.
10962 * toplev.c (output_file_directive): Don't use
10963 ASM_OUTPUT_MAIN_SOURCE_FILENAME.
10965 2004-01-05 Steven Bosscher <s.bosscher@student.tudelft.nl>
10967 * toplev.c: Fix broken checkin of 2003-12-30.
10969 2004-01-05 Daniel Berlin <dberlin@dberlin.org>
10971 * ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS
10972 (USING_MMAP): We don't support non-mmap.
10973 (struct alloc_chunk): Steal 1 bit from typecode, use it to mark
10975 (struct page_entry): Remove bytes_free.
10976 (struct page_table_chain): Remove.
10977 (struct globals): Remove page_table member.
10978 (loookup_page_table_entry): Function deleted.
10979 (set_page_table_entry): Ditto.
10980 (ggc_allocated_p): No longer need page table lookups.
10981 (ggc_marked_p): Ditto.
10982 (alloc_small_page): Don't care about bytes_free anymore.
10983 (alloc_large_page): Round up size.
10984 (ggc_alloc_zone_1): Mark large objects as such, and calculate
10985 their size the new way.
10986 Remove page table lookups and setting.
10987 (ggc_get_size): Calculate large object size the new way.
10988 (sweep_pages): Redo to account for fact that we no longer have
10990 (ggc_collect): No longer need to reincrement bytes_free.
10991 (ggc_pch_alloc_object): Handle new large objects properly.
10992 (ggc_pch_read): Put PCH stuff into it's own uncollected zone.
10994 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
10996 * doc/invoke.texi: Remove a page break.
10998 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
11000 * config/avr/avr.c (avr_output_function_prologue): Remove an
11001 extra pair of curly braces.
11003 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
11005 * config/mn10300/mn10300.c: Fix comment formatting.
11006 * config/mn10300/mn10300.h: Likewise.
11008 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11010 * tree.h: Update documentation on nothrow_flag.
11011 * print-tree.c (print_node): Print TREE_NOTHROW as "align-ok" for
11014 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
11016 * doc/invoke.texi: Remove traces of dead ports.
11018 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
11020 * doc/invoke.texi: Add documentation for the MIPS -mexplicit-relocs
11023 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
11026 * coverage.c (coverage_counter_alloc): Set SYMBOL_FLAG_LOCAL for
11028 * config/mips/mips.c (INTERNAL_SYMBOL_P): Delete.
11029 (mips_classify_symbol): Always treat SYMBOL_REF_FLAG as indicating
11030 string constants if TARGET_MIPS16. Use SYMBOL_REF_DECL to check
11031 the binding of decl symbols, otherwise check SYMBOL_REF_LOCAL_P.
11032 (mips_symbol_insns): Don't trust the local/global classification.
11033 (m16_usym8_4, m16_usym5_4): Same mips16 change as mips_classify_symbol.
11034 (override_options): Make -mabicalls -fno-unit-at-a-time imply
11035 -mno-explicit-relocs.
11036 (mips_encode_section_info): Don't use SYMBOL_REF_FLAG to distinguish
11037 between local and global symbols.
11039 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
11041 * config/mips/mips-protos.h (mips_dangerous_for_la25_p): Declare.
11042 (mips_preferred_reload_class): Declare.
11043 * config/mips/mips.h (DANGEROUS_FOR_LA25_P): Replace with function.
11044 (EXTRA_CONSTRAINT): Update accordingly.
11045 (PREFERRED_RELOAD_CLASS): Use mips_preferred_reload_class.
11046 * config/mips/mips.c (mips_dangerous_for_la25_p): New function.
11047 (mips_preferred_reload_class): New function. Prefer LEA_REGS if
11048 mips_dangerous_for_la25_p.
11049 (mips_secondary_reload_class): Use LEA_REGS rather than GR_REGS
11050 if mips_dangerous_for_la25_p.
11052 2004-01-05 Bernardo Innocenti <bernie@develer.com>
11054 * config/m68k/m68k.c (output_andsi3): Fix signed/unsigned comparison
11057 2004-01-04 Nathanael Nerode <neroden@gcc.gnu.org>
11059 * configure.ac: Use AC_PROG_CPP_WERROR.
11060 * configure: Regenerate.
11062 2004-01-04 Zack Weinberg <zack@codesourcery.com>
11064 * .cvsignore: Add autom4te.cache.
11066 2004-01-04 Richard Sandiford <rsandifo@redhat.com>
11068 * doc/invoke.texi: Revamp documentation of MIPS options. Remove
11069 -mabi=meabi, -mabi-fake-default, -mmips-as, -mgas, -mmips-tfile,
11070 -m4650, -mfix7000 and -(m)no-crt0. Put endianness options first,
11071 then architecture options, then ABI options. General rewording.
11073 2004-01-04 Joseph S. Myers <jsm@polyomino.org.uk>
11076 * doc/extend.texi: Clarify definition of malloc attribute.
11078 2004-01-04 Jan Hubicka <jh@suse.cz>
11080 * Makefile.in (cgraph.o, cgraphunit.o): Add intl.h dependency.
11081 * cgraph.c (create_edge, dump_cgraph): Update to use inline_failed
11082 * cgraph.h (cgraph_edge): Replace inline_call by inline_failed
11083 (cgraph_inline_p): Add extra argument reason.
11084 * cgraphunit.c: Minor formating fixes.
11085 cgraph_first_inlined_callee): New functions.
11086 (record_call_1): Record builtins too.
11087 (cgraph_analyze_function): Update inline_failed messages.
11088 (cgraph_mark_functions_to_output, cgraph_expand_function, cgraph_inlined_into,
11089 cgraph_inlined_callees, cgraph_estimate_growth): Update to use inline_failed.
11090 (cgraph_check_inline_limits): Likewise; Add argument reason.
11091 (cgraph_set_inline_failed): New static function.
11092 (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining): Set
11094 (cgraph_inline_p): Add new argument reason.
11095 * tree-inline.c (expand_call_inline): Update warning.
11097 2004-01-03 Nathanael Nerode <neroden@gcc.gnu.org>
11099 * configure.ac: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
11100 with modern equivalents.
11101 * configure: Regenerate.
11103 * configure.ac: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
11104 * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
11105 * configure: Regenerate.
11107 * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
11109 * configure.in: Rename to configure.ac.
11110 * configure.ac: Renamed from configure.in; make minimum necessary
11111 changes for autoconf 2.5x.
11112 * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
11113 * configure: Regenerate with autoconf 2.57.
11115 2004-01-03 Kazu Hirata <kazu@cs.umass.edu>
11117 * config/mips/linux.h: Fix comment formatting.
11118 * config/mips/mips.c: Likewise.
11119 * config/mips/mips.h: Likewise.
11120 * config/mips/mips.md: Likewise.
11121 * config/mips/netbsd.h: Likewise.
11122 * config/mips/windiss.h: Likewise.
11124 2004-01-02 Richard Henderson <rth@redhat.com>
11126 * config/i386/i386.md (fp constant pool splitter): Reorg suppression
11127 for sse and 387; add suppression for mmx.
11129 2004-01-02 Andrew Pinski <pinskia@physics.uc.edu>
11131 * loop.c (loop_optimize): Free all loops_info's mems.
11133 * c-typeck.c (finish_init): Free spelling_base before
11136 * cfgloop.c (flow_loops_find): Always free the sbitmap
11139 * predict.c (estimate_probability): Free bbs after being
11142 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
11144 * config/mn10300/mn10300.h (PREDICATE_CODES): Add
11145 const_8bit_operand and call_address_operand.
11147 2004-01-02 Jan Hubicka <jh@suse.cz>
11149 * cgraphunit.c (cgraph_optimize_function): Call optimize_inline_calls
11150 when there is nothing to inline but warnings are requested.
11151 (cgraph_decide_inlining): Fix memory leak.
11153 2004-01-02 Jan Hubicka <jh@suse.cz>
11155 * expr.c (store_constructor): Fix pasto in previous patch.
11157 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
11159 * config/i386/cygming.h: Fix comment formatting.
11160 * config/i386/djgpp.h: Likewise.
11161 * config/i386/gthr-win32.c: Likewise.
11162 * config/i386/i386-interix.h: Likewise.
11163 * config/i386/i386.c: Likewise.
11164 * config/i386/i386.h: Likewise.
11165 * config/i386/openbsd.h: Likewise.
11166 * config/i386/winnt.c: Likewise.
11167 * config/i386/xm-mingw32.h: Likewise.
11169 2004-01-02 Joseph S. Myers <jsm@polyomino.org.uk>
11171 * doc/gcc.texi, doc/invoke.texi, doc/install.texi: Update
11172 copyright and last modification dates.
11174 2004-01-02 Andreas Jaeger <aj@suse.de>, Gerald Pfeifer <gp@suse.de>
11176 * doc/install.texi (Specific): Mention x86_64.
11178 2004-01-01 Hans-Peter Nilsson <hp@bitrange.com>
11180 * builtins.c (expand_builtin_apply_args_1) [STACK_GROWS_DOWNWARD]:
11181 Call force_operand on plus_constant result.
11183 2004-01-01 Jan Hubicka <jh@suse.cz>
11185 * expmed.c (store_bit_field, extract_bit_field): Use new named patterns
11186 * expr.c (store_constructor): Use vec_init pattern.
11187 * genopinit.c (optabs): Initailize vec_set/vec_extract/vec_init.
11188 * optabs.h (optab_index): ADD OTI_vec_set/OTI_vec_extract/OTI_vec_init
11189 (vec_set_optab, vec_extract_optab, vec_init_optab): New.
11190 * i386.md (vec_setv2df, vec_extractv2df, vec_setv4sf, vec_extractv4sf):
11192 (sse2_unpc?pd): Fix pattern.
11193 (sse2_movlpd): Kill.
11194 (sse2_movsd): Deal with movlpd too.
11195 * i386.c (ix86_expand_builtin): Use sse2_movsd instead of sse2_movlpd.
11196 (ix86_expand_vector_init): New.
11197 * emmintrin.h (__mm_set_pd, __mm_set_ps): Use vector extensions.
11198 * md.texi (vec_set, vec_extract): Document
11200 2003-12-31 Jan Hubicka <jh@suse.cz>
11203 * recog.c (validate_replace_rtx_1): Take care for RTL sharing inside
11207 * toplev.c (dump_file_index): Reorder ce3 and bbro.
11208 (dump_file): Likewise.
11209 (rest_of_compilation): Likewise.
11212 * cgraph.c (cgraph_function_possibly_inlined): Even with
11213 flag_really_no_inline we inline always_inline functions.
11214 * cgraphunit.c (cgraph_analyze_function): Clear inlinable flag
11215 for non-always_inline functions when there is flag_really_no_inline.
11216 (cgraph_decide_inlining): Limit work done when not inlining.
11217 (cgraph_decide_inlining_incrementally): Likewise.
11218 (cgraph_optimize_function): Check whether something got inlined.
11219 * c-objc-common.c (c_disregard_inline_limits): Do not always inline
11220 extern inline functions when not inlining.
11222 * opts.c (decode_options): Disable crossjumping at -O1
11223 * invoke.texi (-O1): Document change.
11225 See ChangeLog.10 for earlier changes.