]> gcc.gnu.org Git - gcc.git/blame - gcc/ChangeLog
re PR libgcj/17290 (Wrong Java dependencies are generated)
[gcc.git] / gcc / ChangeLog
CommitLineData
40923b20
DP
12004-09-03 Devang Patel <dpatel@apple.com>
2
3 * Makefile.in (OBJS-common): Add tree-if-conv.o
4 (tree-if-conv.o): New rule.
5 * cfgloop.c (flow_loop_exit_edges_find): Set EDGE_LOOP_EXIT flag.
6 (get_loop_body_in_bfs_order): New.
7 * cfgloop.h (get_loop_body_in_bfs_order): New.
8 * tree-flow.h (enum move_pos): Move here from ..
9 * tree-ssa-loop-im.c (enum move_pos): here.
10 (movement_possibility): Make externally visible.
11 * tree-optimize.c (init_tree_optimization_passes): New entry for
12 if conversion pass.
13 * tree-pass.h (pass_if_conversion): New.
14 * tree-ssa-operands.c (get_expr_operands): Handle COND_EXPR.
15 * tree-if-conv.c: New file.
16 * doc/passes.texi: Document tree if-conversion pass.
17 * doc/tree-ssa.texi: Same.
18
443728bb
L
192004-09-03 H.J. Lu <hongjiu.lu@intel.com>
20
21 PR target/14925:
22 Makefile.in (LIB2ADDEHSTATIC): New.
23 (LIB2ADDEHSHARED): New.
24 (LIBUNWIND): New.
25 (LIBUNWINDDEP): New.
26 (SHLIBUNWIND_LINK): New.
27 (SHLIBUNWIND_INSTALL): New.
28 (libgcc.mk): Pass LIB2ADDEHSTATIC, LIB2ADDEHSHARED, LIBUNWIND,
29 LIBUNWINDDEP, SHLIBUNWIND_LINK and SHLIBUNWIND_INSTALL.
30 (clean): Remove libunwind*
31 (stage1-start): Remove and copy stage1/libunwind*.
32 (stage2-start): Remove and copy stage2/libunwind*.
33 (stage3-start): Remove and copy stage3/libunwind*.
34 (stage4-start): Remove and copy stage4/libunwind*.
35 (stageprofile-start): Remove and copy stageprofile/libunwind*.
36 (stagefeedback-start): Remove and copy stagefeedback/libunwind*.
37
38 * config.gcc (ia64*-*-linux*): Always add t-libunwind to
39 tmake_file. Add t-libunwind-elf and ia64/t-glibc-libunwind to
40 tmake_file if --with-system-libunwind isn't used.
41
42 * config/ia64/t-glibc-libunwind: New file.
43 * config/t-libunwind-elf: Likewise.
44 * unwind-compat.c: Likewise.
45 * unwind-compat.h: Likewise.
46 * unwind-dw2-fde-compat.c: Likewise.
47
48 * config/ia64/t-glibc (LIB2ADDEH): Updated.
49 * config/ia64/t-hpux (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
50
51 * config/ia64/unwind-ia64.c: Include "unwind-compat.h". Define
52 aliases if needed.
53 * unwind-dw2-fde-glibc.c: Likewise.
54 * unwind-dw2.c: Likewise.
55
56 * config/t-libunwind (LIB2ADDEH): Updated.
57 (LIB2ADDEHSTATIC): New.
58 (T_CFLAGS): Add -DUSE_LIBUNWIND_EXCEPTIONS.
59 (TARGET_LIBGCC2_CFLAGS): Set to -DUSE_GAS_SYMVER.
60
61 * configure.ac: Change --enable-libunwind-exceptions to
62 --with-system-libunwind. Don't define USE_LIBUNWIND_EXCEPTIONS.
63 * configure: Regenerated.
64 * config.in: Updated.
65
66 * doc/install.texi (ia64-*-linux): Require libunwind 0.98 or
67 above and mention --with-system-libunwind.
68 (ia64-*-hpux*): Mention --enable-libunwind-exceptions is
69 removed in gcc 3.4.3 and later.
70
71 * gcc.c (init_spec): Add -lunwind to -lgcc_s if
72 USE_LIBUNWIND_EXCEPTIONS is defined.
73
74 * mklibgcc.in: Support libunwind.
75
d20bf446
L
762004-09-03 H.J. Lu <hongjiu.lu@intel.com>
77
78 * config/i386/i386.c (x86_branch_hints): Remove m_PENT4 and
79 m_NOCONA.
80
1f6d3a08
RH
812004-09-03 Richard Henderson <rth@redhat.com>
82
83 PR middle-end/9997
84 * cfgexpand.c (LOCAL_ALIGNMENT): Provide default.
85 (STACK_ALIGNMENT_NEEDED, FRAME_GROWS_DOWNWARD): Likewise.
86 (struct stack_var, EOC, stack_vars, stack_vars_alloc, stack_vars_num,
87 stack_vars_sorted, stack_vars_conflict, stack_vars_conflict_alloc,
88 frame_phase, get_decl_align_unit, add_stack_var, triangular_index,
89 resize_stack_vars_conflict, add_stack_var_conflict,
90 stack_var_conflict_p, add_alias_set_conflicts, stack_var_size_cmp,
91 union_stack_vars, partition_stack_vars, dump_stack_var_partition,
92 expand_one_stack_var_at, expand_stack_vars, expand_one_stack_var,
93 expand_one_static_var, expand_one_hard_reg_var,
94 expand_one_register_var, expand_one_error_var, defer_stack_allocation,
95 expand_one_var, expand_used_vars_for_block, clear_tree_used): New.
96 (expand_used_vars): Rewrite.
97 * Makefile.in (cfgexpand.o): Update dependencies.
98
80d8221e
JH
992004-09-04 Jan Hubicka <jh@suse.cz>
100
101 * cfg.c (free_edge): Use ggc_free.
102 (expunge_block): Use ggc_free.
103 * passes.c (rest_of_clean_state): Free after compilation.
104 * tree-ssa.c (delete_tree_ssa): Free annotations; call release_defs
105 * tree-ssanames.c (release_defs): Ignore non-SSA_NAME arguments.
106
bb1058e4
JW
1072004-09-03 James E Wilson <wilson@specifixinc.com>
108
109 * tree-ssa-alias.c (may_be_aliased): Move TREE_STATIC check after
110 DECL_EXTERNAL check.
111
ca83de6b
EB
1122004-09-03 Eric Botcazou <ebotcazou@libertysurf.fr>
113
114 * final.c (output_in_slot): New global variable.
115 (final_scan_insn): Add new state '2' to the 'nopeepholes' parameter.
116 Pass 2 as 'nopeepholes' to self for insns in a SEQUENCE. Set
117 'output_in_slot' before invoking output_asm_insn.
118 (output_asm_insn): Add a space after the tab if 'output_in_slot'
119 is set.
120 * config/sparc/sparc.c (output_return): Pass 2 as 'nopeepholes' to
121 final_scan_insn.
122 (output_sibcall): Likewise.
123
1e3e17d3
JH
1242004-09-03 Jan Hubicka <jh@suse.cz>
125
126 * tree-ssa-operands.c (fini_ssa_operands): ggc_free unused arrays.
127 * tree-ssanames (init_ssanames): Likewise.
128
c41e5f27
ZL
1292004-09-03 Ziemowit Laski <zlaski@apple.com>
130
131 * stub-objc.c (objc_is_id, objc_declare_alias, objc_declare_class,
132 objc_declare_protocols, objc_start_protocol,
133 objc_start_class_interface, objc_start_category_interface,
134 objc_continue_interface, objc_finish_interface,
135 objc_add_instance_variable, objc_set_visibility, objc_set_method_type,
136 objc_start_class_implementation, objc_start_category_implementation,
137 objc_continue_implementation, objc_finish_implementation,
138 objc_add_method_declaration, objc_start_method_definition,
139 objc_finish_method_definition, objc_build_keyword_decl,
140 objc_build_method_signature, objc_build_encode_expr,
141 objc_build_protocol_expr, objc_build_selector_expr,
142 objc_build_message_expr, objc_build_string_object,
143 objc_get_class_reference, objc_get_protocol_qualified_type,
144 objc_static_init_needed_p, objc_generate_static_init_call): New stubs.
145
b30d77c4
JW
1462004-09-03 James E Wilson <wilson@specifixinc.com>
147
148 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips3d.
149
150 * config/mips/generic.md (generic_frecip_fsqrt_step): New.
151 * config/mips/mips-ps-3d.md (mips_rsqrt1_<fmt>): Use frsqrt1 type.
152 (mips_rsqrt2_<fmt>): Use frsqrt2 type.
153 (mips_recip1_<fmt>): Use frdiv1 type.
154 (mips_recip2_<fmt>): Use frdiv2 type.
155 * config/mips/mips.md (type): Add frdiv1, frdiv2, frsqrt1, frsqrt2.
156 * config/mips/sb1.md (ir_sb1_fpu_2pipes, ir_sb1_fpu_1pipe): Add frdiv1
157 and frsqrt1.
158 (ir_sb1_fpu_step2_2pipes, ir_sb1_fpu_step2_1pipe): New.
159
87cda9d6
DJ
1602004-09-03 Daniel Jacobowitz <dan@debian.org>
161
162 * reload.c (find_reloads): Swap operand_loc pointers for
163 find_dummy_reload if we have swapped two operands.
164
f671762a
HPN
1652004-09-03 Hans-Peter Nilsson <hp@axis.com>
166
167 * config/cris/cris.h (ASM_OUTPUT_CASE_END): Use prev_nonnote_insn
168 to get the tablejump-insn before the jump-table label.
169
a45bcfb2
ZL
1702004-09-03 Ziemowit Laski <zlaski@apple.com>
171
172 * c-common.h (objc_is_id, objc_declare_alias, objc_declare_class,
173 objc_declare_protocols, objc_build_message_expr,
174 objc_finish_message_expr, objc_build_selector_expr,
175 objc_build_protocol_expr, objc_build_encode_expr,
176 objc_build_string_object, objc_get_protocol_qualified_type,
177 objc_get_class_reference, objc_get_class_ivars,
178 objc_start_class_interface, objc_start_category_interface,
179 objc_start_protocol, objc_continue_interface, objc_finish_interface,
180 objc_start_class_implementation, objc_start_category_implementation,
181 objc_continue_implementation, objc_finish_implementation,
182 objc_set_visibility, objc_set_method_type, objc_build_method_signature,
183 objc_add_method_declaration, objc_start_method_definition,
184 objc_finish_method_definition, objc_add_instance_variable,
185 objc_build_keyword_decl, objc_build_throw_stmt, objc_begin_try_stmt,
186 objc_finish_try_stmt, objc_begin_catch_clause,
187 objc_finish_catch_clause, objc_build_finally_clause,
188 objc_build_synchronized, objc_static_init_needed_p,
189 objc_generate_static_init_call): New prototypes.
190
9dec91d4
SE
1912004-09-03 Steve Ellcey <sje@cup.hp.com>
192
193 * config/ia64/ia64.c (ia64_function_arg): Use PARALLEL even if there
194 is only one reg.
195 (ia64_function_value): Ditto.
196
61fec9ff
JB
1972004-09-03 Jan Beulich <jbeulich@novell.com>
198
199 * config.gcc: Resurrect NetWare as a target. Handle special case of
200 Novell linker to be used (specified through --with-ld=) and threading
201 model of either Posix (default) or NKS.
202 * config/i386/i386.c (ix86_return_pops_args): Conditionalize popping
203 of incoming hidden argument on KEEP_AGGREGATE_RETURN_POINTER.
204 * config/i386/i386.h (KEEP_AGGREGATE_RETURN_POINTER): New.
205 * config/i386/netware.c, config/i386/netware.h: New.
206 * config/i386/nwld.c, config/i386/nwld.h: New.
207 * config/i386/netware-crt0.c: New.
208 * config/i386/netware-libgcc.c: New.
209 * config/i386/netware-libgcc.def: New.
210 * config/i386/netware-libgcc.exp: New.
211 * config/i386/t-netware, config/i386/t-nwld: New.
212 * gthr-nks.h: New.
213 * doc/install.texi: Document NKS threading model.
214
467cecf3
JB
2152004-09-03 Jan Beulich <jbeulich@novell.com>
216
217 PR c/7054
218 * defaults.h (TARGET_DEFAULT_PACK_STRUCT): Provide default.
219 * tree.h (initial_max_fld_align): Declare
220 * stor-layout.c (initial_max_fld_align): Define and initialize.
221 (maximum_field_alignment): Initialize to the same value.
222 * common.opt: Add -fpack-struct= variant of switch.
223 * opts.c: Handle -fpack-struct= variant of switch.
224 * c-pragma.c: Change #pragma pack() handling so that it becomes
225 compatible to other compilers: accept individual 'push' argument,
226 make final pop restore (command line) default, correct interaction
227 of push/pop and sole specification of a new alignment (so that the
228 sequence #pragma pack(push) - #pragma pack(<n>) becomes identical
229 to #pragma pack(push, <n>).
230 * doc/extend.texi: New node "Structure-Packing Pragmas" under
231 "Pragmas", describing #pragma pack.
232 * doc/invoke.texi: Document -fpack-struct=<n> variant of switch.
233 * doc/tm.texi: Adjust description for HANDLE_PRAGMA_PACK_PUSH_POP.
234 Document new TARGET_DEFAULT_PACK_STRUCT.
235
90300b8c
DP
2362004-09-03 Devang Patel <dpatel@apple.com>
237
238 * dwarf2out.c (gen_field_die). Equate decl number to die.
239
d6df6ae2
VM
2402004-09-03 Vladimir Makarov <vmakarov@redhat.com>
241
242 PR target/15832
243 * global.c (modify_reg_pav): New function.
244 (make_accurate_live_analysis): Call the new function. Move pavin
245 modification by earlyclobber set into the new function.
246
25c99d8f
AS
2472004-09-03 Andreas Schwab <schwab@suse.de>
248
249 * config/m68k/m68k.c (output_andsi3): Use -1 instead of
250 (HOST_WIDE_INT)0xffffffff since CONST_INT value are always sign
251 extended.
252
7f148c2f
JB
2532004-09-02 Jan Beulich <jbeulich@novell.com>
254
255 * Makefile.in (LIB2ADDEHDEP): Add unwind.h and unwind-pe.h.
256 * mklibgcc.in (libgcc_dep): New, covering general dependencies, but
257 not unwind code specific ones.
258 (libgcc2_c_dep): Replace general dependencies with use of libgcc_dep.
259 Remove unwind code specific dependencies.
260 (libgcov_c_dep): Replace general dependencies with use of libgcc_dep.
261 Remove gbl-ctors.h.
262 Add libgcc_dep to output generated for LIB2ADD, LIB2ADDEH, and
263 LIB2ADD_ST. Add LIB2ADDEHDEP to output generated for LIB2ADDEH.
264 * tsystem.h: Declare memcpy and memset when inhibit_libc.
265
9e42ab3e
RZ
2662004-09-02 Roman Zippel <zippel@linux-m68k.org>
267
268 * combine.c (try_combine): Delay modifying of insns which cannot
269 be easily undone.
270
1b08d87d
DB
2712004-09-02 Daniel Berlin <dberlin@dberlin.org>
272
273 * gcc/common.opt: Rename ivcanon to tree-loop-ivcanon, tree-lim to
274 tree-loop-im.
275 * gcc/tree-ssa-loop.c: Ditto
276 * gcc/tree-ssa-loop-ivcanon.c: Ditto
277 * gcc/doc/invoke.texi: Ditto.
278
d4e43dff
ZL
2792004-09-02 Ziemowit Laski <zlaski@apple.com>
280
281 * c-decl.c (store_parm_decls_newstyle): Make static.
282 (store_parm_decls_from): New function.
283 * c-tree.h (store_parm_decls_newstyle): Remove prototype.
284 (store_parm_decls_from): New prototype.
285
cd7d9ca4
DE
2862004-09-02 David Edelsohn <edelsohn@gnu.org>
287
288 * config/rs6000/rs6000.c (expand_block_move): Use SImode and
289 HImode with STRICT_ALIGNMENT.
290
40a1c5cb
MM
2912004-09-02 Mark Mitchell <mark@codesourcery.com>
292
293 * config/arm/bpabi.h (TARGET_BPABI_CPP_BUILTINS): Define.
294 (TARGET_OS_CPP_BUILTINS): Likewise.
295 * config/arm/symbian.h (TARGET_OS_CPP_BUILTINS): Include
296 TARGET_BPABI_CPP_BUILTINS.
297
b54567e2
RZ
2982004-09-02 Roman Zippel <zippel@linux-m68k.org>
299
300 * combine.c (distribute_notes): Don't add REG_LABEL to jump insn.
301
5906d013
EC
3022004-09-02 Eric Christopher <echristo@redhat.com>
303
304 * builtins.c (expand_builtin_cabs): Delete.
305 (expand_builtin): If unable to fold the values do a normal
306 library call for builtin_cab*.
307 (fold_builtin_cabs): Depend on optimize and optimize_size.
308 * optabs.c (expand_cmplxdiv_straight): Delete.
309 (expand_cmplxdiv_wide): Ditto.
310 (expand_vector_binop): Ditto.
311 (expand_vector_unop): Ditto.
312 (expand_complex_abs): Delete.
313 (expand_binop): Remove calls to above functions.
314 Remove open coding of complex arithmetic.
315 (expand_unop): Ditto.
316 * optabs.h: Remove prototypes.
317
3041390d
ZL
3182004-09-02 Ziemowit Laski <zlaski@apple.com>
319
320 * c-decl.c (store_parm_decls_newstyle): Make externally visible.
321 * c-tree.h (store_parm_decls_newstyle): New prototype.
322
5514620a
GK
3232004-09-02 Geoffrey Keating <geoffk@apple.com>
324
325 * config/rs6000/rs6000.c (expand_block_clear): Use vector
326 instructions if available.
327 (expand_block_move): Likewise.
328
02f14c38
JH
3292004-09-03 Jan Hubicka <jh@suse.cz>
330
331 * rtl.def (RANGE_INFO, RANGE_REG, RANGE_VAR, RANGE_LIVE): Kill.
332
19dc705e
MM
3332004-09-02 Mark Mitchell <mark@codesourcery.com>
334
335 * config/arm/symbian.h (LIB_SPEC): Define to empty.
336 * config/arm/t-symbian (SHLIB_LC): Likewise.
337
24112ed0
PB
3382004-09-02 Paul Brook <paul@codesourcery.com>
339
340 * config/arm/bpabi.c (__aeabi_ul2d, __aeabi_ul2f): Remove.
341
7ad769fe
RS
3422004-09-02 Richard Sandiford <rsandifo@redhat.com>
343
344 * config/mips/mips.c (mips_classify_symbol, mips_fetch_insns):
345 (mips_restore_gp, mips_set_return_address, mips_expand_prologue)
346 (mips16_fp_args, mips_avoid_hazard): Replace abort with gcc_assert.
347 (build_mips16_call_stub): Likewise. Remove daft CALL_INSN checks.
348 (mips_issue_rate): Remove unreachable abort.
349 (mips_symbolic_constant_p, mips_symbolic_address_p, mips_symbol_insns)
350 (mips_output_move, mips_relational_operand_ok_p, mips_arg_info)
351 (mips_block_move_straight, print_operand_address, mips_file_start)
352 (mips_initial_elimination_offset, mips16_fp_args, dump_constants_1)
353 (mips_output_conditional_branch, mips_expand_builtin_direct)
354 (mips_expand_builtin_compare): Replace abort with gcc_unreachable.
355 * config/mips/mips.md (rotr<mode>3, consttable_float): Replace abort
356 with gcc_assert.
357
9f09b415
RS
3582004-09-02 Richard Sandiford <rsandifo@redhat.com>
359
360 * config/mips/mips.md (*lea_high64): Change split condition to
361 flow2_completed. Add a peephole2 to generate a more parallel version.
362
07724022
JH
3632004-09-02 Jan Hubicka <jh@suse.cz>
364
365 * gimplify.c (gimplify_compound_lval): Move "stack" varray out of
366 GGC.
367
368 * ggc-page.c: include tree-flow.h.
369 (extra_order_size_table): Add stmt_ann_d.
370 (STAT_LABEL): Rename from ....
371 (LABEL): ... this one.
372 * Makefile.in (ggc-page.o): Add dependency.
373
374 * ggc-common.c (ggc_force_collect): New global variable.
375 (loc_description): Add fields "freed", "collected"
376 (ptr_hash): New static hash
377 (ptr_hash_entry): New structure.
378 (hash_ptr,eq_ptr,ggc_prune_ptr): New static functions.
379 (ggc_record_overhead): Take ptr argument, record it
380 (ggc_prune_overhead_list, ggc_free_overhead): New functions.
381 (cmp_statistics): Imrove sorting.
382 (dump_ggc_loc_statistics): Output newly collected statistics
383 * ggc-page.c (ggc_alloc): Update call of ggc_record_overhead
384 (ggc_free): Call ggc_free_overhead.
385 (ggc_collect): Force collection when asked to be forced.
386 (ggc_collect): Call ggc_prune_overhead_list.
387 * ggc.h (ggc_force_collect): Declare
388 (ggc_record_overhead): Update prototype.
389 (ggc_free_overhead, ggc_prune_overhead_list): Declare.
390
10060b83
JW
3912004-09-02 James E Wilson <wilson@specifixinc.com>
392
393 * common.opt (ftrapping-math): Default to on.
394
9d2da95b
RE
3952004-09-02 Richard Earnshaw <rearnsha@arm.com>
396
397 * arm/predicates.md (arm_reload_memory_operand): Allow MEM.
398
3f1f9228
DC
3992004-09-02 Denis Chertykov <denisc@overta.ru>
400
401 PR target/16884
402 * config/avr/avr.md ("movmemhi"): Substitute match_dup to
403 match_scratch.
404 (*movmemqi_insn): Likewise.
405 (*movmemhi): Likewise.
406 (clrmemhi): Likewise.
407 (*clrmemqi): Likewise.
408 (*clrmemhi): Likewise.
409
e6fc6c9b
PB
4102004-09-02 Paul Brook <paul@codesourcery.com>
411
412 * config.gcc (arm*-*-eabi* | arm*-*-symbianelf*): Set
413 default_use_cxa_atexit=yes.
414
d86c1b91
AM
4152004-09-02 Alan Modra <amodra@bigpond.net.au>
416
417 * config/rs6000/linux64.h: Don't include signal.h or sys/ucontext.h.
418 (struct kernel_old_ucontext): Delete.
419 (struct gcc_pt_regs, gcc_sigcontext, gcc_ucontext): New.
420 (MD_FALLBACK_FRAME_STATE_FOR): Use gcc_* structs. Only define
421 when IN_LIGGCC2.
422
3806400d
RS
4232004-09-02 Richard Sandiford <rsandifo@redhat.com>
424
425 * toplev.c (process_options): Fix typo.
426
9969aaf6
RH
4272004-09-01 Richard Henderson <rth@redhat.com>
428
429 PR middle-end/17258
430 * calls.c (initialize_argument_information): Tighten pass-through
431 conditions for pass-by-reference. Remove dead TARGET_EXPR code.
432 Use build_fold_addr_expr.
433 (emit_library_call_value_1): Use build_fold_addr_expr. Remove code
434 that assumes ADDR_EXPR allocates stack space.
435 * fold-const.c (build_fold_addr_expr_with_type): Look through
436 WITH_SIZE_EXPR.
437
1e8964cf
DN
4382004-09-01 Dan Nicolaescu <dann@ics.uci.edu>
439
440 * gengenrtl.c (gendef): Use rtx_alloc, don't do PUT_CODE.
441 * ggc.h (ggc_alloc_rtx): Delete.
442
26276705
RS
4432004-09-01 Roger Sayle <roger@eyesopen.com>
444
445 * expmed.c (enum alg_code): Remove long unused enumeration values.
7f148c2f 446 (struct mult_cost): New structure to hold the "score" of a synthetic
26276705
RS
447 multiply sequence, including both a rtx_cost and a latency field.
448 (MULT_COST_LESS): New macro to compare mult_cost to a constant.
449 (CHEAPER_MULT_COST): New macro to compare two mult_costs.
450 (struct algorithm): Change type of cost field to be mult_cost.
451 (synth_mult): Change type of cost_limit argument to be a
452 pointer to a mult_cost. Update all cost comparisons to use the
5906d013 453 new mult_cost infrastructure. For alg_add_factor and
26276705
RS
454 alg_sub_factor operations, latency is lower than the rtx_cost.
455 (choose_mult_variant): Update calls to synth_mult. Perform
456 cost comparisons using the new mult_cost infrastructure.
457 (expand_mult_highpart): Use alg.cost.cost instead of alg.cost
458 to optain the total rtx_cost of a synth_mult "algorithm".
459
594a3565
DE
4602004-09-01 David Edelsohn <edelsohn@gnu.org>
461
462 * config/rs6000/power4.md: Increase store latency to 12.
463 * config/rs6000/power5.md: Same.
464
130d5426
JW
4652004-09-01 James E Wilson <wilson@specifixinc.com>
466
467 PR target/14064
468 * config/avr/avr.c (avr_unique_section): Delete prototype and
469 definition.
470 (TARGET_ASM_UNIQUE_SECTION): Delete.
471
57a6af27
ZL
4722004-09-01 Ziemowit Laski <zlaski@apple.com>
473
474 * c-parse.in (primary): Call objc_build_message_expr(),
475 objc_build_selector_expr(), objc_build_protocol_expr(),
476 objc_build_encode_expr() and objc_build_string_object() instead of
477 build_message_expr(), build_selector_expr(), build_protocol_expr(),
478 build_encode_expr() and build_objc_string_object(), respectively.
479 (component_decl_list2): Call objc_get_class_ivars() instead of
480 get_class_ivars_from_name().
481 (keyworddecl): Call objc_build_keyword_decl() instead of
482 build_keyword_decl().
483 (receiver): Call objc_get_class_reference() instead of
484 get_class_reference().
485 (reswords): Add blank line before @@ifobjc section, for clarity.
486
5ec214fc
FJ
4872002-09-01 Fariborz Jahanian <fjahanian@apple.com>
488
489 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Restrict alignment
490 to Altivec vetors.
491
40219f96
WY
4922004-09-01 Wu Yongwei <adah@sh163.net>
493 Danny Smith <dannysmith@users.sourceforge.net>
494
495 * gthr-win32.h (__gthread_recursive_mutex_t): Use 'unsigned long',
496 not Windows 'DWORD'.
497 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): Correct typo.
498 (__GTHREAD_RECURSIVE_MUTEX_INIT_DEFAULT): Likewise.
499 (__gthr_win32_recursive_mutex_init_function): Add prototype for
500 __GTHREAD_HIDE_WIN32API case..
501 (__gthr_win32_recursive_mutex_lock): Likewise.
502 (__gthr_win32_recursive_mutex_trylock): Likewise.
503 (__gthr_win32_recursive_mutex_unlock): Likewise.
504 (__gthread_recursive_mutex_init_function); Add definition for
505 __GTHREAD_HIDE_WIN32API case.
506 (__gthread_recursive_mutex_lock): Correct call to InterlockedDecrement.
507 * config/i386/grthr-win32.c (__gthread_recursive_mutex_lock): Correct
508 call to InterlockedDecrement.
509
78ad8fbe
RK
5102004-09-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
511
ba2e294d
RK
512 * tree-tailcall.c (find_tail_calls): Also fail is statement has
513 volatile operands.
514
0705d602
RK
515 * tree-ssa.c (propagate_into_addr): Properly test for LHR.
516
78ad8fbe
RK
517 * doc/c-tree.texi: Document new operands for ARRAY_REF and
518 COMPONENT_REF.
519
6d9901e7
ZD
5202004-09-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
521
522 * Makefile.in (rtl-profile.o, value-prof.o): Add GCC_H dependency.
523 * common.opt (fspeculative-prefetching): New.
524 * flags.h (flag_speculative_prefetching_set): Declare.
525 * gcov-io.c (gcov_write_counter, gcov_read_counter): Allow negative
526 values.
527 * opts.c (flag_sepculative_prefetching_set): New variable.
528 (common_handle_option): Handle -fspeculative-prefetching.
529 * passes.c (rest_of_compilation): Ditto.
530 * profile.c (instrument_values, compute_value_histograms, branch_prob):
531 Use vectors instead of arrays.
532 * toplev.c (process_options): Handle -fspeculative-prefetching.
533 * rtl-profile.c: Include ggc.h.
534 (rtl_gen_interval_profiler, rtl_gen_pow2_profiler,
535 rtl_gen_one_value_profiler_no_edge_manipulation,
536 rtl_gen_one_value_profiler, rtl_gen_const_delta_profiler): Type of
537 argument changed.
538 * tree-profile.c (tree_gen_interval_profiler, tree_gen_pow2_profiler,
539 tree_gen_one_value_profiler, tree_gen_const_delta_profiler): Type of
540 argument changed.
541 * value-prof.c: Include ggc.h.
542 (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX): New
543 macros.
544 (insn_prefetch_values_to_profile, find_mem_reference_1,
545 find_mem_reference_2, find_mem_reference, gen_speculative_prefetch,
546 speculative_prefetching_transform): New.
547 (value_profile_transformations): Call speculative_prefetching_transform.
548 (insn_values_to_profile): Call insn_prefetch_values_to_profile.
549 (insn_divmod_values_to_profile, rtl_find_values_to_profile,
550 tree_find_values_to_profile, find_values to profile): Use vectors
551 instead of arrays.
552 (free_profiled_values): Removed.
553 * value-prof.h (struct histogram_value): Renamed to
554 struct histogram_value_t.
555 (histogram_value, histogram_values): New types.
556 (find_values_to_profile): Declaration changed.
557 (free_profiled_values): Removed.
558 (struct profile_hooks): Type of argument of the hooks changed to
559 histogram_value.
560 * doc/invoke.texi (-fspeculative-prefetching): Document.
561
d7fe1183
ZD
5622004-09-01 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
563
564 PR rtl-optimization/16408
565 * gcse.c (replace_store_insn): Fix LIBCALL/RETVAL notes.
566
938e234b
RH
5672004-09-01 Richard Henderson <rth@redhat.com>
568
7f148c2f
JB
569 * config/ns32k/ns32k.h (TRANSFER_FROM_TRAMPOLINE): Remove.
570 (TRAMPOLINE_TEMPLATE): Merge code from __trampoline inline.
938e234b 571
d0879c98
JJ
5722004-09-01 Jakub Jelinek <jakub@redhat.com>
573
574 * libgcc-std.ver (GCC_3.4.2): Export also __trampoline_setup.
575
156a126c
MS
5762004-09-01 Mike Stump <mrs@apple.com>
577
578 * config/darwin.c (machopic_symbol_defined_p): In addition to
579 being SYMBOL_REF_LOCAL_P, a symbol must also be
580 ! SYMBOL_REF_EXTERNAL_P, as only those are _always_ locally
581 defined in this output file, or translation unit in the case
582 of IMA not being used.
583 (machopic_output_indirection): SYMBOL_REF_LOCAL_P symbols
584 never need .indirect_symbol when indirecting.
585
a5d8b097
JJ
5862004-09-01 Jakub Jelinek <jakub@redhat.com>
587
588 * Makefile.in (bb-reorder.o): Add several dependencies.
589
266bff3a
JJ
5902004-09-01 Jakub Jelinek <jakub@redhat.com>
591
592 * fold-const.c (operand_equal_p): Require equal sign also for
593 FIX_{CEIL,TRUNC,FLOOR,ROUND}_EXPR.
594
32078532
RE
5952004-09-01 Richard Earnshaw <rearnsha@arm.com>
596
597 * config.gcc (--with-cpu on ARM): Preserve the canonical cpu name
598 for use in configargs.h. Put the cname in a separate variable. Use
599 that to set target_cpu_default2.
600
c0311627
R
6012004-09-01 J"orn Rennecke <joern.rennecke@superh.com>
602 Nick Clifton <nickc@redhat.com>
603
604 * config/sh/sh.md ("length"): Increase branch length when
605 SH1 pic code to 18: 12 bytes of instructions, 4 byte for the
606 constant, 2 byte for aligning the constant.
607
d98a72fd
RE
6082004-09-01 Richard Earnshaw <rearnsha@arm.com>
609
610 * arm/arm-cores.def (ARM_CORE): Add new field for the real name of the
611 CPU.
612 (arm7tdmi-s): New CPU name.
613 * arm/arm.c (ARM_CORE): Update for new format.
614 * arm/arm.h (ARM_CORE): Likewise.
615 * arm/gentune.sh: Update for extra field.
616 * config.gcc: Likewise.
617 * arm/arm-tune.md: Regenerate.
618 * doc/invoke.texi: Document the real processor names for ARM cpus.
619
0a1aa867
RE
6202004-09-01 Richard Earnshaw <rearnsha@arm.com>
621
622 * arm/ieee754-df.S (aeabi_ul2d, aeabi_l2d, floatundidf)
623 (floatdidf): New functions.
624 * arm/ieee754-sf.S (aeabi_ul2f, aeabi_l2f, floatundisf)
625 (floatdisf): New functions.
626 * t-arm-elf: Use them.
627
bc095846
ZL
6282004-09-01 Ziemowit Laski <zlaski@apple.com>
629
630 * c-common.h (lookup_interface): Remove prototype.
631 (is_class_name): Rename to objc_is_class_name.
632 (lookup_objc_ivar): Rename to objc_lookup_ivar.
633 (get_current_scope): Rename to objc_get_current_scope.
634 * c-decl.c (get_current_scope): Rename to objc_get_current_scope.
635 * c-parse.in (parmlist_or_identifiers_1): Get rid of unused variable.
636 (yylexname): Call objc_is_class_name() instead of is_class_name().
637 * c-typeck.c (build_external_ref): Call objc_lookup_ivar()
638 instead of lookup_objc_ivar().
639 * stub-objc.c (lookup_interface): Remove stub.
640 (is_class_name): Rename to objc_is_class_name.
641 (lookup_objc_ivar): Rename to objc_lookup_ivar.
642
14945fe6
MM
6432004-08-31 Mark Mitchell <mark@codesourcery.com>
644
645 * config.gcc (arm*-*-symbianelf*): Do not include t-bpabi.
646 * config/arm/lib1funcs.asm: Do not include supplemental .S files
647 when compiling for Symbian.
648 * config/arm/symbian.h (RENAME_LIBRARY): New macro.
649 (TARGET_OS_CPP_BUILTINS): Likewise.
650 * config/arm/t-symbian (LIB1ASMFUNCS): Define.
651
93415288
SS
6522004-08-31 Stan Shebs <shebs@apple.com>
653
654 * toplev.c (process_options): Ensure debug_hooks is initialized.
655
505970fc
MM
6562004-08-31 Mark Mitchell <mark@codesourcery.com>
657
658 * target-def.h (TARGET_CXX): Add TARGET_CXX_EXPORT_CLASS_DATA.
659 * target.h (cxx): Add export_class_data.
660 * config/arm/arm.c (arm_cxx_export_class_data): New function.
661 (TARGET_CXX_EXPORT_CLASS_DATA): Use it.
dc40803a 662 * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Document it.
5906d013 663
bee9efbc
KK
6642004-08-31 Kaz Kojima <kkojima@gcc.gnu.org>
665
666 * config/sh/sh.c (output_branch): Check the insn length possibly
667 in the delayed slot.
668
a4e9ffe5
RK
6692004-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
670
a0ca8e0c
RK
671 * tree-pretty-print.c (dump_generic_node, case CONVERT_EXPR): Add
672 blank after ')'.
673 (op_symbol, case *_{DIV,MOD}_EXPR): Say what rounding is being used.
674
a4e9ffe5
RK
675 * c-common.c (c_alignof_expr): Use DECL_ALIGN_UNIT and TYPE_ALIGN_UNIT.
676 (c_sizeof_of_alignof_type): Likewise.
677 * expr.c (array_ref_element_size): Likewise.
678 (highest_pow2_factor_for_target): Likewise.
679 * gimplify.c (canonicalize_addr_expr): Likewise.
680 (gimplify_compound_lval): Likewise.
681 * stor-layout.c (finalize_record_size, finalize_type_size): Likewise.
682 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Likewise.
683 * varasm.c (assemble_variable): Likewise.
684 (output_constant_def_contents): Alignments are unsigned.
685
631b67ce
RK
6862004-08-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
687 Jeff Law <law@redhat.com>
688
689 * tree-cfg.c (cfg_remove_useless_stmts_bb): Also invalidate if VAL
690 gets modified.
691
af287697
MM
6922004-08-31 Mark Mitchell <mark@codesourcery.com>
693
694 * hooks.c (hook_bool_void_true): New function.
695 * hooks.h (hook_bool_void_true): Declare.
696 * target-def.h (TARGET_CXX): Add
697 TARGET_CXX_KEY_METHOD_MAY_BE_INLINE.
698 * target.h (struct cxx): Add key_method_may_be_inline.
699 * config/arm/arm.c (arm_cxx_key_method_may_be_inline): New
700 function.
701 (TARGET_CXX_KEY_METHOD_MAY_BE_INLINE): New macro.
702 * config/arm/bpabi.h: Use __THUMB_INTERWORK__ instead of
703 __THUMB_INTERWORK.
5906d013 704
678584fc
DC
7052004-08-31 Denis Chertykov <denisc@overta.ru>
706
707 PR target/15417
708 * config/avr/avr.c (avr_hard_regno_mode_ok): Enable usage of
709 frame pointer register only in Pmode while reload in progress.
710
c4c9b76e
SC
7112004-08-31 Stephane Carrez <stcarrez@nerim.fr>
712
713 PR target/15334
714 * config/m68hc11/m68hc11.c (m68hc11_override_options): Disable -fweb
715 because it breaks the 32-bit shift patterns that rely on a match_dup.
716
c61eceeb
MA
7172004-08-31 Matt Austern <austern@apple.com>
718
719 * config/darwin.c (darwin_make_decl_one_only): Allocate section
720 names once per compilation, instead of once per symbol.
5906d013 721
71b5d516
PB
7222004-08-31 Paolo Bonzini <bonzini@gnu.org>
723
724 * Makefile.in (build_subdir): New substitution.
725 (fixinc.sh): Simplify heavily since fixincludes is already built.
726 (stmp-fixinc): Depend on specs.ready.
727 (install-mkheaders): Use new location of fixincludes.
728 (clean): Do not descend into fixinc.
729 (FORBUILD): Replace with ../$(build_subdir).
730 * configure.ac (build_subdir): Substitute.
731 (FORBUILD): Do not set.
732 (all_outputs): Remove fixinc/Makefile.
733 (default commands): Do not create links in fixinc.
734 * mkfixinc.sh: New, from fixinc/mkfixinc.sh without
735 the fixincludes configuration steps and substituting
736 @FIXINCL@ in fixinc.in.
737 * fixinc.in: New, from fixinc/fixincl.sh.
738
739 * fixinc/*: Removed.
5906d013 740
f7b0fb68
JM
7412004-08-31 Joseph S. Myers <jsm@polyomino.org.uk>
742
743 * attribs.c (strip_attrs): Remove.
744 (split_specs_attrs): Move ...
745 * c-decl.c: ... to here.
746 * tree.h (split_specs_attrs, strip_attrs): Remove.
747 * c-tree.h (split_specs_attrs): Declare.
748
f51a38b9
RS
7492004-08-31 Richard Sandiford <rsandifo@redhat.com>
750
751 * read-rtl.c: Disable RTL checking.
752 (apply_macro_to_rtx): Use XTMPL to access 'T' fields.
753
34ebf755
RS
7542004-08-31 Richard Sandiford <rsandifo@redhat.com>
755
756 * config/mips/mips.md (fcond): New code macro and attribute.
757 (sunordered_[sd]f, suneq_[sd]f, sunlt_[sd]f, sunle_[sd]f)
758 (seq_[sd]f, slt_[sd]f, sle_[sd]f): Redefine using :SCALARF and fcond.
759 (sgt_[sd]f, sge_[sd]f): Redefine using :SCALARF.
760
9b76aa3b
MM
7612004-08-30 Mark Mitchell <mark@codesourcery.com>
762
763 Revert:
764 2004-08-29 Mark Mitchell <mark@codesourcery.com>
765 PR rtl-optimization/16590
766 * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
767
99fa8911
AP
7682004-08-30 Andrew Pinski <apinski@apple.com>
769
5906d013 770 * hard-reg-set.h:
992c944c
AP
771 s/HOST_BITS_PER_WIDES_FAST_INT/HOST_BITS_PER_WIDEST_FAST_INT.
772 * ChangeLog: Fix previous ChangeLog entry.
773
99fa8911 774 PR rtl-opt/13987
5906d013 775 * config.host (use_long_long_for_widest_fast_int): New, default is
99fa8911
AP
776 off.
777 (ia64-*-hpux*): Enable use_long_long_for_widest_fast_int.
778 * configure.ac: If use_long_long_for_widest_fast_int, then
779 define USE_LONG_LONG_FOR_WIDEST_FAST_INT.
780 * configure: Regenerate.
781 * config.in: Regenerate.
782 * hwint.h (HOST_WIDEST_FAST_INT, HOST_BITS_PER_WIDEST_FAST_INT):
783 New: widest integer type supported efficiently in hardware for the
784 host.
785 * sbitmap.h (SBITMAP_ELT_BITS): Define based on
786 HOST_BITS_PER_WIDEST_FAST_INT.
787 (SBITMAP_ELT_TYPE): Define based on HOST_WIDEST_FAST_INT.
5906d013 788 * hard-reg-set.h (HARD_REG_ELT_TYPE): Define based on
99fa8911
AP
789 HOST_WIDEST_FAST_INT
790 instead of HOST_WIDE_INT.
791 (HARD_REG_SET_LONGS): Likewise.
792 (UHOST_BITS_PER_WIDE_INT): Likewise.
793 Change the checks for the fast cases to be based on
992c944c 794 HOST_BITS_PER_WIDEST_FAST_INT instead of HOST_BITS_PER_WIDE_INT.
99fa8911 795
f4c0250b
SB
7962004-08-30 Steven Bosscher <stevenb@suse.de>
797
798 * cfgcleanup.c (merge_memattrs): Look at the value of MEM_SIZE,
799 not the pointers.
800
ff164b22
GK
8012004-08-30 Geoffrey Keating <geoffk@apple.com>
802
803 PR 12738
804 PR 17205
805 Radar 3460526
806 Radar 3775729
807 * c-decl.c (grokdeclarator): Produce error for 'static' on local
808 function declaration.
809
bc482be4
RH
8102004-08-30 Richard Henderson <rth@redhat.com>
811
812 * expr.c (array_ref_element_size): Force aligned_size back to
813 sizetype.
814 (component_ref_field_offset): Similarly for aligned_offset.
815 * tree.c (recompute_tree_invarant_for_addr_expr): Mark raw
816 low-bound, element-size, field-offset fields rather than
817 computed values.
818
21611613
JM
8192004-08-30 Joseph S. Myers <jsm@polyomino.org.uk>
820
821 * c-parse.in (parmlist_or_identifiers_1): Remove unreachable and
822 redundant code.
823
7b112487
JM
8242004-08-30 Joseph S. Myers <jsm@polyomino.org.uk>
825
826 * c-tree.h (struct language_function): Add arg_info element.
827 * c-decl.c (current_function_arg_info): New.
828 (grokdeclarator, store_parm_decls): Use it instead of
829 DECL_ARGUMENTS.
830 (c_push_function_context, c_pop_function_context): Save and
831 restore it.
832
5cc200fc
RH
8332004-08-30 Richard Henderson <rth@redhat.com>
834
5906d013 835 * c-typeck.c (build_unary_op): Don't expand ADDR_EXPR of a
5cc200fc
RH
836 COMPONENT_REF to pointer arithmetic.
837 * varasm.c (initializer_constant_valid_p): Allow "&(*c).f", for
838 constant "c" as a valid constant initializer. Allow narrowing of
839 differences against the same base object, for any base object.
840
6377bb9a
RH
8412004-08-30 Richard Henderson <rth@redhat.com>
842
843 * expr.c (expand_expr_addr_expr): New.
844 (expand_expr_real_1) <case ADDR_EXPR>: Use it.
845
308cd611
RS
8462004-08-30 Richard Sandiford <rsandifo@redhat.com>
847
848 * config/mips/mips.c (MIPS_FP_CONDITIONS): New macro.
849 (mips_fp_condition): New enum.
850 (mips_fp_conditions): New array.
851 (print_fcc_operand): Delete.
852 (print_operand): Remove %V, %v and %Q. Redefine %Z so that it prints
853 the operand and comma if and only if ISA_HAS_8CC. Add %Y.
854 (builtin_description): Add "cond" field.
855 (DIRECT_BUILTIN): Initialize it.
856 (CMP_{SCALAR,PS,4S}_BUILTINS, MOVTF_BUILTINS): Split INSN parameter
857 into INSN and CODE. Initialize the "cond" field.
858 (CMP_BUILTINS): Update accordingly.
859 (mips_bdesc): Use MIPS_FP_CONDITIONS to invoke CMP_BUILTINS.
860 (mips_expand_builtin_movtf, mips_expand_builtin_compare): Take the
861 mips_fp_condition as argument. Make it the final operand of the
862 comparison instruction.
863 (mips_expand_builtin): Update accordingly.
864 * config/mips/mips.md (UNSPEC_C_*, UNSPEC_CABS_*): Delete.
865 (UNSPEC_C, UNSPEC_CABS): New constants. Shuffle others to fill
866 the gaps.
867 * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps, bc1any[24][ft]):
868 Don't use the 'Q' operand prefix; just print the operand normally.
869 (mips_cabs_*, mips_c_*): Delete, replacing with...
870 (mips_c_cond_{ps,4s}, mips_cabs_cond_{s,d,ps,4s}): ...these new
871 patterns. Split the 4s versions into 2 ps patterns after reload.
872
88f19756
RH
8732004-08-30 Richard Henderson <rth@redhat.com>
874
875 * fold-const.c (tree_expr_nonzero_p): Use get_base_address before
876 assuming an ADDR_EXPR is non-null.
877
70008293
JM
8782004-08-30 Jason Merrill <jason@redhat.com>
879
d92a3b38 880 * gthr-posix.h, gthr-dce.h: Add #pragma weaks.
70008293 881
fc6633e0
NS
8822004-08-30 Nathan Sidwell <nathan@codesourcery.com>
883
e0448193
NS
884 * gcov-io.c (GCOV_CHECK): Use gcc_assert when available.
885 * gcov.c (abort): Remove undef.
886
fc6633e0
NS
887 * tree.h (BINFO_PRIMARY_BASE_OF): Remove.
888 (struct tree_binfo): Remove primary field.
889
89b8abbf
PB
8902004-08-30 Paolo Bonzini <bonzini@gnu.org>
891
892 * fixinc/Makefile.in (machname.h): Remove.
893 (fixincl.x): Do not pass $@ to genfixes.
894 * fixinc/genfixes: Remove code to produce machname.h.
895 * fixinc/fixincl.sh: Move it here instead.
896 * fixinc/fixlib.c: Do not conditionalize on MN_NAME_PAT's presence,
897 instead check if pz_mn_name_pat is NULL. Make mn_get_regexps
898 return a bool indicating whether pz_mn_name_pat is NULL.
899 * fixinc/fixlib.h: Do not conditionalize on MN_NAME_PAT's presence.
900 Declare extern C variables for the ENV_TABLE.
901 * fixinc/fixfixes.c: Do not conditionalize on MN_NAME_PAT's presence,
902 instead use the result of mn_get_regexps.
903 * fixinc/fixtests.c: Likewise.
904
39880d37
PB
9052004-08-30 Paolo Bonzini <bonzini@gnu.org>
906
907 * configure.ac: Do not run fixincludes after stage1 during
908 toplevel bootstrap.
909 * configure: Regenerate.
910
a8b3643c
RE
9112004-08-30 Richard Earnshaw <rearnsha@arm.com>
912
913 * sched-deps.c (get_condition): Partially revert previous, by never
914 trying to extract the condition from a condjump.
915
fc6633e0
NS
9162004-08-30 Nathan Sidwell <nathan@codesourcery.com>
917
918 * c-common.c (c_sizeof_or_alignof_type): Use gcc_assert.
919 (handle_visibility_attribute, c_determine_visibility): Likewise.
920 * c-common.h (my_friendly_assert): Remove.
921
afa396ff
RS
9222004-08-30 Richard Sandiford <rsandifo@redhat.com>
923
924 * config/mips/mips.md (UNSPEC_{RSQRT,RECIP}[12]_{S,D,PS}): Delete.
925 (UNSPEC_{RSQRT,RECIP}[12]): New constants.
926 (UNSPEC_MOVE_TF_PS): Renumber to avoid gaps.
927 * config/mips/mips-ps-3d.md (*movcc_v2sf_[sd]i): Use :GPR.
928 (mips_{rsqrt,recip}[12]_{s,d,ps}): Use :ANYF.
929
ef6379fd
DN
9302004-08-30 Diego Novillo <dnovillo@redhat.com>
931
932 * tree-pretty-print.c (dump_generic_node): Handle VALUE_HANDLE
933 in COMPONENT_REF nodes.
934
7783b402
GDR
9352004-08-29 Gabriel Dos Reis <gdr@integrable-solutions.net>
936
937 PR c++/15378
938 * c-opts.c (c_common_handle_option): <case OPT_Werror> set
939 global_dc->warning_as_error_requested.
940 * diagnostic.c (diagnostic_initialize): Tidy.
941 * diagnostic.h (diagnostic_context::x_data): Remove
942 (diagnostic_context::issue_warnings_are_errors_message): Rename
943 from warnings_are_errors_message.
944 (diagnostic_context::warning_as_error_requested): New.
945
adf968c7
RE
9462004-08-30 Richard Earnshaw <rearnsha@arm.com>
947
948 * sched-deps.c (get_condition): Fix breakage in previous patch.
949
999f4d5e
PB
9502004-08-30 Paul Brook <paul@codesourcery.com>
951
952 * doc/install.texi: Fix broken mpfr link.
953
5a0c2304
DB
9542004-08-29 David O'Brien <obrien@FreeBSD.org>
955
956 * config/rs6000/sysv4.h (LINK_OS_FREEBSD_SPEC): Sync '-p' handling with
957 other FreeBSD platforms.
958
880873be
RE
9592004-08-29 Richard Earnshaw <rearnsha@arm.com>
960
961 * arm.h (REVERSE_CONDITION): Define.
962 (REVERSIBLE_CC_MODE): All comparisons are now reversible.
963
15dce812
RE
9642004-08-29 Richard Earnshaw <rearnsha@arm.com>
965
966 * flow.c (REVERSE_CONDEXEC_PREDICATES_P): Use the whole comparison, not
967 just the codes, call reversed_comparison_code ().
968 (ior_reg_cond): Update arguments to REVERSE_CONDEXEC_PREDICATES_P.
969 (not_reg_cond): Use reversed_comparison_code.
970 (and_reg_cond): Likewise.
971 * ifcvt.c (cond_exec_process_if_block): Likewise.
972 * doc/tm.texi (REVERSE_CONDEXEC_PREDICATES_P): Update documentation.
973
6903ecd4
RE
9742004-08-29 Richard Earnshaw <rearnsha@arm.com>
975
976 * sched-deps.c (get_condition): Rewrite using jump support functions.
977 Use reversed_comparison_code.
978 (conditions_mutex_p): Use reversed_comparison_code.
979
ea9bfbf2
RS
9802004-08-29 Richard Sandiford <rsandifo@redhat.com>
981
982 * config/mips/mips.c (override_options): Disable hot/cold partitioning
983 for MIPS16.
984
4ca1f68f
RS
9852004-08-29 Richard Sandiford <rsandifo@redhat.com>
986
987 * config/mips/mips.h (mips_builtins, mips_cmp_choice): Delete.
988 (mips_function_type): Move to mips.c.
989 * config/mips/mips.c (mips_builtin_type): New enum.
990 (builtin_description): Replace code and ftype with builtin_type
991 and function_type.
992 (DIRECT_BUILTIN, CMP_SCALAR_BUILTINS, CMP_PS_BUILTINS, CMP_4S_BUILTINS)
993 (MOVTF_BUILTINS, CMP_BUILTINS): New macros.
994 (CODE_FOR_mips_abs_ps): Define.
995 (mips_bdesc): Use new macros.
996 (mips_expand_builtin): Use builtin_type. Update calls to subroutines.
997 (mips_init_builtins): Use the mips_bdesc[] index as the function code.
998 (mips_expand_builtin_direct): New function.
999 (mips_expand_builtin_movtf): Renamed from mips_expand_ps_cond_move_
1000 builtin. Replace boolean parameter with builtin_type.
1001 (mips_expand_compare_builtin, mips_expand_scalar_compare_builtin)
1002 (mips_expand_4s_compare_builtin): Delete, replacing with...
1003 (mips_expand_builtin_compare): ...this new function.
1004
5e9f78cc
MM
10052004-08-29 Mark Mitchell <mark@codesourcery.com>
1006
1007 PR rtl-optimization/16590
1008 * gcse.c (pre_delete): Do not create invalid REG_EQUAL notes.
1009
766ff1b1
DN
10102004-08-29 Diego Novillo <dnovillo@redhat.com>
1011
1012 * tree-ssa-ccp.c (ccp_visit_stmt): Remove #if 0 guards.
1013 * tree-ssa-propagate.c: Fix documentation.
1014
2435c4c1
RS
10152004-08-29 Richard Sandiford <rsandifo@redhat.com>
1016
1017 * config/mips/mips.md (*mov[sd]f_on_*): Redefine using :SCALARF.
1018 (mov[sd]fcc): Likewise.
1019
53d9ac3b
RS
10202004-08-29 Richard Sandiford <rsandifo@redhat.com>
1021
1022 * config/mips/mips.md (cmp[sd]f): Redefine using :SCALARF.
1023
93898c8b
RS
10242004-08-29 Richard Sandiford <rsandifo@redhat.com>
1025
1026 * config/mips/mips.md (divide_condition): New mode attribute.
1027 (div[sd]f3, *div[sd]f3): Use it. Redefine using :SCALARF.
1028 (sqrt[sd]f3): Redefine using SCALARF.
1029 (*recip[sd]f3, *rsqrt<mode>[ab]): Likewise. Name formerly unnamed
1030 patterns.
1031
aae0609c
RS
10322004-08-29 Richard Sandiford <rsandifo@redhat.com>
1033
1034 * config/mips/mips.md (ANYF, SCALARF): New mode macros.
1035 (loadx, storex, fmt, UNITMODE): New mode attributes.
1036 (add{sf,df,v2sf}3, sub{sf,df,v2sf}3): Redefine using :ANYF.
1037 (mul[sd]f3): Redefine using :SCALARF.
1038 (*mul[sd]f3): Renamed from mul[sd]f3_internal. Use :SCALARF.
1039 (*mul[sd]3_r4300): Likewise mul[sd]f3_r4300.
1040 (*m{add,sub}{sf,df,v2sf}3): Name formerly unnamed patterns. Use :ANYF.
1041 Check TARGET_FUSED_MADD for V2SF too.
1042 (*nm{add,sub}{sf,df,v2sf}3{,_fastmath}): Likewise, except v2sf patterns
1043 were already named.
1044 (abs{sf,df,v2sf}3, neg{sf,df,v2sf}3): Redefine using :ANYF.
1045 (*[sl][wd]xc1_[sd]i): Redefine using :ANYF.
1046
74fc61d1
RS
10472004-08-29 Richard Sandiford <rsandifo@redhat.com>
1048
1049 * config/mips/mips.c (mips_init_builtins): Simplify. Only create
1050 V2SF_type_node if it will be needed.
1051
ff55fb9c
RS
10522004-08-29 Richard Sandiford <rsandifo@redhat.com>
1053
1054 * config/mips/mips.h (MIPS_CMP_MOVT, MIPS_CMP_MOVF): Delete.
1055 * config/mips/mips.c (mips_prepare_builtin_arg): New function.
1056 (mips_prepare_builtin_target): New function.
1057 (mips_expand_builtin): Use them. Update calls to subroutines.
1058 (mips_expand_ps_cond_move_builtin): Use the new functions. Replace
1059 cmp_choice with a boolean argument to select between movt and movf.
1060 Take the comparison's icode as an argument, not the function's fcode.
1061 (mips_expand_compare_builtin): New function. Rename existing function
1062 to mips_expand_scalar_compare_builtin.
1063 (mips_expand_scalar_compare_builtin, mips_expand_4s_compare_builtin)
1064 (mips_expand_ps_compare_builtin): Use the new functions. Take the
1065 comparison's icode as an argument, not the builtin's fcode.
1066
f691c4e3
RS
10672004-08-29 Richard Sandiford <rsandifo@redhat.com>
1068
1069 * config/mips/mips.c (print_operand): Remove '%Y' and '%y'.
1070 (mips_expand_4s_compare_builtin): Redefine CCV4 to be 0 if all
1071 registers are false and -1 if all registers are true.
1072 (mips_expand_ps_compare_builtin): Likewise CCV2. Use subregs for
1073 MIPS_CMP_UPPER and MIPS_CMP_LOWER.
1074 * config/mips/mips.md (mips_cond_move_tf_ps): Use %Q rather than %y.
1075 (bc1any4t, bc1any4f): Adjust for new CCV4 interpretation.
1076 (bc1any2t, bc1any2f): Likewise CCV2.
1077 (bc1upper2t, bc1lower2t, bc1upper2f, bc1lower2f): Delete.
1078
49135706
RS
10792004-08-29 Richard Sandiford <rsandifo@redhat.com>
1080
1081 * config/mips/mips.md (UNSPEC_MOVE_TF_PS): New.
1082 * config/mips/mips-ps-3d.md (mips_cond_move_tf_ps): Express as an
1083 UNSPEC rather than an IF_THEN_ELSE.
1084 * config/mips/mips.c (mips_expand_ps_cond_move_builtin): Emit
1085 mips_cond_move_tf_ps by name.
1086
06a4ab70
CF
10872004-08-29 Chao-ying Fu <fu@mips.com>
1088 James E Wilson <wilson@specifixinc.com>
5906d013 1089
06a4ab70
CF
1090 * config/mips/mips-modes.def (V2SF, CCV2, CCV4): New modes. Give CCV2
1091 8 byte size and alignment. Give CCV4 16 byte size and alignment.
1092 * config/mips/mips-ps-3d.md: New file.
1093 * config/mips/mips.c (TARGET_VECTOR_MODE_SUPPORTED_P,
1094 TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Define.
1095 (mips_const_insns): Handle CONST_VECTOR the same as CONST_DOUBLE.
1096 (mips_output_move): Emit "mov.ps" for V2SFmode.
1097 (mips_arg_info): Add checks for VECTOR_FLOAT_TYPE_P and
1098 MODE_VECTOR_FLOAT.
1099 (override_options): Check if TARGET_MIPS3D and there was an explicit
1100 !TARGET_PAIRED_SINGLE_FLOAT. Set MASK_PAIRED_SINGLE, if TARGET_MIPS3D.
1101 Check if TARGET_FLOAT64 and TARGET_HARD_FLOAT are both true, when
1102 TARGET_PAIRED_SINGLE_FLOAT is true. Check if the ISA supports
1103 TARGET_PAIRED_SINGLE_FLOAT. Allow MODE_VECTOR_FLOAT in fp registers,
1104 and allow CCV2 and CCV4 to occupy two and four CC registers.
1105 (print_fcc_operand): New function.
1106 (print_operand): Add %Y, %y, %V, %v, %Q for CCV2, CCV4, CC. Modify
1107 %Z to call print_fcc_operand.
1108 (mips_function_value): Handle MODE_VECTOR_FLOAT.
1109 (mips_class_max_nregs): Check for ST_REGS, and handle CCmodes.
1110 (mips_vector_mode_supported_p): New function.
1111 (mips_hard_regno_nregs): Check for ST_REG_P, and handle CCmodes.
1112 (builtin_description): New struct.
1113 (mips_bdesc): New array of struct builtin_description.
1114 (mips_expand_builtin, mips_init_builtins,
1115 mips_expand_ps_cond_move_builtin, mips_expand_4s_compare_builtin,
1116 mips_expand_compare_builtin, mips_expand_ps_compare_builtin): New
1117 functions.
1118 * config/mips/mips.h (MASK_PAIRED_SINGLE, MASK_MIPS3D): New defines.
1119 (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D): New defines.
1120 (TARGET_CPU_CPP_BUILTINS): Add __mips_paired_single_float.
1121 (TARGET_SWITCHES): Added "-mpaired-single", "-mno-paired-single",
1122 "-mips3d", and "-mno-mips3d".
1123 (ASM_SPEC): Map -mips3d to -mips3d in gas.
1124 (EXTRA_CONSTRAINT_Y): New macro.
1125 (EXTRA_CONSTRAINT_STR): Renamed from EXTRA_CONSTRAINT. Add new
1126 multi-letter constraint 'Y'.
1127 (CONSTRAINT_LEN): New macro.
1128 (enum mips_builtins): New for MIPS builtin functions.
1129 (enum mips_function_type): New for the types of MIPS builtin functions.
1130 (enum mips_cmp_choice): New for the MIPS comparison builtin functions.
5906d013 1131 * config/mips/mips.md: New constants for paired single and MIPS-3D
06a4ab70
CF
1132 instructions. Include the new mips-ps-3d.md file.
1133 (addv2sf3, subv2sf3, mulv2sf3, absv2sf2, negv2sf2, movv2sf,
1134 movv2sf_hardfloat_64bit): New named patterns.
1135 (madd.ps, msub.ps, nmaddv2sf, nmaddv2sf_fastmath, nmsubv2sf,
1136 nmsubv2sf_fastmath, ldxc1_v2sf_si, ldxc1_v2sf_di, sdxc1_v2sf_si,
1137 sdxc1_v2sf_di): New unnamed patterns.
1138 * config/mips/predicates.md (const_0_operand, const_1_operand): Add
1139 const_vector support.
1140 (const_0_or_1_operand): New predicate.
1141 * doc/invoke.texi (MIPS Options): Add -mpaired-single and -mips3d.
1142
750628d8
DN
11432004-08-29 Diego Novillo <dnovillo@redhat.com>
1144
1145 * Makefile.in (OBJS-common): Add tree-ssa-propagate.o
1146 (tree-ssa-propagate.o): New rule.
1147 (GTFILES): Add tree-ssa-propagate.c.
1148 * tree-flow.h (struct stmt_ann_d): Remove field
1149 in_ccp_worklist.
1150 * tree-ssa-propagate.c: New file.
1151 * tree-ssa-propagate.h: New file.
1152 * tree-ssa-ccp.c: Re-write to use the routines from
1153 tree-ssa-propagate.c.
1154
f108270b
AP
11552004-08-28 Andrew Pinski <apinski@apple.com>
1156
1157 * tree-ssa-loop.c: Remove extra include of basic-block.h.
1158
e5a002e3
ZL
11592004-08-28 Ziemowit Laski <zlaski@apple.com>
1160
1161 * c-common.h: Update comments about ObjC/ObjC++ entry points.
1162 (objc_is_reserved_word): New prototype.
1163 (get_current_scope, objc_mark_locals_volatile): Move prototypes to
1164 separate section; these are call-backs.
1165 * c-lex.c (c_lex_with_flags): Call objc_is_reserved_word() to detect
1166 ObjC/ObjC++ "@" keywords.
1167 * c-tree.h (get_current_scope, objc_mark_locals_volatile): Remove
1168 prototypes; they already live in c-common.h.
1169 * stub-objc.c: Update copyright notice.
1170 (objc_is_reserved_word): New stub.
1171
2c46a62f
NS
11722004-08-28 Nathan Sidwell <nathan@codesourcery.com>
1173
1174 * system.h (gcc_assert): Remove __builtin_expect. Evaluate EXPR
1175 even when not checking.
1176
40aac948
JM
11772004-08-27 Jason Merrill <jason@redhat.com>
1178
1179 PR c++/13684
1180 * gimplify.c (gimplify_cleanup_point_expr): Handle CLEANUP_EH_ONLY.
1181 (gimple_push_cleanup): Add eh_only parm.
1182 (gimplify_target_expr): Pass it.
1183 * c.opt (-fno-threadsafe-statics): New option.
1184 * c-opts.c (c_common_handle_option): Handle it.
1185 * c-common.h (flag_threadsafe_statics): Declare it.
1186 * c-common.c (flag_threadsafe_statics): Record it.
1187 * doc/invoke.texi: Document it.
1188 * tsystem.h (_GNU_SOURCE): Define.
1189 * gthr-posix.h (__gthread_recursive_mutex_t): New typedef.
1190 (__GTHREAD_RECURSIVE_MUTEX_INIT): New macro.
1191 (__GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION): New macro.
1192 (__gthread_recursive_mutex_init_function): New fn.
1193 (__gthread_recursive_mutex_lock): New fn.
1194 (__gthread_recursive_mutex_trylock): New fn.
1195 (__gthread_recursive_mutex_unlock): New fn.
1196 * gthr-solaris.h, gthr-single.h, gthr-dce.h: Likewise.
1197 * gthr-win32.h, gthr-vxworks.h: Likewise.
1198 * gthr.h: Document.
1199
1494c534
DE
12002004-08-27 David Edelsohn <edelsohn@gnu.org>
1201
1202 * config/rs6000/rs6000.c (rs6000_override_options): Increase
1203 maximum skip to 15. Set function alignment, jump alignment, and
1204 loop alignment to 16 for processors that form dispatch groups.
03e9c50a 1205 (rs6000_rtx_costs): outer_code is used.
1494c534 1206
ce552f75
NS
12072004-08-27 Nathan Sidwell <nathan@codesourcery.com>
1208
e3861d2a
NS
1209 * stor-layout.c (sizetype_set): Remove.
1210 (set_sizetype): Don't test or set it.
1211
ce552f75
NS
1212 * tree.h (size_int_type): Remove.
1213 * fold-const.c: Do not #include gt-fold-const.h.
1214 (size_htab_hash, size_htab_eq): Remove.
1215 (size_int_kind): Use build_int_cst.
1216 (new_const, size_htab): Remove.
1217 (size_int_type): Remove.
1218 (round_up): Use build_int_cst.
1219 (round_down): Likewise. Remove spurious constant build.
1220
06c37c96
NS
12212004-08-27 Nathan Sidwell <nathan@codesourcery.com>
1222
1223 * configure.ac: Add ENABLE_ASSERT_CHECKING control.
1224 Add is_release variable, use it for --enable-werror and
1225 --enable-checking defaults.
1226 * system.h (gcc_assert, gcc_unreachable): New.
1227 * doc/install.texi (--enable-checking): Update.
1228 * configure, config.in: Rebuilt.
1229
57406c63
RS
12302004-08-26 Richard Sandiford <rsandifo@redhat.com>
1231
1232 * rtl.h (read_rtx): Change prototype.
1233 * read-rtl.c (read_rtx): Provide the caller with both an rtx and a
1234 line number. Return true on success.
1235 * gensupport.c (process_include, init_md_reader_args_cb): Adjust
1236 callers accordingly.
1237
ee8a6a3e
RH
12382004-08-26 Richard Henderson <rth@redhat.com>
1239
1240 * c-typeck.c (build_offsetof): Remove.
1241 * c-tree.h (build_offsetof): Remove.
1242 * c-common.c (fold_offsetof_1, fold_offsetof): New.
1243 * c-common.h (fold_offsetof): Declare.
1244 * c-parse.in (offsetof_base): New.
1245 (offsetof_member_designator): Use it. Build references, not just
1246 a tree list.
1247 (primary): Use fold_offsetof, not build_offsetof.
1248
525c6bf5
RH
12492004-08-26 Richard Henderson <rth@redhat.com>
1250
1251 * tree.c (staticp): Return the static object.
1252 * tree.h (staticp): Update decl.
1253 * langhooks.h (struct lang_hooks): Change staticp return type to tree.
1254 * langhooks.c (lhd_staticp): Return NULL_TREE.
1255 * langhooks-def.h (lhd_staticp): Update decl.
1256 * c-common.c (c_staticp): Return the static object.
1257 * c-common.h (c_staticp): Update decl.
1258
d416c0b3
RH
12592004-08-26 Richard Henderson <rth@redhat.com>
1260
1261 * config/alpha/alpha.h (HARD_REGNO_MODE_OK): Allow complex float
1262 modes.
1263
0b410f0b
JM
12642004-08-26 Joseph S. Myers <jsm@polyomino.org.uk>
1265
1266 PR c/13801
1267 * c-decl.c (struct c_binding): Add type and inner_comp fields.
1268 (bind): Set type and inner_comp fields.
1269 (pop_scope): Restore type of decl to the correct type from an
1270 outer scope. Give error when popping file scope for incomplete
1271 arrays completed incompatibly with default initialization in an
1272 inner scope.
1273 (diagnose_mismatched_decls): Handle externs with initializers at
1274 block scope.
1275 (pushdecl): Set type of external declaration at block scope based
1276 only on the visible declarations. Save type when changing the
1277 type of a declaration. Merge an external declaration at block
1278 scope with a visible static declaration at file scope.
1279 (implicitly_declare): Give recycled old declaration the new type
1280 except for incompatible declarations of built-in functions, saving
1281 the old type.
1282
b77c7437
ZL
12832004-08-26 Ziemowit Laski <zlaski@apple.com>
1284
1285 * c-parse.in (OBJC_TYPE_QUAL): New %token for ObjC use.
1286
a228baff
DB
12872004-08-26 Daniel Berlin <dberlin@dberlin.org>
1288
1289 * tree-alias-common.c (gate_pta): New function.
1290 (pass_build_pta): Use it.
1291 (pass_del_pta): Use it.
1292 (delete_alias_vars): Don't check flag_tree_points_to.
1293
2e6c9641
FJ
12942004-08-26 Fariborz Jahanian <fjahanian@apple.com>
1295
5906d013 1296 * config/rs6000/rs6000.h (HARD_REGNO_CALL_PART_CLOBBERED): Added
2e6c9641
FJ
1297 TFmode as additional register mode cloberred by call.
1298
12992004-08-26 Fariborz Jahanian <fjahanian@apple.com>
1300
1301 * config/rs6000/rs6000.c (rs6000_libcall_value): Generate
1302 parallel pattern for library call returning DImode in
1303 mixed mode.
1304
13052004-08-26 Fariborz Jahanian <fjahanian@apple.com>
1306
1307 * config/rs6000/rs6000.c (function_arg): Generate parallel
1308 pattern for more split args.
1309
13102004-08-26 Fariborz Jahanian <fjahanian@apple.com>
1311
1312 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Call
1313 either gen_movdi_di_update or gen_movdi_si_update depending on
1314 target mode.
1315 * config/rs6000/rs6000.md (movdi_update): Changed to movdi_<mode>_update,
1316 to generate two versions.
5906d013 1317
36d59cf7
DB
13182004-08-26 Daniel Berlin <dberlin@dberlin.org>
1319
1320 * Makefile.in (lambda-code.o): New.
1321 (lambda-trans.o): Ditto.
1322 (TREE_DATA_REF_H): Ditto.
1323 (LAMBDA_H): Ditto.
1324 (lambda-mat.o): Use LAMBDA_H.
1325 (tree-data-ref.o): Ditto.
1326 * lambda-code.c: New file. Lambda code generation algorithm.
1327 * lambda-trans.c: Ditto. Lambda transformation matrix support.
1328 * lambda.h: Add lambda loop structures.
1329 Add lambda loopnest structures.
1330 Add lambda body vector structure.
1331 Add lambda linear expression structures.
1332 Add prototypes for functions in new files.
1333 * lambda-mat.c: Include tree.h
1334
13352004-08-26 Daniel Berlin <dberlin@dberlin.org>
5906d013
EC
1336 Sebastian Pop <pop@cri.ensmp.fr>
1337
1338 * tree-data-ref.h: Include lambda.h
36d59cf7 1339 (free_dependence_relation): Declared here.
5906d013 1340 (free_dependence_relations): Ditto.
36d59cf7
DB
1341 (free_data_refs): Ditto.
1342 * tree-data-ref.c (free_dependence_relation): New function.
1343 (free_dependence_relations): Ditto.
1344 (free_data_refs): Ditot.
1345 (analyze_all_data_dependences): Free datarefs and dependence_relations.
1346 (build_classic_dist_vector): Store in the dependence_relations the
1347 information. Each arc in the dependence_relations graph is labelled
1348 with the distance and direction vectors.
1349 (build_classic_dir_vector): Ditto.
1350 (compute_rw_wr_ww_dependences): Renamed again compute_all_dependences.
1351 Now computes again the whole dependence graph including read-read
1352 relations.
1353 (compute_data_dependences_for_loop): Now dependence_relations contains
1354 all the data, and thus it doesn't need to initialize the classic_dir
1355 and classic_dist vectors.
1356 (analyze_all_data_dependences): Adjusted for using the new interface of
1357 compute_data_dependences_for_loop. Remove the statistics dump.
5906d013 1358
a46bbb5a
BW
13592004-08-26 Bob Wilson <bob.wilson@acm.org>
1360
1361 * config/xtensa/xtensa.c (xtensa_ld_opcodes, xtensa_st_opcodes): Delete.
1362 (xtensa_expand_block_move): Update comment.
1363 (override_options): Remove initialization of xtensa_{ld,st}_opcodes.
1364
52351a5e
RE
13652004-08026 Richard Earnshaw <rearnsha@arm.com>
1366
1367 PR target/13506
1368 * toplev.c (crash_signal): If we crashed while emitting
1369 a user asm, then die more gracefully.
1370
b72e46f0
NC
13712004-08-26 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1372
1373 PR target/17119.
1374 * config/m32r.c (gen_compare): Use reg_or_int16_operand when
1375 checking for a valid constant, regardless of sign.
1376
fd9363bf
RH
13772004-08-25 Richard Henderson <rth@redhat.com>
1378
d416c0b3
RH
1379 PR target/16974
1380 * config/alpha/alpha.md (adddi_fp_hack): Don't rely on splitting
1381 if the constant satisfies add_operand.
fd9363bf 1382
45f413e4 13832004-08-25 Richard Henderson <rth@redhat.com>
5906d013 1384
d416c0b3
RH
1385 PR debug/10695
1386 * config/alpha/alpha.c (emit_frame_store_1, emit_frame_store): New.
1387 (alpha_expand_prologue): Handle >32-bit frames. Generate proper
1388 unwind info for >16-bit frames.
45f413e4 1389
7e233208
RK
13902004-08-25 Richard B. Kreckel <richard.kreckel@framatome-anp.com>
1391
1392 PR target/17171
1393 * config/i386/gas.h (ASM_COMMENT_START): Define to "#".
1394
04886dc0
RH
13952004-08-25 Richard Henderson <rth@redhat.com>
1396
d416c0b3
RH
1397 * config/alpha/alpha.c (alpha_cannot_force_const_mem): New.
1398 (TARGET_CANNOT_FORCE_CONST_MEM): New.
04886dc0 1399
aca2bd7c
AM
14002004-08-25 Andrew MacLeod <amacleod@redhat.com>
1401
1402 * doc/tree-ssa.texi: Document new operand iterator.
1403
0423421f
AM
14042004-08-26 Alan Modra <amodra@bigpond.net.au>
1405
1406 PR target/16480
1407 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Don't abort
1408 on "(mem (symbol_ref ..))" rtl. Look at LO_SUM base regs as well
1409 as PLUS base regs.
1410
e4dc702c
PB
14112005-08-28 Paul Brook <paul@codesourcery.com>
1412
1413 * config/arm/symbian.h (SUBTARGET_ASM_FLOAT_SPEC): Default to
1414 -mfpu=vfp -march=armv5t
37d5a9a5 1415 * config/arm/t-symbian: Change multilib to mfloat-abi=softfp.
e4dc702c 1416
6dd53648
RH
14172004-08-25 Richard Henderson <rth@redhat.com>
1418
1419 * target-def.h (TARGET_SCALAR_MODE_SUPPORTED_P): New.
1420 * target.h (struct gcc_target): Add scalar_mode_supported_p.
1421 * targhooks.c (default_scalar_mode_supported_p): New.
1422 * targhooks.h (default_scalar_mode_supported_p): Declare.
1423 * doc/tm.texi (TARGET_SCALAR_MODE_SUPPORTED_P): Document.
1424
1425 * c-common.c (handle_mode_attribute): Query scalar_mode_supported_p
1426 before attempting to create types. Tidy.
1427 * expr.c (vector_mode_valid_p): Use scalar_mode_supported_p.
1428
1429 * config/alpha/alpha.c (alpha_scalar_mode_supported_p): New.
1430 (TARGET_SCALAR_MODE_SUPPORTED_P): New.
1431
bab2b22b
RH
14322004-08-25 Richard Henderson <rth@redhat.com>
1433
1434 * config/i386/freebsd.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
1435 set REAL_MODE_FORMAT for TFmode.
1436
c34be55e
ZL
14372004-08-25 Ziemowit Laski <zlaski@apple.com>
1438
1439 * c-decl.c (grokparm): New function.
1440 * c-tree.h (grokparm): New prototype.
1441
4c124b4c
AM
14422004-08-25 Andrew MacLeod <amacleod@redhat.com>
1443
1444 * tree-ssa-operands.h (struct ssa_operand_iterator_d): New. SSA operand
1445 iterator controlling structure.
1446 (SSA_OP_USE, SSA_OP_DEF, SSA_OP_VUSE, SSA_OP_VMAYUSE, SSA_OP_VMAYDEF,
1447 SSA_OP_VMUSTDEF, SSA_OP_VIRTUAL_USES, SSA_OP_VIRTUAL_DEFS,
1448 SSA_OP_ALL_USES, SSA_OP_ALL_DEFS, SSA_OP_ALL_OPERANDS): New. Operand
1449 iterator flags.
1450 (FOR_EACH_SSA_TREE_OPERAND): New. Iterate over operands as trees.
1451 (FOR_EACH_SSA_USE_OPERAND): New. Iterate over operands as uses.
1452 (FOR_EACH_SSA_DEF_OPERAND): New. Iterate over operands as defs.
1453 (FOR_EACH_SSA_MAYDEF_OPERAND): New. Iterate over V_MAY_DEFs.
5906d013 1454 * tree-ssa-operands.c (NULL_DEF_OPERAND_P, NULL_USE_OPERAND_P): New.
4c124b4c
AM
1455 Empty operand pointers.
1456 * tree-flow-inline.h (op_iter_done): New. Return true if finished.
1457 (op_iter_next_use): New. Return next use_operand_p.
1458 (op_iter_next_def): New. Return next def_operand_p.
1459 (op_iter_next_tree): New. Return next operands as a tree.
1460 (op_iter_init): New. Initialize an iterator structure.
1461 (op_iter_init_use): New. Initialize structure and get the first use.
1462 (op_iter_init_def): New. Initialize structure and get the first def.
1463 (op_iter_init_tree): New. Initialize structure and get the first tree.
1464 (op_iter_next_maydef): New. Return next V_MAY_DEF operands.
5906d013 1465 (op_iter_init_maydef): New. Initialize structure and get the first
4c124b4c
AM
1466 V_MAY_DEF operands.
1467 * tree-cfg.c (tree_duplicate_bb): Use new operand iterator.
5906d013 1468 * tree-dfa.c (compute_immediate_uses_for_stmt,
4c124b4c
AM
1469 redirect_immediate_uses): Use new operand iterator.
1470 (v_may_defs_disappeared_p, v_must_defs_disappeared_p): Delete.
1471 (mark_new_vars_to_rename): Use new operand iterator. Count virtual
1472 operands instead of using *_disappeared_p routines.
1473 * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites, rewrite_stmt,
1474 ssa_rewrite_stmt): Use new operand iterator.
1475 * tree-outof-ssa.c (check_replaceable, find_replaceable_in_bb,
1476 rewrite_trees): Use new operand iterator.
1477 * tree-pretty-print.c (dump_vops): Use new operand iterator.
1478 * tree-sra.c (mark_all_v_defs): Use new operand iterator.
5906d013 1479 * tree-ssa-alias.c (compute_points_to_and_addr_escape,
4c124b4c 1480 dump_points_to_info): Use new operand iterator.
5906d013
EC
1481 * tree-ssa-ccp.c (cp_lattice_meet, visit_stmt, initialize,
1482 replace_uses_in, replace_vuse_in, likely_value, set_rhs): Use new
4c124b4c 1483 operand iterator.
5906d013 1484 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary,
4c124b4c
AM
1485 propagate_necessity): Use new operand iterator.
1486 * tree-ssa-dom.c (cprop_into_stmt, optimize_stmt): Use operand iterator.
1487 (register_definitions_for_stmt): Use new operand iterator. Take stmt as
1488 a parameter instead of a stmt_ann_t.
1489 * tree-ssa-live.c (create_ssa_var_map, calculate_live_on_entry,
1490 build_tree_conflict_graph): Use new operand iterator.
1491 * tree-ssa-loop-im.c (determine_max_movement, single_reachable_address,
1492 rewrite_mem_refs): Use new operand iterator.
5906d013 1493 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt,
4c124b4c
AM
1494 check_loop_closed_ssa_use): Use new operand iterator.
1495 * tree-ssa.c (verify_ssa, replace_immediate_uses): Use operand iterator.
1496 * tree-ssanames.c (release_defs): Use new operand iterator.
1497 * tree-vectorizer.c (vect_create_data_ref): Use new operand iterator.
1498
4185f1ce
AN
14992004-08-25 Adam Nemet <anemet@lnxw.com>
1500
1501 * tlink.c (initial_cwd): New variable.
1502 (tlink_init): Initialize it.
1503 (recompile_files): Use tlink_execute() instead of system(). Don't
1504 duplicate verbose output of collect_execute. Restore initial_cwd.
1505 Update comment before the function.
1506
700686fa
ZL
15072004-08-25 Ziemowit Laski <zlaski@apple.com>
1508
1509 * c-typeck.c (build_c_cast): In ObjC, always preserve (and silently
1510 accept) a cast from one Objective-C pointer type to another.
1511
7fb654ef
PC
15122004-08-25 Paolo Carlini <pcarlini@suse.de>
1513
1514 * doc/install.texi: Document that libstdc++-v3 requires
1515 now automake 1.9.1.
1516
8e8d5162
CT
15172004-08-25 Caroline Tice <ctice@apple.com>
1518
1519 * bb-reorder.c (partition_hot_cold_basic_blocks): Add more details
1520 to comments at start of function.
1521 * cfgbuild.c (make_edges): Add more details to hot/cold partitioning
1522 comment.
5906d013
EC
1523 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
1524 merge_blocks_move_predecessor_nojumps,
1525 merge_blocks_move_successor_nojumps, merge_blocks_move,
8e8d5162
CT
1526 try_crossjump_to_edge, try_crossjump_bb): Likewise.
1527 * cfglayout.c (fixup_reorder_chain): Likewise.
1528 * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
1529 cfg_layout_can_merge_blocks_p): Likewise.
1530 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
5906d013 1531 * passes.c (rest_of_compilation): Update comments for calling
8e8d5162 1532 optimization that partitions hot/cold basic blocks.
5906d013 1533 * doc/invoke.texi: Update documentation of
8e8d5162 1534 freorder-blocks-and-partition flag.
5906d013 1535
41a21e1d
RS
15362004-08-25 Richard Sandiford <rsandifo@redhat.com>
1537
1538 * config/mips/mips.md (reg): Renamed mode attribute from ccreg.
1539 (*mov*_on_*): Adjust accordingly. Add an explicit MOVECC: prefix.
1540
e5f14571
RS
15412004-08-25 Richard Sandiford <rsandifo@redhat.com>
1542
1543 * config/mips/mips.md (any_shift): New code macro.
1544 (optab, insn): New code attributes.
1545 ({ashl,ashr,lshr}[sd]i3): Redefine using :GPR and any_shift.
1546 Use the standard rather than internal patterns for the MIPS16
1547 double-shift optimization.
1548 (*{ashl,ashr,lshr}[sd]i3): New names for the non-mips16 shift patterns.
1549 Redefine using :GPR and any_shift.
1550 (*{ashl,ashr,lshr}si3_extend): Generalize ashlsi3_internal1_extend
1551 to cover all three shifts.
1552 (*{ashl,ashr,lshr}si3_mips16): New names for the mips16 SImode shifts.
1553 Redefine using any_shift. Use :GPR and any_shift to combine splitters.
1554 (*{ashl,ashr,lshr}di3_mips16): New names for the mips16 DImode shifts.
1555
bbbb79d4
GK
15562004-08-24 Geoffrey Keating <geoffk@apple.com>
1557
1558 * gimplify.c (lookup_tmp_var): Separate temporaries when not
1559 optimizing.
1560
d711cf67
JDA
15612004-08-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1562
1563 PR libstdc++/17005 (fix for HP-UX 11.11)
1564 * config.gcc (hppa*-*-*): Move MASK_BIG_SWITCH to target_cpu_default2.
1565 (hppa*-*-hpux*): Consolidate hppa1.0-*-* code. Rework handling of
5906d013 1566 tm_file including pa-hpux1010.h or pa-hpux1111.h when appropriate.
d711cf67
JDA
1567 * config/pa/pa-hpux1010.h, config/pa/pa-hpux1111.h: New files.
1568 * config/pa/pa-hpux.h (TARGET_HPUX): Define.
1569 (LINK_SPEC): Handle march=1.0 option.
1570 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
1571 and _XOPEN_SOURCE_EXTENDED for UNIX 95.
1572 (SUBTARGET_OPTIONS): New define.
1573 (LINK_SPEC): Handle march=1.0 option.
1574 (STARTFILE_SPEC): New define.
1575 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Predefine _XOPEN_UNIX
1576 and _XOPEN_SOURCE_EXTENDED for UNIX 95. Additionally, predefine
1577 _INCLUDE__STDC_A1_SOURCE and _INCLUDE_XOPEN_SOURCE_500 for UNIX 98.
1578 (SUBTARGET_OPTIONS): New define.
1579 (LINK_SPEC): Handle march=1.0 option.
1580 (STARTFILE_SPEC): New define.
1581 * config/pa/pa.c (override_options): Add code to process -munix= option.
1582 * config/pa/pa.h (pa_unix_string, flag_pa_unix): Declare.
1583 (TARGET_HPUX, TARGET_HPUX_10_10, TARGET_HPUX_11_11): Provide default
1584 defines.
1585 (TARGET_OPTIONS): Add SUBTARGET_OPTIONS to option list.
1586 (SUBTARGET_OPTIONS): Provide default define.
1587 * config/pa/pa64-hpux.h (STANDARD_STARTFILE_PREFIX_1,
1588 STANDARD_STARTFILE_PREFIX_2): New defines.
1589 (STARTFILE_SPEC): Provide unix95.o or unix98.o startfiles as necessary.
1590 (ENDFILE_SPEC): Use %O.
1591 * doc/install.texi (hppa*-*-hpux*): Reword paragraph on -g and gas.
1592 Mention issue caused by changing namespace and runtime to UNIX 95/98.
1593 * doc/invoke.texi (HPPA options): Move misplaced text to FRV options.
1594 Document -munix=std option.
1595
5affca01
SB
15962004-08-25 Steven Bosscher <stevenb@suse.de>
1597
1598 * cse.c (cse_around_loop, cse_check_loop_start,
1599 cse_set_around_loop): Remove.
1600 (cse_basic_block): Remove the around_loop argument.
1601 (cse_end_of_basic_block): Remove the after_loop argument.
1602 (cse_main): Likewise.
1603 * rtl.h (cse_main): Update prototype.
1604 * passes.c (rest_of_handle_cse, rest_of_handle_cse2,
1605 rest_of_handle_gcse): Update cse_main calls.
1606
7d60be94
NS
16072004-08-25 Nathan Sidwell <nathan@codesourcery.com>
1608
1609 * tree.h (build_int_cst): New, sign extended constant.
1610 (build_int_cstu): New, zero extended constant.
1611 (build_int_cst_wide): Renamed from build_int_cst.
1612 * tree.c (build_int_cst, build_int_cstu): New.
1613 (build_int_cst_wide): Renamed from build_int_cst.
1614 (make_vector_type, build_common_tree_nodes,
1615 build_common_tree_nodes_2): Adjust build_int_cst calls.
1616 * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
1617 expand_builtin_strpbrk, expand_builtin_fputs,
1618 build_string_literal, expand_builtin_printf,
1619 expand_builtin_sprintf, fold_builtin_classify_type,
1620 fold_builtin_lround, fold_builtin_bitop, fold_builtin_isascii,
1621 fold_builtin_toascii, fold_builtin_isdigit,
1622 simplify_builtin_strstr, simplify_builtin_strpbrk,
1623 fold_builtin_fputs, simplify_builtin_sprintf): Likewise.
1624 * c-common.c (start_fname_decls, fix_string_type, shorten_compare,
1625 DEF_ATTR_INT): Likewise.
1626 * c-decl.c (complete_array_type, check_bitfield_type_and_width):
1627 Likewise.
1628 * c-lex.c (interpret_integer, lex_charconst): Likewise.
1629 * c-parse.in (primary) <TYPES_COMPATIBLE_P> Likewise.
1630 * c-pretty-print.c (pp_c_integer_constant): Likewise.
1631 * c-typeck.c (really_start_incremental_init, push_init_level,
1632 set_nonincremental_init_from_string): Likewise.
1633 * calls.c (load_register_parameters): Likewise.
1634 convert.c (convert_to_pointer): Likewise.
1635 coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
1636 build_fn_info_type, build_fn_info_value, build_ctr_info_value,
1637 build_gcov_info): Likewise.
1638 * except.c (init_eh, assign_filter_values): Likewise.
1639 * expmed.c (store_fixed_bit_field, extract_bit_field,
1640 extract_fixed_bit_field, extract_split_bit_field, expand_shift,
1641 expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
1642 expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
1643 * expr.c (convert_move, emit_group_load, emit_group_store,
1644 expand_assignment, store_constructor, store_field,
1645 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
1646 fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
1647 invert_truthvalue, optimize_bit_field_compare,
1648 decode_field_reference, all_ones_mask_p, constant_boolean_node,
1649 fold_div_compare, fold, fold_read_from_constant_string,
1650 fold_negate_const, fold_abs_const, fold_not_const, round_up,
1651 round_down): Likewise.
1652 * function.c (assign_parm_setup_block): Likewise.
1653 * stmt.c (shift_return_value, expand_case, estimate_case_costs):
1654 Likewise.
1655 * stor-layout.c (layout_type, initialize_sizetypes,
1656 set_min_and_max_values_for_integral_type): Likewise.
1657 * tree-chrec.c (chrec_fold_multiply_poly_poly,
1658 reset_evolution_in_loop): Likewise.
1659 * tree-chrec.h (build_polynomial_chrec): Likewise.
1660 * tree-complex.c (build_replicated_const): Likewise.
1661 * tree-eh.c (honor_protect_cleanup_actions,
1662 lower_try_finally_onedest, lower_try_finally_copy,
1663 lower_try_finally_switch): Likewise.
1664 * tree-mudflap.c (mf_build_string, mx_register_decls,
1665 mudflap_register_call, mudflap_enqueue_constant): Likewise.
1666 * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
1667 * tree-pretty-print.c (dump_generic_node): Likewise.
1668 * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
1669 Likewise.
1670 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
1671 * tree-ssa-loop-niter.c (number_of_iterations_cond,
1672 loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
1673 Likewise.
1674 * tree-ssa-loop-ivcanon.c (create_canonical_iv,
1675 canonicalize_loop_induction_variables): Likewise.
1676 * tree-vectorizer.c (vect_create_index_for_array_ref,
1677 vect_transform_loop_bound, vect_compute_data_ref_alignment):
1678 Likewise.
1679
1680 * config/alpha/alpha.c (alpha_initialize_trampoline, alpha_va_start,
1681 alpha_gimplify_va_arg_1): Likewise.
1682 * config/arm/arm.c (arm_get_cookie_size): Likewise.
1683 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
1684 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
1685 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
1686 * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
1687 mips_gimplify_va_arg_expr): Likewise.
1688 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
1689 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
1690 add_compiler_branch_island): Likewise.
1691 * config/s390/s390.c (s390_va_start): Likewise.
1692 * config/sh/sh.c (sh_va_start): Likewise.
1693 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
1694 Likewise.
1695 * config/xtensa/xtensa.c (xtensa_va_start,
1696 xtensa_gimplify_va_arg_expr): Likewise.
5906d013 1697
7d60be94
NS
1698 * objc/objc-act.c (build_objc_string_object,
1699 build_objc_symtab_template, init_def_list, init_objc_symtab,
1700 init_module_descriptor, generate_static_references,
1701 build_selector_translation_table, get_proto_encoding,
1702 build_typed_selector_reference, build_selector_reference,
1703 build_next_objc_exception_stuff,
1704 build_method_prototype_list_template, generate_descriptor_table,
1705 generate_protocols, build_protocol_initializer,
1706 build_ivar_list_template, build_method_list_template,
1707 build_ivar_list_initializer, generate_ivars_list,
1708 generate_dispatch_table, generate_protocol_list,
1709 build_category_initializer, build_shared_structure_initializer,
1710 generate_shared_structures, handle_impent,
1711 generate_objc_image_info): Likewise.
1712
8b63d0e5
PB
17132004-04-25 Paolo Bonzini <bonzini@gnu.org>
1714
1715 * cfglayout.c (duplicate_insn_chain): Remove references to
1716 NOTE_INSN_LOOP_VTOP and NOTE_INSN_LOOP_CONT.
1717 * cfgloop.h (struct loop): Remove fields vtop, cont and cont_dominator.
1718 * cfgrtl.c (rtl_delete_block): Remove handling of NOTE_INSN_LOOP_CONT.
1719 * final.c (final_scan_insn): Remove references to NOTE_INSN_LOOP_VTOP
1720 and NOTE_INSN_LOOP_CONT.
1721 * insn-notes.def (NOTE_INSN_LOOP_VTOP, NOTE_INSN_LOOP_CONT): Remove.
1722 * jump.c (squeeze_notes): Remove references to NOTE_INSN_LOOP_VTOP
1723 and NOTE_INSN_LOOP_CONT.
1724 * loop.c (scan_loops, find_and_verify_loops, for_each_insn_in_loop,
1725 check_dbra_loop, loop_dump_aux): Remove references to removed notes
1726 and fields.
1727 * reorg.c (mostly_true_jump): Do not rely on NOTE_INSN_LOOP_VTOPs.
1728 * unroll.c (unroll_loop, copy_loop_body, loop_iterations): Remove
1729 references to removed notes and fields.
1730 (subtract_reg_term, ujump_to_loop_cont): Remove.
1731
078e3ffe
PB
17322004-08-25 Paolo Bonzini <bonzini@gnu.org>
1733
8b63d0e5 1734 * doc/install.texi: Document that libcpp does not require
078e3ffe
PB
1735 Automake any longer. Document that Automake 1.9.1 should
1736 work everywhere.
1737
f8ca7e49
ZW
17382004-08-25 Zack Weinberg <zack@codesourcery.com>
1739
1740 * flags.h (enum debug_info_type): Remove DWARF_DEBUG.
1741 * defaults.h (PREFERRED_DEBUGGING_TYPE): Remove check for
1742 DWARF_DEBUGGING_INFO from choice-of-definition chain;
1743 restructure using C89 features (#elif, #error).
1744 * c-lex.c, final.c, opts.c, config/cris/cris.c, config/frv/frv.c
1745 * config/sh/sh.h: Remove references to DWARF_DEBUG.
1746 * doc/invoke.texi: Remove references to DWARF version 1;
1747 clarify why -gdwarf-2<n> doesn't work.
1748
51a904c9
ZW
17492004-08-25 Zack Weinberg <zack@codesourcery.com>
1750
1751 * basic-block.h (BB_SET_PARTITION): Clear old value first.
1752 * cfg.c (clear_bb_flags): Don't clear partition setting.
69b9b0d2 1753 * ifcvt.c (find_if_case_1): Remove ??? comment.
51a904c9 1754
e548ead9
AM
17552004-08-25 Alan Modra <amodra@bigpond.net.au>
1756
1757 PR target/17052
1758 * config/rs6000/rs6000.h (machine_function): Remove sysv_varargs_p.
1759 * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Use
1760 current_function_stdarg in place of sysv_varargs_p.
1761 * config/rs6000/rs6000.c (setup_incoming_varargs): Don't set
1762 sysv_varargs_p.
1763
1e19ac74
RH
17642004-08-24 Richard Henderson <rth@redhat.com>
1765
1766 PR target/16298
1767 * config/i386/i386.c (legitimate_constant_p): Rework to not accept
1768 random codes within CONST.
1769
c61225e7
JW
17702004-08-24 James E Wilson <wilson@specifixinc.com>
1771
1772 * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS): Remove
1773 -freorder-blocks-and-partition.
1774
37840132
JDA
17752004-08-24 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1776
1777 PR middle-end/17044
1778 * tree-ssa-threadupdate.c (redirection_data): Make static.
1779 (thread_block): Use ggc_alloc_cleared to allocate struct
1780 redirection_data. Don't free elements in redirection_data.
1781
cf1d880b
RS
17822004-08-24 Richard Sandiford <rsandifo@redhat.com>
1783
1784 * config/mips/predicates.md (small_data_pattern): Match prefetches.
1785
b3393f1f
ZD
17862004-08-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1787
1788 PR tree-optimization/17016
1789 * tree-ssa-loop-niter.c (number_of_iterations_cond,
1790 number_of_iterations_exit): Use POINTER_TYPE_P instead
1791 of testing for POINTER_TYPE.
1792
82b85a85
ZD
17932004-08-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1794
1795 * tree-ssa-loop-ivcanon.c: New file.
1796 * tree-ssa-loop-manip.c (create_iv): New function.
1797 * Makefile.in (tree-ssa-loop-ivcanon.o): Add.
1798 (tree-ssa-loop.o, tree-ssa-loop-manip.o): Add SCEV_H dependency.
1799 * cfgloop.c (mark_single_exit_loops): New function.
1800 (verify_loop_structure): Verify single-exit loops.
1801 * cfgloop.h (struct loop): Add single_exit field.
1802 (LOOPS_HAVE_MARKED_SINGLE_EXITS): New constant.
1803 (mark_single_exit_loops): Declare.
1804 (tree_num_loop_insns): Declare.
1805 * cfgloopmanip.c (update_single_exits_after_duplication): New function.
1806 (duplicate_loop_to_header_edge): Use it.
1807 * common.opt (fivcanon): New flag.
1808 * timevar.def (TV_TREE_LOOP_IVCANON, TV_COMPLETE_UNROLL): New timevars.
1809 * tree-cfg.c (tree_find_edge_insert_loc): Return newly created block.
1810 (bsi_commit_edge_inserts_1): Pass null to tree_find_edge_insert_loc.
1811 (bsi_insert_on_edge_immediate): New function.
1812 * tree-flow.h (bsi_insert_on_edge_immediate,
1813 canonicalize_induction_variables, tree_unroll_loops_completely,
1814 create_iv): Declare.
1815 * tree-optimize.c (init_tree_optimization_passes): Add
1816 pass_iv_canon and pass_complete_unroll.
1817 * tree-pass.h (pass_iv_canon, pass_complete_unroll): Declare.
1818 * tree-scalar-evolution.c (get_loop_exit_condition,
1819 get_exit_conditions_rec, number_of_iterations_in_loop,
1820 scev_initialize): Use single_exit information.
1821 * tree-ssa-loop-niter.c (number_of_iterations_cond): Record
1822 missing assumptions.
1823 (loop_niter_by_eval): Return number of iterations as unsigned
1824 int.
1825 * tree-ssa-loop.c (tree_ssa_loop_init): Mark single exit loops.
1826 (tree_ssa_loop_ivcanon, gate_tree_ssa_loop_ivcanon, pass_iv_canon,
1827 tree_complete_unroll, gate_tree_complete_unroll, pass_complete_unroll):
1828 New passes.
1829 (tree_ssa_loop_done): Call free_numbers_of_iterations_estimates.
1830 * tree-ssanames.c (make_ssa_name): Allow creating ssa name before
1831 the defining statement is ready.
1832 * tree-vectorizer.c (vect_create_iv_simple): Removed.
1833 (vect_create_index_for_array_ref, vect_transform_loop_bound):
1834 Use create_iv.
1835 (vect_transform_loop_bound): Use single_exit information.
1836 (vect_analyze_loop_form): Cleanup bogus tests.
1837 (vectorize_loops): Do not call flow_loop_scan.
1838 * tree.h (may_negate_without_overflow_p): Declare.
1839 * fold-const.c (may_negate_without_overflow_p): Split out from ...
1840 (negate_expr_p): ... this function.
1841 (tree_expr_nonzero_p): Handle overflowed constants correctly.
1842 * doc/invoke.texi (-fivcanon): Document.
1843 * doc/passes.texi: Document canonical induction variable creation.
1844
b3c90666
RS
18452004-08-24 Richard Sandiford <rsandifo@redhat.com>
1846
1847 * config/mips/mips.h (ISA_HAS_INT_CONDMOVE): Delete.
1848 * config/mips/mips.c (print_operand): Fold %B/%b handling into %T/%t,
1849 using the mode of the operand to decide between them.
1850 * config/mips/mips.md (MOVECC): New mode macro.
1851 (ccreg): New mode attribute.
1852 (*mov{si,di,sf,df}_on_{cc,si,di}): Name formerly unnamed patterns.
1853 Redefine using :GPR and :MOVECC. Use %T and %t for the condition.
1854 (mov[sd]icc): Redefine using :GPR.
1855
4767c570
RS
18562004-08-24 Richard Sandiford <rsandifo@redhat.com>
1857
04550232
RS
1858 * config/mips/mips-protos.h (mips_emit_prefetch): Delete.
1859 (mips_prefetch_cookie): New function.
1860 * config/mips/mips.c (print_operand_address): Fix handling of
1861 ADDRESS_CONST_INT.
1862 (mips_emit_prefetch): Delete.
1863 (mips_prefetch_cookie): New function.
1864 * config/mips/mips.md (prefetch): Turn into a define_insn. Use a
1865 mode of QImode for the address_operand. Use mips_prefetch_cookie
1866 to calculate the first "pref" operand.
1867 (prefetch_[sd]i, prefetch_[sd]i_address): Delete.
1868 (prefetch_indexed_[sd]i): Redefine using :P. Use mips_prefetch_cookie.
4767c570 1869
a657c98a
RE
18702004-08-24 Richard Earnshaw <rearnsha@arm.com>
1871
1872 * arm.md: Include predicates.md.
1873 * predicates.md: New file.
1874 * arm.c (s_register_operand, arm_hard_register_operand)
1875 (arm_general_register_operand, f_register_operand, reg_or_int_operand)
1876 (arm_immediate_operand, arm_neg_immediate_operand)
1877 (arm_not_immediate_operand, arm_rhs_operand, arm_rhsm_operand)
1878 (arm_add_operand, arm_addimm_operand, arm_not_operand)
1879 (offsettable_memory_operand, alignable_memory_operand)
1880 (arm_reload_memory_operand, arm_float_rhs_operand)
1881 (arm_float_add_operand, vfp_compare_operand, arm_float_compare_operand)
1882 (index_operand, shiftable_operator, logical_binary_operator)
1883 (shift_operator, equality_operator, arm_comparison_operator)
1884 (minmax_operator, cc_register, dominant_cc_register)
1885 (arm_extendqisi_mem_op, power_of_two_operand, nonimmediate_di_operand)
1886 (di_operand, nonimmediate_soft_df_operand, soft_df_operand)
1887 (const_shift_operand, load_multiple_operation)
1888 (store_multiple_operation, multi_register_push, thumb_cmp_operand)
1889 (thumb_cmpneg_operand, thumb_cbrch_target_operand)
1890 (cirrus_register_operand, cirrus_fp_register)
1891 (cirrus_shift_const): Delete, replaced with equivalents in
1892 predicates.md.
1893 (shift_op): Handle ROTATE.
1894 * arm-protos.h: Delete declarations for above.
1895 * arm.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
1896 * t-arm (MD_INCLUDES): Add predicates.md.
1897 (s-preds): Depends on MD_INCLUDES.
1898
886ce862
RS
18992004-08-24 Richard Sandiford <rsandifo@redhat.com>
1900
1901 * config/mips/mips.c (mips_gen_conditional_trap): Fix mode.
1902 * config/mips/mips.md (*conditional_trap[sd]i): Name previously unnamed
1903 patterns. Redefine using :GPR. Give the match_operator a mode.
1904 Use '%2' rather than '%z2' for operand 2.
1905
be659abd
RS
19062004-08-24 Richard Sandiford <rsandifo@redhat.com>
1907
1908 * config/mips/mips.md (load_call[sd]i): Redefine using :P. Add mode
1909 attribute.
1910
92dcb882
RS
19112004-08-24 Richard Sandiford <rsandifo@redhat.com>
1912
1913 * config/mips/mips.md (indirect_jump): Use force_reg. Adjust names
1914 of internal patterns.
1915 (indirect_jump[sd]i): Renamed from indirect_jump_internal[12].
1916 Redefine using :P.
1917 (tablejump): Use expand_binop to calculate address. Adjust names
1918 of internal patterns.
1919 (tablejump[sd]i): Renamed from tablejump_internal[12].
1920 Redefine using :P.
1921 (tablejump_mips16[12]): Delete.
1922
a0160289
RS
19232004-08-24 Richard Sandiford <rsandifo@redhat.com>
1924
1925 * config/mips/mips.md (*seq_[sd]i, *seq_[sd]i_mips16, *sne_[sd]i)
1926 (*sgt_[sd]i, *sgt_[sd]i_mips16, *sge_[sd]i, *slt_[sd]i)
1927 (*slt_[sd]i_mips16, *sle_[sd]i, *sle_[sd]i_mips16, *sgtu_[sd]i)
1928 (*sgtu_[sd]i_mips16, *sge_[sd]i, *sltu_[sd]i, *sltu_[sd]i_mips16)
1929 (*sleu_[sd]i, *sleu_[sd]i_mips16): Redefine using :GPR.
1930
2c4402f4
RS
19312004-08-24 Richard Sandiford <rsandifo@redhat.com>
1932
1933 * config/mips/mips.md (cmpsi, cmpdi): Redefine using :GPR.
1934 (*branch_zero[sd]i): Renamed from branch_zero{,_di}. Redefine
1935 using :GPR.
1936 (*branch_zero[sd]i_inverted): Likewise branch_zero{,_di}_inverted.
1937 (*branch_equality[sd]i): Likewise branch_equality{,_di}.
1938 (*branch_equality[sd]i_inverted): Likewise
1939 branch_equality{,_di}_inverted.
1940 (*branch_equality[sd]i_mips16): Name formerly unnamed patterns.
1941 Redefine using :GPR.
1942
b5c2f1d1
ZW
19432004-08-24 Zack Weinberg <zack@codesourcery.com>
1944
1945 * rtl.def: Reorganize, placing all codes used only in machine
1946 descriptions at the end.
1947
9e995780
ZW
1948 * rtl.def: Wrap MD-only codes in #ifdef GENERATOR_FILE.
1949 * gengtype.c: Don't include rtl.h. Define enum rtx_code and
1950 rtx_name, rtx_format arrays by direct reference to rtl.def,
1951 first undefining GENERATOR_FILE. Define enum insn_note and
1952 note_insn_name array by direct reference to insn-notes.def.
1953 (adjust_field_rtx_def): Remove local definition of rtx_name.
1954 Use symbolic names for insn notes.
1955 * Makefile.in (gengtype.o): Update dependencies.
1956
076c7ab8
ZW
19572004-08-24 Zack Weinberg <zack@codesourcery.com>
1958
1959 * basic-block.h (struct basic_block_def): Reorder fields to
1960 eliminate interior padding. Remove 'partition' field.
1961 (BB_DISABLE_SCHEDULE, BB_HOT_PARTITION, BB_COLD_PARTITION)
1962 (BB_UNPARTITIONED, BB_PARTITION, BB_SET_PARTITION)
1963 (BB_COPY_PARTITION): New macros.
1964 * bb-reorder.c, cfgcleanup.c, cfglayout.c, cfgrtl.c, ifcvt.c
1965 Replace all references to the 'partition' field of a basic
1966 block with new macros.
1967
1968 * insn-notes.def: Delete NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
1969 * final.c (final_scan_insn): Don't handle it.
1970 * modulo-sched.c: Set BB_DISABLE_SCHEDULE flag on g->bb
1971 instead of emitting a NOTE_INSN_DISABLE_SCHED_OF_BLOCK note.
1972 * sched-rgn.c (sched_is_disabled_for_current_region_p):
1973 Look for a BB_DISABLE_SCHEDULE flag on the block instead of a note.
1974
8c1d6d62
NS
19752004-08-24 Nathan Sidwell <nathan@codesourcery.com>
1976
1977 * c-decl.c (c_init_decl_processing): Adjust
1978 build_common_tree_nodes call.
1979 * expmed.c (const_mult_add_overflow_p): Use
1980 build_distinct_type_copy.
1981 * stor-layout.c (early_type_list): Remove.
1982 (layout_type): Don't append to early_type_list.
1983 (initialize_sizetypes): Add signed_p argument.
1984 (set_sizetype): Overwrite the stub type nodes directly.
1985 * tree.c (copy_node_stat): Clear a type's value cache here ...
1986 (build_distinct_type): ... not here.
1987 (build_common_tree_nodes): Add signed_sizetype argument. Adjust.
1988 * tree.h (initialize_sizetypes): Add signed_p argument.
1989 (build_common_tree_nodes): Likewise.
1990
1991 * objc/objc-act.c (get_static_reference): Use
1992 build_variant_type_copy.
1993 (get_protocol_reference): Likewise.
1994 * objc/objc-act.h (TREE_STATIC_TEMPLATE): Use TREE_PRIVATE.
1995
97dc04b3 19962004-08-24 Richard Henderson <rth@redhat.com>
076c7ab8 1997 Andrew Pinski <apinski@apple.com>
97dc04b3
RH
1998
1999 * gimplify.c (gimplify_array_ref_to_plus): Delete.
2000 (gimplify_addr_expr): Do not call gimplify_array_ref_to_plus
2001 for ARRAY_REF.
2002
2003 * config/rs6000/rs6000.c (altivec_expand_builtin): Go passed
2004 ARRAY_REF also to get to the STRING_CST.
2005
72cdc543
PB
20062004-08-24 Paul Brook <paul@codesourcery.com>
2007
2008 * config/arm/arm.c (arm_override_options): Update error message.
2009 * config/arm/arm.h (TARGET_HARD_FLOAT): Rename to
2010 TARGET_HARD_FLOAT_ABI.
2011 (TARGET_SOFT_FLOAT_ABI): Rename to TARGET_HARD_FLOAT.
2012 (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Use TARGET_HARD_FLOAT_ABI.
2013
bd5ca07e
NC
20142004-08-24 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2015
2016 PR target/17093
2017 * config/m32r.md (movsi_sda): Add SI mode specification to
2018 UNSPEC.
2019
20202004-08-24 Nick Clifton <nickc@redhat.com>
2021
2022 * config/m32r/m32r.h (PREDICATE_CODES): Remove duplicate definition
2023 of seth_add3_operand.
2024
d46cd2be
NS
20252004-08-24 Nathan Sidwell <nathan@codesourcery.com>
2026
2027 * Makefile.in (PROTO_OBJS): Add errors.o.
2028 * protoize.c (fancy_abort): Remove.
2029 * mips-tfile.c (fancy_abort): Add parameters.
2030
748fa294
JW
20312004-08-24 Jonathan Wakely <redi@gcc.gnu.org>
2032
2033 * doc/trouble.texi (C++ misunderstandings): Fix example code.
2034
4505f099
AT
20352004-08-24 Andreas Tobler <a.tobler@schweiz.ch>
2036
2037 * Makefile.in (HOOKS_H): Add dependency on MACHMODE_H.
2038 (host-default.o): Add dependency on HOOKS_H.
2039 * config/x-linux: Likewise.
2040 * config/x-solaris: Likewise.
2041 * config/i386/x-mingw32: Likewise.
2042 * config/rs6000/x-darwin: Likewise.
2043
a2fe1975
JW
20442004-08-23 James E Wilson <wilson@specifixinc.com>
2045
2046 * reg-notes.def (REG_NOTE): In comment, change DEF_INSN_NOTE to
2047 DEF_REG_NOTE.
2048
c3f216e2
MM
20492004-08-23 Mark Mitchell <mark@codesourcery.com>
2050
2051 PR c/14492
2052 * dwarf2out.c (loc_descriptor_from_tree): Robustify.
2053
2e6ae27f
DN
20542004-08-23 Diego Novillo <dnovillo@redhat.com>
2055
2056 * cfg.c (check_bb_profile): Fix typos.
2057 * function.c (assign_parm_is_stack_parm): Likewise.
2058 * tree-nested.c: Likewise.
2059
d685c974
DJ
20602004-08-23 Daniel Jacobowitz <dan@debian.org>
2061
2062 * ggc-zone.c (struc alloc_chunk): Rearrange flag bits and SIZE.
2063 Remove TYPECODE.
2064 (ggc_alloc_zone_1): Mark TYPE as unused. Don't save it in the chunk.
2065
f676971a
EC
20662004-08-23 Eric Christopher <echristo@redhat.com>
2067
2068 * defaults.h (VECTOR_MODE_SUPPORTED_P): Remove macro.
2069 * system.h (VECTOR_MODE_SUPPORTED_P): Poison.
2070 * target-def.h (TARGET_VECTOR_MODE_SUPPORTED_P): Define.
2071 * target.h: Ditto.
2072 * hooks.h: Include machmode.h.
2073 (hook_bool_mode_false): Declare.
2074 * hooks.c (hook_bool_mode_false): Define.
2075 * expr.c (vector_mode_valid_p): Use targetm.vector_mode_supported_p.
2076 * stor-layout.c (layout_type): Ditto.
2077 * config/alpha/alpha.c (alpha_vector_mode_supported_p): New function.
2078 Define to target macro.
2079 * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): Delete.
2080 * config/arm/arm.c: Ditto. Use.
2081 * config/arm/arm.h: Ditto.
2082 * config/arm/arm-protos.h: Ditto.
2083 * config/i386/i386.c: Ditto.
2084 * config/i386/i386.h: Ditto.
2085 * config/rs6000/rs6000.c: Ditto.
2086 * config/rs6000/rs6000.h: Ditto.
2087 * config/sh/sh.c: Ditto.
2088 * config/sh/sh.h: Ditto.
2089 * config/sh/sh-protos.h: Ditto.
2090 * config/sh/sh.md: Use.
2091 * doc/tm.texi: Move documentation for VECTOR_MODE_SUPPORTED_P
2092 to TARGET_VECTOR_MODE_SUPPORTED_P.
2093
8dd16ecc
NS
20942004-08-23 Nathan Sidwell <nathan@codesourcery.com>
2095
b3d1f5b4
NS
2096 * Makefile.in (BUILD_ERRORS): Set to build-errors.
2097 (errors.o): New target for host.
2098 (build-errors.o): New target for build.
2099 (genobjs): Replace errors.o with build-errors.
2100 (gengenrtl$(buildexeext)): Add $(BUILD_ERRORS).
2101 (GCOV_OBJS, GCOV_DUMP_OBJS): Add errors.o.
2102 (fix-headers$(build_exeext)): Add $(BUILD_ERRORS).
2103 (fix-header.o): Add errors.h
2104 * collect2.c (fancy_abort): Add parameters.
2105 * collect2.h (fancy_abort): Don't declare.
2106 * errors.h (fancy_abort): Don't declare.
2107 * errors.c: Include either bconfig.h or config.h.
2108 (fancy_abort): Trim filename.
2109 * fix-header.c (v_fatal, fatal): Remove.
2110 (progname): Remove definition.
2111 (main): Set progname here.
2112 * gcc.c (fancy_abort): Add parameters.
2113 * gcc.h (fancy_abort): Remove declaration.
2114 * gcov.c (fancy_abort): Remove.
2115 * rtl.h (fancy_abort): Don't declare.
2116 (abort): Don't define.
2117 * tree.h (fancy_abort): Don't declare.
2118 (abort): Don't define.
2119 * system.h (fancy_abort): Declare.
2120 (abort): Define to fancy_abort.
2121 * fixinc/Makefile.in (ALLOBJ): Add ../build-errors.o
2122
be88a628
NS
2123 * tree.h (enum size_type_kind): Remove USIZETYPE, UBITSIZETYPE.
2124 (usize_type, ubitsizetype): Remove.
2125 * stor-layout.c (set_sizetype): Don't initialize usizetype,
2126 ubitsizetype.
2127 * fold-const.c (size_diffop): TYPE can never be ubitsizetype.
2128
8dd16ecc
NS
2129 * tree.h (build_distinct_type_copy): New.
2130 (build_type_copy): ... here. Rename to ...
2131 (build_variant_type_copy): ... here.
2132 * tree.c (build_qualified_type): Rename build_type_copy call.
2133 (build_distinct_type_copy): New, broken out of ...
2134 (build_type_copy): ... here. Rename to ...
2135 (build_variant_type_copy): ... here. Use
2136 build_distinct_type_copy.
2137 (build_common_tree_nodes_2): Rename build_type_copy call.
2138 * c-common.c (c_common_nodes_and_builtins): Rename build_type_copy
2139 call.
2140 (handle_packed_attribute, handle_unused_attribute,
2141 handle_transparanet_union_attribute, handle_aligned_attribute,
2142 handle_deprecated_attribute): Likewise.
2143 * c-decl.c (clone_underlying_type, store_parm_decls_oldstyle):
2144 Likewise.
2145 * config/arm/arm.c (arm_handle_isr_attribyte): Likewise.
2146 * config/rs6000/rs6000.c (rs6000_init_builtins): Use
2147 build_distinct_type_copy.
2148
e8bf0f3b
RS
21492004-08-23 Richard Sandiford <rsandifo@redhat.com>
2150
2151 * config/mips/mips.md (mfhilo_[sd]i): Redefine using :GPR. Add mode
2152 attribute.
2153
4d06ed0a
RS
21542004-08-23 Richard Sandiford <rsandifo@redhat.com>
2155
2156 * config/mips/mips.md (length): Don't use mips_fetch_insns for indexed
2157 loads and stores.
2158 (*lwxc1_<mode>, *ldxc1_<mode>, *swxc1_<mode>, *sdxc1_<mode>): Name
2159 formerly unnamed patterns. Redefine using :P for the address. Remove
2160 explicit length attributes.
2161
a3631d97
ZD
21622004-08-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2163
2164 * tree-ssa-loop-im.c (fem_single_reachable_address, for_each_memref):
2165 New functions.
2166 (single_reachable_address): Use them.
2167 (schedule_sm): Add dump.
2168 (is_call_clobbered_ref): New function.
2169 (determine_lsm_reg): Check whether the reference is call clobbered.
2170 Only work for gimple_reg_type values.
2171
b1f58428
RS
21722004-08-23 Richard Sandiford <rsandifo@redhat.com>
2173
2174 * config/mips/mips.md (*mov<mode>_ra): Name previously unnamed MIPS16
2175 $31 store insns. Redefine using :GPR.
2176
237b301e
RS
21772004-08-23 Richard Sandiford <rsandifo@redhat.com>
2178
2179 * config/mips/mips.md (P): New mode macro.
2180 (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i)
2181 (*load_got[sd]i, *low[sd]i, *low[sd]i_mips16): Redefine using :P.
2182 Add mode attributes.
2183
c9081a92
RS
21842004-08-23 Richard Sandiford <rsandifo@redhat.com>
2185
2186 * config/mips/mips.md (UNSPEC_[LS][WD][LR]): Delete in favor of...
2187 (UNSPEC_{LOAD,STORE}_{LEFT,RIGHT}): ...these new constants. Shuffle
2188 later constants to cover the gap.
2189 (load, store): New mode attributes.
2190 (mov_l[wd]l, mov_l[wd]r, mov_s[wd]l, mov_s[wd]r): Redefine using :GPR.
2191 Use new unspec constants.
2192
3d1f285d
RS
21932004-08-23 Richard Sandiford <rsandifo@redhat.com>
2194
2195 * config/mips/mips.md (one_cmpl[sd]i2): Redefine using :GPR.
2196 (and[sd]3, ior[sd]i3, xor[sd]i3): Likewise. Change 32-bit patterns
2197 to use register_operand rather than uns_arith_operand as the predicate
2198 for operand 1. Remove redundant MIPS16 force_reg() for operand 1.
2199 (*and[sd]i3, *ior[sd]i3, *xor[sd]i3): Name formerly unnamed patterns.
2200 Redefine using :GPR. Make same predicate change here. Extend the
2201 commutativity of operands 1 and 2 from the SImode version to the
2202 DImode one.
2203 (*and[sd]i3_mips16, *ior[sd]i3_mips16, *xor[sd]i3_mips16): Likewise,
2204 but with no predicate changes.
2205 (*nor[sd]i3): Redefine using :GPR.
2206
c0e1b12f
ZD
22072004-08-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2208
2209 * tree-ssa-operands.c (get_call_expr_operands): Add VUSE operands for
2210 noreturn functions.
2211
400a9325
RS
22122004-08-23 Richard Sandiford <rsandifo@redhat.com>
2213
2214 * config/mips/mips.h (ISA_HAS_DCLZ_DCLO): Delete.
2215 * config/mips/mips.md (abs[sd]i2): Redefine using :GPR. Only use
2216 branch-likely insns for absdi2 if GENERATE_BRANCHLIKELY. Use "%."
2217 rather than "%z2" (with a fake const0_rtx for operand 2).
2218 (ffs[sd]i2): Redefine using :GPR.
2219 (clz[sd]i2): Likewise. Use ISA_HAS_CLO_CLZ for the 64-bit case.
2220
2222da3a
RS
22212004-08-23 Richard Sandiford <rsandifo@redhat.com>
2222
2223 * config/mips/mips.md ({,u}divmod[sd]i4): Redefine using :GPR.
2224
15ac4ccf
RS
22252004-08-23 Richard Sandiford <rsandifo@redhat.com>
2226
2227 * config/mips/mips.md (any_extend): New code macro.
2228 (u, su): New code attributes.
2229 ({,u}mulsidi3, {,u}mulsidi3_32bit_internal, {,u}mulsidi3_32bit_r4000)
2230 ({u,s}mulsi3_highpart, {u,s}mulsi3_highpart_internal)
2231 ({u,s}mulsi3_highpart_mulhi_internal, {s,u}muldi3_highpart)
2232 (*{s,u}mul_acc_di): Redefine using any_extend.
2233 (*{,u}muls_di, *{s,u}msac_di): Likewise. Change names of patterns
2234 to reflect real insn names.
2235 (*mulsidi3_64bit, *mulsidi3_64bit_parts): Replace use of match_operator
2236 with an any_extend template.
2237 ({u,s}mulsi3_highpart_neg_mulhi_internal): Redefine using any_extend.
2238 Add '*' to name.
2239
d46c971d
RS
22402004-08-23 Richard Sandiford <rsandifo@redhat.com>
2241
2242 * config/mips/mips.h (GENERATE_MULT3_SI): Check TARGET_MAD.
2243 * config/mips/mips.md (mul[sd]i3, mul[sd]i3_internal)
2244 (mul[sd]i3_r4000): Redefine using :GPR.
2245 (mulsi3_mult3): Don't check TARGET_MAD separately.
2246 (muldi3_mult3): Moved after mulsi_mult3.
2247
5811cb27
RS
22482004-08-23 Richard Sandiford <rsandifo@redhat.com>
2249
2250 * config.gcc (mips-*-*): Remove definitions of MASK_GAS and
2251 OBJECT_FORMAT_ELF. Set MASK_SPLIT_ADDR by default if using GNU ld.
2252 * config/mips/mips.h (MASK_GAS): Delete. Shuffle later masks down.
2253 (TARGET_GAS, TARGET_MIPS_AS): Delete.
2254 (TARGET_GPWORD): Define to true for n32 on IRIX.
2255 (TARGET_SWITCHES): Remove -mmips-as. Turn -mgas into a no-op.
2256 (MIPS_AS_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC): Delete.
2257 (GAS_ASM_SPEC): Delete, folding into ASM_SPEC.
2258 (ASM_ABI_DEFAULT_SPEC, TARGET_ASM_SPEC): Delete.
2259 (MDEBUG_ASM_SPEC): Delete, folding into...
2260 (SUBTARGET_ASM_DEBUGGING_SPEC): ...here.
2261 (ASM_SPEC): Inline old GAS_ASM_SPEC. Use GNU names for ABI switches.
2262 (EXTRA_SPECS): Remove mips_as_asm_spec, gas_asm_spec, target_asm_spec,
2263 subtarget_mips_as_asm_spec, mdebug_asm_spec. Use MULTILIB_ABI_DEFAULT
2264 to define asm_abi_default_spec.
2265 (ASM_STABS_OP, ASM_STABN_OP, ASM_STABD_OP): Delete.
2266 (TARGET_ASM_SELECT_SECTION): Delete.
2267 * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): Define to 0x7ff0
2268 for non-mips16 code, removing previous workaround for SGI assemblers.
2269 (TARGET_ASM_INTEGER, mips_assemble_integer): Delete.
2270 (TARGET_ASM_ALIGNED_DI_OP): Define this instead.
2271 (override_options): Remove !TARGET_GAS and !have_named_sections code.
2272 (print_operand): Fold TARGET_GAS conditionals into asm strings.
2273 (mips_output_filename): Remove !TARGET_GAS code. Replace use of
2274 ASM_STABS_OP and ASM_STABN_OP.
2275 (mips_file_start): Remove TARGET_MIPS_AS/TARGET_GAS checks.
2276 (mips_output_aligned_decl_common): Remove mention of SGI o32 assembler.
2277 (mips_output_function_prologue): Remove !TARGET_GAS code.
2278 (mips_select_rtx_section): Remove !have_named_sections code.
2279 (mips_select_section): Delete.
2280 * config/mips/mips.md (trap): Remove !TARGET_GAS check.
2281 * config/mips/linux.h (TARGET_DEFAULT): Remove use of MASK_GAS.
2282 * config/mips/sdb.h (PUT_SDB_DEF, PUT_SDB_PLAIN_DEF): Delete.
2283 (PUT_SDB_BLOCK_START, PUT_SDB_BLOCK_END): Fold TARGET_GAS conditional.
2284 * config/mips/vxworks.h (ASM_SPEC): As for mips.h.
2285 * config/mips/windiss.h (ASM_SPEC): Likewise.
2286
032e8348
RS
22872004-08-23 Richard Sandiford <rsandifo@redhat.com>
2288
2289 * read-rtl.c (map_value, mapping, macro_group): New structures.
2290 (BELLWETHER_CODE): New macro.
2291 (modes, codes, bellwether_codes): New variables.
2292 (find_mode, uses_mode_macro_p, apply_mode_macro, find_code)
2293 (uses_code_macro_p, apply_code_macro, apply_macro_to_string)
2294 (apply_macro_to_rtx, uses_macro_p, add_condition_to_string)
2295 (add_condition_to_rtx, apply_macro_traverse, add_mapping)
2296 (add_map_value, initialize_macros): New functions.
2297 (def_hash, def_hash_eq_p): Generalize to anything that points to,
2298 or starts with, a char * field.
2299 (find_macro, read_mapping, check_code_macro): New functions.
2300 (read_rtx_1): New, split out from read_rtx. Handle the new
2301 define_{mode,code}_{macro,attr} constructs. Use find_macro
2302 to parse the name of a code or mode. Use BELLWETHER_CODE to
2303 extract the format and to choose a suitable code for rtx_alloc.
2304 Modify recursive invocations to use read_rtx_1.
2305 (read_rtx): Call initialize_macros. Apply code and mode macros
2306 to the rtx returned by read_rtx_1. Cache everything after the
2307 first macro expansion for subsequent read_rtx calls.
2308 * doc/md.texi: Document new .md constructs.
2309 * config/mips/mips.md (GPR): New mode macro.
2310 (d, si8_di5): New mode attributes.
2311 (any_cond): New code macro.
2312 (add[sd]i3): Redefine using :GPR.
2313 (*add[sd]i3): Likewise, renaming from add[sd]i3_internal.
2314 (*add[sd]i3_sp[12], *add<mode>3_mips16): Redefine using :GPR, naming
2315 previously unnamed MIPS16 patterns.
2316 (*addsi3_extended): Renamed from addsi3_internal_2. Fix overly long
2317 lines. Don't match (plus (const_int 0) ...).
2318 (*addsi3_extended_mips16): Name previously unnamed MIPS16 pattern.
2319 Use a define_split to generate the addition.
2320 (sub[sd]i3): Redefine using :GPR. Turn subsi3 into a define_insn.
2321 (subsi3_internal): Delete.
2322 (*subsi3_extended): Renamed from subsi3_internal_2.
2323 (bunordered, bordered, bunlt, bunge, buneq, bltgt, bunle, bungt)
2324 (beq, bne, bgt, bge, blt, ble, bgtu, bgeu, bltu, bleu): Redefine
2325 using an any_cond template.
2326
ecce923e
RS
23272004-08-23 Richard Sandiford <rsandifo@redhat.com>
2328
2329 * read-rtl.c (read_rtx): Tidy use of format_ptr.
2330
a269d6c8
RS
23312004-08-23 Richard Sandiford <rsandifo@redhat.com>
2332
2333 * read-rtl.c (string_obstack): New file-scope variable.
2334 (read_string, read_quoted_string, read_braced_string)
2335 (read_escape): Remove obstack parameter and use string_obstack instead.
2336 (read_rtx): Remove function-local rtl_obstack and initialize
2337 string_obstack instead. Update call to read_string.
2338
9fc3b39a
AP
23392004-08-22 Andrew Pinski <apinski@apple.com>
2340
2341 PR c/15262
2342 * c-typeck.c (build_unary_op): Use &a.b if the foldded lowered
2343 expression is not constant.
2344 (c_finish_return): Do not go through INDIRECT_REF when looking
2345 for the inner expression of an ADDR_EXPR for warning about.
2346
cea49550
RH
23472004-08-22 Richard Henderson <rth@redhat.com>
2348
2349 PR 17075
2350 * cfgexpand.c (expand_gimple_tailcall): Detect when we can both
2351 create new blocks and fall through.
2352 (expand_gimple_basic_block): Update to match.
2353
0b540f12
UW
23542004-08-22 Ulrich Weigand <uweigand@de.ibm.com>
2355
2356 * reload.c (find_reloads_address): Make return value tri-state.
2357 Return -1 if LEGITIMIZE_RELOAD_ADDRESS succeeded.
2358 (find_reloads): Assume that reloaded addresses match 'o' or
2359 EXTRA_MEMORY_CONSTRAINT constraints only if find_reloads_address
2360 returned 1 (not -1). Omit optional reloads for address operands
2361 only if find_reloads_address returned 1 (not -1).
2362
2363 * config/s390/s390.c (legitimize_reload_address): New function.
2364 * config/s390/s390-protos.h (legitimize_reload_address): Declare.
2365 * config/s390/s390.h (LEGITIMIZE_RELOAD_ADDRESS): Define. Call
2366 legitimize_reload_address.
2367
7f5e6307
RH
23682004-08-22 Richard Hendersion <rth@redhat.com>
2369
2370 * tree.h (SAVE_EXPR_RESOLVED_P): New.
2371 * gimplify.c (gimplify_save_expr): Use it.
2372 * expr.c (expand_expr_real_1): Likewise. Also set DECL_IGNORED_P
2373 on the temporary variable.
2374
efd610a6
AP
23752004-08-22 Andrew Pinski <pinskia@physics.uc.edu>
2376
2377 * fold-const.c (rtl_expr_nonnegative_p): Delete.
2378 * tree.h (rtl_expr_nonnegative_p): Remove.
2379
324a6c95
SB
23802004-08-22 Steven Bosscher <stevenb@suse.de>
2381
2382 * config/i386/ppro.md (ppro_complex_insn): Add missing check
2383 for cpu==pentiumpro.
2384
2385 * combine.c (struct reg_stat): Fix comment typo.
2386
41db8425
JM
23872004-08-22 Joseph S. Myers <jsm@polyomino.org.uk>
2388
2389 * c-tree.h (c_sizeof_nowarn): Remove.
2390
00325bce
JM
23912004-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
2392
2393 * c-decl.c (set_array_declarator_type): Rename to
2394 set_array_declarator_inner.
2395 (build_c_parm, build_attrs_declarator, build_function_declarator):
2396 New functions.
2397 (make_pointer_declarator): Call build_attrs_declarator.
2398 * c-tree.h (set_array_declarator_type): Rename to
2399 set_array_declarator_inner.
2400 (build_c_parm, build_attrs_declarator, build_function_declarator):
2401 New prototypes.
2402 * c-parse.in (after_type_declarator,
2403 parm_declarator_starttypename, parm_declarator_nostarttypename,
2404 notype_declarator, absdcl_maybe_attribute, direct_absdcl1, parm,
2405 firstparm): Use these functions
2406
60919bce
JM
24072004-08-21 Joseph S. Myers <jsm@polyomino.org.uk>
2408
2409 * c-decl.c (build_array_declarator, set_array_declarator_type,
2410 start_decl, grokdeclarator, grokparms): Change boolean parameters
2411 to type bool.
2412 * c-tree.h (build_array_declarator, set_array_declarator_type,
2413 start_decl): Update prototypes.
2414 * c-decl.c, c-parse.in: All callers changed.
2415
bdfd0ed4
MS
24162004-08-21 Mike Stump <mrs@apple.com>
2417
2418 * config/rs6000/darwin.h (SUBTARGET_OPTIONS): Move from here, to...
2419 (darwin_fix_and_continue): Likewise.
2420 (darwin_fix_and_continue_switch): Likewise.
2421 * config/darwin.h (SUBTARGET_OPTIONS): ...here, to fix -mone-byte-bool.
2422 (darwin_fix_and_continue): Likewise.
2423 (darwin_fix_and_continue_switch): Likewise.
2424
35da8b56 24252004-08-21 Danny Smith <dannysmith@users.sourceforge.net>
23d34220
DS
2426
2427 PR c++/16030
2428 * config/i386/winnt/c (gen_stdcall_suffix, gen_fastcall_suffix):
2429 Remove, merging into ...
2430 (gen_stdcall_or_fastcall_suffix): New function, returning tree
2431 rather than const char*, and accepting additional parameter.
2432 Don't add suffix to '*'-prefixed symbols or variadic functions.
2433 (i386_pe_encode_section_info): Adjust for call to new function.
2434 Call change_decl_assembler_name.
2435
828a4fe4
MS
24362004-08-20 Mike Stump <mrs@apple.com>
2437
2438 * config/darwin.c (machopic_indirect_data_reference): Mark
2439 stubs as defined.
2440 * config/386/386.c (darwin_local_data_pic): Add.
2441 (legitimate_constant_p): Reorder so that PLUS handling runs
2442 before darwin_local_data_pic to match the ordering in
2443 legitimate_pic_address_disp_p and so that MINUS runs after
2444 darwin_local_data_pic as otherwise the darwin_local_data_pic
2445 logic can be skipped, which would be very bad.
2446 (legitimate_pic_address_disp_p): Move from from here to
2447 darwin_local_data_pic so it can be reused.
2448
85b776df
AM
24492004-08-21 Alan Modra <amodra@bigpond.net.au>
2450
2451 * config/rs6000/linux64.h (DOT_SYMBOLS): Define.
2452 (CRT_CALL_STATIC_FUNCTION): Define !DOT_SYMBOLS version.
2453 (ASM_DECLARE_FUNCTION_SIZE): Modify for !DOT_SYMBOLS.
2454 (ASM_OUTPUT_SOURCE_LINE, DBX_OUTPUT_BRAC, DBX_OUTPUT_NFUN): Likewise.
2455 (RS6000_ABI_NAME): Define as "linux".
2456 (SUBSUBTARGET_OVERRIDE_OPTIONS): Set dot_symbols.
2457 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Select
2458 ABI_AIX when rs6000_abi_name is "linux" and TARGET_64BIT.
2459 * config/rs6000/rs6000-protos.h (rs6000_output_function_entry): Decl.
2460 * config/rs6000/rs6000.c (dot_symbols): New global var.
2461 (rs6000_output_function_entry): New function, modified for
2462 !DOT_SYMBOLS..
2463 (print_operand <case 'z'>): ..extracted from here.
2464 (rs6000_assemble_visibility): Modify for !DOT_SYMBOLS.
2465 (rs6000_output_function_epilogue): Likewise.
2466 (rs6000_elf_declare_function_name): Likewise.
2467 * config/rs6000/rs6000.h (DOT_SYMBOLS): Define.
2468 (ASM_WEAKEN_DECL, ASM_OUTPUT_DEF_FROM_DECLS): Modify for !DOT_SYMBOLS.
2469 * configure.ac (HAVE_LD_NO_DOT_SYMS): Add new AC_DEFINE.
2470 * configure: Regenerate.
2471 * config.in: Regenerate.
2472
14d3dc34
MM
24732004-08-20 Mark Mitchell <mark@codesourcery.com>
2474
0e544c37
MM
2475 * reload.c (find_reloads_address): Fix thinko in previous change.
2476
14d3dc34
MM
2477 * reload.c (find_reloads_address): Reload the sum of a LO_SUM and
2478 a CONST_INT.
2479
f3b2657c
JJ
24802004-08-20 Jakub Jelinek <jakub@redhat.com>
2481
2482 PR rtl-optimization/17099
2483 * combine.c (force_to_mode): Check if inner_mask has any bits set
2484 outside of GET_MODE (x) instead of op_mode.
2485
d2294baa
MM
24862004-08-20 Mark Mitchell <mark@codesourcery.com>
2487
2488 * config.gcc (arm*-*-symbianelf*): Add t-symbian Makefile
2489 fragment.
2490 * config/arm/bpabi.h (RENAME_LIBRARY_SET): Fix typo.
2491 (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=3 to the assembler.
2492 * config/arm/symbian.h (SUBTARGET_CPU_DEFAULT): Assume ARMV5
2493 architecture.
2494 (SUBTARGET_ASM_FLOAT_SPEC): Default to -mfpu=vfp for hard-float
2495 configurations.
2496 * config/arm/t-symbian: New file.
2497
753d0efa
AP
24982004-08-20 Andrew Pinski <apinski@apple.com>
2499
2500 * regrename.c (kill_value_regno): ANSIfy.
2501
627b6fe2
DJ
25022004-08-20 Dale Johannesen <dalej@apple.com>
2503
324a6c95 2504 * config/rs6000/rs6000.c (rs6000_rtx_costs): Improve DIV/MOD.
627b6fe2 2505
d64d5e80
DJ
25062004-08-20 Daniel Jacobowitz <dan@debian.org>
2507
2508 * regrename.c (kill_value_one_regno): Renamed from kill_value_regno.
2509 (kill_value_regno): New function, derived from kill_value.
2510 (kill_value): Update.
2511 (copyprop_hardreg_forward_1): Update call to kill_value_regno.
2512
af75a7ea 25132004-08-20 Daniel Berlin <dberlin@dberlin.org>
f676971a 2514
af75a7ea
DB
2515 Fix PR tree-optimization/17111
2516 * tree-ssa-pre.c (create_value_expr_from): Don't change the types
2517 of non-value_handles.
2518 (bitmap_set_contains): All constants are in every set.
2519
0a936b12
NS
25202004-08-20 Nathan Sidwell <nathan@codesourcery.com>
2521
2522 * fold-const.c (round_up, round_down): Use build_int_cst.
2523 Optimize common case.
2524
774acadf
ZW
25252004-08-20 Zack Weinberg <zack@codesourcery.com>
2526 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2527
324a6c95 2528 * config/pa/pa-protos.h (readonly_data, one_only_readonly_data_section,
774acadf
ZW
2529 one_only_data_section): Rename to som_readonly_data_section,
2530 som_one_only_readonly_data_section and som_one_only_data_section.
324a6c95 2531 * config/pa/pa.c (ONE_ONLY_TEXT_SECTION_ASM_OP,
0a936b12
NS
2532 NEW_TEXT_SECTION_ASM_OP, DEFAULT_TEXT_SECTION_ASM_OP): Delete
2533 conditional defines.
774acadf
ZW
2534 (som_text_section_asm_op): Replace ONE_ONLY_TEXT_SECTION_ASM_OP,
2535 NEW_TEXT_SECTION_ASM_OP and DEFAULT_TEXT_SECTION_ASM_OP with actual
2536 string values.
2537 (pa_select_section): Use renamed section functions.
2538 * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS,
324a6c95 2539 SOM_READONLY_DATA_SECTION_FUNCTION,
774acadf 2540 SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION,
324a6c95
SB
2541 SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION):
2542 Define here ...
2543 * config/pa/som.h: ... not here.
2544 (DEFAULT_TEXT_SECTION_ASM_OP, NEW_TEXT_SECTION_ASM_OP,
774acadf
ZW
2545 ONE_ONLY_TEXT_SECTION_ASM_OP, READONLY_DATA_ASM_OP,
2546 ONE_ONLY_READONLY_DATA_SECTION_ASM_OP,
324a6c95
SB
2547 ONE_ONLY_DATA_SECTION_ASM_OP): Delete.
2548 (READONLY_DATA_SECTION): Use som_readonly_data_section.
774acadf 2549
3224bead
NS
25502004-08-20 Nathan Sidwell <nathan@codesourcery.com>
2551
fabead06
NS
2552 * fold-const.c (int_const_binop): Don't generate non-overflowing
2553 size-types specially.
2554 (fold_convert_const): Likewise.
2555
3224bead
NS
2556 * stor-layout.c (initialize_sizetypes): Set SIZETYPE earlier,
2557 clear cache on copied sizetype.
2558
fb38008e
BE
25592004-08-20 Ben Elliston <bje@au.ibm.com>
2560
2561 * configure.ac: Don't escape apostrophe in --enable-coverage help.
2562 * configure: Regenerate.
2563
a9024779
DS
25642004-08-20 Danny Smith <dannysmith@users.sourceforge.net>
2565
2566 PR 5620
2567 * gcc.c (struct stat input_stat): Don't define if
2568 HOST_LACKS_INODE_NUMBERS
2569 (do_spec_1): If HOST_LACKS_INODE_NUMBERS, use lrealpath rather
2570 than stat to determine if temp file is same as input file.
2571 * doc/hostconfig.texi: Document HOST_LACKS_INODE_NUMBERS.
2572 * config/i386/xm-mingw32.h: Define HOST_LACKS_INODE_NUMBERS
2573
82563d35
RS
25742004-08-20 Richard Sandiford <rsandifo@redhat.com>
2575
2576 * configure.ac (mips*-*-*): Print an error if not using GAS.
2577 * configure: Regenerated.
2578 * doc/install.texi: Remove irix5 bullet from --with-gnu-as. Remove
2579 comments about buggy MIPSpro assemblers.
2580 * config.gcc (mips-sgi-irix[56]*): Combine stanzas. Include elfos.h
2581 before mips.h and iris.h after it. Use t-iris and t-slibgcc-irix.
2582 Use iris5.h only for IRIX 5 configs. Use iris6.h and t-iris6 for
2583 IRIX 6 configs. Define IRIX_USING_GNU_LD if using GNU ld.
2584 * config/mips/iris5.h (TARGET_IRIX, SWITCHES_NEED_SPACES)
2585 (DEFAULT_SIGNED_CHAR, WORD_SWITCH_TAKES_ARG, SUBTARGET_CC1_SPEC)
2586 (NO_IMPLICIT_EXTERN_C, MIPS_DEFAULT_GVALUE)
2587 (TARGET_ASM_EXTERNAL_LIBCALL): Move to iris.h.
2588 (WCHAR_TYPE, WCHAR_TYPE_SIZE, TARGET_OS_CPP_BUILTINS): Delete in favor
2589 of more general IRIX 6 definitions.
2590 (OBJECT_FORMAT_ELF, ASM_OUTPUT_ASCII, ASM_WEAKEN_LABEL)
2591 (HANDLE_SYSV_PRAGMA): Delete in favor of elfos.h definitions.
2592 (TARGET_IRIX5, ABICALLS_ASM_OP, BSS_SECTION_ASM_OP, HAS_INIT_SECTION)
2593 (LD_INIT_SWITCH, LD_FINI_SWITCH, SUBTARGET_ASM_OPTIMIZING_SPEC)
2594 (ASM_FINAL_SPEC, DBX_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
2595 (PREFERRED_DEBUGGING_TYPE, DWARF2_UNWIND_INFO, SET_FILE_NUMBER)
2596 (LABEL_AFTER_LOC, DOLLARS_IN_IDENTIFIERS, NO_DOLLAR_IN_LABEL)
2597 (TARGET_ASM_NAMED_SECTION, EXTRA_SECTION_FUNCTIONS)
2598 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_WEAK_ALIAS)
2599 (SUBTARGET_EXTRA_SPECS): Delete definitions or undefs.
2600 (LINK_SPEC): Move most of definition to iris.h.
2601 (SUBTARGET_LINK_SPEC): New macro.
2602 (IRIX_STARTFILE_SPEC): Fold into...
2603 (STARTFILE_SPEC): ...here.
2604 (IRIX_ENDFILE_SPEC): Fold into...
2605 (ENDFILE_SPEC): ...here.
2606 * config/mips/iris6.h (TARGET_IRIX5): Remove override.
2607 (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE, WINT_TYPE_SIZE)
2608 (DWARF_OFFSET_SIZE, DWARF_INITIAL_LENGTH_SIZE, SET_ASM_OP)
2609 (LINK_ELIMINATE_DUPLICATE_LDIRECTORIES, ASM_DECLARE_OBJECT_NAME)
2610 (ASM_FINISH_DECLARE_OBJECT, LOCAL_LABEL_PREFIX): Move to iris.h.
2611 (TARGET_OS_CPP_BUILTINS): Likewise. Guard IRIX6-specific bits.
2612 (DWARF2_UNWIND_INFO, DWARF2_GENERATE_TEXT_SECTION_LABEL)
2613 (SUBTARGET_CPP_SPEC, DWARF2_DEBUGGING_INFO, MIPS_DEBUGGING_INFO)
2614 (PREFERRED_DEBUGGING_TYPE, DWARF2_FRAME_INFO, MD_EXEC_PREFIX)
2615 (ASM_DECLARE_FUNCTION_NAME, ASM_DECLARE_FUNCTION_SIZE)
2616 (FUNCTION_NAME_ALREADY_DECLARED, SUPPORTS_INIT_PRIORITY)
2617 (POPSECTION_ASM_OP, SUBTARGET_ASM_SPEC, SUBTARGET_MIPS_AS_ASM_SPEC)
2618 (SUBTARGET_ASM_DEBUGGING_SPEC, SUBTARGET_ASM_OPTIMIZING_SPEC)
2619 (BSS_SECTION_ASM_OP*, READONLY_DATA_SECTION_ASM_OP*)
2620 (EH_FRAME_SECTION_NAME, MUST_USE_SJLJ_EXCEPTIONS, CTORS_SECTION_ASM_OP)
2621 (DTORS_SECTION_ASM_OP, TARGET_ASM_NAMED_SECTION, EH_FRAME_SECTION_NAME)
2622 (ASM_OUTPUT_ALIGN, ASM_OUTPUT_FILENAME, ASM_OUTPUT_ALIGNED_LOCAL)
2623 (ASM_OUTPUT_ALIGNED_BSS): Remove definitions or undefs.
2624 (TARGET_IRIX6): Define to 1.
2625 (DRIVER_SELF_SPECS): Define.
2626 (DWARF2_FRAME_INFO): Define to 1 rather than !TARGET_SGI_O32_AS.
2627 (SUBTARGET_CC1_SPEC): Remove in favor of DRIVER_SELF_SPECS.
2628 (SUBTARGET_LINK_SPEC): New macro.
2629 (IRIX_STARTFILE_SPEC): Fold into...
2630 (STARTFILE_SPEC): ...here. Remove !mabi=* case.
2631 (SUBTARGET_{,DONT_}WARN_UNUSED_SPEC): New macros.
2632 (LIB_SPEC, LIBGCC_SPEC): Use them.
2633 (LIB_SPEC): Remove !mabi=* case.
2634 (IRIX_ENDFILE_SPEC): Fold into...
2635 (ENDFILE_SPEC): ...here. Remove !mabi=* case.
2636 * config/mips/mips-protos.h (irix_output_external_libcall): Delete.
2637 * config/mips/mips.h (TARGET_IRIX5, TARGET_SGI_O32_AS): Delete.
2638 (TARGET_IRIX6): New macro.
2639 (ASM_ABI_DEFAULT_SPEC): Remove !ELF definition.
2640 (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX, SET_FILE_NUMBER)
2641 (LABEL_AFTER_LOC): Delete.
2642 * config/mips/mips.c (TARGET_ASM_FILE_START, TARGET_ASM_FILE_END)
2643 (TARGET_SECTION_TYPE_FLAGS): Remove TARGET_IRIX versions.
2644 (mips_build_builtin_va_list): Check TARGET_IRIX6.
2645 (override_options): Remove TARGET_SGI_O32_AS-related code.
2646 (irix_output_external_libcall): Make static.
2647 (mips_output_filename): Avoid use of SET_FILE_NUMBER and
2648 LABEL_AFTER_LOC.
2649 (mips_file_start): Tidy guard for ABI sections. Remove use of
2650 ABICALLS_ASM_OP; use .abicalls instead.
2651 (mips_output_aligned_decl_common, mips_declare_object_name)
2652 (mips_finish_declare_object): Remove use of TARGET_SGI_O32_AS.
2653 (mips_output_function_prologue): Set TREE_ASM_WRITTEN if emitting
2654 .globl foo .text directives.
2655 (irix_asm_named_section_1, irix_asm_named_section)
2656 (irix_section_align_entry, irix_section_align_htab)
2657 (irix_orig_asm_out_file, irix_section_align_entry_eq)
2658 (irix_section_align_entry_hash, irix_asm_output_align)
2659 (irix_file_start, irix_section_align_1, copy_file_data)
2660 (irix_file_end, irix_section_type_flags): Delete.
2661 * config/mips/irix-crti.asm (__gcc_init): Move to .gcc_init section.
2662 Use standard section syntax. Remove protective "jr $31".
2663 (__gcc_fini): Likewise .gcc_fini.
2664 * config/mips/irix-crtn.asm: Adjust sections accordingly.
2665 * config/mips/sdb.h (PUT_SDB_SIZE, PUT_SDB_TYPE): Moved from
2666 iris5gas.h.
2667 * config/mips/t-iris (irix-crti.o, irix-crtn.o): New rules, moved
2668 from t-irix-gld.
2669 (EXTRA_MULTILIB_PARTS): Define.
2670 * config/mips/t-iris6: Remove bogus comment.
2671 (EXTRA_MULTILIB_PARTS, CRTSTUFF_T_CFLAGS): Delete.
2672 * config/mips/iris5gas.h, config/mips/iris5gld.h,
2673 config/mips/iris6gas.h, config/mips/iris6gld.h,
2674 config/mips/t-iris5-as, config/mips/t-iris5-gas
2675 config/mips/t-irix-gld: Delete.
2676 * config/mips/iris.h: New file.
2677 * config/mips/t-slibgcc-irix: Renamed from t-iris5-6.
2678
c4cdb8e1
RE
26792004-08-20 Richard Earnshaw <rearnsha@arm.com>
2680
2681 * postreload.c (reload_cse_move2add): Allow any condjump, but check
2682 that the implicit set isn't clobbered in the jump insn.
2683
d55ab31d
MM
26842004-08-19 Mark Mitchell <mark@codesourcery.com>
2685
2686 * defaults.h (TARGET_LIBGCC_LIBFUNCS): Remove.
2687 * optabs.c (init_optabs): Don't check it.
2688 * config/arm/bpabi.h (TARGET_LIBGCC_LIBFUNCS): Do not define.
2689 * doc/tm.texi (TARGET_LIBGCC_FUNCS): Remove.
2690
d75f90f1
AK
26912004-08-18 Andreas Krebbel <krebbel1@de.ibm.com>
2692
2693 * config/s390/s390.md (s390_warn_framesize_string)
2694 (s390_warn_dynamic_string, s390_stack_size_string)
2695 (s390_stack_guard_string): New global string variables.
2696 (s390_warn_framesize, s390_warn_dynamicstack_p, s390_stack_size)
2697 (s390_stack_guard): New global variables.
2698 (override_options): Added checks for the new options.
2699 (s390_emit_prologue): Emit stack check and trap code and perform
2700 compile time stack size checking.
f676971a
EC
2701
2702 * config/s390/s390.h (TARGET_OPTIONS): Added new options
d75f90f1
AK
2703 "warn-framesize", "warn-dynamicstack", "stack-size" and
2704 "stack-guard".
2705
2706 * doc/invoke.texi: Added documentation for the new options.
2707
ca29916b
UW
27082004-08-19 Ulrich Weigand <uweigand@de.ibm.com>
2709
2710 * unwind-dw2-fde.c (get_cie_encoding): Cast argument to strlen
2711 to eliminate warning.
2712 (linear_search_fdes): Declare p as unsigned.
2713 (binary_search_mixed_encoding_fdes): Likewise.
2714 * unwind-dw2.c (get_cie_encoding): Cast argument to strlen
2715 to eliminate warning.
2716 * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Add missing
2717 type cast.
2718
e1d5ee28
UW
27192004-08-19 Ulrich Weigand <uweigand@de.ibm.com>
2720
2721 * config/s390/s390-protos.h (preferred_la_operand_p): Adapt prototype.
2722 * config/s390/s390.c (preferred_la_operand_p): Accept two operands
2723 instead of one. Check for strictly legitimate address.
2724 * config/s390/s390.md ("*la_31"/"*la_64" peepholes): Adapt call
2725 to preferred_la_operand_p, do not call gen_rtx_PLUS in predicate.
2726
19114537
EC
27272004-08-19 Eric Christopher <echristo@redhat.com>
2728
2729 * langhooks-def.h (LANG_HOOKS_UNSAVE_EXPR_NOW): Remove.
2730 * langhooks.h (unsave_expr_now): Ditto.
2731 * tree.h (unsave_expr_1): Remove prototype.
2732 (lhd_unsave_expr_now): Rename to unsave_expr_now.
2733 * tree-inline.c (unsave_expr_1): Move here
2734 from tree.c. Make static.
2735 (unsave_expr_now): Rename from lhd_unsave_expr_now.
2736 * tree-sra.c: Fix up for rename.
2737 * tree-ssa-copy.c: Ditto.
2738 * tree-eh.c: Ditto.
2739 * tree.c (unsave_expr_1): Move to tree-inline.c.
2740
d5bfecf2
CT
27412004-08-19 Caroline Tice <ctice@apple.com>
2742
324a6c95
SB
2743 * config/i386/cygming.h (switch_to_section): Fix typo (change
2744 in_unlikely_text_section to in_unlikely_executed_text).
19114537 2745
58152808
DB
27462004-08-19 Daniel Berlin <dberlin@dberlin.org>
2747
2748 * vec.h (VEC_lower_bound): New macro.
19114537 2749
ae043003
RS
27502004-08-19 Richard Sandiford <rsandifo@redhat.com>
2751
2752 PR target/16446
2753 * config/mips/mips.c (struct mips_arg_info): Delete num_bytes.
2754 (mips_arg_info): Update accordingly. Remove common treatment of fpr_p;
2755 treat each ABI separately. Deal with n32/n64 complex float arguments.
2756 (function_arg): Add associated complex handling here.
2757
50ed9cea
RH
27582004-08-19 Richard Henderson <rth@redhat.com>
2759
2760 * config/arm/arm.c (arm_gen_load_multiple): Use
2761 adjust_automodify_address. Take base memory and offset instead
2762 of unchanging/struct/scalar bits.
2763 (arm_gen_store_multiple): Likewise.
2764 (arm_gen_movmemqi): Use adjust_automodify_address.
2765 * config/arm/arm-protos.h: Update decls.
2766 * config/arm/arm.md (load_multiple): Update arm_gen_load_multiple call.
2767 (store_multiple): Similarly.
2768
74ae207d
R
27692004-08-19 J"orn Rennecke <joern.rennecke@superh.com>
2770
2771 * regclass.c (globalize_reg): Update call_really_used_regs.
2772
89b0433e
NS
27732004-08-19 Nathan Sidwell <nathan@codesourcery.com>
2774
31ebd7c8
NS
2775 * doc/invoke.texi (integer-share-limit): Document.
2776
89b0433e
NS
2777 * tree.h (TYPE_CACHED_VALUES_P): New.
2778 (TYPE_CACHED_VALUES): New.
2779 (TYPE_ORIG_SIZE_TYPE): Adjust.
2780 * tree.def (INTEGER_CST): Update documentation.
2781 * tree.c: Inlcude params.h.
2782 (build_int_cst): Cache small values.
2783 (build_type_copy): Do not copy the value cache.
2784 * c-common.c (c_common_nodes_and_builtins): Add comment, remove
2785 unneeded zeroing.
2786 * c-typeck.c (build_c_cast): Add comment about OVERFLOW setting.
2787 * expmed.c (const_mult_add_overflow_p): Clear type copy's value
2788 cache.
2789 * fold-const.c (force_fit_type): Copy value when setting
2790 overflows.
2791 (int_const_binop): Likewise.
2792 * stor-layout.c: Include params.h
2793 (set_sizetype): Create values cache.
2794 (fixup_unsigned_type): Set UNSIGNED_P before caching any values.
2795 * params.def (PARAM_INTEGER_SHARE_LIMIT): New.
2796 * params.h (INTEGER_SHARE_LIMIT): New.
2797 * Makefile.in (tree.o, stor-layout.o): Depend on PARAMS_H.
19114537 2798
c2504783
PB
27992004-08-19 Paolo Bonzini <bonzini@gnu.org>
2800
2801 * gimplify.c (gimplify_minimax_expr): Remove.
2802 (gimplify_expr) <MIN_EXPR, MAX_EXPR>: Remove special handling.
2803
7a8554ce
DN
28042004-08-19 Dorit Naishlos <dorit@il.ibm.com>
2805
19114537 2806 * tree-vectorizer.c (vect_can_force_dr_alignment_p): Replace
7a8554ce
DN
2807 STACK_BOUDARY with PREFERRED_STACK_BOUNDARY.
2808
1905f33d
MM
28092004-08-19 Mark Mitchell <mark@codesourcery.com>
2810
2811 * bpabi.h (FPUTYPE_DEFAULT): Set it to FPUTYPE_VFP.
2812
f1732751
AP
28132004-08-18 Andrew Pinski <apinski@apple.com>
2814
2815 * varasm.c (ecode_reg_name): Do nothing if the asmspec is empty.
2816
8c78a388
MM
28172004-08-18 Mark Mitchell <mark@codesourcery.com>
2818
2819 * config/arm/bpabi.c (__aeabi_ul2d): Give it default visibility.
2820 (__aeabi_ul2f): Likewise.
2821
7eda7cda
RH
28222004-08-18 Richard Henderson <rth@redhat.com>
2823
2824 * config/xtensa/xtensa.c (xtensa_expand_block_move): Expand block
2825 move to rtl completely.
2826 (struct meminsnbuf, xtensa_emit_block_move): Remove.
2827 (xtensa_find_mode_for_size): Remove.
2828 * config/xtensa/xtensa-protos.h (xtensa_emit_block_move): Remove.
2829 * config/xtensa/xtensa.md (movmemsi_internal): Remove.
2830
88042663
RH
28312004-08-18 Richard Henderson <rth@redhat.com>
2832
2833 * config/mcore/mcore.c (mode_from_align): Remove DImode.
2834 (block_move_sequence): Rewrite to use adjust_address.
2835 (mcore_expand_block_move): Cleanup logic. Accept only operands.
2836 Return boolean indicating success/failure.
2837 * config/mcore/mcore-protos.h (mcore_expand_block_move): Update decl.
2838 * config/mcore/mcore.md (movmemsi): Update to match.
2839
699c914a
MS
28402004-08-18 Mike Stump <mrs@apple.com>
2841
2842 * doc/invoke.texi (-mfix-and-continue): Add support for
2843 fast turn around debugging.
2844 (-ffix-and-continue): Likewise.
2845 (-mindirect-data): Likewise.
2846 (-findirect-data): Likewise.
2847 * config/darwin.c (TARGET_FIX_AND_CONTINUE): Likewise.
2848 (indirect_data): Likewise.
2849 (machopic_data_defined_p): Likewise.
2850 (machopic_output_indirection): Likewise.
2851 (darwin_encode_section_info): Likewise.
2852 (darwin_fix_and_continue): Likewise.
2853 (darwin_fix_and_continue_switch): Likewise.
2854 * config/darwin.h (MACHO_SYMBOL_STATIC): Likewise.
2855 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Likewise.
2856 (SUBTARGET_OPTION_TRANSLATE_TABLE): Likewise.
2857 (SUBTARGET_OPTIONS): Likewise.
2858 (darwin_fix_and_continue): Likewise.
2859 (darwin_fix_and_continue_switch): Likewise.
2860 (TARGET_FIX_AND_CONTINUE): Likewise.
2861 * config/rs6000.c (rs6000_emit_prologue): Likewise.
2862
28632004-08-19 Steven Bosscher <stevenb@suse.de>
bd454efd
SB
2864
2865 * basic-block.h (struct edge_def): Remove crossing_edge.
2866 (EDGE_CROSSING): New define.
2867 (EDGE_ALL_FLAGS): Update.
2868 * bb-reorder.c (find_traces_1_round, better_edge_p,
2869 find_rarely_executed_basic_blocks_and_cr, fix_up_fall_thru_edges,
2870 find_jump_block, fix_crossing_conditional_branches,
2871 fix_crossing_unconditional_branches, add_reg_crossing_jump_notes):
2872 Replace all occurences of crossing_edge with an edge flag check
2873 or set/reset.
2874 * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
2875 try_crossjump_bb): Likewise.
2876 * cfglayout.c (fixup_reorder_chain): Likewise.
2877 * cfgrtl.c (force_nonfallthru_and_redirect,
2878 commit_one_edge_insertion): Likewise.
2879
2880 * Makefile.in (cfganal.o): Depend on TIMEVAR_H.
2881 * tree-flow.h (compute_dominance_frontiers): Move prototype...
2882 * basic-block.h: ...here.
2883 * tree-cfg.c (compute_dominance_frontiers_1,
2884 compute_dominance_frontiers): Move from here...
2885 * cfganal.c: ...to here. Include timevar.h.
2886
9ff6992e
JW
28872004-08-18 James E Wilson <wilson@specifixinc.com>
2888
c831f54b 2889 * config/mips/mips.h (ASM_SPEC): In comment, change -meabi= to -mabi=.
a1627d80
JW
2890 * config/mips/sb1.md (ir_sb1_divsf_1pipe): Renamed from ...1pipes.
2891
9ff6992e
JW
2892 * config/mips/mips.md (type): Add frdiv.
2893 (divsf3+1, divsf3+2): Change type to frdiv.
2894 * config/mips/sb1.md (ir_sb1_recipsf_2pipes, ir_sb1_recipsf_1pipe,
2895 ir_sb1_recipdf_2pipes, ir_sb1_recipdf_1pipe): New.
19114537 2896
9ff6992e
JW
2897 * config/mips/3000.md (r3k_fdiv_single, r3k_fdiv_double): Add frdiv.
2898 * config/mips/4300.md (r4300_fdiv_single, r4300_fdiv_double): Likewise.
2899 * config/mips/4600.md (r4600_fdiv_single, f4600_fdiv_double): Likewise.
2900 * config/mips/5000.md (r5k_fdiv_single): Likewise.
2901 * config/mips/5400.md (ir_vr54_fdiv_sf, ir_vr54_fdiv_df): Likewise.
2902 * config/mips/5500.md (ir_vr55_fdiv_sf, ir_vr55_fdiv_df): Likewise.
2903 * config/mips/6000.md (r6k_fdiv_single, r6k_fdiv_double): Likewise.
2904 * config/mips/7000.md (rm7_fp_divsqrt_df, rm7_fp_divsqrt_sf): Likewise.
2905 * config/mips/9000.md (rm8k_fdivs, rm9k_fdivd): Likewise.
2906 * config/mips/generic.md (generic_fdiv_single, generic_fdiv_double):
2907 Likewise.
2908 * config/mips/sr71k.md (ir_sr70_fdiv_sf, ir_sr70_fdiv_df): Likewise.
2909
c16eb900
RB
29102004-08-18 Robert Bowdidge <bowdidge@apple.com>
2911
2912 * config/rs6000/x-darwin: Remove XCFLAGS -mdynamic-no-pic to
324a6c95 2913 get regression tester working again.
c16eb900 2914
826c9564
ZW
29152004-08-18 Zack Weinberg <zack@codesourcery.com>
2916
2917 * insn-notes.def, reg-notes.def: New files.
2918 * rtl.h: Use them to define enum insn_note and enum reg_note.
2919 * rtl.c: Use them to define note_insn_name and reg_note_name.
4b179e92 2920 * Makefile.in (RTL_BASE_H): Update.
826c9564
ZW
2921
2922 * modulo-sched.c, sched-rgn.c, final.c: NOTE_DISABLE_SCHED_OF_BLOCK
2923 renamed to NOTE_INSN_DISABLE_SCHED_OF_BLOCK.
2924
21b5653c
RE
29252004-08-18 Richard Earnshaw <rearnsha@arm.com>
2926
2927 * arm.c (arm_size_rtx_costs): New function.
2928 (arm_override_options): Use it if optimizing for space.
2929
542a8afa
RH
29302004-08-18 Richard Henderson <rth@redhat.com>
2931
2932 * emit-rtl.c (gen_const_mem): New.
2933 * rtl.h (gen_const_mem): Declare.
2934 * expr.c (do_tablejump): Use it.
2935 * varasm.c (force_const_mem): Likewise.
2936 * config/darwin.c (machopic_indirect_data_reference): Likewise.
2937 (machopic_legitimize_pic_address): Likewise.
2938 * config/arm/arm.c (legitimize_pic_address): Likewise.
2939 * config/i386/i386.c (legitimize_pic_address): Likewise.
2940 (legitimize_tls_address): Likewise.
2941 * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
2942 * config/ia64/ia64.md (load_fptr): Likewise.
2943 * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
2944 * config/pa/pa.c (legitimize_pic_address): Likewise.
2945 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
2946 (rs6000_emit_move): Likewise.
2947 * config/s390/s390.c (legitimize_pic_address): Likewise.
2948 (legitimize_tls_address): Likewise.
2949 * config/s390/s390.md (casesi): Likewise.
2950 * config/sh/sh.c (sh_reorg): Likewise.
2951 * config/sparc/sparc.c (legitimize_pic_address): Likewise.
2952 * config/v850/v850.md (casesi): Likewise.
2953
2954 * config/darwin.c (machopic_indirect_call_target): Set MEM_NOTRAP_P.
2955 * config/sh/sh.c (prepare_move_operands): Remove incorrect
2956 use of MEM_READONLY_P.
2957
0516f6fe
SB
29582004-08-18 Steven Bosscher <stevenb@suse.de>
2959
2960 * Makefile.in (OBJS-common): Add postreload-gcse.c.
2961 Add new postreload-gcse.o.
2962 * cse.c (SAFE_HASH): Define as wrapper around safe_hash.
2963 (lookup_as_function, insert, rehash_using_reg, use_related_value,
2964 equiv_constant): Use SAFE_HASH instead of safe_hash.
2965 (exp_equiv_p): Export. Add for_gcse argument when comparing
2966 for GCSE.
2967 (lookup, lookup_for_remove, merge_equiv_classes, find_best_addr,
2968 find_comparison_args, fold_rtx, cse_insn): Update callers.
2969 (hash_rtx): New function derived from old canon_hash and bits
2970 from gcse.c hash_expr_1.
2971 (canon_hash_string): Rename to hash_rtx_string.
2972 (canon_hash, safe_hash): Make static inline. Call hash_rtx.
2973 * cselib.c (hash_rtx): Rename to cselib_hash_rtx.
2974 (cselib_lookup): Update this caller.
2975 * gcse.c (modify_mem_list_set, canon_modify_mem_list_set):
2976 Make static.
2977 (hash_expr): Call hash_rtx.
2978 (ldst_entry): Likewise.
2979 (expr_equiv_p): Call exp_equiv_p.
2980 (struct unoccr, hash_expr_1, hash_string_1, lookup_expr,
2981 reg_used_on_edge, reg_set_between_after_reload_p,
2982 reg_used_between_after_reload_p, get_avail_load_store_reg,
2983 is_jump_table_basic_block, bb_has_well_behaved_predecessors,
2984 get_bb_avail_insn, hash_scan_set_after_reload,
2985 compute_hash_table_after_reload,
2986 eliminate_partially_redundant_loads, gcse_after_reload,
2987 get_bb_avail_insn, gcse_after_reload_main): Remove.
2988 * postreload-gcse.c: New file, reincarnating most of the above.
2989 * rtl.h (exp_equiv_p, hash_rtx): New prototypes.
2990 (gcse_after_reload_main): Update prototype.
2991 * timevar.def (TV_GCSE_AFTER_RELOAD): New timevar.
2992 * passes.c (rest_of_handle_gcse2): Use it.
2993
95013377
DN
29942004-08-18 Diego Novillo <dnovillo@redhat.com>
2995
2996 * tree-ssa-loop.c (pass_loop_init): Add TODO_dump_func.
2997 (pass_loop_done): Likewise.
2998
ac9e2cff
AP
29992004-08-18 Andrew Pinski <apinski@apple.com>
3000
826c9564 3001 * config/rs6000/darwin.md: Delete the altivec patterns which are
ac9e2cff
AP
3002 handled differently now.
3003 (load_macho_picbase_di): Make sure that is only happens for TARGET_64BIT
3004 (macho_correct_pic_di): Likewise.
3005 (call_indirect_nonlocal_darwin64): Likewise.
3006 Delete the save world/saveFP/saveVec patterns.
826c9564 3007
ac9e2cff 3008 Revert the reversion of: 2004-08-16 Stan Shebs <shebs@apple.com>
826c9564
ZW
3009 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
3010 * config/rs6000/rs6000.md: Include darwin.md.
3011 (builtin_setjmp_receiver): Add DImode case.
3012 * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
3013 Darwin bits.
ac9e2cff 3014
92b9a671
MA
30152004-08-18 Matt Austern <austern@apple.com>
3016
3017 Dead code stripping
3018 * darwin.h (EH_FRAME_SECTION_ATTR): Mark so it doesn't get stripped.
3019 * darwin.c (darwin_file_end): Mark file as potentially strippable.
826c9564 3020
4766261d
RH
30212004-08-18 Richard Henderson <rth@redhat.com>
3022
3023 * alias.c (readonly_fields_p): Remove.
3024 (objects_must_conflict_p): Don't call it.
3025 * tree.h (readonly_fields_p): Remove.
3026 * langhooks.h (struct lang_hooks): Remove honor_readonly.
3027 * langhooks-def.h (LANG_HOOKS_HONOR_READONLY): Remove.
3028
50dc9a88
DN
30292004-08-18 Diego Novillo <dnovillo@redhat.com>
3030
3031 * tree-dfa.c (add_referenced_var): Only global variables are
3032 call-clobbered.
3033 * tree-flow.h (struct ptr_info_def): Add field pt_global_mem.
3034 * tree-ssa-alias.c (compute_points_to_and_addr_escape): Mark
3035 all pointers dereferenced if the statement dereferences them.
3036 (create_name_tags): Do not create memory tags for pointers
3037 that have PT_ANYTHING set.
3038 Also check if PT_VARS is not empty before creating a name tag.
3039 (compute_flow_sensitive_aliasing): Don't mark call-clobbered
3040 variables that share the same alias set with a pointer that
3041 may point anywhere.
3042 (add_may_alias): Add FIXME comment to remove clobbering
3043 aliased variables and tags.
3044 (replace_may_alias): Likewise.
3045 (set_pt_anything): Do not clear PT_VARS nor IS_DEREFERENCED.
3046 (merge_pointed_to_info): If the original variable has not
3047 points-to information, call set_pt_anything.
3048 (add_pointed_to_var): Do not prevent adding a pointed-to
3049 variable if the pointers is PT_ANYTHING.
3050 If the variable is a global, set PT_GLOBAL_MEM.
3051 (collect_points_to_info_r): Don't assume that PLUS_EXPRs of
3052 pointer type only come in PTR+OFFSET flavours.
3053 Always call merge_pointed_to_info on PHI arguments that are
3054 SSA_NAMEs.
3055 (get_nmt_for): Mark call-clobbered tags whose pointer points
3056 to global memory.
3057 * tree-ssa-operands.c (opf_kill_def, opf_no_vops): Switch
3058 values.
3059 (get_indirect_ref_operands): Always clear OPF_KILL_DEF from
3060 FLAGS.
3061 (add_stmt_operand): Abort if the caller tried to add a killing
3062 definition for a memory tag.
3063 * tree-ssa.c (verify_flow_sensitive_alias_info): Remove
3064 unnecessary checks.
3065
62164eb4
R
30662004-08-18 J"orn Rennecke <joern.rennecke@superh.com>
3067
3068 * sh.h (CONDITIONAL_REGISTER_USAGE): Don't exclude fixed registers
3069 from call_used_regs. Update call_really_used_regs.
3070 (CALL_REALLY_USED_REGISTERS): Define.
3071 * sh.c (output_stack_adjust, shmedia_target_regs_stack_space):
3072 Replace call_used_regs with call_really_used_regs.
3073 (calc_live_regs, sh_media_register_for_return): Likewise.
3074 (sh5_schedule_saves, sh_expand_prologue, reg_unused_after): Likewise.
3075 * sh.md (return_media): Likewise.
3076
f9b0ac3b
AP
30772004-08-18 Andrew Pinski <apinski@apple.com>
3078
826c9564 3079 * config/darwin.c (machopic_legitimize_pic_address): Only set
ac9e2cff 3080 MEM_READONLY_P in the non TARGET_TOC case.
f9b0ac3b 3081
f822d252
ZW
30822004-08-18 Zack Weinberg <zack@codesourcery.com>
3083
3084 * rtl.def (NIL): Delete.
3085 * read-rtl.c (read_rtx): Handle (nil) like (define_constants).
3086 Tighten the syntax a little.
3087
3088 * cfgloop.h, combine.c, cse.c, loop-iv.c, postreload.c, reload.c
3089 * config/alpha/alpha.c, config/alpha/alpha.h, config/arc/arc.h
3090 * config/arm/arm.h, config/frv/frv.h, config/i386/i386.c
3091 * config/i386/predicates.md, config/m32r/m32r.h
3092 * config/m68hc11/m68hc11.c, config/mcore/mcore.h, config/mips/mips.c
3093 * config/mmix/mmix.c, config/pa/pa.h, config/sh/sh.h
3094 * config/sparc/sparc.h, doc/tm.texi:
3095 Replace all occurrences of NIL with UNKNOWN.
3096
6aaf3dde
ZW
30972004-08-18 Zack Weinberg <zack@codesourcery.com>
3098
3099 * dojump.c (do_jump <unordered_bcc>): Do not recursively call
3100 self with a TRUTH_ORIF_EXPR; generate the appropriate jump
3101 sequence inline. Move drop_through_label code into this
3102 block, being the only place it is used. Adjust comments.
3103
d62294f5
FJ
31042004-08-18 Fariborz Jahanian <fjahanian@apple.com>
3105
6aaf3dde
ZW
3106 * config/rs6000/altivec.md: Add new patterns for calls to
3107 save_world/rest_world functions.
3108
3109 * config/rs6000/rs6000-protos.h: (save_world_operation,
3110 restore_world_operation) new declarations.
3111
3112 * config/rs6000/rs6000.c: (struct rs6000_stack) new world_save_p
3113 field added.
3114 (rs6000_stack_info): Set world_save_p field.
3115 (save_world_operation): New function.
3116 (restore_world_operation): New function.
3117 (compute_save_world_info): New function.
3118 (rs6000_stack_info): Call compute_save_world_info.
3119 (rs6000_emit_prologue): Check for world_save_p and generate
3120 pattern to call save_world for saving all non-volatile and
3121 special registers.
3122 (rs6000_emit_epilogue): Check for world_save_p and generate
3123 pattern to call rest_world to restore saved registers.
3124
3125 config/rs6000/rs6000.h: macros FIRST_SAVED_ALTIVEC_REGNO,
3126 FIRST_SAVED_FP_REGNO, FIRST_SAVED_GP_REGNO defined.
3127 (rs6000_reg_names): New entries added for save_world_operation and
3128 restore_world_operation.
d62294f5 3129
790ac0e1
CT
31302004-08-18 Caroline Tice <ctice@apple.com>
3131
6aaf3dde 3132 * Makefile.in (STAGEFEEDBACK_FLAGS_TO_PASS) Add
790ac0e1
CT
3133 "-freorder-blocks-and-partition" to the flags used in second
3134 stage of profiledbootstrap.
3135 * bb-reorder.c (push_to_next_round_p): Add new variable,
3136 next_round_is_last; set and use variable to make sure, when
3137 partitioning, that the last trace construction round consists
3138 of all (and only) cold basic blocks.
3139 (rotate_loop): Don't copy blocks that end in a section
3140 crossing jump.
3141 (copy_bb): Correctly initialize "partition" of duplicated bb.
3142 (add_unlikely_executed_notes): Add a comment.
3143 (find_rarely_executed_basic_blocks_and_crossing_edges): Modify
3144 to make sure, if function contains hot blocks, that the
3145 successors of ENTRY_BLOCK_PTR are hot; also, only look for
3146 crossing edges if the architecture supports named sections.
3147 (mark_bb_for_unlikely_executed_section): Modify to always
3148 insert the NOTE_INSN_UNLIKELY_EXECUTED_CODE immediately after
3149 the basic block note insn.
3150 (fix_crossing_unconditional_branches): Remove extra space.
3151 (fix_edges_for_rarely_executed_code): Modify to only do
3152 partitioning work if the architecture supports named sections.
3153 (reorder_basic_blocks): Modify to only add
3154 NOTE_INSN_UNLIKELY_EXECUTED_CODE notes if the architecture
3155 supports named sections.
3156 * c-common.c (handle_section_attribute): Initialize new global
3157 variable, user_defined_section_attribute, to true if user has
3158 specified one.
3159 * cfgcleanup.c (try_forward_edges): Modify to not attempt to
3160 forward edges that cross section boundaries.
3161 * cfglayout.c (fixup_reorder_chain): Modify to only fix up
3162 partitioning information if the architecture supports named
3163 sections.
3164 * cfgrtl.c (target.h): Add statement to include this.
3165 (rtl_split_block): Make sure newly created bb gets correct
3166 partition.
3167 (try_redirect_by_replacing_jump): Make sure redirection isn't
3168 attempting to cross section boundaries.
3169 (force_nonfallthru_and_redirect): Only do partition fix up if
3170 architecture supports named sections.
3171 (rtl_split_edge): Make sure newly created bb ends up in
3172 correct partition.
3173 (commit_one_edge_insertion): Remove code that incorrectly
3174 updated basic block partition; Make sure partition fix up only
3175 happens if architecture supports named sections and it's not
3176 already done.
3177 (rtl_verify_flow_info_1): Fix if-condition on test/error
3178 condition that fallthru edges are not allowed to cross section
3179 boundaries.
3180 * defaults.h (NORMAL_TEXT_SECTION_NAME): Remove this.
3181 * final.c (final_scan_insn): Remove redundant test from if-statement;
3182 change calls to text_section into calls to function_section; add code
3183 to only to partitioning fix up if architecture supports named
3184 sections.
3185 * ifcvt.c (find_if_case_1): Make sure newly created bb has correct
3186 partition.
3187 (if_convert): Add targetm.have_named_sections to test.
3188 * output.h (unlikely_section_label): Extern declaration for new global
3189 variable.
3190 (unlikely_text_section_name): Likewise.
3191 * opts.c (decode_options): If both partitioning and DWARF debugging
3192 are turned on, issue a warning that this doesn't work, and change
3193 partitiong to basic block reordering (without hot/cold partitions).
6aaf3dde 3194 * passes.c (rest_of_handle_final): Re-set new global variable,
790ac0e1
CT
3195 user_defined_section_attribute, to false.
3196 (rest_of_compilation): Change options for calling partitioning
3197 function: Don't call if the user defined the section attribute, and
3198 don't call if DECL_ONE_ONLY is true for the current function.
3199 * predict.c (choose_function_section): Return immediately if we
3200 are doing hot/cold partitioning (i.e. let the basic block partitioning
3201 determine where the function belongs).
3202 * reg-stack.c (emit_swap_insn): Add condition to step over
3203 NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
3204 * toplev.c (user_defined_section_attribute): New global variable.
89b0433e
NS
3205 * toplev.h (user_defined_section_attribute): Extern declaration
3206 for new global variable.
790ac0e1
CT
3207 * varasm.c (unlikely_section_label): New global variable.
3208 (unlikely_text_section_name): New global variable.
89b0433e
NS
3209 (unlikely_text_section): Add code to initialize
3210 unlikely_text_section_name if necessary; modify to use
3211 unlikely_text_section_name and unlikely_section_label; also to use
3212 named_section properly.
3213 (in_unlikely_text_section): Modify to work correctly with
3214 named_section and to use unlikely_text_section_name.
790ac0e1
CT
3215 (named_section): Add code to work properly with cold section.
3216 (function_section): Clean up if-statement.
89b0433e
NS
3217 * config/darwin.c (darwin_asm_named_section): Return to original
3218 code, removing use of SECTION_FORMAT_STRING.
6aaf3dde 3219 * config/arm/pe.h (switch_to_section): Add case for
790ac0e1
CT
3220 in_unlikely_executed_text to switch statement.
3221 * config/i386/cygming.h (switch_to_section): Likewise.
3222 * config/i386/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
3223 (SECTION_FORMAT_STRING): Likewise.
3224 * config/mcore/mcore.h (switch_to_section): Likewise.
3225 * config/rs6000/darwin.h (NORMAL_TEXT_SECTION_NAME): Remove.
3226 (SECTION_FORMAT_STRING): Remove.
3227
3a4416fb
RS
32282004-08-18 Roger Sayle <roger@eyesopen.com>
3229
3230 * config/i386/i386.h (FIXED_REGISTERS): Update encoding to be
3231 -ffixed-reg safe, by preserving the meanings of zero and one.
3232 (CALL_USED_REGISTERS): Likewise.
3233 (CONDITIONAL_REGISTER_USAGE): Update to process new encodings.
3234
03904fb3
KK
32352004-08-18 Kaz Kojima <kkojima@gcc.gnu.org>
3236
3237 * config/sh/sh.c (split_branches): Check the result of
3238 next_active_insn.
3239 (sh_output_mi_thunk): Call init_flow if basic_block_info is null.
3240 Call rtl_register_cfg_hooks.
3241
389fdba0
RH
32422004-08-18 Richard Henderson <rth@redhat.com>
3243
3244 * rtl.h (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
3245 * alias.c (true_dependence): Update to match new semantics.
3246 (canon_true_dependence, write_dependence_p): Likewise.
3247 (anti_dependence, output_dependence): Update write_dependence_p args.
3248 (unchanging_anti_dependence): Remove.
3249 * calls.c (purge_mem_unchanging_flag): Remove.
3250 (fixup_tail_calls): Don't call it.
3251 (expand_call): Don't add unchanging memory to function usage.
3252 * expr.c (emit_block_move_via_libcall): Likewise.
3253 (clear_storage_via_libcall): Don't clobber RTX_UNCHANGING_P mems.
3254 (get_subtarget): Don't use RTX_UNCHANGING_P.
3255 (expand_assignment, store_constructor, expand_expr_real_1): Likewise.
3256 (do_tablejump): Set MEM_READONLY_P, not RTX_UNCHANGING_P.
3257 * combine.c (get_last_value_validate): Use MEM_READONLY_P.
3258 * cse.c (insert): Don't use RTX_UNCHANGING_P.
3259 (cse_insn, canon_hash): Use MEM_READONLY_P.
3260 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use MEM_READONLY_P
3261 instead of RTX_UNCHANGING_P.
3262 * explow.c (maybe_set_unchanging): Remove.
3263 * expr.h (maybe_set_unchanging): Remove.
3264 * flow.c (insn_dead_p, mark_used_regs): Use anti_dependence.
3265 * function.c (assign_stack_temp_for_type): Don't use RTX_UNCHANGING_P.
3266 (assign_parm_setup_reg, expand_function_start): Likewise.
3267 * integrate.c (copy_rtx_and_substitute): Likewise.
3268 * ra-rewrite.c (emit_colors): Likewise.
3269 * regmove.c (copy_src_to_dest, regmove_optimize): Likewise.
3270 (fixup_match_1): Likewise.
3271 * reload1.c (reload, alter_reg): Likewise.
3272 * local-alloc.c (validate_equiv_mem): Check MEM_READONLY_P,
3273 not RTX_UNCHANGING_P.
3274 (equiv_init_varies_p): Likewise.
3275 * loop-invariant.c (check_maybe_invariant): Likewise.
3276 * resource.c (mark_referenced_resources, mark_set_resources): Likewise.
3277 * loop.c (note_addr_stored): Likewise.
3278 (prescan_loop): Likewise. Don't check function usage for clobbered
3279 unchanging memory.
3280 * rtlanal.c (rtx_unstable_p): Check MEM_READONLY_P,
6aaf3dde 3281 not RTX_UNCHANGING_P.
389fdba0
RH
3282 (rtx_varies_p, modified_between_p, modified_in_p): Likewise.
3283 * varasm.c (force_const_mem): Likewise.
3284 * stmt.c (expand_decl): Don't set RTX_UNCHANGING_P.
3285 * web.c (entry_register): Likewise.
3286 * tree-gimple.h (get_base_address): Move decl ...
3287 * tree.h: ... here.
3288 * doc/rtl.texi (MEM_READONLY_P): Replace RTX_UNCHANGING_P.
3289
3290 * config/alpha/alpha.c (alpha_set_memflags_1): Rewrite to be
3291 called via for_each_rtx. Copy MEM_SCALAR_P, MEM_NOTRAP_P too.
3292 (alpha_set_memflags): Update to match.
3293
3294 * config/darwin.c (machopic_indirect_data_reference): Set
3295 MEM_READONLY_P instead of RTX_UNCHANGING_P.
3296 (machopic_indirect_call_target): Likewise.
3297 (machopic_legitimize_pic_address): Likewise.
6aaf3dde 3298 * config/arm/arm.c (legitimize_pic_address, arm_gen_load_multiple,
389fdba0
RH
3299 arm_gen_store_multiple, arm_gen_movmemqi): Likewise.
3300 * config/arm/arm.md (load_multiple, store_multiple): Likewise.
3301 * config/frv/frv.md (symGOT2reg): Likewise.
3302 * config/i386/i386.c (legitimize_pic_address,
3303 legitimize_tls_address, ix86_split_to_parts): Likewise.
3304 * config/ia64/ia64.c (ia64_expand_tls_address): Likewise.
3305 * config/ia64/ia64.md (load_fptr): Likewise.
3306 * config/m32r/m32r.c (m32r_legitimize_pic_address): Likewise.
3307 * config/m68k/m68k.c (legitimize_pic_address): Likewise.
3308 * config/mcore/mcore.c (block_move_sequence): Likewise.
3309 * config/mn10300/mn10300.md (symGOT2reg): Likewise.
3310 * config/pa/pa.c (legitimize_pic_address): Likewise.
3311 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Likewise.
3312 (rs6000_emit_move): Likewise.
3313 * config/s390/s390.c (legitimize_pic_address): Likewise.
3314 (legitimize_tls_address): Likewise.
3315 * config/s390/s390.md (casesi): Likewise.
3316 * config/sh/sh.c (prepare_move_operands, sh_reorg): Likewise.
3317 * config/sh/sh.md (symGOT2reg): Likewise.
3318 * config/sparc/sparc.c (legitimize_pic_address): Likewise.
3319 * config/v850/v850.md (casesi): Likewise.
3320
3321 * config/ia64/ia64.c (gen_thread_pointer): Don't set RTX_UNCHANGING_P.
3322 * config/iq2000/iq2000.c (save_restore_insns): Likewise.
3323 * config/mips/mips.c (mips_restore_gp): Likewise.
3324 (mips_save_restore_reg, mips16_gp_pseudo_reg): Likewise.
3325 * config/sh/sh.c (sh_reorg): Likewise.
3326
17ad5b5e
RH
33272004-08-18 Richard Henderson <rth@redhat.com>
3328
3329 * tree.h (struct tree_decl): Add gimple_formal_temp.
3330 (DECL_GIMPLE_FORMAL_TEMP_P): New.
3331 * gimplify.c (pop_gimplify_context): Clear it.
3332 (lookup_tmp_var): Set it, if is_formal.
3333 (gimplify_init_constructor): Use rhs_predicate_for for COMPLEX.
3334 Use is_gimple_val for VECTOR. Simplify return value.
3335 (gimplify_save_expr): Use and set DECL_GIMPLE_FORMAL_TEMP_P.
3336 (gimplify_expr): Likewise.
3337 * tree-gimple.c (is_gimple_formal_tmp_rhs): Rename from
3338 is_gimple_tmp_rhs for clarity. Update all callers.
3339 (is_gimple_reg_rhs): Simplify logic.
3340 (is_gimple_formal_tmp_var): Rename from is_gimple_tmp_var for
3341 clarity; use DECL_GIMPLE_FORMAL_TEMP_P.
3342 (is_gimple_formal_tmp_reg): Similarly.
3343 * tree-gimple.h: Update decls.
3344 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Use
3345 DECL_IGNORED_P, not DECL_ARTIFICIAL. Tidy formatting.
3346 * tree-ssa-live.c (var_union, type_var_init): Likewise.
3347
5b0eba61
PB
33482004-08-18 Paolo Bonzini <bonzini@gnu.org>
3349
3350 * c4x.c (legitimize_operands): Remove calls to
3351 preserve_subexpressions_p.
3352
07e15286
DE
33532004-08-18 David Edelsohn <edelsohn@gnu.org>
3354
3355 * varasm.c (MAX_OFILE_ALIGNMENT): Move ...
3356 * defaults.h (MAX_OFILE_ALIGNMENT): ... here.
3357
ad8c162b
ZL
33582004-08-18 Ziemowit Laski <zlaski@apple.com>
3359
3360 * gcc.c (default_compilers): Add info about ".mm", ".M" and ".mii"
3361 Objective-C++ extensions.
3362 * gengtype.c (get_file_basename): Match entire subdirectory name
3363 ('cp', 'objc', 'objcp') rather than just its suffix.
3364 (get_base_file_bitmap): Allow for files to belong to more than one
3365 language.
3366 (get_output_file_with_visibility): Treat objc/objc-act.h as a header
3367 used by more than one front-end.
3368
d56993f2
RE
33692004-08-18 Richard Earnshaw <rearnsha@arm.com>
3370
3371 * arm.md (addsi3, subsi3, andsi3, iorsi3, movsi, movhi): Rework to
3372 avoid use of preserve_subexpressions_p.
3373
504c0e4f
RH
33742004-08-17 Richard Henderson <rth@redhat.com>
3375
3376 PR 17051
3377 * tree-sra.c (scalarize_use): Mark all v_defs for !is_output too.
3378
54e9a19d
DD
33792004-08-17 DJ Delorie <dj@redhat.com>
3380
3381 * doc/extend.texi: Document new xstormy16 attribute.
3382
3383 * config/stormy16/stormy16.c (xstormy16_splittable_below100_operand): New.
3384 (xstormy16_splittable_below100_or_register): New.
3385 (combine_bnp): New.
3386 (xstormy16_reorg): New.
3387 (TARGET_MACHINE_DEPENDENT_REORG): Define.
3388
54e9a19d
DD
3389 * config/stormy16/stormy16.md (movqi_internal): Make name public.
3390 (movhi_internal): Likewise.
3391 (cbhranchhi): Likewise.
3392 (cbhranchhi_neg): Likewise.
3393 (andhi3): Only allow splittable below100 operands.
3394 (iorhi3): Likewise.
3395 (peephole2): New and/zero_extend->and peephole.
3396 (peephole2): New load/ior/save->set1 peephole.
3397 (peephole2): New load/and/save->clr1 peephole.
3398 (bclrx, bclrx2, bclr7, bclr15): New.
3399 (bsetx, bsetx2, bset7, bset15): New.
3400
3401 * config/stormy16/stormy16.c (xstormy16_print_operand): Be more
3402 liberal about acceptable 'B' masks.
3403
3404 * config/stormy16/stormy16-protos.h
3405 (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
3406 xstormy16_below100_operand, xstormy16_below100_or_register,
3407 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
3408 (PREDICATE_CODES): Add new predicates.
6aaf3dde 3409
54e9a19d
DD
3410 * config/stormy16/stormy16.c
3411 (xstormy16_asm_output_aligned_common, xstormy16_below100_symbol,
3412 xstormy16_below100_operand, xstormy16_below100_or_register,
3413 xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand): New.
3414 (xstormy16_expand_iorqi3, xstormy16_expand_andqi3): New.
3415 (xstormy16_legitimate_address_p): Allow below100 symbols.
3416 (xstormy16_extra_constraint_p): Add 'W' for below100 operands.
3417 (xstormy16_expand_move): Leave below100 operands as-is.
3418 (xstormy16_encode_section_info): Encode below100 symbols.
3419 (xstormy16_strip_name_encoding): New.
3420 (xstormy16_print_operand): Print 'b' as shift mask.
3421 (xstormy16_attribute_table): Add below100 attributes.
3422 (xstormy16_handle_below100_attribute): New.
3423
3424 * config/stormy16/stormy16.h (EXTRA_SECTIONS): add in_bss100.
3425 (XSTORMY16_SECTION_FUNCTION): New.
3426 (EXTRA_SECTION_FUNCTIONS): Define using the above.
3427 (ASM_OUTPUT_ALIGNED_DECL_COMMON, ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
3428 (ASM_OUTPUT_SYMBOL_REF): Handle encoded symbols.
3429 (ASM_OUTPUT_LABELREF): Define.
3430
3431 * config/stormy16/stormy16.md (movqi_internal): Add below100 support.
3432 (movhi_internal): Add below100 support.
3433 (andhi3): Add below100 support.
3434 (iorhi3): Add below100 support.
3435 (iorqi3, iorqi3_internal, andqi3, andqi3_internal): New.
3436
4ef47bd8
JW
34372004-08-17 James E Wilson <wilson@specifixinc.com>
3438
3439 * config/mips/mips.c (gen_conditional_move): Use GET_MODE (op0) instead
3440 of VOIDmode for comparison code mode.
3441 * config/mips/mips.md: For conditional move patterns, use mode of
3442 first compare operand for comparison mode, instead of VOIDmode.
e17c734b
JW
3443
3444 * config/mips/mips.md: Add canonical nmadd and nmsub patterns for both
3445 normal and -ffast-math code.
3446
1a10290c
MM
34472004-08-17 Mark Mitchell <mark@codesourcery.com>
3448
3449 PR c++/15871
3450 * doc/invoke.texi (-fkeep-inline-functions): Update documentation.
3451
f4e736dd 34522004-08-17 Robert Bowdidge <bowdidge@apple.com>
6aaf3dde
ZW
3453
3454 * config/rs6000/x-darwin: Add -mdynamic-no-pic to gcc build flags.
f4e736dd 3455
13a98f14
AT
34562004-08-17 Andreas Tobler <a.tobler@schweiz.ch>
3457
3458 * config/rs6000/darwin.md (*call_nonlocal_darwin64): Add #else clause
3459 for non Darwin targets.
3460 (*call_value_nonlocal_darwin64): Likewise.
3461
d0b2079e
FJ
34622004-08-17 Fariborz Jahanian <fjahanian@apple.com>
3463
3464 * config/rs6000/rs6000.c (rs6000_function_value): Check for
3465 altivec mode for altivec return register.
3466
feb3dc8b
DE
34672004-08-17 David Edelsohn <edelsohn@gnu.org>
3468
3469 Revert 2004-08-16 Stan Shebs <shebs@apple.com>
ef0e2729 3470 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
feb3dc8b
DE
3471 * config/rs6000/rs6000.md: Include darwin.md.
3472 (builtin_setjmp_receiver): Add DImode case.
3473 * config/rs6000/rs6000.c (rs6000_emit_move): Add DImode case to
3474 Darwin bits.
3475
79fe1b3b
DN
34762004-08-17 Dorit Naishlos <dorit@il.ibm.com>
3477
89b0433e
NS
3478 * tree-vectorizer.c: New File: loop vectorization on SSAed GIMPLE
3479 trees.
79fe1b3b
DN
3480 * tree-vectorizer.h: New File: Same.
3481 * Makefile.in (tree-vectorizer.c, tree-vectorizer.h): Add new files.
3482 * common.opt (ftree-vectorize): New flag to enable vectorization.
89b0433e
NS
3483 * timevar.def (TV_TREE_VECTORIZATION): New dump file for
3484 vectorization pass.
79fe1b3b
DN
3485 * tree-data-ref.h (init_data_ref): Additional argument.
3486 (array_base_name_differ_p): Moved to tree-data-ref.c.
3487 * tree-data-ref.c (array_base_name_differ_p): Revised.
3488 (initialize_data_dependence_relation): Call array_base_name_differ_p
3489 with an extra argument.
3490 (analyze_all_data_dependences): Same.
3491 (init_data_ref): Additional argument is_read to set DR_IS_READ.
89b0433e
NS
3492 * tree-ssa-phiopt.c (empty_block_p): Expose for usage out of this
3493 file.
79fe1b3b
DN
3494 * tree-flow.h (vectorize_loops, empty_block_p): Add declaration.
3495 * tree-optimize.c (pass_vectorize): Schedule the vectorization pass.
6aaf3dde 3496 * tree-pass.h (tree_opt_pass pass_vectorize): Declare the new
79fe1b3b
DN
3497 vectorization pass.
3498 * tree-ssa-loop.c (tree_ssa_loop_init): Call scev_initialize.
3499 (tree_ssa_loop_done): Call scev_finalize.
3500 (tree_vectorize): Define the new vectorization pass.
89b0433e
NS
3501 * defaults.h (UNITS_PER_SIMD_WORD): Allow targets to specify the
3502 size of the vector they support (until support for multiple vector
3503 sizes is added to the vectorizer).
79fe1b3b
DN
3504 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Define.
3505 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Define.
3506 * invoke.texi (fdump-tree-vect, ftree-vectorize): Add
3507 documentation.
3508
e15987c1
NS
35092004-08-17 Nathan Sidwell <nathan@codesourcery.com>
3510
3511 * objc/objc-act.c (build_protocol_initializer): Fix build_int_cst
3512 usage.
3513 (generate_protocol_list, handle_impent): Likewise.
3514
e3cadb61
RS
35152004-08-17 Roger Sayle <roger@eyesopen.com>
3516
3517 * regclass.c (init_reg_sets_1): Add ENABLE_CHECKING sanity tests to
3518 ensure that call_used_regs is a superset of both fixed_regs and
3519 call_really_used_regs.
3520
108a579c
DB
35212004-08-17 Daniel Bornstein <danfuzz@milk.com>
3522
3523 PR target/17019
3524 * arm.md (addsi3_cbranch_scratch): Correct case labels.
3525
62fc1d7d
PB
35262004-08-17 Paolo Bonzini <bonzini@gnu.org>
3527
3528 PR middle-end/17036
3529 * fold-const.c (fold): Check for integer operand when
3530 folding (A >> N) & 1 ? (1 << N) : 0. Fix from Andrew
3531 Pinski <pinskia@physics.uc.edu>.
3532
7c27e184
PB
35332004-08-17 Paolo Bonzini <bonzini@gnu.org>
3534
3535 * configure.ac: Trust toplevel's notion of BISON/FLEX/MAKEINFO.
3536 No need to check if in a cross configuration.
3537 * configure: Regenerate.
3538
3539 * calls.c (precompute_register_parameters):
3540 Inline preserve_subexpressions_p ().
3541 * expmed.c (expand_mult_const, emit_store_flag): Likewise.
3542 * optabs.c (expand_binop, expand_twoval_binop, prepare_cmp_insn):
3543 Likewise.
3544 * expr.c (get_subtarget): Likewise.
3545 * rtl.h (preserve_subexpressions_p): Remove.
3546 * stmt.c (preserve_subexpressions_p): Remove.
3547
3548 * dojump.c (do_jump) <COND_EXPR, EQ_EXPR, NE_EXPR,
3549 TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, COMPOUND_EXPR>:
3550 Abort on gimplified cases.
3551
d97c6333
JW
35522004-08-16 James E Wilson <wilson@specifixinc.com>
3553
3554 * tree.h (VECTOR_FLOAT_TYPE_P): New.
3555 (FLOAT_TYPE_P): Use it.
3556 * c-typeck.c (build_binary_op): After convert calls, check for
3557 check for ERROR_MARK operands.
3558
45c8116d
ZW
35592004-08-16 Zack Weinberg <zack@codesourcery.com>
3560
3561 * Makefile.in (BUILD_PREFIX, BUILD_PREFIX_1): Delete.
3562 (BUILD_RTL, BUILD_PRINT, BUILD_ERRORS, BUILD_VARRAY): Update.
3563 (genobjs): Add build-rtl.o, build-print-rtl.o, build-varray.o.
3564 (genobjs static pattern rule): Remove %.c dependency.
3565 ($(BUILD_PREFIX_1)rtl.o, print-rtl.o, $(BUILD_PREFIX_1)varray.o):
3566 Rename rules; delete commands; fix dependencies.
3567 (mostlyclean): Do not delete temporary source copies.
3568 * configure.ac: Delete all references to BUILD_PREFIX and
3569 BUILD_PREFIX_1.
3570 * configure: Regenerate.
3571
3572 * print-rtl.c: Include bconfig.h #ifdef GENERATOR_FILE.
3573 Do not include tree.h, real.h, flags.h, hard-reg-set.h, or
3574 basic-block.h #ifdef GENERATOR_FILE. Surround some more code
3575 with #ifndef GENERATOR_FILE so that nothing from those headers
3576 is used.
3577
3578 * rtl.c, varray.c: Include bconfig.h #ifdef GENERATOR_FILE.
3579
4d73e20b
AN
35802004-08-16 Adam Nemet <anemet@lnxw.com>
3581
3582 * Makefile.in (LIBS): Move $(LIBIBERTY) after $(BANSHEELIB).
6aaf3dde 3583
62114438
AP
35842004-08-16 Andrew Pinski <apinski@apple.com>
3585
3586 * target-def.h (TARGET_EH_RETURN_FILTER_MODE): Remove
3587 extraneous semicolon.
3588
8e3e233b
DP
35892004-08-16 Devang Patel <dpatel@apple.com>
3590
3591 * c-common.c (handle_used_attribute): Set DECL_PRESERVE_P.
3592 * print-tree.c (print_node): Print DECL_PRESERVE_P.
3593 * target-def.h (TARGET_ASM_MARK_DECL_PRESERVED): New #define.
3594 (TARGET_ASM_OUT): New member, TARGET_ASM_MARK_DECL_PRESERVED
3595 * target.h (struct gcc_target): New member, mark_decl_preserved.
45c8116d
ZW
3596 * hooks.c (hook_void_charptr): Rename to ...
3597 (hook_void_constcharptr): ... new name.
3598 * hooks.h (hook_void_charptr): Rename to ..
3599 (hook_void_constcharptr): ... new name.
8e3e233b
DP
3600 * tree.h (DECL_PRESERVE_P): New #define.
3601 (struct tree_decl): New member, preserve_flag.
3602 * varasm.c (assemble_start_function): Mark decl preserved.
3603 (assemble_variable): Same.
3604 * darwin.c (darwin_mark_decl_preserved): New function.
3605 * darwin.h (TARGET_ASM_MARK_DECL_preserved): New #define.
3606 * darwin-protos.h (darwin_mark_decl_preserved): New decl.
3607 * doc/tm.texi (TARGET_ASM_MARK_DECL_PRESERVED): Document.
3608
580b3958
JM
36092004-08-16 Joseph S. Myers <jsm@polyomino.org.uk>
3610
3611 * c-decl.c (grokdeclarator): Allow for function definition where
3612 innermost declarator has attributes.
3613
93f90be6
FJ
36142004-08-16 Fariborz Jahanian <fjahanian@apple.com>
3615
3616 * except.c (get_exception_filter, build_post_landing_pads,
3617 dw2_build_landing_pads): Use target-specific mode for 'filter'.
3618 * target-def.h (TARGET_EH_RETURN_FILTER_MODE): macro defined and used.
3619 * target.h (eh_return_filter_mode): New field added.
3620 * targhooks.c (default_eh_return_filter_mode): Defined.
3621 * targhooks.h (default_eh_return_filter_mode): Declared.
3622 * config/rs6000/rs6000.c (rs6000_eh_return_filter_mode): Defined.
3623
392765bf
NN
36242004-08-16 Nathanael Nerode <neroden@gcc.gnu.org>
3625
3626 * configure.ac: Replace _GCC_TOPLEV_NONCANONICAL_TARGET with
3627 ACX_NONCANONICAL_TARGET; remove now-unneeded AC_SUBST.
3628 * configure: Regenerate.
3629
49bd1d27
SS
36302004-08-16 Stan Shebs <shebs@apple.com>
3631
3632 Basic support for 64-bit Darwin.
3633 * config/darwin.c (macho_indirect_data_reference): Add DImode case.
3634 (machopic_legitimize_pic_address): Similarly, plus use Pmode
3635 instead of SImode.
3636 * config/rs6000/darwin.h (PTRDIFF_TYPE): Be "long int" if 64-bit.
3637 (TARGET_OS_CPP_BUILTINS): Add 64-bit preprocessor macro.
3638 (SUBTARGET_SWITCHES): Add -m32 and -m64 flags.
3639 (SUBTARGET_OVERRIDE_OPTIONS): Require 64-bit processor if -m64.
3640 (PROCESSOR_DEFAULT64): Define.
3641 * config/rs6000/darwin.md: New file, patterns specific to 64-bit
3642 Darwin.
3643 * config/rs6000/rs6000.md: Include darwin.md.
3644 (builtin_setjmp_receiver): Add DImode case.
3645 * config/rs6000/rs6000.c (TARGET_ASM_UNALIGNED_DI_OP): Define for
3646 Darwin.
3647 (TARGET_ASM_ALIGNED_DI_OP): Ditto.
3648 (rs6000_emit_move): Add DImode case to Darwin bits.
3649 (machopic_output_stub): Use .quad if 64-bit.
3650 * invoke.texi: Document -m32 and -m64.
3651
4e6e4e4c
JJ
36522004-08-16 Janis Johnson <janis187@us.ibm.com>
3653
3654 * doc/extend.texi (AltiVec builtins): Document additional differences
3655 from the Motorola AltiVec PIM.
3656
092313ae
NS
36572004-08-16 Nathan Sidwell <nathan@codesourcery.com>
3658
3659 * c-typeck.c (build_c_cast): Only copy overflow from expr nodes.
3660 * tree.h (IS_NON_TYPE_CODE_CLASS): Simplify.
3661 (struct tree_common): Update public_flag documentation.
3662
dffc9ae5
NN
36632004-08-16 Nathanael Nerode <neroden@gcc.gnu.org>
3664
3665 * tree-ssa-copyrename.c (copy_rename_partition_coalesce):
62fc1d7d 3666 Check for artificial variables, not is_gimple_tmp_var.
dffc9ae5
NN
3667 * tree-ssa-live.c (var_union): Likewise.
3668
16e9be4c
NS
36692004-08-16 Nathan Sidwell <nathan@codesourcery.com>
3670
3671 * calls.c (load_register_parameters): Remove spurious FIXME token.
3672
9a4d6480
ZL
36732004-08-15 Ziemowit Laski <zlaski@apple.com>
3674
3675 * Makefile.in (C_PRETTY_PRINT_H): Add c-pretty-print.h.
3676 (c-lang.o): Depend on c-objc-common.h.
45c8116d 3677 (c-objc-common.o): Depend on $(C_PRETTY_PRINT_H) and
9a4d6480
ZL
3678 c-objc-common.h; remove duplicate $(C_TREE_H) dependency.
3679 * c-lang.c: Include c-objc-common.h.
3680 (LANG_HOOKS_FINISH, LANG_HOOKS_INIT_OPTIONS,
3681 LANG_HOOKS_INITIALIZE_DIAGNOSTICS, LANG_HOOKS_HANDLE_OPTION,
3682 LANG_HOOKS_MISSING_ARGUMENT, LANG_HOOKS_POST_OPTIONS,
45c8116d
ZW
3683 LANG_HOOKS_GET_ALIAS_SET, LANG_HOOKS_SAFE_FROM_P,
3684 LANG_HOOKS_EXPAND_EXPR, LANG_HOOKS_MARK_ADDRESSABLE,
9a4d6480
ZL
3685 LANG_HOOKS_PARSE_FILE, LANG_HOOKS_TRUTHVALUE_CONVERSION,
3686 LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL,
45c8116d 3687 LANG_HOOKS_STATICP, LANG_HOOKS_SET_DECL_ASSEMBLER_NAME,
9a4d6480
ZL
3688 LANG_HOOKS_NO_BODY_BLOCKS, LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL,
3689 LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_FUNCTION_ENTER_NESTED,
3690 LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_DUP_LANG_SPECIFIC_DECL,
3691 LANG_HOOKS_DECL_UNINIT, LANG_HOOKS_RTL_EXPAND_STMT,
3692 LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
3693 LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
3694 LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
3695 LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P,
3696 LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING,
3697 LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS,
3698 LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN,
3699 LANG_HOOKS_CALLGRAPH_EXPAND_FUNCTION, LANG_HOOKS_TYPE_FOR_MODE,
3700 LANG_HOOKS_TYPE_FOR_SIZE, LANG_HOOKS_SIGNED_TYPE,
3701 LANG_HOOKS_UNSIGNED_TYPE, LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE,
3702 LANG_HOOKS_INCOMPLETE_TYPE_ERROR, LANG_HOOKS_TYPE_PROMOTES_TO,
3703 LANG_HOOKS_REGISTER_BUILTIN_TYPE, LANG_HOOKS_WRITE_GLOBALS):
3704 Move to c-objc-common.h.
3705 * c-objc-common.c: Include c-objc-common.h.
3706 * c-objc-common.h: New file.
3707
869464ba
AT
37082004-08-15 Andreas Tobler <a.tobler@schweiz.ch>
3709 Andrew Pinski <pinskia@physics.uc.edu>
3710
3711 PR target/14931
3712 * config/rs6000/darwin-tramp.asm (L_abort$stub): Change to new stub
3713 style.
3714
4a90aeeb
NS
37152004-08-15 Nathan Sidwell <nathan@codesourcery.com>
3716
3717 * tree.h (build_int_cst): New.
3718 (build_int_2): Remove.
3719 * tree.c (build_int_2): Remove.
3720 (build_int_cst): New.
3721 (make_vector_type, build_common_tree_nodes,
3722 build_common_tree_nodes_2): Use build_int_cst.
3723 * builtins.c (expand_builtin_prefetch, expand_builtin_strstr,
3724 expand_builtin_strpbrk, expand_builtin_fputs,
3725 build_string_literal, expand_builtin_printf,
3726 expand_builtin_sprintf, fold_builtin_lround, fold_builtin_bitop,
3727 fold_builtin_bitop, fold_builtin_isascii, fold_builtin_toascii,
3728 fold_builtin_isdigit, simplify_builtin_strstr,
3729 simplify_builtin_strpbrk, fold_builtin_fputs,
3730 simplify_builtin_sprintf): Use build_int_cst.
3731 * c-common.c (start_fname_decls, fix_string_type,
3732 c_common_nodes_and_builtins, c_init_attributes,
3733 shorten_compare): Likewise.
3734 * c-decl.c (complete_array_type,
3735 check_bitfield_type_and_width): Likewise.
3736 * c-lex.c (interpret_integer, lex_charconst): Likewise.
3737 * c-parse.in (primary): <TYPES_COMPATIBLE_P> Likewise.
3738 * c-pretty-print.c (pp_c_integer_constant): Likewise.
3739 * c-typeck.c (really_start_incremental_init, push_init_level,
3740 set_nonincremental_init_from_string): Likewise.
3741 * calls.c (load_register_parameters): Likewise.
3742 * convert.c (convert_to_pointer): Likewise.
3743 * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref,
3744 build_fn_info_type, build_ctr_info_value, build_gcov_info):
3745 Likewise.
3746 * except.c (init_eh, assign_filter_values, assign_filter_values):
3747 Likewise.
3748 * expmed.c (store_fixed_bit_field, extract_bit_field,
3749 extract_fixed_bit_field, extract_split_bit_field, expand_shift,
3750 expand_mult_const, expand_mult_highpart_adjust, extract_high_half,
3751 expand_sdiv_pow2, expand_divmod, make_tree): Likewise.
3752 * expr.c (convert_move, emit_group_load, emit_group_store,
3753 expand_assignment, store_constructor, store_field,
3754 expand_expr_real_1, reduce_to_bit_field_precision): Likewise.
3755 * fold-const.c (force_fit_type, int_const_binop, fold_convert_const,
3756 invert_truthvalue, optimize_bit_field_compare,
3757 decode_field_reference, all_ones_mask_p, constant_boolean_node,
3758 fold_div_compare, fold, fold_read_from_constant_string,
3759 fold_negate_const, fold_abs_const, fold_not_const): Likewise.
3760 * function.c (assign_parm_setup_block): Likewise.
3761 * stmt.c (shift_return_value, expand_end_case_type,
3762 estimate_case_costs): Likewise.
3763 * stor-layout.c (layout_type, initialize_sizetypes,
3764 set_min_and_max_values_for_integral_type): Likewise.
3765 * tree-chrec.c (chrec_fold_multiply_poly_poly,
3766 reset_evolution_in_loop): Likewise.
3767 * tree-chrec.h (build_polynomial_chrec): Likewise.
3768 * tree-complex.c (build_replicated_const): Likewise.
3769 * tree-eh.c (honor_protect_cleanup_actions,
3770 lower_try_finally_onedest, lower_try_finally_copy,
3771 lower_try_finally_switch): Likewise.
3772 * tree-mudflap.c (mf_build_string, mx_register_decls,
3773 mudflap_register_call, mudflap_enqueue_constant): Likewise.
3774 * tree-nested.c (get_trampoline_type, get_nl_goto_field): Likewise.
3775 * tree-pretty-print.c (dump_generic_node): Likewise.
3776 * tree-ssa-ccp.c (widen_bitfield, maybe_fold_offset_to_array_ref):
3777 Likewise.
3778 * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Likewise.
3779 * tree-ssa-loop-niter.c (number_of_iterations_cond,
3780 loop_niter_by_eval, upper_bound_in_type, lower_bound_in_type):
3781 Likewise.
45c8116d 3782
4a90aeeb
NS
3783 * config/alpha/alpha.c (alpha_initialize_trampoline,
3784 alpha_va_start, alpha_gimplify_va_arg_1): Use build_int_cst.
3785 * config/arm/arm.c (arm_get_cookie_size): Likewise.
3786 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
3787 * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
3788 * config/i860/i860.c (i860_va_start): Likewise.
3789 * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
3790 * config/mips/mips.c (mips_build_builtin_va_list, mips_va_start,
3791 mips_gimplify_va_arg_expr): Likewise.
3792 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
3793 * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg,
3794 add_compiler_branch_island): Likewise.
3795 * config/s390/s390.c (s390_va_start): Likewise.
3796 * config/sh/sh.c (sh_va_start): Likewise.
3797 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
3798 Likewise.
3799 * config/xtensa/xtensa.c (xtensa_va_start,
3800 xtensa_gimplify_va_arg_expr): Likewise.
45c8116d 3801
4a90aeeb
NS
3802 * objc/objc-act.c (build_objc_string_object,
3803 build_objc_symtab_template, init_def_list, init_objc_symtab,
3804 init_module_descriptor, generate_static_references,
3805 build_selector_translation_table, get_proto_encoding,
3806 build_typed_selector_reference, build_selector_reference,
3807 build_next_objc_exception_stuff,
3808 build_method_prototype_list_template, generate_descriptor_table,
3809 generate_protocols, build_protocol_initializer,
3810 build_ivar_list_template, build_method_list_template,
3811 build_ivar_list_initializer, generate_ivars_list,
3812 generate_dispatch_table, generate_protocol_list,
3813 build_category_initializer, build_shared_structure_initializer,
3814 generate_shared_structures, handle_impent,
3815 generate_objc_image_info): Use build_int_cst.
3816
2a68a7de
BE
38172004-08-15 Ben Elliston <bje@au.ibm.com>
3818
3819 * vec.h: Comment improvements.
3820
53fb4de3
RS
38212004-08-14 Roger Sayle <roger@eyesopen.com>
3822
3823 * c-common.c (shorten_compare, pointer_int_sum,
3824 c_common_truthvalue_conversion, boolean_increment): Replace calls
3825 to build with calls to buildN.
3826 * c-decl.c (complete_array_type, grokdeclarator): Likewise.
3827 * c-gimplify.c (c_build_bind_expr, gimplify_c_loop,
3828 gimplify_switch_stmt): Likewise.
3829 * c-typeck.c (default_function_array_conversion,
3830 build_component_ref, build_array_ref, build_function_call,
3831 pointer_diff, build_unary_op, build_conditional_expr,
3832 build_compound_expr, build_modify_expr, c_finish_goto_label,
3833 c_finish_goto_ptr, c_finish_return, c_finish_loop,
3834 c_finish_bc_stmt, c_finish_stmt_expr, c_end_compound_stmt,
3835 build_binary_op): Likewise.
3836
254b17dd
SB
38372004-08-15 Steven Bosscher <stevenb@suse.de>
3838
3839 * rtl.c (note_insn_name): Add NOTE_DISABLE_SCHED_OF_BLOCK.
3840
a5252c84
JDA
38412004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3842
3843 * fixinc/inclhack.def (stdio_va_list): Also fix com_err.h, cps.h,
3844 curses.h, krb5.h, lc_core.h, pfmt.h, wchar.h and curses_colr/curses.h.
3845 * fixinc/fixincl.x: Rebuilt.
3846
96a30b18
RS
38472004-08-14 Richard Sandiford <rsandifo@redhat.com>
3848
3849 * config/mips/mips-protos.h (mips_symbolic_constant_p)
3850 (mips_atomic_symbolic_constant_p, mips_stack_address_p)
3851 (mips_small_data_pattern_p): Declare.
3852 * config/mips/mips.h (CONST_GP_P): Moved from mips.c.
3853 (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Delete.
3854 * config/mips/mips.c (mips_symbolic_constant_p): Make global.
3855 (mips_atomic_symbolic_constant_p, mips_stack_address_p): New functions.
3856 (uns_arith_operand, const_arith_operand, arith_operand, sle_operand)
3857 (sleu_operand, small_int, reg_or_0_operand, const_float_1_operand)
3858 (reg_or_const_float_1_operand, hilo_operand, extend_operator)
3859 (macc_msac_operand, equality_op, cmp_op, trap_cmp_op)
3860 (pc_or_label_operand, call_insn_operand, move_operand)
3861 (consttable_operand, symbolic_operand, general_symbolic_operand)
3862 (global_got_operand, local_got_operand, stack_operand)
3863 (fp_register_operand, lo_operand, fcc_register_operand): Delete.
3864 (mips_small_data_pattern_1): Renamed from small_data_pattern_1.
3865 (mips_small_data_pattern_p): Replace previous small_data_pattern
3866 predicate. Turn into a bool () (rtx) function.
3867 * config/mips/predicates.md: New file.
3868 * config/mips/mips.md: Include it. Use the target-independent
3869 comparison_operator instead of cmp_op. Rename trap_cmp_op to
3870 trap_comparison_operator and equality_op to equality_operator.
3871 Replace uses of small_int with the equivalent const_arith_operand.
3872 Rename reg_or_const_float_1_operand to reg_or_1_operand. Rename
3873 const_float_1_operand to const_1_operand. Rename fcc_register_operand
3874 to fcc_reload_operand.
3875 * config/mips/sb1.md: Rename fp_register_operand to fpr_operand.
3876
e41c9fcb
JDA
38772004-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3878
3879 PR libstdc++/17005 partial fix.
3880 * pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define _INCLUDE__STDC_A1_SOURCE
3881 except when generating ANSI/C89 code.
3882
af9c6659
NS
38832004-08-14 Nathan Sidwell <nathan@codesourcery.com>
3884
3885 * c-common.c (shorten_compare): Use force_fit_type directly.
3886
37de1373
GP
38872004-08-14 Gerald Pfeifer <gerald@pfeifer.com>
3888 Dimitri Papadopoulos-Orfanos <papadopo@shfj.cea.fr>
3889 Dave Korn <dk@artimi.com>
3890
3891 * doc/install.texi (Building): Avoid duplicate reference to GNU
3892 make requirement.
3893 (*-*-solaris2*): Do not recommend GNU make any longer. Simplify.
3894
06d69cd3
RH
38952004-08-14 Richard Henderson <rth@redhat.com>
3896
3897 * config/alpha/alpha.h (PROMOTE_MODE): Don't promote vector types.
3898 * config/alpha/alpha.c (function_value): Use PROMOTE_MODE.
3899
e427abbf
RH
39002004-08-13 Richard Henderson <rth@redhat.com>
3901
3902 * config/i386/i386.md (call_1, sibcall_1, call_1_rex64): Use Pmode
3903 for constant_call_address_operand.
3904 (call_value_pop_1, call_value_1): Likewise.
3905 (sibcall_value_1, call_value_1_rex64): Likewise.
3906
2b407936
JW
39072004-08-13 James E Wilson <wilson@specifixinc.com>
3908
3909 * config/mips/sb1.md (ir_sb1_divdf_2pipes, ir_sb1_divdf_1pipe):
3910 Correct mode from SFmode to DFmode.
3911
3e0d5ae2
ZL
39122004-08-13 Ziemowit Laski <zlaski@apple.com>
3913
3914 * config/darwin.h (EXTRA_SECTION_FUNCTIONS): Mark the __sel_fixup,
3915 __cstring_object and __image_info sections with the no_dead_strip
3916 attribute.
3917
e0704143
RS
39182004-08-13 Roger Sayle <roger@eyesopen.com>
3919 David Billinghurst <David.Billinghurst@riotinto.com>
3920
3921 PR libgfortran/15930
3922 * fixinc/inclhack.def (irix___generic1, irix___generic2): New.
3923 * fixinc/fixincl.x: Regenerate.
3924 * fixinc/tests/base/internal/math_core.h: New file.
3925
8768c655
RH
39262004-08-13 Richard Henderson <rth@redhat.com>
3927
3928 * dbxout.c (NO_DBX_FUNCTION_END): Default to zero.
3929 (dbxout_function_end): Remove ifdefs for it.
3930 (dbxout_begin_prologue): Protect N_BNSYM with it, and gdb extensions.
3931
201312c2
RH
39322004-08-13 Richard Henderson <rth@redhat.com>
3933
3934 * Makefile.in (insn-preds.o): Depend on TREE_H.
3935 * genpreds.c (write_insn_preds_c): Include tree.h.
3936 * config/alpha/alpha.c (reg_or_0_operand, reg_or_6bit_operand,
3937 reg_or_8bit_operand, cint8_operand, add_operand, sext_add_operand,
3938 const48_operand, and_operand, or_operand, mode_width_operand,
3939 mode_mask_operand, mul8_operand, const0_operand,
3940 hard_fp_register_operand, hard_int_register_operand,
3941 reg_or_cint_operand, some_operand, some_ni_operand, input_operand,
3942 samegp_function_operand, direct_call_operand, small_symbolic_operand,
45c8116d 3943 global_symbolic_operand, call_operand, symbolic_operand,
201312c2
RH
3944 dtp16_symbolic_operand, dtp32_symbolic_operand,
3945 gotdtp_symbolic_operand, tp16_symbolic_operand, tp32_symbolic_operand,
3946 gottp_symbolic_operand, alpha_comparison_operator,
3947 alpha_zero_comparison_operator, alpha_swapped_comparison_operator,
3948 signed_comparison_operator, alpha_fp_comparison_operator,
3949 divmod_operator, fix_operator, aligned_memory_operand,
3950 unaligned_memory_operand, reg_or_unaligned_mem_operand,
3951 any_memory_operand, reg_not_elim_operand, normal_memory_operand,
3952 reg_no_subreg_operand, addition_operation): Move to predicates.md.
3953 (reg_or_const_int_operand): Remove. Replace all users with
3954 reg_or_cint_operand.
3955 (tls_symbolic_operand_1): Export. Don't check mode or for CONST.
3956 (resolve_reload_operand): Split out of aligned_memory_operand.
3957 * config/alpha/alpha-protos.h: Update for exports.
3958 * config/alpha/alpha.h (PREDICATE_CODES): Remove.
3959 * config/alpha/alpha.md: Include predicates.md.
3960 * config/alpha/predicates.md: New file.
3961
1e9c8405
RS
39622004-08-13 Richard Sandiford <rsandifo@redhat.com>
3963
3964 * genattrtab.c (insn_ent): Replace insn_code, insn_index and lineno
3965 fields with a pointer to the instruction definition.
3966 (get_attr_value, fill_attr, make_length_attrs, remove_insn_ent)
3967 (insert_insn_ent, simplify_test_exp, optimize_attrs, write_attr_get)
3968 (write_attr_case, write_const_num_delay_slots): Update accordingly.
3969 (write_attr_case, write_const_num_delay_slots): Write the name of
3970 an insn next to its case statement.
3971 * genoutput.c (data): Add a filename field.
3972 (gen_insn, gen_peephole, gen_expand, gen_split): Set it.
3973 (output_insn_data): Print the location of each insn definition.
3974 * genrecog.c (write_action): Print the name of an insn above
3975 the statement that returns its code.
3976
1e5f1716
AP
39772004-08-12 Andrew Pinski <pinskia@physics.uc.edu>
3978
3979 * config/darwin-c.c (find_subframework_file): Fix spelling of cannot.
3980 * config/libgloss.h: Likewise.
3981 * config/arm/arm.c (arm_gen_load_multiple): Likewise.
3982 * c4x/c4x-modes.def: Likewise.
3983 * config/c4x/c4x.c (c4x_hard_regno_rename_ok): Likewise.
3984 (c4x_rptb_nop_p): Likewise.
3985 (c4x_rptb_valid_p): Likewise.
3986 (c4x_rptb_insert): Likewise.
3987 (c4x_address_conflict): Likewise.
3988 * config/c4x/c4x.md: Likewise.
3989 * config/frv/frv.md: Likewise.
3990 * config/i386/athlon.md: Likewise.
3991 * config/i386/i386.md: Likewise.
3992 * config/i386/predicates.md: Likewise.
3993 * config/ia64/ia64.c: Likewise.
3994 * config/ia64/itanium1.md: Likewise.
3995 * config/ia64/itanium2.md: Likewise.
3996 * config/iq2000/iq2000.md: Likewise.
3997 * config/mcore/mcore.c: Likewise.
3998 * config/mips/mips.c: Likewise.
3999 * config/mips/r3900.h: Likewise.
4000 * config/mips/sb1.md: Likewise.
4001 * config/pa/milli64.S: Likewise.
4002 * config/pa/pa.c: Likewise.
4003 * config/pa/pa.h: Likewise.
4004 * config/rs6000/8540.md: Likewise.
4005
9bcc9490
DB
40062004-08-13 Daniel Berlin <dberlin@dberlin.org>
4007
4008 * Makefile.in (BOOT_CFLAGS): Remove accidental addition of -dU.
4009
68fe56fc
R
40102004-08-13 J"orn Rennecke <joern.rennecke@superh.com>
4011
4012 * sh.md (cbranch define_delay) Use cond_delay_slot for
4013 non-anulled condition too.
4014
85d346f1
DE
40152004-08-12 David Edelsohn <edelsohn@gnu.org>
4016
4017 * config/rs6000/rs6000.c (any_parallel_operand): New predicate.
4018 * config/rs6000/rs6000.h (PREDICATE_CODES): Add
4019 any_parallel_operand, lmw_operation, stmw_operation,
a688b3ac 4020 mfcr_operation, mtcrf_operation. Remove PARALLEL from any_operand.
85d346f1
DE
4021 * config/rs6000/rs6000.md (save_fpregs_{si,di}): Use
4022 any_parallel_operand.
4023 (return_and_restore_fpregs_{si,di}): Same.
4024
47d2cee5
ZW
40252004-08-12 Zack Weinberg <zack@codesourcery.com>
4026
4027 * genrecog.c (add_to_sequence): When processing a MATCH_PARALLEL,
4028 if pred->singleton != PARALLEL, issue a warning and pretend it was.
4029 Also issue a warning for any predicate we don't know about.
4030
8fe75e43
RH
40312004-08-12 Richard Henderson <rth@redhat.com>
4032
4033 * config/i386/i386.c (internal_label_prefix): Export.
4034 (internal_label_prefix_len, struct ix86_address,
4035 ix86_decompose_address, maybe_get_pool_constant,
4036 ix86_fp_compare_code_to_integer, ix86_fp_comparison_codes,
4037 memory_address_length): Export.
47d2cee5 4038 (any_fp_register_operand, fp_register_operand,
8fe75e43 4039 register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand,
47d2cee5 4040 x86_64_general_operand, x86_64_szext_general_operand,
8fe75e43
RH
4041 x86_64_nonmemory_operand, x86_64_movabs_operand,
4042 x86_64_szext_nonmemory_operand, x86_64_immediate_operand,
4043 x86_64_zext_immediate_operand, const_int_1_31_operand,
4044 symbolic_operand, pic_symbolic_operand, local_symbolic_operand,
4045 tls_symbolic_operand, global_dynamic_symbolic_operand,
4046 local_dynamic_symbolic_operand, initial_exec_symbolic_operand,
4047 local_exec_symbolic_operand, call_insn_operand, sibcall_insn_operand,
4048 constant_call_address_operand, const0_operand, const1_operand,
4049 const248_operand, const_0_to_3_operand, const_0_to_7_operand,
4050 const_0_to_15_operand, const_0_to_255_operand, incdec_operand,
4051 shiftdi_operand, reg_no_sp_operand, mmx_reg_operand,
4052 general_no_elim_operand, nonmemory_no_elim_operand,
4053 index_register_operand, q_regs_operand, flags_reg_operand,
4054 non_q_regs_operand, zero_extended_scalar_load_operand,
4055 vector_move_operand, no_seg_address_operand, sse_comparison_operator,
47d2cee5 4056 ix86_comparison_operator, ix86_carry_flag_operator,
8fe75e43
RH
4057 fcmov_comparison_operator, promotable_binary_operator,
4058 cmp_fp_expander_operand, ext_register_operand, binary_fp_operator,
47d2cee5 4059 mult_operator, div_operator, arith_or_logical_operator,
8fe75e43
RH
4060 memory_displacement_operand, cmpsi_operand, long_memory_operand,
4061 aligned_operand): Move to predicates.md as define_predicates.
4062 (tls_symbolic_operand_1): Remove.
4063 (x86_64_sign_extended_value): Merge into x86_64_immediate_operand.
4064 (x86_64_zero_extended_value): Merge into x86_64_zext_immediate_operand.
4065 (legitimize_address): Merge tls_symbolic_operand contents.
4066 (ix86_expand_move): Likewise.
4067 * config/i386/i386-protos.h: Update for exports.
4068 * config/i386/i386.h (EXTRA_CONSTRAINT): Update for renames.
4069 (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Remove.
4070 * config/i386/i386.md: Include predicates.md.
4071 * config/i386/predicates.md: New file.
4072
ea3d83a7
MM
40732004-08-13 Mark Mitchell <mark@codesourcery.com>
4074
4075 PR c++/16924
4076 * config/i386/winnt.c (i386_pe_mark_dllexport): Set
4077 SYMBOL_REF_DECL.
4078 (i386_pe_mark_dllimport): Likewise.
4079 (i386_pe_encode_section_info): Likewise, when overriding
4080 dllimport attribute.
4081
414adbdd
GK
40822004-08-12 Geoffrey Keating <geoffk@apple.com>
4083
4084 * configure.ac: When testing for flex, nm, ar, and bison, check
4085 that they will actually be built.
4086 * configure: Regenerate.
4087
c5443745
UW
40882004-08-12 Ulrich Weigand <uweigand@de.ibm.com>
4089
4090 * config/s390/s390.h (MAX_FIXED_MODE_SIZE): Define.
4091 (MOVE_MAX_PIECES): Define.
4092
8fa5469d
DP
40932004-08-12 Devang patel <dpatel@apple.com>
4094
4095 * dbxout.c (dbxout_begin_prologue): New function.
4096 (dbx_debug_hooks): Use new begin prologue hook.
4097 (dbxout_function_end): Emit N_ENSYM.
4098 * stab.def (N_BNSYM, N_ENSYM): Define and document these two new stabs.
47d2cee5 4099
b0b343db
JJ
41002004-08-12 Janis Johnson <janis187@us.ibm.com>
4101
e390eb0a
JJ
4102 * config/rs6000/altivec.h (vec_dst): Fix C++ functions whose first
4103 argument is float*.
4104
e34b6648
JJ
4105 * config/rs6000/rs6000.c (altivec_init_builtins): Fix argument type
4106 for vec_dss.
4107
b0b343db
JJ
4108 * doc/extend.texi (AltiVec builtins): Fix description for recent
4109 changes. Update operation list to match current support.
4110
adf39f8f
AK
41112004-08-12 Andreas Krebbel <krebbel1@de.ibm.com>
4112
4113 * config/s390/s390.c (struct s390_frame_layout): New struct as element
4114 of struct machine_function.
4115 (cfun->machine->frame_size): Moved into cfun->machine->frame_layout and
4116 changed all uses.
4117 (cfun->machine->save_fprs_p): Replaced by cfun_save_high_fprs and
4118 changed all uses.
4119 (cfun_frame_layout, cfun_save_high_fprs_p, cfun_gprs_save_area_size)
4120 (cfun_set_fpr_bit, cfun_fpr_bit_p): New macros.
4121 (s390_frame_area, s390_register_info): New functions.
4122 (s390_optimize_prolog): Renamed to s390_optimize_prologue. Added check
4123 for base register.
4124 (s390_return_addr_rtx, s390_return_address_offset)
4125 (s390_va_start, s390_gimplify_va_arg)
4126 (s390_emit_prologue, s390_emit_epilogue): Adjusted for new stack
4127 layouts.
4128 (s390_frame_info): Functionality partly moved to s390_register_info.
4129 Made adaptions for new stack layout.
4130 (save_gprs, restore_gprs): Changed meaning of second parameter and
4131 adapted all callers.
4132
4133 * config/s390/s390.h (s390_backchain_string): New global variable.
4134 (MASK_BACKCHAIN): Removed definition.
4135 (TARGET_BACKCHAIN): Changed check.
4136 (TARGET_KERNEL_BACKCHAIN): New macro.
4137 (TARGET_SWITCHES): Removed entries of "backchain" and "no-backchain".
4138 (TARGET_OPTIONS): Added "backchain", "no-backchain" and
4139 "kernel-backchain".
4140 (DYNAMIC_CHAIN_ADDRESS): Adjusted for new stack layouts.
4141
4142 * config/s390/s390.md ("allocate_stack"): Added TARGET_KERNEL_BACKCHAIN
4143 as condition. Adjusted for new stack layout.
4144
4145 * doc/invoke.texi: Added documentation for new option
4146 "-mkernel-backchain" and adjusted documentation of "-mbackchain" and
4147 "-mno-backchain".
4148
db151e9d
PB
41492004-08-12 Paul Brook <paul@codesourcery.com>
4150
4151 * config/arm/lib1funcs.asm (ARM_FUNC_ALIAS): Also alias _L__name.
4152 (aeabi_uidivmod, aeabi_idivmod): Provide thumb implementation.
4153
02b75262
DD
41542004-08-12 David Daney <ddaney@avtrex.com>
4155
db151e9d 4156 * java/gcj.texi: Add subsection on signal usage.
02b75262 4157
f64d6991
DE
41582004-08-12 David Edelsohn <edelsohn@gnu.org>
4159
4160 * expr.c (move_by_pieces): Set alignment for move to minimum of
4161 MOVE_MAX_PIECES mode alignment and the largest non-slow mode
4162 alignment, but not less than the original alignment.
4163 (move_by_pieces_ninsns): Same.
4164 (can_store_by_pieces): Similar for store with STORE_MAX_PIECES.
4165 (store_by_pieces_1): Same.
4166
c597ef4e
DN
41672004-08-12 Diego Novillo <dnovillo@redhat.com>
4168
4169 PR tree-optimization/16867
4170 * tree.c (is_global_var): New function.
4171 (needs_to_live_in_memory): Check for TREE_ADDRESSABLE.
4172 Call is_global_var.
4173 * tree.h (DECL_NEEDS_TO_LIVE_IN_MEMORY_INTERNAL): Remove.
4174 Update all users.
4175 (is_global_var): Declare.
4176 * tree-dfa.c (dump_variable): Display global and addressable
4177 attributes.
4178 (add_referenced_var): Clarify documentation when marking
4179 variables call-clobbered.
4180 * tree-flow-inline.h (is_call_clobbered): Call is_global_var
4181 instead of needs_to_live_in_memory.
4182 (mark_call_clobbered): If the variable is a tag, mark it
4183 DECL_EXTERNAL.
4184 * tree-gimple.c (is_gimple_reg): Don't check for
4185 TREE_ADDRESSABLE.
4186 (is_gimple_non_addressable): Likewise.
4187 * tree-ssa-alias.c (get_nmt_for): Always check whether the tag
4188 needs to be marked call-clobbered.
4189 (setup_pointers_and_addressables): Call is_global_var instead
4190 of needs_to_live_in_memory.
4191 * tree-ssa-dce.c (need_to_preserve_store): Remove.
4192 Update all users with is_global_var.
4193 (mark_stmt_if_obviously_necessary): Fix processing of aliased
4194 stores. Don't check the virtual definitions. Rather, check
4195 whether the store is going into global memory.
4196 (find_obviously_necessary_stmts): Get the symbol from the PHI
4197 result.
4198 * tree-ssa-operands.c (get_call_expr_operands): Do not add
4199 clobbering may-defs if the call does not have side effects.
4200
ab5c8549
JJ
42012004-08-12 Jakub Jelinek <jakub@redhat.com>
4202
4203 PR c++/16276
4204 * output.h (default_function_rodata_section,
4205 default_no_function_rodata_section): New prototypes.
4206 * target.h (struct gcc_target): Add asm_out.function_rodata_section.
4207 * target-def.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
4208 (TARGET_ASM_OUT): Add it.
4209 * varasm.c (default_function_rodata_section,
4210 default_no_function_rodata_section): New functions.
4211 * final.c (final_scan_insn): Call
4212 targetm.asm_out.function_rodata_section instead of
4213 readonly_data_section.
4214 * config/darwin.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Define.
4215 * config/mcore/mcore.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
4216 * config/ip2k/ip2k.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
4217 * config/rs6000/xcoff.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
4218 Likewise.
4219 * config/alpha/alpha.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
4220 * config/i386/cygming.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
4221 Likewise.
4222 * config/i386/i386-interix.h (TARGET_ASM_FUNCTION_RODATA_SECTION):
4223 Likewise.
4224 * config/arm/pe.h (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
4225 * config/avr/avr.c (TARGET_ASM_FUNCTION_RODATA_SECTION): Likewise.
4226 * doc/tm.texi (TARGET_ASM_FUNCTION_RODATA_SECTION): Document.
4227
5cf58f28
PB
42282004-08-12 Paul Brook <paul@codesourcery.com>
4229
4230 * dwarf2out.h (dwarf2out_frame_finish): Conditionalize outputting eh
4231 frame info.
4232 * doc/tm.texi: Document interaction between TARGET_UNWIND_INFO and
4233 DWARF2_UNWIND_INFO.
4234
87e184d1
BE
42352004-08-12 Ben Elliston <bje@au.ibm.com>
4236
4237 PR target/16286
4238 * config/rs6000/altivec.h: Change vector to __vector throughout.
4239 (Except for the `vector' macro itself).
4240
e543e219
ZW
42412004-08-12 Zack Weinberg <zack@codesourcery.com>
4242
4243 * genpreds.c: Add capability to generate predicate bodies as
4244 well as function prototypes. Write function prototypes for
4245 the generic predicates too.
4246 (process_define_predicate, write_tm_preds_h, write_insn_preds_c)
4247 (write_predicate_subfunction, mark_mode_tests, add_mode_tests)
4248 (write_match_code, write_predicate_expr, write_one_predicate_function)
4249 (parse_option): New functions.
4250 (output_predicate_decls): Delete.
4251 (main): Read the machine description, process DEFINE_PREDICATE or
4252 DEFINE_SPECIAL_PREDICATE patterns, write tm-preds.h or insn-preds.c
4253 as appropriate.
4254
4255 * genrecog.c (struct decision_test): Replace index with
4256 struct pred_data pointer.
4257 (next_index): Remove, unused.
4258 (pred_table, preds, special_mode_pred_table): Delete.
4259 (compute_predicate_codes, process_define_predicate): New functions.
4260 (validate_pattern, add_to_sequence, write_switch): Update for
4261 new data structures.
4262 (main): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
4263 Check both error_count and have_error.
4264
4265 * gensupport.c (in_fname, first_predicate): New globals.
4266 (define_pred_queue, define_pred_tail): New RTL-pattern queue.
4267 (predicate_table, last_predicate, old_pred_table)
4268 (old_special_pred_table): New statics.
4269 (hash_struct_pred_data, eq_struct_pred_data, lookup_predicate)
4270 (add_predicate, init_predicate_table): New functions.
4271 (process_rtx): Handle DEFINE_PREDICATE and DEFINE_SPECIAL_PREDICATE.
4272 (init_md_reader_args_cb): Use the global in_fname. No need to zero
4273 it or max_include_len. Call init_predicate_table.
4274 (read_rtx): Run the predicate queue after the attribute queue
4275 but before all the others.
4276 * gensupport.h (in_fname, struct pred_data, first_predicate)
4277 (lookup_predicate, add_predicate, FOR_ALL_PREDICATES): Declare.
4278 * rtl.def (MATCH_CODE, MATCH_TEST, DEFINE_PREDICATE)
4279 (DEFINE_SPECIAL_PREDICATE): New RTL codes.
4280 * dummy-conditions.c: Don't include bconfig.h, system.h,
4281 coretypes.h, tm.h, or system.h. Do include stddef.h.
4282 Duplicate declaration of struct c_test from gensupport.h.
4283
4284 * Makefile.in (OBJS-common): Add insn-preds.o.
4285 (STAGESTUFF, .PRECIOUS): Add insn-preds.c.
4286 (insn-preds.c, insn-preds.o): New rules.
4287 (s-preds): Also generate insn-preds.c.
4288 (dummy-conditions.o, genpreds$(build_exeext), genpreds.o):
4289 Update dependencies.
4290 (print-rtl.o, print-rtl1.o): Correct dependencies.
4291
4292 * recog.h: Delete prototypes of predicate functions.
4293
4294 * doc/md.texi (Predicates): New section with complete
4295 documentation of operand/operator predicates. Remove some
4296 incomplete documentation of predicates from other places.
4297 * doc/tm.texi (Misc): Move SPECIAL_MODE_PREDICATES next to
4298 PREDICATE_CODES; indicate that both are deprecated in favor
4299 of define_predicate/define_special_predicate.
4300
4301 * config/ia64/ia64.c: All predicate function definitions moved
4302 to ia64.md, except
4303 (small_addr_symbolic_operand, tls_symbolic_operand): Delete.
4304 (ia64_expand_load_address, ia64_expand_move):
4305 Check SYMBOL_REF_TLS_MODEL directly, don't use tls_symbolic_operand.
4306
4307 * config/ia64/ia64.md: All predicates now defined here.
4308 (symbolic_operand): Is now a special predicate.
4309
4310 * config/ia64/ia64.h: Declare ia64_section_threshold.
4311 (PREDICATE_CODES): Delete.
4312
174283a3
RH
43132004-08-12 Richard Henderson <rth@redhat.com>
4314
4315 * c-common.h (STATEMENT_LIST_HAS_LABEL): New.
4316 * c-semantics.c (add_stmt): Set it.
4317 * c-decl.c (finish_decl): Use it to create a new BIND_EXPR
4318 before instantiating a variable sized type.
4319
15931954
RH
43202004-08-12 Richard Henderson <rth@redhat.com>
4321
4322 * stor-layout.c (round_up, round_down): Move ...
e543e219 4323 * fold-const.c (round_up, round_down): ... here. Use
15931954
RH
4324 multiple_of_p to avoid any arithmetic at all.
4325
57d1dd87
RH
43262004-08-12 Richard Henderson <rth@redhat.com>
4327
4328 * gimplify.c (struct gimplify_init_ctor_preeval_data): New.
4329 (gimplify_init_ctor_preeval_1): New.
4330 (gimplify_init_ctor_preeval): New.
4331 (gimplify_init_ctor_eval): New.
4332 (gimplify_init_constructor): Use them. Always gimplify the LHS
4333 object first.
4334
46e34f96
ZL
43352004-08-12 Ziemowit Laski <zlaski@apple.com>
4336
4337 (This patch is part of merge of objc-improvements-branch
4338 into mainline.)
4339
4340 * doc/frontends.texi: Mention Objective-C++ in addition to
4341 Objective-C.
4342 * doc/install.texi: Add 'obj-c++' to list of configurable
4343 languages.
4344 * doc/invoke.texi: Rename Objective-C option headings to
4345 indicate they also apply to Objective-C++. List file
4346 extensions for Objective-C++ sources. Mention that
4347 ObjC and ObjC++ compilations may also use C and C++ options,
4348 respectively. Point users to doc/standards.texi for
4349 further info on ObjC and ObjC++.
4350 * doc/sourcebuild.texi: Mention the objcp/ directory and
4351 the Objective-C++ sources it contains.
4352 * doc/standards.texi: Update link to Apple ObjC site;
4353 add link to gcc readings.html WWW doc.
4354
07f12d8b
AM
43552004-08-12 Alan Modra <amodra@bigpond.net.au>
4356
4357 * config/rs6000/rs6000.c (function_arg_padding): Revert 2004-07-28
4358 and 2004-07-14 changes.
4359
89aa5a20
PB
43602004-08-12 Paul Brook <paul@codesourcery.com>
4361
4362 * doc/invoke.texi: Fix typo.
4363
5079843a
DP
43642004-08-11 Devang Patel <dpatel@apple.com>
4365
4366 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Add -dead_strip
4367 and -no_dead_strip_inits_and_terms.
4368 (LINK_SPEC): Same.
4369 * doc/invoke.texi (Darwin Options): Document -dead_strip and
4370 -no_dead_strip_inits_and_terms.
e543e219 4371
876f13b0
PB
43722004-08-11 Paul Brook <paul@codesourcery.com>
4373
4374 * config/arm/arm-protos.h (arm_finalize_pic) Rename ...
4375 (arm_load_pic_register): ... to this.
4376 * config/arm/arm.c (arm_finalize_pic): Rename ...
4377 (arm_load_pic_register): ... to this. Always output insns at the
4378 current location. Load via low reg in thumb mode.
4379 (arm_expand_prologue): Call arm_load_pic_register.
4380 (thumb_expand_prologue): Ditto.
4381 * config/arm/arm.h (FINALIZE_PIC): Remove.
4382 * config/arm/arm.md (builtin_setjmp_receiver): Call
4383 arm_load_pic_register.
4384
57934c39
PB
43852004-08-11 Paul Brook <paul@codesourcery.com>
4386
4387 * arm.c (thumb_force_lr_save): Add prototype.
4388 (thumb_compute_save_reg_mask): New function.
4389 (thumb_find_work_register): New function.
4390 (arm_get_frame_offsets): Use thumb_compute_save_reg_mask.
4391 (thumb_unexpanded_epilogue): Ditto. Remove redundant code.
4392 Don't clobber r3 when removing pretend args.
4393 (thumb_expand_prologue): Use thumb_compute_save_reg_mask.
4394 (thumb_output_function_prologue): Use new functions.
4395 (thumb_set_return_address): Use thumb_compute_save_reg_mask.
4396 * arm.h (THUMB_REG_PUSHED_P): Remove.
4397
af874237
JW
43982004-08-11 James E Wilson <wilson@specifixinc.com>
4399
4400 PR rtl-optimization/16490
4401 * cfgrtl.c (cfg_layout_split_edge): Set global_live_at_start and
4402 global_live_at_end for new basic block if already set for other blocks.
4403
c1618c0c
DE
44042004-08-11 David Edelsohn <edelsohn@gnu.org>
4405
4406 * config/rs6000/rs6000.h (MAX_FIXED_MODE_SIZE): Define.
4407
4408 * config/rs6000/rs6000.md (mfcr rlwinm patterns): Set length to 8.
4409 (mfcr rlwinm rlwinm patterns): Set length to 12.
4410
1a24f92f
AM
44112004-08-11 Andrew MacLeod <amacleod@redhat.com>
4412
4413 * tree-flow-inline.h (get_def_ops, get_use_ops, get_v_may_def_ops,
4414 get_vuse_ops,get_v_must_def_ops): Add operand structure reference.
4415 (get_v_may_def_result_ptr, get_v_may_def_op_ptr): New access struct.
4416 (start_ssa_stmt_operands): Delete.
e543e219 4417 * tree-flow.h (struct stmt_ann_d): Replace operand vectors with new
1a24f92f
AM
4418 struct stmt_operands_d.
4419 (build_ssa_operands): New extern entry point.
e543e219 4420 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove operand
1a24f92f
AM
4421 building code, replace with create_ssa_artficial_load_stmt().
4422 * tree-ssa-operands.c (struct voperands_d): Delete.
4423 (allocate_v_may_def_optype): Allocate v_may_def_operand_type_t vector.
4424 (allocate_v_must_def_optype): Use sizeof (tree), not sizeof (tree *).
e543e219 4425 (free_uses, free_defs, free_vuses, free_v_may_defs,
1a24f92f
AM
4426 free_v_must_defs): Remove dealloc parameter.
4427 (remove_vuses, remove_v_may_def, remove_v_must_defs): Delete.
4428 (finalize_ssa_defs, finalize_ssa_uses, finalize_ssa_v_may_defs,
4429 finalize_ssa_vuses, finalize_ssa_v_must_defs): Perform all operand
4430 vector comparisons, ssa_name reuse, and allocations here.
4431 (verify_start_operands): Delete.
4432 (finalize_ssa_stmt_operands): Set new operands by calling finalize
4433 routines.
4434 (start_ssa_stmt_operands): Move from tree-flow-inline.h.
4435 (append_def, append_usei): Simplify to simple accumulation.
4436 (append_v_may_def, append_vuse, append_v_must_def): Simplify to avoiding
4437 duplicates and simple accumulation.
4438 (free_ssa_operands): Free vectors in a stmt_operand structure.
4439 (build_ssa_operands): New. Create a new stmt_operand structure from
e543e219 4440 a stmt and an old set of stmt_operands.
1a24f92f
AM
4441 (get_stmt_operands): Simplify and call build_ssa_operands.
4442 (get_expr_operands, get_asm_expr_operands, get_indirect_ref_operands,
4443 get_call_expr_operands, add_stmt_operand, add_call_clobber_ops,
4444 add_call_read_ops): Don't pass prev_vops around anymore.
4445 (note_addressable): Return if no stmt annotation.
4446 (copy_virtual_operands): Access v_may_def operands through a struct.
4447 (create_ssa_artficial_load_stmt): New. Create a load stmt for DOM's
4448 hash tables without treating the stmt as a real stmt.
4449 * tree-ssa-operands.h (struct v_may_def_operand_type): New. Access
4450 v_may_def def and use through a struct instead of 2 array elements.
4451 (struct v_may_def_optype_d): Use v_may_def_operand_type.
4452 (struct stmt_operands_d): New. Struct for storing all operand vectors.
4453
a77655b1
NC
44542004-08-11 Nick Clifton <nickc@redhat.com>
4455
4456 * config/arm/arm.c (arm_is_longcall_p): Update comment describing
4457 this funciton's behaviour. Return true when the current function
4458 has a section attribute and -mlong-calls is in effect.
4459 * config/arm/arm.h (ARM_DECLARE_FUNCTION_SIZE): Do not set the
4460 short-call marker when -mlong-calls is in effect and the function
4461 has a section attribute.
4462
6f4a43e0
ZW
44632004-08-10 Zack Weinberg <zack@codesourcery.com>
4464
4465 * stmt.c (expand_return): If asked to return the RESULT_DECL,
4466 just call expand_value_return on result_rtl.
4467
1a186ec5
RH
44682004-08-10 Richard Henderson <rth@redhat.com>
4469
4470 * builtins.def (BUILT_IN_STACK_ALLOC): Remove.
4471 * builtins.c (expand_builtin) <BUILT_IN_STACK_ALLOC>: Remove.
4472 * dwarf2out.c (loc_descriptor): Handle PARALLEL here ...
4473 (add_location_or_const_value_attribute): ... not here. Use
4474 loc_descriptor_from_tree if possible.
4475 (loc_descriptor_from_tree_1): Rename from loc_descriptor_from_tree.
4476 Simplify address handling. Handle DECL_VALUE_EXPR. Handle register
4477 values specially.
4478 (loc_descriptor_from_tree): New. Update callers.
4479 * expr.c (expand_var): Ignore DECL_VALUE_EXPR variables.
4480 * gimplify.c (gimplify_decl_expr): Lower variable sized types to
4481 pointer plus dereference. Set DECL_VALUE_EXPR. Set save_stack.
4482 (gimplify_call_expr): Do not recognize BUILT_IN_STACK_ALLOC
4483 and BUILT_IN_STACK_RESTORE.
4484 (gimplify_expr): Lower DECL_VALUE_EXPR decls.
4485 * stmt.c (expand_stack_alloc): Remove.
4486 * tree-mudflap.c (mx_register_decls): Don't look for
4487 BUILT_IN_STACK_ALLOC.
4488 * tree-nested.c (convert_local_reference): Likewise.
4489 * tree.h (DECL_VALUE_EXPR): New.
4490
7109c195
RH
44912004-08-10 Richard Henderson <rth@redhat.com>
4492
bf4ccdd6
RH
4493 * stor-layout.c (round_up): Check for 0/1 before dividing.
4494 (round_down): Likewise.
4495
7109c195
RH
4496 * tree-tailcall.c (suitable_for_tail_opt_p): Also check DECL_EXTERNAL.
4497
b3f8d95d
MM
44982004-08-09 Mark Mitchell <mark@codesourcery.com>
4499
4500 * config.gcc (arm*-*-eabi*): New target.
4501 * defaults.h (TARGET_LIBGCC_FUNCS): New macro.
4502 (TARGET_LIB_INT_CMP_BIASED): Likewise.
4503 * expmed.c (expand_divmod): Try a two-valued divmod function as a
4504 last resort.
4505 * gthr.h: Remove bogus tokens at end of #pragma.
4506 * optabs.c (expand_twoval_binop_libfunc): New function.
4507 (prepare_cmp_insn): Handle the !TARGET_LIB_INT_CMP_BIASED case.
4508 (prepare_float_lib_cmp): Try reversing the condition.
4509 (debug_optab_libfuncs): New function.
4510 * optabs.h (expand_twoval_binop_libfunc): Declare.
4511 * config/arm/arm.c (arm_init_libfuncs): New function.
4512 (arm_compute_initial_eliminatino_offset): Return HOST_WIDE_INT.
4513 (TARGET_INIT_LIBFUNCS): Define it.
4514 * config/arm/arm.h (TARGET_BPABI): New macro.
4515 * config/arm/arm-protos.h
4516 (arm_compute_initial_elimination_offset): Return HOST_WIDE_INT.
4517 * config/arm/bpabi.S: New file.
4518 * config/arm/bpabi.c: Likewise.
4519 * config/arm/bpabi.h: Likewise.
4520 * config/arm/ieee754-df.S (__aeabi_dneg): New function or alias.
4521 (__aeabi_drsub): Likewise.
4522 (__aeabi_dsub): Likewise.
4523 (__aeabi_dadd): Likewise.
4524 (__aeabi_ui2d): Likewise.
4525 (__aeabi_i2d): Likewise.
4526 (__aeabi_f2d): Likewise.
4527 (__aeabi_dmul): Likewise.
4528 (__aeabi_ddiv): Likewise.
4529 (__aeabi_cdrcmple): Likewise.
4530 (__aeabi_cdcmpeq): Likewise.
4531 (__aeabi_cdcmple): Likewise.
4532 (__aeabi_dcmpeq): Likewise.
4533 (__aeabi_dcmplt): Likewise.
4534 (__aeabi_dcmple): Likewise.
4535 (__aeabi_dcmpge): Likewise.
4536 (__aeabi_dcmpgt): Likewise.
4537 (__aeabi_dcmpun): Likewise.
4538 (__aeabi_d2iz): Likewise.
4539 (__aeabi_d2uiz): Likewise.
4540 (__aeabi_d2f): Likewise.
4541 * config/arm/ieee754-sf.S (__aeabi_fneg): New function or alias.
4542 (__aeabi_frsub): Likewise.
4543 (__aeabi_fsub): Likewise.
4544 (__aeabi_fadd): Likewise.
4545 (__aeabi_ui2f): Likewise.
4546 (__aeabi_i2f): Likewise.
4547 (__aeabi_fmul): Likewise.
4548 (__aeabi_fdiv): Likewise.
4549 (__aeabi_cfrcmple): Likewise.
4550 (__aeabi_cfcmpeq): Likewise.
4551 (__aeabi_cfcmple): Likewise.
4552 (__aeabi_fcmpeq): Likewise.
4553 (__aeabi_fcmplt): Likewise.
4554 (__aeabi_fcmple): Likewise.
4555 (__aeabi_fcmpge): Likewise.
4556 (__aeabi_fcmpgt): Likewise.
4557 (__aeabi_fcmpun): Likewise.
4558 (__aeabi_f2iz): Likewise.
4559 (__aeabi_f2uiz): Likewise.
4560 * config/arm/lib1funcs.asm (ARM_CALL): New macro.
4561 (__aeabi_uidivmod): New function or alias.
4562 (__aeabi_idivmod): Likewise.
4563 (__aeabi_idiv0): Likewise.
4564 (__aeabi_ldiv0): Likewise.
4565 (__aeabi_llsr): Likewise.
4566 (__aeabi_lasr): Likewise.
4567 (__aeabi_llsl): Likewise.
4568 (bpabi.S): Include it.
4569 * config/arm/libgcc-bpabi.ver: New file.
4570 * config/arm/symbian.h (ARM_DEFAULT_ABI): Remove.
4571 (LINK_SPEC): Remove.
4572 * config/arm/t-arm-elf (LIB1ASMFUNCS): Add __aeabi_lcmp and
4573 __aeabi_ulcmp.
4574 * config/arm/t-bpabi: New file.
4575 * doc/tm.texi (TARGET_LIBGCC_FUNCS): New entry.
4576 (TARGET_LIB_INT_CMP_BIASED): Likewise.
6f4a43e0 4577
fba73eb1
DE
45782004-08-10 David Edelsohn <edelsohn@gnu.org>
4579
4580 * config/rs6000/rs6000-protos.h (expand_block_clear): Declare.
4581 * config/rs6000/rs6000.md (clrmemsi): New pattern.
4582 * config/rs6000/rs6000.c (expand_block_clear): New function.
4583 (expand_block_move): Convert alignment to bits. Use SImode and
4584 HImode for unaligned addresses if not STRICT_ALIGNMENT.
4585
45862004-08-10 Caroline Tice <ctice@apple.com>
c295317d
CT
4587
4588 * varasm.c (unlikely_section_label): New global variable.
4589 (unlikely_text_section_name): New global variable.
4590 (text_section): Remove alignment statement.
6f4a43e0 4591 (unlikely_text_section): Remove alignment statement; use
c295317d
CT
4592 unlikely_section_label rather than hard-coded string.
4593 (assemble_start_function): Initialize unlikely_section_label and
4594 unlikely_text_section_name; make sure cold section is properly
4595 aligned at start of function; output unlikely_section_label if
4596 appropriate.
4597
68f9c5e2
UW
45982004-08-10 Ulrich Weigand <uweigand@de.ibm.com>
4599
4600 * config/s390/s390-protos.h (s390_canonicalize_comparison): Declare.
4601 * config/s390/s390.c (s390_canonicalize_comparison): New function.
4602 * config/s390/s390.h (CANONICALIZE_COMPARISON): Define.
4603 * config/s390/s390.md ("*tmdi_ext", "*tmsi_ext", "*tmqisi_ext",
4604 "*tmqidi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem"): Remove.
4605 ("*tmqi_mem"): Remove SUBREG from pattern.
4606 ("*anddi3_cconly"): Prevent accidentally matching TM pattern.
4607 ("*andsi3_cconly"): Likewise.
6f4a43e0 4608
22116d84
L
46092004-08-10 H.J. Lu <hongjiu.lu@intel.com>
4610
4611 PR target/16909
4612 * config/i386/i386.md (*strsetdi_rex_1): Use DI instead of SI.
4613
c75095b2
JJ
46142004-08-10 Janis Johnson <janis187@us.ibm.com>
4615
4616 * doc/sourcebuild.texi (compat testing): Document available test
4617 framework commands. Use the preferred spelling of DejaGnu.
4618
98975653
DB
46192004-08-10 Daniel Berlin <dberlin@dberlin.org>
4620
4621 * lambda.h: Add matrix type, and prototypes for remainder of
4622 matrix and vector functions.
4623 (lambda_vector_mult_const): New function.
4624 (lambda_vector_negate): Ditto.
4625 (lambda_vector_add): Ditto.
4626 (lambda_vector_add_mc): Ditto.
4627 (lambda_vector_copy): Ditto.
4628 (lambda_vector_zerop): Ditto.
4629 (lambda_vector_equal): Ditto.
4630 (lambda_vector_min_nz): Ditto.
4631 (lambda_vector_first_nz): Ditto.
4632 (lambda_vector_matrix_mult): Ditto.
4633 * lambda-mat.c: New file.
4634 * Makefile.in (lambda-mat.o): New.
4635
68b9f53b
AM
46362004-08-10 Andrew MacLeod <amacleod@redhat.com>
4637
4638 * tree-cfg.c (bsi_insert_before, bsi_insert_after): Call modify_stmt
4639 after linking stmt into the program.
4640 (bsi_remove): Don't call modify_stmt.
6f4a43e0 4641 * tree-complex.c (update_complex_assignment,
68b9f53b 4642 expand_complex_comparison): Call modify_stmt after changing the stmt.
6f4a43e0 4643 * tree-outof-ssa.c (rewrite_trees): Call modify_stmt only if not
68b9f53b
AM
4644 removing the stmt.
4645 * tree-ssa-ccp.c (substitute_and_fold): Call modify_stmt after changing
4646 the stmt, and only if needed.
4647 * tree-ssa-dom.c (thread_across_edge): Pass no annotation for a dummy
4648 expression.
4649 (simplify_rhs_and_lookup_avail_expr): Don't take an annotation param.
4650 (simplify_cond_and_lookup_avail_expr): Use modify_stmt.
4651 (simplify_switch_and_lookup_avail_expr): Don't take an annotation param.
6f4a43e0 4652 (eliminate_redundant_computations): Don't pass an annotation. Call
68b9f53b
AM
4653 modify_stmt rather than setting the annotation directly.
4654 (record_equivalences_from_stmt): Remove unused local 'j'.
4655 (cprop_operand): Take a stmt rather than an annotation as a parameter.
4656 Call modify_stmt.
4657 (cprop_into_stmt): Pass stmt rather than annotation.
4658 (update_rhs_and_lookup_avail_expr): Call modify_stmt.
6f4a43e0 4659 * tree-ssa-loop-im.c (schedule_sm): Call get_stmt_ann rather than
68b9f53b
AM
4660 modify_stmt.
4661 * tree-ssa.c (propagate_into_addr): Dont call modify_stmt.
4662
01c98570
JM
46632004-08-10 Jason Merrill <jason@redhat.com>
4664
6c9c4526 4665 PR middle-end/16948
01c98570
JM
4666 * function.c (expand_function_start): Handle DECL_BY_REFERENCE on
4667 the RESULT_DECL.
4668
b2ddaebb
GK
46692004-08-10 Geoffrey Keating <geoffk@apple.com>
4670
4671 * tree-vn.c (val_expr_pair_expr_eq): Compare vuses, to match the
4672 hash function.
4673
23657388
RS
46742004-08-10 Roger Sayle <roger@eyesopen.com>
4675
4676 * config/mips/mips.md: New reciprocal square root patterns that
4677 match sqrt(1.0/x) in addition to the existing 1.0/sqrt(x) insns.
4678
c9ca9b88
PB
46792004-08-10 Paul Brook <paul@codesourcery.com>
4680
4681 * config/arm/arm-protos.h (arm_set_return_address,
4682 thumb_set_return_address): Add prototypes.
4683 * config/arm/arm.h (ARM_FT_EXCEPTION_HANDLER): Remove.
4684 * config/arm/arm.c (arm_compute_func_type,
4685 use_return_insn, arm_compute_save_reg0_reg12_mask,
4686 arm_compute_save_reg_mask, arm_output_function_prologue,
4687 arm_output_epilogue): Replace ARM_FT_EXCEPTION_HANDLER with
4688 current_function_calls_eh_return.
4689 (thumb_exit, thumb_pushpop, thumb_unexpanded_epilogue): Replace
4690 old eh code.
4691 (arm_set_return_address, thumb_set_return_address): New functions.
4692 * config/arm/arm.h (MUST_USE_SJLJ_EXCEPTIONS, DWARF2_UNWIND_INFO,
4693 ARM_EH_STACKADJ_REGNUM, EH_RETURN_STACKADJ_RTX): Define.
4694 * config/arm/arm.md (VUNSPEC_EH_RETURN): Add.
4695 (epilogue): Use the stackadj register.
4696 (eh_return, arm_eh_return, thumb_eh_return): New pattern.
4697
45d78e7f
JJ
46982004-08-10 Jakub Jelinek <jakub@redhat.com>
4699
4700 PR target/3144
4701 * expr.c (move_by_pieces_ninsns): Add max_size argument.
4702 (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1 to it.
4703 (CLEAR_BY_PIECES_P): Pass STORE_MAX_PIECES + 1 to it.
4704 (STORE_BY_PIECES_P): Define similarly to CLEAR_BY_PIECES_P,
4705 but using MOVE_RATIO.
4706 (move_by_pieces): Pass max_size to move_by_pieces_ninsns.
4707 (can_store_by_pieces): Change max_size type to unsigned int.
4708 (store_by_pieces_1): Likewise. Pass max_size to
4709 move_by_pieces_ninsns.
4710 * config/s390/s390.h (STORE_BY_PIECES_P): Define.
4711 * config/sh/sh.c (MOVE_BY_PIECES_P): Pass MOVE_MAX_PIECES + 1
4712 to move_by_pieces_ninsns.
4713 (STORE_BY_PIECES_P): Define.
4714 * config/ns32k/ns32k.h (STORE_BY_PIECES_P): Pass STORE_MAX_PIECES + 1
4715 to move_by_pieces_ninsns.
4716 * doc/tm.texi (STORE_BY_PIECES_P): Document changed default.
4717
4718 * config/i386/i386.h (CLEAR_RATIO): Define.
4719
25f3e06c
PB
47202004-08-09 Paolo Bonzini <bonzini@gnu.org>
4721
4722 * expr.c (expand_expr_real_1): Add back code that was not dead.
4723
6a3203c8
AP
47242004-08-09 Andrew Pinski <apinski@apple.com>
4725
4726 * c-common.c (c_common_get_alias_set): Set the aliasing set of the type
4727 which is found to be compatible before returning the aliasing set.
4728
b9bfca81
DJ
47292004-08-09 Daniel Jacobowitz <dan@debian.org>
4730
4731 * ggc-zone.c (struct alloc_zone): Add statistics counters.
4732 (always_collect): New flag.
4733 (ggc_alloc_zone_1): Update statistics support. Don't include
4734 overhead in allocated counter.
4735 (sweep_pages): Update allocated counter for large pages. Don'y
4736 include overhead.
4737 (ggc_collect_1): Always collect.
4738 (ggc_collect): Honor always_collect flag. Sum all zones to decide
4739 whether to collect.
4740 (SCALE, LABEL): New macros.
4741 (ggc_print_statistics): Add statistics support.
4742
fdded401
RS
47432004-08-09 Roger Sayle <roger@eyesopen.com>
4744
4745 * expmed.c (sdiv_pow2_cheap, smod_pow2_cheap): Change type to bool.
4746 (init_expmed): Fix potential overrun problem with "all.reg".
4747 (expand_sdiv2_pow2): Add an alternate implementation for signed
4748 division, if the target provides a suitable conditional move insn.
4749
9d8646d7
PB
47502004-08-09 Paul Brook <paul@codesourcery.com>
4751 Richard Henderson <rth@redhat.com>
4752
4753 * unwind-dw2.c (uw_install_context_1): Update target saved stack
4754 pointer.
4755
d37e6b50
GK
47562004-08-09 Geoffrey Keating <geoffk@apple.com>
4757
4758 * ggc-common.c (ggc_rlimit_bound): Don't check RSS limit.
4759 Check DATA limit only if there's no AS limit. Ignore insanely
4760 low DATA limits.
4761 (ggc_min_heapsize_heuristic): Don't divide AS or RSS limits by 8,
4762 but take care that the AS limit isn't overrun.
4763 * doc/invoke.texi: Update documentation of min-heapsize parameter.
4764
56b043c8
JL
47652004-08-09 Jeff Law <law@redhat.com>
4766
4767 * Makefile.in (OBJC-common): Add tree-ssa-threadupdate.c
4768 (tree-ssa-threadupdate.o): Add dependencies.
4769 * tree-ssa-threadupdate.c: New file.
4770 * tree-flow.h (incoming_edge_threaded): New flag in block annotation.
4771 (rewrite_vars_out_of_ssa): Remove prototype.
4772 (cleanup_tree_cfg): Returns a bool.
4773 * tree.h (thread_through_all_blocks): Prototype.
4774 * tree-outof-ssa.c (SSANORM_*): Move into here.
4775 (remove_ssa_form): Now static.
4776 (rewrite_vars_out_of_ssa): Kill.
4777 * tree-ssa-live.c (register_ssa_partitions_for_vars): Kill.
4778 * tree-ssa-live.h (SSANORM_*): Moved into tree-outof-ssa.c.
4779 (remove_ssa_form, register_partitions_for_vars): Kill declarations.
4780 * tree-cfg.c (cleanup_tree_cfg): Return a value indicating if
4781 anything was changed.
4782 * tree-phinodes.c (add_phi_arg): Get the block for the PHI
4783 from the PHI's annotation rather than the edge associated with
4784 the new argument.
4785 * tree-ssa-dom.c (redirection_edges): Kill.
4786 (redirect_edges_and_update_ssa_graph): Kill.
4787 (tree_ssa_dominator_optimize): Do not reset forwardable flag
4788 for blocks anymore. Do not initialize redirection_edges.
4789 Call thread_through_all_blocks. Simplify code for cleanup
4790 of the CFG and iterating. No longer call cleanup_tree_cfg
4791 outside the iteration loop.
4792 (thread_across_edge): No longer mess with forwardable blocks.
4793
9b305d55
ZW
47942004-08-09 Zack Weinberg <zack@codesourcery.com>
4795
4796 * explow.c (memory_address): Use memory_address_p.
4797 * recog.c (general_operand): Likewise.
4798 * regrename.c: No need to define REG_OK_STRICT.
4799
27fb79ad
SB
48002004-08-09 Steven Bosscher <stevenb@suse.de>
4801
4802 * timevar.def (TV_CPROP1, TV_CPROP2, TV_PRE, TV_HOIST, TV_LSM):
4803 New timers.
4804 * gcse.c: Include timevar.h.
4805 (const_prop_count, copy_prop_count): Rename to global_const_prop_count
4806 and global_copy_prop_count.
4807 (local_const_prop_count, local_copy_prop_count): New static globals.
4808 (gcse_main): Set the right timevar for each pass.
4809 (cprop_jump): Increment global_const_prop_count when a constant is
4810 propagated. Add "GLOBAL" to dump output.
4811 (cprop_insn): Increment global_const_prop_count when a constant is
4812 propagated, or global_copy_prop_count when a copy is propagated.
4813 (do_local_cprop): Likewise for local_const_prop_count and
4814 local_copy_prop_count.
4815 (one_cprop_pass): Initialize const/cprop counters to zero.
4816 Print out results of local and global const/cprop separately.
4817 (bypass_block): Break over-length line.
702d4b73
SB
4818 * Makefile.in (gcse.o): Add TIMEVAR_H dependency. Fix dependencies
4819 for bb-reorder.o and tracer.o.
27fb79ad 4820
7efcb746
PB
48212004-08-09 Paolo Bonzini <bonzini@gnu.org>
4822
4823 * Makefile.in (GTFILES): Remove stmt.c
4824 (stmt.o): Do not depend on gt-stmt.h.
4825 * emit-rtl.c (emit_line_note): Do not call
4826 set_file_and_line_for_stmt.
4827 * expr.c (expand_expr_real_1) <SWITCH_EXPR>: Let expand_case
4828 do everything.
4829 * function.c (free_after_parsing): Do not free STMT field.
4830 (allocate_struct_function): Do not call init_stmt_for_function.
4831 (assign_stack_temp_for_type): Do not accept values of keep
4832 other than 0 or 1.
4833 (init_temp_slots): Do not initialize removed variables.
4834 * function.h (struct function): Remove STMT, X_TARGET_TEMP_SLOT_LEVEL
4835 and X_VAR_TEMP_SLOT_LEVEL fields.
4836 * rtl.h (set_file_and_line_for_stmt): Remove.
4837 * stmt.c (struct nesting, ALLOC_NESTING, POPSTACK,
4838 struct stmt_status, cond_stack, case_stack, nesting_stack,
4839 nesting_depth, emit_locus, set_file_and_line_for_stmt,
4840 same_case_target_p, init_stmt_for_function, emit_nop,
4841 expand_start_cond, expand_start_elseif, expand_start_else,
4842 expand_elseif, expand_end_cond): Remove.
4843 (preserve_subexpressions_p): Remove references to CFUN->STMT.
4844 (expand_start_case, expand_end_case_type): Remove, merge into...
4845 (expand_case): ... this one, including other bits from
4846 expand_expr_real_1. Inline same_case_target_p. Turn members
4847 of CASE_STACK into local variables.
4848 (emit_case_bit_tests): Inline same_case_target_p.
4849 (add_case_node): Add HEAD argument, return new head of the list,
4850 do not handle default label here.
4851 * tree.h (expand_start_cond, expand_end_cond, expand_start_else,
4852 expand_start_elseif, current_nesting_level, expand_start_case,
4853 expand_end_case_type, expand_end_case, add_case_node,
4854 init_stmt_for_function, expand_elseif): Remove prototypes.
4855 (expand_case): Add prototype.
4856
c4d70ce3
PB
48572004-08-09 Paolo Bonzini <bonzini@gnu.org>
4858
4859 * expr.c (expand_expr_real_1): Use optab_for_tree_code.
4860
48612004-08-09 Paolo Bonzini <bonzini@gnu.org>
e5bacf32
PB
4862
4863 * expr.c (var_rtx): Remove.
4864 (expand_expr_real_1) <LOOP_EXPR, EXIT_EXPR,
4865 LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, TRUTH_ANDIF_EXPR,
4866 TRUTH_ORIF_EXPR, COMPOUND_EXPR, CONJ_EXPR, INIT_EXPR>:
4867 Abort.
4868 (expand_expr_real_1) <COND_EXPR>: Remove most special cases.
4869 * optabs.c (emit_clr_insn, emit_0_to_1_insn): Remove.
4870 * optabs.h (emit_clr_insn, emit_0_to_1_insn): Remove.
4871
d72372e4
MH
48722004-08-08 Mostafa Hagog <mustafa@il.ibm.com>
4873 Ayal Zaks <zaks@il.ibm.com>
4874
4875 * common.opt (freschedule-modulo-scheduled-loops): New flag.
4876 * final.c (final_scan_insn): Handle NOTE_DISABLE_SCHED_OF_BLOCK.
4877 * modulo-sched.c (sms_schedule): Emit a note to disable scheduling
4878 when -freschedule-modulo-scheduled-loops flag is not specified.
4879 (sms_schedule_by_order, ps_insn_advance_column, add_node_to_ps,
4880 add_node_to_ps, ps_has_conflicts, ps_add_node_check_conflicts):
4881 More accurate placing of insn in row of partial schedule.
4882 (ps_insn_find_column): New function.
4883 * rtl.h (NOTE_DISABLE_SCHED_OF_BLOCK): New note.
4884 * sched-rgn.c (sched_is_disabled_for_current_region_p): New.
4885 (schedule_region): Use sched_is_disabled_for_current_region_p.
4886 * docs/invoke.texi: Document -freschedule-modulo-scheduled-loops.
4887
0737fbff
L
48882004-08-07 H.J. Lu <hongjiu.lu@intel.com>
4889
4890 * config/i386/i386.c (ix86_expand_clrmem): Revert the last
4891 change.
4892
11c4576f
L
48932004-08-07 H.J. Lu <hongjiu.lu@intel.com>
4894
4895 * config/i386/i386.c (ix86_expand_clrmem): Properly call
4896 gen_strset for 64bit target.
4897
34def210
OH
48982004-08-07 Olivier Hainque <hainque@act-europe.fr>
4899
4900 * config/vxworks.h (HANDLE_SYSV_PRAGMA): Remove definition.
4901
5201931e
JM
49022004-08-07 Jason Merrill <jason@redhat.com>
4903
cc77ae10
JM
4904 Make return in memory explicit.
4905 * function.c (aggregate_value_p): Check DECL_BY_REFERENCE.
4906 (assign_parm_find_data_types): Remove code for old front end
4907 invisible reference handling.
4908 (assign_parms): Handle DECL_BY_REFERENCE on the RESULT_DECL.
4909 (expand_function_end): Likewise.
4910 * gimplify.c (gimplify_return_expr): Handle a dereferenced
4911 RESULT_DECL.
4912 * tree-inline.c (copy_body_r): Don't bother looking for &* anymore.
4913 (declare_return_variable): Handle DECL_BY_REFERENCE.
4914 * cp/cp-gimplify.c (is_invisiref_parm): Also handle RESULT_DECL.
4915 (cp_genericize_r): Use convert_from_reference.
4916 Don't dereference a RESULT_DECL directly inside a RETURN_EXPR.
4917 (cp_genericize): Handle the RESULT_DECL. Unset TREE_ADDRESSABLE.
4918
5201931e
JM
4919 * c-common.c (c_warn_unused_result): Check TREE_USED before
4920 warning about a CALL_EXPR with an unused value.
4921
2ed9e527
MM
49222004-08-06 Mark Mitchell <mark@codesourcery.com>
4923
4924 * config/arm/symbian.h (CC1_SPEC): Avoid passing duplicate options
4925 to the compiler. Use -fshort-wchar by default.
4926
12183e0f
PH
49272004-08-06 Pat Haugen <pthaugen@us.ibm.com>
4928
4929 * params.def (PARAM_MIN_CROSSJUMP_INSNS): New.
4930 * cfgcleanup.c (try_crossjump_to_edge): Add minimum insn match
4931 threshhold.
4932 * doc/invoke.texi (param): Document min-crossjump-insns.
4933
eaac4679
RS
49342004-08-06 Richard Sandiford <rsandifo@redhat.com>
4935
4936 PR c/13282
4937 * c.opt (Wmissing-field-initializers): New option.
4938 * c-opts.c (c_common_post_options): Make -Wextra turn it on by default.
4939 * c-typeck.c (pop_init_level): Guard the missing field warning with
4940 warn_missing_field_initializers rather than extra_warnings.
4941 * doc/invoke.texi (-Wmissing-field-initializers): Document, moving
4942 some of the explanation from...
4943 (-Wextra): ...here. Say that the missing field warning can be
4944 seperately controlled by -Wmissing-field-initializers.
4945
caad9f81
PB
49462004-08-06 Paolo Bonzini <bonzini@gnu.org>
4947
4948 * expr.c (expand_expr_real_1) <ENTRY_VALUE_EXPR>: Remove.
4949 * tree-inline.c (estimate_num_insns_1) <ENTRY_VALUE_EXPR>: Remove.
4950 * tree-pretty-print.c (dump_generic_node) <ENTRY_VALUE_EXPR>: Remove.
4951 * tree.def (ENTRY_VALUE_EXPR): Remove.
4952
6b32b628
JJ
49532004-08-06 Jakub Jelinek <jakub@redhat.com>
4954
4955 * config/i386/i386.c (ix86_expand_clrmem): Move gen_cld down to
4956 the places where it is actually needed. Don't use repz; stosb
4957 for -Os with sufficiently small constant sizes.
4958 For sufficiently small repz; stos{l,q} repeat counts use a sequence
4959 of stos{l,q} instructions instead.
4960
6797f908
ZD
49612004-08-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4962
4963 PR tree-optimization/16807
4964 * loop-iv.c (dump_iv_info): Dump invariants correctly.
4965 (iv_subreg, iv_extend): Express value of invariant purely in
4966 base field.
4967
866cf037
MM
49682004-08-06 Mark Mitchell <mark@codesourcery.com>
4969
4970 * config/arm/symbian.h (CC1_SPEC): Add -fno-short-enums.
4971 (CC1PLUS_SPEC): Define it to be the same as CC1_SPEC.
4972
9652c531 49732004-08-06 Roman Zippel <zippel@linux-m68k.org>
9b305d55 4974
27fb79ad
SB
4975 * config/m68k/m68k.c (post_inc_operand,pre_dec_operand): New.
4976 * config/m68k/m68k.h (PREDICATE_CODES): add post_inc_operand,
4977 pre_dec_operand.
4978 * config/m68k/m68k.md (zero_extend*2): delay the splitting of the
4979 pattern until reload is finished to allow better code generation
4980 and split them completely into separate instrunctions.
4981 (*andsi3_split): New pattern.
9652c531 4982
b2ca3702
MM
49832004-08-05 Mark Mitchell <mark@codesourcery.com>
4984
4985 * tree.c (handle_dll_attribute): Move here from i383/winnt.c.
4986 Replace use of DECL_INLINE with DECL_DECLARED_INLINE_P. Set
4987 DECL_VISIBLITY. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
4988 * tree.h (handle_dll_attribute): Declare. Test
4989 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
4990 * c-common.h (c_determine_visibility): Declare.
4991 * c-common.c (c_determine_visibility): New function.
4992 * c-decl.c (finish_decl): Use it.
4993 (finish_function): Likewise.
4994 * defaults.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define it to
4995 zero, by default. Use #if, not #ifdef, to test it.
4996 * config/arm/arm.c (arm_attribute_table): Use
4997 handle_dll_attribute. Test TARGET_DLLIMPORT_DECL_ATTRIBUTES with
4998 #if.
4999 * config/arm/pe.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define to 1.
5000 * config/i386/cygming.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
5001 to 1.
5002 * config/i386/i386-protos.h (ix86_handle_dll_attribute): Remove.
5003 * config/i386/i386.c (ix86_attribute_table): Use
5004 handle_dll_attribute for dllimport/dllexport. Test
5005 TARGET_DLLIMPORT_DECL_ATTRIBUTES with #if.
5006 * config/i386/winnt.c (ix86_handle_dll_attribute): Remove.
5007 * config/mcore/mcore.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
5008 it to 1.
5009 * config/mcore/mcore.c (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Test it
5010 with #if.
5011 * config/sh/symbian-pre.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define
5012 it to 1.
5013 * doc/extend.texi (dllexport): Clarify and correct documentation.
5014 (dllimport): Likewise.
5015 * doc/tm.texi (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Mention
5016 handle_dll_attribute.
9b305d55 5017
c913f08a
ZD
50182004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5019
5020 * tree-ssa-loop-manip.c: New file.
5021 * Makefile.in (tree-ssa-loop-manip.o): Add.
5022 * tree-flow.h (rewrite_into_loop_closed_ssa, verify_loop_closed_ssa):
5023 Declare.
5024 * tree-ssa-loop.c (tree_loop_optimizer_init): Create loop closed ssa
5025 form.
5026 (tree_ssa_loop_done): Verify loop closed ssa form.
5027 * tree-ssa-loop-im.c (move_computations): Update loop closed ssa form.
5028
d4482715
JDA
50292004-08-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5030
5031 * pa.c (pa_asm_output_aligned_bss, pa_asm_output_aligned_common,
5032 pa_asm_output_aligned_local): New functions.
5033 * pa-protos.h: Add prototypes for pa_asm_output_aligned_bss,
5034 pa_asm_output_aligned_common and pa_asm_output_aligned_local.
5035 * pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON): Use
5036 pa_asm_output_aligned_common.
5037 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
5038 * pa.h (ASM_OUTPUT_ALIGNED_BSS): New macro.
5039 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
5040 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
5041 * pa64-hpux.h (MAX_OFILE_ALIGNMENT): New macro.
5042 (ASM_OUTPUT_ALIGNED_COMMON): Use pa_asm_output_aligned_common.
5043 (ASM_OUTPUT_ALIGNED_LOCAL): Use pa_asm_output_aligned_local.
5044 * som.h (MAX_OFILE_ALIGNMENT): Provide maximum alignment of global
5045 common data.
5046
21149a79
AP
50472004-08-05 Andrew Pinski <apinski@apple.com>
5048
5049 * objc/objc-act.c (build_objc_string_object): Mark the address
5050 expression as constant.
5051
d5861a7a
DE
50522004-08-05 David Edelsohn <edelsohn@gnu.org>
5053
5054 * config/rs6000/rs6000.c (rs6000_rtx_costs): Fix mask_operand
5055 and mask64_operand thinkos. Handle ZERO_EXTRACT. Handle
5056 SIGN_EXTEND / ZERO_EXTEND of MEM. Handle rlwinm patterns.
5057
0a2b72a6
JM
50582004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
5059
5060 * config/linux.h, config/i386/linux.h, config/sparc/linux.h:
5061 Remove definitions conditioned on USE_GNULIBC_1 or conditioned
5062 out, and associated obsolete comments.
5063
ca7a3bd7
NS
50642004-08-05 Nathan Sidwell <nathan@codesourcery.com>
5065
5066 * tree.h (force_fit_type): Return a tree, take three flags.
5067 * fold-const.c (force_fit_type): Set TREE_OVERFLOW and
5068 TREE_CONSTANT_OVERFLOW here.
5069 (int_const_binop, const_binop): Adjust.
5070 (size_int_type): Do sign extension here.
5071 (fold_convert_const, optimize_bit_field_compare,
5072 decode_field_reference, all_ones_mask_p, fold_div_compare, fold,
5073 fold_negate_const, fold_abs_const, fold_not_const): Adjust.
5074 * tree.c (size_in_bytes, int_fits_type_p): Adjust.
5075
d36837f4
ZD
50762004-08-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5077
5078 PR tree-optimization/16864
5079 * tree-tailcall.c (eliminate_tail_call): Do not create phi nodes
5080 for ssa names without default_def.
5081
ea5f7a19
RS
50822004-08-05 Richard Sandiford <rsandifo@redhat.com>
5083
5084 * config/i386/i386.c (ix86_expand_prologue): If the function uses a
5085 frame pointer, restore eax with an ebp-relative address.
5086
0e6df31e
GK
50872004-08-04 Geoffrey Keating <geoffk@apple.com>
5088
5089 PR 14516
5090 * c-common.c (c_expand_decl): Don't special-case static VAR_DECLs.
5091 * c-common.h (make_rtl_for_local_static): Delete.
5092 * c-decl.c (shadow_tag_warned): Clean up comment.
5093 (finish_decl): Clean up spacing. Use set_user_assembler_name when
5094 appropriate. Don't pass asmspec to rest_of_decl_compilation.
5095 * c-semantics.c (make_rtl_for_local_static): Delete.
5096 * expr.c (init_block_move_fn): Use set_user_assembler_name.
5097 (init_block_clear_fn): Likewise.
5098 * passes.c (rest_of_decl_compilation): Remove asmspec parameter,
5099 expect it to be in DECL_ASSEMBLER_NAME. Update callers in many files.
5100 * toplev.h (rest_of_decl_compilation): Remove asmspec parameter.
5101 * tree.h (make_decl_rtl): Remove second parameter.
5102 (set_user_assembler_name): New.
5103 * varasm.c (set_user_assembler_name): New.
5104 (make_decl_rtl): Remove second parameter. Update callers in many
5105 files.
5106
4f587cb0
AN
51072004-08-05 Adam Nemet <anemet@lnxw.com>
5108
5109 * config.gcc (case i[34567]86-*-lynxos*): Update to LynxOS 4.0.
5110 (case rs6000-*-lynxos*): Rename it to powerpc-*-lynxos*. Update
5111 to LynxOS 4.0.
5112 * gthr-lynx.h: New file.
5113 * config/lynx-ng.h: Remove file.
5114 * config/lynx.h: Update to LynxOS 4.0.
5115 * config/t-lynx: New file.
5116 * config/i386/lynx-ng.h: Remove file.
5117 * config/i386/lynx.h: Update to LynxOS 4.0.
5118 * config/rs6000/lynxbase.h: Remove file.
5119 * config/rs6000/lynx.h: Update to LynxOS 4.0.
5120 * config/rs6000/t-lynx: New file.
5121 * doc/install.texi (Options specification): Remove reference to
5122 LynxOS from systems where --with-gnu-as makes a difference.
5123
85291069
JM
51242004-08-05 Joseph S. Myers <jsm@polyomino.org.uk>
5125
5126 * c-common.c (c_stddef_cpp_builtins): Define __INTMAX_TYPE__ and
5127 __UINTMAX_TYPE__.
5128 * c-cppbuiltin.c (builtin_define_stdint_macros): New. Define
5129 __INTMAX_MAX__.
5130 (c_cpp_builtins): Call it.
5131 * doc/cpp.texi: Update.
5132
30a555d9
DE
51332004-08-04 David Edelsohn <edelsohn@gnu.org>
5134
5135 * config/rs6000/rs6000.c (rs6000_rtx_costs): LABEL_REFs are zero
5136 cost.
5137
878f99d2
JH
51382004-08-04 Jan Hubicka <jh@suse.cz>
5139
5140 * basic-block.h (profile_staus): New global variable.
5141 * cfg.c (profile_status): Declare.
5142 (check_bb_profile): Break out from ....; use profile_status
5143 (dump_flow_info): ... here.
5144 * cfgbuild.c (find_basic_blocks): Set profile_status.
5145 * cfgexpand.c (tree_expand_cfg): Likewise.
5146 * predict.c (estimate_probability): Likewise.
5147 * profile.c (branch_prob): Likewise.
5148 * tree-cfg.c (build_tree_cfg): Likewise.
5149 (dump_function_to_file): Use check_bb_profile.
5150 * tree-pretty-print (dump_bb_header): Likewise.
5151 * tree-profile.c (do_tree_profiling): Cleanup.
5152
7e7ec48e
ZW
51532004-08-04 Zack Weinberg <zack@codesourcery.com>
5154
5155 * Makefile.in (RTL_BASE_H, RTL_H): Correct.
5156 (BUILD_RTL): Remove $(BUILD_PREFIX) from ggc-none.o.
5157 (genobjs): Add errors.o, ggc-none.o, and min-insn-modes.o.
5158 (read-rtl.o, gensupport.o, genconfig.o, genflags.o, gencodes.o)
5159 (genconstants.o, genemit.o, genopinit.o, genrecog.o, genextract.o)
5160 (genpeep.o, genattr.o, genattrtab.o, genautomata.o, genoutput.o)
5161 (genconditions.o): Depend on $(RTL_BASE_H) not $(RTL_H).
5162 (ggc-none.o, errors.o): Move rule to generators section;
5163 correct dependencies.
5164 (min-insn-modes.o): Move rule to generators section; remove
5165 unnecessary explicit command; correct dependencies.
5166 (print-rtl.o, print-rtl1.o): Correct dependencies.
5167 ($(BUILD_PREFIX_1)errors.o. $(BUILD_PREFIX_1)ggc-none.o): Delete rule.
5168 (mostlyclean): Update.
5169
5170 * errors.c: Include bconfig.h not config.h. Correct comment.
5171 * gengtype.c, genpreds.c: Don't define NO_GENRTL_H.
5172 * ggc-none.c: Include bconfig.h; not config.h or tm.h.
5173 * print-rtl.c: Don't include tm_p.h.
5174
5175 * rtl.h: Move forward-decl of struct function down where it's
5176 needed. Include genrtl.h #ifndef GENERATOR_FILE, not
5177 #ifndef NO_GENRTL_H. Remove unnecessary #ifdef BUFSIZ statements.
5178
b0382c67
ZD
51792004-08-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5180 Jeff Law <law@redhat.com>
5181
5182 * tree-cfg.c (tree_duplicate_bb): Mark duplicated definitions.
5183 * tree-flow.h (rewrite_ssa_into_ssa): Declaration changed.
5184 * tree-into-ssa.c (rewrite_ssa_into_ssa): Use new interface to
5185 manipulate the duplicated ssa names.
5186 * tree-ssanames.c (ssa_names_to_rewrite): New variable.
5187 (marked_for_rewrite_p, any_marked_for_rewrite_p, mark_for_rewrite,
5188 unmark_all_for_rewrite, marked_ssa_names, release_ssa_name_force):
5189 New functions.
5190 (release_ssa_name): Do not release ssa names that may have multiple
5191 definitions.
5192 * tree.h (release_ssa_name_force, mark_for_rewrite,
5193 unmark_all_for_rewrite, marked_for_rewrite_p, any_marked_for_rewrite_p,
5194 marked_ssa_names): Declare.
5195 * tree-ssa-loop-ch.c (mark_defs_for_rewrite): Remove.
5196 (duplicate_blocks): Remove call to mark_defs_for_rewrite.
5197 Update call to rewrite_ssa_into_ssa.
5198
63c5b495
MM
51992004-08-04 Mark Mitchell <mark@codesourcery.com>
5200
5201 * defaults.h (TARGET_DECLSPEC): New macro.
5202 * c-cppbuiltin.c (c_cpp_builtins): Handle TARGET_DECLSPEC.
5203 * config/arm/pe.h (SUBTARGET_CPP_SPEC): Remove __declspec support.
b2ca3702 5204 * config/arm/symbian.h (TARGET_DLLIMPORT_DECL_ATTRIBUTES): Define.
63c5b495
MM
5205 * config/i386/beof-elf.h (TARGET_OS_CPP_BUILTINS): Remove
5206 __declspec support.
5207 (TARGET_DECLSPEC): Define.
5208 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Remove
5209 __declspec support.
5210 * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS): Remove
5211 __declspec support.
5212 (TARGET_DECLSPEC): Define.
5213 * config/mcore/mcore.h (TARGET_CPU_CPP_BUILTINS): Remove
5214 __declspec support.
5215 * config/sh/symbian-pre.h (SUBTARGET_CPP_SPEC): Remove __declspec
5216 support.
5217 * doc/tm.texi (TARGET_DECLSPEC): Document.
5218
5219 * doc/extend.texi: Fix typo in comment.
5220
44d10c10
PB
52212004-08-04 Paul Brook <paul@codesourcery.com>
5222
5223 * target-def.h (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
5224 (TARGET_CXX): Use it.
5225 * target.h (struct gcc_target): Add cdtor_returns_this.
5226 * config/arm/arm.c (arm_cxx_cdtor_returns_this): New function.
5227 (TARGET_CXX_CDTOR_RETURNS_THIS): Define.
5228 * doc/tm.texi: Document TARGET_CXX_CDTOR_RETURNS_THIS.
5229
5e9754af
NS
52302004-08-03 Nathan Sidwell <nathan@codesourcery.com>
5231
5232 * c-lex.c (narrowest_unsigned_type, narrowest_signed_type): Take
5233 low/high pair. Do range checking directly.
5234 (interpret_integer): Adjust.
5235
2acc29bd
NC
52362004-08-04 Nick Clifton <nickc@redhat.com>
5237
5238 * config/sh/sh.h (TARGET_SWITCHES): Add no-renesas to select the
5239 GCC ABI.
5240 * doc/invoke.texi: Document this new switch and also the -mrenesas
5241 switch.
5242
2496942a
NS
52432004-08-04 Nathan Sidwell <nathan@codesourcery.com>
5244
5245 * cfglayout.c (insn_locators_initialize): Update the current
5246 location before initializing a location.
5247
7e2e8179
ZW
52482004-08-03 Zack Weinberg <zack@codesourcery.com>
5249
403f8503
ZW
5250 * dbxout.c (dbxout_function_decl): Always call dbxout_function_end.
5251 (dbxout_function_end): Return after emitting the "Lscope" symbol
5252 under the same conditions that this function formerly wasn't called.
5253 Add explanatory comments.
5254
bcc7f708 5255 PR 14860
ca043393
ZW
5256 * c-decl.c (record_builtin_type): Call debug_hooks->type_decl
5257 on the new decl.
5258
bcc7f708 5259 PR 13956
7e2e8179
ZW
5260 * dbxout.c (dbx_output_lbrac, dbx_output_rbrac): New
5261 functions, broken out of dbxout_block.
5262 (dbxout_block): The block at depth 0 should get LBRAC/RBRAC
5263 stabs too, if it contains symbols. Use the begin_label and
5264 the Lscope label (emitted by dbxout_function_end) for the
5265 range of this block.
5266
5d75ba94
NN
52672004-08-03 Nathanael Nerode <neroden@gcc.gnu.org>
5268
5269 * doc/install.texi: Update autoconf version requirements.
5270
2e4e72b1
ZW
52712004-08-03 Zack Weinberg <zack@codesourcery.com>
5272
5273 * defaults.h (LEGITIMATE_PIC_OPERAND_P): Provide default definition.
5274 * recog.c (general_operand, immediate_operand, nonmemory_operand)
5275 (asm_operand_ok): Remove #ifdefs on LEGITIMATE_PICOPERAND_P.
5276 * regclass.c (record_reg_classes): Likewise.
5277 * reload.c (find_reloads): Likewise.
5278 * reload1.c (reload): Likewise.
5279
f9942f4e
ZW
52802004-08-03 Zack Weinberg <zack@codesourcery.com>
5281
5282 * gensupport.c (init_md_reader_args_cb): Renamed from
5283 init_md_reader_args. Add third option, callback function for
5284 parsing program-specific options. Add diagnosis of incorrect
5285 number of input files.
5286 (init_md_reader): Fold into init_md_reader_args_cb.
5287 (init_md_reader_args): Now a thin wrapper around
5288 init_md_reader_args_cb.
5289 * gensupport.h: Update prototypes.
5290
5291 * genattr.c, genattrtab.c, gencodes.c, genconfig.c, genemit.c
5292 * genextract.c, genflags.c, genopinit.c, genoutput.c, genpeep.c
5293 * genrecog.c: No need to diagnose lack of an input file;
5294 init_md_reader_args will handle it.
5295 * genconditions.c: Likewise, and use init_md_reader_args.
5296 * genconstants.c: Likewise, and no need to call read_md_rtx.
5297
9cbe78fb
JM
52982004-08-03 Joseph S. Myers <jsm@polyomino.org.uk>
5299
5300 * c-decl.c (implicitly_declare): Diagnose incompatible implicit
5301 declarations.
5302
3e558e80
MS
53032004-08-03 Mike Stump <mrs@apple.com>
5304
5305 * config/darwin-c.c: Don't search in "/Local/Library/Frameworks"
5306 for frameworks.
5307 * doc/invoke.texi (Darwin Options): Update to reflect above.
5308
a0fac73d
RS
53092004-08-03 Roger Sayle <roger@eyesopen.com>
5310
5311 PR middle-end/16790
5312 * fold-const.c (extract_muldiv_1) <NOP_EXPR>: Disallow local
5313 truncations, not just global truncations.
5314
cddbddb7
AP
53152004-08-03 Andrew Pinski <apinski@apple.com>
5316
5317 PR bootstrap/16865
5318 * loop-iv.c (simplify_using_assignment): Initialize lhs.
5319
bebf829d
PB
53202004-08-03 Paul Brook <paul@codesourcery.com>
5321
5322 * gcc/doc/install.texi: Document MPFR requirement.
5323
cddbddb7 53242004-08-03 Maciej W. Rozycki <macro@linux-mips.org>
3b0727a0 5325
f9942f4e
ZW
5326 * aclocal.m4 (gcc_AC_FUNC_MMAP_BLACKLIST): Check for <sys/mman.h>
5327 and mmap() explicitly instead of relying on preset autoconf cache
3b0727a0
MR
5328 variables.
5329 * configure: Regenerate.
5330
f6bc51cb
L
53312004-08-03 H.J. Lu <hongjiu.lu@intel.com>
5332
5333 PR target/16570
5334 * config.gcc (i[34567]86-*-* | x86_64-*-*): Add i386/t-gmm_malloc
5335 to tmake_file.
5336 (i[34567]86-*-linux*aout* | i[34567]86-*-linux*libc1): Likewise.
5337 (i[34567]86-*-linux* | x86_64-*-linux*): Add i386/t-pmm_malloc
5338 to tmake_file.
5339
5340 * config/i386/t-gmm_malloc: New file.
5341 * config/i386/t-pmm_malloc: Likewise.
f9942f4e 5342
f6bc51cb
L
5343 * config/i386/xmmintrin.h: Include <mm_malloc.h>.
5344
53452004-08-03 H.J. Lu <hongjiu.lu@intel.com>
d46cd2be 5346