1 2004-04-08 Andrew Pinski <pinskia@physics.uc.edu>
4 * config/darwin.c (darwin_encode_section_info): When the decl has
5 a DECL_INITIAL, it is only defined also when it is not a common.
7 2004-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9 * builtins.c (fold_builtin_isascii, fold_builtin_toascii): New.
10 (fold_builtin): Handle BUILT_IN_ISASCII and BUILT_IN_TOASCII.
12 2004-04-07 H.J. Lu <hongjiu.lu@intel.com>
14 * config/ia64/ia64.c (ia64_encode_section_info): Don't prod
15 global register variables.
17 2004-04-07 Joseph S. Myers <jsm@polyomino.org.uk>
19 * fixinc/inclhack.def (rpc_xdr_lvalue_cast_a,
20 rpc_xdr_lvalue_cast_b): New fixes.
21 * fixinc/fixincl.x: Regenerate.
22 * fixinc/tests/base/rpc/xdr.h: Add new tests.
24 2004-04-07 David Edelsohn <edelsohn@gnu.org>
26 * config/rs6000/rs6000.c (processor_target_table): Add MASK_MFCRF
27 to power4 and power5 entries.
29 2004-04-06 Geoffrey Keating <geoffk@apple.com>
31 * c-common.h (pending_lang_change): Mark for PCH.
33 2004-04-07 Caroline Tice <ctice@apple.com>
35 * gcc.c (main): Move 'break' in main loops (on an error)
36 to wait until error processing has occurred.
38 2004-04-06 Nathanael Nerode <neroden@gcc.gnu.org>
40 * config.gcc: Stop changing enable_threads midstream.
41 Replace uses of enable_threads_flag with enable_threads.
42 * configure.ac: Replace uses of enable_threads_flag with
43 enable_threads. Improve autoconf quotation in one place.
44 * configure: Regenerate.
46 2004-04-06 Uros Bizjak <uros@kss-loka.si>
48 * builtins.c: Implement support for sincos function.
49 (expand_builtin_mathfn): Remove BUILT_IN_SIN{,F,L} and
51 (expand_builtin_mathfn_3): New function.
52 (expand_builtin): Expand BUILT_IN_SIN{,F,L} and
53 BUILT_IN_COS{,F,L} using expand_builtin_mathfn_3 if
54 flag_unsafe_math_optimization is set.
56 * optabs.h (enum optab_index): Add new OTI_sincos.
57 (sincos_optab): Define corresponding macro.
59 * optabs.c (init_optabs): Initialize sincos_optab.
60 (expand_twoval_unop): New function.
62 * genopinit.c (optabs): Implement sincos_optab using sincos?f3
65 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_SINCOS_COS
66 and UNSPEC_SINCOS_SIN.
68 * config/i386/i386.md (sincosdf3, sincossf3, *sincosextendsfdf3,
69 sincosxf3): New patterns to implement sincos, sincosf and sincosl
70 built-ins as inline x87 intrinsics. Define splits for
71 sindf2, sinsf2, *sinextendsfdf2, sinxf2, cosdf2,
72 cossf2, *cosextendsfdf2 and cosxf2 patterns from corresponding
74 (sindf2, sinsf2, sinxf2): Rename to *sindf2, *sinsf2, *sinxf2.
75 (cosdf2, cossf2, cosxf2): Rename to *cosdf2, *cossf2, *cosxf2.
77 (UNSPEC_SINCOS_SIN, UNPEC_SINCOS_COS): New unspecs to represent
80 2004-04-06 Devang Patel <dpatel@apple.com>
83 * config/darwin.h (LINK_COMMAND_SPEC): Use c++filt instead of c++filt3.
85 2004-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
87 * doc/install.texi: Update HP-UX 11 installation procedure.
89 2004-04-06 Paul Brook <paul@codesourcery.com>
91 * doc/sourcebuild.texi: Remove obsolete contraint on testcases.
93 2004-04-05 Kaz Kojima <kkojima@gcc.gnu.org>
95 * config/sh/sh.c (prepare_move_operands): Use emit_call_insn
96 when the TLS address is generated by a function call.
97 * config/sh/sh.md (tls_global_dynamic): Use a call expression.
98 (tls_local_dynamic): Likewise.
100 2004-04-05 Andrew Pinski <pinskia@physics.uc.edu>
102 * tree.c (reconstruct_complex_type): Use TYPE_READONLY
105 2004-04-05 Caroline Tice <ctice@apple.com>
107 * gcc.c (combine_flag): New global variable, for new driver option.
108 (struct compiler): Add two new fields, to be used when
109 combining multiple input files in a single pass (IMA).
110 (default_compilers): Add values for the new fields to all
111 compiler entries. Modify the "@c" compiler entry for doing IMA
112 properly with "-save-temps" and the "combine" flag.
113 (option_map): Add new driver option, "--combine", to tell driver
114 to pass multiple input files to compiler at one time.
115 (have_o_argbuf_index): New global variable.
116 (store_arg): Modify to assign value to have_o_argbuf_index.
117 (struct infile): Add three new fields, to help with IMA.
118 (display_help): Add help for new "combine" option.
119 (process_command): Remove local variable have_o; add code to check
120 for new "combine" option; remove assignment to combine_inputs.
121 (do_spec_1): Modify to deal with IMA better.
122 (main): Make variable 'lang_n_infiles' local to entire function
123 rather than to a single block. Use flag combine_flag to
124 determine whether to do IMA or not; Modify loop initializing
125 infiles to deal properly with linker files.
126 Add code for doing preprocessing in presence of
127 IMA with "-save-temps" flag. Modify "main" loop to handle
128 multiple input files, in multiple languages, with or without
129 preprocessing, gracefully.
130 * toplev.c (set_src_pwd): Modify to not complain if attempting to
131 re-set it to same directory it's previously been set to (avoid
132 irritating, meaningless warning messages when doing IMA with
134 * doc/invoke.texi: Add "-combine" to list of Overall Options;
135 remove documentation about IMA that is no longer accurate; Add
136 documentation explaining what "-combine" does.
137 * ada/lang-specs.h: Add initialization values for new fields in
139 * cp/lang-specs.h: Likewise.
140 * f/lang-specs.h: Likewise.
141 * java/lang-specs.h: Likewise.
142 * objc/lang-specs.h: Likewise.
143 * treelang/lang-specs.h: Likewise.
145 2004-04-05 David Edelsohn
147 * config/rs6000/rs6000.c (VTABLE_NAME_P): Add _ZTI to special
150 2004-04-05 Jakub Jelinek <jakub@redhat.com>
151 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
153 PR optimization/13424 (hppa), bootstrap/14462, c/14828
154 * pa.md: Use replace_equiv_address to retain the attributes of the
155 memory operands used in the split and peephole2 patterns for optimizing
156 the pre-reload movstrsi, movstrdi, clrstrsi and clrstrdi patterns.
158 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
160 * c-decl.c (build_compound_literal): Use TYPE_READONLY.
161 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
162 * objc/objc-act.c (adorn_decl, gen_declspecs): Likewise.
163 * c-typeck.c (decl_constant_value): Don't access DECL_INITIAL of a
165 * calls.c (flags_from_decl_or_type): Use TYPE_READONLY and do so only
167 * print-tree.c (print_node): Properly handle side-effects, readonly,
169 * tree.c (build1_stat, build_expr_wfl): Only look at TREE_SIDE_EFFECTS
170 and TREE_CONSTANT if not a type.
171 * tree.h (IS_NON_TYPE_CODE_CLASS): New macro.
172 (IS_EXPR_CODE_CLASS): Write 'E', not 'e'.
173 (NON_TYPE_CHECK): New macro.
174 (TREE_SIDE_EFFECT, TREE_READONLY, TREE_CONSTANT: Add check.
176 2004-04-05 Eric Botcazou <ebotcazou@libertysurf.fr>
178 * config/sparc/sol2-bi.h (PREFERRED_DEBUGGING_TYPE): Set
179 to DWARF2_DEBUG unconditionally.
180 (ASM_DEBUG_SPEC): Set the default to --gdwarf2 unconditionally.
182 2004-04-04 Ian Lance Taylor <ian@wasabisystems.com>
183 Nathanael Nerode <neroden@gcc.gnu.org>
186 * config.host: Set the shell variable host_can_use_collect2.
187 Set it to yes by default, and to no for alpha*-dec-*vms*,
188 i[34567]86-*-mingw32*, and powerpc-*-beos*.
189 * configure.ac: Set and substitute the shell variable collect2.
190 Give an error if use_collect2 is yes and host_can_use_collect2 is
192 * Makefile.in (COLLECT2): Rename from USE_COLLECT2. Change all
193 uses. Initialize to @collect2@.
194 (STAGESTUFF): Remove $(USE_COLLECT2).
195 * config/alpha/x-vms (USE_COLLECT2): Don't set.
196 * config/i386/t-mingw32 (USE_COLLECT2): Likewise.
197 * config/rs6000/t-beos (USE_COLLECT2): Likewise.
198 * config/pa/t-pa64: Remove commented out USE_COLLECT2.
199 * configure: Regenerate.
201 2004-04-04 Roger Sayle <roger@eyesopen.com>
203 * simplify-rtx.c (simplify_binary_operation): Constant fold
204 DIV, MOD, UDIV and UMOD using div_and_round_double.
206 2004-04-04 Mark Mitchell <mark@codesourcery.com>
209 * varasm.c (initializer_constant_valid_p): Allow NOP_EXPRs to
212 2004-04-04 Mark Mitchell <mark@codesourcery.com>
214 * doc/invoke.texi (-mabi=o64): Create link to O64 ABI
217 2004-04-04 Roger Sayle <roger@eyesopen.com>
219 * cse.c (cse_insn): Correct usage of simplify_replace_rtx when
220 updating the REG_EQUAL note on an insn's libcall_insn.
222 2004-04-04 Roger Sayle <roger@eyesopen.com>
224 * df.h: Tidy up whitespace in the definitions of the DF_ flags.
226 2004-04-03 Roger Sayle <roger@eyesopen.com>
228 * fold-const.c (fold) <PLUS_EXPR>: Guard (-A)+B -> B-A transformation
229 with reorder_operands_p.
231 2004-04-03 Jan Hubicka <jh@suse.cz>
233 * md.texi (vec_set, vec_extract, vec_init): Document.
235 2004-04-02 Gabor Loki <loki@inf.u-szeged.hu>
237 * opts.c (decode_options): Do function inlining with very small
238 max-inline-insns-* parameters when optimizing for size.
240 2004-04-02 Vladimir Makarov <vmakarov@redhat.com>
242 * config/i386/i386.h (TARGET_NOCONA): New macro.
243 (TARGET_CPU_CPP_BUILTINS): Add code for Nocona.
244 (processor_type): Add PROCESSOR_NOCONA.
246 * config/i386/i386.md (cpu): Add nocona to the attribute values.
248 * config/i386/i386.c (nocona_cost): New variable.
249 (m_NOCONA): New macro.
250 (x86_push_memory, x86_movx, x86_cmove, x86_deep_branch,
251 x86_branch_hints, x86_use_sahf, x86_single_stringop,
252 x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8,
253 x86_integer_DFmode_moves, x86_partial_reg_dependency,
254 x86_memory_mismatch_stall, x86_accumulate_outgoing_args,
255 x86_decompose_lea, x86_arch_always_fancy_math_387,
256 x86_sse_partial_reg_dependency, x86_sse_load0_by_pxor,
257 x86_ext_80387_constants, x86_four_jump_limit):
258 (override_options): Add nocona_cost to processor_target_table.
259 Set up PROCESSOR_NOCONA for Nocona entry in processor_alias_table.
260 (incdec_operand): Prevent inc/dec generation for Nocona too.
261 (ix86_issue_rate): Add PROCESSOR_NOCONA.
263 2004-04-01 Andrew Pinski <pinskia@physics.uc.edu>
265 * rtlanal.c (find_reg_note): Manually
268 2004-04-01 Mark Mitchell <mark@codesourcery.com>
270 * genemit.c (gen_split): Change prototype of generated code.
271 * genrecog.c (write_action): Adjust prototype for and calls to
273 * gensupport.c (struct queue_elem): Add split field.
274 (queue_pattern): Return a value. Clear the split field.
275 (process_rtx): Maintain an association between an insn and the
276 split generated from it for a define_insn_and_split.
277 (process_one_cond_exec): Generate a new split for a
278 define_insn_and_split.
279 * config/arm/arm-protos.h (arm_split_constant): Add insn
281 (emit_constant_insn): New function.
282 (arm_gen_constant): Use it.
283 * config/arm/arm.md: Adjust calls to arm_split_constant.
285 2004-04-02 Jan Hubicka <jh@suse.cz>
287 * cgraph.c: Add overall comment.
288 (cgraph_inline_hash): New global variable.
289 (cgraph_create_node): Break out from ...
290 (cgraph_node): ... here.
291 (cgraph_edge): New function.
292 (cgraph_create_edge): New CALL_EXPR argument; some sanity checking.
293 (cgraph_remove_edge): Accept edge, intead of source and destination.
294 (cgraph_redirect_edge_callee): New.
295 (cgraph_remove_node): Update all new datastructures.
296 (cgraph_record_call, cgraph_remove_call): Kill.
297 (dump_cgraph_node): Break out from ... ; dump new datastructures.
298 (dump_cgraph): ... here.
299 (cgraph_function_possibly_inlined_p): Use new hashtable.
300 (cgraph_clone_edge, cgraph_clone_node): New.
301 * cgraph.h: Include hashtab.h
302 (struct cgraph_global_info): Kill cloned_times, inline_once, will_be_output
303 fields, add inlined_to pointer.
304 (cgraph_node): Add pointer to next_clone.
305 (cgraph_remove_edge, cgraph_create_edge): Update prototype.
306 (cgraph_remove_call, cgraph_record_call): Kill.
307 (cgraph_inline_hash): Declare.
308 (dump_cgraph_node, cgraph_edge, cg4raph_clone_edge, cgraph_clone_node,
309 cgraph_redirect_edge_callee): Declare.
310 (cgraph_create_edges, cgraph_inline_p): Update prorotype.
311 (cgraph_preserve_function_body_p, verify_cgraph, verify_cgraph_node,
312 cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Declare.
313 * cgraphunit.c: Add overall comment.
314 (cgraph_optimize_function): Kill.
315 (cgraph_assemble_pending_functions): Do not assemble inline clones.
316 (cgraph_finalize_function): Update call of cgraph_remove_node
317 (record_call_1): Record call sites.
318 (cgraph_create_edges): Accept node instead of decl argument.
319 (error_found): New static variable.
320 (verify_cgraph_node_1, verify_cgraph_node, verify_cgraph): New functions.
321 (cgraph_analyze_function): Update for new datastructures.
322 (cgraph_finalize_compilation_unit): Plug memory leak.
323 (cgraph_optimize_function): Kill.
324 (cgraph_expand_function): Do not use cgraph_optimize_function.
325 (INLINED_TIMES, SET_INLINED_TIMES, cgraph_inlined_into,
326 cgraph_inlined_callees): Kill.
327 (cgraph_remove_unreachable_nodes): Verify cgraph; update handling of
329 (estimate_growth): Simplify.
330 (cgraph_clone_inlined_nodes): New function.
331 (cgraph_mark_inline_edge): Re-implement.
332 (cgraph_mark_inline): Likewise.
333 (cgraph_check_inline_limits): Simplify.
334 (cgraph_recursive_inlining_p): New.
335 (update_callee_keys): Break out from ...
336 (cgraph_decide_inlining_of_small_functions): ... here; simplify.
337 (cgraph_decide_inlining, cgraph_decide_inlining_incrementally):
339 (cgraph_expand_all_functions): Remove inline clones from the ordered
341 (cgraph_preserve_function_body_p): New predicate.
342 (cgraph_optimize): Verify cgraph.
343 * function.h (struct function): Add fields saved_tree/saved_args.
344 * timevar.def (TV_CGRAPH_VERIFY): Use verifier.
345 * toplev.c (rest_of_compilation): Do not free cfun.
346 * tree-inline.c: Include function.h
347 (struct inline_data): Add saving_p field; replace decl/current_decl by
349 (insert_decl_map): New function.
350 (copy_body_r): Handle saving; update cgraph datastructure.
351 (copy_body): Handle recursive inlining.
352 (initialize_inlined_parameters): Likewise.
353 (expand_call_inline): Propagate node attributes; update cgraph.
354 (optimize_inline_calls): Verify that datastructure still match.
355 (save_body): New function.
356 * tree-inline.h (save_body): New.
357 * tree-optimize.c (tree_rest_of_compilation): preserve function body; do inlining.
358 * langhooks-def.c (LANG_HOOKS_UPDATE_DECL_AFTER_SAVING): New.
359 * langhooks.c (lang_hooks): Add update_decl_after_saving.
361 2004-04-01 Serge Belyshev <1319@bot.ru>
364 * config/i386/i386.md: fix source operand constraints in
365 mmx_pshufw, sse2_pshufd, sse2_pshuflw, sse2_pshufhw
367 2004-04-01 Waldek Hebisch <hebisch@math.uni.wroc.pl>
369 * fold-const.c (folda): Preserve types of comparisons.
371 2004-04-01 Richard Henderson <rth@redhat.com>
373 * toplev.c (backend_init): Move init_optimization_passes call ...
374 (lang_dependent_init): ... here.
376 2004-04-01 Alan Modra <amodra@bigpond.net.au>
377 Jakub Jelinek <jakub@redhat.com>
379 * gcc.c (init_gcc_specs): If HAVE_LD_AS_NEEDED, link with
380 -lgcc --as-needed -lgcc_s --no-as-needed by default.
381 * configure.ac (HAVE_LD_AS_NEEDED): Check for ld --as-needed.
382 * configure: Rebuilt.
383 * config.in: Rebuilt.
384 * Makefile.in (stage1-start): Copy also libgcc_s*$(SHLIB_EXT).
385 (stage2-start, stage3-start, stage4-start): Likewise.
386 (stageprofile-start, stagefeedback-start): Likewise.
388 2004-04-01 Jakub Jelinek <jakub@redhat.com>
390 * config/sparc/sparc.h (DITF_CONVERSION_LIBFUNCS): Define to 0.
391 * config/sparc/linux.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
392 * config/sparc/linux64.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
393 * config/sparc/sol2.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
394 (SOLARIS_CONVERSION_LIBFUNCS): Rename to SUN_CONVERSION_LIBFUNCS.
395 * config/sparc/sparc.c (sparc_init_libfuncs): Initialize optabs
396 with _Q_qtoll, _Q_qtoull and _Q_lltoq if DITF_CONVERSION_LIBFUNCS.
397 * config.gcc (sparc-*-linux*): Revert 2004-03-23 change.
398 * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Likewise.
399 * config/sparc/t-linux: Removed.
401 2004-04-01 Jakub Jelinek <jakub@redhat.com>
404 * fold-const.c (fold) <EQ_EXPR>: Properly compute newconst in
405 "bitfld++ == const" to "++bitfld == const + incr" transformations.
407 2004-04-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
409 * expr.c (get_inner_reference): Use DECL_UNSIGNED, not TREE_UNSIGNED.
410 * stor-layout.c (layout_decl): Likewise.
411 * tree.c (get_narrower): Likewise and also use BIT_FIELD_REF_UNSIGNED.
412 * fold-const.c (make_bit_field_ref): Use BIT_FIELD_REF_UNSIGNED.
413 * print-tree.c (print_node): Handle various used of unsigned_flag.
414 * tree.def (BIT_FIELD_REF): Update comment.
415 * tree.h (TREE_UNSIGNED): Deleted.
416 (DECL_UNSIGNED, BIT_FIELD_REF_UNSIGNED): New macros.
418 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
420 * builtins.c, c-aux-info.c, c-common.c, c-cppbuiltin.c, c-decl.c:
421 Change most occurrences of TREE_UNSIGNED to TYPE_UNSIGNED.
422 * c-format.c, c-opts.c, c-pretty-print.c, c-typeck.c: Likewise.
423 * calls.c, convert.c, dbxout.c, dojump.c, dwarf2out.c: Likewise.
424 * expmed.c, expr.c, fold-const.c, function.c, integrate.c: Likewise.
425 * optabs.c, sdbout.c, stmt.c, stor-layout.c, tree-dump.c: Likewise.
426 * tree.c, config/iq2000/iq2000.c, config/m32r/m32r.c: Likewise.
427 * config/mips/mips.c, config/rs6000/rs6000.c: Likewise.
428 * config/s390/s390.c, config/sparc/sparc.c, objc/objc-act.c: Likewise.
429 * stor-layout.c (layout_type, case COMPLEX_TYPE): Test for
430 REAL_TYPE, not INTEGER_TYPE.
431 (layout_type, case VECTOR_TYPE): Simplify code.
432 * tree.c (build_vector_type_for_mode): Remove dup unsigned setting.
433 * tree.h: Update comments.
434 (STRIP_NOPS): Use TYPE_UNSIGNED.
435 (TYPE_UNSIGNED): New macro.
436 (TYPE_TRAP_SIGNED): Remove now redundant check.
437 (SAVE_EXPR_NOPLACEHOLDER): Don't use TREE_UNSIGNED.
439 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
441 * function.c (put_var_into_stack): Properly set orig_reg for indirect.
443 2004-03-31 Andrew Pinski <pinskia@physics.uc.edu>
445 * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA):
446 Add darwin-fpsave.asm, darwin-vecsave.asm,
447 and darwin-world.asm.
448 (TARGET_LIBGCC2_CFLAGS): Add -Wa,-force_cpusubtype_ALL
449 as the asm files contain altivec instructions.
450 * config/rs6000/darwin-fpsave.asm: New file.
451 * config/rs6000/darwin-vecsave.asm: New file.
452 * config/rs6000/darwin-world.asm: New file.
454 2004-03-31 Zack Weinberg <zack@codesourcery.com>
456 * gengtype-yacc.y (option, stringseq): Add missing
457 terminating semicolon.
459 2004-03-30 David Edelsohn <edelsohn@gnu.org>
461 * config/rs6000/rs6000.md (tls_gd_32, tls_gd_64,
462 tls_ld_32, tls_ld_64, tls_dtprel_32, tls_dtprel_64,
463 tls_dtprel_ha_32, tls_dtprel_ha_64,
464 tls_dtprel_lo_32, tls_dtprel_lo_64,
465 tls_got_dtprel_64, tls_tprel_32, tls_tprel_64,
466 tls_tprel_ha_32, tls_tprel_ha_64,
467 tls_tprel_lo_32, tls_tprel_lo_64,
468 tls_got_tprel_32, tls_got_tprel_64,
469 tls_tls_32, tls_tls_64): Replace register_operand with
472 2004-03-30 Mostafa Hagog <mustafa@il.ibm.com>
474 * config/rs6000/rs6000.md (*ctrsi_internal1, *ctrsi_internal2,
475 *ctrdi_internal1, *ctrdi_internal2, *ctrsi_internal3,
476 *ctrsi_internal4, *ctrdi_internal3, *ctrdi_internal4,
477 *ctrsi_internal5, *ctrsi_internal6, *ctrdi_internal5,
478 *ctrdi_internal6): Replace register_operand with
479 nonimmediate_operand.
481 2004-03-29 Fariborz Jahanian <fjahanian@apple.com>
483 * fold-const.c (fold): Reassociate multiply expression
484 with an adjacent non-multiply expression to use
485 architecture's multiply-add instruction.
487 2004-03-30 Zack Weinberg <zack@codesourcery.com>
489 * gengtype.c (create_option): New function.
490 * gengtype.h: Prototype it.
491 * gengtype-yacc.y (stringseq): New rule.
492 (option): Use create_option. Add new bare ID production. Use
493 stringseq, not STRING directly.
495 * alias.c, bitmap.c, c-decl.c, cgraph.h, cpplib.h, cselib.h
496 * dwarf2out.c, emit-rtl.c, function.h, lists.c, tree.h
497 * varray.h, config/alpha/alpha.c:
498 Use new shorter form of GTY markers.
500 * doc/gty.texi: Rewrite.
502 2004-03-30 Andrew Pinski <pinskia@physics.uc.edu>
504 * config/darwin.c (machopic_function_base_name):
505 Remove current_name and getting the name of the
508 2004-03-30 Nick Clifton <nickc@redhat.com>
510 * config/arm/arm.md (thumb_jump): Reduce the backward branch
511 range, and increase the forward branch range, to allow for
512 the fact that the PC will be off by 4.
514 2004-03-30 Alan Modra <amodra@bigpond.net.au>
516 * .cvsignore: Add GPATH, GRTAGS, GSYMS and GTAGS (GNU GLOBAL)
518 2004-03-30 Hartmut Penner <hpenner@de.ibm.com>
520 * config/rs6000/rs6000.c (output_vec_const_move):
521 Find all cases of EASY_VECTOR_15_ADD_SELF.
522 (easy_vector_constant_add_self): Accept
523 all vector constant loadable by vsplt* and vadd*.
524 (easy_vector_same): Use easy_vector_splat_const.
525 (easy_vector_const): Use easy_vector_splat_const.
526 (easy_vector_splat_const): New function.
527 (gen_easy_vector_constant_add_self): New function.
529 * config/rs6000/rs6000-protos.c (gen_easy_vector_constant_add_self):
532 * config/rs6000/altivec.md (movv4si splitter): Change to
533 emit move insn with halfed vector constant.
534 (*movv8hi splitter): Likewise.
535 (*movv16qi splitter): Likewise.
537 2004-03-30 Hartmut Penner <hpenner@de.ibm.com>
540 * config/rs6000/rs6000.c (rs6000_legitimate_address):
541 Allow any offset to argument pointer in no-strict case.
543 2004-03-30 Jan Hubicka <jh@suse.cz>
545 * toplev.c (backend_init): Add missing call to inint_optimization_passes.
546 * passes.c (init_optimization_passes, finish_optimization_passes): Output cgraph
547 dump file in non-unit-at-a-time mode.
549 2004-03-29 Hans-Peter Nilsson <hp@axis.com>
551 * config/cris/cris.h: Correct #ifdef to test for
552 HAVE_AS_NO_MUL_BUG_ABORT_OPTION, not
553 HAVE_AS_MUL_BUG_ABORT_OPTION.
555 2004-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
557 * function.c (put_var_into_stack): If old RTL was ADDRESSOF, update
558 the address inside the old RTL.
560 2004-03-28 Zack Weinberg <zack@codesourcery.com>
562 * c-decl.c: Verify that C_SIZEOF_STRUCT_LANG_IDENTIFIER is correct.
563 (struct c_binding, struct c_scope): Add chain_next
564 attributes to GTY markers.
565 (struct lang_identifier, struct lang_tree_node): Define
567 * c-tree.h: ... not here. No longer need to declare struct
568 c_binding either. Do define C_SIZEOF_STRUCT_LANG_IDENTIFIER.
569 * c-lang.c, objc/objc-lang.c: Set LANG_HOOKS_IDENTIFIER_SIZE
570 to C_SIZEOF_STRUCT_LANG_IDENTIFIER.
573 * c-decl.c (get_parm_info): If error_mark_node is encountered
574 in the bindings chain, unbind and discard it; don't abort.
576 2004-03-28 Olga Golovonevsky <olga@il.ibm.com>
577 Dorit Naishlos <dorit@il.ibm.com>
579 * config/rs6000/altivec.md: (andvv16qi3, andv8hi3, one_cmplv16qi2,
580 one_cmplv8hi2, one_cmplv4si2, iorv16qi3, iorv8hi3,): New modelling.
582 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
584 * config/m68hc11/m68hc11-protos.h (m68hc11_page0_symbol_p): Declare.
586 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute): New.
587 (m68hc11_attribute_table): New attribute "page0" to mark a global
588 variable as being allocated from within page0 section.
589 (m68hc11_encode_label): New function.
590 (m68hc11_strip_name_encoding): New function.
591 (m68hc11_page0_symbol_p): New function.
592 (m68hc11_indirect_p): Accept global variables marked in page0.
593 (m68hc11_encode_section_info): Lookup "page0" attribute.
595 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): 'R' constraint also
596 represents access to page0 variables.
598 * config/m68hc11/m68hc11.md ("*logicalsi3_zexthi"): Use gen_rtx_REG.
599 ("*logicalsi3_silshl16_zext"): Likewise.
600 ("*ashldi3_const32"): Likewise.
601 (peephole2 ashift): Likewise.
603 2004-03-28 Joseph S. Myers <jsm@polyomino.org.uk>
605 * c-tree.h (C_DECL_REGISTER): New.
606 * c-aux-info.c (gen_decl), c-decl.c (objc_mark_locals_volatile,
607 finish_decl, grokdeclarator, get_parm_info), c-typeck.c
608 (build_array_ref, c_mark_addressable): Set and use it.
609 * c-decl.c (grokdeclarator), c-typeck.c (c_mark_addressable):
610 Allow structures with volatile fields to be declared register.
611 Don't check TREE_ADDRESSABLE before warning about taking address
613 * c-decl.c (finish_decl): Don't allow structures with volatile
614 fields to be placed in named register.
615 * doc/trouble.texi: Remove reference to structures with volatile
618 2004-03-27 Ulrich Weigand <uweigand@de.ibm.com>
620 * function.c (thread_prologue_and_epilogue): Move
621 NOTE_INSN_FUNCTION_END and NOTE_INSN_FUNCTION_BEG notes
624 2004-03-27 Ulrich Weigand <uweigand@de.ibm.com>
626 * expr.c (store_constructor): Use gen_int_mode to correctly
627 sign-extend CONST_INT value.
629 2004-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
631 * builtin-types.def (BT_WINT, BT_FN_INT_WINT, BT_FN_WINT_WINT): New.
632 * builtins.def (DEF_C94_BUILTIN): New. Add wctype builtins.
633 * doc/extend.texi: Likewise.
635 2004-03-26 Diego Novillo <dnovillo@redhat.com>
637 * c-typeck.c (comptypes): Replace calls to TYPE_DOMAIN
638 with TYPE_ORIG_SIZE_TYPE.
640 2004-03-25 Aldy Hernandez <aldyh@redhat.com>
643 * c-typeck.c (build_binary_op): Do not allow comparisons of
646 2004-03-26 James A. Morrison <ja2morri@uwaterloo.ca>
648 * config.gcc: Remove sparc-tti-*.
649 * config/sparc/pbd.h: Delete.
651 * config/sparc/sol2.h: Remove note about Sun OS 4.x.
652 * config/sparc/aout.h: Likewise.
654 * config/sparc/sparc.h: Remove if 0'd code.
655 * config/sparc/sparc.md (call): Remove if 0'd code.
656 (call_value): Likewise.
657 (nonlocal_goto): Likewise.
658 (unimp_insn): Delete.
660 2004-03-25 Roger Sayle <roger@eyesopen.com>
662 * fold-const.c (tree_expr_nonnegative_p): Handle BIT_XOR_EXPR like
663 BIT_IOR_EXPR; A^B is nonnegative when A and B are nonnegative.
665 2004-03-25 Richard Henderson <rth@redhat.com>
668 * c-typeck.c (pop_init_level): Emit pending init elements earlier
671 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
673 * builtins.c (fold_builtin): Fix error in last change.
675 2004-03-25 Richard Sandiford <rsandifo@redhat.com>
677 * config/mips/mips.h: Formatting fix.
679 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
681 * builtins.def: Add ctype builtins.
682 * doc/extend.texi: Likewise.
684 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
686 * builtins.c (fold_builtin): Add new builtin optimizations for
688 * fold-const.c (fold): Likewise.
690 2004-03-25 David Edelsohn <edelsohn@gnu.org>
692 * config/rs6000/rs6000.c (rs6000_always_hint): New variable.
693 (rs6000_sched_groups): New variable.
694 (processor_target_table): Add power5.
695 (rs6000_override_options): Set rs6000_sched_insert_nops,
696 rs6000_sched_costly_dep and rs6000_sched_restricted_insns_priority
697 from rs6000_sched_groups.
698 (output_cbranch): Use rs6000_always_hint.
699 (rs6000_variable_issue): Use rs6000_sched_groups.
700 (rs6000_adjust_cost): Add CPU_POWER5.
701 (is_microcoded_insn): Use rs6000_sched_groups.
702 (is_dispatch_slot_restricted): Use rs6000_sched_groups.
703 Return 2 for POWER5 cracked instructions.
704 (is_cracked_insn): Use rs6000_sched_groups.
705 (is_branch_slot_insn): Use rs6000_sched_groups.
706 (rs6000_issue_rate): Add CPU_POWER5.
707 (rs6000_sched_finish): Use rs6000_sched_groups.
708 (rs6000_rtx_costs): Add PROCESSOR_POWER5.
709 * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_POWER5.
710 (DEFAULT_SCHED_COSTLY_DEP): Delete.
711 (DEFAULT_RESTRICTED_INSNS_PRIORITY): Delete.
712 (DEFAULT_SCHED_FINISH_NOP_INSERTION_SCHEME): Delete.
713 * config/rs6000/rs6000.md (define_attr "cpu"): Add power5.
714 * config/rs6000/power5.md: New file.
715 * doc/invoke.texi: Add power5 option.
717 2004-03-25 Kazu Hirata <kazu@cs.umass.edu>
719 * cfgrtl.c, dbxout.c, tree.def, config/darwin.h,
720 config/arm/arm.c, objc/objc-act.c: Fix comment typos.
721 * doc/invoke.texi: Fix a typo.
723 2004-03-25 Kazu Hirata <kazu@cs.umass.edu>
725 PR optimization/9707.
726 * stmt.c (emit_case_nodes): Emit equality comparisons instead
727 of recursing if both children are single-valued cases with no
730 2004-03-25 Paul Brook <paul@codesourcery.com>
732 * config/arm/arm.c (vfp_print_multi): Remove.
733 (arm_output_fldmx): New function.
734 (vfp_emit_fstmx): Return block size, not insn. Add ARM10 VFPr1 bugfix.
735 (arm_expand_prologue): Update to match.
736 (arm_get_vfp_saved_size): New Function.
737 (arm_get_frame_offsets): Use it.
738 (arm_output_epilogue): Use new functions.
740 2004-03-24 Richard Henderson <rth@redhat.com>
742 * alias.c (alias_invariant, alias_invariant_size): Mark GTY.
743 (reg_known_value, reg_known_value_size): Likewise; make static.
744 (reg_known_equiv_p): Make static.
745 (clear_reg_alias_info): Update for new indexing.
746 (get_reg_known_value, set_reg_known_value): New.
747 (get_reg_known_equiv_p, set_reg_known_equiv_p): New.
748 (canon_rtx): Use them.
749 (init_alias_analysis): Likewise. Allocate reg_known_value with gc.
750 Don't play queer offsetting games with reg_known_value and
752 (end_alias_analysis): Free reg_known_value with gc.
753 * rtl.h (get_reg_known_value, get_reg_known_equiv_p): Declare.
754 * sched-deps.c (reg_known_equiv_p, reg_known_value): Remove.
755 (deps_may_trap_p, sched_analyze_1, sched_analyze_2): Use the new
758 2004-03-24 Kazu Hirata <kazu@cs.umass.edu>
760 * dwarf2asm.c, loop.h, pretty-print.c, pretty-print.h,
761 config/i386/mmintrin.h: Update copyright.
763 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
765 * configure.ac: Add --enable-werror-always (for top level bootstrap
767 * configure: Regenerate.
769 2004-03-24 Ziemowit Laski <zlaski@apple.com>
771 * objc/objc-act.c (objc_comptypes): Treat comparisons
772 between 'Class' and '<class> *' as explicitly invalid.
774 2004-03-24 David Edelsohn <edelsohn@gnu.org>
776 * doc/invoke.texi (-frename-registers: Add enabled at -O3.
777 (-fprofile-values): Add enabled with profile-{generate,use}.
779 (-ftracer): Add enabled with profile-use.
780 (-funit-at-a-time): Add enabled at -O2,-O3.
781 (-funroll-loops): Add enabled with profile-use.
782 (-funswitch-loops): Add enabled with profile-use. Remove duplicates.
783 (max-gcse-passes): Mention default.
784 (max-cse-path-length): Mention default.
786 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
788 * Makefile.in (STRICT2_WARN): Reorder.
789 * configure.ac: Check for -Wold-style-definition, and use it
790 in strict1_warn if it's available.
791 * configure: Regnerate.
793 2004-03-24 Paul Brook <paul@nowt.org>
795 * config.gcc <arm>: Add --with-abi=
796 * config/arm/arm-protos.h (arm_get_frame_size, thumb_get_frame_size,
797 thumb_far_jump_used): Remove prototypes.
798 (arm_needs_doubleword_align): Add prototype.
799 (thumb_compute_initial_elimination_offset): Ditto.
800 * config/arm/arm.c (arm_get_frame_offsets): New function.
801 (use_return_insn, output_return_instruction, arm_output_epilogue,
802 arm_output_function_epilogue, arm_compute_initial_elimination_offset,
803 arm_expand_prologue, thumb_expand_epilogue): Use it.
804 (arm_abi, target_abi_name, all_arm_abis): New variables.
805 (arm_override_options): Set them. Set structure padding for AAPCS.
806 (arm_return_in_memory): Update ABI check.
807 (arm_init_cumulative_args): Initialize can_split.
808 (arm_needs_doubleword_align): New function.
809 (arm_function_arg): Don't split args after pushing to stack. Handle
810 doubleword/even reg alignment.
811 (arm_va_arg): Handle all doubleword aligned args.
812 (add_minpoolforward ref, dump_minpool, push_minpool_fix): Align based
814 (arm_compute_save_reg0_reg12_mask): Fix comment.
815 (thumb_get_frame_size, thumb_get_frame_size): Remove.
816 (thumb_jump_far_used_p): Remove superfluous argument. Return save
818 (thumb_unexpanded_epilogue, thumb_output_function_prologue): Change
820 (thumb_compute_initial_elimination_offset): New function.
821 (thumb_expand_prologue): Use arm_get_frame_offsets. Remove
822 unneccessary rounding.
823 * config/arm/arm.h (target_abi_name): Declare.
824 (ARM_DOUBLEWORD_ALIGN, DOUBLEWORD_ALIGNMENT, TARGET_IWMMXT_ABI,
825 arm_abi_type, ARM_DEFAULT_ABI): Define.
826 (ARM_FLAG_ATPCS): Remove.
827 (TARGET_OPTIONS, OPTION_DEFAULT_SPECS): Add -mabi=.
828 (BIGGEST_ALIGNMENT, PREFERRED_STACK_BOUNDARY, STACK_BOUNDARY): Use it.
829 (ADJUST_FIELD_ALIGN, DATA_ALIGNMENT, LOCAL_ALIGNMENT,
830 TYPE_NEEDS_IWMMXT_ALIGNMENT): Remove.
831 (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P, FUNCTION_ARG_REGNO_P):
832 Contitionalize on ABI, not CPU.
833 (struct arm_stack_offsets): Define.
834 (struct machine_function): Add stack_offsets. Remove frame_size.
835 (FUNCTION_ARG_PARTIAL_NREGS): Don't split if previous args have been
837 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_BOUNDARY): Handle general
838 doubleword alignment.
839 (THUMB_INITIAL_ELIMINATION_OFFSET,
840 ARM_INITIAL_ELIMINATION_OFFSET): Remove.
841 (INITIAL_ELIMINATION_OFFSET): Call functions directly.
842 * config/arm/arm.md (align_8): Enable for all targets.
843 * config/arm/netbsd-elf.h (TARGET_DEFAULT): Remove TARGET_ATPCS.
844 (ARM_DEFAULT_ABI): Define.
845 * doc/invoke.texi <ARM>: Document -mabi=. Update documentation for
846 -mstructure-size-boundary.
848 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
850 * configure.ac: Check for -Wno-variadic-macros; don't use
851 -pedantic (in stage 1 or a simple 'make all') unless it's available,
852 and if it's available, use it. Also, clean up check for
854 * configure: Regenerate.
856 2004-03-24 Richard Sandiford <rsandifo@redhat.com>
858 * config.gcc (mips64vr-*-elf*, mips64vrel-*-elf*): Remove tm_defines.
859 * config/mips/vr.h (DEFAULT_VR_ARCH): New macro, defined to vr4130.
860 (MULTILIB_DEFAULTS): Use it.
861 (MIPS_CPU_STRING_DEFAULT): Remove.
862 (MIPS_ABI_DEFAULT, MIPS_MARCH_CONTROLS_SOFT_FLOAT): Define.
863 (DRIVER_SELF_SPECS): Make -mfix-vr4122-bugs imply -march=vr4120. Make
864 EABI64 -mlong32 the default ABI. Enforce the default architecture.
865 * config/mips/t-vr (MULTILIB_OPTIONS): Add mfix-vr4122-bugs,
866 march=vr4130, march=vr4300, march=vr5000 and march=vr5500.
867 (MULTILIB_MATCHES): Use -mfix-vr4122-bugs multilibs for -march=vr4120.
868 (MULTILIB_EXCEPTIONS): Change choice of multilibs. Update comments
871 2004-03-24 DJ Delorie <dj@redhat.com>
872 Richard Sandiford <rsandifo@redhat.com>
874 * config/mips/mips.h (MASK_FIX_VR4122, TARGET_FIX_VR4122): New macros.
875 (TARGET_SWITCHES): Add -mfix-vr4122-bugs and -mno-fix-vr4122-bugs.
876 (ASM_SPEC): Pass down -mfix-vr4122-bugs.
877 * config/mips/mips.c (mips_avoid_hazards): Don't emit whole functions
878 in .set noreorder and .set nomacro if TARGET_FIX_VR4122.
879 (mips_init_libfuncs): Use special functions for divsi3 and modsi3
880 if TARGET_FIX_VR4122.
881 * config/mips/mips.md (define_attr length): Account for nops inserted
882 after macc and dmult when using -mfix-vr4122-bugs.
883 (umuldi3_highpart, divmodsi4, divmoddi4): Disable if TARGET_FIX_VR4122.
884 * config/mips/t-vr (LIB2FUNCS_STATIC_EXTRA): Define instead of
885 LIB2FUNCS_EXTRA. Add config/mips/vr4122-div.S.
886 * config/mips/vr4122-div.S: New file.
887 * doc/invoke.texi: Document -mfix-vr4122-bugs.
889 2004-03-24 Richard Sandiford <rsandifo@redhat.com>
891 * config/mips/mips.h (PROCESSOR_R4130): New processor_type.
892 (TARGET_MIPS4130): New macro.
893 (ISA_HAS_MACC): Return true if TARGET_MIPS4130 && !TARGET_MIPS16.
894 * config/mips/mips.c (mips_cpu_info_table): Add a vr4130 entry.
895 (override_options): Extend MIPS_MARCH_CONTROLS_SOFT_FLOAT to deal
896 with PROCESSOR_R4130.
897 * config/mips/mips.md (define_attr cpu): Add r4130.
898 * doc/invoke.texi: Document vr4130 as a supported MIPS architecture.
900 2004-03-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
901 Richard Sandiford <rsandifo@redhat.com>
903 * doc/invoke.texi: Apply missed hunk from 2004-03-03 change.
905 2004-03-24 Alexandre Oliva <aoliva@redhat.com>
907 PR preprocessor/14438
908 * cpplib.c (do_pragma): Remove line_change call after pragma
911 2004-03-23 Ian Lance Taylor <ian@wasabisystems.com>
913 * doc/extend.texi (ARM Built-in Functions): Replace with correct
916 2004-03-23 Roger Sayle <roger@eyesopen.com>
918 * reg-stack.c (get_true_reg): Handle FLOAT_TRUNCATE like FLOAT_EXTEND
919 if flag_unsafe_math_optimizations.
920 * config/i386/i386.md (truncdfsf2): If flag_unsafe_math_optimizations
921 and TARGET_80387 expand using truncdfsf2_noop pattern.
922 (truncxfsf2): Likewise using truncxfsf2_noop.
923 (truncxfdf2): Likewise using truncxfdf2_noop.
924 (truncdfsf2_noop, truncxfsf2_noop, truncxfdf2_noop): New patterns.
926 2004-03-23 Ziemowit Laski <zlaski@apple.com>
928 * hooks.c (hook_constcharptr_tree_null): New hook.
929 * hooks.h (hook_constcharptr_tree_null): New prototype.
930 * target-def.h (TARGET_MANGLE_FUNDAMENTAL_TYPE): New target hook.
931 * target.h (mangle_fundamental_type): New target hook.
932 * config/rs6000/rs6000.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Point
933 target hook at rs6000_mangle_fundamental_type.
934 (rs6000_mangle_fundamental_type): New function.
935 * doc/tm.texi (TARGET_MANGLE_FUNDAMENTAL_TYPE): Document.
937 2004-03-23 Zack Weinberg <zack@codesourcery.com>
939 PR 12267, 12391, 12560, 13129, 14114, 14133
940 * c-tree.h: Forward declare struct c_binding. Declare
941 c_override_bindings_to_false. Update prototypes.
942 (struct lang_identifier): Update comments. Change fields to be
944 (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE)
945 (IDENTIFIER_LABEL_VALUE, C_DECL_INVISIBLE)
946 (KEEP_NO, KEEP_YES, KEEP_MAYBE): Delete.
947 (C_DECL_IN_EXTERNAL_SCOPE, C_DECL_DECLARED_BUILTIN): New.
948 * c-common.h: Update prototypes.
949 * c-decl.c (struct c_scope): Update commentary. Remove names,
950 names_last, parms, parms_last, tags, and shadowed fields. Add
951 bindings and depth fields.
952 (scope_freelist): Move to more appropriate location.
953 (c_print_identifier): Update for changes to struct lang_identifier.
954 (objc_mark_locals_volatile): Update for new bindings structures.
955 (global_bindings_p): Honor c_override_global_bindings_to_false.
956 (pushlevel): Rename to push_scope; take no arguments; use the
957 scope_freelist; initialize scope->depth and check for overflow.
958 (poplevel): Rename to pop_scope; totally rewritten for new bindings
960 (diagnose_mismatched_decls): Use C_DECL_DECLARED_BUILTIN, not
961 C_DECL_INVISIBLE, for certain decisions. Adjust some diagnostics.
962 Improve some commentary. Adjust handling of forward parm decls.
963 (merge_decls): Set C_DECL_DECLARED_BUILTIN when appropriate.
964 Preserve C_DECL_IN_EXTERNAL_SCOPE.
965 (warn_if_shadowing): Correct indentation. Improve diagnostics.
966 (pushdecl): Remove unnecessary assertion. Short-circuit anonymous
967 decls. Rewrite for new bindings structures. Improve commentary.
968 Eliminate the copy_node call.
969 (implicit_decl_warning): Use the "diag" idiom (as seen in
970 locate_old_decl) to reduce code duplication; call locate_old_decl
971 if appropriate. Relocate to remove need for forward declaration.
972 (implicitly_declare): Adjust for new bindings structures. Kludge
973 around Objective-C not-really-builtin functions.
974 (undeclared_variable): Improve diagnostics. If current_function_decl
975 is nonnull but current_function_scope is null, use current_scope.
977 (lookup_tag): Adjust for new bindings structures. Kludge around
978 Objective-C's tag declarations that wind up in the external scope.
979 (lookup_name): Adjust for new bindings structures. Kludge around
980 c-common.c's pseudo-typedefs that wind up in the external scope.
981 (lookup_name_current_level): Rename lookup_name_in_scope; take a
982 second argument indicating the scope to examine; rewrite for
983 new bindings structures.
984 (c_init_decl_processing): Adjust for renamed functions. Do not
985 initialize current_file_decl, first_builtin_decl, last_builtin_decl.
986 First scope pushed is the external scope, not the global scope.
987 (builtin_function): Use bind, not pushdecl. Adjust other bits
988 for new data structures. Keep track of builtins that should be
989 made visible automatically.
990 (start_decl): Adjust diagnostics. Remove unnecessary call to
992 (grokparms): Return 0 if arg_types is error_mark_node.
993 (get_parm_info): Rename "void_at_end" argument to "ellipsis", with
994 reversed sense. Rewrite for new bindings structures. Do not
995 leave any decls in the scope, to prevent pop_scope from doing
996 contradictory things with them.
997 (finish_struct, finish_enum): Remove redundant diagnostics.
998 (build_enumerator): Don't cascade diagnostics for error_mark_node.
999 Mark location where -pedantic changes the meaning of the program.
1000 (store_parm_decls_newstyle, store_parm_decls_oldstyle): Load the
1001 parameter decls into the function's scope structure using bind.
1002 Warn here about function definitions in the wrong style.
1004 (store_parm_decls): Correct the determination of whether a
1005 function was defined with a prototype.
1006 (c_write_global_declarations): Operate on all file decls and on
1007 the external scope. Split body of the loop to...
1008 (c_write_global_declarations_1): ... this new function, to avoid
1010 (truly_local_externals, first_builtin_decl, last_builtin_decl)
1011 (make_scope, pop_scope, in_parm_level_p, set_block)
1012 (any_external_decl, record_external_decl, bind_label, getdecls)
1013 (link_hash_hash, link_hash_eq, merge_translation_unit_decls)
1014 (c_reset_state): Delete.
1015 (visible_builtins, c_override_global_bindings_to_false)
1016 (c_binding, I_SYMBOL_BINDING, I_SYMBOL_DECL, I_TAG_BINDING)
1017 (I_TAG_DECL, I_LABEL_BINDING, I_LABEL_DECL, file_scope)
1018 (external_scope, binding_freelist, bind, free_binding_and_advance)
1019 (push_file_scope, pop_file_scope): New.
1020 (pushtag, pushdecl_top_level, lookup_label, declare_label)
1021 (define_label, c_make_fname_decl, finish_decl)
1022 (mark_forward_parm_decls, build_compound_literal)
1023 (grokdeclarator, start_function, check_for_loop_decls)
1024 (identifier_global_value, record_builtin_type): Minor adjustments
1025 for new bindings structures. Improve diagnostics and commentary.
1026 * c-objc-common.c (start_cdtor, finish_cdtor): Adjust calls to
1027 pushlevel/poplevel respectively.
1028 (c_objc_common_finish_file): Don't call merge_translation_unit_decls.
1029 * c-opts.c (c_common_parse_file): Remove spurious ATTRIBUTE_UNUSED.
1030 Warn about YYDEBUG not being defined only if -dy. Remove no-longer-
1031 correct loop over multiple translation units; call fatal_error if
1032 requested to compile more than one file at once. (This disables
1033 IMA temporarily - an up-front error being preferable to a crash.)
1034 * c-parse.in (pushlevel, poplevel rules): Rename push_scope, pop_scope.
1035 (all actions): Adjust calls to pushlevel/poplevel.
1036 (parsing_iso_function_signature): Delete.
1037 (extdef_1): Fold into extdef.
1038 (old_style_parm_decls_1): Fold into old_style_parm_decls. Don't
1039 warn here about function definitions in the wrong style.
1040 (after_tyle_declarator, parm_declarator_starttypename)
1041 (parm_declarator_nostarttypename, notype_declarator): Remove
1042 commented-out productions.
1043 (parmlist_1, parmlist_2): Use make_node, not tree_cons, to create
1044 an empty TREE_LIST node. Adjust calls to get_parm_info.
1045 (parmlist_2 : ELLIPSIS): Tag the arg-info block with error_mark_node
1046 to suppress -Wold-style-definition after this error.
1047 (c_parse_file): Don't clear the binding stack or call
1048 finish_fname_decls here. Correct comment.
1049 * c-typeck.c (same_translation_unit_p): Export.
1050 (common_type): Use c_override_global_bindings_to_false, not
1051 pushlevel/poplevel/declare_parm_level.
1052 * c-lang.c: Override LANG_HOOKS_CLEAR_BINDING_STACK,
1053 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK,
1054 and LANG_HOOKS_GETDECLS with do-nothing stubs.
1055 * objc/objc-lang.c: Likewise.
1056 * objc/objc-act.c: Adjust all calls to pushlevel, poplevel,
1058 (OBJC_VOID_AT_END): Delete; replace all uses
1059 with void_list_node.
1060 (generate_forward_declaration_to_string_table): Delete.
1061 * objc/objc-act.h (OCTI_STRG_DECL, UOBJC_STRINGS_decl): Delete.
1063 * coverage.c (create_coverage): Don't pushdecl anything.
1064 * langhooks.c (lhd_clear_binding_stack): Call
1065 lang_hooks.decls.poplevel, not poplevel.
1066 * tree.c (list_length): If ENABLE_TREE_CHECKING, abort on a
1067 circular list rather than going into an infinite loop.
1069 2004-03-23 Olivier Hainque <hainque@act-europe.fr>
1071 * optabs.c (expand_binop): When synthesizing double word rotates
1072 from single word shifts, use a new register target if the provided
1073 target is not a REG already.
1075 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1077 * alias.c (get_alias_set): Add support for TYPE_REF_CAN_ALIAS_ALL.
1078 * c-common.c (handle_mode_attribute): Add extra arg to
1079 build_pointer_type_for_mode and build_reference_type_for_mode.
1080 * c-typeck.c (build_c_cast): Only look at TREE_CONSTANT_OVERFLOW
1082 * tree.c (build_pointer_type_for_mode): Add arg CAN_ALIAS_ALL.
1083 Chain pointers via TYPE_NEXT_PTR_TO.
1084 (build_reference_type_for_mode): Similarly.
1085 (build_type_no_quals): Add extra arg to build_pointer_type_for_mode
1086 and build_reference_type_for_mode.
1087 (tree_check4_failed): New function.
1088 * tree.h (TREE_CHECK4, PTR_OR_REF_CHECK): New macros.
1089 (TYPE_REF_CAN_ALIAS_ALL, TYPE_NEXT_PTR_TO, TYPE_NEXT_REF_TO): Likewise.
1090 (TREE_NO_UNSUED_WARNING, TREE_VIA_VIRTUAL, TREE_CONSTANT_OVERFLOW):
1093 2004-03-23 Roger Sayle <roger@eyesopen.com>
1095 * fold-const.c (tree_expr_nonnegative_p): A&B is nonnegative when
1096 A is nonnegative or B is nonnegative. Similarly A|B is nonnegative
1097 when both A and B are nonnegative.
1098 (tree_expr_nonzero_p): A|B is nonzero when A is nonzero or B is
1101 2004-03-23 Kazu Hirata <kazu@cs.umass.edu>
1103 * fold-const.c (fold): Remove cases for INTEGER_CST, REAL_CST,
1104 VECTOR_CST, STRING_CST, COMPLEX_CST, and CONSTRUCTOR.
1106 2004-03-23 Kazu Hirata <kazu@cs.umass.edu>
1108 PR optimization/14669
1109 * fold-const.c (fold): Only unwiden integer comparisons for equality
1110 and inequality operators, or when the signedness doesn't change.
1112 2004-03-23 Jakub Jelinek <jakub@redhat.com>
1114 * config.gcc (sparc-*-linux*): Add sparc/t-linux to tmake_file.
1115 * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Set.
1116 * config/sparc/t-linux: New file.
1118 2004-03-23 Richard Sandiford <rsandifo@redhat.com>
1120 * gcse.c (can_assign_to_reg_p): New function, split out from...
1121 (want_to_gcse_p): ...here.
1122 (compute_ld_motion_mems): Use can_assign_to_reg_p to validate
1125 2004-03-22 Diego Novillo <dnovillo@redhat.com>
1127 * c-typeck.c (same_translation_unit_p): Fix pasto.
1129 2004-03-22 David Edelsohn <edelsohn@gnu.org>
1131 * params.def (PARAM_MAX_SCHED_REGION_BLOCKS): New.
1132 (PARAM_MAX_SCHED_REGION_INSNS): New.
1133 * sched-rgn.c: Include params.h
1134 (MAX_RGN_BLOCKS): Delete.
1135 (MAX_RGN_INSNS): Delete.
1136 (too_large): Return bool. Convert to PARAM_VALUE.
1137 * Makefile.in (sched-rgn.o): Depend on $(PARAMS_H).
1138 * doc/invoke.texi (param): Document max-sched-region-blocks and
1139 max-sched-region-insns.
1141 2004-03-22 Joel Brobecker <brobecker@gnat.com>
1143 * dwarf2out.c (is_subrange_type): Do not emit a subrange_type DIE
1146 2004-03-22 Joel Brobecker <brobecker@gnat.com>
1148 * dwarf2out.c (is_subrange_type): Minor code rework. No behavior
1151 2004-03-22 Jakub Jelinek <jakub@redhat.com>
1154 * c-decl.c (finish_struct): Change type of incorrect flexible array
1155 field into error_mark_node.
1157 2004-03-22 Andrew Pinski <pinskia@physics.uc.edu>
1160 * config/rs6000/rs6000.c (symbol_ref_operand): Reject symbols
1161 who are not local for Darwin PIC.
1163 2004-03-22 Ulrich Weigand <uweigand@de.ibm.com>
1165 * regrename.c (regrename_optimize): Set regs_ever_live for all
1166 registers introduced as replacement.
1168 2004-03-22 Eric Botcazou <ebotcazou@libertysurf.fr>
1171 * expr.c (mark_queue): New function.
1172 (emit_insns_enqueued_after_mark): New function replacing
1173 emit_queue. Clear the body of emitted queued insns.
1174 (emit_queue): Call emit_insns_enqueued_after_mark.
1175 (store_expr): Mark the increment queue on entry. Emit
1176 only the incrementations queued when expanding the source.
1178 2004-03-22 Nathanael Nerode <neroden@gcc.gnu.org>
1180 * configure.ac: Allow --disable-coverage-flags (for the future benefit
1181 of top level bootstrap, and consistency). Reindent.
1182 * configure: Regenerate.
1184 2004-03-21 Kazu Hirata <kazu@cs.umass.edu>
1186 * bt-load.c, builtins.c, cfghooks.c, cfgrtl.c, gcse.c,
1187 ggc-page.c, integrate.c, var-tracking.c, web.c: Remove
1190 2004-03-22 Danny Smith <dannysmith@users.sourceforge.net>
1193 * gcov-io.h (gcov_truncate): Define ftruncate as _chsize for
1196 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
1198 * config/s390/s390.md ("*doloop_si"): Change predicate for operand 2
1199 to nonimmediate_operand.
1200 ("*doloop_di"): Likewise.
1202 2004-03-21 Alexandre Oliva <aoliva@redhat.com>
1204 * real.h (struct real_value): Use the same type for all
1205 bitfields. Rename exp to uexp.
1206 (REAL_EXP, SET_REAL_EXP): New accessor macros for uexp.
1207 Adjust all uses of exp...
1208 * builtins.c: ... here, ...
1209 * emit-rtl.c: ... here, and ...
1210 * real.c: ... and here.
1212 2004-03-21 Gabriel Dos Reis <gdr@integrable-solutions.net>
1214 * pretty-print.c (pp_base_maybe_space): New function.
1215 * pretty-print.h (pp_base_maybe_space): Declare.
1216 (pp_maybe_space): New macro.
1218 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
1220 * config/s390/s390.md ("addti3", "subti3"): New insns and splitters.
1222 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
1224 * expmed.c (choose_mult_variant): Pass MULT_COST as argument instead
1225 of using register multiplication cost.
1226 (expand_mult): Adapt choose_mult_variant call.
1227 (expand_mult_highpart): Call choose_mult_variant with WIDER_MODE
1228 of MODE; pass appropriate cost bound. Adjust result when
1229 performing signed multiplication by a negative constant.
1230 Don't use intermediate modes larger than word_mode.
1232 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1234 * alias.c (get_alias_set): Remove handling of PLACEHOLDER_EXPR.
1235 * emit-rtl.c (component_ref_for_mem_expr): Likewise.
1236 (set_mem_attributes_minus_bitpos): Call SUBSTITUTE_PLACEHOLDER_IN_EXPR.
1237 * explow.c (expr_size): Likewise.
1238 * expr.h (placeholder_list, find_placeholder): Deleted.
1239 * expr.c (store_constructor): Likewise.
1240 (get_inner_reference): Likewise. Also don't call find_placeholder.
1241 (placeholder_list, find_placeholder): Deleted.
1242 (is_aligning_offset): Don't handle WITH_RECORD_EXPR, PLACEHOLDER_EXPR.
1243 (expand_expr_real, cases PLACEHOLDER_EXPR, WITH_RECORD_EXPR): Likewise.
1244 (highest_pow2_factor, case WITH_RECORD_EXPR): Remove.
1245 * dojump.c (do_jump, case WITH_RECORD_EXPR): Likewise.
1246 * dwarf2out.c (loc_descriptor_from_tree, case WITH_RECORD_EXPR):
1248 * fold-const.c (invert_truthvalue, case WITH_RECORD_EXPR): Likewise.
1249 (extract_muldiv, case WITH_RECORD_EXPR): Likewise.
1250 * tree.c (expr_align, case WITH_RECORD_EXPR): Likewise.
1251 (contains_placeholder_p): Don't handle WITH_RECORD_EXPR.
1252 Clean up by using first_rtl_op.
1253 (substitute_in_expr): Use SUBSTITUTE_IN_EXPR for recursive call.
1254 (substitute_placeholder_in_expr): New function.
1255 * tree.def (WITH_RECORD_EXPR): Deleted.
1256 * tree.h (SUBSTITUTE_IN_EXPR, SUBSTITUTE_PLACEHOLDER_IN_EXPR): New.
1257 (substitute_placeholder_in_expr): New.
1259 2004-03-21 Andrew Pinski <pinskia@gcc.gnu.org>
1261 * dojump.c (prefer_and_bit_test): Fix which part of
1262 the and_test is replaced.
1264 2004-03-21 Joseph S. Myers <jsm@polyomino.org.uk>
1266 * frontends.texi: Add missing line.
1268 2004-03-21 Zack Weinberg <zack@codesourcery.com>
1269 Chris Devers <cdevers@pobox.com>
1270 Joseph S. Myers <jsm@polyomino.org.uk>
1272 * doc/frontends.texi: Rewrite.
1273 * doc/gcc.texi: Update last modification date.
1275 2004-03-21 Josef Zlomek <zlomekj@suse.cz>
1277 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Print the debug
1278 message before redirecting the edge.
1280 2004-03-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1282 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_POINTER
1284 * explow.c (force_not_mem): Set REG_POINTER flag according to
1286 * rtl.h (MEM_POINTER): New macro.
1287 (struct rtx_def): Use integrated for MEM_SCALAR_P and frame_related
1290 2004-03-20 Roger Sayle <roger@eyesopen.com>
1293 * cse.c (fold_rtx): Avoid substituting constants into unary
1294 conversion operations.
1296 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
1298 * fold-const.c (fold): Replace "expr" with "t".
1300 2004-03-20 Ian Lance Taylor <ian@wasabisystems.com>
1303 * c-typeck.c (tagged_types_tu_compatible_p): Don't use
1304 DECL_ORIGINAL_TYPE if there isn't one.
1306 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
1308 * fold-const.c (fold): Replace "final_type" with "type".
1309 Remove variable "final_type".
1311 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
1313 * fold-const.c (fold): Constify "type".
1314 Replace "TREE_TYPE (t)" with "type".
1316 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
1318 * bb-reorder.c, bt-load.c, c-decl.c, cfgcleanup.c, coverage.c,
1319 dwarf2asm.c, ifcvt.c, stor-layout.c, varasm.c: Replace calls
1320 via (*targetm.foo) () with targetm.foo ().
1322 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
1325 * doc/install.texi: Add info directory category and entry.
1327 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
1329 * fold-const.c (fold): Replace "t" with "tem" where it is used
1330 as a temporary variable. Remove "orig_t" and all of its uses.
1332 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
1334 * fold-const.c (fold): Remove variable "invert".
1335 Move the handling of relational expressions that can be folded
1337 (fold_relational_const): ... here.
1338 (tree_expr_nonzero_p): New.
1340 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
1343 * builtins.def (nan, nanf, nanl, nans, nansf, nansl): Change to
1346 2004-03-20 Richard Sandiford <rsandifo@redhat.com>
1348 * Makefile.in (dojump.o): Depend on $(GGC_H) and dojump.h.
1349 (GTFILES): Add $(srcdir)/dojump.h.
1350 (gt-dojump.h): New dependency.
1351 * dojump.c (and_reg, and_test, shift_test): New static variables.
1352 (prefer_and_bit_test): New function.
1353 (do_jump): Use it to choose between (X & (1 << C)) and (X >> C) & 1.
1355 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
1357 * c-common.c, cfgcleanup.c, cgraphunit.c, c-pretty-print.c,
1358 expmed.c, ggc-common.c, jump.c, passes.c, recog.c, regmove.c,
1359 reorg.c, tree.h: Fix comment typos.
1361 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
1363 * alias.c, attribs.c, bt-load.c, builtins.c, c-common.c,
1364 c-decl.c, c-objc-common.c, c-typeck.c, calls.c, cfglayout.c,
1365 cse.c, dbxout.c, dwarf2out.c, except.c, final.c,
1366 haifa-sched.c, integrate.c, passes.c, rtlanal.c, sched-rgn.c,
1367 sched-vis.c, simplify-rtx.c, stor-layout.c, tree.c, varasm.c,
1368 vmsdbgout.c: Replace calls via (*targetm.foo) () with
1371 2004-03-19 Ziemowit Laski <zlaski@apple.com>
1373 * config/rs6000/altivec.h (vec_dst, vec_dstst, vec_dststt,
1374 vec_dstt, vec_sld, vec_splat): Add prototypes, marked with
1375 always_inline attribute.
1376 * config/rs6000/rs6000.c (altivec_expand_dst_builtin):
1377 Treat expansion as completed even if literal argument is
1378 invalid (so that other expansions are not tried in vain).
1380 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
1382 * loop-doloop.c (add_test): Replace GEN_INT (0) with
1385 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
1387 * fold-const.c (fold) <ABS_EXPR>: Move the handling of constants
1389 (fold_abs_const): ... here.
1391 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1393 * tree.h (TYPE_ARRAY_MAX_SIZE): Use type.maxval directly.
1395 2004-03-19 Denis Chertykov <denisc@overta.ru>
1398 * config/avr/avr.md ("call_insn"): Handle explicit integer
1400 (call_value_insn): Likewise.
1402 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1404 * tree.c (substitute_in_expr): Rewrite to simplify and be more generic.
1406 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
1408 * fold-const.c (negate_expr): Move the handling of constants
1410 (fold_negate_const): ... here.
1412 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1414 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): New macro and hook.
1415 * langhooks.h (struct lang_hooks_for_types): New field hash_types.
1416 * tree.c (debug_no_type_hash): Deleted.
1417 (type_hash_canon): Abort if passed a variant.
1418 Check lang_hooks.types.hash_types.
1419 (build_type_no_quals): Copy mode of POINTER_TYPE and REFERENCE_TYPE.
1420 (build_array_type): Remove unnecessary allocation of pointer type.
1421 (build_complex_type): Properly qualify resulting type.
1423 2004-03-19 Paolo Bonzini <bonzini@gnu.org>
1425 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo.
1427 2004-03-19 Richard Sandiford <rsandifo@redhat.com>
1429 * expmed.c (choose_mult_variant, expand_mult_const): New, split from...
1430 (expand_mult): ...here.
1431 (extract_high_half): New, split out from expand_mult_highpart.
1432 (expand_highpart_optab): Likewise. Don't clobber target prematurely.
1433 (expand_highpart): Evaluate the cost of a shift/add sequence,
1434 then see if any of the specialized optabs are cheaper.
1436 2004-03-18 Ian Lance Taylor <ian@wasabisystems.com>
1438 * mklibgcc.in: Remove obsolete MAYBE_USE_COLLECT2.
1440 2004-03-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1442 * convert.c (convert_to_real): Add more math builtins.
1444 2004-03-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1446 * convert.c (convert_to_real): Reformat using switch stmt.
1448 2004-03-18 Mark Mitchell <mark@codesourcery.com>
1450 * c-common.c (pointer_int_sum): Do not complain about using
1451 pointers to pointers-to-members.
1453 2004-03-18 Kazu Hirata <kazu@cs.umass.edu>
1455 * system.h (MD_ASM_CLOBBERS): Move to "Old target macros that
1456 have moved to the target hooks structure".
1458 2004-03-18 James E Wilson <wilson@specifixinc.com>
1460 * config/mips/mips.md (type): Split move into arith and fmove. Split
1461 hilo into mthilo and mfhilo. Add trap. Delete icmp. Fix all uses.
1462 * config/mips/5400.md (ir_vr54_hilo, ir_vr54_arith, ir_vr54_fabs):
1464 * config/mips/5500.md (ir_vr55_hilo, ir_vr55_arith, ir_vr55_fabs):
1466 * config/mips/7000.md (rm7_int_other, rm7_mthilo, rm7_mfhilo,
1467 rm7_fp_quick): Likewise.
1468 * config/mips/9000.md (rm9k_int, rm9k_mfhilo, rm9k_mthilo,
1469 rm9k_fquick): Likewise.
1470 * config/mips/sr71k.md (ir_sr70_hilo, ir_sr70_arith, ir_sr70_fabs):
1472 (ir_sr70_icmp): Delete.
1474 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1476 * tree.h (TREE_CHECK2, TREE_CHECK3, TREE_CHECK5): New macros.
1477 (tree_check2_failed, tree_check3_failed, tree_check5_failed): New decl.
1478 (FUNC_OR_METHOD_CHECK, SET_ARRAY_OR_VECTOR_CHECK): New macros.
1479 (REC_OR_UNION_CHECK, NUMERICAL_TYPE_CHECK): Likewise.
1480 (TYPE_VALUES, TYPE_DOMAIN, TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD):
1481 Protect with proper check.
1482 (TYPE_ARG_TYPES, TYPE_METHOD_BASETYPE, TYPE_OFFSET_BASETYPE): Likewise.
1483 (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Likewise.
1484 * tree.c (type_hash_eq): Rewrite to access proper fields for each type.
1485 (tree_check2_failed, tree_check3_failed, tree_check5_failed): New.
1486 * c-typeck.c (build_array_ref): Use TYPE_DOMAIN, not TYPE_VALUES.
1487 * dwarf2out.c (gen_enumeration_type_die): Use TYPE_VALUES,
1489 * stor-layout.c (set_sizetype): Use TYPE_ORIG_SIZE_TYPE.
1491 2004-03-18 Mostafa Hagog <mustafa@il.ibm.com>
1493 * gcse.c (eliminate_partially_redundant_loads): Reject change if
1494 dest is set between beginning and current insn.
1496 2004-03-18 Mark Mitchell <mark@codesourcery.com>
1498 * c-decl.c (grokdeclarator): Do not complain about redeclaring
1499 visible "static" identifiers "extern" in a local scope.
1500 * dwarf2out.c (loc_descriptor_from_tree): Handle pre- and
1501 post-increments/decrements.
1503 2004-03-18 Bob Wilson <bob.wilson@acm.org>
1505 * config/xtensa/xtensa.c (current_function_arg_words): Delete.
1506 (xtensa_builtin_saveregs): Use current_function_args_info.arg_words.
1507 (xtensa_va_start): Remove assignment to current_function_arg_words.
1509 2004-03-18 Richard Sandiford <rsandifo@redhat.com>
1511 * alias.c (record_set): Detect the case where a register is assigned
1512 a new value that has the same base term as the old one.
1514 2004-03-18 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1516 * doloop.c: Removed.
1517 * loop-doloop.c: New file.
1518 * Makefile.in (doloop.o): Remove.
1519 (loop-doloop.o): New.
1520 * cfgloop.h (get_loop_level, doloop_optimize_loops): Declare.
1521 * cfgloopanal.c (get_loop_level): New function.
1522 * loop-iv.c (iv_number_of_iterations): Handle case when loop
1523 is leaved immediatelly.
1524 * loop.c (strength_reduce): Do not call doloop optimization.
1525 * loop.h (LOOP_BCT): Removed.
1526 * passes.c (rest_of_handle_loop_optimize): Do not use LOOP_BCT.
1527 (rest_of_handle_loop2): Call doloop_optimize_loops.
1528 (rest_of_compilation): Test for optimizations moved to
1529 rest_of_handle_loop2.
1531 2004-03-17 Fariborz Jahanian <fjahanian@apple.com>
1533 * config/rs6000/rs6000.c (rs6000_stack_info): correct reg_size
1535 (rs6000_emit_prologue): Ditto.
1536 (rs6000_emit_epilogue): Ditto.
1537 * config/rs6000/rs6000.h: Definition of DWARF_CIE_DATA_ALIGNMENT
1538 macro for mixed mode.
1540 2004-03-18 Jan Hubicka <jh@suse.cz>
1542 * predict.c (propagate_freq): Compute correctly frequency of
1545 2004-03-17 Eric Christopher <echristo@redhat.com>
1547 * builtins.c (apply_args_size): Use reg_raw_mode.
1548 (apply_result_size): Ditto.
1550 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1553 * config/rtems.h: Add STD_LIB_SPEC and LIB_SPEC.
1555 2004-03-17 Jakub Jelinek <jakub@redhat.com>
1557 * config/rs6000/t-linux64 (bispecs): Don't add -mlong-double-128 for
1558 32-bit builds when defaulting to 32-bit.
1560 2004-03-17 Jan Hubicka <jh@suse.cz>
1562 * cfgrtl.c (rtl_create_basic_block): Pre-allocate basic_block_info
1565 2004-03-17 James E Wilson <wilson@specifixinc.com>
1567 * config/mips/mips.md (zero_extendsidi2): Add length attribute.
1568 (hazard_nop): Change type to nop.
1569 (type): Split arith into arith, shift, slt, clz. Delete darith.
1570 Fix all uses. Change arith to multi if more than one insn emitted.
1571 * config/mips/5400.md (ir_vr54_arith): Likewise.
1572 * config/mips/5500.md (ir_vr55_arith): Likewise.
1573 * config/mips/7000.md (rm7_int_other): Likewise.
1574 * config/mips/9000.md (rm9k_int): Likewise.
1575 * config/mips/sr71k.md (ir_sr70_arith): Likewise.
1577 2004-03-17 Joel Brobecker <brobecker@gnat.com>
1579 * dwarf2out.c (subrange_type_die): Define new variable "subtype"
1580 to hold the subtype tree instead of recomputing it several times.
1582 2004-03-17 Kazu Hirata <kazu@cs.umass.edu>
1584 * config/mn10300/mn10300.c (notice_update_cc): Don't handle
1586 * config/mn10300/mn10300.md (cc): Remove "invert".
1588 2004-03-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1590 * builtins.c (integer_valued_real_p): Add builtin rint.
1591 (fold_builtin): Likewise.
1592 * convert.c (convert_to_real): Likewise.
1594 * convert.c (convert_to_real): Fix typos in `long double'
1597 2004-03-16 Mark Mitchell <mark@codesourcery.com>
1600 * fold-const.c (fold): Set TREE_NO_UNUSED_WARNING on implicitly
1601 generated COMPOUND_EXPRs.
1603 2004-03-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1605 * config/h8300/t-rtems (h8300-*-rtems*): New.
1607 2004-03-16 Eric Christopher <echristo@redhat.com>
1609 * doc/cppopts.texi(fwide-exec-charset): Fix typo.
1611 2004-03-16 Kazu Hirata <kazu@cs.umass.edu>
1613 * config/i386/i386-protos.h: Add a prototype for
1614 ix86_reverse_condition.
1615 * config/i386/i386.c (ix86_reverse_condition): New.
1616 * config/i386/i386.h (REVERSE_CONDITION): Use
1617 ix86_reverse_condition.
1618 * config/i386/i386.md: Use ix86_reverse_condition instead of
1621 2004-03-16 J. Brobecker <brobecker@gnat.com>
1623 * dwarf2out.c (loc_descriptor_from_tree): Add handling for MIN_EXPR.
1625 2004-03-16 Nathanael Nerode <neroden@gcc.gnu.org>
1628 * Makefile.in: Pass $(INCLUDES) down to libgcc.mk explicitly.
1630 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
1632 * c-common.c (c_common_type_for_mode): Build vector types on
1634 (handle_mode_attribute): Deprecate using the mode attribute
1635 to create vector types. Fix indentation.
1636 (vector_type_node_list): Remove.
1637 (handle_vector_size_attribute): Create vector types on demand.
1638 Strip a NON_LVALUE_EXPR from the attribute if there is one.
1639 * c-typeck.c (comptypes): Make vector types compatible if they
1640 have the same underlying mode.
1641 (convert_for_assignment): Use comptypes to convert between
1643 * tree.c (build_common_tree_nodes_2): Do not create vector types.
1644 * config/arm/arm.c (arm_init_iwmmxt_builtins): Create necessary
1646 * tree.h: Remove vector types.
1647 * config/i386/i386.c (i386_init_mmx_sse_builtins): Likewise.
1648 * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
1649 (V16QI_type_node, V2SI_type_node, V2SF_type_node, V4HI_type_node,
1650 V4SI_type_node, V4SF_type_node, V8HI_type_node): New globals.
1651 * doc/extend.texi (Vector Types): Document how to use the
1652 vector_size attribute to create vectors, rather than mode.
1654 * config/arm/mmintrin.h: Use vector_size attribute, not mode.
1655 * config/i386/emmintrin.h: Likewise.
1656 * config/i386/mmintrin.h: Likewise.
1657 * config/i386/xmmintrin.h: Likewise.
1658 * config/sh/ushmedia.h: Likewise.
1660 2004-03-16 Kazu Hirata <kazu@cs.umass.edu>
1662 * config/freebsd-spec.h, config/arc/arc-protos.h,
1663 config/arm/aout.h, config/arm/elf.h, config/arm/freebsd.h,
1664 config/arm/linux-gas.h, config/arm/semi.h,
1665 config/cris/cris-protos.h, config/i386/xm-djgpp.h,
1666 config/ia64/freebsd.h, config/mips/7000.md,
1667 config/mips/9000.md, config/ns32k/ns32k-protos.h,
1668 config/sparc/pbd.h: Update copyright.
1670 2004-03-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1673 * config.gcc: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff.
1675 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
1677 * combine.c (combine_simplify_rtx): Remove the "last"
1678 parameter and its documentation. Adjust recursive calls.
1679 (simplify_logical): Always perform the only simplification
1680 controlled by "last", if the simplified expression is
1682 (try_combine): Do not pass the "last" parameter to
1683 combine_simplify_rtx.
1685 2004-03-16 Richard Sandiford <rsandifo@redhat.com>
1688 * config/mips/mips.md (UNSPEC_GP): New constant.
1689 * config/mips/mips.c (CONST_GP_P): Expect the CONST to contain
1690 an UNSPEC instead of (reg $gp).
1691 (mips16_gp_pseudo_reg): Change accordingly.
1692 (print_operand): Print $gp directly when handling CONST_GP_P.
1694 2004-03-16 Richard Zidlicky <rz@linux-m68k.org>
1696 * config.gcc, config/m68k/linux.h: Implement with-cpu for m68k-linux.
1697 * longlong.h: Make code 68060 clean when compiling for m68060.
1699 2004-03-16 Richard Zidlicky <rz@linux-m68k.org>
1701 * config/m68k/m68k.md: Fix constraints for bitfield instructions.
1702 * doc/md.texi: Clarify description of "i" constraint.
1704 2004-03-15 James E Wilson <wilson@specifixinc.com>
1706 * config/mips/mips.md (type): Split load into load, fpload, fpidxload.
1707 Split store into store, fpstore, fpidxstore. Fix all uses.
1708 * config/mips/5400.md (ir_vr54_load, ir_vr54_store, ir_vr54_fstore):
1710 * config/mips/5500.md (ir_vr55_load, i5_vr55_store): Likewise.
1711 * config/mips/7000.md (rm7_ld, rm7_st): Likewise.
1712 * config/mips/9000.md (rm9k_load, rm9k_store): Likewise.
1713 * config/mips/sr71k.md (ir_sr70_load, ir_sr70_store, ir_sr70_fload,
1714 ir_sr70_fstore): Likewise.
1716 2004-03-15 Richard Henderson <rth@redhat.com>
1719 * except.c (collect_one_action_chain): Record action for cleanup
1720 outer of exception spec.
1722 2004-03-15 Ian Lance Taylor <ian@wasabisystems.com>
1724 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
1725 Fix the check for abort and only do the mmap if we can.
1727 2004-03-15 Eric Botcazou <ebotcazou@act-europe.fr>
1729 * config/sparc/sparc.h: Rework comments about the code model
1730 in 64-bit environment and the mode 'Pmode'.
1731 * doc/invoke.texi (SPARC options): Rework description of the
1732 different code models supported in 64-bit environment.
1734 2004-03-15 Kazu Hirata <kazu@cs.umass.edu>
1736 * defaults.h (REVERSIBLE_CC_MODE): Define.
1737 * jump.c (reversed_comparison_code_parts): Don't check if
1738 REVERSIBLE_CC_MODE is defined.
1740 2004-03-15 Kazu Hirata <kazu@cs.umass.edu>
1742 * c-incpath.c, c-incpath.h, c-pch.c, c.opt, cppexp.c,
1743 et-forest.h, genattr.c, ggc-none.c, hosthooks-def.h,
1744 hosthooks.h, params.h, ra-colorize.c, web.c,
1745 config/darwin-c.c, config/alpha/freebsd.h, config/arm/pe.c,
1746 config/avr/avr-protos.h, config/avr/avr.md,
1747 config/fr30/fr30-protos.h, config/fr30/fr30.md,
1748 config/h8300/fixunssfsi.c, config/i386/darwin.h,
1749 config/i386/freebsd.h, config/i386/freebsd64.h,
1750 config/ia64/hpux.h, config/ia64/unwind-ia64.c,
1751 config/ip2k/libgcc.S, config/m32r/xm-m32r.h,
1752 config/mmix/mmix-modes.def, config/ns32k/netbsd.h,
1753 config/ns32k/ns32k.md, config/pa/pa64-hpux.h,
1754 config/pa/pa64-regs.h, config/rs6000/aix41.h,
1755 config/rs6000/aix43.h, config/rs6000/host-darwin.c,
1756 config/sparc/aout.h, config/sparc/freebsd.h,
1757 config/sparc/litecoff.h, config/vax/vax-protos.h,
1758 doc/hostconfig.texi, doc/include/gcc-common.texi: Update
1761 2004-03-15 Paul Brook <paul@codesourcery.com>
1763 * config/arm/arm.c (thumb_expand_prologue): Tie prologue insns to fp.
1765 2004-03-15 Gabriel Dos Reis <gdr@integrable-solutions.net>
1767 * c-pretty-print.c (pp_c_semicolon): Fix formatting.
1768 (pp_c_cv_qualifier): Document.
1769 (pp_c_space_for_pointer_operator): Likewise.
1770 (pp_c_integer_constant): Likewise.
1771 (pp_c_identifier): Likewise.
1772 (pp_c_init_declarator): Don't print function body.
1774 2004-03-14 Joseph S. Myers <jsm@polyomino.org.uk>
1776 * doc/contrib.texi, doc/extend.texi, doc/gcov.texi,
1777 doc/install.texi, doc/invoke.texi, doc/makefile.texi,
1778 doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi: Capitalize
1779 "gcc", "g++" and "g77" or mark up with appropriate markup. Adjust
1780 wording and grammar.
1782 2004-03-14 Roger Sayle <roger@eyesopen.com>
1784 * alias.c (get_alias_set): Replace calls via (*lang_hooks.foo) ()
1785 with lang_hooks.foo ().
1786 * builtins.c (expand_builtin_va_arg): Likewise.
1787 * c-common.c (fname_as_string, c_common_truthvalue_conversion,
1788 c_common_type_for_mode, c_common_nodes_and_builtins,
1789 handle_mode_attribute, handle_vector_size_attribute): Likewise.
1790 * c-convert.c (convert): Likewise.
1791 * c-format.c (check_format_types): Likewise.
1792 * c-objc-common.c (c_tree_printer): Likewise.
1793 * c-typeck.c (build_unary_op, build_conditional_expr,
1794 build_binary_op): Likewise.
1795 * calls.c (try_to_integrate, expand_call,
1796 emit_library_call_value_1): Likewise.
1797 * cgraph.c (cgraph_node_name, cgraph_function_possibly_inlined_p):
1799 * cgraphunit.c (record_call_1, cgraph_analyze_function,
1800 cgraph_expand_function): Likewise.
1801 * convert.c (convert_to_pointer, convert_to_integer): Likewise.
1802 * coverage.c (build_fn_info_type, build_ctr_info_type,
1803 build_gcov_info, create_coverage): Likewise.
1804 * dbxout.c (dbxout_init): Likewise.
1805 * diagnostic.c (diagnostic_report_current_function): Likewise.
1806 * dojump.c (do_jump): Likewise.
1807 * dwarf2out.c (dwarf2_name): Likewise.
1808 * except.c (init_eh): Likewise.
1809 * explow.c (expr_size, int_expr_size): Likewise.
1810 * expmed.c (make_tree, const_mult_add_overflow_p, expand_mult_add):
1812 * expr.c (store_expr, store_constructor, safe_from_p,
1813 expand_expr_real, do_store_flag, try_casesi): Likewise.
1814 * function.c (push_function_context_to, pop_function_context_from,
1815 free_after_parsing, assign_stack_local_1, assign_stack_temp_for_type,
1816 put_var_into_stack, allocate_struct_function, current_function_name):
1818 * integrate.c (copy_decl_for_inlining, expand_inline_function):
1820 * langhooks.c (lhd_clear_binding_stack, write_global_declarations,
1821 lhd_print_error_function): Likewise.
1822 * opts.c (handle_option, decode_options): Likewise.
1823 * passes.c (open_dump_file): Likewise.
1824 * print-tree.c (print_node): Likewise.
1825 * stmt.c (expand_fixup, fixup_gotos, expand_asm_operands,
1826 expand_decl_cleanup, emit_case_nodes): Likewise.
1827 * stor-layout.c (variable_size): Likewise.
1828 * toplev.c (announce_function, wrapup_global_declarations,
1829 check_global_declarations, compile_file, default_tree_printer,
1830 process_options, lang_dependent_init, finalize): Likewise.
1831 * tree-dump.c (dequeue_and_dump): Likewise.
1832 * tree-inline.c (remap_decl, remap_block, copy_body_r,
1833 initialize_inlined_parameters, declare_return_variable,
1834 inlinable_function_p, expand_call_inline, optimize_inline_calls,
1835 walk_tree, copy_tree_r): Likewise.
1836 * tree-optimize.c (tree_rest_of_compilation): Likewise.
1837 * tree.c (decl_assembler_name, tree_size, size_in_bytes, staticp,
1838 unsafe_for_reeval, get_unwidened, get_narrower, get_callee_fndecl,
1839 variably_modified_type_p, dump_tree_statistics): Likewise.
1840 * varasm.c (assemble_variable, compare_constant, copy_constant,
1841 force_const_mem, compute_reloc_for_constant, output_constant,
1842 output_addressed_constants, initializer_constant_valid_p): Likewise.
1844 2004-03-14 Kelley Cook <kcook@gcc.gnu.org>
1846 * doc/install.texi: Make autoconf 2.13 the exception, not the rule.
1848 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
1850 * doc/install.texi: Reflect autoconf and automake version for
1851 libffi. Update autoconf version to 2.59.
1853 2004-03-13 Roger Sayle <roger@eyesopen.com>
1855 * fold-const.c (negate_expr, operand_equal_for_comparison_p,
1856 optimize_bit_field_compare, decode_field_reference, all_ones_mask_p,
1857 make_range, build_range_check, fold_range_test, unextend,
1858 constant_boolean_node, fold_binary_op_with_conditional_arg,
1859 fold_truthop, fold_mathfn_compare, fold_inf_compare,
1860 fold_single_bit_test, fold): Replace calls via (*lang_hooks.foo) ()
1861 with lang_hooks.foo ().
1863 2004-03-14 Richard Earnshaw <rearnsha@arm.com>
1865 * arm.h (EXTRA_CONSTRAINT_STR_ARM): Update comment.
1867 2004-03-13 Dara Hazeghi <dhazeghi@yahoo.com>
1869 * doc/install.texi: Note status of -fnew-ra.
1871 2004-03-13 Eric Botcazou <ebotcazou@libertysurf.fr>
1874 * expr.c (store_expr): Call emit_queue before generating the move
1875 from the temporary to the original target. Protect the temporary
1878 2004-03-13 Jakub Jelinek <jakub@redhat.com>
1881 * config/s390/s390.c (legitimize_pic_address): Don't abort on UNSPEC
1882 other than UNSPEC_GOTOFF.
1884 2004-03-13 Richard Earnshaw <rearnsha@arm.com>
1886 * arm.c (arm_legitimate_address_p): New argument, OUTER. Pass through
1887 to arm_legitimate_index_p. Update all callers with SET as default
1889 (arm_legitimate_index_p): New argument, OUTER. Restrict the index
1890 range if OUTER is a sign-extend operation on QImode. Correctly
1891 reject shift operations on sign-extended QImode addresses.
1892 (bad_signed_byte_operand): Delete.
1893 (arm_extendqisi_mem_op): New function.
1894 * arm.h (EXTRA_CONSTRAINT_ARM): Delete. Replace with...
1895 (EXTRA_CONSTRAINT_STR_ARM): ... this. Handle extended address
1897 (CONSTRAINT_LEN): New.
1898 (EXTRA_CONSTRAINT): Delete. Replace with...
1899 (EXTRA_CONSTRAINT_STR): ... this.
1900 (PREDICATE_CODES): Remove bad_signed_byte_operand.
1901 * arm.md (extendqihi_insn): Use new constraint Uq. Rework. Length
1902 is now always default.
1903 (define_splits for bad sign-extend loads): Delete.
1904 (arm_extendqisi, arm_extendqisi_v5): Likewise.
1905 * arm/vfp.md (arm_movsi_vfp, arm_movdi_vfp, movsf_vfp, movdf_vfp):
1906 Rework 'U' constraint to 'Uv'.
1907 * arm-protos.h: Remove bad_signed_byte_operand. Add
1908 arm_extendqisi_mem_op.
1909 * doc/md.texi (ARM constraints): Rename VFP constraint (now Uv).
1912 2004-03-13 Alan Modra <amodra@bigpond.net.au>
1914 * config/rs6000/rs6000.c (rs6000_va_arg): Replace SPLIT_COMPLEX_ARGS
1915 with targetm version.
1918 * config/rs6000/rs6000.h (UNITS_PER_ARG, RS6000_ARG_SIZE): Delete.
1919 (HARD_REGNO_MODE_OK): Disallow TFmode for fp31.
1920 * config/rs6000/rs6000.c (rs6000_arg_size): New function.
1921 Update all users of RS6000_ARG_SIZE.
1922 (function_arg_advance): Count fregno using mode size.
1923 (function_arg): Handle long double split over regs and memory.
1924 (function_arg_partial_nregs): Likewise.
1925 (rs6000_va_arg): Repackage complex args.
1927 2004-03-13 Dean Ferreyra <dferreyra@igc.org>
1930 * config/avr/avr.c (avr_progmem_p): Add "attributes" parameter.
1931 (avr_insert_attributes): Pass "attributes" to avr_progmem_p.
1932 * config/avr/avr-protos.h (avr_progmem_p): Change prototype.
1934 2004-03-12 Jakub Jelinek <jakub@redhat.com>
1936 * config/rs6000/rs6000-protos.h (rs6000_output_dwarf_dtprel): Add
1938 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): New.
1939 * config/rs6000/rs6000.h (ASM_OUTPUT_DWARF_DTPREL): Define.
1941 2003-03-12 Andrew Pinski <apinski@apple.com>
1943 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
1944 Use ret instead of result. Use addr instead of base.
1946 2004-03-12 David Edelsohn <edelsohn@gnu.org>
1948 * doc/install.texi (*-ibm-aix*): Document assembler and achiver
1949 fixes required by libstdc++ and update installation instructions
1952 2004-03-12 Danny Smith <dannysmith@users.sourceforge.net>
1954 * config/i386/winnt.c (i386_pe_strip_name_encoding_full): Strip
1955 leading '@' on fastcall symbols before stripping suffix.
1957 2004-03-12 Roger Sayle <roger@eyesopen.com>
1959 * combine.c (unmentioned_reg_p): New function to check whether an
1960 expression is a "specialization" of another, i.e. that there are
1961 no registers or memory references mentioned in the first that don't
1962 appear in the second.
1963 (unmentioned_reg_p_1): New helper subroutine of unmentioned_reg_p.
1964 (combine_instructions): Also try combining instructions using the
1965 REG_EQUAL note from a preceding log-linked instruction.
1967 2004-03-12 Roger Sayle <roger@eyesopen.com>
1969 * config/i386/i386.c (ix86_split_ashrdi): Optimize shift by 63.
1971 2004-03-12 Matt Austern <austern@apple.com>
1973 * target.h (struct gcc_target): New target hook, unwind_label.
1974 * target-def.h (TARGET_ASM_EMIT_UNWIND_LABEL): New hook.
1975 * output.h (default_emit_unwind_label): New function.
1976 * default.h (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): New macro.
1977 (TARGET_USES_WEAK_UNWIND_INFO): New target macro.
1978 (TARGET_SUPPORTS_HIDDEN): New target macro.
1979 * dwarf2out.c (struct dw_fde_struct): Add field for function decl
1980 that corresponds to this FDE.
1981 (FRAME_BEGIN_LABEL): Allow target to override default label.
1982 (output_call_frame_info): If FDEs are linknonce, then use extra
1983 indirection for FDE encoding, output a label for each FDE, and
1984 output an empty label for each function without an FDE.
1985 (dwarf2out_begin_prologue): Set up decl field when creating an FDE.
1986 * varasm.c (globalize_decl): Call ASM_MAKE_LABEL_LINKONCE for
1987 decls with DECL_ONE_ONLY set, if that macro is defined.
1988 (make_decl_one_only): Don't use DECL_COMMON if we're compiling
1989 for a SUPPORTS_ONE_ONLY target.
1990 * config/darwin-protos.h (darwin_unique_section): Declare.
1991 (darwin_asm_named_section): Likewise.
1992 (darwin_section_type_flags): Likewise.
1993 (darwin_non_lazy_pcrel): Likewise.
1994 (darwin_emit_unwind_label): Likewise.
1995 (darwin_make_decl_one_only): Likewise.
1996 * config/darwin.c (machopic_finish): Get rid of tweak that
1997 eliminate stubs for symbols that are defined.
1998 (darwin_encode_section_info): Don't treat weak functions as defined.
1999 (darwin_make_decl_one_only): Define.
2000 (darwin_asm_named_section): Likewise.
2001 (darwin_section_type_flags): Likewise.
2002 (darwin_unique_section): Likewise.
2003 (darwin_emit_unwind_label): Likewise.
2004 (darwin_non_lazy_pcrel): Likewise.
2005 (darwin_asm_output_dwarf_delta): Difference between two labels is
2006 local only if both labels are local.
2007 * config/darwin.h (MAKE_DECL_ONE_ONLY): Define.
2008 (ASM_MAKE_LABEL_LINKONCE): Likewise.
2009 (TARGET_SUPPORTS_HIDDEN): Likewise.
2010 (TARGET_USES_WEAK_UNWIND_INFO): Likewise.
2011 (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): Likewise.
2012 (FRAME_BEGIN_LABEL): Likewise.
2013 (ASM_DECLARE_OBJECT_NAME): Make references to weak symbols indirect.
2014 (ASM_DECLARE_FUNCTION_NAME): Likewise.
2015 (darwin_eh_frame_section): Give __eh_frame section the coalesced flag.
2016 (TARGET_ASM_UNIQUE_SECTION): Define.
2017 (EH_FRAME_SECTION_NAME): Define.
2018 (EH_FRAME_SECTION_ATTR): Likewise.
2019 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
2020 (TARGET_ASM_NAMED_SECTION): Likewise.
2021 (TARGET_SECTION_TYPE_FLAGS): Likewise.
2022 * doc/tm.texi: Document TARGET_USES_WEAK_UNWIND_INFO,
2023 TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY, TARGET_SUPPORTS_HIDDEN,
2024 TARGET_ASM_EMIT_UNWIND_LABEL.
2026 2004-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2028 * builtins.c (expand_builtin_mathfn): Add pow10* to the
2029 existing exp10* case.
2030 (expand_builtin): Likewise.
2032 2004-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
2034 * doc/tm.texi (registers) <Values in Registers>: Add
2035 entry for REGMODE_NATURAL_SIZE.
2037 2004-03-12 Richard Henderson <rth@redhat.com>
2040 * target.h (struct gcc_target): Move calls substructure before
2041 booleans. Add split_complex_arg.
2042 * function.c (assign_parms, split_complex_args): Use it.
2043 * calls.c (expand_call): Likewise.
2044 (split_complex_values): Likewise. Check for splittable types
2045 before allocating memory.
2046 (split_complex_types): Likewise.
2047 * system.h (SPLIT_COMPLEX_ARGS): Poison.
2048 * expr.h (SPLIT_COMPLEX_ARGS): Remove.
2049 * target-def.h (TARGET_SPLIT_COMPLEX_ARG): New.
2050 * config/alpha/alpha.c (alpha_split_complex_arg): New.
2051 (TARGET_SPLIT_COMPLEX_ARG): New.
2052 * config/alpha/alpha.h (SPLIT_COMPLEX_ARGS): Remove.
2053 * config/rs6000/rs6000.c (TARGET_SPLIT_COMPLEX_ARG): New.
2054 (rs6000_override_options): Zap it for non-AIX.
2055 (rs6000_function_value): Use targetm.calls.split_complex_arg.
2056 * config/rs6000/rs6000.h (SPLIT_COMPLEX_ARGS): Remove.
2057 * config/xtensa/xtensa.c (TARGET_SPLIT_COMPLEX_ARG): New.
2058 * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Remove.
2059 * doc/tm.texi (TARGET_SPLIT_COMPLEX_ARG): Modify from old
2060 SPLIT_COMPLEX_ARGS entry.
2062 2004-03-11 Richard Henderson <rth@redhat.com>
2064 * config/alpha/alpha.c (xfloating_ops, vax_cvt_ops): New.
2065 (alpha_lookup_xfloating_lib_func): Use them, return rtx.
2066 (alpha_emit_xfloating_arith): Update to match.
2067 (alpha_emit_xfloating_compare): Likewise.
2068 (alpha_emit_xfloating_cvt): Likewise.
2069 (alpha_emit_xfloating_libcall): Take already built symbol,
2071 * config/alpha/alpha.md (extendsftf2, extenddftf2): Take
2074 2004-03-11 Richard Henderson <rth@redhat.com>
2077 * config/alpha/alpha.h (STACK_BOUNDARY): Set to 128.
2079 * simplify-rtx.c (simplify_relational_operation): Fix typo.
2081 2004-03-11 Richard Henderson <rth@redhat.com>
2084 * except.c (remove_unreachable_regions): Look thru CALL_PLACEHOLDER.
2086 2004-03-11 Ulrich Weigand <uweigand@de.ibm.com>
2089 * calls.c (load_register_parameters): If BLOCK_REG_PADDING is not
2090 defined, pass small BLKmode values in registers in the low-order part.
2092 2004-03-11 Ulrich Weigand <uweigand@de.ibm.com>
2094 * combine.c (if_then_else_cond): Check for NULL return value of
2095 simplify_gen_subreg.
2097 2004-03-11 Richard Sandiford <rsandifo@redhat.com>
2100 * config/mips/mips.h (UNITS_PER_FPVALUE): Fix value for
2101 TARGET_SINGLE_FLOAT.
2103 2004-03-11 Steve Ellcey <sje@cup.hp.com>
2105 * config/ia64/hpux.h (TARGET_INIT_LIBFUNCS): Add undef.
2106 * config/ia64/ia64.h (TARGET_INIT_LIBFUNCS): Add define.
2107 * config/ia64/ia64.c (ia64_init_libfuncs): New.
2108 (ia64_hpux_init_libfuncs): Add call to ia64_init_libfuncs.
2110 2004-03-11 Roger Sayle <roger@eyesopen.com>
2112 * fold-const.c (negate_expr_p) <RSHIFT_EXPR>: We can optimize
2113 -((int)X>>C) where C is an integer constant one bit less than the
2114 size of X into (unsigned)X>>C. Similarly for unsigned->signed.
2115 (negate_expr) <RSHIFT_EXPR>: Implement the above transformations.
2117 * simplify-rtx.c (simplify_unary_operation): Also implement the
2118 above transformations at the RTL level.
2120 2004-03-11 Alan Modra <amodra@bigpond.net.au>
2122 * real.c (encode_ibm_extended): Do round low word.
2124 2004-03-11 Ben Elliston <bje@wasabisystems.com>
2126 * config/arm/arm.md (is_xscale): Comment this attribute and move
2127 it a bit further up in the file, closer to related attributes.
2129 2004-03-11 Eric Botcazou <ebotcazou@libertysurf.fr>
2131 * config/host-solaris.c (sol_gt_pch_use_address): Add
2132 missing terminating marker to comment.
2134 2004-03-11 Richard Sandiford <rsandifo@redhat.com>
2136 * config/mips/mips.md: Use move_operand in splitters for 64-bit moves.
2137 (movdi, movsi, movhi, movqi, movsf, movdf): Remove predicates.
2138 (*movdi_32bit_mips16, *movsi_mips16, *movhi_mips16, *movqi_mips16)
2139 (*movsf_mips16, *movdf_mips16): Name unnamed patterns. Use
2140 move_operand as source predicate in all cases.
2141 (*movdi_32bit): Renamed from movdi_internal. Remove 'F' constraint.
2142 Test reg_or_0_operand. Use move_operand as source predicate.
2143 (*movdi_64bit): Renamed from movdi_internal2. Test reg_or_0_operand.
2144 (*movdi_64bit_mips16): Renamed from movdi_internal2_mips16.
2145 (*movsi_internal): Renamed from movsi_internal. Test reg_or_0_operand.
2146 (movhi, movqi, movsf, movdf): Use mips_legitimize_move.
2147 (*movhi_internal): Renamed from movhi_internal. Test reg_or_0_operand.
2148 Use move_operand as source predicate. Remove 'K' constraint.
2149 (*movqi_internal): Likewise movqi_internal.
2150 (*movsf_hardfloat): Renamed from movsf_internal1. Test
2151 reg_or_0_operand. Use move_operand as source predicate.
2152 (*movsf_softfloat): Likewise movsf_internal2.
2153 (*movdf_hardfloat_64bit): Likewise movsf_internal1a.
2154 (*movdf_hardfloat_32bit): Likewise movsf_internal1b.
2155 (*movdf_softfloat): Likewise movdf_internal2.
2156 * config/mips/mips.c (move_operand): Match arbitrary CONST_INTs
2157 for DImode if !TARGET_64BIT.
2158 (mips_legitimize_move): Simplify accordingly.
2160 2004-03-11 Josef Zlomek <zlomekj@suse.cz>
2163 * var-tracking.c (struct variable_def): Added field refcount.
2164 (variable_htab_free): Decrease the refcount and delete variable
2165 only if there are no more references.
2166 (unshare_variable): New function.
2167 (vars_copy_1): Increase refcount instead of copying the variable.
2168 (variable_union): Share the variables where possible, unshare
2169 the variables if needed.
2170 (variable_different_p): Return false if var1 and var2 are
2172 (variable_was_changed): Init the refcount of new variable.
2173 (set_frame_base_location): Unshare variable if needed.
2174 (set_variable_part): Init the refcount of new variable.
2175 Unshare the variables if needed.
2176 (delete_variable_part): Unshare the variables if needed.
2177 (emit_notes_for_differences_1): Init the refcount of new variable.
2178 (vt_add_function_parameters): Do not add function parameters to
2179 IN set of ENTRY_BLOCK_PTR because it is unused anyway.
2180 (vt_initialize): Do not add frame_base_decl to IN set of
2181 ENTRY_BLOCK_PTR because it is unused anyway.
2183 2004-03-11 Josef Zlomek <zlomekj@suse.cz>
2185 * var-tracking.c (vars_copy_1): Cleanup and speedup chain operations.
2186 (vars_copy): Likewise.
2187 (variable_union): Likewise.
2188 (set_variable_part): Likewise.
2189 (delete_variable_part): Likewise.
2191 2004-03-11 Kazu Hirata <kazu@cs.umass.edu>
2193 * c-typeck.c, combine.c, cse.c, dominance.c, et-forest.h,
2194 ggc-page.c, var-tracking.c, config/fp-bit.c, config/c4x/c4x.c,
2195 config/cris/cris.c, config/i386/ppro.md, config/i860/i860.c,
2196 config/i860/i860.h, config/m32r/m32r.h, config/m32r/xm-m32r.h,
2197 config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
2198 config/mips/mips.c, config/mmix/mmix.c, config/ns32k/ns32k.h,
2199 config/pa/pa.c, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
2200 config/pdp11/pdp11.h, config/rs6000/rs6000.c,
2201 config/stormy16/stormy16.c: Fix comment typos and formatting.
2203 2004-03-11 Nathanael Nerode <neroden@gcc.gnu.org>
2205 * configure: Regenerate, since I forgot to while committing Paolo's
2208 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
2211 Move language detection to the top level.
2212 * configure.ac: Remove code to detect languages,
2213 it now lives exclusively in the top level.
2214 * aclocal.m4 (gcc_AC_PROG_GNAT): Moved to the
2215 top level, renamed to ACX_PROG_GNAT.
2217 2004-03-10 Richard Henderson <rth@redhat.com>
2219 * c-pch.c (c_common_no_more_pch): Update for gt_pch_use_address
2221 * config.host (*-*-solaris2*, *-*-linux*): Add out_host_hook_obj
2222 and host_xmake_file fragments.
2223 * ggc-common.c (gt_pch_save): Update for gt_pch_get_address change.
2224 (gt_pch_restore): Similarly for gt_pch_use_address.
2225 (default_gt_pch_get_address): New.
2226 (mmap_gt_pch_get_address): Split out of gt_pch_save.
2227 (default_gt_pch_use_address): Split out of gt_pch_restore.
2228 (mmap_gt_pch_use_address): Likewise.
2229 * hooks.c (hook_voidp_size_t_null): Remove.
2230 (hook_bool_voidp_size_t_false): Remove.
2231 * hooks.h: Likewise.
2232 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): Use one of the
2233 default_ or mmap_ definitions.
2234 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Likewise.
2235 * hosthooks.h (struct host_hooks): Update gt_pch_get_address
2236 and gt_pch_use_address.
2237 * config/host-linux.c, config/host-solaris.c: New files.
2238 * config/x-linux, config/x-solaris: New files.
2239 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_get_address):
2240 Update for changed definition.
2241 (darwin_rs6000_gt_pch_use_address): Likewise.
2242 * doc/hostconfig.texi: Update docs.
2244 2004-03-10 Richard Henderson <rth@redhat.com>
2247 * c-decl.c (grokdeclarator): Don't warn for duplicate qualifiers
2248 except for pedantic c90 mode.
2250 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
2252 * configure.ac: Bump AC_PREREQ to 2.59.
2253 * configure: Regenerate.
2255 2004-03-10 Uros Bizjak <uros@kss-loka.si>
2257 * optabs.h (enum optab_index): Add new OTI_exp10 and OTI_exp2.
2258 (exp10_optab, exp2_optab): Define corresponding macros.
2259 * optabs.c (init_optabs): Initialize exp10_optab and exp2_optab.
2260 * genopinit.c (optabs): Implement exp10_optab and exp2_optab
2261 using exp10?f2 and exp2?f2 patterns.
2262 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP10{,F,L}
2263 using exp10_optab, and BUILT_IN_EXP2{,F,L} using exp2_optab.
2264 (expand_builtin): Expand BUILT_IN_EXP10{,F,L} and BUILT_IN_EXP2{,F,L}
2265 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
2267 * config/i386/i386.md (exp10sf2, exp10df2, exp10xf2, exp2sf2,
2268 exp2df2, exp2xf2): New patterns to implement exp10, exp10f, exp10l,
2269 exp2, exp2f and exp2l built-ins as inline x87 intrinsics.
2271 2004-03-10 Anthony Green <green@redhat.com>
2273 * doc/invoke.texi (ARM Options): Fix -mpfu typo.
2275 2004-03-10 David Edelsohn <edelsohn@gnu.org>
2277 * config/rs6000/aix.h (TARGET_OS_CPP_BUILTINS): Rename to ...
2278 (TARGET_OS_AIX_CPP_BUILTINS): this. Conditionally define
2280 * config/rs6000/aix41.h (TARGET_OS_CPP_BUILTINS): Use
2281 TARGET_OS_AIX_CPP_BUILTINS.
2282 * config/rs6000/aix43.h (TARGET_OS_CPP_BUILTINS): Same.
2283 * config/rs6000/aix51.h (TARGET_OS_CPP_BUILTINS): Same.
2284 * config/rs6000/aix52.h (TARGET_OS_CPP_BUILTINS): Same.
2285 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Revert
2288 2004-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2290 * fold-const.c (tree_expr_nonnegative_p): Add more builtin cases.
2292 2004-03-10 David Edelsohn <edelsohn@gnu.org>
2294 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
2295 __LONGDOUBLE128 on AIX.
2297 2004-03-10 Andrew Haley <aph@redhat.com>
2299 PR optimization/14381
2300 * function.c (expand_function_end): Emit a blockage insn before
2301 the epilogue when -fnon-call-exceptions is used.
2303 * except.c (expand_start_all_catch): Make comment more accurate.
2305 2004-03-08 Joel Sherrill <joel@oarcorp.com>
2308 * config/rs6000/t-rtems: Add missing file on branch.
2310 2004-03-10 Ulrich Weigand <uweigand@de.ibm.com>
2312 * dbxout.c (dbxout_symbol_location): Do not output references
2313 to optimized-out constant pool symbols.
2315 2004-03-10 Andreas Schwab <schwab@suse.de>
2317 * config/ia64/ia64.md (divsi3, udivsi3): Remove unused variable
2320 2004-03-09 James E Wilson <wilson@specifixinc.com>
2322 * alias.c (alias_sets_might_conflict_p): New.
2323 * c-typeck.c (build_c_cast): Call it if warn_strict_aliasing > 1.
2324 * common.opt (Wstrict-aliasing=): New.
2325 * flags.h (warn_strict_aliasing): Change type to int.
2326 * opts.c (warn_strict_aliasing): Change type to int.
2327 (common_handle_option): Handle OPT_Wstrict_aliasing_.
2328 * tree.h (alias_sets_might_conflict_p): Declare it.
2329 * doc/invoke.tex (-Wstrict-aliasing=2): Document it.
2331 2004-03-10 Roman Zippel <zippel@linux-m68k.org>
2334 * config/m68k/m68k.h (FIXED_REGISTERS): Add arg pointer.
2335 (CALL_USED_REGISTERS): Likewise.
2336 (REG_CLASS_CONTENTS): Likewise.
2337 (REG_ALLOC_ORDER): New.
2338 (REGNO_REG_CLASS): Use regno_reg_class.
2339 * config/m68k/m68k.c: Add regno_reg_class array.
2341 2004-03-09 Steve Ellcey <sje@cup.hp.com>
2343 * config/ia64/ia64.md (divsi3): Fix algorithm.
2345 (setf_exp_xf): Remove '*' from name.
2346 * testsuite/gcc.dg/20040309-1.c: New test.
2348 2004-03-09 Ian Lance Taylor <ian@wasabisystems.com>
2350 * system.h (SUNOS4_SHARED_LIBRARIES): Poison.
2351 * collect2.c: Remove SUNOS4_SHARED_LIBRARIES code.
2352 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): Don't define.
2353 * config/sparc/sparc.c (sparc_aout_select_section): Remove.
2354 (sparc_aout_select_rtx_section): Don't check
2355 SUNOS4_SHARED_LIBRARIES.
2356 * config/sparc/sparc.h (SUNOS4_SHARED_LIBRARIES): Don't define.
2358 2004-03-10 Hans-Peter Nilsson <hp@axis.com>
2361 * doc/md.texi (Pattern Ordering, Dependent Patterns)
2362 (Jump Patterns, Looping Patterns): Wrap in separate "@ifset
2365 2004-03-09 Zack Weinberg <zack@codesourcery.com>
2367 * config/ia64/hpux.h (MULTILIB_DEFAULTS): Define.
2368 (LIBGCC_SPEC): Update to match.
2370 2004-03-09 Zack Weinberg <zack@codesourcery.com>
2372 * c-decl.c (last_function_parms, last_function_parm_tags)
2373 (last_function_parm_others, current_function_parms)
2374 (current_function_parm_tags, current_function_parm_others):
2376 (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES, ARG_INFO_OTHERS):
2378 (grokdeclarator): For function definitions, save the arg-info
2379 block from the declarator in DECL_ARGUMENTS.
2380 (grokparms): Do not write to last_function_parm*. Use ARG_INFO_*
2381 macros to operate on arg-info block. Can assume ARG_INFO_PARMS
2382 contains only PARM_DECLs. Improve diagnostics.
2383 (get_parm_info): Use ARG_INFO_* macros. Improve comments and
2384 diagnostics. Disable some expensive checks if not ENABLE_CHECKING.
2385 (store_parm_decls_newstyle): Take the function to operate on,
2386 and an arg-info block, as arguments; don't get anything from
2387 current_function_* globals.
2388 (store_parm_decls_oldstyle): Likewise.
2389 (store_parm_decls): Pass fndecl and its arg-info block down to
2390 store_parm_decls_newstyle/oldstyle. Send functions with empty
2391 argument lists through store_parm_decls_newstyle to reduce
2393 (pushdecl): Comment on the problems with the call to copy_node.
2394 Clear DECL_ARGUMENTS of the old node after copying it, if it
2395 is an arg-info block instead of a chain of decls.
2396 (start_function): Do not manipulate current_function_parm* or
2397 last_function_parm*.
2399 2004-03-09 Roger Sayle <roger@eyesopen.com>
2400 Andrew Pinski <pinskia@physics.uc.edu>
2402 * ifcvt.c (noce_try_sign_mask): New function to transform
2403 "x = (y < 0) ? z : 0" into the equivalent "x = (y >> C) & z".
2404 (noce_process_if_block): Call noce_try_sign_mask.
2406 2004-03-09 Andrew Pinski <apinski@apple.com>
2408 * c-typeck.c (tagged_types_tu_compatible_p):
2411 2004-03-09 Roger Sayle <roger@eyesopen.com>
2413 * simplify-rtx.c (simplify_const_relational_operation): New function
2414 renamed from simplify_relational_operation.
2415 (simplify_relational_operation): Change prototype to accept an
2416 additional mode argument. Call simplify_const_relational_operation.
2417 (simplify_gen_relational): Update simplify_relational_operation call.
2418 (simplify_ternary_operation): Update simplify_relational_operation
2419 subroutine call to use simplify_const_relational_operation instead.
2421 * rtl.h (simplify_const_relational_operation): Prototype here.
2422 (simplify_relational_operation): Add addtional mode argument.
2424 * combine.c (combine_simplify_rtx): Update calls to
2425 simplify_relational_operation.
2426 (simplify_set): Likewise.
2427 (gen_binary): Likewise.
2428 * cse.c (fold_rtx): Likewise.
2429 * dojump.c (compare_from_rtx): Likewise.
2430 (do_compare_rtx_and_jump): Likewise.
2431 * integrate.c (subst_constants): Likewise.
2432 * unroll.c (simplify_cmp_and_jump_insns): Likewise.
2434 2004-03-09 Kazu Hirata <kazu@cs.umass.edu>
2436 * config/m32r/m32r.md: Remove all define_peephole's.
2438 2004-03-09 Alan Modra <amodra@bigpond.net.au>
2440 * config/rs6000/rs6000.md: Remove trailing whitespace.
2442 2004-03-08 Eric Christopher <echristo@redhat.com>
2444 * Makefile.in (site.exp): Add libiconv variable definition.
2446 2004-03-09 Hans-Peter Nilsson <hp@axis.com>
2448 * configure: Regenerate for config/accross.m4 correction.
2450 2004-03-08 Joel Sherrill <joel@oarcorp.com>
2453 * config/rs6000/t-rtems: Add missing file on branch.
2455 2004-03-08 Roger Sayle <roger@eyesopen.com>
2458 * c-typeck.c (c_mark_addressable): A register variable should
2459 be considered global if its not automatic, i.e. TREE_PUBLIC,
2460 TREE_STATIC or DECL_EXTERNAL.
2461 * function.c (put_var_into_stack): Call abort when placing a
2462 hard register into the stack, if x_parm_reg_stack_loc is NULL.
2464 2004-03-08 Ulrich Weigand <uweigand@de.ibm.com>
2466 * config/s390/s390.md ("*extendqidi2_short_displ"): Add CC clobber.
2467 ("*extendqisi2_short_displ"): Likewise.
2469 2004-03-08 Kazu Hirata <kazu@cs.umass.edu>
2471 * config/pdp11/pdp11.c (comparison_operator_index): Remove.
2472 (comp_operator): Likewise.
2473 * config/pdp11/pdp11-protos.h: Remove corresponding
2476 2004-03-08 Eric Botcazou <ebotcazou@act-europe.fr>
2478 * expr.c (highest_pow2_factor_for_type): Rename into
2479 highest_pow2_factor_for_target. Use DECL_ALIGN instead of
2480 TYPE_ALIGN when the target is a COMPONENT_REF.
2481 (expand_assignment): Ajust call to highest_pow2_factor_for_type.
2483 2004-03-08 Alan Modra <amodra@bigpond.net.au>
2485 * config/rs6000/rs6000.c: Formatting fix.
2486 (legitimate_offset_address_p): Correct offset range check.
2488 * config/rs6000/rs6000.c (rs6000_override_options): Don't override
2489 -msoft-float by -mcpu. Consolidate similar code for MASK_MULTIPLE
2492 2004-03-07 Aldy Hernandez <aldyh@redhat.com>
2494 * config/rs6000/rs6000.md (ashrdi3): Do not call ashrdi3_no_power
2496 ("ashrdi3_no_power"): Disable for little endian.
2499 2004-03-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2501 * fold-const.c (tree_expr_nonnegative_p): Reformat checks for
2504 2004-03-08 Hans-Peter Nilsson <hp@axis.com>
2507 * configure.ac (Target-specific assembler checks) <cris-*-*>: New
2508 case, checking for -no-mul-bug-abort option.
2509 * configure, config.in: Regenerate.
2510 * doc/invoke.texi (CRIS Options): Document -mmul-bug-workaround
2511 and -mno-mul-bug-workaround.
2512 * config/cris/cris.md ("smulsi3_highpart", "umulsi3_highpart")
2513 ("mulsidi3", "umulsidi3"): Prefix output template with "%!".
2514 ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3"):
2515 Ditto. Make attribute "slottable" dependent on TARGET_MUL_BUG.
2516 * config/cris/mulsi3.asm (__Mul) [__CRIS_arch_version >= 10]: Make
2517 sure mulu.d is not last on cache-line.
2518 * config/cris/cris.h (ASM_SPEC): Translate -mno-mul-bug-workaround
2519 into -no-mul-bug-abort depending on HAVE_AS_MUL_BUG_ABORT_OPTION.
2520 (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG): New macros.
2521 (TARGET_SWITCHES): New options -mmul-bug-workaround and
2522 -mno-mul-bug-workaround.
2523 (TARGET_DEFAULT): Include TARGET_MASK_MUL_BUG.
2524 (PRINT_OPERAND_PUNCT_VALID_P): Include '!'.
2525 * config/cris/cris.c (cris_operand_extend_operator): Clarify
2526 relation to MULT in head comment.
2527 (cris_op_str): Abort for MULT.
2528 (cris_print_operand) <case '!'>: New case.
2530 2004-03-08 Alan Modra <amodra@bigpond.net.au>
2533 * dwarf2out.c (enum dw_val_class): Rename dw_val_class_float to
2534 dw_val_class_vec. Replace use throughout file.
2535 (dw_float_const): Delete.
2536 (dw_vec_const): New.
2537 (dw_val_struct_union): Rename val_float to val_vec. Replace use
2539 (add_AT_vec): Rename from add_AT_float. Add elt_size param.
2540 (same_dw_val_p): Adjust vec comparison. Use memcmp.
2541 (size_of_die): Adjust dw_val_class_vec sizing.
2542 (output_die): Output dw_val_class_vec.
2543 (insert_int, extract_int, insert_float): New functions.
2544 (add_const_value_attribute): Use insert_float for CONST_DOUBLE.
2545 Handle CONST_VECTOR.
2546 (add_location_or_const_value_attribute): Handle CONST_VECTOR.
2548 2004-03-07 Aldy Hernandez <aldyh@redhat.com>
2550 * config/rs6000/rs6000.c (rs6000_parse_abi_options): SPE and
2551 AltiVec abi cannot co-exist.
2553 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Same.
2555 2004-03-07 Jan Hubicka <jh@suse.cz>
2557 * except.c (emit_to_new_bb_before): Break fallthru edges.
2559 2004-03-07 Stephane Carrez <stcarrez@nerim.fr>
2561 * config/m68hc11/m68hc11.md ("*lshrsi3_const"): Disable for 68HC12.
2562 ("*lshrsi3"): Also accept an immediate for 68HC12.
2563 ("*ashrsi3_const"): Likewise.
2564 ("*ashrsi3"): Likewise.
2565 ("*ashlsi3_const"): Likewise.
2566 ("*ashlsi3"): Likewise.
2567 ("cmphi_1_hc12"): Compare two hard register by pushing them and
2568 comparing with a pop; don't use a split for that.
2569 ("cmphi split"): Disable compare split for 68HC12.
2571 * config/m68hc11/m68hc11.c (m68hc11_notice_update_cc): Invalidate
2572 the status operands if they have side effects.
2574 2004-03-07 Kazu Hirata <kazu@cs.umass.edu>
2576 * defaults.h (LEGITIMIZE_ADDRESS): Provide a default
2578 * config/arc/arc.h, config/fr30/fr30.h, config/frv/frv.h,
2579 config/h8300/h8300.h, config/ia64/ia64.h,
2580 config/mcore/mcore.h, config/mmix/mmix.h,
2581 config/ns32k/ns32k.h, config/pdp11/pdp11.h,
2582 config/stormy16/stormy16.h, config/v850/v850.h,
2583 config/vax/vax.h (LEGITIMIZE_ADDRESS): Remove.
2584 * doc/tm.texi (LEGITIMIZE_ADDRESS): Mention the default
2587 2004-03-07 Roger Sayle <roger@eyesopen.com>
2589 * fold-const.c (fold) <IOR_EXPR>: Fold x | x as x.
2590 <XOR_EXPR>: Fold x ^ x as zero.
2591 <AND_EXPR>: Fold x & x as x.
2593 2004-03-07 Roger Sayle <roger@eyesopen.com>
2595 * fold-const.c (fold) <EQ_EXPR>: Rewrite optimization to transform
2596 "foo++ == const" into "++foo == const+incr".
2598 2004-03-07 Richard Sandiford <rsandifo@redhat.com>
2600 * config/mips/mips.c (mips_in_small_data_p): Return false if
2603 2004-03-06 Stephane Carrez <stcarrez@nerim.fr>
2605 * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Use 2,-sp to push
2607 (expand_prologue): Don't make an interrupt or a trap handler a far
2609 (m68hc11_initial_elimination_offset): Likewise.
2611 2004-03-06 Richard Henderson <rth@redhat.com>
2613 * config/alpha/alpha.c (alpha_in_small_data_p): False for functions.
2615 2004-03-06 Kazu Hirata <kazu@cs.umass.edu>
2617 * config/ns32k/ns32k-protos.h: Add a prototype for
2618 ns32k_notice_update_cc.
2619 * config/ns32k/ns32k.c (ns32k_notice_update_cc): New.
2620 * config/ns32k/ns32k.h (NOTICE_UPDATE_CC): Call
2621 ns32k_notice_update_cc.
2623 2004-03-06 Ulrich Weigand <uweigand@de.ibm.com>
2625 * config/s390/s390.md ("load_multiple", "*load_multiple_di",
2626 "*load_multiple_si"): Allow only if reload_completed.
2627 ("store_multiple", "*store_multiple_di", "*store_multiple_si"):
2630 2004-03-06 Kazu Hirata <kazu@cs.umass.edu>
2632 * config/vax/vax-protos.h: Add a prototype for
2633 vax_notice_update_cc.
2634 * config/vax/vax.c (vax_notice_update_cc): New.
2635 * config/vax/vax.h (NOTICE_UPDATE_CC): Call
2636 vax_notice_update_cc.
2638 2004-03-06 David Edelsohn <edelsohn@gnu.org>
2640 * collect2.c (main): Only export initfunc and finifunc if
2641 LD_INIT_SWITCH not defined.
2642 (scan_prog_file): Only export constructors and destructors if
2643 LD_INIT_SWITCH not defined. Only export symbols not found in
2646 2004-03-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2648 * pa.md (icacheflush): Reorder operands to make match_scratch operand
2650 * pa.h (INITIALIZE_TRAMPOLINE): Remove unnecessary scratch argument
2651 from calls to gen_icacheflush.
2653 2004-03-06 Richard Henderson <rth@redhat.com>
2655 * config/alpha/alpha.h (MASK_LONG_DOUBLE_128): New.
2656 (TARGET_LONG_DOUBLE_128): New.
2657 (TARGET_SWITCHES): Add long-double-{128,64}.
2658 (TARGET_HAS_XFLOATING_LIBS): Default to TARGET_LONG_DOUBLE_128.
2659 (LONG_DOUBLE_TYPE_SIZE): Honor TARGET_LONG_DOUBLE_128.
2660 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): New.
2661 (WIDEST_HARDWARE_FP_SIZE): New.
2662 (TARGET_CPU_CPP_BUILTINS): Define __LONG_DOUBLE_128__.
2663 * config/alpha/alpha.c (override_options): Clear MASK_LONG_DOUBLE_128
2664 if TARGET_VAX_FLOAT.
2665 * config/alpha/osf5.h (LONG_DOUBLE_TYPE_SIZE): Remove.
2666 (TARGET_DEFAULT): Set MASK_LONG_DOUBLE_128.
2668 2004-03-06 Richard Henderson <rth@redhat.com>
2670 * config/alpha/alpha.c (alpha_swapped_comparison_operator): Fix
2671 botched rtx class conversion.
2673 2004-03-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2675 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P,
2676 BUILTIN_CBRT_P, BUILTIN_ROOT_P): New macros.
2678 * builtins.c (fold_builtin_logarithm, fold_builtin): Use new
2680 * fold-const.c (fold_mathfn_compare, fold): Likewise.
2682 2004-03-06 Eric Botcazou <ebotcazou@libertysurf.fr>
2685 * config/i386/i386.md (movv2di_internal): Conditionalize on
2686 TARGET_SSE, not TARGET_SSE2.
2688 2004-03-05 Chris Demetriou <cgd@broadcom.com>
2690 * config.gcc (mips64orion-*-elf*, mips64orionel-*-elf*): Delete
2693 2004-03-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2695 * builtins.c: Consistently use logN not log* in comments.
2697 2004-03-05 Andreas Krebbel <krebbel1@de.ibm.com>
2699 * rtl.h (mem_expr_equal_p): Function prototype added.
2700 * cfgcleanup.c (merge_memattrs): New function.
2701 (flow_find_cross_jump): Call merge_memattrs for matching insns.
2702 * emit-rtl.c (mem_expr_equal_p): New function.
2704 2004-03-05 Ziemowit Laski <zlaski@apple.com>
2706 * objc/objc-act.c (synth_module_prologue): Const-qualify
2707 objc_selector type if using the GNU runtime; fix generated
2708 signatures for objc_msg_lookup and objc_msg_lookup_super
2709 to match what GNU ObjC headers provide; reformat and clean up.
2710 (synth_self_and_ucmd_args): Use previously constructed (and
2711 hence possibly const-qualified) objc_selector type.
2713 2004-03-05 Kazu Hirata <kazu@cs.umass.edu>
2715 * doc/tm.texi (HARD_REGNO_RENAME_OK): Document.
2717 2004-03-05 Jason Merrill <jason@redhat.com>
2719 * tree.h (TYPE_HASH): Use TYPE_UID.
2720 (TREE_HASH): New macro with old definition of TYPE_HASH.
2721 * tree.c (build_type_attribute_variant): Use iterative_hash_object.
2722 (build_array_type, build_function_type): Likewise.
2723 (build_method_type_directly): Likewise.
2724 (build_offset_type, build_complex_type): Likewise.
2725 (type_hash_list, attribute_hash_list): Likewise. Now static.
2726 * except.c: s/TYPE_HASH/TREE_HASH/.
2728 2004-03-05 Bob Wilson <bob.wilson@acm.org>
2730 * config/xtensa/xtensa.c (function_arg): Handle 16-byte aligned args.
2731 (xtensa_va_start): Initialize __va_stk to ($arg_ptr - 32). Adjust
2732 __va_ndx by 2 words when referencing an argument on the stack.
2733 (xtensa_va_arg): Handle 16-byte aligned args. Adjust __va_ndx by 2
2734 words when an arg on the stack is first seen.
2736 2004-03-05 Paul Brook <paul@codesourcery.com>
2738 * arm.h (ARM_FLAG_VFP): Remove.
2739 (ARM_FLAG_ATPCS, CIRRUS_FIX_INVALID_INSNS): Renumber.
2740 * netbsd-elf.h (ARM_FLAG_VFP): Remove.
2742 2004-03-05 Paul Brook <paul@codesourcery.com>
2744 * function.c (assign_parms): Include pretend alignment offset.
2746 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2748 * stor-layout.c (layout_type, case FUNCTION_TYPE): Make size
2749 FUNCTION_BOUNDARY, not POINTER_SIZE * 2.
2751 2004-03-05 Ian Lance Taylor <ian@wasabisystems.com>
2753 * configure.ac: When passing --enable-languages to subdir
2754 configure when host != build, make sure we don't pass an empty
2756 * configure: Regenerate.
2758 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
2761 * gcc.c (cc1_options): Robustify -auxbase-strip from multiple -o
2764 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
2766 * simplify-rtx.c (simplify_relational_operation): If
2767 flag_wrapv is set, do not move terms between the two
2768 side of a relational operator.
2770 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
2772 * rtlanal.c: Include target.h and output.h
2773 (rtx_cost, address_cost, default_address_cost): Move from...
2774 * cse.c (rtx_cost, address_cost, default_address_cost):
2776 * rtl.h (rtx_cost, address_cost): Move under rtlanal.c.
2777 * Makefile.in: Adjust dependencies.
2779 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
2781 * cse.c (cse_end_of_basic_block): Make static.
2782 * local-alloc.c (function_invariant_p): Move to
2784 * loop.c (libcall_other_reg, record_excess_regs):
2786 * reload1.c (function_invariant_p): Moved here
2787 from local-alloc.c, made static.
2788 * rtl.h (cse_end_of_basic_block, function_invariant_p,
2789 libcall_other_reg, record_excess_regs): Remove
2792 2004-03-05 Kazu Hirata <kazu@cs.umass.edu>
2794 * config/m32r/m32r.c (signed_comparison_operator): Add a
2795 missing parenthesis.
2797 2004-03-04 Ian Lance Taylor <ian@wasabisystems.com>
2799 * ggc-common.c (gt_pch_restore): Don't unmap addr unless we are
2800 going to call mmap again. Read the file into the right place.
2801 Give a fatal error if we have to relocate.
2803 2004-03-04 Bob Wilson <bob.wilson@acm.org>
2805 * config/xtensa/xtensa.c (xtensa_return_in_msb): New function.
2806 (TARGET_RETURN_IN_MSB): Define to xtensa_return_in_msb.
2808 2004-03-05 Hans-Peter Nilsson <hp@axis.com>
2811 * config/fp-bit.c (_fpdiv_parts): Do not round when pack_d would
2812 round the same. When rounding, clear bits that would cause a
2813 second rounding in pack_d.
2814 (_fpmul_parts): Ditto. Remove #if 0:d code.
2816 2004-03-04 Ziemowit Laski <zlaski@apple.com>
2818 PR c++/14425, c++/14426
2819 * config/rs6000/altivec.h (vec_splat_s8, vec_splat_s16,
2820 vec_splat_s32, vec_splat_u8, vec_splat_u16, vec_splat_u32):
2821 Change C++ definitions to accept a 'const int' argument;
2822 the prototypes already do.
2823 * config/rs6000/rs6000.c (rs6000_common_init_builtins):
2824 Rename v4si_ftype_char, v8hi_ftype_char, v16qi_ftype_char,
2825 v4sf_ftype_v4si_char, v4si_ftype_v4sf_char, v4si_ftype_v4si_char,
2826 v8hi_ftype_v8hi_char, v16qi_ftype_v16qi_char,
2827 v16qi_ftype_v16qi_v16qi_char, v8hi_ftype_v8hi_v8hi_char,
2828 v4si_ftype_v4si_v4si_char and v4sf_ftype_v4sf_v4sf_char to
2829 end in ..._int; change them to accept an int instead of a char
2830 as the last parameter.
2832 2004-03-04 Phil Edwards <phil@codesourcery.com>
2834 * genmultilib: Change '=' to '-' when translating option names
2837 2004-03-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2839 * expr.c (expand_expr_real, case COMPONENT_REF): Get proper type of
2840 stack slot for temp used for result of BLKmode but in integral mode.
2842 2004-03-04 Jan Hubicka <jh@suse.cz>
2844 * reload.c (find_reloads): Reorganize if seqeunce to switch.
2846 * cfgrtl.c (rtl_redirect_edge_and_branch): Set the source BB as dirty.
2847 (cfglayout_redirect_edge_and_branch): Set the source BB as dirty.
2849 2004-03-04 Steve Ellcey <sje@cup.hp.com>
2851 * config/ia64/ia64.md (divdf3_internal_thr): Fix algorithm.
2852 * testsuite/gcc.dg/20040303-1.c: New test.
2854 2004-03-04 Steven Bosscher <stevenb@suse.de>
2856 * ppro.md: Rewrite as a DFA pipeline description.
2857 * i386.md: Remove all uses of the ppro_uops attribute.
2858 * i386.c: (ix86_safe_ppro_uops, ix86_dump_ppro_packet,
2859 ix86_reorder_insn, ix86_sched_reorder_ppro, ix86_sched_init,
2860 ix86_sched_reorder, ix86_variable_issue,
2861 struct ix86_sched_data, TARGET_SCHED_VARIABLE_ISSUE,
2862 TARGET_SCHED_INIT, TARGET_SCHED_REORDER): Remove.
2863 (ia32_use_dfa_pipeline_interface): Add TARGET_PENTIUMPRO.
2864 (ia32_multipass_dfa_lookahead): Add TARGET_PENTIUMPRO.
2865 * athlon.md (athlon_ssecmp_load): Fix comment
2867 2004-03-04 Stuart Hastings <stuart@apple.com>
2869 * gcc/doc/invoke.texi: Document -mlongcall for Darwin/PPC.
2871 2004-03-04 Stuart Hastings <stuart@apple.com>
2873 * gcc/config/i386/darwin.h: Darwin/x86 doesn't support CPUs before
2874 686, tell Darwin assembler to allow prefetch insns, non-empty def
2875 of SUBTARGET_OPTION_TRANSLATE_TABLE.
2877 2004-03-04 DJ Delorie <dj@redhat.com>
2879 PR optimization/14282
2880 * sched-deps.c (sched_analyze_insn): Allow a stack adjustment
2881 between a call and the assignment of its return value.
2883 2004-03-04 Kazu Hirata <kazu@cs.umass.edu>
2885 * config/h8300/h8300.c: Put a comment for every function.
2887 2004-03-04 Kazu Hirata <kazu@cs.umass.edu>
2889 * config/h8300/h8300.md: Add comments about peephole2's.
2891 2004-03-04 Steven Bosscher <stevenb@suse.de>
2893 * i386.h (TARGET_CPU_DEFAULT_nocona): Fix value.
2895 2004-03-04 Jan Hubicka <jh@suse.cz>
2897 * cfgcleanup.c (thread_jump): Update call of cselib_init.
2898 * cselib.c (cselib_record_memory): New static variable.
2899 (cselib_lookup_mem, cselib_record_set, cselib_record_sets):
2900 Give up on memories when asked for.
2901 (cselib_init): Accept new argument.
2902 * cselib.h (cselib_init): Update prototype.
2903 * gcse.c (local_cprop_pass): Update call of cselib_init.
2904 * loop.c (load_mems): Update call of cselib_init.
2905 * postreload.c (reload_cse_regs_1): Update call of cselib_init.
2906 * sched-deps.c (sched_analyze): Update call of cselib_init.
2908 2004-03-04 David Edelsohn <edelsohn@gnu.org>
2911 * config/rs6000/rs6000.c (output_function_profiler): Append @plt
2914 2004-03-04 Josef Zlomek <zlomekj@suse.cz>
2917 * var-tracking.c (track_expr_p): Do not track variables which
2918 should be ignored for debugging purposes.
2920 2004-03-04 Alan Modra <amodra@bigpond.net.au>
2922 * real.c (encode_ibm_extended): Don't bother rounding low double.
2923 * c-cppbuiltin.c (builtin_define_float_constants): Tweak MAX
2924 when fmt->pnan < fmt->p.
2926 2004-03-04 Eric Christopher <echristo@redhat.com>
2928 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Fix to check
2929 only range of valid arg registers and fixed_regs.
2931 2004-03-04 Alan Modra <amodra@bigpond.net.au>
2934 * config/rs6000/rs6000.md (abstf2, abstf2+1): Delete define_insn.
2935 (abstf2, abstf2_internal): New define_expand.
2937 2004-03-04 Eric Botcazou <ebotcazou@libertysurf.fr>
2939 PR optimization/14235
2940 * expr.c (convert_move): Copy the source to a new pseudo
2941 when converting from a sub-word source to a larger-than-word
2942 register which conflicts with the source.
2944 2004-03-03 Zack Weinberg <zack@codesourcery.com>
2947 * c-decl.c (diagnose_mismatched_decls): Issue an error for two
2948 parameters with the same name, unless one is a forward decl.
2949 Do not issue a redundant-redeclaration warning for forward
2950 decls of parameters.
2952 2004-03-04 David Edelsohn <edelsohn@gnu.org>
2954 * doc/install.texi (*-ibm-aix*): Document use of Bash to speed up
2957 2004-03-03 Ian Lance Taylor <ian@wasabisystems.com>
2959 * ggc-zone.c (ggc_pch_write_object): Don't align file pointer.
2961 2004-03-04 Alan Modra <amodra@bigpond.net.au>
2963 * target-def.h (TARGET_OPTF): Delete.
2964 * c-opts.c (TARGET_OPTF): Define.
2966 2004-03-04 Jan Hubicka <jh@suse.cz>
2968 * cselib.c (cselib_finish): Fix another miss-application of my previous
2971 2004-03-03 Mike Stump <mrs@apple.com>
2973 Add framework support for darwin.
2975 * c-incpath.c: Include target.h and machmode.h.
2976 (add_path): Use a consistent style for cpp_dir. Initialize
2978 (add_cpp_dir_path): New.
2979 (register_include_chains): Add use of extra_includes callback.
2980 (hook_void_int): Add.
2981 (target_c_incpath): Add.
2982 * c-incpath.h (add_cpp_dir_path): New.
2983 (target_c_incpath_s): Add.
2984 (target_c_incpath): Add.
2985 (C_INCPATH_INIT): Add.
2986 * c-opts.c (c_common_missing_argument,
2987 c_common_handle_option): Add -F argument processing.
2988 * c.opt: Add -F argument processing.
2989 * gcc.c (trad_capable_cpp): Add -F argument processing.
2990 * cppfiles.c (find_file_in_dir): Update to use construct
2992 (search_path_exhausted, cpp_get_path, cpp_get_buffer,
2994 (_cpp_find_file): Use search_path_exhausted.
2995 (make_cpp_dir): Initialize construct to 0.
2996 * cpplib.h (missing_header_cb
2997 cpp_get_path, cpp_get_buffer, cpp_get_file, cpp_get_prev): New.
2998 (cpp_callbacks): Add missing_header
2999 (cpp_dir): Add construct.
3000 * target-def.h: (TARGET_OPTF): New.
3001 * hooks.c (hook_void_int, hook_void_charptr): Add.
3002 * hooks.h (hook_void_int, hook_void_charptr): Add.
3003 * Makefile.in (c-incpath.o) : Add $(TARGET_H) and
3004 $(MACHMODE_H) dependencies.
3005 * doc/invoke.texi (Darwin Options): Document -F.
3006 * doc/tm.texi (TARGET_EXTRA_INCLUDES): Add.
3008 * fix-header.c (target_c_incpath): Add.
3010 * config/darwin-c.c: Add c-incpath.h include.
3011 (using_frameworks, find_subframework_file,
3012 find_subframework_header, add_system_framework_path,
3013 frameworks_in_use, num_frameworks, max_frameworks,
3014 add_framework, find_framework, struct framework_header,
3015 framework_header_dirs, framework_construct_pathname,
3016 find_subframework_file, add_system_framework_path,
3017 add_framework_path, framework_defaults,
3018 darwin_register_frameworks, find_subframework_header): Add.
3019 * config/darwin.h (TARGET_EXTRA_INCLUDES, TARGET_OPTF): New.
3020 (TARGET_OPTION_TRANSLATE_TABLE): Add -framework support.
3021 (CPP_SPEC): Add __APPLE_CC__ support.
3022 * t-darwin (darwin-c.o): Add c-incpath.h dependency.
3024 2004-03-04 Jan Hubicka <jh@suse.cz>
3026 * cselib.c (cselib_finish): Fix miss-application of my previous
3029 2004-03-03 Kazu Hirata <kazu@cs.umass.edu>
3031 * hooks.c (hook_tree_tree_identity): New.
3032 * hooks.h: Add a prototype for hook_tree_tree_identity.
3033 * stmt.c (expand_asm_operands): Use targetm.md_asm_clobbers
3034 instead of MD_ASM_CLOBBERS.
3035 * system.h (MD_ASM_CLOBBERS): Poison.
3036 * target-def.h (TARGET_MD_ASM_CLOBBERS): New.
3037 (TARGET_INITIALIZER): Add TARGET_MD_ASM_CLOBBERS.
3038 * target.h (gcc_target): Add md_asm_clobbers.
3039 * config/i386/i386.c (TARGET_MD_ASM_CLOBBERS): New.
3040 (ix86_md_asm_clobbers): New.
3041 * config/i386/i386.h (MD_ASM_CLOBBERS): Remove.
3042 * doc/tm.texi (MD_ASM_CLOBBERS): Change to
3043 TARGET_MD_ASM_CLOBBERS.
3045 2004-03-03 Stuart Hastings <stuart@apple.com>
3047 * gcc/config.gcc: Arrange for Darwin/x86 to build libgcc_eh.a.
3049 2004-03-03 Eric Botcazou <ebotcazou@libertysurf.fr>
3051 * config/sparc/sparc.c (noov_compare64_op): Fix typo.
3053 * config/sparc/sparc.h (ASM_FLOAT): Delete.
3054 (ASM_DOUBLE): Likewise.
3055 (ASM_LONGDOUBLE): Likewise.
3056 * config/sparc/pbd.h (ASM_INT_OP): Delete.
3058 2003-03-03 Richard Henderson <rth@redhat.com>
3061 * cselib.c (cselib_record_sets): Don't record multiple sets in
3064 2004-03-03 Mostafa Hagog <mustafa@il.ibm.com>
3066 * common.opt: Add description of the new -fgcse-after-reload flag.
3068 * flags.h (flag_gcse_after_reload): Declaration of global variable.
3070 * gcse.c (reg_used_on_edge ,reg_set_between_after_reload_p,
3071 reg_used_between_after_reload_p, rtx get_avail_load_store_reg,
3072 is_jump_table_basic_block, bb_has_well_behaved_predecessors,
3073 get_bb_avail_insn, hash_scan_set_after_reload,
3074 compute_hash_table_after_reload, eliminate_partially_redundant_loads,
3075 gcse_after_reload, get_bb_avail_insn): New functions to implement
3077 (gcse_after_reload_main): New function, the main entry point to
3080 * rtl.h (gcse_after_reload_main): Declaration of the new function.
3082 * opts.c (common_handle_option): Handle the -fgcse-after-reload flag.
3084 * toplev.c (flag_gcse_after_reload): Initialization.
3086 * passes.c (rest_of_handl_gcse2): Call gcse_after_reload_main.
3088 * params.def (PARAM_GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
3089 PARAM_GCSE_AFTER_RELOAD_CRITICAL_FRACTION): New parameters for tuning
3090 the gcse after reload optimization.
3092 * params.h (GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
3093 GCSE_AFTER_RELOAD_CRITICAL_FRACTION): Two macros to access the tuning
3096 * doc/invoke.texi: Documentation for the new flag gcse-after-reload.
3098 2004-03-03 Nicolas Pitre <nico@cam.org>
3100 * config/arm/ieee754-df.S (muldf3, divdf3): Fix denormalization of
3101 small negative values.
3103 2004-03-03 Jan Hubicka <jh@suse.cz>
3105 * cselib.c (hash_table): Remove GTY marker.
3106 (reg_values): Turn into array.
3107 (used_regs): Likewise.
3108 (n_used_regs): New static variable.
3109 (reg_values_old): Kill.
3110 (clear_table): Update uses of arrays.
3111 (cselib_lookup): Likewise.
3112 (cselib_record_set): Likewise.
3113 (cselib_init): Likewise.
3114 (cselib_finish): Likewise.
3115 (cselib_udpate_varray_sizes): Kill.
3116 * cselib.h (cselib_update_varray_sizes): Kill.
3118 2004-03-03 Paul Brook <paul@codesourcery.com>
3120 * flow.c (ior_reg_cond, and_reg_cond): Remove stray ")".
3122 2004-03-03 Jan Hubicka <jh@suse.cz>
3124 * ggc-common.c (ggc_alloc_cleared_stat, ggc_realloc_stat):
3125 Rename from ...; make statistics transparent.
3126 (ggc_alloc_cleared, ggc_realloc_stat): ... these.
3127 (loc_descriptor): New structure.
3128 (hash_descriptor, eq_descriptor, loc_descriptor, cmp_statistics,
3130 New static function.
3131 (ggc_record_overhead, dump_statistics): New global function.
3132 * ggc-none.c (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
3133 ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Rename
3134 from ...; accept locations
3135 (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
3136 ggc_realloc, ggc_alloc_typed): ... this one.
3137 from ...; accept locations
3138 * ggc-page.c (ggc_alloc_typed_stat, ggc_alloc_zone_stat,
3139 ggc_alloc_stat): Rename from ... ; pass locations
3140 * ggc-page.c (ggc_alloc_typed, ggc_alloc_zone, ggc_alloc):
3142 (ggc_alloc_stat): Record overehead.
3143 * ggc.h (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
3144 ggc_realloc, ggc_alloc_typed): Turn to macros
3145 (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
3146 ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Declare.
3147 (dump_ggc_loc_satistics, ggc_record_overehead): Declare.
3148 * langhooks.h (lhd_make_node): Declare.
3149 (LANG_HOOKS_MAKE_TYPE): Default to new function,
3150 * langhooks.c (lhd_make_node): New.
3151 * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Rename from ... ; pass
3153 (rtx_alloc, swallow_copy_rtx): ... this one.
3154 * rtl.h (rtx_alloc, swallow_copy_rtx): Turn to macros.
3155 * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Declare.
3156 * toplpev.c (finalize): Dump stats.
3157 * tree.c (make_node_stat, copy_node_stat, make_tree_vec_stat,
3158 build_tree_list_stat, tree_cons_stat, build?_stat, build_decl_stat):
3159 Rename from ... ; pass locators.
3160 (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
3161 build?, build_decl): Declare.
3162 * tree.h (make_node_stat, copy_node_stat, make_tree_vec_stat,
3163 build_tree_list_stat, tree_cons_stat, build?_stat, build_decl_stat):
3165 (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
3166 build?, build_decl): New macros.
3167 * Makefile.in (RTL_H, TREE_H): Add statistics.h dependency.
3168 * statistics.h: New file.
3170 2004-03-03 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3171 Richard Sandiford <rsandifo@redhat.com>
3173 * config/mips/mips.h (MASK_FIX_SB1): Bump.
3174 (MASK_FIX_R4400, TARGET_FIX_R4400): New macros.
3175 (TARGET_SWITCHES): Add -mfix-r4400 and -mno-fix-r4400.
3176 * config/mips/mips.c (mips_output_division): Fill the branch delay
3177 slot with a nop if TARGET_FIX_R4000. Extend R4000 workarounds to
3179 (mips_output_division): Adjust accordingly.
3180 (override_options): Make -march=r4400 imply -mfix-r4400 by default.
3181 * doc/invoke.texi: Document -mfix-r4400 and new errata workarounds.
3183 2004-03-03 Paolo Bonzini <bonzini@gnu.org>
3185 * alias.c (rtx_equal_for_memref_p): Use predicates
3186 to test rtx classes and new rtx class codes, possibly
3187 splitting conditionals that tested against '<' and 'o'.
3188 * caller-save.c (save_call_clobbered_regs): Likewise.
3189 * combine.c (contains_muldiv, find_split_point, subst,
3190 combine_simplify_rtx, simplify_if_then_else,
3191 simplify_set, simplify_logical, expand_compound_operation,
3192 make_compound_operation, if_then_else_cond, known_cond,
3193 apply_distributive_law, cached_nonzero_bits,
3194 cached_num_sign_bit_copies, simplify_shift_const,
3195 gen_binary, simplify_comparison, update_table_tick,
3196 record_value_for_reg, get_lsat_value_validate): Likewise.
3197 * cse.c (mention_regs, find_best_addr, find_comparison_args,
3198 fold_rtx, cse_insn, invalidate_memory, cse_basic_block):
3200 * emit-rtl.c (copy_insn_1): Likewise.
3201 * expr.c (force_operand): Likewise.
3202 * final.c (final_scan_insn, get_mem_expr_from_op): Likewise.
3203 * flow.c (notice_stack_pointer_modification_1,
3204 invalidate_mems_from_autoinc, ior_reg_cond, not_reg_cond,
3205 and_reg_cond, elim_reg_cond): Likewise.
3206 * function.c (update_epilogue_consts): Likewise.
3207 * genattrtab.c (attr_rtx_1): Likewise.
3208 * genopinit.c (gen_insn): Likewise.
3209 * integrate.c (subst_constants): Likewise.
3210 * jump.c (reversed_comparison_code_parts,
3211 reversed_comparison_code, delete_related_insns,
3212 rtx_renumbered_equal_p): Likewise.
3213 * local-alloc.c (block_alloc): Likewise.
3214 * loop.c (rtx_equal_for_prefetch_p, maybe_eliminate_biv,
3215 canonicalize_condition): Likewise.
3216 * loop-iv.c (simplify_using_conditions, iv_number_of_iterations):
3218 * optabs.c (add_equal_node, expand_binop): Likewise.
3219 * predict.c (estimate_probability): Likewise.
3220 * ra-debug.c (ra_print_rtx_2op, ra_print_rtx): Likewise.
3221 * recog.c (validate_replace_rtx_1, comparison_operator,
3222 offsettable_address_p, constrain_operands): Likewise.
3223 * reg-stack.c (swap_rtx_condition_1, subst_stack_regs_pat):
3225 * regclass.c (scan_one_insn): Likewise.
3226 * regmove.c (stable_and_no_regs_but_for_p): Likewise.
3227 * regrename.c (kill_autoinc_value): Likewise.
3228 * reload.c (find_reusable_reload, find_reloads,
3229 reg_overlap_mentioned_for_reload_p): Likewise.
3230 * reload1.c (gen_reload, delete_address_reloads_1): Likewise.
3231 * rtl.c (copy_rtx): Likewise.
3232 * rtl.h (CONSTANT_P, INSN_P): Likewise.
3233 * rtlanal.c (commutative_operand_precedence): Likewise.
3234 * sched-deps.c (conditions_mutex_p): Likewise.
3235 * sched-rgn.c (is_cfg_nonregular): Likewise.
3236 * simplify-rtx.c (simplify_gen_binary,
3237 simplify_gen_relational, simplify_replace_rtx,
3238 simplify_unary_operation, simplify_binary_operation,
3239 simplify_ternary_operation, simplify_rtx): Likewise.
3240 * unroll.c (reg_dead_after_loop): Likewise.
3241 * config/alpha/alpha.c (alpha_swapped_comparison_operator,
3242 print_operand): Likewise.
3243 * config/arc/arc.c (proper_comparison_operator): Likewise.
3244 * config/arm/arm.c (arm_arm_address_cost, arm_select_cc_mode):
3246 * config/avr/avr.c (_reg_unused_after): Likewise.
3247 * config/frv/frv.c (frv_ifcvt_modify_tests,
3248 frv_ifcvt_modify_insn, frv_pack_insn): Likewise.
3249 * config/i386/i386.c (ix86_comparison_operator,
3250 ix86_carry_flag_operator, fcmov_comparison_operator,
3251 arith_or_logical_operator, print_operand,
3252 ix86_expand_binary_operator, ix86_binary_operator_ok):
3254 * config/i386/i386.md: Likewise.
3255 * config/ia64/ia64.c (not_postinc_memory_operand,
3256 ia64_print_operand, update_set_flags, errata_emit_nops):
3258 * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS,
3259 CONSTRAINT_OK_FOR_S): Likewise.
3260 * config/ip2k/ip2k.c (mdr_resequence_xy_yx,
3261 mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
3262 ip2k_xexp_not_uses_reg_for_mem, ip2k_xexp_not_uses_reg_p,
3263 ip2k_composite_xexp_not_uses_reg_p, ip2k_unary_operator):
3265 * config/iq2000/iq2000.c (cmp_op, symbolic_expression_p,
3266 eqne_comparison_operator, signed_comparison_operator):
3268 * config/mips/mips.c (cmp_op, symbolic_expression_p):
3270 * config/mmix/mmix (mmix_foldable_comparison_operator,
3271 mmix_comparison_operator): Likewise.
3272 * config/pa/pa.c (hppa_legitimize_address): Likewise.
3273 * config/rs6000/rs6000.c (stmw_operation,
3274 branch_comparison_operator, trap_comparison_operator,
3276 * config/rs6000/rs6000.h (SELECT_CC_MODE): Likewise.
3277 * config/s390/s390.c (s390_alc_comparison,
3278 s390_slb_comparison):L Likewise.
3279 * config/sh/sh.c (gen_block_redirect, reg_unused_after):
3281 * config/sparc/sparc.c (eq_or_neq, normal_comp_operator,
3282 noov_compare_op, noov_compare64_op, v9_regcmp_op,
3283 emit_hard_tfmode_operation, reg_unused_after)
3284 * doc/md.texi, doc/rtl.texi: Likewise.
3286 * ra-debug.c: Add 2004 to list of copyright years.
3287 * unroll.c: Likewise.
3289 * combine.c (simplify_logical): Remove dummy test,
3290 (apply_distributive_law): Fix typo in comment.
3291 GET_CODE (x) == AND so x is a commutative binary op.
3292 * jump.c (delete_related_insns): simplify loop
3293 condition, move testing of RTX codes inside the loop.
3294 (rtx_renumbered_equal_p): do not use RTX_CODE.
3295 * rtl.c (rtx_class): Declare as enum rtx_class.
3296 * rtl.def (EQ, NE, UNEQ, LTGT, UNORDERED, ORDERED):
3297 Move to RTX_COMM_COMPARE class.
3298 (HIGH, SYMBOL_REF, LABEL_REF, CONST, CONST_INT, CONST_DOUBLE):
3299 Move to RTX_CONST_OBJ class.
3300 * rtl.h (enum rtx_class): New declaration,
3301 (RTX_OBJ_MASK, RTX_OBJ_RESULT, RTX_COMPARE_MASK,
3302 RTX_COMPARE_RESULT, RTX_ARITHMETIC_MASK, RTX_ARITHMETIC_RESULT,
3303 RTX_BINARY_MASK, RTX_BINARY_RESULT, RTX_COMMUTATIVE_MASK,
3304 RTX_COMMUTATIVE_RESULT, RTX_NON_COMMUTATIVE_RESULT,
3305 RTX_EXPR_FIRST, RTX_EXPR_LAST, UNARY_P, BINARY_P,
3306 ARITHMETIC_P, COMMUTATIVE_ARITHMETIC_P, COMPARISON_P,
3307 SWAPPABLE_OPERANDS_P, NON_COMMUTATIVE_P, COMMUTATIVE_P,
3308 OBJECT_P): New macros.
3309 * config/sparc/sparc.c (noov_compare_op): Remove register
3312 2004-03-03 Kazu Hirata <kazu@cs.umass.edu>
3314 * target.h: Remove texi jargons in comments.
3316 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
3318 * config/h8300/lib1funcs.asm (___fixunssfsi): Change the
3322 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
3323 * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
3325 * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
3326 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
3328 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
3330 * doc/md.texi (cbranchmode4): New.
3332 2004-03-02 Eric Christopher <echristo@redhat.com>
3334 * config/mips/mips16.S: Change fixsfsi and fixdfsi to
3336 * config/mips/mips.c (mips_init_libfuncs): Change accordingly.
3337 * config/mips/t-elf (LIB1ASMFUNCS): Ditto.
3338 * config/mips/t-isa3264 (LIB1ASMFUNCS): Ditto.
3339 * config/mips/t-r3900 (LIB1ASMFUNCS): Ditto.
3341 2004-03-02 Richard Henderson <rth@redhat.com>
3344 * coverage.c (coverage_counter_ref): Set MEM_NOTRAP_P.
3345 * optabs.c (prepare_cmp_insn): Force trapping memories to registers
3346 before the compare, if flag_non_call_exceptions.
3348 2004-03-02 Richard Henderson <rth@redhat.com>
3351 * stmt.c (expand_computed_goto): Do do_pending_stack_adjust before
3352 emitting the label, not after.
3354 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
3356 * config/m68hc11/m68hc11.c (m68hc11_addr_mode): New variable.
3357 (m68hc11_mov_addr_mode): Likewise.
3358 (m68hc11_override_options): Initialize them based on target.
3359 (register_indirect_p): Allow a MEM for indirect addressing modes and
3360 use flags to control what is allowed.
3361 (m68hc11_small_indexed_indirect_p): Use m68hc11_mov_addr_mode for
3362 supported addressing modes.
3363 (m68hc11_register_indirect_p): Use m68hc11_addr_mode.
3364 (go_if_legitimate_address_internal): Likewise.
3365 (m68hc11_indirect_p): Likewise and check the mode.
3366 (print_operand): Allow a (MEM (MEM)) and generate indirect addressing.
3368 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
3370 * builtins.c (BUILTIN_SETJMP_FRAME_VALUE): Remove.
3371 (expand_builtin_setjmp_setup): Use
3372 targetm.builtin_setjmp_frame_value instead of
3373 BUILTIN_SETJMP_FRAME_VALUE.
3374 * system.h (BUILTIN_SETJMP_FRAME_VALUE): Poison.
3375 * target-def.h (TARGET_BUILTIN_SETJMP_FRAME_VALUE): New.
3376 (TARGET_INITIALIZER): Add TARGET_BUILTIN_SETJMP_FRAME_VALUE.
3377 * target.h (gcc_target): Add builtin_setjmp_frame_value.
3378 * targhooks.c (default_builtin_setjmp_frame_value): New.
3379 * targhooks.h: Add a prototype for
3380 default_builtin_setjmp_frame_value.
3381 * doc/tm.texi (BUILTIN_SETJMP_FRAME_VALUE): Change to
3382 TARGET_BUILTIN_SETJMP_FRAME_VALUE.
3384 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
3386 * config/m68hc11/m68hc11.md (move peephole2): New peepholes to optimize
3388 (add peepholes): New peepholes to optimize sequences adding small
3390 (bset peepholes): New peepholes to transform an OR in a bset form
3391 (bclr peepholes): Likewise for bclr form.
3392 (cmp peepholes): New peepholes to avoid register copies when comparing.
3394 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
3396 * config/m68hc11/m68hc11.md ("*pushdi_internal"): New insn and split
3397 to separate push from moves.
3398 ("*pushdf_internal"): Likewise.
3399 ("*pushsf_internal"): Likewise.
3400 ("*pushsi_internal"): Likewise.
3401 ("movdi_internal"): Use define_insn_and_split; non push operand.
3402 ("movdf_internal"): Likewise.
3403 ("movsf_internal"): Likewise.
3404 ("movsi_internal"): Likewise.
3405 ("*movhi_68hc12", "*addhi3_68hc12"): Fix and tune constraints
3406 ("*addhi3", "*subhi3", "*andhi3_mem", "*iorhi3_mem"): Likewise.
3407 ("*ashlsi3_const1", "*lshrsi3_const1"): Likewise.
3409 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
3411 * config/m68hc11/m68hc11.md ("tstqi_z_used"): Use define_insn_and_split.
3412 ("cmphi_z_used", "cmpqi_z_used"): Likewise.
3413 ("movstrictsi", "movstricthi", "movstrictqi"): Likewise.
3414 ("anddi3", "andsi3", "iordi3", "iorsi3"): Likewise.
3415 ("xordi3", "xorsi3", "*logicalsi3_zexthi"): Likewise.
3416 ("*logicalsi3_zextqi", "*logicalhi3_zexthi_ashift8"): Likewise.
3417 ("logicalhi3_zexthi", "*logicalsi3_silshr16"): Likewise.
3418 ("*logicalsi3_silshl16", "*logicalsi3_silshl16_zext"): Likewise.
3419 ("*ashldi3_const32", "*ashldi3_const1", "addsi_silshr16"): Likewise.
3420 ("addsi_andshr16", "*ashlsi3_const16_zexthi"): Likewise.
3421 ("*lshrdi3_const32", "*lshrdi_const1"): Likewise.
3423 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>