1 2004-04-05 Kaz Kojima <kkojima@gcc.gnu.org>
3 * config/sh/sh.c (prepare_move_operands): Use emit_call_insn
4 when the TLS address is generated by a function call.
5 * config/sh/sh.md (tls_global_dynamic): Use a call expression.
6 (tls_local_dynamic): Likewise.
8 2004-04-05 Andrew Pinski <pinskia@physics.uc.edu>
10 * tree.c (reconstruct_complex_type): Use TYPE_READONLY
13 2004-04-05 Caroline Tice <ctice@apple.com>
15 * gcc.c (combine_flag): New global variable, for new driver option.
16 (struct compiler): Add two new fields, to be used when
17 combining multiple input files in a single pass (IMA).
18 (default_compilers): Add values for the new fields to all
19 compiler entries. Modify the "@c" compiler entry for doing IMA
20 properly with "-save-temps" and the "combine" flag.
21 (option_map): Add new driver option, "--combine", to tell driver
22 to pass multiple input files to compiler at one time.
23 (have_o_argbuf_index): New global variable.
24 (store_arg): Modify to assign value to have_o_argbuf_index.
25 (struct infile): Add three new fields, to help with IMA.
26 (display_help): Add help for new "combine" option.
27 (process_command): Remove local variable have_o; add code to check
28 for new "combine" option; remove assignment to combine_inputs.
29 (do_spec_1): Modify to deal with IMA better.
30 (main): Make variable 'lang_n_infiles' local to entire function
31 rather than to a single block. Use flag combine_flag to
32 determine whether to do IMA or not; Modify loop initializing
33 infiles to deal properly with linker files.
34 Add code for doing preprocessing in presence of
35 IMA with "-save-temps" flag. Modify "main" loop to handle
36 multiple input files, in multiple languages, with or without
37 preprocessing, gracefully.
38 * toplev.c (set_src_pwd): Modify to not complain if attempting to
39 re-set it to same directory it's previously been set to (avoid
40 irritating, meaningless warning messages when doing IMA with
42 * doc/invoke.texi: Add "-combine" to list of Overall Options;
43 remove documentation about IMA that is no longer accurate; Add
44 documentation explaining what "-combine" does.
45 * ada/lang-specs.h: Add initialization values for new fields in
47 * cp/lang-specs.h: Likewise.
48 * f/lang-specs.h: Likewise.
49 * java/lang-specs.h: Likewise.
50 * objc/lang-specs.h: Likewise.
51 * treelang/lang-specs.h: Likewise.
53 2004-04-05 David Edelsohn
55 * config/rs6000/rs6000.c (VTABLE_NAME_P): Add _ZTI to special
58 2004-04-05 Jakub Jelinek <jakub@redhat.com>
59 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
61 PR optimization/13424 (hppa), bootstrap/14462, c/14828
62 * pa.md: Use replace_equiv_address to retain the attributes of the
63 memory operands used in the split and peephole2 patterns for optimizing
64 the pre-reload movstrsi, movstrdi, clrstrsi and clrstrdi patterns.
66 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
68 * c-decl.c (build_compound_literal): Use TYPE_READONLY.
69 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
70 * objc/objc-act.c (adorn_decl, gen_declspecs): Likewise.
71 * c-typeck.c (decl_constant_value): Don't access DECL_INITIAL of a
73 * calls.c (flags_from_decl_or_type): Use TYPE_READONLY and do so only
75 * print-tree.c (print_node): Properly handle side-effects, readonly,
77 * tree.c (build1_stat, build_expr_wfl): Only look at TREE_SIDE_EFFECTS
78 and TREE_CONSTANT if not a type.
79 * tree.h (IS_NON_TYPE_CODE_CLASS): New macro.
80 (IS_EXPR_CODE_CLASS): Write 'E', not 'e'.
81 (NON_TYPE_CHECK): New macro.
82 (TREE_SIDE_EFFECT, TREE_READONLY, TREE_CONSTANT: Add check.
84 2004-04-05 Eric Botcazou <ebotcazou@libertysurf.fr>
86 * config/sparc/sol2-bi.h (PREFERRED_DEBUGGING_TYPE): Set
87 to DWARF2_DEBUG unconditionally.
88 (ASM_DEBUG_SPEC): Set the default to --gdwarf2 unconditionally.
90 2004-04-04 Ian Lance Taylor <ian@wasabisystems.com>
91 Nathanael Nerode <neroden@gcc.gnu.org>
94 * config.host: Set the shell variable host_can_use_collect2.
95 Set it to yes by default, and to no for alpha*-dec-*vms*,
96 i[34567]86-*-mingw32*, and powerpc-*-beos*.
97 * configure.ac: Set and substitute the shell variable collect2.
98 Give an error if use_collect2 is yes and host_can_use_collect2 is
100 * Makefile.in (COLLECT2): Rename from USE_COLLECT2. Change all
101 uses. Initialize to @collect2@.
102 (STAGESTUFF): Remove $(USE_COLLECT2).
103 * config/alpha/x-vms (USE_COLLECT2): Don't set.
104 * config/i386/t-mingw32 (USE_COLLECT2): Likewise.
105 * config/rs6000/t-beos (USE_COLLECT2): Likewise.
106 * config/pa/t-pa64: Remove commented out USE_COLLECT2.
107 * configure: Regenerate.
109 2004-04-04 Roger Sayle <roger@eyesopen.com>
111 * simplify-rtx.c (simplify_binary_operation): Constant fold
112 DIV, MOD, UDIV and UMOD using div_and_round_double.
114 2004-04-04 Mark Mitchell <mark@codesourcery.com>
117 * varasm.c (initializer_constant_valid_p): Allow NOP_EXPRs to
120 2004-04-04 Mark Mitchell <mark@codesourcery.com>
122 * doc/invoke.texi (-mabi=o64): Create link to O64 ABI
125 2004-04-04 Roger Sayle <roger@eyesopen.com>
127 * cse.c (cse_insn): Correct usage of simplify_replace_rtx when
128 updating the REG_EQUAL note on an insn's libcall_insn.
130 2004-04-04 Roger Sayle <roger@eyesopen.com>
132 * df.h: Tidy up whitespace in the definitions of the DF_ flags.
134 2004-04-03 Roger Sayle <roger@eyesopen.com>
136 * fold-const.c (fold) <PLUS_EXPR>: Guard (-A)+B -> B-A transformation
137 with reorder_operands_p.
139 2004-04-03 Jan Hubicka <jh@suse.cz>
141 * md.texi (vec_set, vec_extract, vec_init): Document.
143 2004-04-02 Gabor Loki <loki@inf.u-szeged.hu>
145 * opts.c (decode_options): Do function inlining with very small
146 max-inline-insns-* parameters when optimizing for size.
148 2004-04-02 Vladimir Makarov <vmakarov@redhat.com>
150 * config/i386/i386.h (TARGET_NOCONA): New macro.
151 (TARGET_CPU_CPP_BUILTINS): Add code for Nocona.
152 (processor_type): Add PROCESSOR_NOCONA.
154 * config/i386/i386.md (cpu): Add nocona to the attribute values.
156 * config/i386/i386.c (nocona_cost): New variable.
157 (m_NOCONA): New macro.
158 (x86_push_memory, x86_movx, x86_cmove, x86_deep_branch,
159 x86_branch_hints, x86_use_sahf, x86_single_stringop,
160 x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8,
161 x86_integer_DFmode_moves, x86_partial_reg_dependency,
162 x86_memory_mismatch_stall, x86_accumulate_outgoing_args,
163 x86_decompose_lea, x86_arch_always_fancy_math_387,
164 x86_sse_partial_reg_dependency, x86_sse_load0_by_pxor,
165 x86_ext_80387_constants, x86_four_jump_limit):
166 (override_options): Add nocona_cost to processor_target_table.
167 Set up PROCESSOR_NOCONA for Nocona entry in processor_alias_table.
168 (incdec_operand): Prevent inc/dec generation for Nocona too.
169 (ix86_issue_rate): Add PROCESSOR_NOCONA.
171 2004-04-01 Andrew Pinski <pinskia@physics.uc.edu>
173 * rtlanal.c (find_reg_note): Manually
176 2004-04-01 Mark Mitchell <mark@codesourcery.com>
178 * genemit.c (gen_split): Change prototype of generated code.
179 * genrecog.c (write_action): Adjust prototype for and calls to
181 * gensupport.c (struct queue_elem): Add split field.
182 (queue_pattern): Return a value. Clear the split field.
183 (process_rtx): Maintain an association between an insn and the
184 split generated from it for a define_insn_and_split.
185 (process_one_cond_exec): Generate a new split for a
186 define_insn_and_split.
187 * config/arm/arm-protos.h (arm_split_constant): Add insn
189 (emit_constant_insn): New function.
190 (arm_gen_constant): Use it.
191 * config/arm/arm.md: Adjust calls to arm_split_constant.
193 2004-04-02 Jan Hubicka <jh@suse.cz>
195 * cgraph.c: Add overall comment.
196 (cgraph_inline_hash): New global variable.
197 (cgraph_create_node): Break out from ...
198 (cgraph_node): ... here.
199 (cgraph_edge): New function.
200 (cgraph_create_edge): New CALL_EXPR argument; some sanity checking.
201 (cgraph_remove_edge): Accept edge, intead of source and destination.
202 (cgraph_redirect_edge_callee): New.
203 (cgraph_remove_node): Update all new datastructures.
204 (cgraph_record_call, cgraph_remove_call): Kill.
205 (dump_cgraph_node): Break out from ... ; dump new datastructures.
206 (dump_cgraph): ... here.
207 (cgraph_function_possibly_inlined_p): Use new hashtable.
208 (cgraph_clone_edge, cgraph_clone_node): New.
209 * cgraph.h: Include hashtab.h
210 (struct cgraph_global_info): Kill cloned_times, inline_once, will_be_output
211 fields, add inlined_to pointer.
212 (cgraph_node): Add pointer to next_clone.
213 (cgraph_remove_edge, cgraph_create_edge): Update prototype.
214 (cgraph_remove_call, cgraph_record_call): Kill.
215 (cgraph_inline_hash): Declare.
216 (dump_cgraph_node, cgraph_edge, cg4raph_clone_edge, cgraph_clone_node,
217 cgraph_redirect_edge_callee): Declare.
218 (cgraph_create_edges, cgraph_inline_p): Update prorotype.
219 (cgraph_preserve_function_body_p, verify_cgraph, verify_cgraph_node,
220 cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Declare.
221 * cgraphunit.c: Add overall comment.
222 (cgraph_optimize_function): Kill.
223 (cgraph_assemble_pending_functions): Do not assemble inline clones.
224 (cgraph_finalize_function): Update call of cgraph_remove_node
225 (record_call_1): Record call sites.
226 (cgraph_create_edges): Accept node instead of decl argument.
227 (error_found): New static variable.
228 (verify_cgraph_node_1, verify_cgraph_node, verify_cgraph): New functions.
229 (cgraph_analyze_function): Update for new datastructures.
230 (cgraph_finalize_compilation_unit): Plug memory leak.
231 (cgraph_optimize_function): Kill.
232 (cgraph_expand_function): Do not use cgraph_optimize_function.
233 (INLINED_TIMES, SET_INLINED_TIMES, cgraph_inlined_into,
234 cgraph_inlined_callees): Kill.
235 (cgraph_remove_unreachable_nodes): Verify cgraph; update handling of
237 (estimate_growth): Simplify.
238 (cgraph_clone_inlined_nodes): New function.
239 (cgraph_mark_inline_edge): Re-implement.
240 (cgraph_mark_inline): Likewise.
241 (cgraph_check_inline_limits): Simplify.
242 (cgraph_recursive_inlining_p): New.
243 (update_callee_keys): Break out from ...
244 (cgraph_decide_inlining_of_small_functions): ... here; simplify.
245 (cgraph_decide_inlining, cgraph_decide_inlining_incrementally):
247 (cgraph_expand_all_functions): Remove inline clones from the ordered
249 (cgraph_preserve_function_body_p): New predicate.
250 (cgraph_optimize): Verify cgraph.
251 * function.h (struct function): Add fields saved_tree/saved_args.
252 * timevar.def (TV_CGRAPH_VERIFY): Use verifier.
253 * toplev.c (rest_of_compilation): Do not free cfun.
254 * tree-inline.c: Include function.h
255 (struct inline_data): Add saving_p field; replace decl/current_decl by
257 (insert_decl_map): New function.
258 (copy_body_r): Handle saving; update cgraph datastructure.
259 (copy_body): Handle recursive inlining.
260 (initialize_inlined_parameters): Likewise.
261 (expand_call_inline): Propagate node attributes; update cgraph.
262 (optimize_inline_calls): Verify that datastructure still match.
263 (save_body): New function.
264 * tree-inline.h (save_body): New.
265 * tree-optimize.c (tree_rest_of_compilation): preserve function body; do inlining.
266 * langhooks-def.c (LANG_HOOKS_UPDATE_DECL_AFTER_SAVING): New.
267 * langhooks.c (lang_hooks): Add update_decl_after_saving.
269 2004-04-01 Serge Belyshev <1319@bot.ru>
272 * config/i386/i386.md: fix source operand constraints in
273 mmx_pshufw, sse2_pshufd, sse2_pshuflw, sse2_pshufhw
275 2004-04-01 Waldek Hebisch <hebisch@math.uni.wroc.pl>
277 * fold-const.c (folda): Preserve types of comparisons.
279 2004-04-01 Richard Henderson <rth@redhat.com>
281 * toplev.c (backend_init): Move init_optimization_passes call ...
282 (lang_dependent_init): ... here.
284 2004-04-01 Alan Modra <amodra@bigpond.net.au>
285 Jakub Jelinek <jakub@redhat.com>
287 * gcc.c (init_gcc_specs): If HAVE_LD_AS_NEEDED, link with
288 -lgcc --as-needed -lgcc_s --no-as-needed by default.
289 * configure.ac (HAVE_LD_AS_NEEDED): Check for ld --as-needed.
290 * configure: Rebuilt.
291 * config.in: Rebuilt.
292 * Makefile.in (stage1-start): Copy also libgcc_s*$(SHLIB_EXT).
293 (stage2-start, stage3-start, stage4-start): Likewise.
294 (stageprofile-start, stagefeedback-start): Likewise.
296 2004-04-01 Jakub Jelinek <jakub@redhat.com>
298 * config/sparc/sparc.h (DITF_CONVERSION_LIBFUNCS): Define to 0.
299 * config/sparc/linux.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
300 * config/sparc/linux64.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
301 * config/sparc/sol2.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
302 (SOLARIS_CONVERSION_LIBFUNCS): Rename to SUN_CONVERSION_LIBFUNCS.
303 * config/sparc/sparc.c (sparc_init_libfuncs): Initialize optabs
304 with _Q_qtoll, _Q_qtoull and _Q_lltoq if DITF_CONVERSION_LIBFUNCS.
305 * config.gcc (sparc-*-linux*): Revert 2004-03-23 change.
306 * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Likewise.
307 * config/sparc/t-linux: Removed.
309 2004-04-01 Jakub Jelinek <jakub@redhat.com>
312 * fold-const.c (fold) <EQ_EXPR>: Properly compute newconst in
313 "bitfld++ == const" to "++bitfld == const + incr" transformations.
315 2004-04-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
317 * expr.c (get_inner_reference): Use DECL_UNSIGNED, not TREE_UNSIGNED.
318 * stor-layout.c (layout_decl): Likewise.
319 * tree.c (get_narrower): Likewise and also use BIT_FIELD_REF_UNSIGNED.
320 * fold-const.c (make_bit_field_ref): Use BIT_FIELD_REF_UNSIGNED.
321 * print-tree.c (print_node): Handle various used of unsigned_flag.
322 * tree.def (BIT_FIELD_REF): Update comment.
323 * tree.h (TREE_UNSIGNED): Deleted.
324 (DECL_UNSIGNED, BIT_FIELD_REF_UNSIGNED): New macros.
326 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
328 * builtins.c, c-aux-info.c, c-common.c, c-cppbuiltin.c, c-decl.c:
329 Change most occurrences of TREE_UNSIGNED to TYPE_UNSIGNED.
330 * c-format.c, c-opts.c, c-pretty-print.c, c-typeck.c: Likewise.
331 * calls.c, convert.c, dbxout.c, dojump.c, dwarf2out.c: Likewise.
332 * expmed.c, expr.c, fold-const.c, function.c, integrate.c: Likewise.
333 * optabs.c, sdbout.c, stmt.c, stor-layout.c, tree-dump.c: Likewise.
334 * tree.c, config/iq2000/iq2000.c, config/m32r/m32r.c: Likewise.
335 * config/mips/mips.c, config/rs6000/rs6000.c: Likewise.
336 * config/s390/s390.c, config/sparc/sparc.c, objc/objc-act.c: Likewise.
337 * stor-layout.c (layout_type, case COMPLEX_TYPE): Test for
338 REAL_TYPE, not INTEGER_TYPE.
339 (layout_type, case VECTOR_TYPE): Simplify code.
340 * tree.c (build_vector_type_for_mode): Remove dup unsigned setting.
341 * tree.h: Update comments.
342 (STRIP_NOPS): Use TYPE_UNSIGNED.
343 (TYPE_UNSIGNED): New macro.
344 (TYPE_TRAP_SIGNED): Remove now redundant check.
345 (SAVE_EXPR_NOPLACEHOLDER): Don't use TREE_UNSIGNED.
347 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
349 * function.c (put_var_into_stack): Properly set orig_reg for indirect.
351 2004-03-31 Andrew Pinski <pinskia@physics.uc.edu>
353 * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA):
354 Add darwin-fpsave.asm, darwin-vecsave.asm,
355 and darwin-world.asm.
356 (TARGET_LIBGCC2_CFLAGS): Add -Wa,-force_cpusubtype_ALL
357 as the asm files contain altivec instructions.
358 * config/rs6000/darwin-fpsave.asm: New file.
359 * config/rs6000/darwin-vecsave.asm: New file.
360 * config/rs6000/darwin-world.asm: New file.
362 2004-03-31 Zack Weinberg <zack@codesourcery.com>
364 * gengtype-yacc.y (option, stringseq): Add missing
365 terminating semicolon.
367 2004-03-30 David Edelsohn <edelsohn@gnu.org>
369 * config/rs6000/rs6000.md (tls_gd_32, tls_gd_64,
370 tls_ld_32, tls_ld_64, tls_dtprel_32, tls_dtprel_64,
371 tls_dtprel_ha_32, tls_dtprel_ha_64,
372 tls_dtprel_lo_32, tls_dtprel_lo_64,
373 tls_got_dtprel_64, tls_tprel_32, tls_tprel_64,
374 tls_tprel_ha_32, tls_tprel_ha_64,
375 tls_tprel_lo_32, tls_tprel_lo_64,
376 tls_got_tprel_32, tls_got_tprel_64,
377 tls_tls_32, tls_tls_64): Replace register_operand with
380 2004-03-30 Mostafa Hagog <mustafa@il.ibm.com>
382 * config/rs6000/rs6000.md (*ctrsi_internal1, *ctrsi_internal2,
383 *ctrdi_internal1, *ctrdi_internal2, *ctrsi_internal3,
384 *ctrsi_internal4, *ctrdi_internal3, *ctrdi_internal4,
385 *ctrsi_internal5, *ctrsi_internal6, *ctrdi_internal5,
386 *ctrdi_internal6): Replace register_operand with
387 nonimmediate_operand.
389 2004-03-29 Fariborz Jahanian <fjahanian@apple.com>
391 * fold-const.c (fold): Reassociate multiply expression
392 with an adjacent non-multiply expression to use
393 architecture's multiply-add instruction.
395 2004-03-30 Zack Weinberg <zack@codesourcery.com>
397 * gengtype.c (create_option): New function.
398 * gengtype.h: Prototype it.
399 * gengtype-yacc.y (stringseq): New rule.
400 (option): Use create_option. Add new bare ID production. Use
401 stringseq, not STRING directly.
403 * alias.c, bitmap.c, c-decl.c, cgraph.h, cpplib.h, cselib.h
404 * dwarf2out.c, emit-rtl.c, function.h, lists.c, tree.h
405 * varray.h, config/alpha/alpha.c:
406 Use new shorter form of GTY markers.
408 * doc/gty.texi: Rewrite.
410 2004-03-30 Andrew Pinski <pinskia@physics.uc.edu>
412 * config/darwin.c (machopic_function_base_name):
413 Remove current_name and getting the name of the
416 2004-03-30 Nick Clifton <nickc@redhat.com>
418 * config/arm/arm.md (thumb_jump): Reduce the backward branch
419 range, and increase the forward branch range, to allow for
420 the fact that the PC will be off by 4.
422 2004-03-30 Alan Modra <amodra@bigpond.net.au>
424 * .cvsignore: Add GPATH, GRTAGS, GSYMS and GTAGS (GNU GLOBAL)
426 2004-03-30 Hartmut Penner <hpenner@de.ibm.com>
428 * config/rs6000/rs6000.c (output_vec_const_move):
429 Find all cases of EASY_VECTOR_15_ADD_SELF.
430 (easy_vector_constant_add_self): Accept
431 all vector constant loadable by vsplt* and vadd*.
432 (easy_vector_same): Use easy_vector_splat_const.
433 (easy_vector_const): Use easy_vector_splat_const.
434 (easy_vector_splat_const): New function.
435 (gen_easy_vector_constant_add_self): New function.
437 * config/rs6000/rs6000-protos.c (gen_easy_vector_constant_add_self):
440 * config/rs6000/altivec.md (movv4si splitter): Change to
441 emit move insn with halfed vector constant.
442 (*movv8hi splitter): Likewise.
443 (*movv16qi splitter): Likewise.
445 2004-03-30 Hartmut Penner <hpenner@de.ibm.com>
448 * config/rs6000/rs6000.c (rs6000_legitimate_address):
449 Allow any offset to argument pointer in no-strict case.
451 2004-03-30 Jan Hubicka <jh@suse.cz>
453 * toplev.c (backend_init): Add missing call to inint_optimization_passes.
454 * passes.c (init_optimization_passes, finish_optimization_passes): Output cgraph
455 dump file in non-unit-at-a-time mode.
457 2004-03-29 Hans-Peter Nilsson <hp@axis.com>
459 * config/cris/cris.h: Correct #ifdef to test for
460 HAVE_AS_NO_MUL_BUG_ABORT_OPTION, not
461 HAVE_AS_MUL_BUG_ABORT_OPTION.
463 2004-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
465 * function.c (put_var_into_stack): If old RTL was ADDRESSOF, update
466 the address inside the old RTL.
468 2004-03-28 Zack Weinberg <zack@codesourcery.com>
470 * c-decl.c: Verify that C_SIZEOF_STRUCT_LANG_IDENTIFIER is correct.
471 (struct c_binding, struct c_scope): Add chain_next
472 attributes to GTY markers.
473 (struct lang_identifier, struct lang_tree_node): Define
475 * c-tree.h: ... not here. No longer need to declare struct
476 c_binding either. Do define C_SIZEOF_STRUCT_LANG_IDENTIFIER.
477 * c-lang.c, objc/objc-lang.c: Set LANG_HOOKS_IDENTIFIER_SIZE
478 to C_SIZEOF_STRUCT_LANG_IDENTIFIER.
481 * c-decl.c (get_parm_info): If error_mark_node is encountered
482 in the bindings chain, unbind and discard it; don't abort.
484 2004-03-28 Olga Golovonevsky <olga@il.ibm.com>
485 Dorit Naishlos <dorit@il.ibm.com>
487 * config/rs6000/altivec.md: (andvv16qi3, andv8hi3, one_cmplv16qi2,
488 one_cmplv8hi2, one_cmplv4si2, iorv16qi3, iorv8hi3,): New modelling.
490 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
492 * config/m68hc11/m68hc11-protos.h (m68hc11_page0_symbol_p): Declare.
494 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute): New.
495 (m68hc11_attribute_table): New attribute "page0" to mark a global
496 variable as being allocated from within page0 section.
497 (m68hc11_encode_label): New function.
498 (m68hc11_strip_name_encoding): New function.
499 (m68hc11_page0_symbol_p): New function.
500 (m68hc11_indirect_p): Accept global variables marked in page0.
501 (m68hc11_encode_section_info): Lookup "page0" attribute.
503 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): 'R' constraint also
504 represents access to page0 variables.
506 * config/m68hc11/m68hc11.md ("*logicalsi3_zexthi"): Use gen_rtx_REG.
507 ("*logicalsi3_silshl16_zext"): Likewise.
508 ("*ashldi3_const32"): Likewise.
509 (peephole2 ashift): Likewise.
511 2004-03-28 Joseph S. Myers <jsm@polyomino.org.uk>
513 * c-tree.h (C_DECL_REGISTER): New.
514 * c-aux-info.c (gen_decl), c-decl.c (objc_mark_locals_volatile,
515 finish_decl, grokdeclarator, get_parm_info), c-typeck.c
516 (build_array_ref, c_mark_addressable): Set and use it.
517 * c-decl.c (grokdeclarator), c-typeck.c (c_mark_addressable):
518 Allow structures with volatile fields to be declared register.
519 Don't check TREE_ADDRESSABLE before warning about taking address
521 * c-decl.c (finish_decl): Don't allow structures with volatile
522 fields to be placed in named register.
523 * doc/trouble.texi: Remove reference to structures with volatile
526 2004-03-27 Ulrich Weigand <uweigand@de.ibm.com>
528 * function.c (thread_prologue_and_epilogue): Move
529 NOTE_INSN_FUNCTION_END and NOTE_INSN_FUNCTION_BEG notes
532 2004-03-27 Ulrich Weigand <uweigand@de.ibm.com>
534 * expr.c (store_constructor): Use gen_int_mode to correctly
535 sign-extend CONST_INT value.
537 2004-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
539 * builtin-types.def (BT_WINT, BT_FN_INT_WINT, BT_FN_WINT_WINT): New.
540 * builtins.def (DEF_C94_BUILTIN): New. Add wctype builtins.
541 * doc/extend.texi: Likewise.
543 2004-03-26 Diego Novillo <dnovillo@redhat.com>
545 * c-typeck.c (comptypes): Replace calls to TYPE_DOMAIN
546 with TYPE_ORIG_SIZE_TYPE.
548 2004-03-25 Aldy Hernandez <aldyh@redhat.com>
551 * c-typeck.c (build_binary_op): Do not allow comparisons of
554 2004-03-26 James A. Morrison <ja2morri@uwaterloo.ca>
556 * config.gcc: Remove sparc-tti-*.
557 * config/sparc/pbd.h: Delete.
559 * config/sparc/sol2.h: Remove note about Sun OS 4.x.
560 * config/sparc/aout.h: Likewise.
562 * config/sparc/sparc.h: Remove if 0'd code.
563 * config/sparc/sparc.md (call): Remove if 0'd code.
564 (call_value): Likewise.
565 (nonlocal_goto): Likewise.
566 (unimp_insn): Delete.
568 2004-03-25 Roger Sayle <roger@eyesopen.com>
570 * fold-const.c (tree_expr_nonnegative_p): Handle BIT_XOR_EXPR like
571 BIT_IOR_EXPR; A^B is nonnegative when A and B are nonnegative.
573 2004-03-25 Richard Henderson <rth@redhat.com>
576 * c-typeck.c (pop_init_level): Emit pending init elements earlier
579 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
581 * builtins.c (fold_builtin): Fix error in last change.
583 2004-03-25 Richard Sandiford <rsandifo@redhat.com>
585 * config/mips/mips.h: Formatting fix.
587 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
589 * builtins.def: Add ctype builtins.
590 * doc/extend.texi: Likewise.
592 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
594 * builtins.c (fold_builtin): Add new builtin optimizations for
596 * fold-const.c (fold): Likewise.
598 2004-03-25 David Edelsohn <edelsohn@gnu.org>
600 * config/rs6000/rs6000.c (rs6000_always_hint): New variable.
601 (rs6000_sched_groups): New variable.
602 (processor_target_table): Add power5.
603 (rs6000_override_options): Set rs6000_sched_insert_nops,
604 rs6000_sched_costly_dep and rs6000_sched_restricted_insns_priority
605 from rs6000_sched_groups.
606 (output_cbranch): Use rs6000_always_hint.
607 (rs6000_variable_issue): Use rs6000_sched_groups.
608 (rs6000_adjust_cost): Add CPU_POWER5.
609 (is_microcoded_insn): Use rs6000_sched_groups.
610 (is_dispatch_slot_restricted): Use rs6000_sched_groups.
611 Return 2 for POWER5 cracked instructions.
612 (is_cracked_insn): Use rs6000_sched_groups.
613 (is_branch_slot_insn): Use rs6000_sched_groups.
614 (rs6000_issue_rate): Add CPU_POWER5.
615 (rs6000_sched_finish): Use rs6000_sched_groups.
616 (rs6000_rtx_costs): Add PROCESSOR_POWER5.
617 * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_POWER5.
618 (DEFAULT_SCHED_COSTLY_DEP): Delete.
619 (DEFAULT_RESTRICTED_INSNS_PRIORITY): Delete.
620 (DEFAULT_SCHED_FINISH_NOP_INSERTION_SCHEME): Delete.
621 * config/rs6000/rs6000.md (define_attr "cpu"): Add power5.
622 * config/rs6000/power5.md: New file.
623 * doc/invoke.texi: Add power5 option.
625 2004-03-25 Kazu Hirata <kazu@cs.umass.edu>
627 * cfgrtl.c, dbxout.c, tree.def, config/darwin.h,
628 config/arm/arm.c, objc/objc-act.c: Fix comment typos.
629 * doc/invoke.texi: Fix a typo.
631 2004-03-25 Kazu Hirata <kazu@cs.umass.edu>
633 PR optimization/9707.
634 * stmt.c (emit_case_nodes): Emit equality comparisons instead
635 of recursing if both children are single-valued cases with no
638 2004-03-25 Paul Brook <paul@codesourcery.com>
640 * config/arm/arm.c (vfp_print_multi): Remove.
641 (arm_output_fldmx): New function.
642 (vfp_emit_fstmx): Return block size, not insn. Add ARM10 VFPr1 bugfix.
643 (arm_expand_prologue): Update to match.
644 (arm_get_vfp_saved_size): New Function.
645 (arm_get_frame_offsets): Use it.
646 (arm_output_epilogue): Use new functions.
648 2004-03-24 Richard Henderson <rth@redhat.com>
650 * alias.c (alias_invariant, alias_invariant_size): Mark GTY.
651 (reg_known_value, reg_known_value_size): Likewise; make static.
652 (reg_known_equiv_p): Make static.
653 (clear_reg_alias_info): Update for new indexing.
654 (get_reg_known_value, set_reg_known_value): New.
655 (get_reg_known_equiv_p, set_reg_known_equiv_p): New.
656 (canon_rtx): Use them.
657 (init_alias_analysis): Likewise. Allocate reg_known_value with gc.
658 Don't play queer offsetting games with reg_known_value and
660 (end_alias_analysis): Free reg_known_value with gc.
661 * rtl.h (get_reg_known_value, get_reg_known_equiv_p): Declare.
662 * sched-deps.c (reg_known_equiv_p, reg_known_value): Remove.
663 (deps_may_trap_p, sched_analyze_1, sched_analyze_2): Use the new
666 2004-03-24 Kazu Hirata <kazu@cs.umass.edu>
668 * dwarf2asm.c, loop.h, pretty-print.c, pretty-print.h,
669 config/i386/mmintrin.h: Update copyright.
671 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
673 * configure.ac: Add --enable-werror-always (for top level bootstrap
675 * configure: Regenerate.
677 2004-03-24 Ziemowit Laski <zlaski@apple.com>
679 * objc/objc-act.c (objc_comptypes): Treat comparisons
680 between 'Class' and '<class> *' as explicitly invalid.
682 2004-03-24 David Edelsohn <edelsohn@gnu.org>
684 * doc/invoke.texi (-frename-registers: Add enabled at -O3.
685 (-fprofile-values): Add enabled with profile-{generate,use}.
687 (-ftracer): Add enabled with profile-use.
688 (-funit-at-a-time): Add enabled at -O2,-O3.
689 (-funroll-loops): Add enabled with profile-use.
690 (-funswitch-loops): Add enabled with profile-use. Remove duplicates.
691 (max-gcse-passes): Mention default.
692 (max-cse-path-length): Mention default.
694 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
696 * Makefile.in (STRICT2_WARN): Reorder.
697 * configure.ac: Check for -Wold-style-definition, and use it
698 in strict1_warn if it's available.
699 * configure: Regnerate.
701 2004-03-24 Paul Brook <paul@nowt.org>
703 * config.gcc <arm>: Add --with-abi=
704 * config/arm/arm-protos.h (arm_get_frame_size, thumb_get_frame_size,
705 thumb_far_jump_used): Remove prototypes.
706 (arm_needs_doubleword_align): Add prototype.
707 (thumb_compute_initial_elimination_offset): Ditto.
708 * config/arm/arm.c (arm_get_frame_offsets): New function.
709 (use_return_insn, output_return_instruction, arm_output_epilogue,
710 arm_output_function_epilogue, arm_compute_initial_elimination_offset,
711 arm_expand_prologue, thumb_expand_epilogue): Use it.
712 (arm_abi, target_abi_name, all_arm_abis): New variables.
713 (arm_override_options): Set them. Set structure padding for AAPCS.
714 (arm_return_in_memory): Update ABI check.
715 (arm_init_cumulative_args): Initialize can_split.
716 (arm_needs_doubleword_align): New function.
717 (arm_function_arg): Don't split args after pushing to stack. Handle
718 doubleword/even reg alignment.
719 (arm_va_arg): Handle all doubleword aligned args.
720 (add_minpoolforward ref, dump_minpool, push_minpool_fix): Align based
722 (arm_compute_save_reg0_reg12_mask): Fix comment.
723 (thumb_get_frame_size, thumb_get_frame_size): Remove.
724 (thumb_jump_far_used_p): Remove superfluous argument. Return save
726 (thumb_unexpanded_epilogue, thumb_output_function_prologue): Change
728 (thumb_compute_initial_elimination_offset): New function.
729 (thumb_expand_prologue): Use arm_get_frame_offsets. Remove
730 unneccessary rounding.
731 * config/arm/arm.h (target_abi_name): Declare.
732 (ARM_DOUBLEWORD_ALIGN, DOUBLEWORD_ALIGNMENT, TARGET_IWMMXT_ABI,
733 arm_abi_type, ARM_DEFAULT_ABI): Define.
734 (ARM_FLAG_ATPCS): Remove.
735 (TARGET_OPTIONS, OPTION_DEFAULT_SPECS): Add -mabi=.
736 (BIGGEST_ALIGNMENT, PREFERRED_STACK_BOUNDARY, STACK_BOUNDARY): Use it.
737 (ADJUST_FIELD_ALIGN, DATA_ALIGNMENT, LOCAL_ALIGNMENT,
738 TYPE_NEEDS_IWMMXT_ALIGNMENT): Remove.
739 (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P, FUNCTION_ARG_REGNO_P):
740 Contitionalize on ABI, not CPU.
741 (struct arm_stack_offsets): Define.
742 (struct machine_function): Add stack_offsets. Remove frame_size.
743 (FUNCTION_ARG_PARTIAL_NREGS): Don't split if previous args have been
745 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_BOUNDARY): Handle general
746 doubleword alignment.
747 (THUMB_INITIAL_ELIMINATION_OFFSET,
748 ARM_INITIAL_ELIMINATION_OFFSET): Remove.
749 (INITIAL_ELIMINATION_OFFSET): Call functions directly.
750 * config/arm/arm.md (align_8): Enable for all targets.
751 * config/arm/netbsd-elf.h (TARGET_DEFAULT): Remove TARGET_ATPCS.
752 (ARM_DEFAULT_ABI): Define.
753 * doc/invoke.texi <ARM>: Document -mabi=. Update documentation for
754 -mstructure-size-boundary.
756 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
758 * configure.ac: Check for -Wno-variadic-macros; don't use
759 -pedantic (in stage 1 or a simple 'make all') unless it's available,
760 and if it's available, use it. Also, clean up check for
762 * configure: Regenerate.
764 2004-03-24 Richard Sandiford <rsandifo@redhat.com>
766 * config.gcc (mips64vr-*-elf*, mips64vrel-*-elf*): Remove tm_defines.
767 * config/mips/vr.h (DEFAULT_VR_ARCH): New macro, defined to vr4130.
768 (MULTILIB_DEFAULTS): Use it.
769 (MIPS_CPU_STRING_DEFAULT): Remove.
770 (MIPS_ABI_DEFAULT, MIPS_MARCH_CONTROLS_SOFT_FLOAT): Define.
771 (DRIVER_SELF_SPECS): Make -mfix-vr4122-bugs imply -march=vr4120. Make
772 EABI64 -mlong32 the default ABI. Enforce the default architecture.
773 * config/mips/t-vr (MULTILIB_OPTIONS): Add mfix-vr4122-bugs,
774 march=vr4130, march=vr4300, march=vr5000 and march=vr5500.
775 (MULTILIB_MATCHES): Use -mfix-vr4122-bugs multilibs for -march=vr4120.
776 (MULTILIB_EXCEPTIONS): Change choice of multilibs. Update comments
779 2004-03-24 DJ Delorie <dj@redhat.com>
780 Richard Sandiford <rsandifo@redhat.com>
782 * config/mips/mips.h (MASK_FIX_VR4122, TARGET_FIX_VR4122): New macros.
783 (TARGET_SWITCHES): Add -mfix-vr4122-bugs and -mno-fix-vr4122-bugs.
784 (ASM_SPEC): Pass down -mfix-vr4122-bugs.
785 * config/mips/mips.c (mips_avoid_hazards): Don't emit whole functions
786 in .set noreorder and .set nomacro if TARGET_FIX_VR4122.
787 (mips_init_libfuncs): Use special functions for divsi3 and modsi3
788 if TARGET_FIX_VR4122.
789 * config/mips/mips.md (define_attr length): Account for nops inserted
790 after macc and dmult when using -mfix-vr4122-bugs.
791 (umuldi3_highpart, divmodsi4, divmoddi4): Disable if TARGET_FIX_VR4122.
792 * config/mips/t-vr (LIB2FUNCS_STATIC_EXTRA): Define instead of
793 LIB2FUNCS_EXTRA. Add config/mips/vr4122-div.S.
794 * config/mips/vr4122-div.S: New file.
795 * doc/invoke.texi: Document -mfix-vr4122-bugs.
797 2004-03-24 Richard Sandiford <rsandifo@redhat.com>
799 * config/mips/mips.h (PROCESSOR_R4130): New processor_type.
800 (TARGET_MIPS4130): New macro.
801 (ISA_HAS_MACC): Return true if TARGET_MIPS4130 && !TARGET_MIPS16.
802 * config/mips/mips.c (mips_cpu_info_table): Add a vr4130 entry.
803 (override_options): Extend MIPS_MARCH_CONTROLS_SOFT_FLOAT to deal
804 with PROCESSOR_R4130.
805 * config/mips/mips.md (define_attr cpu): Add r4130.
806 * doc/invoke.texi: Document vr4130 as a supported MIPS architecture.
808 2004-03-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
809 Richard Sandiford <rsandifo@redhat.com>
811 * doc/invoke.texi: Apply missed hunk from 2004-03-03 change.
813 2004-03-24 Alexandre Oliva <aoliva@redhat.com>
815 PR preprocessor/14438
816 * cpplib.c (do_pragma): Remove line_change call after pragma
819 2004-03-23 Ian Lance Taylor <ian@wasabisystems.com>
821 * doc/extend.texi (ARM Built-in Functions): Replace with correct
824 2004-03-23 Roger Sayle <roger@eyesopen.com>
826 * reg-stack.c (get_true_reg): Handle FLOAT_TRUNCATE like FLOAT_EXTEND
827 if flag_unsafe_math_optimizations.
828 * config/i386/i386.md (truncdfsf2): If flag_unsafe_math_optimizations
829 and TARGET_80387 expand using truncdfsf2_noop pattern.
830 (truncxfsf2): Likewise using truncxfsf2_noop.
831 (truncxfdf2): Likewise using truncxfdf2_noop.
832 (truncdfsf2_noop, truncxfsf2_noop, truncxfdf2_noop): New patterns.
834 2004-03-23 Ziemowit Laski <zlaski@apple.com>
836 * hooks.c (hook_constcharptr_tree_null): New hook.
837 * hooks.h (hook_constcharptr_tree_null): New prototype.
838 * target-def.h (TARGET_MANGLE_FUNDAMENTAL_TYPE): New target hook.
839 * target.h (mangle_fundamental_type): New target hook.
840 * config/rs6000/rs6000.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Point
841 target hook at rs6000_mangle_fundamental_type.
842 (rs6000_mangle_fundamental_type): New function.
843 * doc/tm.texi (TARGET_MANGLE_FUNDAMENTAL_TYPE): Document.
845 2004-03-23 Zack Weinberg <zack@codesourcery.com>
847 PR 12267, 12391, 12560, 13129, 14114, 14133
848 * c-tree.h: Forward declare struct c_binding. Declare
849 c_override_bindings_to_false. Update prototypes.
850 (struct lang_identifier): Update comments. Change fields to be
852 (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE)
853 (IDENTIFIER_LABEL_VALUE, C_DECL_INVISIBLE)
854 (KEEP_NO, KEEP_YES, KEEP_MAYBE): Delete.
855 (C_DECL_IN_EXTERNAL_SCOPE, C_DECL_DECLARED_BUILTIN): New.
856 * c-common.h: Update prototypes.
857 * c-decl.c (struct c_scope): Update commentary. Remove names,
858 names_last, parms, parms_last, tags, and shadowed fields. Add
859 bindings and depth fields.
860 (scope_freelist): Move to more appropriate location.
861 (c_print_identifier): Update for changes to struct lang_identifier.
862 (objc_mark_locals_volatile): Update for new bindings structures.
863 (global_bindings_p): Honor c_override_global_bindings_to_false.
864 (pushlevel): Rename to push_scope; take no arguments; use the
865 scope_freelist; initialize scope->depth and check for overflow.
866 (poplevel): Rename to pop_scope; totally rewritten for new bindings
868 (diagnose_mismatched_decls): Use C_DECL_DECLARED_BUILTIN, not
869 C_DECL_INVISIBLE, for certain decisions. Adjust some diagnostics.
870 Improve some commentary. Adjust handling of forward parm decls.
871 (merge_decls): Set C_DECL_DECLARED_BUILTIN when appropriate.
872 Preserve C_DECL_IN_EXTERNAL_SCOPE.
873 (warn_if_shadowing): Correct indentation. Improve diagnostics.
874 (pushdecl): Remove unnecessary assertion. Short-circuit anonymous
875 decls. Rewrite for new bindings structures. Improve commentary.
876 Eliminate the copy_node call.
877 (implicit_decl_warning): Use the "diag" idiom (as seen in
878 locate_old_decl) to reduce code duplication; call locate_old_decl
879 if appropriate. Relocate to remove need for forward declaration.
880 (implicitly_declare): Adjust for new bindings structures. Kludge
881 around Objective-C not-really-builtin functions.
882 (undeclared_variable): Improve diagnostics. If current_function_decl
883 is nonnull but current_function_scope is null, use current_scope.
885 (lookup_tag): Adjust for new bindings structures. Kludge around
886 Objective-C's tag declarations that wind up in the external scope.
887 (lookup_name): Adjust for new bindings structures. Kludge around
888 c-common.c's pseudo-typedefs that wind up in the external scope.
889 (lookup_name_current_level): Rename lookup_name_in_scope; take a
890 second argument indicating the scope to examine; rewrite for
891 new bindings structures.
892 (c_init_decl_processing): Adjust for renamed functions. Do not
893 initialize current_file_decl, first_builtin_decl, last_builtin_decl.
894 First scope pushed is the external scope, not the global scope.
895 (builtin_function): Use bind, not pushdecl. Adjust other bits
896 for new data structures. Keep track of builtins that should be
897 made visible automatically.
898 (start_decl): Adjust diagnostics. Remove unnecessary call to
900 (grokparms): Return 0 if arg_types is error_mark_node.
901 (get_parm_info): Rename "void_at_end" argument to "ellipsis", with
902 reversed sense. Rewrite for new bindings structures. Do not
903 leave any decls in the scope, to prevent pop_scope from doing
904 contradictory things with them.
905 (finish_struct, finish_enum): Remove redundant diagnostics.
906 (build_enumerator): Don't cascade diagnostics for error_mark_node.
907 Mark location where -pedantic changes the meaning of the program.
908 (store_parm_decls_newstyle, store_parm_decls_oldstyle): Load the
909 parameter decls into the function's scope structure using bind.
910 Warn here about function definitions in the wrong style.
912 (store_parm_decls): Correct the determination of whether a
913 function was defined with a prototype.
914 (c_write_global_declarations): Operate on all file decls and on
915 the external scope. Split body of the loop to...
916 (c_write_global_declarations_1): ... this new function, to avoid
918 (truly_local_externals, first_builtin_decl, last_builtin_decl)
919 (make_scope, pop_scope, in_parm_level_p, set_block)
920 (any_external_decl, record_external_decl, bind_label, getdecls)
921 (link_hash_hash, link_hash_eq, merge_translation_unit_decls)
922 (c_reset_state): Delete.
923 (visible_builtins, c_override_global_bindings_to_false)
924 (c_binding, I_SYMBOL_BINDING, I_SYMBOL_DECL, I_TAG_BINDING)
925 (I_TAG_DECL, I_LABEL_BINDING, I_LABEL_DECL, file_scope)
926 (external_scope, binding_freelist, bind, free_binding_and_advance)
927 (push_file_scope, pop_file_scope): New.
928 (pushtag, pushdecl_top_level, lookup_label, declare_label)
929 (define_label, c_make_fname_decl, finish_decl)
930 (mark_forward_parm_decls, build_compound_literal)
931 (grokdeclarator, start_function, check_for_loop_decls)
932 (identifier_global_value, record_builtin_type): Minor adjustments
933 for new bindings structures. Improve diagnostics and commentary.
934 * c-objc-common.c (start_cdtor, finish_cdtor): Adjust calls to
935 pushlevel/poplevel respectively.
936 (c_objc_common_finish_file): Don't call merge_translation_unit_decls.
937 * c-opts.c (c_common_parse_file): Remove spurious ATTRIBUTE_UNUSED.
938 Warn about YYDEBUG not being defined only if -dy. Remove no-longer-
939 correct loop over multiple translation units; call fatal_error if
940 requested to compile more than one file at once. (This disables
941 IMA temporarily - an up-front error being preferable to a crash.)
942 * c-parse.in (pushlevel, poplevel rules): Rename push_scope, pop_scope.
943 (all actions): Adjust calls to pushlevel/poplevel.
944 (parsing_iso_function_signature): Delete.
945 (extdef_1): Fold into extdef.
946 (old_style_parm_decls_1): Fold into old_style_parm_decls. Don't
947 warn here about function definitions in the wrong style.
948 (after_tyle_declarator, parm_declarator_starttypename)
949 (parm_declarator_nostarttypename, notype_declarator): Remove
950 commented-out productions.
951 (parmlist_1, parmlist_2): Use make_node, not tree_cons, to create
952 an empty TREE_LIST node. Adjust calls to get_parm_info.
953 (parmlist_2 : ELLIPSIS): Tag the arg-info block with error_mark_node
954 to suppress -Wold-style-definition after this error.
955 (c_parse_file): Don't clear the binding stack or call
956 finish_fname_decls here. Correct comment.
957 * c-typeck.c (same_translation_unit_p): Export.
958 (common_type): Use c_override_global_bindings_to_false, not
959 pushlevel/poplevel/declare_parm_level.
960 * c-lang.c: Override LANG_HOOKS_CLEAR_BINDING_STACK,
961 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK,
962 and LANG_HOOKS_GETDECLS with do-nothing stubs.
963 * objc/objc-lang.c: Likewise.
964 * objc/objc-act.c: Adjust all calls to pushlevel, poplevel,
966 (OBJC_VOID_AT_END): Delete; replace all uses
968 (generate_forward_declaration_to_string_table): Delete.
969 * objc/objc-act.h (OCTI_STRG_DECL, UOBJC_STRINGS_decl): Delete.
971 * coverage.c (create_coverage): Don't pushdecl anything.
972 * langhooks.c (lhd_clear_binding_stack): Call
973 lang_hooks.decls.poplevel, not poplevel.
974 * tree.c (list_length): If ENABLE_TREE_CHECKING, abort on a
975 circular list rather than going into an infinite loop.
977 2004-03-23 Olivier Hainque <hainque@act-europe.fr>
979 * optabs.c (expand_binop): When synthesizing double word rotates
980 from single word shifts, use a new register target if the provided
981 target is not a REG already.
983 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
985 * alias.c (get_alias_set): Add support for TYPE_REF_CAN_ALIAS_ALL.
986 * c-common.c (handle_mode_attribute): Add extra arg to
987 build_pointer_type_for_mode and build_reference_type_for_mode.
988 * c-typeck.c (build_c_cast): Only look at TREE_CONSTANT_OVERFLOW
990 * tree.c (build_pointer_type_for_mode): Add arg CAN_ALIAS_ALL.
991 Chain pointers via TYPE_NEXT_PTR_TO.
992 (build_reference_type_for_mode): Similarly.
993 (build_type_no_quals): Add extra arg to build_pointer_type_for_mode
994 and build_reference_type_for_mode.
995 (tree_check4_failed): New function.
996 * tree.h (TREE_CHECK4, PTR_OR_REF_CHECK): New macros.
997 (TYPE_REF_CAN_ALIAS_ALL, TYPE_NEXT_PTR_TO, TYPE_NEXT_REF_TO): Likewise.
998 (TREE_NO_UNSUED_WARNING, TREE_VIA_VIRTUAL, TREE_CONSTANT_OVERFLOW):
1001 2004-03-23 Roger Sayle <roger@eyesopen.com>
1003 * fold-const.c (tree_expr_nonnegative_p): A&B is nonnegative when
1004 A is nonnegative or B is nonnegative. Similarly A|B is nonnegative
1005 when both A and B are nonnegative.
1006 (tree_expr_nonzero_p): A|B is nonzero when A is nonzero or B is
1009 2004-03-23 Kazu Hirata <kazu@cs.umass.edu>
1011 * fold-const.c (fold): Remove cases for INTEGER_CST, REAL_CST,
1012 VECTOR_CST, STRING_CST, COMPLEX_CST, and CONSTRUCTOR.
1014 2004-03-23 Kazu Hirata <kazu@cs.umass.edu>
1016 PR optimization/14669
1017 * fold-const.c (fold): Only unwiden integer comparisons for equality
1018 and inequality operators, or when the signedness doesn't change.
1020 2004-03-23 Jakub Jelinek <jakub@redhat.com>
1022 * config.gcc (sparc-*-linux*): Add sparc/t-linux to tmake_file.
1023 * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Set.
1024 * config/sparc/t-linux: New file.
1026 2004-03-23 Richard Sandiford <rsandifo@redhat.com>
1028 * gcse.c (can_assign_to_reg_p): New function, split out from...
1029 (want_to_gcse_p): ...here.
1030 (compute_ld_motion_mems): Use can_assign_to_reg_p to validate
1033 2004-03-22 Diego Novillo <dnovillo@redhat.com>
1035 * c-typeck.c (same_translation_unit_p): Fix pasto.
1037 2004-03-22 David Edelsohn <edelsohn@gnu.org>
1039 * params.def (PARAM_MAX_SCHED_REGION_BLOCKS): New.
1040 (PARAM_MAX_SCHED_REGION_INSNS): New.
1041 * sched-rgn.c: Include params.h
1042 (MAX_RGN_BLOCKS): Delete.
1043 (MAX_RGN_INSNS): Delete.
1044 (too_large): Return bool. Convert to PARAM_VALUE.
1045 * Makefile.in (sched-rgn.o): Depend on $(PARAMS_H).
1046 * doc/invoke.texi (param): Document max-sched-region-blocks and
1047 max-sched-region-insns.
1049 2004-03-22 Joel Brobecker <brobecker@gnat.com>
1051 * dwarf2out.c (is_subrange_type): Do not emit a subrange_type DIE
1054 2004-03-22 Joel Brobecker <brobecker@gnat.com>
1056 * dwarf2out.c (is_subrange_type): Minor code rework. No behavior
1059 2004-03-22 Jakub Jelinek <jakub@redhat.com>
1062 * c-decl.c (finish_struct): Change type of incorrect flexible array
1063 field into error_mark_node.
1065 2004-03-22 Andrew Pinski <pinskia@physics.uc.edu>
1068 * config/rs6000/rs6000.c (symbol_ref_operand): Reject symbols
1069 who are not local for Darwin PIC.
1071 2004-03-22 Ulrich Weigand <uweigand@de.ibm.com>
1073 * regrename.c (regrename_optimize): Set regs_ever_live for all
1074 registers introduced as replacement.
1076 2004-03-22 Eric Botcazou <ebotcazou@libertysurf.fr>
1079 * expr.c (mark_queue): New function.
1080 (emit_insns_enqueued_after_mark): New function replacing
1081 emit_queue. Clear the body of emitted queued insns.
1082 (emit_queue): Call emit_insns_enqueued_after_mark.
1083 (store_expr): Mark the increment queue on entry. Emit
1084 only the incrementations queued when expanding the source.
1086 2004-03-22 Nathanael Nerode <neroden@gcc.gnu.org>
1088 * configure.ac: Allow --disable-coverage-flags (for the future benefit
1089 of top level bootstrap, and consistency). Reindent.
1090 * configure: Regenerate.
1092 2004-03-21 Kazu Hirata <kazu@cs.umass.edu>
1094 * bt-load.c, builtins.c, cfghooks.c, cfgrtl.c, gcse.c,
1095 ggc-page.c, integrate.c, var-tracking.c, web.c: Remove
1098 2004-03-22 Danny Smith <dannysmith@users.sourceforge.net>
1101 * gcov-io.h (gcov_truncate): Define ftruncate as _chsize for
1104 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
1106 * config/s390/s390.md ("*doloop_si"): Change predicate for operand 2
1107 to nonimmediate_operand.
1108 ("*doloop_di"): Likewise.
1110 2004-03-21 Alexandre Oliva <aoliva@redhat.com>
1112 * real.h (struct real_value): Use the same type for all
1113 bitfields. Rename exp to uexp.
1114 (REAL_EXP, SET_REAL_EXP): New accessor macros for uexp.
1115 Adjust all uses of exp...
1116 * builtins.c: ... here, ...
1117 * emit-rtl.c: ... here, and ...
1118 * real.c: ... and here.
1120 2004-03-21 Gabriel Dos Reis <gdr@integrable-solutions.net>
1122 * pretty-print.c (pp_base_maybe_space): New function.
1123 * pretty-print.h (pp_base_maybe_space): Declare.
1124 (pp_maybe_space): New macro.
1126 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
1128 * config/s390/s390.md ("addti3", "subti3"): New insns and splitters.
1130 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
1132 * expmed.c (choose_mult_variant): Pass MULT_COST as argument instead
1133 of using register multiplication cost.
1134 (expand_mult): Adapt choose_mult_variant call.
1135 (expand_mult_highpart): Call choose_mult_variant with WIDER_MODE
1136 of MODE; pass appropriate cost bound. Adjust result when
1137 performing signed multiplication by a negative constant.
1138 Don't use intermediate modes larger than word_mode.
1140 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1142 * alias.c (get_alias_set): Remove handling of PLACEHOLDER_EXPR.
1143 * emit-rtl.c (component_ref_for_mem_expr): Likewise.
1144 (set_mem_attributes_minus_bitpos): Call SUBSTITUTE_PLACEHOLDER_IN_EXPR.
1145 * explow.c (expr_size): Likewise.
1146 * expr.h (placeholder_list, find_placeholder): Deleted.
1147 * expr.c (store_constructor): Likewise.
1148 (get_inner_reference): Likewise. Also don't call find_placeholder.
1149 (placeholder_list, find_placeholder): Deleted.
1150 (is_aligning_offset): Don't handle WITH_RECORD_EXPR, PLACEHOLDER_EXPR.
1151 (expand_expr_real, cases PLACEHOLDER_EXPR, WITH_RECORD_EXPR): Likewise.
1152 (highest_pow2_factor, case WITH_RECORD_EXPR): Remove.
1153 * dojump.c (do_jump, case WITH_RECORD_EXPR): Likewise.
1154 * dwarf2out.c (loc_descriptor_from_tree, case WITH_RECORD_EXPR):
1156 * fold-const.c (invert_truthvalue, case WITH_RECORD_EXPR): Likewise.
1157 (extract_muldiv, case WITH_RECORD_EXPR): Likewise.
1158 * tree.c (expr_align, case WITH_RECORD_EXPR): Likewise.
1159 (contains_placeholder_p): Don't handle WITH_RECORD_EXPR.
1160 Clean up by using first_rtl_op.
1161 (substitute_in_expr): Use SUBSTITUTE_IN_EXPR for recursive call.
1162 (substitute_placeholder_in_expr): New function.
1163 * tree.def (WITH_RECORD_EXPR): Deleted.
1164 * tree.h (SUBSTITUTE_IN_EXPR, SUBSTITUTE_PLACEHOLDER_IN_EXPR): New.
1165 (substitute_placeholder_in_expr): New.
1167 2004-03-21 Andrew Pinski <pinskia@gcc.gnu.org>
1169 * dojump.c (prefer_and_bit_test): Fix which part of
1170 the and_test is replaced.
1172 2004-03-21 Joseph S. Myers <jsm@polyomino.org.uk>
1174 * frontends.texi: Add missing line.
1176 2004-03-21 Zack Weinberg <zack@codesourcery.com>
1177 Chris Devers <cdevers@pobox.com>
1178 Joseph S. Myers <jsm@polyomino.org.uk>
1180 * doc/frontends.texi: Rewrite.
1181 * doc/gcc.texi: Update last modification date.
1183 2004-03-21 Josef Zlomek <zlomekj@suse.cz>
1185 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Print the debug
1186 message before redirecting the edge.
1188 2004-03-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1190 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_POINTER
1192 * explow.c (force_not_mem): Set REG_POINTER flag according to
1194 * rtl.h (MEM_POINTER): New macro.
1195 (struct rtx_def): Use integrated for MEM_SCALAR_P and frame_related
1198 2004-03-20 Roger Sayle <roger@eyesopen.com>
1201 * cse.c (fold_rtx): Avoid substituting constants into unary
1202 conversion operations.
1204 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
1206 * fold-const.c (fold): Replace "expr" with "t".
1208 2004-03-20 Ian Lance Taylor <ian@wasabisystems.com>
1211 * c-typeck.c (tagged_types_tu_compatible_p): Don't use
1212 DECL_ORIGINAL_TYPE if there isn't one.
1214 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
1216 * fold-const.c (fold): Replace "final_type" with "type".
1217 Remove variable "final_type".
1219 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
1221 * fold-const.c (fold): Constify "type".
1222 Replace "TREE_TYPE (t)" with "type".
1224 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
1226 * bb-reorder.c, bt-load.c, c-decl.c, cfgcleanup.c, coverage.c,
1227 dwarf2asm.c, ifcvt.c, stor-layout.c, varasm.c: Replace calls
1228 via (*targetm.foo) () with targetm.foo ().
1230 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
1233 * doc/install.texi: Add info directory category and entry.
1235 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
1237 * fold-const.c (fold): Replace "t" with "tem" where it is used
1238 as a temporary variable. Remove "orig_t" and all of its uses.
1240 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
1242 * fold-const.c (fold): Remove variable "invert".
1243 Move the handling of relational expressions that can be folded
1245 (fold_relational_const): ... here.
1246 (tree_expr_nonzero_p): New.
1248 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
1251 * builtins.def (nan, nanf, nanl, nans, nansf, nansl): Change to
1254 2004-03-20 Richard Sandiford <rsandifo@redhat.com>
1256 * Makefile.in (dojump.o): Depend on $(GGC_H) and dojump.h.
1257 (GTFILES): Add $(srcdir)/dojump.h.
1258 (gt-dojump.h): New dependency.
1259 * dojump.c (and_reg, and_test, shift_test): New static variables.
1260 (prefer_and_bit_test): New function.
1261 (do_jump): Use it to choose between (X & (1 << C)) and (X >> C) & 1.
1263 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
1265 * c-common.c, cfgcleanup.c, cgraphunit.c, c-pretty-print.c,
1266 expmed.c, ggc-common.c, jump.c, passes.c, recog.c, regmove.c,
1267 reorg.c, tree.h: Fix comment typos.
1269 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
1271 * alias.c, attribs.c, bt-load.c, builtins.c, c-common.c,
1272 c-decl.c, c-objc-common.c, c-typeck.c, calls.c, cfglayout.c,
1273 cse.c, dbxout.c, dwarf2out.c, except.c, final.c,
1274 haifa-sched.c, integrate.c, passes.c, rtlanal.c, sched-rgn.c,
1275 sched-vis.c, simplify-rtx.c, stor-layout.c, tree.c, varasm.c,
1276 vmsdbgout.c: Replace calls via (*targetm.foo) () with
1279 2004-03-19 Ziemowit Laski <zlaski@apple.com>
1281 * config/rs6000/altivec.h (vec_dst, vec_dstst, vec_dststt,
1282 vec_dstt, vec_sld, vec_splat): Add prototypes, marked with
1283 always_inline attribute.
1284 * config/rs6000/rs6000.c (altivec_expand_dst_builtin):
1285 Treat expansion as completed even if literal argument is
1286 invalid (so that other expansions are not tried in vain).
1288 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
1290 * loop-doloop.c (add_test): Replace GEN_INT (0) with
1293 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
1295 * fold-const.c (fold) <ABS_EXPR>: Move the handling of constants
1297 (fold_abs_const): ... here.
1299 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1301 * tree.h (TYPE_ARRAY_MAX_SIZE): Use type.maxval directly.
1303 2004-03-19 Denis Chertykov <denisc@overta.ru>
1306 * config/avr/avr.md ("call_insn"): Handle explicit integer
1308 (call_value_insn): Likewise.
1310 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1312 * tree.c (substitute_in_expr): Rewrite to simplify and be more generic.
1314 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
1316 * fold-const.c (negate_expr): Move the handling of constants
1318 (fold_negate_const): ... here.
1320 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1322 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): New macro and hook.
1323 * langhooks.h (struct lang_hooks_for_types): New field hash_types.
1324 * tree.c (debug_no_type_hash): Deleted.
1325 (type_hash_canon): Abort if passed a variant.
1326 Check lang_hooks.types.hash_types.
1327 (build_type_no_quals): Copy mode of POINTER_TYPE and REFERENCE_TYPE.
1328 (build_array_type): Remove unnecessary allocation of pointer type.
1329 (build_complex_type): Properly qualify resulting type.
1331 2004-03-19 Paolo Bonzini <bonzini@gnu.org>
1333 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo.
1335 2004-03-19 Richard Sandiford <rsandifo@redhat.com>
1337 * expmed.c (choose_mult_variant, expand_mult_const): New, split from...
1338 (expand_mult): ...here.
1339 (extract_high_half): New, split out from expand_mult_highpart.
1340 (expand_highpart_optab): Likewise. Don't clobber target prematurely.
1341 (expand_highpart): Evaluate the cost of a shift/add sequence,
1342 then see if any of the specialized optabs are cheaper.
1344 2004-03-18 Ian Lance Taylor <ian@wasabisystems.com>
1346 * mklibgcc.in: Remove obsolete MAYBE_USE_COLLECT2.
1348 2004-03-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1350 * convert.c (convert_to_real): Add more math builtins.
1352 2004-03-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1354 * convert.c (convert_to_real): Reformat using switch stmt.
1356 2004-03-18 Mark Mitchell <mark@codesourcery.com>
1358 * c-common.c (pointer_int_sum): Do not complain about using
1359 pointers to pointers-to-members.
1361 2004-03-18 Kazu Hirata <kazu@cs.umass.edu>
1363 * system.h (MD_ASM_CLOBBERS): Move to "Old target macros that
1364 have moved to the target hooks structure".
1366 2004-03-18 James E Wilson <wilson@specifixinc.com>
1368 * config/mips/mips.md (type): Split move into arith and fmove. Split
1369 hilo into mthilo and mfhilo. Add trap. Delete icmp. Fix all uses.
1370 * config/mips/5400.md (ir_vr54_hilo, ir_vr54_arith, ir_vr54_fabs):
1372 * config/mips/5500.md (ir_vr55_hilo, ir_vr55_arith, ir_vr55_fabs):
1374 * config/mips/7000.md (rm7_int_other, rm7_mthilo, rm7_mfhilo,
1375 rm7_fp_quick): Likewise.
1376 * config/mips/9000.md (rm9k_int, rm9k_mfhilo, rm9k_mthilo,
1377 rm9k_fquick): Likewise.
1378 * config/mips/sr71k.md (ir_sr70_hilo, ir_sr70_arith, ir_sr70_fabs):
1380 (ir_sr70_icmp): Delete.
1382 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1384 * tree.h (TREE_CHECK2, TREE_CHECK3, TREE_CHECK5): New macros.
1385 (tree_check2_failed, tree_check3_failed, tree_check5_failed): New decl.
1386 (FUNC_OR_METHOD_CHECK, SET_ARRAY_OR_VECTOR_CHECK): New macros.
1387 (REC_OR_UNION_CHECK, NUMERICAL_TYPE_CHECK): Likewise.
1388 (TYPE_VALUES, TYPE_DOMAIN, TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD):
1389 Protect with proper check.
1390 (TYPE_ARG_TYPES, TYPE_METHOD_BASETYPE, TYPE_OFFSET_BASETYPE): Likewise.
1391 (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Likewise.
1392 * tree.c (type_hash_eq): Rewrite to access proper fields for each type.
1393 (tree_check2_failed, tree_check3_failed, tree_check5_failed): New.
1394 * c-typeck.c (build_array_ref): Use TYPE_DOMAIN, not TYPE_VALUES.
1395 * dwarf2out.c (gen_enumeration_type_die): Use TYPE_VALUES,
1397 * stor-layout.c (set_sizetype): Use TYPE_ORIG_SIZE_TYPE.
1399 2004-03-18 Mostafa Hagog <mustafa@il.ibm.com>
1401 * gcse.c (eliminate_partially_redundant_loads): Reject change if
1402 dest is set between beginning and current insn.
1404 2004-03-18 Mark Mitchell <mark@codesourcery.com>
1406 * c-decl.c (grokdeclarator): Do not complain about redeclaring
1407 visible "static" identifiers "extern" in a local scope.
1408 * dwarf2out.c (loc_descriptor_from_tree): Handle pre- and
1409 post-increments/decrements.
1411 2004-03-18 Bob Wilson <bob.wilson@acm.org>
1413 * config/xtensa/xtensa.c (current_function_arg_words): Delete.
1414 (xtensa_builtin_saveregs): Use current_function_args_info.arg_words.
1415 (xtensa_va_start): Remove assignment to current_function_arg_words.
1417 2004-03-18 Richard Sandiford <rsandifo@redhat.com>
1419 * alias.c (record_set): Detect the case where a register is assigned
1420 a new value that has the same base term as the old one.
1422 2004-03-18 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1424 * doloop.c: Removed.
1425 * loop-doloop.c: New file.
1426 * Makefile.in (doloop.o): Remove.
1427 (loop-doloop.o): New.
1428 * cfgloop.h (get_loop_level, doloop_optimize_loops): Declare.
1429 * cfgloopanal.c (get_loop_level): New function.
1430 * loop-iv.c (iv_number_of_iterations): Handle case when loop
1431 is leaved immediatelly.
1432 * loop.c (strength_reduce): Do not call doloop optimization.
1433 * loop.h (LOOP_BCT): Removed.
1434 * passes.c (rest_of_handle_loop_optimize): Do not use LOOP_BCT.
1435 (rest_of_handle_loop2): Call doloop_optimize_loops.
1436 (rest_of_compilation): Test for optimizations moved to
1437 rest_of_handle_loop2.
1439 2004-03-17 Fariborz Jahanian <fjahanian@apple.com>
1441 * config/rs6000/rs6000.c (rs6000_stack_info): correct reg_size
1443 (rs6000_emit_prologue): Ditto.
1444 (rs6000_emit_epilogue): Ditto.
1445 * config/rs6000/rs6000.h: Definition of DWARF_CIE_DATA_ALIGNMENT
1446 macro for mixed mode.
1448 2004-03-18 Jan Hubicka <jh@suse.cz>
1450 * predict.c (propagate_freq): Compute correctly frequency of
1453 2004-03-17 Eric Christopher <echristo@redhat.com>
1455 * builtins.c (apply_args_size): Use reg_raw_mode.
1456 (apply_result_size): Ditto.
1458 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1461 * config/rtems.h: Add STD_LIB_SPEC and LIB_SPEC.
1463 2004-03-17 Jakub Jelinek <jakub@redhat.com>
1465 * config/rs6000/t-linux64 (bispecs): Don't add -mlong-double-128 for
1466 32-bit builds when defaulting to 32-bit.
1468 2004-03-17 Jan Hubicka <jh@suse.cz>
1470 * cfgrtl.c (rtl_create_basic_block): Pre-allocate basic_block_info
1473 2004-03-17 James E Wilson <wilson@specifixinc.com>
1475 * config/mips/mips.md (zero_extendsidi2): Add length attribute.
1476 (hazard_nop): Change type to nop.
1477 (type): Split arith into arith, shift, slt, clz. Delete darith.
1478 Fix all uses. Change arith to multi if more than one insn emitted.
1479 * config/mips/5400.md (ir_vr54_arith): Likewise.
1480 * config/mips/5500.md (ir_vr55_arith): Likewise.
1481 * config/mips/7000.md (rm7_int_other): Likewise.
1482 * config/mips/9000.md (rm9k_int): Likewise.
1483 * config/mips/sr71k.md (ir_sr70_arith): Likewise.
1485 2004-03-17 Joel Brobecker <brobecker@gnat.com>
1487 * dwarf2out.c (subrange_type_die): Define new variable "subtype"
1488 to hold the subtype tree instead of recomputing it several times.
1490 2004-03-17 Kazu Hirata <kazu@cs.umass.edu>
1492 * config/mn10300/mn10300.c (notice_update_cc): Don't handle
1494 * config/mn10300/mn10300.md (cc): Remove "invert".
1496 2004-03-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1498 * builtins.c (integer_valued_real_p): Add builtin rint.
1499 (fold_builtin): Likewise.
1500 * convert.c (convert_to_real): Likewise.
1502 * convert.c (convert_to_real): Fix typos in `long double'
1505 2004-03-16 Mark Mitchell <mark@codesourcery.com>
1508 * fold-const.c (fold): Set TREE_NO_UNUSED_WARNING on implicitly
1509 generated COMPOUND_EXPRs.
1511 2004-03-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1513 * config/h8300/t-rtems (h8300-*-rtems*): New.
1515 2004-03-16 Eric Christopher <echristo@redhat.com>
1517 * doc/cppopts.texi(fwide-exec-charset): Fix typo.
1519 2004-03-16 Kazu Hirata <kazu@cs.umass.edu>
1521 * config/i386/i386-protos.h: Add a prototype for
1522 ix86_reverse_condition.
1523 * config/i386/i386.c (ix86_reverse_condition): New.
1524 * config/i386/i386.h (REVERSE_CONDITION): Use
1525 ix86_reverse_condition.
1526 * config/i386/i386.md: Use ix86_reverse_condition instead of
1529 2004-03-16 J. Brobecker <brobecker@gnat.com>
1531 * dwarf2out.c (loc_descriptor_from_tree): Add handling for MIN_EXPR.
1533 2004-03-16 Nathanael Nerode <neroden@gcc.gnu.org>
1536 * Makefile.in: Pass $(INCLUDES) down to libgcc.mk explicitly.
1538 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
1540 * c-common.c (c_common_type_for_mode): Build vector types on
1542 (handle_mode_attribute): Deprecate using the mode attribute
1543 to create vector types. Fix indentation.
1544 (vector_type_node_list): Remove.
1545 (handle_vector_size_attribute): Create vector types on demand.
1546 Strip a NON_LVALUE_EXPR from the attribute if there is one.
1547 * c-typeck.c (comptypes): Make vector types compatible if they
1548 have the same underlying mode.
1549 (convert_for_assignment): Use comptypes to convert between
1551 * tree.c (build_common_tree_nodes_2): Do not create vector types.
1552 * config/arm/arm.c (arm_init_iwmmxt_builtins): Create necessary
1554 * tree.h: Remove vector types.
1555 * config/i386/i386.c (i386_init_mmx_sse_builtins): Likewise.
1556 * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
1557 (V16QI_type_node, V2SI_type_node, V2SF_type_node, V4HI_type_node,
1558 V4SI_type_node, V4SF_type_node, V8HI_type_node): New globals.
1559 * doc/extend.texi (Vector Types): Document how to use the
1560 vector_size attribute to create vectors, rather than mode.
1562 * config/arm/mmintrin.h: Use vector_size attribute, not mode.
1563 * config/i386/emmintrin.h: Likewise.
1564 * config/i386/mmintrin.h: Likewise.
1565 * config/i386/xmmintrin.h: Likewise.
1566 * config/sh/ushmedia.h: Likewise.
1568 2004-03-16 Kazu Hirata <kazu@cs.umass.edu>
1570 * config/freebsd-spec.h, config/arc/arc-protos.h,
1571 config/arm/aout.h, config/arm/elf.h, config/arm/freebsd.h,
1572 config/arm/linux-gas.h, config/arm/semi.h,
1573 config/cris/cris-protos.h, config/i386/xm-djgpp.h,
1574 config/ia64/freebsd.h, config/mips/7000.md,
1575 config/mips/9000.md, config/ns32k/ns32k-protos.h,
1576 config/sparc/pbd.h: Update copyright.
1578 2004-03-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1581 * config.gcc: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff.
1583 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
1585 * combine.c (combine_simplify_rtx): Remove the "last"
1586 parameter and its documentation. Adjust recursive calls.
1587 (simplify_logical): Always perform the only simplification
1588 controlled by "last", if the simplified expression is
1590 (try_combine): Do not pass the "last" parameter to
1591 combine_simplify_rtx.
1593 2004-03-16 Richard Sandiford <rsandifo@redhat.com>
1596 * config/mips/mips.md (UNSPEC_GP): New constant.
1597 * config/mips/mips.c (CONST_GP_P): Expect the CONST to contain
1598 an UNSPEC instead of (reg $gp).
1599 (mips16_gp_pseudo_reg): Change accordingly.
1600 (print_operand): Print $gp directly when handling CONST_GP_P.
1602 2004-03-16 Richard Zidlicky <rz@linux-m68k.org>
1604 * config.gcc, config/m68k/linux.h: Implement with-cpu for m68k-linux.
1605 * longlong.h: Make code 68060 clean when compiling for m68060.
1607 2004-03-16 Richard Zidlicky <rz@linux-m68k.org>
1609 * config/m68k/m68k.md: Fix constraints for bitfield instructions.
1610 * doc/md.texi: Clarify description of "i" constraint.
1612 2004-03-15 James E Wilson <wilson@specifixinc.com>
1614 * config/mips/mips.md (type): Split load into load, fpload, fpidxload.
1615 Split store into store, fpstore, fpidxstore. Fix all uses.
1616 * config/mips/5400.md (ir_vr54_load, ir_vr54_store, ir_vr54_fstore):
1618 * config/mips/5500.md (ir_vr55_load, i5_vr55_store): Likewise.
1619 * config/mips/7000.md (rm7_ld, rm7_st): Likewise.
1620 * config/mips/9000.md (rm9k_load, rm9k_store): Likewise.
1621 * config/mips/sr71k.md (ir_sr70_load, ir_sr70_store, ir_sr70_fload,
1622 ir_sr70_fstore): Likewise.
1624 2004-03-15 Richard Henderson <rth@redhat.com>
1627 * except.c (collect_one_action_chain): Record action for cleanup
1628 outer of exception spec.
1630 2004-03-15 Ian Lance Taylor <ian@wasabisystems.com>
1632 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
1633 Fix the check for abort and only do the mmap if we can.
1635 2004-03-15 Eric Botcazou <ebotcazou@act-europe.fr>
1637 * config/sparc/sparc.h: Rework comments about the code model
1638 in 64-bit environment and the mode 'Pmode'.
1639 * doc/invoke.texi (SPARC options): Rework description of the
1640 different code models supported in 64-bit environment.
1642 2004-03-15 Kazu Hirata <kazu@cs.umass.edu>
1644 * defaults.h (REVERSIBLE_CC_MODE): Define.
1645 * jump.c (reversed_comparison_code_parts): Don't check if
1646 REVERSIBLE_CC_MODE is defined.
1648 2004-03-15 Kazu Hirata <kazu@cs.umass.edu>
1650 * c-incpath.c, c-incpath.h, c-pch.c, c.opt, cppexp.c,
1651 et-forest.h, genattr.c, ggc-none.c, hosthooks-def.h,
1652 hosthooks.h, params.h, ra-colorize.c, web.c,
1653 config/darwin-c.c, config/alpha/freebsd.h, config/arm/pe.c,
1654 config/avr/avr-protos.h, config/avr/avr.md,
1655 config/fr30/fr30-protos.h, config/fr30/fr30.md,
1656 config/h8300/fixunssfsi.c, config/i386/darwin.h,
1657 config/i386/freebsd.h, config/i386/freebsd64.h,
1658 config/ia64/hpux.h, config/ia64/unwind-ia64.c,
1659 config/ip2k/libgcc.S, config/m32r/xm-m32r.h,
1660 config/mmix/mmix-modes.def, config/ns32k/netbsd.h,
1661 config/ns32k/ns32k.md, config/pa/pa64-hpux.h,
1662 config/pa/pa64-regs.h, config/rs6000/aix41.h,
1663 config/rs6000/aix43.h, config/rs6000/host-darwin.c,
1664 config/sparc/aout.h, config/sparc/freebsd.h,
1665 config/sparc/litecoff.h, config/vax/vax-protos.h,
1666 doc/hostconfig.texi, doc/include/gcc-common.texi: Update
1669 2004-03-15 Paul Brook <paul@codesourcery.com>
1671 * config/arm/arm.c (thumb_expand_prologue): Tie prologue insns to fp.
1673 2004-03-15 Gabriel Dos Reis <gdr@integrable-solutions.net>
1675 * c-pretty-print.c (pp_c_semicolon): Fix formatting.
1676 (pp_c_cv_qualifier): Document.
1677 (pp_c_space_for_pointer_operator): Likewise.
1678 (pp_c_integer_constant): Likewise.
1679 (pp_c_identifier): Likewise.
1680 (pp_c_init_declarator): Don't print function body.
1682 2004-03-14 Joseph S. Myers <jsm@polyomino.org.uk>
1684 * doc/contrib.texi, doc/extend.texi, doc/gcov.texi,
1685 doc/install.texi, doc/invoke.texi, doc/makefile.texi,
1686 doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi: Capitalize
1687 "gcc", "g++" and "g77" or mark up with appropriate markup. Adjust
1688 wording and grammar.
1690 2004-03-14 Roger Sayle <roger@eyesopen.com>
1692 * alias.c (get_alias_set): Replace calls via (*lang_hooks.foo) ()
1693 with lang_hooks.foo ().
1694 * builtins.c (expand_builtin_va_arg): Likewise.
1695 * c-common.c (fname_as_string, c_common_truthvalue_conversion,
1696 c_common_type_for_mode, c_common_nodes_and_builtins,
1697 handle_mode_attribute, handle_vector_size_attribute): Likewise.
1698 * c-convert.c (convert): Likewise.
1699 * c-format.c (check_format_types): Likewise.
1700 * c-objc-common.c (c_tree_printer): Likewise.
1701 * c-typeck.c (build_unary_op, build_conditional_expr,
1702 build_binary_op): Likewise.
1703 * calls.c (try_to_integrate, expand_call,
1704 emit_library_call_value_1): Likewise.
1705 * cgraph.c (cgraph_node_name, cgraph_function_possibly_inlined_p):
1707 * cgraphunit.c (record_call_1, cgraph_analyze_function,
1708 cgraph_expand_function): Likewise.
1709 * convert.c (convert_to_pointer, convert_to_integer): Likewise.
1710 * coverage.c (build_fn_info_type, build_ctr_info_type,
1711 build_gcov_info, create_coverage): Likewise.
1712 * dbxout.c (dbxout_init): Likewise.
1713 * diagnostic.c (diagnostic_report_current_function): Likewise.
1714 * dojump.c (do_jump): Likewise.
1715 * dwarf2out.c (dwarf2_name): Likewise.
1716 * except.c (init_eh): Likewise.
1717 * explow.c (expr_size, int_expr_size): Likewise.
1718 * expmed.c (make_tree, const_mult_add_overflow_p, expand_mult_add):
1720 * expr.c (store_expr, store_constructor, safe_from_p,
1721 expand_expr_real, do_store_flag, try_casesi): Likewise.
1722 * function.c (push_function_context_to, pop_function_context_from,
1723 free_after_parsing, assign_stack_local_1, assign_stack_temp_for_type,
1724 put_var_into_stack, allocate_struct_function, current_function_name):
1726 * integrate.c (copy_decl_for_inlining, expand_inline_function):
1728 * langhooks.c (lhd_clear_binding_stack, write_global_declarations,
1729 lhd_print_error_function): Likewise.
1730 * opts.c (handle_option, decode_options): Likewise.
1731 * passes.c (open_dump_file): Likewise.
1732 * print-tree.c (print_node): Likewise.
1733 * stmt.c (expand_fixup, fixup_gotos, expand_asm_operands,
1734 expand_decl_cleanup, emit_case_nodes): Likewise.
1735 * stor-layout.c (variable_size): Likewise.
1736 * toplev.c (announce_function, wrapup_global_declarations,
1737 check_global_declarations, compile_file, default_tree_printer,
1738 process_options, lang_dependent_init, finalize): Likewise.
1739 * tree-dump.c (dequeue_and_dump): Likewise.
1740 * tree-inline.c (remap_decl, remap_block, copy_body_r,
1741 initialize_inlined_parameters, declare_return_variable,
1742 inlinable_function_p, expand_call_inline, optimize_inline_calls,
1743 walk_tree, copy_tree_r): Likewise.
1744 * tree-optimize.c (tree_rest_of_compilation): Likewise.
1745 * tree.c (decl_assembler_name, tree_size, size_in_bytes, staticp,
1746 unsafe_for_reeval, get_unwidened, get_narrower, get_callee_fndecl,
1747 variably_modified_type_p, dump_tree_statistics): Likewise.
1748 * varasm.c (assemble_variable, compare_constant, copy_constant,
1749 force_const_mem, compute_reloc_for_constant, output_constant,
1750 output_addressed_constants, initializer_constant_valid_p): Likewise.
1752 2004-03-14 Kelley Cook <kcook@gcc.gnu.org>
1754 * doc/install.texi: Make autoconf 2.13 the exception, not the rule.
1756 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
1758 * doc/install.texi: Reflect autoconf and automake version for
1759 libffi. Update autoconf version to 2.59.
1761 2004-03-13 Roger Sayle <roger@eyesopen.com>
1763 * fold-const.c (negate_expr, operand_equal_for_comparison_p,
1764 optimize_bit_field_compare, decode_field_reference, all_ones_mask_p,
1765 make_range, build_range_check, fold_range_test, unextend,
1766 constant_boolean_node, fold_binary_op_with_conditional_arg,
1767 fold_truthop, fold_mathfn_compare, fold_inf_compare,
1768 fold_single_bit_test, fold): Replace calls via (*lang_hooks.foo) ()
1769 with lang_hooks.foo ().
1771 2004-03-14 Richard Earnshaw <rearnsha@arm.com>
1773 * arm.h (EXTRA_CONSTRAINT_STR_ARM): Update comment.
1775 2004-03-13 Dara Hazeghi <dhazeghi@yahoo.com>
1777 * doc/install.texi: Note status of -fnew-ra.
1779 2004-03-13 Eric Botcazou <ebotcazou@libertysurf.fr>
1782 * expr.c (store_expr): Call emit_queue before generating the move
1783 from the temporary to the original target. Protect the temporary
1786 2004-03-13 Jakub Jelinek <jakub@redhat.com>
1789 * config/s390/s390.c (legitimize_pic_address): Don't abort on UNSPEC
1790 other than UNSPEC_GOTOFF.
1792 2004-03-13 Richard Earnshaw <rearnsha@arm.com>
1794 * arm.c (arm_legitimate_address_p): New argument, OUTER. Pass through
1795 to arm_legitimate_index_p. Update all callers with SET as default
1797 (arm_legitimate_index_p): New argument, OUTER. Restrict the index
1798 range if OUTER is a sign-extend operation on QImode. Correctly
1799 reject shift operations on sign-extended QImode addresses.
1800 (bad_signed_byte_operand): Delete.
1801 (arm_extendqisi_mem_op): New function.
1802 * arm.h (EXTRA_CONSTRAINT_ARM): Delete. Replace with...
1803 (EXTRA_CONSTRAINT_STR_ARM): ... this. Handle extended address
1805 (CONSTRAINT_LEN): New.
1806 (EXTRA_CONSTRAINT): Delete. Replace with...
1807 (EXTRA_CONSTRAINT_STR): ... this.
1808 (PREDICATE_CODES): Remove bad_signed_byte_operand.
1809 * arm.md (extendqihi_insn): Use new constraint Uq. Rework. Length
1810 is now always default.
1811 (define_splits for bad sign-extend loads): Delete.
1812 (arm_extendqisi, arm_extendqisi_v5): Likewise.
1813 * arm/vfp.md (arm_movsi_vfp, arm_movdi_vfp, movsf_vfp, movdf_vfp):
1814 Rework 'U' constraint to 'Uv'.
1815 * arm-protos.h: Remove bad_signed_byte_operand. Add
1816 arm_extendqisi_mem_op.
1817 * doc/md.texi (ARM constraints): Rename VFP constraint (now Uv).
1820 2004-03-13 Alan Modra <amodra@bigpond.net.au>
1822 * config/rs6000/rs6000.c (rs6000_va_arg): Replace SPLIT_COMPLEX_ARGS
1823 with targetm version.
1826 * config/rs6000/rs6000.h (UNITS_PER_ARG, RS6000_ARG_SIZE): Delete.
1827 (HARD_REGNO_MODE_OK): Disallow TFmode for fp31.
1828 * config/rs6000/rs6000.c (rs6000_arg_size): New function.
1829 Update all users of RS6000_ARG_SIZE.
1830 (function_arg_advance): Count fregno using mode size.
1831 (function_arg): Handle long double split over regs and memory.
1832 (function_arg_partial_nregs): Likewise.
1833 (rs6000_va_arg): Repackage complex args.
1835 2004-03-13 Dean Ferreyra <dferreyra@igc.org>
1838 * config/avr/avr.c (avr_progmem_p): Add "attributes" parameter.
1839 (avr_insert_attributes): Pass "attributes" to avr_progmem_p.
1840 * config/avr/avr-protos.h (avr_progmem_p): Change prototype.
1842 2004-03-12 Jakub Jelinek <jakub@redhat.com>
1844 * config/rs6000/rs6000-protos.h (rs6000_output_dwarf_dtprel): Add
1846 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): New.
1847 * config/rs6000/rs6000.h (ASM_OUTPUT_DWARF_DTPREL): Define.
1849 2003-03-12 Andrew Pinski <apinski@apple.com>
1851 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
1852 Use ret instead of result. Use addr instead of base.
1854 2004-03-12 David Edelsohn <edelsohn@gnu.org>
1856 * doc/install.texi (*-ibm-aix*): Document assembler and achiver
1857 fixes required by libstdc++ and update installation instructions
1860 2004-03-12 Danny Smith <dannysmith@users.sourceforge.net>
1862 * config/i386/winnt.c (i386_pe_strip_name_encoding_full): Strip
1863 leading '@' on fastcall symbols before stripping suffix.
1865 2004-03-12 Roger Sayle <roger@eyesopen.com>
1867 * combine.c (unmentioned_reg_p): New function to check whether an
1868 expression is a "specialization" of another, i.e. that there are
1869 no registers or memory references mentioned in the first that don't
1870 appear in the second.
1871 (unmentioned_reg_p_1): New helper subroutine of unmentioned_reg_p.
1872 (combine_instructions): Also try combining instructions using the
1873 REG_EQUAL note from a preceding log-linked instruction.
1875 2004-03-12 Roger Sayle <roger@eyesopen.com>
1877 * config/i386/i386.c (ix86_split_ashrdi): Optimize shift by 63.
1879 2004-03-12 Matt Austern <austern@apple.com>
1881 * target.h (struct gcc_target): New target hook, unwind_label.
1882 * target-def.h (TARGET_ASM_EMIT_UNWIND_LABEL): New hook.
1883 * output.h (default_emit_unwind_label): New function.
1884 * default.h (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): New macro.
1885 (TARGET_USES_WEAK_UNWIND_INFO): New target macro.
1886 (TARGET_SUPPORTS_HIDDEN): New target macro.
1887 * dwarf2out.c (struct dw_fde_struct): Add field for function decl
1888 that corresponds to this FDE.
1889 (FRAME_BEGIN_LABEL): Allow target to override default label.
1890 (output_call_frame_info): If FDEs are linknonce, then use extra
1891 indirection for FDE encoding, output a label for each FDE, and
1892 output an empty label for each function without an FDE.
1893 (dwarf2out_begin_prologue): Set up decl field when creating an FDE.
1894 * varasm.c (globalize_decl): Call ASM_MAKE_LABEL_LINKONCE for
1895 decls with DECL_ONE_ONLY set, if that macro is defined.
1896 (make_decl_one_only): Don't use DECL_COMMON if we're compiling
1897 for a SUPPORTS_ONE_ONLY target.
1898 * config/darwin-protos.h (darwin_unique_section): Declare.
1899 (darwin_asm_named_section): Likewise.
1900 (darwin_section_type_flags): Likewise.
1901 (darwin_non_lazy_pcrel): Likewise.
1902 (darwin_emit_unwind_label): Likewise.
1903 (darwin_make_decl_one_only): Likewise.
1904 * config/darwin.c (machopic_finish): Get rid of tweak that
1905 eliminate stubs for symbols that are defined.
1906 (darwin_encode_section_info): Don't treat weak functions as defined.
1907 (darwin_make_decl_one_only): Define.
1908 (darwin_asm_named_section): Likewise.
1909 (darwin_section_type_flags): Likewise.
1910 (darwin_unique_section): Likewise.
1911 (darwin_emit_unwind_label): Likewise.
1912 (darwin_non_lazy_pcrel): Likewise.
1913 (darwin_asm_output_dwarf_delta): Difference between two labels is
1914 local only if both labels are local.
1915 * config/darwin.h (MAKE_DECL_ONE_ONLY): Define.
1916 (ASM_MAKE_LABEL_LINKONCE): Likewise.
1917 (TARGET_SUPPORTS_HIDDEN): Likewise.
1918 (TARGET_USES_WEAK_UNWIND_INFO): Likewise.
1919 (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): Likewise.
1920 (FRAME_BEGIN_LABEL): Likewise.
1921 (ASM_DECLARE_OBJECT_NAME): Make references to weak symbols indirect.
1922 (ASM_DECLARE_FUNCTION_NAME): Likewise.
1923 (darwin_eh_frame_section): Give __eh_frame section the coalesced flag.
1924 (TARGET_ASM_UNIQUE_SECTION): Define.
1925 (EH_FRAME_SECTION_NAME): Define.
1926 (EH_FRAME_SECTION_ATTR): Likewise.
1927 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
1928 (TARGET_ASM_NAMED_SECTION): Likewise.
1929 (TARGET_SECTION_TYPE_FLAGS): Likewise.
1930 * doc/tm.texi: Document TARGET_USES_WEAK_UNWIND_INFO,
1931 TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY, TARGET_SUPPORTS_HIDDEN,
1932 TARGET_ASM_EMIT_UNWIND_LABEL.
1934 2004-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1936 * builtins.c (expand_builtin_mathfn): Add pow10* to the
1937 existing exp10* case.
1938 (expand_builtin): Likewise.
1940 2004-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
1942 * doc/tm.texi (registers) <Values in Registers>: Add
1943 entry for REGMODE_NATURAL_SIZE.
1945 2004-03-12 Richard Henderson <rth@redhat.com>
1948 * target.h (struct gcc_target): Move calls substructure before
1949 booleans. Add split_complex_arg.
1950 * function.c (assign_parms, split_complex_args): Use it.
1951 * calls.c (expand_call): Likewise.
1952 (split_complex_values): Likewise. Check for splittable types
1953 before allocating memory.
1954 (split_complex_types): Likewise.
1955 * system.h (SPLIT_COMPLEX_ARGS): Poison.
1956 * expr.h (SPLIT_COMPLEX_ARGS): Remove.
1957 * target-def.h (TARGET_SPLIT_COMPLEX_ARG): New.
1958 * config/alpha/alpha.c (alpha_split_complex_arg): New.
1959 (TARGET_SPLIT_COMPLEX_ARG): New.
1960 * config/alpha/alpha.h (SPLIT_COMPLEX_ARGS): Remove.
1961 * config/rs6000/rs6000.c (TARGET_SPLIT_COMPLEX_ARG): New.
1962 (rs6000_override_options): Zap it for non-AIX.
1963 (rs6000_function_value): Use targetm.calls.split_complex_arg.
1964 * config/rs6000/rs6000.h (SPLIT_COMPLEX_ARGS): Remove.
1965 * config/xtensa/xtensa.c (TARGET_SPLIT_COMPLEX_ARG): New.
1966 * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Remove.
1967 * doc/tm.texi (TARGET_SPLIT_COMPLEX_ARG): Modify from old
1968 SPLIT_COMPLEX_ARGS entry.
1970 2004-03-11 Richard Henderson <rth@redhat.com>
1972 * config/alpha/alpha.c (xfloating_ops, vax_cvt_ops): New.
1973 (alpha_lookup_xfloating_lib_func): Use them, return rtx.
1974 (alpha_emit_xfloating_arith): Update to match.
1975 (alpha_emit_xfloating_compare): Likewise.
1976 (alpha_emit_xfloating_cvt): Likewise.
1977 (alpha_emit_xfloating_libcall): Take already built symbol,
1979 * config/alpha/alpha.md (extendsftf2, extenddftf2): Take
1982 2004-03-11 Richard Henderson <rth@redhat.com>
1985 * config/alpha/alpha.h (STACK_BOUNDARY): Set to 128.
1987 * simplify-rtx.c (simplify_relational_operation): Fix typo.
1989 2004-03-11 Richard Henderson <rth@redhat.com>
1992 * except.c (remove_unreachable_regions): Look thru CALL_PLACEHOLDER.
1994 2004-03-11 Ulrich Weigand <uweigand@de.ibm.com>
1997 * calls.c (load_register_parameters): If BLOCK_REG_PADDING is not
1998 defined, pass small BLKmode values in registers in the low-order part.
2000 2004-03-11 Ulrich Weigand <uweigand@de.ibm.com>
2002 * combine.c (if_then_else_cond): Check for NULL return value of
2003 simplify_gen_subreg.
2005 2004-03-11 Richard Sandiford <rsandifo@redhat.com>
2008 * config/mips/mips.h (UNITS_PER_FPVALUE): Fix value for
2009 TARGET_SINGLE_FLOAT.
2011 2004-03-11 Steve Ellcey <sje@cup.hp.com>
2013 * config/ia64/hpux.h (TARGET_INIT_LIBFUNCS): Add undef.
2014 * config/ia64/ia64.h (TARGET_INIT_LIBFUNCS): Add define.
2015 * config/ia64/ia64.c (ia64_init_libfuncs): New.
2016 (ia64_hpux_init_libfuncs): Add call to ia64_init_libfuncs.
2018 2004-03-11 Roger Sayle <roger@eyesopen.com>
2020 * fold-const.c (negate_expr_p) <RSHIFT_EXPR>: We can optimize
2021 -((int)X>>C) where C is an integer constant one bit less than the
2022 size of X into (unsigned)X>>C. Similarly for unsigned->signed.
2023 (negate_expr) <RSHIFT_EXPR>: Implement the above transformations.
2025 * simplify-rtx.c (simplify_unary_operation): Also implement the
2026 above transformations at the RTL level.
2028 2004-03-11 Alan Modra <amodra@bigpond.net.au>
2030 * real.c (encode_ibm_extended): Do round low word.
2032 2004-03-11 Ben Elliston <bje@wasabisystems.com>
2034 * config/arm/arm.md (is_xscale): Comment this attribute and move
2035 it a bit further up in the file, closer to related attributes.
2037 2004-03-11 Eric Botcazou <ebotcazou@libertysurf.fr>
2039 * config/host-solaris.c (sol_gt_pch_use_address): Add
2040 missing terminating marker to comment.
2042 2004-03-11 Richard Sandiford <rsandifo@redhat.com>
2044 * config/mips/mips.md: Use move_operand in splitters for 64-bit moves.
2045 (movdi, movsi, movhi, movqi, movsf, movdf): Remove predicates.
2046 (*movdi_32bit_mips16, *movsi_mips16, *movhi_mips16, *movqi_mips16)
2047 (*movsf_mips16, *movdf_mips16): Name unnamed patterns. Use
2048 move_operand as source predicate in all cases.
2049 (*movdi_32bit): Renamed from movdi_internal. Remove 'F' constraint.
2050 Test reg_or_0_operand. Use move_operand as source predicate.
2051 (*movdi_64bit): Renamed from movdi_internal2. Test reg_or_0_operand.
2052 (*movdi_64bit_mips16): Renamed from movdi_internal2_mips16.
2053 (*movsi_internal): Renamed from movsi_internal. Test reg_or_0_operand.
2054 (movhi, movqi, movsf, movdf): Use mips_legitimize_move.
2055 (*movhi_internal): Renamed from movhi_internal. Test reg_or_0_operand.
2056 Use move_operand as source predicate. Remove 'K' constraint.
2057 (*movqi_internal): Likewise movqi_internal.
2058 (*movsf_hardfloat): Renamed from movsf_internal1. Test
2059 reg_or_0_operand. Use move_operand as source predicate.
2060 (*movsf_softfloat): Likewise movsf_internal2.
2061 (*movdf_hardfloat_64bit): Likewise movsf_internal1a.
2062 (*movdf_hardfloat_32bit): Likewise movsf_internal1b.
2063 (*movdf_softfloat): Likewise movdf_internal2.
2064 * config/mips/mips.c (move_operand): Match arbitrary CONST_INTs
2065 for DImode if !TARGET_64BIT.
2066 (mips_legitimize_move): Simplify accordingly.
2068 2004-03-11 Josef Zlomek <zlomekj@suse.cz>
2071 * var-tracking.c (struct variable_def): Added field refcount.
2072 (variable_htab_free): Decrease the refcount and delete variable
2073 only if there are no more references.
2074 (unshare_variable): New function.
2075 (vars_copy_1): Increase refcount instead of copying the variable.
2076 (variable_union): Share the variables where possible, unshare
2077 the variables if needed.
2078 (variable_different_p): Return false if var1 and var2 are
2080 (variable_was_changed): Init the refcount of new variable.
2081 (set_frame_base_location): Unshare variable if needed.
2082 (set_variable_part): Init the refcount of new variable.
2083 Unshare the variables if needed.
2084 (delete_variable_part): Unshare the variables if needed.
2085 (emit_notes_for_differences_1): Init the refcount of new variable.
2086 (vt_add_function_parameters): Do not add function parameters to
2087 IN set of ENTRY_BLOCK_PTR because it is unused anyway.
2088 (vt_initialize): Do not add frame_base_decl to IN set of
2089 ENTRY_BLOCK_PTR because it is unused anyway.
2091 2004-03-11 Josef Zlomek <zlomekj@suse.cz>
2093 * var-tracking.c (vars_copy_1): Cleanup and speedup chain operations.
2094 (vars_copy): Likewise.
2095 (variable_union): Likewise.
2096 (set_variable_part): Likewise.
2097 (delete_variable_part): Likewise.
2099 2004-03-11 Kazu Hirata <kazu@cs.umass.edu>
2101 * c-typeck.c, combine.c, cse.c, dominance.c, et-forest.h,
2102 ggc-page.c, var-tracking.c, config/fp-bit.c, config/c4x/c4x.c,
2103 config/cris/cris.c, config/i386/ppro.md, config/i860/i860.c,
2104 config/i860/i860.h, config/m32r/m32r.h, config/m32r/xm-m32r.h,
2105 config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
2106 config/mips/mips.c, config/mmix/mmix.c, config/ns32k/ns32k.h,
2107 config/pa/pa.c, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
2108 config/pdp11/pdp11.h, config/rs6000/rs6000.c,
2109 config/stormy16/stormy16.c: Fix comment typos and formatting.
2111 2004-03-11 Nathanael Nerode <neroden@gcc.gnu.org>
2113 * configure: Regenerate, since I forgot to while committing Paolo's
2116 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
2119 Move language detection to the top level.
2120 * configure.ac: Remove code to detect languages,
2121 it now lives exclusively in the top level.
2122 * aclocal.m4 (gcc_AC_PROG_GNAT): Moved to the
2123 top level, renamed to ACX_PROG_GNAT.
2125 2004-03-10 Richard Henderson <rth@redhat.com>
2127 * c-pch.c (c_common_no_more_pch): Update for gt_pch_use_address
2129 * config.host (*-*-solaris2*, *-*-linux*): Add out_host_hook_obj
2130 and host_xmake_file fragments.
2131 * ggc-common.c (gt_pch_save): Update for gt_pch_get_address change.
2132 (gt_pch_restore): Similarly for gt_pch_use_address.
2133 (default_gt_pch_get_address): New.
2134 (mmap_gt_pch_get_address): Split out of gt_pch_save.
2135 (default_gt_pch_use_address): Split out of gt_pch_restore.
2136 (mmap_gt_pch_use_address): Likewise.
2137 * hooks.c (hook_voidp_size_t_null): Remove.
2138 (hook_bool_voidp_size_t_false): Remove.
2139 * hooks.h: Likewise.
2140 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): Use one of the
2141 default_ or mmap_ definitions.
2142 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Likewise.
2143 * hosthooks.h (struct host_hooks): Update gt_pch_get_address
2144 and gt_pch_use_address.
2145 * config/host-linux.c, config/host-solaris.c: New files.
2146 * config/x-linux, config/x-solaris: New files.
2147 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_get_address):
2148 Update for changed definition.
2149 (darwin_rs6000_gt_pch_use_address): Likewise.
2150 * doc/hostconfig.texi: Update docs.
2152 2004-03-10 Richard Henderson <rth@redhat.com>
2155 * c-decl.c (grokdeclarator): Don't warn for duplicate qualifiers
2156 except for pedantic c90 mode.
2158 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
2160 * configure.ac: Bump AC_PREREQ to 2.59.
2161 * configure: Regenerate.
2163 2004-03-10 Uros Bizjak <uros@kss-loka.si>
2165 * optabs.h (enum optab_index): Add new OTI_exp10 and OTI_exp2.
2166 (exp10_optab, exp2_optab): Define corresponding macros.
2167 * optabs.c (init_optabs): Initialize exp10_optab and exp2_optab.
2168 * genopinit.c (optabs): Implement exp10_optab and exp2_optab
2169 using exp10?f2 and exp2?f2 patterns.
2170 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP10{,F,L}
2171 using exp10_optab, and BUILT_IN_EXP2{,F,L} using exp2_optab.
2172 (expand_builtin): Expand BUILT_IN_EXP10{,F,L} and BUILT_IN_EXP2{,F,L}
2173 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
2175 * config/i386/i386.md (exp10sf2, exp10df2, exp10xf2, exp2sf2,
2176 exp2df2, exp2xf2): New patterns to implement exp10, exp10f, exp10l,
2177 exp2, exp2f and exp2l built-ins as inline x87 intrinsics.
2179 2004-03-10 Anthony Green <green@redhat.com>
2181 * doc/invoke.texi (ARM Options): Fix -mpfu typo.
2183 2004-03-10 David Edelsohn <edelsohn@gnu.org>
2185 * config/rs6000/aix.h (TARGET_OS_CPP_BUILTINS): Rename to ...
2186 (TARGET_OS_AIX_CPP_BUILTINS): this. Conditionally define
2188 * config/rs6000/aix41.h (TARGET_OS_CPP_BUILTINS): Use
2189 TARGET_OS_AIX_CPP_BUILTINS.
2190 * config/rs6000/aix43.h (TARGET_OS_CPP_BUILTINS): Same.
2191 * config/rs6000/aix51.h (TARGET_OS_CPP_BUILTINS): Same.
2192 * config/rs6000/aix52.h (TARGET_OS_CPP_BUILTINS): Same.
2193 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Revert
2196 2004-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2198 * fold-const.c (tree_expr_nonnegative_p): Add more builtin cases.
2200 2004-03-10 David Edelsohn <edelsohn@gnu.org>
2202 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
2203 __LONGDOUBLE128 on AIX.
2205 2004-03-10 Andrew Haley <aph@redhat.com>
2207 PR optimization/14381
2208 * function.c (expand_function_end): Emit a blockage insn before
2209 the epilogue when -fnon-call-exceptions is used.
2211 * except.c (expand_start_all_catch): Make comment more accurate.
2213 2004-03-08 Joel Sherrill <joel@oarcorp.com>
2216 * config/rs6000/t-rtems: Add missing file on branch.
2218 2004-03-10 Ulrich Weigand <uweigand@de.ibm.com>
2220 * dbxout.c (dbxout_symbol_location): Do not output references
2221 to optimized-out constant pool symbols.
2223 2004-03-10 Andreas Schwab <schwab@suse.de>
2225 * config/ia64/ia64.md (divsi3, udivsi3): Remove unused variable
2228 2004-03-09 James E Wilson <wilson@specifixinc.com>
2230 * alias.c (alias_sets_might_conflict_p): New.
2231 * c-typeck.c (build_c_cast): Call it if warn_strict_aliasing > 1.
2232 * common.opt (Wstrict-aliasing=): New.
2233 * flags.h (warn_strict_aliasing): Change type to int.
2234 * opts.c (warn_strict_aliasing): Change type to int.
2235 (common_handle_option): Handle OPT_Wstrict_aliasing_.
2236 * tree.h (alias_sets_might_conflict_p): Declare it.
2237 * doc/invoke.tex (-Wstrict-aliasing=2): Document it.
2239 2004-03-10 Roman Zippel <zippel@linux-m68k.org>
2242 * config/m68k/m68k.h (FIXED_REGISTERS): Add arg pointer.
2243 (CALL_USED_REGISTERS): Likewise.
2244 (REG_CLASS_CONTENTS): Likewise.
2245 (REG_ALLOC_ORDER): New.
2246 (REGNO_REG_CLASS): Use regno_reg_class.
2247 * config/m68k/m68k.c: Add regno_reg_class array.
2249 2004-03-09 Steve Ellcey <sje@cup.hp.com>
2251 * config/ia64/ia64.md (divsi3): Fix algorithm.
2253 (setf_exp_xf): Remove '*' from name.
2254 * testsuite/gcc.dg/20040309-1.c: New test.
2256 2004-03-09 Ian Lance Taylor <ian@wasabisystems.com>
2258 * system.h (SUNOS4_SHARED_LIBRARIES): Poison.
2259 * collect2.c: Remove SUNOS4_SHARED_LIBRARIES code.
2260 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): Don't define.
2261 * config/sparc/sparc.c (sparc_aout_select_section): Remove.
2262 (sparc_aout_select_rtx_section): Don't check
2263 SUNOS4_SHARED_LIBRARIES.
2264 * config/sparc/sparc.h (SUNOS4_SHARED_LIBRARIES): Don't define.
2266 2004-03-10 Hans-Peter Nilsson <hp@axis.com>
2269 * doc/md.texi (Pattern Ordering, Dependent Patterns)
2270 (Jump Patterns, Looping Patterns): Wrap in separate "@ifset
2273 2004-03-09 Zack Weinberg <zack@codesourcery.com>
2275 * config/ia64/hpux.h (MULTILIB_DEFAULTS): Define.
2276 (LIBGCC_SPEC): Update to match.
2278 2004-03-09 Zack Weinberg <zack@codesourcery.com>
2280 * c-decl.c (last_function_parms, last_function_parm_tags)
2281 (last_function_parm_others, current_function_parms)
2282 (current_function_parm_tags, current_function_parm_others):
2284 (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES, ARG_INFO_OTHERS):
2286 (grokdeclarator): For function definitions, save the arg-info
2287 block from the declarator in DECL_ARGUMENTS.
2288 (grokparms): Do not write to last_function_parm*. Use ARG_INFO_*
2289 macros to operate on arg-info block. Can assume ARG_INFO_PARMS
2290 contains only PARM_DECLs. Improve diagnostics.
2291 (get_parm_info): Use ARG_INFO_* macros. Improve comments and
2292 diagnostics. Disable some expensive checks if not ENABLE_CHECKING.
2293 (store_parm_decls_newstyle): Take the function to operate on,
2294 and an arg-info block, as arguments; don't get anything from
2295 current_function_* globals.
2296 (store_parm_decls_oldstyle): Likewise.
2297 (store_parm_decls): Pass fndecl and its arg-info block down to
2298 store_parm_decls_newstyle/oldstyle. Send functions with empty
2299 argument lists through store_parm_decls_newstyle to reduce
2301 (pushdecl): Comment on the problems with the call to copy_node.
2302 Clear DECL_ARGUMENTS of the old node after copying it, if it
2303 is an arg-info block instead of a chain of decls.
2304 (start_function): Do not manipulate current_function_parm* or
2305 last_function_parm*.
2307 2004-03-09 Roger Sayle <roger@eyesopen.com>
2308 Andrew Pinski <pinskia@physics.uc.edu>
2310 * ifcvt.c (noce_try_sign_mask): New function to transform
2311 "x = (y < 0) ? z : 0" into the equivalent "x = (y >> C) & z".
2312 (noce_process_if_block): Call noce_try_sign_mask.
2314 2004-03-09 Andrew Pinski <apinski@apple.com>
2316 * c-typeck.c (tagged_types_tu_compatible_p):
2319 2004-03-09 Roger Sayle <roger@eyesopen.com>
2321 * simplify-rtx.c (simplify_const_relational_operation): New function
2322 renamed from simplify_relational_operation.
2323 (simplify_relational_operation): Change prototype to accept an
2324 additional mode argument. Call simplify_const_relational_operation.
2325 (simplify_gen_relational): Update simplify_relational_operation call.
2326 (simplify_ternary_operation): Update simplify_relational_operation
2327 subroutine call to use simplify_const_relational_operation instead.
2329 * rtl.h (simplify_const_relational_operation): Prototype here.
2330 (simplify_relational_operation): Add addtional mode argument.
2332 * combine.c (combine_simplify_rtx): Update calls to
2333 simplify_relational_operation.
2334 (simplify_set): Likewise.
2335 (gen_binary): Likewise.
2336 * cse.c (fold_rtx): Likewise.
2337 * dojump.c (compare_from_rtx): Likewise.
2338 (do_compare_rtx_and_jump): Likewise.
2339 * integrate.c (subst_constants): Likewise.
2340 * unroll.c (simplify_cmp_and_jump_insns): Likewise.
2342 2004-03-09 Kazu Hirata <kazu@cs.umass.edu>
2344 * config/m32r/m32r.md: Remove all define_peephole's.
2346 2004-03-09 Alan Modra <amodra@bigpond.net.au>
2348 * config/rs6000/rs6000.md: Remove trailing whitespace.
2350 2004-03-08 Eric Christopher <echristo@redhat.com>
2352 * Makefile.in (site.exp): Add libiconv variable definition.
2354 2004-03-09 Hans-Peter Nilsson <hp@axis.com>
2356 * configure: Regenerate for config/accross.m4 correction.
2358 2004-03-08 Joel Sherrill <joel@oarcorp.com>
2361 * config/rs6000/t-rtems: Add missing file on branch.
2363 2004-03-08 Roger Sayle <roger@eyesopen.com>
2366 * c-typeck.c (c_mark_addressable): A register variable should
2367 be considered global if its not automatic, i.e. TREE_PUBLIC,
2368 TREE_STATIC or DECL_EXTERNAL.
2369 * function.c (put_var_into_stack): Call abort when placing a
2370 hard register into the stack, if x_parm_reg_stack_loc is NULL.
2372 2004-03-08 Ulrich Weigand <uweigand@de.ibm.com>
2374 * config/s390/s390.md ("*extendqidi2_short_displ"): Add CC clobber.
2375 ("*extendqisi2_short_displ"): Likewise.
2377 2004-03-08 Kazu Hirata <kazu@cs.umass.edu>
2379 * config/pdp11/pdp11.c (comparison_operator_index): Remove.
2380 (comp_operator): Likewise.
2381 * config/pdp11/pdp11-protos.h: Remove corresponding
2384 2004-03-08 Eric Botcazou <ebotcazou@act-europe.fr>
2386 * expr.c (highest_pow2_factor_for_type): Rename into
2387 highest_pow2_factor_for_target. Use DECL_ALIGN instead of
2388 TYPE_ALIGN when the target is a COMPONENT_REF.
2389 (expand_assignment): Ajust call to highest_pow2_factor_for_type.
2391 2004-03-08 Alan Modra <amodra@bigpond.net.au>
2393 * config/rs6000/rs6000.c: Formatting fix.
2394 (legitimate_offset_address_p): Correct offset range check.
2396 * config/rs6000/rs6000.c (rs6000_override_options): Don't override
2397 -msoft-float by -mcpu. Consolidate similar code for MASK_MULTIPLE
2400 2004-03-07 Aldy Hernandez <aldyh@redhat.com>
2402 * config/rs6000/rs6000.md (ashrdi3): Do not call ashrdi3_no_power
2404 ("ashrdi3_no_power"): Disable for little endian.
2407 2004-03-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2409 * fold-const.c (tree_expr_nonnegative_p): Reformat checks for
2412 2004-03-08 Hans-Peter Nilsson <hp@axis.com>
2415 * configure.ac (Target-specific assembler checks) <cris-*-*>: New
2416 case, checking for -no-mul-bug-abort option.
2417 * configure, config.in: Regenerate.
2418 * doc/invoke.texi (CRIS Options): Document -mmul-bug-workaround
2419 and -mno-mul-bug-workaround.
2420 * config/cris/cris.md ("smulsi3_highpart", "umulsi3_highpart")
2421 ("mulsidi3", "umulsidi3"): Prefix output template with "%!".
2422 ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3"):
2423 Ditto. Make attribute "slottable" dependent on TARGET_MUL_BUG.
2424 * config/cris/mulsi3.asm (__Mul) [__CRIS_arch_version >= 10]: Make
2425 sure mulu.d is not last on cache-line.
2426 * config/cris/cris.h (ASM_SPEC): Translate -mno-mul-bug-workaround
2427 into -no-mul-bug-abort depending on HAVE_AS_MUL_BUG_ABORT_OPTION.
2428 (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG): New macros.
2429 (TARGET_SWITCHES): New options -mmul-bug-workaround and
2430 -mno-mul-bug-workaround.
2431 (TARGET_DEFAULT): Include TARGET_MASK_MUL_BUG.
2432 (PRINT_OPERAND_PUNCT_VALID_P): Include '!'.
2433 * config/cris/cris.c (cris_operand_extend_operator): Clarify
2434 relation to MULT in head comment.
2435 (cris_op_str): Abort for MULT.
2436 (cris_print_operand) <case '!'>: New case.
2438 2004-03-08 Alan Modra <amodra@bigpond.net.au>
2441 * dwarf2out.c (enum dw_val_class): Rename dw_val_class_float to
2442 dw_val_class_vec. Replace use throughout file.
2443 (dw_float_const): Delete.
2444 (dw_vec_const): New.
2445 (dw_val_struct_union): Rename val_float to val_vec. Replace use
2447 (add_AT_vec): Rename from add_AT_float. Add elt_size param.
2448 (same_dw_val_p): Adjust vec comparison. Use memcmp.
2449 (size_of_die): Adjust dw_val_class_vec sizing.
2450 (output_die): Output dw_val_class_vec.
2451 (insert_int, extract_int, insert_float): New functions.
2452 (add_const_value_attribute): Use insert_float for CONST_DOUBLE.
2453 Handle CONST_VECTOR.
2454 (add_location_or_const_value_attribute): Handle CONST_VECTOR.
2456 2004-03-07 Aldy Hernandez <aldyh@redhat.com>
2458 * config/rs6000/rs6000.c (rs6000_parse_abi_options): SPE and
2459 AltiVec abi cannot co-exist.
2461 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Same.
2463 2004-03-07 Jan Hubicka <jh@suse.cz>
2465 * except.c (emit_to_new_bb_before): Break fallthru edges.
2467 2004-03-07 Stephane Carrez <stcarrez@nerim.fr>
2469 * config/m68hc11/m68hc11.md ("*lshrsi3_const"): Disable for 68HC12.
2470 ("*lshrsi3"): Also accept an immediate for 68HC12.
2471 ("*ashrsi3_const"): Likewise.
2472 ("*ashrsi3"): Likewise.
2473 ("*ashlsi3_const"): Likewise.
2474 ("*ashlsi3"): Likewise.
2475 ("cmphi_1_hc12"): Compare two hard register by pushing them and
2476 comparing with a pop; don't use a split for that.
2477 ("cmphi split"): Disable compare split for 68HC12.
2479 * config/m68hc11/m68hc11.c (m68hc11_notice_update_cc): Invalidate
2480 the status operands if they have side effects.
2482 2004-03-07 Kazu Hirata <kazu@cs.umass.edu>
2484 * defaults.h (LEGITIMIZE_ADDRESS): Provide a default
2486 * config/arc/arc.h, config/fr30/fr30.h, config/frv/frv.h,
2487 config/h8300/h8300.h, config/ia64/ia64.h,
2488 config/mcore/mcore.h, config/mmix/mmix.h,
2489 config/ns32k/ns32k.h, config/pdp11/pdp11.h,
2490 config/stormy16/stormy16.h, config/v850/v850.h,
2491 config/vax/vax.h (LEGITIMIZE_ADDRESS): Remove.
2492 * doc/tm.texi (LEGITIMIZE_ADDRESS): Mention the default
2495 2004-03-07 Roger Sayle <roger@eyesopen.com>
2497 * fold-const.c (fold) <IOR_EXPR>: Fold x | x as x.
2498 <XOR_EXPR>: Fold x ^ x as zero.
2499 <AND_EXPR>: Fold x & x as x.
2501 2004-03-07 Roger Sayle <roger@eyesopen.com>
2503 * fold-const.c (fold) <EQ_EXPR>: Rewrite optimization to transform
2504 "foo++ == const" into "++foo == const+incr".
2506 2004-03-07 Richard Sandiford <rsandifo@redhat.com>
2508 * config/mips/mips.c (mips_in_small_data_p): Return false if
2511 2004-03-06 Stephane Carrez <stcarrez@nerim.fr>
2513 * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Use 2,-sp to push
2515 (expand_prologue): Don't make an interrupt or a trap handler a far
2517 (m68hc11_initial_elimination_offset): Likewise.
2519 2004-03-06 Richard Henderson <rth@redhat.com>
2521 * config/alpha/alpha.c (alpha_in_small_data_p): False for functions.
2523 2004-03-06 Kazu Hirata <kazu@cs.umass.edu>
2525 * config/ns32k/ns32k-protos.h: Add a prototype for
2526 ns32k_notice_update_cc.
2527 * config/ns32k/ns32k.c (ns32k_notice_update_cc): New.
2528 * config/ns32k/ns32k.h (NOTICE_UPDATE_CC): Call
2529 ns32k_notice_update_cc.
2531 2004-03-06 Ulrich Weigand <uweigand@de.ibm.com>
2533 * config/s390/s390.md ("load_multiple", "*load_multiple_di",
2534 "*load_multiple_si"): Allow only if reload_completed.
2535 ("store_multiple", "*store_multiple_di", "*store_multiple_si"):
2538 2004-03-06 Kazu Hirata <kazu@cs.umass.edu>
2540 * config/vax/vax-protos.h: Add a prototype for
2541 vax_notice_update_cc.
2542 * config/vax/vax.c (vax_notice_update_cc): New.
2543 * config/vax/vax.h (NOTICE_UPDATE_CC): Call
2544 vax_notice_update_cc.
2546 2004-03-06 David Edelsohn <edelsohn@gnu.org>
2548 * collect2.c (main): Only export initfunc and finifunc if
2549 LD_INIT_SWITCH not defined.
2550 (scan_prog_file): Only export constructors and destructors if
2551 LD_INIT_SWITCH not defined. Only export symbols not found in
2554 2004-03-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2556 * pa.md (icacheflush): Reorder operands to make match_scratch operand
2558 * pa.h (INITIALIZE_TRAMPOLINE): Remove unnecessary scratch argument
2559 from calls to gen_icacheflush.
2561 2004-03-06 Richard Henderson <rth@redhat.com>
2563 * config/alpha/alpha.h (MASK_LONG_DOUBLE_128): New.
2564 (TARGET_LONG_DOUBLE_128): New.
2565 (TARGET_SWITCHES): Add long-double-{128,64}.
2566 (TARGET_HAS_XFLOATING_LIBS): Default to TARGET_LONG_DOUBLE_128.
2567 (LONG_DOUBLE_TYPE_SIZE): Honor TARGET_LONG_DOUBLE_128.
2568 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): New.
2569 (WIDEST_HARDWARE_FP_SIZE): New.
2570 (TARGET_CPU_CPP_BUILTINS): Define __LONG_DOUBLE_128__.
2571 * config/alpha/alpha.c (override_options): Clear MASK_LONG_DOUBLE_128
2572 if TARGET_VAX_FLOAT.
2573 * config/alpha/osf5.h (LONG_DOUBLE_TYPE_SIZE): Remove.
2574 (TARGET_DEFAULT): Set MASK_LONG_DOUBLE_128.
2576 2004-03-06 Richard Henderson <rth@redhat.com>
2578 * config/alpha/alpha.c (alpha_swapped_comparison_operator): Fix
2579 botched rtx class conversion.
2581 2004-03-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2583 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P,
2584 BUILTIN_CBRT_P, BUILTIN_ROOT_P): New macros.
2586 * builtins.c (fold_builtin_logarithm, fold_builtin): Use new
2588 * fold-const.c (fold_mathfn_compare, fold): Likewise.
2590 2004-03-06 Eric Botcazou <ebotcazou@libertysurf.fr>
2593 * config/i386/i386.md (movv2di_internal): Conditionalize on
2594 TARGET_SSE, not TARGET_SSE2.
2596 2004-03-05 Chris Demetriou <cgd@broadcom.com>
2598 * config.gcc (mips64orion-*-elf*, mips64orionel-*-elf*): Delete
2601 2004-03-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2603 * builtins.c: Consistently use logN not log* in comments.
2605 2004-03-05 Andreas Krebbel <krebbel1@de.ibm.com>
2607 * rtl.h (mem_expr_equal_p): Function prototype added.
2608 * cfgcleanup.c (merge_memattrs): New function.
2609 (flow_find_cross_jump): Call merge_memattrs for matching insns.
2610 * emit-rtl.c (mem_expr_equal_p): New function.
2612 2004-03-05 Ziemowit Laski <zlaski@apple.com>
2614 * objc/objc-act.c (synth_module_prologue): Const-qualify
2615 objc_selector type if using the GNU runtime; fix generated
2616 signatures for objc_msg_lookup and objc_msg_lookup_super
2617 to match what GNU ObjC headers provide; reformat and clean up.
2618 (synth_self_and_ucmd_args): Use previously constructed (and
2619 hence possibly const-qualified) objc_selector type.
2621 2004-03-05 Kazu Hirata <kazu@cs.umass.edu>
2623 * doc/tm.texi (HARD_REGNO_RENAME_OK): Document.
2625 2004-03-05 Jason Merrill <jason@redhat.com>
2627 * tree.h (TYPE_HASH): Use TYPE_UID.
2628 (TREE_HASH): New macro with old definition of TYPE_HASH.
2629 * tree.c (build_type_attribute_variant): Use iterative_hash_object.
2630 (build_array_type, build_function_type): Likewise.
2631 (build_method_type_directly): Likewise.
2632 (build_offset_type, build_complex_type): Likewise.
2633 (type_hash_list, attribute_hash_list): Likewise. Now static.
2634 * except.c: s/TYPE_HASH/TREE_HASH/.
2636 2004-03-05 Bob Wilson <bob.wilson@acm.org>
2638 * config/xtensa/xtensa.c (function_arg): Handle 16-byte aligned args.
2639 (xtensa_va_start): Initialize __va_stk to ($arg_ptr - 32). Adjust
2640 __va_ndx by 2 words when referencing an argument on the stack.
2641 (xtensa_va_arg): Handle 16-byte aligned args. Adjust __va_ndx by 2
2642 words when an arg on the stack is first seen.
2644 2004-03-05 Paul Brook <paul@codesourcery.com>
2646 * arm.h (ARM_FLAG_VFP): Remove.
2647 (ARM_FLAG_ATPCS, CIRRUS_FIX_INVALID_INSNS): Renumber.
2648 * netbsd-elf.h (ARM_FLAG_VFP): Remove.
2650 2004-03-05 Paul Brook <paul@codesourcery.com>
2652 * function.c (assign_parms): Include pretend alignment offset.
2654 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2656 * stor-layout.c (layout_type, case FUNCTION_TYPE): Make size
2657 FUNCTION_BOUNDARY, not POINTER_SIZE * 2.
2659 2004-03-05 Ian Lance Taylor <ian@wasabisystems.com>
2661 * configure.ac: When passing --enable-languages to subdir
2662 configure when host != build, make sure we don't pass an empty
2664 * configure: Regenerate.
2666 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
2669 * gcc.c (cc1_options): Robustify -auxbase-strip from multiple -o
2672 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
2674 * simplify-rtx.c (simplify_relational_operation): If
2675 flag_wrapv is set, do not move terms between the two
2676 side of a relational operator.
2678 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
2680 * rtlanal.c: Include target.h and output.h
2681 (rtx_cost, address_cost, default_address_cost): Move from...
2682 * cse.c (rtx_cost, address_cost, default_address_cost):
2684 * rtl.h (rtx_cost, address_cost): Move under rtlanal.c.
2685 * Makefile.in: Adjust dependencies.
2687 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
2689 * cse.c (cse_end_of_basic_block): Make static.
2690 * local-alloc.c (function_invariant_p): Move to
2692 * loop.c (libcall_other_reg, record_excess_regs):
2694 * reload1.c (function_invariant_p): Moved here
2695 from local-alloc.c, made static.
2696 * rtl.h (cse_end_of_basic_block, function_invariant_p,
2697 libcall_other_reg, record_excess_regs): Remove
2700 2004-03-05 Kazu Hirata <kazu@cs.umass.edu>
2702 * config/m32r/m32r.c (signed_comparison_operator): Add a
2703 missing parenthesis.
2705 2004-03-04 Ian Lance Taylor <ian@wasabisystems.com>
2707 * ggc-common.c (gt_pch_restore): Don't unmap addr unless we are
2708 going to call mmap again. Read the file into the right place.
2709 Give a fatal error if we have to relocate.
2711 2004-03-04 Bob Wilson <bob.wilson@acm.org>
2713 * config/xtensa/xtensa.c (xtensa_return_in_msb): New function.
2714 (TARGET_RETURN_IN_MSB): Define to xtensa_return_in_msb.
2716 2004-03-05 Hans-Peter Nilsson <hp@axis.com>
2719 * config/fp-bit.c (_fpdiv_parts): Do not round when pack_d would
2720 round the same. When rounding, clear bits that would cause a
2721 second rounding in pack_d.
2722 (_fpmul_parts): Ditto. Remove #if 0:d code.
2724 2004-03-04 Ziemowit Laski <zlaski@apple.com>
2726 PR c++/14425, c++/14426
2727 * config/rs6000/altivec.h (vec_splat_s8, vec_splat_s16,
2728 vec_splat_s32, vec_splat_u8, vec_splat_u16, vec_splat_u32):
2729 Change C++ definitions to accept a 'const int' argument;
2730 the prototypes already do.
2731 * config/rs6000/rs6000.c (rs6000_common_init_builtins):
2732 Rename v4si_ftype_char, v8hi_ftype_char, v16qi_ftype_char,
2733 v4sf_ftype_v4si_char, v4si_ftype_v4sf_char, v4si_ftype_v4si_char,
2734 v8hi_ftype_v8hi_char, v16qi_ftype_v16qi_char,
2735 v16qi_ftype_v16qi_v16qi_char, v8hi_ftype_v8hi_v8hi_char,
2736 v4si_ftype_v4si_v4si_char and v4sf_ftype_v4sf_v4sf_char to
2737 end in ..._int; change them to accept an int instead of a char
2738 as the last parameter.
2740 2004-03-04 Phil Edwards <phil@codesourcery.com>
2742 * genmultilib: Change '=' to '-' when translating option names
2745 2004-03-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2747 * expr.c (expand_expr_real, case COMPONENT_REF): Get proper type of
2748 stack slot for temp used for result of BLKmode but in integral mode.
2750 2004-03-04 Jan Hubicka <jh@suse.cz>
2752 * reload.c (find_reloads): Reorganize if seqeunce to switch.
2754 * cfgrtl.c (rtl_redirect_edge_and_branch): Set the source BB as dirty.
2755 (cfglayout_redirect_edge_and_branch): Set the source BB as dirty.
2757 2004-03-04 Steve Ellcey <sje@cup.hp.com>
2759 * config/ia64/ia64.md (divdf3_internal_thr): Fix algorithm.
2760 * testsuite/gcc.dg/20040303-1.c: New test.
2762 2004-03-04 Steven Bosscher <stevenb@suse.de>
2764 * ppro.md: Rewrite as a DFA pipeline description.
2765 * i386.md: Remove all uses of the ppro_uops attribute.
2766 * i386.c: (ix86_safe_ppro_uops, ix86_dump_ppro_packet,
2767 ix86_reorder_insn, ix86_sched_reorder_ppro, ix86_sched_init,
2768 ix86_sched_reorder, ix86_variable_issue,
2769 struct ix86_sched_data, TARGET_SCHED_VARIABLE_ISSUE,
2770 TARGET_SCHED_INIT, TARGET_SCHED_REORDER): Remove.
2771 (ia32_use_dfa_pipeline_interface): Add TARGET_PENTIUMPRO.
2772 (ia32_multipass_dfa_lookahead): Add TARGET_PENTIUMPRO.
2773 * athlon.md (athlon_ssecmp_load): Fix comment
2775 2004-03-04 Stuart Hastings <stuart@apple.com>
2777 * gcc/doc/invoke.texi: Document -mlongcall for Darwin/PPC.
2779 2004-03-04 Stuart Hastings <stuart@apple.com>
2781 * gcc/config/i386/darwin.h: Darwin/x86 doesn't support CPUs before
2782 686, tell Darwin assembler to allow prefetch insns, non-empty def
2783 of SUBTARGET_OPTION_TRANSLATE_TABLE.
2785 2004-03-04 DJ Delorie <dj@redhat.com>
2787 PR optimization/14282
2788 * sched-deps.c (sched_analyze_insn): Allow a stack adjustment
2789 between a call and the assignment of its return value.
2791 2004-03-04 Kazu Hirata <kazu@cs.umass.edu>
2793 * config/h8300/h8300.c: Put a comment for every function.
2795 2004-03-04 Kazu Hirata <kazu@cs.umass.edu>
2797 * config/h8300/h8300.md: Add comments about peephole2's.
2799 2004-03-04 Steven Bosscher <stevenb@suse.de>
2801 * i386.h (TARGET_CPU_DEFAULT_nocona): Fix value.
2803 2004-03-04 Jan Hubicka <jh@suse.cz>
2805 * cfgcleanup.c (thread_jump): Update call of cselib_init.
2806 * cselib.c (cselib_record_memory): New static variable.
2807 (cselib_lookup_mem, cselib_record_set, cselib_record_sets):
2808 Give up on memories when asked for.
2809 (cselib_init): Accept new argument.
2810 * cselib.h (cselib_init): Update prototype.
2811 * gcse.c (local_cprop_pass): Update call of cselib_init.
2812 * loop.c (load_mems): Update call of cselib_init.
2813 * postreload.c (reload_cse_regs_1): Update call of cselib_init.
2814 * sched-deps.c (sched_analyze): Update call of cselib_init.
2816 2004-03-04 David Edelsohn <edelsohn@gnu.org>
2819 * config/rs6000/rs6000.c (output_function_profiler): Append @plt
2822 2004-03-04 Josef Zlomek <zlomekj@suse.cz>
2825 * var-tracking.c (track_expr_p): Do not track variables which
2826 should be ignored for debugging purposes.
2828 2004-03-04 Alan Modra <amodra@bigpond.net.au>
2830 * real.c (encode_ibm_extended): Don't bother rounding low double.
2831 * c-cppbuiltin.c (builtin_define_float_constants): Tweak MAX
2832 when fmt->pnan < fmt->p.
2834 2004-03-04 Eric Christopher <echristo@redhat.com>
2836 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Fix to check
2837 only range of valid arg registers and fixed_regs.
2839 2004-03-04 Alan Modra <amodra@bigpond.net.au>
2842 * config/rs6000/rs6000.md (abstf2, abstf2+1): Delete define_insn.
2843 (abstf2, abstf2_internal): New define_expand.
2845 2004-03-04 Eric Botcazou <ebotcazou@libertysurf.fr>
2847 PR optimization/14235
2848 * expr.c (convert_move): Copy the source to a new pseudo
2849 when converting from a sub-word source to a larger-than-word
2850 register which conflicts with the source.
2852 2004-03-03 Zack Weinberg <zack@codesourcery.com>
2855 * c-decl.c (diagnose_mismatched_decls): Issue an error for two
2856 parameters with the same name, unless one is a forward decl.
2857 Do not issue a redundant-redeclaration warning for forward
2858 decls of parameters.
2860 2004-03-04 David Edelsohn <edelsohn@gnu.org>
2862 * doc/install.texi (*-ibm-aix*): Document use of Bash to speed up
2865 2004-03-03 Ian Lance Taylor <ian@wasabisystems.com>
2867 * ggc-zone.c (ggc_pch_write_object): Don't align file pointer.
2869 2004-03-04 Alan Modra <amodra@bigpond.net.au>
2871 * target-def.h (TARGET_OPTF): Delete.
2872 * c-opts.c (TARGET_OPTF): Define.
2874 2004-03-04 Jan Hubicka <jh@suse.cz>
2876 * cselib.c (cselib_finish): Fix another miss-application of my previous
2879 2004-03-03 Mike Stump <mrs@apple.com>
2881 Add framework support for darwin.
2883 * c-incpath.c: Include target.h and machmode.h.
2884 (add_path): Use a consistent style for cpp_dir. Initialize
2886 (add_cpp_dir_path): New.
2887 (register_include_chains): Add use of extra_includes callback.
2888 (hook_void_int): Add.
2889 (target_c_incpath): Add.
2890 * c-incpath.h (add_cpp_dir_path): New.
2891 (target_c_incpath_s): Add.
2892 (target_c_incpath): Add.
2893 (C_INCPATH_INIT): Add.
2894 * c-opts.c (c_common_missing_argument,
2895 c_common_handle_option): Add -F argument processing.
2896 * c.opt: Add -F argument processing.
2897 * gcc.c (trad_capable_cpp): Add -F argument processing.
2898 * cppfiles.c (find_file_in_dir): Update to use construct
2900 (search_path_exhausted, cpp_get_path, cpp_get_buffer,
2902 (_cpp_find_file): Use search_path_exhausted.
2903 (make_cpp_dir): Initialize construct to 0.
2904 * cpplib.h (missing_header_cb
2905 cpp_get_path, cpp_get_buffer, cpp_get_file, cpp_get_prev): New.
2906 (cpp_callbacks): Add missing_header
2907 (cpp_dir): Add construct.
2908 * target-def.h: (TARGET_OPTF): New.
2909 * hooks.c (hook_void_int, hook_void_charptr): Add.
2910 * hooks.h (hook_void_int, hook_void_charptr): Add.
2911 * Makefile.in (c-incpath.o) : Add $(TARGET_H) and
2912 $(MACHMODE_H) dependencies.
2913 * doc/invoke.texi (Darwin Options): Document -F.
2914 * doc/tm.texi (TARGET_EXTRA_INCLUDES): Add.
2916 * fix-header.c (target_c_incpath): Add.
2918 * config/darwin-c.c: Add c-incpath.h include.
2919 (using_frameworks, find_subframework_file,
2920 find_subframework_header, add_system_framework_path,
2921 frameworks_in_use, num_frameworks, max_frameworks,
2922 add_framework, find_framework, struct framework_header,
2923 framework_header_dirs, framework_construct_pathname,
2924 find_subframework_file, add_system_framework_path,
2925 add_framework_path, framework_defaults,
2926 darwin_register_frameworks, find_subframework_header): Add.
2927 * config/darwin.h (TARGET_EXTRA_INCLUDES, TARGET_OPTF): New.
2928 (TARGET_OPTION_TRANSLATE_TABLE): Add -framework support.
2929 (CPP_SPEC): Add __APPLE_CC__ support.
2930 * t-darwin (darwin-c.o): Add c-incpath.h dependency.
2932 2004-03-04 Jan Hubicka <jh@suse.cz>
2934 * cselib.c (cselib_finish): Fix miss-application of my previous
2937 2004-03-03 Kazu Hirata <kazu@cs.umass.edu>
2939 * hooks.c (hook_tree_tree_identity): New.
2940 * hooks.h: Add a prototype for hook_tree_tree_identity.
2941 * stmt.c (expand_asm_operands): Use targetm.md_asm_clobbers
2942 instead of MD_ASM_CLOBBERS.
2943 * system.h (MD_ASM_CLOBBERS): Poison.
2944 * target-def.h (TARGET_MD_ASM_CLOBBERS): New.
2945 (TARGET_INITIALIZER): Add TARGET_MD_ASM_CLOBBERS.
2946 * target.h (gcc_target): Add md_asm_clobbers.
2947 * config/i386/i386.c (TARGET_MD_ASM_CLOBBERS): New.
2948 (ix86_md_asm_clobbers): New.
2949 * config/i386/i386.h (MD_ASM_CLOBBERS): Remove.
2950 * doc/tm.texi (MD_ASM_CLOBBERS): Change to
2951 TARGET_MD_ASM_CLOBBERS.
2953 2004-03-03 Stuart Hastings <stuart@apple.com>
2955 * gcc/config.gcc: Arrange for Darwin/x86 to build libgcc_eh.a.
2957 2004-03-03 Eric Botcazou <ebotcazou@libertysurf.fr>
2959 * config/sparc/sparc.c (noov_compare64_op): Fix typo.
2961 * config/sparc/sparc.h (ASM_FLOAT): Delete.
2962 (ASM_DOUBLE): Likewise.
2963 (ASM_LONGDOUBLE): Likewise.
2964 * config/sparc/pbd.h (ASM_INT_OP): Delete.
2966 2003-03-03 Richard Henderson <rth@redhat.com>
2969 * cselib.c (cselib_record_sets): Don't record multiple sets in
2972 2004-03-03 Mostafa Hagog <mustafa@il.ibm.com>
2974 * common.opt: Add description of the new -fgcse-after-reload flag.
2976 * flags.h (flag_gcse_after_reload): Declaration of global variable.
2978 * gcse.c (reg_used_on_edge ,reg_set_between_after_reload_p,
2979 reg_used_between_after_reload_p, rtx get_avail_load_store_reg,
2980 is_jump_table_basic_block, bb_has_well_behaved_predecessors,
2981 get_bb_avail_insn, hash_scan_set_after_reload,
2982 compute_hash_table_after_reload, eliminate_partially_redundant_loads,
2983 gcse_after_reload, get_bb_avail_insn): New functions to implement
2985 (gcse_after_reload_main): New function, the main entry point to
2988 * rtl.h (gcse_after_reload_main): Declaration of the new function.
2990 * opts.c (common_handle_option): Handle the -fgcse-after-reload flag.
2992 * toplev.c (flag_gcse_after_reload): Initialization.
2994 * passes.c (rest_of_handl_gcse2): Call gcse_after_reload_main.
2996 * params.def (PARAM_GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
2997 PARAM_GCSE_AFTER_RELOAD_CRITICAL_FRACTION): New parameters for tuning
2998 the gcse after reload optimization.
3000 * params.h (GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
3001 GCSE_AFTER_RELOAD_CRITICAL_FRACTION): Two macros to access the tuning
3004 * doc/invoke.texi: Documentation for the new flag gcse-after-reload.
3006 2004-03-03 Nicolas Pitre <nico@cam.org>
3008 * config/arm/ieee754-df.S (muldf3, divdf3): Fix denormalization of
3009 small negative values.
3011 2004-03-03 Jan Hubicka <jh@suse.cz>
3013 * cselib.c (hash_table): Remove GTY marker.
3014 (reg_values): Turn into array.
3015 (used_regs): Likewise.
3016 (n_used_regs): New static variable.
3017 (reg_values_old): Kill.
3018 (clear_table): Update uses of arrays.
3019 (cselib_lookup): Likewise.
3020 (cselib_record_set): Likewise.
3021 (cselib_init): Likewise.
3022 (cselib_finish): Likewise.
3023 (cselib_udpate_varray_sizes): Kill.
3024 * cselib.h (cselib_update_varray_sizes): Kill.
3026 2004-03-03 Paul Brook <paul@codesourcery.com>
3028 * flow.c (ior_reg_cond, and_reg_cond): Remove stray ")".
3030 2004-03-03 Jan Hubicka <jh@suse.cz>
3032 * ggc-common.c (ggc_alloc_cleared_stat, ggc_realloc_stat):
3033 Rename from ...; make statistics transparent.
3034 (ggc_alloc_cleared, ggc_realloc_stat): ... these.
3035 (loc_descriptor): New structure.
3036 (hash_descriptor, eq_descriptor, loc_descriptor, cmp_statistics,
3038 New static function.
3039 (ggc_record_overhead, dump_statistics): New global function.
3040 * ggc-none.c (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
3041 ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Rename
3042 from ...; accept locations
3043 (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
3044 ggc_realloc, ggc_alloc_typed): ... this one.
3045 from ...; accept locations
3046 * ggc-page.c (ggc_alloc_typed_stat, ggc_alloc_zone_stat,
3047 ggc_alloc_stat): Rename from ... ; pass locations
3048 * ggc-page.c (ggc_alloc_typed, ggc_alloc_zone, ggc_alloc):
3050 (ggc_alloc_stat): Record overehead.
3051 * ggc.h (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
3052 ggc_realloc, ggc_alloc_typed): Turn to macros
3053 (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
3054 ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Declare.
3055 (dump_ggc_loc_satistics, ggc_record_overehead): Declare.
3056 * langhooks.h (lhd_make_node): Declare.
3057 (LANG_HOOKS_MAKE_TYPE): Default to new function,
3058 * langhooks.c (lhd_make_node): New.
3059 * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Rename from ... ; pass
3061 (rtx_alloc, swallow_copy_rtx): ... this one.
3062 * rtl.h (rtx_alloc, swallow_copy_rtx): Turn to macros.
3063 * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Declare.
3064 * toplpev.c (finalize): Dump stats.
3065 * tree.c (make_node_stat, copy_node_stat, make_tree_vec_stat,
3066 build_tree_list_stat, tree_cons_stat, build?_stat, build_decl_stat):
3067 Rename from ... ; pass locators.
3068 (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
3069 build?, build_decl): Declare.
3070 * tree.h (make_node_stat, copy_node_stat, make_tree_vec_stat,
3071 build_tree_list_stat, tree_cons_stat, build?_stat, build_decl_stat):
3073 (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
3074 build?, build_decl): New macros.
3075 * Makefile.in (RTL_H, TREE_H): Add statistics.h dependency.
3076 * statistics.h: New file.
3078 2004-03-03 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3079 Richard Sandiford <rsandifo@redhat.com>
3081 * config/mips/mips.h (MASK_FIX_SB1): Bump.
3082 (MASK_FIX_R4400, TARGET_FIX_R4400): New macros.
3083 (TARGET_SWITCHES): Add -mfix-r4400 and -mno-fix-r4400.
3084 * config/mips/mips.c (mips_output_division): Fill the branch delay
3085 slot with a nop if TARGET_FIX_R4000. Extend R4000 workarounds to
3087 (mips_output_division): Adjust accordingly.
3088 (override_options): Make -march=r4400 imply -mfix-r4400 by default.
3089 * doc/invoke.texi: Document -mfix-r4400 and new errata workarounds.
3091 2004-03-03 Paolo Bonzini <bonzini@gnu.org>
3093 * alias.c (rtx_equal_for_memref_p): Use predicates
3094 to test rtx classes and new rtx class codes, possibly
3095 splitting conditionals that tested against '<' and 'o'.
3096 * caller-save.c (save_call_clobbered_regs): Likewise.
3097 * combine.c (contains_muldiv, find_split_point, subst,
3098 combine_simplify_rtx, simplify_if_then_else,
3099 simplify_set, simplify_logical, expand_compound_operation,
3100 make_compound_operation, if_then_else_cond, known_cond,
3101 apply_distributive_law, cached_nonzero_bits,
3102 cached_num_sign_bit_copies, simplify_shift_const,
3103 gen_binary, simplify_comparison, update_table_tick,
3104 record_value_for_reg, get_lsat_value_validate): Likewise.
3105 * cse.c (mention_regs, find_best_addr, find_comparison_args,
3106 fold_rtx, cse_insn, invalidate_memory, cse_basic_block):
3108 * emit-rtl.c (copy_insn_1): Likewise.
3109 * expr.c (force_operand): Likewise.
3110 * final.c (final_scan_insn, get_mem_expr_from_op): Likewise.
3111 * flow.c (notice_stack_pointer_modification_1,
3112 invalidate_mems_from_autoinc, ior_reg_cond, not_reg_cond,
3113 and_reg_cond, elim_reg_cond): Likewise.
3114 * function.c (update_epilogue_consts): Likewise.
3115 * genattrtab.c (attr_rtx_1): Likewise.
3116 * genopinit.c (gen_insn): Likewise.
3117 * integrate.c (subst_constants): Likewise.
3118 * jump.c (reversed_comparison_code_parts,
3119 reversed_comparison_code, delete_related_insns,
3120 rtx_renumbered_equal_p): Likewise.
3121 * local-alloc.c (block_alloc): Likewise.
3122 * loop.c (rtx_equal_for_prefetch_p, maybe_eliminate_biv,
3123 canonicalize_condition): Likewise.
3124 * loop-iv.c (simplify_using_conditions, iv_number_of_iterations):
3126 * optabs.c (add_equal_node, expand_binop): Likewise.
3127 * predict.c (estimate_probability): Likewise.
3128 * ra-debug.c (ra_print_rtx_2op, ra_print_rtx): Likewise.
3129 * recog.c (validate_replace_rtx_1, comparison_operator,
3130 offsettable_address_p, constrain_operands): Likewise.
3131 * reg-stack.c (swap_rtx_condition_1, subst_stack_regs_pat):
3133 * regclass.c (scan_one_insn): Likewise.
3134 * regmove.c (stable_and_no_regs_but_for_p): Likewise.
3135 * regrename.c (kill_autoinc_value): Likewise.
3136 * reload.c (find_reusable_reload, find_reloads,
3137 reg_overlap_mentioned_for_reload_p): Likewise.
3138 * reload1.c (gen_reload, delete_address_reloads_1): Likewise.
3139 * rtl.c (copy_rtx): Likewise.
3140 * rtl.h (CONSTANT_P, INSN_P): Likewise.
3141 * rtlanal.c (commutative_operand_precedence): Likewise.
3142 * sched-deps.c (conditions_mutex_p): Likewise.
3143 * sched-rgn.c (is_cfg_nonregular): Likewise.
3144 * simplify-rtx.c (simplify_gen_binary,
3145 simplify_gen_relational, simplify_replace_rtx,
3146 simplify_unary_operation, simplify_binary_operation,
3147 simplify_ternary_operation, simplify_rtx): Likewise.
3148 * unroll.c (reg_dead_after_loop): Likewise.
3149 * config/alpha/alpha.c (alpha_swapped_comparison_operator,
3150 print_operand): Likewise.
3151 * config/arc/arc.c (proper_comparison_operator): Likewise.
3152 * config/arm/arm.c (arm_arm_address_cost, arm_select_cc_mode):
3154 * config/avr/avr.c (_reg_unused_after): Likewise.
3155 * config/frv/frv.c (frv_ifcvt_modify_tests,
3156 frv_ifcvt_modify_insn, frv_pack_insn): Likewise.
3157 * config/i386/i386.c (ix86_comparison_operator,
3158 ix86_carry_flag_operator, fcmov_comparison_operator,
3159 arith_or_logical_operator, print_operand,
3160 ix86_expand_binary_operator, ix86_binary_operator_ok):
3162 * config/i386/i386.md: Likewise.
3163 * config/ia64/ia64.c (not_postinc_memory_operand,
3164 ia64_print_operand, update_set_flags, errata_emit_nops):
3166 * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS,
3167 CONSTRAINT_OK_FOR_S): Likewise.
3168 * config/ip2k/ip2k.c (mdr_resequence_xy_yx,
3169 mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
3170 ip2k_xexp_not_uses_reg_for_mem, ip2k_xexp_not_uses_reg_p,
3171 ip2k_composite_xexp_not_uses_reg_p, ip2k_unary_operator):
3173 * config/iq2000/iq2000.c (cmp_op, symbolic_expression_p,
3174 eqne_comparison_operator, signed_comparison_operator):
3176 * config/mips/mips.c (cmp_op, symbolic_expression_p):
3178 * config/mmix/mmix (mmix_foldable_comparison_operator,
3179 mmix_comparison_operator): Likewise.
3180 * config/pa/pa.c (hppa_legitimize_address): Likewise.
3181 * config/rs6000/rs6000.c (stmw_operation,
3182 branch_comparison_operator, trap_comparison_operator,
3184 * config/rs6000/rs6000.h (SELECT_CC_MODE): Likewise.
3185 * config/s390/s390.c (s390_alc_comparison,
3186 s390_slb_comparison):L Likewise.
3187 * config/sh/sh.c (gen_block_redirect, reg_unused_after):
3189 * config/sparc/sparc.c (eq_or_neq, normal_comp_operator,
3190 noov_compare_op, noov_compare64_op, v9_regcmp_op,
3191 emit_hard_tfmode_operation, reg_unused_after)
3192 * doc/md.texi, doc/rtl.texi: Likewise.
3194 * ra-debug.c: Add 2004 to list of copyright years.
3195 * unroll.c: Likewise.
3197 * combine.c (simplify_logical): Remove dummy test,
3198 (apply_distributive_law): Fix typo in comment.
3199 GET_CODE (x) == AND so x is a commutative binary op.
3200 * jump.c (delete_related_insns): simplify loop
3201 condition, move testing of RTX codes inside the loop.
3202 (rtx_renumbered_equal_p): do not use RTX_CODE.
3203 * rtl.c (rtx_class): Declare as enum rtx_class.
3204 * rtl.def (EQ, NE, UNEQ, LTGT, UNORDERED, ORDERED):
3205 Move to RTX_COMM_COMPARE class.
3206 (HIGH, SYMBOL_REF, LABEL_REF, CONST, CONST_INT, CONST_DOUBLE):
3207 Move to RTX_CONST_OBJ class.
3208 * rtl.h (enum rtx_class): New declaration,
3209 (RTX_OBJ_MASK, RTX_OBJ_RESULT, RTX_COMPARE_MASK,
3210 RTX_COMPARE_RESULT, RTX_ARITHMETIC_MASK, RTX_ARITHMETIC_RESULT,
3211 RTX_BINARY_MASK, RTX_BINARY_RESULT, RTX_COMMUTATIVE_MASK,
3212 RTX_COMMUTATIVE_RESULT, RTX_NON_COMMUTATIVE_RESULT,
3213 RTX_EXPR_FIRST, RTX_EXPR_LAST, UNARY_P, BINARY_P,
3214 ARITHMETIC_P, COMMUTATIVE_ARITHMETIC_P, COMPARISON_P,
3215 SWAPPABLE_OPERANDS_P, NON_COMMUTATIVE_P, COMMUTATIVE_P,
3216 OBJECT_P): New macros.
3217 * config/sparc/sparc.c (noov_compare_op): Remove register
3220 2004-03-03 Kazu Hirata <kazu@cs.umass.edu>
3222 * target.h: Remove texi jargons in comments.
3224 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
3226 * config/h8300/lib1funcs.asm (___fixunssfsi): Change the
3230 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
3231 * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
3233 * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
3234 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
3236 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
3238 * doc/md.texi (cbranchmode4): New.
3240 2004-03-02 Eric Christopher <echristo@redhat.com>
3242 * config/mips/mips16.S: Change fixsfsi and fixdfsi to
3244 * config/mips/mips.c (mips_init_libfuncs): Change accordingly.
3245 * config/mips/t-elf (LIB1ASMFUNCS): Ditto.
3246 * config/mips/t-isa3264 (LIB1ASMFUNCS): Ditto.
3247 * config/mips/t-r3900 (LIB1ASMFUNCS): Ditto.
3249 2004-03-02 Richard Henderson <rth@redhat.com>
3252 * coverage.c (coverage_counter_ref): Set MEM_NOTRAP_P.
3253 * optabs.c (prepare_cmp_insn): Force trapping memories to registers
3254 before the compare, if flag_non_call_exceptions.
3256 2004-03-02 Richard Henderson <rth@redhat.com>
3259 * stmt.c (expand_computed_goto): Do do_pending_stack_adjust before
3260 emitting the label, not after.
3262 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
3264 * config/m68hc11/m68hc11.c (m68hc11_addr_mode): New variable.
3265 (m68hc11_mov_addr_mode): Likewise.
3266 (m68hc11_override_options): Initialize them based on target.
3267 (register_indirect_p): Allow a MEM for indirect addressing modes and
3268 use flags to control what is allowed.
3269 (m68hc11_small_indexed_indirect_p): Use m68hc11_mov_addr_mode for
3270 supported addressing modes.
3271 (m68hc11_register_indirect_p): Use m68hc11_addr_mode.
3272 (go_if_legitimate_address_internal): Likewise.
3273 (m68hc11_indirect_p): Likewise and check the mode.
3274 (print_operand): Allow a (MEM (MEM)) and generate indirect addressing.
3276 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
3278 * builtins.c (BUILTIN_SETJMP_FRAME_VALUE): Remove.
3279 (expand_builtin_setjmp_setup): Use
3280 targetm.builtin_setjmp_frame_value instead of
3281 BUILTIN_SETJMP_FRAME_VALUE.
3282 * system.h (BUILTIN_SETJMP_FRAME_VALUE): Poison.
3283 * target-def.h (TARGET_BUILTIN_SETJMP_FRAME_VALUE): New.
3284 (TARGET_INITIALIZER): Add TARGET_BUILTIN_SETJMP_FRAME_VALUE.
3285 * target.h (gcc_target): Add builtin_setjmp_frame_value.
3286 * targhooks.c (default_builtin_setjmp_frame_value): New.
3287 * targhooks.h: Add a prototype for
3288 default_builtin_setjmp_frame_value.
3289 * doc/tm.texi (BUILTIN_SETJMP_FRAME_VALUE): Change to
3290 TARGET_BUILTIN_SETJMP_FRAME_VALUE.
3292 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
3294 * config/m68hc11/m68hc11.md (move peephole2): New peepholes to optimize
3296 (add peepholes): New peepholes to optimize sequences adding small
3298 (bset peepholes): New peepholes to transform an OR in a bset form
3299 (bclr peepholes): Likewise for bclr form.
3300 (cmp peepholes): New peepholes to avoid register copies when comparing.
3302 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
3304 * config/m68hc11/m68hc11.md ("*pushdi_internal"): New insn and split
3305 to separate push from moves.
3306 ("*pushdf_internal"): Likewise.
3307 ("*pushsf_internal"): Likewise.
3308 ("*pushsi_internal"): Likewise.
3309 ("movdi_internal"): Use define_insn_and_split; non push operand.
3310 ("movdf_internal"): Likewise.
3311 ("movsf_internal"): Likewise.
3312 ("movsi_internal"): Likewise.
3313 ("*movhi_68hc12", "*addhi3_68hc12"): Fix and tune constraints
3314 ("*addhi3", "*subhi3", "*andhi3_mem", "*iorhi3_mem"): Likewise.
3315 ("*ashlsi3_const1", "*lshrsi3_const1"): Likewise.
3317 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
3319 * config/m68hc11/m68hc11.md ("tstqi_z_used"): Use define_insn_and_split.
3320 ("cmphi_z_used", "cmpqi_z_used"): Likewise.
3321 ("movstrictsi", "movstricthi", "movstrictqi"): Likewise.
3322 ("anddi3", "andsi3", "iordi3", "iorsi3"): Likewise.
3323 ("xordi3", "xorsi3", "*logicalsi3_zexthi"): Likewise.
3324 ("*logicalsi3_zextqi", "*logicalhi3_zexthi_ashift8"): Likewise.
3325 ("logicalhi3_zexthi", "*logicalsi3_silshr16"): Likewise.
3326 ("*logicalsi3_silshl16", "*logicalsi3_silshl16_zext"): Likewise.
3327 ("*ashldi3_const32", "*ashldi3_const1", "addsi_silshr16"): Likewise.
3328 ("addsi_andshr16", "*ashlsi3_const16_zexthi"): Likewise.
3329 ("*lshrdi3_const32", "*lshrdi_const1"): Likewise.
3331 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
3333 * config/m68hc11/m68hc11.md (SOFT_TMP_REGNUM): Define.
3334 (SOFT_XY_REGNUM): Define.
3335 (cmp split): Use the above instead of hard coded numbers.
3336 (8-bit op split): No need to check the mode; allow Q_REG.
3337 (ashift split): Adjust the first operand if it uses the SP and we
3338 are pushing the shifted value.
3339 (plus shift split): Fix when a source is in register D+X.
3340 ("doloop_end"): Pass dummy arguments to gen_rtx_NE.
3342 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
3344 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix when
3345 comparing with Z register.
3347 2004-03-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3349 * cfgloop.h (struct loop_desc): Removed.
3350 (struct loop): Fields simple, desc and has_desc removed.
3351 (simple_loop_p, count_loop_iterations): Declaration removed.
3352 * cfgloopanal.c (struct unmark_altered_insn_data): Removed.
3353 (unmark_altered, blocks_invariant_registers, unmark_altered_insn
3354 blocks_single_set_registers, invariant_rtx_wrto_regs_p_helper,
3355 invariant_rtx_wrto_regs_p, test_for_iteration, constant_iterations,
3356 simple_loop_exit_p, variable_initial_value, variable_initial_values,
3357 simple_condition_p, simple_increment, count_strange_loop_iterations,
3358 inverse, fits_in_mode_p, simple_loop_p, count_loop_iterations):
3360 * loop-iv.c (check_simple_exit, find_simple_exit): Update comments.
3362 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
3364 * genattrtab.c: Don't handle MATCH_INSN.
3365 * genrecog.c: Likewise.
3366 * gensupport.c: Likewise.
3367 * rtl.def (match_insn): Remove.
3368 * doc/md.texi (match_insn, match_insn2): Remove.
3370 2004-03-02 Mark Mitchell <mark@codesourcery.com>
3372 * doc/c-tree.texi (DECL_ASSEMBLER_NAME): Mention that using this
3373 macro results in memory allocation.
3375 2004-03-02 David O'Brien <obrien@FreeBSD.org>
3377 * config/freebsd-spec.h (FBSD_DYNAMIC_LINKER): Add.
3378 * config/alpha/freebsd.h (SUBTARGET_EXTRA_SPECS): Define
3379 %(fbsd_dynamic_linker),
3380 (LINK_SPEC): Use %(fbsd_dynamic_linker), and sync style with
3381 config/i386/freebsd.h
3382 * config/arm/freebsd.h: Ditto.
3383 * config/i386/freebsd.h: Ditto.
3384 * config/i386/freebsd64.h: Ditto.
3385 * config/ia64/freebsd.h: Ditto.
3386 * config/rs6000/sysv4.h: Ditto.
3387 * config/sparc/freebsd.h: Ditto.
3389 2004-03-02 Loren James Rittle <ljrittle@acm.org>
3391 * gcc/doc/install.texi (*-*-freebsd*): Update target information.
3393 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
3395 * rtl.def (define_combine): Remove.
3397 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
3399 * config/h8300/h8300.md: Tweak formatting.
3401 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
3403 * config/h8300/h8300.md (*cmphi_h8300): Rename to
3405 (*cmphi_h8300hs): Rename to *cmphi_h8300hs_znvc.
3407 2004-03-01 Mark Mitchell <mark@codesourcery.com>
3410 * gcc.c (process_command): Remove const-qualification from argv.
3413 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
3415 * config/h8300/h8300.md (pushqi1_h8300hs): Rename to
3416 pushqi1_h8300hs_advanced. Adjust its caller.
3417 (pushhi1_h8300hs): Rename to pushhi1_h8300hs_advanced.
3420 2004-03-02 Nicolas Roche <roche@act-europe.fr>
3422 * Makefile.in (install-libgcc, install-multilib): Pass
3423 mkinstalldirs var to libgcc.mk.
3425 2004-03-01 Kazu Hirata <kazu@cs.umass.edu>
3427 * system.h (DBX_OUTPUT_STANDARD_TYPES): Poison.
3428 * doc/tm.texi (DBX_OUTPUT_STANDARD_TYPES): Remove.
3430 2004-03-01 Kazu Hirata <kazu@cs.umass.edu>
3432 * config/h8300/h8300.c (gtle_operator): Accept GT and LE.
3433 * config/h8300/h8300.md: Split several peephole2's, each into
3436 2004-03-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3438 * dominance.c (recount_dominator): Handle postdominators.
3440 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
3442 * config/mips/mips-protos.h (enum mips_symbol_type): Move from mips.h.
3443 (NUM_SYMBOL_TYPES): Likewise.
3444 (SYMBOL_64_HIGH, SYMBOL_64_MID, SYMBOL_64_LOW): New symbol types.
3445 (mips_unspec_address): Declare.
3446 (mips_gotoff_page, mips_gotoff_global): Delete.
3447 * config/mips/mips.h (PREDICATE_CODES): Add general_symbolic_operand.
3448 * config/mips/mips.c (enum mips_symbol_type, NUM_SYMBOL_TYPES): Delete.
3449 (mips_symbolic_constant_p, mips_symbolic_address_p)
3450 (mips_symbol_insns): Handle new symbol types.
3451 (general_symbolic_operand): New predicate.
3452 (mips_unspec_address): Make extern.
3453 (mips_gotoff_page, mips_gotoff_global): Delete.
3454 (override_options): Allow -mabi=64 -mno-abicalls -mexplicit-relocs.
3455 Handle new symbol types.
3456 * config/mips/mips.md (*lea_high64, *lea64): New patterns.
3457 (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_disp[sd]i): Call
3458 mips_unspec_address directly.
3459 * doc/invoke.texi: Remove the -mabi=64 -mno-abicalls exception from
3460 the documentation of -mexplicit-relocs.
3462 2004-03-01 Jeff Law <law@redhat.com>
3464 * fold-const.c (fold): An equality comparison of a non-weak object
3465 against zero has a known result. Similarly an equality comparison
3466 of the address of two non-weak, unaliased symbols has a known result.
3468 * ggc-page.c (struct page_entry): New field PREV.
3469 (ggc_alloc): Update PREV field appropriately.
3470 (sweep_pages): Likewise.
3471 (ggc_free): Likewise. Use PREV field rather than loop to
3472 improve ggc_free performance.
3474 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
3476 * config/mips/mips.c (mips_output_division): Use the division
3477 instruction to fill the delay slot of a zero check.
3478 (mips_idiv_insns): Adjust accordingly.
3480 2004-03-01 Nathanael Nerode <neroden@gcc.gnu.org>
3482 * config.gcc: Create a default tmake_file for linux, and use
3483 it in all but two linux clauses. Comment those two.
3485 2004-03-01 Paolo Bonzini <bonzini@gnu.org>
3487 * combine.c (try_combine): Do not refer to is_replaced.
3488 (gen_lowpart_for_combine): Perverse subregs now have a
3489 more politically correct name.
3490 * cse.c (cse_insn): Likewise.
3491 * jump.c: Fix bogus reference to delete_insn.
3493 2004-02-29 Mark Mitchell <mark@codesourcery.com>
3496 * dwarf2out.c (gen_enumeration_type_die): Output all enumeration
3497 constants as signed values.
3500 * c-tree.h (readonly_warning): Rename to ...
3501 (readonly_error): ... this.
3502 * c-typeck.c (build_unary_op): Adjust accordingly.
3503 (readonly_warning): Rename to ...
3504 (readonly_error): ... this and issue errors, not warnings.
3505 (build_modify_expr): Call readonly_error, not readonly_warning.
3506 (c_expand_asm_operands): Likewise.
3507 * tree-inline.c (optimize_inline_calls): Do not inline functions
3508 after errors have occurred.
3510 2004-02-29 Nathanael Nerode <neroden@gcc.gnu.org>
3512 * configure.ac: Rearrange some threading code for clarity;
3513 add section comment.
3514 * configure: Regenerate.
3516 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
3518 * passes.c, config/frv/frv.c, config/sh/sh.c: Fix comment
3520 * doc/cppopts.texi: Fix a typo.
3522 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
3524 * config/i386/i386.md: Fix formatting.
3526 2004-02-29 Nathanael Nerode <neroden@gcc.gnu.org>
3528 * configure.ac: Add some comments delineating sections of code.
3530 * doc/install.texi: Note that libada uses autoconf 2.57 also.
3532 * doc/install.texi: Fix idiot typo in previous commit.
3534 * doc/install.texi: Update for conversion of intl to autoconf 2.57.
3536 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
3538 * config/h8300/h8300.md: Add comments about peephole2's.
3540 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
3542 * config/h8300/h8300.md: Tweak operand numbers of some
3545 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
3547 * config/h8300/h8300.md: Tweak comments about peephole2's.
3549 2004-02-29 Waldek Hebisch <hebisch@math.uni.wroc.pl>
3552 * function.c (uninitialized_vars_warning): Use DECL_RTL_SET_P
3553 instead of testing whether DECL_RTL is not NULL.
3555 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
3557 * config/sh/sh.c: Fix formatting.
3559 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
3561 * config/sh/sh.c: Convert to ISO-C.
3563 2004-02-28 Andrew Pinski <pinskia@physics.uc.edu>
3565 * c-typeck.c (tagged_types_tu_compatible_p): Fix pasto in
3568 * config/darwin.h (machopic_finish): Output stub even if the
3569 symbol is already defined.
3571 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3573 * pa64-hpux.h (LIB_SPEC): Fix linking under HP-UX 11.00 with -p and -pg.
3575 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
3577 * genattr.c (main): Don't define
3578 TRADITIONAL_PIPELINE_INTERFACE or DFA_PIPELINE_INTERFACE.
3579 * system.h (TRADITIONAL_PIPELINE_INTERFACE): Poison.
3580 (DFA_PIPELINE_INTERFACE): Likewise.
3581 * doc/tm.texi (TRADITIONAL_PIPELINE_INTERFACE): Remove.
3582 (DFA_PIPELINE_INTERFACE): Likewise.
3584 2004-02-28 Richard Sandiford <rsandifo@redhat.com>
3586 * config/mips/mips.md (tstsi, tstdi): Delete.
3588 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3590 * config/mips/mips.c (override_options): Remove an obsolete
3591 duplicate definition of the "e" constraint.
3592 * config/mips/mips.h: Update a comment accordingly.
3594 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3596 * config/mips/mips.md: Complete the unfinished R4000
3597 multiply/shift errata workaround. Improve documentation.
3598 (hazard): Use TARGET_FIX_R4000 to decide whether an "imul" instruction
3600 (mulsi3, mulsi3_internal, mulsi3_r4000): Use TARGET_FIX_R4000.
3601 (muldi3, muldi3_internal): Likewise.
3602 (muldi3_internal2): Remove, replacing with...
3603 (muldi3_mult3, muldi3_r4000): ...these new patterns.
3604 (mulsidi3): Take the errata into account.
3605 (mulsidi3_32bit): Remove, replacing with...
3606 (mulsidi3_32bit_internal, mulsidi3_32bit_r4000): ...these new patterns.
3607 (mulsidi3_64bit, mulsidi3_64bit_parts): Disable if TARGET_FIX_R4000.
3608 (umulsidi3): Take the errata into account.
3609 (umulsidi3_32bit): Remove, replacing with..
3610 (umulsidi3_32bit_internal, umulsidi3_32bit_r4000): ...these patterns.
3611 (umulsi3_highpart, umulsi3_highpart_internal): Disable if
3613 (smulsi3_highpart, smulsi3_highpart_internal): Likewise.
3614 (smuldi3_highpart, umuldi3_highpart): Likewise.
3615 * doc/invoke.texi: Document the errata workaround.
3617 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3619 * config/mips/mips-protos.h (mips_idiv_insns): Declare.
3620 * config/mips/mips.h (MASK_FIX_SB1): Bump.
3621 (MASK_FIX_R4000, TARGET_FIX_R4000): New macros.
3622 (TARGET_SWITCHES): Add -mfix-r4000 and -mno-fix-r4000.
3623 * config/mips/mips.c (mips_idiv_insns): New function.
3624 (override_options): Make -march=r4000 imply -mfix-r4000 by default.
3625 (mips_output_division): Add a workaround for the R4000 divide/shift
3627 * config/mips/mips.md (length): Use mips_idiv_insns() to calculate
3628 the length of an "idiv" instruction.
3629 * doc/invoke.texi: Document the new switches.
3631 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
3633 * doc/tm.texi (IS_COSTLY_DEPENDENCE): Change to
3634 TARGET_SCHED_IS_COSTLY_DEPENDENCE.
3636 2004-02-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3638 PR optimization/14229
3639 * cfgrtl.c (rtl_tidy_fallthru_edge): Do not fail for !onlyjump jump.
3641 2004-02-28 Eric Botcazou <ebotcazou@act-europe.fr>
3643 * fold-const.c (fold): Strip NOPs that change the signedness
3644 for RSHIFT too. Expand comment.
3646 2004-02-27 Ian Lance Taylor <ian@wasabisystems.com>
3648 PR optimization/7871
3649 * flow.c (mark_set_1): Don't add LOG_LINKS for global registers
3650 from or to call insns.
3652 2004-02-27 Eric Botcazou <ebotcazou@libertysurf.fr>
3654 PR optimization/7871
3655 * flow.c (propagate_one_insn): Interpret calls as setting global
3656 registers, not merely clobbering them.
3658 2004-02-27 Dale Johannesen <dalej@apple.com>
3660 * config/darwin.c (machopic_output_possible_stub_label): Remove.
3661 config/darwin-protos.h: Ditto.
3662 config/darwin.h: Remove call to it.
3663 * combine.c (distribute_notes): Do not place a REG_DEAD note
3664 when value is both set and used.
3666 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
3668 * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
3670 * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
3671 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
3673 2004-02-27 Andrew Pinski <apinski@apple.com>
3675 * c-typeck.c (tagged_types_tu_compatible_p) <ENUMERAL_TYPE>:
3676 Speedup common case of the type values being in the same order.
3678 2004-02-27 Steve Ellcey <sje@cup.hp.com>
3680 * config/ia64/ia64.h (no-inline-float-divide): New option.
3681 * config/ia64/ia64.h (no-inline-int-divide): New option.
3682 * config/ia64/ia64.h (no-inline-sqrt): New option.
3683 (TARGET_DEFAULT): Add MASK_INLINE_FLOAT_DIV_THR to define.
3684 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
3685 * config/ia64/ia64.c (ia64_override_options): Modify error
3686 checking for inlined division/sqrt.
3688 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
3690 * bb-reorder.c, cfgbuild.c, diagnostic.c, explow.c, profile.c,
3691 ra-build.c, read-rtl.c, tracer.c, unwind-dw2-fde-glibc.c,
3692 value-prof.c, config/darwin-protos.h, config/frv/frv-abi.h,
3693 config/i386/pmmintrin.h, config/pa/pa-hpux.h: Update
3696 2004-02-27 Paul Brook <paul@codesourcery.com>
3698 * function.c (assign_parms): Don't count pretend args for alignment.
3700 2004-02-27 Richard Henderson <rth@redhat.com>
3702 * passes.c: New file.
3703 * Makefile.in (OBJS-common): Add it.
3704 * diagnostic.c (rtl_dump_and_exit): Move decl ...
3705 * flags.h (rtl_dump_and_exit): ... here.
3706 * output.h (size_directive_output, last_assemble_variable_decl):
3708 * rtl.h (reg_alloc): Move from toplev.c.
3709 * toplev.c (HAVE_conditional_execution, DUMPFILE_FORMAT,
3710 struct dump_file_info, enum dump_file_index, dump_file_tbl,
3711 open_dump_file, close_dump_file, rest_of_decl_compilation,
3712 rest_of_type_compilation, rest_of_handle_final,
3713 rest_of_handle_delay_slots, rest_of_handle_stack_regs,
3714 rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
3715 rest_of_handle_new_regalloc, rest_of_handle_old_regalloc,
3716 rest_of_handle_regrename, rest_of_handle_reorder_blocks,
3717 rest_of_handle_sched, rest_of_handle_sched2, rest_of_handle_regmove,
3718 rest_of_handle_tracer, rest_of_handle_if_conversion,
3719 rest_of_handle_if_after_combine, rest_of_handle_web,
3720 rest_of_handle_branch_prob,
3721 rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
3722 rest_of_handle_addressof, rest_of_handle_sibling_calls,
3723 rest_of_handle_jump_bypass, rest_of_handle_inlining,
3724 rest_of_handle_null_pointer, rest_of_handle_combine,
3725 rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
3726 rest_of_handle_gcse, rest_of_handle_loop_optimize,
3727 rest_of_handle_loop2, rest_of_compilation): Move to passes.c.
3728 (decode_d_option): Use enable_rtl_dump_file.
3729 (compile_file, finalize, do_compile): Move profile+combine+graph
3730 cleanup to finish_optimization_passes.
3731 * toplev.h (init_optimization_passes, finish_optimization_passes,
3732 enable_rtl_dump_file): Declare.
3734 2004-02-27 Eric Botcazou <ebotcazou@act-europe.fr>
3735 Roger Sayle <roger@eyesopen.com>
3737 * fold-const.c (fold): Revert 2004-02-25 change. Use the original
3738 operands to build a tree with swapped operands.
3739 * expr.c (expand_expr_real) <MAX_EXPR>: Consistently use the
3740 'unsignedp' predicate to specify the signedness.
3742 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
3744 * c-decl.c, c-ppoutput.c, combine.c, cppfiles.c, dwarf2out.c,
3745 expr.c, fold-const.c, gcc.c, haifa-sched.c, loop-iv.c,
3746 params.def, read-rtl.c, rtl.c, rtlanal.c, toplev.c: Fix
3747 comment typos and formatting. Follow spelling conventions.
3749 2004-02-26 Aldy Hernandez <aldyh@redhat.com>
3751 * config/rs6000/rs6000.md: Add fixuns_truncsfsi2 and
3754 * config/rs6000/spe.md: Delete spe_efsctuiz.
3755 Add spe_fixuns_truncsfsi2.
3756 Add spe_fix_truncsfsi2.
3758 2004-02-26 Eric Christopher <echristo@redhat.com>
3760 * c-lex.c (c_lex_string_translate): New variable.
3761 (lex_string): Use to determine string translation.
3762 * c-pragma.h: Prototype.
3763 * c-parse.in (start_string_translation): New. Set above.
3764 (stop_string_translation): Ditto.
3765 (attribute, attribute_list, asm_def, asm_stmt,
3766 asm_operand): Use above functions.
3767 * cp/parser.c (cp_parser_declaration): Translate strings
3768 unless token is RID_EXTERN. Set c_lex_string_translate
3770 (cp_parser_asm_definition): Only translate argument strings
3772 (cp_parser_asm_operand_list): Ditto.
3773 (cp_parser_attribute_list): Do not translate attribute strings.
3775 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
3777 * stmt.c (expand_start_case_dummy): Remove.
3778 * tree.h: Remove the corresponding prototype.
3780 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
3782 * builtins.c (apply_args_register_offset): Remove.
3783 * tree.h: Remove the corresponding prototype.
3785 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
3787 * stor-layout.c (is_pending_size): Remove.
3788 * tree.h: Remove the corresponding prototype.
3790 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
3792 * recog.c (validate_replace_src): Remove.
3793 * recog.h: Remove the corresponding prototype.
3795 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
3797 * calls.c: Don't reference FINAL_REG_PARM_STACK_SPACE or
3798 MAYBE_REG_PARM_STACK_SPACE.
3799 * function.c: Likewise.
3800 * system.h (FINAL_REG_PARM_STACK_SPACE): Poison.
3801 (MAYBE_REG_PARM_STACK_SPACE): Likewise.
3802 * doc/tm.texi (FINAL_REG_PARM_STACK_SPACE): Remove.
3803 (MAYBE_REG_PARM_STACK_SPACE): Likewise.
3805 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
3807 * c-decl.c (c_expand_deferred_function): Remove.
3808 * c-tree.h: Remove the corresponding prototype.
3810 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
3812 * postreload.c (reload_cse_move2add): Generate just a PLUS
3813 instead of an entire SET.
3815 2004-02-26 Jan Hubicka <jh@suse.cz>
3817 * config.gcc: Add support for nocoma/prescott/pentium-m/pentium3m
3819 * i386.c (override_options): Add support for new CPUs.
3820 * i386.h (TARGET_CPU_DEFAULT_NAMES): New names.
3821 (TARGET_CPU_DEFAULT_pentium_m, TARGET_CPU_DEFAULT_pentium4e): New
3823 * invoke.texi: Extend documentation of -mtune/-march for new CPUs.
3825 2004-02-26 Bob Wilson <bob.wilson@acm.org>
3827 * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define __xtensa__.
3829 2004-02-26 Eric Botcazou <ebotcazou@act-europe.fr>
3831 * config/sparc/sparc-protos.h (sparc_emit_floatunsdi): Add 'mode'.
3832 (sparc_emit_fixunsdi): New prototype.
3833 * config/sparc/sparc.c (sparc_emit_floatunsdi): Use 'mode' argument.
3834 (sparc_emit_fixunsdi): New function.
3835 * config/sparc/sparc.md (floatunsdisf2): Use 'general_operand' for
3836 operand 1. Pass SFmode to sparc_emit_floatunsdi.
3837 (floatunsdidf2): Use 'general_operand' for operand 1. Pass DFmode
3838 to sparc_emit_floatunsdi.
3839 (fixuns_truncsfdi2): New expander.
3840 (fixuns_truncdfdi2): Likewise.
3842 2004-02-26 Alan Modra <amodra@bigpond.net.au>
3844 * gcse.c (delete_null_pointer_checks_1): Do not delete CC setter
3847 2004-02-25 Richard Henderson <rth@redhat.com>
3849 * explow.c (force_reg): Call mark_reg_pointer as appropriate.
3850 * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't
3851 use (op0-op1) == 0 if op0 is a pointer.
3852 * config/alpha/alpha.md (cmpdi): Use some_operand.
3853 (three comparison combine splits): Remove.
3855 2004-02-25 Richard Henderson <rth@redhat.com>
3858 * c-common.c (handle_alias_attribute): Reject the attribute if
3859 current_function_decl is set.
3861 2004-02-25 Kelley Cook <kcook@gcc.gnu.org>
3863 * config.gcc: Add comment describing extra_gcc_objs.
3864 i[34567]86-*-cygwin*): Replace host_extra_gcc_objs with extra_gcc_objs.
3865 * configure.ac (extra_gcc_objs): New substitution variable.
3866 (host_extra_gcc_objs): Don't substitute.
3867 * configure: Regenerate.
3868 * Makefile.in: Use extra_gcc_objs.
3870 2004-02-25 Kelley Cook <kcook@gcc.gnu.org>
3872 * doc/contrib.texi: Add an entry for myself.
3874 2004-02-25 Jan Hubicka <jh@suse.cz>
3876 * basic-block.h (make_eh_edge, break_superblocks): Declare.
3877 * cfgbuild.c (make_eh_edge): Make global.
3878 * cfglayout.c (break_superblocks): Likewise; fix memory leak.
3879 * except.c (build_post_landing_pads, connect_post_landing_pads,
3880 dw2_build_landing_pads, sjlj_emit_function_enter,
3881 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
3882 sjlj_build_landing_pads): Update CFG.
3883 (emit_to_new_bb_before): New function.
3884 (finish_eh_generation): Do not rebuild the CFG.
3886 2004-02-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3888 * config.gcc (hppa*-*-*, parisc*-*-*): Add MASK_BIG_SWITCH to all
3889 target_cpu_default defines.
3890 * pa-hpux.h (TARGET_DEFAULT): Add MASK_BIG_SWITCH to define.
3891 * pa.h (TARGET_DEFAULT): Likewise.
3893 2004-02-25 Eric Botcazou <ebotcazou@act-europe.fr>
3895 * fold-const.c (fold): Treat MAX_EXPR and MIN_EXPR like
3896 comparisons with regard to signedness.
3898 2004-02-25 Richard Earnshaw <rearnsha@arm.com>
3900 * arm.c (thumb_legitimize_address): New function.
3901 * arm-protos.h: Prototype it.
3902 * arm.h (THUMB_LEGITIMIZE_ADDRESS): Define.
3903 (LEGITIMIZE_ADDRESS): Use it.
3905 2004-02-25 J"orn Rennecke <joern.rennecke@superh.com>
3907 * reload1.c (reload): Only spill eliminable register with multiple
3908 adjacent elimination alternatives if all alternatives fail.
3910 2004-02-25 Richard Earnshaw <rearnsha@arm.com>
3912 * arm.c (arm_legitimate_index_p): For QImode the range of an offset
3913 is -4095...+4095 inclusive.
3915 2004-02-25 Eric Botcazou <ebotcazou@libertysurf.fr>
3917 * doc/install.texi (sparc-sun-solaris2* specific notes): Document
3918 the bootstrap failure with Sun CC 5.4 and 5.5.
3920 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
3922 * cse.c (cse_change_cc_mode_insns): Stop at any instruction
3923 which modifies NEWREG.
3924 (cse_condition_code_reg): Update the mode of CC_REG in
3925 CC_SRC_INSN on our own.
3927 2004-02-24 Michael Matz <matz@suse.de>
3929 * config/i386/i386.c (ix86_comp_type_attributes): Check for
3932 2004-02-24 Richard Henderson <rth@redhat.com>
3934 * toplev.c (dump_file_tbl): Rename from dump_file.
3935 * bb-reorder.c, bt-load.c, cfgcleanup.c, cfglayout.c, cfgloopanal.c,
3936 cfgloopmanip.c, cfgrtl.c, config/arm/arm.c, config/frv/frv.c,
3937 config/i386/i386.c, config/ia64/ia64.c, config/mips/mips.c,
3938 config/sh/sh.c, cse.c, flow.c, ifcvt.c, loop-iv.c, loop-unroll.c,
3939 loop-unswitch.c, output.h, predict.c, profile.c, ra-build.c,
3940 ra-colorize.c, ra-debug.c, ra-rewrite.c, ra.c, regrename.c, reload1.c,
3941 toplev.c, tracer.c, value-prof.c, var-tracking.c, web.c:
3942 s/rtl_dump_file/dump_file/g.
3944 2004-02-24 Aldy Hernandez <aldyh@redhat.com>
3946 * config/rs6000/spe.md (spe_fix_truncsfsi2): Delete.
3947 (spe_fixuns_truncsfsi2): Delete.
3949 * config/rs6000/rs6000.md (fix_truncsfsi2): Delete.
3950 (fixuns_truncsfsi2): Delete.
3952 2004-02-24 Josef Zlomek <zlomekj@suse.cz>
3955 * rtlanal.c (replace_label): Fix replacing labels in constant pool.
3957 2004-02-24 Geoffrey Keating <geoffk@apple.com>
3959 * config/darwin.h (TARGET_HAS_F_SETLKW): Define.
3961 2004-02-24 Jason Merrill <jason@redhat.com>
3963 * tree.c (check_qualified_type): New fn.
3964 (get_qualified_type): Use it. If type already has the desired
3965 quals, just return it.
3966 * tree.h: Declare it.
3968 2003-02-24 Sanjiv Kumar Gupta <sanjivg@noida.hcltech.com>
3970 * target-def.h (TARGET_SCHED_INIT_GLOBAL,
3971 TARGET_SCHED_FINISH_GLOBAL): New macros.
3973 * target.h (md_init_global, md_finish_global): Function
3974 declarations corresponding to new target macros.
3976 * haifa-sched.c (sched_init, sched_finish): Allow target to
3977 call the new schedular hooks.
3979 * flow.c (recompute_reg_usage): Add PROP_DEATH_NOTES flag in
3980 call to update_life_info.
3982 * config/sh/sh.h (OVERRIDE_OPTIONS): Re-enable
3983 flag_schedule_insns for SH4.
3985 * config/sh/sh.c (sh_md_init_global, sh_md_finish_global,
3986 find_set_regmode_weight, find_insn_regmode_weight,
3987 find_regmode_weight), sh_md_init, sh_dfa_new_cycle,
3988 sh_variable_issue, high_pressure, ready_reorder,
3989 rank_for_reorder, swap_reorder, sh_reorder, sh_reorder2): New
3990 functions used to throttle the insn movement in first
3991 scheduling pass for SH.
3993 * gcc/doc/tm.texi: Document TARGET_SCHED_INIT_GLOBAL and
3994 TARGET_SCHED_FINISH_GLOBAL.
3996 2004-02-24 Alexandre Oliva <aoliva@redhat.com>
3998 Implement FR-V FDPIC ABI support for frv-uclinux and frv-linux.
3999 2004-02-05 Alexandre Oliva <aoliva@redhat.com>
4000 * config/frv/frv.c (frv_emit_movsi): Use GOT relocations for
4001 symbols in sections named by the user.
4002 2004-01-30 Alexandre Oliva <aoliva@redhat.com>
4003 * config/frv/linux.h (TARGET_OS_CPP_BUILTINS): New.
4004 2004-01-27 Alexandre Oliva <aoliva@redhat.com>
4005 * config.gcc (frv-*-*linux*): Handle like *-*-linux*.
4006 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove, obviated by
4008 2004-01-20 Alexandre Oliva <aoliva@redhat.com>
4009 * config/frv/frv.md (symGOT2reg_hilo, symGOTOFF2reg_hilo): Add
4010 one more pseudo to further improve code generation.
4011 2004-01-19 Alexandre Oliva <aoliva@redhat.com>
4012 * config/frv/frv.md (movdi_ldd): Introduce explicit indirection
4014 2004-01-16 Alexandre Oliva <aoliva@redhat.com>
4015 * config/frv/frv.c (frv_legitimate_address_p): Added
4016 allow_double_reg_p argument. Adjust all callers. Use it to
4017 decide whether to enable double-register indirect addressing.
4018 (frv_funcdesc_alias_set): Remove.
4019 (frv_expand_fdpic_call): Force non-SYMBOL_REF operand into
4020 register. Emit movdi_ldd.
4021 (ldd_address_operand): New.