OSDN Git Service

d3903f545b34486d6a3ea63ebf258615aa00e895
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2005-04-14  Andreas Krebbel  <krebbel1@de.ibm.com>
2
3         * config.gcc: Set cpu_type for s390.
4
5 2005-04-14  Daniel Berlin  <dberlin@dberlin.org>
6
7         Fix PR tree-optimization/20963
8         * tree-ssa-pre.c (compute_avail): Remove special case for
9         TREE_INVARIANT. 
10         (create_expression_by_pieces): Add value numbers for forced out
11         statements.
12
13 2005-04-14  Hans-Peter Nilsson  <hp@axis.com>
14
15         * config/cris/cris.md: Replace references to (reg:SI 16) with
16         (reg:SI CRIS_SRP_REGNUM).
17
18 2005-04-14  Kazu Hirata  <kazu@cs.umass.edu>
19
20         PR tree-optimization/20657
21         * tree-vrp.c (extract_range_from_expr): Notice INTEGER_CST to
22         create an appropriate range from it.
23
24 2005-04-14  Uros Bizjak  <uros@kss-loka.si>
25
26         * reg-stack.c (subst_stack_regs_pat): Handle <UNSPEC_FIST_FLOOR> and
27         <UNSPEC_FIST_CEIL> case.
28
29         * config/i386/i386.md (UNSPEC_FIST_FLOOR, UNSPEC_FIST_CEIL): New.
30         (*fist<mode>2_floor_1, fistdi2_floor, fistdi2_floor_with_temp)
31         (fist<mode>2_floor, fist<mode>2_floor_with_temp): New isns patterns
32         to implement lfloor and llfloor built-ins as x87 intrinsic function.
33         (fistdi2_floor, fist<mode>2_floor splitters): New splitters.
34         (lfloor<mode>2): New expanders.
35         (*fist<mode>2_ceil_1, fistdi2_ceil, fistdi2_ceil_with_temp)
36         (fist<mode>2_ceil, fist<mode>2_ceil_with_temp): New isns patterns
37         to implement lceil and llceil built-ins as x87 intrinsic function.
38         (fistdi2_ceil, fist<mode>2_ceil splitters): New splitters.
39         (lceil<mode>2): New expanders.
40
41 2005-04-14  Uros Bizjak  <uros@kss-loka.si>
42
43         * convert.c (convert_to_integer): Convert (long int)trunc{,f,l},
44         and (long long int)ceil{,f,l} into FIX_TRUNC_EXPR.
45
46 2005-04-14  Ulrich Weigand  <uweigand@de.ibm.com>
47
48         PR target/20927
49         * config/s390/s390-modes.def: Define TFmode.
50
51 2005-04-13  Richard Sandiford  <rsandifo@redhat.com>
52
53         * config/mips/mips.h (ASM_OUTPUT_CASE_LABEL): Delete.
54         (JUMP_TABLES_IN_TEXT_SECTION): Define.
55         * config/mips/mips.c (mips16_insn_length): Remove reference to
56         JUMP_TABLES_IN_TEXT_SECTION.
57
58 2005-04-13 Fariborz Jahanian <fjahanian@apple.com>
59
60         * simplify-rtx.c (simplify_binary_operation_1): Return
61         scalar or vector of constant 0, depending on the xor's 
62         mode.
63
64 2005-04-13  Dale Johannesen  <dalej@apple.com>
65
66         * objc/Make-lang.in (objc-lang.o):  Depend on tree-gimple.h.
67         (objc-act.o):  Ditto.
68         * objc/objc-act.c (objc_gimplify_expr):  New.
69         (objc_get_callee_fndecl):  New.
70         * objc/objc-act.h:  Include tree-gimple.h.  Declare new functions.
71         * objc/objc-lang.c (LANG_HOOKS_GIMPLIFY_EXPR):  Define.
72         (LANG_HOOKS_GET_CALLEE_FNDECL):  Define.
73
74 2005-04-13  Devang Patel  <dpatel@apple.com>
75
76         * tree-if-conv.c (tree_if_convert_cond_expr): Do not create extra
77         temp variables.
78         
79 2005-04-13  Hans-Peter Nilsson  <hp@axis.com>
80
81         CRIS prologue as RTL.
82         * config/cris/cris-protos.h (cris_emit_movem_store)
83         (cris_expand_prologue): Prototype.
84         * config/cris/cris.c (struct machine_function): New member
85         stdarg_regs.
86         (cfa_label_num, cris_target_asm_function_prologue): Remove.
87         (TARGET_ASM_FUNCTION_PROLOGUE): Don't override.
88         (cris_general_operand_or_gotless_symbol): Accept CRIS_UNSPEC_GOT.
89         (cris_load_multiple_op, cris_return_address_on_stack)
90         (cris_return_address_on_stack_for_return): ISO-Cify.
91         (cris_store_multiple_op): New predicate function.
92         (cris_expand_prologue, cris_emit_movem_store): New functions.
93         (cris_print_operand) <case 'O'>: Handle modifications other than
94         post-increment.
95         (cris_symbol, cris_got_symbol): Return 0 for CRIS_UNSPEC_GOT.
96         (cris_gotless_symbol): Return 1 for CRIS_UNSPEC_GOT.
97         (cris_gen_movem_load): Rearrange slightly to make local variable
98         src a parameter, removing osrc.
99         (cris_setup_incoming_varargs): Set machine_function member
100         stdarg_regs to correspond to the number of registers that need to
101         be saved.
102         * config/cris/cris.h (EXTRA_CONSTRAINT_S): Accept
103         CRIS_UNSPEC_GOT.
104         (PREDICATE_CODES): Add cris_store_multiple_op.  Make
105         cris_general_operand_or_gotless_symbol accept UNSPEC.
106         * config/cris/cris.md (CRIS_UNSPEC_GOT): New constant.
107         ("*movsi_internal") <alternative 8>: Handle CRIS_UNSPEC_GOT.
108         ("*cris_store_multiple"): New pattern.  Tweak common comment above
109         this and "*cris_load_multiple".
110         ("prologue"): New define_expand.
111
112         * config/cris/cris.md ("epilogue"): Conditionalize on
113         TARGET_PROLOGUE_EPILOGUE.
114
115 2005-04-13  Steve Ellcey  <sje@cup.hp.com>
116
117         PR target/20924
118         * config/ia64/ia64.md (divsf3_internal_lat): Generate frcpa with
119         fpsr 0 instead of fpsr 1.
120         (divsf3_internal_thr): Ditto.
121         (divdf3_internal_lat): Ditto.
122         (divdf3_internal_thr): Ditto.
123         (divxf3_internal_lat): Ditto.
124         (divxf3_internal_thr): Ditto.
125
126 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
127
128         PR tree-optimization/20913
129         * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Fold COND_EXPR.
130
131         PR tree-optimization/20702
132         * tree-vrp.c (maybe_add_assert_expr): Recurse into
133         dominator children that haven't been walked into.
134
135 2005-04-13  Julian Brown  <julian@codesourcery.com>
136
137         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK from
138         being used for symbols with vague linkage when HAVE_GAS_COMDAT_GROUP
139         is true. 
140
141 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
142
143         * basic-block.h, tree-ssa-uncprop.c, varasm.c,
144         config/i386/sse.md: Fix comment typos.
145
146         * genattrtab.c (NULL_ATTR): Remove.
147         * ifcvt.c (NULL_EDGE): Likewise.
148
149         * rtl.h (RTX_EXPR_FIRST, RTX_EXPR_LAST): Remove.
150
151         * rtl.h (NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS,
152         NOTE_PREDICT): Remove.
153
154 2005-04-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
155
156         * configure.ac (gcc_AC_CHECK_DECLS): Add vsnprintf.
157         * configure: Regenerate.
158         * config.in: Likewise.
159         * system.h: Declare vsnprintf if not already declared.
160
161 2005-04-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
162
163         * optc-gen.awk: Handle stand-alone Mask records.
164         * opth-gen.awk: Likewise.
165         * doc/options.texi (Option file format): Document them.
166         * config.gcc (sparc-*-netbsdelf*, sparc-*-linux*, sparc64-*-freebsd*,
167         sparc64-*-linux*, sparc64-*-netbsd*): Add long-double-switch.opt.
168         (sparc64-*-openbsd*, sparc64-*-elf*): Add little-endian.opt.
169         * config/sparc/sparc.h (MASK_FPU, MASK_UNALIGNED_DOUBLES,
170         MASK_V8, MASK_SPARCLITE, MASK_SPARCLET, MASK_V9,
171         MASK_DEPRECATED_V8_INSNS, MASK_IMPURE_TEXT, MASK_APP_REGS,
172         MASK_HARD_QUAD, MASK_LITTLE_ENDIAN, MASK_PTR64, MASK_64BIT,
173         MASK_STACK_BIAS, MASK_FPU_SET, MASK_VIS, MASK_V8PLUS,
174         MASK_FASTER_STRUCTS, MASK_LONG_DOUBLE_128): Delete.
175         (TARGET_FPU, TARGET_UNALIGNED_DOUBLES, TARGET_V8, TARGET_SPARCLITE,
176         TARGET_SPARCLET, TARGET_V9, TARGET_DEPRECATED_V8_INSNS,
177         TARGET_IMPURE_TEXT, TARGET_APP_REGS, MASK_HARD_QUAD,
178         TARGET_LITTLE_ENDIAN, TARGET_PTR64, TARGET_64BIT, MASK_STACK_BIAS,
179         TARGET_FPU_SET, TARGET_VIS, TARGET_V8PLUS, TARGET_FASTER_STRUCTS,
180         TARGET_LONG_DOUBLE_128): Likewise.
181         (TARGET_SWITCHES, SUBTARGET_SWITCHES): Likewise.
182         (TARGET_OPTIONS, SUBTARGET_OPTIONS): Likewise.
183         * config/sparc/freebsd.h (SUBTARGET_SWITCHES): Likewise.
184         * config/sparc/linux.h (SUBTARGET_SWITCHES): Likewise.
185         * config/sparc/linux64.h (SUBTARGET_SWITCHES): Likewise.
186         * config/sparc/netbsd-elf.h (SUBTARGET_SWITCHES): Likewise.
187         * config/sparc/sp64-elf.h (SUBTARGET_SWITCHES): Likewise.
188         * config/sparc/sparc.c (fpu_option_set): New global.
189         (sparc_handle_option): New function.
190         (sparc_override_options): Test fpu_option_set.
191         (TARGET_DEFAULT_TARGET_FLAGS): Set to TARGET_DEFAULT.
192         (TARGET_HANDLE_OPTION): Set to sparc_handle_option.
193         * config/sparc/sparc.opt: New file.
194         * config/sparc/little-endian.opt: Likewise.
195         * config/sparc/long-double-switch.opt: Likewise.
196
197 2005-04-13  Bernd Schmidt  <bernd.schmidt@analog.com>
198
199         * config/bfin/bfin.c (bfin_lib_id_given): New static variable.
200         (bfin_handle_options): Set it if -mshared-library-id= is seen.
201         * config/bfin/bfin.opt (mshared-library-id=): Lose
202         Var(bfin_lib_id_given).
203
204 2005-04-13  Matt Thomas  <matt@3am-software.com>
205  
206         * config/rs6000/sysv4.h (NO_IMPLICIT_EXTERN_C): undefine before
207         defining.
208
209 2005-04-13  Kazu Hirata  <kazu@cs.umass.edu>
210
211         * rtl.h (CLEAR_RTX_FLAGS): Remove.
212
213         * cgraphunit.c (INSNS_PER_CALL): Remove.
214
215         * tree-ssa-forwprop.c (vars,
216         record_single_argument_cond_exprs,
217         substitute_single_use_vars): Remove.
218         (forward_propagate_into_cond_1, forward_propagate_into_cond):
219         New.
220         (tree_ssa_forward_propagate_single_use_vars): Call
221         forward_propagate_into_cond for each COND_EXPR.
222
223         * tree-inline.c (INSNS_PER_STMT): Remove.
224
225 2005-04-12  Richard Henderson  <rth@redhat.com>
226
227         * config/i386/i386.c (ix86_prepare_sse_fp_compare_args): Split ...
228         (ix86_expand_sse_fp_minmax): ... from ... 
229         (ix86_expand_fp_movcc): ... here.
230         (ix86_expand_sse_movcc): Rewrite from ix86_split_sse_movcc.
231         * config/i386/i386-protos.h: Update.
232         * config/i386/i386.md (UNSPEC_IEEE_MIN, UNSPEC_IEEE_MAX): New.
233         (sse_setccsf, sse_setccdf): Allow before reload.
234         (movsfcc_1_sse_min, movsfcc_1_sse_max, movsfcc_1_sse): Remove.
235         (movdfcc_1_sse_min, movdfcc_1_sse_max, movdfcc_1_sse): Remove.
236         (ieee_sminsf3, ieee_smaxsf3, ieee_smindf3, ieee_smaxdf3): New.
237         * config/i386/sse.md (andsf3, nandsf3, iorsf3, xorsf3): New.
238         (anddf3, nanddf3, iordf3, xordf3): New.
239
240 2005-04-12  Jeff Law  <law@redhat.com>
241
242         * Makefile.in (OBJS-common): Add tree-ssa-uncprop.o.
243         (tree-ssa-uncprop.o): Add dependencies.
244         * tree-cfg.c (remove_useless_stmts_bb, remove_useless_stmts): Remove.
245         * tree-flow.h (remove_useless_stmts): Remove prototype.
246         * tree-outof-ssa.c (rewrite_out_of_ssa): Remove call to
247         remove_useless_stmts.
248         * timevar.def (TV_TREE_SSA_UNCPROP): New timevar.
249         * tree-optimize.c (init_tree_optimization_passes): Add uncprop pass.
250         * tree-pass.h (pass_uncprop): Declare.
251         * tree-ssa-uncprop.c: New file.
252
253 2005-04-12  James E. Wilson  <wilson@specifixinc.com>
254
255         PR target/20670
256         * unwind-ia64.c (uw_intall_context): Add missing load of r27.
257
258 2005-04-12  Caroline Tice  <ctice@apple.com>
259
260         Temporary fix for partitioning problems.
261         * passes.c (rest_of_handle_final): Remove code that 
262         frees unlikely_text_section_name,
263         * varasm.c (assemble_start_function): Test for partitioning
264         flag before writing out section labels.
265         (assemble_end_function): Test for partitioning flag before
266         writing out section labels.
267         
268 2005-04-12  Steven Bosscher  <stevenb@suse.de>
269             Stuart Hastings <stuart@apple.com>
270             Jan Hubicka  <jh@suse.cz>
271
272         * Makefile.in: Add function.h to BASIC_BLOCK_H.  Remove all
273         references to gt-tree-cfg.h.
274         * basic-block.h (struct basic_block_def): Don't skip rbi
275         for garbage collection.
276         (struct reorder_block_def): Make GTY-able.
277         (struct control_flow_graph): New structure.
278         (n_edges, n_basic_blocks, last_basic_block, basic_block_info,
279         BASIC_BLOCK, EXIT_BLOCK_PTR, ENTRY_BLOCK_PTR): No longer vars,
280         but instead defines to the control_flow_graph for cfun.
281         (label_to_block_map): New define, points to the label map of
282         the control_flow_graph for cfun.
283         (n_edges_for_function, n_basic_blocks_for_function,
284         last_basic_block_for_function, basic_block_info_for_function,
285         EXIT_BLOCK_PTR_FOR_FUNCTION, ENTRY_BLOCK_PTR_FOR_FUNCTION,
286         basic_block_info_for_function, label_to_block_map_for_function):
287         Counterparts for the above, taking a struct function as an extra
288         argument.
289         (alloc_rbi_pool, free_rbi_pool): Remove prototypes.
290         * cfg.c: (n_edges, n_basic_blocks, last_basic_block,
291         basic_block_info, ENTRY_BLOCK_PTR, EXIT_BLOCK_PTR): Remove.
292         (alloc_rbi_pool, free_rbi_pool): Remove.
293         (initialize_bb_rbi): Use ggc_alloc_cleared instead of pool_alloc.
294         * cfglayout.c: (cfg_layout_initialize): Don't allocate the rbi pool
295         here...
296         (cfg_layout_finalize) ... and don't free it here.
297         * cfgrtl.c (cfg_layout_delete_block): Zero out rbi so it gets
298         garbage collected.
299         * flow.c (free_basic_block_vars): Set label_to_block_map and
300         n_edges to zero too.
301         * function.h (struct function): Add cfg field.
302         * function.c (allocate_struct_function): Allocate the cfg.
303         * tree-cfg.c (label_to_block_map): Remove.
304         (build_tree_cfg): Don't allocate the rbi pool here...
305         (delete_tree_cfg_annotations): ...and don't free it here.
306         Also don't nullify label_to_block_map for cfun.
307
308 2005-04-12  Caroline Tice  <ctice@apple.com>
309
310         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
311         Revert my patch from April 9.
312         (fix_edges_for_rarely_executed_code): Revert my patch from April 9.
313         (reorder_basic_blocks): Revert my patch from April 9.
314         (insert_section_boundary_note): Revert my patch from April 9.
315         * dbxout.c (dbxout_function_end): Revert my patch from April 9.
316         * dwarf2out.c (COLD_TEXT_SECTION_LABEL): Revert my patch from April 9.
317         (COLD_END_LABEL):  Revert my patch from April 9.
318         (cold_text_section_label):  Revert my patch from April 9.
319         (cold_end_label): Revert my patch from April 9.
320         (dwarf2out_switch_text_section): Revert my patch from April 9.
321         (output_aranges): Revert my patch from April 9.
322         (output_ranges):  Revert my patch from April 9.
323         (output_line_info): Revert my patch from April 9.
324         (add_location_or_const_value_attribute):  Revert my patch from April 9.
325         (dwarf2out_var_location): Revert my patch from April 9.
326         (dwarf2out_init):  Revert my patch from April 9.
327         (dwarf2out_finish): Revert my patch from April 9.
328         * function.h (struct function): Revert my patch from April 9.
329         * opts.c (decode_options): Revert my patch from April 9.
330         * output.h (unlikely_section_label, hot_section_label,
331         hot_section_end_label, cold_section_end_label, 
332         unlikely_text_section_name): Revert my patch from April 9.
333         * passes.c (rest_of_handle_final): Revert my patch from April 9.
334         * varasm.c (unlikely_section_label, hot_section_label,
335         hot_section_end_label, cold_section_end_label,
336         unlikely_text_section_name): Revert my patch from April 9.
337         (initialize_cold_section_name): Revert my patch from April 9.
338         (unlikely_text_section): Revert my patch from April 9.
339         (in_unlikely_text_section): Revert my patch from April 9.
340         (named_section): Revert my patch from April 9.
341         (function_section): Revert my patch from April 9.
342         (current_function_section): Revert my patch from April 9.
343         (assemble_start_function): Revert my patch from April 9.
344         (assemble_end_function): Revert my patch from April 9.
345         (default_section_type_flags_1): Revert my patch from April 9.
346         
347 2005-04-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
348
349         * config/sparc/sparc.h (APPLY_RESULT_SIZE): Set to 24 in 64-bit mode.
350         * config/sparc/sparc.md (untyped_call): Save the registers manually.
351
352         * config/sparc/sparc.c (legitimate_address_p): Use TARGET_ARCH32.
353
354 2005-04-12  Ulrich Weigand  <uweigand@de.ibm.com>
355
356         PR middle-end/20917
357         * config/s390/s390.md ("*set_tp"): Use SET in pattern.
358         ("set_tp_64", "set_tp_31"): Adapt expanded pattern.
359
360 2004-04-12  Richard Henderson  <rth@redhat.com>
361
362         * config/i386/i386.md (UNSPEC_FIX, UNSPEC_MOVA, UNSPEC_SHUFFLE,
363         UNSPEC_PSHUFLW, UNSPEC_PSHUFHW, UNSPEC_ADDSUB, UNSPEC_HADD,
364         UNSPEC_HSUB, UNSPEC_MOVSHDUP, UNSPEC_MOVSLDUP, UNSPEC_MOVDDUP): Remove.
365         (UNSPEC_*, UNSPECV_*): Renumber.
366
367 2005-04-12  Frank Ch. Eigler  <fche@redhat.com>
368
369         PR mudflap/19266
370         From Richard Henderson <rth@redhat.com>:
371         * tree-mudflap.c (mf_build_check_statement_for): Correct block
372         splitting logic.
373
374 2005-04-12  Dorit Naishlos  <dorit@il.ibm.com>
375
376         * tree-cfg.c (tree_verify_flow_info): Use LABEL_EXPR_LABEL.
377
378 2005-04-12  Bernd Schmidt  <bernd.schmidt@analog.com>
379
380         * config/bfin/bfin.c (bfin_library_id_string): Remove.
381         (bfin_library_id): New variable.
382         (bfin_expand_prologue): Use bfin_library_id and bfin_lib_id_given
383         instead of bfin_library_id_string.
384         (bfin_handle_option): New function.
385         (override_options): Remove most code to deal with shared library IDs,
386         just check they aren't used without -mid-shared-library.
387         (TARGET_HANDLE_OPTION): Define.
388         * config/bfin/bfin.h (TARGET_OPTIONS): Delete macro.
389         * config/bfin/bfin.opt (mshared-library-id=): New.
390
391 2005-04-12  Kazu Hirata  <kazu@cs.umass.edu>
392
393         * tree-vect-transform.c: Fix comment typos.
394
395 2005-04-12 Mostafa Hagog <mustafa@il.ibm.com>
396
397         * postreload-gcse.c (eliminate_partially_redundant_load): Don't
398         split critical edges when not possible/profitable.
399
400 2005-04-12  Richard Sandiford  <rsandifo@redhat.com>
401
402         * config/ns32k/ns32k.h (target_flags, MASK_32081, MASK_RTD)
403         (MASK_REGPARM, MASK_32532, MASK_32332, MASK_NO_SB, MASK_NO_BITFIELD)
404         (MASK_HIMEM, MASK_32381, MASK_MULT_ADD, MASK_SRC, MASK_IEEE_COMPARE)
405         (TARGET_32081, TARGET_32381, TARGET_MULT_ADD, TARGET_RTD)
406         (TARGET_REGPARM, TARGET_32532, TARGET_32332, TARGET_SB, TARGET_HIMEM)
407         (TARGET_BITFIELD, TARGET_IEEE_COMPARE, TARGET_SWITCHES): Delete.
408         (OVERRIDE_OPTIONS): Clear MASK_SB instead of setting MASK_NO_SB.
409         * config/ns32k/netbsd.h (TARGET_DEFAULT): Remove MASK_NO_SB and
410         MASK_NO_BITFIELD.
411         * config/ns32k/ns32k.c (ns32k_handle_option): New function.
412         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
413         * config/ns32k/ns32k.opt: New file.
414
415 2005-04-12  Richard Sandiford  <rsandifo@redhat.com>
416
417         * config.gcc (m68k-*-linux*): Add m68k/ieee.opt to $extra_options.
418         * config/m68k/m68k.h (target_flags, MASK_68020, TARGET_68020)
419         (MASK_68030, TARGET_68030, MASK_68040, TARGET_68040, MASK_68040_ONLY)
420         (TARGET_68040_ONLY, MASK_68060, TARGET_68060, MASK_5200, TARGET_5200)
421         (MASK_CFV3, TARGET_CFV3, MASK_CFV4, TARGET_CFV4, MASK_528x)
422         (TARGET_528x, MASK_CF_HWDIV, TARGET_CF_HWDIV, MASK_68881, TARGET_68881)
423         (MASK_BITFIELD, TARGET_BITFIELD, MASK_SHORT, TARGET_SHORT)
424         (MASK_ALIGN_INT, TARGET_ALIGN_INT, MASK_PCREL, TARGET_PCREL)
425         (MASK_NO_STRICT_ALIGNMENT, TARGET_STRICT_ALIGNMENT, MASK_RTD)
426         (TARGET_RTD, MASK_SEP_DATA, TARGET_SEP_DATA, MASK_ID_SHARED_LIBRARY)
427         (TARGET_ID_SHARED_LIBRARY, MASK_ALL_CF_BITS, TARGET_SWITCHES)
428         (TARGET_OPTIONS, SUBTARGET_SWITCHES, SUBTARGET_OPTIONS): Delete.
429         (MASK_COLDFIRE): Formatting fixes.
430         (TARGET_COLDFIRE): Turn into a boolean value for consistency.
431         * config/m68k/linux.h (SUBTARGET_SWITCHES): Delete.
432         * config/m68k/m68k.c (m68k_library_id_string): Initialize to
433         "_current_shared_library_a5_offset_".
434         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
435         (MASK_ALL_CPU_BITS): New macro.
436         (m68k_handle_option): New function.
437         (override_options): Remove handling of m68k_library_id_string.
438         * config/m68k/m68k.opt: New file.
439         * config/m68k/ieee.opt: New file.
440
441 2005-04-11  Mark Mitchell  <mark@codesourcery.com>
442
443         * target-def.h (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
444         (TARGET_CXX_DETERMINE_CLASS_VISIBILITY): New macro.
445         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
446         (TARGET_CXX): Adjust accordingly.
447         * target.h (struct gcc_target): Remove epxort_class_data.  Add
448         determine_class_data_visibility and class_data_always_comdat.
449         * doc/tm.texi (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
450         (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Document.
451         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
452         * config/arm/arm.c (arm_cxx_export_class_data): Remove.
453         (arm_cxx_determine_class_data_visibility): New.
454         (arm_cxx_class_data_always_comdat): Likewise.
455         (TARGET_CXX_EXPORT_CLASS_DATA): Remove.
456         (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Define.
457         (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Likewise.
458         * config/arm/arm.h (TARGET_ARM_DYNAMIC_VAGUE_LINKAGE_P): Define.
459         * config/arm/symbian.h (TARGET_ARM_DYNAMIC_VAGUE_LINKAGE_P):
460         Define.
461
462 2005-04-11  Devang Patel  <dpatel@apple.com>
463
464         * tree-data-ref.c (build_classic_dist_vector,
465         compute_subscript_distance): Make externally visible.
466         * tree-data-ref.h (build_classic_dist_vector,
467         compute_subscript_distance): Same.
468         * tree-vect-analyze.c (vect_analyze_data_ref_dependence):
469         Check distance vector against vectorization factor.
470         (vect_analyze_loop): Determine vectorizaion factor before
471         analyzing data dependences.
472         * tree-vectorizer.c (loops_num): Make it externally visible and
473         rename ...
474         * tree-vectorizer.c (vect_loops_num): ... new name.
475         * tree-vectorizer.h  (vect_loops_num): New.
476
477 2005-04-11  Devang Patel  <dpatel@apple.com>
478
479         * tree-vect-analyze.c (vect_analyze_operations): Check
480         vectorizable codition.
481         * tree-vect-transform.c (vect_is_simple_cond): New function.
482         (vectorizable_condition): New function.
483         (vect_transform_stmt): Handle condition_vec_info_type.
484         * tree-vectorizer.h (enum stmt_vec_info_type): Add
485         condition_vec_info_type.
486         (vectorizable_condition): New.
487         
488 2005-04-11  Geoffrey Keating  <geoffk@apple.com>
489
490         * config/i386/i386.h (TARGET_FPMATH_DEFAULT): New.
491         * config/i386/darwin.h (TARGET_FPMATH_DEFAULT): New.
492         * config/i386/i386.c (override_options): Use TARGET_FPMATH_DEFAULT.
493
494         * config/i386/darwin.h (ASM_SPEC): Use -arch i386 not -arch i686.
495         (SUBTARGET_EXTRA_SPECS): Always 'i386'.
496
497         * dwarf2out.c (output_line_info): Don't try to dereference
498         a NULL current_function_decl.
499
500         * config/t-slibgcc-darwin: Don't put shared libraries in
501         directories other than $(slibdir).
502         * config/rs6000/darwin.h: Find -m64 libgcc under the name the
503         OS uses for it.
504
505 2005-04-11  Diego Novillo  <dnovillo@redhat.com>
506
507         PR tree-optimization/20933
508         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Move
509         logic to reject aliases between read-only and writable
510         variables ...
511         (may_alias_p): ... here.
512         (get_tmt_for): Do not associate read-only tags to pointers
513         whose pointed-to type is not read-only.
514         * tree-ssa.c (verify_ssa): Check that memory stores have at
515         least one V_MAY_DEF or V_MUST_DEF.
516
517 2005-04-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
518
519         PR/17092
520         * configure.ac (gcc_UNLOCKED_FUNCS): New.
521         (AC_CHECK_FUNCS, AC_CHECK_DECLS): Check for gcc_UNLOCKED_FUNCS.
522         * system.h (putchar, getc, getchar, clearerr, feof, fileno,
523         fflush, fgetc, fgets, ferror, fread): Redefine to the associated
524         _unlocked function.
525         (fwrite_unlocked): Fix prototype.
526         
527         * configure, config.in: Regenerate.
528
529 2005-04-11  David Edelsohn  <edelsohn@gnu.org>
530
531         * tree-ssa-loop-im.c: Include real.h.
532         (determine_invariantness_stmt): If real division divisor is
533         invariant and flag_unsafe_math_optimizations enabled, generate
534         invariant reciprocal for hoisting.
535         * Makefile.in (tree-ssa-loop-im.o): Add real.h dependency.
536
537 2005-04-11  Daniel Berlin  <dberlin@dberlin.org>
538
539         Fix PR tree-optimization/20926
540         
541         * tree-ssa-alias.c (add_type_alias): Handle subvars.
542         
543 2005-04-11  Devang Patel  <dpatel@apple.com>
544
545         * config/rs6000.c (rs6000_emit_vector_select): Fix vector select
546         operand ordering.
547         
548 2005-04-11  Andrew Pinski  <pinskia@physics.uc.edu>
549
550         * fold-const.c (fold_binary_op_with_conditional_arg):
551         use fold_buildN instead of "fold (buildN" in some
552         non obvious places.
553         (fold_unary): Likewise.
554         (fold_binary): Likewise.
555
556 2005-04-11  Daniel Berlin  <dberlin@dberlin.org>
557         
558         Fix PR tree-optimization/20612
559         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Fix increment
560         handling
561         (perfect_nestify): preheaderbb is *not* part of loop of the
562         old destination.
563
564 2005-04-11  Andrew Pinski  <pinskia@physics.uc.edu>
565
566         * tree-ssa-alias.c (may_alias_p): If the variable
567         is a global variable and the pointer is parameter
568         and -fargument-noalias-global is used, then
569         the pointer cannot alias the variable.
570
571 2005-04-11  James A. Morrison  <phython@gcc.gnu.org>
572
573         * config/sparc/sparc.c: Use gcc_assert and gcc_unreachable.
574         * config/sparc/sparc.h: Likewise.
575         * config/sparc/sparc.md: Likewise.
576
577 2005-04-11  Kazu Hirata  <kazu@cs.umass.edu>
578
579         * tree-vrp.c (maybe_add_assert_expr): Move a comment.
580
581         * tree-vrp.c: Fix a comment typo.
582
583 2005-04-11  Diego Novillo  <dnovillo@redhat.com>
584
585         PR tree-optimization/20920
586         * tree-pretty-print.c (dump_generic_node): Show '(ab)' if an
587         SSA_NAME flows through an abnormal edge.
588         * tree-vrp.c (infer_value_range): Ignore SSA names that flow
589         through abnormal edges.
590         (maybe_add_assert_expr): Likewise.
591
592 2005-04-11  Richard Sandiford  <rsandifo@redhat.com>
593
594         * config/s390/s390.h (s390_tune_string, s390_arch_string)
595         (s390_warn_framesize_string, s390_warn_dynamicstack_string)
596         (s390_stack_size_string, s390_stack_guard_string, target_flags)
597         (MASK_HARD_FLOAT, MASK_SMALL_EXEC, MASK_DEBUG_ARG, MASK_64BIT)
598         (MASK_ZARCH, MASK_MVCLE, MASK_TPF_PROFILING, MASK_NO_FUSED_MADD)
599         (MASK_BACKCHAIN, MASK_PACKED_STACK, TARGET_HARD_FLOAT)
600         (TARGET_SOFT_FLOAT, TARGET_SMALL_EXEC, TARGET_DEBUG_ARG)
601         (TARGET_64BIT, TARGET_ZARCH, TARGET_MVCLE, TARGET_TPF_PROFILING)
602         (TARGET_NO_FUSED_MADD, TARGET_FUSED_MADD, TARGET_BACKCHAIN)
603         (TARGET_PACKED_STACK, TARGET_SWITCHES, TARGET_OPTIONS): Delete.
604         * config/s390/s390.c (TARGET_DEFAULT_TARGET_FLAGS): Override default.
605         (TARGET_HANDLE_OPTION): Likewise.
606         (s390_tune): Initialize to PROCESSOR_max.
607         (s390_arch_string): Make static.
608         (s390_tune_string, s390_warn_framesize_string): Delete.
609         (s390_warn_dynamicstack_string, s390_stack_size_string): Delete.
610         (s390_stack_guard_string, s390_warn_dynamicstack_p): Delete.
611         (s390_handle_arch_option, s390_handle_option): New functions.
612         (override_options): Remove parsing of option strings.
613         * config/s390/s390.opt: New file.
614
615 2005-04-11  Paolo Bonzini  <bonzini@gnu.org>
616
617         * tree-complex.c (expand_vector_operations): Call
618         update_stmt_if_modified.
619
620 2005-04-11  Paolo Bonzini  <bonzini@gnu.org>
621
622         * tree-vect-analyze (vect_determine_vectorization_factor):
623         Do not use GET_MODE_NUNITS.
624         * tree-vect-transform.c (vect_get_vec_def_for_operand,
625         (vectorizable_load, vect_transform_loop): Likewise.
626
627 2005-04-11  Uros Bizjak  <uros@kss-loka.si>
628
629         * builtins.def (BUILT_IN_LCEIL, BUILT_IN_LCEILF, BUILT_IN_LCEILL)
630         (BUILT_IN_LLCEIL, BUILT_IN_LLCEILF, BUILT_IN_LLCEILL): New.
631         * optabs.h (enum optab_index): Add new OTI_lceil.
632         (lceil_optab): Define corresponding macro.
633         * optabs.c (init_optabs): Initialize lceil_optab.
634         * genopinit.c (optabs): Implement lceil_optab using lceilsi2
635         and lceildi2 patterns.
636         * builtins.c (expand_builtin_int_roundingfn): Handle
637         BUILT_IN_LCEIL{,F,L} and BUILT_IN_LLCEIL{,F,L}.
638         (fold_builtin_int_roundingfn): Handle BUILT_IN_LCEIL{,F,L} and
639         BUILT_IN_LLCEIL{,F,L}.
640         (fold_builtin_1): Fold BUILT_IN_LCEIL{,F,L} and
641         BUILT_IN_LLCEIL{,F,L} using fold_builtin_int_roundingfn.
642         (mathfn_built_in): Handle BUILT_IN LCEIL and BUILT_IN_LLCEIL.
643         (expand_builtin): Expand BUILT_IN_LCEIL{,F,L} and
644         BUILT_IN_LLCEIL{,F,L} using expand_builtin_int_roundingfn.
645         * convert.c (convert_to_integer): Convert (long int)ceil{,f,l},
646         into lceil built-in function and (long long int)ceil{,f,l} into
647         llceil built-in function.
648         * fold-const.c (tree_expr_nonnegative_p): Add BUILT_IN_LCEIL and
649         BUILT_IN_LLCEIL.
650
651 2005-04-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
652
653         * pa/quadlib.c (_U_Qfneg): Toggle sign bit instead of subtracting from
654         zero.
655
656 2005-04-10  Kazu Hirata  <kazu@cs.umass.edu>
657
658         * config/arm/arm.c: Fix a comment typo.
659         * doc/tree-ssa.texi: Fix a typo.
660
661 2005-04-10  Steven Bosscher  <stevenb@suse.de>
662
663         * cselib.c (clear_table): Rename to cselib_clear_table.
664         * cselib.h (cselib_clear_table): Add prototype.
665         * gcse.c (gcse_main): Make 'f' argument unused.
666         (alloc_gcse_mem): Do not walk the insn chain, walk the contents
667         of each basic block instead.
668         (compute_sets, compute_hash_table_work): Likewise.
669         (constprop_register): Change int 'alter_jumps' argument to bool.
670         (do_local_cprop): Likewise.
671         (local_cprop_pass): Likewise.  Also walk basic blocks instead of
672         the insn chain.  Explicitly clear the cselib tables after finishing
673         one basic block.  Make sure there are no unterminated libcall blocks.
674         Update compute_sets call.
675         (cprop): Walk basic blocks instead of the insn chain.
676         (one_cprop_pass, compute_ld_motion_mems, compute_store_table):
677         Likewise.
678         (bypass_jumps): Update alloc_gcse_mem, compute_sets, and
679         one_cprop_pass calls.
680
681 2005-04-10  Richard Sandiford  <rsandifo@redhat.com>
682
683         * combine.c (combine_simplify_rtx): Remove a transformation that
684         relies on an invalid assumption about rtl sign-extension semantics.
685
686 2005-04-10  Richard Sandiford  <rsandifo@redhat.com>
687
688         * value-prof.c (tree_divmod_fixed_value_transform): Fix arguments
689         to build_int_cst_wide.
690
691 2005-04-09  Alexandre Oliva  <aoliva@redhat.com>
692
693         PR target/20126
694         * loop.c (loop_givs_rescan): If replacement of DEST_ADDR failed,
695         set the original address pseudo to the correct value before the
696         original insn, if possible, and leave the insn alone, otherwise
697         create a new pseudo, set it and replace it in the insn.
698         * recog.c (validate_change_maybe_volatile): New.
699         * recog.h (validate_change_maybe_volatile): Declare.
700
701 2005-04-09  Caroline Tice  <ctice@apple.com>
702
703         * bb-reorder.c (find_rarely_executed_basic_blocks_and_crossing_edges):
704         Remove targetm.have_named_sections test.
705         (fix_edges_for_rarely_executed_code): Likewise.
706         (insert_section_boundary_note): Likewise.
707         (reorder_basic_blocks): Check partitioning flag before calling
708         verify_hot_cold_block_grouping.
709         * dbxout.c (dbxout_function_end): Get hot/cold section labels from
710         the function struct rather than global variables.
711         * dwarf2out.c (COLD_TEXT_SECTION_LABEL): New macro.
712         (COLD_END_LABEL): Likewise
713         (cold_text_section_label): New static global variable.
714         (cold_end_label): Likewise.
715         (dwarf2out_switch_text_section): Get hot/cold section labels from
716         the function struct rather than global variables.
717         (output_aranges): Use cold_text_section_label and cold_end_label;
718         check partitioning flag before putting out delta.
719         (output_ranges): Remove incorrect code attempting to use
720         hot/cold labels.
721         (output_line_info): Get cold section label from function struct.
722         (add_location_or_const_value_attribute): Likewise.
723         (get_subprogram_die): Get hot/cold section labels from function struct.
724         (dwarf2out_var_location): Likewise.
725         (dwarf2out_init): Generate cold_text_section_label and cold_end_label;
726         write out cold_text_section_label if partition flag is set.
727         (dwarf2out_finish): Write out cold_end_label if partition flag is set;
728         * function.h (struct function): Add new fields to point to hot/cold
729         section labels: hot_section_label, cold_section_label,
730         hot_section_end_label and cold_section_end_label; also add new field
731         for cold text section name, unlikely_text_section_name.
732         * opts.c (decode_options): Turn off partitioning flag if
733         !targetm.have_named_sections.
734         * output.h (hot_section_label): Remove.
735         (hot_section_end_label): Remove.
736         (cold_section_end_label): Remove.
737         (unlikely_section_label): Remove.
738         (unlikely_text_section_name): Remove.
739         * passes.c (rest_of_handle_final):  Remove code that frees
740         unlikely_text_section_name.
741         * varasm.c (unlikely_section_label): Remove.
742         (hot_section_label): Remove.
743         (hot_section_end_label): Remove.
744         (cold_section_end_label): Remove.
745         (unlikely_text_section_name):  Remove.
746         (initialize_cold_section_name): Modify to call
747         targetm.strip_name_encoding; to store cold section name in current
748         function struct, if it exists; and to only use the decl_section_name
749         if flag_named_sections is true.
750         (unlikely_text_section): Modify to get section name out of current
751         function struct, if there is one; otherwise build it from
752         UNLIKELY_EXECUTED_TEXT_SECTION_NAME.
753         (in_unlikely_text_section): Likewise.
754         (named_section): Modify to get/put cold section name in current function
755         struct, if there is one.
756         (function_section):  Change 'bool unlikely' to 'int reloc'; check
757         targetm.have_named_sections before calling named_section.
758         (current_function_section): Likewise.
759         (assemble_start_function): Modify to get/put unlikely_text_section_name
760         in current function struct; modify to get hot/cold section labels
761         from function struct; initialize labels using 
762         ASM_GENERATE_INTERNAL_LABEL;
763         test partitioning flag before writing out hot section label.
764         (assemble_end_function): Test partitioning flag before writing out
765         hot/cold section labels.
766         (default_section_type_flags_1):  Modify to use array instead of
767          char* for unlikely_text_section_name; set flags correctly for
768          cold text section if there is not a current function decl.
769
770 2005-04-09  Jakub Jelinek  <jakub@redhat.com>
771
772         * tree.h (enum tree_index): Add TI_VA_LIST_GPR_COUNTER_FIELD
773         and TI_VA_LIST_FPR_COUNTER_FIELD.
774         (va_list_gpr_counter_field, va_list_fpr_counter_field): Define.
775         * tree-pass.h (pass_stdarg): Add.
776         * tree-optimize.c (init_tree_optimization_passes): Add pass_stdarg.
777         * tree-stdarg.c: New file.
778         * tree-stdarg.h: New file.
779         * Makefile.in (OBJS-common): Add tree-stdarg.o.
780         (tree-stdarg.o): Add dependencies.
781         * function.h (struct function): Add va_list_gpr_size and
782         va_list_fpr_size fields.
783         * function.c (allocate_struct_function): Initialize them.
784         * target.h (struct gcc_target): Add stdarg_optimize_hook.
785         * target-def.h (TARGET_STDARG_OPTIMIZE_HOOK): Define.
786         (TARGET_INITIALIZER): Add it.
787
788         * config/i386/i386.c (ix86_build_builtin_va_list): Initialize
789         va_list_{g,f}pr_counter_field.
790         (ix86_setup_incoming_varargs): Don't do anything if reg_save
791         area will not be used.  Only save registers that tree-stdarg.c
792         detected they need saving.
793         (ix86_va_start): Don't set up fields that won't be used.
794
795         * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Initialize
796         va_list_{g,f}pr_counter_field.
797         (setup_incoming_varargs): Don't do anything if reg_save
798         area will not be used.  Only save registers that tree-stdarg.c
799         detected they need saving.
800         (rs6000_va_start): Don't set up fields that won't be used.
801
802         * config/alpha/alpha.c: Include tree-flow.h and tree-stdarg.h.
803         (alpha_build_builtin_va_list): Initialize va_list_gpr_counter_field.
804         (va_list_skip_additions, alpha_stdarg_optimize_hook): New functions.
805         (TARGET_STDARG_OPTIMIZE_HOOK): Define.
806
807 2005-04-09  Jakub Jelinek  <jakub@redhat.com>
808
809         PR target/20795
810         * config/i386/i386.c (construct_container): Pass empty aligned
811         struct, union or class in memory.
812
813 2005-04-09  Kazu Hirata  <kazu@cs.umass.edu>
814
815         * dominance.c, gthr-win32.h, reg-stack.c, tree-ssa-copy.c,
816         tree-ssa-operands.c, tree-ssa.c, tree-vrp.c, varasm.c,
817         config/alpha/alpha.c, config/arm/arm.c, config/m32r/m32r.h,
818         config/rs6000/predicates.md: Fix comment typos.
819
820         * sched-int.h (haifa_insn_data): Remove blockage and units.
821         (INSN_UNIT, INSN_BLOCKAGE, UNIT_BITS, BLOCKAGE_MASK,
822         ENCODE_BLOCKAGE, UNIT_BLOCKED, BLOCKAGE_RANGE,
823         MIN_BLOCKAGE_COST, MAX_BLOCKAGE_COST): Remove.
824
825 2005-04-09  Jan Hubicka  <jh@suse.cz>
826             Steven Bosscher  <stevenb@suse.de>
827
828         * cfglayout.c (copy_bbs): Rename n_edges to num_edges.
829         * cfgloop.c (get_loop_exit_edges): Likewise.
830         * cfgloopmanip.c (fix_irreducible_loops): Likewise.
831         (unloop): Likewise.
832         * loop-unroll.c (analyze_insns_in_loop): Likewise.
833         * tree-cfg.c (dump_cfg_status): Likewise.
834
835 2005-04-09  David Edelsohn  <edelsohn@gnu.org>
836
837         * config/rs6000/predicates.md (altivec_register_operand): Remove
838         redundant match_code test.
839         (gpc_reg_operand): Same.
840         (cc_reg_operand): Same.
841         (cc_reg_not_cr0_operand): Same.
842
843 2005-04-09  Jan Hubicka  <jh@suse.cz>
844
845         Forgotten hunk from my last merge patch:
846         * final.c (output_addr_const): Do not call mark_referenced.
847
848 2005-04-09  Andrew MacLeod  <amacleod@redhat.com>
849
850         * doc/tree-ssa.texi: Add immediate use documentation.
851
852 2005-04-09  Richard Earnshaw <richard.earnshaw@arm.com>
853
854         * arm.c (FL_WBUF): Define.
855         (arm_tune_strongarm): Renamed from arm_is_strong.  All uses changed.
856         (arm_is_6_or_7): Delete.
857         (arm_tune_wbuf): New.
858         (arm_override_options): Set arm_tune_wbuf.
859         * arm.h (arm_tune_strongarm): Renamed from arm_is_strong.
860         (arm_is_6_or_7): Delete declaration.
861         (arm_tune_wbuf): New declartion.
862         * arm.md (is_strongarm): Derive from arm_tune_strongarm.
863         (model_wbuf): Derive from arm_tune_wbuf.
864         * arm-cores.def (arm600, arm610, arm620, arm700, arm700i, arm710)
865         (arm720, arm710c, arm7100, arm7500, arm7500fe, arm710t, arm720t)
866         (arm740t): Mark CPUs as having a write buffer.
867
868 2005-04-09  Uros Bizjak  <uros@kss-loka.si>
869
870         * config/i386/i386.md (*fp_jcc_7_387): Use 'const0_operand' instead
871         of 'const_double_operand' in operand 2 constraints.  Update enable
872         condition.
873
874 2005-04-09  Uros Bizjak  <uros@kss-loka.si>
875
876         * builtins.def (BUILT_IN_LFLOOR, BUILT_IN_LFLOORF, BUILT_IN_LFLOORL)
877         (BUILT_IN_LLFLOOR, BUILT_IN_LLFLOORF, BUILT_IN_LLFLOORL): New.
878         * optabs.h (enum optab_index): Add new OTI_lfloor.
879         (lfloor_optab): Define corresponding macro.
880         * optabs.c (init_optabs): Initialize lfloor_optab.
881         * genopinit.c (optabs): Implement lfloor_optab using lfloorsi2
882         and lfloordi2 patterns.
883         * builtins.c (expand_builtin_int_roundingfn): New prototype.
884         (expand_builtin_int_roundingfn): New function.
885         (fold_builtin_int_roundingfn): New prototype.
886         (fold_builtin_int_roundingfn): New function, renamed from
887         fold_builtin_lround.
888         Handle BUILT_IN_LROUND{,F,L}, BUILT_IN_LLROUND{,F,L} and
889         BUILT_IN_LFLOOR{,F,L}, BUILT_IN_LLFLOOR{,F,L}.
890         (fold_builtin_1): Fold BUILT_IN_LFLOOR{,F,L} and
891         BUILT_IN_LLFLOOR{,F,L} using fold_builtin_int_roundingfn.
892         (mathfn_built_in): Handle BUILT_IN LFLOOR and BUILT_IN_LLFLOOR.
893         (expand_builtin): Expand BUILT_IN_LFLOOR{,F,L} and
894         BUILT_IN_LLFLOOR{,F,L} using expand_builtin_int_roundingfn.
895         * convert.c (convert_to_integer): Convert (long int)floor{,f,l},
896         into lfloor built-in function and (long long int)floor{,f,l} into
897         llfloor built-in function.
898         * fold-const.c (tree_expr_nonnegative_p): Add BUILT_IN_LFLOOR and
899         BUILT_IN_LLFLOOR.
900
901 2005-04-08  Ian Lance Taylor  <ian@airs.com>
902
903         * c-common.def: Move FOR_STMT, WHILE_STMT, DO_STMT, BREAK_STMT,
904         CONTINUE_STMT, and SWITCH_STMT to cp/cp-tree.def.
905         * c-common.h (WHILE_COND, WHILE_BODY): Move to cp/cp-tree.h.
906         (DO_COND, DO_BODY): Likewise.
907         (FOR_INIT_STMT, FOR_COND, FOR_EXPR, FOR_BODY): Likewise.
908         (SWITCH_STMT_COND, SWITCH_STMT_BODY, SWITCH_STMT_TYPE): Likewise.
909         (c_common_stmt_codes): Remove FOR_STMT, WHILE_STMT, DO_STMT,
910         BREAK_STMT, CONTINUE_STMT, and SWITCH_STMT.
911         (build_continue_stmt, build_break_stmt): Don't declare.
912         (c_do_switch_warnings): Update declaration.
913         * c-gimplify.c (enum bc_t): Remove.
914         (struct c_gimplify_ctx, ctxp): Remove.
915         (push_context, pop_context): Remove static functions.
916         (c_genericize): Don't call push_context or pop_context.
917         (begin_bc_block, finish_bc_block): Remove static functions.
918         (build_bc_goto): Likewise.
919         (gimplify_c_loop): Likewise.
920         (gimplify_for_stmt, gimplify_while_stmt): Likewise.
921         (gimplify_do_stmt, gimplify_switch_stmt): Likewise.
922         (c_gimplify_expr): Remove handling of FOR_STMT, WHILE_STMT,
923         DO_STMT, SWITCH_STMT, CONTINUE_STMT, BREAK_STMT.
924         * c-common.c (c_do_switch_warnings): Rename from
925         c_do_switch_warnings_1.
926         (c_do_switch_warnings) [old version]: Remove.
927         (c_do_switch_expr_warnings): Remove.
928         * c-typeck.c (c_finish_case): Call new c_do_switch_warnings
929         function instead of c_do_switch_expr_warnings.
930         * c-dump.c (c_dump_tree): Remove handling of BREAK_STMT,
931         CONTINUE_STMT, DO_STMT, FOR_STMT, SWITCH_STMT, and WHILE_STMT.
932         * c-pretty-print.c (pp_c_statement): Likewise.
933         * c-semantics.c (build_break_stmt, build_continue_stmt): Remove.
934
935 2005-04-08  Devang Patel  <dpatel@apple.com>
936
937         * tree-if-conv.c (find_phi_replacement_condition): New parameter, loop.
938         While selecting replacement condition pay attention to loop header.
939
940 2005-04-08  Diego Novillo  <dnovillo@redhat.com>
941
942         Merge from tree-cleanup-branch: VRP, store CCP, store
943             copy-prop, incremental SSA updating of FUD chains and
944             newly exposed symbols.
945
946         * Makefile.in (tree-ssa-copy.o): Depend on tree-ssa-propagate.h.
947         (OBJS-common): Add tree-vrp.o.
948         (tree-vrp.o): New rule.
949         * basic-block.h (nearest_common_dominator_for_set): Declare.
950         * common.opt (ftree-store-ccp): New flag.
951         (ftree-copy-prop): New flag.
952         (ftree-vrp): New flag.
953         (ftree-store-copy-prop): New flag.
954         * dominance.c (nearest_common_dominator_for_set): New.
955         * domwalk.c (walk_dominator_tree): Only traverse
956         statements in blocks marked in walk_data->interesting_blocks.
957         * domwalk.h (struct dom_walk_data): Add field interesting_blocks.
958         * fold-const.c (fold): Handle ASSERT_EXPR.
959         * opts.c (decode_options): Set flag_tree_copy_prop at -O1.
960         Set flag_tree_store_ccp, flag_tree_store_copy_prop and
961         flag_tree_vrp at -O2.
962         * timevar.def (TV_TREE_VRP): Define.
963         (TV_TREE_COPY_PROP): Define.
964         (TV_TREE_STORE_COPY_PROP): Define.
965         (TV_TREE_SSA_INCREMENTAL): Define.
966         (TV_TREE_STORE_CCP): Define.
967         * tree-cfg.c (tree_can_merge_blocks_p): Remove reference
968         to kill_redundant_phi_nodes from comment.
969         (verify_expr): Handle ASSERT_EXPR.
970         * tree-dfa.c (mark_new_vars_to_rename): Remove second
971         argument.  Update all users.
972         (mark_call_clobbered_vars_to_rename): Remove.  Update all
973         users.
974         * tree-flow-inline.h (unmodifiable_var_p): New.
975         * tree-flow.h (enum value_range_type): Declare.
976         (struct value_range_def): Declare.
977         (value_range): Declare.
978         (remove_all_phi_nodes_for): Remove.  Update all users.
979         (find_phi_node_for): Declare.
980         (add_type_alias): Declare.
981         (count_uses_and_derefs): Declare.
982         (kill_redundant_phi_nodes): Remove.
983         (rewrite_into_ssa): Remove.
984         (rewrite_def_def_chains): Remove.
985         (update_ssa, register_new_name_mapping, create_new_def_for,
986         need_ssa_update_p, name_registered_for_update_p,
987         release_ssa_name_after_update_ssa, dump_repl_tbl,
988         debug_repl_tbl, dump_names_replaced_by,
989         debug_names_replaced_by, mark_sym_for_renaming,
990         mark_set_for_renaming, get_current_def, set_current_def,
991         get_value_range, dump_value_range, debug_value_range,
992         dump_all_value_ranges, debug_all_value_ranges,
993         expr_computes_nonzero, loop_depth_of_name,
994         unmodifiable_var_p): Declare.
995         * tree-gimple.c (is_gimple_formal_tmp_rhs): Handle
996         ASSERT_EXPR.
997         * tree-into-ssa.c (block_defs_stack): Update comment.
998         (old_ssa_names, new_ssa_names, old_virtual_ssa_names,
999         syms_to_rename, names_to_release, repl_tbl,
1000         need_to_initialize_update_ssa_p, need_to_update_vops_p,
1001         need_to_replace_names_p): New locals.
1002         (NAME_SETS_GROWTH_FACTOR): Define.
1003         (struct repl_map_d): Declare.
1004         (struct mark_def_sites_global_data): Add field
1005         interesting_blocks.
1006         (enum rewrite_mode): Declare.
1007         (REGISTER_DEFS_IN_THIS_STMT): Define.
1008         (compute_global_livein): Use last_basic_block instead of
1009         n_basic_blocks.
1010         (set_def_block): Remove last argument.  Update all callers.
1011         (prepare_use_operand_for_rename): Remove.  Update all callers.
1012         (prepare_def_operand_for_rename): Remove.  Update all callers.
1013         (symbol_marked_for_renaming): New.
1014         (is_old_name): New.
1015         (is_new_name): New.
1016         (repl_map_hash): New.
1017         (repl_map_eq): New.
1018         (repl_map_free): New.
1019         (names_replaced_by): New.
1020         (add_to_repl_tbl): New.
1021         (add_new_name_mapping): New.
1022         (mark_def_sites): Assume that all the operands in the
1023         statement are in normal form.
1024         (find_idf): Assert that the block in the stack is valid.
1025         (get_default_def_for): New.
1026         (insert_phi_nodes_for): Add new argument 'update_p'.
1027         Add documentation.
1028         If update_p is true, add a new mapping between the LHS of
1029         each new PHI and the name that it replaces.
1030         (insert_phi_nodes_1): Only call find_idf if needed.
1031         (get_reaching_def): Call get_default_def_for.
1032         (rewrite_operand): Remove.
1033         (rewrite_stmt): Do nothing if REGISTER_DEFS_IN_THIS_STMT
1034         and REWRITE_THIS_STMT are false.
1035         Assume that all the operands in the statement are in
1036         normal form.
1037         (rewrite_add_phi_arguments): Don't use PHI_REWRITTEN.
1038         (rewrite_virtual_phi_arguments): Remove.
1039         (invalidate_name_tags): Remove.
1040         (register_new_update_single, register_new_update_set,
1041         rewrite_update_init_block, replace_use,
1042         rewrite_update_fini_block, rewrite_update_stmt,
1043         rewrite_update_phi_arguments): New.
1044         rewrite_blocks): Remove argument 'fix_virtual_phis'.
1045         Add arguments 'entry', 'what' and 'blocks'.
1046         Initialize the dominator walker according to 'what' and
1047         'blocks'.
1048         Start the dominator walk at 'entry'.
1049         (mark_def_site_blocks): Add argument 'interesting_blocks'.
1050         Use it to configure the dominator walker.
1051         (rewrite_into_ssa): Remove argument 'all'.
1052         Make internal.
1053         (rewrite_all_into_ssa): Remove.
1054         (rewrite_def_def_chains): Remove.
1055         (mark_def_interesting, mark_use_interesting,
1056         prepare_phi_args_for_update, prepare_block_for_update,
1057         prepare_def_site_for, prepare_def_sites,
1058         dump_names_replaced_by, debug_names_replaced_by,
1059         dump_repl_tbl, debug_repl_tbl, init_update_ssa,
1060         delete_update_ssa, create_new_def_for,
1061         register_new_name_mapping, mark_sym_for_renaming,
1062         mark_set_for_renaming, need_ssa_update_p,
1063         name_registered_for_update_p, ssa_names_to_replace,
1064         release_ssa_name_after_update_ssa,
1065         insert_updated_phi_nodes_for, update_ssa): New.
1066         * tree-loop-linear.c (linear_transform_loops): Call
1067         update_ssa instead of rewrite_into_ssa.
1068         * tree-optimize.c (vars_to_rename): Remove.
1069         Update all users.
1070         (init_tree_optimization_passes): Replace
1071         pass_redundant_phi with pass_copy_prop.
1072         Add pass_vrp.
1073         Replace pass_ccp with pass_store_ccp.
1074         Add pass_store_copy_prop after pass_store_ccp.
1075         (execute_todo): If the TODO_ flags don't include updating
1076         the SSA form, assert that it does not need to be updated.
1077         Call update_ssa instead of rewrite_into_ssa and
1078         rewrite_def_def_chains.
1079         If TODO_verify_loops is set, call verify_loop_closed_ssa.
1080         (tree_rest_of_compilation):
1081         * tree-pass.h (TODO_dump_func, TODO_ggc_collect,
1082         TODO_verify_ssa, TODO_verify_flow, TODO_verify_stmts,
1083         TODO_cleanup_cfg): Renumber.
1084         (TODO_verify_loops, TODO_update_ssa,
1085         TODO_update_ssa_no_phi, TODO_update_ssa_full_phi,
1086         TODO_update_ssa_only_virtuals): Define.
1087         (pass_copy_prop, pass_store_ccp, pass_store_copy_prop, pass_vrp):
1088         Declare.
1089         * tree-phinodes.c (make_phi_node): Update documentation.
1090         (remove_all_phi_nodes_for): Remove.
1091         (find_phi_node_for): New.
1092         * tree-pretty-print.c (dump_generic_node): Handle ASSERT_EXPR.
1093         * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Likewise.
1094         (interpret_rhs_modify_expr): Likewise.
1095         * tree-sra.c (decide_instantiations): Mark all symbols in
1096         SRA_CANDIDATES for renaming.
1097         (mark_all_v_defs_1): Rename from mark_all_v_defs.
1098         (mark_all_v_defs): New function.  Update all users to call it 
1099         with the whole list of scalarized statements, not just the
1100         first one.
1101         * tree-ssa-alias.c (count_ptr_derefs): Make extern.
1102         (compute_flow_insensitive_aliasing): If the tag is
1103         unmodifiable and the variable isn't or vice-versa, don't
1104         make them alias of each other.
1105         (setup_pointers_and_addressables): If the type tag for
1106         VAR is about to change, mark the old one for renaming.
1107         (add_type_alias): New.
1108         * tree-ssa-ccp.c: Document SSA-CCP and STORE-CCP.
1109         (ccp_lattice_t): Rename from latticevalue.
1110         (value): Remove.  Update all users.
1111         (const_val): New local variable.
1112         (do_store_ccp): New local variable.
1113         (dump_lattice_value): Handle UNINITIALIZED.
1114         (debug_lattice_value): New.
1115         (get_default_value): Re-write.
1116         (set_lattice_value): Re-write.
1117         (def_to_varying): Remove.  Update all users.
1118         (likely_value): Return VARYING for statements that make
1119         stores when STORE_CCP is false.
1120         Return VARYING for any statement other than MODIFY_EXPR,
1121         COND_EXPR and SWITCH_EXPR.
1122         (ccp_initialize): Re-write.
1123         (replace_uses_in, replace_vuse_in, substitute_and_fold):
1124         Move to tree-ssa-propagate.c.
1125         (ccp_lattice_meet): Handle memory stores when
1126         DO_STORE_CCP is true.
1127         (ccp_visit_phi_node): Likewise.
1128         (ccp_fold): Likewise.
1129         (evaluate_stmt): Likewise.
1130         (visit_assignment): Likewise.
1131         (ccp_visit_stmt): Likewise.
1132         (execute_ssa_ccp): Add argument 'store_ccp'.  Copy it
1133         into DO_STORE_CCP.
1134         (do_ssa_ccp): New.
1135         (pass_ccp): Use it.
1136         (do_ssa_store_ccp): New.
1137         (gate_store_ccp): New.
1138         (pass_store_ccp): Declare.
1139         * tree-ssa-copy.c: Include tree-ssa-propagate.h.
1140         (may_propagate_copy): Reformat.
1141         Don't abort if ORIG is a virtual and DEST isn't.
1142         If NEW does not have alias information but DEST does,
1143         copy it.
1144         (copy_of, cached_last_copy_of, do_store_copy_prop, enum
1145         copy_prop_kind, which_copy_prop): Declare.
1146         (stmt_may_generate_copy, get_copy_of_val,
1147         get_last_copy_of, set_copy_of_val, dump_copy_of,
1148         copy_prop_visit_assignment, copy_prop_visit_cond_stmt,
1149         copy_prop_visit_stmt, copy_prop_visit_phi_node,
1150         init_copy_prop, fini_copy_prop, execute_copy_prop,
1151         gate_copy_prop, do_copy_prop, gate_store_copy_prop,
1152         store_copy_prop): New.
1153         (pass_copy_prop, pass_store_copy_prop): Declare.
1154         * tree-ssa-dom.c (struct opt_stats_d): Add fields
1155         'num_const_prop' and 'num_copy_prop'.
1156         (cprop_operand): Update them.
1157         (dump_dominator_optimization_stats): Dump them.
1158         (tree_ssa_dominator_optimize): Call update_ssa instead of
1159         rewrite_into_ssa.
1160         (loop_depth_of_name): Declare extern.
1161         (simplify_cond_and_lookup_avail_expr): Guard against NULL
1162         values for LOW or HIGH.
1163         (cprop_into_successor_phis): Only propagate if NEW != ORIG.
1164         (record_equivalences_from_stmt): Call expr_computes_nonzero.
1165         (cprop_operand): Only propagate if VAL != OP.
1166         * tree-ssa-dse.c (dse_optimize_stmt): Mark symbols in removed
1167         statement for renaming.
1168         * tree-ssa-loop-im.c (move_computations): Call update_ssa.
1169         * tree-ssa-loop-ivopts.c (rewrite_address_base): Call
1170         add_type_alias if necessary.
1171         Call mark_new_vars_to_rename.
1172         (tree_ssa_iv_optimize): If new symbols need to be renamed,
1173         mark every statement updated, call update_ssa and
1174         rewrite_into_loop_closed_ssa.
1175         * tree-ssa-loop-manip.c (add_exit_phis): Do not remove DEF_BB
1176         from LIVEIN if VAR is a virtual.
1177         * tree-ssa-loop.c (tree_loop_optimizer_init): Call update_ssa.
1178         * tree-ssa-operands.c (get_expr_operands): Handle ASSERT_EXPR.
1179         (get_call_expr_operands): Reformat statement.
1180         (add_stmt_operand): Don't create V_MAY_DEFs for read-only
1181         symbols.
1182         * tree-ssa-propagate.c (ssa_prop_init): Initialize
1183         SSA_NAME_VALUE for every name.
1184         (first_vdef, stmt_makes_single_load, stmt_makes_single_store,
1185         get_value_loaded_by): New.
1186         (replace_uses_in, replace_vuses_in, replace_phi_args_in,
1187         substitute_and_fold): Move from tree-ssa-ccp.c.
1188         * tree-ssa-propagate.h (struct prop_value_d, prop_value_t,
1189         first_vdef, stmt_makes_single_load, stmt_makes_single_store,
1190         get_value_loaded_by, replace_uses_in, substitute_and_fold):
1191         Declare.
1192         * tree-ssa.c (verify_use): Fix error message.
1193         (propagate_into_addr, replace_immediate_uses, get_eq_name,
1194         check_phi_redundancy, kill_redundant_phi_nodes,
1195         pass_redundant_phi): Remove.  Update all users.
1196         * tree-vect-transform.c (vect_create_data_ref_ptr): Call
1197         add_type_alias, if necessary.
1198         * tree-vectorizer.h (struct _stmt_vect_info): Update
1199         documentation for field 'memtag'.
1200         * tree-vrp.c: New file.
1201         * tree.def (ASSERT_EXPR): Define.
1202         * tree.h (ASSERT_EXPR_VAR): Define.
1203         (ASSERT_EXPR_COND): Define.
1204         (SSA_NAME_VALUE_RANGE): Define.
1205         (struct tree_ssa_name): Add field 'value_range'.
1206         (PHI_REWRITTEN): Remove.
1207         (struct tree_phi_node): Remove field 'rewritten'.
1208         * doc/invoke.texi (-fdump-tree-storeccp, -ftree-copy-prop,
1209         -ftree-store-copy-prop): Document.
1210         * doc/tree-ssa.texi: Remove broken link to McCAT's compiler.
1211         Document usage of update_ssa.
1212
1213 2005-04-08  David Edelsohn  <edelsohn@gnu.org>
1214
1215         PR target/20814
1216         * config/rs6000/predicates.md (altivec_register_operand): Accept
1217         SUBREG. 
1218         (and64_operand): Do not limit CONST_INT to mask64_operand.
1219         (and64_2_operand): Do not limit CONST_INT to mask64_1or2_operand.
1220         (and_operand): Do not limit CONST_INT to mask_operand.
1221
1222 2005-04-09  Hans-Peter Nilsson  <hp@axis.com>
1223
1224         PR rtl-optimization/20466
1225         * flow.c (invalidate_mems_from_set): Handle a MEM by checking it
1226         for overlap of the address of each list member.
1227         (mark_set_1): Call invalidate_mems_from_set for MEMs too.
1228
1229 2005-04-08  Mike Stump  <mrs@apple.com>
1230
1231         * config/darwin.c (indirect_data): Fix typo in strncmp logic.
1232         
1233         * config/rs6000/rs6000.c (rs6000_emit_prologue): Use 5 nops,
1234         instead of 4.
1235
1236 2005-04-08  Kazu Hirata  <kazu@cs.umass.edu>
1237
1238         * c-tree.h (C_LANG_TREE_NODE_CHAIN_NEXT): Remove.
1239
1240         * function.c (push_function_context_to): Don't set
1241         contains_functions.
1242         * function.h (function): Remove contains_functions.
1243         (current_function_contains_functions): Remove.
1244
1245         * function.h (function): Remove instrument_entry_exit.
1246         (current_function_instrument_entry_exit): Remove.
1247
1248         * function.h (nonlocal_labels): Remove.
1249
1250         * tree.h (STRIP_MAIN_TYPE_NOPS): Remove.
1251
1252         * genattrtab.c (attr_desc): Remove negative_ok and unsigned_p.
1253         (check_attr_value, write_attr_get, write_expr_attr_cache,
1254         find_attr, make_internal_attr): Don't reference negative_ok or
1255         unsigned_p.
1256         * genattrtab.h (ATTR_NEGATIVE_OK, ATTR_UNSIGNED,
1257         ATTR_FUNC_UNITS, ATTR_BLOCKAGE): Remove.
1258         (ATTR_STATIC): Adjust the value.
1259
1260         * c-common.h (C_ARTIFICIAL_STRING_P): Remove.
1261
1262 2005-04-08  Ulrich Weigand  <uweigand@de.ibm.com>
1263
1264         * config/s390/tpf.h (ASM_SPEC): Define.
1265
1266 2005-04-08  Kazu Hirata  <kazu@cs.umass.edu>
1267
1268         * tree-flow.h: Remove the prototype for
1269         redirect_immediate_uses.
1270         (TDFA_USE_OPS, TDFA_USE_VOPS): Remove.
1271
1272 2005-04-08  Richard Earnshaw  <richard.earnshaw@arm.com>
1273
1274         * arm.c (arm_const_double_by_parts): New function.
1275         * arm-protos.h (arm_const_double_by_parts): Add prototype.
1276         * arm.md (define_split for 64-bit constants): Add another one.
1277
1278 2005-04-08  Andrew MacLeod  <amacleod@redhat.com>
1279
1280         * tree-ssa-operands.c (correct_use_link): Remove linear scan.
1281
1282 2005-04-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1283
1284         * system.h: Revert last change.
1285
1286 2005-04-08  Richard Sandiford  <rsandifo@redhat.com>
1287
1288         * config/xtensa/xtensa.h (target_flags, MASK_NO_FUSED_MADD)
1289         (MASK_CONST16, TARGET_NO_FUSED_MADD, TARGET_CONST16)
1290         (TARGET_SWITCHES): Delete.
1291         * config/xtensa/xtensa.c (TARGET_DEFAULT_TARGET_FLAGS): Define.
1292         * config/xtensa/xtensa.md (muladdsf3, mulsubsf3): Check
1293         TARGET_FUSED_MADD instead of !TARGET_NO_FUSED_MADD.
1294         * config/xtensa/xtensa.opt: New file.
1295
1296 2005-04-08  Ben Elliston  <bje@au.ibm.com>
1297
1298         * config/fp-bit.c: Include L_mul_tf in #endif comment.
1299         * config/fp-bit.h: Tidy comments.
1300
1301 2005-04-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1302
1303         * system.h: Poison PARAMS.
1304
1305 2005-04-07  Richard Sandiford  <rsandifo@redhat.com>
1306
1307         * config/vax/vax.h (target_flags, MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
1308         (MASK_G_FLOAT, TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT)
1309         (TARGET_SWITCHES): Delete.
1310         * config/vax/vax.c (TARGET_DEFAULT_TARGET_FLAGS): Override default.
1311         * config/vax/vax.opt: New file.
1312
1313 2005-04-07  Daniel Berlin  <dberlin@dberlin.org>
1314
1315         * tree-ssa-dse.c (dse_optimize_stmt): Fix incorrect comment.
1316
1317 2005-04-07  Ian Lance Taylor  <ian@airs.com>
1318
1319         * config/iq2000/iq2000.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Don't
1320         define.
1321         * config/mips/mips.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE): Likewise.
1322         * config/sparc/sparc.h (DONT_ACCESS_GBLS_AFTER_EPILOGUE):
1323         Likewise.
1324
1325 2005-04-07  Kazu Hirata  <kazu@cs.umass.edu>
1326
1327         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Consider
1328         all immediate uses in PHI nodes.
1329
1330 2005-04-07  Richard Earnshaw  <richard.earnshaw@arm.com>
1331
1332         * arm.c (arm_const_double_inline_cost): Handle any constant by
1333         using gen_lowpart and gen_highpart_mode.
1334         (note_invalid_constants): All constants in an RTX with a constraint
1335         that permits memory are now pushed to the constant pool.
1336         (output_move_double): Delete code to handle reg to reg and 
1337         constant to reg moves.
1338         (const_double_needs_minipool, output_mov_immediate): Delete.
1339         * arm.h (EXTRA_CONSTRAINT_STR_ARM): All 'D' variants now handle
1340         CONST_INT and CONST_VECTOR.
1341         * arm.md (ANY64): New mode macro.
1342         (arm_movdi): Split reg-reg and const-reg moves.  Simplify constraints.
1343         (movdf_soft_insn): Split reg-reg and const-reg moves.
1344         (split patterns for 64-bit constant and register moves): New.
1345         * cirrus.md (cirrus_arm_movdi): Split reg-reg and const-reg moves.
1346         (cirrus_movdf_hard_insn): Likewise.
1347         * fpa.md (movdf_fpa): Likewise.
1348         * iwmmxt.md (iwmmxt_arm_movdi): Likewise.
1349         (movv8qi_internal, movv4hi_internal, movv2si_internal): Fix
1350         constraints.
1351         (movv2si_internal_2): Likewise.
1352         * vfp.md (arm_movdi_vfp): Split reg-reg and const-reg moves.
1353         (movdf_vfp): Likewise.
1354         * arm-protos.h (output_mov_immediate): Delete prototype.
1355
1356 2005-04-07  Joseph S. Myers  <joseph@codesourcery.com>
1357
1358         PR target/20093
1359         * simplify-rtx.c (simplify_unary_operation_1): Check
1360         SUBREG_PROMOTED_UNSIGNED_P (op) > 0 for zero-extension.
1361
1362 2005-04-06  James E Wilson  <wilson@specifixinc.com>
1363
1364         PR target/20717
1365         * cgraphunit.c (record_call_1, case FDESC_EXPR): Handle same as
1366         ADDR_EXPR.
1367
1368 2004-04-06  Richard Sandiford  <rsandifo@redhat.com>
1369
1370         * coverage.h (GCOV_TYPE_NODE): Delete.
1371         * coverage.c (coverage_counter_alloc, tree_coverage_counter_ref)
1372         (build_ctr_info_type): Use get_gcov_type () instead of GCOV_TYPE_NODE.
1373         * tree-profile.c (tree_gen_edge_profiler, tree_gen_interval_profiler)
1374         (tree_gen_pow2_profiler, tree_gen_one_value_profiler): Likewise.
1375         * value-prof.c (tree_divmod_fixed_value_transform): Delete.
1376
1377 2004-04-06  Richard Sandiford  <rsandifo@redhat.com>
1378
1379         PR other/20792
1380         * Makefile.in (gcc.pot): Remove options.c dependency.
1381         * optc-gen.awk: Don't quote help strings with N_().
1382
1383 2005-04-06  James A. Morrison  <phython@gcc.gnu.org>
1384
1385         * c-common.c (handle_malloc_atttribute): Only set DECL_IS_MALLOC if
1386         the function returns a pointer type.
1387
1388 2005-04-06  Daniel Berlin  <dberlin@dberlin.org>
1389
1390         * params.def (PARAM_SALIAS_MAX_IMPLICIT_FIELDS): New
1391         * params.h (SALIAS_MAX_IMPLICIT_FIELDS): New
1392         * doc/invoke.texi: Documnet salias-max-implicit-fields.
1393         * tree-ssa-alias.c (struct used_part): Add implicit_uses and
1394         explicit_uses members.
1395         (get_or_create_used_part_for): Initialize new fields.
1396         (fieldoff_compare): New function.
1397         (create_overlap_variables_for): Count number of fields, use
1398         heuristic to determine whether to create subvars for vars with
1399         only implicit uses.
1400         Sort the field list by offset and avoid creating duplicate SFT's.
1401
1402 2005-04-06  Richard Sandiford  <rsandifo@redhat.com>
1403
1404         * c.opt (-F): Remove trailing whitespace from help string.
1405         (-finput-charset): Use a tab to separate the switch name and help
1406         string.
1407         * common.opt (-fsched-stalled-insns, -fsched-stalled-insns-dep)
1408         (-ftree-vectorizer-verbose): Likewise.
1409
1410 2005-04-06  Kazu Hirata  <kazu@cs.umass.edu>
1411
1412         * tree-ssa-sink.c (nearest_common_dominator_of_uses): Look at
1413         a PHI argument where a use occurs instead of all PHI arguments.
1414
1415 2005-04-06  Joseph S. Myers  <joseph@codesourcery.com>
1416
1417         * c-decl.c (finish_decl): Apply pending #pragma weak regardless of
1418         scope.
1419
1420 2005-04-06  Kazu Hirata  <kazu@cs.umass.edu>
1421
1422         * cse.c, tree-flow-inline.h, tree-flow.h, tree-ssa-operands.c,
1423         tree-ssa-sink.c, tree.h, config/bfin/bfin.c,
1424         config/bfin/bfin.h: Fix comment typos.
1425
1426 2005-04-06  Ranjit Mathew  <rmathew@hotmail.com>
1427
1428         * doc/install.texi: Update the URL for Jacks.
1429         * doc/sourcebuild.texi: Likewise.
1430
1431 2005-04-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
1432
1433         PR target/17245
1434         * config/sparc/sparc.c (legitimate_address_p): Remove 'imm2'.
1435         Revert 2004-10-08 patch.  Reject TFmode LO_SUM in 32-bit mode.
1436
1437 2005-04-06  Kelley Cook  <kcook@gcc.gnu.org>
1438
1439         * Makefile.in (LIBGCC2_CFLAGS): Revert -pipe change.
1440
1441 2005-04-06  Richard Sandiford  <rsandifo@redhat.com>
1442
1443         * config/v850/v850-protos.h (override_options): Delete.
1444         * config/v850/v850.h (target_flags, MASK_GHS, MASK_LONG_CALLS, MASK_EP)
1445         (MASK_PROLOG_FUNCTION, MASK_DEBUG, MASK_V850, MASK_V850E)
1446         (MASK_SMALL_SLD, MASK_BIG_SWITCH, MASK_NO_APP_REGS, MASK_DISABLE_CALLT)
1447         (MASK_STRICT_ALIGN, MASK_US_BIT_SET, MASK_US_MASK_SET, TARGET_GHS)
1448         (TARGET_LONG_CALLS, TARGET_EP, TARGET_PROLOG_FUNCTION, TARGET_V850)
1449         (TARGET_BIG_SWITCH, TARGET_DEBUG, TARGET_V850E, TARGET_US_BIT_SET)
1450         (TARGET_SMALL_SLD, TARGET_DISABLE_CALLT, TARGET_NO_APP_REGS)
1451         (TARGET_STRICT_ALIGN, TARGET_SWITCHES, TARGET_OPTIONS)
1452         (OVERRIDE_OPTIONS): Delete.
1453         (MASK_CPU): Redefine as MASK_V850 | MASK_V850E.
1454         (small_memory_info): Remove the value field.
1455         (CONDITIONAL_REGISTER_USAGE): Check !TARGET_APP_REGS rather than
1456         TARGET_NO_APP_REGS.
1457         * config/v850/v850.c (small_memory): Remove the value field.
1458         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
1459         (override_options): Delete.
1460         (v850_handle_memory_option, v850_handle_option): New functions.
1461         * config/v850/v850.opt: New file.
1462
1463 2005-04-06  Geoffrey Keating  <geoffk@apple.com>
1464
1465         * config.host: Add a section for generic hosts, and a subsection
1466         for Darwin.  Add a case for x86-darwin.  Update ppc-darwin case.
1467         * config/host-darwin.c: New, split out of config/rs6000/host-darwin.c.
1468         * config/host-darwin.h: New.
1469         * config/x-darwin: New.
1470         * config/i386/host-i386-darwin.c: New.
1471         * config/i386/x-darwin: New.
1472         * config/rs6000/host-darwin.c: Include host-darwin.h.
1473         (darwin_rs6000_gt_pch_get_address): Move to config/host-darwin.c.
1474         (darwin_rs6000_gt_pch_use_address): Likewise.
1475         * config/rs6000/x-darwin: Change name of .o built, update
1476         dependencies for changes to rs6000/host-darwin.c.
1477
1478 2005-04-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
1479
1480         PR target/17824
1481         * config/c4x/c4x.h (ASM_PROG, LD_PROG): Remove.
1482
1483 2005-04-06  Dorit Naishlos  <dorit@il.ibm.com>
1484
1485         * tree-vect-analyze.c (vect_analyze_loop_form): Call
1486         split_loop_exit_edge instead of loop_split_edge_with. 
1487
1488 2005-04-06  Paolo Bonzini  <bonzini@gnu.org>
1489
1490         * config/rs6000/altivec.md (UNSPEC_VSLW, UNSPEC_SUBS,
1491         UNSPEC_SET_VSCR): New constants, used throughout.
1492         (*andc3_v4sf): New.
1493         (altivec_vspltisb, altivec_vsplitish, altivec_vsplitisw):
1494         Replace with...
1495         (altivec_vspltis<VI_char>): ... this pattern, using
1496         a QImode const_int_operand for the immediate.
1497         (abs<mode>2, absv4sf2, altivec_abss_<mode>): Rewrite as
1498         define_expands.
1499
1500 2005-04-06  Ralf Corsepius  <ralf.corsepius@rtems.org>
1501
1502         PR target/17822
1503         * config/avr/t-avr (AR_FOR_TARGET,RANLIB_FOR_TARGET): Remove.
1504
1505 2005-04-06  Kelley Cook  <kcook@gcc.gnu.org>
1506
1507         * Makefile.in (LIBGCC2_CFLAGS): Compile with -pipe.
1508
1509 2005-04-06  Ben Elliston  <bje@au.ibm.com>
1510
1511         * gcc.c: Correct comment about DEFAULT_SWITCH_TAKES_ARG and
1512         DEFAULT_WORD_SWITCH_TAKES_ARG which incorrectly reported these
1513         macros as living in "this file" and not gcc.h.
1514
1515 2005-04-06  Ben Elliston  <bje@au.ibm.com>
1516
1517         * doc/invoke.texi (Optimize Options): Mention -ftree-lrs, not
1518         -ftree-live_range_split.  Perhaps renamed at some point?
1519
1520 2005-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
1521
1522         PR target/20625
1523         * tree-ssa-loop-ivopts.c (generic_type_for): New function.
1524         (add_candidate_1): Use generic_type_for instead of unsigned_type_for.
1525
1526 2005-04-06  Zdenek Dvorak  <dvorakz@suse.cz>
1527
1528         * tree-flow.h (number_of_iterations_cond): Declaration removed.
1529         * tree-ssa-loop-niter.c (number_of_iterations_cond): Made static.
1530         (number_of_iterations_special): New function.
1531         (number_of_iterations_exit): Use number_of_iterations_special.
1532         Use simplify_using_outer_evolutions only at -O3.
1533         (number_of_iterations_cond, tree_simplify_using_condition,
1534         simplify_using_initial_conditions, loop_niter_by_eval,
1535         compare_trees, can_count_iv_in_wider_type_bound,
1536         simplify_using_outer_evolutions): Use fold_build.
1537
1538 2005-04-05  Thomas Fitzsimmons  <fitzsim@redhat.com>
1539
1540         * doc/install.texi (Configuration): Document --with-java-home.
1541
1542 2005-04-05  Richard Henderson  <rth@redhat.com>
1543
1544         PR target/20342
1545         PR target/20447
1546         * config/i386/i386.c (print_operand): Handle vector zeros.
1547         (ix86_split_to_parts): Handle CONST_VECTOR.
1548         (ix86_hard_regno_mode_ok): Allow MMX modes in general regs.
1549         (ix86_modes_tieable_p): Use ix86_hard_regno_mode_ok to decide
1550         what modes to tie for MMX and SSE registers.
1551         * config/i386/i386.h (MMX_REG_MODE_P): Remove.
1552         * config/i386/i386.md: Extend move 0 -> xor peephole to apply
1553         to vector modes as well.
1554         * config/i386/predicates.md (const0_operand): Handle VOIDmode
1555         properly as an input mode.
1556
1557 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
1558
1559         * tree-ssa-operands.c (verify_abort): Use %p for pointers.
1560
1561 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
1562
1563         * tree-pretty-print.c (dump_generic_node): Use %p for pointer.
1564
1565 2005-04-05  Jakub Jelinek  <jakub@redhat.com>
1566
1567         * config/i386/i386.c (init_cumulative_args): For -m32 -mfpmath=sse
1568         and local functions, set sse_nregs to 8 and float_in_sse.
1569         (function_arg_advance, function_arg): If float_in_sse, pass
1570         SFmode and DFmode arguments in SSE registers.
1571         * config/i386/i386.h (CUMULATIVE_ARGS): Add float_in_sse field.
1572
1573         * config/i386/i386.c (ix86_value_regno): Only optimize local functions
1574         of -funit-at-a-time.
1575
1576 2005-04-05  Paolo Bonzini  <bonzini@gnu.org>
1577
1578         * config/i386/i386-protos.h (ix86_function_value): Accept two
1579         arguments, like the target macro.
1580         * config/i386/i386.h (FUNCTION_VALUE): Pass both arguments.
1581         * config/i386/i386.c (ix86_function_value): Accept the second
1582         argument of the target macro.
1583         (ix86_function_ok_for_sibcall): Pass a function pointer to
1584         ix86_function_value.
1585         (ix86_function_value, ix86_libcall_value) [!TARGET_64BIT]: Adjust
1586         call to ix86_value_regno).
1587         (ix86_value_regno): Add support for returning floating point values
1588         in SSE registers.
1589
1590 2005-04-05  Jakub Jelinek  <jakub@redhat.com>
1591
1592         PR tree-optimization/20076
1593         * tree-inline.c (inline_forbidden_p_1): Prevent inlining functions
1594         that call __builtin_return or __builtin_apply_args.
1595
1596 2005-04-05  Andrew MacLeod  <amacleod@redhat.com>
1597
1598         * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Use update_stmt.
1599         Use immediate use iterator.
1600         (stmt_is_bumper_for_loop): Use immediate use iterator.
1601         * predict.c (strip_builtin_expect): Use update_stmt.
1602         * tree-cfg.c (update_modified_stmts): New. Call update_stmt_if_modified
1603         on all elements of a STATEMENT_LIST.
1604         (bsi_insert_before, bsi_insert_after): Call update_modified_stmts.
1605         (bsi_remove): Remove imm_use links and mark the stmt as modified.
1606         (bsi_replace): Mark stmt as modified and the update it.
1607         * tree-complex.c (update_complex_assignment): Call mark_stmt_modified.
1608         (expand_complex_libcal): Call update_stmt.
1609         (expand_complex_comparison): Call mark_stmt_modified.
1610         (expand_complex_operations_1): Call update_stmt_if_modified.
1611         (expand_vector_operations_1): Call mark_stmt_modified.
1612         * tree-dfa.c (compute_immediate_uses, free_df_for_stmt, free_df,
1613         compute_immediate_uses_for_phi, compute_immediate_uses_for_stmt,
1614         add_immediate_use, redirect_immediate_use,
1615         redirect_immediate_uses, dump_immediate_uses, debug_immediate_uses,
1616         dump_immediate_uses_for, debug_immediate_uses_for): Delete.
1617         (mark_new_vars_to_rename): Call update_stmt.
1618         * tree-dump.c (dump_option_value_in): Add "stmtaddr".
1619         * tree-flow-inline.h (modify_stmt): Rename to mark_stmt_modified.  
1620         Ignore PHI nodes.
1621         (unmodify_stmt): Delete.
1622         (update_stmt): New.  Force an update of a stmt.
1623         (update_stmt_if_modified): update a stmt if it is out of date.
1624         (get_stmt_operands): Verify stmt is NOT modified. 
1625         (stmt_modified_p): Update comment.
1626         (delink_imm_use): Remove a use node from its immuse list.
1627         (link_imm_use_to_list): Link a use node to a specific list.
1628         (link_imm_use): Link a node to the correct list.
1629         (set_ssa_use_from_ptr): Set a use node to a specific value, and insert
1630         it in the correct list, if appropriate.
1631         (link_imm_use_stmt): Link a use node, and set the stmt pointer.
1632         (relink_imm_use): Link a use node in place of another node in a list.
1633         (relink_imm_use_stmt): LInk a node in place of another node, and set
1634         the stmt pointer.
1635         (end_safe_imm_use_traverse): New.  Terminate a safe immuse iterator.
1636         (end_safe_imm_use_p): New.  Check for the end of a safe immuse iterator.
1637         (first_safe_imm_use): New.  Initialize a safe immuse iterator.
1638         (next_safe_imm_use): New.  Proceed to next safe immuse iterator value.
1639         (end_readonly_imm_use_p): New.  Check for end of a fast immuse iterator.
1640         (first_readonly_imm_use): New.  Initialize a fast immuse iterator.
1641         (next_readonly_imm_use): New.  Get the next fast immuse iterator value.
1642         (has_zero_uses): New.  Return true if there are no uses of a var.
1643         (has_single_use): New.  Return true if there is only a single use of a
1644         variable.
1645         (single_imm_use): New.  Return the simgle immediate use.
1646         (num_imm_uses): New.  Return the number of immediate uses.
1647         (get_v_must_def_ops): Use is now a pointer.
1648         (use_operand_p, get_v_may_def_op_ptr, get_vuse_op_ptr,
1649         get_v_must_def_kill_ptr, get_phi_arg_def_ptr): Return the address of 
1650         the use node.
1651         (get_immediate_uses, num_immediate_uses, immediate_use): Delete.
1652         (delink_stmt_imm_use): Delink all immuses from a stmt.
1653         (phi_arg_index_from_use): New.  Return a phi arg index for a use.
1654         * tree-flow.h (struct dataflow_d): Delete.
1655         (immediate_use_iterator_d): New.  Immediate use iterator struct.
1656         (FOR_EACH_IMM_USE_FAST): New.  Macro for read only immuse iteration.
1657         (FOR_EACH_IMM_USE_SAFE): New.  Macro for write-safe immuse iteration.
1658         (BREAK_FROM_SAFE_IMM_USE): New.  Macro for earlyu exit from write-safe 
1659         iteration.
1660         (struct stmt_ann_d): Remove dataflow_t from struct.
1661         * tree-if-conv.c (tree_if_conversion).  Don't call free_df.
1662         (if_convertible_phi_p): Use FAST immuse iterator.
1663         (if_convertible_loop_p): Don't call compute_immediate_uses.
1664         (replace_phi_with_cond_modify_expr): Call update_stmt.
1665         * tree-into-ssa.c (mark_def_sites, ssa_mark_def_sites): Call 
1666         update_stmt_if_modified.
1667         (rewrite_all_into_ssa): Initialize ssa operands.
1668         * tree-loop-linear.c (linear_transform_loops): Don't call free_df or
1669         compute_immediate_uses.
1670         * tree-optimize.c (execute_todo): Call verify_ssa whenever the 
1671         ssa_property is available.
1672         (execute_one_pass):  Change parameters passed to execute_todo.
1673         * tree-outof-ssa.c (rewrite_trees): Don't call modify_stmt.
1674         (remove_ssa_form): Call fini_ssa_operands.
1675         (insert_backedge_copies): Delete call to modify_stmt.
1676         * tree-phinodes.c (make_phi_node): Initialize use nodes.
1677         (release_phi_node): Delink any use nodes before releasing.
1678         (resize_phi_node): Relink any use nodes.
1679         (remove_phi_arg_num): Delink the use node.
1680         (remove_phi_node): Release the ssa_name AFTER releasing the phi node.
1681         (remove_all_phi_nodes_for): Release phi node first.
1682         * tree-pretty-print.c (dump_generic_node): Print stmt address.
1683         * tree-sra.c (mark_all_v_defs): Call update_stmt_if_modified.
1684         (scalarize_use, scalarize_copy): Call update_stmt.
1685         * tree-ssa-alias.c (compute_may_aliases): Update all modified stmts.
1686         (compute_points_to_and_addr_escape): Call mark_stmt_modified.
1687         * tree-ssa-cpp.c (need_imm_uses_for): Delete.
1688         (ccp_initialize): Remove call to compute_immediate_uses.
1689         (substitute_and_fold, execute_fold_all_builtins): Call update_stmt.
1690         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Update all modified 
1691         stmts.
1692         (simplify_cond_and_lookup_avail_expr): Call mark_stmt_modified.
1693         (simplify_switch_and_lookup_avail_expr): Call mark_stmt_modified.
1694         (eliminate_redundant_computations): Call mark_stmt_modified.
1695         (cprop_operand): Call mark_stmt_modified.
1696         (optimize_stmt): Call update_stmt_if_modified and mark_stmt_modified.
1697         * tree-ssa-dse.c (fix_phi_uses, fix_stmt_v_may_defs): Delete.
1698         (dse_optimize_stmt): Use new immuse interface.
1699         (tree_ssa_dse): Remove calls to compute_immediate_uses and free_df.
1700         * tree-ssa-forwprop.c (need_imm_uses_for): Delete.
1701         (substitute_single_use_vars): Use new immuse interface.
1702         (tree_ssa_forward_propagate_single_use_vars): Remove calls to free_df
1703         and compute_immediate_uses.
1704         * tree-ssa-loop-im.c (single_reachable_address): Use new immuse 
1705         interface.
1706         (rewrite_mem_refs): Call update_stmt.
1707         (determine_lsm): Remove call to compute_imm_uses and free_df.
1708         * tree-ssa-loop-ivcanon.c (create_canonical_iv): Call update_stmt.
1709         (try_unroll_loop_completely): Call update_stmt.
1710         * tree-ssa-loop-ivopts.c (rewrite_address_base): Call update_stmt.
1711         (rewrite_use_compare): Call update_stmt.
1712         (compute_phi_arg_on_exit): Insert each stmt before trying to process.
1713         (rewrite_use) : Call update_stmt.
1714         * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Add arg to call.
1715         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Call 
1716         update_stmt.
1717         * tree-ssa-operands.c (NULL_USE_OPERAND_P): Remove declaration.
1718         (allocate_use_optype, allocate_vuse_optype): Adjust allocation size.
1719         (free_uses, free_vuses, free_v_may_defs, free_v_must_defs): Delink
1720         use nodes.
1721         (initialize_vuse_operand): New.  Initialize a vuse operand.
1722         (initialize_v_may_def_operand): New.  Initialize a maydef operand.
1723         (initialize_v_must_def_operand): New.  Initialize a mustdef operand.
1724         (finalize_ssa_defs): Use stmt parameter.
1725         (correct_use_link): Ensure a use node is in the correct list, and has
1726         the correct stmt pointer.
1727         (finalize_ssa_uses, finalize_ssa_v_may_defs, finalize_ssa_vuses,
1728         finalize_ssa_v_must_defs): Also initialize use nodes.
1729         (finalize_ssa_stmt_operands): Pass extra stmt operands.
1730         (build_ssa_operands): Seperate parsing from final operand construction.
1731         (parse_ssa_operands): New.  Parse entry point for operand building.
1732         (swap_tree_operands): New.  Swap 2 tree operands.
1733         (update_stmt_operands): Ranamed from get_stmt_operands.  Always builds
1734         operands.
1735         (get_expr_operands): Call swap_tree_operands when needed.
1736         (copy_virtual_operands): Use initialize routines for virtual use ops.
1737         (create_ssa_artficial_load_stmt): Add extra stmt parameter.
1738         (verify_abort): New.  Issue imm_use error.
1739         (verify_imm_links): New Verify imm_use links for a var.
1740         (dump_immediate_uses_for): New.  Dump imm_uses for a var to file.
1741         (dump_immediate_uses): New.  Dump imm_uses for all vars to file.
1742         (debug_immediate_uses): New.  Dump imm_uses for all vars to stderr.
1743         (debug_immediate_uses_for): New.  Dump imm_uses for a var to stderr.
1744         * tree-ssa-operands.h (struct use_operand_ptr): Delete.
1745         (NULL_USE_OPERAND_P) Define.
1746         (use_optype_d, v_def_use_operand_type, vuse_optype_d): Add immediate
1747         use node.
1748         (struct vuse_operand_type): New struct.
1749         (SET_USE): Call set_ssa_use_from_ptr.
1750         (USE_STMT): Define.
1751         (PHI_ARG_INDEX_FROM_USE): Define.
1752         * tree-ssa-phiopt.c (replace_phi_edge_with_variable): Set the phi 
1753         argument via SET_USE, not PHI_ARG_DEF_TREE.
1754         * tree-ssa-pre.c (eliminate): Call update_stmt.
1755         * tree-ssa-propagate.c (cfg_blocks_get): Use imm_use iterators.  Don't
1756         call free_df.
1757         * tree-ssa-sink.c (all_immediate_uses_same_place): Use imm_use iterator.
1758         (nearest_common_dominator_of_uses): Use imm_use iterator.
1759         (statement_sink_location): Use imm_use iterator and interface.
1760         (execute_sink_code): Don't call compute_immediate_uses or free-df.
1761         * tree-ssa-threadupdate.c (create_edge_and_update_destination_phis): Use
1762         PHI_ARG_DEF, not PHI_ARG_DEF_TREE.
1763         * tree-ssa.c (verify_use, verify_phi_args): Verify some imm_use info.
1764         (verify_ssa): Ensure no stmt is marked modify after optimization pass
1765         if new parameter is true.
1766         (init_tree_ssa): Don't initialize operand cache here.
1767         (delete_tree_ssa): Don't destroy operand cache here.
1768         (propagate_into_addr): Pass in a use pointer, return true if anything
1769         was changed.
1770         (replace_immediate_uses): Use imm_use iterator, call update_stmt.
1771         (check_phi_redundancy): Use imm_use iterator.
1772         (kill_redundant_phi_nodes): Don't call compute_immediate_uses or 
1773         free_df.
1774         * tree-ssanames.c (make_ssa_name): Initialize imm_use node.
1775         (release_ssa_name): Delink node and all elements in its imm_use list.
1776         * tree-tailcall.c (adjust_return_value): Call update_stmt.
1777         * tree-vect-analyze.c (vect_stmt_relevant_p): Use imm_use iterator.
1778         * tree-vectorizer.c (need_imm_uses_for): Delete.
1779         (vectorize_loops): Dont call compute_immediate_uses or free_df.
1780         * tree.h (struct ssa_imm_use_d): Define.
1781         (SSA_NAME_IMM_USE_NODE): Define.
1782         (struct tree_ssa_name): Add imm_use node.
1783         (PHI_DF): Delete.
1784         (PHI_ARG_IMM_USE_NODE): Define.
1785         (struct phi_arg_d): Add imm_use node.
1786         (struct tree_phi_node): Remove struct dataflow_d element.
1787         (TDF_STMTADDR): Define.
1788
1789 2005-04-05  Dale Johannesen  <dalej@apple.com>
1790
1791         * doc/invoke.texi (Optimization Options):  Remove
1792         duplicate -fcse-follow-jumps.  Add -fweb.
1793         (-ftree-lim):  Fix spelling (-ftree-loop-im, invariants).
1794         (-fivcanon):  Fix spelling (-ftree-loop-ivcanon).
1795
1796 2005-04-05  Per Bothner  <per@bothner.com>
1797
1798         * tree-ssa.c (execute_early_warn_uninitialized): Pass context node
1799         to talk_tree as 'data' parameter, rather than EXPR_LOCUS.
1800         (warn_uninit): Get EXPR_LOCUS from context now instead.
1801         This fixes a USE_MAPPED_LOCATION testsuite failure.
1802
1803         * tree-ssa.c (warn_uninitialized_var): Remove useless local.
1804
1805 2005-04-05  Per Bothner  <per@bothner.com>
1806
1807         * c-decl.c (finish_function): If USE_MAPPED_LOCATION set the location
1808         of the artification 'return 0' in main() to BUILTINS_LOCATION.
1809         * tree-cfg.c (remove_bb): Check that location isn't BUILTINS_LOCATION
1810         before warning. 
1811
1812 2004-04-05  Devang Patel  <dpatel@apple.com>
1813
1814         * config/rs600/altivec.md (altivec_vsr<VI_char>): Rename to ..
1815         (lhsr<mode>3): ... new name.
1816         (altivec_vsra<VI_char>): Rename to ..
1817         (ashr<mode>3): ... new name.
1818         * config/rs6000/rs6000.c (builtin_description): Rename shift
1819         operations.
1820         
1821 2004-04-05  Paolo Bonzini  <bonzini@gnu.org>
1822
1823         * combine.c (RTL_HOOKS_GEN_LOWPART_NO_EMIT): Use
1824         gen_lowpart_for_combine.
1825         * cse.c (gen_lowpart_if_possible): Move...
1826         * rtlhooks.c (gen_lowpart_if_possible): ... here.  Also try
1827         gen_lowpart_SUBREG.
1828         (gen_lowpart_no_emit_general): Use it.
1829
1830 2005-04-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
1831
1832         * config/sparc/sparc.c (TARGET_ASM_FILE_END): Undefine before
1833         overriding.
1834
1835 2005-04-05  Paolo Bonzini  <bonzini@gnu.org>
1836
1837         * system.h: Fix typo.
1838
1839 2005-04-05  Bernd Schmidt  <bernd.schmidt@analog.com>
1840
1841         * config/bfin/bfin-modes.def: New file.
1842         * config/bfin/bfin-protos.h: New file.
1843         * config/bfin/bfin.c: New file.
1844         * config/bfin/bfin.h: New file.
1845         * config/bfin/bfin.md: New file.
1846         * config/bfin/bfin.opt: New file.
1847         * config/bfin/crti.s: New file.
1848         * config/bfin/crtn.s: New file.
1849         * config/bfin/elf.h: New file.
1850         * config/bfin/lib1funcs.asm: New file.
1851         * config/bfin/predicates.md: New file.
1852         * config/bfin/t-bfin: New file.
1853         * config/bfin/t-bfin-elf: New file.
1854         * doc/extend.texi (exception_handler, kspisusp, nesting, nmi_handler):
1855         Document new attributes.
1856         (interrupt, interrupt_handler, saveall): Update documentation for
1857         these attributes.
1858         * doc/install.texi (Specific): Add entry for the Blackfin.
1859         * doc/invoke.texi (Blackfin Options): New section.
1860         * doc/md.texi (Blackfin family): New section to document constraints.
1861         * config.gcc: Add bfin*-* and bfin*-elf configurations.
1862
1863 2005-04-05  Olivier Hainque  <hainque@adacore.com>
1864         
1865         * config/mips/iris6.h (DWARF_FRAME_RETURN_COLUMN): Redefine to
1866         match what the system unwinder expects.
1867         * config/mips/mips.c (mips_frame_set): If we're saving the return
1868         address register and the dwarf return address column number differs
1869         from the hard register number, adjust the note reg to refer to the
1870         former.
1871
1872 2004-04-05  Richard Sandiford  <rsandifo@redhat.com>
1873
1874         * config/mn10300/mn10300-protos.h (mn10300_override_options): Declare.
1875         * config/mn10300/mn10300.h (target_flags, TARGET_MULT_BUG)
1876         (TARGET_SWITCHES, TARGET_DEFAULT): Delete.
1877         (processor_type): New enum.
1878         (mn10300_processor): New variable.
1879         (TARGET_AM33, TARGET_AM33_2): Redefine in terms of mn10300_processor.
1880         (PROCESSOR_DEFAULT, OVERRIDE_OPTIONS): New macros.
1881         * config/mn10300/linux.h (TARGET_SWITCHES, TARGET_DEFAULT): Delete.
1882         (PROCESSOR_DEFAULT): New macro.
1883         * config/mn10300/mn10300.c (mn10300_processor): New variable.
1884         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
1885         (mn10300_handle_option, mn10300_override_options): New functions.
1886         * config/mn10300/mn10300.opt: New file.
1887
1888 2005-04-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
1889             Sebastian Pop <sebastian.pop@cri.ensmp.fr>
1890
1891         PR tree-optimization/19903
1892         * tree-chrec.c (chrec_convert): Return chrec_dont_know for constants
1893         that don't fit in their type after conversion.
1894
1895 2005-04-05  Uros Bizjak <uros@kss-loka.si>
1896
1897         PR target/20421
1898         * config/i386/i386.md (frndintxf2_floor, frndintxf2_ceil)
1899         (frndintxf2_trunc, frndintxf2_mask_pm): Add FLAGS_REG clobber.
1900         Allocate local stack slots here.  Set ix86_optimize_mode_switching.
1901         flag here. Implement using define_insn_and_split.  
1902         (frndintxf2_floor_i387, frndintxf2_ceil_i387, frndintxf2_trunc_i387)
1903         (frndintxf2_mask_pm_i387): New insn patterns.
1904         (floorsf2, floordf2, floorxf2): Remove local stack slot allocations.
1905         Do not set ix86_optimize_mode_switching flag.
1906         (ceilsf2, ceildf2, ceilxf2): Same.
1907         (btruncsf2, btruncdf2, btruncxf2): Same.
1908         (nearbyintsf2, nearbyintdf2, nearbyintxf2): Same.
1909
1910 2005-04-05  Ian Lance Taylor  <ian@airs.com>
1911
1912         PR debug/9963
1913         * config/i386/cygming.h (ASM_OUTPUT_EXTERNAL): Pass DECL to
1914         i386_pe_record_external_function.
1915         (i386_pe_record_external_function): Update declaration.
1916         * config/i386/winnt.c (struct extern_list): Add decl field.
1917         (i386_pe_record_external_function): Add decl parameter.
1918         (i386_pe_file_end): Check TREE_ASM_WRITTEN on decl, not
1919         identifier.
1920         * config/i386/i386-protos.h (i386_pe_record_external_function):
1921         Update declaration.
1922
1923 2005-04-05  Kazu Hirata  <kazu@cs.umass.edu>
1924
1925         * config/m68k/m68k-protos.h: Add a prototype for
1926         valid_dbcc_comparison_p_2.
1927         * config/m68k/m68k.c (not_sp_operand, symbolic_operand,
1928         extend_operator, const_uint32_operand, const_sint32_operand,
1929         general_src_operand, nonimmediate_src_operand,
1930         memory_src_operand, post_inc_operand, pre_dec_operand,
1931         pcrel_address): Move to predicates to predicates.md.
1932         * config/m68k/m68k.h (PREDICATE_CODES): Remove.
1933         * config/m68k/m68k.md: Include predicates.md.
1934         * config/m68k/predicates.md: New.
1935
1936 2005-04-04  Roger Sayle  <roger@eyesopen.com>
1937
1938         * config/i386/i386.md (*truncdfsf2_i387_1): New pattern.
1939
1940         * fold-const.c (maybe_lvalue_p): Delete orphaned comment.
1941
1942 2005-04-04  Ian Lance Taylor  <ian@airs.com>
1943
1944         * c-typeck.c (struct c_switch): Rename switch_stmt field to
1945         switch_expr.
1946         (c_start_case): Build SWITCH_EXPR, not SWITCH_STMT.
1947         (do_case): Use SWITCH_COND rather than SWITCH_STMT_COND.
1948         (c_finish_case): Use SWITCH_BODY rather than SWITCH_STMT_BODY.
1949         Call c_do_switch_expr_warnings rather than c_do_switch_warnings.
1950         * c-common.c (c_do_switch_warnings_1): New static function broken
1951         out of c_do_switch_warnings.
1952         (c_do_switch_warnings): Call c_do_switch_warnings_1.
1953         (c_do_switch_expr_warnings): New function.
1954         * c-common.h (c_do_switch_expr_warnings): Declare.
1955
1956 2005-04-04  David Edelsohn  <edelsohn@gnu.org>
1957             Daniel Jacobowitz  <dan@codesourcery.com>
1958
1959         * tree-eh.c (tree_could_trap_p): Allow non-constant floating point
1960         trapping divide.
1961         * rtlanal.c (may_trap_p): Same.
1962
1963 2005-04-04  Dale Johannesen  <dalej@apple.com>
1964
1965         * ChangeLog:  remove reference to ChangeLog.12.
1966
1967 2005-04-05  Hans-Peter Nilsson  <hp@axis.com>
1968
1969         CRIS epilogue as RTL.
1970         * config/cris/cris.md: Change all 0 in unspec 0 to
1971         CRIS_UNSPEC_PLT.
1972         (CRIS_UNSPEC_PLT, CRIS_UNSPEC_FRAME_DEALLOC): New constants.
1973         ("*cris_load_multiple", "cris_frame_deallocated_barrier"): New
1974         patterns.
1975         ("return"): Change to define_expand.  Call cris_expand_return for
1976         actual expansion.
1977         ("*return_expanded"): New pattern.
1978         ("epilogue"): New define_expand.
1979         * config/cris/cris.h (PREDICATE_CODES): Add
1980         cris_load_multiple_op.
1981         * config/cris/cris.c (ASSERT_PLT_UNSPEC): Correct test for unspec
1982         type.
1983         (enum cris_retinsn_type): New.
1984         (struct machine_function): New member return_type.
1985         (TARGET_ASM_FUNCTION_EPILOGUE): Don't override.
1986         (cris_target_asm_function_epilogue): Remove, moving RTLified
1987         contents to...
1988         (cris_expand_epilogue): New function.
1989         (cris_reg_saved_in_regsave_area, cris_movem_load_rest_p,
1990         (cris_gen_movem_load, cris_load_multiple_op)
1991         (cris_return_address_on_stack_for_return, cris_expand_return): New
1992         functions.
1993         (cris_target_asm_function_prologue)
1994         (cris_initial_frame_pointer_offset): Call
1995         cris_reg_saved_in_regsave_area instead of complicated expression.
1996         Call cris_return_address_on_stack instead of an expression.
1997         (cris_print_operand) <case 'o', case 'O'>: New cases.
1998         (cris_return_address_on_stack): Change return-type to bool.
1999         (cris_simple_epilogue): Ditto.  Return false if registers are
2000         saved.
2001         * config/cris/cris-protos.h (cris_simple_epilogue)
2002         (cris_return_address_on_stack): Adjust prototype return type.
2003         (cris_gen_movem_load, cris_expand_epilogue, cris_expand_return)
2004         (cris_return_address_on_stack_for_return): New prototypes.
2005
2006 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
2007
2008         * config/frv/frv.h (PREDICATE_CODES): Add CONST to
2009         gpr_or_int12_operand.
2010
2011         * config/frv/frv-protos.h: Add a prototype to
2012         frv_legitimate_memory_operand and frv_const_unspec_p.
2013         (frv_unspec): Move from frv.c.
2014         * config/frv/frv.c (frv_unspec): Move to frv-protos.h.
2015         (frv_const_unspec_p, frv_legitimate_memory_operand_): Export.
2016         (ldd_address_operand, fdpic_fptr_operand, frv_load_operand,
2017         gpr_or_fpr_operand, gpr_or_int12_operand,
2018         gpr_fpr_or_int12_operand, fpr_or_int6_operand,
2019         gpr_or_int10_operand, gpr_or_int_operand, int12_operand,
2020         int6_operand, int5_operand, uint5_operand, uint4_operand,
2021         uint1_operand, int_2word_operand, uint16_operand,
2022         upper_int16_operand, integer_register_operand,
2023         gpr_no_subreg_operand, fpr_operand, even_reg_operand,
2024         odd_reg_operand, even_gpr_operand, odd_gpr_operand,
2025         quad_fpr_operand, even_fpr_operand, odd_fpr_operand,
2026         dbl_memory_one_insn_operand, dbl_memory_two_insn_operand,
2027         move_destination_operand, movcc_fp_destination_operand,
2028         frv_function_symbol_referenced_p, move_source_operand,
2029         condexec_dest_operand, condexec_source_operand,
2030         reg_or_0_operand, lr_operand, fdpic_operand, got12_operand,
2031         const_unspec_operand, gpr_or_memory_operand,
2032         gpr_or_memory_operand_with_scratch, fpr_or_memory_operand,
2033         icc_operand, fcc_operand, cc_operand, icr_operand,
2034         fcr_operand, cr_operand, call_operand, sibcall_operand,
2035         symbolic_operand, relational_operator,
2036         integer_relational_operator, float_relational_operator,
2037         ccr_eqne_operator, minmax_operator,
2038         condexec_si_binary_operator, condexec_si_media_operator,
2039         condexec_si_divide_operator, condexec_si_unary_operator,
2040         condexec_sf_conv_operator, condexec_sf_add_operator,
2041         condexec_memory_operand, intop_compare_operator, acc_operand,
2042         even_acc_operand, quad_acc_operand, accg_operand: Move to
2043         predicates.md.
2044         * config/frv/frv.h (PREDICATE_CODES): Remove.
2045         * config/frv/frv.md: Include predicates.md.
2046         * config/frv/predicates.md: New.
2047
2048 2004-04-04  Richard Sandiford  <rsandifo@redhat.com>
2049
2050         PR target/19537
2051         * Makefile.in (tree-ssa-loop-ivopts.o): Depend on langhooks.h.
2052         * tree-ssa-loop-ivopts.c: Include langhooks.h.
2053         (add_standard_iv_candidates_for_size): New function, extracting code
2054         from add_standard_iv_candidates and parameterizing it by type size.
2055         (add_standard_iv_candidates): Use add_standard_iv_candidates_for_size.
2056
2057 2004-04-04  Richard Sandiford  <rsandifo@redhat.com>
2058
2059         * system.h (GCOV_SIZE_TYPE): Unposion.
2060         * gcov-io.h (GCOV_TYPE_NODE): Delete, replacing with...
2061         (GCOV_TYPE_SIZE): ...this new macro.
2062         * coverage.h (get_gcov_type, GCOV_TYPE_NODE): Declare.
2063         * coverage.c (get_gcov_type, get_gcov_unsigned_t): New functions.
2064         (rtl_coverage_counter_ref): Use GCOV_TYPE_SIZE.
2065         (build_fn_info_type, build_fn_info_value, build_ctr_info_type)
2066         (build_ctr_info_value, build_gcov_info): Use get_gcov_unsigned_t
2067         instead of unsigned_intSI_type_node.
2068         * rtl-profile.c (rtl_gen_interval_profiler, rtl_gen_pow2_profiler)
2069         (rtl_gen_one_value_profiler_no_edge_manipulation)
2070         (rtl_gen_const_delta_profiler): Use GCOV_TYPE_SIZE.
2071         * value-prof.c: Include coverage.h.
2072
2073 2005-04-02  Daniel Berlin  <dberlin@dberlin.org>
2074             Diego Novillo <dnovillo@redhat.com>
2075             
2076         Fix PR tree-optimization/20703
2077         Fix PR tree-optimization/20725
2078         
2079         * tree-ssa-pre.c (phi_translate): Handle tcc_comparison.
2080         (create_expression_by_pieces): Ditto.
2081         (valid_in_set): Ditto. Also handle tcc_declaration.
2082         (find_or_generate_expression): Handle comparison class.
2083         (insert_into_preds_of_block): Ditto.
2084         (insert_aux): Ditto.
2085         (create_value_expr_from): Handle comparison class, recursively
2086         handle reference nodes.
2087         (compute_avail): Handle comparison classes, rewrite a little cleaner.
2088         (execute_pre): Fix spacing.
2089         (do_fre): Renamed to execute_fre.
2090
2091 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2092
2093         * doc/invoke.texi (SPARC options): Document that
2094         -mlittle-endian is not supported on Linux either.
2095
2096 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2097
2098         PR target/4198
2099         PR target/12027
2100         * config.gcc (Obsolete configurations): Remove
2101         sparclite-*-coff*, sparclite-*-elf* and sparc86x-*-elf*.
2102         (sparclite-*-coff*): Delete.
2103         (sparclite-*-elf*): Likewise.
2104         (sparc86x-*-elf*): Likewise.
2105         (target_cpu_default) <sparc*-*-*>: Remove sparc86x.
2106         * config/sparc/lite.h: Delete.
2107         * config/sparc/litecoff.h: Likewise.
2108         * config/sparc/liteelf.h: Likewise.
2109         * config/sparc/sp86x-elf.h: Likewise.
2110         * config/sparc/t-sparclite: Likewise.
2111         * config/sparc/t-sp86x: Likewise.
2112
2113 2005-04-04  Adrian Straetling  <straetling@de.ibm.com>
2114
2115         * config/s390/s390-protos.h: (s390_comparison,
2116         s390_alc_comparison, s390_slb_comparison, const0_operand,
2117         consttable_operand, larl_operand, s_operand,
2118         shift_count_operand, bras_sym_operand, load_multiple_operation,
2119         store_multiple_operation, s390_plus_operand): Remove prototypes.
2120         (s390_legitimate_address_without_index_p): New prototype.
2121         * config/s390/s390.c: (SYMBOL_FLAG_ALIGN1, DISP_IN_RANGE): Move
2122         to s390.h.
2123         (s390_comparison, s390_alc_comparison, s390_slb_comparison,
2124         const0_operand, consttable_operand, larl_operand, s_operand,
2125         shift_count_operand, bras_sym_operand, load_multiple_operation,
2126         store_multiple_operation, s390_plus_operand): Move to
2127         predicates.md.
2128         (check_mode): Remove.
2129         (s390_branch_condition_mask): Remove 'static'. Move prototype to
2130         s390-protos.h.
2131         (s390_legitimate_address_without_index_p): New.
2132         * config/s390/s390.h (PREDICATE_CODES): Remove.
2133         * config/s390/s390.md: Include predicates.md.
2134         * config/s390/predicates.md: New.
2135
2136 2005-04-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
2137
2138         PR target/20446
2139         * config/sparc/sparc.h (NEED_INDICATE_EXEC_STACK): Define to 0.
2140         * config/sparc/linux.h (TARGET_ASM_FILE_END): Delete.
2141         (NEED_INDICATE_EXEC_STACK): Define to 1.
2142         * config/sparc/linux64.h (TARGET_ASM_FILE_END): Delete.
2143         (NEED_INDICATE_EXEC_STACK): Define to 1.
2144         * config/sparc/sparc.c (TARGET_ASM_FILE_END): Set to sparc_file_end.
2145         (add_pc_to_pic_symbol): Rename into pic_helper_symbol.
2146         (add_pc_to_pic_symbol_name): Rename into pic_helper_symbol_name.
2147         (pic_helper_emitted_p): New global.
2148         (emit_pic_helper): New function extracted from...
2149         (load_pic_register): ...here.  Add 'delay_pic_helper' parameter.
2150         Do not call emit_pic_helper if delay_pic_helper is true.
2151         (sparc_expand_prologue): Pass 'false' to load_pic_register.
2152         (sparc_output_mi_thunk): Pass 'true' to load_pic_register.
2153         (sparc_file_end): New function.
2154
2155 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
2156
2157         * config/mcore/mcore-protos.h: Remove the prototypes for
2158         mcore_arith_reg_operand, mcore_general_movsrc_operand,
2159         mcore_general_movdst_operand, mcore_reload_operand,
2160         mcore_arith_J_operand, mcore_arith_K_operand,
2161         mcore_arith_K_operand_not_0, mcore_arith_M_operand,
2162         mcore_arith_K_S_operand, mcore_arith_imm_operand,
2163         mcore_arith_any_imm_operand, mcore_arith_O_operand,
2164         mcore_literal_K_operand, mcore_addsub_operand,
2165         mcore_compare_operand, mcore_load_multiple_operation,
2166         mcore_store_multiple_operation, mcore_call_address_operand.
2167         Add a prototype for const_ok_for_mcore.
2168         * config/mcore/mcore.c (mcore_call_address_operand,
2169         mcore_general_movsrc_operand, mcore_general_movdst_operand,
2170         mcore_arith_reg_operand, mcore_reload_operand,
2171         mcore_arith_J_operand, mcore_arith_K_operand,
2172         mcore_arith_K_operand_not_0, mcore_arith_K_S_operand,
2173         mcore_arith_M_operand, mcore_arith_imm_operand,
2174         mcore_arith_any_imm_operand, mcore_arith_O_operand,
2175         mcore_literal_K_operand, mcore_addsub_operand,
2176         mcore_compare_operand, mcore_load_multiple_operation,
2177         mcore_store_multiple_operation): Move to predicates.md.
2178         (const_ok_for_mcore): Export.
2179         * config/mcore/mcore.h (PREDICATE_CODES): Remove.
2180         * config/mcore/mcore.md: Include predicates.md.
2181         * config/mcore/predicates.md: New.
2182
2183         * config/mcore/predicates.md: Fix a comment typo.
2184
2185 2005-04-04  Andreas Krebbel  <krebbel1@de.ibm.com>
2186             Adrian Straetling  <straetling@de.ibm.com>
2187
2188         * config/s390/2064.md ("z_mul", "z_inf"): New insn reservations.
2189         * config/s390/2084.md ("x_mul_hi", "x_mul_sidi", "x_div"): Likewise.
2190         * config/s390/s390.md ("imulhi", "imulsi", "imuldi"): Added to "type"
2191         attribute.
2192         ("imul"): Removed from "type" attribute.
2193         ("*muldi3_sign", "muldi3"): Changed type to imuldi.
2194         ("mulsi3/1", "mulsi3/3", "mulsi/4", "mulsidi3", "umulsidi3"): 
2195         Changed type to imulsi.
2196         ("*mulsi3_sign", "mulsi3/2"): Changed type to imulhi.
2197
2198 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
2199
2200         * config/mcore/mcore.h (target_flags, HARDLIT_BIT, ALIGN8_BIT, DIV_BIT)
2201         (RELAX_IMM_BIT, W_FIELD_BIT, OVERALIGN_FUNC_BIT, CGDATA_BIT)
2202         (SLOW_BYTES_BIT, LITTLE_END_BIT, M340_BIT, TARGET_HARDLIT)
2203         (TARGET_DIV, TARGET_RELAX_IMM, TARGET_W_FIELD, TARGET_OVERALIGN_FUNC)
2204         (TARGET_CG_DATA, TARGET_SLOW_BYTES, TARGET_LITTLE_END, TARGET_M340)
2205         (TARGET_SWITCHES, mcore_stack_increment_string)
2206         (TARGET_OPTIONS): Delete.
2207         (TARGET_DEFAULT, OPTIMIZATION_OPTIONS): Use MASK_* constants rather
2208         than *_BIT constants.
2209         (TARGET_8ALIGN): #undef old definition before redefining to 1.
2210         * config/mcore/mcore.c (mcore_stack_increment_string): Delete.
2211         (TARGET_DEFAULT_TARGET_FLAGS): Override default to TARGET_DEFAULT.
2212         (mcore_override_options): Delete mcore_stack_increment code.
2213         Change use of M340_BIT to MASK_M340.
2214         * config/mcore/mcore.opt: New file.
2215
2216 2005-04-04  Ian Lance Taylor  <ian@airs.com>
2217
2218         * config/arm/arm.c (replace_symbols_in_block): Remove static
2219         function.
2220
2221 2005-04-04  Kazu Hirata  <kazu@cs.umass.edu>
2222
2223         * config/fr30/fr30-protos.h: Remove the prototypes for
2224         stack_add_operand, add_immediate_operand,
2225         high_register_operand, low_register_operand, call_operand,
2226         di_operand, and nonimmediate_di_operand.
2227         * config/fr30/fr30.c (stack_add_operand,
2228         add_immediate_operand, high_register_operand,
2229         low_register_operand, call_operand, di_operand,
2230         nonimmediate_di_operand): Move to predicates.md.
2231         * config/fr30/fr30.h (PREDICATE_CODES): Remove.
2232         * config/fr30/fr30.md: Include predicates.md.
2233         * config/fr30/predicates.md: New.
2234
2235         * config/mcore/mcore.h (PREDICATE_CODES): Add SYMBOL_REF and
2236         LABEL_REF to mcore_general_movsrc_operand.  Add SYMBOL_REF to
2237         mcore_call_address_operand.
2238
2239         * config/sh/sh.h (PREDICATE_CODES): Add CONST to
2240         general_movsrc_operand.
2241
2242 2005-04-04  Alan Modra  <amodra@bigpond.net.au>
2243
2244         * passes.c (rest_of_handle_final): NULL unlikely_text_section_name
2245         after freeing.
2246
2247 2005-04-04  Richard Earnshaw  <richard.earnshaw@arm.com>
2248
2249         PR target/14812
2250         * arm.c (arm_select_cc_mode): Return CC_Zmode when comparing against
2251         a negated value.
2252
2253 2005-04-04  Richard Henderson  <rth@redhat.com>
2254             Jakub Jelinek  <jakub@redhat.com>
2255
2256         PR rtl-optimization/16104
2257         * fold-const.c (fold_unary): Fix folding of vector conversions.
2258
2259 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
2260
2261         * config.gcc (xstormy16-*-elf): Set extra_options.
2262         * config/stormy16/stormy16.h (target_flags, TARGET_SWITCHES): Delete.
2263         * config/stormy16/stormy16.opt: New file.
2264
2265 2005-04-04  Richard Sandiford  <rsandifo@redhat.com>
2266
2267         * config/pdp11/pdp11.h (target_flags, TARGET_SWITCHES, TARGET_DEFAULT)
2268         (TARGET_FPU, TARGET_SOFT_FLOAT, TARGET_AC0, TARGET_NO_AC0, TARGET_45)
2269         (TARGET_BCOPY_BUILTIN, TARGET_INT16, TARGET_INT32, TARGET_FLOAT32)
2270         (TARGET_FLOAT64, TARGET_ABSHI_BUILTIN, TARGET_BRANCH_EXPENSIVE)
2271         (TARGET_BRANCH_CHEAP, TARGET_SPLIT, TARGET_NOSPLIT)
2272         (TARGET_UNIX_ASM): Delete.
2273         (TARGET_40_PLUS): Redefine in terms of TARGET_40 and TARGET_45.
2274         * config/pdp11/2bsd.h (TARGET_UNIX_ASM_DEFAULT): Use MASK_UNIX_ASM.
2275         * config/pdp11/pdp11.c (pdp11_handle_option): New function.
2276         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
2277         * config/pdp11/pdp11.opt: New file.
2278
2279 2005-04-03  Roger Sayle  <roger@eyesopen.com>
2280             Alexandre Oliva  <aoliva@redhat.com>
2281
2282         PR c++/19199
2283         * fold-const.c (non_lvalue): Split tests into...
2284         (maybe_lvalue_p): New function.
2285         (fold_cond_expr_with_comparison): Preserve lvalue-ness for the
2286         C++ front-end prior to lowering into gimple form.
2287
2288 2005-04-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2289
2290         * builtins.def (BUILT_IN_STPNCPY, BUILT_IN_STRCASECMP,
2291         BUILT_IN_STRNCASECMP): New.
2292         * doc/extend.texi: Document stpncpy, strcasecmp, strncasecmp
2293         and strndup.
2294
2295 2005-04-03  Richard Earnshaw  <richard.earnshaw@arm.com>
2296
2297         PR target/14812
2298         * arm.md (addsi3_compare0_for_combiner): Delete.
2299         (addsi3_compare0_scratch_for_combiner): Delete.
2300         (cmpsi_neg_shiftsi): Delete.
2301         (compare_negsi_si): New pattern.
2302         (cmpsi_negshiftsi_si): New pattern.
2303         (negated_cbranchsi4): Restrict to equality_operator.
2304         
2305         * arm.md (movhi_insn_arch4): delete trailing white space from assembler
2306         template.
2307
2308 2005-04-03  Kazu Hirata  <kazu@cs.umass.edu>
2309
2310         * cfghooks.c, cfgrtl.c, modulo-sched.c, config/i386/winnt.c:
2311         Fix comment typos.
2312
2313         * doc/install.texi: Fix a typo.
2314
2315 2005-04-03  Steven Bosscher  <stevenb@suse.de>
2316
2317         PR middle-end/20648
2318         * bb-reorder.c (duplicate_computed_gotos): Do not unfactor
2319         a computed goto if the edge to the computed goto block has
2320         incoming abnormal edges.  Clarify how the function works.
2321
2322 2005-04-03  Nathan Sidwell  <nathan@codesourcery.com>
2323
2324         * params.c (set_param_value): Use gcc_assert & gcc_unreachable.
2325         * passes.c (open_dump_file, rest_of_handle_final): Likewise.
2326         * postreload-gcse.c (expr_equiv_p, oprs_unchanged_p,
2327         hash_scan_set, reg_set_between_after_reload_p,
2328         reg_used_between_after_reload_p, get_avail_load_store_reg,
2329         eliminate_partially_redundant_load): Likewise.
2330         * postreload.c (reload_cse_simplify_set,
2331         reload_combine_note_use): Likewise.
2332         * predict.c (predict_insn, expected_value_to_br_prob,
2333         propagate_freq, expensive_function_p): Likewise.
2334         * print-rtl.c (print_rtx): Likewise.
2335         * profile.c (instrument_edges, instrument_values,
2336         compute_branch_probabilities, branch_prob, union_groups,
2337         tree_register_profile_hooks, rtl_register_profile_hooks): Likewise.
2338         * protoize.c (in_system_include_dir, file_could_be_converted,
2339         file_normally_convertible, gen_aux_info_file, seek_to_line,
2340         do_cleaning): Likewise.
2341         * tree-ssa-alias.c (collect_points_to_info_r): Likewise.
2342         * tree-ssa-ccp.c (execute_fold_all_builtins): Likewise.
2343         * tree-ssa-loop-ivopts.c (produce_memory_decl_rtl): Likewise.
2344
2345 2005-04-03 Mostafa Hagog <mustafa@il.ibm.com>
2346
2347         * cfg.c (clear_bb_flags): Don't clear BB_DISABLE_SCHEDULE.
2348         * modulo-sched.c (undo_replace_buff_elem): New structure.
2349         (kernel_number_of_cycles, ps_unschedule_node,
2350         undo_generate_reg_moves,free_undo_replace_buff,
2351         undo_permute_partial_schedule,  loop_single_full_bb_p,
2352         SIMPLE_SMS_LOOP_P, loop_canon_p, canon_loop,
2353         build_loops_structure, get_sched_window): New.
2354         (generate_reg_moves): Return undo_replace_buff_elem and other
2355         fixes.
2356         (generate_prolog_epilog): Remove old loop versioning.
2357         (sms_schedule): Use loop information and loop_version.
2358         (sms_schedule_by_order): Split part of it to get_sched_window.
2359         * passes.c (rest_of_handle_sms): call cfg_layout_initialize
2360         cfg_layout_finalize and free_dominance_info before/after SMS.
2361
2362 2005-04-03 Mostafa Hagog <mustafa@il.ibm.com>
2363
2364         * cfghooks.c (lv_flush_pending_stmts,
2365         cfg_hook_duplicate_loop_to_header_edge, extract_cond_bb_edges,
2366         lv_adjust_loop_header_phi, lv_add_condition_to_bb): New.
2367         * cfghooks.h (cfg_hook_duplicate_loop_to_header_edge,
2368         lv_add_condition_to_bb,
2369         lv_adjust_loop_header_phi, extract_cond_bb_edges,
2370         flush_pending_stmts): New in cfg_hooks structure.
2371         (cfg_hook_duplicate_loop_to_header_edge, lv_flush_pending_stmts,
2372         extract_cond_bb_edges, lv_adjust_loop_header_phi,
2373         lv_add_condition_to_bb): New declarations.
2374         * cfgloop.h (duplicate_loop_to_header_edge): Change return type to
2375         bool.
2376         (loop_version): Declare.
2377         * cfgloopmanip.c (cfghooks.h): Include.
2378         (duplicate_loop_to_header_edge): Change return type to bool.
2379         (loop_version, lv_adjust_loop_entry_edge): Move here.
2380         * cfgrtl.c (cfgloop.h): Include.
2381         (rtl_verify_flow_info_1): Fix.
2382         (rtl_lv_add_condition_to_bb, rtl_extract_cond_bb_edges): New.
2383         (rtl_cfg_hooks, cfg_layout_rtl_cfg_hook): Add hooks to
2384         initialization.
2385         * tree-cfg.c (tree_lv_adjust_loop_header_phi,
2386         tree_lv_add_condition_to_bb): New.
2387         (tree_cfg_hooks): Add new hooks to initialization.
2388         * tree-ssa-loop-manip.c (lv_adjust_loop_header_phi,
2389         lv_adjust_loop_entry_edge, tree_ssa_loop_version): Remove.
2390
2391 2005-04-03  Kazu Hirata  <kazu@cs.umass.edu>
2392
2393         * config/stormy16/stormy16.h (PREDICATE_CODES): Add SUBREG to
2394         xstormy16_below100_or_register,
2395         xstormy16_splittable_below100_or_register, and
2396         nonimmediate_nonstack_operand.
2397
2398         * config/stormy16/stormy16-protos.h: Remove the prototypes for
2399         xstormy16_ineqsi_operator, equality_operator,
2400         inequality_operator, shift_operator,
2401         xstormy16_below100_operand, xstormy16_below100_or_register,
2402         xstormy16_splittable_below100_or_register,
2403         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand.
2404         * config/stormy16/stormy16.c (xstormy16_ineqsi_operator,
2405         equality_operator, inequality_operator,
2406         xstormy16_below100_operand, xstormy16_below100_or_register,
2407         xstormy16_splittable_below100_or_register,
2408         xstormy16_onebit_set_operand, xstormy16_onebit_clr_operand,
2409         nonimmediate_nonstack_operand, shift_operator): Move to
2410         predicates.md.
2411         * config/stormy16/stormy16.h (PREDICATE_CODES): Remove.
2412         * config/stormy16/stormy16.md: Include predicates.md.
2413         * config/stormy16/predicates.md: New.
2414
2415 2005-04-02  Kazu Hirata  <kazu@cs.umass.edu>
2416
2417         * config/iq2000/iq2000.c (uns_arith_operand, arith_operand,
2418         small_int, large_int, reg_or_0_operand, simple_memory_operand,
2419         equality_op, cmp_op, pc_or_label_operand, call_insn_operand,
2420         move_operand, power_of_2_operand): Move to predicates.md.
2421         * config/iq2000/iq2000.h (SPECIAL_MODE_PREDICATES,
2422         PREDICATE_CODE): Remove.
2423         * config/iq2000/iq2000.md: Include predicates.md.
2424         * config/iq2000/predicates.md: New.
2425
2426 2005-04-02  Richard Sandiford  <rsandifo@redhat.com>
2427
2428         * config/m68hc11/m68hc11.h (target_flags, MASK_SHORT)
2429         (MASK_AUTO_INC_DEC, MASK_M6811, MASK_M6812, MASK_M68S12)
2430         (MASK_NO_DIRECT_MODE, MASK_MIN_MAX, MASK_LONG_CALLS)
2431         (TARGET_SHORT, TARGET_M6811, TARGET_M6812, TARGET_M68S12)
2432         (TARGET_AUTO_INC_DEC, TARGET_MIN_MAX, TARGET_NO_DIRECT_MODE)
2433         (TARGET_LONG_CALLS, TARGET_SWITCHES, TARGET_OPTIONS)
2434         (SUBTARGET_SWITCHES, SUBTARGET_OPTIONS, m68hc11_regparm_string)
2435         (m68hc11_reg_alloc_order, m68hc11_soft_reg_count)
2436         (TARGET_M68HC11): Delete.
2437         (TARGET_DEFAULT): Change the default setting from MASK_M6811 to 0.
2438         * config/m68hc11/m68hc12.h (TARGET_M68HC12): Delete.
2439         * config/m68hc11/m68hc11.c (m68hc11_regparm_string)
2440         (m68hc11_reg_alloc_order, m68hc11_soft_reg_count)
2441         (nb_soft_regs): Delete.
2442         (TARGET_DEFAULT_TARGET_FLAGS): Override default with TARGET_DEFAULT.
2443         (m68hc11_override_options): Remove the code that caters for MASK_M6811
2444         and MASK_M6812 being set simultaneously.  Change the code that sets
2445         the default m68hc11_soft_reg_count to use integers instead of strings.
2446         (m68hc11_conditional_register_usage, hard_regno_mode_ok): Use
2447         m68hc11_soft_reg_count (which now has an int type) as the number
2448         of soft registers.
2449         * config/m68hc11/m68hc11.opt: New file.
2450
2451 2005-04-02  Kazu Hirata  <kazu@cs.umass.edu>
2452
2453         * config/fr30/fr30.h (PREDICATE_CODES): Remove
2454         fp_displacement_operand, sp_displacement_operand.
2455
2456         * config/m68hc11/m68hc11-protos.h: Add a prototype for
2457         m68hcc_auto_inc_p.
2458         Remove the prototypes for tst_operand, cmp_operand,
2459         stack_register_operand, d_register_operand,
2460         hard_addr_reg_operand, splitable_operand,
2461         m68hc11_logical_operator, m68hc11_arith_operator,
2462         m68hc11_non_shift_operator, m68hc11_shift_operator,
2463         m68hc11_unary_operator, m68hc11_eq_compare_operator,
2464         non_push_operand, hard_reg_operand, and
2465         reg_or_some_mem_operand.
2466         * config/m68hc11/m68hc11.c (m68hcc_auto_inc_p): Make it
2467         extern.
2468         (tst_operand, cmp_operand, non_push_operand,
2469         splitable_operand, reg_or_some_mem_operand,
2470         stack_register_operand, d_register_operand,
2471         hard_addr_reg_operand, hard_reg_operand,
2472         m68hc11_eq_compare_operator, m68hc11_logical_operator,
2473         m68hc11_arith_operator, m68hc11_non_shift_operator,
2474         m68hc11_shift_operator, m68hc11_unary_operator): Move to
2475         predicates.md.
2476         * config/m68hc11/m68hc11.h (PREDICATE_CODES): Remove.
2477         * config/m68hc11/m68hc11.md: Include predicates.md.
2478         * config/m68hc11/predicates.md: New.
2479
2480 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
2481
2482         PR debug/19345
2483         * dwarf2out.c (add_abstract_origin_attribute): Revert accidental
2484         change checked in along with 2005-03-03's patch for debug/20253.
2485         * tree-inline.c (remap_type): Remap TYPE_STUB_DECL.
2486         (remap_decl): Insert type decl in map earlier.
2487
2488 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
2489
2490         PR tree-optimization/20640
2491         * tree-ssa-dce.c (remove_dead_stmt): Don't redirect edge to
2492         post-dominator if it has phi nodes.
2493         (eliminate_unnecessary_stmts): Remove dead phis in all blocks
2494         before dead statements.
2495
2496 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
2497
2498         PR middle-end/20491
2499         * final.c (alter_subreg): Don't call subreg_regno for a non-REG.
2500
2501 2005-04-02  Alexandre Oliva  <aoliva@redhat.com>
2502
2503         PR rtl-optimization/20290
2504         * loop.c (for_each_insn_in_loop): Don't assume the loop body runs
2505         in every iteration if the entry point is the exit test.
2506
2507 2005-04-02  Hans-Peter Nilsson  <hp@axis.com>
2508
2509         * config/cris/cris.md (attribute "length"): Define.
2510
2511 2005-04-02  Geoffrey Keating  <geoffk@apple.com>
2512
2513         * config/rs6000/predicates.md (indexed_or_indirect_operand): New.
2514         (word_offset_memref_operand): New.
2515         * config/rs6000/rs6000-protos.h (word_offset_memref_operand): Delete.
2516         (indexed_or_indirect_operand): Delete.
2517         * config/rs6000/rs6000.c (word_offset_memref_operand): Delete.
2518         (indexed_or_indirect_operand): Delete.
2519
2520         * config/rs6000/t-darwin8: Comment out ppc64 multilib.
2521
2522         PR 20650
2523         * config/rs6000/rs6000.md (fix_truncdfsi2): Make destination
2524         a register.
2525
2526         * config/rs6000/t-darwin (TARGET_LIBGCC2_CFLAGS): Add -pipe.
2527         * config/t-darwin (TARGET_LIBGCC2_CFLAGS): Likewise.
2528
2529 2005-04-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2530
2531         * gcc/config/vax/vax.md: Spellcheck, fix whitespace.
2532
2533 2005-04-01  Ian Lance Taylor  <ian@airs.com>
2534
2535         * gcc.c: Don't include <sys/resource.h> or declare getrusage.
2536         (rus, prus): Remove static variables.
2537         (execute): Use pex_run/pex_get_status rather than pexecute/pwait.
2538         (process_command): Permit report_times and use_pipes together.
2539
2540 2005-04-01  Joseph S. Myers  <joseph@codesourcery.com>
2541
2542         * c-decl.c (validate_proto_after_old_defn): Look at
2543         TYPE_MAIN_VARIANT of argument types.
2544
2545 2005-04-01  Paul Brook  <paul@codesourcery.com>
2546
2547         * config/arm/arm.c (thumb_call_via_label): Include space for SP.
2548         (arm_output_function_epilogue): Allow call_via_SP.
2549         (thumb_call_via_reg, arm_file_end): Ditto.
2550         * config/arm/arm.h (struct machine_function): Include space for SP.
2551         (thumb_call_via_label): Update declaration.
2552
2553 2005-04-01  Ian Lance Taylor  <ian@airs.com>
2554
2555         * final.c (final_scan_insn): Revert part of 2005-03-30 patch: when
2556         doing a peephole optimization, once again put any notes in the
2557         proper position.
2558
2559 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
2560
2561         * bb-reorder.c, fold-const.c, varasm.c: Fix comment typos.
2562
2563 2005-04-01  Nathan Sidwell  <nathan@codesourcery.com>
2564
2565         * local-alloc.c (update_equiv_regs): Use gcc_assert, gcc_unreachable.
2566         (block_alloc, find_free_reg): Likewise.
2567         * loop-doloop.c (doloop_modify): Likewise.
2568         * loop-invariant.c (record_use): Likewise.
2569         * loop-iv.c (get_biv_step_1, get_biv_step, iv_analyze,
2570         get_iv_value, canon_condition, eliminate_implied_condition,
2571         eliminate_implied_condition, simplify_using_initial_values,
2572         shorten_into_mode, canonicalize_iv_subregs,
2573         iv_number_of_iterations): Likewise.
2574         * loop-unroll.c (expand_var_during_unrolling): Likewise.
2575         * loop-unswitch.c (compare_and_jump_seq, unswitch_single_loop,
2576         unswitch_loop): Likewise.
2577         * loop.c (INSN_LUID, loop_optimize, rtx_equal_for_loop_p,
2578         move_movables, replace_call_address, find_and_verify_loops,
2579         rtx_equal_for_prefetch_p, fold_rtx_mult_add, loop_iterations,
2580         record_giv, final_giv_value, general_induction_var,
2581         simplify_giv_expr, extension_within_bounds_p, try_copy_prop,
2582         loop_giv_dump): Likewise.
2583
2584         * gcov-io.h (GCOV_CHECK, GCOV_CHECK_READING,
2585         GCOV_CHECK_WRITING): Remove.
2586         (gcov_position, gcov_rewrite): Use gcc_assert.
2587         * gcov-io.c (gcov_open, gcov_write_words, gcov_write_length,
2588         gcov_read_words, gcov_sync, gcov_seek): Use gcc_assert.
2589         * libgcov.c (__gcov_merge_single, __gcov_merge_delta): Use
2590         gcc_assert.
2591
2592 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
2593
2594         * tree-inline.c: Fix a typo.
2595
2596 2005-04-01  Nathan Sidwell  <nathan@codesourcery.com>
2597
2598         * configure.ac (enable-checking): Explicitly set all variables for
2599         collective switch values.  Alphabetize variables. Rename
2600         ac_checking_valgrind to ac_valgrind_checking.  Allow 'none' as
2601         synonym for 'no'.
2602         * doc/install.texi (enable-checking): Update documentation.
2603         * configure: Rebuilt.
2604
2605 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
2606
2607         * tree-inline.c (copy_body_r): Use CONSTANT_CLASS_P where
2608         possible.
2609
2610 2005-04-01  Richard Earnshaw  <richard.earnshaw@arm.com>
2611
2612         * arm.c (adjacent_mem_locations): Reject volatile memory refs.
2613         Also reject cases where this pattern will cause load delay stalls
2614         unless optimizing for size and it will produce a shorter sequence.
2615         * arm.md (arith_adjacent_mem): Make better use of ldm addressing
2616         variants to avoid pre-adjusting the base when possible.
2617
2618 2005-04-01  Richard Earnshaw  <richard.earnshaw@arm.com>
2619
2620         * arm.md (minmax_arithsi): Reject all eliminable registers, not just
2621         the frame and argument pointers.
2622         (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec): Likewise.
2623         (loadqisi_preinc, loadqisi_predec, strsi_preinc): Likewise.
2624         (strsi_predec, loadsi_preinc, loadsi_predec): Likewise.
2625         (strqi_shiftpreinc, strqi_shiftpredec, loadqi_shiftpreinc): Likewise.
2626         (loadqi_shiftpredec, strsi_shiftpreinc, strsi_shiftpredec): Likewise.
2627         (loadsi_shiftpreinc, loadsi_shiftpredec): Likewise.
2628
2629 2005-04-01  Danny Smith  <dannysmith@users.sourceforge.net>
2630
2631         * config/i386/cygming.h (SUBTARGET_ATTRIBUTE_TABLE): Define,
2632         with entry for selectany attribute.
2633         * config/i386/i386-protos.h (ix86_handle_selectany_attribute):
2634         Declare.
2635         * config/i386/winnt.c (ix86_handle_selectany_attribute): Define.
2636         (i386_pe_asm_named_section): Handle sections generated by
2637         selectany attribute.
2638         * doc/extend.texi (selectany): Document attribute.
2639
2640 2005-04-01  Paolo Bonzini  <bonzini@gnu.org>
2641             Jan Hubicka  <jh@suse.cz>
2642
2643         * config/i386/i386.c (ix86_decompose_address): Look inside SUBREGs
2644         to fix addresses involving EBP and ESP.
2645         (aligned_operand, legitimate_address_p, ix86_address_cost): Be prepared
2646         for SUBREGed registers.
2647         (legitimate_address_p): Accept SUBREGed registers.
2648
2649 2005-04-01  Jakub Jelinek  <jakub@redhat.com>
2650
2651         PR c++/19406
2652         * dwarf2out.c (gen_type_die_for_member): Handle FIELD_DECL.
2653         (dwarf2out_imported_module_or_decl): Use gen_type_die_for_member
2654         for FIELD_DECLs.
2655
2656 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
2657
2658         * doc/contrib.texi, doc/invoke.texi, doc/tm.texi: Fix typos.
2659
2660 2005-04-01  James E Wilson  <wilson@specifixinc.com>
2661
2662         PR c++/20505
2663         * dwarf2out.c (rtl_for_decl_init): New function.
2664         (rtl_for_decl_location): Extracted from here.
2665         (tree_add_const_value_attribute): Call rtl_for_decl_init and
2666         add_const_value_attribute.  Delete initializer_constant_valid_p call.
2667
2668 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
2669
2670         * cgraphunit.c, dbxout.c, flow.c, gcse.c, gimplify.c,
2671         lambda-code.c, loop.c, machmode.def, mips-tfile.c,
2672         modulo-sched.c, passes.c, postreload-gcse.c, tree-eh.c,
2673         tree-ssa-ccp.c, varasm.c, config/frv/frv.c, config/frv/frv.h,
2674         config/frv/frv.md, config/i386/i386.c, config/i386/i386.h,
2675         config/i386/i386.md, config/rs6000/predicates.md,
2676         config/rs6000/rs6000.c, config/s390/fixdfdi.h,
2677         config/s390/s390.c, config/stormy16/stormy16.c,
2678         config/stormy16/stormy16.md, config/vax/vax.md: Fix comment
2679         typos.
2680
2681 2005-04-01  Joseph S. Myers  <joseph@codesourcery.com>
2682
2683         PR c/17855
2684         * gimplify.c (gimplify_expr): Create a temporary for lvalue
2685         COND_EXPR and CALL_EXPR.
2686
2687 2005-03-31  Vladimir Makarov  <vmakarov@redhat.com>
2688
2689         PR target/20632
2690         * genautomata.c (first_cycle_unit_presence): Check all alternative
2691         states for unit presence.
2692
2693         * doc/md.texi: Remove remark about impossibility to query unit
2694         presence in non nondeterministic automaton state.
2695         
2696         * config/ia64/ia64.c (get_template): Change order of unit querying.
2697
2698 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
2699
2700         * tree-ssa-dom.c (cprop_into_successor_phis): Remove an
2701         obsolete comment.
2702
2703 2005-03-31  Zdenek Dvorak  <dvorakz@suse.cz>
2704
2705         * cfgloopanal.c (mark_loop_exit_edges): Clean EDGE_LOOP_EXIT
2706         flag for edges outside any loops.
2707
2708 2005-03-31  Janis Johnson  <janis187@us.ibm.com>
2709
2710         * doc/sourcebuild.texi (Test Directives): Describe cleanup-* procs.
2711
2712 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
2713
2714         * tree-ssa-alias.c: Follow spelling conventions.
2715         * doc/tree-ssa.texi: Fix a typo.
2716
2717 2005-03-31  J"orn Rennecke <joern.rennecke@st.com>
2718
2719         * postreload-gcse.c: Include target.h.
2720         (gcse_after_reload_main): Return early if we cannot modify jumps.
2721         * Makefile.in (postreload-gcse.o): Depend on $(TARGET_H).
2722
2723 2005-03-31  David Edelsohn  <edelsohn@gnu.org>
2724
2725         * tree-ssa-loop-im.c (stmt_cost): Add RDIV_EXPR to list of
2726         expensive operations.
2727
2728 2005-03-31  Ian Lance Taylor  <ian@airs.com>
2729
2730         * collect2.c (lderrout): New variable.
2731         (collect_exit): Dump ldout to stdout.  Dump and unlink lderrout,
2732         if it is set, to stderr.
2733         (handler): Unlink lderrout if it is set.
2734         (dump_file): Add "to" parameter.  Change all callers.
2735         (main): Initialize lderrout.
2736         (collect_execute): Add errname parameter.  Change all callers.
2737         Rename redir parameter to outname.  Never pass
2738         PEX_STDERR_TO_STDOUT to pex_run.
2739         * collect2.h (collect_execute, dump_file): Update declarations.
2740         * tlink.c (tlink_execute): Add errname parameter.  Change all
2741         callers.
2742         (do_tlink): Check lderrout as well as ldout.
2743
2744 2005-03-31  Caroline Tice  <ctice@apple.com>
2745
2746         * Makefile.in (varasm.o): Add basic-block.h to list of requirements.
2747         (bb-reorder.o): Add errors.h to list of requirements.
2748         (STAGEFEEDBACK_FLAGS_TO_PASS): Add -freorder-blocks-and-partition to
2749         profiledbootstrap flags.
2750         * bb-reorder.c (errors.h): Add new include.
2751         (struct bbro_basic_block_data_def): Add new field, in_trace.
2752         (add_unlikely_executed_notes):  Remove function.
2753         (mark_bb_for_unlikely_executed_section): Remove function.
2754         (insert_section_boundary_note): New function.
2755         (verify_hot_cold_block_grouping): New function.
2756         (push_to_next_round_p): Remove variables and tests that push all
2757         cold blocks to last round.
2758         (find_traces): Remove code that added extra round of trace finding
2759         when doing partitioning.
2760         (find_traces_1_round) :  Remove variable last_round;  add code to 
2761         update new struct field, in_trace; correct trace_length where it was 
2762         incorrect before (after call to copy_bb); change code that pushed all 
2763         cold blocks to last round. Instead verify that all blocks going into 
2764         a trace belong in the same partition.
2765         (connect_traces): Modify to connect the traces in two passes, if the
2766         function contains both hot and cold blocks.  The first pass connects 
2767         all the traces for blocks in the partition that the first block in 
2768         the function belongs to; the second pass connnects all the traces 
2769         containing blocks that belong in the other partition.
2770         (find_rarely_executed_basic_blocks_and_crossing_edges):  Remove
2771         code that automatically put the first block in a function into the
2772         hot partition if the function had any hot blocks.
2773         (fix_crossing_unconditional_branches): Check number of succ edges 
2774         before attempting to get one.
2775         (fix_edges_for_rarely_executed_code):  Update comment describing
2776         function.
2777         (reorder_basic_blocks):  Add code to initialize new field (in_trace);
2778         remove call to add_unlikely_executed_notes; add call to 
2779         verify_hot_cold_block_grouping.
2780         (duplicate_computed_gotos): Don't change computed goto if it's a 
2781         crossing edge.
2782         (partition_hot_cold_basic_blocks):  Update function comment.
2783         * cfgcleanup.c (try_simplify_condjump): Remove redundacy from 
2784         condition.
2785         (try_forward_edges): Likewise.
2786         (merge_blocks_move_predecessor_nojumps): Likewise.
2787         (merge_blocks_move_successor_nojumps): Likewise.
2788         (merge_blocks_move): Likewise.
2789         (try_crossjump_bb): Likewise.
2790         * cfglayout.c (update_unlikely_executed_notes): Remove function.
2791         (fixup_reorder_chain): Remove code for adding UNLIKELY_EXECUTED_CODE
2792         notes to cold bb's; remove call to update_unlikely_executed_notes.
2793         (duplicate_insn_chain):  change NOTE_INSN_UNLIKELY_EXECUTED_CODE to
2794         NOTE_INSN_SWITCH_TEXT_SECTIONS.
2795         * cfglayout.h (scan_ahead_for_unlikely_executed_note): Remove
2796         function declaration.
2797         * cfgrtl.c (can_delete_note_p): Remove UNLIKELY_EXECUTED_CODE note
2798         from consideration.
2799         (rtl_can_merge_blocks): Remove redundancy from condition.
2800         (try_redirect_by_replacing_jump): Likewise.
2801         (force_nonfallthru_and_redirect): Remove code for adding
2802         UNLIKELY_EXECUTED_CODE notes to cold bb's.
2803         (commit_one_edge_insertion): Likewise.
2804         (cfg_layout_can_merge_blocks_p): Remove redundancy from condition.
2805         * dbxout.c (FORCE_TEXT): Replace function_section with 
2806         current_function_section.
2807         (struct dbx_debug_h): Add do_nothing function for new debug_hooks
2808         function, switch_text_section.
2809         (struct xcoff_debug): Likewise.
2810         (dbxout_function_end): Add code to put out label diffs for both
2811         hot and cold sections.
2812         * debug.c (struct do_nothing_debug_hooks): Add do_nothing function
2813         for new debug_hooks funciton, switch_text_section..
2814         * debug.h (struct gcc_debug_hooks):  Add new function to debug_hooks,
2815         switch_text_section.
2816         * dwarf2out.c (struct dw_fde_struct):  Add five new fields: 
2817         dw_fde_hot_section_label, dw_fde_hot_section_end_label, 
2818         dw_fde_unlikely_section_label, dw_fde_unlikely_section_end_label and 
2819         dw_fde_switched_sections.
2820         (output_call_frame_info):  Add test to see if function switches text
2821         sections in the middle; if so, use appropriate extra hot and cold 
2822         section labels to compute size deltas for the hot and cold sections.
2823         (dwarf2out_begin_prologue): Add code to initialize new fields in 
2824         dw_fde_struct.
2825         (dwarf2out_switch_text_section): New function (invoked through 
2826         debug_hook); updates new fields in dw_fde_struct appropriately and
2827         increments separate_line_info_table_in_use.
2828         (dwarf2_debug_hooks): Initialize switch_text_section function to be
2829         dwarf2out_switch_text_section.
2830         (struct var_loc_node): Add new field, section_label.
2831         (output_aranges): Add code to check whether in hot or cold section and
2832         use the appropriate label in calculating deltas.
2833         (output_ranges): Likewise.
2834         (output_line_info): Add code to check which section we're in and
2835         use appropriate hot/cold label.
2836         (add_location_or_constant_value_attribute): Likewise.
2837         (gen_subprogam_die): Modify arange attributes to use correct labels.
2838         (dwarf2out_begin_block): Change call to function_section into call to
2839         current_function_section.
2840         (dwarf2out_end_block): Likewise.
2841         (dwarf2out_source_line): Likewise.
2842         (dwarf2out_var_location): Add code to check whether in hot or cold 
2843         section and use the appropriate label.
2844         * except.c (output_function_exception_table): Change call to 
2845         function_section into call to current_function_section.
2846         * final.c (profile_function): Likewise.
2847         (scan_ahead_for_unlikely_executed_note): Remove function.
2848         (final_scan_insn):  Remove calls to 
2849         scan_ahead_for_unlikely_executed_note, and related code for switching 
2850         to cold section, except for the single time 
2851         NOTE_INSN_SWITCH_TEXT_SECTIONS may be encountered;  add calls to 
2852         debug_hooks->switch_text_sections; replace appropriate calls to 
2853         function_section with calls to current_function_section.
2854         * ifcvt.c (find_if_case_1): Remove redundancy from condition, add 
2855         test_bb to condition.
2856         (find_if_case_2): Likewise.
2857         * insn-notes.def: Change NOTE_INSN_UNLIKELY_EXECUTED_CODE to
2858         NOTE_INSN_SWITCH_TEXT_SECTIONS.  Update comment appropriately.
2859         * opts.c (decode_options): Change warning about hot/cold partitioning
2860         with exceptionss to inform (so as not to cause bootstrap failures);
2861         remove warning about partitioning with DWARF debug info.
2862         * output.h (current_function_section): Add new function decl.
2863         (insert_section_boundary_note): Likewise.
2864         (enum in_section): Move this declaration here from varasm.c.
2865         (unlikely_section_label): Likewise.
2866         (unlikely_text_section_name): Likewise.
2867         (last_text_section_name): New global variable.
2868         (last_text_section): Likewise.
2869         (hot_section_label): Likewise.
2870         (hot_section_end_label): Likewise.
2871         (cold_section_end_label): Likewise.
2872         * passes.c (rest_of_handle_final): Free unlikely_text_section_name.
2873         * print-rtl.c (print_rtx): Change NOTE_INSN_UNLIKELY_EXECUTED_CODE
2874         to NOTE_INSN_SWITCH_TEXT_SECTIONS.
2875         * reg-stack.c (emit_swap_insn): Remove UNLIKELY_EXECUTED_CODE note 
2876         insn from consideration.
2877         * sdbout.c (sdb_debug_hooks): Add do_nothing for new function, 
2878         switch_text_section.
2879         * varasm.c (basic-block.h): Add new include.
2880         (unlikely_section_label_printed): Remove global variable.
2881         (unlikely_section_label): Make global variable not be static any more.
2882         (unlikely_text_section_name): Likewise.
2883         (hot_section_end_label): New global variable (not static)
2884         (first_function_block_is_cold): Likewise.
2885         (hot_section_label): Likewise.
2886         (cold_section_end_label): Likewise..
2887         (last_text_section): New global variable, not static.
2888         (last_text_section_name): New global variable, not static.
2889         (initialize_cold_section_name): New function.
2890         (enum in_section): Move declaration to output.h.
2891         (text_section): Update last_text_section.
2892         (unlikely_text_section): Replace code to determine cold section name 
2893         with call to initialize_cold_section_name; Add code to update 
2894         last_text_section; remove code for printing out label.
2895         (named_section_real): Add code to update last_text_section and 
2896         last_text_section_name as appropriate.
2897         (function_section): Change test for 'unlikely' to depend on
2898         first_function_block_is_cold (moved old test to 
2899         current_function_section).
2900         (current_function_section): New function.
2901         (assemble_start_function): Move code that frees 
2902         unlikely_text_section_name; initialize hot_section_end_label; 
2903         print hot and cold section labels at the start of the function; 
2904         set first_function_block_is_cold, if appropriate; initialize l
2905         ast_text_section; add call to insert_section_boundary_note.
2906         (assemble_end_function):  Add code to write out hot and cold section
2907         end labels.
2908         *vmsdbgout.c (vmsdbg_debug_hooks): Add do_nothing for new function,
2909         switch_text_section.
2910         * config/darwin.c (machopic_select_section): Replace incorrect 
2911         function in base_funs; update reloc for cold sections if necessary.
2912         * config/darwin.h (SECTION_FUNCTION):  Add code to update 
2913         last_text_section if appropriate.
2914         (text_unlikely_section): Remove.
2915         * config/sparc/sparc.c (sparc_output_deferred_case_vectors): Likewise.
2916         * config/stormy16/stormy16.c (stormy_16_output_addr_vec): Likewise.
2917         * config/xtensa/xtensa.c (override_options): Turn off hot/cold
2918         partitioning for this architecture.
2919
2920 2005-03-31  Olivier Hainque  <hainque@adacore.com>
2921
2922         * dwarf2out.c (dwarf2out_frame_finish): Honor DWARF2_FRAME_INFO
2923         defined and non-zero.
2924
2925 2005-03-31  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2926
2927         PR c++/18644
2928         * doc/invoke.texi (-Wsynth): Don't document, as it now is void of
2929         semantics. 
2930
2931 2005-03-31  Alan Modra  <amodra@bigpond.net.au>
2932
2933         PR target/20611
2934         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Remove inline
2935         label operand.  Remove (use (unspec..)).  Don't emit a label on
2936         the offset word.
2937         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Don't
2938         generate inline label for load_toc_v4_PIC_1b.
2939         (rs6000_emit_load_toc_table): Likewise.
2940
2941 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
2942
2943         * config.gcc: Obsolete i860-*-sysv4*, ip2k-*-elf,
2944         ns32k-*-netbsdelf*, and ns32k-*-netbsd*.
2945
2946 2005-03-29  Devang Patel  <dpatel@apple.com>
2947
2948         * tree-sra.c (decide_block_copy): Disable scalarization of
2949         sub-elements.
2950         
2951 2005-03-30  Stuart Hastings  <stuart@apple.com>
2952             Dale Johannesen  <dalej@apple.com>
2953
2954         * Makefile.in (print-tree.o):  Depend on tree-iterator.h.
2955         * print-tree.c (print_node):  Add case STATEMENT_LIST.
2956
2957 2005-03-31  Alan Modra  <amodra@bigpond.net.au>
2958
2959         * config.gcc (cpu_is_64bit): Set for 64-bit powerpc cpus.
2960         (powerpc64-*-linux*): Use it.  Rearrange tm_file assignment.
2961         (powerpc-*-linux*): Build a biarch compiler when --enable-targets
2962         is given with "powerpc64*" or "all", or when --with-cpu chooses
2963         a 64-bit cpu.
2964
2965 2005-03-30  James E. Wilson  <wilson@specifixinc.com>
2966
2967         PR debug/20268
2968         * dwarf2out.c (add_high_low_attributes): New function, extracted from
2969         gen_lexical_block_die.
2970         (gen_lexical_block_die, gen_inlined_subroutine_die): Call it.
2971
2972 2005-03-31  Jan Hubicka  <jh@suse.cz>
2973
2974         2004-11-02  Jan Hubicka  <jh@suse.cz>
2975
2976         * cgraph.c (cgraph_varpool_node_name): New function.
2977         (dump_cgraph_varpool_node): New function.
2978         (dump_varpool): New function.
2979         * cgraphunit.c (cgraph_optimize): Dump varpool.
2980
2981         2004-10-16  Jan Hubicka  <jh@suse.cz>
2982
2983         * cgraph.c (decide_is_variable_needed): New function.
2984         (cgraph_varpool_finalize_decl): Use it.
2985         * cgraphunit.c (cgraph_optimize): Assemble_pending_decls when not doing
2986         unit-at-a-time.
2987         * final.c (output_addr_const): Do not call mark_referenced.
2988         * passes.c (rest_of_decl_compilation): ifdef out DECL_RTL_SET_P hack;
2989         always go via cgraph.
2990         * toplev.c (wrapup_global_declarations): Kill non-unit-at-a-time code.
2991         (check_global_declarations): Ifdef out code clearing DECL_RTL.
2992         * tree-optimize.c (execute_inline): Mark functions called.
2993         * i386.c (output_pic_addr_const): Do not call mark_decl_referenced.
2994
2995         2004-10-11  Jan Hubicka  <jh@suse.cz>
2996
2997         * cgraph.c (cgraph_varpool_first_unanalyzed_node): New global voriable
2998         (cgraph_varpool_last_needed_node): New static variable.
2999         (enqueue_needed_varpool_node): Break out from ...; add items to the
3000         end of queue; update first pointers.
3001         (cgraph_varpool_mark_needed_node): ... here.
3002         (cgraph_varpool_finalize_decl): Use enqueue_needed_varpool_node.
3003         (cgraph_varpool_assemble_pending_decls): Move to cgraphunit.c
3004         * cgraph.h (cgraph_varpool_node): Add analyzed field.
3005         (cgraph_varpool_first_unanalyzed_node): Declare.
3006         * cgraphunit.c: Include output.h.
3007         (cgraph_varpool_analyze_pending_decls): New function.
3008         (cgraph_varpool_assemble_pending_decls): Move from cgraph.c; bail out
3009         for errors, analyze pending decls.
3010         (cgraph_finalize_compilation_unit): Only analyze decls.
3011         (cgraph_optimize): Assemble the decls after expanding.
3012
3013 2005-03-30  Daniel Berlin  <dberlin@dberlin.org>
3014
3015         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Make sure
3016         subvars get marked properly in tags for grouping.
3017         (add_pointed_to_var): Mark only actual pointed to
3018         variables/subvars in addresses needed.
3019         (create_overlap_variables_for): Clear call clobbered on original
3020         variable.
3021         * tree-ssa-operands.c (get_asm_expr_operands): Don't let regular
3022         addresable vars with subvars into list.
3023         * tree-ssa.c (verify_ssa_name): Verify original is not used where
3024         subvar should be.
3025
3026 2005-03-30  Richard Henderson  <rth@redhat.com>
3027
3028         * cgraph.h (struct cgraph_node): Add alias.
3029         * varasm.c (assemble_alias): Set it.
3030         * cgraphunit.c (cgraph_assemble_pending_functions): Check it and
3031         avoid calling cgraph_expand_function.
3032
3033 2005-03-30  Tom Tromey  <tromey@redhat.com>
3034
3035         * tree.def (FILE_TYPE): Removed.
3036         * typeclass.h (enum type_class): Removed file_type_class.
3037         * dwarf2out.c (is_base_type): Updated.
3038         (gen_type_die): Likewise.
3039         * dbxout.c (dbxout_type): Updated.
3040         * builtins.c (type_to_class): Updated.
3041         * tree.c (type_contains_placeholder_1): Updated.
3042         * config/sparc/sparc.c (sparc_type_code): Updated.
3043         * config/ia64/ia64.c (hfa_element_mode): Updated.
3044         * expr.c (count_type_elements): Updated.
3045         * stor-layout.c (layout_type): Updated.
3046         * tree-inline.c (remap_type): Updated.
3047         * tree-pretty-print.c (dump_generic_node): Updated.
3048
3049 2005-03-30 Fariborz Jahanian <fjahanian@apple.com>
3050
3051         * builtins.c (expand_builtin_powi): Fix mode of
3052         2nd argument to match int.
3053         * libgcc2.h (__powisf2, __powidf2, __powixf2, __powitf2): Change
3054         2nd argument type to int.
3055         * libgcc2.c: Change prototype of __powi* functions to use
3056         int.
3057
3058 2005-03-30  Dale Johannesen  <dalej@apple.com>
3059
3060         PR middle-end/19225
3061         * calls.c (expand_call):  Flush pending deferrals before
3062         throwing call.
3063
3064 2005-03-30  Joseph S. Myers  <joseph@codesourcery.com>
3065
3066         PR c/772
3067         PR c/17913
3068         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR,
3069         C_DECL_UNDEFINABLE_STMT_EXPR, struct c_label_list, struct
3070         c_label_context, label_context_stack): New.
3071         * c-decl.c (define_label): Check for jumps into statement
3072         expressions.  Add label to list of defined labels.
3073         (start_function): Push context on label_context_stack.
3074         (finish_function): Pop context from label_context_stack.
3075         * c-typeck.c (label_context_stack): New.
3076         (c_finish_goto_label): Check for jumps into statement
3077         expressions.  Add label to list of jumped to labels.
3078         (struct c_switch): Add blocked_stmt_expr.
3079         (c_start_case): Initialize it.
3080         (do_case): Check it.
3081         (c_finish_case): Verify !blocked_stmt_expr.
3082         (c_begin_stmt_expr):  Push context on label_context_stack.
3083         Increment blocked_stmt_expr.  Mark labels jumped to from outside
3084         as undefinable.
3085         (c_finish_stmt_expr): December blocked_stmt_expr.  Mark labels
3086         defined in the statement expression and no longer jumpable to.
3087         Mark labels jumped to from just outside the statement expression
3088         as again definable.  Pop context from label_context_stack.
3089         * doc/extend.texi (Statement Exprs): Update.
3090
3091 2005-03-30  Joseph S. Myers  <joseph@codesourcery.com>
3092
3093         PR c/20368
3094         * c-decl.c (start_function): Check for old_decl being
3095         error_mark_node.
3096
3097 2005-03-30  Ian Lance Taylor  <ian@airs.com>
3098
3099         * final.c (final): Remove prescan parameter.  Change all callers.
3100         (final_scan_insn): Remove prescan parameter.  Change all callers.
3101
3102 2005-03-30  Kazu Hirata  <kazu@cs.umass.edu>
3103
3104         * tree-vectorizer.c: Fix comment typos.
3105
3106 2005-03-30  Sebastian Pop  <pop@cri.ensmp.fr>
3107
3108         * tree-scalar-evolution.c (instantiate_parameters_1): Return
3109         as soon as a chrec_dont_know is detected.
3110
3111 2005-03-31  Danny Smith  <dannysmith@users.sourceforge.net>
3112
3113         Merge from csl-arm-branch.
3114         2004-02-12  Mark Mitchell  <mark@codesourcery.com>
3115
3116         * tlink.c (recompile_files): Do not assume that "rename" can
3117         overwrite an existing file.
3118
3119 2005-03-31  Paolo Bonzini  <bonzini@gnu.org>
3120
3121         * gcc/configure.ac (TL_AC_GNU_MAKE_GCC_LIB_PATH): Remove.
3122         * gcc/configure: Regenerate.
3123
3124 2005-03-30  Alan Modra  <amodra@bigpond.net.au>
3125
3126         * doc/install.texi: Update binutils requirement for powerpc*-linux.
3127
3128         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Update comments.
3129
3130         * calls.c (struct arg_data): Update "partial" comment.
3131         (load_register_parameters): Update "nregs" comment.
3132
3133 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
3134
3135         * config/iq2000/iq2000.h (target_flags, MASK_GPOPT, MASK_EMBEDDED_DATA)
3136         (MASK_UNINIT_CONST_IN_RODATA, TARGET_EMBEDDED_DATA, TARGET_SWITCHES)
3137         (TARGET_DEFAULT, TARGET_CPU_DEFAULT, SUBTARGET_TARGET_OPTIONS)
3138         (TARGET_OPTIONS, iq2000_cpu_string, iq2000_arch_string): Delete.
3139         (TARGET_DEBUG_MODE, TARGET_DEBUG_A_MODE, TARGET_DEBUG_B_MODE)
3140         (TARGET_DEBUG_C_MODE, TARGET_DEBUG_D_MODE): Define to 0 rather
3141         than target_flags & 0.
3142         * config/iq2000/iq2000.c (iq2000_cpu_string, iq2000_arch_string)
3143         (iq2000_arch, iq2000_parse_cpu): Delete.
3144         (TARGET_HANDLE_OPTION): Override default.
3145         (iq2000_handle_option): New function.
3146         (override_options): Remove -march= and -mcpu= handling.
3147         * config/iq2000/iq2000.opt: New file.
3148
3149 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
3150
3151         * config/c4x/c4x-protos.h (c4x_rpts_cycles, c4x_cpu_version): Delete.
3152         * config/c4x/c4x.h (SMALL_MEMORY_FLAG, MPYI_FLAG, FAST_FIX_FLAG)
3153         (RPTS_FLAG, C3X_FLAG, TI_FLAG, PARANOID_FLAG, MEMPARM_FLAG, DEVEL_FLAG)
3154         (RPTB_FLAG, BK_FLAG, DB_FLAG, DEBUG_FLAG, HOIST_FLAG)
3155         (LOOP_UNSIGNED_FLAG, FORCE_FLAG, PRESERVE_FLOAT_FLAG)
3156         (PARALLEL_INSN_FLAG, PARALLEL_MPY_FLAG, ALIASES_FLAG, C30_FLAG)
3157         (C31_FLAG, C32_FLAG, C33_FLAG, C40_FLAG, C44_FLAG, TARGET_SWITCHES)
3158         (TARGET_DEFAULT, TARGET_SMALL, TARGET_MPYI, TARGET_FAST_FIX)
3159         (TARGET_RPTS, TARGET_TI, TARGET_PARANOID, TARGET_MEMPARM, TARGET_DEVEL)
3160         (TARGET_RPTB, TARGET_BK, TARGET_DB, TARGET_DEBUG, TARGET_HOIST)
3161         (TARGET_LOOP_UNSIGNED, TARGET_FORCE, TARGET_PRESERVE_FLOAT)
3162         (TARGET_PARALLEL, TARGET_PARALLEL_MPY, TARGET_ALIASES)
3163         (c4x_rpts_cycles_string, c4x_cpu_version_string)
3164         (TARGET_OPTIONS): Delete.
3165         (c4x_rpts_cycles, c4x_cpu_version): Declare.
3166         (TARGET_C3X, TARGET_C30, TARGET_C31, TARGET_C32, TARGET_C33)
3167         (TARGET_C40, TARGET_C44): Redefine in terms of c4x_cpu_version.
3168         * config/c4x/c4x.c (c4x_rpts_cycles_string): Delete.
3169         (c4x_cpu_version_string): Delete.
3170         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
3171         (c4x_handle_option): New function.  Map -m3x and -m4x options to the
3172         equivalent -mcpu= option.
3173         (c4x_override_options): Remove -mrpts= and -mcpu= handling from here.
3174         Deal with the extra conditions in the old TARGET_MPYI, TARGET_RPTB,
3175         TARGET_DB, TARGET_PARALLEL and TARGET_PARALLEL_MPY macros by setting
3176         or clearing the appropriate MASK_* bit.
3177         (c4x_file_start): Use c4x_cpu_version.
3178         * config/c4x/c4x.opt: New file.
3179
3180 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
3181
3182         * doc/options.texi: Document the new MaskExists flag.
3183         * opth-gen.awk: Don't output MASK and TARGET macros for Mask(...)
3184         if the option has the MaskExists flag.
3185
3186 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
3187
3188         * opt-functions.awk (flag_set_p, test_flag): New functions.
3189         (switch_flags): Use them.
3190         * opth-gen.awk: Use flag_set_p to check for flags.
3191         * optc-gen.awk: Likewise.  Use opt_args to check for Init(...) flags.
3192
3193 2005-03-30  Ian Lance Taylor  <ian@airs.com>
3194
3195         * config.host (i[34567]86-*-mingw32*): Don't set
3196         host_can_use_collect2 to no.
3197
3198 2005-03-30  Alan Modra  <amodra@bigpond.net.au>
3199
3200         PR target/20203
3201         * builtins.c (get_memory_rtx): Expand address exp using EXPAND_NORMAL.
3202         Remove convert_memory_address call duplicating that in memory_address.
3203
3204 2005-03-29  Richard Henderson  <rth@redhat.com>
3205
3206         PR c/20519
3207         * c-decl.c (c_finish_incomplete_decl): Update complete_array_type call.
3208         (build_compound_literal): Likewise.  Propagate decl type into the
3209         initializer.
3210         (finish_decl): Likewise.  Use new return value from complete_array_type
3211         for zero sized arrays.
3212         (complete_array_type): Move ...
3213         * c-common.c (complete_array_type): ... here.  Change first argument
3214         to pointer-to-type-node.  Consistently use sizetype for the index
3215         except for zero sized arrays.  Detect zero sized arrays for pedantic
3216         mode diagnostics.  Create a new type node instead of modifying the
3217         old node in place.
3218         * c-tree.h (complete_array_type): Move decl ...
3219         * c-common.h (complete_array_type): ... here.
3220
3221 2005-03-29  Richard Henderson  <rth@redhat.com>
3222
3223         PR tree-opt/19108
3224         * tree-sra.c (generate_element_init_1): Handle RANGE_EXPR.
3225
3226 2005-03-29  Kazu Hirata  <kazu@cs.umass.edu>
3227
3228         * builtin-types.def, c-convert.c, c-format.c, ddg.c, debug.c,
3229         debug.h, et-forest.c, et-forest.h, gcov.c, rtl-profile.c,
3230         rtlhooks-def.h, rtlhooks.c, sdbout.c, tree-inline.h,
3231         tree-profile.c, tsystem.h, value-prof.h: Update copyright.
3232
3233 2005-03-29  Eric Christopher  <echristo@redhat.com>
3234
3235         * config/mips/mips.c (mips_gimplify_va_arg_expr): Update for
3236         truthvalue conversion removal.
3237
3238 2005-03-29  Ian Lance Taylor  <ian@airs.com>
3239
3240         PR bootstrap/14316
3241         * collect2.c: Never include <vfork.h>.
3242         (VFORK_STRING, vfork): Don't define.
3243         (pid): Remove global variable.
3244         (handler): Call raise instead of kill (getpid(), ...).
3245         (collect_wait): Add pex parameter.  Change all callers.  Use
3246         pex_get_status rather than pwait.
3247         (do_wait): Add pex parameter.  Change all callers.
3248         (collect_execute): Return struct pex_obj * rather than void.  Use
3249         pex routines rather than pexecute.
3250         (fork_execute): Get pex_obj from collect_execute, and pass it to
3251         do_wait.
3252         (scan_prog_file): Use pex routines rather than pipe/vfork/exec.
3253         Only declare quit_handler if SIGQUIT is defined.
3254         (scan_libraries): Likewise.
3255         * collect2.h (collect_execute): Update declaration.
3256         (collect_wait): Update declaration.
3257         * tlink.c (tlink_execute): Get pex_obj from collect_execute, and
3258         pass it to collect_wait.
3259
3260 2005-03-29  Joseph S. Myers  <joseph@codesourcery.com>
3261
3262         PR c/20672
3263         * c-parser.c (c_parser_compound_statement_nostart): Give error
3264         message for EOF instead of just setting parser->error.
3265
3266 2005-03-29  Dorit Naishlos  <dorit@il.ibm.com>
3267
3268         * tree-vectorizer.c (slpeel_update_phi_nodes_for_guard): Removed.
3269         (slpeel_update_phi_nodes_for_guard1): New function.
3270         (slpeel_update_phi_nodes_for_guard2): New function.
3271         (slpeel_tree_peel_loop_to_edge): Call above new functions instead
3272         of slpeel_update_phi_nodes_for_guard.
3273         (vectorize_loops): Remove call to loop_closed_rewrite.
3274         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Remove
3275         assertion.
3276
3277 2005-03-29  Richard Sandiford  <rsandifo@redhat.com>
3278
3279         * config/m32r/little.h (TARGET_ENDIAN_DEFAULT): Delete.
3280         (TARGET_LITTLE_ENDIAN): New macro.
3281         * config/m32r/m32r.h (SUBTARGET_SWITCHES, target_flags)
3282         (TARGET_RELAX_MASK, TARGET_DEBUG_MASK, TARGET_DEBUG)
3283         (TARGET_ALIGN_LOOPS_MASK, TARGET_ALIGN_LOOPS)
3284         (TARGET_LOW_ISSUE_RATE_MASK, TARGET_LOW_ISSUE_RATE)
3285         (TARGET_BRANCH_COST_MASK, TARGET_BRANCH_COST, TARGET_M32RX_MASK)
3286         (TARGET_M32RX, TARGET_M32R2_MASK, TARGET_M32R2, LITTLE_ENDIAN_BIT)
3287         (TARGET_ENDIAN_DEFAULT, SUBTARGET_SWITCHES, TARGET_DEFAULT)
3288         (TARGET_SWITCHES, m32r_model_string, m32r_sdata_string)
3289         (m32r_cache_flush_trap_string, SUBTARGET_OPTIONS)
3290         (TARGET_OPTIONS): Delete.
3291         (M32R_MODEL_DEFAULT, M32R_SDATA_DEFAULT): Turn into enums.
3292         (CACHE_FLUSH_TRAP): Turn into an integer.
3293         (TARGET_LITTLE_ENDIAN): Define to 0 by default.
3294         (INITIALIZE_TRAMPOLINE): Check m32r_cache_trap >= 0 to see if
3295         -mflush-trap is in use.
3296         * config/m32r/m32r.c (m32r_model_string, m32r_sdata_string)
3297         (m32r_cache_flush_trap_string): Delete.
3298         (m32r_model) Initialize to M32R_MODEL_DEFAULT.
3299         (m32r_sdata): Likewise M32R_SDATA_DEFAULT.
3300         (m32r_cache_trap): Likewise CACHE_FLUSH_TRAP.
3301         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
3302         (m32r_handle_option): New function.  Move -mflush-trap=, -mflush-func=,
3303         -mmodel= and -msdata= handling from...
3304         (m32r_init): ...here.
3305         * config/m32r/m32r.opt: New file.
3306
3307 2005-03-29  Keith Besaw  <kbesaw@us.ibm.com>
3308
3309         * tree-ssanames.c (duplicate_ssa_name_ptr_info): New function.
3310         (duplicate_ssa_name): Call duplicate_ssa_name_ptr_info.
3311         * tree-vect-analyze.c (vect_object_analysis): additional parm
3312         pass back a "struct ptr_info_def *" with the points-to info.
3313         (vect_analyze_data_refs): set the STMT_VINFO_PTR_INFO for the
3314         statement using info returned from vect_object_analysis.
3315         * tree-vect-transform.c (update_vuses_to_preheader): New function.
3316         (vect_create_data_ref_ptr): Remove updates to vars_to_rename
3317         for virtual uses and defs when creating a replacement vector
3318         reference.  Call duplicate_ssa_name_ptr_info to define points-to
3319         info for vector pointer replacement using STMT_VINFO_PTR_INFO.
3320         (vectorizable_store): copy_virtual_operands and update
3321         definition statements.
3322         (vectorizable_load): copy_virtual_operands.  Remove call to
3323         mark_call_clobbered_vars_to_rename for call to "const" builtin.
3324         * tree-vectorizer.c (vectorize_loops): Remove calls to
3325         rewrite_into_ssa and bitmap_clear (vars_to_rename).
3326         (new_stmt_vec_info): initialize STMT_VINFO_PTR_INFO for stmt.
3327         * tree-vectorizer.h (_stmt_vec_info): add field ptr_info and
3328         define macro STMT_VINFO_PTR_INFO for use in accessing.
3329         * tree.h add export of duplicate_ssa_name_ptr_info.
3330         * rs6000.c (altivec_init_builtins): Declare builtin function
3331         __builtin_altivec_mask_for_load to be "const".
3332
3333 2005-03-29  Jakub Jelinek  <jakub@redhat.com>
3334
3335         PR middle-end/20622
3336         * cgraph.h (struct cgraph_varpool_node): Add alias field.
3337         * cgraph.c (cgraph_varpool_assemble_pending_decls): Don't call
3338         assemble_variable on aliases.
3339         * varasm.c (assemble_alias): Set node->alias.
3340         * toplev.c (wrapup_global_declarations): Don't call
3341         rest_of_decl_compilation on aliases again.
3342
3343 2005-03-29  Paul Brook  <paul@codesourcery.com>
3344
3345         * config/arm/arm-protos.h (arm_dbx_register_number): Add prototype.
3346         * config/arm/arm.c (arm_dbx_register_number): New function.
3347         * config/arm/arm.h (IS_FPA_REGNUM, DBX_REGISTER_NUMBER): Define.
3348
3349 2005-03-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
3350
3351         PR middle-end/20263
3352         * varasm.c (make_decl_rtl) [ASM_DECLARE_REGISTER_GLOBAL]: Use
3353         the DECL_NAME, not the DECL_ASSEMBLER_NAME.
3354
3355 2005-03-29  Dale Johannesen <dalej@apple.com>
3356
3357         * Makefile.in (value-prof.o): New dependencies on $(DIAGNOSTIC_H)
3358         $(TREE_H) and $(COVERAGE_H).
3359         * coverage.c (compute_checksum): Use DECL_NAME not DECL_ASSEMBLER_NAME.
3360         * opts.c (common_handle_option): Enable tree-based value transforms.
3361         * toplev.c (process_options): Ditto.
3362         * value-prof.h (struct histogram_value_t): Redefine. "Adjust" below
3363         refers to references to this type.
3364         * tree-flow.h: (struct stmt_ann_d): Add histograms field.
3365         * rtl-profile.c (rtl_gen_interval_profiler): Adjust. Remove checks
3366         for may_be_more, may_be_less.
3367         (rtl_gen_pow2_profiler): Adjust.
3368         (rtl_gen_one_value_profiler_no_edge_manip): Adjust.
3369         (rtl_gen_one_value_profiler): Adjust.
3370         (rtl_gen_const_delta_profiler): Adjust.
3371         * tree-profile.c (tree_gen_interval_profiler): Implement.
3372         (tree_gen_pow2_profiler): Ditto.
3373         (tree_gen_one_value_profiler): Ditto.
3374         (tree_profiling): New.
3375         (pass_tree_profile): Reference it.
3376         * value-prof.c: Include tree-flow.h, tree-flow-inline.h, diagnostic.h,
3377         tree.h, gcov-io.h.
3378         (insn_divmod_values_to_profile): Rename to
3379         rtl_divmod_values_to_profile. Adjust.
3380         (insn_values_to_profile): Rename to rtl_values_to_profile. Adjust.
3381         (insn_prefetch_values_to_profile): Adjust.
3382         (rtl_value_profile_transformations): Adjust.
3383         (gen_divmod_fixed_value): Rename to rtl_divmod_fixed_value.
3384         (gen_mod_pow2): Rename to rtl_mod_pow2.
3385         (gen_mod_subtract): Rename to rtl_mod_subtract.
3386         (divmod_fixed_value_transform): Rename to
3387         rtl_divmod_fixed_value_transform.
3388         (mod_pow2_value_transform): Rename to rtl_mod_pow2_value_transform.
3389         (mod_subtract_transform): Rename to rtl_mod_subtract_transform.
3390         (rtl_find_values_to_profile): Adjust.
3391         (tree_value_profile_transformations): Implement.
3392         (tree_divmod_values_to_profile): New.
3393         (tree_values_to_profile): New.
3394         (tree_divmod_fixed_value): New.
3395         (tree_mod_pow2): New.
3396         (tree_mod_subtract): New.
3397         (tree_divmod_fixed_value_transform): New.
3398         (tree_mod_pow2_value_transform): New.
3399         (tree_mod_subtract_transform): New.
3400         (tree_find_values_to_profile): Implement.
3401         * profile.c (instrument_values):  Free histograms.
3402         (compute_value_histograms): Adjust. Implement tree version.
3403
3404 2005-03-29  Uros Bizjak  <uros@kss-loka.si>
3405
3406         * reg-stack.c (subst_stack_regs_pat): Handle <UNSPEC_FIST> case.
3407         * config/i386/i386.c (output_fix_trunc): Add new round_mode
3408         variable.  Output "fldcw" depending on round_mode.
3409         * config/i386/i386.md (UNSPEC_FIST): New.
3410         (fistdi2, fistdi2_with_temp, fist<mode>2, fist<mode>2_with_temp):
3411         New isns patterns to implement lrint and llrint built-ins as x87
3412         intrinsic function.
3413         (fistdi2, fist<mode>2 splitters): New splitters.
3414         (lrint<mode>2): New expanders.
3415
3416 2005-03-28  Ian Lance Taylor  <ian@airs.com>
3417
3418         * config/arc/arc.c (arc_output_function_epilogue): Pass prescan as
3419         0 when calling final_scan_insn.
3420
3421 2005-03-28  Jan Hubicka  <jh@suse.cz>
3422
3423         PR middle-end/20635
3424         * varasm.c (mark_decl_referenced): Do not mark extern inline functions
3425         as needed.
3426
3427         * tree-inline.c (estimate_num_insns_1): Use declaration to discover argument
3428         types where possible.
3429
3430 2005-03-26  Per Bothner  <per@bothner.com>
3431
3432         Make -f[no-]show-column also control non-cpp diagnostics.
3433         * c.opt (fshow-column): Move option from here ...
3434         * common.opt (fshow-column): ... to here.
3435         * diagnostic.c (diagnostic_build_prefix): Only print column number
3436         if flag_show_column.
3437
3438 2005-03-27  Steven Bosscher  <stevenb@suse.de>
3439
3440         * vax-protos.h (vax_output_int_move, vax_output_int_add,
3441         vax_output_conditional_branch): New prototypes.
3442         * vax.c (vax_output_int_move, vax_output_int_add): New functions,
3443         extracted from vax.md mov and add patterns.
3444         (vax_output_conditional_branch): New function to output conditional
3445         branch instructions.
3446         * vax.md: Use mode macros for arithmetic and mov patterns.
3447         Use code macros for the jump patterns.
3448
3449 2005-03-26  Andrew Pinski  <pinskia@physics.uc.edu>
3450
3451         * Makefile.in (libbackend.o): Depend on version files;
3452         add custom generation command.
3453
3454 2005-03-26  Andrew Pinski  <pinskia@physics.uc.edu>
3455
3456         PR target/20636
3457         * config/rs6000/rs6000.md (extendsfdf2_fpr): Check to make
3458         sure that we have a REG before getting its REGNO.
3459
3460 2005-03-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3461
3462         * builtin-types.def (BT_FN_STRING_CONST_STRING_SIZE): New.
3463         * builtins.def (BUILT_IN_STRNDUP): New.
3464
3465 2005-03-25  Pat Haugen  <pthaugen@us.ibm.com>
3466
3467         PR tree-optimization/20470
3468         * fold-const.c (fold_cond_expr_with_comparison): Recognize/fold
3469         ABS(x-y).
3470
3471 2005-03-25  Mike Stump  <mrs@apple.com>
3472
3473         * config/darwin.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Don't allow 0
3474         sized objects.
3475
3476 2005-03-25  Geoffrey Keating  <geoffk@apple.com>
3477
3478         * config/rs6000/darwin-fallback.c: Don't include <ucontext.h>.
3479         Use our own structure definitions.
3480
3481         * config/rs6000/rs6000.md (UNSPEC constants): Add UNSPEC_STFIWX.
3482         (fix_truncdfsi2): Allow registers or memory as destination.
3483         When TARGET_PPC_GFXOPT, generate simplified pattern.
3484         (fix_truncdfsi2_internal): Use define_insn_and_split.
3485         (fix_truncdfsi2_internal_gfxopt): New.
3486         (fctiwz): Don't confuse register allocation by giving it no choices.
3487         (stfiwx): New.
3488         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'Z'.
3489         (EXTRA_MEMORY_CONSTRAINT): Likewise.
3490         * config/rs6000/rs6000.c (indexed_or_indirect_operand): New.
3491         * config/rs6000/rs6000-protos.h (indexed_or_indirect_operand): New.
3492
3493 2005-03-25  Kazu Hirata  <kazu@cs.umass.edu>
3494
3495         * dominance.c (free_dominance_info): Speed up by freeing et
3496         data structures without maintaining other nodes.
3497         * et-forest.c (et_free_tree_force): New.
3498         * et-forest.h: Add a prototype for et_free_tree_force.
3499
3500         * tree.c (get_set_constructor_bits,
3501         get_set_constructor_bytes): Remove.
3502         * tree.h: Remove the corresponding prototypes.
3503
3504 2005-03-25  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
3505
3506         PR target/15491
3507         * vax.c (vax_rtx_costs_1): Merge with vax_rtx_costs.
3508         (vax_rtx_costs): Return false when passed unsupported rtx's.  Handle
3509         FLOAT_EXTEND, FLOAT_TRUNCATE and TRUNCATE.  Fix costs for POST_INC,
3510         PRE_DEC, NEG and NOT.
3511
3512 2005-03-25  Kazu Hirata  <kazu@cs.umass.edu>
3513
3514         * fold-const.c: Convert uses of fold (build (...)) to
3515         fold_buildN.
3516
3517 2005-03-25  Zdenek Dvorak  <dvorakz@suse.cz>
3518
3519         PR rtl-optimization/20249
3520         * cse.c (insert_regs): Do not record equivalence of registers in
3521         different modes.
3522
3523 2005-03-24  Kazu Hirata  <kazu@cs.umass.edu>
3524
3525         * emit-rtl.c (reverse_comparison): Remove.
3526         * rtl.h: Remove the corresponding prototype.
3527
3528 2005-03-24  James E Wilson  <wilson@specifixinc.com>
3529
3530         * doc/install.texi (--enable-altivec): Delete docs.
3531
3532 2005-03-24  David Edelsohn  <edelsohn@gnu.org>
3533
3534         * config/rs6000/predicates.md (easy_fp_constant): Return 0 for
3535         SFmode and DFmode before reload when
3536         flag_unsafe_math_optimizations not enabled.
3537
3538 2005-03-24  Geoffrey Keating  <geoffk@apple.com>
3539
3540         * c.opt (fvisibility-inlines-hidden): Allow for ObjC++.
3541
3542         * config/i386/darwin.h (TARGET_SUBTARGET_DEFAULT): Add
3543         MASK_128BIT_LONG_DOUBLE, MASK_ALIGN_DOUBLE.
3544
3545 2005-03-24  Nathan Sidwell  <nathan@codesourcery.com>
3546
3547         * configure.ac (enable-checking): Add 'runtime' option.
3548         * doc/install.texi (enable-checking): Document 'runtime' checking.
3549         * tsystem.h (gcc_assert, gcc_unreachable): Define.
3550         * config.in: Regenerated.
3551         * configure: Regenerated.
3552
3553 2005-03-23  Uros Bizjak  <uros@kss-loka.si>
3554
3555         * optabs.h (enum optab_index): Remove OTI_llrint.
3556         (llrint_optab): Remove macro.
3557         * optabs.c (init_optabs): Remove llrint_optab initialization.
3558         * genopinit.c (optabs): Remove llrint_optab implementation.
3559         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LLRINT{,F,L}
3560         using lrint_optab.
3561
3562 2005-03-24  Alexandre Oliva  <aoliva@redhat.com>
3563
3564         PR rtl-optimization/20532
3565         * simplify-rtx.c (simplify_binary_operation_1): Protect from
3566         overflow when adding coefficients for PLUS or MINUS.
3567         (simplify_binary_operation_1): Handle CONST_DOUBLE exact power of
3568         two as multiplier.
3569
3570 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
3571
3572         * langhooks.h (truthvalue_conversion): Remove.
3573         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
3574         LANG_HOOKS_TRUTHVALUE_CONVERSION.
3575         * system.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Poison.
3576         * gimplify.c (gimple_boolify): Don't use truthvalue_conversion.
3577         * c-objc-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
3578
3579 2005-03-23  Kazu Hirata  <kazu@cs.umass.edu>
3580
3581         * params.def: Fix a typo.
3582         * config/mips/mips.c: Follow the spelling convensions.
3583         * doc/invoke.texi: Fix typos.
3584
3585 2005-03-18  Dale Johannese  <dalej@apple.com>
3586
3587         * cp/tree.c (cp_tree_equal):  Handle SSA_NAME.
3588
3589 2005-03-23  Daniel Berlin  <dberlin@dberlin.org>
3590
3591         Fix PR tree-optimization/20601
3592
3593         * tree-ssa-pre.c (insert_aux): Add missing condition to
3594         constification.
3595
3596 2005-03-23  Ian Lance Taylor  <ian@airs.com>
3597
3598         * final.c (final_scan_insn): Don't remove no-op instructions.
3599         * reload1.c (reload): Remove simple no-op instructions even when
3600         not optimizing.
3601
3602 2005-03-23  Dorit Naishlos  <dorit@il.ib.com>
3603
3604         PR tree-optimization/20501
3605         * tree-vect-analyze.c (vect_enhance_data_refs_alignment): Debug print
3606         reporting that peeling for alignment is applied moved to...
3607         * (vect_analyze_data_refs_alignment): Here.
3608
3609 2005-03-23  Ian Lance Taylor  <ian@airs.com>
3610
3611         * reorg.c (dbr_schedule): Remove #if 0 code to call final.
3612
3613 2005-03-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3614
3615         * config.gcc (alpha*-dec-osf[45]*): Remove target_cpu_default.
3616         Define TARGET_SUPPORT_ARCH except on Tru64 UNIX V4.0A.
3617
3618 2005-03-23  Hans-Peter Nilsson  <hp@axis.com>
3619
3620         * doc/tm.texi (TARGET_MD_ASM_CLOBBERS): Adjust wording to not
3621         imply that this is called once, independent of asms in code.
3622         Adjust to now being pased output and input lists.  Mention helper
3623         function decl_overlaps_hard_reg_set_p.
3624         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Rename from
3625         hook_tree_tree_identity and to take three trees, returning third.
3626         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Adjust the
3627         prototype.
3628         * stmt.c: include hard-reg-set.h before tree.h.
3629         (decl_overlaps_hard_reg_set_p): New function, broken out from...
3630         (decl_conflicts_with_clobbers_p): Call
3631         decl_overlaps_hard_reg_set_p.
3632         (expand_asm_operands): Pass output and input lists in call to
3633         targetm.md_asm_clobbers.
3634         * target-def.h (TARGET_MD_ASM_CLOBBERS): Define as
3635         hook_tree_tree_tree_tree_3rd_identity.
3636         * target.h (struct gcc_target.md_asm_clobbers): Take three tree
3637         parameters.
3638         * tree.h [HARD_CONST] (decl_overlaps_hard_reg_set_p): Prototype.
3639         * config/i386/i386.c (ix86_md_asm_clobbers): Adjust to three
3640         parameters, first two unused.
3641         * config/cris/cris.c (cris_md_asm_clobbers): Adjust to added
3642         parameters.  Only add MOF to clobbers if there's no 'h' mentioned
3643         in constraint letters and MOF is not mentioned as a asm-declared
3644         register in neither of the input and output lists.
3645
3646 2005-03-23  DJ Delorie  <dj@redhat.com>
3647
3648         * optabs.c (expand_binop): Make sure the first subword's result
3649         gets stored.
3650
3651 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
3652
3653         * c-common.c (c_common_truthvalue_conversion): Adjust comment.
3654         Call c_common_truthvalue_conversion rather than
3655         lang_hooks.truthvalue_conversion.
3656         * c-convert.c (convert): Call c_objc_common_truthvalue_conversion.
3657         * c-objc-common.c (c_objc_common_truthvalue_conversion): Move to
3658         c-typeck.c.
3659         * c-objc-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Change to
3660         c_common_truthvalue_conversion.
3661         * c-parser.c (c_parser_paren_condition, c_parser_for_statement,
3662         c_parser_conditional_expression, c_parser_binary_expression): Call
3663         c_objc_common_truthvalue_conversion.
3664         * c-typeck.c (build_unary_op): Call
3665         c_objc_common_truthvalue_conversion.
3666         (build_conditional_expr): Do not call
3667         lang_hooks.truthvalue_conversion.
3668         (build_binary_op): Call c_common_truthvalue_conversion.
3669         (c_objc_common_truthvalue_conversion): Moved from
3670         c-objc-common.c.  Call default_function_array_conversion instead
3671         of default_conversion.
3672
3673 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
3674
3675         * c-common.h (default_conversion): Remove.
3676         (perform_integral_promotions): Add.
3677         * c-tree.h (default_conversion): Add.
3678         * c-typeck.c (perform_integral_promotions): New, split out from
3679         default_conversion.
3680         * c-common.c (check_case_value): Use perform_integral_promotions,
3681         not default_conversion.
3682         (c_add_case_label): Don't continue processing case label after
3683         found to be pointer.
3684
3685 2005-03-23  Mark Mitchell  <mark@codesourcery.com>
3686
3687         * gcc.c (do_spec_1): Do not add a -L path for a directory in
3688         the prefix list if we have already added a multilib directory
3689         based on that path.
3690         (main): Do not add MD_EXEC_PREFIX to the list of directories to
3691         search with -L.
3692
3693 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
3694
3695         * reload1.c (indirect_symref_ok, reload_obstack): Make them
3696         static.
3697         * reload.h: Remove the prototype for indirect_symref_ok.
3698
3699         * reload1.c (indirect_symref_ok): Make it global.
3700         * reload.h: Add a prototype for indirect_symref_ok.
3701
3702 2005-03-22  Kaz Kojima  <kkojima@gcc.gnu.org>
3703
3704         * config/sh/sh.md (ashlhi3): Rename to *ashlhi3_n and add a new
3705         ashlhi3 expander.
3706
3707 2005-03-22  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
3708
3709         * tree.h (DECL_IGNORED_P, DECL_IN_SYSTEM_HEADER): Clarify comments.
3710
3711 2005-03-22  Daniel Berlin  <dberlin@dberlin.org>
3712
3713         * c-opts.c (c_common_parse_file): Only start/end main source file
3714         if debug hooks says the writer wants it.
3715         * dbxout.c (dbx_debug_hooks): Add start_end_main_source_file
3716         member.
3717         (xcoff_debug_hooks): Ditto.
3718         * debug.c (do_nothing_hooks): Ditto.
3719         * debug.h (gcc_debug_hooks): Ditto.
3720         * dwarf2out.c (dwarf2_debug_hooks): Ditto.
3721         * sdbout.c (sdb_debug_hooks): Ditto.
3722         * vmsdbgout.c (vmsdbg_debug_hooks): Ditto.
3723
3724 2005-03-22  Mark Mitchell  <mark@codesourcery.com>
3725
3726         * doc/extend.texi: Deprecate C++ min/max operators.
3727
3728 2005-03-22  Zdenek Dvorak  <dvorakz@suse.cz>
3729
3730         * tree-ssa-loop-ivopts.c (determine_iv_cost): Do not try to preserve
3731         artificial original candidates.
3732
3733 2005-03-22  Richard Guenther <rguenth@tat.physik.uni-tuebingen.de>
3734             Jan Hubicka  <jh@suse.cz>
3735             Steven Bosscher <stevenb@suse.de>
3736
3737         * cgraphunit.c (cgraph_estimate_size_after_inlining): Compute
3738         call cost based on argument sizes.
3739         (cgraph_mark_inline_edge): Avoid inline unit from shrinking by
3740         inlining.
3741         * params.def: (max-inline-inssn-single): Set to 450.
3742         (max-inline-insns-auto): Set to 90.
3743         (max-inline-insns-recursive): Set to 450
3744         (max-inline-insns-recursive-auto): Set to 450.
3745         (large-function-insns): Set to 2700.
3746         (inline-call-cost): New parameter.
3747         * tree-inline.c (estimate_move_cost): New function.
3748         (estimate_num_insns_1): Compute move sizes costs by estimate_move_cost
3749         for non-gimple-regs, set cost to 0 for gimple-regs.  Compute call size
3750         based on arguments.
3751         * tree-inline.h (estimate_move_cost): Declare.
3752         * invoke.texi: (max-inline-inssn-single): Change default to 450.
3753         (max-inline-insns-auto): Change default to 90.
3754         (max-inline-insns-recursive): Change default to 450
3755         (max-inline-insns-recursive-auto): Change default to 450.
3756         (large-function-insns): Change default to 2700.
3757         (inline-call-cost): Document new parameter.
3758
3759 2005-03-22  Richard Sandiford  <rsandifo@redhat.com>
3760
3761         * config/i860/i860.h (target_flags, TARGET_XP, TARGET_SWITCHES)
3762         (TARGET_DEFAULT): Delete.
3763         * config/i860/i860.opt: New file.
3764
3765 2005-03-22  Richard Sandiford  <rsandifo@redhat.com>
3766
3767         * config/frv/frv-protos.h (frv_branch_cost_string, frv_branch_cost_int)
3768         (frv_cpu_string, frv_condexec_insns_str, frv_condexec_insns)
3769         (frv_condexec_temps_str, frv_condexec_temps, frv_sched_lookahead_str)
3770         (frv_sched_lookahead): Delete.
3771         * config/frv/frv.h (MASK_DEFAULT_ALLOC_CC): Move to frv.c.
3772         (target_flags, MASK_GPR_32, MASK_FPR_32, MASK_SOFT_FLOAT)
3773         (MASK_ALLOC_CC, MASK_DWORD, MASK_DOUBLE, MASK_MEDIA, MASK_MULADD)
3774         (MASK_LIBPIC, MASK_ACC_4,  MASK_PACK, MASK_LONG_CALLS)
3775         (MASK_ALIGN_LABELS, MASK_LINKED_FP, MASK_BIG_TLS, MASK_DEBUG_ARG)
3776         (MASK_DEBUG_ADDR, MASK_DEBUG_STACK, MASK_DEBUG, MASK_DEBUG_LOC)
3777         (MASK_DEBUG_COND_EXEC, MASK_NO_COND_MOVE, MASK_NO_SCC)
3778         (MASK_NO_COND_EXEC, MASK_NO_VLIW_BRANCH, MASK_NO_MULTI_CE)
3779         (MASK_FDPIC, MASK_INLINE_PLT, MASK_GPREL_RO, MASK_DEFAULT)
3780         (TARGET_GPR_32, TARGET_FPR_32, TARGET_SOFT_FLOAT, TARGET_ALLOC_CC)
3781         (TARGET_DWORD, TARGET_DOUBLE, TARGET_MEDIA, TARGET_MULADD)
3782         (TARGET_LIBPIC, TARGET_ACC_4, TARGET_DEBUG_ARG, TARGET_DEBUG_ADDR)
3783         (TARGET_DEBUG_STACK, TARGET_DEBUG, TARGET_DEBUG_LOC)
3784         (TARGET_DEBUG_COND_EXEC, TARGET_NO_COND_MOVE, TARGET_NO_SCC)
3785         (TARGET_NO_COND_EXEC, TARGET_NO_VLIW_BRANCH, TARGET_NO_MULTI_CE)
3786         (TARGET_NO_NESTED_CE, TARGET_FDPIC, TARGET_INLINE_PLT, TARGET_BIG_TLS)
3787         (TARGET_GPREL_RO, TARGET_PACK, TARGET_LONG_CALLS, TARGET_ALIGN_LABELS)
3788         (TARGET_LINKED_FP, TARGET_GPR_64, TARGET_FPR_64, TARGET_HARD_FLOAT)
3789         (TARGET_FIXED_CC, TARGET_COND_MOVE, TARGET_SCC, TARGET_COND_EXEC)
3790         (TARGET_VLIW_BRANCH, TARGET_MULTI_CE, TARGET_NESTED_CE, TARGET_ACC_8)
3791         (TARGET_SWITCHES, TARGET_OPTIONS, DEFAULT_CONDEXEC_TEMPS)
3792         (DEFAULT_BRANCH_COST, DEFAULT_CONDEXEC_INSNS): Delete.
3793         * config/frv/frv.c (frv_branch_cost_string, frv_branch_cost_int)
3794         (frv_cpu_string, frv_condexec_insns_str, frv_condexec_insns)
3795         (frv_condexec_temps_str, frv_condexec_temps, frv_sched_lookahead_str)
3796         (frv_sched_lookahead): Delete.
3797         (MASK_DEFAULT_ALLOC_CC): Moved from frv.h.
3798         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
3799         (frv_handle_option): New function.  Move -mcpu= handling from...
3800         (frv_override_options): ...here.  Remove handling of other
3801         TARGET_OPTIONS.
3802         (frv_ifcvt_modify_tests): Check !TARGET_COND_EXEC instead of
3803         TARGET_NO_COND_EXEC and !TARGET_NESTED_CE to TARGET_NO_NESTED_CE.
3804         (frv_ifcvt_modify_multiple_tests): Likewise !TARGET_MULTI_CE
3805         and TARGET_NO_MULTI_CE.
3806         (frv_for_each_packet): Likewise TARGET_NO_VLIW_BRANCH and
3807         !TARGET_VLIW_BRANCH.
3808         * config/frv/frv.opt: New file.
3809
3810 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
3811
3812         * fold-const.c (fold_ternary): Take decomposed arguments of
3813         CALL_EXPR.
3814         (fold): Update a call to fold_ternary.
3815
3816         * fold-const.c (fold_build1, fold_build2, fold_build3): New.
3817         * tree.h: Add corresponding prototypes.
3818
3819 2005-03-22  Jakub Jelinek  <jakub@redhat.com>
3820
3821         PR target/20561
3822         * cfglayout.c (reemit_insn_block_notes): Don't put block notes in
3823         between jump table and its label.
3824         * final.c (shorten_branches): Handle notes in between ADDR_VEC
3825         resp. ADDR_DIFF_VEC and the label preceeding it.
3826         (final_scan_insn): Likewise.  Ensure ADDR_VEC resp. ADDR_DIFF_VEC
3827         is emitted in the right section.
3828
3829 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
3830
3831         * fold-const.c (fold_unary, fold_binary): Update comments
3832         about arguments.
3833
3834 2005-03-22  Hans-Peter Nilsson  <hp@axis.com>
3835
3836         PR rtl-optimization/20527
3837         * combine.c (can_combine_p) [AUTO_INC_DEC]: When INSN has an
3838         REG_INC note, test that the register also isn't mentioned in PRED
3839         or SUCC.
3840
3841 2005-03-22  Ben Elliston  <bje@au.ibm.com>
3842
3843         * dwarf2out.c (dwarf_type_encoding_name): Remove unused prototype
3844         and definition.
3845
3846 2005-03-21  Mike Stump  <mrs@apple.com>
3847
3848         * varasm.c (default_assemble_visibility): Remove extra ().
3849
3850 2005-03-21  Roger Sayle  <roger@eyesopen.com>
3851
3852         PR middle-end/20557
3853         * bb-reorder.c (duplicate_computed_gotos): Use can_duplicate_block_p
3854         to determine whether a block can be duplicated, rather than test
3855         whether the block contains noncopyable insns ourselves.
3856
3857 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
3858
3859         * config/i860/i860.h (PREDICATE_CODES): Remove nonexistent
3860         predicates.
3861
3862 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
3863
3864         * config/ip2k/ip2k.h (target_flags, TARGET_SWITCHES): Delete.
3865
3866 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
3867
3868         * config/fr30/fr30.h (TARGET_SMALL_MODEL_MASK, TARGET_SMALL_MODEL)
3869         (TARGET_DEFAULT, target_flags, TARGET_SWITCHES): Delete.
3870         * config/fr30/fr30.opt: New file.
3871
3872 2005-03-18  Daniel Berlin  <dberlin@dberlin.org>
3873
3874         Fix PR tree-optimization/20542
3875
3876         * tree-flow-inline.h (overlap_subvar): Move to here.
3877         * tree-ssa-operands.c: From here.
3878         * tree-flow.h (overlap_subvar): Declare.
3879         * tree-ssa-alias.c (add_pointed_to_var): Use overlap_subvar here.
3880         * tree-ssa-loop-im.c (is_call_clobbered_ref): Return proper answer
3881         for variables with subvars.
3882
3883 2005-03-21 Mostafa Hagog <mustafa@il.ibm.com>
3884
3885         PR middle-end/20177
3886         * ddg.c (create_ddg_dependence): Ignore reg-anti dependency.
3887         * modulo-sched.c (const_iteration_count): Return on NULL
3888         pre-header.
3889         (print_node_sched_params): Return on NULL dump_file.
3890         (generate_reg_moves): Handle reg-anti dependencies and disregard
3891         closing branch when generating register moves.
3892         (sms_schedule): Mark the SMSed block dirty.
3893         * passes.c (rest_of_handle_sms): Call update_life_info for all
3894         basic-blocks.
3895         * testsuite/gcc.dg/20050321-1.c: New test.
3896
3897 2005-03-21  Bob Wilson  <bob.wilson@acm.org>
3898
3899         * config/xtensa/lib1funcs.asm (__mulsi3): Use symbolic name for ACCLO.
3900         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
3901         movqi_internal): Likewise.
3902
3903 2005-03-21  Bob Wilson  <bob.wilson@acm.org>
3904
3905         * config/xtensa/xtensa-protos.h: (xtensa_simm7, xtensa_uimm8,
3906         xtensa_uimm8x2, xtensa_uimm8x4, xtensa_ai4const, xtensa_lsi4x4,
3907         xtensa_b4const): Delete prototypes.
3908         (xtensa_simm8, xtensa_simm8x256, xtensa_simm12b, xtensa_b4constu,
3909         xtensa_mask_immediate, xtensa_mem_offset): Update prototypes.
3910         (xtensa_b4const_or_zero, xtensa_const_ok_for_letter_p,
3911         xtensa_extra_constraint): New prototypes.
3912         (add_operand, arith_operand, nonimmed_operand, mem_operand,
3913         mask_operand, extui_fldsz_operand, sext_operand, sext_fldsz_operand,
3914         lsbitnum_operand, branch_operand, ubranch_operand, call_insn_operand,
3915         move_operand, const_float_1_operand, fpmem_offset_operand,
3916         branch_operator, ubranch_operator, boolean_operator): Delete prototypes.
3917         * config/xtensa/xtensa.c (b4const_or_zero): Rename to ...
3918         (xtensa_b4const_or_zero): ...this.  Change return type to bool and
3919         argument type to HOST_WIDE_INT.
3920         (xtensa_simm8, xtensa_simm8x256, xtensa_simm12b,
3921         xtensa_mask_immediate): Likewise.
3922         (xtensa_uimm8, xtensa_uimm8x2, xtensa_uimm8x4, xtensa_b4const):
3923         Likewise.  Also make these functions static.
3924         (xtensa_simm7, xtensa_ai4const, xtensa_lsi4x4): Delete.
3925         (xtensa_const_ok_for_letter_p): New.
3926         (add_operand, arith_operand, nonimmed_operand, mem_operand,
3927         mask_operand, extui_fldsz_operand, sext_operand, sext_fldsz_operand,
3928