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.