]> gcc.gnu.org Git - gcc.git/blame - gcc/ChangeLog
* mangle.c (get_identifier_nocopy): Add cast.
[gcc.git] / gcc / ChangeLog
CommitLineData
e5f14571
RS
12004-08-25 Richard Sandiford <rsandifo@redhat.com>
2
3 * config/mips/mips.md (any_shift): New code macro.
4 (optab, insn): New code attributes.
5 ({ashl,ashr,lshr}[sd]i3): Redefine using :GPR and any_shift.
6 Use the standard rather than internal patterns for the MIPS16
7 double-shift optimization.
8 (*{ashl,ashr,lshr}[sd]i3): New names for the non-mips16 shift patterns.
9 Redefine using :GPR and any_shift.
10 (*{ashl,ashr,lshr}si3_extend): Generalize ashlsi3_internal1_extend
11 to cover all three shifts.
12 (*{ashl,ashr,lshr}si3_mips16): New names for the mips16 SImode shifts.
13 Redefine using any_shift. Use :GPR and any_shift to combine splitters.
14 (*{ashl,ashr,lshr}di3_mips16): New names for the mips16 DImode shifts.
15
bbbb79d4
GK
162004-08-24 Geoffrey Keating <geoffk@apple.com>
17
18 * gimplify.c (lookup_tmp_var): Separate temporaries when not
19 optimizing.
20
d711cf67
JDA
212004-08-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22
23 PR libstdc++/17005 (fix for HP-UX 11.11)
24 * config.gcc (hppa*-*-*): Move MASK_BIG_SWITCH to target_cpu_default2.
25 (hppa*-*-hpux*): Consolidate hppa1.0-*-* code. Rework handling of
26 tm_file including pa-hpux1010.h or pa-hpux1111.h when appropriate.
27 * config/pa/pa-hpux1010.h, config/pa/pa-hpux1111.h: New files.
28 * config/pa/pa-hpux.h (TARGET_HPUX): Define.
29 (LINK_SPEC): Handle march=1.0 option.
30 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
31 and _XOPEN_SOURCE_EXTENDED for UNIX 95.
32 (SUBTARGET_OPTIONS): New define.
33 (LINK_SPEC): Handle march=1.0 option.
34 (STARTFILE_SPEC): New define.
35 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
36 and _XOPEN_SOURCE_EXTENDED for UNIX 95. Additionally, predefine
37 _INCLUDE__STDC_A1_SOURCE and _INCLUDE_XOPEN_SOURCE_500 for UNIX 98.
38 (SUBTARGET_OPTIONS): New define.
39 (LINK_SPEC): Handle march=1.0 option.
40 (STARTFILE_SPEC): New define.
41 * config/pa/pa.c (override_options): Add code to process -munix= option.
42 * config/pa/pa.h (pa_unix_string, flag_pa_unix): Declare.
43 (TARGET_HPUX, TARGET_HPUX_10_10, TARGET_HPUX_11_11): Provide default
44 defines.
45 (TARGET_OPTIONS): Add SUBTARGET_OPTIONS to option list.
46 (SUBTARGET_OPTIONS): Provide default define.
47 * config/pa/pa64-hpux.h (STANDARD_STARTFILE_PREFIX_1,
48 STANDARD_STARTFILE_PREFIX_2): New defines.
49 (STARTFILE_SPEC): Provide unix95.o or unix98.o startfiles as necessary.
50 (ENDFILE_SPEC): Use %O.
51 * doc/install.texi (hppa*-*-hpux*): Reword paragraph on -g and gas.
52 Mention issue caused by changing namespace and runtime to UNIX 95/98.
53 * doc/invoke.texi (HPPA options): Move misplaced text to FRV options.
54 Document -munix=std option.
55
5affca01
SB
562004-08-25 Steven Bosscher <stevenb@suse.de>
57
58 * cse.c (cse_around_loop, cse_check_loop_start,
59 cse_set_around_loop): Remove.
60 (cse_basic_block): Remove the around_loop argument.
61 (cse_end_of_basic_block): Remove the after_loop argument.
62 (cse_main): Likewise.
63 * rtl.h (cse_main): Update prototype.
64 * passes.c (rest_of_handle_cse, rest_of_handle_cse2,
65 rest_of_handle_gcse): Update cse_main calls.
66
7d60be94
NS
672004-08-25 Nathan Sidwell <nathan@codesourcery.com>
68
69 * tree.h (build_int_cst): New, sign extended constant.
70 (build_int_cstu): New, zero extended constant.
71 (build_int_cst_wide): Renamed from build_int_cst.
72 * tree.c (build_int_cst, build_int_cstu): New.
73 (build_int_cst_wide): Renamed from build_int_cst.
74 (make_vector_type, build_common_tree_nodes,
75 build_common_tree_nodes_2): Adjust build_int_cst calls.
76 * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
77 expand_builtin_strpbrk, expand_builtin_fputs,
78 build_string_literal, expand_builtin_printf,
79 expand_builtin_sprintf, fold_builtin_classify_type,
80 fold_builtin_lround, fold_builtin_bitop, fold_builtin_isascii,
81 fold_builtin_toascii, fold_builtin_isdigit,
82 simplify_builtin_strstr, simplify_builtin_strpbrk,
83 fold_builtin_fputs, simplify_builtin_sprintf): Likewise.
84 * c-common.c (start_fname_decls, fix_string_type, shorten_compare,
85 DEF_ATTR_INT): Likewise.
86 * c-decl.c (complete_array_type, check_bitfield_type_and_width):
87 Likewise.
88 * c-lex.c (interpret_integer, lex_charconst): Likewise.
89 * c-parse.in (primary) <TYPES_COMPATIBLE_P> Likewise.
90 * c-pretty-print.c (pp_c_integer_constant): Likewise.
91 * c-typeck.c (really_start_incremental_init, push_init_level,
92 set_nonincremental_init_from_string): Likewise.
93 * calls.c (load_register_parameters): Likewise.
94 convert.c (convert_to_pointer): Likewise.
95 coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
96 build_fn_info_type, build_fn_info_value, build_ctr_info_value,
97 build_gcov_info): Likewise.
98 * except.c (init_eh, assign_filter_values): Likewise.
99 * expmed.c (store_fixed_bit_field, extract_bit_field,
100 extract_fixed_bit_field, extract_split_bit_field, expand_shift,
101 expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
102 expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
103 * expr.c (convert_move, emit_group_load, emit_group_store,
104 expand_assignment, store_constructor, store_field,
105 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
106 fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
107 invert_truthvalue, optimize_bit_field_compare,
108 decode_field_reference, all_ones_mask_p, constant_boolean_node,
109 fold_div_compare, fold, fold_read_from_constant_string,
110 fold_negate_const, fold_abs_const, fold_not_const, round_up,
111 round_down): Likewise.
112 * function.c (assign_parm_setup_block): Likewise.
113 * stmt.c (shift_return_value, expand_case, estimate_case_costs):
114 Likewise.
115 * stor-layout.c (layout_type, initialize_sizetypes,
116 set_min_and_max_values_for_integral_type): Likewise.
117 * tree-chrec.c (chrec_fold_multiply_poly_poly,
118 reset_evolution_in_loop): Likewise.
119 * tree-chrec.h (build_polynomial_chrec): Likewise.
120 * tree-complex.c (build_replicated_const): Likewise.
121 * tree-eh.c (honor_protect_cleanup_actions,
122 lower_try_finally_onedest, lower_try_finally_copy,
123 lower_try_finally_switch): Likewise.
124 * tree-mudflap.c (mf_build_string, mx_register_decls,
125 mudflap_register_call, mudflap_enqueue_constant): Likewise.
126 * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
127 * tree-pretty-print.c (dump_generic_node): Likewise.
128 * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
129 Likewise.
130 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
131 * tree-ssa-loop-niter.c (number_of_iterations_cond,
132 loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
133 Likewise.
134 * tree-ssa-loop-ivcanon.c (create_canonical_iv,
135 canonicalize_loop_induction_variables): Likewise.
136 * tree-vectorizer.c (vect_create_index_for_array_ref,
137 vect_transform_loop_bound, vect_compute_data_ref_alignment):
138 Likewise.
139
140 * config/alpha/alpha.c (alpha_initialize_trampoline, alpha_va_start,
141 alpha_gimplify_va_arg_1): Likewise.
142 * config/arm/arm.c (arm_get_cookie_size): Likewise.
143 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
144 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
145 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
146 * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
147 mips_gimplify_va_arg_expr): Likewise.
148 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
149 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
150 add_compiler_branch_island): Likewise.
151 * config/s390/s390.c (s390_va_start): Likewise.
152 * config/sh/sh.c (sh_va_start): Likewise.
153 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
154 Likewise.
155 * config/xtensa/xtensa.c (xtensa_va_start,
156 xtensa_gimplify_va_arg_expr): Likewise.
157
158 * objc/objc-act.c (build_objc_string_object,
159 build_objc_symtab_template, init_def_list, init_objc_symtab,
160 init_module_descriptor, generate_static_references,
161 build_selector_translation_table, get_proto_encoding,
162 build_typed_selector_reference, build_selector_reference,
163 build_next_objc_exception_stuff,
164 build_method_prototype_list_template, generate_descriptor_table,
165 generate_protocols, build_protocol_initializer,
166 build_ivar_list_template, build_method_list_template,
167 build_ivar_list_initializer, generate_ivars_list,
168 generate_dispatch_table, generate_protocol_list,
169 build_category_initializer, build_shared_structure_initializer,
170 generate_shared_structures, handle_impent,
171 generate_objc_image_info): Likewise.
172
8b63d0e5
PB
1732004-04-25 Paolo Bonzini <bonzini@gnu.org>
174
175 * cfglayout.c (duplicate_insn_chain): Remove references to
176 NOTE_INSN_LOOP_VTOP and NOTE_INSN_LOOP_CONT.
177 * cfgloop.h (struct loop): Remove fields vtop, cont and cont_dominator.
178 * cfgrtl.c (rtl_delete_block): Remove handling of NOTE_INSN_LOOP_CONT.
179 * final.c (final_scan_insn): Remove references to NOTE_INSN_LOOP_VTOP
180 and NOTE_INSN_LOOP_CONT.
181 * insn-notes.def (NOTE_INSN_LOOP_VTOP, NOTE_INSN_LOOP_CONT): Remove.
182 * jump.c (squeeze_notes): Remove references to NOTE_INSN_LOOP_VTOP
183 and NOTE_INSN_LOOP_CONT.
184 * loop.c (scan_loops, find_and_verify_loops, for_each_insn_in_loop,
185 check_dbra_loop, loop_dump_aux): Remove references to removed notes
186 and fields.
187 * reorg.c (mostly_true_jump): Do not rely on NOTE_INSN_LOOP_VTOPs.
188 * unroll.c (unroll_loop, copy_loop_body, loop_iterations): Remove
189 references to removed notes and fields.
190 (subtract_reg_term, ujump_to_loop_cont): Remove.
191
078e3ffe
PB
1922004-08-25 Paolo Bonzini <bonzini@gnu.org>
193
8b63d0e5 194 * doc/install.texi: Document that libcpp does not require
078e3ffe
PB
195 Automake any longer. Document that Automake 1.9.1 should
196 work everywhere.
197
f8ca7e49
ZW
1982004-08-25 Zack Weinberg <zack@codesourcery.com>
199
200 * flags.h (enum debug_info_type): Remove DWARF_DEBUG.
201 * defaults.h (PREFERRED_DEBUGGING_TYPE): Remove check for
202 DWARF_DEBUGGING_INFO from choice-of-definition chain;
203 restructure using C89 features (#elif, #error).
204 * c-lex.c, final.c, opts.c, config/cris/cris.c, config/frv/frv.c
205 * config/sh/sh.h: Remove references to DWARF_DEBUG.
206 * doc/invoke.texi: Remove references to DWARF version 1;
207 clarify why -gdwarf-2<n> doesn't work.
208
51a904c9
ZW
2092004-08-25 Zack Weinberg <zack@codesourcery.com>
210
211 * basic-block.h (BB_SET_PARTITION): Clear old value first.
212 * cfg.c (clear_bb_flags): Don't clear partition setting.
69b9b0d2 213 * ifcvt.c (find_if_case_1): Remove ??? comment.
51a904c9 214
e548ead9
AM
2152004-08-25 Alan Modra <amodra@bigpond.net.au>
216
217 PR target/17052
218 * config/rs6000/rs6000.h (machine_function): Remove sysv_varargs_p.
219 * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Use
220 current_function_stdarg in place of sysv_varargs_p.
221 * config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
222 sysv_varargs_p.
223
1e19ac74
RH
2242004-08-24 Richard Henderson <rth@redhat.com>
225
226 PR target/16298
227 * config/i386/i386.c (legitimate_constant_p): Rework to not accept
228 random codes within CONST.
229
c61225e7
JW
2302004-08-24 James E Wilson <wilson@specifixinc.com>
231
232 * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS): Remove
233 -freorder-blocks-and-partition.
234
37840132
JDA
2352004-08-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
236
237 PR middle-end/17044
238 * tree-ssa-threadupdate.c (redirection_data): Make static.
239 (thread_block): Use ggc_alloc_cleared to allocate struct
240 redirection_data. Don't free elements in redirection_data.
241
cf1d880b
RS
2422004-08-24 Richard Sandiford <rsandifo@redhat.com>
243
244 * config/mips/predicates.md (small_data_pattern): Match prefetches.
245
b3393f1f
ZD
2462004-08-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
247
248 PR tree-optimization/17016
249 * tree-ssa-loop-niter.c (number_of_iterations_cond,
250 number_of_iterations_exit): Use POINTER_TYPE_P instead
251 of testing for POINTER_TYPE.
252
82b85a85
ZD
2532004-08-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
254
255 * tree-ssa-loop-ivcanon.c: New file.
256 * tree-ssa-loop-manip.c (create_iv): New function.
257 * Makefile.in (tree-ssa-loop-ivcanon.o): Add.
258 (tree-ssa-loop.o, tree-ssa-loop-manip.o): Add SCEV_H dependency.
259 * cfgloop.c (mark_single_exit_loops): New function.
260 (verify_loop_structure): Verify single-exit loops.
261 * cfgloop.h (struct loop): Add single_exit field.
262 (LOOPS_HAVE_MARKED_SINGLE_EXITS): New constant.
263 (mark_single_exit_loops): Declare.
264 (tree_num_loop_insns): Declare.
265 * cfgloopmanip.c (update_single_exits_after_duplication): New function.
266 (duplicate_loop_to_header_edge): Use it.
267 * common.opt (fivcanon): New flag.
268 * timevar.def (TV_TREE_LOOP_IVCANON, TV_COMPLETE_UNROLL): New timevars.
269 * tree-cfg.c (tree_find_edge_insert_loc): Return newly created block.
270 (bsi_commit_edge_inserts_1): Pass null to tree_find_edge_insert_loc.
271 (bsi_insert_on_edge_immediate): New function.
272 * tree-flow.h (bsi_insert_on_edge_immediate,
273 canonicalize_induction_variables, tree_unroll_loops_completely,
274 create_iv): Declare.
275 * tree-optimize.c (init_tree_optimization_passes): Add
276 pass_iv_canon and pass_complete_unroll.
277 * tree-pass.h (pass_iv_canon, pass_complete_unroll): Declare.
278 * tree-scalar-evolution.c (get_loop_exit_condition,
279 get_exit_conditions_rec, number_of_iterations_in_loop,
280 scev_initialize): Use single_exit information.
281 * tree-ssa-loop-niter.c (number_of_iterations_cond): Record
282 missing assumptions.
283 (loop_niter_by_eval): Return number of iterations as unsigned
284 int.
285 * tree-ssa-loop.c (tree_ssa_loop_init): Mark single exit loops.
286 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_iv_canon,
287 tree_complete_unroll, gate_tree_complete_unroll, pass_complete_unroll):
288 New passes.
289 (tree_ssa_loop_done): Call free_numbers_of_iterations_estimates.
290 * tree-ssanames.c (make_ssa_name): Allow creating ssa name before
291 the defining statement is ready.
292 * tree-vectorizer.c (vect_create_iv_simple): Removed.
293 (vect_create_index_for_array_ref, vect_transform_loop_bound):
294 Use create_iv.
295 (vect_transform_loop_bound): Use single_exit information.
296 (vect_analyze_loop_form): Cleanup bogus tests.
297 (vectorize_loops): Do not call flow_loop_scan.
298 * tree.h (may_negate_without_overflow_p): Declare.
299 * fold-const.c (may_negate_without_overflow_p): Split out from ...
300 (negate_expr_p): ... this function.
301 (tree_expr_nonzero_p): Handle overflowed constants correctly.
302 * doc/invoke.texi (-fivcanon): Document.
303 * doc/passes.texi: Document canonical induction variable creation.
304
b3c90666
RS
3052004-08-24 Richard Sandiford <rsandifo@redhat.com>
306
307 * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): Delete.
308 * config/mips/mips.c (print_operand): Fold %B/%b handling into %T/%t,
309 using the mode of the operand to decide between them.
310 * config/mips/mips.md (MOVECC): New mode macro.
311 (ccreg): New mode attribute.
312 (*mov{si,di,sf,df}_on_{cc,si,di}): Name formerly unnamed patterns.
313 Redefine using :GPR and :MOVECC. Use %T and %t for the condition.
314 (mov[sd]icc): Redefine using :GPR.
315
4767c570
RS
3162004-08-24 Richard Sandiford <rsandifo@redhat.com>
317
04550232
RS
318 * config/mips/mips-protos.h (mips_emit_prefetch): Delete.
319 (mips_prefetch_cookie): New function.
320 * config/mips/mips.c (print_operand_address): Fix handling of
321 ADDRESS_CONST_INT.
322 (mips_emit_prefetch): Delete.
323 (mips_prefetch_cookie): New function.
324 * config/mips/mips.md (prefetch): Turn into a define_insn. Use a
325 mode of QImode for the address_operand. Use mips_prefetch_cookie
326 to calculate the first "pref" operand.
327 (prefetch_[sd]i, prefetch_[sd]i_address): Delete.
328 (prefetch_indexed_[sd]i): Redefine using :P. Use mips_prefetch_cookie.
4767c570 329
a657c98a
RE
3302004-08-24 Richard Earnshaw <rearnsha@arm.com>
331
332 * arm.md: Include predicates.md.
333 * predicates.md: New file.
334 * arm.c (s_register_operand, arm_hard_register_operand)
335 (arm_general_register_operand, f_register_operand, reg_or_int_operand)
336 (arm_immediate_operand, arm_neg_immediate_operand)
337 (arm_not_immediate_operand, arm_rhs_operand, arm_rhsm_operand)
338 (arm_add_operand, arm_addimm_operand, arm_not_operand)
339 (offsettable_memory_operand, alignable_memory_operand)
340 (arm_reload_memory_operand, arm_float_rhs_operand)
341 (arm_float_add_operand, vfp_compare_operand, arm_float_compare_operand)
342 (index_operand, shiftable_operator, logical_binary_operator)
343 (shift_operator, equality_operator, arm_comparison_operator)
344 (minmax_operator, cc_register, dominant_cc_register)
345 (arm_extendqisi_mem_op, power_of_two_operand, nonimmediate_di_operand)
346 (di_operand, nonimmediate_soft_df_operand, soft_df_operand)
347 (const_shift_operand, load_multiple_operation)
348 (store_multiple_operation, multi_register_push, thumb_cmp_operand)
349 (thumb_cmpneg_operand, thumb_cbrch_target_operand)
350 (cirrus_register_operand, cirrus_fp_register)
351 (cirrus_shift_const): Delete, replaced with equivalents in
352 predicates.md.
353 (shift_op): Handle ROTATE.
354 * arm-protos.h: Delete declarations for above.
355 * arm.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
356 * t-arm (MD_INCLUDES): Add predicates.md.
357 (s-preds): Depends on MD_INCLUDES.
358
886ce862
RS
3592004-08-24 Richard Sandiford <rsandifo@redhat.com>
360
361 * config/mips/mips.c (mips_gen_conditional_trap): Fix mode.
362 * config/mips/mips.md (*conditional_trap[sd]i): Name previously unnamed
363 patterns. Redefine using :GPR. Give the match_operator a mode.
364 Use '%2' rather than '%z2' for operand 2.
365
be659abd
RS
3662004-08-24 Richard Sandiford <rsandifo@redhat.com>
367
368 * config/mips/mips.md (load_call[sd]i): Redefine using :P. Add mode
369 attribute.
370
92dcb882
RS
3712004-08-24 Richard Sandiford <rsandifo@redhat.com>
372
373 * config/mips/mips.md (indirect_jump): Use force_reg. Adjust names
374 of internal patterns.
375 (indirect_jump[sd]i): Renamed from indirect_jump_internal[12].
376 Redefine using :P.
377 (tablejump): Use expand_binop to calculate address. Adjust names
378 of internal patterns.
379 (tablejump[sd]i): Renamed from tablejump_internal[12].
380 Redefine using :P.
381 (tablejump_mips16[12]): Delete.
382
a0160289
RS
3832004-08-24 Richard Sandiford <rsandifo@redhat.com>
384
385 * config/mips/mips.md (*seq_[sd]i, *seq_[sd]i_mips16, *sne_[sd]i)
386 (*sgt_[sd]i, *sgt_[sd]i_mips16, *sge_[sd]i, *slt_[sd]i)
387 (*slt_[sd]i_mips16, *sle_[sd]i, *sle_[sd]i_mips16, *sgtu_[sd]i)
388 (*sgtu_[sd]i_mips16, *sge_[sd]i, *sltu_[sd]i, *sltu_[sd]i_mips16)
389 (*sleu_[sd]i, *sleu_[sd]i_mips16): Redefine using :GPR.
390
2c4402f4
RS
3912004-08-24 Richard Sandiford <rsandifo@redhat.com>
392
393 * config/mips/mips.md (cmpsi, cmpdi): Redefine using :GPR.
394 (*branch_zero[sd]i): Renamed from branch_zero{,_di}. Redefine
395 using :GPR.
396 (*branch_zero[sd]i_inverted): Likewise branch_zero{,_di}_inverted.
397 (*branch_equality[sd]i): Likewise branch_equality{,_di}.
398 (*branch_equality[sd]i_inverted): Likewise
399 branch_equality{,_di}_inverted.
400 (*branch_equality[sd]i_mips16): Name formerly unnamed patterns.
401 Redefine using :GPR.
402
b5c2f1d1
ZW
4032004-08-24 Zack Weinberg <zack@codesourcery.com>
404
405 * rtl.def: Reorganize, placing all codes used only in machine
406 descriptions at the end.
407
9e995780
ZW
408 * rtl.def: Wrap MD-only codes in #ifdef GENERATOR_FILE.
409 * gengtype.c: Don't include rtl.h. Define enum rtx_code and
410 rtx_name, rtx_format arrays by direct reference to rtl.def,
411 first undefining GENERATOR_FILE. Define enum insn_note and
412 note_insn_name array by direct reference to insn-notes.def.
413 (adjust_field_rtx_def): Remove local definition of rtx_name.
414 Use symbolic names for insn notes.
415 * Makefile.in (gengtype.o): Update dependencies.
416
076c7ab8
ZW
4172004-08-24 Zack Weinberg <zack@codesourcery.com>
418
419 * basic-block.h (struct basic_block_def): Reorder fields to
420 eliminate interior padding. Remove 'partition' field.
421 (BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION)
422 (BB_UNPARTITIONED, BB_PARTITION, BB_SET_PARTITION)
423 (BB_COPY_PARTITION): New macros.
424 * bb-reorder.c, cfgcleanup.c, cfglayout.c, cfgrtl.c, ifcvt.c
425 Replace all references to the 'partition' field of a basic
426 block with new macros.
427
428 * insn-notes.def: Delete NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
429 * final.c (final_scan_insn): Don't handle it.
430 * modulo-sched.c: Set BB_DISABLE_SCHEDULE flag on g->bb
431 instead of emitting a NOTE_INSN_DISABLE_SCHED_OF_BLOCK note.
432 * sched-rgn.c (sched_is_disabled_for_current_region_p):
433 Look for a BB_DISABLE_SCHEDULE flag on the block instead of a note.
434
8c1d6d62
NS
4352004-08-24 Nathan Sidwell <nathan@codesourcery.com>
436
437 * c-decl.c (c_init_decl_processing): Adjust
438 build_common_tree_nodes call.
439 * expmed.c (const_mult_add_overflow_p): Use
440 build_distinct_type_copy.
441 * stor-layout.c (early_type_list): Remove.
442 (layout_type): Don't append to early_type_list.
443 (initialize_sizetypes): Add signed_p argument.
444 (set_sizetype): Overwrite the stub type nodes directly.
445 * tree.c (copy_node_stat): Clear a type's value cache here ...
446 (build_distinct_type): ... not here.
447 (build_common_tree_nodes): Add signed_sizetype argument. Adjust.
448 * tree.h (initialize_sizetypes): Add signed_p argument.
449 (build_common_tree_nodes): Likewise.
450
451 * objc/objc-act.c (get_static_reference): Use
452 build_variant_type_copy.
453 (get_protocol_reference): Likewise.
454 * objc/objc-act.h (TREE_STATIC_TEMPLATE): Use TREE_PRIVATE.
455
97dc04b3 4562004-08-24 Richard Henderson <rth@redhat.com>
076c7ab8 457 Andrew Pinski <apinski@apple.com>
97dc04b3
RH
458
459 * gimplify.c (gimplify_array_ref_to_plus): Delete.
460 (gimplify_addr_expr): Do not call gimplify_array_ref_to_plus
461 for ARRAY_REF.
462
463 * config/rs6000/rs6000.c (altivec_expand_builtin): Go passed
464 ARRAY_REF also to get to the STRING_CST.
465
72cdc543
PB
4662004-08-24 Paul Brook <paul@codesourcery.com>
467
468 * config/arm/arm.c (arm_override_options): Update error message.
469 * config/arm/arm.h (TARGET_HARD_FLOAT): Rename to
470 TARGET_HARD_FLOAT_ABI.
471 (TARGET_SOFT_FLOAT_ABI): Rename to TARGET_HARD_FLOAT.
472 (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Use TARGET_HARD_FLOAT_ABI.
473
bd5ca07e
NC
4742004-08-24 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
475
476 PR target/17093
477 * config/m32r.md (movsi_sda): Add SI mode specification to
478 UNSPEC.
479
4802004-08-24 Nick Clifton <nickc@redhat.com>
481
482 * config/m32r/m32r.h (PREDICATE_CODES): Remove duplicate definition
483 of seth_add3_operand.
484
d46cd2be
NS
4852004-08-24 Nathan Sidwell <nathan@codesourcery.com>
486
487 * Makefile.in (PROTO_OBJS): Add errors.o.
488 * protoize.c (fancy_abort): Remove.
489 * mips-tfile.c (fancy_abort): Add parameters.
490
748fa294
JW
4912004-08-24 Jonathan Wakely <redi@gcc.gnu.org>
492
493 * doc/trouble.texi (C++ misunderstandings): Fix example code.
494
4505f099
AT
4952004-08-24 Andreas Tobler <a.tobler@schweiz.ch>
496
497 * Makefile.in (HOOKS_H): Add dependency on MACHMODE_H.
498 (host-default.o): Add dependency on HOOKS_H.
499 * config/x-linux: Likewise.
500 * config/x-solaris: Likewise.
501 * config/i386/x-mingw32: Likewise.
502 * config/rs6000/x-darwin: Likewise.
503
a2fe1975
JW
5042004-08-23 James E Wilson <wilson@specifixinc.com>
505
506 * reg-notes.def (REG_NOTE): In comment, change DEF_INSN_NOTE to
507 DEF_REG_NOTE.
508
c3f216e2
MM
5092004-08-23 Mark Mitchell <mark@codesourcery.com>
510
511 PR c/14492
512 * dwarf2out.c (loc_descriptor_from_tree): Robustify.
513
2e6ae27f
DN
5142004-08-23 Diego Novillo <dnovillo@redhat.com>
515
516 * cfg.c (check_bb_profile): Fix typos.
517 * function.c (assign_parm_is_stack_parm): Likewise.
518 * tree-nested.c: Likewise.
519
d685c974
DJ
5202004-08-23 Daniel Jacobowitz <dan@debian.org>
521
522 * ggc-zone.c (struc alloc_chunk): Rearrange flag bits and SIZE.
523 Remove TYPECODE.
524 (ggc_alloc_zone_1): Mark TYPE as unused. Don't save it in the chunk.
525
f676971a
EC
5262004-08-23 Eric Christopher <echristo@redhat.com>
527
528 * defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro.
529 * system.h (VECTOR_MODE_SUPPORTED_P): Poison.
530 * target-def.h (TARGET_VECTOR_MODE_SUPPORTED_P): Define.
531 * target.h: Ditto.
532 * hooks.h: Include machmode.h.
533 (hook_bool_mode_false): Declare.
534 * hooks.c (hook_bool_mode_false): Define.
535 * expr.c (vector_mode_valid_p): Use targetm.vector_mode_supported_p.
536 * stor-layout.c (layout_type): Ditto.
537 * config/alpha/alpha.c (alpha_vector_mode_supported_p): New function.
538 Define to target macro.
539 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): Delete.
540 * config/arm/arm.c: Ditto. Use.
541 * config/arm/arm.h: Ditto.
542 * config/arm/arm-protos.h: Ditto.
543 * config/i386/i386.c: Ditto.
544 * config/i386/i386.h: Ditto.
545 * config/rs6000/rs6000.c: Ditto.
546 * config/rs6000/rs6000.h: Ditto.
547 * config/sh/sh.c: Ditto.
548 * config/sh/sh.h: Ditto.
549 * config/sh/sh-protos.h: Ditto.
550 * config/sh/sh.md: Use.
551 * doc/tm.texi: Move documentation for VECTOR_MODE_SUPPORTED_P
552 to TARGET_VECTOR_MODE_SUPPORTED_P.
553
8dd16ecc
NS
5542004-08-23 Nathan Sidwell <nathan@codesourcery.com>
555
b3d1f5b4
NS
556 * Makefile.in (BUILD_ERRORS): Set to build-errors.
557 (errors.o): New target for host.
558 (build-errors.o): New target for build.
559 (genobjs): Replace errors.o with build-errors.
560 (gengenrtl$(buildexeext)): Add $(BUILD_ERRORS).
561 (GCOV_OBJS, GCOV_DUMP_OBJS): Add errors.o.
562 (fix-headers$(build_exeext)): Add $(BUILD_ERRORS).
563 (fix-header.o): Add errors.h
564 * collect2.c (fancy_abort): Add parameters.
565 * collect2.h (fancy_abort): Don't declare.
566 * errors.h (fancy_abort): Don't declare.
567 * errors.c: Include either bconfig.h or config.h.
568 (fancy_abort): Trim filename.
569 * fix-header.c (v_fatal, fatal): Remove.
570 (progname): Remove definition.
571 (main): Set progname here.
572 * gcc.c (fancy_abort): Add parameters.
573 * gcc.h (fancy_abort): Remove declaration.
574 * gcov.c (fancy_abort): Remove.
575 * rtl.h (fancy_abort): Don't declare.
576 (abort): Don't define.
577 * tree.h (fancy_abort): Don't declare.
578 (abort): Don't define.
579 * system.h (fancy_abort): Declare.
580 (abort): Define to fancy_abort.
581 * fixinc/Makefile.in (ALLOBJ): Add ../build-errors.o
582
be88a628
NS
583 * tree.h (enum size_type_kind): Remove USIZETYPE, UBITSIZETYPE.
584 (usize_type, ubitsizetype): Remove.
585 * stor-layout.c (set_sizetype): Don't initialize usizetype,
586 ubitsizetype.
587 * fold-const.c (size_diffop): TYPE can never be ubitsizetype.
588
8dd16ecc
NS
589 * tree.h (build_distinct_type_copy): New.
590 (build_type_copy): ... here. Rename to ...
591 (build_variant_type_copy): ... here.
592 * tree.c (build_qualified_type): Rename build_type_copy call.
593 (build_distinct_type_copy): New, broken out of ...
594 (build_type_copy): ... here. Rename to ...
595 (build_variant_type_copy): ... here. Use
596 build_distinct_type_copy.
597 (build_common_tree_nodes_2): Rename build_type_copy call.
598 * c-common.c (c_common_nodes_and_builtins): Rename build_type_copy
599 call.
600 (handle_packed_attribute, handle_unused_attribute,
601 handle_transparanet_union_attribute, handle_aligned_attribute,
602 handle_deprecated_attribute): Likewise.
603 * c-decl.c (clone_underlying_type, store_parm_decls_oldstyle):
604 Likewise.
605 * config/arm/arm.c (arm_handle_isr_attribyte): Likewise.
606 * config/rs6000/rs6000.c (rs6000_init_builtins): Use
607 build_distinct_type_copy.
608
e8bf0f3b
RS
6092004-08-23 Richard Sandiford <rsandifo@redhat.com>
610
611 * config/mips/mips.md (mfhilo_[sd]i): Redefine using :GPR. Add mode
612 attribute.
613
4d06ed0a
RS
6142004-08-23 Richard Sandiford <rsandifo@redhat.com>
615
616 * config/mips/mips.md (length): Don't use mips_fetch_insns for indexed
617 loads and stores.
618 (*lwxc1_<mode>, *ldxc1_<mode>, *swxc1_<mode>, *sdxc1_<mode>): Name
619 formerly unnamed patterns. Redefine using :P for the address. Remove
620 explicit length attributes.
621
a3631d97
ZD
6222004-08-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
623
624 * tree-ssa-loop-im.c (fem_single_reachable_address, for_each_memref):
625 New functions.
626 (single_reachable_address): Use them.
627 (schedule_sm): Add dump.
628 (is_call_clobbered_ref): New function.
629 (determine_lsm_reg): Check whether the reference is call clobbered.
630 Only work for gimple_reg_type values.
631
b1f58428
RS
6322004-08-23 Richard Sandiford <rsandifo@redhat.com>
633
634 * config/mips/mips.md (*mov<mode>_ra): Name previously unnamed MIPS16
635 $31 store insns. Redefine using :GPR.
636
237b301e
RS
6372004-08-23 Richard Sandiford <rsandifo@redhat.com>
638
639 * config/mips/mips.md (P): New mode macro.
640 (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i)
641 (*load_got[sd]i, *low[sd]i, *low[sd]i_mips16): Redefine using :P.
642 Add mode attributes.
643
c9081a92
RS
6442004-08-23 Richard Sandiford <rsandifo@redhat.com>
645
646 * config/mips/mips.md (UNSPEC_[LS][WD][LR]): Delete in favor of...
647 (UNSPEC_{LOAD,STORE}_{LEFT,RIGHT}): ...these new constants. Shuffle
648 later constants to cover the gap.
649 (load, store): New mode attributes.
650 (mov_l[wd]l, mov_l[wd]r, mov_s[wd]l, mov_s[wd]r): Redefine using :GPR.
651 Use new unspec constants.
652
3d1f285d
RS
6532004-08-23 Richard Sandiford <rsandifo@redhat.com>
654
655 * config/mips/mips.md (one_cmpl[sd]i2): Redefine using :GPR.
656 (and[sd]3, ior[sd]i3, xor[sd]i3): Likewise. Change 32-bit patterns
657 to use register_operand rather than uns_arith_operand as the predicate
658 for operand 1. Remove redundant MIPS16 force_reg() for operand 1.
659 (*and[sd]i3, *ior[sd]i3, *xor[sd]i3): Name formerly unnamed patterns.
660 Redefine using :GPR. Make same predicate change here. Extend the
661 commutativity of operands 1 and 2 from the SImode version to the
662 DImode one.
663 (*and[sd]i3_mips16, *ior[sd]i3_mips16, *xor[sd]i3_mips16): Likewise,
664 but with no predicate changes.
665 (*nor[sd]i3): Redefine using :GPR.
666
c0e1b12f
ZD
6672004-08-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
668
669 * tree-ssa-operands.c (get_call_expr_operands): Add VUSE operands for
670 noreturn functions.
671
400a9325
RS
6722004-08-23 Richard Sandiford <rsandifo@redhat.com>
673
674 * config/mips/mips.h (ISA_HAS_DCLZ_DCLO): Delete.
675 * config/mips/mips.md (abs[sd]i2): Redefine using :GPR. Only use
676 branch-likely insns for absdi2 if GENERATE_BRANCHLIKELY. Use "%."
677 rather than "%z2" (with a fake const0_rtx for operand 2).
678 (ffs[sd]i2): Redefine using :GPR.
679 (clz[sd]i2): Likewise. Use ISA_HAS_CLO_CLZ for the 64-bit case.
680
2222da3a
RS
6812004-08-23 Richard Sandiford <rsandifo@redhat.com>
682
683 * config/mips/mips.md ({,u}divmod[sd]i4): Redefine using :GPR.
684
15ac4ccf
RS
6852004-08-23 Richard Sandiford <rsandifo@redhat.com>
686
687 * config/mips/mips.md (any_extend): New code macro.
688 (u, su): New code attributes.
689 ({,u}mulsidi3, {,u}mulsidi3_32bit_internal, {,u}mulsidi3_32bit_r4000)
690 ({u,s}mulsi3_highpart, {u,s}mulsi3_highpart_internal)
691 ({u,s}mulsi3_highpart_mulhi_internal, {s,u}muldi3_highpart)
692 (*{s,u}mul_acc_di): Redefine using any_extend.
693 (*{,u}muls_di, *{s,u}msac_di): Likewise. Change names of patterns
694 to reflect real insn names.
695 (*mulsidi3_64bit, *mulsidi3_64bit_parts): Replace use of match_operator
696 with an any_extend template.
697 ({u,s}mulsi3_highpart_neg_mulhi_internal): Redefine using any_extend.
698 Add '*' to name.
699
d46c971d
RS
7002004-08-23 Richard Sandiford <rsandifo@redhat.com>
701
702 * config/mips/mips.h (GENERATE_MULT3_SI): Check TARGET_MAD.
703 * config/mips/mips.md (mul[sd]i3, mul[sd]i3_internal)
704 (mul[sd]i3_r4000): Redefine using :GPR.
705 (mulsi3_mult3): Don't check TARGET_MAD separately.
706 (muldi3_mult3): Moved after mulsi_mult3.
707
5811cb27
RS
7082004-08-23 Richard Sandiford <rsandifo@redhat.com>
709
710 * config.gcc (mips-*-*): Remove definitions of MASK_GAS and
711 OBJECT_FORMAT_ELF. Set MASK_SPLIT_ADDR by default if using GNU ld.
712 * config/mips/mips.h (MASK_GAS): Delete. Shuffle later masks down.
713 (TARGET_GAS, TARGET_MIPS_AS): Delete.
714 (TARGET_GPWORD): Define to true for n32 on IRIX.
715 (TARGET_SWITCHES): Remove -mmips-as. Turn -mgas into a no-op.
716 (MIPS_AS_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC): Delete.
717 (GAS_ASM_SPEC): Delete, folding into ASM_SPEC.
718 (ASM_ABI_DEFAULT_SPEC, TARGET_ASM_SPEC): Delete.
719 (MDEBUG_ASM_SPEC): Delete, folding into...
720 (SUBTARGET_ASM_DEBUGGING_SPEC): ...here.
721 (ASM_SPEC): Inline old GAS_ASM_SPEC. Use GNU names for ABI switches.
722 (EXTRA_SPECS): Remove mips_as_asm_spec, gas_asm_spec, target_asm_spec,
723 subtarget_mips_as_asm_spec, mdebug_asm_spec. Use MULTILIB_ABI_DEFAULT
724 to define asm_abi_default_spec.
725 (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP): Delete.
726 (TARGET_ASM_SELECT_SECTION): Delete.
727 * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Define to 0x7ff0
728 for non-mips16 code, removing previous workaround for SGI assemblers.
729 (TARGET_ASM_INTEGER, mips_assemble_integer): Delete.
730 (TARGET_ASM_ALIGNED_DI_OP): Define this instead.
731 (override_options): Remove !TARGET_GAS and !have_named_sections code.
732 (print_operand): Fold TARGET_GAS conditionals into asm strings.
733 (mips_output_filename): Remove !TARGET_GAS code. Replace use of
734 ASM_STABS_OP and ASM_STABN_OP.
735 (mips_file_start): Remove TARGET_MIPS_AS/TARGET_GAS checks.
736 (mips_output_aligned_decl_common): Remove mention of SGI o32 assembler.
737 (mips_output_function_prologue): Remove !TARGET_GAS code.
738 (mips_select_rtx_section): Remove !have_named_sections code.
739 (mips_select_section): Delete.
740 * config/mips/mips.md (trap): Remove !TARGET_GAS check.
741 * config/mips/linux.h (TARGET_DEFAULT): Remove use of MASK_GAS.
742 * config/mips/sdb.h (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF): Delete.
743 (PUT_SDB_BLOCK_START, PUT_SDB_BLOCK_END): Fold TARGET_GAS conditional.
744 * config/mips/vxworks.h (ASM_SPEC): As for mips.h.
745 * config/mips/windiss.h (ASM_SPEC): Likewise.
746
032e8348
RS
7472004-08-23 Richard Sandiford <rsandifo@redhat.com>
748
749 * read-rtl.c (map_value, mapping, macro_group): New structures.
750 (BELLWETHER_CODE): New macro.
751 (modes, codes, bellwether_codes): New variables.
752 (find_mode, uses_mode_macro_p, apply_mode_macro, find_code)
753 (uses_code_macro_p, apply_code_macro, apply_macro_to_string)
754 (apply_macro_to_rtx, uses_macro_p, add_condition_to_string)
755 (add_condition_to_rtx, apply_macro_traverse, add_mapping)
756 (add_map_value, initialize_macros): New functions.
757 (def_hash, def_hash_eq_p): Generalize to anything that points to,
758 or starts with, a char * field.
759 (find_macro, read_mapping, check_code_macro): New functions.
760 (read_rtx_1): New, split out from read_rtx. Handle the new
761 define_{mode,code}_{macro,attr} constructs. Use find_macro
762 to parse the name of a code or mode. Use BELLWETHER_CODE to
763 extract the format and to choose a suitable code for rtx_alloc.
764 Modify recursive invocations to use read_rtx_1.
765 (read_rtx): Call initialize_macros. Apply code and mode macros
766 to the rtx returned by read_rtx_1. Cache everything after the
767 first macro expansion for subsequent read_rtx calls.
768 * doc/md.texi: Document new .md constructs.
769 * config/mips/mips.md (GPR): New mode macro.
770 (d, si8_di5): New mode attributes.
771 (any_cond): New code macro.
772 (add[sd]i3): Redefine using :GPR.
773 (*add[sd]i3): Likewise, renaming from add[sd]i3_internal.
774 (*add[sd]i3_sp[12], *add<mode>3_mips16): Redefine using :GPR, naming
775 previously unnamed MIPS16 patterns.
776 (*addsi3_extended): Renamed from addsi3_internal_2. Fix overly long
777 lines. Don't match (plus (const_int 0) ...).
778 (*addsi3_extended_mips16): Name previously unnamed MIPS16 pattern.
779 Use a define_split to generate the addition.
780 (sub[sd]i3): Redefine using :GPR. Turn subsi3 into a define_insn.
781 (subsi3_internal): Delete.
782 (*subsi3_extended): Renamed from subsi3_internal_2.
783 (bunordered, bordered, bunlt, bunge, buneq, bltgt, bunle, bungt)
784 (beq, bne, bgt, bge, blt, ble, bgtu, bgeu, bltu, bleu): Redefine
785 using an any_cond template.
786
ecce923e
RS
7872004-08-23 Richard Sandiford <rsandifo@redhat.com>
788
789 * read-rtl.c (read_rtx): Tidy use of format_ptr.
790
a269d6c8
RS
7912004-08-23 Richard Sandiford <rsandifo@redhat.com>
792
793 * read-rtl.c (string_obstack): New file-scope variable.
794 (read_string, read_quoted_string, read_braced_string)
795 (read_escape): Remove obstack parameter and use string_obstack instead.
796 (read_rtx): Remove function-local rtl_obstack and initialize
797 string_obstack instead. Update call to read_string.
798
9fc3b39a
AP
7992004-08-22 Andrew Pinski <apinski@apple.com>
800
801 PR c/15262
802 * c-typeck.c (build_unary_op): Use &a.b if the foldded lowered
803 expression is not constant.
804 (c_finish_return): Do not go through INDIRECT_REF when looking
805 for the inner expression of an ADDR_EXPR for warning about.
806
cea49550
RH
8072004-08-22 Richard Henderson <rth@redhat.com>
808
809 PR 17075
810 * cfgexpand.c (expand_gimple_tailcall): Detect when we can both
811 create new blocks and fall through.
812 (expand_gimple_basic_block): Update to match.
813
0b540f12
UW
8142004-08-22 Ulrich Weigand <uweigand@de.ibm.com>
815
816 * reload.c (find_reloads_address): Make return value tri-state.
817 Return -1 if LEGITIMIZE_RELOAD_ADDRESS succeeded.
818 (find_reloads): Assume that reloaded addresses match 'o' or
819 EXTRA_MEMORY_CONSTRAINT constraints only if find_reloads_address
820 returned 1 (not -1). Omit optional reloads for address operands
821 only if find_reloads_address returned 1 (not -1).
822
823 * config/s390/s390.c (legitimize_reload_address): New function.
824 * config/s390/s390-protos.h (legitimize_reload_address): Declare.
825 * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Define. Call
826 legitimize_reload_address.
827
7f5e6307
RH
8282004-08-22 Richard Hendersion <rth@redhat.com>
829
830 * tree.h (SAVE_EXPR_RESOLVED_P): New.
831 * gimplify.c (gimplify_save_expr): Use it.
832 * expr.c (expand_expr_real_1): Likewise. Also set DECL_IGNORED_P
833 on the temporary variable.
834
efd610a6
AP
8352004-08-22 Andrew Pinski <pinskia@physics.uc.edu>
836
837 * fold-const.c (rtl_expr_nonnegative_p): Delete.
838 * tree.h (rtl_expr_nonnegative_p): Remove.
839
324a6c95
SB
8402004-08-22 Steven Bosscher <stevenb@suse.de>
841
842 * config/i386/ppro.md (ppro_complex_insn): Add missing check
843 for cpu==pentiumpro.
844
845 * combine.c (struct reg_stat): Fix comment typo.
846
41db8425
JM
8472004-08-22 Joseph S. Myers <jsm@polyomino.org.uk>
848
849 * c-tree.h (c_sizeof_nowarn): Remove.
850
00325bce
JM
8512004-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
852
853 * c-decl.c (set_array_declarator_type): Rename to
854 set_array_declarator_inner.
855 (build_c_parm, build_attrs_declarator, build_function_declarator):
856 New functions.
857 (make_pointer_declarator): Call build_attrs_declarator.
858 * c-tree.h (set_array_declarator_type): Rename to
859 set_array_declarator_inner.
860 (build_c_parm, build_attrs_declarator, build_function_declarator):
861 New prototypes.
862 * c-parse.in (after_type_declarator,
863 parm_declarator_starttypename, parm_declarator_nostarttypename,
864 notype_declarator, absdcl_maybe_attribute, direct_absdcl1, parm,
865 firstparm): Use these functions
866
60919bce
JM
8672004-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
868
869 * c-decl.c (build_array_declarator, set_array_declarator_type,
870 start_decl, grokdeclarator, grokparms): Change boolean parameters
871 to type bool.
872 * c-tree.h (build_array_declarator, set_array_declarator_type,
873 start_decl): Update prototypes.
874 * c-decl.c, c-parse.in: All callers changed.
875
bdfd0ed4
MS
8762004-08-21 Mike Stump <mrs@apple.com>
877
878 * config/rs6000/darwin.h (SUBTARGET_OPTIONS): Move from here, to...
879 (darwin_fix_and_continue): Likewise.
880 (darwin_fix_and_continue_switch): Likewise.
881 * config/darwin.h (SUBTARGET_OPTIONS): ...here, to fix -mone-byte-bool.
882 (darwin_fix_and_continue): Likewise.
883 (darwin_fix_and_continue_switch): Likewise.
884
35da8b56 8852004-08-21 Danny Smith <dannysmith@users.sourceforge.net>
23d34220
DS
886
887 PR c++/16030
888 * config/i386/winnt/c (gen_stdcall_suffix, gen_fastcall_suffix):
889 Remove, merging into ...
890 (gen_stdcall_or_fastcall_suffix): New function, returning tree
891 rather than const char*, and accepting additional parameter.
892 Don't add suffix to '*'-prefixed symbols or variadic functions.
893 (i386_pe_encode_section_info): Adjust for call to new function.
894 Call change_decl_assembler_name.
895
828a4fe4
MS
8962004-08-20 Mike Stump <mrs@apple.com>
897
898 * config/darwin.c (machopic_indirect_data_reference): Mark
899 stubs as defined.
900 * config/386/386.c (darwin_local_data_pic): Add.
901 (legitimate_constant_p): Reorder so that PLUS handling runs
902 before darwin_local_data_pic to match the ordering in
903 legitimate_pic_address_disp_p and so that MINUS runs after
904 darwin_local_data_pic as otherwise the darwin_local_data_pic
905 logic can be skipped, which would be very bad.
906 (legitimate_pic_address_disp_p): Move from from here to
907 darwin_local_data_pic so it can be reused.
908
85b776df
AM
9092004-08-21 Alan Modra <amodra@bigpond.net.au>
910
911 * config/rs6000/linux64.h (DOT_SYMBOLS): Define.
912 (CRT_CALL_STATIC_FUNCTION): Define !DOT_SYMBOLS version.
913 (ASM_DECLARE_FUNCTION_SIZE): Modify for !DOT_SYMBOLS.
914 (ASM_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Likewise.
915 (RS6000_ABI_NAME): Define as "linux".
916 (SUBSUBTARGET_OVERRIDE_OPTIONS): Set dot_symbols.
917 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Select
918 ABI_AIX when rs6000_abi_name is "linux" and TARGET_64BIT.
919 * config/rs6000/rs6000-protos.h (rs6000_output_function_entry): Decl.
920 * config/rs6000/rs6000.c (dot_symbols): New global var.
921 (rs6000_output_function_entry): New function, modified for
922 !DOT_SYMBOLS..
923 (print_operand <case 'z'>): ..extracted from here.
924 (rs6000_assemble_visibility): Modify for !DOT_SYMBOLS.
925 (rs6000_output_function_epilogue): Likewise.
926 (rs6000_elf_declare_function_name): Likewise.
927 * config/rs6000/rs6000.h (DOT_SYMBOLS): Define.
928 (ASM_WEAKEN_DECL, ASM_OUTPUT_DEF_FROM_DECLS): Modify for !DOT_SYMBOLS.
929 * configure.ac (HAVE_LD_NO_DOT_SYMS): Add new AC_DEFINE.
930 * configure: Regenerate.
931 * config.in: Regenerate.
932
14d3dc34
MM
9332004-08-20 Mark Mitchell <mark@codesourcery.com>
934
0e544c37
MM
935 * reload.c (find_reloads_address): Fix thinko in previous change.
936
14d3dc34
MM
937 * reload.c (find_reloads_address): Reload the sum of a LO_SUM and
938 a CONST_INT.
939
f3b2657c
JJ
9402004-08-20 Jakub Jelinek <jakub@redhat.com>
941
942 PR rtl-optimization/17099
943 * combine.c (force_to_mode): Check if inner_mask has any bits set
944 outside of GET_MODE (x) instead of op_mode.
945
d2294baa
MM
9462004-08-20 Mark Mitchell <mark@codesourcery.com>
947
948 * config.gcc (arm*-*-symbianelf*): Add t-symbian Makefile
949 fragment.
950 * config/arm/bpabi.h (RENAME_LIBRARY_SET): Fix typo.
951 (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=3 to the assembler.
952 * config/arm/symbian.h (SUBTARGET_CPU_DEFAULT): Assume ARMV5
953 architecture.
954 (SUBTARGET_ASM_FLOAT_SPEC): Default to -mfpu=vfp for hard-float
955 configurations.
956 * config/arm/t-symbian: New file.
957
753d0efa
AP
9582004-08-20 Andrew Pinski <apinski@apple.com>
959
960 * regrename.c (kill_value_regno): ANSIfy.
961
627b6fe2
DJ
9622004-08-20 Dale Johannesen <dalej@apple.com>
963
324a6c95 964 * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve DIV/MOD.
627b6fe2 965
d64d5e80
DJ
9662004-08-20 Daniel Jacobowitz <dan@debian.org>
967
968 * regrename.c (kill_value_one_regno): Renamed from kill_value_regno.
969 (kill_value_regno): New function, derived from kill_value.
970 (kill_value): Update.
971 (copyprop_hardreg_forward_1): Update call to kill_value_regno.
972
af75a7ea 9732004-08-20 Daniel Berlin <dberlin@dberlin.org>
f676971a 974
af75a7ea
DB
975 Fix PR tree-optimization/17111
976 * tree-ssa-pre.c (create_value_expr_from): Don't change the types
977 of non-value_handles.
978 (bitmap_set_contains): All constants are in every set.
979
0a936b12
NS
9802004-08-20 Nathan Sidwell <nathan@codesourcery.com>
981
982 * fold-const.c (round_up, round_down): Use build_int_cst.
983 Optimize common case.
984
774acadf
ZW
9852004-08-20 Zack Weinberg <zack@codesourcery.com>
986 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
987
324a6c95 988 * config/pa/pa-protos.h (readonly_data, one_only_readonly_data_section,
774acadf
ZW
989 one_only_data_section): Rename to som_readonly_data_section,
990 som_one_only_readonly_data_section and som_one_only_data_section.
324a6c95 991 * config/pa/pa.c (ONE_ONLY_TEXT_SECTION_ASM_OP,
0a936b12
NS
992 NEW_TEXT_SECTION_ASM_OP, DEFAULT_TEXT_SECTION_ASM_OP): Delete
993 conditional defines.
774acadf
ZW
994 (som_text_section_asm_op): Replace ONE_ONLY_TEXT_SECTION_ASM_OP,
995 NEW_TEXT_SECTION_ASM_OP and DEFAULT_TEXT_SECTION_ASM_OP with actual
996 string values.
997 (pa_select_section): Use renamed section functions.
998 * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS,
324a6c95 999 SOM_READONLY_DATA_SECTION_FUNCTION,
774acadf 1000 SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
324a6c95
SB
1001 SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION):
1002 Define here ...
1003 * config/pa/som.h: ... not here.
1004 (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
774acadf
ZW
1005 ONE_ONLY_TEXT_SECTION_ASM_OP, READONLY_DATA_ASM_OP,
1006 ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
324a6c95
SB
1007 ONE_ONLY_DATA_SECTION_ASM_OP): Delete.
1008 (READONLY_DATA_SECTION): Use som_readonly_data_section.
774acadf 1009
3224bead
NS
10102004-08-20 Nathan Sidwell <nathan@codesourcery.com>
1011
fabead06
NS
1012 * fold-const.c (int_const_binop): Don't generate non-overflowing
1013 size-types specially.
1014 (fold_convert_const): Likewise.
1015
3224bead
NS
1016 * stor-layout.c (initialize_sizetypes): Set SIZETYPE earlier,
1017 clear cache on copied sizetype.
1018
fb38008e
BE
10192004-08-20 Ben Elliston <bje@au.ibm.com>
1020
1021 * configure.ac: Don't escape apostrophe in --enable-coverage help.
1022 * configure: Regenerate.
1023
a9024779
DS
10242004-08-20 Danny Smith <dannysmith@users.sourceforge.net>
1025
1026 PR 5620
1027 * gcc.c (struct stat input_stat): Don't define if
1028 HOST_LACKS_INODE_NUMBERS
1029 (do_spec_1): If HOST_LACKS_INODE_NUMBERS, use lrealpath rather
1030 than stat to determine if temp file is same as input file.
1031 * doc/hostconfig.texi: Document HOST_LACKS_INODE_NUMBERS.
1032 * config/i386/xm-mingw32.h: Define HOST_LACKS_INODE_NUMBERS
1033
82563d35
RS
10342004-08-20 Richard Sandiford <rsandifo@redhat.com>
1035
1036 * configure.ac (mips*-*-*): Print an error if not using GAS.
1037 * configure: Regenerated.
1038 * doc/install.texi: Remove irix5 bullet from --with-gnu-as. Remove
1039 comments about buggy MIPSpro assemblers.
1040 * config.gcc (mips-sgi-irix[56]*): Combine stanzas. Include elfos.h
1041 before mips.h and iris.h after it. Use t-iris and t-slibgcc-irix.
1042 Use iris5.h only for IRIX 5 configs. Use iris6.h and t-iris6 for
1043 IRIX 6 configs. Define IRIX_USING_GNU_LD if using GNU ld.
1044 * config/mips/iris5.h (TARGET_IRIX, SWITCHES_NEED_SPACES)
1045 (DEFAULT_SIGNED_CHAR, WORD_SWITCH_TAKES_ARG, SUBTARGET_CC1_SPEC)
1046 (NO_IMPLICIT_EXTERN_C, MIPS_DEFAULT_GVALUE)
1047 (TARGET_ASM_EXTERNAL_LIBCALL): Move to iris.h.
1048 (WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS): Delete in favor
1049 of more general IRIX 6 definitions.
1050 (OBJECT_FORMAT_ELF, ASM_OUTPUT_ASCII, ASM_WEAKEN_LABEL)
1051 (HANDLE_SYSV_PRAGMA): Delete in favor of elfos.h definitions.
1052 (TARGET_IRIX5, ABICALLS_ASM_OP, BSS_SECTION_ASM_OP, HAS_INIT_SECTION)
1053 (LD_INIT_SWITCH, LD_FINI_SWITCH, SUBTARGET_ASM_OPTIMIZING_SPEC)
1054 (ASM_FINAL_SPEC, DBX_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
1055 (PREFERRED_DEBUGGING_TYPE, DWARF2_UNWIND_INFO, SET_FILE_NUMBER)
1056 (LABEL_AFTER_LOC, DOLLARS_IN_IDENTIFIERS, NO_DOLLAR_IN_LABEL)
1057 (TARGET_ASM_NAMED_SECTION, EXTRA_SECTION_FUNCTIONS)
1058 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_WEAK_ALIAS)
1059 (SUBTARGET_EXTRA_SPECS): Delete definitions or undefs.
1060 (LINK_SPEC): Move most of definition to iris.h.
1061 (SUBTARGET_LINK_SPEC): New macro.
1062 (IRIX_STARTFILE_SPEC): Fold into...
1063 (STARTFILE_SPEC): ...here.
1064 (IRIX_ENDFILE_SPEC): Fold into...
1065 (ENDFILE_SPEC): ...here.
1066 * config/mips/iris6.h (TARGET_IRIX5): Remove override.
1067 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE)
1068 (DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE, SET_ASM_OP)
1069 (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES, ASM_DECLARE_OBJECT_NAME)
1070 (ASM_FINISH_DECLARE_OBJECT, LOCAL_LABEL_PREFIX): Move to iris.h.
1071 (TARGET_OS_CPP_BUILTINS): Likewise. Guard IRIX6-specific bits.
1072 (DWARF2_UNWIND_INFO, DWARF2_GENERATE_TEXT_SECTION_LABEL)
1073 (SUBTARGET_CPP_SPEC, DWARF2_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
1074 (PREFERRED_DEBUGGING_TYPE, DWARF2_FRAME_INFO, MD_EXEC_PREFIX)
1075 (ASM_DECLARE_FUNCTION_NAME, ASM_DECLARE_FUNCTION_SIZE)
1076 (FUNCTION_NAME_ALREADY_DECLARED, SUPPORTS_INIT_PRIORITY)
1077 (POPSECTION_ASM_OP, SUBTARGET_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC)
1078 (SUBTARGET_ASM_DEBUGGING_SPEC, SUBTARGET_ASM_OPTIMIZING_SPEC)
1079 (BSS_SECTION_ASM_OP*, READONLY_DATA_SECTION_ASM_OP*)
1080 (EH_FRAME_SECTION_NAME, MUST_USE_SJLJ_EXCEPTIONS, CTORS_SECTION_ASM_OP)
1081 (DTORS_SECTION_ASM_OP, TARGET_ASM_NAMED_SECTION, EH_FRAME_SECTION_NAME)
1082 (ASM_OUTPUT_ALIGN, ASM_OUTPUT_FILENAME, ASM_OUTPUT_ALIGNED_LOCAL)
1083 (ASM_OUTPUT_ALIGNED_BSS): Remove definitions or undefs.
1084 (TARGET_IRIX6): Define to 1.
1085 (DRIVER_SELF_SPECS): Define.
1086 (DWARF2_FRAME_INFO): Define to 1 rather than !TARGET_SGI_O32_AS.
1087 (SUBTARGET_CC1_SPEC): Remove in favor of DRIVER_SELF_SPECS.
1088 (SUBTARGET_LINK_SPEC): New macro.
1089 (IRIX_STARTFILE_SPEC): Fold into...
1090 (STARTFILE_SPEC): ...here. Remove !mabi=* case.
1091 (SUBTARGET_{,DONT_}WARN_UNUSED_SPEC): New macros.
1092 (LIB_SPEC, LIBGCC_SPEC): Use them.
1093 (LIB_SPEC): Remove !mabi=* case.
1094 (IRIX_ENDFILE_SPEC): Fold into...
1095 (ENDFILE_SPEC): ...here. Remove !mabi=* case.
1096 * config/mips/mips-protos.h (irix_output_external_libcall): Delete.
1097 * config/mips/mips.h (TARGET_IRIX5, TARGET_SGI_O32_AS): Delete.
1098 (TARGET_IRIX6): New macro.
1099 (ASM_ABI_DEFAULT_SPEC): Remove !ELF definition.
1100 (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX, SET_FILE_NUMBER)
1101 (LABEL_AFTER_LOC): Delete.
1102 * config/mips/mips.c (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END)
1103 (TARGET_SECTION_TYPE_FLAGS): Remove TARGET_IRIX versions.
1104 (mips_build_builtin_va_list): Check TARGET_IRIX6.
1105 (override_options): Remove TARGET_SGI_O32_AS-related code.
1106 (irix_output_external_libcall): Make static.
1107 (mips_output_filename): Avoid use of SET_FILE_NUMBER and
1108 LABEL_AFTER_LOC.
1109 (mips_file_start): Tidy guard for ABI sections. Remove use of
1110 ABICALLS_ASM_OP; use .abicalls instead.
1111 (mips_output_aligned_decl_common, mips_declare_object_name)
1112 (mips_finish_declare_object): Remove use of TARGET_SGI_O32_AS.
1113 (mips_output_function_prologue): Set TREE_ASM_WRITTEN if emitting
1114 .globl foo .text directives.
1115 (irix_asm_named_section_1, irix_asm_named_section)
1116 (irix_section_align_entry, irix_section_align_htab)
1117 (irix_orig_asm_out_file, irix_section_align_entry_eq)
1118 (irix_section_align_entry_hash, irix_asm_output_align)
1119 (irix_file_start, irix_section_align_1, copy_file_data)
1120 (irix_file_end, irix_section_type_flags): Delete.
1121 * config/mips/irix-crti.asm (__gcc_init): Move to .gcc_init section.
1122 Use standard section syntax. Remove protective "jr $31".
1123 (__gcc_fini): Likewise .gcc_fini.
1124 * config/mips/irix-crtn.asm: Adjust sections accordingly.
1125 * config/mips/sdb.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Moved from
1126 iris5gas.h.
1127 * config/mips/t-iris (irix-crti.o, irix-crtn.o): New rules, moved
1128 from t-irix-gld.
1129 (EXTRA_MULTILIB_PARTS): Define.
1130 * config/mips/t-iris6: Remove bogus comment.
1131 (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS): Delete.
1132 * config/mips/iris5gas.h, config/mips/iris5gld.h,
1133 config/mips/iris6gas.h, config/mips/iris6gld.h,
1134 config/mips/t-iris5-as, config/mips/t-iris5-gas
1135 config/mips/t-irix-gld: Delete.
1136 * config/mips/iris.h: New file.
1137 * config/mips/t-slibgcc-irix: Renamed from t-iris5-6.
1138
c4cdb8e1
RE
11392004-08-20 Richard Earnshaw <rearnsha@arm.com>
1140
1141 * postreload.c (reload_cse_move2add): Allow any condjump, but check
1142 that the implicit set isn't clobbered in the jump insn.
1143
d55ab31d
MM
11442004-08-19 Mark Mitchell <mark@codesourcery.com>
1145
1146 * defaults.h (TARGET_LIBGCC_LIBFUNCS): Remove.
1147 * optabs.c (init_optabs): Don't check it.
1148 * config/arm/bpabi.h (TARGET_LIBGCC_LIBFUNCS): Do not define.
1149 * doc/tm.texi (TARGET_LIBGCC_FUNCS): Remove.
1150
d75f90f1
AK
11512004-08-18 Andreas Krebbel <krebbel1@de.ibm.com>
1152
1153 * config/s390/s390.md (s390_warn_framesize_string)
1154 (s390_warn_dynamic_string, s390_stack_size_string)
1155 (s390_stack_guard_string): New global string variables.
1156 (s390_warn_framesize, s390_warn_dynamicstack_p, s390_stack_size)
1157 (s390_stack_guard): New global variables.
1158 (override_options): Added checks for the new options.
1159 (s390_emit_prologue): Emit stack check and trap code and perform
1160 compile time stack size checking.
f676971a
EC
1161
1162 * config/s390/s390.h (TARGET_OPTIONS): Added new options
d75f90f1
AK
1163 "warn-framesize", "warn-dynamicstack", "stack-size" and
1164 "stack-guard".
1165
1166 * doc/invoke.texi: Added documentation for the new options.
1167
ca29916b
UW
11682004-08-19 Ulrich Weigand <uweigand@de.ibm.com>
1169
1170 * unwind-dw2-fde.c (get_cie_encoding): Cast argument to strlen
1171 to eliminate warning.
1172 (linear_search_fdes): Declare p as unsigned.
1173 (binary_search_mixed_encoding_fdes): Likewise.
1174 * unwind-dw2.c (get_cie_encoding): Cast argument to strlen
1175 to eliminate warning.
1176 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Add missing
1177 type cast.
1178
e1d5ee28
UW
11792004-08-19 Ulrich Weigand <uweigand@de.ibm.com>
1180
1181 * config/s390/s390-protos.h (preferred_la_operand_p): Adapt prototype.
1182 * config/s390/s390.c (preferred_la_operand_p): Accept two operands
1183 instead of one. Check for strictly legitimate address.
1184 * config/s390/s390.md ("*la_31"/"*la_64" peepholes): Adapt call
1185 to preferred_la_operand_p, do not call gen_rtx_PLUS in predicate.
1186
19114537
EC
11872004-08-19 Eric Christopher <echristo@redhat.com>
1188
1189 * langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove.
1190 * langhooks.h (unsave_expr_now): Ditto.
1191 * tree.h (unsave_expr_1): Remove prototype.
1192 (lhd_unsave_expr_now): Rename to unsave_expr_now.
1193 * tree-inline.c (unsave_expr_1): Move here
1194 from tree.c. Make static.
1195 (unsave_expr_now): Rename from lhd_unsave_expr_now.
1196 * tree-sra.c: Fix up for rename.
1197 * tree-ssa-copy.c: Ditto.
1198 * tree-eh.c: Ditto.
1199 * tree.c (unsave_expr_1): Move to tree-inline.c.
1200
d5bfecf2
CT
12012004-08-19 Caroline Tice <ctice@apple.com>
1202
324a6c95
SB
1203 * config/i386/cygming.h (switch_to_section): Fix typo (change
1204 in_unlikely_text_section to in_unlikely_executed_text).
19114537 1205
58152808
DB
12062004-08-19 Daniel Berlin <dberlin@dberlin.org>
1207
1208 * vec.h (VEC_lower_bound): New macro.
19114537 1209
ae043003
RS
12102004-08-19 Richard Sandiford <rsandifo@redhat.com>
1211
1212 PR target/16446
1213 * config/mips/mips.c (struct mips_arg_info): Delete num_bytes.
1214 (mips_arg_info): Update accordingly. Remove common treatment of fpr_p;
1215 treat each ABI separately. Deal with n32/n64 complex float arguments.
1216 (function_arg): Add associated complex handling here.
1217
50ed9cea
RH
12182004-08-19 Richard Henderson <rth@redhat.com>
1219
1220 * config/arm/arm.c (arm_gen_load_multiple): Use
1221 adjust_automodify_address. Take base memory and offset instead
1222 of unchanging/struct/scalar bits.
1223 (arm_gen_store_multiple): Likewise.
1224 (arm_gen_movmemqi): Use adjust_automodify_address.
1225 * config/arm/arm-protos.h: Update decls.
1226 * config/arm/arm.md (load_multiple): Update arm_gen_load_multiple call.
1227 (store_multiple): Similarly.
1228
74ae207d
R
12292004-08-19 J"orn Rennecke <joern.rennecke@superh.com>
1230
1231 * regclass.c (globalize_reg): Update call_really_used_regs.
1232
89b0433e
NS
12332004-08-19 Nathan Sidwell <nathan@codesourcery.com>
1234
31ebd7c8
NS
1235 * doc/invoke.texi (integer-share-limit): Document.
1236
89b0433e
NS
1237 * tree.h (TYPE_CACHED_VALUES_P): New.
1238 (TYPE_CACHED_VALUES): New.
1239 (TYPE_ORIG_SIZE_TYPE): Adjust.
1240 * tree.def (INTEGER_CST): Update documentation.
1241 * tree.c: Inlcude params.h.
1242 (build_int_cst): Cache small values.
1243 (build_type_copy): Do not copy the value cache.
1244 * c-common.c (c_common_nodes_and_builtins): Add comment, remove
1245 unneeded zeroing.
1246 * c-typeck.c (build_c_cast): Add comment about OVERFLOW setting.
1247 * expmed.c (const_mult_add_overflow_p): Clear type copy's value
1248 cache.
1249 * fold-const.c (force_fit_type): Copy value when setting
1250 overflows.
1251 (int_const_binop): Likewise.
1252 * stor-layout.c: Include params.h
1253 (set_sizetype): Create values cache.
1254 (fixup_unsigned_type): Set UNSIGNED_P before caching any values.
1255 * params.def (PARAM_INTEGER_SHARE_LIMIT): New.
1256 * params.h (INTEGER_SHARE_LIMIT): New.
1257 * Makefile.in (tree.o, stor-layout.o): Depend on PARAMS_H.
19114537 1258
c2504783
PB
12592004-08-19 Paolo Bonzini <bonzini@gnu.org>
1260
1261 * gimplify.c (gimplify_minimax_expr): Remove.
1262 (gimplify_expr) <MIN_EXPR, MAX_EXPR>: Remove special handling.
1263
7a8554ce
DN
12642004-08-19 Dorit Naishlos <dorit@il.ibm.com>
1265
19114537 1266 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
7a8554ce
DN
1267 STACK_BOUDARY with PREFERRED_STACK_BOUNDARY.
1268
1905f33d
MM
12692004-08-19 Mark Mitchell <mark@codesourcery.com>
1270
1271 * bpabi.h (FPUTYPE_DEFAULT): Set it to FPUTYPE_VFP.
1272
f1732751
AP
12732004-08-18 Andrew Pinski <apinski@apple.com>
1274
1275 * varasm.c (ecode_reg_name): Do nothing if the asmspec is empty.
1276
8c78a388
MM
12772004-08-18 Mark Mitchell <mark@codesourcery.com>
1278
1279 * config/arm/bpabi.c (__aeabi_ul2d): Give it default visibility.
1280 (__aeabi_ul2f): Likewise.
1281
7eda7cda
RH
12822004-08-18 Richard Henderson <rth@redhat.com>
1283
1284 * config/xtensa/xtensa.c (xtensa_expand_block_move): Expand block
1285 move to rtl completely.
1286 (struct meminsnbuf, xtensa_emit_block_move): Remove.
1287 (xtensa_find_mode_for_size): Remove.
1288 * config/xtensa/xtensa-protos.h (xtensa_emit_block_move): Remove.
1289 * config/xtensa/xtensa.md (movmemsi_internal): Remove.
1290
88042663
RH
12912004-08-18 Richard Henderson <rth@redhat.com>
1292
1293 * config/mcore/mcore.c (mode_from_align): Remove DImode.
1294 (block_move_sequence): Rewrite to use adjust_address.
1295 (mcore_expand_block_move): Cleanup logic. Accept only operands.
1296 Return boolean indicating success/failure.
1297 * config/mcore/mcore-protos.h (mcore_expand_block_move): Update decl.
1298 * config/mcore/mcore.md (movmemsi): Update to match.
1299
699c914a
MS
13002004-08-18 Mike Stump <mrs@apple.com>
1301
1302 * doc/invoke.texi (-mfix-and-continue): Add support for
1303 fast turn around debugging.
1304 (-ffix-and-continue): Likewise.
1305 (-mindirect-data): Likewise.
1306 (-findirect-data): Likewise.
1307 * config/darwin.c (TARGET_FIX_AND_CONTINUE): Likewise.
1308 (indirect_data): Likewise.
1309 (machopic_data_defined_p): Likewise.
1310 (machopic_output_indirection): Likewise.
1311 (darwin_encode_section_info): Likewise.
1312 (darwin_fix_and_continue): Likewise.
1313 (darwin_fix_and_continue_switch): Likewise.
1314 * config/darwin.h (MACHO_SYMBOL_STATIC): Likewise.
1315 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
1316 (SUBTARGET_OPTION_TRANSLATE_TABLE): Likewise.
1317 (SUBTARGET_OPTIONS): Likewise.
1318 (darwin_fix_and_continue): Likewise.
1319 (darwin_fix_and_continue_switch): Likewise.
1320 (TARGET_FIX_AND_CONTINUE): Likewise.
1321 * config/rs6000.c (rs6000_emit_prologue): Likewise.
1322
13232004-08-19 Steven Bosscher <stevenb@suse.de>
bd454efd
SB
1324
1325 * basic-block.h (struct edge_def): Remove crossing_edge.
1326 (EDGE_CROSSING): New define.
1327 (EDGE_ALL_FLAGS): Update.
1328 * bb-reorder.c (find_traces_1_round, better_edge_p,
1329 find_rarely_executed_basic_blocks_and_cr, fix_up_fall_thru_edges,
1330 find_jump_block, fix_crossing_conditional_branches,
1331 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
1332 Replace all occurences of crossing_edge with an edge flag check
1333 or set/reset.
1334 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
1335 try_crossjump_bb): Likewise.
1336 * cfglayout.c (fixup_reorder_chain): Likewise.
1337 * cfgrtl.c (force_nonfallthru_and_redirect,
1338 commit_one_edge_insertion): Likewise.
1339
1340 * Makefile.in (cfganal.o): Depend on TIMEVAR_H.
1341 * tree-flow.h (compute_dominance_frontiers): Move prototype...
1342 * basic-block.h: ...here.
1343 * tree-cfg.c (compute_dominance_frontiers_1,
1344 compute_dominance_frontiers): Move from here...
1345 * cfganal.c: ...to here. Include timevar.h.
1346
9ff6992e
JW
13472004-08-18 James E Wilson <wilson@specifixinc.com>
1348
c831f54b 1349 * config/mips/mips.h (ASM_SPEC): In comment, change -meabi= to -mabi=.
a1627d80
JW
1350 * config/mips/sb1.md (ir_sb1_divsf_1pipe): Renamed from ...1pipes.
1351
9ff6992e
JW
1352 * config/mips/mips.md (type): Add frdiv.
1353 (divsf3+1, divsf3+2): Change type to frdiv.
1354 * config/mips/sb1.md (ir_sb1_recipsf_2pipes, ir_sb1_recipsf_1pipe,
1355 ir_sb1_recipdf_2pipes, ir_sb1_recipdf_1pipe): New.
19114537 1356
9ff6992e
JW
1357 * config/mips/3000.md (r3k_fdiv_single, r3k_fdiv_double): Add frdiv.
1358 * config/mips/4300.md (r4300_fdiv_single, r4300_fdiv_double): Likewise.
1359 * config/mips/4600.md (r4600_fdiv_single, f4600_fdiv_double): Likewise.
1360 * config/mips/5000.md (r5k_fdiv_single): Likewise.
1361 * config/mips/5400.md (ir_vr54_fdiv_sf, ir_vr54_fdiv_df): Likewise.
1362 * config/mips/5500.md (ir_vr55_fdiv_sf, ir_vr55_fdiv_df): Likewise.
1363 * config/mips/6000.md (r6k_fdiv_single, r6k_fdiv_double): Likewise.
1364 * config/mips/7000.md (rm7_fp_divsqrt_df, rm7_fp_divsqrt_sf): Likewise.
1365 * config/mips/9000.md (rm8k_fdivs, rm9k_fdivd): Likewise.
1366 * config/mips/generic.md (generic_fdiv_single, generic_fdiv_double):
1367 Likewise.
1368 * config/mips/sr71k.md (ir_sr70_fdiv_sf, ir_sr70_fdiv_df): Likewise.
1369
c16eb900
RB
13702004-08-18 Robert Bowdidge <bowdidge@apple.com>
1371
1372 * config/rs6000/x-darwin: Remove XCFLAGS -mdynamic-no-pic to
324a6c95 1373 get regression tester working again.
c16eb900 1374
826c9564
ZW
13752004-08-18 Zack Weinberg <zack@codesourcery.com>
1376
1377 * insn-notes.def, reg-notes.def: New files.
1378 * rtl.h: Use them to define enum insn_note and enum reg_note.
1379 * rtl.c: Use them to define note_insn_name and reg_note_name.
4b179e92 1380 * Makefile.in (RTL_BASE_H): Update.
826c9564
ZW
1381
1382 * modulo-sched.c, sched-rgn.c, final.c: NOTE_DISABLE_SCHED_OF_BLOCK
1383 renamed to NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
1384
21b5653c
RE
13852004-08-18 Richard Earnshaw <rearnsha@arm.com>
1386
1387 * arm.c (arm_size_rtx_costs): New function.
1388 (arm_override_options): Use it if optimizing for space.
1389
542a8afa
RH
13902004-08-18 Richard Henderson <rth@redhat.com>
1391
1392 * emit-rtl.c (gen_const_mem): New.
1393 * rtl.h (gen_const_mem): Declare.
1394 * expr.c (do_tablejump): Use it.
1395 * varasm.c (force_const_mem): Likewise.
1396 * config/darwin.c (machopic_indirect_data_reference): Likewise.
1397 (machopic_legitimize_pic_address): Likewise.
1398 * config/arm/arm.c (legitimize_pic_address): Likewise.
1399 * config/i386/i386.c (legitimize_pic_address): Likewise.
1400 (legitimize_tls_address): Likewise.
1401 * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
1402 * config/ia64/ia64.md (load_fptr): Likewise.
1403 * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
1404 * config/pa/pa.c (legitimize_pic_address): Likewise.
1405 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
1406 (rs6000_emit_move): Likewise.
1407 * config/s390/s390.c (legitimize_pic_address): Likewise.
1408 (legitimize_tls_address): Likewise.
1409 * config/s390/s390.md (casesi): Likewise.
1410 * config/sh/sh.c (sh_reorg): Likewise.
1411 * config/sparc/sparc.c (legitimize_pic_address): Likewise.
1412 * config/v850/v850.md (casesi): Likewise.
1413
1414 * config/darwin.c (machopic_indirect_call_target): Set MEM_NOTRAP_P.
1415 * config/sh/sh.c (prepare_move_operands): Remove incorrect
1416 use of MEM_READONLY_P.
1417
0516f6fe
SB
14182004-08-18 Steven Bosscher <stevenb@suse.de>
1419
1420 * Makefile.in (OBJS-common): Add postreload-gcse.c.
1421 Add new postreload-gcse.o.
1422 * cse.c (SAFE_HASH): Define as wrapper around safe_hash.
1423 (lookup_as_function, insert, rehash_using_reg, use_related_value,
1424 equiv_constant): Use SAFE_HASH instead of safe_hash.
1425 (exp_equiv_p): Export. Add for_gcse argument when comparing
1426 for GCSE.
1427 (lookup, lookup_for_remove, merge_equiv_classes, find_best_addr,
1428 find_comparison_args, fold_rtx, cse_insn): Update callers.
1429 (hash_rtx): New function derived from old canon_hash and bits
1430 from gcse.c hash_expr_1.
1431 (canon_hash_string): Rename to hash_rtx_string.
1432 (canon_hash, safe_hash): Make static inline. Call hash_rtx.
1433 * cselib.c (hash_rtx): Rename to cselib_hash_rtx.
1434 (cselib_lookup): Update this caller.
1435 * gcse.c (modify_mem_list_set, canon_modify_mem_list_set):
1436 Make static.
1437 (hash_expr): Call hash_rtx.
1438 (ldst_entry): Likewise.
1439 (expr_equiv_p): Call exp_equiv_p.
1440 (struct unoccr, hash_expr_1, hash_string_1, lookup_expr,
1441 reg_used_on_edge, reg_set_between_after_reload_p,
1442 reg_used_between_after_reload_p, get_avail_load_store_reg,
1443 is_jump_table_basic_block, bb_has_well_behaved_predecessors,
1444 get_bb_avail_insn, hash_scan_set_after_reload,
1445 compute_hash_table_after_reload,
1446 eliminate_partially_redundant_loads, gcse_after_reload,
1447 get_bb_avail_insn, gcse_after_reload_main): Remove.
1448 * postreload-gcse.c: New file, reincarnating most of the above.
1449 * rtl.h (exp_equiv_p, hash_rtx): New prototypes.
1450 (gcse_after_reload_main): Update prototype.
1451 * timevar.def (TV_GCSE_AFTER_RELOAD): New timevar.
1452 * passes.c (rest_of_handle_gcse2): Use it.
1453
95013377
DN
14542004-08-18 Diego Novillo <dnovillo@redhat.com>
1455
1456 * tree-ssa-loop.c (pass_loop_init): Add TODO_dump_func.
1457 (pass_loop_done): Likewise.
1458
ac9e2cff
AP
14592004-08-18 Andrew Pinski <apinski@apple.com>
1460
826c9564 1461 * config/rs6000/darwin.md: Delete the altivec patterns which are
ac9e2cff
AP
1462 handled differently now.
1463 (load_macho_picbase_di): Make sure that is only happens for TARGET_64BIT
1464 (macho_correct_pic_di): Likewise.
1465 (call_indirect_nonlocal_darwin64): Likewise.
1466 Delete the save world/saveFP/saveVec patterns.
826c9564 1467
ac9e2cff 1468 Revert the reversion of: 2004-08-16 Stan Shebs <shebs@apple.com>
826c9564
ZW
1469 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
1470 * config/rs6000/rs6000.md: Include darwin.md.
1471 (builtin_setjmp_receiver): Add DImode case.
1472 * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
1473 Darwin bits.
ac9e2cff 1474
92b9a671
MA
14752004-08-18 Matt Austern <austern@apple.com>
1476
1477 Dead code stripping
1478 * darwin.h (EH_FRAME_SECTION_ATTR): Mark so it doesn't get stripped.
1479 * darwin.c (darwin_file_end): Mark file as potentially strippable.
826c9564 1480
4766261d
RH
14812004-08-18 Richard Henderson <rth@redhat.com>
1482
1483 * alias.c (readonly_fields_p): Remove.
1484 (objects_must_conflict_p): Don't call it.
1485 * tree.h (readonly_fields_p): Remove.
1486 * langhooks.h (struct lang_hooks): Remove honor_readonly.
1487 * langhooks-def.h (LANG_HOOKS_HONOR_READONLY): Remove.
1488
50dc9a88
DN
14892004-08-18 Diego Novillo <dnovillo@redhat.com>
1490
1491 * tree-dfa.c (add_referenced_var): Only global variables are
1492 call-clobbered.
1493 * tree-flow.h (struct ptr_info_def): Add field pt_global_mem.
1494 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Mark
1495 all pointers dereferenced if the statement dereferences them.
1496 (create_name_tags): Do not create memory tags for pointers
1497 that have PT_ANYTHING set.
1498 Also check if PT_VARS is not empty before creating a name tag.
1499 (compute_flow_sensitive_aliasing): Don't mark call-clobbered
1500 variables that share the same alias set with a pointer that
1501 may point anywhere.
1502 (add_may_alias): Add FIXME comment to remove clobbering
1503 aliased variables and tags.
1504 (replace_may_alias): Likewise.
1505 (set_pt_anything): Do not clear PT_VARS nor IS_DEREFERENCED.
1506 (merge_pointed_to_info): If the original variable has not
1507 points-to information, call set_pt_anything.
1508 (add_pointed_to_var): Do not prevent adding a pointed-to
1509 variable if the pointers is PT_ANYTHING.
1510 If the variable is a global, set PT_GLOBAL_MEM.
1511 (collect_points_to_info_r): Don't assume that PLUS_EXPRs of
1512 pointer type only come in PTR+OFFSET flavours.
1513 Always call merge_pointed_to_info on PHI arguments that are
1514 SSA_NAMEs.
1515 (get_nmt_for): Mark call-clobbered tags whose pointer points
1516 to global memory.
1517 * tree-ssa-operands.c (opf_kill_def, opf_no_vops): Switch
1518 values.
1519 (get_indirect_ref_operands): Always clear OPF_KILL_DEF from
1520 FLAGS.
1521 (add_stmt_operand): Abort if the caller tried to add a killing
1522 definition for a memory tag.
1523 * tree-ssa.c (verify_flow_sensitive_alias_info): Remove
1524 unnecessary checks.
1525
62164eb4
R
15262004-08-18 J"orn Rennecke <joern.rennecke@superh.com>
1527
1528 * sh.h (CONDITIONAL_REGISTER_USAGE): Don't exclude fixed registers
1529 from call_used_regs. Update call_really_used_regs.
1530 (CALL_REALLY_USED_REGISTERS): Define.
1531 * sh.c (output_stack_adjust, shmedia_target_regs_stack_space):
1532 Replace call_used_regs with call_really_used_regs.
1533 (calc_live_regs, sh_media_register_for_return): Likewise.
1534 (sh5_schedule_saves, sh_expand_prologue, reg_unused_after): Likewise.
1535 * sh.md (return_media): Likewise.
1536
f9b0ac3b
AP
15372004-08-18 Andrew Pinski <apinski@apple.com>
1538
826c9564 1539 * config/darwin.c (machopic_legitimize_pic_address): Only set
ac9e2cff 1540 MEM_READONLY_P in the non TARGET_TOC case.
f9b0ac3b 1541
f822d252
ZW
15422004-08-18 Zack Weinberg <zack@codesourcery.com>
1543
1544 * rtl.def (NIL): Delete.
1545 * read-rtl.c (read_rtx): Handle (nil) like (define_constants).
1546 Tighten the syntax a little.
1547
1548 * cfgloop.h, combine.c, cse.c, loop-iv.c, postreload.c, reload.c
1549 * config/alpha/alpha.c, config/alpha/alpha.h, config/arc/arc.h
1550 * config/arm/arm.h, config/frv/frv.h, config/i386/i386.c
1551 * config/i386/predicates.md, config/m32r/m32r.h
1552 * config/m68hc11/m68hc11.c, config/mcore/mcore.h, config/mips/mips.c
1553 * config/mmix/mmix.c, config/pa/pa.h, config/sh/sh.h
1554 * config/sparc/sparc.h, doc/tm.texi:
1555 Replace all occurrences of NIL with UNKNOWN.
1556
6aaf3dde
ZW
15572004-08-18 Zack Weinberg <zack@codesourcery.com>
1558
1559 * dojump.c (do_jump <unordered_bcc>): Do not recursively call
1560 self with a TRUTH_ORIF_EXPR; generate the appropriate jump
1561 sequence inline. Move drop_through_label code into this
1562 block, being the only place it is used. Adjust comments.
1563
d62294f5
FJ
15642004-08-18 Fariborz Jahanian <fjahanian@apple.com>
1565
6aaf3dde
ZW
1566 * config/rs6000/altivec.md: Add new patterns for calls to
1567 save_world/rest_world functions.
1568
1569 * config/rs6000/rs6000-protos.h: (save_world_operation,
1570 restore_world_operation) new declarations.
1571
1572 * config/rs6000/rs6000.c: (struct rs6000_stack) new world_save_p
1573 field added.
1574 (rs6000_stack_info): Set world_save_p field.
1575 (save_world_operation): New function.
1576 (restore_world_operation): New function.
1577 (compute_save_world_info): New function.
1578 (rs6000_stack_info): Call compute_save_world_info.
1579 (rs6000_emit_prologue): Check for world_save_p and generate
1580 pattern to call save_world for saving all non-volatile and
1581 special registers.
1582 (rs6000_emit_epilogue): Check for world_save_p and generate
1583 pattern to call rest_world to restore saved registers.
1584
1585 config/rs6000/rs6000.h: macros FIRST_SAVED_ALTIVEC_REGNO,
1586 FIRST_SAVED_FP_REGNO, FIRST_SAVED_GP_REGNO defined.
1587 (rs6000_reg_names): New entries added for save_world_operation and
1588 restore_world_operation.
d62294f5 1589
790ac0e1
CT
15902004-08-18 Caroline Tice <ctice@apple.com>
1591
6aaf3dde 1592 * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS) Add
790ac0e1
CT
1593 "-freorder-blocks-and-partition" to the flags used in second
1594 stage of profiledbootstrap.
1595 * bb-reorder.c (push_to_next_round_p): Add new variable,
1596 next_round_is_last; set and use variable to make sure, when
1597 partitioning, that the last trace construction round consists
1598 of all (and only) cold basic blocks.
1599 (rotate_loop): Don't copy blocks that end in a section
1600 crossing jump.
1601 (copy_bb): Correctly initialize "partition" of duplicated bb.
1602 (add_unlikely_executed_notes): Add a comment.
1603 (find_rarely_executed_basic_blocks_and_crossing_edges): Modify
1604 to make sure, if function contains hot blocks, that the
1605 successors of ENTRY_BLOCK_PTR are hot; also, only look for
1606 crossing edges if the architecture supports named sections.
1607 (mark_bb_for_unlikely_executed_section): Modify to always
1608 insert the NOTE_INSN_UNLIKELY_EXECUTED_CODE immediately after
1609 the basic block note insn.
1610 (fix_crossing_unconditional_branches): Remove extra space.
1611 (fix_edges_for_rarely_executed_code): Modify to only do
1612 partitioning work if the architecture supports named sections.
1613 (reorder_basic_blocks): Modify to only add
1614 NOTE_INSN_UNLIKELY_EXECUTED_CODE notes if the architecture
1615 supports named sections.
1616 * c-common.c (handle_section_attribute): Initialize new global
1617 variable, user_defined_section_attribute, to true if user has
1618 specified one.
1619 * cfgcleanup.c (try_forward_edges): Modify to not attempt to
1620 forward edges that cross section boundaries.
1621 * cfglayout.c (fixup_reorder_chain): Modify to only fix up
1622 partitioning information if the architecture supports named
1623 sections.
1624 * cfgrtl.c (target.h): Add statement to include this.
1625 (rtl_split_block): Make sure newly created bb gets correct
1626 partition.
1627 (try_redirect_by_replacing_jump): Make sure redirection isn't
1628 attempting to cross section boundaries.
1629 (force_nonfallthru_and_redirect): Only do partition fix up if
1630 architecture supports named sections.
1631 (rtl_split_edge): Make sure newly created bb ends up in
1632 correct partition.
1633 (commit_one_edge_insertion): Remove code that incorrectly
1634 updated basic block partition; Make sure partition fix up only
1635 happens if architecture supports named sections and it's not
1636 already done.
1637 (rtl_verify_flow_info_1): Fix if-condition on test/error
1638 condition that fallthru edges are not allowed to cross section
1639 boundaries.
1640 * defaults.h (NORMAL_TEXT_SECTION_NAME): Remove this.
1641 * final.c (final_scan_insn): Remove redundant test from if-statement;
1642 change calls to text_section into calls to function_section; add code
1643 to only to partitioning fix up if architecture supports named
1644 sections.
1645 * ifcvt.c (find_if_case_1): Make sure newly created bb has correct
1646 partition.
1647 (if_convert): Add targetm.have_named_sections to test.
1648 * output.h (unlikely_section_label): Extern declaration for new global
1649 variable.
1650 (unlikely_text_section_name): Likewise.
1651 * opts.c (decode_options): If both partitioning and DWARF debugging
1652 are turned on, issue a warning that this doesn't work, and change
1653 partitiong to basic block reordering (without hot/cold partitions).
6aaf3dde 1654 * passes.c (rest_of_handle_final): Re-set new global variable,
790ac0e1
CT
1655 user_defined_section_attribute, to false.
1656 (rest_of_compilation): Change options for calling partitioning
1657 function: Don't call if the user defined the section attribute, and
1658 don't call if DECL_ONE_ONLY is true for the current function.
1659 * predict.c (choose_function_section): Return immediately if we
1660 are doing hot/cold partitioning (i.e. let the basic block partitioning
1661 determine where the function belongs).
1662 * reg-stack.c (emit_swap_insn): Add condition to step over
1663 NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
1664 * toplev.c (user_defined_section_attribute): New global variable.
89b0433e
NS
1665 * toplev.h (user_defined_section_attribute): Extern declaration
1666 for new global variable.
790ac0e1
CT
1667 * varasm.c (unlikely_section_label): New global variable.
1668 (unlikely_text_section_name): New global variable.
89b0433e
NS
1669 (unlikely_text_section): Add code to initialize
1670 unlikely_text_section_name if necessary; modify to use
1671 unlikely_text_section_name and unlikely_section_label; also to use
1672 named_section properly.
1673 (in_unlikely_text_section): Modify to work correctly with
1674 named_section and to use unlikely_text_section_name.
790ac0e1
CT
1675 (named_section): Add code to work properly with cold section.
1676 (function_section): Clean up if-statement.
89b0433e
NS
1677 * config/darwin.c (darwin_asm_named_section): Return to original
1678 code, removing use of SECTION_FORMAT_STRING.
6aaf3dde 1679 * config/arm/pe.h (switch_to_section): Add case for
790ac0e1
CT
1680 in_unlikely_executed_text to switch statement.
1681 * config/i386/cygming.h (switch_to_section): Likewise.
1682 * config/i386/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
1683 (SECTION_FORMAT_STRING): Likewise.
1684 * config/mcore/mcore.h (switch_to_section): Likewise.
1685 * config/rs6000/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
1686 (SECTION_FORMAT_STRING): Remove.
1687
3a4416fb
RS
16882004-08-18 Roger Sayle <roger@eyesopen.com>
1689
1690 * config/i386/i386.h (FIXED_REGISTERS): Update encoding to be
1691 -ffixed-reg safe, by preserving the meanings of zero and one.
1692 (CALL_USED_REGISTERS): Likewise.
1693 (CONDITIONAL_REGISTER_USAGE): Update to process new encodings.
1694
03904fb3
KK
16952004-08-18 Kaz Kojima <kkojima@gcc.gnu.org>
1696
1697 * config/sh/sh.c (split_branches): Check the result of
1698 next_active_insn.
1699 (sh_output_mi_thunk): Call init_flow if basic_block_info is null.
1700 Call rtl_register_cfg_hooks.
1701
389fdba0
RH
17022004-08-18 Richard Henderson <rth@redhat.com>
1703
1704 * rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
1705 * alias.c (true_dependence): Update to match new semantics.
1706 (canon_true_dependence, write_dependence_p): Likewise.
1707 (anti_dependence, output_dependence): Update write_dependence_p args.
1708 (unchanging_anti_dependence): Remove.
1709 * calls.c (purge_mem_unchanging_flag): Remove.
1710 (fixup_tail_calls): Don't call it.
1711 (expand_call): Don't add unchanging memory to function usage.
1712 * expr.c (emit_block_move_via_libcall): Likewise.
1713 (clear_storage_via_libcall): Don't clobber RTX_UNCHANGING_P mems.
1714 (get_subtarget): Don't use RTX_UNCHANGING_P.
1715 (expand_assignment, store_constructor, expand_expr_real_1): Likewise.
1716 (do_tablejump): Set MEM_READONLY_P, not RTX_UNCHANGING_P.
1717 * combine.c (get_last_value_validate): Use MEM_READONLY_P.
1718 * cse.c (insert): Don't use RTX_UNCHANGING_P.
1719 (cse_insn, canon_hash): Use MEM_READONLY_P.
1720 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use MEM_READONLY_P
1721 instead of RTX_UNCHANGING_P.
1722 * explow.c (maybe_set_unchanging): Remove.
1723 * expr.h (maybe_set_unchanging): Remove.
1724 * flow.c (insn_dead_p, mark_used_regs): Use anti_dependence.
1725 * function.c (assign_stack_temp_for_type): Don't use RTX_UNCHANGING_P.
1726 (assign_parm_setup_reg, expand_function_start): Likewise.
1727 * integrate.c (copy_rtx_and_substitute): Likewise.
1728 * ra-rewrite.c (emit_colors): Likewise.
1729 * regmove.c (copy_src_to_dest, regmove_optimize): Likewise.
1730 (fixup_match_1): Likewise.
1731 * reload1.c (reload, alter_reg): Likewise.
1732 * local-alloc.c (validate_equiv_mem): Check MEM_READONLY_P,
1733 not RTX_UNCHANGING_P.
1734 (equiv_init_varies_p): Likewise.
1735 * loop-invariant.c (check_maybe_invariant): Likewise.
1736 * resource.c (mark_referenced_resources, mark_set_resources): Likewise.
1737 * loop.c (note_addr_stored): Likewise.
1738 (prescan_loop): Likewise. Don't check function usage for clobbered
1739 unchanging memory.
1740 * rtlanal.c (rtx_unstable_p): Check MEM_READONLY_P,
6aaf3dde 1741 not RTX_UNCHANGING_P.
389fdba0
RH
1742 (rtx_varies_p, modified_between_p, modified_in_p): Likewise.
1743 * varasm.c (force_const_mem): Likewise.
1744 * stmt.c (expand_decl): Don't set RTX_UNCHANGING_P.
1745 * web.c (entry_register): Likewise.
1746 * tree-gimple.h (get_base_address): Move decl ...
1747 * tree.h: ... here.
1748 * doc/rtl.texi (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
1749
1750 * config/alpha/alpha.c (alpha_set_memflags_1): Rewrite to be
1751 called via for_each_rtx. Copy MEM_SCALAR_P, MEM_NOTRAP_P too.
1752 (alpha_set_memflags): Update to match.
1753
1754 * config/darwin.c (machopic_indirect_data_reference): Set
1755 MEM_READONLY_P instead of RTX_UNCHANGING_P.
1756 (machopic_indirect_call_target): Likewise.
1757 (machopic_legitimize_pic_address): Likewise.
6aaf3dde 1758 * config/arm/arm.c (legitimize_pic_address, arm_gen_load_multiple,
389fdba0
RH
1759 arm_gen_store_multiple, arm_gen_movmemqi): Likewise.
1760 * config/arm/arm.md (load_multiple, store_multiple): Likewise.
1761 * config/frv/frv.md (symGOT2reg): Likewise.
1762 * config/i386/i386.c (legitimize_pic_address,
1763 legitimize_tls_address, ix86_split_to_parts): Likewise.
1764 * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
1765 * config/ia64/ia64.md (load_fptr): Likewise.
1766 * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
1767 * config/m68k/m68k.c (legitimize_pic_address): Likewise.
1768 * config/mcore/mcore.c (block_move_sequence): Likewise.
1769 * config/mn10300/mn10300.md (symGOT2reg): Likewise.
1770 * config/pa/pa.c (legitimize_pic_address): Likewise.
1771 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
1772 (rs6000_emit_move): Likewise.
1773 * config/s390/s390.c (legitimize_pic_address): Likewise.
1774 (legitimize_tls_address): Likewise.
1775 * config/s390/s390.md (casesi): Likewise.
1776 * config/sh/sh.c (prepare_move_operands, sh_reorg): Likewise.
1777 * config/sh/sh.md (symGOT2reg): Likewise.
1778 * config/sparc/sparc.c (legitimize_pic_address): Likewise.
1779 * config/v850/v850.md (casesi): Likewise.
1780
1781 * config/ia64/ia64.c (gen_thread_pointer): Don't set RTX_UNCHANGING_P.
1782 * config/iq2000/iq2000.c (save_restore_insns): Likewise.
1783 * config/mips/mips.c (mips_restore_gp): Likewise.
1784 (mips_save_restore_reg, mips16_gp_pseudo_reg): Likewise.
1785 * config/sh/sh.c (sh_reorg): Likewise.
1786
17ad5b5e
RH
17872004-08-18 Richard Henderson <rth@redhat.com>
1788
1789 * tree.h (struct tree_decl): Add gimple_formal_temp.
1790 (DECL_GIMPLE_FORMAL_TEMP_P): New.
1791 * gimplify.c (pop_gimplify_context): Clear it.
1792 (lookup_tmp_var): Set it, if is_formal.
1793 (gimplify_init_constructor): Use rhs_predicate_for for COMPLEX.
1794 Use is_gimple_val for VECTOR. Simplify return value.
1795 (gimplify_save_expr): Use and set DECL_GIMPLE_FORMAL_TEMP_P.
1796 (gimplify_expr): Likewise.
1797 * tree-gimple.c (is_gimple_formal_tmp_rhs): Rename from
1798 is_gimple_tmp_rhs for clarity. Update all callers.
1799 (is_gimple_reg_rhs): Simplify logic.
1800 (is_gimple_formal_tmp_var): Rename from is_gimple_tmp_var for
1801 clarity; use DECL_GIMPLE_FORMAL_TEMP_P.
1802 (is_gimple_formal_tmp_reg): Similarly.
1803 * tree-gimple.h: Update decls.
1804 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Use
1805 DECL_IGNORED_P, not DECL_ARTIFICIAL. Tidy formatting.
1806 * tree-ssa-live.c (var_union, type_var_init): Likewise.
1807
5b0eba61
PB
18082004-08-18 Paolo Bonzini <bonzini@gnu.org>
1809
1810 * c4x.c (legitimize_operands): Remove calls to
1811 preserve_subexpressions_p.
1812
07e15286
DE
18132004-08-18 David Edelsohn <edelsohn@gnu.org>
1814
1815 * varasm.c (MAX_OFILE_ALIGNMENT): Move ...
1816 * defaults.h (MAX_OFILE_ALIGNMENT): ... here.
1817
ad8c162b
ZL
18182004-08-18 Ziemowit Laski <zlaski@apple.com>
1819
1820 * gcc.c (default_compilers): Add info about ".mm", ".M" and ".mii"
1821 Objective-C++ extensions.
1822 * gengtype.c (get_file_basename): Match entire subdirectory name
1823 ('cp', 'objc', 'objcp') rather than just its suffix.
1824 (get_base_file_bitmap): Allow for files to belong to more than one
1825 language.
1826 (get_output_file_with_visibility): Treat objc/objc-act.h as a header
1827 used by more than one front-end.
1828
d56993f2
RE
18292004-08-18 Richard Earnshaw <rearnsha@arm.com>
1830
1831 * arm.md (addsi3, subsi3, andsi3, iorsi3, movsi, movhi): Rework to
1832 avoid use of preserve_subexpressions_p.
1833
504c0e4f
RH
18342004-08-17 Richard Henderson <rth@redhat.com>
1835
1836 PR 17051
1837 * tree-sra.c (scalarize_use): Mark all v_defs for !is_output too.
1838
54e9a19d
DD
18392004-08-17 DJ Delorie <dj@redhat.com>
1840
1841 * doc/extend.texi: Document new xstormy16 attribute.
1842
1843 * config/stormy16/stormy16.c (xstormy16_splittable_below100_operand): New.
1844 (xstormy16_splittable_below100_or_register): New.
1845 (combine_bnp): New.
1846 (xstormy16_reorg): New.
1847 (TARGET_MACHINE_DEPENDENT_REORG): Define.
1848
54e9a19d
DD
1849 * config/stormy16/stormy16.md (movqi_internal): Make name public.
1850 (movhi_internal): Likewise.
1851 (cbhranchhi): Likewise.
1852 (cbhranchhi_neg): Likewise.
1853 (andhi3): Only allow splittable below100 operands.
1854 (iorhi3): Likewise.
1855 (peephole2): New and/zero_extend->and peephole.
1856 (peephole2): New load/ior/save->set1 peephole.
1857 (peephole2): New load/and/save->clr1 peephole.
1858 (bclrx, bclrx2, bclr7, bclr15): New.
1859 (bsetx, bsetx2, bset7, bset15): New.
1860
1861 * config/stormy16/stormy16.c (xstormy16_print_operand): Be more
1862 liberal about acceptable 'B' masks.
1863
1864 * config/stormy16/stormy16-protos.h
1865 (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
1866 xstormy16_below100_operand, xstormy16_below100_or_register,
1867 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
1868 (PREDICATE_CODES): Add new predicates.
6aaf3dde 1869
54e9a19d
DD
1870 * config/stormy16/stormy16.c
1871 (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
1872 xstormy16_below100_operand, xstormy16_below100_or_register,
1873 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
1874 (xstormy16_expand_iorqi3, xstormy16_expand_andqi3): New.
1875 (xstormy16_legitimate_address_p): Allow below100 symbols.
1876 (xstormy16_extra_constraint_p): Add 'W' for below100 operands.
1877 (xstormy16_expand_move): Leave below100 operands as-is.
1878 (xstormy16_encode_section_info): Encode below100 symbols.
1879 (xstormy16_strip_name_encoding): New.
1880 (xstormy16_print_operand): Print 'b' as shift mask.
1881 (xstormy16_attribute_table): Add below100 attributes.
1882 (xstormy16_handle_below100_attribute): New.
1883
1884 * config/stormy16/stormy16.h (EXTRA_SECTIONS): add in_bss100.
1885 (XSTORMY16_SECTION_FUNCTION): New.
1886 (EXTRA_SECTION_FUNCTIONS): Define using the above.
1887 (ASM_OUTPUT_ALIGNED_DECL_COMMON, ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
1888 (ASM_OUTPUT_SYMBOL_REF): Handle encoded symbols.
1889 (ASM_OUTPUT_LABELREF): Define.
1890
1891 * config/stormy16/stormy16.md (movqi_internal): Add below100 support.
1892 (movhi_internal): Add below100 support.
1893 (andhi3): Add below100 support.
1894 (iorhi3): Add below100 support.
1895 (iorqi3, iorqi3_internal, andqi3, andqi3_internal): New.
1896
4ef47bd8
JW
18972004-08-17 James E Wilson <wilson@specifixinc.com>
1898
1899 * config/mips/mips.c (gen_conditional_move): Use GET_MODE (op0) instead
1900 of VOIDmode for comparison code mode.
1901 * config/mips/mips.md: For conditional move patterns, use mode of
1902 first compare operand for comparison mode, instead of VOIDmode.
e17c734b
JW
1903
1904 * config/mips/mips.md: Add canonical nmadd and nmsub patterns for both
1905 normal and -ffast-math code.
1906
1a10290c
MM
19072004-08-17 Mark Mitchell <mark@codesourcery.com>
1908
1909 PR c++/15871
1910 * doc/invoke.texi (-fkeep-inline-functions): Update documentation.
1911
f4e736dd 19122004-08-17 Robert Bowdidge <bowdidge@apple.com>
6aaf3dde
ZW
1913
1914 * config/rs6000/x-darwin: Add -mdynamic-no-pic to gcc build flags.
f4e736dd 1915
13a98f14
AT
19162004-08-17 Andreas Tobler <a.tobler@schweiz.ch>
1917
1918 * config/rs6000/darwin.md (*call_nonlocal_darwin64): Add #else clause
1919 for non Darwin targets.
1920 (*call_value_nonlocal_darwin64): Likewise.
1921
d0b2079e
FJ
19222004-08-17 Fariborz Jahanian <fjahanian@apple.com>
1923
1924 * config/rs6000/rs6000.c (rs6000_function_value): Check for
1925 altivec mode for altivec return register.
1926
feb3dc8b
DE
19272004-08-17 David Edelsohn <edelsohn@gnu.org>
1928
1929 Revert 2004-08-16 Stan Shebs <shebs@apple.com>
ef0e2729 1930 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
feb3dc8b
DE
1931 * config/rs6000/rs6000.md: Include darwin.md.
1932 (builtin_setjmp_receiver): Add DImode case.
1933 * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
1934 Darwin bits.
1935
79fe1b3b
DN
19362004-08-17 Dorit Naishlos <dorit@il.ibm.com>
1937
89b0433e
NS
1938 * tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE
1939 trees.
79fe1b3b
DN
1940 * tree-vectorizer.h: New File: Same.
1941 * Makefile.in (tree-vectorizer.c, tree-vectorizer.h): Add new files.
1942 * common.opt (ftree-vectorize): New flag to enable vectorization.
89b0433e
NS
1943 * timevar.def (TV_TREE_VECTORIZATION): New dump file for
1944 vectorization pass.
79fe1b3b
DN
1945 * tree-data-ref.h (init_data_ref): Additional argument.
1946 (array_base_name_differ_p): Moved to tree-data-ref.c.
1947 * tree-data-ref.c (array_base_name_differ_p): Revised.
1948 (initialize_data_dependence_relation): Call array_base_name_differ_p
1949 with an extra argument.
1950 (analyze_all_data_dependences): Same.
1951 (init_data_ref): Additional argument is_read to set DR_IS_READ.
89b0433e
NS
1952 * tree-ssa-phiopt.c (empty_block_p): Expose for usage out of this
1953 file.
79fe1b3b
DN
1954 * tree-flow.h (vectorize_loops, empty_block_p): Add declaration.
1955 * tree-optimize.c (pass_vectorize): Schedule the vectorization pass.
6aaf3dde 1956 * tree-pass.h (tree_opt_pass pass_vectorize): Declare the new
79fe1b3b
DN
1957 vectorization pass.
1958 * tree-ssa-loop.c (tree_ssa_loop_init): Call scev_initialize.
1959 (tree_ssa_loop_done): Call scev_finalize.
1960 (tree_vectorize): Define the new vectorization pass.
89b0433e
NS
1961 * defaults.h (UNITS_PER_SIMD_WORD): Allow targets to specify the
1962 size of the vector they support (until support for multiple vector
1963 sizes is added to the vectorizer).
79fe1b3b
DN
1964 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Define.
1965 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Define.
1966 * invoke.texi (fdump-tree-vect, ftree-vectorize): Add
1967 documentation.
1968
e15987c1
NS
19692004-08-17 Nathan Sidwell <nathan@codesourcery.com>
1970
1971 * objc/objc-act.c (build_protocol_initializer): Fix build_int_cst
1972 usage.
1973 (generate_protocol_list, handle_impent): Likewise.
1974
e3cadb61
RS
19752004-08-17 Roger Sayle <roger@eyesopen.com>
1976
1977 * regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to
1978 ensure that call_used_regs is a superset of both fixed_regs and
1979 call_really_used_regs.
1980
108a579c
DB
19812004-08-17 Daniel Bornstein <danfuzz@milk.com>
1982
1983 PR target/17019
1984 * arm.md (addsi3_cbranch_scratch): Correct case labels.
1985
62fc1d7d
PB
19862004-08-17 Paolo Bonzini <bonzini@gnu.org>
1987
1988 PR middle-end/17036
1989 * fold-const.c (fold): Check for integer operand when
1990 folding (A >> N) & 1 ? (1 << N) : 0. Fix from Andrew
1991 Pinski <pinskia@physics.uc.edu>.
1992
7c27e184
PB
19932004-08-17 Paolo Bonzini <bonzini@gnu.org>
1994
1995 * configure.ac: Trust toplevel's notion of BISON/FLEX/MAKEINFO.
1996 No need to check if in a cross configuration.
1997 * configure: Regenerate.
1998
1999 * calls.c (precompute_register_parameters):
2000 Inline preserve_subexpressions_p ().
2001 * expmed.c (expand_mult_const, emit_store_flag): Likewise.
2002 * optabs.c (expand_binop, expand_twoval_binop, prepare_cmp_insn):
2003 Likewise.
2004 * expr.c (get_subtarget): Likewise.
2005 * rtl.h (preserve_subexpressions_p): Remove.
2006 * stmt.c (preserve_subexpressions_p): Remove.
2007
2008 * dojump.c (do_jump) <COND_EXPR, EQ_EXPR, NE_EXPR,
2009 TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, COMPOUND_EXPR>:
2010 Abort on gimplified cases.
2011
d97c6333
JW
20122004-08-16 James E Wilson <wilson@specifixinc.com>
2013
2014 * tree.h (VECTOR_FLOAT_TYPE_P): New.
2015 (FLOAT_TYPE_P): Use it.
2016 * c-typeck.c (build_binary_op): After convert calls, check for
2017 check for ERROR_MARK operands.
2018
45c8116d
ZW
20192004-08-16 Zack Weinberg <zack@codesourcery.com>
2020
2021 * Makefile.in (BUILD_PREFIX, BUILD_PREFIX_1): Delete.
2022 (BUILD_RTL, BUILD_PRINT, BUILD_ERRORS, BUILD_VARRAY): Update.
2023 (genobjs): Add build-rtl.o, build-print-rtl.o, build-varray.o.
2024 (genobjs static pattern rule): Remove %.c dependency.
2025 ($(BUILD_PREFIX_1)rtl.o, print-rtl.o, $(BUILD_PREFIX_1)varray.o):
2026 Rename rules; delete commands; fix dependencies.
2027 (mostlyclean): Do not delete temporary source copies.
2028 * configure.ac: Delete all references to BUILD_PREFIX and
2029 BUILD_PREFIX_1.
2030 * configure: Regenerate.
2031
2032 * print-rtl.c: Include bconfig.h #ifdef GENERATOR_FILE.
2033 Do not include tree.h, real.h, flags.h, hard-reg-set.h, or
2034 basic-block.h #ifdef GENERATOR_FILE. Surround some more code
2035 with #ifndef GENERATOR_FILE so that nothing from those headers
2036 is used.
2037
2038 * rtl.c, varray.c: Include bconfig.h #ifdef GENERATOR_FILE.
2039
4d73e20b
AN
20402004-08-16 Adam Nemet <anemet@lnxw.com>
2041
2042 * Makefile.in (LIBS): Move $(LIBIBERTY) after $(BANSHEELIB).
6aaf3dde 2043
62114438
AP
20442004-08-16 Andrew Pinski <apinski@apple.com>
2045
2046 * target-def.h (TARGET_EH_RETURN_FILTER_MODE): Remove
2047 extraneous semicolon.
2048
8e3e233b
DP
20492004-08-16 Devang Patel <dpatel@apple.com>
2050
2051 * c-common.c (handle_used_attribute): Set DECL_PRESERVE_P.
2052 * print-tree.c (print_node): Print DECL_PRESERVE_P.
2053 * target-def.h (TARGET_ASM_MARK_DECL_PRESERVED): New #define.
2054 (TARGET_ASM_OUT): New member, TARGET_ASM_MARK_DECL_PRESERVED
2055 * target.h (struct gcc_target): New member, mark_decl_preserved.
45c8116d
ZW
2056 * hooks.c (hook_void_charptr): Rename to ...
2057 (hook_void_constcharptr): ... new name.
2058 * hooks.h (hook_void_charptr): Rename to ..
2059 (hook_void_constcharptr): ... new name.
8e3e233b
DP
2060 * tree.h (DECL_PRESERVE_P): New #define.
2061 (struct tree_decl): New member, preserve_flag.
2062 * varasm.c (assemble_start_function): Mark decl preserved.
2063 (assemble_variable): Same.
2064 * darwin.c (darwin_mark_decl_preserved): New function.
2065 * darwin.h (TARGET_ASM_MARK_DECL_preserved): New #define.
2066 * darwin-protos.h (darwin_mark_decl_preserved): New decl.
2067 * doc/tm.texi (TARGET_ASM_MARK_DECL_PRESERVED): Document.
2068
580b3958
JM
20692004-08-16 Joseph S. Myers <jsm@polyomino.org.uk>
2070
2071 * c-decl.c (grokdeclarator): Allow for function definition where
2072 innermost declarator has attributes.
2073
93f90be6
FJ
20742004-08-16 Fariborz Jahanian <fjahanian@apple.com>
2075
2076 * except.c (get_exception_filter, build_post_landing_pads,
2077 dw2_build_landing_pads): Use target-specific mode for 'filter'.
2078 * target-def.h (TARGET_EH_RETURN_FILTER_MODE): macro defined and used.
2079 * target.h (eh_return_filter_mode): New field added.
2080 * targhooks.c (default_eh_return_filter_mode): Defined.
2081 * targhooks.h (default_eh_return_filter_mode): Declared.
2082 * config/rs6000/rs6000.c (rs6000_eh_return_filter_mode): Defined.
2083
392765bf
NN
20842004-08-16 Nathanael Nerode <neroden@gcc.gnu.org>
2085
2086 * configure.ac: Replace _GCC_TOPLEV_NONCANONICAL_TARGET with
2087 ACX_NONCANONICAL_TARGET; remove now-unneeded AC_SUBST.
2088 * configure: Regenerate.
2089
49bd1d27
SS
20902004-08-16 Stan Shebs <shebs@apple.com>
2091
2092 Basic support for 64-bit Darwin.
2093 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
2094 (machopic_legitimize_pic_address): Similarly, plus use Pmode
2095 instead of SImode.
2096 * config/rs6000/darwin.h (PTRDIFF_TYPE): Be "long int" if 64-bit.
2097 (TARGET_OS_CPP_BUILTINS): Add 64-bit preprocessor macro.
2098 (SUBTARGET_SWITCHES): Add -m32 and -m64 flags.
2099 (SUBTARGET_OVERRIDE_OPTIONS): Require 64-bit processor if -m64.
2100 (PROCESSOR_DEFAULT64): Define.
2101 * config/rs6000/darwin.md: New file, patterns specific to 64-bit
2102 Darwin.
2103 * config/rs6000/rs6000.md: Include darwin.md.
2104 (builtin_setjmp_receiver): Add DImode case.
2105 * config/rs6000/rs6000.c (TARGET_ASM_UNALIGNED_DI_OP): Define for
2106 Darwin.
2107 (TARGET_ASM_ALIGNED_DI_OP): Ditto.
2108 (rs6000_emit_move): Add DImode case to Darwin bits.
2109 (machopic_output_stub): Use .quad if 64-bit.
2110 * invoke.texi: Document -m32 and -m64.
2111
4e6e4e4c
JJ
21122004-08-16 Janis Johnson <janis187@us.ibm.com>
2113
2114 * doc/extend.texi (AltiVec builtins): Document additional differences
2115 from the Motorola AltiVec PIM.
2116
092313ae
NS
21172004-08-16 Nathan Sidwell <nathan@codesourcery.com>
2118
2119 * c-typeck.c (build_c_cast): Only copy overflow from expr nodes.
2120 * tree.h (IS_NON_TYPE_CODE_CLASS): Simplify.
2121 (struct tree_common): Update public_flag documentation.
2122
dffc9ae5
NN
21232004-08-16 Nathanael Nerode <neroden@gcc.gnu.org>
2124
2125 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
62fc1d7d 2126 Check for artificial variables, not is_gimple_tmp_var.
dffc9ae5
NN
2127 * tree-ssa-live.c (var_union): Likewise.
2128
16e9be4c
NS
21292004-08-16 Nathan Sidwell <nathan@codesourcery.com>
2130
2131 * calls.c (load_register_parameters): Remove spurious FIXME token.
2132
9a4d6480
ZL
21332004-08-15 Ziemowit Laski <zlaski@apple.com>
2134
2135 * Makefile.in (C_PRETTY_PRINT_H): Add c-pretty-print.h.
2136 (c-lang.o): Depend on c-objc-common.h.
45c8116d 2137 (c-objc-common.o): Depend on $(C_PRETTY_PRINT_H) and
9a4d6480
ZL
2138 c-objc-common.h; remove duplicate $(C_TREE_H) dependency.
2139 * c-lang.c: Include c-objc-common.h.
2140 (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS,
2141 LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION,
2142 LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS,
45c8116d
ZW
2143 LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P,
2144 LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE,
9a4d6480
ZL
2145 LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION,
2146 LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL,
45c8116d 2147 LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME,
9a4d6480
ZL
2148 LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL,
2149 LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED,
2150 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL,
2151 LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
2152 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
2153 LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
2154 LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
2155 LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
2156 LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING,
2157 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
2158 LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN,
2159 LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE,
2160 LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE,
2161 LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE,
2162 LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO,
2163 LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS):
2164 Move to c-objc-common.h.
2165 * c-objc-common.c: Include c-objc-common.h.
2166 * c-objc-common.h: New file.
2167
869464ba
AT
21682004-08-15 Andreas Tobler <a.tobler@schweiz.ch>
2169 Andrew Pinski <pinskia@physics.uc.edu>
2170
2171 PR target/14931
2172 * config/rs6000/darwin-tramp.asm (L_abort$stub): Change to new stub
2173 style.
2174
4a90aeeb
NS
21752004-08-15 Nathan Sidwell <nathan@codesourcery.com>
2176
2177 * tree.h (build_int_cst): New.
2178 (build_int_2): Remove.
2179 * tree.c (build_int_2): Remove.
2180 (build_int_cst): New.
2181 (make_vector_type, build_common_tree_nodes,
2182 build_common_tree_nodes_2): Use build_int_cst.
2183 * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
2184 expand_builtin_strpbrk, expand_builtin_fputs,
2185 build_string_literal, expand_builtin_printf,
2186 expand_builtin_sprintf, fold_builtin_lround, fold_builtin_bitop,
2187 fold_builtin_bitop, fold_builtin_isascii, fold_builtin_toascii,
2188 fold_builtin_isdigit, simplify_builtin_strstr,
2189 simplify_builtin_strpbrk, fold_builtin_fputs,
2190 simplify_builtin_sprintf): Use build_int_cst.
2191 * c-common.c (start_fname_decls, fix_string_type,
2192 c_common_nodes_and_builtins, c_init_attributes,
2193 shorten_compare): Likewise.
2194 * c-decl.c (complete_array_type,
2195 check_bitfield_type_and_width): Likewise.
2196 * c-lex.c (interpret_integer, lex_charconst): Likewise.
2197 * c-parse.in (primary): <TYPES_COMPATIBLE_P> Likewise.
2198 * c-pretty-print.c (pp_c_integer_constant): Likewise.
2199 * c-typeck.c (really_start_incremental_init, push_init_level,
2200 set_nonincremental_init_from_string): Likewise.
2201 * calls.c (load_register_parameters): Likewise.
2202 * convert.c (convert_to_pointer): Likewise.
2203 * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
2204 build_fn_info_type, build_ctr_info_value, build_gcov_info):
2205 Likewise.
2206 * except.c (init_eh, assign_filter_values, assign_filter_values):
2207 Likewise.
2208 * expmed.c (store_fixed_bit_field, extract_bit_field,
2209 extract_fixed_bit_field, extract_split_bit_field, expand_shift,
2210 expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
2211 expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
2212 * expr.c (convert_move, emit_group_load, emit_group_store,
2213 expand_assignment, store_constructor, store_field,
2214 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
2215 * fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
2216 invert_truthvalue, optimize_bit_field_compare,
2217 decode_field_reference, all_ones_mask_p, constant_boolean_node,
2218 fold_div_compare, fold, fold_read_from_constant_string,
2219 fold_negate_const, fold_abs_const, fold_not_const): Likewise.
2220 * function.c (assign_parm_setup_block): Likewise.
2221 * stmt.c (shift_return_value, expand_end_case_type,
2222 estimate_case_costs): Likewise.
2223 * stor-layout.c (layout_type, initialize_sizetypes,
2224 set_min_and_max_values_for_integral_type): Likewise.
2225 * tree-chrec.c (chrec_fold_multiply_poly_poly,
2226 reset_evolution_in_loop): Likewise.
2227 * tree-chrec.h (build_polynomial_chrec): Likewise.
2228 * tree-complex.c (build_replicated_const): Likewise.
2229 * tree-eh.c (honor_protect_cleanup_actions,
2230 lower_try_finally_onedest, lower_try_finally_copy,
2231 lower_try_finally_switch): Likewise.
2232 * tree-mudflap.c (mf_build_string, mx_register_decls,
2233 mudflap_register_call, mudflap_enqueue_constant): Likewise.
2234 * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
2235 * tree-pretty-print.c (dump_generic_node): Likewise.
2236 * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
2237 Likewise.
2238 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
2239 * tree-ssa-loop-niter.c (number_of_iterations_cond,
2240 loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
2241 Likewise.
45c8116d 2242
4a90aeeb
NS
2243 * config/alpha/alpha.c (alpha_initialize_trampoline,
2244 alpha_va_start, alpha_gimplify_va_arg_1): Use build_int_cst.
2245 * config/arm/arm.c (arm_get_cookie_size): Likewise.
2246 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
2247 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
2248 * config/i860/i860.c (i860_va_start): Likewise.
2249 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
2250 * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
2251 mips_gimplify_va_arg_expr): Likewise.
2252 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
2253 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
2254 add_compiler_branch_island): Likewise.
2255 * config/s390/s390.c (s390_va_start): Likewise.
2256 * config/sh/sh.c (sh_va_start): Likewise.
2257 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
2258 Likewise.
2259 * config/xtensa/xtensa.c (xtensa_va_start,
2260 xtensa_gimplify_va_arg_expr): Likewise.
45c8116d 2261
4a90aeeb
NS
2262 * objc/objc-act.c (build_objc_string_object,
2263 build_objc_symtab_template, init_def_list, init_objc_symtab,
2264 init_module_descriptor, generate_static_references,
2265 build_selector_translation_table, get_proto_encoding,
2266 build_typed_selector_reference, build_selector_reference,
2267 build_next_objc_exception_stuff,
2268 build_method_prototype_list_template, generate_descriptor_table,
2269 generate_protocols, build_protocol_initializer,
2270 build_ivar_list_template, build_method_list_template,
2271 build_ivar_list_initializer, generate_ivars_list,
2272 generate_dispatch_table, generate_protocol_list,
2273 build_category_initializer, build_shared_structure_initializer,
2274 generate_shared_structures, handle_impent,
2275 generate_objc_image_info): Use build_int_cst.
2276
2a68a7de
BE
22772004-08-15 Ben Elliston <bje@au.ibm.com>
2278
2279 * vec.h: Comment improvements.
2280
53fb4de3
RS
22812004-08-14 Roger Sayle <roger@eyesopen.com>
2282
2283 * c-common.c (shorten_compare, pointer_int_sum,
2284 c_common_truthvalue_conversion, boolean_increment): Replace calls
2285 to build with calls to buildN.
2286 * c-decl.c (complete_array_type, grokdeclarator): Likewise.
2287 * c-gimplify.c (c_build_bind_expr, gimplify_c_loop,
2288 gimplify_switch_stmt): Likewise.
2289 * c-typeck.c (default_function_array_conversion,
2290 build_component_ref, build_array_ref, build_function_call,
2291 pointer_diff, build_unary_op, build_conditional_expr,
2292 build_compound_expr, build_modify_expr, c_finish_goto_label,
2293 c_finish_goto_ptr, c_finish_return, c_finish_loop,
2294 c_finish_bc_stmt, c_finish_stmt_expr, c_end_compound_stmt,
2295 build_binary_op): Likewise.
2296
254b17dd
SB
22972004-08-15 Steven Bosscher <stevenb@suse.de>
2298
2299 * rtl.c (note_insn_name): Add NOTE_DISABLE_SCHED_OF_BLOCK.
2300
a5252c84
JDA
23012004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2302
2303 * fixinc/inclhack.def (stdio_va_list): Also fix com_err.h, cps.h,
2304 curses.h, krb5.h, lc_core.h, pfmt.h, wchar.h and curses_colr/curses.h.
2305 * fixinc/fixincl.x: Rebuilt.
2306
96a30b18
RS
23072004-08-14 Richard Sandiford <rsandifo@redhat.com>
2308
2309 * config/mips/mips-protos.h (mips_symbolic_constant_p)
2310 (mips_atomic_symbolic_constant_p, mips_stack_address_p)
2311 (mips_small_data_pattern_p): Declare.
2312 * config/mips/mips.h (CONST_GP_P): Moved from mips.c.
2313 (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
2314 * config/mips/mips.c (mips_symbolic_constant_p): Make global.
2315 (mips_atomic_symbolic_constant_p, mips_stack_address_p): New functions.
2316 (uns_arith_operand, const_arith_operand, arith_operand, sle_operand)
2317 (sleu_operand, small_int, reg_or_0_operand, const_float_1_operand)
2318 (reg_or_const_float_1_operand, hilo_operand, extend_operator)
2319 (macc_msac_operand, equality_op, cmp_op, trap_cmp_op)
2320 (pc_or_label_operand, call_insn_operand, move_operand)
2321 (consttable_operand, symbolic_operand, general_symbolic_operand)
2322 (global_got_operand, local_got_operand, stack_operand)
2323 (fp_register_operand, lo_operand, fcc_register_operand): Delete.
2324 (mips_small_data_pattern_1): Renamed from small_data_pattern_1.
2325 (mips_small_data_pattern_p): Replace previous small_data_pattern
2326 predicate. Turn into a bool () (rtx) function.
2327 * config/mips/predicates.md: New file.
2328 * config/mips/mips.md: Include it. Use the target-independent
2329 comparison_operator instead of cmp_op. Rename trap_cmp_op to
2330 trap_comparison_operator and equality_op to equality_operator.
2331 Replace uses of small_int with the equivalent const_arith_operand.
2332 Rename reg_or_const_float_1_operand to reg_or_1_operand. Rename
2333 const_float_1_operand to const_1_operand. Rename fcc_register_operand
2334 to fcc_reload_operand.
2335 * config/mips/sb1.md: Rename fp_register_operand to fpr_operand.
2336
e41c9fcb
JDA
23372004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2338
2339 PR libstdc++/17005 partial fix.
2340 * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _INCLUDE__STDC_A1_SOURCE
2341 except when generating ANSI/C89 code.
2342
af9c6659
NS
23432004-08-14 Nathan Sidwell <nathan@codesourcery.com>
2344
2345 * c-common.c (shorten_compare): Use force_fit_type directly.
2346
37de1373
GP
23472004-08-14 Gerald Pfeifer <gerald@pfeifer.com>
2348 Dimitri Papadopoulos-Orfanos <papadopo@shfj.cea.fr>
2349 Dave Korn <dk@artimi.com>
2350
2351 * doc/install.texi (Building): Avoid duplicate reference to GNU
2352 make requirement.
2353 (*-*-solaris2*): Do not recommend GNU make any longer. Simplify.
2354
06d69cd3
RH
23552004-08-14 Richard Henderson <rth@redhat.com>
2356
2357 * config/alpha/alpha.h (PROMOTE_MODE): Don't promote vector types.
2358 * config/alpha/alpha.c (function_value): Use PROMOTE_MODE.
2359
e427abbf
RH
23602004-08-13 Richard Henderson <rth@redhat.com>
2361
2362 * config/i386/i386.md (call_1, sibcall_1, call_1_rex64): Use Pmode
2363 for constant_call_address_operand.
2364 (call_value_pop_1, call_value_1): Likewise.
2365 (sibcall_value_1, call_value_1_rex64): Likewise.
2366
2b407936
JW
23672004-08-13 James E Wilson <wilson@specifixinc.com>
2368
2369 * config/mips/sb1.md (ir_sb1_divdf_2pipes, ir_sb1_divdf_1pipe):
2370 Correct mode from SFmode to DFmode.
2371
3e0d5ae2
ZL
23722004-08-13 Ziemowit Laski <zlaski@apple.com>
2373
2374 * config/darwin.h (EXTRA_SECTION_FUNCTIONS): Mark the __sel_fixup,
2375 __cstring_object and __image_info sections with the no_dead_strip
2376 attribute.
2377
e0704143
RS
23782004-08-13 Roger Sayle <roger@eyesopen.com>
2379 David Billinghurst <David.Billinghurst@riotinto.com>
2380
2381 PR libgfortran/15930
2382 * fixinc/inclhack.def (irix___generic1, irix___generic2): New.
2383 * fixinc/fixincl.x: Regenerate.
2384 * fixinc/tests/base/internal/math_core.h: New file.
2385
8768c655
RH
23862004-08-13 Richard Henderson <rth@redhat.com>
2387
2388 * dbxout.c (NO_DBX_FUNCTION_END): Default to zero.
2389 (dbxout_function_end): Remove ifdefs for it.
2390 (dbxout_begin_prologue): Protect N_BNSYM with it, and gdb extensions.
2391
201312c2
RH
23922004-08-13 Richard Henderson <rth@redhat.com>
2393
2394 * Makefile.in (insn-preds.o): Depend on TREE_H.
2395 * genpreds.c (write_insn_preds_c): Include tree.h.
2396 * config/alpha/alpha.c (reg_or_0_operand, reg_or_6bit_operand,
2397 reg_or_8bit_operand, cint8_operand, add_operand, sext_add_operand,
2398 const48_operand, and_operand, or_operand, mode_width_operand,
2399 mode_mask_operand, mul8_operand, const0_operand,
2400 hard_fp_register_operand, hard_int_register_operand,
2401 reg_or_cint_operand, some_operand, some_ni_operand, input_operand,
2402 samegp_function_operand, direct_call_operand, small_symbolic_operand,
45c8116d 2403 global_symbolic_operand, call_operand, symbolic_operand,
201312c2
RH
2404 dtp16_symbolic_operand, dtp32_symbolic_operand,
2405 gotdtp_symbolic_operand, tp16_symbolic_operand, tp32_symbolic_operand,
2406 gottp_symbolic_operand, alpha_comparison_operator,
2407 alpha_zero_comparison_operator, alpha_swapped_comparison_operator,
2408 signed_comparison_operator, alpha_fp_comparison_operator,
2409 divmod_operator, fix_operator, aligned_memory_operand,
2410 unaligned_memory_operand, reg_or_unaligned_mem_operand,
2411 any_memory_operand, reg_not_elim_operand, normal_memory_operand,
2412 reg_no_subreg_operand, addition_operation): Move to predicates.md.
2413 (reg_or_const_int_operand): Remove. Replace all users with
2414 reg_or_cint_operand.
2415 (tls_symbolic_operand_1): Export. Don't check mode or for CONST.
2416 (resolve_reload_operand): Split out of aligned_memory_operand.
2417 * config/alpha/alpha-protos.h: Update for exports.
2418 * config/alpha/alpha.h (PREDICATE_CODES): Remove.
2419 * config/alpha/alpha.md: Include predicates.md.
2420 * config/alpha/predicates.md: New file.
2421
1e9c8405
RS
24222004-08-13 Richard Sandiford <rsandifo@redhat.com>
2423
2424 * genattrtab.c (insn_ent): Replace insn_code, insn_index and lineno
2425 fields with a pointer to the instruction definition.
2426 (get_attr_value, fill_attr, make_length_attrs, remove_insn_ent)
2427 (insert_insn_ent, simplify_test_exp, optimize_attrs, write_attr_get)
2428 (write_attr_case, write_const_num_delay_slots): Update accordingly.
2429 (write_attr_case, write_const_num_delay_slots): Write the name of
2430 an insn next to its case statement.
2431 * genoutput.c (data): Add a filename field.
2432 (gen_insn, gen_peephole, gen_expand, gen_split): Set it.
2433 (output_insn_data): Print the location of each insn definition.
2434 * genrecog.c (write_action): Print the name of an insn above
2435 the statement that returns its code.
2436
1e5f1716
AP
24372004-08-12 Andrew Pinski <pinskia@physics.uc.edu>
2438
2439 * config/darwin-c.c (find_subframework_file): Fix spelling of cannot.
2440 * config/libgloss.h: Likewise.
2441 * config/arm/arm.c (arm_gen_load_multiple): Likewise.
2442 * c4x/c4x-modes.def: Likewise.
2443 * config/c4x/c4x.c (c4x_hard_regno_rename_ok): Likewise.
2444 (c4x_rptb_nop_p): Likewise.
2445 (c4x_rptb_valid_p): Likewise.
2446 (c4x_rptb_insert): Likewise.
2447 (c4x_address_conflict): Likewise.
2448 * config/c4x/c4x.md: Likewise.
2449 * config/frv/frv.md: Likewise.
2450 * config/i386/athlon.md: Likewise.
2451 * config/i386/i386.md: Likewise.
2452 * config/i386/predicates.md: Likewise.
2453 * config/ia64/ia64.c: Likewise.
2454 * config/ia64/itanium1.md: Likewise.
2455 * config/ia64/itanium2.md: Likewise.
2456 * config/iq2000/iq2000.md: Likewise.
2457 * config/mcore/mcore.c: Likewise.
2458 * config/mips/mips.c: Likewise.
2459 * config/mips/r3900.h: Likewise.
2460 * config/mips/sb1.md: Likewise.
2461 * config/pa/milli64.S: Likewise.
2462 * config/pa/pa.c: Likewise.
2463 * config/pa/pa.h: Likewise.
2464 * config/rs6000/8540.md: Likewise.
2465
9bcc9490
DB
24662004-08-13 Daniel Berlin <dberlin@dberlin.org>
2467
2468 * Makefile.in (BOOT_CFLAGS): Remove accidental addition of -dU.
2469
68fe56fc
R
24702004-08-13 J"orn Rennecke <joern.rennecke@superh.com>
2471
2472 * sh.md (cbranch define_delay) Use cond_delay_slot for
2473 non-anulled condition too.
2474
85d346f1
DE
24752004-08-12 David Edelsohn <edelsohn@gnu.org>
2476
2477 * config/rs6000/rs6000.c (any_parallel_operand): New predicate.
2478 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
2479 any_parallel_operand, lmw_operation, stmw_operation,
a688b3ac 2480 mfcr_operation, mtcrf_operation. Remove PARALLEL from any_operand.
85d346f1
DE
2481 * config/rs6000/rs6000.md (save_fpregs_{si,di}): Use
2482 any_parallel_operand.
2483 (return_and_restore_fpregs_{si,di}): Same.
2484
47d2cee5
ZW
24852004-08-12 Zack Weinberg <zack@codesourcery.com>
2486
2487 * genrecog.c (add_to_sequence): When processing a MATCH_PARALLEL,
2488 if pred->singleton != PARALLEL, issue a warning and pretend it was.
2489 Also issue a warning for any predicate we don't know about.
2490
8fe75e43
RH
24912004-08-12 Richard Henderson <rth@redhat.com>
2492
2493 * config/i386/i386.c (internal_label_prefix): Export.
2494 (internal_label_prefix_len, struct ix86_address,
2495 ix86_decompose_address, maybe_get_pool_constant,
2496 ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes,
2497 memory_address_length): Export.
47d2cee5 2498 (any_fp_register_operand, fp_register_operand,
8fe75e43 2499 register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand,
47d2cee5 2500 x86_64_general_operand, x86_64_szext_general_operand,
8fe75e43
RH
2501 x86_64_nonmemory_operand, x86_64_movabs_operand,
2502 x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
2503 x86_64_zext_immediate_operand, const_int_1_31_operand,
2504 symbolic_operand, pic_symbolic_operand, local_symbolic_operand,
2505 tls_symbolic_operand, global_dynamic_symbolic_operand,
2506 local_dynamic_symbolic_operand, initial_exec_symbolic_operand,
2507 local_exec_symbolic_operand, call_insn_operand, sibcall_insn_operand,
2508 constant_call_address_operand, const0_operand, const1_operand,
2509 const248_operand, const_0_to_3_operand, const_0_to_7_operand,
2510 const_0_to_15_operand, const_0_to_255_operand, incdec_operand,
2511 shiftdi_operand, reg_no_sp_operand, mmx_reg_operand,
2512 general_no_elim_operand, nonmemory_no_elim_operand,
2513 index_register_operand, q_regs_operand, flags_reg_operand,
2514 non_q_regs_operand, zero_extended_scalar_load_operand,
2515 vector_move_operand, no_seg_address_operand, sse_comparison_operator,
47d2cee5 2516 ix86_comparison_operator, ix86_carry_flag_operator,
8fe75e43
RH
2517 fcmov_comparison_operator, promotable_binary_operator,
2518 cmp_fp_expander_operand, ext_register_operand, binary_fp_operator,
47d2cee5 2519 mult_operator, div_operator, arith_or_logical_operator,
8fe75e43
RH
2520 memory_displacement_operand, cmpsi_operand, long_memory_operand,
2521 aligned_operand): Move to predicates.md as define_predicates.
2522 (tls_symbolic_operand_1): Remove.
2523 (x86_64_sign_extended_value): Merge into x86_64_immediate_operand.
2524 (x86_64_zero_extended_value): Merge into x86_64_zext_immediate_operand.
2525 (legitimize_address): Merge tls_symbolic_operand contents.
2526 (ix86_expand_move): Likewise.
2527 * config/i386/i386-protos.h: Update for exports.
2528 * config/i386/i386.h (EXTRA_CONSTRAINT): Update for renames.
2529 (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Remove.
2530 * config/i386/i386.md: Include predicates.md.
2531 * config/i386/predicates.md: New file.
2532
ea3d83a7
MM
25332004-08-13 Mark Mitchell <mark@codesourcery.com>
2534
2535 PR c++/16924
2536 * config/i386/winnt.c (i386_pe_mark_dllexport): Set
2537 SYMBOL_REF_DECL.
2538 (i386_pe_mark_dllimport): Likewise.
2539 (i386_pe_encode_section_info): Likewise, when overriding
2540 dllimport attribute.
2541
414adbdd
GK
25422004-08-12 Geoffrey Keating <geoffk@apple.com>
2543
2544 * configure.ac: When testing for flex, nm, ar, and bison, check
2545 that they will actually be built.
2546 * configure: Regenerate.
2547
c5443745
UW
25482004-08-12 Ulrich Weigand <uweigand@de.ibm.com>
2549
2550 * config/s390/s390.h (MAX_FIXED_MODE_SIZE): Define.
2551 (MOVE_MAX_PIECES): Define.
2552
8fa5469d
DP
25532004-08-12 Devang patel <dpatel@apple.com>
2554
2555 * dbxout.c (dbxout_begin_prologue): New function.
2556 (dbx_debug_hooks): Use new begin prologue hook.
2557 (dbxout_function_end): Emit N_ENSYM.
2558 * stab.def (N_BNSYM, N_ENSYM): Define and document these two new stabs.
47d2cee5 2559
b0b343db
JJ
25602004-08-12 Janis Johnson <janis187@us.ibm.com>
2561
e390eb0a
JJ
2562 * config/rs6000/altivec.h (vec_dst): Fix C++ functions whose first
2563 argument is float*.
2564
e34b6648
JJ
2565 * config/rs6000/rs6000.c (altivec_init_builtins): Fix argument type
2566 for vec_dss.
2567
b0b343db
JJ
2568 * doc/extend.texi (AltiVec builtins): Fix description for recent
2569 changes. Update operation list to match current support.
2570
adf39f8f
AK
25712004-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
2572
2573 * config/s390/s390.c (struct s390_frame_layout): New struct as element
2574 of struct machine_function.
2575 (cfun->machine->frame_size): Moved into cfun->machine->frame_layout and
2576 changed all uses.
2577 (cfun->machine->save_fprs_p): Replaced by cfun_save_high_fprs and
2578 changed all uses.
2579 (cfun_frame_layout, cfun_save_high_fprs_p, cfun_gprs_save_area_size)
2580 (cfun_set_fpr_bit, cfun_fpr_bit_p): New macros.
2581 (s390_frame_area, s390_register_info): New functions.
2582 (s390_optimize_prolog): Renamed to s390_optimize_prologue. Added check
2583 for base register.
2584 (s390_return_addr_rtx, s390_return_address_offset)
2585 (s390_va_start, s390_gimplify_va_arg)
2586 (s390_emit_prologue, s390_emit_epilogue): Adjusted for new stack
2587 layouts.
2588 (s390_frame_info): Functionality partly moved to s390_register_info.
2589 Made adaptions for new stack layout.
2590 (save_gprs, restore_gprs): Changed meaning of second parameter and
2591 adapted all callers.
2592
2593 * config/s390/s390.h (s390_backchain_string): New global variable.
2594 (MASK_BACKCHAIN): Removed definition.
2595 (TARGET_BACKCHAIN): Changed check.
2596 (TARGET_KERNEL_BACKCHAIN): New macro.
2597 (TARGET_SWITCHES): Removed entries of "backchain" and "no-backchain".
2598 (TARGET_OPTIONS): Added "backchain", "no-backchain" and
2599 "kernel-backchain".
2600 (DYNAMIC_CHAIN_ADDRESS): Adjusted for new stack layouts.
2601
2602 * config/s390/s390.md ("allocate_stack"): Added TARGET_KERNEL_BACKCHAIN
2603 as condition. Adjusted for new stack layout.
2604
2605 * doc/invoke.texi: Added documentation for new option
2606 "-mkernel-backchain" and adjusted documentation of "-mbackchain" and
2607 "-mno-backchain".
2608
db151e9d
PB
26092004-08-12 Paul Brook <paul@codesourcery.com>
2610
2611 * config/arm/lib1funcs.asm (ARM_FUNC_ALIAS): Also alias _L__name.
2612 (aeabi_uidivmod, aeabi_idivmod): Provide thumb implementation.
2613
02b75262
DD
26142004-08-12 David Daney <ddaney@avtrex.com>
2615
db151e9d 2616 * java/gcj.texi: Add subsection on signal usage.
02b75262 2617
f64d6991
DE
26182004-08-12 David Edelsohn <edelsohn@gnu.org>
2619
2620 * expr.c (move_by_pieces): Set alignment for move to minimum of
2621 MOVE_MAX_PIECES mode alignment and the largest non-slow mode
2622 alignment, but not less than the original alignment.
2623 (move_by_pieces_ninsns): Same.
2624 (can_store_by_pieces): Similar for store with STORE_MAX_PIECES.
2625 (store_by_pieces_1): Same.
2626
c597ef4e
DN
26272004-08-12 Diego Novillo <dnovillo@redhat.com>
2628
2629 PR tree-optimization/16867
2630 * tree.c (is_global_var): New function.
2631 (needs_to_live_in_memory): Check for TREE_ADDRESSABLE.
2632 Call is_global_var.
2633 * tree.h (DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL): Remove.
2634 Update all users.
2635 (is_global_var): Declare.
2636 * tree-dfa.c (dump_variable): Display global and addressable
2637 attributes.
2638 (add_referenced_var): Clarify documentation when marking
2639 variables call-clobbered.
2640 * tree-flow-inline.h (is_call_clobbered): Call is_global_var
2641 instead of needs_to_live_in_memory.
2642 (mark_call_clobbered): If the variable is a tag, mark it
2643 DECL_EXTERNAL.
2644 * tree-gimple.c (is_gimple_reg): Don't check for
2645 TREE_ADDRESSABLE.
2646 (is_gimple_non_addressable): Likewise.
2647 * tree-ssa-alias.c (get_nmt_for): Always check whether the tag
2648 needs to be marked call-clobbered.
2649 (setup_pointers_and_addressables): Call is_global_var instead
2650 of needs_to_live_in_memory.
2651 * tree-ssa-dce.c (need_to_preserve_store): Remove.
2652 Update all users with is_global_var.
2653 (mark_stmt_if_obviously_necessary): Fix processing of aliased
2654 stores. Don't check the virtual definitions. Rather, check
2655 whether the store is going into global memory.
2656 (find_obviously_necessary_stmts): Get the symbol from the PHI
2657 result.
2658 * tree-ssa-operands.c (get_call_expr_operands): Do not add
2659 clobbering may-defs if the call does not have side effects.
2660
ab5c8549
JJ
26612004-08-12 Jakub Jelinek <jakub@redhat.com>
2662
2663 PR c++/16276
2664 * output.h (default_function_rodata_section,
2665 default_no_function_rodata_section): New prototypes.
2666 * target.h (struct gcc_target): Add asm_out.function_rodata_section.
2667 * target-def.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
2668 (TARGET_ASM_OUT): Add it.
2669 * varasm.c (default_function_rodata_section,
2670 default_no_function_rodata_section): New functions.
2671 * final.c (final_scan_insn): Call
2672 targetm.asm_out.function_rodata_section instead of
2673 readonly_data_section.
2674 * config/darwin.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
2675 * config/mcore/mcore.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
2676 * config/ip2k/ip2k.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
2677 * config/rs6000/xcoff.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
2678 Likewise.
2679 * config/alpha/alpha.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
2680 * config/i386/cygming.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
2681 Likewise.
2682 * config/i386/i386-interix.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
2683 Likewise.
2684 * config/arm/pe.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
2685 * config/avr/avr.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
2686 * doc/tm.texi (TARGET_ASM_FUNCTION_RODATA_SECTION): Document.
2687
5cf58f28
PB
26882004-08-12 Paul Brook <paul@codesourcery.com>
2689
2690 * dwarf2out.h (dwarf2out_frame_finish): Conditionalize outputting eh
2691 frame info.
2692 * doc/tm.texi: Document interaction between TARGET_UNWIND_INFO and
2693 DWARF2_UNWIND_INFO.
2694
87e184d1
BE
26952004-08-12 Ben Elliston <bje@au.ibm.com>
2696
2697 PR target/16286
2698 * config/rs6000/altivec.h: Change vector to __vector throughout.
2699 (Except for the `vector' macro itself).
2700
e543e219
ZW
27012004-08-12 Zack Weinberg <zack@codesourcery.com>
2702
2703 * genpreds.c: Add capability to generate predicate bodies as
2704 well as function prototypes. Write function prototypes for
2705 the generic predicates too.
2706 (process_define_predicate, write_tm_preds_h, write_insn_preds_c)
2707 (write_predicate_subfunction, mark_mode_tests, add_mode_tests)
2708 (write_match_code, write_predicate_expr, write_one_predicate_function)
2709 (parse_option): New functions.
2710 (output_predicate_decls): Delete.
2711 (main): Read the machine description, process DEFINE_PREDICATE or
2712 DEFINE_SPECIAL_PREDICATE patterns, write tm-preds.h or insn-preds.c
2713 as appropriate.
2714
2715 * genrecog.c (struct decision_test): Replace index with
2716 struct pred_data pointer.
2717 (next_index): Remove, unused.
2718 (pred_table, preds, special_mode_pred_table): Delete.
2719 (compute_predicate_codes, process_define_predicate): New functions.
2720 (validate_pattern, add_to_sequence, write_switch): Update for
2721 new data structures.
2722 (main): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
2723 Check both error_count and have_error.
2724
2725 * gensupport.c (in_fname, first_predicate): New globals.
2726 (define_pred_queue, define_pred_tail): New RTL-pattern queue.
2727 (predicate_table, last_predicate, old_pred_table)
2728 (old_special_pred_table): New statics.
2729 (hash_struct_pred_data, eq_struct_pred_data, lookup_predicate)
2730 (add_predicate, init_predicate_table): New functions.
2731 (process_rtx): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
2732 (init_md_reader_args_cb): Use the global in_fname. No need to zero
2733 it or max_include_len. Call init_predicate_table.
2734 (read_rtx): Run the predicate queue after the attribute queue
2735 but before all the others.
2736 * gensupport.h (in_fname, struct pred_data, first_predicate)
2737 (lookup_predicate, add_predicate, FOR_ALL_PREDICATES): Declare.
2738 * rtl.def (MATCH_CODE, MATCH_TEST, DEFINE_PREDICATE)
2739 (DEFINE_SPECIAL_PREDICATE): New RTL codes.
2740 * dummy-conditions.c: Don't include bconfig.h, system.h,
2741 coretypes.h, tm.h, or system.h. Do include stddef.h.
2742 Duplicate declaration of struct c_test from gensupport.h.
2743
2744 * Makefile.in (OBJS-common): Add insn-preds.o.
2745 (STAGESTUFF, .PRECIOUS): Add insn-preds.c.
2746 (insn-preds.c, insn-preds.o): New rules.
2747 (s-preds): Also generate insn-preds.c.
2748 (dummy-conditions.o, genpreds$(build_exeext), genpreds.o):
2749 Update dependencies.
2750 (print-rtl.o, print-rtl1.o): Correct dependencies.
2751
2752 * recog.h: Delete prototypes of predicate functions.
2753
2754 * doc/md.texi (Predicates): New section with complete
2755 documentation of operand/operator predicates. Remove some
2756 incomplete documentation of predicates from other places.
2757 * doc/tm.texi (Misc): Move SPECIAL_MODE_PREDICATES next to
2758 PREDICATE_CODES; indicate that both are deprecated in favor
2759 of define_predicate/define_special_predicate.
2760
2761 * config/ia64/ia64.c: All predicate function definitions moved
2762 to ia64.md, except
2763 (small_addr_symbolic_operand, tls_symbolic_operand): Delete.
2764 (ia64_expand_load_address, ia64_expand_move):
2765 Check SYMBOL_REF_TLS_MODEL directly, don't use tls_symbolic_operand.
2766
2767 * config/ia64/ia64.md: All predicates now defined here.
2768 (symbolic_operand): Is now a special predicate.
2769
2770 * config/ia64/ia64.h: Declare ia64_section_threshold.
2771 (PREDICATE_CODES): Delete.
2772
174283a3
RH
27732004-08-12 Richard Henderson <rth@redhat.com>
2774
2775 * c-common.h (STATEMENT_LIST_HAS_LABEL): New.
2776 * c-semantics.c (add_stmt): Set it.
2777 * c-decl.c (finish_decl): Use it to create a new BIND_EXPR
2778 before instantiating a variable sized type.
2779
15931954
RH
27802004-08-12 Richard Henderson <rth@redhat.com>
2781
2782 * stor-layout.c (round_up, round_down): Move ...
e543e219 2783 * fold-const.c (round_up, round_down): ... here. Use
15931954
RH
2784 multiple_of_p to avoid any arithmetic at all.
2785
57d1dd87
RH
27862004-08-12 Richard Henderson <rth@redhat.com>
2787
2788 * gimplify.c (struct gimplify_init_ctor_preeval_data): New.
2789 (gimplify_init_ctor_preeval_1): New.
2790 (gimplify_init_ctor_preeval): New.
2791 (gimplify_init_ctor_eval): New.
2792 (gimplify_init_constructor): Use them. Always gimplify the LHS
2793 object first.
2794
46e34f96
ZL
27952004-08-12 Ziemowit Laski <zlaski@apple.com>
2796
2797 (This patch is part of merge of objc-improvements-branch
2798 into mainline.)
2799
2800 * doc/frontends.texi: Mention Objective-C++ in addition to
2801 Objective-C.
2802 * doc/install.texi: Add 'obj-c++' to list of configurable
2803 languages.
2804 * doc/invoke.texi: Rename Objective-C option headings to
2805 indicate they also apply to Objective-C++. List file
2806 extensions for Objective-C++ sources. Mention that
2807 ObjC and ObjC++ compilations may also use C and C++ options,
2808 respectively. Point users to doc/standards.texi for
2809 further info on ObjC and ObjC++.
2810 * doc/sourcebuild.texi: Mention the objcp/ directory and
2811 the Objective-C++ sources it contains.
2812 * doc/standards.texi: Update link to Apple ObjC site;
2813 add link to gcc readings.html WWW doc.
2814
07f12d8b
AM
28152004-08-12 Alan Modra <amodra@bigpond.net.au>
2816
2817 * config/rs6000/rs6000.c (function_arg_padding): Revert 2004-07-28
2818 and 2004-07-14 changes.
2819
89aa5a20
PB
28202004-08-12 Paul Brook <paul@codesourcery.com>
2821
2822 * doc/invoke.texi: Fix typo.
2823
5079843a
DP
28242004-08-11 Devang Patel <dpatel@apple.com>
2825
2826 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -dead_strip
2827 and -no_dead_strip_inits_and_terms.
2828 (LINK_SPEC): Same.
2829 * doc/invoke.texi (Darwin Options): Document -dead_strip and
2830 -no_dead_strip_inits_and_terms.
e543e219 2831
876f13b0
PB
28322004-08-11 Paul Brook <paul@codesourcery.com>
2833
2834 * config/arm/arm-protos.h (arm_finalize_pic) Rename ...
2835 (arm_load_pic_register): ... to this.
2836 * config/arm/arm.c (arm_finalize_pic): Rename ...
2837 (arm_load_pic_register): ... to this. Always output insns at the
2838 current location. Load via low reg in thumb mode.
2839 (arm_expand_prologue): Call arm_load_pic_register.
2840 (thumb_expand_prologue): Ditto.
2841 * config/arm/arm.h (FINALIZE_PIC): Remove.
2842 * config/arm/arm.md (builtin_setjmp_receiver): Call
2843 arm_load_pic_register.
2844
57934c39
PB
28452004-08-11 Paul Brook <paul@codesourcery.com>
2846
2847 * arm.c (thumb_force_lr_save): Add prototype.
2848 (thumb_compute_save_reg_mask): New function.
2849 (thumb_find_work_register): New function.
2850 (arm_get_frame_offsets): Use thumb_compute_save_reg_mask.
2851 (thumb_unexpanded_epilogue): Ditto. Remove redundant code.
2852 Don't clobber r3 when removing pretend args.
2853 (thumb_expand_prologue): Use thumb_compute_save_reg_mask.
2854 (thumb_output_function_prologue): Use new functions.
2855 (thumb_set_return_address): Use thumb_compute_save_reg_mask.
2856 * arm.h (THUMB_REG_PUSHED_P): Remove.
2857
af874237
JW
28582004-08-11 James E Wilson <wilson@specifixinc.com>
2859
2860 PR rtl-optimization/16490
2861 * cfgrtl.c (cfg_layout_split_edge): Set global_live_at_start and
2862 global_live_at_end for new basic block if already set for other blocks.
2863
c1618c0c
DE
28642004-08-11 David Edelsohn <edelsohn@gnu.org>
2865
2866 * config/rs6000/rs6000.h (MAX_FIXED_MODE_SIZE): Define.
2867
2868 * config/rs6000/rs6000.md (mfcr rlwinm patterns): Set length to 8.
2869 (mfcr rlwinm rlwinm patterns): Set length to 12.
2870
1a24f92f
AM
28712004-08-11 Andrew MacLeod <amacleod@redhat.com>
2872
2873 * tree-flow-inline.h (get_def_ops, get_use_ops, get_v_may_def_ops,
2874 get_vuse_ops,get_v_must_def_ops): Add operand structure reference.
2875 (get_v_may_def_result_ptr, get_v_may_def_op_ptr): New access struct.
2876 (start_ssa_stmt_operands): Delete.
e543e219 2877 * tree-flow.h (struct stmt_ann_d): Replace operand vectors with new
1a24f92f
AM
2878 struct stmt_operands_d.
2879 (build_ssa_operands): New extern entry point.
e543e219 2880 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove operand
1a24f92f
AM
2881 building code, replace with create_ssa_artficial_load_stmt().
2882 * tree-ssa-operands.c (struct voperands_d): Delete.
2883 (allocate_v_may_def_optype): Allocate v_may_def_operand_type_t vector.
2884 (allocate_v_must_def_optype): Use sizeof (tree), not sizeof (tree *).
e543e219 2885 (free_uses, free_defs, free_vuses, free_v_may_defs,
1a24f92f
AM
2886 free_v_must_defs): Remove dealloc parameter.
2887 (remove_vuses, remove_v_may_def, remove_v_must_defs): Delete.
2888 (finalize_ssa_defs, finalize_ssa_uses, finalize_ssa_v_may_defs,
2889 finalize_ssa_vuses, finalize_ssa_v_must_defs): Perform all operand
2890 vector comparisons, ssa_name reuse, and allocations here.
2891 (verify_start_operands): Delete.
2892 (finalize_ssa_stmt_operands): Set new operands by calling finalize
2893 routines.
2894 (start_ssa_stmt_operands): Move from tree-flow-inline.h.
2895 (append_def, append_usei): Simplify to simple accumulation.
2896 (append_v_may_def, append_vuse, append_v_must_def): Simplify to avoiding
2897 duplicates and simple accumulation.
2898 (free_ssa_operands): Free vectors in a stmt_operand structure.
2899 (build_ssa_operands): New. Create a new stmt_operand structure from
e543e219 2900 a stmt and an old set of stmt_operands.
1a24f92f
AM
2901 (get_stmt_operands): Simplify and call build_ssa_operands.
2902 (get_expr_operands, get_asm_expr_operands, get_indirect_ref_operands,
2903 get_call_expr_operands, add_stmt_operand, add_call_clobber_ops,
2904 add_call_read_ops): Don't pass prev_vops around anymore.
2905 (note_addressable): Return if no stmt annotation.
2906 (copy_virtual_operands): Access v_may_def operands through a struct.
2907 (create_ssa_artficial_load_stmt): New. Create a load stmt for DOM's
2908 hash tables without treating the stmt as a real stmt.
2909 * tree-ssa-operands.h (struct v_may_def_operand_type): New. Access
2910 v_may_def def and use through a struct instead of 2 array elements.
2911 (struct v_may_def_optype_d): Use v_may_def_operand_type.
2912 (struct stmt_operands_d): New. Struct for storing all operand vectors.
2913
a77655b1
NC
29142004-08-11 Nick Clifton <nickc@redhat.com>
2915
2916 * config/arm/arm.c (arm_is_longcall_p): Update comment describing
2917 this funciton's behaviour. Return true when the current function
2918 has a section attribute and -mlong-calls is in effect.
2919 * config/arm/arm.h (ARM_DECLARE_FUNCTION_SIZE): Do not set the
2920 short-call marker when -mlong-calls is in effect and the function
2921 has a section attribute.
2922
6f4a43e0
ZW
29232004-08-10 Zack Weinberg <zack@codesourcery.com>
2924
2925 * stmt.c (expand_return): If asked to return the RESULT_DECL,
2926 just call expand_value_return on result_rtl.
2927
1a186ec5
RH
29282004-08-10 Richard Henderson <rth@redhat.com>
2929
2930 * builtins.def (BUILT_IN_STACK_ALLOC): Remove.
2931 * builtins.c (expand_builtin) <BUILT_IN_STACK_ALLOC>: Remove.
2932 * dwarf2out.c (loc_descriptor): Handle PARALLEL here ...
2933 (add_location_or_const_value_attribute): ... not here. Use
2934 loc_descriptor_from_tree if possible.
2935 (loc_descriptor_from_tree_1): Rename from loc_descriptor_from_tree.
2936 Simplify address handling. Handle DECL_VALUE_EXPR. Handle register
2937 values specially.
2938 (loc_descriptor_from_tree): New. Update callers.
2939 * expr.c (expand_var): Ignore DECL_VALUE_EXPR variables.
2940 * gimplify.c (gimplify_decl_expr): Lower variable sized types to
2941 pointer plus dereference. Set DECL_VALUE_EXPR. Set save_stack.
2942 (gimplify_call_expr): Do not recognize BUILT_IN_STACK_ALLOC
2943 and BUILT_IN_STACK_RESTORE.
2944 (gimplify_expr): Lower DECL_VALUE_EXPR decls.
2945 * stmt.c (expand_stack_alloc): Remove.
2946 * tree-mudflap.c (mx_register_decls): Don't look for
2947 BUILT_IN_STACK_ALLOC.
2948 * tree-nested.c (convert_local_reference): Likewise.
2949 * tree.h (DECL_VALUE_EXPR): New.
2950
7109c195
RH
29512004-08-10 Richard Henderson <rth@redhat.com>
2952
bf4ccdd6
RH
2953 * stor-layout.c (round_up): Check for 0/1 before dividing.
2954 (round_down): Likewise.
2955
7109c195
RH
2956 * tree-tailcall.c (suitable_for_tail_opt_p): Also check DECL_EXTERNAL.
2957
b3f8d95d
MM
29582004-08-09 Mark Mitchell <mark@codesourcery.com>
2959
2960 * config.gcc (arm*-*-eabi*): New target.
2961 * defaults.h (TARGET_LIBGCC_FUNCS): New macro.
2962 (TARGET_LIB_INT_CMP_BIASED): Likewise.
2963 * expmed.c (expand_divmod): Try a two-valued divmod function as a
2964 last resort.
2965 * gthr.h: Remove bogus tokens at end of #pragma.
2966 * optabs.c (expand_twoval_binop_libfunc): New function.
2967 (prepare_cmp_insn): Handle the !TARGET_LIB_INT_CMP_BIASED case.
2968 (prepare_float_lib_cmp): Try reversing the condition.
2969 (debug_optab_libfuncs): New function.
2970 * optabs.h (expand_twoval_binop_libfunc): Declare.
2971 * config/arm/arm.c (arm_init_libfuncs): New function.
2972 (arm_compute_initial_eliminatino_offset): Return HOST_WIDE_INT.
2973 (TARGET_INIT_LIBFUNCS): Define it.
2974 * config/arm/arm.h (TARGET_BPABI): New macro.
2975 * config/arm/arm-protos.h
2976 (arm_compute_initial_elimination_offset): Return HOST_WIDE_INT.
2977 * config/arm/bpabi.S: New file.
2978 * config/arm/bpabi.c: Likewise.
2979 * config/arm/bpabi.h: Likewise.
2980 * config/arm/ieee754-df.S (__aeabi_dneg): New function or alias.
2981 (__aeabi_drsub): Likewise.
2982 (__aeabi_dsub): Likewise.
2983 (__aeabi_dadd): Likewise.
2984 (__aeabi_ui2d): Likewise.
2985 (__aeabi_i2d): Likewise.
2986 (__aeabi_f2d): Likewise.
2987 (__aeabi_dmul): Likewise.
2988 (__aeabi_ddiv): Likewise.
2989 (__aeabi_cdrcmple): Likewise.
2990 (__aeabi_cdcmpeq): Likewise.
2991 (__aeabi_cdcmple): Likewise.
2992 (__aeabi_dcmpeq): Likewise.
2993 (__aeabi_dcmplt): Likewise.
2994 (__aeabi_dcmple): Likewise.
2995 (__aeabi_dcmpge): Likewise.
2996 (__aeabi_dcmpgt): Likewise.
2997 (__aeabi_dcmpun): Likewise.
2998 (__aeabi_d2iz): Likewise.
2999 (__aeabi_d2uiz): Likewise.
3000 (__aeabi_d2f): Likewise.
3001 * config/arm/ieee754-sf.S (__aeabi_fneg): New function or alias.
3002 (__aeabi_frsub): Likewise.
3003 (__aeabi_fsub): Likewise.
3004 (__aeabi_fadd): Likewise.
3005 (__aeabi_ui2f): Likewise.
3006 (__aeabi_i2f): Likewise.
3007 (__aeabi_fmul): Likewise.
3008 (__aeabi_fdiv): Likewise.
3009 (__aeabi_cfrcmple): Likewise.
3010 (__aeabi_cfcmpeq): Likewise.
3011 (__aeabi_cfcmple): Likewise.
3012 (__aeabi_fcmpeq): Likewise.
3013 (__aeabi_fcmplt): Likewise.
3014 (__aeabi_fcmple): Likewise.
3015 (__aeabi_fcmpge): Likewise.
3016 (__aeabi_fcmpgt): Likewise.
3017 (__aeabi_fcmpun): Likewise.
3018 (__aeabi_f2iz): Likewise.
3019 (__aeabi_f2uiz): Likewise.
3020 * config/arm/lib1funcs.asm (ARM_CALL): New macro.
3021 (__aeabi_uidivmod): New function or alias.
3022 (__aeabi_idivmod): Likewise.
3023 (__aeabi_idiv0): Likewise.
3024 (__aeabi_ldiv0): Likewise.
3025 (__aeabi_llsr): Likewise.
3026 (__aeabi_lasr): Likewise.
3027 (__aeabi_llsl): Likewise.
3028 (bpabi.S): Include it.
3029 * config/arm/libgcc-bpabi.ver: New file.
3030 * config/arm/symbian.h (ARM_DEFAULT_ABI): Remove.
3031 (LINK_SPEC): Remove.
3032 * config/arm/t-arm-elf (LIB1ASMFUNCS): Add __aeabi_lcmp and
3033 __aeabi_ulcmp.
3034 * config/arm/t-bpabi: New file.
3035 * doc/tm.texi (TARGET_LIBGCC_FUNCS): New entry.
3036 (TARGET_LIB_INT_CMP_BIASED): Likewise.
6f4a43e0 3037
fba73eb1
DE
30382004-08-10 David Edelsohn <edelsohn@gnu.org>
3039
3040 * config/rs6000/rs6000-protos.h (expand_block_clear): Declare.
3041 * config/rs6000/rs6000.md (clrmemsi): New pattern.
3042 * config/rs6000/rs6000.c (expand_block_clear): New function.
3043 (expand_block_move): Convert alignment to bits. Use SImode and
3044 HImode for unaligned addresses if not STRICT_ALIGNMENT.
3045
30462004-08-10 Caroline Tice <ctice@apple.com>
c295317d
CT
3047
3048 * varasm.c (unlikely_section_label): New global variable.
3049 (unlikely_text_section_name): New global variable.
3050 (text_section): Remove alignment statement.
6f4a43e0 3051 (unlikely_text_section): Remove alignment statement; use
c295317d
CT
3052 unlikely_section_label rather than hard-coded string.
3053 (assemble_start_function): Initialize unlikely_section_label and
3054 unlikely_text_section_name; make sure cold section is properly
3055 aligned at start of function; output unlikely_section_label if
3056 appropriate.
3057
68f9c5e2
UW
30582004-08-10 Ulrich Weigand <uweigand@de.ibm.com>
3059
3060 * config/s390/s390-protos.h (s390_canonicalize_comparison): Declare.
3061 * config/s390/s390.c (s390_canonicalize_comparison): New function.
3062 * config/s390/s390.h (CANONICALIZE_COMPARISON): Define.
3063 * config/s390/s390.md ("*tmdi_ext", "*tmsi_ext", "*tmqisi_ext",
3064 "*tmqidi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem"): Remove.
3065 ("*tmqi_mem"): Remove SUBREG from pattern.
3066 ("*anddi3_cconly"): Prevent accidentally matching TM pattern.
3067 ("*andsi3_cconly"): Likewise.
6f4a43e0 3068
22116d84
L
30692004-08-10 H.J. Lu <hongjiu.lu@intel.com>
3070
3071 PR target/16909
3072 * config/i386/i386.md (*strsetdi_rex_1): Use DI instead of SI.
3073
c75095b2
JJ
30742004-08-10 Janis Johnson <janis187@us.ibm.com>
3075
3076 * doc/sourcebuild.texi (compat testing): Document available test
3077 framework commands. Use the preferred spelling of DejaGnu.
3078
98975653
DB
30792004-08-10 Daniel Berlin <dberlin@dberlin.org>
3080
3081 * lambda.h: Add matrix type, and prototypes for remainder of
3082 matrix and vector functions.
3083 (lambda_vector_mult_const): New function.
3084 (lambda_vector_negate): Ditto.
3085 (lambda_vector_add): Ditto.
3086 (lambda_vector_add_mc): Ditto.
3087 (lambda_vector_copy): Ditto.
3088 (lambda_vector_zerop): Ditto.
3089 (lambda_vector_equal): Ditto.
3090 (lambda_vector_min_nz): Ditto.
3091 (lambda_vector_first_nz): Ditto.
3092 (lambda_vector_matrix_mult): Ditto.
3093 * lambda-mat.c: New file.
3094 * Makefile.in (lambda-mat.o): New.
3095
68b9f53b
AM
30962004-08-10 Andrew MacLeod <amacleod@redhat.com>
3097
3098 * tree-cfg.c (bsi_insert_before, bsi_insert_after): Call modify_stmt
3099 after linking stmt into the program.
3100 (bsi_remove): Don't call modify_stmt.
6f4a43e0 3101 * tree-complex.c (update_complex_assignment,
68b9f53b 3102 expand_complex_comparison): Call modify_stmt after changing the stmt.
6f4a43e0 3103 * tree-outof-ssa.c (rewrite_trees): Call modify_stmt only if not
68b9f53b
AM
3104 removing the stmt.
3105 * tree-ssa-ccp.c (substitute_and_fold): Call modify_stmt after changing
3106 the stmt, and only if needed.
3107 * tree-ssa-dom.c (thread_across_edge): Pass no annotation for a dummy
3108 expression.
3109 (simplify_rhs_and_lookup_avail_expr): Don't take an annotation param.
3110 (simplify_cond_and_lookup_avail_expr): Use modify_stmt.
3111 (simplify_switch_and_lookup_avail_expr): Don't take an annotation param.
6f4a43e0 3112 (eliminate_redundant_computations): Don't pass an annotation. Call
68b9f53b
AM
3113 modify_stmt rather than setting the annotation directly.
3114 (record_equivalences_from_stmt): Remove unused local 'j'.
3115 (cprop_operand): Take a stmt rather than an annotation as a parameter.
3116 Call modify_stmt.
3117 (cprop_into_stmt): Pass stmt rather than annotation.
3118 (update_rhs_and_lookup_avail_expr): Call modify_stmt.
6f4a43e0 3119 * tree-ssa-loop-im.c (schedule_sm): Call get_stmt_ann rather than
68b9f53b
AM
3120 modify_stmt.
3121 * tree-ssa.c (propagate_into_addr): Dont call modify_stmt.
3122
01c98570
JM
31232004-08-10 Jason Merrill <jason@redhat.com>
3124
6c9c4526 3125 PR middle-end/16948
01c98570
JM
3126 * function.c (expand_function_start): Handle DECL_BY_REFERENCE on
3127 the RESULT_DECL.
3128
b2ddaebb
GK
31292004-08-10 Geoffrey Keating <geoffk@apple.com>
3130
3131 * tree-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the
3132 hash function.
3133
23657388
RS
31342004-08-10 Roger Sayle <roger@eyesopen.com>
3135
3136 * config/mips/mips.md: New reciprocal square root patterns that
3137 match sqrt(1.0/x) in addition to the existing 1.0/sqrt(x) insns.
3138
c9ca9b88
PB
31392004-08-10 Paul Brook <paul@codesourcery.com>
3140
3141 * config/arm/arm-protos.h (arm_set_return_address,
3142 thumb_set_return_address): Add prototypes.
3143 * config/arm/arm.h (ARM_FT_EXCEPTION_HANDLER): Remove.
3144 * config/arm/arm.c (arm_compute_func_type,
3145 use_return_insn, arm_compute_save_reg0_reg12_mask,
3146 arm_compute_save_reg_mask, arm_output_function_prologue,
3147 arm_output_epilogue): Replace ARM_FT_EXCEPTION_HANDLER with
3148 current_function_calls_eh_return.
3149 (thumb_exit, thumb_pushpop, thumb_unexpanded_epilogue): Replace
3150 old eh code.
3151 (arm_set_return_address, thumb_set_return_address): New functions.
3152 * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS, DWARF2_UNWIND_INFO,
3153 ARM_EH_STACKADJ_REGNUM, EH_RETURN_STACKADJ_RTX): Define.
3154 * config/arm/arm.md (VUNSPEC_EH_RETURN): Add.
3155 (epilogue): Use the stackadj register.
3156 (eh_return, arm_eh_return, thumb_eh_return): New pattern.
3157
45d78e7f
JJ
31582004-08-10 Jakub Jelinek <jakub@redhat.com>
3159
3160 PR target/3144
3161 * expr.c (move_by_pieces_ninsns): Add max_size argument.
3162 (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1 to it.
3163 (CLEAR_BY_PIECES_P): Pass STORE_MAX_PIECES + 1 to it.
3164 (STORE_BY_PIECES_P): Define similarly to CLEAR_BY_PIECES_P,
3165 but using MOVE_RATIO.
3166 (move_by_pieces): Pass max_size to move_by_pieces_ninsns.
3167 (can_store_by_pieces): Change max_size type to unsigned int.
3168 (store_by_pieces_1): Likewise. Pass max_size to
3169 move_by_pieces_ninsns.
3170 * config/s390/s390.h (STORE_BY_PIECES_P): Define.
3171 * config/sh/sh.c (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1
3172 to move_by_pieces_ninsns.
3173 (STORE_BY_PIECES_P): Define.
3174 * config/ns32k/ns32k.h (STORE_BY_PIECES_P): Pass STORE_MAX_PIECES + 1
3175 to move_by_pieces_ninsns.
3176 * doc/tm.texi (STORE_BY_PIECES_P): Document changed default.
3177
3178 * config/i386/i386.h (CLEAR_RATIO): Define.
3179
25f3e06c
PB
31802004-08-09 Paolo Bonzini <bonzini@gnu.org>
3181
3182 * expr.c (expand_expr_real_1): Add back code that was not dead.
3183
6a3203c8
AP
31842004-08-09 Andrew Pinski <apinski@apple.com>
3185
3186 * c-common.c (c_common_get_alias_set): Set the aliasing set of the type
3187 which is found to be compatible before returning the aliasing set.
3188
b9bfca81
DJ
31892004-08-09 Daniel Jacobowitz <dan@debian.org>
3190
3191 * ggc-zone.c (struct alloc_zone): Add statistics counters.
3192 (always_collect): New flag.
3193 (ggc_alloc_zone_1): Update statistics support. Don't include
3194 overhead in allocated counter.
3195 (sweep_pages): Update allocated counter for large pages. Don'y
3196 include overhead.
3197 (ggc_collect_1): Always collect.
3198 (ggc_collect): Honor always_collect flag. Sum all zones to decide
3199 whether to collect.
3200 (SCALE, LABEL): New macros.
3201 (ggc_print_statistics): Add statistics support.
3202
fdded401
RS
32032004-08-09 Roger Sayle <roger@eyesopen.com>
3204
3205 * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap): Change type to bool.
3206 (init_expmed): Fix potential overrun problem with "all.reg".
3207 (expand_sdiv2_pow2): Add an alternate implementation for signed
3208 division, if the target provides a suitable conditional move insn.
3209
9d8646d7
PB
32102004-08-09 Paul Brook <paul@codesourcery.com>
3211 Richard Henderson <rth@redhat.com>
3212
3213 * unwind-dw2.c (uw_install_context_1): Update target saved stack
3214 pointer.
3215
d37e6b50
GK
32162004-08-09 Geoffrey Keating <geoffk@apple.com>
3217
3218 * ggc-common.c (ggc_rlimit_bound): Don't check RSS limit.
3219 Check DATA limit only if there's no AS limit. Ignore insanely
3220 low DATA limits.
3221 (ggc_min_heapsize_heuristic): Don't divide AS or RSS limits by 8,
3222 but take care that the AS limit isn't overrun.
3223 * doc/invoke.texi: Update documentation of min-heapsize parameter.
3224
56b043c8
JL
32252004-08-09 Jeff Law <law@redhat.com>
3226
3227 * Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c
3228 (tree-ssa-threadupdate.o): Add dependencies.
3229 * tree-ssa-threadupdate.c: New file.
3230 * tree-flow.h (incoming_edge_threaded): New flag in block annotation.
3231 (rewrite_vars_out_of_ssa): Remove prototype.
3232 (cleanup_tree_cfg): Returns a bool.
3233 * tree.h (thread_through_all_blocks): Prototype.
3234 * tree-outof-ssa.c (SSANORM_*): Move into here.
3235 (remove_ssa_form): Now static.
3236 (rewrite_vars_out_of_ssa): Kill.
3237 * tree-ssa-live.c (register_ssa_partitions_for_vars): Kill.
3238 * tree-ssa-live.h (SSANORM_*): Moved into tree-outof-ssa.c.
3239 (remove_ssa_form, register_partitions_for_vars): Kill declarations.
3240 * tree-cfg.c (cleanup_tree_cfg): Return a value indicating if
3241 anything was changed.
3242 * tree-phinodes.c (add_phi_arg): Get the block for the PHI
3243 from the PHI's annotation rather than the edge associated with
3244 the new argument.
3245 * tree-ssa-dom.c (redirection_edges): Kill.
3246 (redirect_edges_and_update_ssa_graph): Kill.
3247 (tree_ssa_dominator_optimize): Do not reset forwardable flag
3248 for blocks anymore. Do not initialize redirection_edges.
3249 Call thread_through_all_blocks. Simplify code for cleanup
3250 of the CFG and iterating. No longer call cleanup_tree_cfg
3251 outside the iteration loop.
3252 (thread_across_edge): No longer mess with forwardable blocks.
3253
9b305d55
ZW
32542004-08-09 Zack Weinberg <zack@codesourcery.com>
3255
3256 * explow.c (memory_address): Use memory_address_p.
3257 * recog.c (general_operand): Likewise.
3258 * regrename.c: No need to define REG_OK_STRICT.
3259
27fb79ad
SB
32602004-08-09 Steven Bosscher <stevenb@suse.de>
3261
3262 * timevar.def (TV_CPROP1, TV_CPROP2, TV_PRE, TV_HOIST, TV_LSM):
3263 New timers.
3264 * gcse.c: Include timevar.h.
3265 (const_prop_count, copy_prop_count): Rename to global_const_prop_count
3266 and global_copy_prop_count.
3267 (local_const_prop_count, local_copy_prop_count): New static globals.
3268 (gcse_main): Set the right timevar for each pass.
3269 (cprop_jump): Increment global_const_prop_count when a constant is
3270 propagated. Add "GLOBAL" to dump output.
3271 (cprop_insn): Increment global_const_prop_count when a constant is
3272 propagated, or global_copy_prop_count when a copy is propagated.
3273 (do_local_cprop): Likewise for local_const_prop_count and
3274 local_copy_prop_count.
3275 (one_cprop_pass): Initialize const/cprop counters to zero.
3276 Print out results of local and global const/cprop separately.
3277 (bypass_block): Break over-length line.
702d4b73
SB
3278 * Makefile.in (gcse.o): Add TIMEVAR_H dependency. Fix dependencies
3279 for bb-reorder.o and tracer.o.
27fb79ad 3280
7efcb746
PB
32812004-08-09 Paolo Bonzini <bonzini@gnu.org>
3282
3283 * Makefile.in (GTFILES): Remove stmt.c
3284 (stmt.o): Do not depend on gt-stmt.h.
3285 * emit-rtl.c (emit_line_note): Do not call
3286 set_file_and_line_for_stmt.
3287 * expr.c (expand_expr_real_1) <SWITCH_EXPR>: Let expand_case
3288 do everything.
3289 * function.c (free_after_parsing): Do not free STMT field.
3290 (allocate_struct_function): Do not call init_stmt_for_function.
3291 (assign_stack_temp_for_type): Do not accept values of keep
3292 other than 0 or 1.
3293 (init_temp_slots): Do not initialize removed variables.
3294 * function.h (struct function): Remove STMT, X_TARGET_TEMP_SLOT_LEVEL
3295 and X_VAR_TEMP_SLOT_LEVEL fields.
3296 * rtl.h (set_file_and_line_for_stmt): Remove.
3297 * stmt.c (struct nesting, ALLOC_NESTING, POPSTACK,
3298 struct stmt_status, cond_stack, case_stack, nesting_stack,
3299 nesting_depth, emit_locus, set_file_and_line_for_stmt,
3300 same_case_target_p, init_stmt_for_function, emit_nop,
3301 expand_start_cond, expand_start_elseif, expand_start_else,
3302 expand_elseif, expand_end_cond): Remove.
3303 (preserve_subexpressions_p): Remove references to CFUN->STMT.
3304 (expand_start_case, expand_end_case_type): Remove, merge into...
3305 (expand_case): ... this one, including other bits from
3306 expand_expr_real_1. Inline same_case_target_p. Turn members
3307 of CASE_STACK into local variables.
3308 (emit_case_bit_tests): Inline same_case_target_p.
3309 (add_case_node): Add HEAD argument, return new head of the list,
3310 do not handle default label here.
3311 * tree.h (expand_start_cond, expand_end_cond, expand_start_else,
3312 expand_start_elseif, current_nesting_level, expand_start_case,
3313 expand_end_case_type, expand_end_case, add_case_node,
3314 init_stmt_for_function, expand_elseif): Remove prototypes.
3315 (expand_case): Add prototype.
3316
c4d70ce3
PB
33172004-08-09 Paolo Bonzini <bonzini@gnu.org>
3318
3319 * expr.c (expand_expr_real_1): Use optab_for_tree_code.
3320
33212004-08-09 Paolo Bonzini <bonzini@gnu.org>
e5bacf32
PB
3322
3323 * expr.c (var_rtx): Remove.
3324 (expand_expr_real_1) <LOOP_EXPR, EXIT_EXPR,
3325 LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, TRUTH_ANDIF_EXPR,
3326 TRUTH_ORIF_EXPR, COMPOUND_EXPR, CONJ_EXPR, INIT_EXPR>:
3327 Abort.
3328 (expand_expr_real_1) <COND_EXPR>: Remove most special cases.
3329 * optabs.c (emit_clr_insn, emit_0_to_1_insn): Remove.
3330 * optabs.h (emit_clr_insn, emit_0_to_1_insn): Remove.
3331
d72372e4
MH
33322004-08-08 Mostafa Hagog <mustafa@il.ibm.com>
3333 Ayal Zaks <zaks@il.ibm.com>
3334
3335 * common.opt (freschedule-modulo-scheduled-loops): New flag.
3336 * final.c (final_scan_insn): Handle NOTE_DISABLE_SCHED_OF_BLOCK.
3337 * modulo-sched.c (sms_schedule): Emit a note to disable scheduling
3338 when -freschedule-modulo-scheduled-loops flag is not specified.
3339 (sms_schedule_by_order, ps_insn_advance_column, add_node_to_ps,
3340 add_node_to_ps, ps_has_conflicts, ps_add_node_check_conflicts):
3341 More accurate placing of insn in row of partial schedule.
3342 (ps_insn_find_column): New function.
3343 * rtl.h (NOTE_DISABLE_SCHED_OF_BLOCK): New note.
3344 * sched-rgn.c (sched_is_disabled_for_current_region_p): New.
3345 (schedule_region): Use sched_is_disabled_for_current_region_p.
3346 * docs/invoke.texi: Document -freschedule-modulo-scheduled-loops.
3347
0737fbff
L
33482004-08-07 H.J. Lu <hongjiu.lu@intel.com>
3349
3350 * config/i386/i386.c (ix86_expand_clrmem): Revert the last
3351 change.
3352
11c4576f
L
33532004-08-07 H.J. Lu <hongjiu.lu@intel.com>
3354
3355 * config/i386/i386.c (ix86_expand_clrmem): Properly call
3356 gen_strset for 64bit target.
3357
34def210
OH
33582004-08-07 Olivier Hainque <hainque@act-europe.fr>
3359
3360 * config/vxworks.h (HANDLE_SYSV_PRAGMA): Remove definition.
3361
5201931e
JM
33622004-08-07 Jason Merrill <jason@redhat.com>
3363
cc77ae10
JM
3364 Make return in memory explicit.
3365 * function.c (aggregate_value_p): Check DECL_BY_REFERENCE.
3366 (assign_parm_find_data_types): Remove code for old front end
3367 invisible reference handling.
3368 (assign_parms): Handle DECL_BY_REFERENCE on the RESULT_DECL.
3369 (expand_function_end): Likewise.
3370 * gimplify.c (gimplify_return_expr): Handle a dereferenced
3371 RESULT_DECL.
3372 * tree-inline.c (copy_body_r): Don't bother looking for &* anymore.
3373 (declare_return_variable): Handle DECL_BY_REFERENCE.
3374 * cp/cp-gimplify.c (is_invisiref_parm): Also handle RESULT_DECL.
3375 (cp_genericize_r): Use convert_from_reference.
3376 Don't dereference a RESULT_DECL directly inside a RETURN_EXPR.
3377 (cp_genericize): Handle the RESULT_DECL. Unset TREE_ADDRESSABLE.
3378
5201931e
JM
3379 * c-common.c (c_warn_unused_result): Check TREE_USED before
3380 warning about a CALL_EXPR with an unused value.
3381
2ed9e527
MM
33822004-08-06 Mark Mitchell <mark@codesourcery.com>
3383
3384 * config/arm/symbian.h (CC1_SPEC): Avoid passing duplicate options
3385 to the compiler. Use -fshort-wchar by default.
3386
12183e0f
PH
33872004-08-06 Pat Haugen <pthaugen@us.ibm.com>
3388
3389 * params.def (PARAM_MIN_CROSSJUMP_INSNS): New.
3390 * cfgcleanup.c (try_crossjump_to_edge): Add minimum insn match
3391 threshhold.
3392 * doc/invoke.texi (param): Document min-crossjump-insns.
3393
eaac4679
RS
33942004-08-06 Richard Sandiford <rsandifo@redhat.com>
3395
3396 PR c/13282
3397 * c.opt (Wmissing-field-initializers): New option.
3398 * c-opts.c (c_common_post_options): Make -Wextra turn it on by default.
3399 * c-typeck.c (pop_init_level): Guard the missing field warning with
3400 warn_missing_field_initializers rather than extra_warnings.
3401 * doc/invoke.texi (-Wmissing-field-initializers): Document, moving
3402 some of the explanation from...
3403 (-Wextra): ...here. Say that the missing field warning can be
3404 seperately controlled by -Wmissing-field-initializers.
3405
caad9f81
PB
34062004-08-06 Paolo Bonzini <bonzini@gnu.org>
3407
3408 * expr.c (expand_expr_real_1) <ENTRY_VALUE_EXPR>: Remove.
3409 * tree-inline.c (estimate_num_insns_1) <ENTRY_VALUE_EXPR>: Remove.
3410 * tree-pretty-print.c (dump_generic_node) <ENTRY_VALUE_EXPR>: Remove.
3411 * tree.def (ENTRY_VALUE_EXPR): Remove.
3412
6b32b628
JJ
34132004-08-06 Jakub Jelinek <jakub@redhat.com>
3414
3415 * config/i386/i386.c (ix86_expand_clrmem): Move gen_cld down to
3416 the places where it is actually needed. Don't use repz; stosb
3417 for -Os with sufficiently small constant sizes.
3418 For sufficiently small repz; stos{l,q} repeat counts use a sequence
3419 of stos{l,q} instructions instead.
3420
6797f908
ZD
34212004-08-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3422
3423 PR tree-optimization/16807
3424 * loop-iv.c (dump_iv_info): Dump invariants correctly.
3425 (iv_subreg, iv_extend): Express value of invariant purely in
3426 base field.
3427
866cf037
MM
34282004-08-06 Mark Mitchell <mark@codesourcery.com>
3429
3430 * config/arm/symbian.h (CC1_SPEC): Add -fno-short-enums.
3431 (CC1PLUS_SPEC): Define it to be the same as CC1_SPEC.
3432
9652c531 34332004-08-06 Roman Zippel <zippel@linux-m68k.org>
9b305d55 3434
27fb79ad
SB
3435 * config/m68k/m68k.c (post_inc_operand,pre_dec_operand): New.
3436 * config/m68k/m68k.h (PREDICATE_CODES): add post_inc_operand,
3437 pre_dec_operand.
3438 * config/m68k/m68k.md (zero_extend*2): delay the splitting of the
3439 pattern until reload is finished to allow better code generation
3440 and split them completely into separate instrunctions.
3441 (*andsi3_split): New pattern.
9652c531 3442
b2ca3702
MM
34432004-08-05 Mark Mitchell <mark@codesourcery.com>
3444
3445 * tree.c (handle_dll_attribute): Move here from i383/winnt.c.
3446 Replace use of DECL_INLINE with DECL_DECLARED_INLINE_P. Set
3447 DECL_VISIBLITY. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
3448 * tree.h (handle_dll_attribute): Declare. Test
3449 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
3450 * c-common.h (c_determine_visibility): Declare.
3451 * c-common.c (c_determine_visibility): New function.
3452 * c-decl.c (finish_decl): Use it.
3453 (finish_function): Likewise.
3454 * defaults.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define it to
3455 zero, by default. Use #if, not #ifdef, to test it.
3456 * config/arm/arm.c (arm_attribute_table): Use
3457 handle_dll_attribute. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with
3458 #if.
3459 * config/arm/pe.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define to 1.
3460 * config/i386/cygming.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
3461 to 1.
3462 * config/i386/i386-protos.h (ix86_handle_dll_attribute): Remove.
3463 * config/i386/i386.c (ix86_attribute_table): Use
3464 handle_dll_attribute for dllimport/dllexport. Test
3465 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
3466 * config/i386/winnt.c (ix86_handle_dll_attribute): Remove.
3467 * config/mcore/mcore.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
3468 it to 1.
3469 * config/mcore/mcore.c (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Test it
3470 with #if.
3471 * config/sh/symbian-pre.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
3472 it to 1.
3473 * doc/extend.texi (dllexport): Clarify and correct documentation.
3474 (dllimport): Likewise.
3475 * doc/tm.texi (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Mention
3476 handle_dll_attribute.
9b305d55 3477
c913f08a
ZD
34782004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3479
3480 * tree-ssa-loop-manip.c: New file.
3481 * Makefile.in (tree-ssa-loop-manip.o): Add.
3482 * tree-flow.h (rewrite_into_loop_closed_ssa, verify_loop_closed_ssa):
3483 Declare.
3484 * tree-ssa-loop.c (tree_loop_optimizer_init): Create loop closed ssa
3485 form.
3486 (tree_ssa_loop_done): Verify loop closed ssa form.
3487 * tree-ssa-loop-im.c (move_computations): Update loop closed ssa form.
3488
d4482715
JDA
34892004-08-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3490
3491 * pa.c (pa_asm_output_aligned_bss, pa_asm_output_aligned_common,
3492 pa_asm_output_aligned_local): New functions.
3493 * pa-protos.h: Add prototypes for pa_asm_output_aligned_bss,
3494 pa_asm_output_aligned_common and pa_asm_output_aligned_local.
3495 * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Use
3496 pa_asm_output_aligned_common.
3497 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
3498 * pa.h (ASM_OUTPUT_ALIGNED_BSS): New macro.
3499 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
3500 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
3501 * pa64-hpux.h (MAX_OFILE_ALIGNMENT): New macro.
3502 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
3503 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
3504 * som.h (MAX_OFILE_ALIGNMENT): Provide maximum alignment of global
3505 common data.
3506
21149a79
AP
35072004-08-05 Andrew Pinski <apinski@apple.com>
3508
3509 * objc/objc-act.c (build_objc_string_object): Mark the address
3510 expression as constant.
3511
d5861a7a
DE
35122004-08-05 David Edelsohn <edelsohn@gnu.org>
3513
3514 * config/rs6000/rs6000.c (rs6000_rtx_costs): Fix mask_operand
3515 and mask64_operand thinkos. Handle ZERO_EXTRACT. Handle
3516 SIGN_EXTEND / ZERO_EXTEND of MEM. Handle rlwinm patterns.
3517
0a2b72a6
JM
35182004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
3519
3520 * config/linux.h, config/i386/linux.h, config/sparc/linux.h:
3521 Remove definitions conditioned on USE_GNULIBC_1 or conditioned
3522 out, and associated obsolete comments.
3523
ca7a3bd7
NS
35242004-08-05 Nathan Sidwell <nathan@codesourcery.com>
3525
3526 * tree.h (force_fit_type): Return a tree, take three flags.
3527 * fold-const.c (force_fit_type): Set TREE_OVERFLOW and
3528 TREE_CONSTANT_OVERFLOW here.
3529 (int_const_binop, const_binop): Adjust.
3530 (size_int_type): Do sign extension here.
3531 (fold_convert_const, optimize_bit_field_compare,
3532 decode_field_reference, all_ones_mask_p, fold_div_compare, fold,
3533 fold_negate_const, fold_abs_const, fold_not_const): Adjust.
3534 * tree.c (size_in_bytes, int_fits_type_p): Adjust.
3535
d36837f4
ZD
35362004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3537
3538 PR tree-optimization/16864
3539 * tree-tailcall.c (eliminate_tail_call): Do not create phi nodes
3540 for ssa names without default_def.
3541
ea5f7a19
RS
35422004-08-05 Richard Sandiford <rsandifo@redhat.com>
3543
3544 * config/i386/i386.c (ix86_expand_prologue): If the function uses a
3545 frame pointer, restore eax with an ebp-relative address.
3546
0e6df31e
GK
35472004-08-04 Geoffrey Keating <geoffk@apple.com>
3548
3549 PR 14516
3550 * c-common.c (c_expand_decl): Don't special-case static VAR_DECLs.
3551 * c-common.h (make_rtl_for_local_static): Delete.
3552 * c-decl.c (shadow_tag_warned): Clean up comment.
3553 (finish_decl): Clean up spacing. Use set_user_assembler_name when
3554 appropriate. Don't pass asmspec to rest_of_decl_compilation.
3555 * c-semantics.c (make_rtl_for_local_static): Delete.
3556 * expr.c (init_block_move_fn): Use set_user_assembler_name.
3557 (init_block_clear_fn): Likewise.
3558 * passes.c (rest_of_decl_compilation): Remove asmspec parameter,
3559 expect it to be in DECL_ASSEMBLER_NAME. Update callers in many files.
3560 * toplev.h (rest_of_decl_compilation): Remove asmspec parameter.
3561 * tree.h (make_decl_rtl): Remove second parameter.
3562 (set_user_assembler_name): New.
3563 * varasm.c (set_user_assembler_name): New.
3564 (make_decl_rtl): Remove second parameter. Update callers in many
3565 files.
3566
4f587cb0
AN
35672004-08-05 Adam Nemet <anemet@lnxw.com>
3568
3569 * config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0.
3570 (case rs6000-*-lynxos*): Rename it to powerpc-*-lynxos*. Update
3571 to LynxOS 4.0.
3572 * gthr-lynx.h: New file.
3573 * config/lynx-ng.h: Remove file.
3574 * config/lynx.h: Update to LynxOS 4.0.
3575 * config/t-lynx: New file.
3576 * config/i386/lynx-ng.h: Remove file.
3577 * config/i386/lynx.h: Update to LynxOS 4.0.
3578 * config/rs6000/lynxbase.h: Remove file.
3579 * config/rs6000/lynx.h: Update to LynxOS 4.0.
3580 * config/rs6000/t-lynx: New file.
3581 * doc/install.texi (Options specification): Remove reference to
3582 LynxOS from systems where --with-gnu-as makes a difference.
3583
85291069
JM
35842004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
3585
3586 * c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and
3587 __UINTMAX_TYPE__.
3588 * c-cppbuiltin.c (builtin_define_stdint_macros): New. Define
3589 __INTMAX_MAX__.
3590 (c_cpp_builtins): Call it.
3591 * doc/cpp.texi: Update.
3592
30a555d9
DE
35932004-08-04 David Edelsohn <edelsohn@gnu.org>
3594
3595 * config/rs6000/rs6000.c (rs6000_rtx_costs): LABEL_REFs are zero
3596 cost.
3597
878f99d2
JH
35982004-08-04 Jan Hubicka <jh@suse.cz>
3599
3600 * basic-block.h (profile_staus): New global variable.
3601 * cfg.c (profile_status): Declare.
3602 (check_bb_profile): Break out from ....; use profile_status
3603 (dump_flow_info): ... here.
3604 * cfgbuild.c (find_basic_blocks): Set profile_status.
3605 * cfgexpand.c (tree_expand_cfg): Likewise.
3606 * predict.c (estimate_probability): Likewise.
3607 * profile.c (branch_prob): Likewise.
3608 * tree-cfg.c (build_tree_cfg): Likewise.
3609 (dump_function_to_file): Use check_bb_profile.
3610 * tree-pretty-print (dump_bb_header): Likewise.
3611 * tree-profile.c (do_tree_profiling): Cleanup.
3612
7e7ec48e
ZW
36132004-08-04 Zack Weinberg <zack@codesourcery.com>
3614
3615 * Makefile.in (RTL_BASE_H, RTL_H): Correct.
3616 (BUILD_RTL): Remove $(BUILD_PREFIX) from ggc-none.o.
3617 (genobjs): Add errors.o, ggc-none.o, and min-insn-modes.o.
3618 (read-rtl.o, gensupport.o, genconfig.o, genflags.o, gencodes.o)
3619 (genconstants.o, genemit.o, genopinit.o, genrecog.o, genextract.o)
3620 (genpeep.o, genattr.o, genattrtab.o, genautomata.o, genoutput.o)
3621 (genconditions.o): Depend on $(RTL_BASE_H) not $(RTL_H).
3622 (ggc-none.o, errors.o): Move rule to generators section;
3623 correct dependencies.
3624 (min-insn-modes.o): Move rule to generators section; remove
3625 unnecessary explicit command; correct dependencies.
3626 (print-rtl.o, print-rtl1.o): Correct dependencies.
3627 ($(BUILD_PREFIX_1)errors.o. $(BUILD_PREFIX_1)ggc-none.o): Delete rule.
3628 (mostlyclean): Update.
3629
3630 * errors.c: Include bconfig.h not config.h. Correct comment.
3631 * gengtype.c, genpreds.c: Don't define NO_GENRTL_H.
3632 * ggc-none.c: Include bconfig.h; not config.h or tm.h.
3633 * print-rtl.c: Don't include tm_p.h.
3634
3635 * rtl.h: Move forward-decl of struct function down where it's
3636 needed. Include genrtl.h #ifndef GENERATOR_FILE, not
3637 #ifndef NO_GENRTL_H. Remove unnecessary #ifdef BUFSIZ statements.
3638
b0382c67
ZD
36392004-08-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3640 Jeff Law <law@redhat.com>
3641
3642 * tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions.
3643 * tree-flow.h (rewrite_ssa_into_ssa): Declaration changed.
3644 * tree-into-ssa.c (rewrite_ssa_into_ssa): Use new interface to
3645 manipulate the duplicated ssa names.
3646 * tree-ssanames.c (ssa_names_to_rewrite): New variable.
3647 (marked_for_rewrite_p, any_marked_for_rewrite_p, mark_for_rewrite,
3648 unmark_all_for_rewrite, marked_ssa_names, release_ssa_name_force):
3649 New functions.
3650 (release_ssa_name): Do not release ssa names that may have multiple
3651 definitions.
3652 * tree.h (release_ssa_name_force, mark_for_rewrite,
3653 unmark_all_for_rewrite, marked_for_rewrite_p, any_marked_for_rewrite_p,
3654 marked_ssa_names): Declare.
3655 * tree-ssa-loop-ch.c (mark_defs_for_rewrite): Remove.
3656 (duplicate_blocks): Remove call to mark_defs_for_rewrite.
3657 Update call to rewrite_ssa_into_ssa.
3658
63c5b495
MM
36592004-08-04 Mark Mitchell <mark@codesourcery.com>
3660
3661 * defaults.h (TARGET_DECLSPEC): New macro.
3662 * c-cppbuiltin.c (c_cpp_builtins): Handle TARGET_DECLSPEC.
3663 * config/arm/pe.h (SUBTARGET_CPP_SPEC): Remove __declspec support.
b2ca3702 3664 * config/arm/symbian.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
63c5b495
MM
3665 * config/i386/beof-elf.h (TARGET_OS_CPP_BUILTINS): Remove
3666 __declspec support.
3667 (TARGET_DECLSPEC): Define.
3668 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Remove
3669 __declspec support.
3670 * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS): Remove
3671 __declspec support.
3672 (TARGET_DECLSPEC): Define.
3673 * config/mcore/mcore.h (TARGET_CPU_CPP_BUILTINS): Remove
3674 __declspec support.
3675 * config/sh/symbian-pre.h (SUBTARGET_CPP_SPEC): Remove __declspec
3676 support.
3677 * doc/tm.texi (TARGET_DECLSPEC): Document.
3678
3679 * doc/extend.texi: Fix typo in comment.
3680
44d10c10
PB
36812004-08-04 Paul Brook <paul@codesourcery.com>
3682
3683 * target-def.h (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
3684 (TARGET_CXX): Use it.
3685 * target.h (struct gcc_target): Add cdtor_returns_this.
3686 * config/arm/arm.c (arm_cxx_cdtor_returns_this): New function.
3687 (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
3688 * doc/tm.texi: Document TARGET_CXX_CDTOR_RETURNS_THIS.
3689
5e9754af
NS
36902004-08-03 Nathan Sidwell <nathan@codesourcery.com>
3691
3692 * c-lex.c (narrowest_unsigned_type, narrowest_signed_type): Take
3693 low/high pair. Do range checking directly.
3694 (interpret_integer): Adjust.
3695
2acc29bd
NC
36962004-08-04 Nick Clifton <nickc@redhat.com>
3697
3698 * config/sh/sh.h (TARGET_SWITCHES): Add no-renesas to select the
3699 GCC ABI.
3700 * doc/invoke.texi: Document this new switch and also the -mrenesas
3701 switch.
3702
2496942a
NS
37032004-08-04 Nathan Sidwell <nathan@codesourcery.com>
3704
3705 * cfglayout.c (insn_locators_initialize): Update the current
3706 location before initializing a location.
3707
7e2e8179
ZW
37082004-08-03 Zack Weinberg <zack@codesourcery.com>
3709
403f8503
ZW
3710 * dbxout.c (dbxout_function_decl): Always call dbxout_function_end.
3711 (dbxout_function_end): Return after emitting the "Lscope" symbol
3712 under the same conditions that this function formerly wasn't called.
3713 Add explanatory comments.
3714
bcc7f708 3715 PR 14860
ca043393
ZW
3716 * c-decl.c (record_builtin_type): Call debug_hooks->type_decl
3717 on the new decl.
3718
bcc7f708 3719 PR 13956
7e2e8179
ZW
3720 * dbxout.c (dbx_output_lbrac, dbx_output_rbrac): New
3721 functions, broken out of dbxout_block.
3722 (dbxout_block): The block at depth 0 should get LBRAC/RBRAC
3723 stabs too, if it contains symbols. Use the begin_label and
3724 the Lscope label (emitted by dbxout_function_end) for the
3725 range of this block.
3726
5d75ba94
NN
37272004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
3728
3729 * doc/install.texi: Update autoconf version requirements.
3730
2e4e72b1
ZW
37312004-08-03 Zack Weinberg <zack@codesourcery.com>
3732
3733 * defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition.
3734 * recog.c (general_operand, immediate_operand, nonmemory_operand)
3735 (asm_operand_ok): Remove #ifdefs on LEGITIMATE_PICOPERAND_P.
3736 * regclass.c (record_reg_classes): Likewise.
3737 * reload.c (find_reloads): Likewise.
3738 * reload1.c (reload): Likewise.
3739
f9942f4e
ZW
37402004-08-03 Zack Weinberg <zack@codesourcery.com>
3741
3742 * gensupport.c (init_md_reader_args_cb): Renamed from
3743 init_md_reader_args. Add third option, callback function for
3744 parsing program-specific options. Add diagnosis of incorrect
3745 number of input files.
3746 (init_md_reader): Fold into init_md_reader_args_cb.
3747 (init_md_reader_args): Now a thin wrapper around
3748 init_md_reader_args_cb.
3749 * gensupport.h: Update prototypes.
3750
3751 * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
3752 * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
3753 * genrecog.c: No need to diagnose lack of an input file;
3754 init_md_reader_args will handle it.
3755 * genconditions.c: Likewise, and use init_md_reader_args.
3756 * genconstants.c: Likewise, and no need to call read_md_rtx.
3757
9cbe78fb
JM
37582004-08-03 Joseph S. Myers <jsm@polyomino.org.uk>
3759
3760 * c-decl.c (implicitly_declare): Diagnose incompatible implicit
3761 declarations.
3762
3e558e80
MS
37632004-08-03 Mike Stump <mrs@apple.com>
3764
3765 * config/darwin-c.c: Don't search in "/Local/Library/Frameworks"
3766 for frameworks.
3767 * doc/invoke.texi (Darwin Options): Update to reflect above.
3768
a0fac73d
RS
37692004-08-03 Roger Sayle <roger@eyesopen.com>
3770
3771 PR middle-end/16790
3772 * fold-const.c (extract_muldiv_1) <NOP_EXPR>: Disallow local
3773 truncations, not just global truncations.
3774
cddbddb7
AP
37752004-08-03 Andrew Pinski <apinski@apple.com>
3776
3777 PR bootstrap/16865
3778 * loop-iv.c (simplify_using_assignment): Initialize lhs.
3779
bebf829d
PB
37802004-08-03 Paul Brook <paul@codesourcery.com>
3781
3782 * gcc/doc/install.texi: Document MPFR requirement.
3783
cddbddb7 37842004-08-03 Maciej W. Rozycki <macro@linux-mips.org>
3b0727a0 3785
f9942f4e
ZW
3786 * aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
3787 and mmap() explicitly instead of relying on preset autoconf cache
3b0727a0
MR
3788 variables.
3789 * configure: Regenerate.
3790
f6bc51cb
L
37912004-08-03 H.J. Lu <hongjiu.lu@intel.com>
3792
3793 PR target/16570
3794 * config.gcc (i[34567]86-*-* | x86_64-*-*): Add i386/t-gmm_malloc
3795 to tmake_file.
3796 (i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1): Likewise.
3797 (i[34567]86-*-linux* | x86_64-*-linux*): Add i386/t-pmm_malloc
3798 to tmake_file.
3799
3800 * config/i386/t-gmm_malloc: New file.
3801 * config/i386/t-pmm_malloc: Likewise.
f9942f4e 3802
f6bc51cb
L
3803 * config/i386/xmmintrin.h: Include <mm_malloc.h>.
3804
38052004-08-03 H.J. Lu <hongjiu.lu@intel.com>
d46cd2be 3806