Makefile.in (C_PRETTY_PRINT_H): Add c-pretty-print.h.
[gcc.git] / gcc / ChangeLog
1 2004-08-15 Ziemowit Laski <zlaski@apple.com>
2
3 * Makefile.in (C_PRETTY_PRINT_H): Add c-pretty-print.h.
4 (c-lang.o): Depend on c-objc-common.h.
5 (c-objc-common.o): Depend on $(C_PRETTY_PRINT_H) and
6 c-objc-common.h; remove duplicate $(C_TREE_H) dependency.
7 * c-lang.c: Include c-objc-common.h.
8 (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS,
9 LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION,
10 LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS,
11 LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P,
12 LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE,
13 LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION,
14 LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL,
15 LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME,
16 LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL,
17 LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED,
18 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL,
19 LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
20 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
21 LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
22 LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
23 LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
24 LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING,
25 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
26 LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN,
27 LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE,
28 LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE,
29 LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE,
30 LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO,
31 LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS):
32 Move to c-objc-common.h.
33 * c-objc-common.c: Include c-objc-common.h.
34 * c-objc-common.h: New file.
35
36 2004-08-15 Andreas Tobler <a.tobler@schweiz.ch>
37 Andrew Pinski <pinskia@physics.uc.edu>
38
39 PR target/14931
40 * config/rs6000/darwin-tramp.asm (L_abort$stub): Change to new stub
41 style.
42
43 2004-08-15 Nathan Sidwell <nathan@codesourcery.com>
44
45 * tree.h (build_int_cst): New.
46 (build_int_2): Remove.
47 * tree.c (build_int_2): Remove.
48 (build_int_cst): New.
49 (make_vector_type, build_common_tree_nodes,
50 build_common_tree_nodes_2): Use build_int_cst.
51 * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
52 expand_builtin_strpbrk, expand_builtin_fputs,
53 build_string_literal, expand_builtin_printf,
54 expand_builtin_sprintf, fold_builtin_lround, fold_builtin_bitop,
55 fold_builtin_bitop, fold_builtin_isascii, fold_builtin_toascii,
56 fold_builtin_isdigit, simplify_builtin_strstr,
57 simplify_builtin_strpbrk, fold_builtin_fputs,
58 simplify_builtin_sprintf): Use build_int_cst.
59 * c-common.c (start_fname_decls, fix_string_type,
60 c_common_nodes_and_builtins, c_init_attributes,
61 shorten_compare): Likewise.
62 * c-decl.c (complete_array_type,
63 check_bitfield_type_and_width): Likewise.
64 * c-lex.c (interpret_integer, lex_charconst): Likewise.
65 * c-parse.in (primary): <TYPES_COMPATIBLE_P> Likewise.
66 * c-pretty-print.c (pp_c_integer_constant): Likewise.
67 * c-typeck.c (really_start_incremental_init, push_init_level,
68 set_nonincremental_init_from_string): Likewise.
69 * calls.c (load_register_parameters): Likewise.
70 * convert.c (convert_to_pointer): Likewise.
71 * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
72 build_fn_info_type, build_ctr_info_value, build_gcov_info):
73 Likewise.
74 * except.c (init_eh, assign_filter_values, assign_filter_values):
75 Likewise.
76 * expmed.c (store_fixed_bit_field, extract_bit_field,
77 extract_fixed_bit_field, extract_split_bit_field, expand_shift,
78 expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
79 expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
80 * expr.c (convert_move, emit_group_load, emit_group_store,
81 expand_assignment, store_constructor, store_field,
82 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
83 * fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
84 invert_truthvalue, optimize_bit_field_compare,
85 decode_field_reference, all_ones_mask_p, constant_boolean_node,
86 fold_div_compare, fold, fold_read_from_constant_string,
87 fold_negate_const, fold_abs_const, fold_not_const): Likewise.
88 * function.c (assign_parm_setup_block): Likewise.
89 * stmt.c (shift_return_value, expand_end_case_type,
90 estimate_case_costs): Likewise.
91 * stor-layout.c (layout_type, initialize_sizetypes,
92 set_min_and_max_values_for_integral_type): Likewise.
93 * tree-chrec.c (chrec_fold_multiply_poly_poly,
94 reset_evolution_in_loop): Likewise.
95 * tree-chrec.h (build_polynomial_chrec): Likewise.
96 * tree-complex.c (build_replicated_const): Likewise.
97 * tree-eh.c (honor_protect_cleanup_actions,
98 lower_try_finally_onedest, lower_try_finally_copy,
99 lower_try_finally_switch): Likewise.
100 * tree-mudflap.c (mf_build_string, mx_register_decls,
101 mudflap_register_call, mudflap_enqueue_constant): Likewise.
102 * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
103 * tree-pretty-print.c (dump_generic_node): Likewise.
104 * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
105 Likewise.
106 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
107 * tree-ssa-loop-niter.c (number_of_iterations_cond,
108 loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
109 Likewise.
110
111 * config/alpha/alpha.c (alpha_initialize_trampoline,
112 alpha_va_start, alpha_gimplify_va_arg_1): Use build_int_cst.
113 * config/arm/arm.c (arm_get_cookie_size): Likewise.
114 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
115 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
116 * config/i860/i860.c (i860_va_start): Likewise.
117 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
118 * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
119 mips_gimplify_va_arg_expr): Likewise.
120 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
121 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
122 add_compiler_branch_island): Likewise.
123 * config/s390/s390.c (s390_va_start): Likewise.
124 * config/sh/sh.c (sh_va_start): Likewise.
125 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
126 Likewise.
127 * config/xtensa/xtensa.c (xtensa_va_start,
128 xtensa_gimplify_va_arg_expr): Likewise.
129
130 * objc/objc-act.c (build_objc_string_object,
131 build_objc_symtab_template, init_def_list, init_objc_symtab,
132 init_module_descriptor, generate_static_references,
133 build_selector_translation_table, get_proto_encoding,
134 build_typed_selector_reference, build_selector_reference,
135 build_next_objc_exception_stuff,
136 build_method_prototype_list_template, generate_descriptor_table,
137 generate_protocols, build_protocol_initializer,
138 build_ivar_list_template, build_method_list_template,
139 build_ivar_list_initializer, generate_ivars_list,
140 generate_dispatch_table, generate_protocol_list,
141 build_category_initializer, build_shared_structure_initializer,
142 generate_shared_structures, handle_impent,
143 generate_objc_image_info): Use build_int_cst.
144
145 2004-08-15 Ben Elliston <bje@au.ibm.com>
146
147 * vec.h: Comment improvements.
148
149 2004-08-14 Roger Sayle <roger@eyesopen.com>
150
151 * c-common.c (shorten_compare, pointer_int_sum,
152 c_common_truthvalue_conversion, boolean_increment): Replace calls
153 to build with calls to buildN.
154 * c-decl.c (complete_array_type, grokdeclarator): Likewise.
155 * c-gimplify.c (c_build_bind_expr, gimplify_c_loop,
156 gimplify_switch_stmt): Likewise.
157 * c-typeck.c (default_function_array_conversion,
158 build_component_ref, build_array_ref, build_function_call,
159 pointer_diff, build_unary_op, build_conditional_expr,
160 build_compound_expr, build_modify_expr, c_finish_goto_label,
161 c_finish_goto_ptr, c_finish_return, c_finish_loop,
162 c_finish_bc_stmt, c_finish_stmt_expr, c_end_compound_stmt,
163 build_binary_op): Likewise.
164
165 2004-08-15 Steven Bosscher <stevenb@suse.de>
166
167 * rtl.c (note_insn_name): Add NOTE_DISABLE_SCHED_OF_BLOCK.
168
169 2004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
170
171 * fixinc/inclhack.def (stdio_va_list): Also fix com_err.h, cps.h,
172 curses.h, krb5.h, lc_core.h, pfmt.h, wchar.h and curses_colr/curses.h.
173 * fixinc/fixincl.x: Rebuilt.
174
175 2004-08-14 Richard Sandiford <rsandifo@redhat.com>
176
177 * config/mips/mips-protos.h (mips_symbolic_constant_p)
178 (mips_atomic_symbolic_constant_p, mips_stack_address_p)
179 (mips_small_data_pattern_p): Declare.
180 * config/mips/mips.h (CONST_GP_P): Moved from mips.c.
181 (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
182 * config/mips/mips.c (mips_symbolic_constant_p): Make global.
183 (mips_atomic_symbolic_constant_p, mips_stack_address_p): New functions.
184 (uns_arith_operand, const_arith_operand, arith_operand, sle_operand)
185 (sleu_operand, small_int, reg_or_0_operand, const_float_1_operand)
186 (reg_or_const_float_1_operand, hilo_operand, extend_operator)
187 (macc_msac_operand, equality_op, cmp_op, trap_cmp_op)
188 (pc_or_label_operand, call_insn_operand, move_operand)
189 (consttable_operand, symbolic_operand, general_symbolic_operand)
190 (global_got_operand, local_got_operand, stack_operand)
191 (fp_register_operand, lo_operand, fcc_register_operand): Delete.
192 (mips_small_data_pattern_1): Renamed from small_data_pattern_1.
193 (mips_small_data_pattern_p): Replace previous small_data_pattern
194 predicate. Turn into a bool () (rtx) function.
195 * config/mips/predicates.md: New file.
196 * config/mips/mips.md: Include it. Use the target-independent
197 comparison_operator instead of cmp_op. Rename trap_cmp_op to
198 trap_comparison_operator and equality_op to equality_operator.
199 Replace uses of small_int with the equivalent const_arith_operand.
200 Rename reg_or_const_float_1_operand to reg_or_1_operand. Rename
201 const_float_1_operand to const_1_operand. Rename fcc_register_operand
202 to fcc_reload_operand.
203 * config/mips/sb1.md: Rename fp_register_operand to fpr_operand.
204
205 2004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
206
207 PR libstdc++/17005 partial fix.
208 * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _INCLUDE__STDC_A1_SOURCE
209 except when generating ANSI/C89 code.
210
211 2004-08-14 Nathan Sidwell <nathan@codesourcery.com>
212
213 * c-common.c (shorten_compare): Use force_fit_type directly.
214
215 2004-08-14 Gerald Pfeifer <gerald@pfeifer.com>
216 Dimitri Papadopoulos-Orfanos <papadopo@shfj.cea.fr>
217 Dave Korn <dk@artimi.com>
218
219 * doc/install.texi (Building): Avoid duplicate reference to GNU
220 make requirement.
221 (*-*-solaris2*): Do not recommend GNU make any longer. Simplify.
222
223 2004-08-14 Richard Henderson <rth@redhat.com>
224
225 * config/alpha/alpha.h (PROMOTE_MODE): Don't promote vector types.
226 * config/alpha/alpha.c (function_value): Use PROMOTE_MODE.
227
228 2004-08-13 Richard Henderson <rth@redhat.com>
229
230 * config/i386/i386.md (call_1, sibcall_1, call_1_rex64): Use Pmode
231 for constant_call_address_operand.
232 (call_value_pop_1, call_value_1): Likewise.
233 (sibcall_value_1, call_value_1_rex64): Likewise.
234
235 2004-08-13 James E Wilson <wilson@specifixinc.com>
236
237 * config/mips/sb1.md (ir_sb1_divdf_2pipes, ir_sb1_divdf_1pipe):
238 Correct mode from SFmode to DFmode.
239
240 2004-08-13 Ziemowit Laski <zlaski@apple.com>
241
242 * config/darwin.h (EXTRA_SECTION_FUNCTIONS): Mark the __sel_fixup,
243 __cstring_object and __image_info sections with the no_dead_strip
244 attribute.
245
246 2004-08-13 Roger Sayle <roger@eyesopen.com>
247 David Billinghurst <David.Billinghurst@riotinto.com>
248
249 PR libgfortran/15930
250 * fixinc/inclhack.def (irix___generic1, irix___generic2): New.
251 * fixinc/fixincl.x: Regenerate.
252 * fixinc/tests/base/internal/math_core.h: New file.
253
254 2004-08-13 Richard Henderson <rth@redhat.com>
255
256 * dbxout.c (NO_DBX_FUNCTION_END): Default to zero.
257 (dbxout_function_end): Remove ifdefs for it.
258 (dbxout_begin_prologue): Protect N_BNSYM with it, and gdb extensions.
259
260 2004-08-13 Richard Henderson <rth@redhat.com>
261
262 * Makefile.in (insn-preds.o): Depend on TREE_H.
263 * genpreds.c (write_insn_preds_c): Include tree.h.
264 * config/alpha/alpha.c (reg_or_0_operand, reg_or_6bit_operand,
265 reg_or_8bit_operand, cint8_operand, add_operand, sext_add_operand,
266 const48_operand, and_operand, or_operand, mode_width_operand,
267 mode_mask_operand, mul8_operand, const0_operand,
268 hard_fp_register_operand, hard_int_register_operand,
269 reg_or_cint_operand, some_operand, some_ni_operand, input_operand,
270 samegp_function_operand, direct_call_operand, small_symbolic_operand,
271 global_symbolic_operand, call_operand, symbolic_operand,
272 dtp16_symbolic_operand, dtp32_symbolic_operand,
273 gotdtp_symbolic_operand, tp16_symbolic_operand, tp32_symbolic_operand,
274 gottp_symbolic_operand, alpha_comparison_operator,
275 alpha_zero_comparison_operator, alpha_swapped_comparison_operator,
276 signed_comparison_operator, alpha_fp_comparison_operator,
277 divmod_operator, fix_operator, aligned_memory_operand,
278 unaligned_memory_operand, reg_or_unaligned_mem_operand,
279 any_memory_operand, reg_not_elim_operand, normal_memory_operand,
280 reg_no_subreg_operand, addition_operation): Move to predicates.md.
281 (reg_or_const_int_operand): Remove. Replace all users with
282 reg_or_cint_operand.
283 (tls_symbolic_operand_1): Export. Don't check mode or for CONST.
284 (resolve_reload_operand): Split out of aligned_memory_operand.
285 * config/alpha/alpha-protos.h: Update for exports.
286 * config/alpha/alpha.h (PREDICATE_CODES): Remove.
287 * config/alpha/alpha.md: Include predicates.md.
288 * config/alpha/predicates.md: New file.
289
290 2004-08-13 Richard Sandiford <rsandifo@redhat.com>
291
292 * genattrtab.c (insn_ent): Replace insn_code, insn_index and lineno
293 fields with a pointer to the instruction definition.
294 (get_attr_value, fill_attr, make_length_attrs, remove_insn_ent)
295 (insert_insn_ent, simplify_test_exp, optimize_attrs, write_attr_get)
296 (write_attr_case, write_const_num_delay_slots): Update accordingly.
297 (write_attr_case, write_const_num_delay_slots): Write the name of
298 an insn next to its case statement.
299 * genoutput.c (data): Add a filename field.
300 (gen_insn, gen_peephole, gen_expand, gen_split): Set it.
301 (output_insn_data): Print the location of each insn definition.
302 * genrecog.c (write_action): Print the name of an insn above
303 the statement that returns its code.
304
305 2004-08-12 Andrew Pinski <pinskia@physics.uc.edu>
306
307 * config/darwin-c.c (find_subframework_file): Fix spelling of cannot.
308 * config/libgloss.h: Likewise.
309 * config/arm/arm.c (arm_gen_load_multiple): Likewise.
310 * c4x/c4x-modes.def: Likewise.
311 * config/c4x/c4x.c (c4x_hard_regno_rename_ok): Likewise.
312 (c4x_rptb_nop_p): Likewise.
313 (c4x_rptb_valid_p): Likewise.
314 (c4x_rptb_insert): Likewise.
315 (c4x_address_conflict): Likewise.
316 * config/c4x/c4x.md: Likewise.
317 * config/frv/frv.md: Likewise.
318 * config/i386/athlon.md: Likewise.
319 * config/i386/i386.md: Likewise.
320 * config/i386/predicates.md: Likewise.
321 * config/ia64/ia64.c: Likewise.
322 * config/ia64/itanium1.md: Likewise.
323 * config/ia64/itanium2.md: Likewise.
324 * config/iq2000/iq2000.md: Likewise.
325 * config/mcore/mcore.c: Likewise.
326 * config/mips/mips.c: Likewise.
327 * config/mips/r3900.h: Likewise.
328 * config/mips/sb1.md: Likewise.
329 * config/pa/milli64.S: Likewise.
330 * config/pa/pa.c: Likewise.
331 * config/pa/pa.h: Likewise.
332 * config/rs6000/8540.md: Likewise.
333
334 2004-08-13 Daniel Berlin <dberlin@dberlin.org>
335
336 * Makefile.in (BOOT_CFLAGS): Remove accidental addition of -dU.
337
338 2004-08-13 J"orn Rennecke <joern.rennecke@superh.com>
339
340 * sh.md (cbranch define_delay) Use cond_delay_slot for
341 non-anulled condition too.
342
343 2004-08-12 David Edelsohn <edelsohn@gnu.org>
344
345 * config/rs6000/rs6000.c (any_parallel_operand): New predicate.
346 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
347 any_parallel_operand, lmw_operation, stmw_operation,
348 mfcr_operation, mtcrf_operation. Remove PARALLEL from any_operand.
349 * config/rs6000/rs6000.md (save_fpregs_{si,di}): Use
350 any_parallel_operand.
351 (return_and_restore_fpregs_{si,di}): Same.
352
353 2004-08-12 Zack Weinberg <zack@codesourcery.com>
354
355 * genrecog.c (add_to_sequence): When processing a MATCH_PARALLEL,
356 if pred->singleton != PARALLEL, issue a warning and pretend it was.
357 Also issue a warning for any predicate we don't know about.
358
359 2004-08-12 Richard Henderson <rth@redhat.com>
360
361 * config/i386/i386.c (internal_label_prefix): Export.
362 (internal_label_prefix_len, struct ix86_address,
363 ix86_decompose_address, maybe_get_pool_constant,
364 ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes,
365 memory_address_length): Export.
366 (any_fp_register_operand, fp_register_operand,
367 register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand,
368 x86_64_general_operand, x86_64_szext_general_operand,
369 x86_64_nonmemory_operand, x86_64_movabs_operand,
370 x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
371 x86_64_zext_immediate_operand, const_int_1_31_operand,
372 symbolic_operand, pic_symbolic_operand, local_symbolic_operand,
373 tls_symbolic_operand, global_dynamic_symbolic_operand,
374 local_dynamic_symbolic_operand, initial_exec_symbolic_operand,
375 local_exec_symbolic_operand, call_insn_operand, sibcall_insn_operand,
376 constant_call_address_operand, const0_operand, const1_operand,
377 const248_operand, const_0_to_3_operand, const_0_to_7_operand,
378 const_0_to_15_operand, const_0_to_255_operand, incdec_operand,
379 shiftdi_operand, reg_no_sp_operand, mmx_reg_operand,
380 general_no_elim_operand, nonmemory_no_elim_operand,
381 index_register_operand, q_regs_operand, flags_reg_operand,
382 non_q_regs_operand, zero_extended_scalar_load_operand,
383 vector_move_operand, no_seg_address_operand, sse_comparison_operator,
384 ix86_comparison_operator, ix86_carry_flag_operator,
385 fcmov_comparison_operator, promotable_binary_operator,
386 cmp_fp_expander_operand, ext_register_operand, binary_fp_operator,
387 mult_operator, div_operator, arith_or_logical_operator,
388 memory_displacement_operand, cmpsi_operand, long_memory_operand,
389 aligned_operand): Move to predicates.md as define_predicates.
390 (tls_symbolic_operand_1): Remove.
391 (x86_64_sign_extended_value): Merge into x86_64_immediate_operand.
392 (x86_64_zero_extended_value): Merge into x86_64_zext_immediate_operand.
393 (legitimize_address): Merge tls_symbolic_operand contents.
394 (ix86_expand_move): Likewise.
395 * config/i386/i386-protos.h: Update for exports.
396 * config/i386/i386.h (EXTRA_CONSTRAINT): Update for renames.
397 (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Remove.
398 * config/i386/i386.md: Include predicates.md.
399 * config/i386/predicates.md: New file.
400
401 2004-08-13 Mark Mitchell <mark@codesourcery.com>
402
403 PR c++/16924
404 * config/i386/winnt.c (i386_pe_mark_dllexport): Set
405 SYMBOL_REF_DECL.
406 (i386_pe_mark_dllimport): Likewise.
407 (i386_pe_encode_section_info): Likewise, when overriding
408 dllimport attribute.
409
410 2004-08-12 Geoffrey Keating <geoffk@apple.com>
411
412 * configure.ac: When testing for flex, nm, ar, and bison, check
413 that they will actually be built.
414 * configure: Regenerate.
415
416 2004-08-12 Ulrich Weigand <uweigand@de.ibm.com>
417
418 * config/s390/s390.h (MAX_FIXED_MODE_SIZE): Define.
419 (MOVE_MAX_PIECES): Define.
420
421 2004-08-12 Devang patel <dpatel@apple.com>
422
423 * dbxout.c (dbxout_begin_prologue): New function.
424 (dbx_debug_hooks): Use new begin prologue hook.
425 (dbxout_function_end): Emit N_ENSYM.
426 * stab.def (N_BNSYM, N_ENSYM): Define and document these two new stabs.
427
428 2004-08-12 Janis Johnson <janis187@us.ibm.com>
429
430 * config/rs6000/altivec.h (vec_dst): Fix C++ functions whose first
431 argument is float*.
432
433 * config/rs6000/rs6000.c (altivec_init_builtins): Fix argument type
434 for vec_dss.
435
436 * doc/extend.texi (AltiVec builtins): Fix description for recent
437 changes. Update operation list to match current support.
438
439 2004-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
440
441 * config/s390/s390.c (struct s390_frame_layout): New struct as element
442 of struct machine_function.
443 (cfun->machine->frame_size): Moved into cfun->machine->frame_layout and
444 changed all uses.
445 (cfun->machine->save_fprs_p): Replaced by cfun_save_high_fprs and
446 changed all uses.
447 (cfun_frame_layout, cfun_save_high_fprs_p, cfun_gprs_save_area_size)
448 (cfun_set_fpr_bit, cfun_fpr_bit_p): New macros.
449 (s390_frame_area, s390_register_info): New functions.
450 (s390_optimize_prolog): Renamed to s390_optimize_prologue. Added check
451 for base register.
452 (s390_return_addr_rtx, s390_return_address_offset)
453 (s390_va_start, s390_gimplify_va_arg)
454 (s390_emit_prologue, s390_emit_epilogue): Adjusted for new stack
455 layouts.
456 (s390_frame_info): Functionality partly moved to s390_register_info.
457 Made adaptions for new stack layout.
458 (save_gprs, restore_gprs): Changed meaning of second parameter and
459 adapted all callers.
460
461 * config/s390/s390.h (s390_backchain_string): New global variable.
462 (MASK_BACKCHAIN): Removed definition.
463 (TARGET_BACKCHAIN): Changed check.
464 (TARGET_KERNEL_BACKCHAIN): New macro.
465 (TARGET_SWITCHES): Removed entries of "backchain" and "no-backchain".
466 (TARGET_OPTIONS): Added "backchain", "no-backchain" and
467 "kernel-backchain".
468 (DYNAMIC_CHAIN_ADDRESS): Adjusted for new stack layouts.
469
470 * config/s390/s390.md ("allocate_stack"): Added TARGET_KERNEL_BACKCHAIN
471 as condition. Adjusted for new stack layout.
472
473 * doc/invoke.texi: Added documentation for new option
474 "-mkernel-backchain" and adjusted documentation of "-mbackchain" and
475 "-mno-backchain".
476
477 2004-08-12 Paul Brook <paul@codesourcery.com>
478
479 * config/arm/lib1funcs.asm (ARM_FUNC_ALIAS): Also alias _L__name.
480 (aeabi_uidivmod, aeabi_idivmod): Provide thumb implementation.
481
482 2004-08-12 David Daney <ddaney@avtrex.com>
483
484 * java/gcj.texi: Add subsection on signal usage.
485
486 2004-08-12 David Edelsohn <edelsohn@gnu.org>
487
488 * expr.c (move_by_pieces): Set alignment for move to minimum of
489 MOVE_MAX_PIECES mode alignment and the largest non-slow mode
490 alignment, but not less than the original alignment.
491 (move_by_pieces_ninsns): Same.
492 (can_store_by_pieces): Similar for store with STORE_MAX_PIECES.
493 (store_by_pieces_1): Same.
494
495 2004-08-12 Diego Novillo <dnovillo@redhat.com>
496
497 PR tree-optimization/16867
498 * tree.c (is_global_var): New function.
499 (needs_to_live_in_memory): Check for TREE_ADDRESSABLE.
500 Call is_global_var.
501 * tree.h (DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL): Remove.
502 Update all users.
503 (is_global_var): Declare.
504 * tree-dfa.c (dump_variable): Display global and addressable
505 attributes.
506 (add_referenced_var): Clarify documentation when marking
507 variables call-clobbered.
508 * tree-flow-inline.h (is_call_clobbered): Call is_global_var
509 instead of needs_to_live_in_memory.
510 (mark_call_clobbered): If the variable is a tag, mark it
511 DECL_EXTERNAL.
512 * tree-gimple.c (is_gimple_reg): Don't check for
513 TREE_ADDRESSABLE.
514 (is_gimple_non_addressable): Likewise.
515 * tree-ssa-alias.c (get_nmt_for): Always check whether the tag
516 needs to be marked call-clobbered.
517 (setup_pointers_and_addressables): Call is_global_var instead
518 of needs_to_live_in_memory.
519 * tree-ssa-dce.c (need_to_preserve_store): Remove.
520 Update all users with is_global_var.
521 (mark_stmt_if_obviously_necessary): Fix processing of aliased
522 stores. Don't check the virtual definitions. Rather, check
523 whether the store is going into global memory.
524 (find_obviously_necessary_stmts): Get the symbol from the PHI
525 result.
526 * tree-ssa-operands.c (get_call_expr_operands): Do not add
527 clobbering may-defs if the call does not have side effects.
528
529 2004-08-12 Jakub Jelinek <jakub@redhat.com>
530
531 PR c++/16276
532 * output.h (default_function_rodata_section,
533 default_no_function_rodata_section): New prototypes.
534 * target.h (struct gcc_target): Add asm_out.function_rodata_section.
535 * target-def.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
536 (TARGET_ASM_OUT): Add it.
537 * varasm.c (default_function_rodata_section,
538 default_no_function_rodata_section): New functions.
539 * final.c (final_scan_insn): Call
540 targetm.asm_out.function_rodata_section instead of
541 readonly_data_section.
542 * config/darwin.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
543 * config/mcore/mcore.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
544 * config/ip2k/ip2k.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
545 * config/rs6000/xcoff.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
546 Likewise.
547 * config/alpha/alpha.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
548 * config/i386/cygming.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
549 Likewise.
550 * config/i386/i386-interix.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
551 Likewise.
552 * config/arm/pe.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
553 * config/avr/avr.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
554 * doc/tm.texi (TARGET_ASM_FUNCTION_RODATA_SECTION): Document.
555
556 2004-08-12 Paul Brook <paul@codesourcery.com>
557
558 * dwarf2out.h (dwarf2out_frame_finish): Conditionalize outputting eh
559 frame info.
560 * doc/tm.texi: Document interaction between TARGET_UNWIND_INFO and
561 DWARF2_UNWIND_INFO.
562
563 2004-08-12 Ben Elliston <bje@au.ibm.com>
564
565 PR target/16286
566 * config/rs6000/altivec.h: Change vector to __vector throughout.
567 (Except for the `vector' macro itself).
568
569 2004-08-12 Zack Weinberg <zack@codesourcery.com>
570
571 * genpreds.c: Add capability to generate predicate bodies as
572 well as function prototypes. Write function prototypes for
573 the generic predicates too.
574 (process_define_predicate, write_tm_preds_h, write_insn_preds_c)
575 (write_predicate_subfunction, mark_mode_tests, add_mode_tests)
576 (write_match_code, write_predicate_expr, write_one_predicate_function)
577 (parse_option): New functions.
578 (output_predicate_decls): Delete.
579 (main): Read the machine description, process DEFINE_PREDICATE or
580 DEFINE_SPECIAL_PREDICATE patterns, write tm-preds.h or insn-preds.c
581 as appropriate.
582
583 * genrecog.c (struct decision_test): Replace index with
584 struct pred_data pointer.
585 (next_index): Remove, unused.
586 (pred_table, preds, special_mode_pred_table): Delete.
587 (compute_predicate_codes, process_define_predicate): New functions.
588 (validate_pattern, add_to_sequence, write_switch): Update for
589 new data structures.
590 (main): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
591 Check both error_count and have_error.
592
593 * gensupport.c (in_fname, first_predicate): New globals.
594 (define_pred_queue, define_pred_tail): New RTL-pattern queue.
595 (predicate_table, last_predicate, old_pred_table)
596 (old_special_pred_table): New statics.
597 (hash_struct_pred_data, eq_struct_pred_data, lookup_predicate)
598 (add_predicate, init_predicate_table): New functions.
599 (process_rtx): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
600 (init_md_reader_args_cb): Use the global in_fname. No need to zero
601 it or max_include_len. Call init_predicate_table.
602 (read_rtx): Run the predicate queue after the attribute queue
603 but before all the others.
604 * gensupport.h (in_fname, struct pred_data, first_predicate)
605 (lookup_predicate, add_predicate, FOR_ALL_PREDICATES): Declare.
606 * rtl.def (MATCH_CODE, MATCH_TEST, DEFINE_PREDICATE)
607 (DEFINE_SPECIAL_PREDICATE): New RTL codes.
608 * dummy-conditions.c: Don't include bconfig.h, system.h,
609 coretypes.h, tm.h, or system.h. Do include stddef.h.
610 Duplicate declaration of struct c_test from gensupport.h.
611
612 * Makefile.in (OBJS-common): Add insn-preds.o.
613 (STAGESTUFF, .PRECIOUS): Add insn-preds.c.
614 (insn-preds.c, insn-preds.o): New rules.
615 (s-preds): Also generate insn-preds.c.
616 (dummy-conditions.o, genpreds$(build_exeext), genpreds.o):
617 Update dependencies.
618 (print-rtl.o, print-rtl1.o): Correct dependencies.
619
620 * recog.h: Delete prototypes of predicate functions.
621
622 * doc/md.texi (Predicates): New section with complete
623 documentation of operand/operator predicates. Remove some
624 incomplete documentation of predicates from other places.
625 * doc/tm.texi (Misc): Move SPECIAL_MODE_PREDICATES next to
626 PREDICATE_CODES; indicate that both are deprecated in favor
627 of define_predicate/define_special_predicate.
628
629 * config/ia64/ia64.c: All predicate function definitions moved
630 to ia64.md, except
631 (small_addr_symbolic_operand, tls_symbolic_operand): Delete.
632 (ia64_expand_load_address, ia64_expand_move):
633 Check SYMBOL_REF_TLS_MODEL directly, don't use tls_symbolic_operand.
634
635 * config/ia64/ia64.md: All predicates now defined here.
636 (symbolic_operand): Is now a special predicate.
637
638 * config/ia64/ia64.h: Declare ia64_section_threshold.
639 (PREDICATE_CODES): Delete.
640
641 2004-08-12 Richard Henderson <rth@redhat.com>
642
643 * c-common.h (STATEMENT_LIST_HAS_LABEL): New.
644 * c-semantics.c (add_stmt): Set it.
645 * c-decl.c (finish_decl): Use it to create a new BIND_EXPR
646 before instantiating a variable sized type.
647
648 2004-08-12 Richard Henderson <rth@redhat.com>
649
650 * stor-layout.c (round_up, round_down): Move ...
651 * fold-const.c (round_up, round_down): ... here. Use
652 multiple_of_p to avoid any arithmetic at all.
653
654 2004-08-12 Richard Henderson <rth@redhat.com>
655
656 * gimplify.c (struct gimplify_init_ctor_preeval_data): New.
657 (gimplify_init_ctor_preeval_1): New.
658 (gimplify_init_ctor_preeval): New.
659 (gimplify_init_ctor_eval): New.
660 (gimplify_init_constructor): Use them. Always gimplify the LHS
661 object first.
662
663 2004-08-12 Ziemowit Laski <zlaski@apple.com>
664
665 (This patch is part of merge of objc-improvements-branch
666 into mainline.)
667
668 * doc/frontends.texi: Mention Objective-C++ in addition to
669 Objective-C.
670 * doc/install.texi: Add 'obj-c++' to list of configurable
671 languages.
672 * doc/invoke.texi: Rename Objective-C option headings to
673 indicate they also apply to Objective-C++. List file
674 extensions for Objective-C++ sources. Mention that
675 ObjC and ObjC++ compilations may also use C and C++ options,
676 respectively. Point users to doc/standards.texi for
677 further info on ObjC and ObjC++.
678 * doc/sourcebuild.texi: Mention the objcp/ directory and
679 the Objective-C++ sources it contains.
680 * doc/standards.texi: Update link to Apple ObjC site;
681 add link to gcc readings.html WWW doc.
682
683 2004-08-12 Alan Modra <amodra@bigpond.net.au>
684
685 * config/rs6000/rs6000.c (function_arg_padding): Revert 2004-07-28
686 and 2004-07-14 changes.
687
688 2004-08-12 Paul Brook <paul@codesourcery.com>
689
690 * doc/invoke.texi: Fix typo.
691
692 2004-08-11 Devang Patel <dpatel@apple.com>
693
694 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -dead_strip
695 and -no_dead_strip_inits_and_terms.
696 (LINK_SPEC): Same.
697 * doc/invoke.texi (Darwin Options): Document -dead_strip and
698 -no_dead_strip_inits_and_terms.
699
700 2004-08-11 Paul Brook <paul@codesourcery.com>
701
702 * config/arm/arm-protos.h (arm_finalize_pic) Rename ...
703 (arm_load_pic_register): ... to this.
704 * config/arm/arm.c (arm_finalize_pic): Rename ...
705 (arm_load_pic_register): ... to this. Always output insns at the
706 current location. Load via low reg in thumb mode.
707 (arm_expand_prologue): Call arm_load_pic_register.
708 (thumb_expand_prologue): Ditto.
709 * config/arm/arm.h (FINALIZE_PIC): Remove.
710 * config/arm/arm.md (builtin_setjmp_receiver): Call
711 arm_load_pic_register.
712
713 2004-08-11 Paul Brook <paul@codesourcery.com>
714
715 * arm.c (thumb_force_lr_save): Add prototype.
716 (thumb_compute_save_reg_mask): New function.
717 (thumb_find_work_register): New function.
718 (arm_get_frame_offsets): Use thumb_compute_save_reg_mask.
719 (thumb_unexpanded_epilogue): Ditto. Remove redundant code.
720 Don't clobber r3 when removing pretend args.
721 (thumb_expand_prologue): Use thumb_compute_save_reg_mask.
722 (thumb_output_function_prologue): Use new functions.
723 (thumb_set_return_address): Use thumb_compute_save_reg_mask.
724 * arm.h (THUMB_REG_PUSHED_P): Remove.
725
726 2004-08-11 James E Wilson <wilson@specifixinc.com>
727
728 PR rtl-optimization/16490
729 * cfgrtl.c (cfg_layout_split_edge): Set global_live_at_start and
730 global_live_at_end for new basic block if already set for other blocks.
731
732 2004-08-11 David Edelsohn <edelsohn@gnu.org>
733
734 * config/rs6000/rs6000.h (MAX_FIXED_MODE_SIZE): Define.
735
736 * config/rs6000/rs6000.md (mfcr rlwinm patterns): Set length to 8.
737 (mfcr rlwinm rlwinm patterns): Set length to 12.
738
739 2004-08-11 Andrew MacLeod <amacleod@redhat.com>
740
741 * tree-flow-inline.h (get_def_ops, get_use_ops, get_v_may_def_ops,
742 get_vuse_ops,get_v_must_def_ops): Add operand structure reference.
743 (get_v_may_def_result_ptr, get_v_may_def_op_ptr): New access struct.
744 (start_ssa_stmt_operands): Delete.
745 * tree-flow.h (struct stmt_ann_d): Replace operand vectors with new
746 struct stmt_operands_d.
747 (build_ssa_operands): New extern entry point.
748 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove operand
749 building code, replace with create_ssa_artficial_load_stmt().
750 * tree-ssa-operands.c (struct voperands_d): Delete.
751 (allocate_v_may_def_optype): Allocate v_may_def_operand_type_t vector.
752 (allocate_v_must_def_optype): Use sizeof (tree), not sizeof (tree *).
753 (free_uses, free_defs, free_vuses, free_v_may_defs,
754 free_v_must_defs): Remove dealloc parameter.
755 (remove_vuses, remove_v_may_def, remove_v_must_defs): Delete.
756 (finalize_ssa_defs, finalize_ssa_uses, finalize_ssa_v_may_defs,
757 finalize_ssa_vuses, finalize_ssa_v_must_defs): Perform all operand
758 vector comparisons, ssa_name reuse, and allocations here.
759 (verify_start_operands): Delete.
760 (finalize_ssa_stmt_operands): Set new operands by calling finalize
761 routines.
762 (start_ssa_stmt_operands): Move from tree-flow-inline.h.
763 (append_def, append_usei): Simplify to simple accumulation.
764 (append_v_may_def, append_vuse, append_v_must_def): Simplify to avoiding
765 duplicates and simple accumulation.
766 (free_ssa_operands): Free vectors in a stmt_operand structure.
767 (build_ssa_operands): New. Create a new stmt_operand structure from
768 a stmt and an old set of stmt_operands.
769 (get_stmt_operands): Simplify and call build_ssa_operands.
770 (get_expr_operands, get_asm_expr_operands, get_indirect_ref_operands,
771 get_call_expr_operands, add_stmt_operand, add_call_clobber_ops,
772 add_call_read_ops): Don't pass prev_vops around anymore.
773 (note_addressable): Return if no stmt annotation.
774 (copy_virtual_operands): Access v_may_def operands through a struct.
775 (create_ssa_artficial_load_stmt): New. Create a load stmt for DOM's
776 hash tables without treating the stmt as a real stmt.
777 * tree-ssa-operands.h (struct v_may_def_operand_type): New. Access
778 v_may_def def and use through a struct instead of 2 array elements.
779 (struct v_may_def_optype_d): Use v_may_def_operand_type.
780 (struct stmt_operands_d): New. Struct for storing all operand vectors.
781
782 2004-08-11 Nick Clifton <nickc@redhat.com>
783
784 * config/arm/arm.c (arm_is_longcall_p): Update comment describing
785 this funciton's behaviour. Return true when the current function
786 has a section attribute and -mlong-calls is in effect.
787 * config/arm/arm.h (ARM_DECLARE_FUNCTION_SIZE): Do not set the
788 short-call marker when -mlong-calls is in effect and the function
789 has a section attribute.
790
791 2004-08-10 Zack Weinberg <zack@codesourcery.com>
792
793 * stmt.c (expand_return): If asked to return the RESULT_DECL,
794 just call expand_value_return on result_rtl.
795
796 2004-08-10 Richard Henderson <rth@redhat.com>
797
798 * builtins.def (BUILT_IN_STACK_ALLOC): Remove.
799 * builtins.c (expand_builtin) <BUILT_IN_STACK_ALLOC>: Remove.
800 * dwarf2out.c (loc_descriptor): Handle PARALLEL here ...
801 (add_location_or_const_value_attribute): ... not here. Use
802 loc_descriptor_from_tree if possible.
803 (loc_descriptor_from_tree_1): Rename from loc_descriptor_from_tree.
804 Simplify address handling. Handle DECL_VALUE_EXPR. Handle register
805 values specially.
806 (loc_descriptor_from_tree): New. Update callers.
807 * expr.c (expand_var): Ignore DECL_VALUE_EXPR variables.
808 * gimplify.c (gimplify_decl_expr): Lower variable sized types to
809 pointer plus dereference. Set DECL_VALUE_EXPR. Set save_stack.
810 (gimplify_call_expr): Do not recognize BUILT_IN_STACK_ALLOC
811 and BUILT_IN_STACK_RESTORE.
812 (gimplify_expr): Lower DECL_VALUE_EXPR decls.
813 * stmt.c (expand_stack_alloc): Remove.
814 * tree-mudflap.c (mx_register_decls): Don't look for
815 BUILT_IN_STACK_ALLOC.
816 * tree-nested.c (convert_local_reference): Likewise.
817 * tree.h (DECL_VALUE_EXPR): New.
818
819 2004-08-10 Richard Henderson <rth@redhat.com>
820
821 * stor-layout.c (round_up): Check for 0/1 before dividing.
822 (round_down): Likewise.
823
824 * tree-tailcall.c (suitable_for_tail_opt_p): Also check DECL_EXTERNAL.
825
826 2004-08-09 Mark Mitchell <mark@codesourcery.com>
827
828 * config.gcc (arm*-*-eabi*): New target.
829 * defaults.h (TARGET_LIBGCC_FUNCS): New macro.
830 (TARGET_LIB_INT_CMP_BIASED): Likewise.
831 * expmed.c (expand_divmod): Try a two-valued divmod function as a
832 last resort.
833 * gthr.h: Remove bogus tokens at end of #pragma.
834 * optabs.c (expand_twoval_binop_libfunc): New function.
835 (prepare_cmp_insn): Handle the !TARGET_LIB_INT_CMP_BIASED case.
836 (prepare_float_lib_cmp): Try reversing the condition.
837 (debug_optab_libfuncs): New function.
838 * optabs.h (expand_twoval_binop_libfunc): Declare.
839 * config/arm/arm.c (arm_init_libfuncs): New function.
840 (arm_compute_initial_eliminatino_offset): Return HOST_WIDE_INT.
841 (TARGET_INIT_LIBFUNCS): Define it.
842 * config/arm/arm.h (TARGET_BPABI): New macro.
843 * config/arm/arm-protos.h
844 (arm_compute_initial_elimination_offset): Return HOST_WIDE_INT.
845 * config/arm/bpabi.S: New file.
846 * config/arm/bpabi.c: Likewise.
847 * config/arm/bpabi.h: Likewise.
848 * config/arm/ieee754-df.S (__aeabi_dneg): New function or alias.
849 (__aeabi_drsub): Likewise.
850 (__aeabi_dsub): Likewise.
851 (__aeabi_dadd): Likewise.
852 (__aeabi_ui2d): Likewise.
853 (__aeabi_i2d): Likewise.
854 (__aeabi_f2d): Likewise.
855 (__aeabi_dmul): Likewise.
856 (__aeabi_ddiv): Likewise.
857 (__aeabi_cdrcmple): Likewise.
858 (__aeabi_cdcmpeq): Likewise.
859 (__aeabi_cdcmple): Likewise.
860 (__aeabi_dcmpeq): Likewise.
861 (__aeabi_dcmplt): Likewise.
862 (__aeabi_dcmple): Likewise.
863 (__aeabi_dcmpge): Likewise.
864 (__aeabi_dcmpgt): Likewise.
865 (__aeabi_dcmpun): Likewise.
866 (__aeabi_d2iz): Likewise.
867 (__aeabi_d2uiz): Likewise.
868 (__aeabi_d2f): Likewise.
869 * config/arm/ieee754-sf.S (__aeabi_fneg): New function or alias.
870 (__aeabi_frsub): Likewise.
871 (__aeabi_fsub): Likewise.
872 (__aeabi_fadd): Likewise.
873 (__aeabi_ui2f): Likewise.
874 (__aeabi_i2f): Likewise.
875 (__aeabi_fmul): Likewise.
876 (__aeabi_fdiv): Likewise.
877 (__aeabi_cfrcmple): Likewise.
878 (__aeabi_cfcmpeq): Likewise.
879 (__aeabi_cfcmple): Likewise.
880 (__aeabi_fcmpeq): Likewise.
881 (__aeabi_fcmplt): Likewise.
882 (__aeabi_fcmple): Likewise.
883 (__aeabi_fcmpge): Likewise.
884 (__aeabi_fcmpgt): Likewise.
885 (__aeabi_fcmpun): Likewise.
886 (__aeabi_f2iz): Likewise.
887 (__aeabi_f2uiz): Likewise.
888 * config/arm/lib1funcs.asm (ARM_CALL): New macro.
889 (__aeabi_uidivmod): New function or alias.
890 (__aeabi_idivmod): Likewise.
891 (__aeabi_idiv0): Likewise.
892 (__aeabi_ldiv0): Likewise.
893 (__aeabi_llsr): Likewise.
894 (__aeabi_lasr): Likewise.
895 (__aeabi_llsl): Likewise.
896 (bpabi.S): Include it.
897 * config/arm/libgcc-bpabi.ver: New file.
898 * config/arm/symbian.h (ARM_DEFAULT_ABI): Remove.
899 (LINK_SPEC): Remove.
900 * config/arm/t-arm-elf (LIB1ASMFUNCS): Add __aeabi_lcmp and
901 __aeabi_ulcmp.
902 * config/arm/t-bpabi: New file.
903 * doc/tm.texi (TARGET_LIBGCC_FUNCS): New entry.
904 (TARGET_LIB_INT_CMP_BIASED): Likewise.
905
906 2004-08-10 David Edelsohn <edelsohn@gnu.org>
907
908 * config/rs6000/rs6000-protos.h (expand_block_clear): Declare.
909 * config/rs6000/rs6000.md (clrmemsi): New pattern.
910 * config/rs6000/rs6000.c (expand_block_clear): New function.
911 (expand_block_move): Convert alignment to bits. Use SImode and
912 HImode for unaligned addresses if not STRICT_ALIGNMENT.
913
914 2004-08-10 Caroline Tice <ctice@apple.com>
915
916 * varasm.c (unlikely_section_label): New global variable.
917 (unlikely_text_section_name): New global variable.
918 (text_section): Remove alignment statement.
919 (unlikely_text_section): Remove alignment statement; use
920 unlikely_section_label rather than hard-coded string.
921 (assemble_start_function): Initialize unlikely_section_label and
922 unlikely_text_section_name; make sure cold section is properly
923 aligned at start of function; output unlikely_section_label if
924 appropriate.
925
926 2004-08-10 Ulrich Weigand <uweigand@de.ibm.com>
927
928 * config/s390/s390-protos.h (s390_canonicalize_comparison): Declare.
929 * config/s390/s390.c (s390_canonicalize_comparison): New function.
930 * config/s390/s390.h (CANONICALIZE_COMPARISON): Define.
931 * config/s390/s390.md ("*tmdi_ext", "*tmsi_ext", "*tmqisi_ext",
932 "*tmqidi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem"): Remove.
933 ("*tmqi_mem"): Remove SUBREG from pattern.
934 ("*anddi3_cconly"): Prevent accidentally matching TM pattern.
935 ("*andsi3_cconly"): Likewise.
936
937 2004-08-10 H.J. Lu <hongjiu.lu@intel.com>
938
939 PR target/16909
940 * config/i386/i386.md (*strsetdi_rex_1): Use DI instead of SI.
941
942 2004-08-10 Janis Johnson <janis187@us.ibm.com>
943
944 * doc/sourcebuild.texi (compat testing): Document available test
945 framework commands. Use the preferred spelling of DejaGnu.
946
947 2004-08-10 Daniel Berlin <dberlin@dberlin.org>
948
949 * lambda.h: Add matrix type, and prototypes for remainder of
950 matrix and vector functions.
951 (lambda_vector_mult_const): New function.
952 (lambda_vector_negate): Ditto.
953 (lambda_vector_add): Ditto.
954 (lambda_vector_add_mc): Ditto.
955 (lambda_vector_copy): Ditto.
956 (lambda_vector_zerop): Ditto.
957 (lambda_vector_equal): Ditto.
958 (lambda_vector_min_nz): Ditto.
959 (lambda_vector_first_nz): Ditto.
960 (lambda_vector_matrix_mult): Ditto.
961 * lambda-mat.c: New file.
962 * Makefile.in (lambda-mat.o): New.
963
964 2004-08-10 Andrew MacLeod <amacleod@redhat.com>
965
966 * tree-cfg.c (bsi_insert_before, bsi_insert_after): Call modify_stmt
967 after linking stmt into the program.
968 (bsi_remove): Don't call modify_stmt.
969 * tree-complex.c (update_complex_assignment,
970 expand_complex_comparison): Call modify_stmt after changing the stmt.
971 * tree-outof-ssa.c (rewrite_trees): Call modify_stmt only if not
972 removing the stmt.
973 * tree-ssa-ccp.c (substitute_and_fold): Call modify_stmt after changing
974 the stmt, and only if needed.
975 * tree-ssa-dom.c (thread_across_edge): Pass no annotation for a dummy
976 expression.
977 (simplify_rhs_and_lookup_avail_expr): Don't take an annotation param.
978 (simplify_cond_and_lookup_avail_expr): Use modify_stmt.
979 (simplify_switch_and_lookup_avail_expr): Don't take an annotation param.
980 (eliminate_redundant_computations): Don't pass an annotation. Call
981 modify_stmt rather than setting the annotation directly.
982 (record_equivalences_from_stmt): Remove unused local 'j'.
983 (cprop_operand): Take a stmt rather than an annotation as a parameter.
984 Call modify_stmt.
985 (cprop_into_stmt): Pass stmt rather than annotation.
986 (update_rhs_and_lookup_avail_expr): Call modify_stmt.
987 * tree-ssa-loop-im.c (schedule_sm): Call get_stmt_ann rather than
988 modify_stmt.
989 * tree-ssa.c (propagate_into_addr): Dont call modify_stmt.
990
991 2004-08-10 Jason Merrill <jason@redhat.com>
992
993 PR middle-end/16948
994 * function.c (expand_function_start): Handle DECL_BY_REFERENCE on
995 the RESULT_DECL.
996
997 2004-08-10 Geoffrey Keating <geoffk@apple.com>
998
999 * tree-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the
1000 hash function.
1001
1002 2004-08-10 Roger Sayle <roger@eyesopen.com>
1003
1004 * config/mips/mips.md: New reciprocal square root patterns that
1005 match sqrt(1.0/x) in addition to the existing 1.0/sqrt(x) insns.
1006
1007 2004-08-10 Paul Brook <paul@codesourcery.com>
1008
1009 * config/arm/arm-protos.h (arm_set_return_address,
1010 thumb_set_return_address): Add prototypes.
1011 * config/arm/arm.h (ARM_FT_EXCEPTION_HANDLER): Remove.
1012 * config/arm/arm.c (arm_compute_func_type,
1013 use_return_insn, arm_compute_save_reg0_reg12_mask,
1014 arm_compute_save_reg_mask, arm_output_function_prologue,
1015 arm_output_epilogue): Replace ARM_FT_EXCEPTION_HANDLER with
1016 current_function_calls_eh_return.
1017 (thumb_exit, thumb_pushpop, thumb_unexpanded_epilogue): Replace
1018 old eh code.
1019 (arm_set_return_address, thumb_set_return_address): New functions.
1020 * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS, DWARF2_UNWIND_INFO,
1021 ARM_EH_STACKADJ_REGNUM, EH_RETURN_STACKADJ_RTX): Define.
1022 * config/arm/arm.md (VUNSPEC_EH_RETURN): Add.
1023 (epilogue): Use the stackadj register.
1024 (eh_return, arm_eh_return, thumb_eh_return): New pattern.
1025
1026 2004-08-10 Jakub Jelinek <jakub@redhat.com>
1027
1028 PR target/3144
1029 * expr.c (move_by_pieces_ninsns): Add max_size argument.
1030 (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1 to it.
1031 (CLEAR_BY_PIECES_P): Pass STORE_MAX_PIECES + 1 to it.
1032 (STORE_BY_PIECES_P): Define similarly to CLEAR_BY_PIECES_P,
1033 but using MOVE_RATIO.
1034 (move_by_pieces): Pass max_size to move_by_pieces_ninsns.
1035 (can_store_by_pieces): Change max_size type to unsigned int.
1036 (store_by_pieces_1): Likewise. Pass max_size to
1037 move_by_pieces_ninsns.
1038 * config/s390/s390.h (STORE_BY_PIECES_P): Define.
1039 * config/sh/sh.c (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1
1040 to move_by_pieces_ninsns.
1041 (STORE_BY_PIECES_P): Define.
1042 * config/ns32k/ns32k.h (STORE_BY_PIECES_P): Pass STORE_MAX_PIECES + 1
1043 to move_by_pieces_ninsns.
1044 * doc/tm.texi (STORE_BY_PIECES_P): Document changed default.
1045
1046 * config/i386/i386.h (CLEAR_RATIO): Define.
1047
1048 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
1049
1050 * expr.c (expand_expr_real_1): Add back code that was not dead.
1051
1052 2004-08-09 Andrew Pinski <apinski@apple.com>
1053
1054 * c-common.c (c_common_get_alias_set): Set the aliasing set of the type
1055 which is found to be compatible before returning the aliasing set.
1056
1057 2004-08-09 Daniel Jacobowitz <dan@debian.org>
1058
1059 * ggc-zone.c (struct alloc_zone): Add statistics counters.
1060 (always_collect): New flag.
1061 (ggc_alloc_zone_1): Update statistics support. Don't include
1062 overhead in allocated counter.
1063 (sweep_pages): Update allocated counter for large pages. Don'y
1064 include overhead.
1065 (ggc_collect_1): Always collect.
1066 (ggc_collect): Honor always_collect flag. Sum all zones to decide
1067 whether to collect.
1068 (SCALE, LABEL): New macros.
1069 (ggc_print_statistics): Add statistics support.
1070
1071 2004-08-09 Roger Sayle <roger@eyesopen.com>
1072
1073 * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap): Change type to bool.
1074 (init_expmed): Fix potential overrun problem with "all.reg".
1075 (expand_sdiv2_pow2): Add an alternate implementation for signed
1076 division, if the target provides a suitable conditional move insn.
1077
1078 2004-08-09 Paul Brook <paul@codesourcery.com>
1079 Richard Henderson <rth@redhat.com>
1080
1081 * unwind-dw2.c (uw_install_context_1): Update target saved stack
1082 pointer.
1083
1084 2004-08-09 Geoffrey Keating <geoffk@apple.com>
1085
1086 * ggc-common.c (ggc_rlimit_bound): Don't check RSS limit.
1087 Check DATA limit only if there's no AS limit. Ignore insanely
1088 low DATA limits.
1089 (ggc_min_heapsize_heuristic): Don't divide AS or RSS limits by 8,
1090 but take care that the AS limit isn't overrun.
1091 * doc/invoke.texi: Update documentation of min-heapsize parameter.
1092
1093 2004-08-09 Jeff Law <law@redhat.com>
1094
1095 * Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c
1096 (tree-ssa-threadupdate.o): Add dependencies.
1097 * tree-ssa-threadupdate.c: New file.
1098 * tree-flow.h (incoming_edge_threaded): New flag in block annotation.
1099 (rewrite_vars_out_of_ssa): Remove prototype.
1100 (cleanup_tree_cfg): Returns a bool.
1101 * tree.h (thread_through_all_blocks): Prototype.
1102 * tree-outof-ssa.c (SSANORM_*): Move into here.
1103 (remove_ssa_form): Now static.
1104 (rewrite_vars_out_of_ssa): Kill.
1105 * tree-ssa-live.c (register_ssa_partitions_for_vars): Kill.
1106 * tree-ssa-live.h (SSANORM_*): Moved into tree-outof-ssa.c.
1107 (remove_ssa_form, register_partitions_for_vars): Kill declarations.
1108 * tree-cfg.c (cleanup_tree_cfg): Return a value indicating if
1109 anything was changed.
1110 * tree-phinodes.c (add_phi_arg): Get the block for the PHI
1111 from the PHI's annotation rather than the edge associated with
1112 the new argument.
1113 * tree-ssa-dom.c (redirection_edges): Kill.
1114 (redirect_edges_and_update_ssa_graph): Kill.
1115 (tree_ssa_dominator_optimize): Do not reset forwardable flag
1116 for blocks anymore. Do not initialize redirection_edges.
1117 Call thread_through_all_blocks. Simplify code for cleanup
1118 of the CFG and iterating. No longer call cleanup_tree_cfg
1119 outside the iteration loop.
1120 (thread_across_edge): No longer mess with forwardable blocks.
1121
1122 2004-08-09 Zack Weinberg <zack@codesourcery.com>
1123
1124 * explow.c (memory_address): Use memory_address_p.
1125 * recog.c (general_operand): Likewise.
1126 * regrename.c: No need to define REG_OK_STRICT.
1127
1128 2004-08-09 Steven Bosscher <stevenb@suse.de>
1129
1130 * timevar.def (TV_CPROP1, TV_CPROP2, TV_PRE, TV_HOIST, TV_LSM):
1131 New timers.
1132 * gcse.c: Include timevar.h.
1133 (const_prop_count, copy_prop_count): Rename to global_const_prop_count
1134 and global_copy_prop_count.
1135 (local_const_prop_count, local_copy_prop_count): New static globals.
1136 (gcse_main): Set the right timevar for each pass.
1137 (cprop_jump): Increment global_const_prop_count when a constant is
1138 propagated. Add "GLOBAL" to dump output.
1139 (cprop_insn): Increment global_const_prop_count when a constant is
1140 propagated, or global_copy_prop_count when a copy is propagated.
1141 (do_local_cprop): Likewise for local_const_prop_count and
1142 local_copy_prop_count.
1143 (one_cprop_pass): Initialize const/cprop counters to zero.
1144 Print out results of local and global const/cprop separately.
1145 (bypass_block): Break over-length line.
1146 * Makefile.in (gcse.o): Add TIMEVAR_H dependency. Fix dependencies
1147 for bb-reorder.o and tracer.o.
1148
1149 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
1150
1151 * Makefile.in (GTFILES): Remove stmt.c
1152 (stmt.o): Do not depend on gt-stmt.h.
1153 * emit-rtl.c (emit_line_note): Do not call
1154 set_file_and_line_for_stmt.
1155 * expr.c (expand_expr_real_1) <SWITCH_EXPR>: Let expand_case
1156 do everything.
1157 * function.c (free_after_parsing): Do not free STMT field.
1158 (allocate_struct_function): Do not call init_stmt_for_function.
1159 (assign_stack_temp_for_type): Do not accept values of keep
1160 other than 0 or 1.
1161 (init_temp_slots): Do not initialize removed variables.
1162 * function.h (struct function): Remove STMT, X_TARGET_TEMP_SLOT_LEVEL
1163 and X_VAR_TEMP_SLOT_LEVEL fields.
1164 * rtl.h (set_file_and_line_for_stmt): Remove.
1165 * stmt.c (struct nesting, ALLOC_NESTING, POPSTACK,
1166 struct stmt_status, cond_stack, case_stack, nesting_stack,
1167 nesting_depth, emit_locus, set_file_and_line_for_stmt,
1168 same_case_target_p, init_stmt_for_function, emit_nop,
1169 expand_start_cond, expand_start_elseif, expand_start_else,
1170 expand_elseif, expand_end_cond): Remove.
1171 (preserve_subexpressions_p): Remove references to CFUN->STMT.
1172 (expand_start_case, expand_end_case_type): Remove, merge into...
1173 (expand_case): ... this one, including other bits from
1174 expand_expr_real_1. Inline same_case_target_p. Turn members
1175 of CASE_STACK into local variables.
1176 (emit_case_bit_tests): Inline same_case_target_p.
1177 (add_case_node): Add HEAD argument, return new head of the list,
1178 do not handle default label here.
1179 * tree.h (expand_start_cond, expand_end_cond, expand_start_else,
1180 expand_start_elseif, current_nesting_level, expand_start_case,
1181 expand_end_case_type, expand_end_case, add_case_node,
1182 init_stmt_for_function, expand_elseif): Remove prototypes.
1183 (expand_case): Add prototype.
1184
1185 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
1186
1187 * expr.c (expand_expr_real_1): Use optab_for_tree_code.
1188
1189 2004-08-09 Paolo Bonzini <bonzini@gnu.org>
1190
1191 * expr.c (var_rtx): Remove.
1192 (expand_expr_real_1) <LOOP_EXPR, EXIT_EXPR,
1193 LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, TRUTH_ANDIF_EXPR,
1194 TRUTH_ORIF_EXPR, COMPOUND_EXPR, CONJ_EXPR, INIT_EXPR>:
1195 Abort.
1196 (expand_expr_real_1) <COND_EXPR>: Remove most special cases.
1197 * optabs.c (emit_clr_insn, emit_0_to_1_insn): Remove.
1198 * optabs.h (emit_clr_insn, emit_0_to_1_insn): Remove.
1199
1200 2004-08-08 Mostafa Hagog <mustafa@il.ibm.com>
1201 Ayal Zaks <zaks@il.ibm.com>
1202
1203 * common.opt (freschedule-modulo-scheduled-loops): New flag.
1204 * final.c (final_scan_insn): Handle NOTE_DISABLE_SCHED_OF_BLOCK.
1205 * modulo-sched.c (sms_schedule): Emit a note to disable scheduling
1206 when -freschedule-modulo-scheduled-loops flag is not specified.
1207 (sms_schedule_by_order, ps_insn_advance_column, add_node_to_ps,
1208 add_node_to_ps, ps_has_conflicts, ps_add_node_check_conflicts):
1209 More accurate placing of insn in row of partial schedule.
1210 (ps_insn_find_column): New function.
1211 * rtl.h (NOTE_DISABLE_SCHED_OF_BLOCK): New note.
1212 * sched-rgn.c (sched_is_disabled_for_current_region_p): New.
1213 (schedule_region): Use sched_is_disabled_for_current_region_p.
1214 * docs/invoke.texi: Document -freschedule-modulo-scheduled-loops.
1215
1216 2004-08-07 H.J. Lu <hongjiu.lu@intel.com>
1217
1218 * config/i386/i386.c (ix86_expand_clrmem): Revert the last
1219 change.
1220
1221 2004-08-07 H.J. Lu <hongjiu.lu@intel.com>
1222
1223 * config/i386/i386.c (ix86_expand_clrmem): Properly call
1224 gen_strset for 64bit target.
1225
1226 2004-08-07 Olivier Hainque <hainque@act-europe.fr>
1227
1228 * config/vxworks.h (HANDLE_SYSV_PRAGMA): Remove definition.
1229
1230 2004-08-07 Jason Merrill <jason@redhat.com>
1231
1232 Make return in memory explicit.
1233 * function.c (aggregate_value_p): Check DECL_BY_REFERENCE.
1234 (assign_parm_find_data_types): Remove code for old front end
1235 invisible reference handling.
1236 (assign_parms): Handle DECL_BY_REFERENCE on the RESULT_DECL.
1237 (expand_function_end): Likewise.
1238 * gimplify.c (gimplify_return_expr): Handle a dereferenced
1239 RESULT_DECL.
1240 * tree-inline.c (copy_body_r): Don't bother looking for &* anymore.
1241 (declare_return_variable): Handle DECL_BY_REFERENCE.
1242 * cp/cp-gimplify.c (is_invisiref_parm): Also handle RESULT_DECL.
1243 (cp_genericize_r): Use convert_from_reference.
1244 Don't dereference a RESULT_DECL directly inside a RETURN_EXPR.
1245 (cp_genericize): Handle the RESULT_DECL. Unset TREE_ADDRESSABLE.
1246
1247 * c-common.c (c_warn_unused_result): Check TREE_USED before
1248 warning about a CALL_EXPR with an unused value.
1249
1250 2004-08-06 Mark Mitchell <mark@codesourcery.com>
1251
1252 * config/arm/symbian.h (CC1_SPEC): Avoid passing duplicate options
1253 to the compiler. Use -fshort-wchar by default.
1254
1255 2004-08-06 Pat Haugen <pthaugen@us.ibm.com>
1256
1257 * params.def (PARAM_MIN_CROSSJUMP_INSNS): New.
1258 * cfgcleanup.c (try_crossjump_to_edge): Add minimum insn match
1259 threshhold.
1260 * doc/invoke.texi (param): Document min-crossjump-insns.
1261
1262 2004-08-06 Richard Sandiford <rsandifo@redhat.com>
1263
1264 PR c/13282
1265 * c.opt (Wmissing-field-initializers): New option.
1266 * c-opts.c (c_common_post_options): Make -Wextra turn it on by default.
1267 * c-typeck.c (pop_init_level): Guard the missing field warning with
1268 warn_missing_field_initializers rather than extra_warnings.
1269 * doc/invoke.texi (-Wmissing-field-initializers): Document, moving
1270 some of the explanation from...
1271 (-Wextra): ...here. Say that the missing field warning can be
1272 seperately controlled by -Wmissing-field-initializers.
1273
1274 2004-08-06 Paolo Bonzini <bonzini@gnu.org>
1275
1276 * expr.c (expand_expr_real_1) <ENTRY_VALUE_EXPR>: Remove.
1277 * tree-inline.c (estimate_num_insns_1) <ENTRY_VALUE_EXPR>: Remove.
1278 * tree-pretty-print.c (dump_generic_node) <ENTRY_VALUE_EXPR>: Remove.
1279 * tree.def (ENTRY_VALUE_EXPR): Remove.
1280
1281 2004-08-06 Jakub Jelinek <jakub@redhat.com>
1282
1283 * config/i386/i386.c (ix86_expand_clrmem): Move gen_cld down to
1284 the places where it is actually needed. Don't use repz; stosb
1285 for -Os with sufficiently small constant sizes.
1286 For sufficiently small repz; stos{l,q} repeat counts use a sequence
1287 of stos{l,q} instructions instead.
1288
1289 2004-08-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1290
1291 PR tree-optimization/16807
1292 * loop-iv.c (dump_iv_info): Dump invariants correctly.
1293 (iv_subreg, iv_extend): Express value of invariant purely in
1294 base field.
1295
1296 2004-08-06 Mark Mitchell <mark@codesourcery.com>
1297
1298 * config/arm/symbian.h (CC1_SPEC): Add -fno-short-enums.
1299 (CC1PLUS_SPEC): Define it to be the same as CC1_SPEC.
1300
1301 2004-08-06 Roman Zippel <zippel@linux-m68k.org>
1302
1303 * config/m68k/m68k.c (post_inc_operand,pre_dec_operand): New.
1304 * config/m68k/m68k.h (PREDICATE_CODES): add post_inc_operand,
1305 pre_dec_operand.
1306 * config/m68k/m68k.md (zero_extend*2): delay the splitting of the
1307 pattern until reload is finished to allow better code generation
1308 and split them completely into separate instrunctions.
1309 (*andsi3_split): New pattern.
1310
1311 2004-08-05 Mark Mitchell <mark@codesourcery.com>
1312
1313 * tree.c (handle_dll_attribute): Move here from i383/winnt.c.
1314 Replace use of DECL_INLINE with DECL_DECLARED_INLINE_P. Set
1315 DECL_VISIBLITY. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
1316 * tree.h (handle_dll_attribute): Declare. Test
1317 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
1318 * c-common.h (c_determine_visibility): Declare.
1319 * c-common.c (c_determine_visibility): New function.
1320 * c-decl.c (finish_decl): Use it.
1321 (finish_function): Likewise.
1322 * defaults.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define it to
1323 zero, by default. Use #if, not #ifdef, to test it.
1324 * config/arm/arm.c (arm_attribute_table): Use
1325 handle_dll_attribute. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with
1326 #if.
1327 * config/arm/pe.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define to 1.
1328 * config/i386/cygming.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
1329 to 1.
1330 * config/i386/i386-protos.h (ix86_handle_dll_attribute): Remove.
1331 * config/i386/i386.c (ix86_attribute_table): Use
1332 handle_dll_attribute for dllimport/dllexport. Test
1333 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
1334 * config/i386/winnt.c (ix86_handle_dll_attribute): Remove.
1335 * config/mcore/mcore.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
1336 it to 1.
1337 * config/mcore/mcore.c (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Test it
1338 with #if.
1339 * config/sh/symbian-pre.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
1340 it to 1.
1341 * doc/extend.texi (dllexport): Clarify and correct documentation.
1342 (dllimport): Likewise.
1343 * doc/tm.texi (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Mention
1344 handle_dll_attribute.
1345
1346 2004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1347
1348 * tree-ssa-loop-manip.c: New file.
1349 * Makefile.in (tree-ssa-loop-manip.o): Add.
1350 * tree-flow.h (rewrite_into_loop_closed_ssa, verify_loop_closed_ssa):
1351 Declare.
1352 * tree-ssa-loop.c (tree_loop_optimizer_init): Create loop closed ssa
1353 form.
1354 (tree_ssa_loop_done): Verify loop closed ssa form.
1355 * tree-ssa-loop-im.c (move_computations): Update loop closed ssa form.
1356
1357 2004-08-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1358
1359 * pa.c (pa_asm_output_aligned_bss, pa_asm_output_aligned_common,
1360 pa_asm_output_aligned_local): New functions.
1361 * pa-protos.h: Add prototypes for pa_asm_output_aligned_bss,
1362 pa_asm_output_aligned_common and pa_asm_output_aligned_local.
1363 * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Use
1364 pa_asm_output_aligned_common.
1365 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
1366 * pa.h (ASM_OUTPUT_ALIGNED_BSS): New macro.
1367 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
1368 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
1369 * pa64-hpux.h (MAX_OFILE_ALIGNMENT): New macro.
1370 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
1371 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
1372 * som.h (MAX_OFILE_ALIGNMENT): Provide maximum alignment of global
1373 common data.
1374
1375 2004-08-05 Andrew Pinski <apinski@apple.com>
1376
1377 * objc/objc-act.c (build_objc_string_object): Mark the address
1378 expression as constant.
1379
1380 2004-08-05 David Edelsohn <edelsohn@gnu.org>
1381
1382 * config/rs6000/rs6000.c (rs6000_rtx_costs): Fix mask_operand
1383 and mask64_operand thinkos. Handle ZERO_EXTRACT. Handle
1384 SIGN_EXTEND / ZERO_EXTEND of MEM. Handle rlwinm patterns.
1385
1386 2004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
1387
1388 * config/linux.h, config/i386/linux.h, config/sparc/linux.h:
1389 Remove definitions conditioned on USE_GNULIBC_1 or conditioned
1390 out, and associated obsolete comments.
1391
1392 2004-08-05 Nathan Sidwell <nathan@codesourcery.com>
1393
1394 * tree.h (force_fit_type): Return a tree, take three flags.
1395 * fold-const.c (force_fit_type): Set TREE_OVERFLOW and
1396 TREE_CONSTANT_OVERFLOW here.
1397 (int_const_binop, const_binop): Adjust.
1398 (size_int_type): Do sign extension here.
1399 (fold_convert_const, optimize_bit_field_compare,
1400 decode_field_reference, all_ones_mask_p, fold_div_compare, fold,
1401 fold_negate_const, fold_abs_const, fold_not_const): Adjust.
1402 * tree.c (size_in_bytes, int_fits_type_p): Adjust.
1403
1404 2004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1405
1406 PR tree-optimization/16864
1407 * tree-tailcall.c (eliminate_tail_call): Do not create phi nodes
1408 for ssa names without default_def.
1409
1410 2004-08-05 Richard Sandiford <rsandifo@redhat.com>
1411
1412 * config/i386/i386.c (ix86_expand_prologue): If the function uses a
1413 frame pointer, restore eax with an ebp-relative address.
1414
1415 2004-08-04 Geoffrey Keating <geoffk@apple.com>
1416
1417 PR 14516
1418 * c-common.c (c_expand_decl): Don't special-case static VAR_DECLs.
1419 * c-common.h (make_rtl_for_local_static): Delete.
1420 * c-decl.c (shadow_tag_warned): Clean up comment.
1421 (finish_decl): Clean up spacing. Use set_user_assembler_name when
1422 appropriate. Don't pass asmspec to rest_of_decl_compilation.
1423 * c-semantics.c (make_rtl_for_local_static): Delete.
1424 * expr.c (init_block_move_fn): Use set_user_assembler_name.
1425 (init_block_clear_fn): Likewise.
1426 * passes.c (rest_of_decl_compilation): Remove asmspec parameter,
1427 expect it to be in DECL_ASSEMBLER_NAME. Update callers in many files.
1428 * toplev.h (rest_of_decl_compilation): Remove asmspec parameter.
1429 * tree.h (make_decl_rtl): Remove second parameter.
1430 (set_user_assembler_name): New.
1431 * varasm.c (set_user_assembler_name): New.
1432 (make_decl_rtl): Remove second parameter. Update callers in many
1433 files.
1434
1435 2004-08-05 Adam Nemet <anemet@lnxw.com>
1436
1437 * config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0.
1438 (case rs6000-*-lynxos*): Rename it to powerpc-*-lynxos*. Update
1439 to LynxOS 4.0.
1440 * gthr-lynx.h: New file.
1441 * config/lynx-ng.h: Remove file.
1442 * config/lynx.h: Update to LynxOS 4.0.
1443 * config/t-lynx: New file.
1444 * config/i386/lynx-ng.h: Remove file.
1445 * config/i386/lynx.h: Update to LynxOS 4.0.
1446 * config/rs6000/lynxbase.h: Remove file.
1447 * config/rs6000/lynx.h: Update to LynxOS 4.0.
1448 * config/rs6000/t-lynx: New file.
1449 * doc/install.texi (Options specification): Remove reference to
1450 LynxOS from systems where --with-gnu-as makes a difference.
1451
1452 2004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
1453
1454 * c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and
1455 __UINTMAX_TYPE__.
1456 * c-cppbuiltin.c (builtin_define_stdint_macros): New. Define
1457 __INTMAX_MAX__.
1458 (c_cpp_builtins): Call it.
1459 * doc/cpp.texi: Update.
1460
1461 2004-08-04 David Edelsohn <edelsohn@gnu.org>
1462
1463 * config/rs6000/rs6000.c (rs6000_rtx_costs): LABEL_REFs are zero
1464 cost.
1465
1466 2004-08-04 Jan Hubicka <jh@suse.cz>
1467
1468 * basic-block.h (profile_staus): New global variable.
1469 * cfg.c (profile_status): Declare.
1470 (check_bb_profile): Break out from ....; use profile_status
1471 (dump_flow_info): ... here.
1472 * cfgbuild.c (find_basic_blocks): Set profile_status.
1473 * cfgexpand.c (tree_expand_cfg): Likewise.
1474 * predict.c (estimate_probability): Likewise.
1475 * profile.c (branch_prob): Likewise.
1476 * tree-cfg.c (build_tree_cfg): Likewise.
1477 (dump_function_to_file): Use check_bb_profile.
1478 * tree-pretty-print (dump_bb_header): Likewise.
1479 * tree-profile.c (do_tree_profiling): Cleanup.
1480
1481 2004-08-04 Zack Weinberg <zack@codesourcery.com>
1482
1483 * Makefile.in (RTL_BASE_H, RTL_H): Correct.
1484 (BUILD_RTL): Remove $(BUILD_PREFIX) from ggc-none.o.
1485 (genobjs): Add errors.o, ggc-none.o, and min-insn-modes.o.
1486 (read-rtl.o, gensupport.o, genconfig.o, genflags.o, gencodes.o)
1487 (genconstants.o, genemit.o, genopinit.o, genrecog.o, genextract.o)
1488 (genpeep.o, genattr.o, genattrtab.o, genautomata.o, genoutput.o)
1489 (genconditions.o): Depend on $(RTL_BASE_H) not $(RTL_H).
1490 (ggc-none.o, errors.o): Move rule to generators section;
1491 correct dependencies.
1492 (min-insn-modes.o): Move rule to generators section; remove
1493 unnecessary explicit command; correct dependencies.
1494 (print-rtl.o, print-rtl1.o): Correct dependencies.
1495 ($(BUILD_PREFIX_1)errors.o. $(BUILD_PREFIX_1)ggc-none.o): Delete rule.
1496 (mostlyclean): Update.
1497
1498 * errors.c: Include bconfig.h not config.h. Correct comment.
1499 * gengtype.c, genpreds.c: Don't define NO_GENRTL_H.
1500 * ggc-none.c: Include bconfig.h; not config.h or tm.h.
1501 * print-rtl.c: Don't include tm_p.h.
1502
1503 * rtl.h: Move forward-decl of struct function down where it's
1504 needed. Include genrtl.h #ifndef GENERATOR_FILE, not
1505 #ifndef NO_GENRTL_H. Remove unnecessary #ifdef BUFSIZ statements.
1506
1507 2004-08-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1508 Jeff Law <law@redhat.com>
1509
1510 * tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions.
1511 * tree-flow.h (rewrite_ssa_into_ssa): Declaration changed.
1512 * tree-into-ssa.c (rewrite_ssa_into_ssa): Use new interface to
1513 manipulate the duplicated ssa names.
1514 * tree-ssanames.c (ssa_names_to_rewrite): New variable.
1515 (marked_for_rewrite_p, any_marked_for_rewrite_p, mark_for_rewrite,
1516 unmark_all_for_rewrite, marked_ssa_names, release_ssa_name_force):
1517 New functions.
1518 (release_ssa_name): Do not release ssa names that may have multiple
1519 definitions.
1520 * tree.h (release_ssa_name_force, mark_for_rewrite,
1521 unmark_all_for_rewrite, marked_for_rewrite_p, any_marked_for_rewrite_p,
1522 marked_ssa_names): Declare.
1523 * tree-ssa-loop-ch.c (mark_defs_for_rewrite): Remove.
1524 (duplicate_blocks): Remove call to mark_defs_for_rewrite.
1525 Update call to rewrite_ssa_into_ssa.
1526
1527 2004-08-04 Mark Mitchell <mark@codesourcery.com>
1528
1529 * defaults.h (TARGET_DECLSPEC): New macro.
1530 * c-cppbuiltin.c (c_cpp_builtins): Handle TARGET_DECLSPEC.
1531 * config/arm/pe.h (SUBTARGET_CPP_SPEC): Remove __declspec support.
1532 * config/arm/symbian.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
1533 * config/i386/beof-elf.h (TARGET_OS_CPP_BUILTINS): Remove
1534 __declspec support.
1535 (TARGET_DECLSPEC): Define.
1536 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Remove
1537 __declspec support.
1538 * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS): Remove
1539 __declspec support.
1540 (TARGET_DECLSPEC): Define.
1541 * config/mcore/mcore.h (TARGET_CPU_CPP_BUILTINS): Remove
1542 __declspec support.
1543 * config/sh/symbian-pre.h (SUBTARGET_CPP_SPEC): Remove __declspec
1544 support.
1545 * doc/tm.texi (TARGET_DECLSPEC): Document.
1546
1547 * doc/extend.texi: Fix typo in comment.
1548
1549 2004-08-04 Paul Brook <paul@codesourcery.com>
1550
1551 * target-def.h (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
1552 (TARGET_CXX): Use it.
1553 * target.h (struct gcc_target): Add cdtor_returns_this.
1554 * config/arm/arm.c (arm_cxx_cdtor_returns_this): New function.
1555 (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
1556 * doc/tm.texi: Document TARGET_CXX_CDTOR_RETURNS_THIS.
1557
1558 2004-08-03 Nathan Sidwell <nathan@codesourcery.com>
1559
1560 * c-lex.c (narrowest_unsigned_type, narrowest_signed_type): Take
1561 low/high pair. Do range checking directly.
1562 (interpret_integer): Adjust.
1563
1564 2004-08-04 Nick Clifton <nickc@redhat.com>
1565
1566 * config/sh/sh.h (TARGET_SWITCHES): Add no-renesas to select the
1567 GCC ABI.
1568 * doc/invoke.texi: Document this new switch and also the -mrenesas
1569 switch.
1570
1571 2004-08-04 Nathan Sidwell <nathan@codesourcery.com>
1572
1573 * cfglayout.c (insn_locators_initialize): Update the current
1574 location before initializing a location.
1575
1576 2004-08-03 Zack Weinberg <zack@codesourcery.com>
1577
1578 * dbxout.c (dbxout_function_decl): Always call dbxout_function_end.
1579 (dbxout_function_end): Return after emitting the "Lscope" symbol
1580 under the same conditions that this function formerly wasn't called.
1581 Add explanatory comments.
1582
1583 PR 14860
1584 * c-decl.c (record_builtin_type): Call debug_hooks->type_decl
1585 on the new decl.
1586
1587 PR 13956
1588 * dbxout.c (dbx_output_lbrac, dbx_output_rbrac): New
1589 functions, broken out of dbxout_block.
1590 (dbxout_block): The block at depth 0 should get LBRAC/RBRAC
1591 stabs too, if it contains symbols. Use the begin_label and
1592 the Lscope label (emitted by dbxout_function_end) for the
1593 range of this block.
1594
1595 2004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
1596
1597 * doc/install.texi: Update autoconf version requirements.
1598
1599 2004-08-03 Zack Weinberg <zack@codesourcery.com>
1600
1601 * defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition.
1602 * recog.c (general_operand, immediate_operand, nonmemory_operand)
1603 (asm_operand_ok): Remove #ifdefs on LEGITIMATE_PICOPERAND_P.
1604 * regclass.c (record_reg_classes): Likewise.
1605 * reload.c (find_reloads): Likewise.
1606 * reload1.c (reload): Likewise.
1607
1608 2004-08-03 Zack Weinberg <zack@codesourcery.com>
1609
1610 * gensupport.c (init_md_reader_args_cb): Renamed from
1611 init_md_reader_args. Add third option, callback function for
1612 parsing program-specific options. Add diagnosis of incorrect
1613 number of input files.
1614 (init_md_reader): Fold into init_md_reader_args_cb.
1615 (init_md_reader_args): Now a thin wrapper around
1616 init_md_reader_args_cb.
1617 * gensupport.h: Update prototypes.
1618
1619 * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
1620 * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
1621 * genrecog.c: No need to diagnose lack of an input file;
1622 init_md_reader_args will handle it.
1623 * genconditions.c: Likewise, and use init_md_reader_args.
1624 * genconstants.c: Likewise, and no need to call read_md_rtx.
1625
1626 2004-08-03 Joseph S. Myers <jsm@polyomino.org.uk>
1627
1628 * c-decl.c (implicitly_declare): Diagnose incompatible implicit
1629 declarations.
1630
1631 2004-08-03 Mike Stump <mrs@apple.com>
1632
1633 * config/darwin-c.c: Don't search in "/Local/Library/Frameworks"
1634 for frameworks.
1635 * doc/invoke.texi (Darwin Options): Update to reflect above.
1636
1637 2004-08-03 Roger Sayle <roger@eyesopen.com>
1638
1639 PR middle-end/16790
1640 * fold-const.c (extract_muldiv_1) <NOP_EXPR>: Disallow local
1641 truncations, not just global truncations.
1642
1643 2004-08-03 Andrew Pinski <apinski@apple.com>
1644
1645 PR bootstrap/16865
1646 * loop-iv.c (simplify_using_assignment): Initialize lhs.
1647
1648 2004-08-03 Paul Brook <paul@codesourcery.com>
1649
1650 * gcc/doc/install.texi: Document MPFR requirement.
1651
1652 2004-08-03 Maciej W. Rozycki <macro@linux-mips.org>
1653
1654 * aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
1655 and mmap() explicitly instead of relying on preset autoconf cache
1656 variables.
1657 * configure: Regenerate.
1658
1659 2004-08-03 H.J. Lu <hongjiu.lu@intel.com>
1660
1661 PR target/16570
1662 * config.gcc (i[34567]86-*-* | x86_64-*-*): Add i386/t-gmm_malloc
1663 to tmake_file.
1664 (i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1): Likewise.
1665 (i[34567]86-*-linux* | x86_64-*-linux*): Add i386/t-pmm_malloc
1666 to tmake_file.
1667
1668 * config/i386/t-gmm_malloc: New file.
1669 * config/i386/t-pmm_malloc: Likewise.
1670
1671 * config/i386/xmmintrin.h: Include <mm_malloc.h>.
1672
1673 2004-08-03 H.J. Lu <hongjiu.lu@intel.com>
1674 Tanguy Fautrà <tfautre@pandora.be>
1675
1676 * config/i386/pmm_malloc.h: New file.
1677
1678 2004-08-03 Danny Smith <dannysmith@users.sourceforge.net>
1679
1680 * config/i386/gmm_malloc.h: New file.
1681
1682 2004-08-03 Dale Johannesen <dalej@apple.com>
1683
1684 * config/rs6000/rs6000.c (machopic_output_stub): Align Darwin stubs.
1685 * c-common.c: Include opts.h.
1686 (c_common_get_alias_set): Fix check for a single input file.
1687 * toplev.c: Remove current_file_decl.
1688 * tree.h: Ditto.
1689
1690 2004-08-03 Mark Mitchell <mark@codesourcery.com>
1691
1692 * config.gcc (arm*-*-symbianelf*): New target.
1693 * config/arm/symbian.h: New file.
1694
1695 * gthr-gnat.c: Add visibility #pragmas.
1696 * gthr-gnat.h : Likewise.
1697 * gthr.h: Likewise.
1698 * libgcc2.c (__ffsSI2): Move prototype to libgcc2.h.
1699 (__ffsDI2): Likewise.
1700 (__clzSI2): Likewise.
1701 (__ctzSI2): Likewise.
1702 (__ctzDI2): Likewise.
1703 (__popcountSI2): Likewise.
1704 (__popcountDI2): Likewise.
1705 (__paritySI2): Likewise.
1706 (__parityDI2): Likewise.
1707 * libgcc2.h: Add visibility #pragmas.
1708 (__clzDI2): Add prototype.
1709 (__clzSI2): Likewise.
1710 (__ctzSI2): Likewise.
1711 (__ffsDI2): Likewise.
1712 (__ffsSI2): Likewise.
1713 (__ctzDI2): Likewise.
1714 (__popcountSI2): Likewise.
1715 (__popcountDI2): Likewise.
1716 (__paritySI2): Likewise.
1717 (__parityDI2): Likewise.
1718 * unwind-dw2-fde.h: Add visibility #pragmas.
1719 * unwind.h: Likewise.
1720
1721 2004-08-03 David Edelsohn <edelsohn@gnu.org>
1722 Dale Johannesen <dalej@apple.com>
1723 Roger Sayle <roger@eyesopen.com>
1724
1725 * config/rs6000/rs6000.c (rs6000_rtx_costs): Calculate cost of
1726 constants more accurately. Adjust costs for FMA instructions.
1727 Add cases for most logical and float operations. Recurse into
1728 most operands.
1729
1730 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
1731
1732 * config.gcc (strongarm-*, xscale-*): Add t-arm to tmake_files.
1733
1734 2004-08-03 Pat Haugen <pthaugen@us.ibm.com>
1735
1736 * ra-build.c (conflicts_between_webs): For webs that cross a call add
1737 conflicts to regs_invalidated_by_call.
1738
1739 2004-08-03 Paul Brook <paul@codesourcery.com>
1740
1741 * config/arm/arm.c (emit_sfm): Only emit a single frame adjustment.
1742
1743 2004-08-03 Jan Hubicka <jh@suse.cz>
1744
1745 * coverage.c (tree_coverage_counter_ref): Fix computation of the new
1746 ARRAY_REF argument.
1747
1748 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
1749
1750 * arm-cores.def: Sort by architecture. Add arm946es, arm966es,
1751 arm968es, arm10e, arm1020e, arm1022e.
1752 * invoke.texi: Update list of ARM cores.
1753 * arm-tune.md: Regenerate.
1754
1755 2004-08-03 Richard Earnshaw <rearnsha@arm.com>
1756
1757 * arm/gentune.sh: New file.
1758 * arm/t-arm: New file.
1759 * arm/arm-tune.md: New file (autogenerated).
1760 * config.gcc (arm*-*-*): Add t-arm to tmake_file for all variants.
1761 * arm.md (attribute tune): Delete. Include arm-tune.md.
1762
1763 2004-08-03 Paolo Bonzini <bonzini@gnu.org>
1764
1765 * gcc.c (add_prefix, add_sysrooted_prefix): Remove
1766 penultimate parameter. All callers adjusted.
1767 (struct prefix_list): Remove used_flag_ptr.
1768 (find_a_file): Do not set *pl->used_flag_ptr.
1769 (warn_B, warn_std_ptr): Remove.
1770
1771 2004-08-03 Yossi Markovich <yossim@il.ibm.com>
1772 Mostafa Hagog <mustafa@il.ibm.com>
1773
1774 * config/rs6000/altivec.md (altivec_vnmsubfp): Fix wrong pattern.
1775
1776 2004-08-02 Geoffrey Keating <geoffk@apple.com>
1777
1778 * dwarf2out.c (output_call_frame_info): Don't change data format
1779 due to TARGET_USES_WEAK_UNWIND_INFO. Always refer to the local
1780 label. Use 'true' not '1'.
1781 * doc/install.texi (powerpc-*-darwin*): Mention cctools version
1782 required.
1783
1784 2004-08-02 Gabriel Dos Reis <gdr@cs.tamu.edu>
1785
1786 * gdbinit.in: Reflect previous changes to rtunion_def.
1787
1788 2004-08-02 Roger Sayle <roger@eyesopen.com>
1789
1790 * fold-const.c (fold) <TRUNC_MOD_EXPR>: The transformation "X % -Y"
1791 -> "X % Y" is only valid for TRUNC_MOD_EXPR.
1792
1793 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
1794
1795 * vec.h (DEF_VEC_P): Add proper cast to uses of vec_o_reserve and
1796 vec_p_reserve.
1797 * langhooks.h (lang_hooks::builtin_function): Rename parameter
1798 from "class" to "bt_class".
1799
1800 2004-08-02 Paul Brook <paul@codesourcery.com>
1801
1802 PR rtl-optimization/15068
1803 * flow.c (init_propagate_block_info): Check condition is reversible.
1804
1805 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
1806
1807 * gengtype.h (options::info): Change type to const char *.
1808 (enum gc_used_enum): Move out of struct type scope.
1809 * gengtype.c (create_option): Convert initializer for option::info to
1810 appropiate type.
1811 (adjust_field_type, walk_type, write_func_for_structure,
1812 write_root, write_roots): Remove pointless cast.
1813
1814 2004-08-02 J"orn Rennecke <joern.rennecke@superh.com>
1815
1816 * genopinit.c (gen_insn): Check for MODE_COMPLEX_FLOAT patterns for $F.
1817
1818 2004-08-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
1819
1820 * rtl.h (union rtunion_def): Have all members start with the
1821 prefix "rt_".
1822 (XINT, XSTR, XEXP, XVEC, XMODE, XBITMAP, XTREE, XBBDEF, XTMPL,
1823 X0INT, X0UINT, X0STR, X0EXP, X0VEC, X0MODE, X0BITMAP, X0TREE,
1824 X0MEMATTR, X0BBDEF, X0REGATTR, XCINT, XCUINT, XCSTR, XCEXP,
1825 XCVEC, XCMODE, XCBITMAP, XCTREE, XCBBDEF, XC2EXP): Adjust members
1826 access.
1827 * gengtype.c (adjust_field_rtx_def): Likewise.
1828 * rtlanal.c (loc_mentioned_in_p): Likewise.
1829
1830 2004-08-02 Richard Sandiford <rsandifo@redhat.com>
1831
1832 * config.gcc (mips*-*-elf*, mips*-*-rtems*): Add elfos.h to tm_file.
1833 Replace uses of mips/elf64.h with mips/elf.h
1834 * config/mips/elf.h (MAX_OFILE_ALIGNMENT, TARGET_ASM_NAMED_SECTION)
1835 (TYPE_OPERAND_FMT, TYPE_ASM_OP, SIZE_ASM_OP, BSS_SECTION_ASM_OP)
1836 (ASM_OUTPUT_ALIGNED_BSS, ASM_WEAKEN_LABEL, ASM_OUTPUT_WEAK_ALIAS)
1837 (MAKE_DECL_ONE_ONLY, INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP)
1838 (HANDLE_SYSV_PRAGMA): Delete.
1839 (ASM_OUTPUT_DEF): Fix formatting.
1840 * config/mips/elf64.h: Delete.
1841
1842 2004-08-01 Zack Weinberg <zack@codesourcery.com>
1843
1844 * config/ia64/ia64.c (got_symbolic_operand): Do require a
1845 symbol+offset operand to have its offset be zero mod 0x3fff
1846 when GOT entries are in use. Clarify logic in SYMBOL_REF
1847 case. Clarify comments.
1848 (ia64_expand_load_address): Split a symbol+offset load when
1849 the offset is nonzero mod 0x3fff, not 0x1fff.
1850
1851 2004-08-01 Geoffrey Keating <geoffk@apple.com>
1852
1853 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Just abort
1854 if trying to *store* to a non-offsettable address.
1855 * config/rs6000/rs6000.md (movtf_internal): Don't move GPRs to
1856 a nonoffsettable address.
1857 (movdi_internal32): Don't move GPRs to a nonoffsettable address.
1858 Clean up.
1859 (movti_string): Don't move GPRs to a nonoffsettable address.
1860 (movti_ppc64): Don't move GPRs to a nonoffsettable address. Clean up.
1861
1862 2004-08-02 Ben Elliston <bje@au.ibm.com>
1863
1864 PR target/16155
1865 * config/rs6000/altivec.h: Replace typeof with __typeof__.
1866
1867 2004-08-01 Richard Henderson <rth@redhat.com>
1868
1869 * expr.c (expand_expr_real_1) <normal_inner_ref>: Fix crash with
1870 variable sized types.
1871
1872 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
1873
1874 * doc/invoke.texi: In the MIPS options section, remove the passage
1875 saying that -mexplicit-relocs is usually disabled for -mabicalls
1876 -fno-unit-at-a-time.
1877 * config/mips/mips.c (override_options): Remove the code that enforced
1878 this rule.
1879
1880 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
1881
1882 * config/mips/mips.md (cprestore): Provide two alternatives, one for
1883 an in-range offset and one for an out-of-range offset. Wrap the latter
1884 in .set macro/.set nomacro if it's inside a .set nomacro block.
1885
1886 2004-08-01 Richard Sandiford <rsandifo@redhat.com>
1887
1888 * config/mips/mips-protos.h (mips_gp_save_slot): Remove.
1889 (mips_restore_gp): Declare.
1890 * config/mips/mips.c (mips_add_offset): Add a scratch register
1891 argument. Reimplement in rtl only, reusing MIPS16 logic from
1892 mips_output_mi_thunk.
1893 (mips_legitimize_address, mips_legitimize_const_move): Adjust calls
1894 to mips_add_offset.
1895 (mips_gp_save_slot): Delete.
1896 (mips_restore_gp): New function.
1897 (mips_set_return_address, mips_output_mi_thunk): Use mips_add_offset.
1898 * config/mips/mips.md (exception_receiver): Turn into a
1899 define_insn_and_split. Use mips_restore_gp to do the split.
1900 (call_internal, call_value_internal, call_value_multiple_internal): Use
1901 mips_restore_gp to restore $gp.
1902
1903 2004-07-31 Andrew Pinski <apinski@apple.com>
1904
1905 PR other/16842
1906 * mkheaders.in (libsubdir): s/gcc-lib/gcc/.
1907
1908 2004-07-31 Joseph S. Myers <jsm@polyomino.org.uk>
1909
1910 * c-decl.c (diagnose_mismatched_decls): Give error for external
1911 redeclaration of identifier declared with no linkage, not just
1912 warning with -Wtraditional. Do not check DECL_CONTEXT to give
1913 error for redeclaration with no linkage.
1914
1915 2004-07-30 Geoffrey Keating <geoffk@apple.com>
1916 Fariborz Jahanian <fjahanian@apple.com>
1917
1918 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Permit
1919 non-offsettable addresses even for DImode.
1920 (rs6000_split_multireg_move): Cope with non-offsettable addresses
1921 being moved into multiple GPRs.
1922
1923 * config/rs6000/rs6000.c (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Default
1924 to 64.
1925 (rs6000_override_options): Use RS6000_DEFAULT_LONG_DOUBLE_SIZE.
1926 * config/rs6000/darwin.h (RS6000_DEFAULT_LONG_DOUBLE_SIZE): Define
1927 to 128.
1928 * config/rs6000/darwin-ldouble.c (isless): New macro.
1929 (inf): New macro.
1930 (nonfinite): New macro.
1931 (FPKINF): Delete.
1932 (_xlqadd): Completely rewrite.
1933 (_xlqmul): Correct overflow handling.
1934 (_xlqdiv): Correct overflow handling.
1935 * config/rs6000/darwin-ldouble-format: New file.
1936
1937 2004-07-30 Roger Sayle <roger@eyesopen.com>
1938 Richard Henderson <rth@redhat.com>
1939
1940 * config/i386/i386.md: New peephole2's to convert imul by 3, 5 or
1941 9 into the equivalent lea instruction.
1942
1943 2004-07-30 Richard Henderson <rth@redhat.com>
1944
1945 * gimplify.c (gimplify_expr) <case CONST_DECL>: Don't replace
1946 with DECL_INITIAL if fb_lvalue.
1947 * tree-gimple.c (is_gimple_id): Add CONST_DECL.
1948 * tree-pretty-print.c (dump_decl_name): Dump unnamed CONST_DECL
1949 with <Cxxx>.
1950 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Fold CONST_DECL.
1951
1952 2004-07-30 Diego Novillo <dnovillo@redhat.com>
1953
1954 * tree-ssa-alias.c (compute_points_to_and_addr_escape): If a
1955 pointer escapes through a function call, assume that the
1956 callee will dereference it.
1957 (add_pointed_to_var): Assume that VALUE is always an
1958 ADDR_EXPR.
1959 (collect_points_to_info_r): Only call add_pointed_to_var if
1960 the value is an ADDR_EXPR.
1961
1962 2004-07-30 Diego Novillo <dnovillo@redhat.com>
1963
1964 * tree-ssa-alias.c (create_alias_map_for): Do not get the
1965 alias set of the inner type of ARRAY_TYPEs.
1966
1967 2004-07-29 Diego Novillo <dnovillo@redhat.com>
1968
1969 * tree-ssa-ccp.c (visit_assignment): Move code to prevent
1970 setting a non-register to UNDEFINED right before the call to
1971 set_lattice_value.
1972
1973 2004-07-29 Kaz Kojima <kkojima@gcc.gnu.org>
1974
1975 * config/sh/lib1funcs.asm: Make aliases movstr* for movmem*.
1976
1977 2004-07-29 Diego Novillo <dnovillo@redhat.com>
1978
1979 * tree-ssa.c (verify_flow_sensitive_alias_info): When
1980 comparing points-to sets of different pointers, make sure the
1981 second pointer is actually referenced in the code.
1982
1983 2004-07-29 Zack Weinberg <zack@codesourcery.com>
1984
1985 * config/ia64/ia64.c (setjmp_operand): Delete, unused.
1986 (got_symbolic_operand): Remove unreachable code.
1987 * config/ia64/ia64.h (PREDICATE_CODES): Remove entry for
1988 setjmp_operand; add entry for tls_symbolic_operand.
1989 * config/ia64/ia64-protos.h: Remove all prototypes of
1990 predicate functions.
1991
1992 2004-07-29 Mark Mitchell <mark@codesourcery.com>
1993
1994 * c-common.h (lang_post_pch_load): New variable.
1995 * c-pch.c (lang_post_pch_load): Define it.
1996 (c_common_read_pch): Use it.
1997 * cgraphunit.c (record_call_1): Give the front end a chance to
1998 record additional needed entities when a variable is marked as
1999 needed.
2000 * tlink.c (recompile_files): Robustify.
2001 (scan_linker_output): If a symbol is assigned to a file,
2002 but after recompilation is not present there, issue an error
2003 message.
2004
2005 2004-07-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2006
2007 * tree-ssa-loop-im.c (force_move_till_expr, force_move_till):
2008 Take orig_loop argument and pass it to set_level.
2009 (schedule_sm): Pass the correct orig_loop to force_move_till.
2010
2011 2004-07-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2012
2013 * cfgloop.c (update_latch_info): Update dominator of the new block.
2014 (canonicalize_loop_headers, flow_loops_find): Do not free dominance
2015 info.
2016 * dominance.c (verify_dominators): Check that the dominance tree is
2017 connected.
2018 (recount_dominator): Ignore unreachable blocks.
2019 (iterate_fix_dominators): Cleanup old dominance information before
2020 recomputing it.
2021
2022 2004-07-29 Diego Novillo <dnovillo@redhat.com>
2023
2024 * tree-ssa-operands.c (get_expr_operands): Revert changes
2025 to ADDR_EXPR processing introduced by:
2026 2004-06-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2027 * tree-ssa-operands.c (get_expr_operands): Minor rearrangements.
2028
2029 2004-07-29 Joseph S. Myers <jsm@polyomino.org.uk>
2030
2031 * doc/implement-c.texi: Add C90 subclause references. Point to
2032 preprocessor documentation instead of duplicating it. Add points
2033 only present in C90. Fill in documentation for all points.
2034
2035 2004-07-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2036
2037 * pa.c (output_movb): Correct typo.
2038
2039 2004-07-29 Pat Haugen <pthaugen@us.ibm.com>
2040
2041 * ra.h (single_reg_in_regclass): Declare.
2042 * ra.c (single_reg_in_regclass): Define.
2043 (first_hard_reg): New.
2044 (init_ra): Initialize single_reg_in_regclass.
2045 * ra-colorize.c (ok_class): New.
2046 (coalesce, aggressive_coalesce, extended_coalesce_2): Use it.
2047
2048 2004-07-29 Nathan Sidwell <nathan@codesourcery.com>
2049
2050 * gcov-io.h: Allow zero tag as EOF indicator.
2051 (gcov_is_eof): Remove.
2052 (gcov_truncate): Remove.
2053 * gcov-io.c (gcov_seek): Always SEEK_SET.
2054 * libgcov.c (gcov_exit): Don't use gcov_truncate. Write explicit
2055 EOF tag.
2056 * coverage.c (read_counts_file): Don't use gcov_is_eof.
2057 * gcov-dump.c (dump_file): Likewise.
2058 * gcov.c (read_graph_file, read_count_file): Likewise.
2059
2060 * c-decl.c (complete_array_type): Don't gratuitously copy
2061 maxindex. Check it always has a type.
2062
2063 2004-07-29 Steven Bosscher <stevenb@suse.de>
2064
2065 * rtl.c (currently_expanding_to_rtl): New.
2066 * rtl.h (currently_expanding_to_rtl): Export it.
2067 * cfgexpand.c (tree_cfg_expand): Set/clear it at entry/exit.
2068
2069 * config/alpha/alpha.c (alpha_expand_mov): Remove old RTL
2070 inliner hack.
2071 * config/sh/sh.c: Replace rtx_equal_function_value_matters
2072 with currently_expanding_to_rtl.
2073 * config/sh/sh.md: Likewise.
2074 * config/ia64/ia64.c (got_symbolic_operand): Likewise.
2075
2076 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
2077
2078 Introduce sh2a support.
2079 2004-07-29 Alexandre Oliva <aoliva@redhat.com>
2080 * config.gcc: Build multilibs for sh2a and sh2a-single by
2081 default.
2082 * config/sh/sh.h (SUPPORT_SH2A, SUPPORT_SH2A_SINGLE): Define by
2083 default. Split their tests out of the corresponding SH4
2084 multilibs.
2085 * config/sh/t-sh (MULTILIB_MATCHES): Don't ever use SH4 or SH4a
2086 multilibs for SH2a.
2087 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
2088 * config.gcc: Handle sh2a multilibs and cpu selection.
2089 * config/sh/sh.h: Likewise. Handle sh2a command line flags.
2090 * config/sh/t-mlib-sh2a: New.
2091 * config/sh/t-mlib-sh2a-nofpu: New.
2092 * config/sh/t-mlib-sh2a-single: New.
2093 * config/sh/t-mlib-sh2a-single-only: New.
2094 2004-07-09 Nick Clifton <nickc@redhat.com>
2095 Issue 43400
2096 * config/sh/sh.h (DRIVER_SELF_SPECS): Issue an error message if
2097 -ml and -m2a are used together.
2098 2004-03-23 DJ Delorie <dj@redhat.com>
2099 * config/sh/sh.c (sh_builtin_saveregs): Use the double code only
2100 when we have a double-sized FPU.
2101 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
2102 * config/sh/lib1funcs.asm (set_fpscr): Don't build if __SH2A_NOFPU__
2103 is set.
2104 * config/sh/elf.h (SUBTARGET_ASM_ISA_SPEC): Add cases for -msh2a-nofpu,
2105 -msh2a-single and -msh2a-single-only
2106 2004-02-24 Corinna Vinschen <vinschen@redhat.com>
2107 * config/sh/crt1.asm: Don't generate FPU instructions if __SH2A_NOFPU__
2108 is set.
2109 2004-02-20 DJ Delorie <dj@delorie.com>
2110 * config/sh/sh.md (movsf_i, movsf_ie, movsf, ble, bge): Disable for sh2a-nofpu.
2111 2004-02-20 Fred Fish <fnf@redhat.com>,
2112 Corinna Vinschen <vinschen@redhat.com>
2113 * config/sh/t-sh (MULTILIB_OPTIONS): Add 2a-nofpu.
2114 (MULTILIB_EXCEPTIONS): Don't build littel-endian on sh2a.
2115 2004-02-18 DJ Delorie <dj@redhat.com>
2116 * config/sh/sh.c (broken_move): Add support for movi20.
2117 * config/sh/sh.h: Likewise.
2118 (SHIFT_COUNT_TRUNCATED): Set for sh2a.
2119 * config/sh/sh.md (udivsi3_sh2a): New.
2120 (udivsi3): Call it.
2121 (divsi3_sh2a): New.
2122 (divsi3): Call it.
2123 (mul_r): New.
2124 (ashlsi3_sh2a): New.
2125 (ashrsi3_sh2a): New.
2126 (lshrsi3_sh2a): New.
2127 (movsi_i): Disable for sh2a.
2128 (movsi_ie): Add movi20.
2129 (movsf_i, movsf_ie, movsf, ble, untyped_call): Explicitly enable
2130 sh2a, for -m2a-nofpu mode.
2131 2004-02-13 DJ Delorie <dj@redhat.com>
2132 * config/sh/lib1funcs.asm: Handle double vs single better.
2133 * config/sh/sh.h: Likewise.
2134 2004-02-09 DJ Delorie <dj@redhat.com>
2135 * config/sh/crt1.asm: Add support for sh2a.
2136 * config/sh/elf.h: Likewise.
2137 * config/sh/lib1funcs.asm: Likewise.
2138 * config/sh/sh.c: Likewise.
2139 * config/sh/sh.md: Likewise.
2140 * config/sh/sh.h: Likewise.
2141 * config/sh/t-sh: Likewise.
2142
2143 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
2144
2145 * config/frv/frv.md (movqi_internal, movhi_internal,
2146 movsi_internal): Add backup alternatives for memory inputs.
2147
2148 2004-07-28 Matt Austern <austern@apple.com>
2149
2150 * config/darwin.c (darwin_one_byte_bool): New global variable.
2151 * config/darwin.h (darwin_one_byte_bool): Declare.
2152 (SUBTARGET_OPTIONS): Define macro. (for -mone-byte-bool flag.)
2153 * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Conditionalize on
2154 value of darwin_one_byte_bool.
2155 * doc/invoke.texi: Document -mone-byte-bool flag.
2156
2157 2004-07-28 Eric Christopher <echristo@redhat.com>
2158
2159 * c-common.c (c_common_unsafe_for_reeval): Delete.
2160 * c-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete use.
2161 * c-pretty-print.c (pp_c_expression): Delete UNSAVE_EXPR case.
2162 * calls.c (fix_unsafe_tree): Delete.
2163 (expand_call): Delete code which used above.
2164 * dojump.c (do_jump): Delete UNSAVE_EXPR case.
2165 * expr.c (expand_expr_real_1): Ditto.
2166 * fold-const.c (non_lvalue): Ditto.
2167 * langhooks-def.h (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
2168 (lhd_unsafe_for_reeval): Ditto.
2169 * langhooks.c (lhd_unsafe_for_reeval): Ditto.
2170 * langhooks.h (unsafe_for_reeval): Ditto.
2171 (unsave_expr_now): Adjust comment.
2172 * tree-inline.c (copy_body_r): Delete UNSAVE_EXPR bits.
2173 (estimate_num_insns_1): Ditto.
2174 * tree-pretty-print.c (dump_generic_node): Ditto.
2175 * tree.c (expr_align): Ditto.
2176 (unsave_expr): Delete.
2177 (unsafe_for_reeval): Ditto.
2178 * tree.h (unsafe_for_reeval, unsave_expr): Ditto.
2179 * tree.def (UNSAVE_EXPR): Delete.
2180 * objc/objc-lang.c (LANG_HOOKS_UNSAFE_FOR_REEVAL): Delete.
2181
2182 2004-07-28 Zack Weinberg <zack@codesourcery.com>
2183
2184 * tree.h (enum tls_model): Move ...
2185 * coretypes.h: ... here.
2186
2187 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
2188
2189 * config/frv/frv.h (EPILOGUE_USES): New. Use LR.
2190
2191 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
2192
2193 * cse.c (validate_canon_reg): New function, split out from...
2194 (canon_reg): ...here. Use validate_canon_reg for both 'e' and 'E'.
2195
2196 2004-07-28 Diego Novillo <dnovillo@redhat.com>
2197
2198 * tree-ssa-alias.c (maybe_create_global_var): Don't just
2199 return if .GLOBAL_VAR has been created.
2200
2201 2004-07-28 Diego Novillo <dnovillo@redhat.com>
2202
2203 * tree-ssa.c (verify_flow_insensitive_alias_info): Process
2204 every variable that may have aliases, not just tags.
2205
2206 2004-07-28 Aldy Hernandez <aldyh@redhat.com>
2207
2208 * config/rs6000/rs6000.md ("move_from_CR_gt_bit"): Rename to
2209 move_from_CR_eq_bit.
2210 Rename UNSPEC_MV_CR_GT to UNSPEC_MV_CR_EQ.
2211
2212
2213 * config/rs6000/spe.md ("e500_flip_gt_bit"): Rename to
2214 e500_flip_eq_bit.
2215
2216 * config/rs6000/rs6000-protos.h: Rename output_e500_flip_gt_bit to
2217 output_e500_flip_eq_bit.
2218
2219 * config/rs6000/rs6000.c (output_e500_flip_gt_bit): Rename to
2220 output_e500_flip_eq_bit.
2221 (rs6000_emit_sCOND): Rename call to output_e500_flip_gt_bit to
2222 output_e500_flip_eq_bit.
2223 Rename gen_move_from_CR_gt_bit to gen_move_from_CR_eq_bit.
2224 (print_operand): case D. Get to EQ bit.
2225
2226 2004-07-28 Richard Sandiford <rsandifo@redhat.com>
2227
2228 * gcov.c (function_summary): Add missing \n.
2229
2230 2004-07-28 Alexandre Oliva <aoliva@redhat.com>
2231
2232 Introduce sh4a support.
2233 * config.gcc: Handle sh4a multilibs and cpu selection.
2234 * config/sh/sh.h: Likewise. Handle sh4a command line flags.
2235 * config/sh/t-mlib-sh4a: New.
2236 * config/sh/t-mlib-sh4al: New.
2237 * config/sh/t-mlib-sh4a-nofpu: New.
2238 * config/sh/t-mlib-sh4a-single: New.
2239 * config/sh/t-mlib-sh4a-single-only: New.
2240 2004-02-20 DJ Delorie <dj@redhat.com>
2241 * config/sh/sh.md ("movua"): Change constraint from "m" to "Sua".
2242 * config/sh/sh.h (EXTRA_CONSTRAINT_S): Add "Sua" support.
2243 2003-08-22 Eric Christopher <echristo@redhat.com>
2244 * config/sh/sh4a.md: Update for chip errata.
2245 2003-08-07 Eric Christopher <echristo@redhat.com>
2246 * config/sh/sh4a.md: New file. sh4a processor description.
2247 2003-07-08 Alexandre Oliva <aoliva@redhat.com>
2248 * config/sh/sh.h (TARGET_SWITCHES): Added 4al. Adjust description
2249 of -m4a-nofpu.
2250 (SH_ASM_SPEC): Pass -dsp for -m4al, not -m4a-nofpu.
2251 * config/sh/t-sh (MULTILIB_MATCHES): Map -m4al to -m4a-nofpu.
2252 * doc/invoke.texi (SH Options): Document -m4al.
2253 2003-07-03 Alexandre Oliva <aoliva@redhat.com>
2254 * config/sh/sh.c (expand_block_move): Remove commented-out code
2255 checked in by mistake.
2256 (sh_cannot_change_mode_class): Enable SUBREGs to be used to select
2257 single elements from SFmode vectors.
2258 * config/sh/sh.md (fsca): Use VEC_CONCAT to initialize the output
2259 register.
2260 (sinsf2, cossf2, sindf2, cosdf2): Don't emit CLOBBER.
2261 2003-07-01 Alexandre Oliva <aoliva@redhat.com>
2262 * config/sh/sh.h (sh_fsca_sf2int, sh_fsca_df2int,
2263 sh_fsca_int2sf): Remove variable declarations.
2264 * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
2265 sh_fsca_int2sf): New functions.
2266 (sh_fsca_sf2int_rtx, sh_fsca_df2int_rtx,
2267 sh_fsca_int2sf_rtx): New static variables.
2268 * config/sh/sh-protos.h (sh_fsca_sf2int, sh_fsca_df2int,
2269 sh_fsca_int2sf): Declare.
2270 * config/sh/sh.md: Adjust.
2271 * doc/invoke.texi (SH Options): Document new options.
2272 * config/sh/lib1funcs.asm (ic_invalidate): Remove SH4a forward
2273 compatibility from SH4 code.
2274 2003-06-27 Alexandre Oliva <aoliva@redhat.com>
2275 * config/sh/sh.c (expand_block_move): Don't emit POST_INC too
2276 early.
2277 (memory_movsrc_operand): Renamed to...
2278 (unaligned_load_operand): ... this. Simplified.
2279 * config/sh/sh.h (PREDICATE_CODES): Adjust.
2280 * config/sh/sh.md (movua, extv, extzv): Likewise. Change movua's
2281 input operand to SImode, and adjust the others. Introduce
2282 post-increment by peephole.
2283 * config/sh/sh.c (expand_block_move): Give the target address the
2284 same mode as the temp reg.
2285 * config/sh/sh.c (expand_block_move): Use a temp reg for unaligned
2286 copying.
2287 2003-06-26 Alexandre Oliva <aoliva@redhat.com>
2288 Introduce support for SH4a.
2289 * config/sh/lib1funcs.asm (ic_invalidate): Use icbi if
2290 __SH4A__. Emit 4 4kb blocks and touch all of them otherwise.
2291 * config/sh/sh.c (sh_fsca_sf2int, sh_fsca_df2int,
2292 sh_fsca_int2sf): New.
2293 (sh_init_builtins): Initialize them.
2294 (print_operand): Support `d'.
2295 (expand_block_move): Use movua if src is misaligned.
2296 (memory_movsrc_operand): New.
2297 * config/sh/sh.h (TARGET_CPU_CPP_BUILTINS): Define __SH4A__
2298 and one of the SH4 macros.
2299 (SH4A_BIT, TARGET_SH4A_ARCH, TARGET_SH4A_FP,
2300 SELECT_SH4A_NOFPU, SELECT_SH4A_SINGLE_ONLY, SELECT_SH4A,
2301 SELECT_SH4A_SINGLE): New.
2302 (TARGET_NONE): Add SH4A_BIT.
2303 (TARGET_SWITCHES): Add 4a-single-only, 4a-single, 4a-nofpu and 4a.
2304 (SH_ASM_SPEC): Pass -dsp if -m4a-nofpu.
2305 (sh_fsca_sf2int, sh_fsca_df2int, sh_fsca_int2sf): Declare.
2306 (OVERRIDE_OPTIONS): Set cpu to CPU_SH4A when appropriate.
2307 (enum processor_type): Added PROCESSOR_SH4A.
2308 (PREDICATE_CODES): Add memory_movsrc_operand.
2309 * config/sh/sh.md: Removed unused variables.
2310 (attr cpu): Add sh4a.
2311 (attr type): Add movua, fsrra and fsca.
2312 (prefetch): New, for SH4.
2313 (ic_invalidate_line, ic_invalidate_line_sh4a): Use icbi.
2314 (toggle_sz): Set type to fp.
2315 (toggle_pr, rsqrtsf2, fsca, sinsf2, cossf2, sindf2, cosdf2): New.
2316 (movua, extv, extzv): New.
2317 * config/sh/t-sh: Add multilibs for 4a, 4a-nofpu, 4a-single
2318 and 4a-single-only.
2319
2320 2004-07-28 Diego Novillo <dnovillo@redhat.com>
2321
2322 * tree-optimize.c (init_tree_optimization_passes): Schedule
2323 pass_may_alias right after the program is renamed into SSA.
2324 * tree-pass.h (PROP_alias): Define.
2325 * tree-outof-ssa.c (pass_del_ssa): Require PROP_alias.
2326 * tree-sra.c (pass_sra): Likewise.
2327 * tree-ssa-ccp.c (pass_ccp): Likewise.
2328 * tree-ssa-copyrename.c (pass_rename_ssa_ccp): Likewise.
2329 * tree-ssa-dce.c (pass_dce): Likewise.
2330 * tree-ssa-dom.c (pass_dominator): Likewise.
2331 * tree-ssa-dse.c (pass_dse): Likewise.
2332 * tree-ssa-forwprop.c (pass_forwprop): Likewise.
2333 * tree-ssa-loop-ch.c (pass_ch): Likewise.
2334 * tree-ssa-phiopt.c (pass_phiopt): Likewise.
2335 * tree-ssa-pre.c (pass_pre): Likewise.
2336 * tree-tailcall.c (pass_tail_recursion): Likewise.
2337 * tree-ssa.c (pass_redundant_phi): Likewise.
2338 * tree-ssa-alias.c (aliases_computed_p): Remove.
2339 Update all users.
2340 (init_alias_info): Do not mark all type tags for renaming
2341 unconditionally.
2342 Clear may_aliases from every symbol.
2343 (setup_pointers_and_addressables): If a pointer has not been
2344 dereferenced and it had a type tag, clear it and mark the old
2345 tag for renaming.
2346
2347 2004-07-28 Diego Novillo <dnovillo@redhat.com>
2348
2349 PR tree-optimization/16705
2350 * tree-ssa-alias.c (create_global_var): Set DECL_EXTERNAL on
2351 .GLOBAL_VAR.
2352
2353 2004-07-27 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2354
2355 * expr.c (expand_expr_real_1, case PARM_DECL): Remove obsolete error
2356 check.
2357
2358 * gimplify.c (maybe_with_size_expr): If already have WITH_SIZE_EXPR,
2359 don't make another one.
2360
2361 PR optimization/15077
2362 * function.h (struct function): Add field saved_static_chain_decl.
2363 Fix comment for static_chain_decl.
2364 * tree-inline.c (save_body): Add new arg and handle static_chain_decl.
2365 * tree-inline.h (save_body): Add new arg.
2366 * tree-optimize.c (tree_rest_of_compilation): Handle saving
2367 static_chain_decl.
2368
2369 2004-07-27 Richard Henderson <rth@redhat.com>
2370
2371 * gimplify.c (is_gimple_addr_expr_arg_or_indirect): Remove.
2372 (gimplify_modify_expr, gimplify_addr_expr, gimplify_expr): Use
2373 is_gimple_addressable.
2374 * tree-gimple.c (is_gimple_addressable): Rename from
2375 is_gimple_addr_expr_arg; accept INDIRECT_REF.
2376 (is_gimple_lvalue): Don't test INDIRECT_REF directly.
2377 * tree-gimple.h, tree-sra.c, tree-ssa-loop-im.c: Update for
2378 rename to is_gimple_addressable.
2379
2380 2004-07-28 Alan Modra <amodra@bigpond.net.au>
2381
2382 * config/rs6000/rs6000.c (function_arg_padding): Pad SFmode upwards.
2383
2384 2004-07-27 Richard Henderson <rth@redhat.com>
2385
2386 * function.c (assign_stack_local_1): Widen alignment to HOST_WIDE_INT
2387 before rounding.
2388
2389 2004-07-27 Zack Weinberg <zack@codesourcery.com>
2390
2391 * libgcc2.c: Change all conditionals testing
2392 LIBGCC2_LONG_DOUBLE_TYPE_SIZE == 96 to == 80.
2393 * libgcc2.h: Likewise.
2394 * config/i386/i386.c (ix86_init_mmx_sse_builtins): Set
2395 TYPE_PRECISION of float80_type to 80.
2396 * config/ia64/ia64.c (ia64_init_builtins): Set TYPE_PRECISION
2397 of fpreg_type and float80_type to 80.
2398 * config/i386/i386.h, config/ia64/ia64.h, config/m68k/m68k.h
2399 * config/m68k/netbsd-elf.h:
2400 Change LONG_DOUBLE_TYPE_SIZE and possibly LIBGCC2_LONG_DOUBLE_TYPE_SIZE
2401 to evaluate to 80 whenever they would formerly have evaluated to 96.
2402 * config/i386/sco5.h: Remove unnecessary redefinition of
2403 LONG_DOUBLE_TYPE_SIZE.
2404 * doc/rtl.texi: Clarify uses of XFmode and TFmode.
2405 * config/i386/i386-modes.def: Use FRACTIONAL_FLOAT_MODE for
2406 XFmode, with a bitsize of 80. Update commentary.
2407 * config/ia64/ia64-modes.def: Likewise.
2408 * config/m68k/m68k-modes.def: Likewise.
2409
2410 2004-07-27 Steven Bosscher <stevenb@suse.de>
2411
2412 * cfgexpand.c (tree_expand_cfg): Fix comment.
2413
2414 * calls.c (expand_call): Ignore rtx_equal_function_value_matters.
2415 * function.c (purge_single_hard_subreg_set, purge_hard_subreg_sets):
2416 Remove.
2417 (prepare_function_start): Don't set rtx_equal_function_value_matters.
2418 * integrate.c (copy_rtx_and_substitute): Don't test for it.
2419 * passes.c (rest_of_compilation): Don't call purge_hard_subreg_sets.
2420 Don't set rtx_equal_function_value_matters. Don't register RTL hooks
2421 here again. Update leading comment.
2422 * rtl.c (rtx_equal_function_value_matters): Remove.
2423 (rtx_equal_p): Don't test for it.
2424 * simplify-rtx.c (simplify_binary_operation, simplify_subreg):
2425 Likewise.
2426
2427 * rtl.h (enum insn_note): Remove NOTE_INSN_LOOP_END_TOP_COND.
2428 * rtl.c (note_insn_name): Likewise.
2429 * emit-rtl.c (remove_unnecessary_notes): Don't handle it.
2430 * final.c (final_scan_insn): Likewise.
2431
2432 * except.c (finish_eh_generation): Don't call cfg_cleanup from here.
2433 * passes.c (rest_of_handle_eh): Do it here.
2434
2435 * stmt.c (struct nesting): Remove struct nesting block member.
2436 (struct stmt_status): Remove x_block_start_count field.
2437 (current_block_start_count): Remove.
2438
2439 2004-07-27 Brian Booth <bbooth@redhat.com>
2440
2441 * tree-optimize.c (register_one_dump_file): Update condition that uses
2442 static_pass_number.
2443 (dup_pass_1): Replace with...
2444 (next_pass_1): This.
2445 (NEXT_PASS): Call next_pass_1.
2446 (DUP_PASS): Remove.
2447 (init_tree_optimization_passes): Remove uses of DUP_PASS.
2448 (execute_one_pass): Update condition that uses
2449 static_pass_number.
2450 * tree-pass.h (tree_opt_pass): Declare static_pass_number as a signed
2451 integer.
2452
2453 2004-07-27 Nick Clifton <nickc@redhat.com>
2454
2455 * config/m32r/m32r.c: Include integrate.h in order to get the
2456 prototype for get_hard_reg_initial_val().
2457
2458 * config/m32r/m32r.md (m32rpipeline): Remove unused value "m32r"
2459 and tidy up indentation.
2460 (final_presence_set): Use absence_set instead, so that if there is
2461 nothing in the "o" pipe the "s" pipe can be scheduled.
2462
2463 2004-07-27 Diego Novillo <dnovillo@redhat.com>
2464
2465 * tree-ssa-alias.c (create_name_tags): Ignore pointers that
2466 don't have PT_VARS nor PT_MALLOC set.
2467 Clear name tag from pointers that have not been dereferenced.
2468 (set_pt_anything, set_pt_malloc): Forward declare.
2469 * tree-ssa-copy.c (may_propagate_copy): Compare alias sets,
2470 not type compatibility when determining if a pointer can be
2471 copy propagated.
2472
2473 2004-07-27 Richard Sandiford <rsandifo@redhat.com>
2474
2475 * expr.h (canonicalize_condition, get_condition): Add an int argument.
2476 * gcse.c (fis_get_condition): Reimplement using get_condition, leaving
2477 it to check whether the condition is still valid at the jump insn.
2478 * ifcvt.c (noce_get_condition): Likewise.
2479 (noce_get_alt_condition): Update call to canonicalize_condition.
2480 * loop-iv.c (simplify_using_initial_values): Update call to
2481 get_condition. Remove FIXME.
2482 (check_simple_exit): Update call to get_condition.
2483 * loop-unswitch.c (may_unswitch_on): Likewise.
2484 * loop.c (check_dbra_loop): Likewise.
2485 (canonicalize_condition, get_condition): Add an argument to say whether
2486 the condition must still be valid at INSN.
2487 (get_condition_for_loop): Update call to get_condition. Require that
2488 the condition be valid at INSN.
2489 * predict.c (estimate_probability): Update call to get_condition.
2490 Remove unused earliest parameter.
2491 (expected_value_to_br_prob): Update call to canonicalize_condition.
2492
2493 2004-07-26 Eric Christopher <echristo@redhat.com>
2494
2495 * tree-dfa.c (add_referenced_var): Register initializers of global
2496 variables.
2497
2498 2004-07-26 Paolo Bonzini <bonzini@gnu.org>
2499
2500 * config/i386/i386.c (function_arg): Always treat 8-
2501 and 16-byte wide vectors the same, even if MMX/SSE
2502 are disabled.
2503 (contains_128bit_aligned_vector_p): Add comment.
2504
2505 2004-07-26 J"orn Rennecke <joern.rennecke@superh.com>
2506
2507 * ra.h (enum node_type): Rename to:
2508 (enum ra_node_type).
2509 * ra-colorize.c: Likewise.
2510
2511 2004-07-26 Richard Sandiford <rsandifo@redhat.com>
2512
2513 * cfgcleanup.c (try_simplify_condjump): Call update_forwarder_flag
2514 after simplifying the jump.
2515
2516 2004-06-26 Richard Henderson <rth@redhat.com>
2517
2518 * calls.c (combine_pending_stack_adjustment_and_call): Make
2519 preferred_unit_stack_boundary argument unsigned. Make
2520 unadjusted_alignment unsigned.
2521 (expand_call): Make preferred_stack_boundary and
2522 preferred_unit_stack_boundary variables unsigned.
2523 * function.c (assign_stack_local_1): Make alignment unsigned.
2524 * function.h (struct function): Make stack_alignment_needed,
2525 preferred_stack_boundary unsigned.
2526 * config/i386/i386.c (ix86_preferred_stack_boundary): Make unsigned.
2527 (ix86_compute_frame_layout): Make stack_alignment_needed,
2528 preferred_alignment variables unsigned.
2529 * config/i386/i386.h (ix86_preferred_stack_boundary): Make unsigned.
2530
2531 2004-07-26 Tom Tromey <tromey@redhat.com>
2532
2533 * tree.h: Fix typo in comment.
2534
2535 2004-07-26 Daniel Jacobowitz <dan@debian.org>
2536
2537 PR bootstrap/12804
2538 * ggc-zone.c (struct alloc_chunk): Remove attribute packed.
2539 (MAX_FREE_BIN_SIZE): Increase on 64-bit targets.
2540 (ggc_free): Remove incorrect freeing.
2541 (sweep_pages): Advance PP for large pages. Fix indentation.
2542
2543 2004-07-26 Richard Sandiford <rsandifo@redhat.com>
2544
2545 PR rtl-optimization/16643
2546 * cfglayout.h (cfg_layout_initialize): Add a flags parameter.
2547 * cfglayout.c (cfg_layout_initialize): Pass it to cleanup_cfg.
2548 * basic-block.h (reorder_basic_blocks): Add a flags parameter.
2549 * cfglayout.c (reorder_basic_blocks): Pass it to cfg_layout_initialize.
2550 (partition_hot_cold_basic_blocks): Pass 0 to cfg_layout_initialize.
2551 * function.c (thread_prologue_and_epilogue_insns): Likewise.
2552 * rtl.h (tracer): Add a flags parameter.
2553 * tracer.c (tracer): Pass it to cfg_layout_initialise.
2554 * passes.c (rest_of_handle_stack_regs): Pass 0 to reorder_basic_blocks.
2555 (rest_of_handle_reorder_blocks): Update calls to tracer and
2556 reorder_basic_blocks, passing CLEANUP_UPDATE_LIFE if appropriate.
2557 (rest_of_handle_tracer): Pass 0 to tracer.
2558 (rest_of_handle_loop2): Pass 0 to cfg_layout_initialize.
2559
2560 2004-07-25 David Edelsohn <edelsohn@gnu.org>
2561
2562 PR target/16239
2563 * config/rs6000/rs6000.md (movdi_internal64): Further disparage
2564 f->f.
2565
2566 2004-07-24 Nathan Sidwell <nathan@codesourcery.com>
2567
2568 * tree.h (BINFO_BASE_ACCESSES): Accesses are a VEC(tree).
2569 (BINFO_BASE_ACCESS): Adjust.
2570 (BINFO_BASE_ACCESS_APPEND): New.
2571 (struct tree_binfo): Make base_accesses a VEC(tree) pointer.
2572 * dbxout.c (dbxout_type): Adjust binfo access accessing.
2573 * dwarf2out.c (gen_member_die): Likewise.
2574 * tree-dump.c (deque_and_dump): Likewise.
2575
2576 2004-07-26 Falk Hueffner <falk@debian.org>
2577
2578 * config/alpha/alpha.c (alpha_rtx_cost_data): Tweak int_div
2579 costs.
2580
2581 2004-07-25 Roger Sayle <roger@eyesopen.com>
2582
2583 * config/i386/i386.c (output_fp_compare): Use ffreep to pop top
2584 value off of the stack if TARGET_USE_FFREEP.
2585
2586 2004-07-26 Bernardo Innocenti <bernie@develer.com>
2587
2588 * gengtype.c (oprintf): Replace xrealloc () with XRESIZEVEC ().
2589 * gengtype-yacc.y: Likewise. Replace free() with XDELETE ().
2590 * c-typeck.c (PUSH_SPELLING): Remove redundant NULL-pointer
2591 check on invocation of XRESIZEVEC ().
2592
2593 2004-07-26 Bernardo Innocenti <bernie@develer.com>
2594
2595 * c-common.c (disable_builtin_function): Rename variable n to
2596 new_disabled_builtin.
2597 * c-decl.c (duplicate_decls): Rename parameter decl to new_decl.
2598 Rename local variable old to old_decl.
2599 * gensupport.c (shift_output_template): Rename parameter old to src.
2600 * simplify-rtx.c (simplify_replace_rtx): Rename parameter oldx to
2601 old_rtx and newx to new_rtx.
2602
2603 2004-07-26 Bernardo Innocenti <bernie@develer.com>
2604
2605 * Makefile.in (C_PRAGMA_H): New variable to track dependencies
2606 of c-pragma.h.
2607 * c-pragma.h (c_lex, c_lex_with_flags): Change returntype to
2608 enum cpp_ttype.
2609 * c-lex.c: Likewise.
2610
2611 2004-07-25 Roger Sayle <roger@eyesopen.com>
2612
2613 * fold-const.c (constant_boolean_node): Make extern.
2614 (make_range): Wrap long lines.
2615 (fold_cond_expr_with_comparison): Remove unnecessary call to
2616 pedantic_non_lvalue. Add missing calls to fold_convert.
2617 (fold_truthop): Add missing calls to fold_convert.
2618 (fold): Likewise.
2619 * tree.h (constant_boolean_node): Add prototype here.
2620 * builtins.c (expand_builtin_strncmp): Add missing calls to
2621 fold_convert.
2622 * tree-ssa-dom.c (record_equivalences_from_incoming_edge):
2623 Call fold_convert and constant_boolean_node to correct types.
2624 * tree-ssa-forwprop.c (substitute_single_use_vars): Add
2625 missing call to fold_convert to correct types.
2626
2627 2004-07-26 Niall Douglas <s_fsfeurope2@nedprod.com>
2628 Brian Ryner <bryner@brianryner.com>
2629
2630 PR c++/9283
2631 PR c++/15000
2632 * c-common.c (c_common_attribute_table): Allow
2633 handle_visibility_attribute to be called for types.
2634 (handle_visibility_attribute) When given a type, set the visibility
2635 bits on the TYPE_NAME. When given a decl, don't set no_add_attrs
2636 so that we can check later whether the attribute was present. Added
2637 warning if attribute applied to non class type.
2638 * c-decl.c (diagnose_mismatched_decls): Updated rules for merging
2639 decls and checking that they are consistent.
2640 * common.opt: Added -fvisibility.
2641 * c.opt, c-opts.c: Added -fvisibility-inlines-hidden.
2642 * c-pragma.h, c-pragma.c: Added handle_pragma_visibility().
2643 * flags.h, tree.h: Added assorted support defines for overall patch
2644 * opts.c: Added parsing support for -fvisibility.
2645 * tree.c (build_decl): Set visibility for all decls to be whatever
2646 is in force at that time.
2647 * varasm.c (default_binds_local_p_1): Reworked logic determining
2648 when to make a symbol locally bound.
2649 * doc/invoke.texi: Added documentation for -fvisibility and
2650 -fvisibility-inlines-hidden.
2651
2652 2004-07-25 Bernardo Innocenti <bernie@develer.com>
2653
2654 * basic-block.h (reorder_block_def): Rename to reorder_block_def_p.
2655 * c-common.c: Add missing casts from void * to other types.
2656 * c-decl.c: Likewise.
2657 * c-format.c: Likewise.
2658 * c-lex.c: Likewise.
2659 * c-pragma.c: Likewise.
2660 * c-typeck.c: Likewise.
2661 * defaults.h: Likewise.
2662 * genconstants.c: Likewise.
2663 * gengtype-lex.l: Likewise.
2664 * genmodes.c: Likewise.
2665 * read-rtl.c: Likewise.
2666 * rtl.c: Likewise.
2667
2668 2004-07-25 Bernardo Innocenti <bernie@develer.com>
2669
2670 * bitmap.c: Use type-safe memory allocation macros from libiberty.
2671 * c-common.c: Likewise.
2672 * c-decl.c: Likewise.
2673 * c-lang.c: Likewise.
2674 * c-lex.c: Likewise.
2675 * c-opts.c: Likewise.
2676 * c-parse.in: Likewise.
2677 * c-typeck.c: Likewise.
2678 * genconditions.c: Likewise.
2679 * gengtype-lex.l: Likewise.
2680 * gengtype-yacc.y: Likewise.
2681 * gengtype.c: Likewise.
2682 * genmodes.c: Likewise.
2683 * gensupport.c: Likewise.
2684 * read-rtl.c: Likewise.
2685 * read-rtl.c (read_constants): Use INSERT instead of TRUE in call to
2686 htab_find_slot().
2687
2688 2004-07-25 Bernardo Innocenti <bernie@develer.com>
2689
2690 * c-decl.c (groktypename, groktypename_in_param_context): Rename
2691 variable typename to type_name.
2692 * c-lex.c (interpret_float): Likewise.
2693
2694 2004-07-25 Roger Sayle <roger@eyesopen.com>
2695
2696 * convert.c (convert_to_real, convert_to_integer,
2697 convert_to_complex): Replace calls to build with calls to buildN.
2698 * coverage.c (tree_coverage_counter_ref): Likewise.
2699 * dojump.c (do_jump): Likewise.
2700 * dwarf2out.c (loc_descriptor_from_tree): Likewise.
2701 * emit-rtl.c (component_ref_for_mem_expr,
2702 set_mem_attributes_minus_bitpos): Likewise.
2703 * explow.c (update_nonlocal_goto_save_area): Likewise.
2704 * expmed.c (expand_shift, make_tree, const_mult_add_overflow_p,
2705 expand_mult_add): Likewise.
2706 * expr.c (emit_block_move_via_libcall, clear_storage_via_libcall,
2707 store_constructor, get_inner_reference, expand_expr_real_1,
2708 try_casesi, try_tablejump): Likewise.
2709 * function.c (expand_function_start): Likewise.
2710 * stmt.c (emit_case_bit_tests, expand_end_case_type,
2711 node_has_low_bound, node_has_high_bound, emit_case_nodes): Likewise.
2712 * stor-layout.c (place_union_field, layout_type): Likewise.
2713 * tree.c (substitute_in_expr, tree_fold_gcd): Likewise.
2714 * varasm.c (copy_constant): Likewise.
2715
2716 2004-07-25 Bernardo Innocenti <bernie@develer.com>
2717
2718 * c-common.c: Rename all identifiers named `new'.
2719 * c-decl.c: Likewise.
2720 * gensupport.c: Likewise.
2721 * simplify-rtx.c: Likewise.
2722 * c-common.c (disable_builtin_function): Replace a call to xmalloc()
2723 with XNEW().
2724 * gensupport.c (alter_output_for_insn): Replace two calls to xmalloc()
2725 with XNEWVEC().
2726
2727 2004-07-25 Joseph S. Myers <jsm@polyomino.org.uk>
2728
2729 PR c/15360
2730 * c-decl.c (start_decl): Do not set DECL_EXTERNAL for initialized
2731 declarations until after calling pushdecl.
2732 (grokdeclarator): Set DECL_EXTERNAL for variables based on use of
2733 "extern" and not on whether the declaration is initialized.
2734
2735 2004-07-25 Daniel Jacobowitz <dan@debian.org>
2736
2737 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
2738 (sparc-*-solaris2*): Include sol2.o and sol2-protos.h.
2739 * config/sol2-c.c: Include "tm.h", "tm_p.h", "toplev.h",
2740 "cpplib.h", "c-pragma.h", "c-common.h".
2741 (solaris_pragma_align, solaris_pragma_init, solaris_pragma_fini)
2742 (solaris_register_pragmas): New functions.
2743 * config/sol2-protos.h: New file.
2744 * config/sol2.c: New file.
2745 * config/sol2.h (SOLARIS_ATTRIBUTE_TABLE, ASM_DECLARE_FUNCTION_SIZE)
2746 (REGISTER_TARGET_PRAGMAS): New macros.
2747 (solaris_pending_aligns, solaris_pending_inits)
2748 (solaris_pending_finis): New variables.
2749 * config/t-sol2 (sol2-c.o): Update dependencies.
2750 (sol2.o): New rule.
2751 * config/i386/i386.c (TARGET_INSERT_ATTRIBUTES): Define in terms of
2752 SUBTARGET_INSERT_ATTRIBUTES.
2753 (ix86_attribute_table): Include SUBTARGET_ATTRIBUTE_TABLE.
2754 * config/i386/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
2755 (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
2756 * config/sparc/elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
2757 * config/sparc/sp64-elf.h (ASM_DECLARE_FUNCTION_SIZE): Redefine.
2758 * config/sparc/sol2.h (SUBTARGET_INSERT_ATTRIBUTES)
2759 (SUBTARGET_ATTRIBUTE_TABLE, ASM_OUTPUT_CALL): Define.
2760 * config/sparc/sparc.c (sparc_attribute_table): New.
2761 (TARGET_INSERT_ATTRIBUTES): Define in terms of
2762 SUBTARGET_INSERT_ATTRIBUTES.
2763 (TARGET_ATTRIBUTE_TABLE): Define if SUBTARGET_ATTRIBUTE_TABLE
2764 is defined.
2765 * doc/extend.texi (Solaris Pragmas): New section.
2766
2767 2004-07-25 Bernardo Innocenti <bernie@develer.com>
2768
2769 * c-common.c: Rename all identifiers named `class' to `cl'.
2770 * c-common.h: Likewise.
2771 * c-parse.in: Likewise.
2772 * c-typeck.c: Likewise.
2773 * genmodes.c: Likewise.
2774 * real.c: Likewise.
2775 * real.h: Likewise.
2776 * recog.c: Likewise.
2777 * recog.h: Likewise.
2778 * regrename.c: Likewise.
2779 * tree.h: Likewise.
2780 * c-common.c (builtin_function_2): Change type of 5th parameter from
2781 int to enum built_in_function. Change type of 8th parameter from int
2782 to bool.
2783 * c-decl (builtin_function): Replace call to ggc_alloc_cleared ()
2784 with GGC_CNEW().
2785 * c-typeck.c (convert_arguments): Change type of formal_prec from
2786 int to unsigned int.
2787 * genmodes.c (blank_mode): Make a few negative constants unsigned.
2788 (complete_all_modes, calc_wider_mode, emit_insn_modes_h,
2789 emit_mode_name, emit_mode_class, emit_mode_precision, emit_mode_size,
2790 emit_mode_nunits, emit_mode_wider, emit_mode_mask, emit_mode_inner,
2791 emit_mode_base_align, emit_class_narrowest_mode): Pass an integer
2792 iterator to for_all_modes () instead of an enum because enums can't
2793 be incremented in C++.
2794
2795
2796 2004-07-25 Daniel Jacobowitz <dan@debian.org>
2797
2798 * regmove.c (optimize_reg_copy_1): Don't try to replace call-used
2799 hard registers.
2800
2801 2004-07-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2802
2803 * tree-ssa-operands.c (get_stmt_operands, get_expr_operands):
2804 Handle ARRAY_RANGE_REF like ARRAY_REF.
2805
2806 2004-07-25 Joseph S. Myers <jsm@polyomino.org.uk>
2807
2808 * c-typeck.c (digest_init): Don't allow arrays of signed or
2809 unsigned variants of wchar_t to be initialized by wide string
2810 constants. Do allow arrays of enumerated types compatible with
2811 wchar_t to be initialized by wide string constants. Refine tests
2812 distinguishing wide and narrow strings and arrays. Give specific
2813 error for arrays of other integer types initialized by string
2814 constants.
2815 (output_init_element, process_init_element): Check for
2816 INTEGRAL_TYPE_P rather than just for INTEGER_TYPE when
2817 initializing with string constants.
2818
2819 2004-07-25 Richard Henderson <rth@redhat.com>
2820
2821 * c-decl.c (start_function): Set DECL_ARTIFICIAL and DECL_IGNORED_P
2822 on the RESULT_DECL.
2823 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
2824 * integrate.c (copy_decl_for_inlining): Copy DECL_ARTIFICIAL and
2825 DECL_IGNORED_P to new decl.
2826
2827 2004-07-24 Zack Weinberg <zack@codesourcery.com>
2828
2829 * config/ia64/ia64.c (general_xfmode_operand)
2830 (destination_xfmode_operand): Delete.
2831 * config/ia64/ia64.h (PREDICATE_CODES): Remove them.
2832 * config/ia64/ia64.md (*movxf_internal): Use general_operand
2833 and destination_operand.
2834
2835 2004-07-24 Alexander Kabaev <kan@freebsd.org>
2836
2837 * config/ia64/ia64.h (SUBTARGET_EXTRA_SPECS): Default to nothing.
2838 (EXTRA_SPECS): Use SUBTARGET_EXTRA_SPECS.
2839
2840 2004-07-24 Alexander Kabaev <kan@freebsd.org>
2841 Zack Weinberg <zack@codesourcery.com
2842
2843 PR 16684
2844 * c-decl.c (diagnose_mismatched_decls): Don't issue a
2845 redundant-declaration warning the first time a builtin is
2846 declared explicitly.
2847
2848 2004-07-25 Bernardo Innocenti <bernie@develer.com>
2849
2850 * tree.h (staticp): Change return type to bool.
2851
2852 2004-07-25 Bernardo Innocenti <bernie@develer.com>
2853
2854 * c-common.c (c_staticp): Last episode of the staticp saga.
2855
2856 2004-07-25 Bernardo Innocenti <bernie@develer.com>
2857
2858 * c-common.h (c_staticp): Change return type from int to bool.
2859 * tree.c (staticp): Likewise.
2860 * langhooks.h (staticp): Likewise.
2861
2862 2004-07-25 Bernardo Innocenti <bernie@develer.com>
2863
2864 * langhooks-def.h (lhd_staticp): Change return type from int to
2865 bool in prototype to match definition.
2866
2867 2004-07-25 Bernardo Innocenti <bernie@develer.com>
2868
2869 * system.h (bool, true, false): Don't redefine as preprocessor macros
2870 in C++.
2871
2872 2004-07-24 Roger Sayle <roger@eyesopen.com>
2873
2874 * expmed.c (init_expmed): A signed modulus by a power of two is
2875 considered cheap if its less than or equal to four instructions.
2876
2877 2004-07-25 Bernardo Innocenti <bernie@develer.com>
2878
2879 * ggc.h (GGC_NEW, GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR,
2880 GGC_CNEWVAR): New macros.
2881
2882 2004-07-25 Bernardo Innocenti <bernie@develer.com>
2883
2884 * c-common.c: Convert ATTRIBUTE_UNUSED to ARG_UNUSED in parameter
2885 lists.
2886 * c-decl.c: Likewise.
2887 * c-format.c: Likewise.
2888 * c-lex.c: Likewise.
2889 * c-opts.c: Likewise.
2890 * c-pragma.c: Likewise.
2891 * c-typeck.c: Likewise.
2892 * gencheck.c: Likewise.
2893 * genconditions.c: Likewise.
2894 * genconfig.c: Likewise.
2895 * genflags.c: Likewise.
2896 * gengtype.c: Likewise.
2897 * gensupport.c: Likewise.
2898 * ggc-none.c: Likewise.
2899 * langhooks.c: Likewise.
2900 * statistics.h: Likewise.
2901 * stub-objc.c: Likewise.
2902 * java/decl.c: Likewise.
2903
2904 2004-07-24 Roman Zippel <zippel@linux-m68k.org>
2905
2906 * config/m68k/m68k.c (output_scc_di): Fix coding style.
2907 (symbolic_operand): Fix prototype.
2908 * config/m68k/m68k.h (PREDICATE_CODES): Add symbolic_operand.
2909 * config/m68k/m68k.md: Add constants for registers a0 and sp and
2910 use them, change from the "{...}" syntax to the simpler {...}
2911 syntax.
2912 (*cfv4_extendqisi2): Fix destination predicate.
2913 * config/m68k/m68k-protos.h: Remove various declarations also
2914 generated via PREDICATE_CODES.
2915
2916 2004-07-23 Mike Stump <mrs@apple.com>
2917
2918 * c-typeck.c (convert_for_assignment): Tightened up pointer
2919 converstions that differ in signedness.
2920
2921 2004-07-23 Zack Weinberg <zack@codesourcery.com>
2922
2923 * genmodes.c (make_vector_modes): Mark with ATTRIBUTE_UNUSED.
2924
2925 2004-07-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2926
2927 * tree.def (VIEW_CONVERT_EXPR): Change to class 'r'.
2928 * tree-ssa-operands.c (get_expr_operands, case VIEW_CONVERT_EXPR): New.
2929
2930 * gimplify.c (gimplify_compound_lval): Check for no handled
2931 operations, rather than checking for explicit list of nodes.
2932 (is_gimple_addr_expr_arg_or_indirect): New function.
2933 (gimplify_addr_expr): Call it and handle INDIRECT_REF; remove
2934 redundant setting of TREE_INVARIANT.
2935 (gimplify_expr, case VIEW_CONVERT_EXPR): Call gimplify_compound_lval.
2936 * tree-gimple.c (is_gimple_addr_expr_arg): Call handled_component_p.
2937
2938 2004-07-23 Diego Novillo <dnovillo@redhat.com>
2939
2940 PR tree-optimization/16688
2941 PR tree-optimization/16689
2942 * tree-ssa-alias.c (setup_pointers_and_addressables): Remove
2943 unnecessary initialization of 'tag'.
2944 (get_tmt_for): Check that the new type tag has the same alias
2945 set as the pointed-to type.
2946 (group_aliases): Only regular variables need to be removed
2947 from the alias set of a name tag.
2948 * tree-ssa-copy.c (may_propagate_copy): Do not allow copy
2949 propagation if the two types are not compatible.
2950 (merge_alias_info): Rename from replace_ssa_names_ann.
2951 Add more checking.
2952 (replace_exp_1): If both arguments are SSA_NAMEs, check that
2953 the propagation can be done.
2954 Only call merge_alias_info on pointers.
2955 (propagate_value): Likewise.
2956 * tree-ssa-copyrename.c: Include langhooks.h.
2957 (copy_rename_partition_coalesce): Call replace_ssa_name_symbol
2958 to do the merging.
2959 Do not coalesce variables with incompatible types.
2960 (rename_ssa_copies): Call replace_ssa_name_symbol.
2961 * tree-ssa.c (verify_ssa_name): Verify that the SSA_NAME has
2962 the same type as the underlying _DECL.
2963 * tree-ssanames.c (replace_ssa_name_symbol): New function.
2964 * tree.h (replace_ssa_name_symbol): Declare.
2965
2966 2004-07-23 Richard Henderson <rth@redhat.com>
2967
2968 PR c++/16277
2969 * gimplify.c (gimplify_cond_expr): Gimplify TARGET to a min_lval;
2970 unshare it properly.
2971 (gimplify_modify_expr_rhs): Push assignment from a conditional into
2972 the conditional for all non-register types.
2973
2974 2004-07-23 Richard Henderson <rth@redhat.com>
2975
2976 * expr.c (expand_expr_real_1): Don't handle non-local variables.
2977 * expr.h (fix_lexical_addr): Remove.
2978 * function.c (NEED_SEPARATE_AP): Remove.
2979 (fix_lexical_addr): Remove.
2980 * tree-alias-common.c (get_alias_var_decl): Check TREE_STATIC,
2981 not null decl_function_context.
2982 (create_alias_vars): Likewise.
2983 * tree-cfg.c (make_ctrl_stmt_edges): Don't check for non-local labels.
2984 (simple_goto_p): Likewise.
2985 * tree-dfa.c (add_referenced_var): Don't check for non-local variables.
2986 * tree-ssa-ccp.c (get_default_value): Likewise.
2987 * tree-tailcall.c (suitable_for_tail_opt_p): Likewise.
2988 * tree.c (needs_to_live_in_memory): Likewise.
2989 * tree-flow-inline.h (may_be_aliased): Move...
2990 * tree-ssa-alias.c (may_be_aliased): ... here. Enhance check for
2991 when TREE_STATIC variables may be addressable.
2992
2993 2004-07-24 Jakub Jelinek <jakub@redhat.com>
2994
2995 * Makefile.in (site.exp): Add HOSTCC and HOSTCFLAGS to site.exp.
2996
2997 2004-07-23 Zack Weinberg <zack@codesourcery.com>
2998
2999 * print-rtl.c (print_rtx <case 'b'>): Don't attempt to print
3000 bitmap contents if GENERATOR_FILE is defined.
3001 * Makefile.in (BUILD_RTL): Remove $(BUILD_PREFIX)bitmap.o.
3002 ($(BUILD_PREFIX_1)bitmap.o): Delete rule.
3003
3004 2004-07-23 Joseph S. Myers <jsm@polyomino.org.uk>
3005
3006 * c-decl.c (start_function): Form composite type of function types
3007 rather than copying type from previous prototype declaration.
3008
3009 2004-07-23 Janis Johnson <janis187@us.ibm.com>
3010
3011 * config/rs6000/altivec.h (vec_lvewx, vec_lvehx, vec_lvwbx): Remove
3012 the const qualifier for the second argument in the C++ functions.
3013
3014 * config/rs6000/altivec.h (vec_stvewx, vec_stvehx, vec_stvebx): Use
3015 specific pointer types.
3016
3017 * config/rs6000/altivec.h (vec_vadduwm): (vec_vadduwm, vec_vadduhm,
3018 vec_vaddubm, vec_vsubuwm, vec_vsubuhm, vec_vsububm): Fix types used
3019 for vector bool and/or vector pixel, add C++ and C missing support.
3020 (vec_vaddsws, vec_vaddshs, vec_vaddsbs, vec_vmaxsw, vec_vmaxsh,
3021 vec_vmaxsb, vec_vmrghw, vec_vmrghh, vec_vmrghb, vec_vmrglw, vec_vmrglh,
3022 vec_vmrglb, vec_vminsw, vec_vminsh, vec_vminsb, vec_vpkuwum,
3023 vec_vpkuhum, vec_vspltw, vec_vsplth, vec_vspltb, vec_vsubsws,
3024 vec_vsubshs, vec_vsubsbs, vec_vupklsh, vec_vupkhsh, vec_vupklsb): Add
3025 missing C++ and C support for vector bool and/or vector pixel.
3026 (vec_vadduws, vec_vadduhs, vec_vaddubs, vec_vcmpeqfp, vec_vcmpequw,
3027 vec_vcmpequh, vec_vcmpequb, vec_vcmpgtfp, vec_vcmpgtsw, vec_vcmpgtuw,
3028 vec_vcmpgtsh, vec_vcmpgtuh, vec_vcmpgtsb, vec_vcmpgtub, vec_vmaxuw,
3029 vec_vmaxuh, vec_vmaxub, vec_vminuw, vec_vminuh, vec_vminub,
3030 vec_vsubuws, vec_vsubuhs, vec_vsububs, vec_vupkhpx, vec_vupklpx): Fix
3031 C++ and C types used for vector bool and/or vector pixel.
3032 (vec_st, vec_stl): Add C++ support for vector pixel.
3033 (vec_unpackh, vec_unpackl, vec_any_ge): Fix C++ support for vector bool.
3034 (vec_all_ne): Add C++ support for vector pixel.
3035
3036 * config/rs6000/altivec.h (vec_vcmpgtsh): Fix C++ function name.
3037 (vec_vmulesb): Add missing C++ function.
3038 (vec_perm): Fix type of third argument in C++ function.
3039 (vec_vsum4shs): Fix C++ function name.
3040 (vec_any_ge): Remove C++ functions for unsupported arg combinations.
3041 (vec_vcmpgtsw, vec_vcmpgtuw, vec_minsb, vec_vmsummbm): Fix the
3042 argument passed to the error handler in C macro.
3043 (vec_nmsub): Remove extra parens around argument names in C macro.
3044 (vec_packpx): Add missing parens in C macro.
3045
3046 2004-07-22 Paolo Bonzini <bonzini@gnu.org>
3047
3048 * machmode.def: Remove vector modes.
3049 * config/alpha/alpha-modes.def: Add supported vector modes.
3050 * config/arm/arm-modes.def: Likewise.
3051 * config/frv/frv-modes.def: Likewise.
3052 * config/i386/i386-modes.def: Likewise.
3053 * config/rs6000/rs6000-modes.def: Likewise.
3054 * config/sh/sh-modes.def: Likewise.
3055
3056 2004-07-23 Matthias Klose <doko@debian.org>
3057
3058 * intl.c (gcc_init_libintl): Use PACKAGE for the text domain.
3059 * configure.ac: Add AC_DEFINE_UNQUOTED for PACKAGE.
3060 * config.h: Regenerate.
3061 * configure: Likewise.
3062
3063 2004-07-22 Mark Mitchell <mark@codesourcery.com>
3064
3065 * dwarf2out.c (output_call_frame_info): Set SYMBOL_FLAG_LOCAL on
3066 generated SYMBOL_REFs for labels.
3067 * config/darwin-protos.h (machopic_validate_stub_or_non_lazy_ptr):
3068 Change prototype.
3069 (machopic_stub_name): Remove.
3070 (machopic_indirection_name): New function.
3071 (machopic_mcount_stub_name): Likewise.
3072 (machopic_classify_name): Remove.
3073 (machopic_function_base_sym): New function.
3074 (machpoic_classify_symbol): Likewise.
3075 (machopic_classify_ident): Remove.
3076 (machopic_define_ident): Likewise.
3077 (machopic_define_name): Likewise.
3078 (machopic_name_defined_p): Likewise.
3079 (machopic_ident_defined_p): Likewise.
3080 (darwin_strip_name_encoding): Likewise.
3081 (machopic_define_symbol): New function.
3082 * config/darwin.c (hashtab.h): Include.
3083 (machopic_defined_list): Remove.
3084 (machopic_classify_ident): Likewise.
3085 (machopic_classify_name): Likewise.
3086 (machopic_ident_defined_p): Likewise.
3087 (machopic_define_ident): Likewise.
3088 (machopic_define_name): Likewise.
3089 (machopic_symbol_defined_p): New function.
3090 (machopic_classify_symbol): Likewise.
3091 (machopic_data_defined_p): Use machopic_classify_symbol.
3092 (machopic_define_symbol): New function.
3093 (machopic_function_base_sym): New function.
3094 (machopic_non_lazy_pointers): Remove.
3095 (machopic_non_lazy_ptr_name): Likewise.
3096 (machopic_stubs): Likewise.
3097 (machopic_stub_name): Likewise.
3098 (NON_LAZY_POINTER_SUFFIX): New macro.
3099 (STUB_SUFFIX): Likewise.
3100 (machopic_indirection): New structure.
3101 (machopic_indirections): New variable.
3102 (machopic_indirection_hash): New function.
3103 (machopic_indirection_eq): Likewise.
3104 (machopic_indirection_name): Likewise.
3105 (machopic_mcount_stub_name): New function.
3106 (machopic_validate_stub_or_non_lazy_pointer): Reimplement to use
3107 hash table.
3108 (machopic_indirect_data_reference): Rework to use new functions.
3109 (machopic_indirect_call_target): Likewise.
3110 (machopic_legitimize_pic_address): Likewise.
3111 (machopic_output_indirection): New function.
3112 (machopic_finish): Use it.
3113 (machopic_operand_p): Rework to use new functions.
3114 (darwin_encode_seciton_info): Use SYMBOL_REF_FLAGS.
3115 (darwin_strip_name_encoding): Remove.
3116 (update_non_lazy_ptrs): Remove.
3117 (update_stubs): Likewise.
3118 (darwin_non_lazy_pcrel): Use new functions.
3119 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Likewise.
3120 (ASM_OUTPUT_LABELREF): Likewise.
3121 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
3122 (MACHO_SYMBOL_FLAG_VARIABLE): New macro.
3123 (MACHO_SYMBOL_FLAG_DEFINED): Likewise.
3124 (TARGET_STRIP_NAME_ENCODING): Do not use
3125 darwin_strip_name_encoding.
3126 (GEN_LAZY_PTR_NAME_FOR_SYMBOL): Do not use
3127 darwin_strip_name_encoding.
3128 * config/i386/darwin.h (FUNCTION_PROFILER): Use
3129 machopic_mcount_stub_name.
3130 * config/i386/i386.c (x86_output_mi_thunk): Use
3131 machopic_indirection_name, not machopic_stub_name.
3132 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Use
3133 machopic_function_base_sym.
3134 (print_operand): Use machopic_classify_symbol.
3135 (rs6000_emit_prologue): Use machopic_function_base_sym.
3136 (output_profile_hook): Do not use machopic_stub_name.
3137 (macho_branch_isalnds): Do not use darwin_strip_name_encoding.
3138
3139 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
3140
3141 PR c/7284
3142 * fold-const.c (extract_muldiv_1): Do not treat signed left shift
3143 as multiplication.
3144
3145 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
3146
3147 * doc/implement-c.texi: New file.
3148 * doc/extend.texi (C Implementation): Move to there.
3149 * doc/gcc.texi: Include implement-c.texi.
3150 * Makefile.in (TEXI_GCC_FILES): Add implement-c.texi.
3151
3152 2004-07-22 Jason Merrill <jason@redhat.com>
3153
3154 * integrate.c (copy_decl_for_inlining): Remove invisible reference
3155 handling.
3156 * tree-inline.c (setup_one_parameter): Likewise.
3157
3158 2004-07-22 Brian Booth <bbooth@redhat.com>
3159
3160 * tree-ssa-ccp.c (latticevalue): Add UNKNOWN_VAL.
3161 (substitute_and_fold): Propigate into VUSE operands when possible.
3162 (visit_phi_node): Handle UNKNOWN_VAL latticevalue.
3163 (cp_lattice_meet): Handle merging of latticevalues when
3164 UNKNOWN_VAL is present.
3165 (visit_stmt): Visit assignments with V_MUST_DEFs.
3166 (visit_assignment): Gather ccp information for V_MUST_DEF operands.
3167 (ccp_fold): Deal with RHS' that are constant and virtual.
3168 (evaluate_stmt): Handle UNKNOWN_VAL likely values.
3169 (dump_lattice_value): Dump UNKNOWN_VAL latticevalues.
3170 (initialize): Mark statements with V_MUST_DEFs as VARYING only if the
3171 V_MUST_DEF operand is VARYING. Fix comment and include VOPS when
3172 computing immediate uses.
3173 (set_lattice_value): Disallow a UNKNOWN_VAL->UNDEFINED state
3174 transition.
3175 (replace_vuse_in): New function.
3176 (likely_value): Add check of vuse operands.
3177 (get_default_value): Set the default value of virtually defined
3178 variables to UKNOWN_VAL instead of VARYING.
3179
3180 2004-07-22 Richard Henderson <rth@redhat.com>
3181
3182 * expr.c (emit_push_insn): Don't use set_mem_attributes.
3183
3184 2004-07-22 Richard Henderson <rth@redhat.com>
3185
3186 * tree-ssa-live.c (create_ssa_var_map): Avoid defined-but-not-used
3187 variables due to conditional compilation.
3188
3189 2004-07-22 Diego Novillo <dnovillo@redhat.com>
3190
3191 * tree-into-ssa.c (set_livein_block): Fix typo in comment.
3192 (rewrite_ssa_into_ssa): Start iterating over SSA names at 1.
3193 Release SSA names that have been re-renamed.
3194 * tree-phinodes.c (make_phi_node): Set same TREE_TYPE as the
3195 variable.
3196 * tree-ssa-alias.c (init_alias_info): If aliases have been
3197 computed before, clear existing alias information.
3198 (create_name_tags): Do no fixup PT_ANYTHING pointers.
3199 If the new name tag for a pointer is different than the one it
3200 had before, mark the old tag for renaming.
3201 (replace_may_alias): New function.
3202 (group_aliases): Call it.
3203 (setup_pointers_and_addressables): Always call get_tmt_for.
3204 (maybe_create_global_var): Don't create .GLOBAL_VAR more than
3205 once.
3206 (set_pt_anything): New local function.
3207 (set_pt_malloc): New local function.
3208 (merge_pointed_to_info): Don't merge pointed-to variables from
3209 the original pointer if the destination is pointing to an
3210 unknown location.
3211 (add_pointed_to_expr): Call set_pt_anything and set_pt_malloc.
3212 (add_pointed_to_var): Do not add a variable to the points-to
3213 set if the pointer is already pointing to anywhere.
3214 (collect_points_to_info_r): If the defining statement is a PHI
3215 node, only merge pointed-to information if the argument has
3216 already been visited.
3217 (get_tmt_for): Only create a new tag if the pointer didn't
3218 have one already.
3219 (dump_alias_info): Emit more information.
3220 (dump_points_to_info_for): Likewise.
3221 * tree-ssa-dom.c (redirect_edges_and_update_ssa_graph): Don't
3222 try to get the annotation of an SSA_NAME.
3223 * tree-ssa-operands.c (add_stmt_operand): Only check for empty
3224 alias sets when checking is enabled.
3225 * tree-ssa-pre.c (need_eh_cleanup): New local variable.
3226 (eliminate): Mark basic blocks that will need
3227 EH information cleaned up.
3228 (init_pre): Split ENTRY_BLOCK->0 if block 0 has more than one
3229 predecessor.
3230 Initialize need_eh_cleanup.
3231 (fini_pre): Call tree_purge_all_dead_eh_edges and
3232 cleanup_tree_cfg if needed.
3233 Free need_eh_cleanup.
3234 * tree-ssa.c (verify_ssa_name): New function.
3235 (verify_def): Call it.
3236 Re-arrange to avoid printing too many error messages.
3237 (verify_use): Likewise.
3238 (verify_phi_args): Likewise.
3239 (verify_flow_insensitive_alias_info): New function.
3240 (verify_flow_sensitive_alias_info): New function.
3241 (verify_alias_info): New function.
3242 (verify_ssa): Call verify_alias_info.
3243 Clear TREE_VISITED on all the SSA_NAMEs before scanning the
3244 program.
3245 Re-arrange to avoid printing too many error messages.
3246 * tree-ssanames.c (make_ssa_name): Clear
3247 SSA_NAME_IN_FREE_LIST.
3248 (release_ssa_name): Never release a default definition.
3249 (release_defs): New function.
3250 * tree.h: Declare it.
3251 * tree-ssa-dce.c (remove_dead_stmt): Call it.
3252
3253 2004-07-22 Diego Novillo <dnovillo@redhat.com>
3254
3255 * tree-ssa.c (walk_use_def_chains_1): Add new argument IS_DFS.
3256 If true, do a depth-first search. Do a breadht-first search,
3257 otherwise.
3258 (walk_use_def_chains): Add new argument IS_DFS.
3259 Update all users.
3260 * tree-flow.h (walk_use_def_chains): Update prototype.
3261
3262 2004-07-22 Hans-Peter Nilsson <hp@axis.com>
3263
3264 * config/cris/cris.md: Tweak formatting.
3265 (asrandb, asrandw, lsrandb, lsrandw, moversideqi, movemsideqi)
3266 (mover2side, moverside, movemside, movei, op3, andu): Replace
3267 live define_peephole:s with define_peephole2 near-equivalents.
3268 Delete the rest.
3269 ("*mov_sidesisf_biap"): Rename from "*mov_sidesi_biap". Match all
3270 word-size modes.
3271 ("*mov_sidesisf", "*mov_sidesisf_biap_mem", "*mov_sidesisf_mem"):
3272 Similar for "*mov_sidesi", "*mov_sidesi_biap_mem" and
3273 "*mov_sidesi_mem" respectively.
3274
3275 2004-07-22 Paolo Bonzini <bonzini@gnu.org>
3276
3277 * tree-cfg.c (gimplify_val): Move from tree-complex.c.
3278 (gimplify_build1): Move from tree-complex.c do_unop.
3279 (gimplify_build2): Move from tree-complex.c do_binop.
3280 (gimplify_build3): New.
3281 * tree-complex.c (gimplify_val, do_unop, do_binop): Remove.
3282 Adjust throughout to call the functions above.
3283 * tree-flow.h: Declare the functions above.
3284 * tree-nested.c (gimplify_val): Rename to...
3285 (tsi_gimplify_val): ... this.
3286
3287 * Makefile.in (tree_complex.o): Update dependencies.
3288 (stor-layout.o): Depend on regs.h.
3289 * c-common.c (handle_vector_size_attribute): Update for
3290 vector types without corresponding vector modes.
3291 * expr.c (expand_expr): Treat VECTOR_CST's like CONSTRUCTORS if
3292 a corresponding vector mode is not available.
3293 * print-tree.c (print_node): Print nunits for vector types
3294 * regclass.c (have_regs_of_mode): New.
3295 (init_reg_sets_1): Initialize it and use it instead
3296 of allocatable_regs_of_mode.
3297 * regs.h (have_regs_of_mode): Declare it.
3298 * stor-layout.c (layout_type): Pick a mode for vector types.
3299 * tree-complex.c (build_word_mode_vector_type, tree_vec_extract,
3300 build_replicated_const, do_unop, do_binop, do_plus_minus,
3301 do_negate, expand_vector_piecewise, expand_vector_parallel,
3302 expand_vector_addition, expand_vector_operations_1,
3303 expand_vector_operations, tree_lower_operations,
3304 pass_lower_vector_ssa, pass_pre_expand): New.
3305 (expand_complex_operations, pass_lower_complex): Remove.
3306 * tree-optimize.c (init_tree_optimization_passes): Adjust
3307 pass ordering for changes in tree-complex.c.
3308 * tree-pass.h: Declare new passes.
3309 * tree.c (finish_vector_type): Remove.
3310 (make_vector_type): New.
3311 (build_vector_type_for_mode, build_vector_type): Rewritten.
3312 * tree.def (VECTOR_TYPE): Document where the number of
3313 subparts is stored.
3314 * tree.h (TYPE_VECTOR_SUBPARTS): Use TYPE_PRECISION field.
3315 (make_vector): Remove declaration.
3316
3317 2004-07-21 Richard Henderson <rth@redhat.com>
3318
3319 * gimple-low.c (expand_var_p): Don't look at TREE_ADDRESSABLE,
3320 TREE_THIS_VOLATILE, may_aliases, or optimization level.
3321 (remove_useless_vars): Dump debugging info.
3322 (expand_used_vars): Move ...
3323 * cfgexpand.c (expand_used_vars): ... here. Make static.
3324 * tree-flow-inline.h (set_is_used): New.
3325 (set_default_def): Use get_var_ann.
3326 * tree-flow.h: Update decls.
3327 * tree-ssa-live.c (mark_all_vars_used_1, mark_all_vars_used): New.
3328 (create_ssa_var_map): Use it.
3329 * tree-ssa.c (set_is_used): Remove.
3330
3331 2004-07-22 Ben Elliston <bje@au.ibm.com>
3332
3333 * gdbinit.in: Set a breakpoint on internal_error.
3334
3335 2004-07-21 Richard Henderson <rth@redhat.com>
3336
3337 * cfgexpand.c (expand_gimple_tailcall): Fix case where we need
3338 to create a new basic block.
3339
3340 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
3341
3342 PR c/15052
3343 * c-decl.c (grokdeclarator): Only pedwarn for qualified void
3344 return type on function definitions. Move other warnings for
3345 qualified return type to -Wreturn-type. Do not condition any such
3346 warnings on -pedantic. Update comments.
3347 (start_function): Only copy function type from previous prototype
3348 declaration if return types are compatible.
3349 * c-typeck.c (function_types_compatible_p): Don't condition
3350 warning for incompatibility of volatile qualifiers on the return
3351 type on -pedantic. Update comment.
3352 * doc/invoke.texi (-Wreturn-type, -Wextra): Update.
3353
3354 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
3355
3356 * c-typeck.c (set_init_index): Require designator to be of integer
3357 type.
3358
3359 2004-07-22 Joseph S. Myers <jsm@polyomino.org.uk>
3360
3361 PR c/11250
3362 * c-parse.in (init): Change to exprtype.
3363 (primary): Set original_code for STRING to STRING_CST.
3364 Call maybe_warn_string_init for compound literals.
3365 (initdcl, notype_initdcl): Call maybe_warn_string_init.
3366 (initval): Update.
3367 * c-tree.h (maybe_warn_string_init): New.
3368 (pop_init_level, process_init_element): Use struct c_expr.
3369 (struct c_expr): Update comment.
3370 * c-typeck.c (maybe_warn_string_init): New function.
3371 (digest_init): Call it. Additional parameter strict_string. All
3372 callers changed.
3373 (output_init_element): Likewise.
3374 (struct constructor_stack): Use struct c_expr for
3375 replacement_value.
3376 (really_start_incremental_init, push_init_level): Update.
3377 (pop_init_level): Update. Return struct c_expr.
3378 (process_init_level): Update. Take struct c_expr argument.
3379
3380 2004-07-21 David S. Miller <davem@nuts.davemloft.net>
3381
3382 * config/sparc/sparc.c (sparc_rtx_costs): Fix typo in previous
3383 commit.
3384
3385 2004-07-21 Eric Christopher <echristo@redhat.com>
3386
3387 * builtins.c (expand_builtin_setjmp_receiver): Fix comment for code
3388 removal.
3389 * c-decl.c (pop_scope): Ditto.
3390 * calls.c (expand_call): Remove call to current_nesting_level,
3391 update comment accordingly. Remove calls to expand_start_target_temps
3392 and expand_end_target_temps.
3393 * cfgexpand.c (construct_init_block): Remove call to
3394 expand_start_bindings_and_block.
3395 (construct_exit_block): Remove call to expand_end_bindings.
3396 * expr.c (safe_from_p): Remove BIND_EXPR handling.
3397 (expand_expr_real_1): Ditto. Fix formatting.
3398 (expand_vars): Delete.
3399 * stmt.c (POPSTACK): Remove block_stack.
3400 (stmt_status): Remove x_block_stack.
3401 (block_stack): Delete.
3402 (expand_start_bindings_and_block): Ditto.
3403 (expand_start_target_temps): Ditto.
3404 (expand_end_target_temps): Ditto.
3405 (current_nesting_level): Ditto.
3406 (warn_about_unused_variables): Ditto.
3407 (expand_end_bindings): Ditto.
3408 * tree.h: Remove declarations for above.
3409
3410 2004-07-21 Steven Bosscher <stevenb@suse.de>
3411
3412 * rtl.h (insn_note): Remove NOTE_INSN_PREDICTION.
3413 * rtl.c (note_insn_name): Likewise.
3414 * print-rtl.c (print_rtx): Don't print it.
3415 * cfgrtl.h (can_delete_note_p): Don't handle it.
3416 (rtl_delete_block): Likewise.
3417 * passes.c (rest_of_handle_guess_branch_prob): Remove.
3418 (rest_of_compilation): Don't call it.
3419 * predict.c (process_note_predictions, process_note_prediction,
3420 note_prediction_to_br_prob): Remove.
3421 * basic-block.c (note_prediction_to_br_prob): Remove prototype.
3422 * stmt.c (return_prediction): Remove.
3423 (expand_value_return): Don't call it. Don't add prediction
3424 notes for return statements.
3425
3426 2004-07-21 Josef Zlomek <zlomekj@suse.cz>
3427
3428 * var-tracking.c (vt_find_locations): Set the in_pending bitmap at
3429 once.
3430
3431 2004-07-21 Paolo Bonzini <bonzini@gnu.org>
3432
3433 * c-common.c (vector_types_convertible_p): Use vector types'
3434 TYPE_SIZE and TREE_TYPE instead of their mode.
3435 * convert.c (convert_to_integer): Likewise.
3436 (convert_to_vector): Likewise.
3437 * fold-const.c (fold_convert): Likewise.
3438 * varasm.c (output_constant): Likewise.
3439 * expr.c (store_constructor): Split ARRAY_TYPE and VECTOR_TYPE.
3440 Allow a VECTOR_TYPE initializer to be made of several vectors.
3441 For ARRAY_TYPEs and VECTOR_TYPES, simplify a bit the handling
3442 of cleared and need_to_clear, and use fold_convert.
3443 * c-typeck.c (build_binary_op): Do not use RDIV_EXPR for
3444 integer vectors.
3445
3446 2004-07-20 Richard Henderson <rth@redhat.com>
3447
3448 * cfgexpand.c (expand_gimple_cond_expr, expand_gimple_tailcall): Split,
3449 (expand_gimple_basic_block): out from here. Renamed from expand_block.
3450
3451 2004-07-20 David S. Miller <davem@nuts.davemloft.net>
3452
3453 * config/sparc/sparc.c (sparc_rtx_costs case MULT): Emit
3454 enormous cost if not TARGET_HARD_MUL.
3455
3456 2004-07-20 Andrew Pinski <apinski@apple.com>
3457
3458 PR target/16557
3459 * config/i386/darwin.h (CC1_SPEC): Move the -g SPECs from ...
3460 (ASM_SPEC): here.
3461
3462 2004-07-21 Paul brook <paul@codesourcery.com>
3463
3464 * config/arm/arm.c (thumb_expand_prologue): Remove bogus GEN_INT.
3465
3466 2004-07-20 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3467
3468 * fold-const.c (operand_equal_p): Temporarily support NULL args.
3469 (operand_equal_p, case ARRAY_REF): Compare args 2 and 3.
3470 (operand_equal_p, case COMPONENT_REF): Likewise, for arg 2.
3471
3472 2004-07-20 Zack Weinberg <zack@codesourcery.com>
3473
3474 * rtl.h (plus_constant): Delete.
3475 (plus_constant_wide): Rename to plus_constant.
3476 (plus_constant_for_output_wide): Delete vestigial prototype.
3477 (GEN_INT): Remove unnecessary cast.
3478 * tree.h (build_int_2, size_int_type): Delete.
3479 (build_int_2_wide): Rename to build_int_2.
3480 (size_int_wide): Rename to size_int_kind.
3481 (size_int_type_wide): Rename to size_int_type.
3482 (size_int, ssize_int, bitsize_int, sbitsize_int): Use size_int_kind.
3483 Remove unnecessary cast.
3484 * tree.c (build_int_2_wide): Rename build_int_2; update comment.
3485 * explow.c (plus_constant_wide): Rename plus_constant; update comment.
3486 * fold-const.c (size_int_wide): Rename size_int_kind. Use size_int_type.
3487 (size_int_type_wide): Rename size_int_type.
3488 (int_const_binop): Use size_int_type.
3489 * c-lex.c (interpret_integer): Use build_int_2.
3490 * final.c (split_double): Remove unnecessary casts.
3491 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Use build_int_2.
3492
3493 2004-07-20 Richard Henderson <rth@redhat.com>
3494
3495 * gimplify.c (is_gimple_tmp_var): Move to tree-gimple.c.
3496 (gimplify_compound_lval): Use is_gimple_tmp_reg.
3497 * tree-gimple.c (is_gimple_tmp_var): Move from gimplify.c.
3498 (is_gimple_tmp_reg): New.
3499 * tree-gimple.h (is_gimple_tmp_reg): Declare.
3500
3501 2004-07-20 Richard Henderson <rth@redhat.com>
3502
3503 * tree-pretty-print.c (dump_generic_node): Dump
3504 CALL_EXPR_HAS_RETURN_SLOT_ADDR.
3505
3506 2004-07-20 Frank Ch. Eigler <fche@redhat.com>
3507
3508 * tree-mudflap.c (mf_set_options_fndecl): New tree.
3509 (mudflap_init): Set it.
3510 (mudflap_register_call): Remove __mf_init call.
3511 (mudflap_finish_file): Emit call to __mf_init here. Emit a call to
3512 to pass "-ignore-reads" option to libmudflap if needed.
3513
3514 2004-07-20 John David Anglin <dava.anglin@nrc-cnrc.gc.ca>
3515
3516 PR c++/14607
3517 * config/pa/pa-hpux10.h (SUPPORTS_ONE_ONLY): Define.
3518 (MAKE_DECL_ONE_ONLY): Undefine.
3519 * pa-protos.h (som_text_section_asm_op, one_only_readonly_data_section,
3520 readonly_data, one_only_data_section, forget_section): New prototypes.
3521 * pa.c (pa_init_machine_status, som_text_section_asm_op): New
3522 functions.
3523 (pa_select_section): Add one-only (COMDAT) support.
3524 * pa.h (struct machine_function): Define.
3525 * som.h (ASM_OUTPUT_FUNCTION_PREFIX): Delete.
3526 (TEXT_SECTION_ASM_OP): Call som_text_section_asm_op.
3527 (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
3528 ONE_ONLY_TEXT_SECTION_ASM_OP, ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
3529 ONE_ONLY_DATA_SECTION_ASM_OP): New defines.
3530 (EXTRA_SECTIONS): Add in_one_only_readonly_data and in_one_only_data.
3531 (EXTRA_SECTION_FUNCTIONS): Rework to use individual function macros.
3532 (READONLY_DATA_FUNCTION, ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
3533 ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): New defines
3534 for EXTRA_SECTION_FUNCTIONS.
3535 * doc/install.texi: Update binutils requirements.
3536
3537 2004-07-20 Nathan Sidwell <nathan@codesourcery.com>
3538
3539 * vec.h (VEC_T_length, VEC_T_index, VEC_T_iterate, VEC_T_truncate,
3540 VEC_T_replace, VEC_T_quick_insert, VEC_T_safe_insert,
3541 VEC_T_ordered_remove, VEC_T_unordered_remove): Use unsigned, not
3542 size_t.
3543 (struct VEC): Use unsigned for num and alloc.
3544 * vec.c (struct vec_prefix): Likewise.
3545 (vec_o_reserve): Adjust.
3546
3547 * dbxout.c (dbxout_type): Fix printf format.
3548
3549 * tree.h (binfo_member): Remove.
3550 * tree.c (binfo_member): Remove.
3551
3552 2004-07-20 Nathan Sidwell <nathan@codesourcery.com>
3553
3554 * tree.h: Include vec.h
3555 (DEF_VEC_P(tree)): New type.
3556 (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): Adjust.
3557 (BINFO_BASE_APPEND, BINFO_BASE_ITERATE): New.
3558 (BINFO_LANG_SLOT): Remove.
3559 (BINFO_SUBVTT_INDEX, BINFO_VPTR_INDEX, BINFO_PRIMARY_BASE_OF): New.
3560 (struct tree_binfo): Turn base_binfos into a trailing
3561 VEC(tree). Add vtt_subvtt, vtt_vptr, primary fields.
3562 (binfo_lang_slots): Remove.
3563 * tree.c (binfo_lang_slots): Remove.
3564 (make_tree_binfo_stat): Take a base binfo count, not a
3565 lang slot count. Adjust.
3566 * Makefile.in (TREE_H): Add vec.h
3567 * alias.c (record_component_aliases): Adjust BINFO access.
3568 * dbxout.c (dbxout_type): Likewise.
3569 * dwarf2out.c (gen_member_die): Likewise.
3570 * sdbout.c (sdbout_one_type): Likewise.
3571 * tree-dump.c (deque_and_dump): Likewise.
3572 * config/i386/i386.c (classify_argument,
3573 contains_128bit_aligned_vector_p): Likewise.
3574 * config/sh/symbian.c (symbian_export_vtable_and_rtti_p): Likewise.
3575 * doc/c-tree.texi (Classes): Update BINFO documentation.
3576
3577 2004-07-20 Steven Bosscher <stevenb@suse.de>
3578
3579 * c-common.h (check_case_value): Remove prototype.
3580 (c_add_case_label): Adjust prototype.
3581 * c-common.c (check_case_value): Make static.
3582 (check_case_bounds): New function.
3583 (c_add_case_label): Use it. Take new argument orig_type.
3584 * c-typeck.c (struct c_switch): New orig_type field.
3585 (c_start_case): Set it.
3586 (do_case): Pass it to c_add_case_label.
3587 * expr.c (expand_expr_real_1): Don't warn for out-of-bounds
3588 cases from here. Add the labels in reverse order.
3589 * stmt.c (struct case_node): Adjust comment. Remove balance field.
3590 (add_case_node): Return nothing, don't check for duplicate cases.
3591 Insert new case nodes in a list, not in an AVL tree.
3592 (expand_end_case_type): Don't turn a case tree into a case list.
3593 (case_tree2list): Remove.
3594 * tree.h (add_case_node): Adjust prototype.
3595
3596 2004-07-19 Paolo Bonzini <bonzini@gnu.org>
3597
3598 * genattr.c (struct range, struct function_unit,
3599 write_units, extend_range, init_range): Remove them.
3600 (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
3601 Output "#define INSN_SCHEDULING" here.
3602 * genattrtab.c (struct range, struct function_unit_op,
3603 struct function_unit, struct dimension, enum operator,
3604 operate_exp, expand_units, simplify_knowing,
3605 encode_units_mask, simplify_by_exploding,
3606 find_and_mark_used_attributes, unmark_used_attributes,
3607 add_values_to_cover, increment_current_value,
3608 test_for_current_value, simplify_with_current_value,
3609 simplify_with_current_value_aux, gen_unit,
3610 write_unit_name, write_function_unit_info,
3611 write_complex_function, write_toplevel_expr,
3612 find_single_value, extend_range): Remove.
3613 (write_attr_get): Do not handle common_av->value
3614 being an FFS.
3615 (struct attr_desc): Remove func_units_p and blockage_p.
3616 (write_attr_valueq): Do not handle them.
3617 (find_attr): Do not clear them.
3618 (make_internal_attr): Do not initialize them.
3619 (main): Remove code dealing with DEFINE_FUNCTION_UNIT.
3620 * sched-vis.c (init_target_units, insn_print_units,
3621 init_block_visualization, print_block_visualization,
3622 visualize_scheduled_insns, visualize_no_unit,
3623 visualize_stall_cycles, visualize_alloc,
3624 visualize_free, target_units, get_visual_tbl_length,
3625 MAX_VISUAL_LINES, INSN_LEN, n_visual_lines,
3626 visual_tbl_line_length, visual_tbl, n_vis_no_unit,
3627 MAX_VISUAL_NO_UNIT, vis_no_unit): Remove.
3628 * haifa-sched.c (blockage_range, clear_units,
3629 schedule_unit, actual_hazard, potential_hazard,
3630 insn_unit, unit_last_insn, unit_tick,
3631 actual_hazard_this_instance, potential_hazard,
3632 schedule_unit, max_insn_queue_index_value): Remove.
3633 (MAX_INSN_QUEUE_INDEX): Removed, renamed throughout to
3634 max_insn_queue_index.
3635 * rtl.def (DEFINE_FUNCTION_UNIT): Remove.
3636 * doc/md.texi (Processor pipeline description): Remove
3637 references to old pipeline descriptions.
3638 (Automaton pipeline description): Merge with the above.
3639 (Old pipeline description, Comparison of the two descriptions):
3640 Remove.
3641
3642 * bt-load.c (migrate_btr_def): Remove references to
3643 use_pipeline_interface.
3644 * haifa-sched.c (insn_cost, schedule_insn,
3645 schedule_block, advance_one_cycle, sched_init,
3646 queue_to_ready, sched_finish): Likewise.
3647 * modulo-sched.c (sms_schedule, advance_one_cycle,
3648 ps_has_conflicts): Likewise.
3649 * sched-rgn.c (init_ready): Likewise.
3650 (debug_dependencies): Likewise, and remove an "if (1)".
3651 * target.h (use_dfa_pipeline_interface): Remove.
3652 * config/alpha/alpha.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
3653 * config/arc/arc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
3654 * config/arm/arm.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
3655 * config/c4x/c4x.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
3656 * config/frv/frv.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
3657 * config/i386/i386.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
3658 * config/ia64/ia64.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
3659 * config/iq2000/iq2000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
3660 * config/m32r/m32r.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
3661 * config/mcore/mcore.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
3662 * config/mips/mips.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
3663 * config/pa/pa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
3664 * config/rs6000/rs6000.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
3665 * config/s390/s390.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
3666 * config/sh/sh.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
3667 * config/sparc/sparc.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
3668 * config/v850/v850.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
3669 * config/xtensa/xtensa.c (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
3670 * doc/tm.texi (TARGET_USE_DFA_PIPELINE_INTERFACE): Remove.
3671
3672 2004-07-19 Roger Sayle <roger@eyesopen.com>
3673
3674 * rtlanal.c (reg_set_p): Add check for regs_invalidated_by_call.
3675
3676 2004-07-19 Jeff Law <law@redhat.com>
3677
3678 * tree-ssa-dom.c (single_incoming_edge_ignoring_loop_edges): New.
3679 (get_eq_expr_value): Use it. Simplify slightly.
3680
3681 2004-07-19 Maciej W. Rozycki <macro@linux-mips.org>
3682
3683 * config/mips/mips.md (mulsidi3_32bit_r4000): Fix the clobber list.
3684 (umulsidi3_32bit_r4000): Likewise.
3685
3686 2004-07-19 Nathan Sidwell <nathan@codesourcery.com>
3687
3688 * vec.h: Propagate location information properly.
3689 (VEC_T_iterate): Add result pointer parameter.
3690 (VEC_T_space): New.
3691 (VEC_T_reserve): Use it.
3692
3693 2004-07-19 Daniel Jacobowitz <dan@debian.org>
3694
3695 * Makefile.in (c-format.o): Depend on c-format.h.
3696 * c-format.h: New file.
3697 (struct format_char_info): Add CHAIN member.
3698 * c-format.c: Move some types and constants to c-format.h.
3699 (format_type_error): Set to -1.
3700 (struct function_format_info): Use an int for format_type.
3701 (decode_format_type): Return an int. Return format_type_error
3702 on error.
3703 (print_char_table, asm_fprintf_char_table, gcc_diag_char_table)
3704 (gcc_diag_char_table, gcc_cdiag_char_table, gcc_cxxdiag_char_table)
3705 (scan_char_table, time_char_table, monetary_char_table): Initialize
3706 CHAIN to NULL.
3707 (n_format_types): New variable.
3708 (check_format_info_main): Handle CHAIN in format_char_info.
3709 (handle_format_attribute): Handle TARGET_FORMAT_TYPES and
3710 TARGET_N_FORMAT_TYPES.
3711 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*)
3712 (sparc-*-solaris2*): Include config/t-sol2 and config/sol2-c.c.
3713 * config/sol2-c.c: New file.
3714 * config/t-sol2: New file.
3715 * config/sol2.h (TARGET_N_FORMAT_TYPES, TARGET_FORMAT_TYPES): Define.
3716 * config/sparc/elf.h, config/sparc/sp64-elf.h: Undefine
3717 TARGET_N_FORMAT_TYPES and TARGET_FORMAT_TYPES.
3718
3719 * doc/extend.texi (Target Format Checks): New section.
3720 (Function Attributes): Mention it.
3721 * doc/invoke.texi: Mention target format checks.
3722 * doc/sourcebuild.texi: Mention target format checks.
3723 * dc/tm.texi (Misc): Document TARGET_N_FORMAT_TYPES and
3724 TARGET_FORMAT_TYPES.
3725
3726 2004-07-19 Andreas Krebbel <krebbel1@de.ibm.com>
3727
3728 * config/s390/s390-protos.h (s390_return_address_offset): Prototype
3729 added.
3730 * config/s390/s390.c (regclass_map initializer): Register 35 added to
3731 ADDR_REGS.
3732 (load_multiple_operation, store_multiple_operation): Removed
3733 pointless sanity check.
3734 (s390_decompose_address): Added check for return_address_pointer_rtx.
3735 (s390_return_addr_rtx): Use return_address_pointer_rtx for count == 0.
3736 (s390_return_address_offset): New function.
3737 * config/s390/s390.h (FIRST_PSEUDO_REGISTER): Increased to 36.
3738 (FRAME_REGNO_P): Added check for register 35.
3739 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
3740 REG_ALLOC_ORDER): Appended entry for register 35.
3741 (REG_CLASS_CONTENTS): Adjusted class masks for register 35.
3742 (EH_RETURN_HANDLER_RTX): Use return_address_pointer_rtx.
3743 (RETURN_ADDRESS_POINTER_REGNUM): New macro.
3744 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET): Return address pointer
3745 is eliminable using stack pointer or hard frame pointer.
3746 (REGISTER_NAMES): Added name for register 35.
3747 * config/s390/s390.md ("load_multiple", "store_multiple"): Removed
3748 pointless sanity check.
3749
3750 2004-07-19 Roger Sayle <roger@eyesopen.com>
3751
3752 * fold-const.c (tree_expr_nonzero_p): Add function prototype.
3753 (fold) <EQ_EXPR>: Move tree_expr_nonzero_p optimization from
3754 fold_relational_const to here, i.e. "(x | 5) == 0" -> false.
3755 (fold) (UNEQ_EXPR>: Add optimizations for unordered comparisons
3756 of the form "x op x" where op is UNLE, UNGE, UNEQ or LTGT.
3757 (fold_relational_const): Tidy up handling of floating point
3758 comparisons by calling real_compare. Remove tree_expr_nonzero_p
3759 transformation; fold_relational_const assumes constant operands.
3760
3761 2004-07-19 Gabriel Dos Reis <gdr@integrable-solution.net>
3762
3763 * doc/sourcebuild.texi: Add libcpp, now that CPP has its own
3764 directory.
3765
3766 2004-07-19 Joseph S. Myers <jsm@polyomino.org.uk>
3767
3768 * c-tree.h (struct c_expr): Define.
3769 (C_SET_EXP_ORIGINAL_CODE): Remove.
3770 (parser_build_binary_op, build_compound_expr): Update prototypes.
3771 * c-parse.in (%union): Add exprtype.
3772 (FUNC_NAME): Mark as ttype.
3773 (expr, expr_no_commas, cast_expr, unary_expr, primary): Change to
3774 exprtype.
3775 (expr): Update. Define directly in terms of expr_no_commas
3776 instead of using nonnull_exprlist.
3777 (nonnull_exprlist, unary_expr, cast_expr, expr_no_commas, primary,
3778 offsetof_member_designator, typespec_nonreserved_nonattr, init,
3779 initval, designator, component_declarator,
3780 component_notype_declarator, enumerator, array_declarator,
3781 condition, exexpr, switch_statement, stmt_nocomp, stmt,
3782 nonnull_asm_operands, ivar_declarator, receiver): Update. Don't
3783 set C_EXP_ORIGINAL_CODE. Use TREE_NO_WARNING for assignments
3784 where appropriate.
3785 * c-common.h (C_EXP_ORIGINAL_CODE): Remove.
3786 * c-common.c (c_common_truthvalue_conversion): Don't check
3787 C_EXP_ORIGINAL_CODE.
3788 * c-typeck.c (parser_build_binary_op): Use c_expr structures.
3789 Don't use C_EXP_ORIGINAL_CODE.
3790 (default_conversion, default_function_array_conversion): Don't use
3791 C_EXP_ORIGINAL_CODE. Preserve TREE_NO_WARNING.
3792 (internal_build_compound_expr): Merge into build_compound_expr.
3793 (build_compound_expr): Take two operands instead of a TREE_LIST.
3794 * objc/objc-act.c (get_super_receiver): Update calls to
3795 build_compound_expr.
3796
3797 2004-07-18 Paolo Bonzini <bonzini@gnu.org>
3798
3799 * config/sh/sh.c (sh_use_dfa_interface): Remove.
3800 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Set to
3801 hook_int_void_1.
3802 * config/sh/sh.md: Extract pipeline descriptions
3803 into separate files.
3804 * config/sh/sh1.md: New file, extracted from sh.md.
3805 * config/sh/sh4.md: New file, extracted from sh.md.
3806 * config/sh/shmedia.md: New file, extracted from sh.md
3807 and rewritten using new-style pipeline description.
3808
3809 2004-07-18 Zack Weinberg <zack@codesourcery.com>
3810
3811 * config/pa/pa.md: Delete the two remaining define_peephole
3812 patterns.
3813
3814 2004-07-18 Steven Bosscher <stevenb@suse.de>
3815 Joseph S. Myers <jsm@polyomino.org.uk>
3816
3817 * c-common.c (c_common_truthvalue_conversion): Don't warn if
3818 TREE_NO_WARNING is set.
3819
3820 2004-07-18 Roger Sayle <roger@eyesopen.com>
3821
3822 * builtins.c (simplify_builtin_memcmp, simplify_builtin_strcmp,
3823 simplify_builtin_strncmp): Delete.
3824 (fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
3825 Change argument to accept an arglist instead of an "exp". Assume
3826 that the return type is always integer_type_node. Copy missing
3827 transformations from their now obsolete simplify_builtin_*
3828 equivalents.
3829 (fold_builtin_1): Pass arglist instead of exp to fold_builtin_memcmp,
3830 fold_builtin_strcmp and fold_builtin_strncmp.
3831 (simplify_builtin): Call fold_builtin_memcmp, fold_builtin_strcmp
3832 and fold_builtin_strncmp instead of simplify_builtin_memcmp,
3833 simplify_builtin_strcmp and simplify_builtin_strncmp respectively.
3834
3835 2004-07-18 Daniel Jacobowitz <dan@debian.org>
3836
3837 * Makefile.in (tree-alias-common.o): Update dependencies.
3838
3839 2004-07-17 Sebastian Pop <pop@cri.ensmp.fr>
3840
3841 * cfgloop.c (flow_loop_nested_p): Fix comment.
3842
3843 2004-07-17 Jason Merrill <jason@redhat.com>
3844
3845 PR c++/16115
3846 * stor-layout.c (relayout_decl): New fn.
3847 * tree.h: Declare it.
3848 (DECL_BY_REFERENCE): New macro.
3849
3850 2004-07-17 Eric Botcazou <ebotcazou@act-europe.fr>
3851
3852 * libgcc2.c (__enable_execute_stack): New symbol.
3853 * libgcc-std.ver (GCC_3.4.2): New version. Inherit from GCC_3.4
3854 and declare __enable_execute_stack.
3855 * mklibgcc.in (lib2funcs): Add _enable_execute_stack.
3856 * config/netbsd.h (NETBSD_ENABLE_EXECUTE_STACK): ANSIfy.
3857 * config/sol2.h (TRANSFER_FROM_TRAMPOLINE): Rename into
3858 ENABLE_EXECUTE_STACK.
3859 * config/alpha/alpha.c (alpha_initialize_trampoline): Conditionalize
3860 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
3861 * config/alpha/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Rename into
3862 ENABLE_EXECUTE_STACK.
3863 * config/alpha/osf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
3864 * config/i386/i386.c (x86_initialize_trampoline): Conditionalize
3865 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
3866 * config/i386/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Rename into
3867 ENABLE_EXECUTE_STACK.
3868 * config/i386/netbsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
3869 * config/i386/netbsd64.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
3870 * config/sparc/freebsd.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
3871 * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Likewise.
3872 * config/sparc/sparc.c (sparc_initialize_trampoline): Conditionalize
3873 on ENABLE_EXECUTE_STACK instead of TRANSFER_FROM_TRAMPOLINE.
3874 (sparc64_initialize_trampoline): Likewise.
3875 * doc/tm.texi (trampolines): Add ENABLE_EXECUTE_STACK macro.
3876
3877 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
3878
3879 * langhooks.h (builtin_function): New langhook.
3880 * langhooks-def.h (LANG_HOOKS_BUILTIN_FUNCTION): New.
3881 (LANG_HOOKS_INITIALIZER): Update.
3882 * tree.h (builtin_function): Remove.
3883 * doc/tm.texi: Update.
3884 * c-tree.h (builtin_function): Declare.
3885 * c-common.c, config/alpha/alpha.c, config/arm/arm.c,
3886 config/c4x/c4x.c, config/frv/frv.c, config/i386/i386.c,
3887 config/ia64/ia64.c, config/iq2000/iq2000.c,
3888 config/rs6000/rs6000.c, config/s390/s390.c, config/sh/sh.c,
3889 config/stormy16/stormy16.c: All callers of builtin_function
3890 changed.
3891
3892 2004-07-17 Andrew Pinski <pinskia@physics.uc.edu>
3893
3894 PR target/16556
3895 * config/i386/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
3896 Remove white space after the backslash.
3897
3898 2004-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
3899
3900 PR rtl-optimization/16294
3901 * resource.c (return_insn_p): New predicate.
3902 (mark_target_live_regs): Use it. Special-case return insns.
3903 (init_resource_info): Use it. Don't scan the epilogue past
3904 a return.
3905
3906 2004-07-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3907
3908 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Do not
3909 destroy dominance information.
3910 * passes.c (rest_of_handle_loop2): Free dominance information.
3911 * tree-cfg.c (cleanup_tree_cfg): Remove unreachable blocks before
3912 jump threading.
3913 (thread_jumps): Update dominance information and remove unreachable
3914 blocks.
3915 * tree-ssa-phiopt.c (replace_phi_with_stmt): Update dominance
3916 information and remove the unreachable block.
3917
3918 2004-07-17 Graham Stott <graham.stott@btinternet.com>
3919
3920 * emit-rtl.c (reorder_insns): Don't set BB for a BARRIER insn.
3921
3922 2004-07-17 Toon Moene <toon@moene.indiv.nluug.nl>
3923
3924 * doc/sourcebuild.texi: Remove libf2c entry.
3925
3926 2004-07-17 Paolo Bonzini <bonzini@gnu.org>
3927
3928 * config/i386/i386.md (movv16qi_internal): Fix typo.
3929
3930 2004-07-17 Steven Bosscher <stevenb@suse.de>
3931
3932 * final.c (final_scan_insn): Fix broken commit from previous
3933 patch.
3934
3935 2004-07-17 Joseph S. Myers <jsm@polyomino.org.uk>
3936
3937 * c-typeck.c (parser_build_binary_op): Condition warnings for
3938 X<=Y<=Z on -Wparentheses instead of -Wextra.
3939 * doc/invoke.texi: Update. Document that most of -Wparentheses is
3940 supported for C only.
3941
3942 2004-07-17 Steven Bosscher <stevenb@suse.de>
3943
3944 * cfgcleanup.c (try_simplify_condjump): Don't remove line
3945 notes to avoid unreachable code warnings.
3946 * toplev.c (backend_init): Don't emit line notes for
3947 unreachable code warnings.
3948
3949 * combine.c (distribute_notes): Don't distribute a
3950 REG_VTABLE_REF note.
3951 * final.c (final_scan_insn): Don't handle it.
3952 * rtl.c (reg_note_name): Remove it.
3953 * rtl.h (enum reg_node): Dito.
3954
3955 * emit-rtl.c (force_line_numbers, restore_line_number_status):
3956 Remove.
3957 * rtl.h (force_line_numbers, restore_line_number_status):
3958 Remove prototypes.
3959
3960 * stmt.c (using_eh_for_cleanups_p, using_eh_for_cleanups): Move...
3961 * tree-eh.c (using_eh_for_cleanups_p): ...here. Make static.
3962 (using_eh_for_cleanups): Also moved here.
3963
3964 * expr.c (expand_expr_real_1) <CASE_LABEL_EXPR>: Die if we see one.
3965 <SWITCH_EXPR>: Die if we have a non-NULL SWITCH_BODY. Update calls
3966 to expand_start_case and add_case_node.
3967 * stmt.c (struct nesting): Cleanup unused fields condition_code,
3968 last_unconditional_cleanup, nominal_type, printname, and
3969 line_number_status.
3970 (struct fixup_goto): Remove.
3971 (struct stmt_status): Remove x_goto_fixup_chain field.
3972 (goto_fixup_chain): Remove.
3973 (strip_default_case_nodes, group_case_nodes, emit_jump_if_reachable,
3974 pushcase, pushcase_range): Remove.
3975 (expand_start_bindings_and_block): Don't set unused fields in
3976 the nesting stack.
3977 (expand_start_case, add_case_node): Cleanup unused formal arguments.
3978 (expand_end_case_type): Don't simplify the case-list. Use emit_jump
3979 instead of emit_jump_if_reachable.
3980 (emit_case_nodes): Likewise.
3981 * tree-cfg.c (group_case_labels, cleanup_dead_labels): No longer
3982 static.
3983 (update_eh_label): Work around left-over exception handing regions.
3984 * tree-flow.h (group_case_labels, cleanup_dead_labels): Add protos.
3985 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): New function.
3986 (pass_cleanup_cfg_post_optimizing): New pass.
3987 (init_tree_optimization_passes): Run the new pass after all
3988 optimizations.
3989 * tree.h (pushcase, pushcase_range): Remove prototypes.
3990 (expand_start_case, add_case_node): Update prototypes.
3991
3992 2004-07-16 Krister Walfridsson <cato@df.lth.se>
3993
3994 * tree-inline.c (estimate_num_insns_1): Correct increase of count.
3995
3996 2004-07-16 Richard Henderson <rth@redhat.com>
3997
3998 * builtins.c (std_expand_builtin_va_arg): Remove.
3999 (expand_builtin_va_arg): Remove.
4000 * expr.h: Don't declare them.
4001 * gimplify.c (mark_decls_volatile_r): Remove.
4002 (copy_if_shared_r): Don't call it.
4003 * target-def.h: Don't test EXPAND_BUILTIN_VA_ARG.
4004 * expr.c (expand_expr_real_1): Don't handle VA_ARG_EXPR.
4005 * gimple-low.c (lower_stmt): Likewise.
4006 * tree-cfg.c (cfg_remove_useless_stmts_bb): Likewise.
4007 * tree-gimple.c (is_gimple_tmp_rhs, is_gimple_stmt): Likewise.
4008 * tree-ssa-operands.c (get_expr_operands): Likewise.
4009 * doc/tm.texi (TARGET_GIMPLIFY_VA_ARG_EXPR): Don't mention
4010 EXPAND_BUILTIN_VA_ARG.
4011 * system.h (EXPAND_BUILTIN_VA_ARG): Poison.
4012 * config/alpha/alpha.h, config/alpha/unicosmk.h, config/i386/i386.h,
4013 config/ia64/ia64.h, config/rs6000/rs6000.h, config/s390/s390.h,
4014 config/sparc/sparc.h (EXPAND_BUILTIN_VA_ARG): Remove.
4015
4016 2004-07-16 Daniel Berlin <dberlin@dberlin.org>
4017
4018 * tree-ssa-pre.c (insert_aux): Break out if we hit
4019 a critical edge.
4020
4021 2004-07-16 Richard Henderson <rth@redhat.com>
4022
4023 * basic-block.h (remove_fake_exit_edges): Declare.
4024 * cfganal.c (remove_fake_predecessors): Rename from
4025 remove_fake_successors; iterate over predecessors.
4026 (remove_fake_exit_edges): New.
4027 * cfgcleanup.c (try_optimize_cfg): Use it.
4028 * gcse.c (one_pre_gcse_pass, store_motion): Likewise.
4029 * predict.c (estimate_probability): Likewise.
4030 (tree_estimate_probability, note_prediction_to_br_prob): Likewise.
4031 * tree-cfg.c (make_edges): Likewise.
4032 * tree-ssa-pre.c (fini_pre): Likewise.
4033 * profile.c (instrument_edges): Don't remove_fake_edges.
4034 (branch_prob): Do it earlier here.
4035
4036 2004-07-16 Richard Henderson <rth@redhat.com>
4037
4038 * tree-ssa-operands.c (get_expr_operands): Fix 2004-07-15
4039 switchification wrt CONSTRUCTOR. Document the reason.
4040
4041 2004-07-16 Frank Ch. Eigler <fche@redhat.com>
4042
4043 * tree-mudflap.c (mf_file_function_line_tree): Correct typo
4044 that prevented descriptive __mf_check source location strings.
4045
4046 2004-07-16 Richard Henderson <rth@redhat.com>
4047
4048 * tree-def (WITH_SIZE_EXPR): New.
4049 * explow.c (expr_size, int_expr_size): Handle WITH_SIZE_EXPR.
4050 * expr.c (expand_expr_real_1): Likewise.
4051 * gimplify.c (maybe_with_size_expr): New.
4052 (gimplify_arg, gimplify_modify_expr): Use it.
4053 (gimplify_modify_expr_to_memcpy): Take size parameter.
4054 (gimplify_modify_expr_to_memset): Likewise.
4055 (gimplify_expr): Handle WITH_SIZE_EXPR.
4056 * tree-alias-common.c (find_func_aliases): Likewise.
4057 * tree-eh.c (tree_could_trap_p): Likewise.
4058 (tree_could_throw_p): Likewise.
4059 * tree-gimple.c (is_gimple_lvalue): Likewise.
4060 (get_call_expr_in): Likewise.
4061 * tree-inline.c (estimate_num_insns_1): Likewise.
4062 (expand_calls_inline): Likewise.
4063 * tree-nested.c (convert_call_expr): Likewise.
4064 * tree-pretty-print.c (dump_generic_node): Likewise.
4065 * tree-sra.c (sra_walk_expr): Likewise.
4066 * tree-ssa-alias.c (add_pointed_to_expr): Likewise.
4067 * tree-ssa-ccp.c (get_rhs, set_rhs): Likewise.
4068 * tree-ssa-operands.c (get_expr_operands): Likewise.
4069 * tree-tailcall.c (find_tail_calls): Likewise.
4070
4071 * calls.c (expand_call): Reset old_stack_allocated after
4072 calling emit_stack_restore.
4073
4074 2004-07-16 Richard Henderson <rth@redhat.com>
4075
4076 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_COPY_RES_DECL_FOR_INLINING,
4077 lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
4078 * langhooks.c (lhd_tree_inlining_copy_res_decl_for_inlining): Remove.
4079 * langhooks.h (struct lang_hooks_for_tree_inlining): Remove
4080 copy_res_decl_for_inlining.
4081
4082 * tree-inline.c (declare_return_variable): New modify_dest argument.
4083 Use it as the return value, when possible or manditory. Handle
4084 TREE_ADDRESSABLE types.
4085 (expand_call_inline): Extract MODIFY_EXPR lhs for call. Simplify
4086 replacement of CALL_EXPR.
4087
4088 2004-07-16 Richard Henderson <rth@redhat.com>
4089
4090 * tree-flow.h (struct var_ann_d): Remove has_hidden_use.
4091 * gimple-low.c (expand_var_p): Don't check it.
4092 * tree-ssa-alias.c (setup_pointers_and_addressables): Likewise.
4093 * tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
4094 * tree-ssa-operands.c (add_stmt_operand): Likewise.
4095 * tree-dfa.c (find_hidden_use_vars, find_hidden_use_vars_r): Kill.
4096 (find_referenced_vars): Don't call them.
4097 * tree-flow-inline.h (has_hidden_use, set_has_hidden_use): Kill.
4098
4099 2004-07-16 Richard Henderson <rth@redhat.com>
4100
4101 * function.c (pass_by_reference): True for all variable sized types.
4102
4103 2004-07-16 Sebastian Pop <pop@cri.ensmp.fr>
4104
4105 * Makefile.in (tree-pretty-print.o): Depend on tree-chrec.h.
4106 * tree-pretty-print.c: Include tree-chrec.h.
4107 (dump_generic_node): Pretty print SCEV_KNOWN, SCEV_NOT_KNOWN
4108 and POLYNOMIAL_CHREC nodes.
4109
4110 2004-07-16 Steve Ellcey <sje@cup.hp.com>
4111
4112 * builtins.c (expand_builtin_stpcpy): Do not create temporary
4113 reg with VOIDmode.
4114
4115 2004-07-16 Segher Boessenkool <segher@kernel.crashing.org>
4116
4117 * config/rs6000/eabi.asm (__eabi_convert): Fix typo (cmpi vs. cmpwi).
4118
4119 2004-07-16 Andreas Krebbel <krebbel1@de.ibm.com>
4120
4121 * config/s390/s390.md: Changed every occurence of BASE_REGISTER
4122 to BASE_REGNUM.
4123 * config/s390/s390.c: Likewise.
4124 * config/s390/s390.h: Likewise.
4125
4126 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
4127
4128 * config/mips/mips.md (addsi3, adddi3): Remove special handling
4129 of $sp adds. Remove REGNO checks from mips16 patterns.
4130
4131 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
4132
4133 * config/mips/mips.md: Delete outdated comment.
4134
4135 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
4136
4137 * config/mips/mips.c (get_float_compare_codes): Delete.
4138 (mips_emit_compare): New function, mostly extracted from
4139 get_float_compare_codes and gen_conditional_branch.
4140 (gen_conditional_branch, gen_conditional_move): Use it.
4141
4142 2004-07-16 Segher Boessenkool <segher@kernel.crashing.org>
4143
4144 * genautomata.c (add_vect): Speedup by using integers as
4145 bit-vectors for walking through the comb_vect and finding
4146 a match.
4147
4148 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
4149
4150 * config/mips/mips.c (mips_zero_if_equal): Only use XORs if the second
4151 operand is an uns_arith_operand; use subtraction otherwise.
4152 * config/mips/mips.md (cmpsi, cmpdi): Allow any nonmemory_operand,
4153 not just arith_operands.
4154
4155 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
4156
4157 * config/mips/mips-protos.h (gen_int_relational): Delete.
4158 (mips_emit_scc): Declare.
4159 * config/mips/mips.c (internal_test): Delete.
4160 (sle_operand, sleu_operand): New functions.
4161 (map_test_to_internal_test, gen_int_relational): Delete.
4162 (mips_emit_binary, mips_relational_operand_ok_p)
4163 (mips_emit_int_relational, mips_zero_if_equal)
4164 (mips_emit_scc): New functions.
4165 (gen_conditional_branch): Rework to use mips_emit_int_relational.
4166 * config/mips/mips.h (PREDICATE_CODES): Add sle_operand and
4167 sleu_operand.
4168 * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
4169 (sltu, sleu): Use mips_emit_scc.
4170 (*sge_[sd]i, *sgeu_[sd]i): New patterns.
4171 (*sle_[sd]i, *sle_[sd]i_mips16): Use sle_operand.
4172 (*sleu_[sd]i, *sleu_[sd]i_mips16): Use sleu_operand.
4173
4174 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
4175
4176 * config/mips/mips.md (*sgt_di_mips16): Fix destination constraint.
4177
4178 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
4179
4180 * config/mips/mips.md (*seq_[sd]i): Renamed from seq_[sd]i_zero.
4181 (*sne_[sd]i): Likewise sne_[sd]i_zero.
4182 (*sgt_[sd]i): ...and sgt_[sd]i.
4183 (*slt_[sd]i): ...and slt_[sd]i.
4184 (*sgtu_[sd]i): ...and sgtu_[sd]i.
4185 (*sltu_[sd]i): ...and sltu_[sd]i.
4186 (*sleu_[sd]i): ...and sleu_[sd]i_const.
4187 Name previously unnamed mips16 patterns. Formatting fixes.
4188
4189 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
4190
4191 * config/mips/mips.c (cmp_operands): Renamed from branch_cmp.
4192 (branch_type): Delete.
4193 (gen_conditional_branch, gen_conditional_move)
4194 (mips_gen_conditional_trap): Update after name change. Get the
4195 comparison mode from cmp_operands[0].
4196 * config/mips/mips.h (cmp_type, branch_type): Delete.
4197 (cmp_operands): Renamed from branch_cmp.
4198 * config/mips/mips.md (cmpsi, cmpdi, cmpsf, cmpdf): Update after
4199 name change. Don't set branch_type.
4200 (seq, sne, sgt, sge, slt, sle, sgtu, sgeu, sltu, sleu): Check the
4201 mode class of cmp_operands[0] rather than branch_type. Update after
4202 name change.
4203
4204 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
4205
4206 * config/mips/mips.c (mips_rtx_costs): In mips16 code, set the cost
4207 of 0...255 to 0 when inside a SET.
4208
4209 2004-07-16 Richard Sandiford <rsandifo@redhat.com>
4210
4211 * config/mips/mips.md: Remove mips16 define_peepholes.
4212
4213 2004-07-16 Daniel Berlin <dberlin@dberlin.org>
4214
4215 * tree-ssa-pre.c (init_pre): Connect infinite loops to exit.
4216 (fini_pre): Remove fake edges.
4217
4218 2004-07-15 Richard Henderson <rth@redhat.com>
4219
4220 * tree-ssa-operands.c (get_expr_operands): Use a switch. Split out...
4221 (get_indirect_ref_operands, get_call_expr_operands): ... these.
4222
4223 2004-07-15 Nathan Sidwell <nathan@codesourcery.com>
4224
4225 * vec.h (VEC_address): New function.
4226
4227 2004-07-14 Jason Merrill <jason@redhat.com>
4228
4229 PR middle-end/15885
4230 * gimplify.c (gimplify_arg): New fn, split out from...
4231 (gimplify_call_expr): Here. Special-case BUILT_IN_VA_START.
4232
4233 2004-07-15 Roman Zippel <zippel@linux-m68k.org>
4234
4235 * config/m68k/m68k.c (output_move_qimode): Abort on an attempt to
4236 generate code which is generated by pushqi1 now
4237 * config/m68k/m68k.h (MOVE_BY_PIECES_P): Remove.
4238
4239 2004-07-15 Roman Zippel <zippel@linux-m68k.org>
4240
4241 * combine.c (simplify_set): match the mode of the constant 0 with
4242 the tested operand to match the compare behaviour and the
4243 simplify_relational_operation() expectation.
4244
4245 2004-07-15 Aldy Hernandez <aldyh@redhat.com>
4246
4247 * config/rs6000/rs6000.md ("bunordered"): Disable for e500.
4248 ("bordered"): Same.
4249
4250 2004-07-15 Aldy Hernandez <aldyh@redhat.com>
4251
4252 * config/rs6000/rs6000.md ("*cceq_ior_compare"): Allow
4253 unconditionally.
4254 * config/rs6000/spe.md ("e500_cceq_ior_compare"): Remove.
4255
4256 2004-07-15 Richard Sandiford <rsandifo@redhat.com>
4257
4258 * config/mips/mips.c (mips_adjust_insn_length): Fix handling of
4259 calls in mips16 code.
4260
4261 2004-07-15 Richard Sandiford <rsandifo@redhat.com>
4262
4263 * config/mips/mips.md: In the mips16 li/neg splitter, use SImode for
4264 the destination of the li as well as for the neg.
4265
4266 2004-07-15 Frank Ch. Eigler <fche@redhat.com>
4267
4268 g++/15861
4269 * cgraphunit.c (cgraph_build_static_cdtor): Add priority argument.
4270 * cgraph.h: Update declaration.
4271 * c-decl.c (build_cdtor): Update call with default priority.
4272 * coverage.c (create_coverage): Ditto.
4273 * tree-mudflap.c (mf_init_fndecl): New tree.
4274 (mudflap_init): Set it.
4275 (mudflap_register_call): Arrange to call __mf_init before the first
4276 __mf_register call.
4277 (mudflap_finish_file): Mark the mudflap static initializer as extra
4278 high priority, to beat all C++ static constructors.
4279
4280 2004-07-15 Jeff Law <law@redhat.com>
4281
4282 * loop.c (check_insn_for_givs): Restore check for code labels that was
4283 accidentally deleted by a recent checkin.
4284
4285 2004-07-15 Nathan Sidwell <nathan@codesourcery.com>
4286
4287 * vec.h (VEC_T_truncate): Allow truncation of an empty vector.
4288 (VEC_T_quick_insert, VEC_T_ordered_remove): Fix sizeof(T) thinko.
4289
4290 2004-07-14 Richard Henderson <rth@redhat.com>
4291
4292 * print-tree.c (print_node): Fix casts last change.
4293
4294 2004-07-15 Paul Brook <paul@codesourcery.com>
4295
4296 * dwarf2out.c (dwarf2out_begin_prologue): Rename IA64_UNWIND_INFO
4297 to TARGET_UNWIND_INFO.
4298 * except.c (output_function_exception_table): Ditto.
4299 * except.h: Ditto.
4300 * opts.c (decode_options): Ditto.
4301 * passes.c (rest_of_handle_final): Ditto.
4302 * final.c (final_start_function): Ditto.
4303 (final_scan_insn, final_scan_insn): Replace IA64_UNWIND_EMIT with
4304 target hook.
4305 * targhooks.h (default_unwind_emit): Declare.
4306 * targhooks.c (default_unwind_emit): New function.
4307 * target-def.h: Define and use TARGET_UNWIND_EMIT.
4308 * target.h (struct gcc_target): Add unwind_emit.
4309 * config/ia64/ia64.c (TARGET_UNWIND_EMIT): Define.
4310 * config/ia64/ia64.h: Rename IA64_UNWIND_INFO to TARGET_UNWIND_INFO.
4311 Remove IA64_UNWIND_EMIT.
4312 * doc/tm.texi: Document TARGET_UNWIND_EMIT and TARGET_UNWIND_INFO.
4313
4314 2004-07-14 Richard Henderson <rth@redhat.com>
4315
4316 * print-tree.c (print_node): Handle SSA_NAME.
4317
4318 2004-07-14 James E Wilson <wilson@specifixinc.com>
4319
4320 PR target/16325
4321 * config/mips/mips.h (STARTING_FRAME_OFFSET): When flag_profile_value
4322 and ! TARGET_64BIT, include REG_PARM_STACK_SPACE.
4323
4324 2004-07-15 Jakub Jelinek <jakub@redhat.com>
4325
4326 * expr.c (expand_assignment): Reenable bitfield += optimizations.
4327 Use alias set 0 for memory, do proper mode calculations and adjust
4328 address for memories.
4329
4330 2004-07-14 Per Bothner <per@bothner.com>
4331
4332 * input.h: If USE_MAPPED_LOCATION, define separate expanded_location
4333 structure with extra column field.
4334 * tree.c (expand_location): Also fill in column field.
4335 * gengtype-lex.l: Ignore expanded_location typedef, sinze gengtype
4336 gets confused by the two conditionally-compiled definitions.
4337
4338 2004-07-14 Eric Christopher <echristo@redhat.com>
4339
4340 * calls.c (expand_call): Fix typo in comment.
4341
4342 2004-07-14 Steve Ellcey <sje@cup.hp.com>
4343
4344 * config/ia64/ia64.c (ia64_expand_compare): Allow ORDERED
4345 comparision of TFmode.
4346
4347 2004-07-14 Richard Henderson <rth@redhat.com>
4348
4349 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Move indirect ...
4350 (alpha_gimplify_va_arg): ... handling here. Use pass_by_reference.
4351 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Use pass_by_reference.
4352 * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
4353 * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
4354 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
4355 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Likewise.
4356 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
4357 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
4358
4359 2004-07-14 Mike Stump <mrs@apple.com>
4360
4361 * config/darwin.h (WINT_TYPE): Define to be int to match
4362 system header files.
4363
4364 2004-07-14 Bob Wilson <bob.wilson@acm.org>
4365
4366 * config/xtensa/xtensa.c (function_arg_advance): Check for args
4367 that must be passed in the stack.
4368 (xtensa_gimplify_va_arg_expr): Skip special-case padding for small
4369 arguments if the size is not a constant.
4370
4371 2004-07-14 Per Bothner <per@bothner.com>
4372
4373 * c-typeck.c (emit_side_effect_warnings): Use EXPR_HAS_LOCATION
4374 instead of EXPR_LOCUS in a boolean context, which is always true
4375 if --enable-mapped-location.
4376 * stmt.c (warn_if_unused_value): Likewise. Also use EXPR_LOCATION.
4377
4378 2004-07-14 Richard Henderson <rth@redhat.com>
4379
4380 * dominance.c (struct dom_info): Add fake_exit_edge.
4381 (init_dom_info): Allocate it.
4382 (free_dom_info): Free it.
4383 (calc_dfs_tree): Set it. Handle noreturn and infinite loops
4384 in two passes.
4385 (calc_idoms): Honor fake_exit_edge.
4386
4387 2004-07-13 Jason Merrill <jason@redhat.com>
4388
4389 * tree-gimple.c (is_gimple_reg_rhs, is_gimple_mem_rhs): New fns.
4390 (rhs_test_for): New fn.
4391 (is_gimple_tmp_rhs): Rename from is_gimple_rhs.
4392 * tree-gimple.h: Declare them.
4393 * gimplify.c (gimplify_modify_expr): Use the new fns.
4394
4395 2004-07-14 Richard Henderson <rth@redhat.com>
4396
4397 * config/arm/arm-protos.h (arm_va_arg): Remove.
4398 * config/arm/arm.c (arm_va_arg): Remove.
4399 (arm_init_expanders): Fix alignment of arg_pointer_rtx.
4400 * config/arm/arm.h (EXPAND_BUILTIN_VA_ARG): Remove.
4401
4402 2004-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4403
4404 * pa.c (fix_range): New function to mark a range(s) of registers as
4405 fixed registers.
4406 (override_options): Call fix_range if the -mfixed-range option string
4407 is not empty.
4408 * pa.h (TARGET_OPTIONS): Add -mfixed-range option.
4409 * doc/invoke.texi (-mfixed-range): Document new option.
4410
4411 2004-07-14 David Edelsohn <edelsohn@gnu.org>
4412
4413 * config/rs6000/rs6000.c (function_arg_padding): Do not pad SFmode
4414 for TARGET_64BIT.
4415 (rs6000_gimplify_va_arg): Use size_int instead of build_int_2.
4416
4417 2004-07-14 Roger Sayle <roger@eyesopen.com>
4418
4419 * expmed.c (expand_sdiv_pow2): New function to expand signed division
4420 by a positive power of two, split out from expand_divmod. Provide
4421 an alternate implementation when shifts are expensive. Lower the
4422 threshold for using a branchless implementation to BRANCH_COST >= 2.
4423 (expand_divmod): Call expand_sdiv_pow2 for suitable divisions.
4424
4425 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
4426
4427 * tree-dfa.c (make_rename_temp): *Really* work just
4428 like create_tmp_var if called while outside SSA form.
4429
4430 2004-07-14 Ulrich Weigand <uweigand@de.ibm.com>
4431
4432 * config/s390/s390.md ("udivsi3"): Ensure trap is generated
4433 for division by zero.
4434 ("umodsi3"): Likewise.
4435
4436 2004-07-14 Richard Sandiford <rsandifo@redhat.com>
4437
4438 * config/mips/mips.c (mips_output_move): When generating mips16 code,
4439 force loads of negative constants to be split.
4440 * config/mips/mips.md (*movhi_mips16, *movqi_mips16): Likewise.
4441 Generalize SImode li/neg splitter to cope with other modes.
4442
4443 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
4444
4445 * expmed.c: Remove more references to QUEUED in the comments.
4446 * expr.c: Likewise.
4447
4448 2004-07-14 Richard Sandiford <rsandifo@redhat.com>
4449
4450 Revert:
4451 2004-07-13 Richard Henderson <rth@redhat.com>
4452 * config/mips/mips.c (mips_pass_by_reference): Handle mode sizes
4453 correctly.
4454
4455 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
4456
4457 * tree-dfa.c (make_rename_temp): Work just like
4458 create_tmp_var if called while outside SSA form.
4459
4460 2004-07-14 Paolo Bonzini <bonzini@gnu.org>
4461
4462 * expr.c (enqueue_insn, finish_expr_for_function,
4463 protect_from_queue, queued_subexp_p, mark_queue,
4464 emit_insns_enqueued_after_mark, emit_queue,
4465 expand_increment): Remove.
4466 (store_constructor): Expand increment as an assignment.
4467 (expand_expr_real_1 <case PREINCREMENT_EXPR,
4468 case PREDECREMENT_EXPR, case POSTINCREMENT_EXPR,
4469 case POSTDECREMENT_EXPR>): Abort.
4470 * expr.h (QUEUED_VAR, QUEUED_INSN, QUEUED_COPY,
4471 QUEUED_BODY, QUEUED_NEXT, finish_expr_for_function,
4472 protect_from_queue, emit_queue, queued_subexp_p): Remove.
4473 * function.h (pending_chain, x_pending_chain): Remove.
4474 * rtl.def (QUEUED): Remove.
4475
4476 * emit-rtl.c (copy_insn_1, copy_most_rtx,
4477 set_used_flags, verify_rtx_sharing): Remove references to QUEUED.
4478 * genattrtab.c (attr_copy_rtx, clear_struct_flag,
4479 encode_units_mask): Likewise.
4480 * local-alloc.c (equiv_init_varies_p): Likewise.
4481 * rtl.c (copy_rtx): Likewise.
4482 * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
4483 * simplify-rtx.c (simplify_gen_subreg): Likewise.
4484 * config/mn10300/mn10300.c (legitimate_pic_operand_p): Likewise.
4485
4486 * builtins.c (expand_builtin, expand_builtin_apply,
4487 expand_builtin_mathfn, expand_builtin_mathfn_2,
4488 expand_builtin_mathfn_3, expand_builtin_setjmp_setup):
4489 Remove calls to emit_queue and protect_from_queue.
4490 * calls.c (expand_call, precompute_arguments,
4491 precompute_register_parameters, rtx_for_function_call,
4492 store_one_arg): Likewise.
4493 * dojump.c (do_compare_and_jump, do_jump): Likewise.
4494 * explow.c (memory_address): Likewise.
4495 * expmed.c (clear_by_pieces_1, clear_storage,
4496 clear_storage_via_libcall, emit_group_load,
4497 emit_group_store, emit_store_flag,
4498 expand_expr_real_1, store_by_pieces,
4499 store_constructor, store_expr, try_casesi,
4500 try_tablejump): Likewise.
4501 * function.c (expand_pending_sizes): Likewise.
4502 * optabs.c (emit_cmp_and_jump_insns,
4503 emit_conditional_add, emit_conditional_move,
4504 expand_fix, expand_float, prepare_cmp_insn): Likewise.
4505 * stmt.c (emit_case_bit_tests,
4506 expand_asm_expr, expand_computed_goto,
4507 expand_decl_init, expand_end_case_type,
4508 expand_end_stmt_expr, expand_expr_stmt_value,
4509 expand_return, expand_start_case,
4510 optimize_tail_recursion): Likewise.
4511 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
4512 * config/s390/s390.c (s390_expand_cmpmem): Likewise.
4513
4514 2004-07-14 Ben Elliston <bje@au.ibm.com>
4515
4516 * vec.h: Comment fix.
4517
4518 2004-07-13 Richard Henderson <rth@redhat.com>
4519
4520 * target.h (struct gcc_target): Add calls.pass_by_reference.
4521 * target-def.h (TARGET_PASS_BY_REFERENCE): New.
4522 * function.c (pass_by_reference): Use the hook.
4523 * system.h (FUNCTION_ARG_PASS_BY_REFERENCE): Poison.
4524 * targhooks.c, targhooks.h (hook_pass_by_reference_false): New.
4525 (hook_pass_by_reference_must_pass_in_stack): New.
4526 * config/alpha/alpha.c (function_arg): Don't query pass-by-ref.
4527 (alpha_pass_by_reference): New.
4528 (TARGET_PASS_BY_REFERENCE): New.
4529 * config/alpha/alpha.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
4530 * config/arc/arc.c (arc_pass_by_reference): New.
4531 (TARGET_PASS_BY_REFERENCE): New.
4532 * config/arc/arc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
4533 (FUNCTION_ARG_CALLEE_COPIES): True.
4534 * config/arm/arm-protos.h (arm_function_arg_pass_by_reference): Remove.
4535 * config/arm/arm.c (TARGET_PASS_BY_REFERENCE): New.
4536 (arm_pass_by_reference): Rename from arm_function_arg_pass_by_reference.
4537 * config/arm/arm.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
4538 * config/c4x/c4x.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
4539 * config/cris/cris.c (cris_pass_by_reference): New.
4540 (TARGET_PASS_BY_REFERENCE): New.
4541 * config/cris/cris.h (FUNCTION_ARG): Don't query pass-by-ref.
4542 (FUNCTION_INCOMING_ARG, FUNCTION_ARG_ADVANCE): Likewise.
4543 (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
4544 * config/fr30/fr30.c (TARGET_PASS_BY_REFERENCE): New.
4545 * config/fr30/fr30.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
4546 * config/frv/frv-protos.h (frv_function_arg_pass_by_reference): Kill.
4547 * config/frv/frv.c (TARGET_PASS_BY_REFERENCE): New.
4548 (frv_function_arg_pass_by_reference): Remove.
4549 * config/frv/frv.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
4550 * config/i386/i386-protos.h (function_arg_pass_by_reference): Remove.
4551 * config/i386/i386.c (TARGET_PASS_BY_REFERENCE): New.
4552 (ix86_pass_by_reference): Rename from function_arg_pass_by_reference.
4553 * config/i386/i386.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
4554 * config/ia64/ia64-protos.h (ia64_function_arg_pass_by_reference): Kill.
4555 * config/ia64/ia64.c (TARGET_PASS_BY_REFERENCE): New.
4556 (ia64_pass_by_reference): Rename from
4557 ia64_function_arg_pass_by_reference.
4558 * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
4559 * config/ip2k/ip2k.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
4560 * config/iq2000/iq2000-protos.h (function_arg_pass_by_reference): Kill.
4561 * config/iq2000/iq2000.c (TARGET_PASS_BY_REFERENCE): New.
4562 (iq2000_pass_by_reference): Rename from function_arg_pass_by_reference.
4563 * config/iq2000/iq2000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
4564 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
4565 * config/m32r/m32r-protos.h (m32r_pass_by_reference): Remove.
4566 * config/m32r/m32r.c (TARGET_PASS_BY_REFERENCE): New.
4567 (m32r_pass_by_reference): Adjust prototype. Make static.
4568 Handle mode sizes correctly.
4569 * config/m32r/m32r.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
4570 * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c
4571 (m68hc11_function_arg_pass_by_reference): Remove.
4572 * config/m68hc11/m68hc11.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
4573 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
4574 * config/mcore/mcore.c (TARGET_PASS_BY_REFERENCE): New.
4575 * config/mcore/mcore.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
4576 * config/mips/mips-protos.h (function_arg_pass_by_reference): Remove.
4577 * config/mips/mips.c (TARGET_PASS_BY_REFERENCE): New.
4578 (mips_va_arg): Use pass_by_reference.
4579 (mips_pass_by_reference): Rename from function_arg_pass_by_reference.
4580 Handle mode sizes correctly.
4581 * config/mips/mips.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
4582 (FUNCTION_ARG_CALLEE_COPIES): Don't reference pass-by-ref.
4583 * config/mmix/mmix-protos.h (mmix_function_arg_pass_by_reference): Kill.
4584 * config/mmix/mmix.c (TARGET_PASS_BY_REFERENCE): New.
4585 (mmix_pass_by_reference): Rename from
4586 mmix_function_arg_pass_by_reference.
4587 * config/mmix/mmix.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
4588 (FUNCTION_ARG_CALLEE_COPIES): True.
4589 * config/mn10300/mn10300.c (TARGET_PASS_BY_REFERENCE): New.
4590 (mn10300_pass_by_reference): New.
4591 * config/mn10300/mn10300.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
4592 (FUNCTION_ARG_CALLEE_COPIES): True.
4593 * config/pa/pa.c (pa_pass_by_reference): New.
4594 (TARGET_PASS_BY_REFERENCE): New.
4595 * config/pa/pa.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
4596 (FUNCTION_ARG_CALLEE_COPIES): True.
4597 * config/rs6000/rs6000-protos.h (function_arg_pass_by_reference): Kill.
4598 * config/rs6000/rs6000.c (TARGET_PASS_BY_REFERENCE): New.
4599 (rs6000_pass_by_reference): Rename from function_arg_pass_by_reference.
4600 * config/rs6000/rs6000.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
4601 * config/s390/s390-protos.h (s390_function_arg_pass_by_reference): Kill.
4602 * config/s390/s390.c (TARGET_PASS_BY_REFERENCE): New.
4603 (s390_pass_by_reference): Rename from
4604 s390_function_arg_pass_by_reference.
4605 (s390_function_arg_advance): Don't query pass-by-ref.
4606 (s390_function_arg): Likewise.
4607 (s390_gimplify_va_arg): Use pass_by_reference.
4608 (s390_call_saved_register_used): Likewise.
4609 * config/s390/s390.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
4610 * config/sh/sh.c (TARGET_PASS_BY_REFERENCE): New.
4611 (shcompact_byref, sh_pass_by_reference): New.
4612 * config/sh/sh.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
4613 (SHCOMPACT_BYREF): Remove.
4614 * config/sparc/sparc-protos.h (function_arg_pass_by_reference): Kill.
4615 * config/sparc/sparc.c (TARGET_PASS_BY_REFERENCE): New.
4616 (sparc_pass_by_reference): Rename from function_arg_pass_by_reference.
4617 (sparc_gimplify_va_arg): Use pass_by_reference.
4618 * config/sparc/sparc.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
4619 * config/stormy16/stormy16.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
4620 * config/v850/v850.c (TARGET_PASS_BY_REFERENCE): New.
4621 (v850_pass_by_reference): New.
4622 * config/v850/v850.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
4623 (FUNCTION_ARG_CALLEE_COPIES): True.
4624 * doc/tm.texi (TARGET_PASS_BY_REFERENCE): Update from
4625 FUNCTION_ARG_PASS_BY_REFERENCE docs.
4626
4627 2004-07-14 Richard Henderson <rth@redhat.com>
4628 Richard Sandiford <rsandifo@redhat.com>
4629
4630 * config/mips/mips-protos.h (mips_va_arg): Delete.
4631 * config/mips/mips.h (EXPAND_BUILTIN_VA_ARG): Delete.
4632 * config/mips/mips.c: Include tree-gimple.h.
4633 (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
4634 (mips_arg_info): Remove special handling of must_pass_in_stck args.
4635 (mips_gimplify_va_arg_expr): Rewritten from mips_va_arg.
4636 (function_arg_pass_by_reference): Return true if must_pass_in_stack.
4637
4638 2004-07-13 Bob Wilson <bob.wilson@acm.org>
4639
4640 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Swap
4641 arguments for COND_EXPR in big-endian adjustment code.
4642
4643 2004-07-13 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4644
4645 * pa-64.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Delete.
4646 * pa.h (ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Modify for hppa64.
4647 * pa32-regs.h (REG_ALLOC_ORDER): Reorder caller-saved registers.
4648 * pa64-regs.h (REG_ALLOC_ORDER): Likewise.
4649
4650 2004-07-13 Diego Novillo <dnovillo@redhat.com>
4651
4652 PR tree-optimization/16443
4653 * tree-ssa-alias.c: Add more description for
4654 CALL_CLOBBERED_VARS and ADDRESSABLE_VARS.
4655 * tree-ssa-operands.c (get_asm_expr_operands): Re-order the
4656 clobbering of call-clobbered and addressable variables. If
4657 there are any before aliases have been computed, add them.
4658
4659 2004-07-13 Diego Novillo <dnovillo@redhat.com>
4660
4661 * tree-optimize.c (execute_todo): Flush DUMP_FILE before
4662 verification.
4663
4664 2004-07-13 Ulrich Weigand <uweigand@de.ibm.com>
4665
4666 * config/s390/s390.c (s390_gimplify_va_arg): Use size_int instead
4667 of build_int_2. Convert both operands of PLUS_EXPR and MULT_EXPR
4668 to the same type.
4669
4670 2004-07-13 Per Bothner <per@bothner.com>
4671
4672 * collect2.c (main): Handle --no-demangle and --demangle flags.
4673
4674 2004-07-13 Sebastian Pop <pop@cri.ensmp.fr>
4675
4676 * Makefile.in (OBJS-common): Add tree-data-ref.o.
4677 (tree-scalar-evolution.o): Add missing dependences on tree-pass.h flags.h.
4678 (tree-data-ref.o): New rule.
4679 * lambda.h: New file.
4680 * tree-data-ref.c: New file.
4681 * tree-data-ref.h: New file.
4682 * tree.c (int_cst_value, tree_fold_gcd): New functions.
4683 * tree.h (int_cst_value, tree_fold_gcd): Declared here.
4684
4685 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
4686
4687 PR target/13926
4688 * config/sparc/sparc-protos.h (output_ubranch): New prototype.
4689 * config/sparc/sparc.c (output_ubranch): New function.
4690 * config/sparc/sparc.md (jump pattern): Use it.
4691
4692 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
4693
4694 PR target/16494
4695 * config/sparc/sparc.c (output_cbranch): Properly guard
4696 the code handling far branches with TARGET_V9.
4697 * config/sparc/sparc.md (length attribute): Document the
4698 side-effect of having a length greater or equal to 3.
4699
4700 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
4701 Lloyd Parkes <lloyd@must-have-coffee.gen.nz>
4702
4703 PR target/15186
4704 * config/sparc/sol2-bi.h (LINK_ARCH64_SPEC_BASE): Pass
4705 /usr/ucblib/sparcv9 as -R path when -compat-bsd is specified.
4706
4707 2004-07-13 Eric Botcazou <ebotcazou@libertysurf.fr>
4708 Martin Sebor <sebor@roguewave.com>
4709
4710 PR target/12602
4711 * doc/invoke.texi (SPARC options): Document -threads
4712 and -pthreads on Solaris.
4713
4714 2004-07-13 Richard Henderson <rth@redhat.com>
4715
4716 * builtins.c (std_gimplify_va_arg_expr): Handle types passed
4717 by reference.
4718 (ind_gimplify_va_arg_expr): Remove.
4719 * tree.h (ind_gimplify_va_arg_expr): Remove.
4720 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Don't use it.
4721 * config/mmix/mmix.c (mmix_function_arg_pass_by_reference): Allow
4722 argsp to be null.
4723
4724 * config/arc/arc.c (arc_gimplify_va_arg_expr): Remove.
4725 (TARGET_GIMPLIFY_VA_ARG_EXPR): Remove.
4726 * config/cris/cris.c, config/fr30/fr30.c, config/frv/frv.c,
4727 config/iq2000/iq2000.c, config/m32r/m32r.c, config/mmix/mmix.c,
4728 config/mn10300/mn10300.c, config/v850/v850.c: Similarly.
4729
4730 2004-07-13 Richard Henderson <rth@redhat.com>
4731
4732 * function.c (pass_by_reference): New.
4733 (assign_parm_find_data_types): Use it.
4734 * calls.c (initialize_argument_information): Likewise.
4735 (emit_library_call_value_1): Likewise.
4736 * expr.h (FUNCTION_ARG_PASS_BY_REFERENCE): Remove.
4737 * function.h (pass_by_reference): Declare.
4738
4739 2004-07-13 Richard Henderson <rth@redhat.com>
4740
4741 * target-def.h (TARGET_MUST_PASS_IN_STACK): New.
4742 * target.h (struct gcc_target): Add calls.must_pass_in_stack.
4743 * expr.h (MUST_PASS_IN_STACK): Remove.
4744 * system.h (MUST_PASS_IN_STACK): Poison.
4745 * tree.h (must_pass_in_stack_var_size): Declare.
4746 (must_pass_in_stack_var_size_or_pad): Declare.
4747 * calls.c (must_pass_in_stack_var_size): New.
4748 (must_pass_in_stack_var_size_or_pad): Rename from
4749 default_must_pass_in_stack.
4750 * config/alpha/alpha.c (unicosmk_must_pass_in_stack): New.
4751 (TARGET_MUST_PASS_IN_STACK): New.
4752 * config/alpha/unicosmk.h (MUST_PASS_IN_STACK): Remove.
4753 * config/fr30/fr30.c (fr30_must_pass_in_stack): New.
4754 (TARGET_MUST_PASS_IN_STACK): New.
4755 * config/fr30/fr30.h (MUST_PASS_IN_STACK): Remove.
4756 * config/frv/frv.c (frv_must_pass_in_stack): New.
4757 (TARGET_MUST_PASS_IN_STACK): New.
4758 * config/frv/frv.h (MUST_PASS_IN_STACK): Remove.
4759 * config/i386/i386-protos.h (ix86_must_pass_in_stack): Remove.
4760 * config/i386/i386.c (TARGET_MUST_PASS_IN_STACK): New.
4761 (ix86_must_pass_in_stack): Make static.
4762 * config/i386/i386.h (MUST_PASS_IN_STACK): Remove.
4763 * config/ia64/ia64.c (TARGET_MUST_PASS_IN_STACK): New.
4764 * config/ia64/ia64.h (MUST_PASS_IN_STACK): Remove.
4765 * config/m32r/m32r.c (TARGET_MUST_PASS_IN_STACK): New.
4766 * config/m32r/m32r.h (MUST_PASS_IN_STACK): Remove.
4767 * config/mcore/mcore-protos.h (mcore_must_pass_on_stack): Remove.
4768 * config/mcore/mcore.c (TARGET_MUST_PASS_IN_STACK): New.
4769 (mcore_must_pass_on_stack): Remove.
4770 * config/mcore/mcore.h (MUST_PASS_IN_STACK): Remove.
4771 * config/mips/mips.c (TARGET_MUST_PASS_IN_STACK): New.
4772 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove.
4773 * config/pa/pa.c (TARGET_MUST_PASS_IN_STACK): New.
4774 * config/pa/pa.h (MUST_PASS_IN_STACK): Remove.
4775 * config/rs6000/aix.h (MUST_PASS_IN_STACK): Remove.
4776 * config/rs6000/linux64.h (MUST_PASS_IN_STACK): Remove.
4777 * config/rs6000/rs6000.c (rs6000_must_pass_in_stack): New.
4778 (TARGET_MUST_PASS_IN_STACK): New.
4779 * config/sh/sh.c (TARGET_MUST_PASS_IN_STACK): New.
4780 * config/sh/sh.h (MUST_PASS_IN_STACK): Remove.
4781 * config/sparc/sparc.c (TARGET_MUST_PASS_IN_STACK): New.
4782 * config/sparc/sparc.h (MUST_PASS_IN_STACK): Remove.
4783 * config/xtensa/xtensa.c (TARGET_MUST_PASS_IN_STACK): New.
4784 * config/xtensa/xtensa.h (MUST_PASS_IN_STACK): Remove.
4785 * doc/tm.texi (TARGET_MUST_PASS_IN_STACK): Update from
4786 MUST_PASS_IN_STACK.
4787
4788 * calls.c, function.c, config/alpha/alpha.c, config/alpha/alpha.h,
4789 config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.c,
4790 config/cris/cris.h, config/fr30/fr30.c, config/fr30/fr30.h,
4791 config/frv/frv.c, config/i386/i386.c, config/iq2000/iq2000.c,
4792 config/mcore/mcore.c, config/mcore/mcore.h, config/mips/mips.c,
4793 config/mmix/mmix.c, config/mmix/mmix.h, config/rs6000/rs6000.c,
4794 config/sh/sh.c, config/sh/sh.h, config/stormy16/stormy16.c,
4795 config/xtensa/xtensa.c: Use target hook.
4796
4797 2004-07-13 Anthony Heading <aheading@jpmorgan.com>
4798
4799 * configure.ac (gcc_cv_as_offsetable_lo10): Fix a typo.
4800 * configure: Rebuilt.
4801
4802 2004-07-13 Richard Sandiford <rsandifo@redhat.com>
4803
4804 * doc/invoke.texi: Remove documentation for MIPS -mrnames option.
4805 * config/mips/mips.h (mips_reg_names): Don't declare.
4806 (MASK_NAME_REGS): Delete. Shuffle other MASK_* values down.
4807 (TARGET_NAME_REGS): Delete.
4808 (TARGET_SWITCHES): Remove -mrnames.
4809 (REGISTER_NAMES): Initialise with the old contents of mips_reg_names[].
4810 (ADDITIONAL_REGISTER_NAMES): Remove entries for names mentioned
4811 in REGISTER_NAMES.
4812 * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Delete.
4813 (override_options): Remove handling of TARGET_NAME_REGS.
4814
4815 2004-07-13 Richard Sandiford <rsandifo@redhat.com>
4816
4817 * config/mips/mips.h (TARGET_*): Boolify.
4818
4819 2004-07-12 Nick Clifton <nickc@redhat.com>
4820
4821 * config.gcc: Add sh-*-symbianelf target.
4822 * config/sh/sh.c: Add new target macros:
4823 TARGET_ENCODE_SECTION_INFO, TARGET_STRIP_NAME_ENCODING,
4824 TARGET_CXX_IMPORT_EXPORT_CLASS.
4825 (sh_file_start): Create a definition of the .directive section.
4826 (sh_attribute): Add dllimport and dllexport attributes.
4827 * config/sh/symbian-pre.h: New file.
4828 * config/sh/symbian-post.h: New file.
4829 * config/sh/symbian.c: New file. Contains Symbian specific
4830 functions.
4831 * config/sh/sh-protos.h: Add prototypes for new functions
4832 provided by symbian.c.
4833 * config/sh/t-symbian: New file.
4834 * doc/extend.texi: Document support for dllimport and dllexport
4835 attributes by the sh-symbianelf target.
4836
4837 2004-07-12 James E Wilson <wilson@specifixinc.com>
4838
4839 * Makefile.in (AR): Use @AR@ not ar.
4840 (NM): New.
4841 (AR_FOR_TARGET): Use $(AR) not ar for native.
4842 (NM_FOR_TARGET): Use $(NM) not nm for native.
4843 * configure.ac: Add AC_CHECK_PROG calls for NM and AR.
4844 * configure: Regenerate.
4845
4846 2004-07-12 David S. Miller <davem@nuts.davemloft.net>
4847
4848 * config/sparc/sparc.md (ashlsi3): Eliminate const 1
4849 special case.
4850 (ashldi3_sp64): Likewise.
4851
4852 2004-07-12 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4853
4854 PR target/16477
4855 * pa.c (function_arg): Update comment.
4856 * pa.h (BLOCK_REG_PADDING): Define.
4857
4858 2004-07-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4859
4860 PR tree-optimization/16461
4861 * tree-tailcall.c (independent_of_stmt_p): Handle non-SSA name
4862 arguments of phi nodes.
4863
4864 2004-07-12 Devang Patel <dpatel@apple.com>
4865
4866 * doc/invoke.texi (Darwin Options): Document -gused and -gfull.
4867
4868 2004-07-12 Steve Ellcey <sje@cup.hp.com>
4869
4870 * function.c (expand_function_start): Ensure r_save is in Pmode.
4871 * calls.c (prepare_call_address): Ensure static_chain_value is
4872 in Pmode.
4873 * builtins.c (expand_builtin_nonlocal_goto): Ensure r_label and
4874 r_save_area are in Pmode.
4875 * config/ia64/ia64.c (ia64_initialize_trampoline): Ensure addr,
4876 fnaddr, and static_chain are in Pmode.
4877
4878 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
4879
4880 PR target/16445
4881 * config/ia64/ia64.c (bundling): Don't count ignored insns.
4882
4883 2004-07-12 Richard Henderson <rth@redhat.com>
4884
4885 * target.h (struct gcc_target): Move gimplify_va_arg_expr
4886 next to build_builtin_va_list.
4887 * target-def.h (TARGET_GIMPLIFY_VA_ARG_EXPR): Update to match.
4888 * builtins.c (gimplify_va_arg_expr): Likewise.
4889 * gimplify.c (copy_if_shared_r): Likewise.
4890
4891 2004-07-12 Alexandre Oliva <aoliva@redhat.com>
4892
4893 * passes.c (rest_of_decl_compilation): Don't defer call of
4894 assemble_variable if its DECL_RTL is already set.
4895
4896 2004-07-12 Sebastian Pop <pop@cri.ensmp.fr>
4897
4898 * cfgloop.h (struct loop): Add nb_iterations field.
4899 (current_loops): Declare.
4900 * tree-chrec.c (chrec_not_analyzed_yet,
4901 chrec_dont_know, chrec_known, count_ev_in_wider_type,
4902 chrec_contains_symbols_defined_in_loop): Remove the temporary
4903 hooks.
4904 * tree-flow-inline.h (loop_containing_stmt): New function.
4905 * tree-scalar-evolution.c: Add implementation.
4906 * tree-scalar-evolution.h: Add declarations.
4907
4908 2004-07-12 Vladimir Makarov <vmakarov@redhat.com>
4909
4910 PR rtl-optimization/15921
4911 * Makefile.in (global.o): Add recog.h.
4912
4913 * global.c (recog.h): Add the include-clause.
4914 (bb_info): New member earlyclobber.
4915 (allocate_bb_info, free_bb_info): Initialize/finish the new
4916 member.
4917 (earlyclobber_regclass, earlyclobber_regclass_length): The new
4918 global variables.
4919 (check_earlyclobber, regclass_intersect,
4920 mark_reg_use_for_earlyclobber, mark_reg_use_for_earlyclobber_1):
4921 New functions.
4922 (calculate_local_reg_bb_info): Calculate value of earlyclobber.
4923 (make_accurate_live_analysis): Modify pavin.
4924
4925 2004-07-12 Diego Novillo <dnovillo@redhat.com>
4926
4927 * tree-cfg.c (find_taken_edge): Statically compute the truth
4928 value of a predicate comparing an SSA_NAME to itself.
4929
4930 2004-07-12 Roger Sayle <roger@eyesopen.com>
4931
4932 * config/rs6000/rs6000.c (rs6000_rtx_costs): Indicate that the
4933 rs6000 doesn't have shift-and-add or shift-and-sub instructions
4934 by returning the cost of a multiplication plus an addition.
4935
4936 2004-07-12 Paolo Bonzini <bonzini@gnu.org>
4937
4938 PR tree-optimization/14107
4939 * gimplify.c (gimplify_return_expr): Accept a
4940 RETURN_EXPR with an error argument.
4941 * tree-optimize.c (init_tree_optimization_passes):
4942 Run pass_warn_function_return at -O0.
4943
4944 2004-07-12 Roger Sayle <roger@eyesopen.com>
4945
4946 * doc/invoke.texi: Correct -fasynchronous-unwind-tables option
4947 index entry.
4948
4949 2004-07-12 Richard Sandiford <rsandifo@redhat.com>
4950
4951 * config/mips/mips.c (mips_use_dfa_pipeline_interface): Delete.
4952 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
4953 * config/mips/3000.md: Add copyright notice. Remove automota and
4954 function units; use generic ones instead. Only define reservations
4955 for things that are different from generic.md. Extend each clause
4956 to include r3900.
4957 * config/mips/{4000,4100,4300,4600,5000,6000,generic}.md: New files.
4958 * config/mips/mips.md: Include them. Remove define_function_units.
4959 (alu, imuldiv): New automata and units.
4960
4961 2004-07-12 Ben Elliston <bje@au.ibm.com>
4962
4963 * doc/invoke.texi (Optimize Options): Document -frename-registers
4964 not being enabled by default at -O3.
4965
4966 2004-07-11 Roger Sayle <roger@eyesopen.com>
4967
4968 * fold-const.c (fold) <PLUS_EXPR>: Canonicalize X + -C as X - C for
4969 floating point additions, to keep real immediate constant positive.
4970 <MINUS_EXPR>: For floating point subtractions, only transform X - -C
4971 into X + C, and leave positive real constants as X - C.
4972
4973 2004-07-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4974
4975 * pa.c (hppa_gimplify_va_arg_expr): Remove comment.
4976
4977 2004-07-11 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4978
4979 PR tree-optimization/15654
4980 * tree-tailcall.c (eliminate_tail_call): Remove unreachable code.
4981
4982 2004-07-11 Roger Sayle <roger@eyesopen.com>
4983
4984 * builtins.c (fold_builtin_fputs): Don't bother converting the
4985 return type to integer_type_node, as we've already checked that
4986 the result will be ignored.
4987
4988 * tree-eh.c (tree_could_trap_p): Add support for -ftrapv such
4989 that signed addition, subtraction, multiplication, division,
4990 remainder, negation and absolute value may potentially trap.
4991
4992 * fold-const.c (fold_ignored_result): New function to strip
4993 non-side-effecting tree nodes from an expression whose result
4994 is ignored.
4995 (fold_convert): Call fold_ignored_result when casting a value
4996 to VOID_TYPE.
4997 (omit_one_operand): Call fold_ignored_result on the "omitted"
4998 operand when building a COMPOUND_EXPR.
4999 (pedantic_omit_one_operand): Likewise.
5000 * tree.h (fold_ignored_result): Prototype here.
5001 * tree-ssa-ccp.c (ccp_fold_builtin): Call fold_ignored_result
5002 when we're going to ignore the result.
5003
5004 2004-07-11 Richard Henderson <rth@redhat.com>
5005
5006 PR tree-opt/16383
5007 * tree-ssa-ccp.c (fold_stmt_r): Split out...
5008 * tree.c (fields_compatible_p, find_compatible_field): ... new.
5009 * tree.h (fields_compatible_p, find_compatible_field): Declare.
5010 * tree-sra.c (sra_hash_tree): Hash fields by offset.
5011 (sra_elt_eq): Use fields_compatible_p.
5012 (generate_one_element_ref): Use find_compatible_field.
5013
5014 2004-07-11 Richard Henderson <rth@redhat.com>
5015
5016 PR tree-opt/16422
5017 * tree-sra.c (generate_one_element_init): New.
5018 (generate_element_init): Use it.
5019 (scalarize_init): Push/pop gimplify context around it.
5020 (find_new_referenced_vars_1, find_new_referenced_vars): New.
5021 * gimplify.c (gimplify_expr): Allow SSA_NAME.
5022
5023 2004-07-11 Roger Sayle <roger@eyesopen.com>
5024
5025 * rtlanal.c (insn_rtx_cost): New function, moved and renamed from
5026 combine.c's combine_insn_cost.
5027 * rtl.h (insn_rtx_cost): Prototype here.
5028 * combine.c (combine_insn_cost): Delete function.
5029 (combine_validate_cost): Update callers of combine_insn_cost to
5030 call insn_rtx_cost instead.
5031 (combine_instructions): Likewise. Use NONJUMP_INSN_P to avoid
5032 requesting the rtx_cost of call and/or jump instructions.
5033
5034 * ifcvt.c (total_bb_rtx_cost): Use insn_rtx_cost instead of calling
5035 rtx_cost directly. Don't request/use the cost of call or jump
5036 instructions. Return -1 if the cost of any instruction can't be
5037 determined (or the BB contains a function call).
5038 (find_if_case_1): Abort transformation if total_bb_rtx_cost returns
5039 -1 (i.e. can't determine the cost of any instruction or the basic
5040 block contains a subroutine call).
5041 (find_if_case_2): Likewise.
5042
5043 2004-07-11 Roger Sayle <roger@eyesopen.com>
5044
5045 * rs6000.c (struct processor_costs): Change semantics of fields to
5046 include the COST_N_INSNS scaling, and update all initializers.
5047 (rs6000_rtx_costs): Don't use COSTS_N_INSNS on rs6000_cost fields.
5048 Use COSTS_N_INSNS(1) for NOT, SIGN_EXTEND, ZERO_EXTEND and COMPARE.
5049 Use rs6000_cost->fp for both FLOAT_TRUNCATE and UNSPEC_FRSP. When
5050 optimizing for size, use COSTS_N_INSNS(1) for CALL and IF_THEN_ELSE.
5051
5052 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
5053
5054 * LANGUAGES: Remove obsolete information.
5055
5056 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
5057
5058 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): For SIGSEGV and
5059 SIGBUS signal frames, the PSW address points *to* the faulting
5060 instruction, not after it.
5061
5062 2004-07-11 Ulrich Weigand <uweigand@de.ibm.com>
5063
5064 * config/s390/s390.c (legitimize_tls_address): Handle constant offsets
5065 added to TLS symbol addresses.
5066
5067 2004-07-11 Richard Henderson <rth@redhat.com>
5068
5069 * expmed.c (init_expmed): Use stack-local structures for
5070 temporary rtl. Don't recognize shifts.
5071
5072 2004-07-11 Richard Henderson <rth@redhat.com>
5073
5074 * expr.c (store_expr): Don't fiddle subreg promotion for types
5075 with precision smaller than the mode.
5076
5077 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
5078
5079 * tree.h (all_types_permanent): Remove.
5080
5081 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
5082
5083 * langhooks.h (estimate_num_insns, pushlevel, poplevel, set_block,
5084 maybe_build_cleanup, update_decl_after_saving): Remove hooks.
5085 * langhooks.c (lhd_clear_binding_stack): Remove.
5086 * langhooks-def.h (lhd_clear_binding_stack,
5087 LANG_HOOKS_MAYBE_BUILD_CLEANUP,
5088 LANG_HOOKS_UPDATE_DECL_AFTER_SAVING,
5089 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS, LANG_HOOKS_PUSHLEVEL,
5090 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
5091 (LANG_HOOKS_CLEAR_BINDING_STACK): Define to lhd_do_nothing.
5092 * system.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
5093 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_SET_BLOCK,
5094 LANG_HOOKS_MAYBE_BUILD_CLEANUP,
5095 LANG_HOOKS_UPDATE_DECL_AFTER_SAVING, LANG_HOOKS_POPLEVEL): Poison.
5096 * tree.h (poplevel): Don't declare.
5097 * c-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK, LANG_HOOKS_PUSHLEVEL,
5098 LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK): Remove.
5099 * objc/objc-lang.c (LANG_HOOKS_CLEAR_BINDING_STACK,
5100 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK):
5101 Remove.
5102
5103 2004-07-11 Joseph S. Myers <jsm@polyomino.org.uk>
5104
5105 PR tree-optimization/16437
5106 * c-common.c (shorten_compare): Don't mark result of conversion to
5107 narrower signed type as overflowing.
5108 * fold-const.c (decode_field_reference): Determine whether
5109 signedness comes from outer type using precision rather than size.
5110
5111 2004-07-11 Phil Edwards <phil@codesourcery.com>
5112
5113 * configure.ac: Alphabetize --enable-checking list, add
5114 missing valgrind entry.
5115 * configure: Regenerate.
5116
5117 2004-07-11 Phil Edwards <phil@codesourcery.com>
5118
5119 * doc/install.texi (Testing): Fix syntax in "make check" example.
5120
5121 2004-07-10 James E Wilson <wilson@specifixinc.com>
5122
5123 * config/gofast.h (gofast_maybe_init_libfuncs): Use SImode for litodp.
5124
5125 2004-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5126
5127 PR rtl-optimization/16001
5128 * loop-iv.c (iv_number_of_iterations): Prevent copy propagation in
5129 niter_expr.
5130
5131 2004-07-10 Geoffrey Keating <geoffk@apple.com>
5132
5133 * config/darwin.h (LINK_COMMAND_SPEC): Don't call c++filt.
5134
5135 2004-07-10 Steve Kargl <sgk@troutmask.apl.washington.edu>
5136 James Morrison <phython@gcc.gnu.org>
5137
5138 * doc/contrib.texi (Contributors): Add gfortran contributors and
5139 fix a couple of typos.
5140
5141 2004-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5142
5143 PR rtl-optimization/15387
5144 * calls.c (check_sibcall_argument_overlap_1): Handle pointers
5145 to incoming args space correctly.
5146
5147 2004-07-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5148
5149 * pa.c (output_indirect_call): Only use %r2 as the link register in
5150 indirect calls with the long PA 2.0 pc-relative branch.
5151
5152 2004-07-10 Daniel Jacobowitz <dan@debian.org>
5153
5154 * config/i386/i386.c (override_options): Pick a 64-bit CPU
5155 for the default tuning if TARGET_64BIT.
5156
5157 2004-07-10 Richard Henderson <rth@redhat.com>
5158
5159 * builtins.c (std_gimplify_va_arg_expr): Widen align/boundary
5160 to HOST_WIDE_INT. Fold pad-args-down arithmetic.
5161
5162 2004-07-10 Jakub Jelinek <jakub@redhat.com>
5163
5164 * expr.h (store_bit_field, extract_bit_field): Remove last argument.
5165 * expmed.c (store_bit_field, extract_bit_field): Remove last
5166 argument.
5167 * builtins.c (expand_builtin_signbit): Adjust callers.
5168 * optabs.c (expand_vector_binop, expand_vector_unop): Likewise.
5169 * calls.c (store_unaligned_arguments_into_pseudos): Likewise.
5170 * ifcvt.c (noce_emit_move_insn): Likewise.
5171 * stmt.c (expand_return): Likewise.
5172 * expr.c (emit_group_load, emit_group_store, copy_blkmode_from_reg,
5173 store_field, expand_expr_real_1): Likewise.
5174
5175 2004-07-10 Richard Henderson <rth@redhat.com>
5176
5177 * builtins.c (std_gimplify_va_arg_expr): Fix borked BIT_AND_EXPR.
5178
5179 2004-07-09 Mike Stump <mrs@apple.com>
5180
5181 * config/darwin.c (no_dead_strip): Add.
5182 (HAVE_DEAD_STRIP): Add.
5183 (darwin_emit_unwind_label): Ensure that we don't dead code strip
5184 the .eh label.
5185
5186 2004-07-09 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5187
5188 * tree-ssa-loop-im.c: New file.
5189 * Makefile.in (tree-ssa-loop-im.o): Add.
5190 * cfgloop.c (superloop_at_depth): New function.
5191 * cfgloop.h (superloop_at_depth): Declare.
5192 * common.opt (ftree-lim): New flag.
5193 * expr.c (array_ref_up_bound): New function.
5194 * params.def (PARAM_LIM_EXPENSIVE): New parameter.
5195 * timevar.def (TV_LIM): New timevar.
5196 * tree-dfa.c (compute_immediate_uses): Respect TDFA_USE flags when
5197 computing immediate uses of a phi node.
5198 * tree-flow.h (struct tree_ann_common_d): Add aux field.
5199 (loop_commit_inserts, for_each_index, tree_ssa_lim): Declare.
5200 * tree-optimize.c (init_tree_optimization_passes): Add pass_lim.
5201 * tree-pass.h (pass_lim): Declare.
5202 * tree-ssa-loop.c (tree_ssa_loop_im, gate_tree_ssa_loop_im): New
5203 functions.
5204 (pass_lim): New pass structure.
5205 * tree-eh.c (tree_could_trap_p): Handle ARRAY_REFs correctly.
5206 * tree.c (in_array_bounds_p): New function.
5207 * tree.h (TREE_THIS_NOTRAP): Define also for ARRAY_REFs.
5208 (in_array_bounds_p, array_ref_up_bound): Declare.
5209 * doc/invoke.texi (-ftree-lim, --param lim-expensive): Document.
5210 * doc/passes.texi (tree-ssa-loop-im.c): Document.
5211
5212 2004-07-09 Richard Henderson <rth@redhat.com>
5213
5214 * builtins.c (expand_builtin_stpcpy): Don't modify len.
5215
5216 * tree-ssa-ccp.c (ccp_fold_builtin): Strip conversion exprs
5217 with prejudice.
5218
5219 2004-07-10 Kelley Cook <kcook@gcc.gnu.org>
5220
5221 * flags.h: Delete redundant prototypes that are being generated
5222 in options.h from common.opt.
5223 * common.opt: Add in the expository comments formerly in flags.h.
5224
5225 2004-07-09 Jan Beulich <jbeulich@novell.com>
5226
5227 * config/i386/i386.c (init_cumulative_args): Set mmx/sse registers
5228 available for use only when TARGET_MMX/_SSE is set, and check for
5229 variable argument function if any register count is non-zero.
5230 (function_arg): Correctly suppress repeated warnings for passing SSE
5231 vectors are arguments without SSE enabled.
5232 (ix86_function_arg_boundary): Without SSE enabled, the use of what
5233 would be SSE register modes does no longer influence the alignment.
5234
5235 2004-07-09 Richard Henderson <rth@redhat.com>
5236
5237 * builtins.c (std_gimplify_va_arg_expr): Deny ARGS_GROW_DOWNWARD.
5238 Always align upward to arg boundary. Use size_in_bytes/round_up.
5239 Maintain type-correctness of constants.
5240 * stor-layout.c (round_up, round_down): Special-case powers of 2.
5241
5242 2004-07-09 David S. Miller <davem@nuts.davemloft.net>
5243
5244 * config/sparc/sparc.c (*_costs): Scale instruction costs
5245 by COSTS_N_INSNS.
5246 (sparc_rtx_costs): Adjust as appropriate.
5247
5248 2004-07-09 Jan Beulich <jbeulich@novell.com>
5249
5250 * config/i386/mm3dnow.h: New.
5251 * config.gcc: Add mm3dnow.h to extra_headers for i?86 and x86-64.
5252
5253 2004-07-09 Richard Henderson <rth@redhat.com>
5254
5255 * simplify-rtx.c (simplify_const_relational_operation): Only
5256 look at bounds of scalar integers.
5257
5258 2004-07-09 Jan Beulich <jbeulich@novell.com>
5259
5260 * config/i386/i386.md (sse2_clflush): Use correct operand for clflush.
5261
5262 2004-07-09 Andrew Pinski <apinski@apple.com>
5263
5264 * objc/objc-act.c (build_module_descriptor): Mark UOBJC_MODULES_decl as
5265 always referenced.
5266 (synth_forward_declarations): Likewise for UOBJC_CLASS_decl and
5267 UOBJC_METACLASS_decl.
5268
5269 2004-07-09 James E Wilson <wilson@specifixinc.com>
5270
5271 PR target/16364
5272 * config/ia64/ia64.c (ia64_function_arg): For a single element HFA,
5273 do return a parallel if hfa_mode == XFmode and mode == TImode.
5274
5275 2004-07-09 Jan Beulich <jbeulich@novell.com>
5276
5277 * c-typeck.c (build_unary_op): include VECTOR_TYPE in set of codes
5278 permissible for unary plus.
5279
5280 2004-07-09 Jan Beulich <jbeulich@novell.com>
5281
5282 * builtin-types.def (BT_UINT): Rename from BT_UNSIGNED.
5283 (BT_FN_UINT): Rename from BT_FN_UNSIGNED.
5284 (BT_FN_PTR_UINT): Rename from BT_FN_PTR_UNSIGNED.
5285 (BT_ULONG, BT_ULONGLONG, BT_UINTMAX, BT_FN_INT_UINT, BT_FN_INT_ULONG,
5286 BT_FN_INT_ULONGLONG, BT_FN_INT_INTMAX, BT_FN_INT_UINTMAX): New.
5287 * builtins.def (BUILTIN_CLZxxx, BUILTIN_CTXxxx, BUILTIN_PARITYxxx,
5288 BUILTIN_POPCOUNTxxx): Arguments are unsigned.
5289 (BUILTIN_xxxIMAX): New.
5290 * builtins.c (expand_builtin): Handle BUILT_IN_FFSIMAX,
5291 BUILT_IN_CLZIMAX, BUILT_IN_CTZIMAX, BUILT_IN_POPCOUNIMAX, and
5292 BUILT_IN_PARITYIMAX.
5293
5294 2004-07-09 David S. Miller <davem@nuts.davemloft.net>
5295
5296 * config/sparc/sparc.h (processor_costs): Define.
5297 (sparc_costs): Declare.
5298 * config/sparc/sparc.c (cypress_costs, supersparc_costs,
5299 hypersparc_costs, sparclet_costs, ultrasparc_costs,
5300 ultrasparc3_costs): New.
5301 (sparc_override_options): Set sparc_costs as appropriate.
5302 (sparc_rtx_costs): Use sparc_costs instead of messy
5303 conditionals.
5304
5305 2004-07-09 Steven Bosscher <stevenb@suse.de>
5306
5307 * doc/md.texi (Processor pipeline description): Mention that
5308 the old pipeline description is deprecated.
5309
5310 * config/rs6000/7450.md (automaton ppc7450): Split up, move
5311 mciu_7450 function unit to...
5312 (automaton ppc7450mciu): ...new automaton.
5313
5314 * haifa-sched.c (insert_schedule_bubbles_p): Remove.
5315 (schedule_block): Don't consider inserting bubbles.
5316 (sched_init): Don't initialize DFA bubbles.
5317 * target-def.h (TARGET_SCHED_INIT_DFA_BUBBLES,
5318 TARGET_SCHED_DFA_BUBBLE): Remove.
5319 * target.h (init_dfa_bubbles, dfa_bubble): Remove hooks.
5320 * doc/tm.texi (TARGET_SCHED_INIT_DFA_BUBBLES,
5321 TARGET_SCHED_DFA_BUBBLE): Remove documentation.
5322
5323 * stmt.c (conditional_context): Remove prototype.
5324 * tree.h (conditional_context): Remove.
5325 * tree-cfg.c (pre_insert_on_edge): Remove.
5326
5327 * c-common.h (c_expand_asm_operands): Remove prototype.
5328 * c-typeck.c (c_expand_asm_operands): Remove.
5329
5330 2004-07-09 Jan Beulich <jbeulich@novell.com>
5331
5332 * config/i386/i386.c (classify_argument): Treat V1xx modes the same as
5333 their base modes. CTImode, TCmode, and XCmode must be passed in memory.
5334 TFmode (__float128) must be is an SSE/SSEUP pair. V2SImode, V4HImode,
5335 and V8QI are class SSE. All sufficiently small remaining vector modes
5336 must be passed in one or two integer registers.
5337 (ix86_libcall_value): TFmode must be returned in xmm0, XCmode must be
5338 returned in memory.
5339 (bdesc_2arg, ix86_init_mmx_sse_builtins): __builtin_ia32_pmuludq and
5340 __builtin_ia32_pmuludq128 have non-uniform argument and return types
5341 and must thus be handled explicitly.
5342 * config/i386/i386.md (*movdi_1_rex64): Add cases for moving between
5343 MMX and XMM regs.
5344 (movv8qi_internal, movv4hi_internal, movv2si_internal,
5345 movv2sf_internal): Permit moving between MMX and XMM registers (since
5346 MMX areguments and return values are passed in XMM registers).
5347 (sse2_umulsidi3): Correct type and mode.
5348
5349 2004-07-09 Richard Henderson <rth@redhat.com>
5350
5351 * tree-cfg.c (dump_cfg_stats): Fix 64-bit format mismatch errors.
5352
5353 2004-07-09 Eric Christopher <echristo@redhat.com>
5354
5355 * config/rs6000/40x.md: Split into two automatons.
5356
5357 2004-07-09 Zack Weinberg <zack@codesourcery.com>
5358 Andrew Pinski <apinski@apple.com>
5359
5360 * c-opts.c (c_common_post_options): Force unit-at-a-time mode
5361 on when we have more than one input file.
5362 (c_common_parse_file): Restore loop over all input files.
5363 Clarify diagnostic for -dy when YYDEBUG wasn't defined.
5364
5365 * c-decl.c (set_type_context): New function.
5366 (pop_scope): Use it to set context of types. When we
5367 encounter a TYPE_DECL, set the context of the attached type too.
5368 (pop_file_scope): Don't call cpp_undef_all here.
5369 (diagnose_mismatched_decls): Do not complain about a second
5370 definition of an 'extern inline' function if it's not in the
5371 same translation unit. Do not complain about inline
5372 declaration after use if the use was in a different
5373 translation unit.
5374 (merge_decls): Don't clobber olddecl's DECL_CONTEXT.
5375 (pushdecl): Do not put DECL_EXTERNAL, !TREE_PUBLIC decls in
5376 the external scope.
5377 (pushdecl_top_level): Likewise.
5378 (grokdeclarator): Clarify what is going on with setting
5379 DECL_EXTERNAL on function types, a little.
5380 (c_write_global_declarations): Don't do anything if
5381 -fsyntax-only or errors have been encountered.
5382
5383 2004-07-09 Zack Weinberg <zack@codesourcery.com>
5384
5385 * vec.c, vec.h (vec_assert_fail): Use unsigned int for LINE argument.
5386
5387 2004-07-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5388
5389 PR target/16459
5390 * pa.c (output_indirect_call): Use %r2 as the link register when
5391 calling $$dyncall with a pc-relative branch.
5392
5393 2004-07-08 Gerald Pfeifer <gerald@pfeifer.com>
5394
5395 * doc/install.texi (Binaries): Mention OpenPKG.
5396
5397 2004-07-09 Diego Novillo <dnovillo@redhat.com>
5398
5399 Fix PR tree-optimization/15555
5400 * tree-dfa.c (dump_variable): If the variable is a pointer
5401 SSA_NAME, also dump its points-to information.
5402 * tree-flow.h (struct ptr_info_def): Add field
5403 is_dereferenced.
5404 (dump_points_to_info_for): Declare.
5405 (debug_points_to_info_for): Declare.
5406 * tree-optimize.c (init_tree_optimization_passes): Add a
5407 second alias analysis pass after DOM2.
5408 Move pass_del_pta to a later spot.
5409 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Do not
5410 create a name tags when we find a dereferenced pointer. Just
5411 mark the pointer dereferenced.
5412 (collect_points_to_info_for): Move code to clear points-to
5413 information to create_name_tags.
5414 (create_name_tags): New function.
5415 (compute_flow_sensitive_aliasing): Call it.
5416 (setup_pointers_and_addressables): Mark type tags for renaming
5417 here instead of ...
5418 (create_memory_tag): ... here.
5419 (merge_pointed_to_info): Do not merge PT_MALLOC attributes.
5420 (dump_points_to_info_for): Declare extern.
5421 (debug_points_to_info_for): New function.
5422
5423 2004-07-09 Paolo Bonzini <bonzini@gnu.org>
5424
5425 * config/arc/arc.md: Switch to DFA-based scheduler description.
5426 * config/arc/arc.c: Switch to DFA-based scheduler description.
5427
5428 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
5429
5430 * arm/unknown-elf.h (TARGET_DEFAULT): Don't require an APCS frame
5431 pointer.
5432
5433 2004-07-09 Richard Henderson <rth@redhat.com>
5434
5435 * config/xtensa/xtensa-protos.h (xtensa_va_arg): Remove.
5436 * config/xtensa/xtensa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
5437 (xtensa_gimplify_va_arg_expr): Rewrite from xtensa_va_arg.
5438 * config/xtensa/xtensa.h (EXPAND_BUILTIN_VA_ARG): Remove.
5439
5440 * config/v850/v850-protos.h (v850_va_arg): Remove.
5441 * config/v850/v850.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
5442 (v850_gimplify_va_arg_expr): Rewrite from v850_va_arg.
5443 * config/v850/v850.h (EXPAND_BUILTIN_VA_ARG): Remove.
5444 (FUNCTION_ARG_PASS_BY_REFERENCE): Handle variable size types.
5445 (FUNCTION_ARG_CALLEE_COPIES): Use FUNCTION_ARG_PASS_BY_REFERENCE.
5446
5447 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
5448
5449 PR target/12133
5450 * arm.c (arm_legitimate_index_p) Allow DFmode for soft-float
5451 and DImode to use +/-4k offset.
5452
5453 2004-07-09 Richard Henderson <rth@redhat.com>
5454
5455 * config/stormy16/stormy16-protos.h (xstormy16_expand_builtin_va_arg):
5456 Remove.
5457 * config/stormy16/stormy16.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
5458 (xstormy16_gimplify_va_arg_expr): Rewrite from
5459 xstormy16_expand_builtin_va_arg.
5460 * config/stormy16/stormy16.h (EXPAND_BUILTIN_VA_ARG): Remove.
5461
5462 * config/sparc/sparc-protos.h (sparc_va_arg): Remove.
5463 * config/sparc/sparc.c (sparc_gimplify_va_arg): Mark static.
5464
5465 * config/sh/sh-protos.h (sh_va_arg): Remove.
5466 * config/sh/sh.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
5467 (sh_gimplify_va_arg_expr): Rewrite from sh_va_arg.
5468 * config/sh/sh.h (EXPAND_BUILTIN_VA_ARG): Remove.
5469
5470 * config/pa/pa-protos.h (hppa_va_arg): Remove.
5471 * config/pa/pa.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
5472 (hppa_gimplify_va_arg_expr): Rewrite from hppa_va_arg.
5473 * config/pa/pa.h (EXPAND_BUILTIN_VA_ARG): Remove.
5474
5475 * config/mn10300/mn10300-protos.h (mn10300_va_arg): Remove.
5476 * config/mn10300/mn10300.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
5477 (mn10300_gimplify_va_arg_expr): Rewrite from mn10300_va_arg.
5478 * config/mn10300/mn10300.h (EXPAND_BUILTIN_VA_ARG): Remove.
5479
5480 2004-07-09 Eric Botcazou <ebotcazou@libertysurf.fr>
5481
5482 * config/sparc/sparc.md (return): Rewrite length formula.
5483 * config/sparc/sparc.c (output_return): Pass 1 as 5th
5484 argument to final_scan_insn when in a delay slot.
5485 (output_sibcall): Likewise.
5486
5487 2004-07-09 Richard Earnshaw <rearnsha@arm.com>
5488
5489 * arm.c (arm_cpp_interwork): New variable.
5490 (arm_override_options): Set it if TARGET_INTERWORK was on the command
5491 line.
5492 * arm.h (arm_cpp_interwork): Declare it.
5493 (TARGET_CPU_CPP_BUILTINS): Use it to control definition of
5494 __THUMB_INTERWORK__ in the preprocessor.
5495
5496 2004-07-09 Nathan Sidwell <nathan@codesourcery.com>
5497
5498 * vec.h (VEC_T_alloc): Fix MEM_STAT_DECL pasto.
5499
5500 2004-07-09 Eric Botcazou <ebotcazou@libertysurf.fr>
5501
5502 PR target/16416
5503 * config/sparc/sol2-bi.h (OPTION_DEFAULT_SPECS): New macro.
5504 Override default settings to account for -m32 and -m64.
5505
5506 2004-07-08 Randolph Chung <tausq@debian.org>
5507
5508 * pa32-linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
5509
5510 2004-07-09 Alexandre Oliva <aoliva@redhat.com>
5511
5512 * builtins.c (fold_builtin_strncpy): Make sure len is a constant
5513 before comparing it as such.
5514
5515 2004-07-08 Richard Henderson <rth@redhat.com>
5516
5517 * builtins.c (std_gimplify_va_arg_expr): Hoist valist into a
5518 temporary. Use bit arithmetic to align.
5519
5520 2004-07-08 Jerry Quinn <jlquinn@optonline.net>
5521
5522 * alias.c (nonlocal_mentioned_p, nonlocal_referenced_p,
5523 nonlocal_set_p, init_alias_analysis): Use, LABEL_P, JUMP_P, CALL_P,
5524 NONJUMP_INSN_P, INSN_P, NOTE_P, BARRIER_P.
5525 * bb-reorder.c (mark_bb_for_unlikely_executed_section,
5526 add_labels_and_missing_jumps, find_jump_block,
5527 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
5528 Likewise.
5529 * bt-load.c (btr_referenced_p, compute_defs_uses_and_gen,
5530 link_btr_uses, move_btr_def): Likewise.
5531 * builtins.c (expand_builtin_longjmp, expand_builtin_nonlocal_goto,
5532 expand_builtin_expect_jump): Likewise.
5533 * caller-save.c (save_call_clobbered_regs, insert_one_insn): Likewise.
5534 * calls.c (expand_call, emit_library_call_value_1): Likewise.
5535 * cfganal.c (forwarder_block_p): Likewise.
5536 * cfgbuild.c (inside_basic_block_p, count_basic_blocks,
5537 make_label_edge, rtl_make_eh_edge, make_edges, find_basic_blocks_1,
5538 find_bb_boundaries): Likewise.
5539 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
5540 merge_blocks_move_predecessor_nojumps,
5541 merge_blocks_move_successor_nojumps, insns_match_p,
5542 flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
5543 try_optimize_cfg): Likewise.
5544 * cfgexpand.c (expand_block, construct_exit_block): Likewise.
5545 * cfglayout.c (skip_insns_after_block, label_for_bb,
5546 record_effective_endpoints, insn_locators_initialize,
5547 fixup_reorder_chain, update_unlikely_executed_notes): Likewise.
5548 * cfgmainloop.c (create_loop_notes): Likewise.
5549 * cfgrtl.c (delete_insn, delete_insn_chain,
5550 create_basic_block_structure, rtl_delete_block, free_bb_for_insn,
5551 update_bb_for_insn, rtl_merge_blocks, rtl_can_merge_blocks,
5552 block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
5553 redirect_branch_edge, force_nonfallthru_and_redirect,
5554 rtl_tidy_fallthru_edge, back_edge_of_syntactic_loop_p,
5555 rtl_split_edge, commit_one_edge_insertion, print_rtl_with_bb,
5556 update_br_prob_note, rtl_verify_flow_info_1, rtl_verify_flow_info,
5557 purge_dead_edges, cfg_layout_redirect_edge_and_branch,
5558 cfg_layout_delete_block, cfg_layout_can_merge_blocks_p,
5559 cfg_layout_merge_blocks, rtl_block_ends_with_call_p,
5560 need_fake_edge_p, rtl_flow_call_edges_add): Likewise.
5561 * combine.c (combine_instructions, can_combine_p, try_combine,
5562 find_split_point, record_dead_and_set_regs, reg_dead_at_p,
5563 distribute_notes, distribute_links, insn_cuid): Likewise.
5564 * cse.c (fold_rtx, cse_insn, cse_around_loop,
5565 invalidate_skipped_block, cse_set_around_loop,
5566 cse_end_of_basic_block, cse_main, cse_basic_block,
5567 cse_condition_code_reg): Likewise.
5568 * cselib.c (cselib_process_insn): Likewise.
5569 * ddg.c (create_ddg): Likewise.
5570 * df.c (df_insn_refs_record, df_bb_rd_local_compute, df_insns_modify):
5571 Likewise.
5572 * dwarf2out.c (dwarf2out_stack_adjust, dwarf2out_frame_debug,
5573 gen_label_die, dwarf2out_var_location): Likewise.
5574 * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn,
5575 next_insn, previous_insn, next_nonnote_insn, prev_nonnote_insn,
5576 last_call_insn, active_insn_p, next_label, prev_label,
5577 link_cc0_insns, next_cc0_user, try_split, add_insn_after,
5578 add_insn_before, remove_insn, add_function_usage_to,
5579 reorder_insns, find_line_note, remove_unnecessary_notes,
5580 emit_insn_after_1, classify_insn): Likewise.
5581 * except.c (convert_from_eh_region_ranges_1, emit_to_new_bb_before,
5582 connect_post_landing_pads, sjlj_mark_call_sites,
5583 sjlj_emit_function_enter, sjlj_emit_function_exit, reachable_handlers,
5584 can_throw_internal, can_throw_external, set_nothrow_function_flags,
5585 convert_to_eh_region_ranges): Likewise.
5586 * explow.c (optimize_save_area_alloca): Likewise.
5587 * expr.c (expand_expr_real): Likewise.
5588 * final.c (insn_current_reference_address, compute_alignments,
5589 shorten_branches, final, scan_ahead_for_unlikely_executed_note,
5590 final_scan_insn, output_asm_label, leaf_function_p): Likewise.
5591 * flow.c (first_insn_after_basic_block_note, delete_dead_jumptables,
5592 propagate_block_delete_insn, propagate_one_insn,
5593 init_propagate_block_info, propagate_block, libcall_dead_p,
5594 mark_set_1, attempt_auto_inc, find_auto_inc, try_pre_increment):
5595 Likewise.
5596 * function.c (instantiate_virtual_regs, reorder_blocks_1,
5597 expand_function_start, expand_function_end, contains,
5598 thread_prologue_and_epilogue_insns,
5599 reposition_prologue_and_epilogue_notes): Likewise.
5600 * gcse.c (constprop_register, bypass_conditional_jumps,
5601 insert_insn_end_bb, gcse_after_reload): Likewise.
5602 * genemit.c (gen_expand, gen_split): Likewise.
5603 * genpeep.c (gen_peephole, main): Likewise.
5604 * global.c (build_insn_chain): Likewise.
5605 * graph.c (node_data, print_rtl_graph_with_bb): Likewise.
5606 * haifa-sched.c (unlink_other_notes, unlink_line_notes,
5607 get_block_head_tail, no_real_insns_p, rm_line_notes, save_line_notes,
5608 restore_line_notes, rm_redundant_line_notes, rm_other_notes,
5609 ok_for_early_queue_removal, set_priorities, sched_init): Likewise.
5610 * ifcvt.c (count_bb_insns, first_active_insn, last_active_insn,
5611 cond_exec_process_insns, end_ifcvt_sequence, noce_process_if_block,
5612 merge_if_block, block_jumps_and_fallthru_p, find_if_block,
5613 dead_or_predicable): Likewise.
5614 * integrate.c (try_constants): Likewise.
5615 * jump.c (rebuild_jump_labels, cleanup_barriers,
5616 purge_line_number_notes, init_label_info, mark_all_labels,
5617 squeeze_notes, get_label_before, get_label_after,
5618 reversed_comparison_code_parts, simplejump_p, pc_set,
5619 returnjump_p, onlyjump_p, follow_jumps, mark_jump_label,
5620 delete_barrier, delete_prior_computation, delete_computation,
5621 delete_related_insns, delete_for_peephole, redirect_jump):
5622 Likewise.
5623 * lcm.c (optimize_mode_switching): Likewise.
5624 * local-alloc.c (validate_equiv_mem, update_equiv_regs, block_alloc):
5625 Likewise.
5626 * loop-doloop.c (doloop_valid_p, doloop_optimize): Likewise.
5627 * loop-invariant.c (find_exits, find_invariants_bb): Likewise.
5628 * loop-iv.c (simplify_using_assignment): Likewise.
5629 * loop.c (compute_luids, loop_optimize, scan_loop, libcall_other_reg,
5630 libcall_benefit, skip_consec_insns, move_movables, prescan_loop,
5631 find_and_verify_loops, labels_in_range_p, for_each_insn_in_loop,
5632 loop_bivs_init_find, strength_reduce, check_insn_for_bivs,
5633 check_insn_for_givs, check_final_value, update_giv_derive,
5634 basic_induction_var, product_cheap_p, check_dbra_loop,
5635 loop_insn_first_p, last_use_this_basic_block,
5636 canonicalize_condition, get_condition, loop_regs_scan, load_mems,
5637 try_copy_prop, LOOP_BLOCK_NUM, loop_dump_aux): Likewise.
5638 * modulo-sched.c (doloop_register_get, find_line_note, sms_schedule,
5639 sms_schedule_by_order): Likewise.
5640 * optabs.c (emit_no_conflict_block, emit_libcall_block): Likewise.
5641 * postreload.c (reload_cse_simplify_operands, reload_combine,
5642 reload_cse_move2add): Likewise.
5643 * predict.c (can_predict_insn_p, estimate_probability,
5644 expected_value_to_br_prob, process_note_predictions): Likewise.
5645 * print-rtl.c (print_rtx, print_rtl, print_rtl_single): Likewise.
5646 * profile.c (branch_prob): Likewise.
5647 * ra-build.c (live_out_1, livethrough_conflicts_bb,
5648 detect_webs_set_in_cond_jump): Likewise.
5649 * ra-debug.c (ra_print_rtx_object, ra_debug_insns,
5650 ra_print_rtl_with_bb): Likewise.
5651 * ra-rewrite.c (insert_stores, rewrite_program2): Likewise.
5652 * recog.c (next_insn_tests_no_inequality, find_single_use,
5653 split_all_insns, peephole2_optimize, if_test_bypass_p): Likewise.
5654 * reg-stack.c (next_flags_user, record_label_references,
5655 emit_swap_insn, swap_rtx_condition, subst_stack_regs,
5656 compensate_edge, convert_regs_1): Likewise.
5657 * regclass.c (scan_one_insn): Likewise.
5658 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
5659 regmove_optimize, fixup_match_1, single_set_for_csa,
5660 combine_stack_adjustments_for_block): Likewise.
5661 * regrename.c (build_def_use, copyprop_hardreg_forward_1): Likewise.
5662 * reload.c (find_reloads, find_reloads_address_1, subst_reloads,
5663 find_equiv_reg): Likewise.
5664 * reload1.c (reload, calculate_needs_all_insns, set_label_offsets,
5665 reload_as_needed, emit_input_reload_insns, do_output_reload,
5666 delete_output_reload, delete_address_reloads_1, fixup_abnormal_edges):
5667 Likewise.
5668 * reorg.c (find_end_label, emit_delay_sequence,
5669 delete_from_delay_slot, delete_scheduled_jump, optimize_skip,
5670 get_jump_flags, rare_destination, mostly_true_jump,
5671 try_merge_delay_insns, redundant_insn, own_thread_p,
5672 fill_simple_delay_slots, fill_slots_from_thread,
5673 fill_eager_delay_slots, relax_delay_slots, make_return_insns,
5674 dbr_schedule): Likewise.
5675 * resource.c (find_basic_block, next_insn_no_annul,
5676 find_dead_or_set_registers, mark_target_live_regs): Likewise.
5677 * rtl.h (RTX_PREV): Likewise.
5678 * rtlanal.c (global_reg_mentioned_p, no_labels_between_p,
5679 no_jumps_between_p, reg_used_between_p, reg_referenced_between_p,
5680 reg_set_p, find_last_value, dead_or_set_regno_p, find_reg_fusage,
5681 find_regno_fusage, pure_call_p, replace_label, rtx_referenced_p_1,
5682 tablejump_p, computed_jump_p, insns_safe_to_move_p,
5683 find_first_parameter_load, can_hoist_insn_p): Likewise.
5684 * sched-deps.c (get_condition, add_dependence, sched_analyze_2,
5685 sched_analyze_insn, sched_analyze, add_forward_dependence): Likewise.
5686 * sched-ebb.c (fix_basic_block_boundaries, add_deps_for_risky_insns,
5687 schedule_ebbs): Likewise.
5688 * sched-rgn.c (is_cfg_nonregular, find_conditional_protection,
5689 is_conditionally_protected, can_schedule_ready_p,
5690 add_branch_dependences, debug_dependencies): Likewise.
5691 * stmt.c (emit_nop, expand_start_case, emit_jump_if_reachable):
5692 Likewise.
5693 * unroll.c (unroll_loop, copy_loop_body, back_branch_in_range_p,
5694 reg_dead_after_loop, loop_find_equiv_value, loop_iterations,
5695 set_dominates_use, ujump_to_loop_cont): Likewise.
5696 * var-tracking.c (prologue_stack_adjust, vt_initialize): Likewise.
5697 * varasm.c (output_constant_pool_1): Likewise.
5698
5699 2004-07-08 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5700
5701 * tree-scalar-evolution.c: New file.
5702 * tree-scalar-evolution.h: New file.
5703 * tree-ssa-loop-niter.c: New file.
5704 * Makefile.in (SCEV_H): New.
5705 (tree-scalar-evolution.o, tree-ssa-loop-niter.o): Add new files.
5706 * cfgloop.h (struct loop): Add bounds field.
5707 * tree-flow.h (struct tree_niter_desc): New type.
5708 (number_of_iterations_cond, number_of_iterations_exit,
5709 loop_niter_by_eval, find_loop_niter_by_eval,
5710 estimate_numbers_of_iterations, can_count_iv_in_wider_type,
5711 free_numbers_of_iterations_estimates): Declare.
5712 * tree.h (lower_bound_in_type, upper_bound_in_type): Declare.
5713 * params.def (PARAM_MAX_ITERATIONS_TO_TRACK): New parameter.
5714 * doc/invoke.texi (max-iterations-to-track): Document.
5715
5716 2004-07-08 Kaz Kojima <kkojima@gcc.gnu.org>
5717
5718 * config/sh/sh.c (sh_va_arg): Initinalize lab_over.
5719 * config/sh/sh.h (CONST_OK_FOR_J16): Use parentheses.
5720 (MODE_AFTER): Add cast appropriately.
5721 * config/sh/sh.md (movdi splitter): Likewise.
5722 (casesi_worker_2): Add const qualifier appropriately.
5723 (eh_return): Remove unused variable.
5724 (insv): Initialize v;
5725
5726 2004-07-08 Richard Henderson <rth@redhat.com>
5727
5728 * config/mmix/mmix-protos.h (mmix_expand_builtin_va_arg): Remove.
5729 * config/mmix/mmix.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
5730 (mmix_gimplify_va_arg_expr): Rewrite from mmix_expand_builtin_va_arg.
5731 * config/mmix/mmix.h (EXPAND_BUILTIN_VA_ARG): Remove.
5732 (FRAME_POINTER_REQUIRED): Use current_function_has_nonlocal_label.
5733
5734 * config/m32r/m32r-protos.h (m32r_va_arg): Remove.
5735 * config/m32r/m32r.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
5736 (m32r_gimplify_va_arg_expr): Rewrite from m32r_va_arg.
5737 * config/m32r/m32r.h (EXPAND_BUILTIN_VA_ARG): Remove.
5738
5739 * config/iq2000/iq2000-protos.h (iq2000_va_arg): Remove.
5740 * config/iq2000/iq2000.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
5741 (iq2000_gimplify_va_arg_expr): Rewrite from iq2000_va_arg.
5742 * config/iq2000/iq2000.h (EXPAND_BUILTIN_VA_ARG): Remove.
5743
5744 * config/frv/frv-protos.h (frv_expand_builtin_va_arg): Remove.
5745 * config/frv/frv.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
5746 (frv_gimplify_va_arg_expr): Rewrite from frv_expand_builtin_va_arg.
5747 * config/frv/frv.h (EXPAND_BUILTIN_VA_ARG): Remove.
5748
5749 * config/i860/i860-protos.h (i860_va_arg): Remove.
5750 * config/i860/i860.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
5751 (i860_gimplify_va_arg_expr): Rewrite from i860_va_arg.
5752 * config/i860/i860.h (EXPAND_BUILTIN_VA_ARG): Remove.
5753
5754 2004-05-31 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
5755
5756 * system.h: Prototype getpagesize if missing.
5757 * configure.ac: Add getpagesize to gcc_AC_CHECK_DECLS.
5758 * configure: Regenerate.
5759 * config.in: Regenerate.
5760
5761 2004-07-08 Richard Henderson <rth@redhat.com>
5762
5763 * config/fr30/fr30-protos.h (fr30_va_arg): Remove.
5764 * config/fr30/fr30.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
5765 (fr30_gimplify_va_arg_expr): New.
5766 (fr30_pass_by_reference, fr30_pass_by_value, fr30_va_arg): Remove.
5767 * config/fr30/fr30.h (EXPAND_BUILTIN_VA_ARG): Remove.
5768
5769 2004-07-08 Vladimir Makarov <vmakarov@redhat.com>
5770
5771 PR target/16414
5772 * config/ia64/ia64.c (ia64_dfa_new_cycle): Fix typo in comparison
5773 of asm_noperands result.
5774
5775 2004-07-08 Richard Henderson <rth@redhat.com>
5776
5777 * config/cris/cris-protos.h (cris_expand_builtin_va_arg): Remove.
5778 * config/cris/cris.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
5779 (cris_gimplify_va_arg_expr): Rewrite from cris_expand_builtin_va_arg.
5780 * config/cris/cris.h (EXPAND_BUILTIN_VA_ARG): Remove.
5781
5782 2004-07-08 Richard Henderson <rth@redhat.com>
5783
5784 * builtins.c (ind_gimplify_va_arg_expr): New.
5785 * tree.h (ind_gimplify_va_arg_expr): Declare.
5786 * config/arc/arc.c (arc_gimplify_va_arg_expr): Use it.
5787
5788 2004-07-08 Jan Beulich <jbeulich@novell.com>
5789
5790 * expmed.c (extract_bit_field): Correct condition to use vec_extract
5791 patterns also on vector elements other than the first one.
5792 * config/i386/i386.md (vec_extractv2df, vec_extractv4sf): Add missing
5793 break statements.
5794
5795 2004-07-08 Geoffrey Keating <geoffk@apple.com>
5796
5797 * config/rs6000/darwin-ldouble.c: Correct reference
5798 to the Linnainmaa paper.
5799
5800 2004-07-08 Richard Henderson <rth@redhat.com>
5801
5802 * config/arc/arc-protos.h (arc_va_arg): Remove.
5803 * config/arc/arc.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
5804 (arc_gimplify_va_arg_expr): Rewrite from arc_va_arg.
5805 * config/arc/arc.h (EXPAND_BUILTIN_VA_ARG): Remove.
5806
5807 * config/c4x/c4x-protos.h (c4x_va_arg): Remove.
5808 * config/c4x/c4x.c (TARGET_GIMPLIFY_VA_ARG_EXPR): New.
5809 (c4x_gimplify_va_arg_expr): Rewrite from c4x_va_arg.
5810 * config/c4x/c4x.h (EXPAND_BUILTIN_VA_ARG): Remove.
5811
5812 2004-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5813
5814 * pa.md (prefetch_32, prefetch_64): Simplify constraint checks.
5815
5816 2004-07-08 Zack Weinberg <zack@codesourcery.com>
5817
5818 * c-decl.c (static_ctors, static_dtors): Make static.
5819 (pop_file_scope): Call c_common_write_pch and
5820 cgraph_finalize_compilation_unit here.
5821 (build_cdtor): Moved here from c-objc-common.c; simplify.
5822 (c_write_global_declarations_1): Clarify comment.
5823 (c_write_global_declarations): Close the external scope before
5824 doing anything else. Call build_cdtor, cgraph_optimize, and
5825 mudflap_finish_file here.
5826 * c-lang.c (finish_file): Don't call c_objc_common_finish_file.
5827 Clarify comment.
5828 * c-objc-common.c: No need to include cgraph.h.
5829 (build_cdtor): Moved to c-decl.c.
5830 (c_objc_common_finish_file): Delete.
5831 * c-tree.h: Update to match.
5832 * objc/objc-act.c (finish_file): Don't call c_objc_common_finish_file.
5833 (generate_static_references): Set TREE_USED before calling finish_decl.
5834 Eliminate unnecessary dummy declaration. Call rest_of_decl_compilation
5835 on the static_instances_decl.
5836
5837 2004-07-08 Zack Weinberg <zack@codesourcery.com>
5838
5839 * c-decl.c (pop_scope): Do not set DECL_CONTEXT on file-scope
5840 decls when there is only one input translation unit.
5841 * langhooks.c (lhd_set_decl_assembler_name): Partially revert
5842 change of 2004-07-05; do not treat declarations with
5843 DECL_CONTEXT a TRANSLATION_UNIT_DECL specially.
5844 * opts.c (cur_in_fname): Delete.
5845 * opts.h: Likewise.
5846 * tree.c: Revert changes of 2004-07-05; no special treatment
5847 for TRANSLATION_UNIT_DECLs.
5848 * Makefile.in (tree.o): Update dependencies.
5849
5850 2004-07-08 Roger Sayle <roger@eyesopen.com>
5851
5852 * builtins.c (fold_builtin_strcpy): Merge functionality from
5853 simplify_builtin_strcpy. Add additional len argument. No longer
5854 static. Remove function prototype.
5855 (fold_builtin_strncpy): Likewise integrate functionality from
5856 simplify_builtin_strncpy. Add additional slen argument. No
5857 longer static. Remove function prototype.
5858 (simplify_builtin_strcy, simplify_builtin_strncpy): Delete.
5859 (simplify_builtin_fputs): Rename to fold_builtin_fputs. Change
5860 types of "ignore" and "unlocked" parameters to bool.
5861 (fold_builtin_1): Add additional ignore argument. Call renamed
5862 fold_builtin_fputs to simplify GCC "fputs" and "fputs_unlocked"
5863 builtins. Update arguments to fold_builtin_strncpy and
5864 fold_builtin_strcpy. Add function prototype.
5865 (fold_builtin): Add additional Boolean ignore argument to pass
5866 to fold_builtin_1.
5867 (simplify_builtin): Call fold_builtin_fputs, fold_builtin_strcpy
5868 and fold_builtin_strncpy instead of simplify_builtin_fputs,
5869 simplify_builtin_strcpy and simplify_builtin_strncpy respectively.
5870
5871 * expr.h (simplify_builtin_fputs, simplify_builtin_strcpy,
5872 simplify_builtin_strncpy): Delete function prototypes.
5873 * tree.h (fold_builtin_fputs, fold_builtin_strcpy,
5874 fold_builtin_strncpy): Add function prototypes here.
5875 (fold_builtin): Update function prototype with new "bool ignore".
5876
5877 * tree-ssa-ccp.c (ccp_fold): Update call to fold_builtin.
5878 (ccp_fold_builtin): Update call to fold_builtin. Call
5879 fold_builtin_fputs, fold_builtin_strcpy and fold_builtin_strncpy
5880 instead of simplify_builtin_fputs, simplify_builtin_strcpy and
5881 simplify_builtin_strncpy respectively.
5882 * fold-const.c (fold): Update call to fold_builtin.
5883
5884 2004-07-08 Alexandre Oliva <aoliva@redhat.com>
5885
5886 * builtins.c (expand_builtin_stpcpy): Un-simplify decay of stpcpy
5887 to strcpy.
5888
5889 * expr.h (FUNCTION_ARG_PARTIAL_NREGS): Default to 0.
5890 (FUNCTION_ARG_PASS_BY_REFERENCE): Likewise.
5891 (FUNCTION_ARG_CALLEE_COPIES): Likewise.
5892 * calls.c: Remove ifdefs of macros above.
5893 * functions.c: Likewise.
5894 * expr.c: Likewise.
5895
5896 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
5897
5898 * config/sparc/sparc.md (UNSPECV_GOTO_V9): Delete.
5899 (arch attribute): Delete.
5900 (current_function_calls_alloca attribute): Rename into calls_alloca.
5901 (calls_eh_return): New attribute.
5902 (leaf_function): Likewise.
5903 (length attribute): Fix formula for sibcalls.
5904 (return insn): Correctly compute the 'length' attribute.
5905 (do_builtin_setjmp_setup): Adjust use of current_function_calls_alloca.
5906
5907 2004-07-08 Richard Henderson <rth@redhat.com>
5908
5909 * tree-cfg.c (make_exit_edges): Use get_call_expr_in.
5910 (remove_useless_stmts_1, is_ctrl_altering_stmt): Likewise.
5911 (tree_block_ends_with_call_p, need_fake_edge_p): Likewise.
5912 * tree-eh.c (lower_eh_constructs_1): Likewise.
5913 * tree-sra.c (sra_walk_modify_expr): Likewise.
5914 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
5915 (eliminate_unnecessary_stmts): Likewise.
5916 * tree-ssa-dse.c (dse_optimize_stmt): Likewise.
5917 * tree-tailcall.c (optimize_tail_call): Likewise.
5918 * tree-ssa-ccp.c (get_rhs, set_rhs): Reorg to use switch.
5919
5920 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
5921 Jakub Jelinek <jakub@redhat.com>
5922
5923 * config/i386/i386.c (override_options): Enable
5924 SSE prefetches with -mtune, as long as we are
5925 compiling for i686 or higher. All i686 processors
5926 accept SSE prefetches as NOPS, some i586's don't.
5927
5928 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
5929
5930 PR target/10567
5931 * config/sparc/sparc.md (update_return): Honor flag_delayed_branch.
5932
5933 2004-07-08 Diego Novillo <dnovillo@redhat.com>
5934
5935 * tree-ssa-operands.c (get_asm_expr_operands): Fix thinkos in
5936 the handling of clobbering ASM_EXPRs.
5937
5938 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
5939
5940 PR target/16430
5941 * config/sparc/sparc.c (function_value): In 64-bit mode,
5942 return the aggregates larger than 16 bytes like unions.
5943
5944 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
5945
5946 PR target/16199
5947 * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): When
5948 'temp' is zero, generate new pseudos as needed and emit the
5949 sequence of insns in single-assignment form. Resync comments
5950 with code.
5951 (sparc_emit_set_const64): Pass zero as 'temp' argument to above
5952 function before reload.
5953
5954 2004-07-08 Nathan Sidwell <nathan@codesourcery.com>
5955
5956 * vec.c (vec_assert_fail): Remove duplicate 'function'.
5957
5958 * vec.c (vec_p_reserve, vec_o_reserve): Allocation is signed.
5959
5960 * vec.h (VEC_alloc, VEC_embedded_size, VEC_embedded_init):
5961 Allocation is signed.
5962 (VEC_reserve): Return flag, allocation is signed.
5963
5964 2004-07-08 Richard Henderson <rth@redhat.com>
5965
5966 * tree-ssa-ccp.c (fold_stmt): Get type directly from
5967 OBJ_TYPE_REF_OBJECT.
5968
5969 2004-07-08 Joseph S. Myers <jsm@polyomino.org.uk>
5970 Neil Booth <neil@daikokuya.co.uk>
5971
5972 PR c/2511
5973 PR c/3325
5974 * c-decl.c (finish_struct): Ensure bit-fields are given the
5975 correct type.
5976 * c-common.c (c_common_signed_or_unsigned_type): For C, require
5977 the precision to match as well as the mode.
5978 * expr.c (reduce_to_bit_field_precision): New function.
5979 (expand_expr_real_1): Reduce expressions of bit-field type to
5980 proper precision.
5981 * langhooks.h (reduce_bit_field_operations): New hook.
5982 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
5983 Define.
5984 * c-lang.c, objc/objc-lang.c
5985 (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Define.
5986 * objc/objc-act.c (check_ivars): Convert types to bit-field types
5987 before checking.
5988 * tree.c (build_nonstandard_integer_type): New function.
5989 * tree.h (build_nonstandard_integer_type): New prototype.
5990 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't treat
5991 conversions between integer and boolean types as useless.
5992
5993 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
5994
5995 * c-common.c (c_common_nodes_and_builtins): Do not
5996 create __builtin_ptrdiff_t and __builtin_size_t.
5997
5998 2004-07-08 Andrew Pinski <apinski@apple.com>
5999
6000 * Makefile.in (libbackend.o): Add -combine to the gcc
6001 command line.
6002
6003 2004-07-08 Nick Clifton <nickc@redhat.com>
6004
6005 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Define.
6006 Set to -Os.
6007
6008 2004-07-08 Richard Henderson <rth@redhat.com>
6009
6010 * except.c (expand_eh_region_start, expand_eh_region_end,
6011 expand_eh_handler, expand_eh_region_end_cleanup,
6012 expand_start_all_catch, expand_start_catch, expand_end_catch,
6013 expand_end_all_catch, expand_eh_region_end_allowed,
6014 expand_eh_region_end_must_not_throw, expand_eh_region_end_throw,
6015 expand_eh_region_end_fixup): Remove.
6016 * stmt.c (struct nesting): Remove stack_level, innermost_stack_block,
6017 cleanups, outer_cleanups, label_chain, exception_region.
6018 (struct goto_fixup): Remove stack_level, cleanup_list_list.
6019 (struct label_chain): Remove.
6020 (struct stmt_status): Remove x_stack_block_stack.
6021 (stack_block_stack, expand_goto_internal, expand_fixup, expand_fixups,
6022 fixup_gotos, save_stack_pointer, expand_decl_cleanup,
6023 expand_decl_cleanup_eh, expand_cleanups, start_cleanup_deferral,
6024 end_cleanup_deferral, last_cleanup_this_contour,
6025 containing_blocks_have_cleanups_or_stack_level,
6026 any_pending_cleanups): Remove.
6027 (expand_null_return_1): Take no arguments.
6028 (expand_label, expand_naked_return, expand_return,
6029 expand_start_bindings_and_block, expand_end_bindings, expand_decl,
6030 expand_anon_union_decl, expand_start_case, pushcase, pushcase_range,
6031 expand_end_case_type): Don't use any of them.
6032 * calls.c (expand_call): Likewise.
6033 * dojump.c (do_jump): Likewise.
6034 * function.c (expand_function_end): Likewise.
6035 * expr.c (store_expr, expand_expr_real_1): Likewise.
6036 (safe_from_p): Don't handle WITH_CLEANUP_EXPR, CLEANUP_POINT_EXPR.
6037 (expand_expr_real_1): Don't handle WITH_CLEANUP_EXPR,
6038 CLEANUP_POINT_EXPR, TARGET_EXPR, TRY_CATCH_EXPR, CATCH_EXPR,
6039 EH_FILTER_EXPR, TRY_FINALLY_EXPR, GOTO_SUBROUTINE_EXPR.
6040 * fold-const.c (fold_checksum_tree): Use first_rtl_op.
6041 * gengtype.c (adjust_field_tree_exp): Remove rtl op handling.
6042 * gimplify.c (gimplify_cleanup_point_expr): Renumber operands
6043 for WITH_CLEANUP_EXPR.
6044 (gimple_push_cleanup): Likewise.
6045 * integrate.c (copy_decl_for_inlining): Don't DECL_TOO_LATE.
6046 * print-tree.c (print_node): Likewise.
6047 * tree-pretty-print.c (dump_generic_node): Remove GOTO_SUBROUTINE_EXPR.
6048 * tree.c (first_rtl_op): Always just TREE_CODE_LENGTH.
6049 (has_cleanups): Remove GOTO_SUBROUTINE_EXPR.
6050 * tree.def (WITH_CLEANUP_EXPR): Remove op1 and op2.
6051 (GOTO_SUBROUTINE_EXPR): Remove.
6052 * tree.h (WITH_CLEANUP_EXPR_RTL): Remove.
6053 (DECL_TOO_LATE): Remove.
6054 * except.h, tree.h: Update decls.
6055
6056 2004-07-08 Paolo Bonzini <bonzini@gnu.org>
6057
6058 * explow.c (optimize_save_area_alloca): Do not accept parameters.
6059 * passes.c (rest_of_handle_final): Handle symout.
6060 (rest_of_handle_new_regalloc, rest_of_handle_old_regalloc):
6061 Push timevar here.
6062 (rest_of_handle_sched): Break out SMS. Remove ifs for
6063 flag_schedule_insns and flag_modulo_sched.
6064 (rest_of_handle_addressof, rest_of_handle_cse2): Garbage
6065 collect at the end.
6066 (rest_of_handle_gcse2): Put under timevar TV_RELOAD_CSE_REGS.
6067 (rest_of_handle_partition_blocks, rest_of_handle_sms,
6068 rest_of_handle_if_after_reload, rest_of_handle_peephole2,
6069 rest_of_handle_mode_switching, rest_of_handle_jump,
6070 rest_of_handle_guess_branch_prob, rest_of_handle_eh,
6071 rest_of_handle_jump2, rest_of_handle_postreload,
6072 rest_of_handle_flow2, rest_of_clean_state,
6073 rest_of_handle_shorten_branches,
6074 rest_of_handle_prologue_epilogue,
6075 rest_of_handle_branch_target_load_optimize): New.
6076 (rest_of_compilation): Call the above. Remove ggc_collect
6077 calls moved to rest_of_handle_*.
6078 * rtl.h (optimize_save_area_alloca): Do not accept parameters.
6079
6080 * dwarf2out.c (dwarf2out_begin_prologue): Use TREE_NOTHROW.
6081 * except.c (set_nothrow_function_flags): Set TREE_NOTHROW.
6082 * except.h (set_nothrow_function_flags): Update comment.
6083 * function.c (current_function_nothrow): Remove.
6084 * output.h (current_function_nothrow): Remove.
6085 * passes.c (rest_of_compilation): Do not set TREE_NOTHROW.
6086 * config/arm/arm.c (arm_compute_func_type): Use TREE_NOTHROW.
6087
6088 2004-07-08 Eric Botcazou <ebotcazou@libertysurf.fr>
6089
6090 PR bootstrap/16326
6091 * reorg.c: Revert 2004-06-30 change.
6092 (find_end_label): If HAVE_epilogue and !HAVE_return,
6093 return 0 instead of creating a label at the end of the insn chain.
6094 (optimize_skip): Account for the failure mode of find_end_label.
6095 (fill_simple_delay_slots): Likewise.
6096 (fill_slots_from_thread): Likewise.
6097 (relax_delay_slots): Likewise.
6098
6099 2004-07-08 Diego Novillo <dnovillo@redhat.com>
6100
6101 * tree-flow.h (addressable_vars): Declare.
6102 * tree-ssa-alias.c (addressable_vars): Define.
6103 (setup_pointers_and_addressables): Add addressable variables
6104 to addressable_vars.
6105 * tree-ssa-operands.c (get_stmt_operands): Move
6106 handling of ASM_EXPRs ...
6107 (get_asm_expr_operands): ... here.
6108 When the ASM_EXPR clobbers memory, also clobber addressable
6109 variables.
6110 * tree-ssa.c (init_tree_ssa): Initialize addressable_vars.
6111 (delete_tree_ssa): Reset addressable_vars.
6112
6113 2004-07-07 Jan Beulich <jbeulich@novell.com>
6114 Richard Henderson <rth@redhat.com>
6115
6116 * varasm.c (assemble_variable): Use assemble_zeros for
6117 zero-initialized variables.
6118 (categorize_decl_for_section): Honor flag_zero_initialized_in_bss
6119 for SECCAT_BSS and SECCAT_TBSS.
6120
6121 2004-07-07 Jan Beulich <jbeulich@novell.com>
6122
6123 * varasm.c (asm_output_bss): Don't declare unless BSS_SECTION_ASM_OP.
6124
6125 * expmed.c (emit_store_flag): Also special-case double-word
6126 (in-)equality comparison against -1.
6127
6128 * config/i386/i386.c (ix86_gimplify_va_arg): Don't need temporary for
6129 passing arguments the containers for which are registers.
6130
6131 * calls.c (emit_library_call_value_1): Use mode of function parameter
6132 rather than that of argument since constants have none.
6133
6134 2004-07-08 Alexandre Oliva <aoliva@redhat.com>
6135
6136 Introduce H8SX support.
6137 * expr.c (expand_strcpy): Renamed and moved to...
6138 * builtins.c (expand_movstr): ... here. Tweak.
6139 (expand_builtin_strcpy): Adjust. Use movstr if len can't be
6140 computed or has side effects.
6141 (expand_builtin_stpcpy): Likewise. Use strcpy if return value is
6142 unused, or if mempcpy fails. Adjust the return value in the
6143 latter case. Use movstr if everything else fails.
6144 * doc/md.texi (movstr): Document.
6145 (movmemM, clrmemM): Fix explanation of memory block operands.
6146 * config/h8300/h8300.md (stpcpy): Renamed to...
6147 (movstr): ... this. Adjust.
6148 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
6149 * config/h8300/h8300.md: Rename movstr*, except for movstrict*, to
6150 movmem* and clrstr* to clrmem*.
6151 2004-06-27 Alexandre Oliva <aoliva@redhat.com>
6152 * config/h8300/h8300.c (h8300_reg_class_from_letter): Map 'D' to
6153 GENERAL_REGS, always.
6154 (h8300_swap_into_er6, h8300_swap_into_er6): Handle the case of
6155 getting the stack pointer as addr.
6156 * config/h8300/h8300.h (PREDICATE_CODES): Remove constant rtxes
6157 from general_operand_dst.
6158 * config/h8300/h8300.md (movmd_internal_normal): New, normal-mode
6159 variant of...
6160 (movmd_internal): ... this. Add modes to operands. Disparage `D'
6161 instead of requiring it to match only before reload.
6162 (stpcpy_internal_normal): New, normal-mode variant of...
6163 (stpcpy_internal): ... this. Add modes to operands. Disparage
6164 `D' instead of requiring it to match only before reload.
6165 * config/h8300/h8300-protos.h (h8300_legitimate_address_p): Add
6166 mode argument.
6167 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Pass it to...
6168 * config/h8300/h8300.c (h8300_legitimate_address_p): Pass it to
6169 h8300_get_index.
6170 * config/h8300/h8300.md (attr type): Add call.
6171 (attr can_delay): If type is call, set it no.
6172 (call, call_value): Set type to call.
6173 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
6174 * config/h8300/h8300.md (logicalhi3_sn, logicalsi3_sn): New.
6175 2004-06-16 Alexandre Oliva <aoliva@redhat.com>
6176 * tree.c (get_narrower): Don't narrow integral types into
6177 non-integral types.
6178 * config/h8300/h8300.c (h8300_expand_epilogue): Initialize
6179 frame_size *before* the first use.
6180 * config/h8300/h8300.md (movstrictqi): Reintroduce post-increment
6181 on input.
6182 (peephole2): Don't widen instructions that push SP. Move
6183 decrement of SP to the end of all stm-generating peepholes.
6184 2003-07-24 Richard Sandiford <rsandifo@redhat.com>
6185 * config/h8300/h8300.md (insv): Prefer to use AND to clear a bitfield
6186 and OR to set it to all ones.
6187 2003-07-24 Richard Sandiford <rsandifo@redhat.com>
6188 * config/h8300/h8300.md (can_delay): Default to "no" for bit branches.
6189 (call, call_value): Set can_delay to "no".
6190 2003-07-22 Richard Sandiford <rsandifo@redhat.com>
6191 * config/h8300/h8300.md (extzv): Make subreg check more robust.
6192 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
6193 * config/h8300/h8300.md (*brabit): Remove.
6194 * config/h8300/h8300.md (*brabc, *brabs): Remove mode from
6195 zero_extract. Use bit_memory_operand as the predicate for
6196 operand 1 and 'WU' as the constraint. Check the difference
6197 between the base length and the final one when deciding which
6198 type of branch to use.
6199 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
6200 * config/h8300/h8300.md (extzv): Remove mode from operands 0 and 1.
6201 Use convert_move to extend the result for TARGET_H8300SX. Check
6202 for QImode memory references. Optimize the case where the
6203 destination is a paradoxical subreg.
6204 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
6205 * config/h8300/h8300.md (*movsf_h8sx): Add an r <- G alternative.
6206 * config/h8300/h8300.md (andqi): Remove bclr from h8sx version.
6207 2003-07-21 Richard Sandiford <rsandifo@redhat.com>
6208 * config/h8300/h8300.md: Include mova.md
6209 (length_table): Add mova and mova_zero.
6210 * config/h8300/h8300.c (print_operand): Handle '%o'. Print a length
6211 after all constant addresses for '%R', '%X', '%T' and '%S'.
6212 (h8300_mova_length): New function.
6213 (h8300_insn_length_from_table): Use it to handle mova and mova_zero.
6214 * config/h8300/t-h8300 (mova.md): Generate from genmova.sh. Add to
6215 dependencies for s-config, etc.
6216 * config/h8300/gemova.sh: New file.
6217 * config/h8300/mova.md: Generated.
6218 2003-07-20 Alexandre Oliva <aoliva@redhat.com>
6219 * config/h8300/h8300.c (h8300_bitfield_length): New.
6220 (nibble_operand): Adjust.
6221 (h8300_binary_length): Handle conditional binary op.
6222 (h8300_insn_length_from_table): Handle bitfield and bitbranch.
6223 * config/h8300/h8300.h: Change constraints W# and Y# to P#>X and
6224 P#<X, respectively. The original P is now IP4>X. Introduced P#>0
6225 and P#<0, unused so far. W and Y are now prefixes to multi-letter
6226 constraints. WU is introduced as a variant of U that requires a
6227 mem, and is therefore considered an EXTRA_MEMORY_CONSTRAINT.
6228 * config/h8300/h8300.md (attr type): Added bitbranch.
6229 (attr length_table): Added bitfield and bitbranch.
6230 (attr length): Compute bitbranch length.
6231 (andqi): Separate pattern for H8300SX. Use bfld for loading the
6232 least-significant bit of a byte.
6233 (brabit, brabc, brabs): New.
6234 (insv, extzv): Emit bfst and bfld on H8300SX.
6235 (bfld, bfst, seq, sne): New.
6236 (bstzhireg, cmpstz, bstz, bistz): New.
6237 (cmpcondbset, condbset, cmpcondbclr, condbclr): New.
6238 (cmpcondbsetreg, condbsetreg, cmpcondbclrreg, condbclrreg): New.
6239 2003-07-11 Richard Sandiford <rsandifo@redhat.com>
6240 * config/h8300/h8300.c (h8sx_binary_memory_operator): New function.
6241 (h8sx_unary_memory_operator): New function.
6242 * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Disable.
6243 (PREDICATE_CODES): Add h8sx_{unary,binary}_memory_operator.
6244 * config/h8300/h8300.md: Add peepholes to combine reloads and
6245 arithmetic insns.
6246 2003-07-10 Richard Sandiford <rsandifo@redhat.com>
6247 * config/h8300/h830.md (cmpqi): Use 'i' rather than 'n' in constraints.
6248 (*cmphi_h8300hs, *addqi3, *addhi3_h8sx, subhi3): Likewise.
6249 (and?i, ior?i, xor?i): Likewise.
6250 2003-07-10 Richard Sandiford <rsandifo@redhat.com>
6251 * config/h8300/h8300.c: Move enums and prototypes to head of file.
6252 Various whitespace fixes.
6253 (h8300_constant_length): New function, split out from...
6254 (h8300_displacement_size): ...here. Rename h8300_displacement_length.
6255 (h8300_classify_operand): Use IN_RANGE.
6256 (h8300_classify_operand): Use h8300_constant_length.
6257 (h8300_short_move_mem_p): Tighten size check.
6258 (h8sx_mergeable_memrefs_p): Tighten equality check.
6259 2003-06-30 Richard Sandiford <rsandifo@redhat.com>
6260 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Define __H8300SX__
6261 for -msx.
6262 * config/h8300/crti.asm: Use .h8300sx or .h8300sxn for -msx code.
6263 * config/h8300/crtn.asm: Likewise.
6264 * config/h8300/lib1funcs.asm: Likewise. Use 32-bit pointers
6265 if __H8300SX__ is defined.
6266 2003-06-27 Richard Sandiford <rsandifo@redhat.com>
6267 * config/h8300/h8300-protos.h (h8300_get_index): Add mode parameter.
6268 * config/h8300/h8300.h (GO_IF_LEGITIMATE_ADDRESS): Update accordingly.
6269 (GO_IF_MODE_DEPENDENT_ADDRESS): Treat POST_DEC, PRE_INC and indexed
6270 addresses as mode-dependent.
6271 * config/h8300/h8300.c (print_operand_address): Update call to
6272 h8300_get_index.
6273 (h8300_get_index): Take a mode argument. Rework to fix an
6274 earlier misunderstanding.
6275 2003-06-26 Richard Sandiford <rsandifo@redhat.com>
6276 * config/h8300/h8300.c (zero_extendqisi2): Force the source operand
6277 into a register if TARGET_H8300SX.
6278 (*zero_extendqisi2_h8300hs, *extendqisi2_h8300): Disable for
6279 TARGET_H8300SX. Also disable related define_splits.
6280 (*zero_extendqisi2_h8sx, *extendqisi2_h8sx): New patterns.
6281 2003-06-23 Richard Sandiford <rsandifo@redhat.com>
6282 * config/h8300/h8300.c (h8300_rtx_costs): Add h8sx handling.
6283 2003-06-20 Richard Sandiford <rsandifo@redhat.com>
6284 * config/h8300/h8300.h (OK_FOR_Z): New macro.
6285 (EXTRA_CONSTRAINT_STR): Check it.
6286 * config/h8300/h8300.c (h8300_classify_operand): Accept null
6287 class arguments.
6288 (h8300_insn_length_from_table): Handle LENGTH_TABLE_MOV_IMM4.
6289 * config/h8300/h8300.md (length_table): Add mov_imm4.
6290 (movqi, movhi): Add Z <- W4 alternatives to h8sx patterns.
6291 2003-06-20 Richard Sandiford <rsandifo@redhat.com>
6292 * genattrtab.c (write_eligible_delay): Allow candidate_insn to
6293 be a label.
6294 * config/h8300/h8300.h (DELAY_SLOT_LENGTH): New macro.
6295 * config/h8300/h8300.c (h8300_reorg): New function.
6296 (TARGET_MACHINE_DEPENDENT_REORG): Define.
6297 * config/h8300/h8300.md (length): Subtract the length of the
6298 delay slot from (pc) when checking the range of forward branches.
6299 (delay_slot, can_delay): New attributes.
6300 (define_delay): Add bra/s handling.
6301 (movmd_internal, return_h8sx, *return_1): Set can_delay to no.
6302 (jump): Add delayed-branch handling.
6303 2003-06-17 Richard Sandiford <rsandifo@redhat.com>
6304 * expr.c (expand_strcpy): New function.
6305 * builtins.c (expand_builtin_strcpy): Fall back on expand_strcpy.
6306 (expand_builtin_stpcpy): Likewise.
6307 * config/h8300/h8300-protos.h (h8sx_split_movmd): Remove.
6308 (h8300_swap_into_er6, h8300_swap_out_of_er6): Declare.
6309 * config/h8300/h8300.c (h8300_reg_class_from_letter): Tweak 'd'
6310 handling to improve register allocation for -fno-omit-frame-pointer.
6311 (h8sx_split_movmd): Delete, moving er6 handling into...
6312 (h8300_swap_into_er6, h8300_swap_out_of_er6): ...these new functions.
6313 * config/h8300/h8300.md (UNSPEC_STPCPY): New unspec constant.
6314 (movmd): Add calls to copy_rtx.
6315 (movmd_internal): In the second alternative, allow the initial and
6316 final destination registers to be different . Update the splitter
6317 accordingly. Call h8300_swap_into_er6 and h8300_swap_out_of_er6
6318 instead of h8sx_split_movmd.
6319 (stpcpy, movsd): New expanders.
6320 (movsd_internal): New define_insn.
6321 2003-06-13 Richard Sandiford <rsandifo@redhat.com>
6322 * config/h8300/h8300-protos.h (h8300_reg_class_from_letter): Declare.
6323 (h8sx_emit_movmd, h8sx_split_movmd): Declare.
6324 * config/h8300/h8300.h (reg_class): Add COUNTER_REGS, SOURCE_REGS
6325 and DESTINATION_REGS.
6326 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update accordingly.
6327 (REGNO_REG_CLASS): Map er4, er5 and er6 to the new classes.
6328 (REG_CLASS_FROM_LETTER): Use h8300_reg_class_from_letter.
6329 (h8300_move_ratio): Declare.
6330 (MOVE_RATIO): Use it.
6331 * config/h8300/h8300.c (h8300_move_ratio): New variable.
6332 (h8300_init_once): Initialize it.
6333 (h8300_reg_class_from_letter): New function.
6334 (print_operand): Add an 'm' prefix for printing ".b", ".w" or ".l".
6335 (h8sx_emit_movmd, h8sx_split_movmd): New functions.
6336 * config/h8300/h8300.md (UNSPEC_MOVMD): New unspec constant.
6337 (COUNTER_REG, SOURCE_REG, DESTINATION_REG): New register constants.
6338 (movstrsi, movmd): New expanders.
6339 (movmd_internal): New insn.
6340 2003-06-06 Richard Sandiford <rsandifo@redhat.com>
6341 * config/h8300/h8300.h (EXTRA_MEMORY_CONSTRAINT): Define.
6342 2003-06-04 Richard Sandiford <rsandifo@redhat.com>
6343 * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxnelf for -msx -mn.
6344 * config/h8300/h8300.c (asm_file_start): Use .h8300sxn likewise.
6345 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
6346 * config/h8300/h8300.c (nibble_operand): Fix warning.
6347 * config/h8300/h8300.md (movstricthi): Set adjust_length to no.
6348 (movsi_h8sx): Likewise here and the normal h8sx movhi pattern.
6349 (movsf_h8300h): Disable for TARGET_H8300SX.
6350 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
6351 * config/h8300/h8300.h (PREDICATE_CODES): Add h8300_ldm_parallel,
6352 h8300_stm_parallel and h8300_return_parallel.
6353 * config/h8300/h8300.c (h8300_push_pop, h8300_stack_offset_p,
6354 h8300_ldm_stm_regno, h8300_ldm_stm_parallel, h8300_ldm_parallel,
6355 h8300_stm_parallel, h8300_return_parallel): New functions.
6356 (h8300_expand_prologue): Don't enforce ldm/stm register alignment
6357 if TARGET_H8300SX. Use h8300_push_pop.
6358 (h8300_expand_epilogue): Likewise. Try to merge the return insn
6359 and final pop when generating h8sx code. Always emit some form
6360 of return insn.
6361 * config/h8300/h8300.md: Don't enforce register alignment in
6362 stm peepholes if TARGET_H8300SX.
6363 (ldm_h8300s, stm_h8300s, return_h8sx): New patterns.
6364 (ldm_h8300s_[234], stm_h8300_[234]): Disable.
6365 (epilogue): Expect h8300_expand_epilogue to emit a return insn.
6366 2003-06-03 Richard Sandiford <rsandifo@redhat.com>
6367 * config/h8300/t-h8300 (MULTILIB_OPTIONS): Add a -msx multilib.
6368 (MULTILIB_DIRNAMES): Add a directory for it.
6369 (MULTILIB_MATCHES): Delete.
6370 2003-05-28 Richard Sandiford <rsandifo@redhat.com>
6371 * final.c (walk_alter_subreg): Handle addresses with subregs
6372 inside a ZERO_EXTEND or AND.
6373 * config/h8300/h8300-protos.h (h8300_get_index): Declare.
6374 * config/h8300/h8300.h (INDEX_REG_CLASS): Set to GENERAL_REGS
6375 if TARGET_H8300SX.
6376 (GO_IF_LEGITIMATE_ADDRESS): Use h8300_get_index.
6377 * config/h8300/h8300.c (print_operand_address): Handle @(dd,RnL.b),
6378 @(dd,Rn.w) and @(dd,ERn.L).
6379 (h8300_displacement_size): Take the whole address as argument.
6380 (h8300_classify_operand, h8300_short_move_mem_p): Adjust accordingly.
6381 2003-05-28 Richard Sandiford <rsandifo@redhat.com>
6382 * config/mips/mips-protos.h (h8300_operands_match_p): Declare.
6383 (h8sx_mergeable_memrefs_p): Declare.
6384 * config/h8300/h8300.h (HAVE_POST_DECREMENT): Define to TARGET_H8300SX.
6385 (HAVE_PRE_INCREMENT): Likewise.
6386 (GO_IF_LEGITIMATE_ADDRESS): Accept pre/post increment/decrement
6387 addresses for TARGET_H8300SX,
6388 * config/h8300/h8300.c (print_operand_address): Deal with PRE_INC
6389 and POST_DEC.
6390 (movb_length_table, movl_length_table): New tables.
6391 (movw_length_table): Define to movb_length_table.
6392 (h8300_displacement_size): New, split out from...
6393 (h8300_classify_address): ...here. Handle pre/post inc/dec.
6394 (h8300_short_immediate_length): Allow H8OP_MEM_COMPLEX operands.
6395 (h8300_insn_length_from_table): Add cases for movb, movw and movl.
6396 (h8sx_mergeable_memrefs_p, h8300_operands_match_p): New functions.
6397 (output_plussi): Use add.l #xx:3,Rn and sub.l #xx:3,Rn for h8sx.
6398 (compute_plussi_length, compute_plussi_cc): Update accordingly.
6399 (h8sx_unary_shift_operator): Get the mode from the operator.
6400 (binary_shift_operator): Likewise.
6401 * config/h8300/h8300.md: If a peephole2 applies gen_lowpart to
6402 a memory reference, check whether the reference is offsettable.
6403 (length_table): Add movb, movw and movl.
6404 (movqi): Add new h8sx pattern. Don't force one operand to be a
6405 register when generating h8sx code.
6406 (movhi, movsi, movsf): Likewise.
6407 (movstrictqi): Use the length_table attribute.
6408 (movstricthi): Likewise. Add h8sx alternative for mov.w #xx:3,Rn.
6409 (addqi3): Split into a define_expand and define_insn. Don't accept
6410 memory operands in the expander. Use h8300_operands_match_p to
6411 check for matching operands in the define_insn.
6412 (subqi3, negqi2, one_cmplqi2): Likewise.
6413 (add[hs]i3): Don't accept memory operands in the expander. Likewise
6414 in any patterns that are unused in h8sx code. In the h8sx patterns,
6415 use h8300_operands_match_p to check whether operands match.
6416 (sub[hs]i3, and[hi]3, ior[hs]i3, xor[hs]i3, neg[hsi]3,
6417 one_cmpl[hs]i3): Likewise.
6418 (andqi3, iorqi3, xorqi3): Likewise. Don't call fix_bit_operand
6419 in the expander.
6420 2003-05-23 Richard Sandiford <rsandifo@redhat.com>
6421 * config/h8300/h8300-protos.h (expand_a_shift): Return a bool.
6422 (h8300_insn_length_from_table): Add a second parameter.
6423 (output_h8sx_shift): Declare.
6424 * config/h8300/h8300.h (OK_FOR_W, OK_FOR_Y): New macros.
6425 (EXTRA_CONSTRAINT): Replace with...
6426 (EXTRA_CONSTRAINT_STR): ...this. Use OK_FOR_W and OK_FOR_Y.
6427 (CONSTRAINT_LEN): Define, returning 2 for 'W' and 'Y'.
6428 (PREDICATE_CODES): Add entries for h8sx_unary_shift_operator
6429 and h8sx_binary_shift_operator.
6430 * config/h8300/h8300.c (two_insn_adds_subs_operand): Return false
6431 for TARGET_H8300SX.
6432 (bit_operand): Replace use of EXTRA_CONSTRAINT with OK_FOR_U.
6433 (bit_memory_operand, fix_bit_operand): Likewise.
6434 (h8300_length_table_for_insn): Remove.
6435 (h8300_classify_operand): Fix check for 16-bit operands in 32-bit
6436 instructions.
6437 (h8300_short_immediate_length, h8300_binary_length): New functions.
6438 (h8300_insn_length_from_table): Add an opcodes parameter. Rework.
6439 (output_plussi): Use sub to add negative constants.
6440 (compute_plussi_length): Adjust accordingly.
6441 (h8sx_single_shift_type): New enum.
6442 (h8sx_single_shift, h8sx_unary_shift_operator,
6443 h8sx_binary_shift_operator, output_h8sx_shift): New functions.
6444 (expand_a_shift, expand_a_rotate): Emit nothing if the shift is a
6445 single h8sx instruction. Return false in this case.
6446 * config/h8300/h8300.md (length_table): Add short_immediate.
6447 (length): Pass the operand array to h8300_insn_length_from_table.
6448 (adjust_length): Assume "no" for insns with a length_table attribute.
6449 (*cmphi_h8300hs, cmpsi): Add alternatives for #xx:3.
6450 (*addhi3_h8300hs): Don't use for h8sx.
6451 (*addhi3_h8sx): New pattern, with alternatives for add.w #xx:3
6452 and sub.w #xx:3.
6453 (ashl[qhs]i3, lshr[qhs]i3, ashr[qhs]i3, rotl[qhs]i3): Change operand
6454 1's predicate to nonimmediate_operand. Only skip default expansion
6455 if expand_a_shift or expand_a_rotate returns true. Add new patterns
6456 for single h8sx shift instructions.
6457 2003-05-22 Alexandre Oliva <aoliva@redhat.com>
6458 * config/h8300/h8300.c (nibble_operand): Split out of...
6459 (reg_or_nibble_operand): ... this.
6460 * config/h8300/h8300.h (PREDICATE_CODES): Added nibble_operand.
6461 * config/h8300/h8300.md: (mulqihi3, mulhisi3, umulqihi3,
6462 umulhisi3): Introduce expand, and introduce separate insns for
6463 sign- or zero-extended REG and already-extended CONST_INT.
6464 2003-05-20 Richard Sandiford <rsandifo@redhat.com>
6465 * config/h8300/h8300.c (h8300_unary_length): Fix miscounting.
6466 * config/h8300/h8300.md (subqi3): Generalize for h8sx.
6467 (subhi3): Likewise. Don't accept immediates for operand 1.
6468 Remove the early clobber from second alternative of the h8300s pattern.
6469 (subsi3): Generalize for h8sx. Force operand 2 into a register
6470 on plain h8300 targets.
6471 (subsi3_h8300): Use h8300_dst_operand for consistency with expander.
6472 (subsi3_h8300h): Generalize for h8sx.
6473 (one_cmplqi2, one_cmplhi2, one_cmplsi2): Likewise.
6474 2003-05-19 Alexandre Oliva <aoliva@redhat.com>
6475 * config/h8300/h8300.c (reg_or_nibble_operand): New.
6476 * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
6477 (TARGET_H8300SXMUL): New.
6478 (CONST_OK_FOR_P): New.
6479 (CONST_OK_FOR_LETTER_P): Adjust.
6480 * config/h8300/h8300.md (mulqihi3, mulhisi3, umulqihi3,
6481 umulhisi3): Accept 4-bit immediate on H8SX.
6482 (mulhi3, mulsi3, smulsi3_highpart, umulsi3_highpart): New.
6483 (udivsi3, divhi3, udivsi3, divsi3): New.
6484 2003-05-19 Richard Sandiford <rsandifo@redhat.com>
6485 * config/h8300/h8300-protos.h (h8300_insn_length_from_table): Declare.
6486 * config/h8300/h8300.h (OK_FOR_Q): New macro.
6487 (EXTRA_CONSTRAINT): Use it to check the 'Q' constraint.
6488 (PREDICATE_CODES): Add h8300_src_operand and h8300_dst_operand.
6489 Add ADDRESSOF to the bit_operand entry.
6490 * config/h8300/h8300.c (h8300_dst_operand): New predicate.
6491 (h8300_src_operand): Likewise.
6492 (bit_operand): Check nonimmediate_operand rather than general_operand.
6493 Accept any nonimmediate_operand in h8sx code.
6494 (h8300_and_costs): Initialize operands[1].
6495 (h8300_rtx_costs) <AND>: Return false if the operands aren't valid.
6496 (h8300_operand_class): New enum.
6497 (h8300_length_table): New typedef.
6498 (addb_length_table, addw_length_table, addl_length_table,
6499 logicl_length_table): New tables.
6500 (logicb_length_table, logicw_length_table): New macros.
6501 (h8300_classify_operand, h8300_length_from_table,
6502 h8300_length_table_for_insn, h8300_unary_length,
6503 h8300_insn_length_from_table): New functions.
6504 (output_plussi): Only use adds and subs for register destinations.
6505 Disable redundant clause.
6506 (compute_plussi_cc): Likewise.
6507 (compute_plussi_length): Likewise. Use h8300_length_from_table
6508 to work out the length of an insn.
6509 (output_logical_op): Only use narrower immediate instructions
6510 if the destination is a register.
6511 (compute_logical_op_cc): Likewise.
6512 (compute_logical_op_length): Likewise. Use h8300_length_from_table.
6513 (h8300_adjust_insn_length): Tighten check for reg<->mem moves.
6514 * config/h8300/h8300.md (length_table): New attribute.
6515 (length): When an instruction has a length_table attribute, use
6516 h8300_insn_length_from_table to calculate its default length.
6517 (cmpqi): Use h8300_dst_operand for the first operand and
6518 h8300_src_operand for the second.
6519 (cmphi, *cmphi_h8300hs, cmpsi, negqi2, neghi2, neghi2_h8300h, negsi2,
6520 negsi2_h8300h, addqi3, addhi3, *addhi3_h8300, *addhi3_h8300hs, addsi3,
6521 addsi_h8300, addsi_h8300h, andhi3, andsi3, iorhi3,
6522 iorsi3, xorhi3, xorsi3): Likewise.
6523 (andqi3): Use h8300_src_operand for operand 2. Adjust the condition
6524 so that it allows any combination of operands for TARGET_H8300SX.
6525 (iorqi3, xorqi3): Likewise.
6526 (cmpqi): Use the length_table attribute.
6527 (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, andqi3, iorqi3,
6528 xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
6529 (cmpqi): Add 'Q' constraint.
6530 (*cmphi_h8300hs, cmpsi, addqi, *addhi3_h8300hs, addsi_h8300h, andqi3,
6531 iorqi3, xorqi3, negqi2, neghi2_h8300h, negsi2_h8300h): Likewise.
6532 2003-05-14 Richard Sandiford <rsandifo@redhat.com>
6533 * config/h8300/h8300.h (MASK_H8300SX): New macro.
6534 (TARGET_H8300S): True for both -ms and -msx.
6535 (TARGET_H8300SX): New macro.
6536 (TARGET_SWITCHES): Add entries for -msx and -mno-sx.
6537 * config/h8300/h8300.c (asm_file_start): Write .h8300sx for -msx.
6538 * config/h8300/elf.h (LINK_SPEC): Use -m h8300sxelf for -msx.
6539 * config/h8300/t-h8300 (MULTILIB_MATCHES): Use -ms multilibs for -msx.
6540 [Temporary change.]
6541 2003-02-28 Alexandre Oliva <aoliva@redhat.com>
6542 * config/h8300/h8300.h (SIZE_TYPE, PTRDIFF_TYPE): Use short with
6543 16-bit pointers and 32-bit ints.
6544 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Accept
6545 CONST_DOUBLE with mode no wider than SImode.
6546 * config/h8300/h8300.md (extendqisi2_h8300): Add constraints for
6547 output operand.
6548 2003-02-27 Alexandre Oliva <aoliva@redhat.com>
6549 * config/h8300/h8300.c (general_operand_src): Match CONSTANT_P_RTX
6550 or SUBREG thereof.
6551 * config/h8300/h8300.h (PREDICATE_CODES): Adjust.
6552 2003-02-22 Alexandre Oliva <aoliva@redhat.com>
6553 * config/h8300/h8300.c (dosize): Truncate sign * size to Pmode.
6554
6555 2004-05-28 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
6556
6557 * config.gcc (i[34567]86-*-mingw32*): Enable threads by default.
6558
6559 2004-07-07 Per Bothner <per@bothner.com>
6560
6561 * flow.c (attempt_auto_inc): Remove now-redundant PUT_CODE.
6562
6563 2004-07-07 Mike Stump <mrs@apple.com>
6564
6565 * darwin.h (ASM_OUTPUT_LABELREF): Fix -fno-leading-underscore.
6566 * darwin.c (machopic_non_lazy_ptr_name, machopic_stub_name)
6567 (machopic_finish): Likewise.
6568
6569 2004-07-07 Richard Henderson <rth@redhat.com>
6570
6571 * tree-ssa-dom.c (simplify_switch_and_lookup_avail_expr): Look
6572 through any value-preserving cast.
6573
6574 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
6575
6576 * function.c (assign_parm_find_data_types): Call
6577 FUNCTION_ARG_PASS_BY_REFERENCE only if it's defined.
6578
6579 2004-07-07 Steven Bosscher <stevenb@suse.de>
6580
6581 * tree-cfg.c (group_case_labels): Remove case labels that have
6582 the same target as the default case.
6583
6584 2004-07-07 Steven Bosscher <stevenb@suse.de>
6585
6586 * tree-inline.c (optimize_inline_calls): Set DECL_INLINED_FNS
6587 regardless of DECL_LANG_SPECIFIC being present or not.
6588 * tree.h (DECL_NUM_STMTS): Purge.
6589
6590 2004-07-07 Andrew Pinski <apinski@apple.com>
6591
6592 * configure: Regenerate with the right autoconf.
6593
6594 2004-07-07 David Edelsohn <edelsohn@gnu.org>
6595
6596 * ifcvt.c (total_bb_rtx_cost): New function.
6597 (find_if_case_1): Compare rtx_cost of basic block to cost of
6598 BRANCH_COST insns.
6599 (find_if_case_2): Same.
6600
6601 2004-07-07 Eric Botcazou <ebotcazou@libertysurf.fr>
6602
6603 PR target/10567
6604 * config/sparc/sparc.c (load_pic_register): Honor flag_delayed_branch.
6605 (output_return): Likewise.
6606 (output_sibcall): Abort if !flag_delayed_branch.
6607 (sparc_function_ok_for_sibcall): Return 0 if !flag_delayed_branch.
6608 (emit_and_preserve): New function.
6609 (sparc_output_mi_thunk): Use it. Honor flag_delayed_branch. Emit an
6610 indirect jump to the thunked-to function if !flag_delayed_branch.
6611 * config/sparc/sparc.md (delayed_branch): New attribute.
6612 (load_pcrel_sym): Honor flag_delayed_branch. Use above
6613 attribute to compute the length of the insn.
6614 (goto_handler_and_restore): Likewise.
6615
6616 2004-07-07 Andrew Pinski <apinski@apple.com>
6617
6618 PR tree-optimization/15777
6619 * fold-const.c (fold_single_bit_test): Fold the x^1 expression.
6620
6621 * expr.c (expand_expr_real_1): Fix formating.
6622 BUFFER_REF and IN_EXPR are dead.
6623 * fold-const.c (non_lvalue): BUFFER_REF is dead.
6624 * tree-inline.c (estimate_num_insns_1): Likewise.
6625 * tree-pretty-print.c (dump_generic_node): BUFFER_REF,
6626 IN_EXPR, SET_LE_EXPR, and CARD_EXPR are dead.
6627 * tree.def (BUFFER_REF, IN_EXPR, SET_LE_EXPR, CARD_EXPR): Kill.
6628
6629 2004-07-07 H.J. Lu <hongjiu.lu@intel.com>
6630
6631 * collect2.c (dump_file): Don't call cplus_demangle if
6632 HAVE_LD_DEMANGLE is defined.
6633 (main): Pass "--demangle" to ld if no_demangle is not 0 and
6634 HAVE_LD_DEMANGLE is defined. Don't set current_demangling_style
6635 if HAVE_LD_DEMANGLE is defined.
6636
6637 * configure.ac (--with-demangler-in-ld): Added
6638 (HAVE_LD_DEMANGLE): Define if ld supports --demangle when
6639 --with-demangler-in-ld is used.
6640 * config.in: Regenerated.
6641 * configure: Likewise.
6642
6643 2004-07-07 Roger Sayle <roger@eyesopen.com>
6644
6645 * config/rs6000/rs6000.c (struct processor_costs): Add new fields
6646 for simple floating point operations "fp", double precision
6647 multiplication "dmul", and single and double precision division
6648 "sdiv" and "ddiv". Update all CPU variant tables as appropriate.
6649 (ppc630_cost): New table split from ppc620_cost, to distinguish
6650 differences in floating point latencies.
6651 (rs6000_override_options): Use ppc630_cost for PROCESSOR_PPC630.
6652 (rs6000_rtx_costs): Add support for single and double precision
6653 floating point addition, subtraction, multiplication, division,
6654 fused-multiply-add, fused-multiply-sub, negation, absolute value
6655 and negative absolute value. Tweak MEM case to use prefered idiom.
6656
6657 2004-07-07 Richard Henderson <rth@redhat.com>
6658
6659 * tree-flow-inline.h (may_propagate_copy): Move...
6660 * tree-ssa-copy.c (may_propagate_copy): ... here. Fail if we
6661 attempt to copy between types requiring conversion.
6662 * tree-flow.h (may_propagate_copy): Update decl.
6663 * tree-ssa-dom.c (cprop_operand): Tidy redundant tests.
6664
6665 2004-07-07 Jakub Jelinek <jakub@redhat.com>
6666
6667 * config/i386/i386.c (override_options): Don't set x86_prefetch_sse
6668 from -mtune= option.
6669
6670 2004-07-07 Alexandre Oliva <aoliva@redhat.com>
6671
6672 * builtins.c: Rename movstr*, except for movstrict*, to
6673 movmem* and clrstr* to clrmem*.
6674 * expr.c: Likewise.
6675 * expr.h: Likewise.
6676 * genopinit.c: Likewise.
6677 * integrate.c: Likewise.
6678 * local-alloc.c: Likewise.
6679 * optabs.c: Likewise.
6680 * optabs.h: Likewise.
6681 * config/alpha/alpha.h: Likewise.
6682 * config/alpha/alpha.md: Likewise.
6683 * config/arm/arm-protos.h: Likewise.
6684 * config/arm/arm.c: Likewise.
6685 * config/arm/arm.md: Likewise.
6686 * config/avr/avr.md: Likewise.
6687 * config/c4x/c4x.c: Likewise.
6688 * config/c4x/c4x.md: Likewise.
6689 * config/frv/frv.md: Likewise.
6690 * config/i386/i386-protos.h: Likewise.
6691 * config/i386/i386.c: Likewise.
6692 * config/i386/i386.h: Likewise.
6693 * config/i386/i386.md: Likewise.
6694 * config/i860/i860.c: Likewise.
6695 * config/i860/i860.md: Likewise.
6696 * config/ip2k/ip2k.md: Likewise.
6697 * config/ip2k/libgcc.S: Likewise.
6698 * config/ip2k/t-ip2k: Likewise.
6699 * config/m32r/m32r.c: Likewise.
6700 * config/m32r/m32r.md: Likewise.
6701 * config/mcore/mcore.md: Likewise.
6702 * config/mips/mips.c: Likewise.
6703 * config/mips/mips.md: Likewise.
6704 * config/ns32k/ns32k.c: Likewise.
6705 * config/ns32k/ns32k.h: Likewise.
6706 * config/ns32k/ns32k.md: Likewise.
6707 * config/pa/pa.c: Likewise.
6708 * config/pa/pa.md: Likewise.
6709 * config/pdp11/pdp11.h: Likewise.
6710 * config/pdp11/pdp11.md: Likewise.
6711 * config/rs6000/rs6000.c: Likewise.
6712 * config/rs6000/rs6000.md: Likewise.
6713 * config/s390/s390-protos.h: Likewise.
6714 * config/s390/s390.c: Likewise.
6715 * config/s390/s390.md: Likewise.
6716 * config/sh/lib1funcs.asm: Likewise.
6717 * config/sh/sh.c: Likewise.
6718 * config/sh/sh.md: Likewise.
6719 * config/sh/t-sh: Likewise.
6720 * config/sparc/sparc.h: Likewise.
6721 * config/vax/vax.md: Likewise.
6722 * config/xtensa/xtensa.c: Likewise.
6723 * config/xtensa/xtensa.md: Likewise.
6724 * doc/invoke.texi: Likewise.
6725 * doc/md.texi: Likewise.
6726 * doc/rtl.texi: Likewise.
6727
6728 2004-07-07 Richard Sandiford <rsandifo@redhat.com>
6729
6730 PR target/16407
6731 * config/mips/mips-protos.h (mips_declare_common_object): Declare.
6732 * config/mips/mips.c (mips_declare_common_object): New function,
6733 mostly split out from...
6734 (mips_output_aligned_decl_common): ...here.
6735 * config/mips/mips.h (ASM_OUTPUT_LOCAL): Remove in favor of...
6736 (ASM_OUTPUT_ALIGNED_LOCAL): ...this new definition.
6737 * config/mips/iris6.h (ASM_OUTPUT_ALIGNED_LOCAL): Undefine this
6738 rather than ASM_OUTPUT_LOCAL. Call mips_declare_common_object.
6739
6740 2004-07-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6741
6742 PR c/16392
6743 * function.c (assign_parms): Fix typo from previous change.
6744
6745 2004-07-07 Jason Merrill <jason@redhat.com>
6746
6747 PR c++/15815
6748 * doc/extend.texi (C++ Interface): Correct information and
6749 discourage use.
6750
6751 2004-07-07 Vladimir Makarov <vmakarov@redhat.com>
6752
6753 PR target/16130
6754 PR target/16142
6755 PR target/16143
6756 * config/ia64/ia64.c (ia64_dfa_new_cycle): Reset DFA state for asm
6757 insn.
6758
6759 2004-07-06 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
6760
6761 PR target/1679.
6762 * config/m32r/m32r.c (m32r_function_symbol): New function:
6763 Generate a symbol name RTX with the correct m32r specific flags
6764 set.
6765 (block_move_call): Use new function to generate correct symbol.
6766 * config/m32r/m32r-protos.h: Add prototype for new funcion.
6767 * config/m32r/m32r.h (INITIALIZE_TRAMPOLINE): Use the new
6768 function.
6769
6770 2004-07-07 Nathan Sidwell <nathan@codesourcery.com>
6771
6772 * tree.h (TYPE_BINFO_OFFSET, TYPE_BINFO_VTABLE,
6773 TYPE_BINFO_VIRTUALS, TYPE_BINFO_BASETYPES,
6774 TYPE_BINFO_BASETYPE): Remove.
6775 (BINFO_BASETYPES, BINFO_N_BASETYPES, BINFO_BASETYPE): Rename
6776 to ...
6777 (BINFO_BASE_BINFOS, BINFO_N_BASE_BINFOS, BINFO_BASE_BINFO): ...
6778 here.
6779 (BINFO_BASEACCESSES, BINFO_BASEACCESS): Rename to ...
6780 (BINFO_BASE_ACCESSES, BINFO_BASE_ACCESS): ... here.
6781 (BINFO_INHERITANCE_CHAIN): Redocument as it is actually used.
6782 (struct tree_binfo): Rename base_types to base_binfos.
6783 * alias.c (record_component_aliases): Adjust BINFO macros.
6784 * dbxout.c (dbxout_type): Likewise.
6785 * dwarf2out.c (gen_member_die): Likewise.
6786 * sdbout.c (sdbout_one_type): Likewise.
6787 * tree-dump.c (deque_and_dump): Likewise.
6788 * config/i386/i386.c (classify_argument,
6789 contains_128bit_aligned_vector_p): Likewise.
6790
6791 2004-07-07 Nick Clifton <nickc@redhat.com>
6792
6793 * config/fr30/fr30.c (fr30_setup_incoming_varargs): Change
6794 arguments to match TARGET_SETUP_INCOMING_VARARGS prototype.
6795
6796 2004-07-07 Nathan Sidwell <nathan@codesourcery.com>
6797
6798 * vec.h: Fix the example use.
6799
6800 2004-07-06 Richard Henderson <rth@redhat.com>
6801
6802 * langhooks-def.h (LANG_HOOKS_GIMPLE_BEFORE_INLINING): Remove.
6803 * langhooks.h (struct lang_hooks): Remove gimple_before_inlining.
6804 * tree-inline.c (copy_body_r, setup_one_parameter,
6805 initialize_inlined_parameters, expand_call_inline,
6806 declare_inline_vars): Don't check it.
6807 (expand_calls_inline): Remove old version, rename new version
6808 from gimple_expand_calls_inline.
6809 * tree-optimize.c (execute_gimple): Remove.
6810 (pass_gimple): Don't run anything.
6811
6812 2004-07-06 Joseph S. Myers <jsm@polyomino.org.uk>
6813
6814 * doc/sourcebuild.texi: Use semicolons instead of commas in
6815 section title.
6816
6817 2004-07-06 Richard Henderson <rth@redhat.com>
6818
6819 * tree-sra.c (struct sra_walk_fns): Revert 2004-07-05 change.
6820 (sra_walk_modify_expr, scan_init): Likewise.
6821 (generate_element_zero): Check visited before scanning children.
6822 (generate_element_init): Set visited on error.
6823 (scalarize_init): Handle generate_element_init failure similar
6824 to use_block_copy.
6825
6826 2004-07-06 Joseph S. Myers <jsm@polyomino.org.uk>
6827
6828 * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Define.
6829 (warning, error, pedwarn, sorry): Use ATTRIBUTE_GCC_FE_DIAG.
6830
6831 2004-07-06 Richard Henderson <rth@redhat.com>
6832
6833 * config/i386/i386.c (legitimize_pic_address): Make static.
6834 (legitimize_address): Handle CONST with TLS operand.
6835 (ix86_expand_move): Don't call legitimize_pic_address directly.
6836 * config/i386/i386-protos.h (legitimize_pic_address): Remove.
6837
6838 2004-07-06 Roger Sayle <roger@eyesopen.com>
6839
6840 * ifcvt.c (struct noce_if_info): Add a Boolean b_unconditional field.
6841 (noce_try_sign_mask): Tweak rtx_cost check if t is evaluated anyway.
6842 (noce_process_if_block): Initialize if_info.b_unconditional if insn_b
6843 is currently executed unconditionally, i.e. not in "else_bb".
6844
6845 2004-07-06 Steven Bosscher <stevenb@suse.de>
6846
6847 * config/alpha/alpha.c (alpha_use_dfa_pipeline_interface): Remove.
6848 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
6849 * config/arm/arm.c (arm_use_dfa_pipeline_interface): Remove.
6850 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
6851 * config/frv/frv.c (frv_use_dfa_pipeline_interface): Remove.
6852 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
6853 * config/i386/i386.c (ia32_use_dfa_pipeline_interface): Remove.
6854 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
6855 * config/ia64/ia64.c (ia64_use_dfa_pipeline_interface): Remove.
6856 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
6857 * config/pa/pa.c (hhpa_use_dfa_pipeline_interface): Remove.
6858 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
6859 * config/sparc/sparc.c (sparc_use_dfa_pipeline_interface): Remove.
6860 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
6861 * config/v850/v850.c (v850_use_dfa_pipeline_interface): Remove.
6862 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define to hook_int_void_1.
6863
6864 2004-07-06 Daniel Berlin <dberlin@dberlin.org>
6865
6866 * dojump.c (do_jump): REFERENCE_EXPR is dead.
6867 * expr.c (expand_expr_real_1): Ditto.
6868 * tree-inline.c (estimate_num_insns_1): Ditto.
6869 * tree-pretty-print.c (dump_generic_node): Ditto.
6870 (op_symbol): Ditto.
6871 * tree.def: Ditto.
6872
6873 2004-07-06 Daniel Berlin <dberlin@dberlin.org>
6874
6875 * tree-ssa-pre.c (reference_node_pool): New pool.
6876 (find_or_generate_expression): Class 'r' is okay too.
6877 (create_value_expr_from): Ditto.
6878 (add_to_sets): LHS should not include vuses.
6879 (eliminate): Ditto.
6880 (compute_avail): Reverse ordering of tests.
6881 Valuize INDIRECT_REF as well.
6882
6883 2004-07-06 Richard Sandiford <rsandifo@redhat.com>
6884
6885 PR rtl-optimization/16380
6886 * loop.c (check_dbra_loop): Sink comparison instructions if they
6887 do something other than set cc0.
6888
6889 2004-07-06 James E Wilson <wilson@specifixinc.com>
6890
6891 * doc/interface.texi (longjmp and automatic variables): Delete
6892 paragraph recommending taking the address of a variable.
6893
6894 2004-07-06 Nathan Sidwell <nathan@codesourcery.com>
6895
6896 * vec.h (VEC_embedded_alloc): Remove.
6897 (VEC_embedded_size, VEC_embedded_init): New.
6898 (VEC_alloc, VEC_reserve, VEC_safe_push, VEC_safe_insert): Add
6899 MEM_STAT_INFO.
6900 (VEC_truncate): New.
6901 (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL.
6902 (vec_embedded_alloc): Remove.
6903 * vec.c (vec_p_reserve, vec_o_reserve): Add MEM_STAT_DECL, adjust.
6904 (vec_embedded_alloc): Remove.
6905
6906 2004-07-06 Mark Mitchell <mark@codesourcery.com>
6907
6908 * Makefile.in (langhooks.o): Do not depend on gt-langhooks.h.
6909 (gt-langhooks.h): Remove.
6910
6911 2004-07-06 George Helffrich <george@gly.bris.ac.uk>
6912
6913 * xcoffout.h (DBX_FINISH_SYMBOL): Fix typo.
6914
6915 2004-07-06 Eric Botcazou <ebotcazou@libertysurf.fr>
6916
6917 * config/sparc/sparc.c (get_pc_symbol): Rename into
6918 add_pc_to_pic_symbol.
6919 (get_pc_symbol_name): Rename into add_pc_to_pic_symbol_name.
6920 (load_pic_register): Account for previous changes.
6921 Use reg_names. Don't create the label twice.
6922 * config/sparc/sparc.md (UNSPEC_GET_PC): Rename into
6923 UNSPEC_LOAD_PCREL_SYM.
6924 (get_pc): Rename into load_pcrel_sym. Add predicate to
6925 operands. Remove condition.
6926
6927 2004-07-06 Nathan Sidwell <nathan@codesourcery.com>
6928
6929 * dbxout.c (dbxout_type): Don't test whether the binfo slot of
6930 RECORD, UNION & QUAL_UNION is actually a binfo.
6931
6932 * tree.h (TREE_VIA_VIRTUAL): Rename to ...
6933 (BINFO_VIRTUAL_P): ... here. Require TREE_BINFO only.
6934 (BINFO_MARKED, BINFO_FLAG_[16]): New binfo flags.
6935 * dbxout.c (dbxout_type): Use BINFO_VIRTUAL_P.
6936 * dwarf2out.c (add_data_member_location_attribute): Likewise.
6937 (gen_inheritance_die): Likewise.
6938 * tree-dump.c (deque_and_dump): Likewise.
6939 * doc/c-tree.texi (Binfos): Add under reconstruction note.
6940
6941 2004-07-06 Steven Bosscher <stevenb@suse.de>
6942
6943 * config/mcore/mcore.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
6944 Define.
6945 * config/mcore/mcore.md: Model memory latency with a simple DFA
6946 pipeline description instead of a define_function_unit.
6947
6948 2004-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6949
6950 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_VAR_MOD_TYPE_P): Extra arg.
6951 * langhooks.h (var_mod_type_p): Likewise.
6952 * c-decl.c (finish_decl): Add extra arg to variably_modified_type_p.
6953 * expr.c (count_type_elements): Properly handle return from
6954 array_type_nelts and properly test for overflow.
6955 * gimplify.c (gimplify_init_constructor): Properly handle return
6956 from array_type_nelts.
6957 (gimplify_addr_expr): Remove redundant clear of TREE_SIDE_EFFECTS.
6958 * integrate.c (copy_decl_for_inlining): Correct comments.
6959 * tree-inline.c (remap_decl): Update comments, remove dead code,
6960 and copy DECL_FIELD_OFFSET and DECL_QUALIFIER, if they exist.
6961 (remap_type): Only remap if variably modified by vars in function
6962 being inlined.
6963 (copy_body_r): Use compatible_type langhooks to see when can fold.
6964 (setup_one_parameter): Don't remap type.
6965 (inline_forbidden_p_1): Add arg to variably_modified_type_p.
6966 * tree.c (recompute_tree_invarant_for_addr_expr): Properly
6967 compute TREE_INVARIANT for decl case.
6968 (find_var_from_fn): New function.
6969 (variably_modified_type_p): Add arg and call new function.
6970 * tree.h (variably_modified_type_p): Add extra arg.
6971
6972 2004-07-05 Eric Botcazou <ebotcazou@libertysurf.fr>
6973
6974 * config/sparc/sparc.md (nonlocal_goto): Remove disabled code.
6975 (goto_handler_and_restore_v9): Delete disabled insn.
6976 (goto_handler_and_restore_v9_sp64): Likewise.
6977
6978 2004-07-05 Roger Sayle <roger@eyesopen.com>
6979
6980 * calls.c (load_register_parameters): Call expand_shift instead
6981 of expand_binop with ashl_optab (or other shift optab) directly.
6982 * expr.c (emit_group_load, emit_group_store): Likewise.
6983 * function.c (assign_parm_setup_block): Likewise.
6984 * stmt.c (shift_return_value): Likewise.
6985
6986 2004-07-05 Jakub Jelinek <jakub@redhat.com>
6987
6988 * expr.c (expand_assignment): Disable the bitfield += optimizations.
6989
6990 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
6991
6992 * doc/sourcebuild.texi: Revert previous patch.
6993
6994 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
6995
6996 * c-decl.c, config/m32r/m32r.c, expr.c, optabs.c: Don't check
6997 TARGET_MEM_FUNCTIONS.
6998 * system.h: Poison TARGET_MEM_FUNCTIONS.
6999 * libfuncs.h (LTI_bcopy, LTI_bcmp, LTI_bzero, bcopy_libfunc,
7000 bcmp_libfunc, bzero_libfunc): Remove.
7001 * optabs.c (init_obtabs): Don't set bcopy_libfunc, bcmp_libfunc or
7002 bzero_libfunc.
7003 * doc/tm.texi (TARGET_MEM_FUNCTIONS): Remove.
7004 * doc/standards.texi: Don't mention calling BSD string functions.
7005 * doc/invoke.texi: Likewise. Mention that memmove may be called.
7006 * config/vax/t-memfuncs: New.
7007 * config/memcmp.c, config/memcpy.c, config/memmove.c,
7008 config/memset.c: New.
7009 * config/pdp11/t-pdp11 (LIB2FUNCS_EXTRA): Use these files.
7010 * config.gcc (vax-*-bsd*, vax-*-sysv*, vax-*-ultrix*): Use
7011 vax/t-memfuncs.
7012 * config/alpha/alpha.h, config/arc/arc.h, config/arm/arm.h,
7013 config/avr/avr.h, config/c4x/c4x.h, config/cris/aout.h,
7014 config/elfos.h, config/gnu.h, config/h8300/h8300.h,
7015 config/i386/gas.h, config/ia64/ia64.h, config/interix.h,
7016 config/ip2k/ip2k.h, config/lynx-ng.h, config/m32r/m32r.h,
7017 config/mcore/mcore.h, config/mips/mips.h, config/mmix/mmix.h,
7018 config/netbsd.h, config/openbsd.h, config/pa/pa.h,
7019 config/rs6000/rs6000.h, config/rtems.h, config/s390/s390.h,
7020 config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
7021 config/svr3.h: Don't define TARGET_MEM_FUNCTIONS.
7022
7023 2004-07-05 Richard Henderson <rth@redhat.com>
7024
7025 * function.c (assign_parm_setup_reg): Properly rename variables in
7026 FUNCTION_ARG_CALLEE_COPIES section.
7027
7028 2004-07-05 Zack Weinberg <zack@codesourcery.com>
7029
7030 * tree-mudflap.c: Include cgraph.h.
7031 (mf_init_extern_trees): Rename to mudflap_init. Export.
7032 Rewrite to create synthetic declarations instead of looking
7033 up declarations from mf-runtime.h.
7034 (mf_make_builtin, mf_make_cache_struct_type): New functions.
7035 (mf_cache_shift_decl, mf_cache_mask_decl, mf_unregister_fndecl):
7036 Correct commentary.
7037 (execute_mudflap_function_decls, mudflap_register_call):
7038 Don't call mf_init_extern_trees.
7039 (mudflap_finish_file): Use cgraph_build_static_cdtor.
7040
7041 * tree-mudflap.h: Update prototypes.
7042 * c-mudflap.c: Delete file.
7043 * c-common.c: Include tree-mudflap.h.
7044 (c_common_nodes_and_builtins): Call mudflap_init if appropriate.
7045 * Makefile.in: Remove all references to c-mudflap.o.
7046 Update dependencies.
7047
7048 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7049
7050 * pa.md (prefetch, prefetch_32, prefetch_64): Only allow short
7051 displacements with the spatial-locality cache-control completer.
7052
7053 2004-07-05 Zack Weinberg <zack@codesourcery.com>
7054
7055 * langhooks.c: Don't include gt-langhooks.h.
7056 (var_labelno): Delete.
7057 (lhd_set_decl_assembler_name): Do not append a distinguishing
7058 number to file-scope internal-linkage declarations for the first
7059 input file, even if they have DECL_CONTEXT set. Use DECL_UID of
7060 the declaration itself (if at block scope), or its containing
7061 TRANSLATION_UNIT_DECL (if at file scope) for the distinguishing
7062 number.
7063
7064 * opts.c (cur_in_fname): New global.
7065 * opts.h: Declare it.
7066 * tree.c: Include opts.h.
7067 (make_node_stat): If creating a TRANSLATION_UNIT_DECL, give it
7068 DECL_UID equal to cur_in_fname.
7069 (copy_node_stat): Do not change DECL_UID when copying a
7070 TRANSLATION_UNIT_DECL.
7071 (build_common_tree_nodes): Adjust next_decl_uid to reserve the
7072 range 0 .. num_in_fnames-1 for TRANSLATION_UNIT_DECLs.
7073
7074 * c-decl.c (c_static_assembler_name): Delete.
7075 * c-tree.h (c_static_assembler_name): Delete prototype.
7076 * c-lang.c, objc/objc-lang.c: Don't override
7077 LANG_HOOKS_SET_DECL_ASSEMBLER_NAME.
7078
7079 * Makefile.in (tree.o): Update dependencies.
7080 (GTFILES): Remove langhooks.c.
7081
7082 2004-07-05 Roger Sayle <roger@eyesopen.com>
7083
7084 * fold-const.c (fold) <TRUNC_MOD_EXPR>: Optimize unsigned modulus
7085 by a power of two into a bit-wise AND, i.e. "X % C" as "X & (C-1)".
7086 Normalize "X % C" as "X % -C" for signed modulus and negative C.
7087 Optimize "X % -Y" as "X % Y" for signed modulus.
7088 <EQ_EXPR>: Recursively call "fold" when transforming "(X % Y) == 0"
7089 into "((unsigned) X % Y) == 0".
7090
7091 2004-07-05 Joseph S. Myers <jsm@polyomino.org.uk>
7092
7093 * sourcebuild.texi (Config Fragments): Use @comma{} in
7094 cross-reference to section title.
7095
7096 2004-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7097
7098 * tree.h (DECL_SEEN_IN_BIND_EXPR_P): New macro.
7099 * gimplify.c (gimple_add_tmp_var, gimplify_bind_expr): Use it.
7100 (gimplify_target_expr, gimplify_expr): Likewise.
7101 (copy_if_shared_r): No longer need special case for BIND_EXPR.
7102 (unshare_body, unvisit_body): Only look at nested if BODY_P is
7103 whole function.
7104 (gimplify_compound_lval): See if we can strip any useless conversion.
7105 (gimplify_modify_expr, gimplify_modify_expr_to_memcpy): Take size
7106 from RHS, not LHS.
7107 (gimplify_modify_expr_to_memset): Likewise.
7108 (gimplify_expr, case CONSTRUCTOR): Handle use as statement.
7109 * tree-inline.c (setup_one_parameter): Use DECL_SEEN_IN_BIND_EXPR_P.
7110 (declare_inline_vars): Likewise.
7111 (walk_type_fields): New function.
7112 (walk_tree): Use it.
7113 * tree-nested.c (create_tmp_var_for): Show seen in BIND_EXPR.
7114
7115 * tree-sra.c (struct sra_walk_fns): Init function now returns bool.
7116 (sra_walk_modify_expr): Allow init function to fail.
7117 (scan_init): Now returns bool.
7118 (generate_element_init): If can't understand INIT, return false.
7119 (scalarize_init): Return false if generate_element_init does.
7120
7121 * tree-pretty-print.c (dump_generic_node, case ARRAY_TYPE): Properly
7122 print bounds.
7123
7124 * expr.c (expand_expr_real_1, case SWITCH_EXPR): Don't check against
7125 bounds if bounds aren't constant.
7126
7127 * tree-cfg.c (verify_expr): Use CHECK_OP in binary case.
7128
7129 * function.c, langhooks-def.h, langhooks.h: Move max_size hook
7130 to type hooks; remove bogus PARAMS.
7131
7132 2004-07-05 Nathan Sidwell <nathan@codesourcery.com>
7133
7134 * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Use TYPE_LANG_SLOT_1.
7135 * dwarf2out.c (add_data_member_location_attribute): Check for
7136 TREE_BINFO.
7137 * tree.c (tree_node_kinds): Add "binfos".
7138 (binfo_lang_slots): New.
7139 (make_node_stat): Add TREE_BINFO.
7140 (make_tree_binfo_stat): New.
7141 (tree_node_structure): Add TREE_BINFO.
7142 * tree.def (TREE_BINFO): New.
7143 * tree.h (REC_OR_UNION_CHECK): Rename to ...
7144 (RECORD_OR_UNION_CHECK): ... here.
7145 (NOT_RECORD_OR_UNION_CHECK): New.
7146 (TRE_VIA_VIRTUAL): Allow TREE_LIST or TREE_BINFO.
7147 (TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD): Adjust for
7148 RECORD_OR_UNION_CHECK.
7149 (TYPE_BINFO): Use RECORD_OR_UNION_CHECK.
7150 (TYPE_LANG_SLOT_1): New.
7151 (BINFO_TYPE, BINFO_OFFSET, BINFO_VTABLE, BINFO_VIRTUALS,
7152 BINFO_BASETYPES, TYPE_BINFO_BASETYPES, BINFO_VPTR_FIELD,
7153 BINFO_BASEACCESSES, BINFO_INHERITANCE_CHAIN): Adjust.
7154 (BINFO_ELTS): Remove.
7155 (BINFO_LANG_SLOT): New.
7156 (struct tree_binfo): New.
7157 (binfo_lang_slots): Declare.
7158 (enum tree_node_structure_enum): Add TS_BINFO.
7159 (union tree_node): Add binfo.
7160 (make_tree_binfo_stat): Declare.
7161 (make_tree_binfo): New.
7162 (enum tree_node_kind): Add binfo_kind.
7163
7164 * objc/objc-act.c (start_class, objc_declare_protocols,
7165 start_protocols): Use TYPE_LANG_SLOT_1.
7166 * objc/objc-act.h (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): Rename
7167 to ...
7168 (CLASS_LANG_SLOT_ELTS, PROTOCOL_LANG_SLOT_ELTS): ... here.
7169 (CLASS_IVARS, CLASS_RAW_IVARS, CLASS_STATIC_TEMPLATE,
7170 CLASS_CATEGORY_LIST, CLASS_PROTOCOL_LIST, CLASS_OWN_IVARS,
7171 PROTOCOL_LIST, PROTOCOL_FORWARD_DECL): Use TYPE_LANG_SLOT_1.
7172
7173 2004-07-05 Steven Bosscher <stevenb@suse.de>
7174
7175 * rtl.h (struct rtx_def): Remove the integrated flag.
7176 Use the return_val flag for MEM_SCALAR_P.
7177 Reshuffle and update flags in CLEAR_RTX_FLAGS.
7178
7179 2004-07-05 Richard Sandiford <rsandifo@redhat.com>
7180
7181 PR target/16357
7182 * config/mips/mips.c (mips_block_move_straight): Pass BLKmode memrefs
7183 to mips_expand_unaligned_load, mips_expand_unaligned_store, and
7184 move_by_pieces.
7185
7186 2004-07-05 Josef Zlomek <zlomekj@suse.cz>
7187
7188 * var-tracking.c: Fix some comments.
7189 (frame_stack_adjust): New.
7190 (vt_stack_adjustments): Init stack_adjust of entry block to
7191 minus stack adjustment of function prologue.
7192 (adjust_stack_reference): Do not adjust if adjustment == 0.
7193 (compute_bb_dataflow): Use plus_constant instead of gen_rtx_PLUS.
7194 (emit_notes_in_bb): Likewise.
7195 (vt_add_function_parameters): Do not adjust locations of
7196 function arguments.
7197 (vt_initialize): Compute the stack adjustment of function
7198 prologue and offset the initial "location" of frame_base_decl
7199 from the stack pointer after prologue.
7200
7201 2004-07-04 Richard Henderson <rth@redhat.com>
7202
7203 * function.c (struct assign_parm_data_all): New.
7204 (struct assign_parm_data_one): New.
7205 (assign_parms_initialize_all, assign_parms_augmented_arg_list,
7206 assign_parm_find_data_types, assign_parms_setup_varargs,
7207 assign_parm_find_entry_rtl, assign_parm_is_stack_parm,
7208 assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl,
7209 assign_parm_adjust_stack_rtl, assign_parm_setup_block_p,
7210 assign_parm_setup_block, assign_parm_setup_reg,
7211 assign_parm_setup_stack, assign_parms_unsplit_complex): Split from ...
7212 (assign_parms): ... here.
7213
7214 2004-07-04 Daniel Berlin <dberlin@dberlin.org>
7215
7216 * tree-ssa-pre.c (bb_value_sets): phi_gen, tmp_gen, new_sets
7217 now are bitmap_set_t's.
7218 (bitmap_insert_into_set): No point in inserting the value if
7219 it's invariant.
7220 (bitmap_set_contains): New function.
7221 (bitmap_set_replace_value): Add comment on why we do it
7222 this way.
7223 (set_contains): Removed.
7224 (bitmap_set_subtract_from_value_set): New name of
7225 set_subtract now that it's arguments are two different
7226 types of sets.
7227 Update callers.
7228 (bitmap_find_leader): Change algorithm used.
7229 (find_or_generate_expression): Update use of functions for new
7230 bitmap sets.
7231 (create_expression_by_pieces): Ditto.
7232 (insert_aux): Ditto.
7233 (insert): Ditto.
7234 (add_to_sets): Ditto.
7235 (init_pre): Ditto.
7236 (execute_pre): Ditto.
7237 (compute_avail): Ditto.
7238 Also ignore virtual phis.
7239
7240 2004-07-04 Richard Sandiford <rsandifo@redhat.com>
7241
7242 * combine.c (simplify_comparison): Fix comment typo.
7243
7244 2004-07-04 Eric Botcazou <ebotcazou@libertysurf.fr>
7245
7246 * config/sparc/sparc.c (SIBCALL_SLOT_EMPTY_P): Rename
7247 into LEAF_SIBCALL_SLOT_RESERVED_P after negation.
7248 (eligible_for_sibcall_delay): Adjust use of SIBCALL_SLOT_EMPTY_P.
7249 (output_restore): Change parameter from 'insn' to 'pat'.
7250 (output_return): Adjust call to output_restore.
7251 (output_sibcall): Adjust use of SIBCALL_SLOT_EMPTY_P.
7252 Adjust call to output_restore.
7253
7254 2004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
7255
7256 * config/netbsd.h (NETBSD_OS_CPP_BUILTINS_COMMON): Define __unix__
7257 and assert system is bsd.
7258
7259 2004-07-04 Richard Sandiford <rsandifo@redhat.com>
7260
7261 * config/mips/mips.h (MASK_DEBUG_C, TARGET_DEBUG_C_MODE): Delete.
7262 (TARGET_SWITCHES): Remove -mdebugc.
7263 * config/mips/mips.md (seq, sne, sgt, sge, slt, sle, sgtu, sgeu)
7264 (sltu, sleu): Remove TARGET_DEBUG_C_MODE handling.
7265 (seq_[sd]i, sne_[sd]i, sge_[sd]i, sle_[sd]i_reg, sgeu_[sd]i)
7266 (sle_[sd]i_reg): Delete.
7267
7268 2004-07-04 Steven Bosscher <stevenb@suse.de>
7269
7270 * config/iq2000/iq2000.c (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE):
7271 Define.
7272 * config/iq2000/iq2000.md: Translate old pipeline description to an
7273 equivalent new one.
7274
7275 2004-07-04 Roger Sayle <roger@eyesopen.com>
7276
7277 * tree-ssa-ccp.c (set_rhs): Change function to return a bool.
7278 Ensure the replacement rhs is valid gimple before performing
7279 the substitution. Return false if these sanity checks fail.
7280 (fold_stmt): Only set changed to true, if set_rhs returns true.
7281 (execute_fold_all_builtins): Only call modify_stmt if set_rhs
7282 succeeds.
7283
7284 2004-07-04 Richard Henderson <rth@redhat.com>
7285
7286 PR c/16348
7287 * c-typeck.c (c_finish_loop): Don't clear cond for cond_is_first loops.
7288
7289 2004-07-04 Mark Mitchell <mark@codesourcery.com>
7290
7291 * configure.ac (ranlib_flags): New variable.
7292 * Makefile.in (RANLIB_FLAGS): New variable.
7293 (libbackend.a): Use it.
7294 * configure: Regenerated.
7295
7296 2004-07-04 Roger Sayle <roger@eyesopen.com>
7297
7298 * ifcvt.c (noce_try_sign_mask): Call emit_store_flag to generate
7299 a "sign mask" instead of using ashr_optab directly.
7300
7301 2004-07-04 Neil Booth <neil@duron.akihabara.co.uk>
7302
7303 * doc/cpp.texi: Don't document what we do for ill-formed expressions.
7304 * doc/cppopts.texi: Clarify processing of command-line defines.
7305
7306 2004-07-04 Gerald Pfeifer <gerald@pfeifer.com>
7307
7308 * doc/contrib.texi (Contributors): Adjust link for GNU Classpath.
7309
7310 2004-07-04 Richard Henderson <rth@redhat.com>
7311
7312 * rtl.def (ADDRESSOF): Remove.
7313 * alias.c (rtx_equal_for_memref_p): Don't handle addressof.
7314 (find_base_term, memrefs_conflict_p): Likewise.
7315 * cse.c (fixed_base_plus_p, find_best_addr: Likewise.
7316 (fold_rtx, cse_insn, set_live_p): Likewise.
7317 * dwarf2out.c (mem_loc_descriptor): Likewise.
7318 (add_location_or_const_value_attribute): Likewise.
7319 * emit-rtl.c (copy_insn_1): Likewise.
7320 * explow.c (memory_address): Likewise.
7321 * expmed.c (store_split_bit_field): Likewise.
7322 * expr.c (expand_expr_real_1): Likewise.
7323 * function.c (instantiate_decl
7324 (instantiate_virtual_regs_1, fix_lexical_addr): Likewise.
7325 * genrecog.c (preds, validate_pattern): Likewise.
7326 * integrate.c (copy_rtx_and_substitute): Likewise.
7327 * recog.c (general_operand, register_operand): Likewise.
7328 (memory_address_p): Likwise.
7329 * reload1.c (eliminate_regs, elimination_effects): Likewise.
7330 * rtl.c (copy_rtx): Likewise.
7331 * rtlanal.c (rtx_unstable_p, rtx_varies_p): Likewise.
7332 (rtx_addr_can_trap_p, nonzero_address_p, address_cost): Likewise.
7333 * rtlhooks.c (gen_lowpart_general): Likewise.
7334 * stmt.c (expand_asm_operands): Likewise.
7335 * web.c (entry_register, replace_ref, web_main): Likewise.
7336 * config/alpha/alpha.c (input_operand, alpha_legitimate_address_p,
7337 alpha_expand_block_move, alpha_expand_block_clear): Likewise.
7338 * config/arm/arm.c (thumb_rtx_costs): Likewise.
7339 * config/c4x/c4x.c (c4x_valid_operands): Likewise.
7340 * config/frv/frv.c (move_destination_operand, move_source_operand,
7341 condexec_dest_operand, condexec_source_operand,
7342 condexec_memory_operand): Likewise.
7343 * config/h8300/h8300.h (PREDICATE_CODES): Likewise.
7344 * config/ia64/ia64.c (general_xfmode_operand): Likewise.
7345 (destination_xfmode_operand): Likewise.
7346 * config/mips/mips.h (PREDICATE_CODES): Likewise.
7347 * config/mn10300/mn10300.c (mn10300_address_cost_1): Likewise.
7348 * config/s390/s390.c (general_s_operand): Likewise.
7349 * config/s390/s390.md (mov*): Likewise.
7350 * config/sparc/sparc.h (PREDICATE_CODES): Likewise.
7351
7352 * c-typeck.c (c_mark_addressable): Don't put_var_into_stack.
7353 * expr.c (expand_expr_real_1): Likewise.
7354 * stmt.c (expand_decl): Likewise.
7355 * config/c4x/c4x.c (c4x_expand_builtin): Likewise.
7356
7357 * function.c (struct fixup_replacement, struct insns_for_mem_entry,
7358 postponed_insns, put_var_into_stack, put_reg_into_stack,
7359 schedule_fixup_var_refs, fixup_var_refs, find_fixup_replacement,
7360 fixup_var_refs_insns, fixup_var_refs_insns_with_hash,
7361 fixup_var_refs_insn, fixup_var_refs_1, fixup_memory_subreg,
7362 walk_fixup_memory_subreg, fixup_stack_1, optimize_bit_field,
7363 gen_mem_addressof, flush_addressof, put_addressof_into_stack,
7364 purge_bitfield_addressof_replacements, purge_addressof_replacements,
7365 purge_addressof_1, insns_for_mem_hash, insns_for_mem_comp,
7366 struct insns_for_mem_walk_info, insns_for_mem_walk,
7367 compute_insns_for_mem, is_addressof, purge_addressof, setjmp_protect,
7368 setjmp_protect_args): Remove.
7369 (push_function_context_to): Don't handle var_refs_queue.
7370 (pop_function_context_from, free_after_compilation): Likewise.
7371 (instantiate_virtual_regs): Don't handle parm_reg_stack_loc.
7372 (assign_parms, allocate_struct_function): Likewise.
7373 (use_register_for_decl): New.
7374 (expand_function_end): Don't setjmp_protect.
7375 * function.h (struct emit_status): Update commentary.
7376 (struct function): Remove x_max_parm_reg, x_parm_reg_stack_loc.
7377 (max_parm_reg, parm_reg_stack_loc): Remove.
7378 * passes.c (DFI_addressof): Remove.
7379 (dump_file_info): Remove addressof.
7380 (rest_of_handle_addressof): Remove.
7381 (rest_of_compilation): Don't call it.
7382 * rtl.h (ADDRESSOF_REGNO, ADDRESSOF_DECL): Remove.
7383 * stmt.c (expand_decl): Use use_register_for_decl.
7384 * tree.h: Update decls.
7385 * web.c (mark_addressof): Remove.
7386 * doc/invoke.texi (-dF): Remove.
7387
7388 2004-07-03 Richard Henderson <rth@redhat.com>
7389
7390 * config/ia64/ia64.c (spill_xfmode_operand): Use assign_stack_temp
7391 instead of gen_mem_addressof.
7392 * config/ia64/ia64.md (movxf): Use assign_stack_temp to handle
7393 TImode output register.
7394
7395 2004-07-03 Richard Henderson <rth@redhat.com>
7396
7397 PR tree-optimization/16341
7398 * tree-sra.c (sra_walk_function): Increment to next stmt before
7399 processing the current stmt.
7400 (sra_insert_after): Always use BSI_SAME_STMT.
7401
7402 2004-07-03 Richard Henderson <rth@redhat.com>
7403
7404 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Don't fold
7405 fp plus with minus.
7406
7407 2004-07-03 Joseph S. Myers <jsm@polyomino.org.uk>
7408
7409 * tree.c (type_hash_eq): Allow TYPE_MIN_VALUE which compares equal
7410 with tree_int_cst_equal.
7411
7412 2004-07-03 Andreas Schwab <schwab@suse.de>
7413
7414 * config/ia64/ia64.md: Define new attribute "empty".
7415 (prologue_use, nop_x, insn_group_barrier): Set it.
7416
7417 * config/ia64/ia64.c (ia64_reorg): When looking for trailing call
7418 skip over "empty" insns.
7419
7420 2004-07-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7421
7422 * tree-inline.c (initialize_inlined_parameters): Pass proper function
7423 context to gimplify_body.
7424 (walk_tree): Don't walk into types twice.
7425 (walk_tree, case POINTER_TYPE): Deal with mutually recursive pointers.
7426
7427 * tree-sra.c (generate_element_init): Remove any useless conversions.
7428
7429 * gimplify.c (gimplify_conversion): Remove stripping useless
7430 conversions from here.
7431 (gimplify_expr): Put it here, in place of call to STRIP_MAIN_TYPE_NOPS.
7432 (gimplify_modify_expr_to_memcpy, gimplify_variable_sized_compare):
7433 Unshare before substituting PLACEHOLDER_EXPR.
7434 (gimplify_modify_expr_to_memset): Likewise.
7435 Pass address of TO to memset, not TO itself.
7436 (gimplify_init_constructor): Make copy of OBJECT so we have it each
7437 time we make an expression (to match a PLACEHOLDER_EXPR).
7438
7439 * tree-ssa.c (tree_ssa_useless_type_conversion): Also look at
7440 VIEW_CONVERT_EXPR and NON_LVALUE_EXPR.
7441 * tree-ssa-ccp.c (fold_stmt): Call just STRIP_USELESS_TYPE_CONVERSION.
7442 * tree-ssa-dom.c (local_fold): Likewise.
7443
7444 * langhooks-def.h (LANG_HOOKS_TYPE_MAX_SIZE): New langhook.
7445 * langhooks.h (strct lang_hooks): New field type_max_size.
7446 * function.c (assign_temp): Call it.
7447
7448 2004-07-03 Steven Bosscher <stevenb@suse.de>
7449
7450 * config/sh/sh.c (sh_use_dfa_interface): Add TARGET_SH1.
7451 * config/sh/sh.md: Convert the SH1 pipeline description to
7452 a DFA model.
7453
7454 2004-07-02 Zack Weinberg <zack@codesourcery.com>
7455
7456 * c-decl.c (struct c_binding): Remove contour field; add
7457 depth, invisible, nested fields.
7458 (B_IN_SCOPE, B_IN_CURRENT_SCOPE, B_IN_FILE_SCOPE)
7459 (B_IN_EXTERNAL_SCOPE): New convenience macros.
7460 (bind): Add invisible and nested arguments. Initialize
7461 new fields of struct c_binding; adjust loop scanning for
7462 insertion point.
7463 (free_binding_and_advance): Clear structure with memset.
7464 (pop_scope): Adjust to match. Set DECL_CONTEXT on everything
7465 in file scope, even if it's in external scope too.
7466 (pushdecl): Adjust to match. Create invisible file-scope
7467 declarations for block-scope forward declarations of static functions.
7468 (pushtag, warn_if_shadowing, pushdecl_top_level, implicitly_declare)
7469 (undeclared_variable, lookup_label, declare_label, define_label)
7470 (lookup_tag, lookup_name, lookup_name_in_scope, builtin_function)
7471 (c_make_fname_decl, store_parm_decls_newstyle, identifier_global_value)
7472 (store_parm_decls_oldstyle): Adjust to match.
7473 (diagnose_mismatched_decls): Correct handling of linkage clashes.
7474 (merge_decls): No need to copy C_DECL_IN_EXTERNAL_SCOPE.
7475
7476 * c-tree.h (C_DECL_IN_EXTERNAL_SCOPE): Delete.
7477 (C_DECL_DECLARED_BUILTIN, C_DECL_REGISTER): Slide down one.
7478
7479 2004-07-02 Richard Henderson <rth@redhat.com>
7480
7481 * c-decl.c (grokdeclarator): Don't frob current_function_decl
7482 around variable_size.
7483 (set_decl_nonlocal): Remove.
7484 (store_parm_decls): Add stmts for pending sizes.
7485 * calls.c (calls_function, calls_function_1): Remove.
7486 (precompute_arguments): Don't call it.
7487 * cfgexpand.c (set_save_expr_context): Remove.
7488 (tree_expand_cfg): Don't call it.
7489 * dwarf2out.c (add_bound_info): Don't handle SAVE_EXPR.
7490 (dwarf2out_finish): Likewise.
7491 * expr.c (emit_block_move): Adjust addresses to BLKmode.
7492 (store_constructor): Don't pre-evaluate SAVE_EXPR.
7493 (safe_from_p): Don't queue SAVE_EXPRs.
7494 (expand_expr_real_1 <case SAVE_EXPR>): Rewrite to expect,
7495 or build plain VAR_DECLs.
7496 * fold-const.c (twoval_comparison_p): Don't look at SAVE_EXPR_RTL.
7497 (fold): Likewise.
7498 (fold_checksum_tree): Don't special-case SAVE_EXPR.
7499 * function.c (free_after_compilation): Don't clear x_save_expr_regs.
7500 (put_var_into_stack): Don't handle SAVE_EXPR.
7501 (gen_mem_addressof): Likewise.
7502 * function.h (struct function): Remove x_save_expr_regs.
7503 (save_expr_regs): Remove.
7504 * gengtype.c (adjust_field_tree_exp): Don't special-case SAVE_EXPR.
7505 * print-tree.c (print_node): Don't dump SAVE_EXPR_NOPLACEHOLDER.
7506 * stor-layout.c (variable_size): Don't set it.
7507 (force_type_save_exprs, force_type_save_exprs_1): Remove.
7508 * tree-inline.c (remap_save_expr): Remove fn argument. Update
7509 all callers. Don't set SAVE_EXPR_CONTEXT.
7510 * tree-inline.h (remap_save_expr): Update decl.
7511 * tree.c (save_expr): Update build size.
7512 (first_rtl_op): Don't handle SAVE_EXPR.
7513 (unsave_expr_1, contains_placeholder_p): Likewise.
7514 (decl_function_context): Likewise.
7515 * tree.def (SAVE_EXPR): Remove args 1 and 2.
7516 * tree.h (SAVE_EXPR_CONTEXT, SAVE_EXPR_RTL): Remove.
7517 (SAVE_EXPR_NOPLACEHOLDER, SAVE_EXPR_PERSISTENT_P): Remove.
7518
7519 2004-07-03 Joseph S. Myers <jsm@polyomino.org.uk>
7520
7521 * doc/bugreport.texi, doc/configterms.texi, doc/contrib.texi,
7522 doc/contribute.texi, doc/cpp.texi, doc/cppinternals.texi,
7523 doc/extend.texi, doc/install.texi, doc/invoke.texi, doc/md.texi,
7524 doc/portability.texi, doc/tree-ssa.texi, doc/trouble.texi: Avoid
7525 some first-person references and patronizing comments. Based on
7526 printed manual.
7527 * doc/invoke.texi: Don't reference fortran@gnu.org.
7528 * doc/trouble.texi (Warning when a non-void function value is
7529 ignored): Rewrite. From Russ Allbery and Chris Devers.
7530
7531 2004-07-02 Daniel Berlin <dberlin@dberlin.org)
7532
7533 * tree-ssa-pre.c (bitmap_set_t): New.
7534 (bb_value_sets): avail_out is now a bitmap_set_t.
7535 (bitmap_find_leader): New function.
7536 (bitmap_value_insert_into_set): Ditto.
7537 (bitmap_set_copy): Ditto.
7538 (bitmap_value_replace_in_set): Ditto.
7539 (bitmap_set_contains_value): Ditto.
7540 (bitmap_set_new): Ditto.
7541 (bitmap_set_pool): New pool.
7542 (find_or_generate_expression): Use bitmap_ functions on AVAIL sets.
7543 (insert_aux): Ditto.
7544 (add_to_sets): Ditto.
7545 (compute_avail): Ditto
7546 (eliminate): Ditto.
7547 (init_pre): Ditto.
7548 (fini_pre): Ditto.
7549 (execute_pre): Ditto.
7550
7551 2004-07-02 Roger Sayle <roger@eyesopen.com>
7552
7553 * config/rs6000/rs6000.c (struct processor_costs): New structure
7554 used to hold instruction latencies/sizes for processor types.
7555 (rs6000_cost): New global variable pointing to current CPU's costs.
7556 (rs6000_override_options): Initialize rs6000_cost to point to the
7557 appropriate cost table based upon rs6000_cpu and optimize_size.
7558 (rs6000_rtx_costs): Use rs6000_cost to avoid hardcoding processor
7559 timings inline.
7560
7561 2004-07-02 Richard Henderson <rth@redhat.com>
7562
7563 * expmed.c (make_tree): Don't use SET_DECL_RTL.
7564
7565 2004-07-02 Steven Bosscher <stevenb@suse.de>
7566
7567 * tree-flow.h (bb_ann_d): Remove ephi_nodes field.
7568
7569 2004-07-01 Richard Henderson <rth@redhat.com>
7570
7571 * config/alpha/alpha.c (struct machine_function): Add gp_save_rtx.
7572 (alpha_gp_save_rtx): Use assign_stack_local instead of
7573 gen_mem_addressof.
7574
7575 2004-07-01 Richard Henderson <rth@redhat.com>
7576
7577 * config/alpha/alpha.c (struct alpha_rtx_cost_data): Add int_div.
7578 (alpha_rtx_cost_data): Update to match.
7579 (alpha_rtx_cost_size): New.
7580 (alpha_rtx_costs): Honor optimize_size.
7581
7582 2004-07-01 Richard Henderson <rth@redhat.com>
7583
7584 * gimple-low.c (lower_function_body): Don't reset_block_changes here.
7585 * cfgexpand.c (tree_expand_cfg): Do it here.
7586 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): And here.
7587 * config/ia64/ia64.c (ia64_output_mi_thunk): And here.
7588 * config/mips/mips.c (mips_output_mi_thunk): And here.
7589 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): And here.
7590 * config/sh/sh.c (sh_output_mi_thunk): And here.
7591 * config/sparc/sparc.c (sparc_output_mi_thunk): And here.
7592
7593 2004-07-01 Richard Henderson <rth@redhat.com>
7594
7595 * tree.def (RTL_EXPR): Remove.
7596 * c-typeck.c (lvalue_p): Don't handle it.
7597 * expr.c (safe_from_p): Likewise.
7598 (expand_expr_real_1): Likewise.
7599 * fold-const.c (non_lvalue, operand_equal_p, fold): Likewise.
7600 (fold_checksum_tree, tree_expr_nonnegative_p): Likewise.
7601 * gengtype.c (adjust_field_tree_exp): Likewise.
7602 * stmt.c (warn_if_unused_value): Likewise.
7603 * tree-gimple.c (recalculate_side_effects): Likewise.
7604 * tree-pretty-print.c (dump_generic_node): Likewise.
7605 * tree.c (make_node_stat, first_rtl_op, unsave_expr_1): Likewise.
7606 (unsafe_for_reeval, stabilize_reference, build1_stat): Likewise.
7607 * tree.h (RTL_EXPR_SEQUENCE, RTL_EXPR_RTL, RTL_EXPR_ALT_RTL): Remove.
7608
7609 * stmt.c (struct stmt_status): Remove x_last_expr_type,
7610 x_last_expr_value, x_last_expr_alt_rtl, x_expr_stmts_for_value.
7611 (last_expr_type, last_expr_value, last_expr_alt_rtl): Remove.
7612 (expand_expr_stmt): Merge with expand_expr_stmt_value. Remove
7613 all the bits that tracked last_expr.
7614 (expand_end_bindings): Don't track last_expr.
7615 (expand_start_stmt_expr, expand_end_stmt_expr): Remove.
7616 (clear_last_expr): Remove.
7617 (expand_asm): Don't call it.
7618 (expand_asm_operands, expand_end_cond): Likewise.
7619 (expand_naked_return, expand_null_return_1): Likewise.
7620 * c-typeck.c (c_begin_compound_stmt): Likewise.
7621 * cfgexpand.c (expand_block): Use expand_expr_stmt.
7622 * expr.c (expand_expr_real_1): Likewise.
7623 * tree.h: Update prototypes.
7624
7625 * function.h (struct sequence_stack): Remove sequence_rtl_expr.
7626 (struct emit_status): Remove sequence_rtl_expr.
7627 (struct function): Remove x_rtl_expr_chain.
7628 (seq_rtl_expr, rtl_expr_chain): Remove.
7629 * function.c (struct temp_slot): Remove rtl_expr.
7630 (assign_stack_temp_for_type): Don't set it.
7631 (free_temp_slots, pop_temp_slots): Don't check it.
7632 (free_after_compilation): Don't clear x_rtl_expr_chain.
7633 (fixup_var_refs): Don't search it.
7634 (preserve_rtl_expr_result, free_temps_for_rtl_expr): Remove.
7635 * emit-rtl.c (start_sequence): Don't use sequence_rtl_expr
7636 or seq_rtl_expr.
7637 (push_topmost_sequence): Likewise.
7638 (end_sequence, init_emit): Likewise.
7639 (start_sequence_for_rtl_expr): Remove.
7640 * expmed.c (make_tree): Build a VAR_DECL instead of an RTL_EXPR.
7641 * rtl.h (preserve_rtl_expr_result): Remove.
7642
7643 2004-07-02 Kazu Hirata <kazu@cs.umass.edu>
7644
7645 * ifcvt.c, modulo-sched.c, tree-alias-common.c, tree-sra.c,
7646 tree-ssa-copy.c, tree-ssa-dom.c, tree-ssa-pre.c: Fix comment
7647 typos.
7648
7649 2004-07-02 Aaron W. LaFramboise <aaronraolete36@aaronwl.com>
7650
7651 * gcc.c (STANDARD_STARTFILE_PREFIX_1): Define.
7652 (STANDARD_STARTFILE_PREFIX_2): Define.
7653 (standard_startfile_prefix_1): Initialize to
7654 STANDARD_STARTFILE_PREFIX_1.
7655 (standard_startfile_prefix_2): Initialize to
7656 STANDARD_STARTFILE_PREFIX_2.
7657 * config/i386/mingw32.h (MD_STARTFILE_PREFIX): Remove.
7658 (STANDARD_STARTFILE_PREFIX_1): Define.
7659 (STANDARD_STARTFILE_PREFIX_2): Define.
7660 * doc/tm.texi (STANDARD_STARTFILE_PREFIX_1): Document.
7661 (STANDARD_STARTFILE_PREFIX_2): Document.
7662
7663 2004-07-01 Richard Henderson <rth@redhat.com>
7664
7665 * tree-sra.c (sra_walk_expr): Don't maybe_lookup_element_for_expr
7666 in order to disable scalarization. Instead set a flag and wait
7667 for a candidate decl.
7668
7669 2004-07-01 Joseph S. Myers <jsm@polyomino.org.uk>
7670
7671 * doc/cppinternals.texi, doc/install.texi, doc/invoke.texi,
7672 doc/md.texi, doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi:
7673 Use terminology "testsuite" and "enumerated".
7674
7675 2004-07-01 Richard Henderson <rth@redhat.com>
7676
7677 * dwarf2out.c (reg_save): Use INVALID_REGNUM.
7678 (dwarf2out_reg_save, dwarf2out_return_save): Likewise.
7679 (initial_return_save): Likewise.
7680 (flush_queued_reg_saves): Remap register numbers.
7681 (dwarf2out_return_reg): Likewise.
7682
7683 2004-07-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7684
7685 * gimplify.c (gimplify_one_sizepos): Don't do anything if any VAR_DECL.
7686
7687 * tree-pretty-print.c (dump_generic_node, case ARRAY_REF): Use
7688 access functions for lower bound and element size and only output
7689 if lower bound nonzero or element size not same as that of type.
7690 (dump_generic_node, case COMPONENT_REF): Use access func. for offset.
7691
7692 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
7693
7694 * c-pretty-print.c (pp_c_postfix_expression): Fix pasto.
7695
7696 2004-07-01 Per Bothner <per@bothner.com>
7697
7698 * final.c (final): Fix typo reported by Aaron W. LaFramboise.
7699
7700 2004-07-01 Jakub Jelinek <jakub@redhat.com>
7701
7702 * expr.c (expand_assignment): Optimize bitfld += cst for 1 bit
7703 bitfields as well. STRIP_NOPS from src operand and PLUS_EXPR's
7704 first operand. Don't optimize if the bitfield is volatile.
7705
7706 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
7707
7708 * c-pretty-print.c (pp_c_postfix_expression): Handle
7709 floating-point comparison operators.
7710 (pp_c_expression): Pass floating-point comparison
7711 operators to pp_c_postfix_expression.
7712
7713 2004-07-01 Roger Sayle <roger@eyesopen.com>
7714
7715 * simplify-rtx.c (simplify_binary_operation) <PLUS, MINUS>: Use
7716 rtx_cost instead of "had_mult" to determine whether the transformed
7717 expression is cheaper than the original.
7718
7719 2004-07-01 Jerry Quinn <jlquinn@optonline.net>
7720
7721 * alias.c (get_alias_set, canon_rtx, get_addr,
7722 nonoverlapping_memrefs_p, nonlocal_referenced_p_1, memory_modified_1):
7723 Use MEM_P.
7724 * builtins.c (expand_builtin_prefetch, expand_builtin_profile_func,
7725 expand_builtin): Likewise.
7726 * calls.c (expand_call, emit_library_call_value_1, store_one_arg):
7727 Likewise.
7728 * combine.c (can_combine_p, combinable_i3pat, try_combine,
7729 find_split_point, combine_simplify_rtx, simplify_set, make_extraction,
7730 rtx_equal_for_field_assignment_p, gen_lowpart_for_combine,
7731 record_dead_and_set_regs_1, get_last_value_validate,
7732 mark_used_regs_combine, move_deaths, unmentioned_reg_p_1): Likewise.
7733 * cse.c (check_dependence, canon_hash, equiv_constant,
7734 gen_lowpart_if_possible, cse_insn, invalidate_from_clobbers,
7735 cse_around_loop, cse_check_loop_start, cse_set_around_loop,
7736 count_reg_usage): Likewise.
7737 * cselib.c (rtx_equal_for_cselib_p, add_mem_for_addr, cselib_lookup,
7738 cselib_invalidate_mem, cselib_invalidate_rtx, cselib_record_set,
7739 cselib_record_sets): Likewise.
7740 * dbxout.c (PARM_PASSED_IN_MEMORY, dbxout_symbol,
7741 dbxout_symbol_location, dbxout_parms, dbxout_reg_parms): Likewise.
7742 * ddg.c (mark_mem_use, mark_mem_store, rtx_mem_access_p): Likewise.
7743 * df.c (df_uses_record): Likewise.
7744 * dojump (do_jump): Likewise.
7745 * dwarf2out.c (stack_adjust_offset, mem_loc_descriptor,
7746 loc_descriptor_from_tree, rtl_for_decl_location, add_bound_info,
7747 decl_start_label): Likewise.
7748 * emit-rtl.c (gen_complex_constant_part, gen_highpart,
7749 operand_subword, change_address_1, make_safe_from): Likewise.
7750 * explow.c (break_out_memory_refs, copy_all_regs, validize_mem,
7751 stabilize, force_not_mem): Likewise.
7752 * expmed.c (store_bit_field, store_split_bit_field, extract_bit_field,
7753 expand_mult_const, expand_divmod, emit_store_flag): Likewise.
7754 * expr.c (convert_move, convert_modes, emit_block_move,
7755 emit_group_load, emit_group_store, clear_storage, emit_move_insn,
7756 emit_move_insn_1, expand_assignment, store_expr,
7757 store_constructor_field, store_constructor, store_field,
7758 force_operand, safe_from_p, expand_expr_real_1, expand_increment):
7759 Likewise.
7760 * final.c (cleanup_subreg_operands, alter_subreg,
7761 get_mem_expr_from_op): Likewise.
7762 * flow.c (notice_stack_pointer_modification_1,
7763 init_propagate_block_info, insn_dead_p, mark_set_1, mark_used_regs):
7764 Likewise.
7765 * function.c (mark_temp_addr_taken, preserve_temp_slots,
7766 preserve_rtl_expr_result, put_var_into_stack, fixup_var_refs_1,
7767 optimize_bit_field, flush_addressof, purge_addressof_1,
7768 instantiate_decl, instantiate_virtual_regs_1, assign_parms,
7769 setjmp_protect, setjmp_protect_args, fix_lexical_addr,
7770 keep_stack_depressed): Likewise.
7771 * ifcvt.c (noce_try_cmove_arith, noce_try_abs, noce_operand_ok,
7772 noce_process_if_block, find_memory): Likewise.
7773 * integrate.c (subst_constants, allocate_initial_values): Likewise.
7774 * local-alloc.c (validate_equiv_mem_from_store, memref_referenced_p,
7775 update_equiv_regs): Likewise.
7776 * loop.c (scan_loop, prescan_loop, note_addr_stored, check_store,
7777 maybe_eliminate_biv_1, find_mem_in_note_1): Likewise.
7778 * optabs.c (expand_abs, emit_unop_insn): Likewise.
7779 * passes.c (rest_of_handle_final): Likewise.
7780 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
7781 move2add_note_store): Likewise.
7782 * ra-build.c (detect_remat_webs): Likewise.
7783 * ra-debug.c (dump_static_insn_cost): Likewise.
7784 * ra-rewrite.c (slots_overlap_p, insert_stores): Likewise.
7785 * recog.c (validate_change, apply_change_group, cancel_changes,
7786 validate_replace_rtx_1, general_operand, register_operand,
7787 nonmemory_operand, push_operand, pop_operand, memory_operand,
7788 indirect_operand, asm_operand_ok, offsettable_memref_p,
7789 offsettable_nonstrict_memref_p, constrain_operands,
7790 store_data_bypass_p): Likewise.
7791 * reg-stack.c (subst_stack_regs_pat): Likewise.
7792 * regclass.c (record_operand_costs, scan_one_insn, record_reg_classes,
7793 copy_cost, reg_scan_mark_refs): Likewise.
7794 * regmove.c (optimize_reg_copy_3, stack_memref_p,
7795 combine_stack_adjustments_for_block): Likewise.
7796 * regrename.c (copyprop_hardreg_forward_1): Likewise.
7797 * reload.c (can_reload_into, push_reload, decompose, immune_p,
7798 find_reloads, find_reloads_address, find_reloads_address_1,
7799 reg_overlap_mentioned_for_reload_p, refers_to_mem_for_reload_p,
7800 find_equiv_reg): Likewise.
7801 * reload1.c (reload, eliminate_regs, eliminate_regs_in_insn,
7802 reload_as_needed, choose_reload_regs, emit_input_reload_insns,
7803 do_input_reload, emit_reload_insns, gen_reload, delete_output_reload,
7804 delete_address_reloads): Likewise.
7805 * resource.c (mark_referenced_resources): Likewise.
7806 * rtlanal.c (get_jump_table_offset, count_occurrences,
7807 reg_referenced_p, reg_set_p, set_of_1, set_noop_p,
7808 reg_overlap_mentioned_p, note_uses, replace_regs, nonzero_bits1,
7809 num_sign_bit_copies1): Likewise.
7810 * rtlhooks.c (gen_lowpart_general): Likewise.
7811 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
7812 * sdbout.c (PARM_PASSED_IN_MEMORY, sdbout_symbol,
7813 sdbout_toplevel_data, sdbout_parms, sdbout_reg_parms,
7814 sdbout_global_decl): Likewise.
7815 * simplify-rtx.c (simplify_subreg): Likewise.
7816 * stmt.c (expand_asm_operands, expand_expr_stmt_value, expand_decl,
7817 expand_anon_union_decl, expand_end_case_type): Likewise.
7818 * unroll.c (calculate_giv_inc): Likewise.
7819 * var-tracking.c (stack_adjust_offset_pre_post,
7820 bb_stack_adjust_offset, track_expr_p, count_uses, add_uses,
7821 add_stores, compute_bb_dataflow, vt_get_decl_and_offset,
7822 vt_add_function_parameters): Likewise.
7823 * varasm.c (make_var_volatile, notice_global_symbol,
7824 assemble_external, decode_addr_const, mark_weak,
7825 default_encode_section_info): Likewise.
7826
7827 2004-07-01 Steven Bosscher <stevenb@suse.de>
7828
7829 * stmt.c (check_seenlabel): Remove.
7830 (pushcase, pushcase_range, expand_end_case_type): Don't call it.
7831
7832 2004-07-01 Richard Henderson <rth@redhat.com>
7833
7834 * function.h (struct function): Remove x_function_call_count.
7835 (function_call_count): Remove.
7836 * calls.c (expand_call): Don't set it.
7837 * integrate.c (copy_rtx_and_substitute): Likewise.
7838
7839 * function.h (struct function): Remove x_cleanup_label.
7840 (cleanup_label): Remove.
7841 * stmt.c (expand_value_return): Don't use it.
7842 * function.c (free_after_compilation): Don't set it.
7843 (expand_function_start): Likewise. Remove parms_have_cleanups arg.
7844 * cfgexpand.c (tree_expand_cfg): Update call.
7845 * tree.h (expand_function_start): Update decl.
7846
7847 2004-07-01 Joseph S. Myers <jsm@polyomino.org.uk>
7848
7849 PR c/1027
7850 * c-lang.c (c_initialize_diagnostics): Move from here ...
7851 * c-objc-common.c: ... to here. Include "c-pretty-print.h".
7852 (c_tree_printer): Use pretty-printer to format %T.
7853 * c-pretty-print.c (pp_c_specifier_qualifier_list): Include space
7854 before '*' if not C++.
7855 (pp_c_direct_abstract_declarator): Don't try to print array upper
7856 bound for flexible array members.
7857 * c-tree.h: Include "diagnostic.h".
7858 (c_initialize_diagnostics): Declare.
7859 * objc/objc-lang.c (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Define.
7860 * c-format.c (format_type_warning): New function. Improve
7861 diagnostics for incorrect format argument types.
7862 (check_format_types): Use it. Add two parameters. Use the
7863 TYPE_MAIN_VARIANT of wanted_type.
7864 (check_format_info_main): Pass new parameters to
7865 check_format_types.
7866 (struct format_wanted_type): Update comment.
7867
7868 2004-07-01 Nick Clifton <nickc@redhat.com>
7869
7870 * target.h (struct gcc_target): Add new field to struct cxx:
7871 import_export_class.
7872 * target-def.h (TARGET_CXX): Initialise the new field.
7873 (TARGET_CXX_IMPORT_EXPORT_CLASS): Provide a default value for
7874 the new field.
7875 * doc/tm.texi: Document the new target hook.
7876
7877 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
7878
7879 * builtins.c (fold_builtin_classify): Fix typo.
7880
7881 2004-07-01 Richard Henderson <rth@redhat.com>
7882
7883 * function.c (identify_blocks, identify_blocks_1): Remove.
7884 * function.h (identify_blocks): Remove.
7885 * rtl.h (NOTE_INSN_BLOCK_BEG): Update comment.
7886
7887 2004-07-01 Paolo Bonzini <bonzini@gnu.org>
7888
7889 * builtins.c (fold_builtin_classify): New.
7890 (fold_builtin_unordered_cmp): Fix commentary.
7891 (fold_builtin): Use it.
7892 * builtins.def: Define builtins for isnan,
7893 isnanf, isnanl, finite, finitef, finitel,
7894 isinf, isinff, isinfl.
7895
7896 2004-07-01 Richard Henderson <rth@redhat.com>
7897
7898 * function.h (struct function): Remove dont_emit_block_notes.
7899 * gimple-low.c (lower_function_body): Don't set it.
7900 * cfgexpand.c (expand_block): Don't check it.
7901 * cfglayout.c (insn_locators_initialize): Likewise.
7902 * expr.c (expand_expr_real, expand_expr_real_1): Likewise.
7903 * passes.c (rest_of_compilation): Likewise.
7904 * stmt.c (expand_start_bindings_and_block): Likewise.
7905 (expand_end_bindings): Likewise.
7906
7907 2004-07-01 Richard Henderson <rth@redhat.com>
7908
7909 * cgraph.h (cgraph_build_static_cdtor): Declare.
7910 * cgraphunit.c (cgraph_build_static_cdtor): New.
7911 * c-objc-common.c (build_cdtor): Use it.
7912 * coverage.c (create_coverage): Likewise.
7913 * libfuncs.h (LTI_gcov_init, gcov_init_libfunc): Remove.
7914 * optabs.c (init_optabs): Don't set gcov_init_libfunc.
7915
7916 See ChangeLog.11 for earlier changes.