1 2004-03-31 Zack Weinberg <zack@codesourcery.com>
3 * gengtype-yacc.y (option, stringseq): Add missing
6 2004-03-30 David Edelsohn <edelsohn@gnu.org>
8 * config/rs6000/rs6000.md (tls_gd_32, tls_gd_64,
9 tls_ld_32, tls_ld_64, tls_dtprel_32, tls_dtprel_64,
10 tls_dtprel_ha_32, tls_dtprel_ha_64,
11 tls_dtprel_lo_32, tls_dtprel_lo_64,
12 tls_got_dtprel_64, tls_tprel_32, tls_tprel_64,
13 tls_tprel_ha_32, tls_tprel_ha_64,
14 tls_tprel_lo_32, tls_tprel_lo_64,
15 tls_got_tprel_32, tls_got_tprel_64,
16 tls_tls_32, tls_tls_64): Replace register_operand with
19 2004-03-30 Mostafa Hagog <mustafa@il.ibm.com>
21 * config/rs6000/rs6000.md (*ctrsi_internal1, *ctrsi_internal2,
22 *ctrdi_internal1, *ctrdi_internal2, *ctrsi_internal3,
23 *ctrsi_internal4, *ctrdi_internal3, *ctrdi_internal4,
24 *ctrsi_internal5, *ctrsi_internal6, *ctrdi_internal5,
25 *ctrdi_internal6): Replace register_operand with
28 2004-03-29 Fariborz Jahanian <fjahanian@apple.com>
30 * fold-const.c (fold): Reassociate multiply expression
31 with an adjacent non-multiply expression to use
32 architecture's multiply-add instruction.
34 2004-03-30 Zack Weinberg <zack@codesourcery.com>
36 * gengtype.c (create_option): New function.
37 * gengtype.h: Prototype it.
38 * gengtype-yacc.y (stringseq): New rule.
39 (option): Use create_option. Add new bare ID production. Use
40 stringseq, not STRING directly.
42 * alias.c, bitmap.c, c-decl.c, cgraph.h, cpplib.h, cselib.h
43 * dwarf2out.c, emit-rtl.c, function.h, lists.c, tree.h
44 * varray.h, config/alpha/alpha.c:
45 Use new shorter form of GTY markers.
47 * doc/gty.texi: Rewrite.
49 2004-03-30 Andrew Pinski <pinskia@physics.uc.edu>
51 * config/darwin.c (machopic_function_base_name):
52 Remove current_name and getting the name of the
55 2004-03-30 Nick Clifton <nickc@redhat.com>
57 * config/arm/arm.md (thumb_jump): Reduce the backward branch
58 range, and increase the forward branch range, to allow for
59 the fact that the PC will be off by 4.
61 2004-03-30 Alan Modra <amodra@bigpond.net.au>
63 * .cvsignore: Add GPATH, GRTAGS, GSYMS and GTAGS (GNU GLOBAL)
65 2004-03-30 Hartmut Penner <hpenner@de.ibm.com>
67 * config/rs6000/rs6000.c (output_vec_const_move):
68 Find all cases of EASY_VECTOR_15_ADD_SELF.
69 (easy_vector_constant_add_self): Accept
70 all vector constant loadable by vsplt* and vadd*.
71 (easy_vector_same): Use easy_vector_splat_const.
72 (easy_vector_const): Use easy_vector_splat_const.
73 (easy_vector_splat_const): New function.
74 (gen_easy_vector_constant_add_self): New function.
76 * config/rs6000/rs6000-protos.c (gen_easy_vector_constant_add_self):
79 * config/rs6000/altivec.md (movv4si splitter): Change to
80 emit move insn with halfed vector constant.
81 (*movv8hi splitter): Likewise.
82 (*movv16qi splitter): Likewise.
84 2004-03-30 Hartmut Penner <hpenner@de.ibm.com>
87 * config/rs6000/rs6000.c (rs6000_legitimate_address):
88 Allow any offset to argument pointer in no-strict case.
90 2004-03-30 Jan Hubicka <jh@suse.cz>
92 * toplev.c (backend_init): Add missing call to inint_optimization_passes.
93 * passes.c (init_optimization_passes, finish_optimization_passes): Output cgraph
94 dump file in non-unit-at-a-time mode.
96 2004-03-29 Hans-Peter Nilsson <hp@axis.com>
98 * config/cris/cris.h: Correct #ifdef to test for
99 HAVE_AS_NO_MUL_BUG_ABORT_OPTION, not
100 HAVE_AS_MUL_BUG_ABORT_OPTION.
102 2004-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
104 * function.c (put_var_into_stack): If old RTL was ADDRESSOF, update
105 the address inside the old RTL.
107 2004-03-28 Zack Weinberg <zack@codesourcery.com>
109 * c-decl.c: Verify that C_SIZEOF_STRUCT_LANG_IDENTIFIER is correct.
110 (struct c_binding, struct c_scope): Add chain_next
111 attributes to GTY markers.
112 (struct lang_identifier, struct lang_tree_node): Define
114 * c-tree.h: ... not here. No longer need to declare struct
115 c_binding either. Do define C_SIZEOF_STRUCT_LANG_IDENTIFIER.
116 * c-lang.c, objc/objc-lang.c: Set LANG_HOOKS_IDENTIFIER_SIZE
117 to C_SIZEOF_STRUCT_LANG_IDENTIFIER.
120 * c-decl.c (get_parm_info): If error_mark_node is encountered
121 in the bindings chain, unbind and discard it; don't abort.
123 2004-03-28 Olga Golovonevsky <olga@il.ibm.com>
124 Dorit Naishlos <dorit@il.ibm.com>
126 * config/rs6000/altivec.md: (andvv16qi3, andv8hi3, one_cmplv16qi2,
127 one_cmplv8hi2, one_cmplv4si2, iorv16qi3, iorv8hi3,): New modelling.
129 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
131 * config/m68hc11/m68hc11-protos.h (m68hc11_page0_symbol_p): Declare.
133 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute): New.
134 (m68hc11_attribute_table): New attribute "page0" to mark a global
135 variable as being allocated from within page0 section.
136 (m68hc11_encode_label): New function.
137 (m68hc11_strip_name_encoding): New function.
138 (m68hc11_page0_symbol_p): New function.
139 (m68hc11_indirect_p): Accept global variables marked in page0.
140 (m68hc11_encode_section_info): Lookup "page0" attribute.
142 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): 'R' constraint also
143 represents access to page0 variables.
145 * config/m68hc11/m68hc11.md ("*logicalsi3_zexthi"): Use gen_rtx_REG.
146 ("*logicalsi3_silshl16_zext"): Likewise.
147 ("*ashldi3_const32"): Likewise.
148 (peephole2 ashift): Likewise.
150 2004-03-28 Joseph S. Myers <jsm@polyomino.org.uk>
152 * c-tree.h (C_DECL_REGISTER): New.
153 * c-aux-info.c (gen_decl), c-decl.c (objc_mark_locals_volatile,
154 finish_decl, grokdeclarator, get_parm_info), c-typeck.c
155 (build_array_ref, c_mark_addressable): Set and use it.
156 * c-decl.c (grokdeclarator), c-typeck.c (c_mark_addressable):
157 Allow structures with volatile fields to be declared register.
158 Don't check TREE_ADDRESSABLE before warning about taking address
160 * c-decl.c (finish_decl): Don't allow structures with volatile
161 fields to be placed in named register.
162 * doc/trouble.texi: Remove reference to structures with volatile
165 2004-03-27 Ulrich Weigand <uweigand@de.ibm.com>
167 * function.c (thread_prologue_and_epilogue): Move
168 NOTE_INSN_FUNCTION_END and NOTE_INSN_FUNCTION_BEG notes
171 2004-03-27 Ulrich Weigand <uweigand@de.ibm.com>
173 * expr.c (store_constructor): Use gen_int_mode to correctly
174 sign-extend CONST_INT value.
176 2004-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
178 * builtin-types.def (BT_WINT, BT_FN_INT_WINT, BT_FN_WINT_WINT): New.
179 * builtins.def (DEF_C94_BUILTIN): New. Add wctype builtins.
180 * doc/extend.texi: Likewise.
182 2004-03-26 Diego Novillo <dnovillo@redhat.com>
184 * c-typeck.c (comptypes): Replace calls to TYPE_DOMAIN
185 with TYPE_ORIG_SIZE_TYPE.
187 2004-03-25 Aldy Hernandez <aldyh@redhat.com>
190 * c-typeck.c (build_binary_op): Do not allow comparisons of
193 2004-03-26 James A. Morrison <ja2morri@uwaterloo.ca>
195 * config.gcc: Remove sparc-tti-*.
196 * config/sparc/pbd.h: Delete.
198 * config/sparc/sol2.h: Remove note about Sun OS 4.x.
199 * config/sparc/aout.h: Likewise.
201 * config/sparc/sparc.h: Remove if 0'd code.
202 * config/sparc/sparc.md (call): Remove if 0'd code.
203 (call_value): Likewise.
204 (nonlocal_goto): Likewise.
205 (unimp_insn): Delete.
207 2004-03-25 Roger Sayle <roger@eyesopen.com>
209 * fold-const.c (tree_expr_nonnegative_p): Handle BIT_XOR_EXPR like
210 BIT_IOR_EXPR; A^B is nonnegative when A and B are nonnegative.
212 2004-03-25 Richard Henderson <rth@redhat.com>
215 * c-typeck.c (pop_init_level): Emit pending init elements earlier
218 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
220 * builtins.c (fold_builtin): Fix error in last change.
222 2004-03-25 Richard Sandiford <rsandifo@redhat.com>
224 * config/mips/mips.h: Formatting fix.
226 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
228 * builtins.def: Add ctype builtins.
229 * doc/extend.texi: Likewise.
231 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
233 * builtins.c (fold_builtin): Add new builtin optimizations for
235 * fold-const.c (fold): Likewise.
237 2004-03-25 David Edelsohn <edelsohn@gnu.org>
239 * config/rs6000/rs6000.c (rs6000_always_hint): New variable.
240 (rs6000_sched_groups): New variable.
241 (processor_target_table): Add power5.
242 (rs6000_override_options): Set rs6000_sched_insert_nops,
243 rs6000_sched_costly_dep and rs6000_sched_restricted_insns_priority
244 from rs6000_sched_groups.
245 (output_cbranch): Use rs6000_always_hint.
246 (rs6000_variable_issue): Use rs6000_sched_groups.
247 (rs6000_adjust_cost): Add CPU_POWER5.
248 (is_microcoded_insn): Use rs6000_sched_groups.
249 (is_dispatch_slot_restricted): Use rs6000_sched_groups.
250 Return 2 for POWER5 cracked instructions.
251 (is_cracked_insn): Use rs6000_sched_groups.
252 (is_branch_slot_insn): Use rs6000_sched_groups.
253 (rs6000_issue_rate): Add CPU_POWER5.
254 (rs6000_sched_finish): Use rs6000_sched_groups.
255 (rs6000_rtx_costs): Add PROCESSOR_POWER5.
256 * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_POWER5.
257 (DEFAULT_SCHED_COSTLY_DEP): Delete.
258 (DEFAULT_RESTRICTED_INSNS_PRIORITY): Delete.
259 (DEFAULT_SCHED_FINISH_NOP_INSERTION_SCHEME): Delete.
260 * config/rs6000/rs6000.md (define_attr "cpu"): Add power5.
261 * config/rs6000/power5.md: New file.
262 * doc/invoke.texi: Add power5 option.
264 2004-03-25 Kazu Hirata <kazu@cs.umass.edu>
266 * cfgrtl.c, dbxout.c, tree.def, config/darwin.h,
267 config/arm/arm.c, objc/objc-act.c: Fix comment typos.
268 * doc/invoke.texi: Fix a typo.
270 2004-03-25 Kazu Hirata <kazu@cs.umass.edu>
272 PR optimization/9707.
273 * stmt.c (emit_case_nodes): Emit equality comparisons instead
274 of recursing if both children are single-valued cases with no
277 2004-03-25 Paul Brook <paul@codesourcery.com>
279 * config/arm/arm.c (vfp_print_multi): Remove.
280 (arm_output_fldmx): New function.
281 (vfp_emit_fstmx): Return block size, not insn. Add ARM10 VFPr1 bugfix.
282 (arm_expand_prologue): Update to match.
283 (arm_get_vfp_saved_size): New Function.
284 (arm_get_frame_offsets): Use it.
285 (arm_output_epilogue): Use new functions.
287 2004-03-24 Richard Henderson <rth@redhat.com>
289 * alias.c (alias_invariant, alias_invariant_size): Mark GTY.
290 (reg_known_value, reg_known_value_size): Likewise; make static.
291 (reg_known_equiv_p): Make static.
292 (clear_reg_alias_info): Update for new indexing.
293 (get_reg_known_value, set_reg_known_value): New.
294 (get_reg_known_equiv_p, set_reg_known_equiv_p): New.
295 (canon_rtx): Use them.
296 (init_alias_analysis): Likewise. Allocate reg_known_value with gc.
297 Don't play queer offsetting games with reg_known_value and
299 (end_alias_analysis): Free reg_known_value with gc.
300 * rtl.h (get_reg_known_value, get_reg_known_equiv_p): Declare.
301 * sched-deps.c (reg_known_equiv_p, reg_known_value): Remove.
302 (deps_may_trap_p, sched_analyze_1, sched_analyze_2): Use the new
305 2004-03-24 Kazu Hirata <kazu@cs.umass.edu>
307 * dwarf2asm.c, loop.h, pretty-print.c, pretty-print.h,
308 config/i386/mmintrin.h: Update copyright.
310 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
312 * configure.ac: Add --enable-werror-always (for top level bootstrap
314 * configure: Regenerate.
316 2004-03-24 Ziemowit Laski <zlaski@apple.com>
318 * objc/objc-act.c (objc_comptypes): Treat comparisons
319 between 'Class' and '<class> *' as explicitly invalid.
321 2004-03-24 David Edelsohn <edelsohn@gnu.org>
323 * doc/invoke.texi (-frename-registers: Add enabled at -O3.
324 (-fprofile-values): Add enabled with profile-{generate,use}.
326 (-ftracer): Add enabled with profile-use.
327 (-funit-at-a-time): Add enabled at -O2,-O3.
328 (-funroll-loops): Add enabled with profile-use.
329 (-funswitch-loops): Add enabled with profile-use. Remove duplicates.
330 (max-gcse-passes): Mention default.
331 (max-cse-path-length): Mention default.
333 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
335 * Makefile.in (STRICT2_WARN): Reorder.
336 * configure.ac: Check for -Wold-style-definition, and use it
337 in strict1_warn if it's available.
338 * configure: Regnerate.
340 2004-03-24 Paul Brook <paul@nowt.org>
342 * config.gcc <arm>: Add --with-abi=
343 * config/arm/arm-protos.h (arm_get_frame_size, thumb_get_frame_size,
344 thumb_far_jump_used): Remove prototypes.
345 (arm_needs_doubleword_align): Add prototype.
346 (thumb_compute_initial_elimination_offset): Ditto.
347 * config/arm/arm.c (arm_get_frame_offsets): New function.
348 (use_return_insn, output_return_instruction, arm_output_epilogue,
349 arm_output_function_epilogue, arm_compute_initial_elimination_offset,
350 arm_expand_prologue, thumb_expand_epilogue): Use it.
351 (arm_abi, target_abi_name, all_arm_abis): New variables.
352 (arm_override_options): Set them. Set structure padding for AAPCS.
353 (arm_return_in_memory): Update ABI check.
354 (arm_init_cumulative_args): Initialize can_split.
355 (arm_needs_doubleword_align): New function.
356 (arm_function_arg): Don't split args after pushing to stack. Handle
357 doubleword/even reg alignment.
358 (arm_va_arg): Handle all doubleword aligned args.
359 (add_minpoolforward ref, dump_minpool, push_minpool_fix): Align based
361 (arm_compute_save_reg0_reg12_mask): Fix comment.
362 (thumb_get_frame_size, thumb_get_frame_size): Remove.
363 (thumb_jump_far_used_p): Remove superfluous argument. Return save
365 (thumb_unexpanded_epilogue, thumb_output_function_prologue): Change
367 (thumb_compute_initial_elimination_offset): New function.
368 (thumb_expand_prologue): Use arm_get_frame_offsets. Remove
369 unneccessary rounding.
370 * config/arm/arm.h (target_abi_name): Declare.
371 (ARM_DOUBLEWORD_ALIGN, DOUBLEWORD_ALIGNMENT, TARGET_IWMMXT_ABI,
372 arm_abi_type, ARM_DEFAULT_ABI): Define.
373 (ARM_FLAG_ATPCS): Remove.
374 (TARGET_OPTIONS, OPTION_DEFAULT_SPECS): Add -mabi=.
375 (BIGGEST_ALIGNMENT, PREFERRED_STACK_BOUNDARY, STACK_BOUNDARY): Use it.
376 (ADJUST_FIELD_ALIGN, DATA_ALIGNMENT, LOCAL_ALIGNMENT,
377 TYPE_NEEDS_IWMMXT_ALIGNMENT): Remove.
378 (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P, FUNCTION_ARG_REGNO_P):
379 Contitionalize on ABI, not CPU.
380 (struct arm_stack_offsets): Define.
381 (struct machine_function): Add stack_offsets. Remove frame_size.
382 (FUNCTION_ARG_PARTIAL_NREGS): Don't split if previous args have been
384 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_BOUNDARY): Handle general
385 doubleword alignment.
386 (THUMB_INITIAL_ELIMINATION_OFFSET,
387 ARM_INITIAL_ELIMINATION_OFFSET): Remove.
388 (INITIAL_ELIMINATION_OFFSET): Call functions directly.
389 * config/arm/arm.md (align_8): Enable for all targets.
390 * config/arm/netbsd-elf.h (TARGET_DEFAULT): Remove TARGET_ATPCS.
391 (ARM_DEFAULT_ABI): Define.
392 * doc/invoke.texi <ARM>: Document -mabi=. Update documentation for
393 -mstructure-size-boundary.
395 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
397 * configure.ac: Check for -Wno-variadic-macros; don't use
398 -pedantic (in stage 1 or a simple 'make all') unless it's available,
399 and if it's available, use it. Also, clean up check for
401 * configure: Regenerate.
403 2004-03-24 Richard Sandiford <rsandifo@redhat.com>
405 * config.gcc (mips64vr-*-elf*, mips64vrel-*-elf*): Remove tm_defines.
406 * config/mips/vr.h (DEFAULT_VR_ARCH): New macro, defined to vr4130.
407 (MULTILIB_DEFAULTS): Use it.
408 (MIPS_CPU_STRING_DEFAULT): Remove.
409 (MIPS_ABI_DEFAULT, MIPS_MARCH_CONTROLS_SOFT_FLOAT): Define.
410 (DRIVER_SELF_SPECS): Make -mfix-vr4122-bugs imply -march=vr4120. Make
411 EABI64 -mlong32 the default ABI. Enforce the default architecture.
412 * config/mips/t-vr (MULTILIB_OPTIONS): Add mfix-vr4122-bugs,
413 march=vr4130, march=vr4300, march=vr5000 and march=vr5500.
414 (MULTILIB_MATCHES): Use -mfix-vr4122-bugs multilibs for -march=vr4120.
415 (MULTILIB_EXCEPTIONS): Change choice of multilibs. Update comments
418 2004-03-24 DJ Delorie <dj@redhat.com>
419 Richard Sandiford <rsandifo@redhat.com>
421 * config/mips/mips.h (MASK_FIX_VR4122, TARGET_FIX_VR4122): New macros.
422 (TARGET_SWITCHES): Add -mfix-vr4122-bugs and -mno-fix-vr4122-bugs.
423 (ASM_SPEC): Pass down -mfix-vr4122-bugs.
424 * config/mips/mips.c (mips_avoid_hazards): Don't emit whole functions
425 in .set noreorder and .set nomacro if TARGET_FIX_VR4122.
426 (mips_init_libfuncs): Use special functions for divsi3 and modsi3
427 if TARGET_FIX_VR4122.
428 * config/mips/mips.md (define_attr length): Account for nops inserted
429 after macc and dmult when using -mfix-vr4122-bugs.
430 (umuldi3_highpart, divmodsi4, divmoddi4): Disable if TARGET_FIX_VR4122.
431 * config/mips/t-vr (LIB2FUNCS_STATIC_EXTRA): Define instead of
432 LIB2FUNCS_EXTRA. Add config/mips/vr4122-div.S.
433 * config/mips/vr4122-div.S: New file.
434 * doc/invoke.texi: Document -mfix-vr4122-bugs.
436 2004-03-24 Richard Sandiford <rsandifo@redhat.com>
438 * config/mips/mips.h (PROCESSOR_R4130): New processor_type.
439 (TARGET_MIPS4130): New macro.
440 (ISA_HAS_MACC): Return true if TARGET_MIPS4130 && !TARGET_MIPS16.
441 * config/mips/mips.c (mips_cpu_info_table): Add a vr4130 entry.
442 (override_options): Extend MIPS_MARCH_CONTROLS_SOFT_FLOAT to deal
443 with PROCESSOR_R4130.
444 * config/mips/mips.md (define_attr cpu): Add r4130.
445 * doc/invoke.texi: Document vr4130 as a supported MIPS architecture.
447 2004-03-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
448 Richard Sandiford <rsandifo@redhat.com>
450 * doc/invoke.texi: Apply missed hunk from 2004-03-03 change.
452 2004-03-24 Alexandre Oliva <aoliva@redhat.com>
454 PR preprocessor/14438
455 * cpplib.c (do_pragma): Remove line_change call after pragma
458 2004-03-23 Ian Lance Taylor <ian@wasabisystems.com>
460 * doc/extend.texi (ARM Built-in Functions): Replace with correct
463 2004-03-23 Roger Sayle <roger@eyesopen.com>
465 * reg-stack.c (get_true_reg): Handle FLOAT_TRUNCATE like FLOAT_EXTEND
466 if flag_unsafe_math_optimizations.
467 * config/i386/i386.md (truncdfsf2): If flag_unsafe_math_optimizations
468 and TARGET_80387 expand using truncdfsf2_noop pattern.
469 (truncxfsf2): Likewise using truncxfsf2_noop.
470 (truncxfdf2): Likewise using truncxfdf2_noop.
471 (truncdfsf2_noop, truncxfsf2_noop, truncxfdf2_noop): New patterns.
473 2004-03-23 Ziemowit Laski <zlaski@apple.com>
475 * hooks.c (hook_constcharptr_tree_null): New hook.
476 * hooks.h (hook_constcharptr_tree_null): New prototype.
477 * target-def.h (TARGET_MANGLE_FUNDAMENTAL_TYPE): New target hook.
478 * target.h (mangle_fundamental_type): New target hook.
479 * config/rs6000/rs6000.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Point
480 target hook at rs6000_mangle_fundamental_type.
481 (rs6000_mangle_fundamental_type): New function.
482 * doc/tm.texi (TARGET_MANGLE_FUNDAMENTAL_TYPE): Document.
484 2004-03-23 Zack Weinberg <zack@codesourcery.com>
486 PR 12267, 12391, 12560, 13129, 14114, 14133
487 * c-tree.h: Forward declare struct c_binding. Declare
488 c_override_bindings_to_false. Update prototypes.
489 (struct lang_identifier): Update comments. Change fields to be
491 (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE)
492 (IDENTIFIER_LABEL_VALUE, C_DECL_INVISIBLE)
493 (KEEP_NO, KEEP_YES, KEEP_MAYBE): Delete.
494 (C_DECL_IN_EXTERNAL_SCOPE, C_DECL_DECLARED_BUILTIN): New.
495 * c-common.h: Update prototypes.
496 * c-decl.c (struct c_scope): Update commentary. Remove names,
497 names_last, parms, parms_last, tags, and shadowed fields. Add
498 bindings and depth fields.
499 (scope_freelist): Move to more appropriate location.
500 (c_print_identifier): Update for changes to struct lang_identifier.
501 (objc_mark_locals_volatile): Update for new bindings structures.
502 (global_bindings_p): Honor c_override_global_bindings_to_false.
503 (pushlevel): Rename to push_scope; take no arguments; use the
504 scope_freelist; initialize scope->depth and check for overflow.
505 (poplevel): Rename to pop_scope; totally rewritten for new bindings
507 (diagnose_mismatched_decls): Use C_DECL_DECLARED_BUILTIN, not
508 C_DECL_INVISIBLE, for certain decisions. Adjust some diagnostics.
509 Improve some commentary. Adjust handling of forward parm decls.
510 (merge_decls): Set C_DECL_DECLARED_BUILTIN when appropriate.
511 Preserve C_DECL_IN_EXTERNAL_SCOPE.
512 (warn_if_shadowing): Correct indentation. Improve diagnostics.
513 (pushdecl): Remove unnecessary assertion. Short-circuit anonymous
514 decls. Rewrite for new bindings structures. Improve commentary.
515 Eliminate the copy_node call.
516 (implicit_decl_warning): Use the "diag" idiom (as seen in
517 locate_old_decl) to reduce code duplication; call locate_old_decl
518 if appropriate. Relocate to remove need for forward declaration.
519 (implicitly_declare): Adjust for new bindings structures. Kludge
520 around Objective-C not-really-builtin functions.
521 (undeclared_variable): Improve diagnostics. If current_function_decl
522 is nonnull but current_function_scope is null, use current_scope.
524 (lookup_tag): Adjust for new bindings structures. Kludge around
525 Objective-C's tag declarations that wind up in the external scope.
526 (lookup_name): Adjust for new bindings structures. Kludge around
527 c-common.c's pseudo-typedefs that wind up in the external scope.
528 (lookup_name_current_level): Rename lookup_name_in_scope; take a
529 second argument indicating the scope to examine; rewrite for
530 new bindings structures.
531 (c_init_decl_processing): Adjust for renamed functions. Do not
532 initialize current_file_decl, first_builtin_decl, last_builtin_decl.
533 First scope pushed is the external scope, not the global scope.
534 (builtin_function): Use bind, not pushdecl. Adjust other bits
535 for new data structures. Keep track of builtins that should be
536 made visible automatically.
537 (start_decl): Adjust diagnostics. Remove unnecessary call to
539 (grokparms): Return 0 if arg_types is error_mark_node.
540 (get_parm_info): Rename "void_at_end" argument to "ellipsis", with
541 reversed sense. Rewrite for new bindings structures. Do not
542 leave any decls in the scope, to prevent pop_scope from doing
543 contradictory things with them.
544 (finish_struct, finish_enum): Remove redundant diagnostics.
545 (build_enumerator): Don't cascade diagnostics for error_mark_node.
546 Mark location where -pedantic changes the meaning of the program.
547 (store_parm_decls_newstyle, store_parm_decls_oldstyle): Load the
548 parameter decls into the function's scope structure using bind.
549 Warn here about function definitions in the wrong style.
551 (store_parm_decls): Correct the determination of whether a
552 function was defined with a prototype.
553 (c_write_global_declarations): Operate on all file decls and on
554 the external scope. Split body of the loop to...
555 (c_write_global_declarations_1): ... this new function, to avoid
557 (truly_local_externals, first_builtin_decl, last_builtin_decl)
558 (make_scope, pop_scope, in_parm_level_p, set_block)
559 (any_external_decl, record_external_decl, bind_label, getdecls)
560 (link_hash_hash, link_hash_eq, merge_translation_unit_decls)
561 (c_reset_state): Delete.
562 (visible_builtins, c_override_global_bindings_to_false)
563 (c_binding, I_SYMBOL_BINDING, I_SYMBOL_DECL, I_TAG_BINDING)
564 (I_TAG_DECL, I_LABEL_BINDING, I_LABEL_DECL, file_scope)
565 (external_scope, binding_freelist, bind, free_binding_and_advance)
566 (push_file_scope, pop_file_scope): New.
567 (pushtag, pushdecl_top_level, lookup_label, declare_label)
568 (define_label, c_make_fname_decl, finish_decl)
569 (mark_forward_parm_decls, build_compound_literal)
570 (grokdeclarator, start_function, check_for_loop_decls)
571 (identifier_global_value, record_builtin_type): Minor adjustments
572 for new bindings structures. Improve diagnostics and commentary.
573 * c-objc-common.c (start_cdtor, finish_cdtor): Adjust calls to
574 pushlevel/poplevel respectively.
575 (c_objc_common_finish_file): Don't call merge_translation_unit_decls.
576 * c-opts.c (c_common_parse_file): Remove spurious ATTRIBUTE_UNUSED.
577 Warn about YYDEBUG not being defined only if -dy. Remove no-longer-
578 correct loop over multiple translation units; call fatal_error if
579 requested to compile more than one file at once. (This disables
580 IMA temporarily - an up-front error being preferable to a crash.)
581 * c-parse.in (pushlevel, poplevel rules): Rename push_scope, pop_scope.
582 (all actions): Adjust calls to pushlevel/poplevel.
583 (parsing_iso_function_signature): Delete.
584 (extdef_1): Fold into extdef.
585 (old_style_parm_decls_1): Fold into old_style_parm_decls. Don't
586 warn here about function definitions in the wrong style.
587 (after_tyle_declarator, parm_declarator_starttypename)
588 (parm_declarator_nostarttypename, notype_declarator): Remove
589 commented-out productions.
590 (parmlist_1, parmlist_2): Use make_node, not tree_cons, to create
591 an empty TREE_LIST node. Adjust calls to get_parm_info.
592 (parmlist_2 : ELLIPSIS): Tag the arg-info block with error_mark_node
593 to suppress -Wold-style-definition after this error.
594 (c_parse_file): Don't clear the binding stack or call
595 finish_fname_decls here. Correct comment.
596 * c-typeck.c (same_translation_unit_p): Export.
597 (common_type): Use c_override_global_bindings_to_false, not
598 pushlevel/poplevel/declare_parm_level.
599 * c-lang.c: Override LANG_HOOKS_CLEAR_BINDING_STACK,
600 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK,
601 and LANG_HOOKS_GETDECLS with do-nothing stubs.
602 * objc/objc-lang.c: Likewise.
603 * objc/objc-act.c: Adjust all calls to pushlevel, poplevel,
605 (OBJC_VOID_AT_END): Delete; replace all uses
607 (generate_forward_declaration_to_string_table): Delete.
608 * objc/objc-act.h (OCTI_STRG_DECL, UOBJC_STRINGS_decl): Delete.
610 * coverage.c (create_coverage): Don't pushdecl anything.
611 * langhooks.c (lhd_clear_binding_stack): Call
612 lang_hooks.decls.poplevel, not poplevel.
613 * tree.c (list_length): If ENABLE_TREE_CHECKING, abort on a
614 circular list rather than going into an infinite loop.
616 2004-03-23 Olivier Hainque <hainque@act-europe.fr>
618 * optabs.c (expand_binop): When synthesizing double word rotates
619 from single word shifts, use a new register target if the provided
620 target is not a REG already.
622 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
624 * alias.c (get_alias_set): Add support for TYPE_REF_CAN_ALIAS_ALL.
625 * c-common.c (handle_mode_attribute): Add extra arg to
626 build_pointer_type_for_mode and build_reference_type_for_mode.
627 * c-typeck.c (build_c_cast): Only look at TREE_CONSTANT_OVERFLOW
629 * tree.c (build_pointer_type_for_mode): Add arg CAN_ALIAS_ALL.
630 Chain pointers via TYPE_NEXT_PTR_TO.
631 (build_reference_type_for_mode): Similarly.
632 (build_type_no_quals): Add extra arg to build_pointer_type_for_mode
633 and build_reference_type_for_mode.
634 (tree_check4_failed): New function.
635 * tree.h (TREE_CHECK4, PTR_OR_REF_CHECK): New macros.
636 (TYPE_REF_CAN_ALIAS_ALL, TYPE_NEXT_PTR_TO, TYPE_NEXT_REF_TO): Likewise.
637 (TREE_NO_UNSUED_WARNING, TREE_VIA_VIRTUAL, TREE_CONSTANT_OVERFLOW):
640 2004-03-23 Roger Sayle <roger@eyesopen.com>
642 * fold-const.c (tree_expr_nonnegative_p): A&B is nonnegative when
643 A is nonnegative or B is nonnegative. Similarly A|B is nonnegative
644 when both A and B are nonnegative.
645 (tree_expr_nonzero_p): A|B is nonzero when A is nonzero or B is
648 2004-03-23 Kazu Hirata <kazu@cs.umass.edu>
650 * fold-const.c (fold): Remove cases for INTEGER_CST, REAL_CST,
651 VECTOR_CST, STRING_CST, COMPLEX_CST, and CONSTRUCTOR.
653 2004-03-23 Kazu Hirata <kazu@cs.umass.edu>
655 PR optimization/14669
656 * fold-const.c (fold): Only unwiden integer comparisons for equality
657 and inequality operators, or when the signedness doesn't change.
659 2004-03-23 Jakub Jelinek <jakub@redhat.com>
661 * config.gcc (sparc-*-linux*): Add sparc/t-linux to tmake_file.
662 * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Set.
663 * config/sparc/t-linux: New file.
665 2004-03-23 Richard Sandiford <rsandifo@redhat.com>
667 * gcse.c (can_assign_to_reg_p): New function, split out from...
668 (want_to_gcse_p): ...here.
669 (compute_ld_motion_mems): Use can_assign_to_reg_p to validate
672 2004-03-22 Diego Novillo <dnovillo@redhat.com>
674 * c-typeck.c (same_translation_unit_p): Fix pasto.
676 2004-03-22 David Edelsohn <edelsohn@gnu.org>
678 * params.def (PARAM_MAX_SCHED_REGION_BLOCKS): New.
679 (PARAM_MAX_SCHED_REGION_INSNS): New.
680 * sched-rgn.c: Include params.h
681 (MAX_RGN_BLOCKS): Delete.
682 (MAX_RGN_INSNS): Delete.
683 (too_large): Return bool. Convert to PARAM_VALUE.
684 * Makefile.in (sched-rgn.o): Depend on $(PARAMS_H).
685 * doc/invoke.texi (param): Document max-sched-region-blocks and
686 max-sched-region-insns.
688 2004-03-22 Joel Brobecker <brobecker@gnat.com>
690 * dwarf2out.c (is_subrange_type): Do not emit a subrange_type DIE
693 2004-03-22 Joel Brobecker <brobecker@gnat.com>
695 * dwarf2out.c (is_subrange_type): Minor code rework. No behavior
698 2004-03-22 Jakub Jelinek <jakub@redhat.com>
701 * c-decl.c (finish_struct): Change type of incorrect flexible array
702 field into error_mark_node.
704 2004-03-22 Andrew Pinski <pinskia@physics.uc.edu>
707 * config/rs6000/rs6000.c (symbol_ref_operand): Reject symbols
708 who are not local for Darwin PIC.
710 2004-03-22 Ulrich Weigand <uweigand@de.ibm.com>
712 * regrename.c (regrename_optimize): Set regs_ever_live for all
713 registers introduced as replacement.
715 2004-03-22 Eric Botcazou <ebotcazou@libertysurf.fr>
718 * expr.c (mark_queue): New function.
719 (emit_insns_enqueued_after_mark): New function replacing
720 emit_queue. Clear the body of emitted queued insns.
721 (emit_queue): Call emit_insns_enqueued_after_mark.
722 (store_expr): Mark the increment queue on entry. Emit
723 only the incrementations queued when expanding the source.
725 2004-03-22 Nathanael Nerode <neroden@gcc.gnu.org>
727 * configure.ac: Allow --disable-coverage-flags (for the future benefit
728 of top level bootstrap, and consistency). Reindent.
729 * configure: Regenerate.
731 2004-03-21 Kazu Hirata <kazu@cs.umass.edu>
733 * bt-load.c, builtins.c, cfghooks.c, cfgrtl.c, gcse.c,
734 ggc-page.c, integrate.c, var-tracking.c, web.c: Remove
737 2004-03-22 Danny Smith <dannysmith@users.sourceforge.net>
740 * gcov-io.h (gcov_truncate): Define ftruncate as _chsize for
743 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
745 * config/s390/s390.md ("*doloop_si"): Change predicate for operand 2
746 to nonimmediate_operand.
747 ("*doloop_di"): Likewise.
749 2004-03-21 Alexandre Oliva <aoliva@redhat.com>
751 * real.h (struct real_value): Use the same type for all
752 bitfields. Rename exp to uexp.
753 (REAL_EXP, SET_REAL_EXP): New accessor macros for uexp.
754 Adjust all uses of exp...
755 * builtins.c: ... here, ...
756 * emit-rtl.c: ... here, and ...
757 * real.c: ... and here.
759 2004-03-21 Gabriel Dos Reis <gdr@integrable-solutions.net>
761 * pretty-print.c (pp_base_maybe_space): New function.
762 * pretty-print.h (pp_base_maybe_space): Declare.
763 (pp_maybe_space): New macro.
765 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
767 * config/s390/s390.md ("addti3", "subti3"): New insns and splitters.
769 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
771 * expmed.c (choose_mult_variant): Pass MULT_COST as argument instead
772 of using register multiplication cost.
773 (expand_mult): Adapt choose_mult_variant call.
774 (expand_mult_highpart): Call choose_mult_variant with WIDER_MODE
775 of MODE; pass appropriate cost bound. Adjust result when
776 performing signed multiplication by a negative constant.
777 Don't use intermediate modes larger than word_mode.
779 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
781 * alias.c (get_alias_set): Remove handling of PLACEHOLDER_EXPR.
782 * emit-rtl.c (component_ref_for_mem_expr): Likewise.
783 (set_mem_attributes_minus_bitpos): Call SUBSTITUTE_PLACEHOLDER_IN_EXPR.
784 * explow.c (expr_size): Likewise.
785 * expr.h (placeholder_list, find_placeholder): Deleted.
786 * expr.c (store_constructor): Likewise.
787 (get_inner_reference): Likewise. Also don't call find_placeholder.
788 (placeholder_list, find_placeholder): Deleted.
789 (is_aligning_offset): Don't handle WITH_RECORD_EXPR, PLACEHOLDER_EXPR.
790 (expand_expr_real, cases PLACEHOLDER_EXPR, WITH_RECORD_EXPR): Likewise.
791 (highest_pow2_factor, case WITH_RECORD_EXPR): Remove.
792 * dojump.c (do_jump, case WITH_RECORD_EXPR): Likewise.
793 * dwarf2out.c (loc_descriptor_from_tree, case WITH_RECORD_EXPR):
795 * fold-const.c (invert_truthvalue, case WITH_RECORD_EXPR): Likewise.
796 (extract_muldiv, case WITH_RECORD_EXPR): Likewise.
797 * tree.c (expr_align, case WITH_RECORD_EXPR): Likewise.
798 (contains_placeholder_p): Don't handle WITH_RECORD_EXPR.
799 Clean up by using first_rtl_op.
800 (substitute_in_expr): Use SUBSTITUTE_IN_EXPR for recursive call.
801 (substitute_placeholder_in_expr): New function.
802 * tree.def (WITH_RECORD_EXPR): Deleted.
803 * tree.h (SUBSTITUTE_IN_EXPR, SUBSTITUTE_PLACEHOLDER_IN_EXPR): New.
804 (substitute_placeholder_in_expr): New.
806 2004-03-21 Andrew Pinski <pinskia@gcc.gnu.org>
808 * dojump.c (prefer_and_bit_test): Fix which part of
809 the and_test is replaced.
811 2004-03-21 Joseph S. Myers <jsm@polyomino.org.uk>
813 * frontends.texi: Add missing line.
815 2004-03-21 Zack Weinberg <zack@codesourcery.com>
816 Chris Devers <cdevers@pobox.com>
817 Joseph S. Myers <jsm@polyomino.org.uk>
819 * doc/frontends.texi: Rewrite.
820 * doc/gcc.texi: Update last modification date.
822 2004-03-21 Josef Zlomek <zlomekj@suse.cz>
824 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Print the debug
825 message before redirecting the edge.
827 2004-03-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
829 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_POINTER
831 * explow.c (force_not_mem): Set REG_POINTER flag according to
833 * rtl.h (MEM_POINTER): New macro.
834 (struct rtx_def): Use integrated for MEM_SCALAR_P and frame_related
837 2004-03-20 Roger Sayle <roger@eyesopen.com>
840 * cse.c (fold_rtx): Avoid substituting constants into unary
841 conversion operations.
843 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
845 * fold-const.c (fold): Replace "expr" with "t".
847 2004-03-20 Ian Lance Taylor <ian@wasabisystems.com>
850 * c-typeck.c (tagged_types_tu_compatible_p): Don't use
851 DECL_ORIGINAL_TYPE if there isn't one.
853 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
855 * fold-const.c (fold): Replace "final_type" with "type".
856 Remove variable "final_type".
858 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
860 * fold-const.c (fold): Constify "type".
861 Replace "TREE_TYPE (t)" with "type".
863 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
865 * bb-reorder.c, bt-load.c, c-decl.c, cfgcleanup.c, coverage.c,
866 dwarf2asm.c, ifcvt.c, stor-layout.c, varasm.c: Replace calls
867 via (*targetm.foo) () with targetm.foo ().
869 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
872 * doc/install.texi: Add info directory category and entry.
874 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
876 * fold-const.c (fold): Replace "t" with "tem" where it is used
877 as a temporary variable. Remove "orig_t" and all of its uses.
879 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
881 * fold-const.c (fold): Remove variable "invert".
882 Move the handling of relational expressions that can be folded
884 (fold_relational_const): ... here.
885 (tree_expr_nonzero_p): New.
887 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
890 * builtins.def (nan, nanf, nanl, nans, nansf, nansl): Change to
893 2004-03-20 Richard Sandiford <rsandifo@redhat.com>
895 * Makefile.in (dojump.o): Depend on $(GGC_H) and dojump.h.
896 (GTFILES): Add $(srcdir)/dojump.h.
897 (gt-dojump.h): New dependency.
898 * dojump.c (and_reg, and_test, shift_test): New static variables.
899 (prefer_and_bit_test): New function.
900 (do_jump): Use it to choose between (X & (1 << C)) and (X >> C) & 1.
902 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
904 * c-common.c, cfgcleanup.c, cgraphunit.c, c-pretty-print.c,
905 expmed.c, ggc-common.c, jump.c, passes.c, recog.c, regmove.c,
906 reorg.c, tree.h: Fix comment typos.
908 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
910 * alias.c, attribs.c, bt-load.c, builtins.c, c-common.c,
911 c-decl.c, c-objc-common.c, c-typeck.c, calls.c, cfglayout.c,
912 cse.c, dbxout.c, dwarf2out.c, except.c, final.c,
913 haifa-sched.c, integrate.c, passes.c, rtlanal.c, sched-rgn.c,
914 sched-vis.c, simplify-rtx.c, stor-layout.c, tree.c, varasm.c,
915 vmsdbgout.c: Replace calls via (*targetm.foo) () with
918 2004-03-19 Ziemowit Laski <zlaski@apple.com>
920 * config/rs6000/altivec.h (vec_dst, vec_dstst, vec_dststt,
921 vec_dstt, vec_sld, vec_splat): Add prototypes, marked with
922 always_inline attribute.
923 * config/rs6000/rs6000.c (altivec_expand_dst_builtin):
924 Treat expansion as completed even if literal argument is
925 invalid (so that other expansions are not tried in vain).
927 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
929 * loop-doloop.c (add_test): Replace GEN_INT (0) with
932 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
934 * fold-const.c (fold) <ABS_EXPR>: Move the handling of constants
936 (fold_abs_const): ... here.
938 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
940 * tree.h (TYPE_ARRAY_MAX_SIZE): Use type.maxval directly.
942 2004-03-19 Denis Chertykov <denisc@overta.ru>
945 * config/avr/avr.md ("call_insn"): Handle explicit integer
947 (call_value_insn): Likewise.
949 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
951 * tree.c (substitute_in_expr): Rewrite to simplify and be more generic.
953 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
955 * fold-const.c (negate_expr): Move the handling of constants
957 (fold_negate_const): ... here.
959 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
961 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): New macro and hook.
962 * langhooks.h (struct lang_hooks_for_types): New field hash_types.
963 * tree.c (debug_no_type_hash): Deleted.
964 (type_hash_canon): Abort if passed a variant.
965 Check lang_hooks.types.hash_types.
966 (build_type_no_quals): Copy mode of POINTER_TYPE and REFERENCE_TYPE.
967 (build_array_type): Remove unnecessary allocation of pointer type.
968 (build_complex_type): Properly qualify resulting type.
970 2004-03-19 Paolo Bonzini <bonzini@gnu.org>
972 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo.
974 2004-03-19 Richard Sandiford <rsandifo@redhat.com>
976 * expmed.c (choose_mult_variant, expand_mult_const): New, split from...
977 (expand_mult): ...here.
978 (extract_high_half): New, split out from expand_mult_highpart.
979 (expand_highpart_optab): Likewise. Don't clobber target prematurely.
980 (expand_highpart): Evaluate the cost of a shift/add sequence,
981 then see if any of the specialized optabs are cheaper.
983 2004-03-18 Ian Lance Taylor <ian@wasabisystems.com>
985 * mklibgcc.in: Remove obsolete MAYBE_USE_COLLECT2.
987 2004-03-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
989 * convert.c (convert_to_real): Add more math builtins.
991 2004-03-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
993 * convert.c (convert_to_real): Reformat using switch stmt.
995 2004-03-18 Mark Mitchell <mark@codesourcery.com>
997 * c-common.c (pointer_int_sum): Do not complain about using
998 pointers to pointers-to-members.
1000 2004-03-18 Kazu Hirata <kazu@cs.umass.edu>
1002 * system.h (MD_ASM_CLOBBERS): Move to "Old target macros that
1003 have moved to the target hooks structure".
1005 2004-03-18 James E Wilson <wilson@specifixinc.com>
1007 * config/mips/mips.md (type): Split move into arith and fmove. Split
1008 hilo into mthilo and mfhilo. Add trap. Delete icmp. Fix all uses.
1009 * config/mips/5400.md (ir_vr54_hilo, ir_vr54_arith, ir_vr54_fabs):
1011 * config/mips/5500.md (ir_vr55_hilo, ir_vr55_arith, ir_vr55_fabs):
1013 * config/mips/7000.md (rm7_int_other, rm7_mthilo, rm7_mfhilo,
1014 rm7_fp_quick): Likewise.
1015 * config/mips/9000.md (rm9k_int, rm9k_mfhilo, rm9k_mthilo,
1016 rm9k_fquick): Likewise.
1017 * config/mips/sr71k.md (ir_sr70_hilo, ir_sr70_arith, ir_sr70_fabs):
1019 (ir_sr70_icmp): Delete.
1021 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1023 * tree.h (TREE_CHECK2, TREE_CHECK3, TREE_CHECK5): New macros.
1024 (tree_check2_failed, tree_check3_failed, tree_check5_failed): New decl.
1025 (FUNC_OR_METHOD_CHECK, SET_ARRAY_OR_VECTOR_CHECK): New macros.
1026 (REC_OR_UNION_CHECK, NUMERICAL_TYPE_CHECK): Likewise.
1027 (TYPE_VALUES, TYPE_DOMAIN, TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD):
1028 Protect with proper check.
1029 (TYPE_ARG_TYPES, TYPE_METHOD_BASETYPE, TYPE_OFFSET_BASETYPE): Likewise.
1030 (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Likewise.
1031 * tree.c (type_hash_eq): Rewrite to access proper fields for each type.
1032 (tree_check2_failed, tree_check3_failed, tree_check5_failed): New.
1033 * c-typeck.c (build_array_ref): Use TYPE_DOMAIN, not TYPE_VALUES.
1034 * dwarf2out.c (gen_enumeration_type_die): Use TYPE_VALUES,
1036 * stor-layout.c (set_sizetype): Use TYPE_ORIG_SIZE_TYPE.
1038 2004-03-18 Mostafa Hagog <mustafa@il.ibm.com>
1040 * gcse.c (eliminate_partially_redundant_loads): Reject change if
1041 dest is set between beginning and current insn.
1043 2004-03-18 Mark Mitchell <mark@codesourcery.com>
1045 * c-decl.c (grokdeclarator): Do not complain about redeclaring
1046 visible "static" identifiers "extern" in a local scope.
1047 * dwarf2out.c (loc_descriptor_from_tree): Handle pre- and
1048 post-increments/decrements.
1050 2004-03-18 Bob Wilson <bob.wilson@acm.org>
1052 * config/xtensa/xtensa.c (current_function_arg_words): Delete.
1053 (xtensa_builtin_saveregs): Use current_function_args_info.arg_words.
1054 (xtensa_va_start): Remove assignment to current_function_arg_words.
1056 2004-03-18 Richard Sandiford <rsandifo@redhat.com>
1058 * alias.c (record_set): Detect the case where a register is assigned
1059 a new value that has the same base term as the old one.
1061 2004-03-18 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1063 * doloop.c: Removed.
1064 * loop-doloop.c: New file.
1065 * Makefile.in (doloop.o): Remove.
1066 (loop-doloop.o): New.
1067 * cfgloop.h (get_loop_level, doloop_optimize_loops): Declare.
1068 * cfgloopanal.c (get_loop_level): New function.
1069 * loop-iv.c (iv_number_of_iterations): Handle case when loop
1070 is leaved immediatelly.
1071 * loop.c (strength_reduce): Do not call doloop optimization.
1072 * loop.h (LOOP_BCT): Removed.
1073 * passes.c (rest_of_handle_loop_optimize): Do not use LOOP_BCT.
1074 (rest_of_handle_loop2): Call doloop_optimize_loops.
1075 (rest_of_compilation): Test for optimizations moved to
1076 rest_of_handle_loop2.
1078 2004-03-17 Fariborz Jahanian <fjahanian@apple.com>
1080 * config/rs6000/rs6000.c (rs6000_stack_info): correct reg_size
1082 (rs6000_emit_prologue): Ditto.
1083 (rs6000_emit_epilogue): Ditto.
1084 * config/rs6000/rs6000.h: Definition of DWARF_CIE_DATA_ALIGNMENT
1085 macro for mixed mode.
1087 2004-03-18 Jan Hubicka <jh@suse.cz>
1089 * predict.c (propagate_freq): Compute correctly frequency of
1092 2004-03-17 Eric Christopher <echristo@redhat.com>
1094 * builtins.c (apply_args_size): Use reg_raw_mode.
1095 (apply_result_size): Ditto.
1097 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1100 * config/rtems.h: Add STD_LIB_SPEC and LIB_SPEC.
1102 2004-03-17 Jakub Jelinek <jakub@redhat.com>
1104 * config/rs6000/t-linux64 (bispecs): Don't add -mlong-double-128 for
1105 32-bit builds when defaulting to 32-bit.
1107 2004-03-17 Jan Hubicka <jh@suse.cz>
1109 * cfgrtl.c (rtl_create_basic_block): Pre-allocate basic_block_info
1112 2004-03-17 James E Wilson <wilson@specifixinc.com>
1114 * config/mips/mips.md (zero_extendsidi2): Add length attribute.
1115 (hazard_nop): Change type to nop.
1116 (type): Split arith into arith, shift, slt, clz. Delete darith.
1117 Fix all uses. Change arith to multi if more than one insn emitted.
1118 * config/mips/5400.md (ir_vr54_arith): Likewise.
1119 * config/mips/5500.md (ir_vr55_arith): Likewise.
1120 * config/mips/7000.md (rm7_int_other): Likewise.
1121 * config/mips/9000.md (rm9k_int): Likewise.
1122 * config/mips/sr71k.md (ir_sr70_arith): Likewise.
1124 2004-03-17 Joel Brobecker <brobecker@gnat.com>
1126 * dwarf2out.c (subrange_type_die): Define new variable "subtype"
1127 to hold the subtype tree instead of recomputing it several times.
1129 2004-03-17 Kazu Hirata <kazu@cs.umass.edu>
1131 * config/mn10300/mn10300.c (notice_update_cc): Don't handle
1133 * config/mn10300/mn10300.md (cc): Remove "invert".
1135 2004-03-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1137 * builtins.c (integer_valued_real_p): Add builtin rint.
1138 (fold_builtin): Likewise.
1139 * convert.c (convert_to_real): Likewise.
1141 * convert.c (convert_to_real): Fix typos in `long double'
1144 2004-03-16 Mark Mitchell <mark@codesourcery.com>
1147 * fold-const.c (fold): Set TREE_NO_UNUSED_WARNING on implicitly
1148 generated COMPOUND_EXPRs.
1150 2004-03-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1152 * config/h8300/t-rtems (h8300-*-rtems*): New.
1154 2004-03-16 Eric Christopher <echristo@redhat.com>
1156 * doc/cppopts.texi(fwide-exec-charset): Fix typo.
1158 2004-03-16 Kazu Hirata <kazu@cs.umass.edu>
1160 * config/i386/i386-protos.h: Add a prototype for
1161 ix86_reverse_condition.
1162 * config/i386/i386.c (ix86_reverse_condition): New.
1163 * config/i386/i386.h (REVERSE_CONDITION): Use
1164 ix86_reverse_condition.
1165 * config/i386/i386.md: Use ix86_reverse_condition instead of
1168 2004-03-16 J. Brobecker <brobecker@gnat.com>
1170 * dwarf2out.c (loc_descriptor_from_tree): Add handling for MIN_EXPR.
1172 2004-03-16 Nathanael Nerode <neroden@gcc.gnu.org>
1175 * Makefile.in: Pass $(INCLUDES) down to libgcc.mk explicitly.
1177 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
1179 * c-common.c (c_common_type_for_mode): Build vector types on
1181 (handle_mode_attribute): Deprecate using the mode attribute
1182 to create vector types. Fix indentation.
1183 (vector_type_node_list): Remove.
1184 (handle_vector_size_attribute): Create vector types on demand.
1185 Strip a NON_LVALUE_EXPR from the attribute if there is one.
1186 * c-typeck.c (comptypes): Make vector types compatible if they
1187 have the same underlying mode.
1188 (convert_for_assignment): Use comptypes to convert between
1190 * tree.c (build_common_tree_nodes_2): Do not create vector types.
1191 * config/arm/arm.c (arm_init_iwmmxt_builtins): Create necessary
1193 * tree.h: Remove vector types.
1194 * config/i386/i386.c (i386_init_mmx_sse_builtins): Likewise.
1195 * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
1196 (V16QI_type_node, V2SI_type_node, V2SF_type_node, V4HI_type_node,
1197 V4SI_type_node, V4SF_type_node, V8HI_type_node): New globals.
1198 * doc/extend.texi (Vector Types): Document how to use the
1199 vector_size attribute to create vectors, rather than mode.
1201 * config/arm/mmintrin.h: Use vector_size attribute, not mode.
1202 * config/i386/emmintrin.h: Likewise.
1203 * config/i386/mmintrin.h: Likewise.
1204 * config/i386/xmmintrin.h: Likewise.
1205 * config/sh/ushmedia.h: Likewise.
1207 2004-03-16 Kazu Hirata <kazu@cs.umass.edu>
1209 * config/freebsd-spec.h, config/arc/arc-protos.h,
1210 config/arm/aout.h, config/arm/elf.h, config/arm/freebsd.h,
1211 config/arm/linux-gas.h, config/arm/semi.h,
1212 config/cris/cris-protos.h, config/i386/xm-djgpp.h,
1213 config/ia64/freebsd.h, config/mips/7000.md,
1214 config/mips/9000.md, config/ns32k/ns32k-protos.h,
1215 config/sparc/pbd.h: Update copyright.
1217 2004-03-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1220 * config.gcc: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff.
1222 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
1224 * combine.c (combine_simplify_rtx): Remove the "last"
1225 parameter and its documentation. Adjust recursive calls.
1226 (simplify_logical): Always perform the only simplification
1227 controlled by "last", if the simplified expression is
1229 (try_combine): Do not pass the "last" parameter to
1230 combine_simplify_rtx.
1232 2004-03-16 Richard Sandiford <rsandifo@redhat.com>
1235 * config/mips/mips.md (UNSPEC_GP): New constant.
1236 * config/mips/mips.c (CONST_GP_P): Expect the CONST to contain
1237 an UNSPEC instead of (reg $gp).
1238 (mips16_gp_pseudo_reg): Change accordingly.
1239 (print_operand): Print $gp directly when handling CONST_GP_P.
1241 2004-03-16 Richard Zidlicky <rz@linux-m68k.org>
1243 * config.gcc, config/m68k/linux.h: Implement with-cpu for m68k-linux.
1244 * longlong.h: Make code 68060 clean when compiling for m68060.
1246 2004-03-16 Richard Zidlicky <rz@linux-m68k.org>
1248 * config/m68k/m68k.md: Fix constraints for bitfield instructions.
1249 * doc/md.texi: Clarify description of "i" constraint.
1251 2004-03-15 James E Wilson <wilson@specifixinc.com>
1253 * config/mips/mips.md (type): Split load into load, fpload, fpidxload.
1254 Split store into store, fpstore, fpidxstore. Fix all uses.
1255 * config/mips/5400.md (ir_vr54_load, ir_vr54_store, ir_vr54_fstore):
1257 * config/mips/5500.md (ir_vr55_load, i5_vr55_store): Likewise.
1258 * config/mips/7000.md (rm7_ld, rm7_st): Likewise.
1259 * config/mips/9000.md (rm9k_load, rm9k_store): Likewise.
1260 * config/mips/sr71k.md (ir_sr70_load, ir_sr70_store, ir_sr70_fload,
1261 ir_sr70_fstore): Likewise.
1263 2004-03-15 Richard Henderson <rth@redhat.com>
1266 * except.c (collect_one_action_chain): Record action for cleanup
1267 outer of exception spec.
1269 2004-03-15 Ian Lance Taylor <ian@wasabisystems.com>
1271 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
1272 Fix the check for abort and only do the mmap if we can.
1274 2004-03-15 Eric Botcazou <ebotcazou@act-europe.fr>
1276 * config/sparc/sparc.h: Rework comments about the code model
1277 in 64-bit environment and the mode 'Pmode'.
1278 * doc/invoke.texi (SPARC options): Rework description of the
1279 different code models supported in 64-bit environment.
1281 2004-03-15 Kazu Hirata <kazu@cs.umass.edu>
1283 * defaults.h (REVERSIBLE_CC_MODE): Define.
1284 * jump.c (reversed_comparison_code_parts): Don't check if
1285 REVERSIBLE_CC_MODE is defined.
1287 2004-03-15 Kazu Hirata <kazu@cs.umass.edu>
1289 * c-incpath.c, c-incpath.h, c-pch.c, c.opt, cppexp.c,
1290 et-forest.h, genattr.c, ggc-none.c, hosthooks-def.h,
1291 hosthooks.h, params.h, ra-colorize.c, web.c,
1292 config/darwin-c.c, config/alpha/freebsd.h, config/arm/pe.c,
1293 config/avr/avr-protos.h, config/avr/avr.md,
1294 config/fr30/fr30-protos.h, config/fr30/fr30.md,
1295 config/h8300/fixunssfsi.c, config/i386/darwin.h,
1296 config/i386/freebsd.h, config/i386/freebsd64.h,
1297 config/ia64/hpux.h, config/ia64/unwind-ia64.c,
1298 config/ip2k/libgcc.S, config/m32r/xm-m32r.h,
1299 config/mmix/mmix-modes.def, config/ns32k/netbsd.h,
1300 config/ns32k/ns32k.md, config/pa/pa64-hpux.h,
1301 config/pa/pa64-regs.h, config/rs6000/aix41.h,
1302 config/rs6000/aix43.h, config/rs6000/host-darwin.c,
1303 config/sparc/aout.h, config/sparc/freebsd.h,
1304 config/sparc/litecoff.h, config/vax/vax-protos.h,
1305 doc/hostconfig.texi, doc/include/gcc-common.texi: Update
1308 2004-03-15 Paul Brook <paul@codesourcery.com>
1310 * config/arm/arm.c (thumb_expand_prologue): Tie prologue insns to fp.
1312 2004-03-15 Gabriel Dos Reis <gdr@integrable-solutions.net>
1314 * c-pretty-print.c (pp_c_semicolon): Fix formatting.
1315 (pp_c_cv_qualifier): Document.
1316 (pp_c_space_for_pointer_operator): Likewise.
1317 (pp_c_integer_constant): Likewise.
1318 (pp_c_identifier): Likewise.
1319 (pp_c_init_declarator): Don't print function body.
1321 2004-03-14 Joseph S. Myers <jsm@polyomino.org.uk>
1323 * doc/contrib.texi, doc/extend.texi, doc/gcov.texi,
1324 doc/install.texi, doc/invoke.texi, doc/makefile.texi,
1325 doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi: Capitalize
1326 "gcc", "g++" and "g77" or mark up with appropriate markup. Adjust
1327 wording and grammar.
1329 2004-03-14 Roger Sayle <roger@eyesopen.com>
1331 * alias.c (get_alias_set): Replace calls via (*lang_hooks.foo) ()
1332 with lang_hooks.foo ().
1333 * builtins.c (expand_builtin_va_arg): Likewise.
1334 * c-common.c (fname_as_string, c_common_truthvalue_conversion,
1335 c_common_type_for_mode, c_common_nodes_and_builtins,
1336 handle_mode_attribute, handle_vector_size_attribute): Likewise.
1337 * c-convert.c (convert): Likewise.
1338 * c-format.c (check_format_types): Likewise.
1339 * c-objc-common.c (c_tree_printer): Likewise.
1340 * c-typeck.c (build_unary_op, build_conditional_expr,
1341 build_binary_op): Likewise.
1342 * calls.c (try_to_integrate, expand_call,
1343 emit_library_call_value_1): Likewise.
1344 * cgraph.c (cgraph_node_name, cgraph_function_possibly_inlined_p):
1346 * cgraphunit.c (record_call_1, cgraph_analyze_function,
1347 cgraph_expand_function): Likewise.
1348 * convert.c (convert_to_pointer, convert_to_integer): Likewise.
1349 * coverage.c (build_fn_info_type, build_ctr_info_type,
1350 build_gcov_info, create_coverage): Likewise.
1351 * dbxout.c (dbxout_init): Likewise.
1352 * diagnostic.c (diagnostic_report_current_function): Likewise.
1353 * dojump.c (do_jump): Likewise.
1354 * dwarf2out.c (dwarf2_name): Likewise.
1355 * except.c (init_eh): Likewise.
1356 * explow.c (expr_size, int_expr_size): Likewise.
1357 * expmed.c (make_tree, const_mult_add_overflow_p, expand_mult_add):
1359 * expr.c (store_expr, store_constructor, safe_from_p,
1360 expand_expr_real, do_store_flag, try_casesi): Likewise.
1361 * function.c (push_function_context_to, pop_function_context_from,
1362 free_after_parsing, assign_stack_local_1, assign_stack_temp_for_type,
1363 put_var_into_stack, allocate_struct_function, current_function_name):
1365 * integrate.c (copy_decl_for_inlining, expand_inline_function):
1367 * langhooks.c (lhd_clear_binding_stack, write_global_declarations,
1368 lhd_print_error_function): Likewise.
1369 * opts.c (handle_option, decode_options): Likewise.
1370 * passes.c (open_dump_file): Likewise.
1371 * print-tree.c (print_node): Likewise.
1372 * stmt.c (expand_fixup, fixup_gotos, expand_asm_operands,
1373 expand_decl_cleanup, emit_case_nodes): Likewise.
1374 * stor-layout.c (variable_size): Likewise.
1375 * toplev.c (announce_function, wrapup_global_declarations,
1376 check_global_declarations, compile_file, default_tree_printer,
1377 process_options, lang_dependent_init, finalize): Likewise.
1378 * tree-dump.c (dequeue_and_dump): Likewise.
1379 * tree-inline.c (remap_decl, remap_block, copy_body_r,
1380 initialize_inlined_parameters, declare_return_variable,
1381 inlinable_function_p, expand_call_inline, optimize_inline_calls,
1382 walk_tree, copy_tree_r): Likewise.
1383 * tree-optimize.c (tree_rest_of_compilation): Likewise.
1384 * tree.c (decl_assembler_name, tree_size, size_in_bytes, staticp,
1385 unsafe_for_reeval, get_unwidened, get_narrower, get_callee_fndecl,
1386 variably_modified_type_p, dump_tree_statistics): Likewise.
1387 * varasm.c (assemble_variable, compare_constant, copy_constant,
1388 force_const_mem, compute_reloc_for_constant, output_constant,
1389 output_addressed_constants, initializer_constant_valid_p): Likewise.
1391 2004-03-14 Kelley Cook <kcook@gcc.gnu.org>
1393 * doc/install.texi: Make autoconf 2.13 the exception, not the rule.
1395 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
1397 * doc/install.texi: Reflect autoconf and automake version for
1398 libffi. Update autoconf version to 2.59.
1400 2004-03-13 Roger Sayle <roger@eyesopen.com>
1402 * fold-const.c (negate_expr, operand_equal_for_comparison_p,
1403 optimize_bit_field_compare, decode_field_reference, all_ones_mask_p,
1404 make_range, build_range_check, fold_range_test, unextend,
1405 constant_boolean_node, fold_binary_op_with_conditional_arg,
1406 fold_truthop, fold_mathfn_compare, fold_inf_compare,
1407 fold_single_bit_test, fold): Replace calls via (*lang_hooks.foo) ()
1408 with lang_hooks.foo ().
1410 2004-03-14 Richard Earnshaw <rearnsha@arm.com>
1412 * arm.h (EXTRA_CONSTRAINT_STR_ARM): Update comment.
1414 2004-03-13 Dara Hazeghi <dhazeghi@yahoo.com>
1416 * doc/install.texi: Note status of -fnew-ra.
1418 2004-03-13 Eric Botcazou <ebotcazou@libertysurf.fr>
1421 * expr.c (store_expr): Call emit_queue before generating the move
1422 from the temporary to the original target. Protect the temporary
1425 2004-03-13 Jakub Jelinek <jakub@redhat.com>
1428 * config/s390/s390.c (legitimize_pic_address): Don't abort on UNSPEC
1429 other than UNSPEC_GOTOFF.
1431 2004-03-13 Richard Earnshaw <rearnsha@arm.com>
1433 * arm.c (arm_legitimate_address_p): New argument, OUTER. Pass through
1434 to arm_legitimate_index_p. Update all callers with SET as default
1436 (arm_legitimate_index_p): New argument, OUTER. Restrict the index
1437 range if OUTER is a sign-extend operation on QImode. Correctly
1438 reject shift operations on sign-extended QImode addresses.
1439 (bad_signed_byte_operand): Delete.
1440 (arm_extendqisi_mem_op): New function.
1441 * arm.h (EXTRA_CONSTRAINT_ARM): Delete. Replace with...
1442 (EXTRA_CONSTRAINT_STR_ARM): ... this. Handle extended address
1444 (CONSTRAINT_LEN): New.
1445 (EXTRA_CONSTRAINT): Delete. Replace with...
1446 (EXTRA_CONSTRAINT_STR): ... this.
1447 (PREDICATE_CODES): Remove bad_signed_byte_operand.
1448 * arm.md (extendqihi_insn): Use new constraint Uq. Rework. Length
1449 is now always default.
1450 (define_splits for bad sign-extend loads): Delete.
1451 (arm_extendqisi, arm_extendqisi_v5): Likewise.
1452 * arm/vfp.md (arm_movsi_vfp, arm_movdi_vfp, movsf_vfp, movdf_vfp):
1453 Rework 'U' constraint to 'Uv'.
1454 * arm-protos.h: Remove bad_signed_byte_operand. Add
1455 arm_extendqisi_mem_op.
1456 * doc/md.texi (ARM constraints): Rename VFP constraint (now Uv).
1459 2004-03-13 Alan Modra <amodra@bigpond.net.au>
1461 * config/rs6000/rs6000.c (rs6000_va_arg): Replace SPLIT_COMPLEX_ARGS
1462 with targetm version.
1465 * config/rs6000/rs6000.h (UNITS_PER_ARG, RS6000_ARG_SIZE): Delete.
1466 (HARD_REGNO_MODE_OK): Disallow TFmode for fp31.
1467 * config/rs6000/rs6000.c (rs6000_arg_size): New function.
1468 Update all users of RS6000_ARG_SIZE.
1469 (function_arg_advance): Count fregno using mode size.
1470 (function_arg): Handle long double split over regs and memory.
1471 (function_arg_partial_nregs): Likewise.
1472 (rs6000_va_arg): Repackage complex args.
1474 2004-03-13 Dean Ferreyra <dferreyra@igc.org>
1477 * config/avr/avr.c (avr_progmem_p): Add "attributes" parameter.
1478 (avr_insert_attributes): Pass "attributes" to avr_progmem_p.
1479 * config/avr/avr-protos.h (avr_progmem_p): Change prototype.
1481 2004-03-12 Jakub Jelinek <jakub@redhat.com>
1483 * config/rs6000/rs6000-protos.h (rs6000_output_dwarf_dtprel): Add
1485 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): New.
1486 * config/rs6000/rs6000.h (ASM_OUTPUT_DWARF_DTPREL): Define.
1488 2003-03-12 Andrew Pinski <apinski@apple.com>
1490 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
1491 Use ret instead of result. Use addr instead of base.
1493 2004-03-12 David Edelsohn <edelsohn@gnu.org>
1495 * doc/install.texi (*-ibm-aix*): Document assembler and achiver
1496 fixes required by libstdc++ and update installation instructions
1499 2004-03-12 Danny Smith <dannysmith@users.sourceforge.net>
1501 * config/i386/winnt.c (i386_pe_strip_name_encoding_full): Strip
1502 leading '@' on fastcall symbols before stripping suffix.
1504 2004-03-12 Roger Sayle <roger@eyesopen.com>
1506 * combine.c (unmentioned_reg_p): New function to check whether an
1507 expression is a "specialization" of another, i.e. that there are
1508 no registers or memory references mentioned in the first that don't
1509 appear in the second.
1510 (unmentioned_reg_p_1): New helper subroutine of unmentioned_reg_p.
1511 (combine_instructions): Also try combining instructions using the
1512 REG_EQUAL note from a preceding log-linked instruction.
1514 2004-03-12 Roger Sayle <roger@eyesopen.com>
1516 * config/i386/i386.c (ix86_split_ashrdi): Optimize shift by 63.
1518 2004-03-12 Matt Austern <austern@apple.com>
1520 * target.h (struct gcc_target): New target hook, unwind_label.
1521 * target-def.h (TARGET_ASM_EMIT_UNWIND_LABEL): New hook.
1522 * output.h (default_emit_unwind_label): New function.
1523 * default.h (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): New macro.
1524 (TARGET_USES_WEAK_UNWIND_INFO): New target macro.
1525 (TARGET_SUPPORTS_HIDDEN): New target macro.
1526 * dwarf2out.c (struct dw_fde_struct): Add field for function decl
1527 that corresponds to this FDE.
1528 (FRAME_BEGIN_LABEL): Allow target to override default label.
1529 (output_call_frame_info): If FDEs are linknonce, then use extra
1530 indirection for FDE encoding, output a label for each FDE, and
1531 output an empty label for each function without an FDE.
1532 (dwarf2out_begin_prologue): Set up decl field when creating an FDE.
1533 * varasm.c (globalize_decl): Call ASM_MAKE_LABEL_LINKONCE for
1534 decls with DECL_ONE_ONLY set, if that macro is defined.
1535 (make_decl_one_only): Don't use DECL_COMMON if we're compiling
1536 for a SUPPORTS_ONE_ONLY target.
1537 * config/darwin-protos.h (darwin_unique_section): Declare.
1538 (darwin_asm_named_section): Likewise.
1539 (darwin_section_type_flags): Likewise.
1540 (darwin_non_lazy_pcrel): Likewise.
1541 (darwin_emit_unwind_label): Likewise.
1542 (darwin_make_decl_one_only): Likewise.
1543 * config/darwin.c (machopic_finish): Get rid of tweak that
1544 eliminate stubs for symbols that are defined.
1545 (darwin_encode_section_info): Don't treat weak functions as defined.
1546 (darwin_make_decl_one_only): Define.
1547 (darwin_asm_named_section): Likewise.
1548 (darwin_section_type_flags): Likewise.
1549 (darwin_unique_section): Likewise.
1550 (darwin_emit_unwind_label): Likewise.
1551 (darwin_non_lazy_pcrel): Likewise.
1552 (darwin_asm_output_dwarf_delta): Difference between two labels is
1553 local only if both labels are local.
1554 * config/darwin.h (MAKE_DECL_ONE_ONLY): Define.
1555 (ASM_MAKE_LABEL_LINKONCE): Likewise.
1556 (TARGET_SUPPORTS_HIDDEN): Likewise.
1557 (TARGET_USES_WEAK_UNWIND_INFO): Likewise.
1558 (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): Likewise.
1559 (FRAME_BEGIN_LABEL): Likewise.
1560 (ASM_DECLARE_OBJECT_NAME): Make references to weak symbols indirect.
1561 (ASM_DECLARE_FUNCTION_NAME): Likewise.
1562 (darwin_eh_frame_section): Give __eh_frame section the coalesced flag.
1563 (TARGET_ASM_UNIQUE_SECTION): Define.
1564 (EH_FRAME_SECTION_NAME): Define.
1565 (EH_FRAME_SECTION_ATTR): Likewise.
1566 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
1567 (TARGET_ASM_NAMED_SECTION): Likewise.
1568 (TARGET_SECTION_TYPE_FLAGS): Likewise.
1569 * doc/tm.texi: Document TARGET_USES_WEAK_UNWIND_INFO,
1570 TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY, TARGET_SUPPORTS_HIDDEN,
1571 TARGET_ASM_EMIT_UNWIND_LABEL.
1573 2004-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1575 * builtins.c (expand_builtin_mathfn): Add pow10* to the
1576 existing exp10* case.
1577 (expand_builtin): Likewise.
1579 2004-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
1581 * doc/tm.texi (registers) <Values in Registers>: Add
1582 entry for REGMODE_NATURAL_SIZE.
1584 2004-03-12 Richard Henderson <rth@redhat.com>
1587 * target.h (struct gcc_target): Move calls substructure before
1588 booleans. Add split_complex_arg.
1589 * function.c (assign_parms, split_complex_args): Use it.
1590 * calls.c (expand_call): Likewise.
1591 (split_complex_values): Likewise. Check for splittable types
1592 before allocating memory.
1593 (split_complex_types): Likewise.
1594 * system.h (SPLIT_COMPLEX_ARGS): Poison.
1595 * expr.h (SPLIT_COMPLEX_ARGS): Remove.
1596 * target-def.h (TARGET_SPLIT_COMPLEX_ARG): New.
1597 * config/alpha/alpha.c (alpha_split_complex_arg): New.
1598 (TARGET_SPLIT_COMPLEX_ARG): New.
1599 * config/alpha/alpha.h (SPLIT_COMPLEX_ARGS): Remove.
1600 * config/rs6000/rs6000.c (TARGET_SPLIT_COMPLEX_ARG): New.
1601 (rs6000_override_options): Zap it for non-AIX.
1602 (rs6000_function_value): Use targetm.calls.split_complex_arg.
1603 * config/rs6000/rs6000.h (SPLIT_COMPLEX_ARGS): Remove.
1604 * config/xtensa/xtensa.c (TARGET_SPLIT_COMPLEX_ARG): New.
1605 * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Remove.
1606 * doc/tm.texi (TARGET_SPLIT_COMPLEX_ARG): Modify from old
1607 SPLIT_COMPLEX_ARGS entry.
1609 2004-03-11 Richard Henderson <rth@redhat.com>
1611 * config/alpha/alpha.c (xfloating_ops, vax_cvt_ops): New.
1612 (alpha_lookup_xfloating_lib_func): Use them, return rtx.
1613 (alpha_emit_xfloating_arith): Update to match.
1614 (alpha_emit_xfloating_compare): Likewise.
1615 (alpha_emit_xfloating_cvt): Likewise.
1616 (alpha_emit_xfloating_libcall): Take already built symbol,
1618 * config/alpha/alpha.md (extendsftf2, extenddftf2): Take
1621 2004-03-11 Richard Henderson <rth@redhat.com>
1624 * config/alpha/alpha.h (STACK_BOUNDARY): Set to 128.
1626 * simplify-rtx.c (simplify_relational_operation): Fix typo.
1628 2004-03-11 Richard Henderson <rth@redhat.com>
1631 * except.c (remove_unreachable_regions): Look thru CALL_PLACEHOLDER.
1633 2004-03-11 Ulrich Weigand <uweigand@de.ibm.com>
1636 * calls.c (load_register_parameters): If BLOCK_REG_PADDING is not
1637 defined, pass small BLKmode values in registers in the low-order part.
1639 2004-03-11 Ulrich Weigand <uweigand@de.ibm.com>
1641 * combine.c (if_then_else_cond): Check for NULL return value of
1642 simplify_gen_subreg.
1644 2004-03-11 Richard Sandiford <rsandifo@redhat.com>
1647 * config/mips/mips.h (UNITS_PER_FPVALUE): Fix value for
1648 TARGET_SINGLE_FLOAT.
1650 2004-03-11 Steve Ellcey <sje@cup.hp.com>
1652 * config/ia64/hpux.h (TARGET_INIT_LIBFUNCS): Add undef.
1653 * config/ia64/ia64.h (TARGET_INIT_LIBFUNCS): Add define.
1654 * config/ia64/ia64.c (ia64_init_libfuncs): New.
1655 (ia64_hpux_init_libfuncs): Add call to ia64_init_libfuncs.
1657 2004-03-11 Roger Sayle <roger@eyesopen.com>
1659 * fold-const.c (negate_expr_p) <RSHIFT_EXPR>: We can optimize
1660 -((int)X>>C) where C is an integer constant one bit less than the
1661 size of X into (unsigned)X>>C. Similarly for unsigned->signed.
1662 (negate_expr) <RSHIFT_EXPR>: Implement the above transformations.
1664 * simplify-rtx.c (simplify_unary_operation): Also implement the
1665 above transformations at the RTL level.
1667 2004-03-11 Alan Modra <amodra@bigpond.net.au>
1669 * real.c (encode_ibm_extended): Do round low word.
1671 2004-03-11 Ben Elliston <bje@wasabisystems.com>
1673 * config/arm/arm.md (is_xscale): Comment this attribute and move
1674 it a bit further up in the file, closer to related attributes.
1676 2004-03-11 Eric Botcazou <ebotcazou@libertysurf.fr>
1678 * config/host-solaris.c (sol_gt_pch_use_address): Add
1679 missing terminating marker to comment.
1681 2004-03-11 Richard Sandiford <rsandifo@redhat.com>
1683 * config/mips/mips.md: Use move_operand in splitters for 64-bit moves.
1684 (movdi, movsi, movhi, movqi, movsf, movdf): Remove predicates.
1685 (*movdi_32bit_mips16, *movsi_mips16, *movhi_mips16, *movqi_mips16)
1686 (*movsf_mips16, *movdf_mips16): Name unnamed patterns. Use
1687 move_operand as source predicate in all cases.
1688 (*movdi_32bit): Renamed from movdi_internal. Remove 'F' constraint.
1689 Test reg_or_0_operand. Use move_operand as source predicate.
1690 (*movdi_64bit): Renamed from movdi_internal2. Test reg_or_0_operand.
1691 (*movdi_64bit_mips16): Renamed from movdi_internal2_mips16.
1692 (*movsi_internal): Renamed from movsi_internal. Test reg_or_0_operand.
1693 (movhi, movqi, movsf, movdf): Use mips_legitimize_move.
1694 (*movhi_internal): Renamed from movhi_internal. Test reg_or_0_operand.
1695 Use move_operand as source predicate. Remove 'K' constraint.
1696 (*movqi_internal): Likewise movqi_internal.
1697 (*movsf_hardfloat): Renamed from movsf_internal1. Test
1698 reg_or_0_operand. Use move_operand as source predicate.
1699 (*movsf_softfloat): Likewise movsf_internal2.
1700 (*movdf_hardfloat_64bit): Likewise movsf_internal1a.
1701 (*movdf_hardfloat_32bit): Likewise movsf_internal1b.
1702 (*movdf_softfloat): Likewise movdf_internal2.
1703 * config/mips/mips.c (move_operand): Match arbitrary CONST_INTs
1704 for DImode if !TARGET_64BIT.
1705 (mips_legitimize_move): Simplify accordingly.
1707 2004-03-11 Josef Zlomek <zlomekj@suse.cz>
1710 * var-tracking.c (struct variable_def): Added field refcount.
1711 (variable_htab_free): Decrease the refcount and delete variable
1712 only if there are no more references.
1713 (unshare_variable): New function.
1714 (vars_copy_1): Increase refcount instead of copying the variable.
1715 (variable_union): Share the variables where possible, unshare
1716 the variables if needed.
1717 (variable_different_p): Return false if var1 and var2 are
1719 (variable_was_changed): Init the refcount of new variable.
1720 (set_frame_base_location): Unshare variable if needed.
1721 (set_variable_part): Init the refcount of new variable.
1722 Unshare the variables if needed.
1723 (delete_variable_part): Unshare the variables if needed.
1724 (emit_notes_for_differences_1): Init the refcount of new variable.
1725 (vt_add_function_parameters): Do not add function parameters to
1726 IN set of ENTRY_BLOCK_PTR because it is unused anyway.
1727 (vt_initialize): Do not add frame_base_decl to IN set of
1728 ENTRY_BLOCK_PTR because it is unused anyway.
1730 2004-03-11 Josef Zlomek <zlomekj@suse.cz>
1732 * var-tracking.c (vars_copy_1): Cleanup and speedup chain operations.
1733 (vars_copy): Likewise.
1734 (variable_union): Likewise.
1735 (set_variable_part): Likewise.
1736 (delete_variable_part): Likewise.
1738 2004-03-11 Kazu Hirata <kazu@cs.umass.edu>
1740 * c-typeck.c, combine.c, cse.c, dominance.c, et-forest.h,
1741 ggc-page.c, var-tracking.c, config/fp-bit.c, config/c4x/c4x.c,
1742 config/cris/cris.c, config/i386/ppro.md, config/i860/i860.c,
1743 config/i860/i860.h, config/m32r/m32r.h, config/m32r/xm-m32r.h,
1744 config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
1745 config/mips/mips.c, config/mmix/mmix.c, config/ns32k/ns32k.h,
1746 config/pa/pa.c, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
1747 config/pdp11/pdp11.h, config/rs6000/rs6000.c,
1748 config/stormy16/stormy16.c: Fix comment typos and formatting.
1750 2004-03-11 Nathanael Nerode <neroden@gcc.gnu.org>
1752 * configure: Regenerate, since I forgot to while committing Paolo's
1755 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
1758 Move language detection to the top level.
1759 * configure.ac: Remove code to detect languages,
1760 it now lives exclusively in the top level.
1761 * aclocal.m4 (gcc_AC_PROG_GNAT): Moved to the
1762 top level, renamed to ACX_PROG_GNAT.
1764 2004-03-10 Richard Henderson <rth@redhat.com>
1766 * c-pch.c (c_common_no_more_pch): Update for gt_pch_use_address
1768 * config.host (*-*-solaris2*, *-*-linux*): Add out_host_hook_obj
1769 and host_xmake_file fragments.
1770 * ggc-common.c (gt_pch_save): Update for gt_pch_get_address change.
1771 (gt_pch_restore): Similarly for gt_pch_use_address.
1772 (default_gt_pch_get_address): New.
1773 (mmap_gt_pch_get_address): Split out of gt_pch_save.
1774 (default_gt_pch_use_address): Split out of gt_pch_restore.
1775 (mmap_gt_pch_use_address): Likewise.
1776 * hooks.c (hook_voidp_size_t_null): Remove.
1777 (hook_bool_voidp_size_t_false): Remove.
1778 * hooks.h: Likewise.
1779 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): Use one of the
1780 default_ or mmap_ definitions.
1781 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Likewise.
1782 * hosthooks.h (struct host_hooks): Update gt_pch_get_address
1783 and gt_pch_use_address.
1784 * config/host-linux.c, config/host-solaris.c: New files.
1785 * config/x-linux, config/x-solaris: New files.
1786 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_get_address):
1787 Update for changed definition.
1788 (darwin_rs6000_gt_pch_use_address): Likewise.
1789 * doc/hostconfig.texi: Update docs.
1791 2004-03-10 Richard Henderson <rth@redhat.com>
1794 * c-decl.c (grokdeclarator): Don't warn for duplicate qualifiers
1795 except for pedantic c90 mode.
1797 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
1799 * configure.ac: Bump AC_PREREQ to 2.59.
1800 * configure: Regenerate.
1802 2004-03-10 Uros Bizjak <uros@kss-loka.si>
1804 * optabs.h (enum optab_index): Add new OTI_exp10 and OTI_exp2.
1805 (exp10_optab, exp2_optab): Define corresponding macros.
1806 * optabs.c (init_optabs): Initialize exp10_optab and exp2_optab.
1807 * genopinit.c (optabs): Implement exp10_optab and exp2_optab
1808 using exp10?f2 and exp2?f2 patterns.
1809 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP10{,F,L}
1810 using exp10_optab, and BUILT_IN_EXP2{,F,L} using exp2_optab.
1811 (expand_builtin): Expand BUILT_IN_EXP10{,F,L} and BUILT_IN_EXP2{,F,L}
1812 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
1814 * config/i386/i386.md (exp10sf2, exp10df2, exp10xf2, exp2sf2,
1815 exp2df2, exp2xf2): New patterns to implement exp10, exp10f, exp10l,
1816 exp2, exp2f and exp2l built-ins as inline x87 intrinsics.
1818 2004-03-10 Anthony Green <green@redhat.com>
1820 * doc/invoke.texi (ARM Options): Fix -mpfu typo.
1822 2004-03-10 David Edelsohn <edelsohn@gnu.org>
1824 * config/rs6000/aix.h (TARGET_OS_CPP_BUILTINS): Rename to ...
1825 (TARGET_OS_AIX_CPP_BUILTINS): this. Conditionally define
1827 * config/rs6000/aix41.h (TARGET_OS_CPP_BUILTINS): Use
1828 TARGET_OS_AIX_CPP_BUILTINS.
1829 * config/rs6000/aix43.h (TARGET_OS_CPP_BUILTINS): Same.
1830 * config/rs6000/aix51.h (TARGET_OS_CPP_BUILTINS): Same.
1831 * config/rs6000/aix52.h (TARGET_OS_CPP_BUILTINS): Same.
1832 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Revert
1835 2004-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1837 * fold-const.c (tree_expr_nonnegative_p): Add more builtin cases.
1839 2004-03-10 David Edelsohn <edelsohn@gnu.org>
1841 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
1842 __LONGDOUBLE128 on AIX.
1844 2004-03-10 Andrew Haley <aph@redhat.com>
1846 PR optimization/14381
1847 * function.c (expand_function_end): Emit a blockage insn before
1848 the epilogue when -fnon-call-exceptions is used.
1850 * except.c (expand_start_all_catch): Make comment more accurate.
1852 2004-03-08 Joel Sherrill <joel@oarcorp.com>
1855 * config/rs6000/t-rtems: Add missing file on branch.
1857 2004-03-10 Ulrich Weigand <uweigand@de.ibm.com>
1859 * dbxout.c (dbxout_symbol_location): Do not output references
1860 to optimized-out constant pool symbols.
1862 2004-03-10 Andreas Schwab <schwab@suse.de>
1864 * config/ia64/ia64.md (divsi3, udivsi3): Remove unused variable
1867 2004-03-09 James E Wilson <wilson@specifixinc.com>
1869 * alias.c (alias_sets_might_conflict_p): New.
1870 * c-typeck.c (build_c_cast): Call it if warn_strict_aliasing > 1.
1871 * common.opt (Wstrict-aliasing=): New.
1872 * flags.h (warn_strict_aliasing): Change type to int.
1873 * opts.c (warn_strict_aliasing): Change type to int.
1874 (common_handle_option): Handle OPT_Wstrict_aliasing_.
1875 * tree.h (alias_sets_might_conflict_p): Declare it.
1876 * doc/invoke.tex (-Wstrict-aliasing=2): Document it.
1878 2004-03-10 Roman Zippel <zippel@linux-m68k.org>
1881 * config/m68k/m68k.h (FIXED_REGISTERS): Add arg pointer.
1882 (CALL_USED_REGISTERS): Likewise.
1883 (REG_CLASS_CONTENTS): Likewise.
1884 (REG_ALLOC_ORDER): New.
1885 (REGNO_REG_CLASS): Use regno_reg_class.
1886 * config/m68k/m68k.c: Add regno_reg_class array.
1888 2004-03-09 Steve Ellcey <sje@cup.hp.com>
1890 * config/ia64/ia64.md (divsi3): Fix algorithm.
1892 (setf_exp_xf): Remove '*' from name.
1893 * testsuite/gcc.dg/20040309-1.c: New test.
1895 2004-03-09 Ian Lance Taylor <ian@wasabisystems.com>
1897 * system.h (SUNOS4_SHARED_LIBRARIES): Poison.
1898 * collect2.c: Remove SUNOS4_SHARED_LIBRARIES code.
1899 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): Don't define.
1900 * config/sparc/sparc.c (sparc_aout_select_section): Remove.
1901 (sparc_aout_select_rtx_section): Don't check
1902 SUNOS4_SHARED_LIBRARIES.
1903 * config/sparc/sparc.h (SUNOS4_SHARED_LIBRARIES): Don't define.
1905 2004-03-10 Hans-Peter Nilsson <hp@axis.com>
1908 * doc/md.texi (Pattern Ordering, Dependent Patterns)
1909 (Jump Patterns, Looping Patterns): Wrap in separate "@ifset
1912 2004-03-09 Zack Weinberg <zack@codesourcery.com>
1914 * config/ia64/hpux.h (MULTILIB_DEFAULTS): Define.
1915 (LIBGCC_SPEC): Update to match.
1917 2004-03-09 Zack Weinberg <zack@codesourcery.com>
1919 * c-decl.c (last_function_parms, last_function_parm_tags)
1920 (last_function_parm_others, current_function_parms)
1921 (current_function_parm_tags, current_function_parm_others):
1923 (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES, ARG_INFO_OTHERS):
1925 (grokdeclarator): For function definitions, save the arg-info
1926 block from the declarator in DECL_ARGUMENTS.
1927 (grokparms): Do not write to last_function_parm*. Use ARG_INFO_*
1928 macros to operate on arg-info block. Can assume ARG_INFO_PARMS
1929 contains only PARM_DECLs. Improve diagnostics.
1930 (get_parm_info): Use ARG_INFO_* macros. Improve comments and
1931 diagnostics. Disable some expensive checks if not ENABLE_CHECKING.
1932 (store_parm_decls_newstyle): Take the function to operate on,
1933 and an arg-info block, as arguments; don't get anything from
1934 current_function_* globals.
1935 (store_parm_decls_oldstyle): Likewise.
1936 (store_parm_decls): Pass fndecl and its arg-info block down to
1937 store_parm_decls_newstyle/oldstyle. Send functions with empty
1938 argument lists through store_parm_decls_newstyle to reduce
1940 (pushdecl): Comment on the problems with the call to copy_node.
1941 Clear DECL_ARGUMENTS of the old node after copying it, if it
1942 is an arg-info block instead of a chain of decls.
1943 (start_function): Do not manipulate current_function_parm* or
1944 last_function_parm*.
1946 2004-03-09 Roger Sayle <roger@eyesopen.com>
1947 Andrew Pinski <pinskia@physics.uc.edu>
1949 * ifcvt.c (noce_try_sign_mask): New function to transform
1950 "x = (y < 0) ? z : 0" into the equivalent "x = (y >> C) & z".
1951 (noce_process_if_block): Call noce_try_sign_mask.
1953 2004-03-09 Andrew Pinski <apinski@apple.com>
1955 * c-typeck.c (tagged_types_tu_compatible_p):
1958 2004-03-09 Roger Sayle <roger@eyesopen.com>
1960 * simplify-rtx.c (simplify_const_relational_operation): New function
1961 renamed from simplify_relational_operation.
1962 (simplify_relational_operation): Change prototype to accept an
1963 additional mode argument. Call simplify_const_relational_operation.
1964 (simplify_gen_relational): Update simplify_relational_operation call.
1965 (simplify_ternary_operation): Update simplify_relational_operation
1966 subroutine call to use simplify_const_relational_operation instead.
1968 * rtl.h (simplify_const_relational_operation): Prototype here.
1969 (simplify_relational_operation): Add addtional mode argument.
1971 * combine.c (combine_simplify_rtx): Update calls to
1972 simplify_relational_operation.
1973 (simplify_set): Likewise.
1974 (gen_binary): Likewise.
1975 * cse.c (fold_rtx): Likewise.
1976 * dojump.c (compare_from_rtx): Likewise.
1977 (do_compare_rtx_and_jump): Likewise.
1978 * integrate.c (subst_constants): Likewise.
1979 * unroll.c (simplify_cmp_and_jump_insns): Likewise.
1981 2004-03-09 Kazu Hirata <kazu@cs.umass.edu>
1983 * config/m32r/m32r.md: Remove all define_peephole's.
1985 2004-03-09 Alan Modra <amodra@bigpond.net.au>
1987 * config/rs6000/rs6000.md: Remove trailing whitespace.
1989 2004-03-08 Eric Christopher <echristo@redhat.com>
1991 * Makefile.in (site.exp): Add libiconv variable definition.
1993 2004-03-09 Hans-Peter Nilsson <hp@axis.com>
1995 * configure: Regenerate for config/accross.m4 correction.
1997 2004-03-08 Joel Sherrill <joel@oarcorp.com>
2000 * config/rs6000/t-rtems: Add missing file on branch.
2002 2004-03-08 Roger Sayle <roger@eyesopen.com>
2005 * c-typeck.c (c_mark_addressable): A register variable should
2006 be considered global if its not automatic, i.e. TREE_PUBLIC,
2007 TREE_STATIC or DECL_EXTERNAL.
2008 * function.c (put_var_into_stack): Call abort when placing a
2009 hard register into the stack, if x_parm_reg_stack_loc is NULL.
2011 2004-03-08 Ulrich Weigand <uweigand@de.ibm.com>
2013 * config/s390/s390.md ("*extendqidi2_short_displ"): Add CC clobber.
2014 ("*extendqisi2_short_displ"): Likewise.
2016 2004-03-08 Kazu Hirata <kazu@cs.umass.edu>
2018 * config/pdp11/pdp11.c (comparison_operator_index): Remove.
2019 (comp_operator): Likewise.
2020 * config/pdp11/pdp11-protos.h: Remove corresponding
2023 2004-03-08 Eric Botcazou <ebotcazou@act-europe.fr>
2025 * expr.c (highest_pow2_factor_for_type): Rename into
2026 highest_pow2_factor_for_target. Use DECL_ALIGN instead of
2027 TYPE_ALIGN when the target is a COMPONENT_REF.
2028 (expand_assignment): Ajust call to highest_pow2_factor_for_type.
2030 2004-03-08 Alan Modra <amodra@bigpond.net.au>
2032 * config/rs6000/rs6000.c: Formatting fix.
2033 (legitimate_offset_address_p): Correct offset range check.
2035 * config/rs6000/rs6000.c (rs6000_override_options): Don't override
2036 -msoft-float by -mcpu. Consolidate similar code for MASK_MULTIPLE
2039 2004-03-07 Aldy Hernandez <aldyh@redhat.com>
2041 * config/rs6000/rs6000.md (ashrdi3): Do not call ashrdi3_no_power
2043 ("ashrdi3_no_power"): Disable for little endian.
2046 2004-03-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2048 * fold-const.c (tree_expr_nonnegative_p): Reformat checks for
2051 2004-03-08 Hans-Peter Nilsson <hp@axis.com>
2054 * configure.ac (Target-specific assembler checks) <cris-*-*>: New
2055 case, checking for -no-mul-bug-abort option.
2056 * configure, config.in: Regenerate.
2057 * doc/invoke.texi (CRIS Options): Document -mmul-bug-workaround
2058 and -mno-mul-bug-workaround.
2059 * config/cris/cris.md ("smulsi3_highpart", "umulsi3_highpart")
2060 ("mulsidi3", "umulsidi3"): Prefix output template with "%!".
2061 ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3"):
2062 Ditto. Make attribute "slottable" dependent on TARGET_MUL_BUG.
2063 * config/cris/mulsi3.asm (__Mul) [__CRIS_arch_version >= 10]: Make
2064 sure mulu.d is not last on cache-line.
2065 * config/cris/cris.h (ASM_SPEC): Translate -mno-mul-bug-workaround
2066 into -no-mul-bug-abort depending on HAVE_AS_MUL_BUG_ABORT_OPTION.
2067 (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG): New macros.
2068 (TARGET_SWITCHES): New options -mmul-bug-workaround and
2069 -mno-mul-bug-workaround.
2070 (TARGET_DEFAULT): Include TARGET_MASK_MUL_BUG.
2071 (PRINT_OPERAND_PUNCT_VALID_P): Include '!'.
2072 * config/cris/cris.c (cris_operand_extend_operator): Clarify
2073 relation to MULT in head comment.
2074 (cris_op_str): Abort for MULT.
2075 (cris_print_operand) <case '!'>: New case.
2077 2004-03-08 Alan Modra <amodra@bigpond.net.au>
2080 * dwarf2out.c (enum dw_val_class): Rename dw_val_class_float to
2081 dw_val_class_vec. Replace use throughout file.
2082 (dw_float_const): Delete.
2083 (dw_vec_const): New.
2084 (dw_val_struct_union): Rename val_float to val_vec. Replace use
2086 (add_AT_vec): Rename from add_AT_float. Add elt_size param.
2087 (same_dw_val_p): Adjust vec comparison. Use memcmp.
2088 (size_of_die): Adjust dw_val_class_vec sizing.
2089 (output_die): Output dw_val_class_vec.
2090 (insert_int, extract_int, insert_float): New functions.
2091 (add_const_value_attribute): Use insert_float for CONST_DOUBLE.
2092 Handle CONST_VECTOR.
2093 (add_location_or_const_value_attribute): Handle CONST_VECTOR.
2095 2004-03-07 Aldy Hernandez <aldyh@redhat.com>
2097 * config/rs6000/rs6000.c (rs6000_parse_abi_options): SPE and
2098 AltiVec abi cannot co-exist.
2100 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Same.
2102 2004-03-07 Jan Hubicka <jh@suse.cz>
2104 * except.c (emit_to_new_bb_before): Break fallthru edges.
2106 2004-03-07 Stephane Carrez <stcarrez@nerim.fr>
2108 * config/m68hc11/m68hc11.md ("*lshrsi3_const"): Disable for 68HC12.
2109 ("*lshrsi3"): Also accept an immediate for 68HC12.
2110 ("*ashrsi3_const"): Likewise.
2111 ("*ashrsi3"): Likewise.
2112 ("*ashlsi3_const"): Likewise.
2113 ("*ashlsi3"): Likewise.
2114 ("cmphi_1_hc12"): Compare two hard register by pushing them and
2115 comparing with a pop; don't use a split for that.
2116 ("cmphi split"): Disable compare split for 68HC12.
2118 * config/m68hc11/m68hc11.c (m68hc11_notice_update_cc): Invalidate
2119 the status operands if they have side effects.
2121 2004-03-07 Kazu Hirata <kazu@cs.umass.edu>
2123 * defaults.h (LEGITIMIZE_ADDRESS): Provide a default
2125 * config/arc/arc.h, config/fr30/fr30.h, config/frv/frv.h,
2126 config/h8300/h8300.h, config/ia64/ia64.h,
2127 config/mcore/mcore.h, config/mmix/mmix.h,
2128 config/ns32k/ns32k.h, config/pdp11/pdp11.h,
2129 config/stormy16/stormy16.h, config/v850/v850.h,
2130 config/vax/vax.h (LEGITIMIZE_ADDRESS): Remove.
2131 * doc/tm.texi (LEGITIMIZE_ADDRESS): Mention the default
2134 2004-03-07 Roger Sayle <roger@eyesopen.com>
2136 * fold-const.c (fold) <IOR_EXPR>: Fold x | x as x.
2137 <XOR_EXPR>: Fold x ^ x as zero.
2138 <AND_EXPR>: Fold x & x as x.
2140 2004-03-07 Roger Sayle <roger@eyesopen.com>
2142 * fold-const.c (fold) <EQ_EXPR>: Rewrite optimization to transform
2143 "foo++ == const" into "++foo == const+incr".
2145 2004-03-07 Richard Sandiford <rsandifo@redhat.com>
2147 * config/mips/mips.c (mips_in_small_data_p): Return false if
2150 2004-03-06 Stephane Carrez <stcarrez@nerim.fr>
2152 * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Use 2,-sp to push
2154 (expand_prologue): Don't make an interrupt or a trap handler a far
2156 (m68hc11_initial_elimination_offset): Likewise.
2158 2004-03-06 Richard Henderson <rth@redhat.com>
2160 * config/alpha/alpha.c (alpha_in_small_data_p): False for functions.
2162 2004-03-06 Kazu Hirata <kazu@cs.umass.edu>
2164 * config/ns32k/ns32k-protos.h: Add a prototype for
2165 ns32k_notice_update_cc.
2166 * config/ns32k/ns32k.c (ns32k_notice_update_cc): New.
2167 * config/ns32k/ns32k.h (NOTICE_UPDATE_CC): Call
2168 ns32k_notice_update_cc.
2170 2004-03-06 Ulrich Weigand <uweigand@de.ibm.com>
2172 * config/s390/s390.md ("load_multiple", "*load_multiple_di",
2173 "*load_multiple_si"): Allow only if reload_completed.
2174 ("store_multiple", "*store_multiple_di", "*store_multiple_si"):
2177 2004-03-06 Kazu Hirata <kazu@cs.umass.edu>
2179 * config/vax/vax-protos.h: Add a prototype for
2180 vax_notice_update_cc.
2181 * config/vax/vax.c (vax_notice_update_cc): New.
2182 * config/vax/vax.h (NOTICE_UPDATE_CC): Call
2183 vax_notice_update_cc.
2185 2004-03-06 David Edelsohn <edelsohn@gnu.org>
2187 * collect2.c (main): Only export initfunc and finifunc if
2188 LD_INIT_SWITCH not defined.
2189 (scan_prog_file): Only export constructors and destructors if
2190 LD_INIT_SWITCH not defined. Only export symbols not found in
2193 2004-03-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2195 * pa.md (icacheflush): Reorder operands to make match_scratch operand
2197 * pa.h (INITIALIZE_TRAMPOLINE): Remove unnecessary scratch argument
2198 from calls to gen_icacheflush.
2200 2004-03-06 Richard Henderson <rth@redhat.com>
2202 * config/alpha/alpha.h (MASK_LONG_DOUBLE_128): New.
2203 (TARGET_LONG_DOUBLE_128): New.
2204 (TARGET_SWITCHES): Add long-double-{128,64}.
2205 (TARGET_HAS_XFLOATING_LIBS): Default to TARGET_LONG_DOUBLE_128.
2206 (LONG_DOUBLE_TYPE_SIZE): Honor TARGET_LONG_DOUBLE_128.
2207 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): New.
2208 (WIDEST_HARDWARE_FP_SIZE): New.
2209 (TARGET_CPU_CPP_BUILTINS): Define __LONG_DOUBLE_128__.
2210 * config/alpha/alpha.c (override_options): Clear MASK_LONG_DOUBLE_128
2211 if TARGET_VAX_FLOAT.
2212 * config/alpha/osf5.h (LONG_DOUBLE_TYPE_SIZE): Remove.
2213 (TARGET_DEFAULT): Set MASK_LONG_DOUBLE_128.
2215 2004-03-06 Richard Henderson <rth@redhat.com>
2217 * config/alpha/alpha.c (alpha_swapped_comparison_operator): Fix
2218 botched rtx class conversion.
2220 2004-03-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2222 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P,
2223 BUILTIN_CBRT_P, BUILTIN_ROOT_P): New macros.
2225 * builtins.c (fold_builtin_logarithm, fold_builtin): Use new
2227 * fold-const.c (fold_mathfn_compare, fold): Likewise.
2229 2004-03-06 Eric Botcazou <ebotcazou@libertysurf.fr>
2232 * config/i386/i386.md (movv2di_internal): Conditionalize on
2233 TARGET_SSE, not TARGET_SSE2.
2235 2004-03-05 Chris Demetriou <cgd@broadcom.com>
2237 * config.gcc (mips64orion-*-elf*, mips64orionel-*-elf*): Delete
2240 2004-03-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2242 * builtins.c: Consistently use logN not log* in comments.
2244 2004-03-05 Andreas Krebbel <krebbel1@de.ibm.com>
2246 * rtl.h (mem_expr_equal_p): Function prototype added.
2247 * cfgcleanup.c (merge_memattrs): New function.
2248 (flow_find_cross_jump): Call merge_memattrs for matching insns.
2249 * emit-rtl.c (mem_expr_equal_p): New function.
2251 2004-03-05 Ziemowit Laski <zlaski@apple.com>
2253 * objc/objc-act.c (synth_module_prologue): Const-qualify
2254 objc_selector type if using the GNU runtime; fix generated
2255 signatures for objc_msg_lookup and objc_msg_lookup_super
2256 to match what GNU ObjC headers provide; reformat and clean up.
2257 (synth_self_and_ucmd_args): Use previously constructed (and
2258 hence possibly const-qualified) objc_selector type.
2260 2004-03-05 Kazu Hirata <kazu@cs.umass.edu>
2262 * doc/tm.texi (HARD_REGNO_RENAME_OK): Document.
2264 2004-03-05 Jason Merrill <jason@redhat.com>
2266 * tree.h (TYPE_HASH): Use TYPE_UID.
2267 (TREE_HASH): New macro with old definition of TYPE_HASH.
2268 * tree.c (build_type_attribute_variant): Use iterative_hash_object.
2269 (build_array_type, build_function_type): Likewise.
2270 (build_method_type_directly): Likewise.
2271 (build_offset_type, build_complex_type): Likewise.
2272 (type_hash_list, attribute_hash_list): Likewise. Now static.
2273 * except.c: s/TYPE_HASH/TREE_HASH/.
2275 2004-03-05 Bob Wilson <bob.wilson@acm.org>
2277 * config/xtensa/xtensa.c (function_arg): Handle 16-byte aligned args.
2278 (xtensa_va_start): Initialize __va_stk to ($arg_ptr - 32). Adjust
2279 __va_ndx by 2 words when referencing an argument on the stack.
2280 (xtensa_va_arg): Handle 16-byte aligned args. Adjust __va_ndx by 2
2281 words when an arg on the stack is first seen.
2283 2004-03-05 Paul Brook <paul@codesourcery.com>
2285 * arm.h (ARM_FLAG_VFP): Remove.
2286 (ARM_FLAG_ATPCS, CIRRUS_FIX_INVALID_INSNS): Renumber.
2287 * netbsd-elf.h (ARM_FLAG_VFP): Remove.
2289 2004-03-05 Paul Brook <paul@codesourcery.com>
2291 * function.c (assign_parms): Include pretend alignment offset.
2293 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2295 * stor-layout.c (layout_type, case FUNCTION_TYPE): Make size
2296 FUNCTION_BOUNDARY, not POINTER_SIZE * 2.
2298 2004-03-05 Ian Lance Taylor <ian@wasabisystems.com>
2300 * configure.ac: When passing --enable-languages to subdir
2301 configure when host != build, make sure we don't pass an empty
2303 * configure: Regenerate.
2305 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
2308 * gcc.c (cc1_options): Robustify -auxbase-strip from multiple -o
2311 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
2313 * simplify-rtx.c (simplify_relational_operation): If
2314 flag_wrapv is set, do not move terms between the two
2315 side of a relational operator.
2317 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
2319 * rtlanal.c: Include target.h and output.h
2320 (rtx_cost, address_cost, default_address_cost): Move from...
2321 * cse.c (rtx_cost, address_cost, default_address_cost):
2323 * rtl.h (rtx_cost, address_cost): Move under rtlanal.c.
2324 * Makefile.in: Adjust dependencies.
2326 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
2328 * cse.c (cse_end_of_basic_block): Make static.
2329 * local-alloc.c (function_invariant_p): Move to
2331 * loop.c (libcall_other_reg, record_excess_regs):
2333 * reload1.c (function_invariant_p): Moved here
2334 from local-alloc.c, made static.
2335 * rtl.h (cse_end_of_basic_block, function_invariant_p,
2336 libcall_other_reg, record_excess_regs): Remove
2339 2004-03-05 Kazu Hirata <kazu@cs.umass.edu>
2341 * config/m32r/m32r.c (signed_comparison_operator): Add a
2342 missing parenthesis.
2344 2004-03-04 Ian Lance Taylor <ian@wasabisystems.com>
2346 * ggc-common.c (gt_pch_restore): Don't unmap addr unless we are
2347 going to call mmap again. Read the file into the right place.
2348 Give a fatal error if we have to relocate.
2350 2004-03-04 Bob Wilson <bob.wilson@acm.org>
2352 * config/xtensa/xtensa.c (xtensa_return_in_msb): New function.
2353 (TARGET_RETURN_IN_MSB): Define to xtensa_return_in_msb.
2355 2004-03-05 Hans-Peter Nilsson <hp@axis.com>
2358 * config/fp-bit.c (_fpdiv_parts): Do not round when pack_d would
2359 round the same. When rounding, clear bits that would cause a
2360 second rounding in pack_d.
2361 (_fpmul_parts): Ditto. Remove #if 0:d code.
2363 2004-03-04 Ziemowit Laski <zlaski@apple.com>
2365 PR c++/14425, c++/14426
2366 * config/rs6000/altivec.h (vec_splat_s8, vec_splat_s16,
2367 vec_splat_s32, vec_splat_u8, vec_splat_u16, vec_splat_u32):
2368 Change C++ definitions to accept a 'const int' argument;
2369 the prototypes already do.
2370 * config/rs6000/rs6000.c (rs6000_common_init_builtins):
2371 Rename v4si_ftype_char, v8hi_ftype_char, v16qi_ftype_char,
2372 v4sf_ftype_v4si_char, v4si_ftype_v4sf_char, v4si_ftype_v4si_char,
2373 v8hi_ftype_v8hi_char, v16qi_ftype_v16qi_char,
2374 v16qi_ftype_v16qi_v16qi_char, v8hi_ftype_v8hi_v8hi_char,
2375 v4si_ftype_v4si_v4si_char and v4sf_ftype_v4sf_v4sf_char to
2376 end in ..._int; change them to accept an int instead of a char
2377 as the last parameter.
2379 2004-03-04 Phil Edwards <phil@codesourcery.com>
2381 * genmultilib: Change '=' to '-' when translating option names
2384 2004-03-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2386 * expr.c (expand_expr_real, case COMPONENT_REF): Get proper type of
2387 stack slot for temp used for result of BLKmode but in integral mode.
2389 2004-03-04 Jan Hubicka <jh@suse.cz>
2391 * reload.c (find_reloads): Reorganize if seqeunce to switch.
2393 * cfgrtl.c (rtl_redirect_edge_and_branch): Set the source BB as dirty.
2394 (cfglayout_redirect_edge_and_branch): Set the source BB as dirty.
2396 2004-03-04 Steve Ellcey <sje@cup.hp.com>
2398 * config/ia64/ia64.md (divdf3_internal_thr): Fix algorithm.
2399 * testsuite/gcc.dg/20040303-1.c: New test.
2401 2004-03-04 Steven Bosscher <stevenb@suse.de>
2403 * ppro.md: Rewrite as a DFA pipeline description.
2404 * i386.md: Remove all uses of the ppro_uops attribute.
2405 * i386.c: (ix86_safe_ppro_uops, ix86_dump_ppro_packet,
2406 ix86_reorder_insn, ix86_sched_reorder_ppro, ix86_sched_init,
2407 ix86_sched_reorder, ix86_variable_issue,
2408 struct ix86_sched_data, TARGET_SCHED_VARIABLE_ISSUE,
2409 TARGET_SCHED_INIT, TARGET_SCHED_REORDER): Remove.
2410 (ia32_use_dfa_pipeline_interface): Add TARGET_PENTIUMPRO.
2411 (ia32_multipass_dfa_lookahead): Add TARGET_PENTIUMPRO.
2412 * athlon.md (athlon_ssecmp_load): Fix comment
2414 2004-03-04 Stuart Hastings <stuart@apple.com>
2416 * gcc/doc/invoke.texi: Document -mlongcall for Darwin/PPC.
2418 2004-03-04 Stuart Hastings <stuart@apple.com>
2420 * gcc/config/i386/darwin.h: Darwin/x86 doesn't support CPUs before
2421 686, tell Darwin assembler to allow prefetch insns, non-empty def
2422 of SUBTARGET_OPTION_TRANSLATE_TABLE.
2424 2004-03-04 DJ Delorie <dj@redhat.com>
2426 PR optimization/14282
2427 * sched-deps.c (sched_analyze_insn): Allow a stack adjustment
2428 between a call and the assignment of its return value.
2430 2004-03-04 Kazu Hirata <kazu@cs.umass.edu>
2432 * config/h8300/h8300.c: Put a comment for every function.
2434 2004-03-04 Kazu Hirata <kazu@cs.umass.edu>
2436 * config/h8300/h8300.md: Add comments about peephole2's.
2438 2004-03-04 Steven Bosscher <stevenb@suse.de>
2440 * i386.h (TARGET_CPU_DEFAULT_nocona): Fix value.
2442 2004-03-04 Jan Hubicka <jh@suse.cz>
2444 * cfgcleanup.c (thread_jump): Update call of cselib_init.
2445 * cselib.c (cselib_record_memory): New static variable.
2446 (cselib_lookup_mem, cselib_record_set, cselib_record_sets):
2447 Give up on memories when asked for.
2448 (cselib_init): Accept new argument.
2449 * cselib.h (cselib_init): Update prototype.
2450 * gcse.c (local_cprop_pass): Update call of cselib_init.
2451 * loop.c (load_mems): Update call of cselib_init.
2452 * postreload.c (reload_cse_regs_1): Update call of cselib_init.
2453 * sched-deps.c (sched_analyze): Update call of cselib_init.
2455 2004-03-04 David Edelsohn <edelsohn@gnu.org>
2458 * config/rs6000/rs6000.c (output_function_profiler): Append @plt
2461 2004-03-04 Josef Zlomek <zlomekj@suse.cz>
2464 * var-tracking.c (track_expr_p): Do not track variables which
2465 should be ignored for debugging purposes.
2467 2004-03-04 Alan Modra <amodra@bigpond.net.au>
2469 * real.c (encode_ibm_extended): Don't bother rounding low double.
2470 * c-cppbuiltin.c (builtin_define_float_constants): Tweak MAX
2471 when fmt->pnan < fmt->p.
2473 2004-03-04 Eric Christopher <echristo@redhat.com>
2475 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Fix to check
2476 only range of valid arg registers and fixed_regs.
2478 2004-03-04 Alan Modra <amodra@bigpond.net.au>
2481 * config/rs6000/rs6000.md (abstf2, abstf2+1): Delete define_insn.
2482 (abstf2, abstf2_internal): New define_expand.
2484 2004-03-04 Eric Botcazou <ebotcazou@libertysurf.fr>
2486 PR optimization/14235
2487 * expr.c (convert_move): Copy the source to a new pseudo
2488 when converting from a sub-word source to a larger-than-word
2489 register which conflicts with the source.
2491 2004-03-03 Zack Weinberg <zack@codesourcery.com>
2494 * c-decl.c (diagnose_mismatched_decls): Issue an error for two
2495 parameters with the same name, unless one is a forward decl.
2496 Do not issue a redundant-redeclaration warning for forward
2497 decls of parameters.
2499 2004-03-04 David Edelsohn <edelsohn@gnu.org>
2501 * doc/install.texi (*-ibm-aix*): Document use of Bash to speed up
2504 2004-03-03 Ian Lance Taylor <ian@wasabisystems.com>
2506 * ggc-zone.c (ggc_pch_write_object): Don't align file pointer.
2508 2004-03-04 Alan Modra <amodra@bigpond.net.au>
2510 * target-def.h (TARGET_OPTF): Delete.
2511 * c-opts.c (TARGET_OPTF): Define.
2513 2004-03-04 Jan Hubicka <jh@suse.cz>
2515 * cselib.c (cselib_finish): Fix another miss-application of my previous
2518 2004-03-03 Mike Stump <mrs@apple.com>
2520 Add framework support for darwin.
2522 * c-incpath.c: Include target.h and machmode.h.
2523 (add_path): Use a consistent style for cpp_dir. Initialize
2525 (add_cpp_dir_path): New.
2526 (register_include_chains): Add use of extra_includes callback.
2527 (hook_void_int): Add.
2528 (target_c_incpath): Add.
2529 * c-incpath.h (add_cpp_dir_path): New.
2530 (target_c_incpath_s): Add.
2531 (target_c_incpath): Add.
2532 (C_INCPATH_INIT): Add.
2533 * c-opts.c (c_common_missing_argument,
2534 c_common_handle_option): Add -F argument processing.
2535 * c.opt: Add -F argument processing.
2536 * gcc.c (trad_capable_cpp): Add -F argument processing.
2537 * cppfiles.c (find_file_in_dir): Update to use construct
2539 (search_path_exhausted, cpp_get_path, cpp_get_buffer,
2541 (_cpp_find_file): Use search_path_exhausted.
2542 (make_cpp_dir): Initialize construct to 0.
2543 * cpplib.h (missing_header_cb
2544 cpp_get_path, cpp_get_buffer, cpp_get_file, cpp_get_prev): New.
2545 (cpp_callbacks): Add missing_header
2546 (cpp_dir): Add construct.
2547 * target-def.h: (TARGET_OPTF): New.
2548 * hooks.c (hook_void_int, hook_void_charptr): Add.
2549 * hooks.h (hook_void_int, hook_void_charptr): Add.
2550 * Makefile.in (c-incpath.o) : Add $(TARGET_H) and
2551 $(MACHMODE_H) dependencies.
2552 * doc/invoke.texi (Darwin Options): Document -F.
2553 * doc/tm.texi (TARGET_EXTRA_INCLUDES): Add.
2555 * fix-header.c (target_c_incpath): Add.
2557 * config/darwin-c.c: Add c-incpath.h include.
2558 (using_frameworks, find_subframework_file,
2559 find_subframework_header, add_system_framework_path,
2560 frameworks_in_use, num_frameworks, max_frameworks,
2561 add_framework, find_framework, struct framework_header,
2562 framework_header_dirs, framework_construct_pathname,
2563 find_subframework_file, add_system_framework_path,
2564 add_framework_path, framework_defaults,
2565 darwin_register_frameworks, find_subframework_header): Add.
2566 * config/darwin.h (TARGET_EXTRA_INCLUDES, TARGET_OPTF): New.
2567 (TARGET_OPTION_TRANSLATE_TABLE): Add -framework support.
2568 (CPP_SPEC): Add __APPLE_CC__ support.
2569 * t-darwin (darwin-c.o): Add c-incpath.h dependency.
2571 2004-03-04 Jan Hubicka <jh@suse.cz>
2573 * cselib.c (cselib_finish): Fix miss-application of my previous
2576 2004-03-03 Kazu Hirata <kazu@cs.umass.edu>
2578 * hooks.c (hook_tree_tree_identity): New.
2579 * hooks.h: Add a prototype for hook_tree_tree_identity.
2580 * stmt.c (expand_asm_operands): Use targetm.md_asm_clobbers
2581 instead of MD_ASM_CLOBBERS.
2582 * system.h (MD_ASM_CLOBBERS): Poison.
2583 * target-def.h (TARGET_MD_ASM_CLOBBERS): New.
2584 (TARGET_INITIALIZER): Add TARGET_MD_ASM_CLOBBERS.
2585 * target.h (gcc_target): Add md_asm_clobbers.
2586 * config/i386/i386.c (TARGET_MD_ASM_CLOBBERS): New.
2587 (ix86_md_asm_clobbers): New.
2588 * config/i386/i386.h (MD_ASM_CLOBBERS): Remove.
2589 * doc/tm.texi (MD_ASM_CLOBBERS): Change to
2590 TARGET_MD_ASM_CLOBBERS.
2592 2004-03-03 Stuart Hastings <stuart@apple.com>
2594 * gcc/config.gcc: Arrange for Darwin/x86 to build libgcc_eh.a.
2596 2004-03-03 Eric Botcazou <ebotcazou@libertysurf.fr>
2598 * config/sparc/sparc.c (noov_compare64_op): Fix typo.
2600 * config/sparc/sparc.h (ASM_FLOAT): Delete.
2601 (ASM_DOUBLE): Likewise.
2602 (ASM_LONGDOUBLE): Likewise.
2603 * config/sparc/pbd.h (ASM_INT_OP): Delete.
2605 2003-03-03 Richard Henderson <rth@redhat.com>
2608 * cselib.c (cselib_record_sets): Don't record multiple sets in
2611 2004-03-03 Mostafa Hagog <mustafa@il.ibm.com>
2613 * common.opt: Add description of the new -fgcse-after-reload flag.
2615 * flags.h (flag_gcse_after_reload): Declaration of global variable.
2617 * gcse.c (reg_used_on_edge ,reg_set_between_after_reload_p,
2618 reg_used_between_after_reload_p, rtx get_avail_load_store_reg,
2619 is_jump_table_basic_block, bb_has_well_behaved_predecessors,
2620 get_bb_avail_insn, hash_scan_set_after_reload,
2621 compute_hash_table_after_reload, eliminate_partially_redundant_loads,
2622 gcse_after_reload, get_bb_avail_insn): New functions to implement
2624 (gcse_after_reload_main): New function, the main entry point to
2627 * rtl.h (gcse_after_reload_main): Declaration of the new function.
2629 * opts.c (common_handle_option): Handle the -fgcse-after-reload flag.
2631 * toplev.c (flag_gcse_after_reload): Initialization.
2633 * passes.c (rest_of_handl_gcse2): Call gcse_after_reload_main.
2635 * params.def (PARAM_GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
2636 PARAM_GCSE_AFTER_RELOAD_CRITICAL_FRACTION): New parameters for tuning
2637 the gcse after reload optimization.
2639 * params.h (GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
2640 GCSE_AFTER_RELOAD_CRITICAL_FRACTION): Two macros to access the tuning
2643 * doc/invoke.texi: Documentation for the new flag gcse-after-reload.
2645 2004-03-03 Nicolas Pitre <nico@cam.org>
2647 * config/arm/ieee754-df.S (muldf3, divdf3): Fix denormalization of
2648 small negative values.
2650 2004-03-03 Jan Hubicka <jh@suse.cz>
2652 * cselib.c (hash_table): Remove GTY marker.
2653 (reg_values): Turn into array.
2654 (used_regs): Likewise.
2655 (n_used_regs): New static variable.
2656 (reg_values_old): Kill.
2657 (clear_table): Update uses of arrays.
2658 (cselib_lookup): Likewise.
2659 (cselib_record_set): Likewise.
2660 (cselib_init): Likewise.
2661 (cselib_finish): Likewise.
2662 (cselib_udpate_varray_sizes): Kill.
2663 * cselib.h (cselib_update_varray_sizes): Kill.
2665 2004-03-03 Paul Brook <paul@codesourcery.com>
2667 * flow.c (ior_reg_cond, and_reg_cond): Remove stray ")".
2669 2004-03-03 Jan Hubicka <jh@suse.cz>
2671 * ggc-common.c (ggc_alloc_cleared_stat, ggc_realloc_stat):
2672 Rename from ...; make statistics transparent.
2673 (ggc_alloc_cleared, ggc_realloc_stat): ... these.
2674 (loc_descriptor): New structure.
2675 (hash_descriptor, eq_descriptor, loc_descriptor, cmp_statistics,
2677 New static function.
2678 (ggc_record_overhead, dump_statistics): New global function.
2679 * ggc-none.c (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
2680 ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Rename
2681 from ...; accept locations
2682 (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
2683 ggc_realloc, ggc_alloc_typed): ... this one.
2684 from ...; accept locations
2685 * ggc-page.c (ggc_alloc_typed_stat, ggc_alloc_zone_stat,
2686 ggc_alloc_stat): Rename from ... ; pass locations
2687 * ggc-page.c (ggc_alloc_typed, ggc_alloc_zone, ggc_alloc):
2689 (ggc_alloc_stat): Record overehead.
2690 * ggc.h (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
2691 ggc_realloc, ggc_alloc_typed): Turn to macros
2692 (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
2693 ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Declare.
2694 (dump_ggc_loc_satistics, ggc_record_overehead): Declare.
2695 * langhooks.h (lhd_make_node): Declare.
2696 (LANG_HOOKS_MAKE_TYPE): Default to new function,
2697 * langhooks.c (lhd_make_node): New.
2698 * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Rename from ... ; pass
2700 (rtx_alloc, swallow_copy_rtx): ... this one.
2701 * rtl.h (rtx_alloc, swallow_copy_rtx): Turn to macros.
2702 * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Declare.
2703 * toplpev.c (finalize): Dump stats.
2704 * tree.c (make_node_stat, copy_node_stat, make_tree_vec_stat,
2705 build_tree_list_stat, tree_cons_stat, build?_stat, build_decl_stat):
2706 Rename from ... ; pass locators.
2707 (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
2708 build?, build_decl): Declare.
2709 * tree.h (make_node_stat, copy_node_stat, make_tree_vec_stat,
2710 build_tree_list_stat, tree_cons_stat, build?_stat, build_decl_stat):
2712 (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
2713 build?, build_decl): New macros.
2714 * Makefile.in (RTL_H, TREE_H): Add statistics.h dependency.
2715 * statistics.h: New file.
2717 2004-03-03 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2718 Richard Sandiford <rsandifo@redhat.com>
2720 * config/mips/mips.h (MASK_FIX_SB1): Bump.
2721 (MASK_FIX_R4400, TARGET_FIX_R4400): New macros.
2722 (TARGET_SWITCHES): Add -mfix-r4400 and -mno-fix-r4400.
2723 * config/mips/mips.c (mips_output_division): Fill the branch delay
2724 slot with a nop if TARGET_FIX_R4000. Extend R4000 workarounds to
2726 (mips_output_division): Adjust accordingly.
2727 (override_options): Make -march=r4400 imply -mfix-r4400 by default.
2728 * doc/invoke.texi: Document -mfix-r4400 and new errata workarounds.
2730 2004-03-03 Paolo Bonzini <bonzini@gnu.org>
2732 * alias.c (rtx_equal_for_memref_p): Use predicates
2733 to test rtx classes and new rtx class codes, possibly
2734 splitting conditionals that tested against '<' and 'o'.
2735 * caller-save.c (save_call_clobbered_regs): Likewise.
2736 * combine.c (contains_muldiv, find_split_point, subst,
2737 combine_simplify_rtx, simplify_if_then_else,
2738 simplify_set, simplify_logical, expand_compound_operation,
2739 make_compound_operation, if_then_else_cond, known_cond,
2740 apply_distributive_law, cached_nonzero_bits,
2741 cached_num_sign_bit_copies, simplify_shift_const,
2742 gen_binary, simplify_comparison, update_table_tick,
2743 record_value_for_reg, get_lsat_value_validate): Likewise.
2744 * cse.c (mention_regs, find_best_addr, find_comparison_args,
2745 fold_rtx, cse_insn, invalidate_memory, cse_basic_block):
2747 * emit-rtl.c (copy_insn_1): Likewise.
2748 * expr.c (force_operand): Likewise.
2749 * final.c (final_scan_insn, get_mem_expr_from_op): Likewise.
2750 * flow.c (notice_stack_pointer_modification_1,
2751 invalidate_mems_from_autoinc, ior_reg_cond, not_reg_cond,
2752 and_reg_cond, elim_reg_cond): Likewise.
2753 * function.c (update_epilogue_consts): Likewise.
2754 * genattrtab.c (attr_rtx_1): Likewise.
2755 * genopinit.c (gen_insn): Likewise.
2756 * integrate.c (subst_constants): Likewise.
2757 * jump.c (reversed_comparison_code_parts,
2758 reversed_comparison_code, delete_related_insns,
2759 rtx_renumbered_equal_p): Likewise.
2760 * local-alloc.c (block_alloc): Likewise.
2761 * loop.c (rtx_equal_for_prefetch_p, maybe_eliminate_biv,
2762 canonicalize_condition): Likewise.
2763 * loop-iv.c (simplify_using_conditions, iv_number_of_iterations):
2765 * optabs.c (add_equal_node, expand_binop): Likewise.
2766 * predict.c (estimate_probability): Likewise.
2767 * ra-debug.c (ra_print_rtx_2op, ra_print_rtx): Likewise.
2768 * recog.c (validate_replace_rtx_1, comparison_operator,
2769 offsettable_address_p, constrain_operands): Likewise.
2770 * reg-stack.c (swap_rtx_condition_1, subst_stack_regs_pat):
2772 * regclass.c (scan_one_insn): Likewise.
2773 * regmove.c (stable_and_no_regs_but_for_p): Likewise.
2774 * regrename.c (kill_autoinc_value): Likewise.
2775 * reload.c (find_reusable_reload, find_reloads,
2776 reg_overlap_mentioned_for_reload_p): Likewise.
2777 * reload1.c (gen_reload, delete_address_reloads_1): Likewise.
2778 * rtl.c (copy_rtx): Likewise.
2779 * rtl.h (CONSTANT_P, INSN_P): Likewise.
2780 * rtlanal.c (commutative_operand_precedence): Likewise.
2781 * sched-deps.c (conditions_mutex_p): Likewise.
2782 * sched-rgn.c (is_cfg_nonregular): Likewise.
2783 * simplify-rtx.c (simplify_gen_binary,
2784 simplify_gen_relational, simplify_replace_rtx,
2785 simplify_unary_operation, simplify_binary_operation,
2786 simplify_ternary_operation, simplify_rtx): Likewise.
2787 * unroll.c (reg_dead_after_loop): Likewise.
2788 * config/alpha/alpha.c (alpha_swapped_comparison_operator,
2789 print_operand): Likewise.
2790 * config/arc/arc.c (proper_comparison_operator): Likewise.
2791 * config/arm/arm.c (arm_arm_address_cost, arm_select_cc_mode):
2793 * config/avr/avr.c (_reg_unused_after): Likewise.
2794 * config/frv/frv.c (frv_ifcvt_modify_tests,
2795 frv_ifcvt_modify_insn, frv_pack_insn): Likewise.
2796 * config/i386/i386.c (ix86_comparison_operator,
2797 ix86_carry_flag_operator, fcmov_comparison_operator,
2798 arith_or_logical_operator, print_operand,
2799 ix86_expand_binary_operator, ix86_binary_operator_ok):
2801 * config/i386/i386.md: Likewise.
2802 * config/ia64/ia64.c (not_postinc_memory_operand,
2803 ia64_print_operand, update_set_flags, errata_emit_nops):
2805 * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS,
2806 CONSTRAINT_OK_FOR_S): Likewise.
2807 * config/ip2k/ip2k.c (mdr_resequence_xy_yx,
2808 mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
2809 ip2k_xexp_not_uses_reg_for_mem, ip2k_xexp_not_uses_reg_p,
2810 ip2k_composite_xexp_not_uses_reg_p, ip2k_unary_operator):
2812 * config/iq2000/iq2000.c (cmp_op, symbolic_expression_p,
2813 eqne_comparison_operator, signed_comparison_operator):
2815 * config/mips/mips.c (cmp_op, symbolic_expression_p):
2817 * config/mmix/mmix (mmix_foldable_comparison_operator,
2818 mmix_comparison_operator): Likewise.
2819 * config/pa/pa.c (hppa_legitimize_address): Likewise.
2820 * config/rs6000/rs6000.c (stmw_operation,
2821 branch_comparison_operator, trap_comparison_operator,
2823 * config/rs6000/rs6000.h (SELECT_CC_MODE): Likewise.
2824 * config/s390/s390.c (s390_alc_comparison,
2825 s390_slb_comparison):L Likewise.
2826 * config/sh/sh.c (gen_block_redirect, reg_unused_after):
2828 * config/sparc/sparc.c (eq_or_neq, normal_comp_operator,
2829 noov_compare_op, noov_compare64_op, v9_regcmp_op,
2830 emit_hard_tfmode_operation, reg_unused_after)
2831 * doc/md.texi, doc/rtl.texi: Likewise.
2833 * ra-debug.c: Add 2004 to list of copyright years.
2834 * unroll.c: Likewise.
2836 * combine.c (simplify_logical): Remove dummy test,
2837 (apply_distributive_law): Fix typo in comment.
2838 GET_CODE (x) == AND so x is a commutative binary op.
2839 * jump.c (delete_related_insns): simplify loop
2840 condition, move testing of RTX codes inside the loop.
2841 (rtx_renumbered_equal_p): do not use RTX_CODE.
2842 * rtl.c (rtx_class): Declare as enum rtx_class.
2843 * rtl.def (EQ, NE, UNEQ, LTGT, UNORDERED, ORDERED):
2844 Move to RTX_COMM_COMPARE class.
2845 (HIGH, SYMBOL_REF, LABEL_REF, CONST, CONST_INT, CONST_DOUBLE):
2846 Move to RTX_CONST_OBJ class.
2847 * rtl.h (enum rtx_class): New declaration,
2848 (RTX_OBJ_MASK, RTX_OBJ_RESULT, RTX_COMPARE_MASK,
2849 RTX_COMPARE_RESULT, RTX_ARITHMETIC_MASK, RTX_ARITHMETIC_RESULT,
2850 RTX_BINARY_MASK, RTX_BINARY_RESULT, RTX_COMMUTATIVE_MASK,
2851 RTX_COMMUTATIVE_RESULT, RTX_NON_COMMUTATIVE_RESULT,
2852 RTX_EXPR_FIRST, RTX_EXPR_LAST, UNARY_P, BINARY_P,
2853 ARITHMETIC_P, COMMUTATIVE_ARITHMETIC_P, COMPARISON_P,
2854 SWAPPABLE_OPERANDS_P, NON_COMMUTATIVE_P, COMMUTATIVE_P,
2855 OBJECT_P): New macros.
2856 * config/sparc/sparc.c (noov_compare_op): Remove register
2859 2004-03-03 Kazu Hirata <kazu@cs.umass.edu>
2861 * target.h: Remove texi jargons in comments.
2863 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
2865 * config/h8300/lib1funcs.asm (___fixunssfsi): Change the
2869 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
2870 * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
2872 * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
2873 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
2875 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
2877 * doc/md.texi (cbranchmode4): New.
2879 2004-03-02 Eric Christopher <echristo@redhat.com>
2881 * config/mips/mips16.S: Change fixsfsi and fixdfsi to
2883 * config/mips/mips.c (mips_init_libfuncs): Change accordingly.
2884 * config/mips/t-elf (LIB1ASMFUNCS): Ditto.
2885 * config/mips/t-isa3264 (LIB1ASMFUNCS): Ditto.
2886 * config/mips/t-r3900 (LIB1ASMFUNCS): Ditto.
2888 2004-03-02 Richard Henderson <rth@redhat.com>
2891 * coverage.c (coverage_counter_ref): Set MEM_NOTRAP_P.
2892 * optabs.c (prepare_cmp_insn): Force trapping memories to registers
2893 before the compare, if flag_non_call_exceptions.
2895 2004-03-02 Richard Henderson <rth@redhat.com>
2898 * stmt.c (expand_computed_goto): Do do_pending_stack_adjust before
2899 emitting the label, not after.
2901 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
2903 * config/m68hc11/m68hc11.c (m68hc11_addr_mode): New variable.
2904 (m68hc11_mov_addr_mode): Likewise.
2905 (m68hc11_override_options): Initialize them based on target.
2906 (register_indirect_p): Allow a MEM for indirect addressing modes and
2907 use flags to control what is allowed.
2908 (m68hc11_small_indexed_indirect_p): Use m68hc11_mov_addr_mode for
2909 supported addressing modes.
2910 (m68hc11_register_indirect_p): Use m68hc11_addr_mode.
2911 (go_if_legitimate_address_internal): Likewise.
2912 (m68hc11_indirect_p): Likewise and check the mode.
2913 (print_operand): Allow a (MEM (MEM)) and generate indirect addressing.
2915 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
2917 * builtins.c (BUILTIN_SETJMP_FRAME_VALUE): Remove.
2918 (expand_builtin_setjmp_setup): Use
2919 targetm.builtin_setjmp_frame_value instead of
2920 BUILTIN_SETJMP_FRAME_VALUE.
2921 * system.h (BUILTIN_SETJMP_FRAME_VALUE): Poison.
2922 * target-def.h (TARGET_BUILTIN_SETJMP_FRAME_VALUE): New.
2923 (TARGET_INITIALIZER): Add TARGET_BUILTIN_SETJMP_FRAME_VALUE.
2924 * target.h (gcc_target): Add builtin_setjmp_frame_value.
2925 * targhooks.c (default_builtin_setjmp_frame_value): New.
2926 * targhooks.h: Add a prototype for
2927 default_builtin_setjmp_frame_value.
2928 * doc/tm.texi (BUILTIN_SETJMP_FRAME_VALUE): Change to
2929 TARGET_BUILTIN_SETJMP_FRAME_VALUE.
2931 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
2933 * config/m68hc11/m68hc11.md (move peephole2): New peepholes to optimize
2935 (add peepholes): New peepholes to optimize sequences adding small
2937 (bset peepholes): New peepholes to transform an OR in a bset form
2938 (bclr peepholes): Likewise for bclr form.
2939 (cmp peepholes): New peepholes to avoid register copies when comparing.
2941 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
2943 * config/m68hc11/m68hc11.md ("*pushdi_internal"): New insn and split
2944 to separate push from moves.
2945 ("*pushdf_internal"): Likewise.
2946 ("*pushsf_internal"): Likewise.
2947 ("*pushsi_internal"): Likewise.
2948 ("movdi_internal"): Use define_insn_and_split; non push operand.
2949 ("movdf_internal"): Likewise.
2950 ("movsf_internal"): Likewise.
2951 ("movsi_internal"): Likewise.
2952 ("*movhi_68hc12", "*addhi3_68hc12"): Fix and tune constraints
2953 ("*addhi3", "*subhi3", "*andhi3_mem", "*iorhi3_mem"): Likewise.
2954 ("*ashlsi3_const1", "*lshrsi3_const1"): Likewise.
2956 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
2958 * config/m68hc11/m68hc11.md ("tstqi_z_used"): Use define_insn_and_split.
2959 ("cmphi_z_used", "cmpqi_z_used"): Likewise.
2960 ("movstrictsi", "movstricthi", "movstrictqi"): Likewise.
2961 ("anddi3", "andsi3", "iordi3", "iorsi3"): Likewise.
2962 ("xordi3", "xorsi3", "*logicalsi3_zexthi"): Likewise.
2963 ("*logicalsi3_zextqi", "*logicalhi3_zexthi_ashift8"): Likewise.
2964 ("logicalhi3_zexthi", "*logicalsi3_silshr16"): Likewise.
2965 ("*logicalsi3_silshl16", "*logicalsi3_silshl16_zext"): Likewise.
2966 ("*ashldi3_const32", "*ashldi3_const1", "addsi_silshr16"): Likewise.
2967 ("addsi_andshr16", "*ashlsi3_const16_zexthi"): Likewise.
2968 ("*lshrdi3_const32", "*lshrdi_const1"): Likewise.
2970 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
2972 * config/m68hc11/m68hc11.md (SOFT_TMP_REGNUM): Define.
2973 (SOFT_XY_REGNUM): Define.
2974 (cmp split): Use the above instead of hard coded numbers.
2975 (8-bit op split): No need to check the mode; allow Q_REG.
2976 (ashift split): Adjust the first operand if it uses the SP and we
2977 are pushing the shifted value.
2978 (plus shift split): Fix when a source is in register D+X.
2979 ("doloop_end"): Pass dummy arguments to gen_rtx_NE.
2981 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
2983 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix when
2984 comparing with Z register.
2986 2004-03-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2988 * cfgloop.h (struct loop_desc): Removed.
2989 (struct loop): Fields simple, desc and has_desc removed.
2990 (simple_loop_p, count_loop_iterations): Declaration removed.
2991 * cfgloopanal.c (struct unmark_altered_insn_data): Removed.
2992 (unmark_altered, blocks_invariant_registers, unmark_altered_insn
2993 blocks_single_set_registers, invariant_rtx_wrto_regs_p_helper,
2994 invariant_rtx_wrto_regs_p, test_for_iteration, constant_iterations,
2995 simple_loop_exit_p, variable_initial_value, variable_initial_values,
2996 simple_condition_p, simple_increment, count_strange_loop_iterations,
2997 inverse, fits_in_mode_p, simple_loop_p, count_loop_iterations):
2999 * loop-iv.c (check_simple_exit, find_simple_exit): Update comments.
3001 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
3003 * genattrtab.c: Don't handle MATCH_INSN.
3004 * genrecog.c: Likewise.
3005 * gensupport.c: Likewise.
3006 * rtl.def (match_insn): Remove.
3007 * doc/md.texi (match_insn, match_insn2): Remove.
3009 2004-03-02 Mark Mitchell <mark@codesourcery.com>
3011 * doc/c-tree.texi (DECL_ASSEMBLER_NAME): Mention that using this
3012 macro results in memory allocation.
3014 2004-03-02 David O'Brien <obrien@FreeBSD.org>
3016 * config/freebsd-spec.h (FBSD_DYNAMIC_LINKER): Add.
3017 * config/alpha/freebsd.h (SUBTARGET_EXTRA_SPECS): Define
3018 %(fbsd_dynamic_linker),
3019 (LINK_SPEC): Use %(fbsd_dynamic_linker), and sync style with
3020 config/i386/freebsd.h
3021 * config/arm/freebsd.h: Ditto.
3022 * config/i386/freebsd.h: Ditto.
3023 * config/i386/freebsd64.h: Ditto.
3024 * config/ia64/freebsd.h: Ditto.
3025 * config/rs6000/sysv4.h: Ditto.
3026 * config/sparc/freebsd.h: Ditto.
3028 2004-03-02 Loren James Rittle <ljrittle@acm.org>
3030 * gcc/doc/install.texi (*-*-freebsd*): Update target information.
3032 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
3034 * rtl.def (define_combine): Remove.
3036 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
3038 * config/h8300/h8300.md: Tweak formatting.
3040 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
3042 * config/h8300/h8300.md (*cmphi_h8300): Rename to
3044 (*cmphi_h8300hs): Rename to *cmphi_h8300hs_znvc.
3046 2004-03-01 Mark Mitchell <mark@codesourcery.com>
3049 * gcc.c (process_command): Remove const-qualification from argv.
3052 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
3054 * config/h8300/h8300.md (pushqi1_h8300hs): Rename to
3055 pushqi1_h8300hs_advanced. Adjust its caller.
3056 (pushhi1_h8300hs): Rename to pushhi1_h8300hs_advanced.
3059 2004-03-02 Nicolas Roche <roche@act-europe.fr>
3061 * Makefile.in (install-libgcc, install-multilib): Pass
3062 mkinstalldirs var to libgcc.mk.
3064 2004-03-01 Kazu Hirata <kazu@cs.umass.edu>
3066 * system.h (DBX_OUTPUT_STANDARD_TYPES): Poison.
3067 * doc/tm.texi (DBX_OUTPUT_STANDARD_TYPES): Remove.
3069 2004-03-01 Kazu Hirata <kazu@cs.umass.edu>
3071 * config/h8300/h8300.c (gtle_operator): Accept GT and LE.
3072 * config/h8300/h8300.md: Split several peephole2's, each into
3075 2004-03-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3077 * dominance.c (recount_dominator): Handle postdominators.
3079 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
3081 * config/mips/mips-protos.h (enum mips_symbol_type): Move from mips.h.
3082 (NUM_SYMBOL_TYPES): Likewise.
3083 (SYMBOL_64_HIGH, SYMBOL_64_MID, SYMBOL_64_LOW): New symbol types.
3084 (mips_unspec_address): Declare.
3085 (mips_gotoff_page, mips_gotoff_global): Delete.
3086 * config/mips/mips.h (PREDICATE_CODES): Add general_symbolic_operand.
3087 * config/mips/mips.c (enum mips_symbol_type, NUM_SYMBOL_TYPES): Delete.
3088 (mips_symbolic_constant_p, mips_symbolic_address_p)
3089 (mips_symbol_insns): Handle new symbol types.
3090 (general_symbolic_operand): New predicate.
3091 (mips_unspec_address): Make extern.
3092 (mips_gotoff_page, mips_gotoff_global): Delete.
3093 (override_options): Allow -mabi=64 -mno-abicalls -mexplicit-relocs.
3094 Handle new symbol types.
3095 * config/mips/mips.md (*lea_high64, *lea64): New patterns.
3096 (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_disp[sd]i): Call
3097 mips_unspec_address directly.
3098 * doc/invoke.texi: Remove the -mabi=64 -mno-abicalls exception from
3099 the documentation of -mexplicit-relocs.
3101 2004-03-01 Jeff Law <law@redhat.com>
3103 * fold-const.c (fold): An equality comparison of a non-weak object
3104 against zero has a known result. Similarly an equality comparison
3105 of the address of two non-weak, unaliased symbols has a known result.
3107 * ggc-page.c (struct page_entry): New field PREV.
3108 (ggc_alloc): Update PREV field appropriately.
3109 (sweep_pages): Likewise.
3110 (ggc_free): Likewise. Use PREV field rather than loop to
3111 improve ggc_free performance.
3113 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
3115 * config/mips/mips.c (mips_output_division): Use the division
3116 instruction to fill the delay slot of a zero check.
3117 (mips_idiv_insns): Adjust accordingly.
3119 2004-03-01 Nathanael Nerode <neroden@gcc.gnu.org>
3121 * config.gcc: Create a default tmake_file for linux, and use
3122 it in all but two linux clauses. Comment those two.
3124 2004-03-01 Paolo Bonzini <bonzini@gnu.org>
3126 * combine.c (try_combine): Do not refer to is_replaced.
3127 (gen_lowpart_for_combine): Perverse subregs now have a
3128 more politically correct name.
3129 * cse.c (cse_insn): Likewise.
3130 * jump.c: Fix bogus reference to delete_insn.
3132 2004-02-29 Mark Mitchell <mark@codesourcery.com>
3135 * dwarf2out.c (gen_enumeration_type_die): Output all enumeration
3136 constants as signed values.
3139 * c-tree.h (readonly_warning): Rename to ...
3140 (readonly_error): ... this.
3141 * c-typeck.c (build_unary_op): Adjust accordingly.
3142 (readonly_warning): Rename to ...
3143 (readonly_error): ... this and issue errors, not warnings.
3144 (build_modify_expr): Call readonly_error, not readonly_warning.
3145 (c_expand_asm_operands): Likewise.
3146 * tree-inline.c (optimize_inline_calls): Do not inline functions
3147 after errors have occurred.
3149 2004-02-29 Nathanael Nerode <neroden@gcc.gnu.org>
3151 * configure.ac: Rearrange some threading code for clarity;
3152 add section comment.
3153 * configure: Regenerate.
3155 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
3157 * passes.c, config/frv/frv.c, config/sh/sh.c: Fix comment
3159 * doc/cppopts.texi: Fix a typo.
3161 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
3163 * config/i386/i386.md: Fix formatting.
3165 2004-02-29 Nathanael Nerode <neroden@gcc.gnu.org>
3167 * configure.ac: Add some comments delineating sections of code.
3169 * doc/install.texi: Note that libada uses autoconf 2.57 also.
3171 * doc/install.texi: Fix idiot typo in previous commit.
3173 * doc/install.texi: Update for conversion of intl to autoconf 2.57.
3175 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
3177 * config/h8300/h8300.md: Add comments about peephole2's.
3179 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
3181 * config/h8300/h8300.md: Tweak operand numbers of some
3184 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
3186 * config/h8300/h8300.md: Tweak comments about peephole2's.
3188 2004-02-29 Waldek Hebisch <hebisch@math.uni.wroc.pl>
3191 * function.c (uninitialized_vars_warning): Use DECL_RTL_SET_P
3192 instead of testing whether DECL_RTL is not NULL.
3194 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
3196 * config/sh/sh.c: Fix formatting.
3198 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
3200 * config/sh/sh.c: Convert to ISO-C.
3202 2004-02-28 Andrew Pinski <pinskia@physics.uc.edu>
3204 * c-typeck.c (tagged_types_tu_compatible_p): Fix pasto in
3207 * config/darwin.h (machopic_finish): Output stub even if the
3208 symbol is already defined.
3210 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3212 * pa64-hpux.h (LIB_SPEC): Fix linking under HP-UX 11.00 with -p and -pg.
3214 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
3216 * genattr.c (main): Don't define
3217 TRADITIONAL_PIPELINE_INTERFACE or DFA_PIPELINE_INTERFACE.
3218 * system.h (TRADITIONAL_PIPELINE_INTERFACE): Poison.
3219 (DFA_PIPELINE_INTERFACE): Likewise.
3220 * doc/tm.texi (TRADITIONAL_PIPELINE_INTERFACE): Remove.
3221 (DFA_PIPELINE_INTERFACE): Likewise.
3223 2004-02-28 Richard Sandiford <rsandifo@redhat.com>
3225 * config/mips/mips.md (tstsi, tstdi): Delete.
3227 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3229 * config/mips/mips.c (override_options): Remove an obsolete
3230 duplicate definition of the "e" constraint.
3231 * config/mips/mips.h: Update a comment accordingly.
3233 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3235 * config/mips/mips.md: Complete the unfinished R4000
3236 multiply/shift errata workaround. Improve documentation.
3237 (hazard): Use TARGET_FIX_R4000 to decide whether an "imul" instruction
3239 (mulsi3, mulsi3_internal, mulsi3_r4000): Use TARGET_FIX_R4000.
3240 (muldi3, muldi3_internal): Likewise.
3241 (muldi3_internal2): Remove, replacing with...
3242 (muldi3_mult3, muldi3_r4000): ...these new patterns.
3243 (mulsidi3): Take the errata into account.
3244 (mulsidi3_32bit): Remove, replacing with...
3245 (mulsidi3_32bit_internal, mulsidi3_32bit_r4000): ...these new patterns.
3246 (mulsidi3_64bit, mulsidi3_64bit_parts): Disable if TARGET_FIX_R4000.
3247 (umulsidi3): Take the errata into account.
3248 (umulsidi3_32bit): Remove, replacing with..
3249 (umulsidi3_32bit_internal, umulsidi3_32bit_r4000): ...these patterns.
3250 (umulsi3_highpart, umulsi3_highpart_internal): Disable if
3252 (smulsi3_highpart, smulsi3_highpart_internal): Likewise.
3253 (smuldi3_highpart, umuldi3_highpart): Likewise.
3254 * doc/invoke.texi: Document the errata workaround.
3256 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3258 * config/mips/mips-protos.h (mips_idiv_insns): Declare.
3259 * config/mips/mips.h (MASK_FIX_SB1): Bump.
3260 (MASK_FIX_R4000, TARGET_FIX_R4000): New macros.
3261 (TARGET_SWITCHES): Add -mfix-r4000 and -mno-fix-r4000.
3262 * config/mips/mips.c (mips_idiv_insns): New function.
3263 (override_options): Make -march=r4000 imply -mfix-r4000 by default.
3264 (mips_output_division): Add a workaround for the R4000 divide/shift
3266 * config/mips/mips.md (length): Use mips_idiv_insns() to calculate
3267 the length of an "idiv" instruction.
3268 * doc/invoke.texi: Document the new switches.
3270 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
3272 * doc/tm.texi (IS_COSTLY_DEPENDENCE): Change to
3273 TARGET_SCHED_IS_COSTLY_DEPENDENCE.
3275 2004-02-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3277 PR optimization/14229
3278 * cfgrtl.c (rtl_tidy_fallthru_edge): Do not fail for !onlyjump jump.
3280 2004-02-28 Eric Botcazou <ebotcazou@act-europe.fr>
3282 * fold-const.c (fold): Strip NOPs that change the signedness
3283 for RSHIFT too. Expand comment.
3285 2004-02-27 Ian Lance Taylor <ian@wasabisystems.com>
3287 PR optimization/7871
3288 * flow.c (mark_set_1): Don't add LOG_LINKS for global registers
3289 from or to call insns.
3291 2004-02-27 Eric Botcazou <ebotcazou@libertysurf.fr>
3293 PR optimization/7871
3294 * flow.c (propagate_one_insn): Interpret calls as setting global
3295 registers, not merely clobbering them.
3297 2004-02-27 Dale Johannesen <dalej@apple.com>
3299 * config/darwin.c (machopic_output_possible_stub_label): Remove.
3300 config/darwin-protos.h: Ditto.
3301 config/darwin.h: Remove call to it.
3302 * combine.c (distribute_notes): Do not place a REG_DEAD note
3303 when value is both set and used.
3305 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
3307 * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
3309 * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
3310 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
3312 2004-02-27 Andrew Pinski <apinski@apple.com>
3314 * c-typeck.c (tagged_types_tu_compatible_p) <ENUMERAL_TYPE>:
3315 Speedup common case of the type values being in the same order.
3317 2004-02-27 Steve Ellcey <sje@cup.hp.com>
3319 * config/ia64/ia64.h (no-inline-float-divide): New option.
3320 * config/ia64/ia64.h (no-inline-int-divide): New option.
3321 * config/ia64/ia64.h (no-inline-sqrt): New option.
3322 (TARGET_DEFAULT): Add MASK_INLINE_FLOAT_DIV_THR to define.
3323 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
3324 * config/ia64/ia64.c (ia64_override_options): Modify error
3325 checking for inlined division/sqrt.
3327 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
3329 * bb-reorder.c, cfgbuild.c, diagnostic.c, explow.c, profile.c,
3330 ra-build.c, read-rtl.c, tracer.c, unwind-dw2-fde-glibc.c,
3331 value-prof.c, config/darwin-protos.h, config/frv/frv-abi.h,
3332 config/i386/pmmintrin.h, config/pa/pa-hpux.h: Update
3335 2004-02-27 Paul Brook <paul@codesourcery.com>
3337 * function.c (assign_parms): Don't count pretend args for alignment.
3339 2004-02-27 Richard Henderson <rth@redhat.com>
3341 * passes.c: New file.
3342 * Makefile.in (OBJS-common): Add it.
3343 * diagnostic.c (rtl_dump_and_exit): Move decl ...
3344 * flags.h (rtl_dump_and_exit): ... here.
3345 * output.h (size_directive_output, last_assemble_variable_decl):
3347 * rtl.h (reg_alloc): Move from toplev.c.
3348 * toplev.c (HAVE_conditional_execution, DUMPFILE_FORMAT,
3349 struct dump_file_info, enum dump_file_index, dump_file_tbl,
3350 open_dump_file, close_dump_file, rest_of_decl_compilation,
3351 rest_of_type_compilation, rest_of_handle_final,
3352 rest_of_handle_delay_slots, rest_of_handle_stack_regs,
3353 rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
3354 rest_of_handle_new_regalloc, rest_of_handle_old_regalloc,
3355 rest_of_handle_regrename, rest_of_handle_reorder_blocks,
3356 rest_of_handle_sched, rest_of_handle_sched2, rest_of_handle_regmove,
3357 rest_of_handle_tracer, rest_of_handle_if_conversion,
3358 rest_of_handle_if_after_combine, rest_of_handle_web,
3359 rest_of_handle_branch_prob,
3360 rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
3361 rest_of_handle_addressof, rest_of_handle_sibling_calls,
3362 rest_of_handle_jump_bypass, rest_of_handle_inlining,
3363 rest_of_handle_null_pointer, rest_of_handle_combine,
3364 rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
3365 rest_of_handle_gcse, rest_of_handle_loop_optimize,
3366 rest_of_handle_loop2, rest_of_compilation): Move to passes.c.
3367 (decode_d_option): Use enable_rtl_dump_file.
3368 (compile_file, finalize, do_compile): Move profile+combine+graph
3369 cleanup to finish_optimization_passes.
3370 * toplev.h (init_optimization_passes, finish_optimization_passes,
3371 enable_rtl_dump_file): Declare.
3373 2004-02-27 Eric Botcazou <ebotcazou@act-europe.fr>
3374 Roger Sayle <roger@eyesopen.com>
3376 * fold-const.c (fold): Revert 2004-02-25 change. Use the original
3377 operands to build a tree with swapped operands.
3378 * expr.c (expand_expr_real) <MAX_EXPR>: Consistently use the
3379 'unsignedp' predicate to specify the signedness.
3381 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
3383 * c-decl.c, c-ppoutput.c, combine.c, cppfiles.c, dwarf2out.c,
3384 expr.c, fold-const.c, gcc.c, haifa-sched.c, loop-iv.c,
3385 params.def, read-rtl.c, rtl.c, rtlanal.c, toplev.c: Fix
3386 comment typos and formatting. Follow spelling conventions.
3388 2004-02-26 Aldy Hernandez <aldyh@redhat.com>
3390 * config/rs6000/rs6000.md: Add fixuns_truncsfsi2 and
3393 * config/rs6000/spe.md: Delete spe_efsctuiz.
3394 Add spe_fixuns_truncsfsi2.
3395 Add spe_fix_truncsfsi2.
3397 2004-02-26 Eric Christopher <echristo@redhat.com>
3399 * c-lex.c (c_lex_string_translate): New variable.
3400 (lex_string): Use to determine string translation.
3401 * c-pragma.h: Prototype.
3402 * c-parse.in (start_string_translation): New. Set above.
3403 (stop_string_translation): Ditto.
3404 (attribute, attribute_list, asm_def, asm_stmt,
3405 asm_operand): Use above functions.
3406 * cp/parser.c (cp_parser_declaration): Translate strings
3407 unless token is RID_EXTERN. Set c_lex_string_translate
3409 (cp_parser_asm_definition): Only translate argument strings
3411 (cp_parser_asm_operand_list): Ditto.
3412 (cp_parser_attribute_list): Do not translate attribute strings.
3414 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
3416 * stmt.c (expand_start_case_dummy): Remove.
3417 * tree.h: Remove the corresponding prototype.
3419 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
3421 * builtins.c (apply_args_register_offset): Remove.
3422 * tree.h: Remove the corresponding prototype.
3424 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
3426 * stor-layout.c (is_pending_size): Remove.
3427 * tree.h: Remove the corresponding prototype.
3429 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
3431 * recog.c (validate_replace_src): Remove.
3432 * recog.h: Remove the corresponding prototype.
3434 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
3436 * calls.c: Don't reference FINAL_REG_PARM_STACK_SPACE or
3437 MAYBE_REG_PARM_STACK_SPACE.
3438 * function.c: Likewise.
3439 * system.h (FINAL_REG_PARM_STACK_SPACE): Poison.
3440 (MAYBE_REG_PARM_STACK_SPACE): Likewise.
3441 * doc/tm.texi (FINAL_REG_PARM_STACK_SPACE): Remove.
3442 (MAYBE_REG_PARM_STACK_SPACE): Likewise.