OSDN Git Service

* gcc/config/vax/vax.md: Spellcheck, fix whitespace.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2005-04-01  Jan-Benedict Glaw  <jbglaw@lug-owl.de>
2
3         * gcc/config/vax/vax.md: Spellcheck, fix whitespace.
4
5 2005-04-01  Ian Lance Taylor  <ian@airs.com>
6
7         * gcc.c: Don't include <sys/resource.h> or declare getrusage.
8         (rus, prus): Remove static variables.
9         (execute): Use pex_run/pex_get_status rather than pexecute/pwait.
10         (process_command): Permit report_times and use_pipes together.
11
12 2005-04-01  Joseph S. Myers  <joseph@codesourcery.com>
13
14         * c-decl.c (validate_proto_after_old_defn): Look at
15         TYPE_MAIN_VARIANT of argument types.
16
17 2005-04-01  Paul Brook  <paul@codesourcery.com>
18
19         * config/arm/arm.c (thumb_call_via_label): Include space for SP.
20         (arm_output_function_epilogue): Allow call_via_SP.
21         (thumb_call_via_reg, arm_file_end): Ditto.
22         * config/arm/arm.h (struct machine_function): Include space for SP.
23         (thumb_call_via_label): Update declaration.
24
25 2005-04-01  Ian Lance Taylor  <ian@airs.com>
26
27         * final.c (final_scan_insn): Revert part of 2005-03-30 patch: when
28         doing a peephole optimization, once again put any notes in the
29         proper position.
30
31 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
32
33         * bb-reorder.c, fold-const.c, varasm.c: Fix comment typos.
34
35 2005-04-01  Nathan Sidwell  <nathan@codesourcery.com>
36
37         * local-alloc.c (update_equiv_regs): Use gcc_assert, gcc_unreachable.
38         (block_alloc, find_free_reg): Likewise.
39         * loop-doloop.c (doloop_modify): Likewise.
40         * loop-invariant.c (record_use): Likewise.
41         * loop-iv.c (get_biv_step_1, get_biv_step, iv_analyze,
42         get_iv_value, canon_condition, eliminate_implied_condition,
43         eliminate_implied_condition, simplify_using_initial_values,
44         shorten_into_mode, canonicalize_iv_subregs,
45         iv_number_of_iterations): Likewise.
46         * loop-unroll.c (expand_var_during_unrolling): Likewise.
47         * loop-unswitch.c (compare_and_jump_seq, unswitch_single_loop,
48         unswitch_loop): Likewise.
49         * loop.c (INSN_LUID, loop_optimize, rtx_equal_for_loop_p,
50         move_movables, replace_call_address, find_and_verify_loops,
51         rtx_equal_for_prefetch_p, fold_rtx_mult_add, loop_iterations,
52         record_giv, final_giv_value, general_induction_var,
53         simplify_giv_expr, extension_within_bounds_p, try_copy_prop,
54         loop_giv_dump): Likewise.
55
56         * gcov-io.h (GCOV_CHECK, GCOV_CHECK_READING,
57         GCOV_CHECK_WRITING): Remove.
58         (gcov_position, gcov_rewrite): Use gcc_assert.
59         * gcov-io.c (gcov_open, gcov_write_words, gcov_write_length,
60         gcov_read_words, gcov_sync, gcov_seek): Use gcc_assert.
61         * libgcov.c (__gcov_merge_single, __gcov_merge_delta): Use
62         gcc_assert.
63
64 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
65
66         * tree-inline.c: Fix a typo.
67
68 2005-04-01  Nathan Sidwell  <nathan@codesourcery.com>
69
70         * configure.ac (enable-checking): Explicitly set all variables for
71         collective switch values.  Alphabetize variables. Rename
72         ac_checking_valgrind to ac_valgrind_checking.  Allow 'none' as
73         synonym for 'no'.
74         * doc/install.texi (enable-checking): Update documentation.
75         * configure: Rebuilt.
76
77 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
78
79         * tree-inline.c (copy_body_r): Use CONSTANT_CLASS_P where
80         possible.
81
82 2005-04-01  Richard Earnshaw  <richard.earnshaw@arm.com>
83
84         * arm.c (adjacent_mem_locations): Reject volatile memory refs.
85         Also reject cases where this pattern will cause load delay stalls
86         unless optimizing for size and it will produce a shorter sequence.
87         * arm.md (arith_adjacent_mem): Make better use of ldm addressing
88         variants to avoid pre-adjusting the base when possible.
89
90 2005-04-01  Richard Earnshaw  <richard.earnshaw@arm.com>
91
92         * arm.md (minmax_arithsi): Reject all eliminable registers, not just
93         the frame and argument pointers.
94         (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec): Likewise.
95         (loadqisi_preinc, loadqisi_predec, strsi_preinc): Likewise.
96         (strsi_predec, loadsi_preinc, loadsi_predec): Likewise.
97         (strqi_shiftpreinc, strqi_shiftpredec, loadqi_shiftpreinc): Likewise.
98         (loadqi_shiftpredec, strsi_shiftpreinc, strsi_shiftpredec): Likewise.
99         (loadsi_shiftpreinc, loadsi_shiftpredec): Likewise.
100
101 2005-04-01  Danny Smith  <dannysmith@users.sourceforge.net>
102
103         * config/i386/cygming.h (SUBTARGET_ATTRIBUTE_TABLE): Define,
104         with entry for selectany attribute.
105         * config/i386/i386-protos.h (ix86_handle_selectany_attribute):
106         Declare.
107         * config/i386/winnt.c (ix86_handle_selectany_attribute): Define.
108         (i386_pe_asm_named_section): Handle sections generated by
109         selectany attribute.
110         * doc/extend.texi (selectany): Document attribute.
111
112 2005-04-01  Paolo Bonzini  <bonzini@gnu.org>
113             Jan Hubicka  <jh@suse.cz>
114
115         * config/i386/i386.c (ix86_decompose_address): Look inside SUBREGs
116         to fix addresses involving EBP and ESP.
117         (aligned_operand, legitimate_address_p, ix86_address_cost): Be prepared
118         for SUBREGed registers.
119         (legitimate_address_p): Accept SUBREGed registers.
120
121 2005-04-01  Jakub Jelinek  <jakub@redhat.com>
122
123         PR c++/19406
124         * dwarf2out.c (gen_type_die_for_member): Handle FIELD_DECL.
125         (dwarf2out_imported_module_or_decl): Use gen_type_die_for_member
126         for FIELD_DECLs.
127
128 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
129
130         * doc/contrib.texi, doc/invoke.texi, doc/tm.texi: Fix typos.
131
132 2005-04-01  James E Wilson  <wilson@specifixinc.com>
133
134         PR c++/20505
135         * dwarf2out.c (rtl_for_decl_init): New function.
136         (rtl_for_decl_location): Extracted from here.
137         (tree_add_const_value_attribute): Call rtl_for_decl_init and
138         add_const_value_attribute.  Delete initializer_constant_valid_p call.
139
140 2005-04-01  Kazu Hirata  <kazu@cs.umass.edu>
141
142         * cgraphunit.c, dbxout.c, flow.c, gcse.c, gimplify.c,
143         lambda-code.c, loop.c, machmode.def, mips-tfile.c,
144         modulo-sched.c, passes.c, postreload-gcse.c, tree-eh.c,
145         tree-ssa-ccp.c, varasm.c, config/frv/frv.c, config/frv/frv.h,
146         config/frv/frv.md, config/i386/i386.c, config/i386/i386.h,
147         config/i386/i386.md, config/rs6000/predicates.md,
148         config/rs6000/rs6000.c, config/s390/fixdfdi.h,
149         config/s390/s390.c, config/stormy16/stormy16.c,
150         config/stormy16/stormy16.md, config/vax/vax.md: Fix comment
151         typos.
152
153 2005-04-01  Joseph S. Myers  <joseph@codesourcery.com>
154
155         PR c/17855
156         * gimplify.c (gimplify_expr): Create a temporary for lvalue
157         COND_EXPR and CALL_EXPR.
158
159 2005-03-31  Vladimir Makarov  <vmakarov@redhat.com>
160
161         PR target/20632
162         * genautomata.c (first_cycle_unit_presence): Check all alternative
163         states for unit presence.
164
165         * doc/md.texi: Remove remark about impossibility to query unit
166         presence in non nondeterministic automaton state.
167         
168         * config/ia64/ia64.c (get_template): Change order of unit querying.
169
170 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
171
172         * tree-ssa-dom.c (cprop_into_successor_phis): Remove an
173         obsolete comment.
174
175 2005-03-31  Zdenek Dvorak  <dvorakz@suse.cz>
176
177         * cfgloopanal.c (mark_loop_exit_edges): Clean EDGE_LOOP_EXIT
178         flag for edges outside any loops.
179
180 2005-03-31  Janis Johnson  <janis187@us.ibm.com>
181
182         * doc/sourcebuild.texi (Test Directives): Describe cleanup-* procs.
183
184 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
185
186         * tree-ssa-alias.c: Follow spelling conventions.
187         * doc/tree-ssa.texi: Fix a typo.
188
189 2005-03-31  J"orn Rennecke <joern.rennecke@st.com>
190
191         * postreload-gcse.c: Include target.h.
192         (gcse_after_reload_main): Return early if we cannot modify jumps.
193         * Makefile.in (postreload-gcse.o): Depend on $(TARGET_H).
194
195 2005-03-31  David Edelsohn  <edelsohn@gnu.org>
196
197         * tree-ssa-loop-im.c (stmt_cost): Add RDIV_EXPR to list of
198         expensive operations.
199
200 2005-03-31  Ian Lance Taylor  <ian@airs.com>
201
202         * collect2.c (lderrout): New variable.
203         (collect_exit): Dump ldout to stdout.  Dump and unlink lderrout,
204         if it is set, to stderr.
205         (handler): Unlink lderrout if it is set.
206         (dump_file): Add "to" parameter.  Change all callers.
207         (main): Initialize lderrout.
208         (collect_execute): Add errname parameter.  Change all callers.
209         Rename redir parameter to outname.  Never pass
210         PEX_STDERR_TO_STDOUT to pex_run.
211         * collect2.h (collect_execute, dump_file): Update declarations.
212         * tlink.c (tlink_execute): Add errname parameter.  Change all
213         callers.
214         (do_tlink): Check lderrout as well as ldout.
215
216 2005-03-31  Caroline Tice  <ctice@apple.com>
217
218         * Makefile.in (varasm.o): Add basic-block.h to list of requirements.
219         (bb-reorder.o): Add errors.h to list of requirements.
220         (STAGEFEEDBACK_FLAGS_TO_PASS): Add -freorder-blocks-and-partition to
221         profiledbootstrap flags.
222         * bb-reorder.c (errors.h): Add new include.
223         (struct bbro_basic_block_data_def): Add new field, in_trace.
224         (add_unlikely_executed_notes):  Remove function.
225         (mark_bb_for_unlikely_executed_section): Remove function.
226         (insert_section_boundary_note): New function.
227         (verify_hot_cold_block_grouping): New function.
228         (push_to_next_round_p): Remove variables and tests that push all
229         cold blocks to last round.
230         (find_traces): Remove code that added extra round of trace finding
231         when doing partitioning.
232         (find_traces_1_round) :  Remove variable last_round;  add code to 
233         update new struct field, in_trace; correct trace_length where it was 
234         incorrect before (after call to copy_bb); change code that pushed all 
235         cold blocks to last round. Instead verify that all blocks going into 
236         a trace belong in the same partition.
237         (connect_traces): Modify to connect the traces in two passes, if the
238         function contains both hot and cold blocks.  The first pass connects 
239         all the traces for blocks in the partition that the first block in 
240         the function belongs to; the second pass connnects all the traces 
241         containing blocks that belong in the other partition.
242         (find_rarely_executed_basic_blocks_and_crossing_edges):  Remove
243         code that automatically put the first block in a function into the
244         hot partition if the function had any hot blocks.
245         (fix_crossing_unconditional_branches): Check number of succ edges 
246         before attempting to get one.
247         (fix_edges_for_rarely_executed_code):  Update comment describing
248         function.
249         (reorder_basic_blocks):  Add code to initialize new field (in_trace);
250         remove call to add_unlikely_executed_notes; add call to 
251         verify_hot_cold_block_grouping.
252         (duplicate_computed_gotos): Don't change computed goto if it's a 
253         crossing edge.
254         (partition_hot_cold_basic_blocks):  Update function comment.
255         * cfgcleanup.c (try_simplify_condjump): Remove redundacy from 
256         condition.
257         (try_forward_edges): Likewise.
258         (merge_blocks_move_predecessor_nojumps): Likewise.
259         (merge_blocks_move_successor_nojumps): Likewise.
260         (merge_blocks_move): Likewise.
261         (try_crossjump_bb): Likewise.
262         * cfglayout.c (update_unlikely_executed_notes): Remove function.
263         (fixup_reorder_chain): Remove code for adding UNLIKELY_EXECUTED_CODE
264         notes to cold bb's; remove call to update_unlikely_executed_notes.
265         (duplicate_insn_chain):  change NOTE_INSN_UNLIKELY_EXECUTED_CODE to
266         NOTE_INSN_SWITCH_TEXT_SECTIONS.
267         * cfglayout.h (scan_ahead_for_unlikely_executed_note): Remove
268         function declaration.
269         * cfgrtl.c (can_delete_note_p): Remove UNLIKELY_EXECUTED_CODE note
270         from consideration.
271         (rtl_can_merge_blocks): Remove redundancy from condition.
272         (try_redirect_by_replacing_jump): Likewise.
273         (force_nonfallthru_and_redirect): Remove code for adding
274         UNLIKELY_EXECUTED_CODE notes to cold bb's.
275         (commit_one_edge_insertion): Likewise.
276         (cfg_layout_can_merge_blocks_p): Remove redundancy from condition.
277         * dbxout.c (FORCE_TEXT): Replace function_section with 
278         current_function_section.
279         (struct dbx_debug_h): Add do_nothing function for new debug_hooks
280         function, switch_text_section.
281         (struct xcoff_debug): Likewise.
282         (dbxout_function_end): Add code to put out label diffs for both
283         hot and cold sections.
284         * debug.c (struct do_nothing_debug_hooks): Add do_nothing function
285         for new debug_hooks funciton, switch_text_section..
286         * debug.h (struct gcc_debug_hooks):  Add new function to debug_hooks,
287         switch_text_section.
288         * dwarf2out.c (struct dw_fde_struct):  Add five new fields: 
289         dw_fde_hot_section_label, dw_fde_hot_section_end_label, 
290         dw_fde_unlikely_section_label, dw_fde_unlikely_section_end_label and 
291         dw_fde_switched_sections.
292         (output_call_frame_info):  Add test to see if function switches text
293         sections in the middle; if so, use appropriate extra hot and cold 
294         section labels to compute size deltas for the hot and cold sections.
295         (dwarf2out_begin_prologue): Add code to initialize new fields in 
296         dw_fde_struct.
297         (dwarf2out_switch_text_section): New function (invoked through 
298         debug_hook); updates new fields in dw_fde_struct appropriately and
299         increments separate_line_info_table_in_use.
300         (dwarf2_debug_hooks): Initialize switch_text_section function to be
301         dwarf2out_switch_text_section.
302         (struct var_loc_node): Add new field, section_label.
303         (output_aranges): Add code to check whether in hot or cold section and
304         use the appropriate label in calculating deltas.
305         (output_ranges): Likewise.
306         (output_line_info): Add code to check which section we're in and
307         use appropriate hot/cold label.
308         (add_location_or_constant_value_attribute): Likewise.
309         (gen_subprogam_die): Modify arange attributes to use correct labels.
310         (dwarf2out_begin_block): Change call to function_section into call to
311         current_function_section.
312         (dwarf2out_end_block): Likewise.
313         (dwarf2out_source_line): Likewise.
314         (dwarf2out_var_location): Add code to check whether in hot or cold 
315         section and use the appropriate label.
316         * except.c (output_function_exception_table): Change call to 
317         function_section into call to current_function_section.
318         * final.c (profile_function): Likewise.
319         (scan_ahead_for_unlikely_executed_note): Remove function.
320         (final_scan_insn):  Remove calls to 
321         scan_ahead_for_unlikely_executed_note, and related code for switching 
322         to cold section, except for the single time 
323         NOTE_INSN_SWITCH_TEXT_SECTIONS may be encountered;  add calls to 
324         debug_hooks->switch_text_sections; replace appropriate calls to 
325         function_section with calls to current_function_section.
326         * ifcvt.c (find_if_case_1): Remove redundancy from condition, add 
327         test_bb to condition.
328         (find_if_case_2): Likewise.
329         * insn-notes.def: Change NOTE_INSN_UNLIKELY_EXECUTED_CODE to
330         NOTE_INSN_SWITCH_TEXT_SECTIONS.  Update comment appropriately.
331         * opts.c (decode_options): Change warning about hot/cold partitioning
332         with exceptionss to inform (so as not to cause bootstrap failures);
333         remove warning about partitioning with DWARF debug info.
334         * output.h (current_function_section): Add new function decl.
335         (insert_section_boundary_note): Likewise.
336         (enum in_section): Move this declaration here from varasm.c.
337         (unlikely_section_label): Likewise.
338         (unlikely_text_section_name): Likewise.
339         (last_text_section_name): New global variable.
340         (last_text_section): Likewise.
341         (hot_section_label): Likewise.
342         (hot_section_end_label): Likewise.
343         (cold_section_end_label): Likewise.
344         * passes.c (rest_of_handle_final): Free unlikely_text_section_name.
345         * print-rtl.c (print_rtx): Change NOTE_INSN_UNLIKELY_EXECUTED_CODE
346         to NOTE_INSN_SWITCH_TEXT_SECTIONS.
347         * reg-stack.c (emit_swap_insn): Remove UNLIKELY_EXECUTED_CODE note 
348         insn from consideration.
349         * sdbout.c (sdb_debug_hooks): Add do_nothing for new function, 
350         switch_text_section.
351         * varasm.c (basic-block.h): Add new include.
352         (unlikely_section_label_printed): Remove global variable.
353         (unlikely_section_label): Make global variable not be static any more.
354         (unlikely_text_section_name): Likewise.
355         (hot_section_end_label): New global variable (not static)
356         (first_function_block_is_cold): Likewise.
357         (hot_section_label): Likewise.
358         (cold_section_end_label): Likewise..
359         (last_text_section): New global variable, not static.
360         (last_text_section_name): New global variable, not static.
361         (initialize_cold_section_name): New function.
362         (enum in_section): Move declaration to output.h.
363         (text_section): Update last_text_section.
364         (unlikely_text_section): Replace code to determine cold section name 
365         with call to initialize_cold_section_name; Add code to update 
366         last_text_section; remove code for printing out label.
367         (named_section_real): Add code to update last_text_section and 
368         last_text_section_name as appropriate.
369         (function_section): Change test for 'unlikely' to depend on
370         first_function_block_is_cold (moved old test to 
371         current_function_section).
372         (current_function_section): New function.
373         (assemble_start_function): Move code that frees 
374         unlikely_text_section_name; initialize hot_section_end_label; 
375         print hot and cold section labels at the start of the function; 
376         set first_function_block_is_cold, if appropriate; initialize l
377         ast_text_section; add call to insert_section_boundary_note.
378         (assemble_end_function):  Add code to write out hot and cold section
379         end labels.
380         *vmsdbgout.c (vmsdbg_debug_hooks): Add do_nothing for new function,
381         switch_text_section.
382         * config/darwin.c (machopic_select_section): Replace incorrect 
383         function in base_funs; update reloc for cold sections if necessary.
384         * config/darwin.h (SECTION_FUNCTION):  Add code to update 
385         last_text_section if appropriate.
386         (text_unlikely_section): Remove.
387         * config/sparc/sparc.c (sparc_output_deferred_case_vectors): Likewise.
388         * config/stormy16/stormy16.c (stormy_16_output_addr_vec): Likewise.
389         * config/xtensa/xtensa.c (override_options): Turn off hot/cold
390         partitioning for this architecture.
391
392 2005-03-31  Olivier Hainque  <hainque@adacore.com>
393
394         * dwarf2out.c (dwarf2out_frame_finish): Honor DWARF2_FRAME_INFO
395         defined and non-zero.
396
397 2005-03-31  Gabriel Dos Reis  <gdr@integrable-solutions.net>
398
399         PR c++/18644
400         * doc/invoke.texi (-Wsynth): Don't document, as it now is void of
401         semantics. 
402
403 2005-03-31  Alan Modra  <amodra@bigpond.net.au>
404
405         PR target/20611
406         * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Remove inline
407         label operand.  Remove (use (unspec..)).  Don't emit a label on
408         the offset word.
409         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Don't
410         generate inline label for load_toc_v4_PIC_1b.
411         (rs6000_emit_load_toc_table): Likewise.
412
413 2005-03-31  Kazu Hirata  <kazu@cs.umass.edu>
414
415         * config.gcc: Obsolete i860-*-sysv4*, ip2k-*-elf,
416         ns32k-*-netbsdelf*, and ns32k-*-netbsd*.
417
418 2005-03-29  Devang Patel  <dpatel@apple.com>
419
420         * tree-sra.c (decide_block_copy): Disable scalarization of
421         sub-elements.
422         
423 2005-03-30  Stuart Hastings  <stuart@apple.com>
424             Dale Johannesen  <dalej@apple.com>
425
426         * Makefile.in (print-tree.o):  Depend on tree-iterator.h.
427         * print-tree.c (print_node):  Add case STATEMENT_LIST.
428
429 2005-03-31  Alan Modra  <amodra@bigpond.net.au>
430
431         * config.gcc (cpu_is_64bit): Set for 64-bit powerpc cpus.
432         (powerpc64-*-linux*): Use it.  Rearrange tm_file assignment.
433         (powerpc-*-linux*): Build a biarch compiler when --enable-targets
434         is given with "powerpc64*" or "all", or when --with-cpu chooses
435         a 64-bit cpu.
436
437 2005-03-30  James E. Wilson  <wilson@specifixinc.com>
438
439         PR debug/20268
440         * dwarf2out.c (add_high_low_attributes): New function, extracted from
441         gen_lexical_block_die.
442         (gen_lexical_block_die, gen_inlined_subroutine_die): Call it.
443
444 2005-03-31  Jan Hubicka  <jh@suse.cz>
445
446         2004-11-02  Jan Hubicka  <jh@suse.cz>
447
448         * cgraph.c (cgraph_varpool_node_name): New function.
449         (dump_cgraph_varpool_node): New function.
450         (dump_varpool): New function.
451         * cgraphunit.c (cgraph_optimize): Dump varpool.
452
453         2004-10-16  Jan Hubicka  <jh@suse.cz>
454
455         * cgraph.c (decide_is_variable_needed): New function.
456         (cgraph_varpool_finalize_decl): Use it.
457         * cgraphunit.c (cgraph_optimize): Assemble_pending_decls when not doing
458         unit-at-a-time.
459         * final.c (output_addr_const): Do not call mark_referenced.
460         * passes.c (rest_of_decl_compilation): ifdef out DECL_RTL_SET_P hack;
461         always go via cgraph.
462         * toplev.c (wrapup_global_declarations): Kill non-unit-at-a-time code.
463         (check_global_declarations): Ifdef out code clearing DECL_RTL.
464         * tree-optimize.c (execute_inline): Mark functions called.
465         * i386.c (output_pic_addr_const): Do not call mark_decl_referenced.
466
467         2004-10-11  Jan Hubicka  <jh@suse.cz>
468
469         * cgraph.c (cgraph_varpool_first_unanalyzed_node): New global voriable
470         (cgraph_varpool_last_needed_node): New static variable.
471         (enqueue_needed_varpool_node): Break out from ...; add items to the
472         end of queue; update first pointers.
473         (cgraph_varpool_mark_needed_node): ... here.
474         (cgraph_varpool_finalize_decl): Use enqueue_needed_varpool_node.
475         (cgraph_varpool_assemble_pending_decls): Move to cgraphunit.c
476         * cgraph.h (cgraph_varpool_node): Add analyzed field.
477         (cgraph_varpool_first_unanalyzed_node): Declare.
478         * cgraphunit.c: Include output.h.
479         (cgraph_varpool_analyze_pending_decls): New function.
480         (cgraph_varpool_assemble_pending_decls): Move from cgraph.c; bail out
481         for errors, analyze pending decls.
482         (cgraph_finalize_compilation_unit): Only analyze decls.
483         (cgraph_optimize): Assemble the decls after expanding.
484
485 2005-03-30  Daniel Berlin  <dberlin@dberlin.org>
486
487         * tree-ssa-alias.c (compute_flow_insensitive_aliasing): Make sure
488         subvars get marked properly in tags for grouping.
489         (add_pointed_to_var): Mark only actual pointed to
490         variables/subvars in addresses needed.
491         (create_overlap_variables_for): Clear call clobbered on original
492         variable.
493         * tree-ssa-operands.c (get_asm_expr_operands): Don't let regular
494         addresable vars with subvars into list.
495         * tree-ssa.c (verify_ssa_name): Verify original is not used where
496         subvar should be.
497
498 2005-03-30  Richard Henderson  <rth@redhat.com>
499
500         * cgraph.h (struct cgraph_node): Add alias.
501         * varasm.c (assemble_alias): Set it.
502         * cgraphunit.c (cgraph_assemble_pending_functions): Check it and
503         avoid calling cgraph_expand_function.
504
505 2005-03-30  Tom Tromey  <tromey@redhat.com>
506
507         * tree.def (FILE_TYPE): Removed.
508         * typeclass.h (enum type_class): Removed file_type_class.
509         * dwarf2out.c (is_base_type): Updated.
510         (gen_type_die): Likewise.
511         * dbxout.c (dbxout_type): Updated.
512         * builtins.c (type_to_class): Updated.
513         * tree.c (type_contains_placeholder_1): Updated.
514         * config/sparc/sparc.c (sparc_type_code): Updated.
515         * config/ia64/ia64.c (hfa_element_mode): Updated.
516         * expr.c (count_type_elements): Updated.
517         * stor-layout.c (layout_type): Updated.
518         * tree-inline.c (remap_type): Updated.
519         * tree-pretty-print.c (dump_generic_node): Updated.
520
521 2005-03-30 Fariborz Jahanian <fjahanian@apple.com>
522
523         * builtins.c (expand_builtin_powi): Fix mode of
524         2nd argument to match int.
525         * libgcc2.h (__powisf2, __powidf2, __powixf2, __powitf2): Change
526         2nd argument type to int.
527         * libgcc2.c: Change prototype of __powi* functions to use
528         int.
529
530 2005-03-30  Dale Johannesen  <dalej@apple.com>
531
532         PR middle-end/19225
533         * calls.c (expand_call):  Flush pending deferrals before
534         throwing call.
535
536 2005-03-30  Joseph S. Myers  <joseph@codesourcery.com>
537
538         PR c/772
539         PR c/17913
540         * c-tree.h (C_DECL_UNJUMPABLE_STMT_EXPR,
541         C_DECL_UNDEFINABLE_STMT_EXPR, struct c_label_list, struct
542         c_label_context, label_context_stack): New.
543         * c-decl.c (define_label): Check for jumps into statement
544         expressions.  Add label to list of defined labels.
545         (start_function): Push context on label_context_stack.
546         (finish_function): Pop context from label_context_stack.
547         * c-typeck.c (label_context_stack): New.
548         (c_finish_goto_label): Check for jumps into statement
549         expressions.  Add label to list of jumped to labels.
550         (struct c_switch): Add blocked_stmt_expr.
551         (c_start_case): Initialize it.
552         (do_case): Check it.
553         (c_finish_case): Verify !blocked_stmt_expr.
554         (c_begin_stmt_expr):  Push context on label_context_stack.
555         Increment blocked_stmt_expr.  Mark labels jumped to from outside
556         as undefinable.
557         (c_finish_stmt_expr): December blocked_stmt_expr.  Mark labels
558         defined in the statement expression and no longer jumpable to.
559         Mark labels jumped to from just outside the statement expression
560         as again definable.  Pop context from label_context_stack.
561         * doc/extend.texi (Statement Exprs): Update.
562
563 2005-03-30  Joseph S. Myers  <joseph@codesourcery.com>
564
565         PR c/20368
566         * c-decl.c (start_function): Check for old_decl being
567         error_mark_node.
568
569 2005-03-30  Ian Lance Taylor  <ian@airs.com>
570
571         * final.c (final): Remove prescan parameter.  Change all callers.
572         (final_scan_insn): Remove prescan parameter.  Change all callers.
573
574 2005-03-30  Kazu Hirata  <kazu@cs.umass.edu>
575
576         * tree-vectorizer.c: Fix comment typos.
577
578 2005-03-30  Sebastian Pop  <pop@cri.ensmp.fr>
579
580         * tree-scalar-evolution.c (instantiate_parameters_1): Return
581         as soon as a chrec_dont_know is detected.
582
583 2005-03-31  Danny Smith  <dannysmith@users.sourceforge.net>
584
585         Merge from csl-arm-branch.
586         2004-02-12  Mark Mitchell  <mark@codesourcery.com>
587
588         * tlink.c (recompile_files): Do not assume that "rename" can
589         overwrite an existing file.
590
591 2005-03-31  Paolo Bonzini  <bonzini@gnu.org>
592
593         * gcc/configure.ac (TL_AC_GNU_MAKE_GCC_LIB_PATH): Remove.
594         * gcc/configure: Regenerate.
595
596 2005-03-30  Alan Modra  <amodra@bigpond.net.au>
597
598         * doc/install.texi: Update binutils requirement for powerpc*-linux.
599
600         * config/rs6000/rs6000.c (rs6000_arg_partial_bytes): Update comments.
601
602         * calls.c (struct arg_data): Update "partial" comment.
603         (load_register_parameters): Update "nregs" comment.
604
605 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
606
607         * config/iq2000/iq2000.h (target_flags, MASK_GPOPT, MASK_EMBEDDED_DATA)
608         (MASK_UNINIT_CONST_IN_RODATA, TARGET_EMBEDDED_DATA, TARGET_SWITCHES)
609         (TARGET_DEFAULT, TARGET_CPU_DEFAULT, SUBTARGET_TARGET_OPTIONS)
610         (TARGET_OPTIONS, iq2000_cpu_string, iq2000_arch_string): Delete.
611         (TARGET_DEBUG_MODE, TARGET_DEBUG_A_MODE, TARGET_DEBUG_B_MODE)
612         (TARGET_DEBUG_C_MODE, TARGET_DEBUG_D_MODE): Define to 0 rather
613         than target_flags & 0.
614         * config/iq2000/iq2000.c (iq2000_cpu_string, iq2000_arch_string)
615         (iq2000_arch, iq2000_parse_cpu): Delete.
616         (TARGET_HANDLE_OPTION): Override default.
617         (iq2000_handle_option): New function.
618         (override_options): Remove -march= and -mcpu= handling.
619         * config/iq2000/iq2000.opt: New file.
620
621 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
622
623         * config/c4x/c4x-protos.h (c4x_rpts_cycles, c4x_cpu_version): Delete.
624         * config/c4x/c4x.h (SMALL_MEMORY_FLAG, MPYI_FLAG, FAST_FIX_FLAG)
625         (RPTS_FLAG, C3X_FLAG, TI_FLAG, PARANOID_FLAG, MEMPARM_FLAG, DEVEL_FLAG)
626         (RPTB_FLAG, BK_FLAG, DB_FLAG, DEBUG_FLAG, HOIST_FLAG)
627         (LOOP_UNSIGNED_FLAG, FORCE_FLAG, PRESERVE_FLOAT_FLAG)
628         (PARALLEL_INSN_FLAG, PARALLEL_MPY_FLAG, ALIASES_FLAG, C30_FLAG)
629         (C31_FLAG, C32_FLAG, C33_FLAG, C40_FLAG, C44_FLAG, TARGET_SWITCHES)
630         (TARGET_DEFAULT, TARGET_SMALL, TARGET_MPYI, TARGET_FAST_FIX)
631         (TARGET_RPTS, TARGET_TI, TARGET_PARANOID, TARGET_MEMPARM, TARGET_DEVEL)
632         (TARGET_RPTB, TARGET_BK, TARGET_DB, TARGET_DEBUG, TARGET_HOIST)
633         (TARGET_LOOP_UNSIGNED, TARGET_FORCE, TARGET_PRESERVE_FLOAT)
634         (TARGET_PARALLEL, TARGET_PARALLEL_MPY, TARGET_ALIASES)
635         (c4x_rpts_cycles_string, c4x_cpu_version_string)
636         (TARGET_OPTIONS): Delete.
637         (c4x_rpts_cycles, c4x_cpu_version): Declare.
638         (TARGET_C3X, TARGET_C30, TARGET_C31, TARGET_C32, TARGET_C33)
639         (TARGET_C40, TARGET_C44): Redefine in terms of c4x_cpu_version.
640         * config/c4x/c4x.c (c4x_rpts_cycles_string): Delete.
641         (c4x_cpu_version_string): Delete.
642         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
643         (c4x_handle_option): New function.  Map -m3x and -m4x options to the
644         equivalent -mcpu= option.
645         (c4x_override_options): Remove -mrpts= and -mcpu= handling from here.
646         Deal with the extra conditions in the old TARGET_MPYI, TARGET_RPTB,
647         TARGET_DB, TARGET_PARALLEL and TARGET_PARALLEL_MPY macros by setting
648         or clearing the appropriate MASK_* bit.
649         (c4x_file_start): Use c4x_cpu_version.
650         * config/c4x/c4x.opt: New file.
651
652 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
653
654         * doc/options.texi: Document the new MaskExists flag.
655         * opth-gen.awk: Don't output MASK and TARGET macros for Mask(...)
656         if the option has the MaskExists flag.
657
658 2005-03-30  Richard Sandiford  <rsandifo@redhat.com>
659
660         * opt-functions.awk (flag_set_p, test_flag): New functions.
661         (switch_flags): Use them.
662         * opth-gen.awk: Use flag_set_p to check for flags.
663         * optc-gen.awk: Likewise.  Use opt_args to check for Init(...) flags.
664
665 2005-03-30  Ian Lance Taylor  <ian@airs.com>
666
667         * config.host (i[34567]86-*-mingw32*): Don't set
668         host_can_use_collect2 to no.
669
670 2005-03-30  Alan Modra  <amodra@bigpond.net.au>
671
672         PR target/20203
673         * builtins.c (get_memory_rtx): Expand address exp using EXPAND_NORMAL.
674         Remove convert_memory_address call duplicating that in memory_address.
675
676 2005-03-29  Richard Henderson  <rth@redhat.com>
677
678         PR c/20519
679         * c-decl.c (c_finish_incomplete_decl): Update complete_array_type call.
680         (build_compound_literal): Likewise.  Propagate decl type into the
681         initializer.
682         (finish_decl): Likewise.  Use new return value from complete_array_type
683         for zero sized arrays.
684         (complete_array_type): Move ...
685         * c-common.c (complete_array_type): ... here.  Change first argument
686         to pointer-to-type-node.  Consistently use sizetype for the index
687         except for zero sized arrays.  Detect zero sized arrays for pedantic
688         mode diagnostics.  Create a new type node instead of modifying the
689         old node in place.
690         * c-tree.h (complete_array_type): Move decl ...
691         * c-common.h (complete_array_type): ... here.
692
693 2005-03-29  Richard Henderson  <rth@redhat.com>
694
695         PR tree-opt/19108
696         * tree-sra.c (generate_element_init_1): Handle RANGE_EXPR.
697
698 2005-03-29  Kazu Hirata  <kazu@cs.umass.edu>
699
700         * builtin-types.def, c-convert.c, c-format.c, ddg.c, debug.c,
701         debug.h, et-forest.c, et-forest.h, gcov.c, rtl-profile.c,
702         rtlhooks-def.h, rtlhooks.c, sdbout.c, tree-inline.h,
703         tree-profile.c, tsystem.h, value-prof.h: Update copyright.
704
705 2005-03-29  Eric Christopher  <echristo@redhat.com>
706
707         * config/mips/mips.c (mips_gimplify_va_arg_expr): Update for
708         truthvalue conversion removal.
709
710 2005-03-29  Ian Lance Taylor  <ian@airs.com>
711
712         PR bootstrap/14316
713         * collect2.c: Never include <vfork.h>.
714         (VFORK_STRING, vfork): Don't define.
715         (pid): Remove global variable.
716         (handler): Call raise instead of kill (getpid(), ...).
717         (collect_wait): Add pex parameter.  Change all callers.  Use
718         pex_get_status rather than pwait.
719         (do_wait): Add pex parameter.  Change all callers.
720         (collect_execute): Return struct pex_obj * rather than void.  Use
721         pex routines rather than pexecute.
722         (fork_execute): Get pex_obj from collect_execute, and pass it to
723         do_wait.
724         (scan_prog_file): Use pex routines rather than pipe/vfork/exec.
725         Only declare quit_handler if SIGQUIT is defined.
726         (scan_libraries): Likewise.
727         * collect2.h (collect_execute): Update declaration.
728         (collect_wait): Update declaration.
729         * tlink.c (tlink_execute): Get pex_obj from collect_execute, and
730         pass it to collect_wait.
731
732 2005-03-29  Joseph S. Myers  <joseph@codesourcery.com>
733
734         PR c/20672
735         * c-parser.c (c_parser_compound_statement_nostart): Give error
736         message for EOF instead of just setting parser->error.
737
738 2005-03-29  Dorit Naishlos  <dorit@il.ibm.com>
739
740         * tree-vectorizer.c (slpeel_update_phi_nodes_for_guard): Removed.
741         (slpeel_update_phi_nodes_for_guard1): New function.
742         (slpeel_update_phi_nodes_for_guard2): New function.
743         (slpeel_tree_peel_loop_to_edge): Call above new functions instead
744         of slpeel_update_phi_nodes_for_guard.
745         (vectorize_loops): Remove call to loop_closed_rewrite.
746         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Remove
747         assertion.
748
749 2005-03-29  Richard Sandiford  <rsandifo@redhat.com>
750
751         * config/m32r/little.h (TARGET_ENDIAN_DEFAULT): Delete.
752         (TARGET_LITTLE_ENDIAN): New macro.
753         * config/m32r/m32r.h (SUBTARGET_SWITCHES, target_flags)
754         (TARGET_RELAX_MASK, TARGET_DEBUG_MASK, TARGET_DEBUG)
755         (TARGET_ALIGN_LOOPS_MASK, TARGET_ALIGN_LOOPS)
756         (TARGET_LOW_ISSUE_RATE_MASK, TARGET_LOW_ISSUE_RATE)
757         (TARGET_BRANCH_COST_MASK, TARGET_BRANCH_COST, TARGET_M32RX_MASK)
758         (TARGET_M32RX, TARGET_M32R2_MASK, TARGET_M32R2, LITTLE_ENDIAN_BIT)
759         (TARGET_ENDIAN_DEFAULT, SUBTARGET_SWITCHES, TARGET_DEFAULT)
760         (TARGET_SWITCHES, m32r_model_string, m32r_sdata_string)
761         (m32r_cache_flush_trap_string, SUBTARGET_OPTIONS)
762         (TARGET_OPTIONS): Delete.
763         (M32R_MODEL_DEFAULT, M32R_SDATA_DEFAULT): Turn into enums.
764         (CACHE_FLUSH_TRAP): Turn into an integer.
765         (TARGET_LITTLE_ENDIAN): Define to 0 by default.
766         (INITIALIZE_TRAMPOLINE): Check m32r_cache_trap >= 0 to see if
767         -mflush-trap is in use.
768         * config/m32r/m32r.c (m32r_model_string, m32r_sdata_string)
769         (m32r_cache_flush_trap_string): Delete.
770         (m32r_model) Initialize to M32R_MODEL_DEFAULT.
771         (m32r_sdata): Likewise M32R_SDATA_DEFAULT.
772         (m32r_cache_trap): Likewise CACHE_FLUSH_TRAP.
773         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
774         (m32r_handle_option): New function.  Move -mflush-trap=, -mflush-func=,
775         -mmodel= and -msdata= handling from...
776         (m32r_init): ...here.
777         * config/m32r/m32r.opt: New file.
778
779 2005-03-29  Keith Besaw  <kbesaw@us.ibm.com>
780
781         * tree-ssanames.c (duplicate_ssa_name_ptr_info): New function.
782         (duplicate_ssa_name): Call duplicate_ssa_name_ptr_info.
783         * tree-vect-analyze.c (vect_object_analysis): additional parm
784         pass back a "struct ptr_info_def *" with the points-to info.
785         (vect_analyze_data_refs): set the STMT_VINFO_PTR_INFO for the
786         statement using info returned from vect_object_analysis.
787         * tree-vect-transform.c (update_vuses_to_preheader): New function.
788         (vect_create_data_ref_ptr): Remove updates to vars_to_rename
789         for virtual uses and defs when creating a replacement vector
790         reference.  Call duplicate_ssa_name_ptr_info to define points-to
791         info for vector pointer replacement using STMT_VINFO_PTR_INFO.
792         (vectorizable_store): copy_virtual_operands and update
793         definition statements.
794         (vectorizable_load): copy_virtual_operands.  Remove call to
795         mark_call_clobbered_vars_to_rename for call to "const" builtin.
796         * tree-vectorizer.c (vectorize_loops): Remove calls to
797         rewrite_into_ssa and bitmap_clear (vars_to_rename).
798         (new_stmt_vec_info): initialize STMT_VINFO_PTR_INFO for stmt.
799         * tree-vectorizer.h (_stmt_vec_info): add field ptr_info and
800         define macro STMT_VINFO_PTR_INFO for use in accessing.
801         * tree.h add export of duplicate_ssa_name_ptr_info.
802         * rs6000.c (altivec_init_builtins): Declare builtin function
803         __builtin_altivec_mask_for_load to be "const".
804
805 2005-03-29  Jakub Jelinek  <jakub@redhat.com>
806
807         PR middle-end/20622
808         * cgraph.h (struct cgraph_varpool_node): Add alias field.
809         * cgraph.c (cgraph_varpool_assemble_pending_decls): Don't call
810         assemble_variable on aliases.
811         * varasm.c (assemble_alias): Set node->alias.
812         * toplev.c (wrapup_global_declarations): Don't call
813         rest_of_decl_compilation on aliases again.
814
815 2005-03-29  Paul Brook  <paul@codesourcery.com>
816
817         * config/arm/arm-protos.h (arm_dbx_register_number): Add prototype.
818         * config/arm/arm.c (arm_dbx_register_number): New function.
819         * config/arm/arm.h (IS_FPA_REGNUM, DBX_REGISTER_NUMBER): Define.
820
821 2005-03-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
822
823         PR middle-end/20263
824         * varasm.c (make_decl_rtl) [ASM_DECLARE_REGISTER_GLOBAL]: Use
825         the DECL_NAME, not the DECL_ASSEMBLER_NAME.
826
827 2005-03-29  Dale Johannesen <dalej@apple.com>
828
829         * Makefile.in (value-prof.o): New dependencies on $(DIAGNOSTIC_H)
830         $(TREE_H) and $(COVERAGE_H).
831         * coverage.c (compute_checksum): Use DECL_NAME not DECL_ASSEMBLER_NAME.
832         * opts.c (common_handle_option): Enable tree-based value transforms.
833         * toplev.c (process_options): Ditto.
834         * value-prof.h (struct histogram_value_t): Redefine. "Adjust" below
835         refers to references to this type.
836         * tree-flow.h: (struct stmt_ann_d): Add histograms field.
837         * rtl-profile.c (rtl_gen_interval_profiler): Adjust. Remove checks
838         for may_be_more, may_be_less.
839         (rtl_gen_pow2_profiler): Adjust.
840         (rtl_gen_one_value_profiler_no_edge_manip): Adjust.
841         (rtl_gen_one_value_profiler): Adjust.
842         (rtl_gen_const_delta_profiler): Adjust.
843         * tree-profile.c (tree_gen_interval_profiler): Implement.
844         (tree_gen_pow2_profiler): Ditto.
845         (tree_gen_one_value_profiler): Ditto.
846         (tree_profiling): New.
847         (pass_tree_profile): Reference it.
848         * value-prof.c: Include tree-flow.h, tree-flow-inline.h, diagnostic.h,
849         tree.h, gcov-io.h.
850         (insn_divmod_values_to_profile): Rename to
851         rtl_divmod_values_to_profile. Adjust.
852         (insn_values_to_profile): Rename to rtl_values_to_profile. Adjust.
853         (insn_prefetch_values_to_profile): Adjust.
854         (rtl_value_profile_transformations): Adjust.
855         (gen_divmod_fixed_value): Rename to rtl_divmod_fixed_value.
856         (gen_mod_pow2): Rename to rtl_mod_pow2.
857         (gen_mod_subtract): Rename to rtl_mod_subtract.
858         (divmod_fixed_value_transform): Rename to
859         rtl_divmod_fixed_value_transform.
860         (mod_pow2_value_transform): Rename to rtl_mod_pow2_value_transform.
861         (mod_subtract_transform): Rename to rtl_mod_subtract_transform.
862         (rtl_find_values_to_profile): Adjust.
863         (tree_value_profile_transformations): Implement.
864         (tree_divmod_values_to_profile): New.
865         (tree_values_to_profile): New.
866         (tree_divmod_fixed_value): New.
867         (tree_mod_pow2): New.
868         (tree_mod_subtract): New.
869         (tree_divmod_fixed_value_transform): New.
870         (tree_mod_pow2_value_transform): New.
871         (tree_mod_subtract_transform): New.
872         (tree_find_values_to_profile): Implement.
873         * profile.c (instrument_values):  Free histograms.
874         (compute_value_histograms): Adjust. Implement tree version.
875
876 2005-03-29  Uros Bizjak  <uros@kss-loka.si>
877
878         * reg-stack.c (subst_stack_regs_pat): Handle <UNSPEC_FIST> case.
879         * config/i386/i386.c (output_fix_trunc): Add new round_mode
880         variable.  Output "fldcw" depending on round_mode.
881         * config/i386/i386.md (UNSPEC_FIST): New.
882         (fistdi2, fistdi2_with_temp, fist<mode>2, fist<mode>2_with_temp):
883         New isns patterns to implement lrint and llrint built-ins as x87
884         intrinsic function.
885         (fistdi2, fist<mode>2 splitters): New splitters.
886         (lrint<mode>2): New expanders.
887
888 2005-03-28  Ian Lance Taylor  <ian@airs.com>
889
890         * config/arc/arc.c (arc_output_function_epilogue): Pass prescan as
891         0 when calling final_scan_insn.
892
893 2005-03-28  Jan Hubicka  <jh@suse.cz>
894
895         PR middle-end/20635
896         * varasm.c (mark_decl_referenced): Do not mark extern inline functions
897         as needed.
898
899         * tree-inline.c (estimate_num_insns_1): Use declaration to discover argument
900         types where possible.
901
902 2005-03-26  Per Bothner  <per@bothner.com>
903
904         Make -f[no-]show-column also control non-cpp diagnostics.
905         * c.opt (fshow-column): Move option from here ...
906         * common.opt (fshow-column): ... to here.
907         * diagnostic.c (diagnostic_build_prefix): Only print column number
908         if flag_show_column.
909
910 2005-03-27  Steven Bosscher  <stevenb@suse.de>
911
912         * vax-protos.h (vax_output_int_move, vax_output_int_add,
913         vax_output_conditional_branch): New prototypes.
914         * vax.c (vax_output_int_move, vax_output_int_add): New functions,
915         extracted from vax.md mov and add patterns.
916         (vax_output_conditional_branch): New function to output conditional
917         branch instructions.
918         * vax.md: Use mode macros for arithmetic and mov patterns.
919         Use code macros for the jump patterns.
920
921 2005-03-26  Andrew Pinski  <pinskia@physics.uc.edu>
922
923         * Makefile.in (libbackend.o): Depend on version files;
924         add custom generation command.
925
926 2005-03-26  Andrew Pinski  <pinskia@physics.uc.edu>
927
928         PR target/20636
929         * config/rs6000/rs6000.md (extendsfdf2_fpr): Check to make
930         sure that we have a REG before getting its REGNO.
931
932 2005-03-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
933
934         * builtin-types.def (BT_FN_STRING_CONST_STRING_SIZE): New.
935         * builtins.def (BUILT_IN_STRNDUP): New.
936
937 2005-03-25  Pat Haugen  <pthaugen@us.ibm.com>
938
939         PR tree-optimization/20470
940         * fold-const.c (fold_cond_expr_with_comparison): Recognize/fold
941         ABS(x-y).
942
943 2005-03-25  Mike Stump  <mrs@apple.com>
944
945         * config/darwin.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Don't allow 0
946         sized objects.
947
948 2005-03-25  Geoffrey Keating  <geoffk@apple.com>
949
950         * config/rs6000/darwin-fallback.c: Don't include <ucontext.h>.
951         Use our own structure definitions.
952
953         * config/rs6000/rs6000.md (UNSPEC constants): Add UNSPEC_STFIWX.
954         (fix_truncdfsi2): Allow registers or memory as destination.
955         When TARGET_PPC_GFXOPT, generate simplified pattern.
956         (fix_truncdfsi2_internal): Use define_insn_and_split.
957         (fix_truncdfsi2_internal_gfxopt): New.
958         (fctiwz): Don't confuse register allocation by giving it no choices.
959         (stfiwx): New.
960         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'Z'.
961         (EXTRA_MEMORY_CONSTRAINT): Likewise.
962         * config/rs6000/rs6000.c (indexed_or_indirect_operand): New.
963         * config/rs6000/rs6000-protos.h (indexed_or_indirect_operand): New.
964
965 2005-03-25  Kazu Hirata  <kazu@cs.umass.edu>
966
967         * dominance.c (free_dominance_info): Speed up by freeing et
968         data structures without maintaining other nodes.
969         * et-forest.c (et_free_tree_force): New.
970         * et-forest.h: Add a prototype for et_free_tree_force.
971
972         * tree.c (get_set_constructor_bits,
973         get_set_constructor_bytes): Remove.
974         * tree.h: Remove the corresponding prototypes.
975
976 2005-03-25  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
977
978         PR target/15491
979         * vax.c (vax_rtx_costs_1): Merge with vax_rtx_costs.
980         (vax_rtx_costs): Return false when passed unsupported rtx's.  Handle
981         FLOAT_EXTEND, FLOAT_TRUNCATE and TRUNCATE.  Fix costs for POST_INC,
982         PRE_DEC, NEG and NOT.
983
984 2005-03-25  Kazu Hirata  <kazu@cs.umass.edu>
985
986         * fold-const.c: Convert uses of fold (build (...)) to
987         fold_buildN.
988
989 2005-03-25  Zdenek Dvorak  <dvorakz@suse.cz>
990
991         PR rtl-optimization/20249
992         * cse.c (insert_regs): Do not record equivalence of registers in
993         different modes.
994
995 2005-03-24  Kazu Hirata  <kazu@cs.umass.edu>
996
997         * emit-rtl.c (reverse_comparison): Remove.
998         * rtl.h: Remove the corresponding prototype.
999
1000 2005-03-24  James E Wilson  <wilson@specifixinc.com>
1001
1002         * doc/install.texi (--enable-altivec): Delete docs.
1003
1004 2005-03-24  David Edelsohn  <edelsohn@gnu.org>
1005
1006         * config/rs6000/predicates.md (easy_fp_constant): Return 0 for
1007         SFmode and DFmode before reload when
1008         flag_unsafe_math_optimizations not enabled.
1009
1010 2005-03-24  Geoffrey Keating  <geoffk@apple.com>
1011
1012         * c.opt (fvisibility-inlines-hidden): Allow for ObjC++.
1013
1014         * config/i386/darwin.h (TARGET_SUBTARGET_DEFAULT): Add
1015         MASK_128BIT_LONG_DOUBLE, MASK_ALIGN_DOUBLE.
1016
1017 2005-03-24  Nathan Sidwell  <nathan@codesourcery.com>
1018
1019         * configure.ac (enable-checking): Add 'runtime' option.
1020         * doc/install.texi (enable-checking): Document 'runtime' checking.
1021         * tsystem.h (gcc_assert, gcc_unreachable): Define.
1022         * config.in: Regenerated.
1023         * configure: Regenerated.
1024
1025 2005-03-23  Uros Bizjak  <uros@kss-loka.si>
1026
1027         * optabs.h (enum optab_index): Remove OTI_llrint.
1028         (llrint_optab): Remove macro.
1029         * optabs.c (init_optabs): Remove llrint_optab initialization.
1030         * genopinit.c (optabs): Remove llrint_optab implementation.
1031         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LLRINT{,F,L}
1032         using lrint_optab.
1033
1034 2005-03-24  Alexandre Oliva  <aoliva@redhat.com>
1035
1036         PR rtl-optimization/20532
1037         * simplify-rtx.c (simplify_binary_operation_1): Protect from
1038         overflow when adding coefficients for PLUS or MINUS.
1039         (simplify_binary_operation_1): Handle CONST_DOUBLE exact power of
1040         two as multiplier.
1041
1042 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
1043
1044         * langhooks.h (truthvalue_conversion): Remove.
1045         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Remove
1046         LANG_HOOKS_TRUTHVALUE_CONVERSION.
1047         * system.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Poison.
1048         * gimplify.c (gimple_boolify): Don't use truthvalue_conversion.
1049         * c-objc-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Remove.
1050
1051 2005-03-23  Kazu Hirata  <kazu@cs.umass.edu>
1052
1053         * params.def: Fix a typo.
1054         * config/mips/mips.c: Follow the spelling convensions.
1055         * doc/invoke.texi: Fix typos.
1056
1057 2005-03-18  Dale Johannese  <dalej@apple.com>
1058
1059         * cp/tree.c (cp_tree_equal):  Handle SSA_NAME.
1060
1061 2005-03-23  Daniel Berlin  <dberlin@dberlin.org>
1062
1063         Fix PR tree-optimization/20601
1064
1065         * tree-ssa-pre.c (insert_aux): Add missing condition to
1066         constification.
1067
1068 2005-03-23  Ian Lance Taylor  <ian@airs.com>
1069
1070         * final.c (final_scan_insn): Don't remove no-op instructions.
1071         * reload1.c (reload): Remove simple no-op instructions even when
1072         not optimizing.
1073
1074 2005-03-23  Dorit Naishlos  <dorit@il.ib.com>
1075
1076         PR tree-optimization/20501
1077         * tree-vect-analyze.c (vect_enhance_data_refs_alignment): Debug print
1078         reporting that peeling for alignment is applied moved to...
1079         * (vect_analyze_data_refs_alignment): Here.
1080
1081 2005-03-23  Ian Lance Taylor  <ian@airs.com>
1082
1083         * reorg.c (dbr_schedule): Remove #if 0 code to call final.
1084
1085 2005-03-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1086
1087         * config.gcc (alpha*-dec-osf[45]*): Remove target_cpu_default.
1088         Define TARGET_SUPPORT_ARCH except on Tru64 UNIX V4.0A.
1089
1090 2005-03-23  Hans-Peter Nilsson  <hp@axis.com>
1091
1092         * doc/tm.texi (TARGET_MD_ASM_CLOBBERS): Adjust wording to not
1093         imply that this is called once, independent of asms in code.
1094         Adjust to now being pased output and input lists.  Mention helper
1095         function decl_overlaps_hard_reg_set_p.
1096         * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Rename from
1097         hook_tree_tree_identity and to take three trees, returning third.
1098         * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Adjust the
1099         prototype.
1100         * stmt.c: include hard-reg-set.h before tree.h.
1101         (decl_overlaps_hard_reg_set_p): New function, broken out from...
1102         (decl_conflicts_with_clobbers_p): Call
1103         decl_overlaps_hard_reg_set_p.
1104         (expand_asm_operands): Pass output and input lists in call to
1105         targetm.md_asm_clobbers.
1106         * target-def.h (TARGET_MD_ASM_CLOBBERS): Define as
1107         hook_tree_tree_tree_tree_3rd_identity.
1108         * target.h (struct gcc_target.md_asm_clobbers): Take three tree
1109         parameters.
1110         * tree.h [HARD_CONST] (decl_overlaps_hard_reg_set_p): Prototype.
1111         * config/i386/i386.c (ix86_md_asm_clobbers): Adjust to three
1112         parameters, first two unused.
1113         * config/cris/cris.c (cris_md_asm_clobbers): Adjust to added
1114         parameters.  Only add MOF to clobbers if there's no 'h' mentioned
1115         in constraint letters and MOF is not mentioned as a asm-declared
1116         register in neither of the input and output lists.
1117
1118 2005-03-23  DJ Delorie  <dj@redhat.com>
1119
1120         * optabs.c (expand_binop): Make sure the first subword's result
1121         gets stored.
1122
1123 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
1124
1125         * c-common.c (c_common_truthvalue_conversion): Adjust comment.
1126         Call c_common_truthvalue_conversion rather than
1127         lang_hooks.truthvalue_conversion.
1128         * c-convert.c (convert): Call c_objc_common_truthvalue_conversion.
1129         * c-objc-common.c (c_objc_common_truthvalue_conversion): Move to
1130         c-typeck.c.
1131         * c-objc-common.h (LANG_HOOKS_TRUTHVALUE_CONVERSION): Change to
1132         c_common_truthvalue_conversion.
1133         * c-parser.c (c_parser_paren_condition, c_parser_for_statement,
1134         c_parser_conditional_expression, c_parser_binary_expression): Call
1135         c_objc_common_truthvalue_conversion.
1136         * c-typeck.c (build_unary_op): Call
1137         c_objc_common_truthvalue_conversion.
1138         (build_conditional_expr): Do not call
1139         lang_hooks.truthvalue_conversion.
1140         (build_binary_op): Call c_common_truthvalue_conversion.
1141         (c_objc_common_truthvalue_conversion): Moved from
1142         c-objc-common.c.  Call default_function_array_conversion instead
1143         of default_conversion.
1144
1145 2005-03-23  Joseph S. Myers  <joseph@codesourcery.com>
1146
1147         * c-common.h (default_conversion): Remove.
1148         (perform_integral_promotions): Add.
1149         * c-tree.h (default_conversion): Add.
1150         * c-typeck.c (perform_integral_promotions): New, split out from
1151         default_conversion.
1152         * c-common.c (check_case_value): Use perform_integral_promotions,
1153         not default_conversion.
1154         (c_add_case_label): Don't continue processing case label after
1155         found to be pointer.
1156
1157 2005-03-23  Mark Mitchell  <mark@codesourcery.com>
1158
1159         * gcc.c (do_spec_1): Do not add a -L path for a directory in
1160         the prefix list if we have already added a multilib directory
1161         based on that path.
1162         (main): Do not add MD_EXEC_PREFIX to the list of directories to
1163         search with -L.
1164
1165 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
1166
1167         * reload1.c (indirect_symref_ok, reload_obstack): Make them
1168         static.
1169         * reload.h: Remove the prototype for indirect_symref_ok.
1170
1171         * reload1.c (indirect_symref_ok): Make it global.
1172         * reload.h: Add a prototype for indirect_symref_ok.
1173
1174 2005-03-22  Kaz Kojima  <kkojima@gcc.gnu.org>
1175
1176         * config/sh/sh.md (ashlhi3): Rename to *ashlhi3_n and add a new
1177         ashlhi3 expander.
1178
1179 2005-03-22  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
1180
1181         * tree.h (DECL_IGNORED_P, DECL_IN_SYSTEM_HEADER): Clarify comments.
1182
1183 2005-03-22  Daniel Berlin  <dberlin@dberlin.org>
1184
1185         * c-opts.c (c_common_parse_file): Only start/end main source file
1186         if debug hooks says the writer wants it.
1187         * dbxout.c (dbx_debug_hooks): Add start_end_main_source_file
1188         member.
1189         (xcoff_debug_hooks): Ditto.
1190         * debug.c (do_nothing_hooks): Ditto.
1191         * debug.h (gcc_debug_hooks): Ditto.
1192         * dwarf2out.c (dwarf2_debug_hooks): Ditto.
1193         * sdbout.c (sdb_debug_hooks): Ditto.
1194         * vmsdbgout.c (vmsdbg_debug_hooks): Ditto.
1195
1196 2005-03-22  Mark Mitchell  <mark@codesourcery.com>
1197
1198         * doc/extend.texi: Deprecate C++ min/max operators.
1199
1200 2005-03-22  Zdenek Dvorak  <dvorakz@suse.cz>
1201
1202         * tree-ssa-loop-ivopts.c (determine_iv_cost): Do not try to preserve
1203         artificial original candidates.
1204
1205 2005-03-22  Richard Guenther <rguenth@tat.physik.uni-tuebingen.de>
1206             Jan Hubicka  <jh@suse.cz>
1207             Steven Bosscher <stevenb@suse.de>
1208
1209         * cgraphunit.c (cgraph_estimate_size_after_inlining): Compute
1210         call cost based on argument sizes.
1211         (cgraph_mark_inline_edge): Avoid inline unit from shrinking by
1212         inlining.
1213         * params.def: (max-inline-inssn-single): Set to 450.
1214         (max-inline-insns-auto): Set to 90.
1215         (max-inline-insns-recursive): Set to 450
1216         (max-inline-insns-recursive-auto): Set to 450.
1217         (large-function-insns): Set to 2700.
1218         (inline-call-cost): New parameter.
1219         * tree-inline.c (estimate_move_cost): New function.
1220         (estimate_num_insns_1): Compute move sizes costs by estimate_move_cost
1221         for non-gimple-regs, set cost to 0 for gimple-regs.  Compute call size
1222         based on arguments.
1223         * tree-inline.h (estimate_move_cost): Declare.
1224         * invoke.texi: (max-inline-inssn-single): Change default to 450.
1225         (max-inline-insns-auto): Change default to 90.
1226         (max-inline-insns-recursive): Change default to 450
1227         (max-inline-insns-recursive-auto): Change default to 450.
1228         (large-function-insns): Change default to 2700.
1229         (inline-call-cost): Document new parameter.
1230
1231 2005-03-22  Richard Sandiford  <rsandifo@redhat.com>
1232
1233         * config/i860/i860.h (target_flags, TARGET_XP, TARGET_SWITCHES)
1234         (TARGET_DEFAULT): Delete.
1235         * config/i860/i860.opt: New file.
1236
1237 2005-03-22  Richard Sandiford  <rsandifo@redhat.com>
1238
1239         * config/frv/frv-protos.h (frv_branch_cost_string, frv_branch_cost_int)
1240         (frv_cpu_string, frv_condexec_insns_str, frv_condexec_insns)
1241         (frv_condexec_temps_str, frv_condexec_temps, frv_sched_lookahead_str)
1242         (frv_sched_lookahead): Delete.
1243         * config/frv/frv.h (MASK_DEFAULT_ALLOC_CC): Move to frv.c.
1244         (target_flags, MASK_GPR_32, MASK_FPR_32, MASK_SOFT_FLOAT)
1245         (MASK_ALLOC_CC, MASK_DWORD, MASK_DOUBLE, MASK_MEDIA, MASK_MULADD)
1246         (MASK_LIBPIC, MASK_ACC_4,  MASK_PACK, MASK_LONG_CALLS)
1247         (MASK_ALIGN_LABELS, MASK_LINKED_FP, MASK_BIG_TLS, MASK_DEBUG_ARG)
1248         (MASK_DEBUG_ADDR, MASK_DEBUG_STACK, MASK_DEBUG, MASK_DEBUG_LOC)
1249         (MASK_DEBUG_COND_EXEC, MASK_NO_COND_MOVE, MASK_NO_SCC)
1250         (MASK_NO_COND_EXEC, MASK_NO_VLIW_BRANCH, MASK_NO_MULTI_CE)
1251         (MASK_FDPIC, MASK_INLINE_PLT, MASK_GPREL_RO, MASK_DEFAULT)
1252         (TARGET_GPR_32, TARGET_FPR_32, TARGET_SOFT_FLOAT, TARGET_ALLOC_CC)
1253         (TARGET_DWORD, TARGET_DOUBLE, TARGET_MEDIA, TARGET_MULADD)
1254         (TARGET_LIBPIC, TARGET_ACC_4, TARGET_DEBUG_ARG, TARGET_DEBUG_ADDR)
1255         (TARGET_DEBUG_STACK, TARGET_DEBUG, TARGET_DEBUG_LOC)
1256         (TARGET_DEBUG_COND_EXEC, TARGET_NO_COND_MOVE, TARGET_NO_SCC)
1257         (TARGET_NO_COND_EXEC, TARGET_NO_VLIW_BRANCH, TARGET_NO_MULTI_CE)
1258         (TARGET_NO_NESTED_CE, TARGET_FDPIC, TARGET_INLINE_PLT, TARGET_BIG_TLS)
1259         (TARGET_GPREL_RO, TARGET_PACK, TARGET_LONG_CALLS, TARGET_ALIGN_LABELS)
1260         (TARGET_LINKED_FP, TARGET_GPR_64, TARGET_FPR_64, TARGET_HARD_FLOAT)
1261         (TARGET_FIXED_CC, TARGET_COND_MOVE, TARGET_SCC, TARGET_COND_EXEC)
1262         (TARGET_VLIW_BRANCH, TARGET_MULTI_CE, TARGET_NESTED_CE, TARGET_ACC_8)
1263         (TARGET_SWITCHES, TARGET_OPTIONS, DEFAULT_CONDEXEC_TEMPS)
1264         (DEFAULT_BRANCH_COST, DEFAULT_CONDEXEC_INSNS): Delete.
1265         * config/frv/frv.c (frv_branch_cost_string, frv_branch_cost_int)
1266         (frv_cpu_string, frv_condexec_insns_str, frv_condexec_insns)
1267         (frv_condexec_temps_str, frv_condexec_temps, frv_sched_lookahead_str)
1268         (frv_sched_lookahead): Delete.
1269         (MASK_DEFAULT_ALLOC_CC): Moved from frv.h.
1270         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Override defaults.
1271         (frv_handle_option): New function.  Move -mcpu= handling from...
1272         (frv_override_options): ...here.  Remove handling of other
1273         TARGET_OPTIONS.
1274         (frv_ifcvt_modify_tests): Check !TARGET_COND_EXEC instead of
1275         TARGET_NO_COND_EXEC and !TARGET_NESTED_CE to TARGET_NO_NESTED_CE.
1276         (frv_ifcvt_modify_multiple_tests): Likewise !TARGET_MULTI_CE
1277         and TARGET_NO_MULTI_CE.
1278         (frv_for_each_packet): Likewise TARGET_NO_VLIW_BRANCH and
1279         !TARGET_VLIW_BRANCH.
1280         * config/frv/frv.opt: New file.
1281
1282 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
1283
1284         * fold-const.c (fold_ternary): Take decomposed arguments of
1285         CALL_EXPR.
1286         (fold): Update a call to fold_ternary.
1287
1288         * fold-const.c (fold_build1, fold_build2, fold_build3): New.
1289         * tree.h: Add corresponding prototypes.
1290
1291 2005-03-22  Jakub Jelinek  <jakub@redhat.com>
1292
1293         PR target/20561
1294         * cfglayout.c (reemit_insn_block_notes): Don't put block notes in
1295         between jump table and its label.
1296         * final.c (shorten_branches): Handle notes in between ADDR_VEC
1297         resp. ADDR_DIFF_VEC and the label preceeding it.
1298         (final_scan_insn): Likewise.  Ensure ADDR_VEC resp. ADDR_DIFF_VEC
1299         is emitted in the right section.
1300
1301 2005-03-22  Kazu Hirata  <kazu@cs.umass.edu>
1302
1303         * fold-const.c (fold_unary, fold_binary): Update comments
1304         about arguments.
1305
1306 2005-03-22  Hans-Peter Nilsson  <hp@axis.com>
1307
1308         PR rtl-optimization/20527
1309         * combine.c (can_combine_p) [AUTO_INC_DEC]: When INSN has an
1310         REG_INC note, test that the register also isn't mentioned in PRED
1311         or SUCC.
1312
1313 2005-03-22  Ben Elliston  <bje@au.ibm.com>
1314
1315         * dwarf2out.c (dwarf_type_encoding_name): Remove unused prototype
1316         and definition.
1317
1318 2005-03-21  Mike Stump  <mrs@apple.com>
1319
1320         * varasm.c (default_assemble_visibility): Remove extra ().
1321
1322 2005-03-21  Roger Sayle  <roger@eyesopen.com>
1323
1324         PR middle-end/20557
1325         * bb-reorder.c (duplicate_computed_gotos): Use can_duplicate_block_p
1326         to determine whether a block can be duplicated, rather than test
1327         whether the block contains noncopyable insns ourselves.
1328
1329 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
1330
1331         * config/i860/i860.h (PREDICATE_CODES): Remove nonexistent
1332         predicates.
1333
1334 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
1335
1336         * config/ip2k/ip2k.h (target_flags, TARGET_SWITCHES): Delete.
1337
1338 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
1339
1340         * config/fr30/fr30.h (TARGET_SMALL_MODEL_MASK, TARGET_SMALL_MODEL)
1341         (TARGET_DEFAULT, target_flags, TARGET_SWITCHES): Delete.
1342         * config/fr30/fr30.opt: New file.
1343
1344 2005-03-18  Daniel Berlin  <dberlin@dberlin.org>
1345
1346         Fix PR tree-optimization/20542
1347
1348         * tree-flow-inline.h (overlap_subvar): Move to here.
1349         * tree-ssa-operands.c: From here.
1350         * tree-flow.h (overlap_subvar): Declare.
1351         * tree-ssa-alias.c (add_pointed_to_var): Use overlap_subvar here.
1352         * tree-ssa-loop-im.c (is_call_clobbered_ref): Return proper answer
1353         for variables with subvars.
1354
1355 2005-03-21 Mostafa Hagog <mustafa@il.ibm.com>
1356
1357         PR middle-end/20177
1358         * ddg.c (create_ddg_dependence): Ignore reg-anti dependency.
1359         * modulo-sched.c (const_iteration_count): Return on NULL
1360         pre-header.
1361         (print_node_sched_params): Return on NULL dump_file.
1362         (generate_reg_moves): Handle reg-anti dependencies and disregard
1363         closing branch when generating register moves.
1364         (sms_schedule): Mark the SMSed block dirty.
1365         * passes.c (rest_of_handle_sms): Call update_life_info for all
1366         basic-blocks.
1367         * testsuite/gcc.dg/20050321-1.c: New test.
1368
1369 2005-03-21  Bob Wilson  <bob.wilson@acm.org>
1370
1371         * config/xtensa/lib1funcs.asm (__mulsi3): Use symbolic name for ACCLO.
1372         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
1373         movqi_internal): Likewise.
1374
1375 2005-03-21  Bob Wilson  <bob.wilson@acm.org>
1376
1377         * config/xtensa/xtensa-protos.h: (xtensa_simm7, xtensa_uimm8,
1378         xtensa_uimm8x2, xtensa_uimm8x4, xtensa_ai4const, xtensa_lsi4x4,
1379         xtensa_b4const): Delete prototypes.
1380         (xtensa_simm8, xtensa_simm8x256, xtensa_simm12b, xtensa_b4constu,
1381         xtensa_mask_immediate, xtensa_mem_offset): Update prototypes.
1382         (xtensa_b4const_or_zero, xtensa_const_ok_for_letter_p,
1383         xtensa_extra_constraint): New prototypes.
1384         (add_operand, arith_operand, nonimmed_operand, mem_operand,
1385         mask_operand, extui_fldsz_operand, sext_operand, sext_fldsz_operand,
1386         lsbitnum_operand, branch_operand, ubranch_operand, call_insn_operand,
1387         move_operand, const_float_1_operand, fpmem_offset_operand,
1388         branch_operator, ubranch_operator, boolean_operator): Delete prototypes.
1389         * config/xtensa/xtensa.c (b4const_or_zero): Rename to ...
1390         (xtensa_b4const_or_zero): ...this.  Change return type to bool and
1391         argument type to HOST_WIDE_INT.
1392         (xtensa_simm8, xtensa_simm8x256, xtensa_simm12b,
1393         xtensa_mask_immediate): Likewise.
1394         (xtensa_uimm8, xtensa_uimm8x2, xtensa_uimm8x4, xtensa_b4const):
1395         Likewise.  Also make these functions static.
1396         (xtensa_simm7, xtensa_ai4const, xtensa_lsi4x4): Delete.
1397         (xtensa_const_ok_for_letter_p): New.
1398         (add_operand, arith_operand, nonimmed_operand, mem_operand,
1399         mask_operand, extui_fldsz_operand, sext_operand, sext_fldsz_operand,
1400         lsbitnum_operand, branch_operand, ubranch_operand, call_insn_operand,
1401         move_operand, const_float_1_operand, fpmem_offset_operand,
1402         branch_operator, ubranch_operator, boolean_operator): Move to
1403         predicates.md.
1404         (smalloffset_mem_p): Inline code from xtensa_lsi4x4.
1405         (xtensa_mem_offset): Change return type to bool.
1406         (xtensa_extra_constraint): New.
1407         (gen_int_relational): Update type of const_range_p function pointer.
1408         Use xtensa_b4const_or_zero.
1409         * config/xtensa/xtensa.h (CONST_OK_FOR_LETTER_P): Define to
1410         xtensa_const_ok_for_letter_p.  Update comments.
1411         (EXTRA_CONSTRAINT): Define to xtensa_extra_constraint.
1412         (PREDICATE_CODES): Delete.
1413         * config/xtensa/xtensa.md: Include predicates.md.
1414         * config/xtensa/predicates.md: New file.
1415
1416 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
1417
1418         * config/v850/v850-protos.h: Remove the prototypes for
1419         reg_or_int9_operand, reg_or_const_operand,
1420         pattern_is_ok_for_prepare, pattern_is_ok_for_dispose,
1421         reg_or_0_operand, reg_or_int5_operand, call_address_operand,
1422         movsi_source_operand, power_of_two_operand,
1423         not_power_of_two_operand, special_symbolref_operand,
1424         pattern_is_ok_for_prologue, pattern_is_ok_for_epilogue, and
1425         register_is_ok_for_epilogue.
1426         * config/v850/v850.c (reg_or_0_operand, reg_or_int5_operand,
1427         reg_or_int9_operand, reg_or_const_operand,
1428         call_address_operand, special_symbolref_operand,
1429         movsi_source_operand, power_of_two_operand,
1430         not_power_of_two_operand, register_is_ok_for_epilogue,
1431         pattern_is_ok_for_epilogue, pattern_is_ok_for_prologue,
1432         pattern_is_ok_for_dispose, pattern_is_ok_for_prepare): Move to
1433         predicates.md.
1434         * config/v850/v850.h (PREDICATE_CODES): Remove.
1435         * config/v850/v850.md: Include predicates.md.
1436         * config/v850/predicates.md: New.
1437
1438 2005-03-21  Zack Weinberg  <zack@codesourcery.com>
1439
1440         * Makefile.in (BASEVER, DEVPHASE, DATESTAMP)
1441         (BASEVER_c, DEVPHASE_c, DATESTAMP_c)
1442         (BASEVER_s, DEVPHASE_s, DATESTAMP_s, version): Set with :=.
1443         (itoolsdir, itoolsdatadir): Move definition above new first use.
1444         (install-itoolsdirs): New rule.
1445         (install-mkheaders): Depend on install-itoolsdirs, not
1446         install-include-dir.
1447
1448 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
1449
1450         * tree-into-ssa.c: Remove obsolete comments.
1451
1452 2005-03-21  Richard Guenther  <rguenth@gcc.gnu.org>
1453
1454         * tree-ssa-loop.c (gate_tree_complete_unroll): Run complete
1455         unrolling if -fpeel-loops is specified, too.
1456         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
1457         Remove superfluous check for flag_unroll_loops.
1458
1459 2005-03-21  Uros Bizjak  <uros@kss-loka.si>
1460
1461         * optabs.h (enum optab_index): Add new OTI_lrint and OTI_llrint.
1462         (lrint_optab, llrint_optab): Define corresponding macros.
1463         * optabs.c (init_optabs): Initialize lrint_optab and llrint_optab.
1464         * genopinit.c (optabs): Implement lrint_optab using lrintsi2
1465         pattern and llrint_optab using llrintdi2 patterns.
1466         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LRINT{,F,L}
1467         using lrint_optab and BUILT_IN_LLRINT{,F,L} using llrint_optab.
1468         (expand_builtin): Expand BUILT_IN_LRINT{,F,L} and
1469         BUILT_IN_LLRINT{,F,L} using expand_builtin_mathfn if
1470         flag_unsafe_math_optimizations is set.
1471
1472 2005-03-21  Paolo Bonzini  <bonzini@gnu.org>
1473
1474         * combine.c (combine_simplify_rtx, simplify_if_then_else,
1475         simplify_logical, if_then_else_cond, known_cond,
1476         simplify_comparison): Adjust calls to reverse_comparison.
1477         Don't use combine_reversed_comparison_code).
1478         (combine_reversed_comparison_code): Remove.
1479         (reversed_comparison): Using reversed_comparison_code, move it...
1480         * jump.c (reversed_comparison): ... here.
1481         * rtl.h (reversed_comparison): Add prototype.
1482
1483 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
1484
1485         * builtins.c (fold_builtin): Take decomposed arguments of
1486         CALL_EXPR.
1487         * fold-const.c (fold_ternary): Update a call to fold_builtin.
1488         * gimplify.c (gimplify_call_expr): Likewise.
1489         * tree-ssa-ccp.c (ccp_fold, ccp_fold_builtin): Likewise.
1490         * tree.h: Update the prototype of fold_builtin.
1491
1492 2005-03-21  Paolo Bonzini  <bonzini@gnu.org>
1493
1494         * rtl.h (struct rtx_hooks): Add gen_lowpart_no_emit.
1495         * rtlhooks.c (gen_lowpart_no_emit_general): New.
1496         * rtlhooks-def.h (gen_lowpart_no_emit_general): Declare.
1497         (RTL_HOOKS_GEN_LOWPART_NO_EMIT): New.
1498         * simplify-rtx.c (simplify_binary_operation_1): Use it.
1499
1500 2005-03-21  Kazu Hirata  <kazu@cs.umass.edu>
1501
1502         * builtins.c (fold_builtin_1): Take decomposed arguments of
1503         CALL_EXPR.
1504         (fold_builtin): Update a call to fold_builtin_1.
1505
1506 2005-03-21  Nathan Sidwell  <nathan@codesourcery.com>
1507
1508         PR other/20564
1509         * gcov.c (output_lines): Only output function block summary when
1510         outputting branch information.
1511         * doc/gcov.texi: Document format of preamble and additional block
1512         information lines.
1513
1514 2005-03-21  Richard Sandiford  <rsandifo@redhat.com>
1515
1516         * libgcc2.h (LIBGCC2_HAS_SF_MODE): New macro.
1517         (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_TF_MODE, LIBGCC2_HAS_XF_MODE): Make
1518         the defaults false if BITS_PER_UNIT != 8.
1519         (SFtype, SCtype, __fixsfdi, __floatdisf, __fixunssfSI, __fixunssfDI)
1520         (__powisf2, __divsc3, __mulsc3): Guard with LIBGCC2_HAS_SF_MODE rather
1521         than BITS_PER_UNIT != 8.
1522         (L_fixdfdi, L_fixsfdi, L_fixtfdi, L_fixunsdfdi, L_fixunsdfsi)
1523         (L_fixunssfdi, L_fixunssfsi, L_fixunstfdi, L_fixunsxfdi, L_fixunsxfsi)
1524         (L_fixxfdi, L_floatdidf, L_floatdisf, L_floatditf, L_floatdixf): Remove
1525         #undefs.
1526         * libgcc2.c (__fixunssfDI, __fixsfdi, __floatdisf, __fixunssfSI)
1527         (__powisf2, __divsc3, __mulsc3): Guard with LIBGCC2_HAS_SF_MODE.
1528
1529 2005-03-20  Roger Sayle  <roger@eyesopen.com>
1530
1531         PR middle-end/20539
1532         * fold-const.c (fold_binary): Fix type mismatch between
1533         TRUTH_{AND,OR,XOR}_EXPR nodes an their operands' types.
1534         (fold_binary) <TRUTH_XOR_EXPR>: Avoid calling invert_truthvalue
1535         for non-truth-valued expressions.
1536
1537         * c-common.c (c_common_truthvalue_conversion): Handle ERROR_MARK
1538         and FUNCTION_DECL in the main switch.
1539         <TRUTH_ANDIF_EXPR, TRUTH_ORIF_EXPR, TRUTH_AND_EXPR, TRUTH_OR_EXPR,
1540         TRUTH_XOR_EXPR>: When changing the result type of these tree nodes,
1541         we also need to convert their operands to match.
1542         <TRUTH_NOT_EXPR>: Likewise.
1543
1544 2005-03-21  Joseph S. Myers  <joseph@codesourcery.com>
1545
1546         * c-common.c (lvalue_or_else): Replace by lvalue_error; only give
1547         diagnostic without checking whether an lvalue.
1548         * c-common.h (lvalue_p): Remove.
1549         (enum lvalue_use): Update comment.
1550         (lvalue_or_else): Replace by lvalue_error.
1551         * c-typeck.c (lvalue_p): Make static.
1552         (lvalue_or_else): New.  Call lvalue_error.
1553
1554 2005-03-21  Alan Modra  <amodra@bigpond.net.au>
1555
1556         * config/rs6000/rs6000.c (rs6000_parm_start): New function.
1557         (function_arg_advance): Use rs6000_parm_start.
1558         (function_arg, rs6000_arg_partial_bytes): Likewise.
1559
1560 2005-03-20  Joseph S. Myers  <joseph@codesourcery.com>
1561
1562         * c-common.c (check_case_value): Adjust comment about stripping
1563         NOPs.
1564         (handle_vector_size_attribute): Don't strip NON_LVALUE_EXPR.
1565         * c-typeck.c (default_conversion, convert_arguments,
1566         build_modify_expr, convert_for_assignment, store_init_value,
1567         digest_init): Use STRIP_TYPE_NOPS instead of stripping nops
1568         manually.  Remove inaccurate comments.
1569
1570 2005-03-20  Roger Sayle  <roger@eyesopen.com>
1571             Joseph S. Myers  <joseph@codesourcery.com>
1572
1573         * varasm.c (do_assemble_alias): Restore comment describing function.
1574         Annotate the target parameter as potentially unused.
1575
1576 2005-03-20  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1577
1578         PR target/18551
1579         * config/avr/avr.c (avr_output_function_prologue): Do not use
1580         current_function_name() in a label, use a local label instead.
1581
1582 2005-03-20  David Edelsohn  <edelsohn@gnu.org>
1583
1584         * config/rs6000/rs6000.c (rs6000_generate_compare): Test
1585         flag_finite_math_only, not flag_unsafe_math_optimizations.
1586
1587 2005-03-20  Kazu Hirata  <kazu@cs.umass.edu>
1588
1589         * builtins.c (fold_builtin_1): Update a call to
1590         targetm.fold_builtin.
1591         * hooks.c (hook_tree_tree_bool_null): Rename to
1592         hook_tree_tree_tree_bool_null.  Take one more argument of type
1593         tree.
1594         * hooks.h: Update the prototype of hook_tree_tree_bool_null.
1595         * target-def.h (TARGET_FOLD_BUILTIN): Define it as
1596         hook_tree_tree_tree_bool_null.
1597         * target.h (gcc_target): Update the prototype of fold_builtin.
1598         * config/alpha/alpha.c (alpha_fold_builtin): Take decomposed
1599         arguments of CALL_EXPR.
1600         * doc/tm.texi (TARGET_FOLD_BUILTIN): Update.  Mention the
1601         new prototype.
1602
1603 2005-03-20  Jan Hubicka  <jh@suse.cz>
1604
1605         * cgraph.h (cgraph_node): Add prev_clone pointer.
1606         * cgraph.c (cgraph_remove_node): Remove from doubly linked chain.
1607         (cgraph_clone_node): Produce doubly linked chain.
1608
1609 2005-03-20  Joseph S. Myers  <joseph@codesourcery.com>
1610
1611         * c-common.c (handle_aligned_attribute, check_function_sentinel,
1612         get_nonnull_operand, handle_sentinel_attribute,
1613         check_function_arguments_recurse): Do not strip NOPS from
1614         INTEGER_CSTs.
1615         * c-decl.c (check_bitfield_type_and_width, build_enumerator):
1616         Likewise.
1617         * c-format.c (get_constant): Likewise.
1618         * c-parser.c (c_parser_postfix_expression): Likewise.
1619         * c-typeck.c (set_init_index): Likewise.
1620         (convert_arguments): Don't check for NOP_EXPR containing integer
1621         constant.
1622
1623 2005-03-20  Kazu Hirata  <kazu@cs.umass.edu>
1624
1625         * builtins.c (fold_fixed_mathfn, fold_builtin_trunc,
1626         fold_builtin_floor, fold_builtin_ceil, fold_builtin_lround):
1627         Take decomposed arguments of CALL_EXPR.
1628         (fold_builtin_1): Update calls to the functions mentioned
1629         above.
1630
1631 2005-03-20  Joseph S. Myers  <joseph@codesourcery.com>
1632
1633         * c-decl.c (check_bitfield_type_and_width): Require bit-field
1634         width to have integer type.
1635         (build_enumerator): Require enumerator value to have integer type.
1636
1637 2005-03-19  Joseph S. Myers  <joseph@codesourcery.com>
1638
1639         * doc/extend.texi (__builtin_inf): Move statement about INFINITY
1640         to __builtin_inff.
1641
1642 2005-03-19  Joseph S. Myers  <joseph@codesourcery.com>
1643
1644         * c.opt (ansi, std=iso9899:1990, std=iso9899:1999,
1645         std=iso9899:199x): Correct descriptions.
1646
1647 2005-03-19  Joseph S. Myers  <joseph@codesourcery.com>
1648
1649         * config.gcc: Consistently use solaris2.1[0-9]* instead of
1650         solaris2.1[0-9].
1651
1652 2005-03-19  Kazu Hirata  <kazu@cs.umass.edu>
1653
1654         * builtins.c (fold_builtin_memcpy): Take decomposed arguments
1655         of CALL_EXPR.
1656         (expand_builtin_memcpy, fold_builtin_1): Update calls to
1657         fold_builtin_memcpy.
1658
1659         * builtins.c (fold_trunc_transparent_mathfn): Take decomposed
1660         arguments of CALL_EXPR.
1661         (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil,
1662         fold_builtin_found, fold_builtin_1): Update calls to
1663         fold_trunc_transparent_mathfn.
1664
1665 2005-03-19  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1666
1667         PR middle-end/20493
1668         * fold-const.c (fold_widened_comparison): Don't optimize casts of
1669         function pointers on targets that require function pointer
1670         canonicalization.
1671         (fold_sign_changed_comparison): Likewise.
1672
1673 2005-03-19  Bernd Schmidt  <bernd.schmidt@analog.com>
1674
1675         * combine.c (try_combine): When changing the mode of a hard reg, make
1676         sure that doing so is valid.
1677
1678 2005-03-19  Richard Sandiford  <rsandifo@redhat.com>
1679
1680         * config/avr/avr.c (avr_init_stack, avr_mcu_name): Make static.
1681         (TARGET_HANDLE_OPTION): Override default.
1682         (avr_handle_option): New function.
1683         * config/avr/avr.h (MASK_ALL_DEBUG, MASK_ORDER_1, MASK_INSN_SIZE_DUMP)
1684         (MASK_ORDER_2, MASK_NO_TABLEJUMP, MASK_INT8, MASK_NO_INTERRUPTS)
1685         (MASK_CALL_PROLOGUES, MASK_TINY_STACK, MASK_SHORT_CALLS)
1686         (TARGET_ORDER_1, TARGET_ORDER_2, TARGET_INT8, TARGET_NO_INTERRUPTS)
1687         (TARGET_INSN_SIZE_DUMP, TARGET_CALL_PROLOGUES, TARGET_TINY_STACK)
1688         (TARGET_NO_TABLEJUMP, TARGET_SHORT_CALLS, TARGET_ALL_DEBUG)
1689         (TARGET_SWITCHES, avr_init_stack, avr_mcu_name)
1690         (TARGET_OPTIONS): Delete.
1691         * config/avr/avr.opt: New file.
1692
1693 2005-03-18  2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
1694
1695         * config/m32r/m32r-protos.h: Remove the prototypes for
1696         call_address_operand, symbolic_operand, seth_add3_operand,
1697         cmp_int16_operand, uint16_operand, reg_or_int16_operand,
1698         reg_or_uint16_operand, reg_or_cmp_int16_operand,
1699         two_insn_const_operand, move_src_operand,
1700         move_double_src_operand, move_dest_operand,
1701         eqne_comparison_operator, signed_comparison_operator,
1702         large_insn_p, conditional_move_operand, carry_compare_operand,
1703         m32r_block_immediate_operand, extend_operand,
1704         reg_or_eq_int16_operand, int8_operand, and
1705         reg_or_zero_operand.
1706         * config/m32r/m32r.c (call_address_operand, symbolic_operand,
1707         seth_add3_operand, int8_operand, cmp_int16_operand,
1708         uint16_operand, reg_or_int16_operand, reg_or_uint16_operand,
1709         reg_or_eq_int16_operand, reg_or_cmp_int16_operand,
1710         reg_or_zero_operand, two_insn_const_operand, move_src_operand,
1711         move_double_src_operand, move_dest_operand,
1712         eqne_comparison_operator, signed_comparison_operator,
1713         extend_operand, small_insn_p, large_insn_p,
1714         conditional_move_operand, carry_compare_operand,
1715         m32r_block_immediate_operand): Move to predicates.md.
1716         (MAX_MOVE_BYTES): Move to m32r.h.
1717         * config/m32r/m32r.h (PREDICATE_CODES): Remove.
1718         * config/m32r/m32r.md: Include predicates.md.
1719         * config/m32r/predicates.md: New.
1720
1721 2005-03-18  James E Wilson  <wilson@specifixinc.com>
1722
1723         PR c++/19769
1724         * dwarf2out.c (declare_in_namespace): Ignore decls with an abstract
1725         origin.
1726
1727 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
1728
1729         * config/mn10300/mn10300-protos.h: Remove the prototypes for
1730         call_address_operand, const_8bit_operand.
1731         * config/mn10300/mn10300.c (call_address_operand,
1732         const_8bit_operand, const_1f_operand): Move to predicates.md.
1733         * config/mn10300/mn10300.h (PREDICATE_CODES): Remove.
1734         * config/mn10300/mn10300.md: Include predicates.md.
1735         * config/mn10300/predicates.md: New.
1736
1737 2005-03-18  Joseph S. Myers  <joseph@codesourcery.com>
1738
1739         * c-common.c, c-decl.c, c-format.c, c-typeck.c: Use %D for
1740         declarations in diagnostics and %E for identifiers, not %s.
1741
1742 2005-03-18  Jan Hubicka  <jh@suse.cz>
1743             Dale Johannesen  <dalej@apple.com>
1744
1745         * basic-block.h (scale_bbs_frequencies_int,
1746         scale_bbs_frequencies_gcov_type): Declare.
1747         * cfg.c (RDIV): New macro.
1748         (update_bb_frequency_for_threading): Fix.
1749         * basic-block.h (scale_bbs_frequencies_int,
1750         scale_bbs_frequencies_gcov_type): New.
1751         * cfgloopmanip.c (scale_bbs_frequencies): Kill.
1752         (scale_loop_frequencies, duplicate_loop_to_header_edge): Use
1753         scale_bbs_frequencies_int.
1754         * tree-ssa-loop-ch.c (copy_loop_headers): Fix profiling info.
1755
1756 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
1757
1758         * config/m32r/m32r-protos.h: Remove the prototypes for
1759         call_address_operand, symbolic_operand, seth_add3_operand,
1760         cmp_int16_operand, uint16_operand, reg_or_int16_operand,
1761         reg_or_uint16_operand, reg_or_cmp_int16_operand,
1762         two_insn_const_operand, move_src_operand,
1763         move_double_src_operand, move_dest_operand,
1764         eqne_comparison_operator, signed_comparison_operator,
1765         large_insn_p, conditional_move_operand, carry_compare_operand,
1766         m32r_block_immediate_operand, extend_operand,
1767         reg_or_eq_int16_operand, int8_operand, and
1768         reg_or_zero_operand.
1769         * config/m32r/m32r.c (call_address_operand, symbolic_operand,
1770         seth_add3_operand, int8_operand, cmp_int16_operand,
1771         uint16_operand, reg_or_int16_operand, reg_or_uint16_operand,
1772         reg_or_eq_int16_operand, reg_or_cmp_int16_operand,
1773         reg_or_zero_operand, two_insn_const_operand, move_src_operand,
1774         move_double_src_operand, move_dest_operand,
1775         eqne_comparison_operator, signed_comparison_operator,
1776         extend_operand, small_insn_p, large_insn_p,
1777         conditional_move_operand, carry_compare_operand,
1778         m32r_block_immediate_operand): Move to predicates.md.
1779         (MAX_MOVE_BYTES): Move to m32r.h.
1780         * config/m32r/m32r.h (PREDICATE_CODES): Remove.
1781         * config/m32r/m32r.md: Include predicates.md.
1782         * config/m32r/predicates.md: New.
1783
1784         * config/pa/pa-protos.h: Add prototypes for magic_milli and
1785         shadd_constant_p.
1786         * config/pa/pa.c (reg_or_0_operand, call_operand_address,
1787         symbolic_operand, symbolic_memory_operand,
1788         reg_or_0_or_nonsymb_mem_operand, reg_before_reload_operand,
1789         indexed_memory_operand, move_dest_operand, move_src_operand,
1790         prefetch_cc_operand, prefetch_nocc_operand,
1791         reg_or_cint_move_operand, pic_label_operand, fp_reg_operand,
1792         arith_operand, arith11_operand, pre_cint_operand,
1793         post_cint_operan, arith_double_operand, ireg_or_int5_operand,
1794         ireg_operand, int5_operand, uint5_operand, int11_operand,
1795         uint32_operand, arith5_operand, and_operand, ior_operand,
1796         lhs_lshift_operand, lhs_lshift_cint_operand, arith32_operand,
1797         pc_or_label_operand, div_operand, plus_xor_ior_operator,
1798         shadd_operand, movb_comparison_operator,
1799         cmpib_comparison_operator): Move to predicates.md.
1800         (magic_milli, shadd_constant_p): Make it extern.
1801         * config/pa/pa.h (PREDICATE_CODES): Remove.
1802         * config/pa/pa.md: Include predicates.md.
1803         * config/pa/predicates.md: New.
1804
1805         * config/v850/v850.h (PREDICATE_CODES): Remove a nonexistent
1806         predicate.
1807
1808 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
1809
1810         * hooks.c, hooks.h, intl.c, opts.h, prefix.c, tree-gimple.c,
1811         config/alpha/ev4.md, config/alpha/ev5.md, config/alpha/ev6.md,
1812         config/alpha/freebsd.h, config/alpha/linux.h,
1813         config/alpha/netbsd.h, config/alpha/osf5.h,
1814         config/alpha/vms.h, config/arc/arc.c, config/arc/arc.h,
1815         config/h8300/h8300-protos.h, config/h8300/h8300.c,
1816         config/h8300/h8300.h, config/ia64/unwind-ia64.c,
1817         doc/cppopts.texi: Update copyright.
1818
1819 2005-03-18  Jan Hubicka  <jh@suse.cz>
1820
1821         PR middle-end/20225
1822         * cgraph.c (cgraph_mark_reachable_node): Assert that it is not called
1823         too late.
1824         * varasm.c (find_decl_and_mark_needed): Mark needed only when not
1825         called too late.
1826
1827 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
1828
1829         * tree-into-ssa.c (find_idf): Use VEC_quick_push instead of
1830         VEC_safe_push.
1831
1832 2005-03-18  Paolo Bonzini  <bonzini@gnu.org>
1833
1834         * combine.c (gen_binary): Remove.
1835         (known_cond, simplify_shift_const, find_split_point,
1836         combine_simplify_rtx, simplify_if_then_else, simplify_set,
1837         simplify_logical, expand_field_assignment, extract_left_shift,
1838         force_to_mode, if_then_else_cond, apply_distributive_law,
1839         simplify_and_const_int, simplify_shift_const, gen_lowpart_for_combine,
1840         simplify_comparison, reversed_comparison): Replace with
1841         simplify_gen_binary, simplify_gen_relational or
1842         distribute_and_simplify_rtx.
1843         (distribute_and_simplify_rtx): New function.
1844
1845 2005-03-18  Alexey Neyman  <alex.neyman@auriga.ru>
1846             Paolo Bonzini  <gcc.gnu.org>
1847
1848         * calls.c (setjmp_call_p, special_function_p): Update comments
1849         at the head of the functions.
1850
1851 2005-03-18  Jan Hubicka  <jh@suse.cz>
1852
1853         * tree-cfg.c (fold_cond_expr_cond): Use boolean types for condition.
1854
1855         * cgraph.c (cgraph_remove_node): Avoid loop in code deciding whether
1856         function body should be released; do not proactively release function
1857         bodies in non-unit-at-a-time mode.
1858
1859 2005-03-18  Ralf Corsepius  <ralf.corsepius@rtems.org>
1860
1861         * config/i386/t-rtems-i386 (MULTILIBS): Remove k6, athlon,
1862         mno-fp-ret-in-387 multilib variants.
1863
1864 2005-03-18  Richard Sandiford  <rsandifo@redhat.com>
1865
1866         * common.opt (m): Remove.
1867         * opts.c (handle_option): Pass 'm' options to set_target_switch if
1868         table lookup fails.
1869         (common_handle_option): Remove OPT_m case.
1870
1871 2005-03-18  Kazu Hirata  <kazu@cs.umass.edu>
1872
1873         * builtins.c (fold_builtin_bitop): Take decomposed arguments
1874         of CALL_EXPR.
1875         (fold_builtin_1): Update a call to fold_builtin_bitop.
1876
1877         * builtins.c (fold_builtin_signbit): Take decomposed arguments
1878         of CALL_EXPR.
1879         (fold_builtin_1): Update a call to fold_builtin_signbit.
1880
1881 2005-03-17  Dorit Naishlos  <dorit@il.ibm.com>
1882
1883         PR tree-optimization/20474
1884         * tree-vect-analyze.c (vect_analyze_pointer_ref_access): Check the
1885         size_type of the relevant pointer. Check for COMPLETE_TYPE_P.
1886
1887 2005-03-17  Kazu Hirata  <kazu@cs.umass.edu>
1888
1889         * config/h8300/h8300-protos.h: Remove prototypes for
1890         general_operand_src, general_operand_dst, single_one_operand,
1891         single_zero_operand, call_insn_operand,
1892         two_insn_adds_subs_operand, small_call_insn_operand,
1893         jump_address_operand, bit_operand, bit_memory_operand,
1894         stack_pointer_operand, const_int_gt_2_operand,
1895         const_int_ge_8_operand, const_int_qi_operand,
1896         const_int_hi_operand, incdec_operand, bit_operator,
1897         nshift_operator, eqne_operator, gtle_operator,
1898         gtuleu_operator, iorxor_operator.
1899         Add prototypes for h8sx_shift_type h8sx_classify_shift and
1900         h8300_ldm_stm_parallel.
1901         * config/h8300/h8300.c (h8sx_shift_type,): Move to
1902         h8300-protos.h.
1903         (SYMBOL_FLAG_FUNCVEC_FUNCTION, SYMBOL_FLAG_EIGHTBIT_DATA,
1904         SYMBOL_FLAG_TINY_DATA): Move to h8300.h.
1905         (h8300_ldm_stm_parallel): Make it extern.
1906         (h8300_ldm_parallel, h8300_stm_parallel,
1907         h8300_return_parallel, general_operand_src,
1908         general_operand_dst, h8300_dst_operand, h8300_src_operand,
1909         nibble_operand, reg_or_nibble_operand, single_one_operand,
1910         single_zero_operand, call_insn_operand,
1911         two_insn_adds_subs_operand, small_call_insn_operand,
1912         jump_address_operand, bit_operand, bit_memory_operand,
1913         stack_pointer_operand, const_int_gt_2_operand,
1914         const_int_ge_8_operand, const_int_qi_operand,
1915         const_int_hi_operand, incdec_operand, eqne_operator,
1916         gtle_operator, gtuleu_operator, iorxor_operator, bit_operator,
1917         h8sx_binary_memory_operator, h8sx_unary_memory_operator,
1918         h8sx_unary_shift_operator, h8sx_binary_shift_operator,
1919         nshift_operator): Move to predicates.md.
1920         * config/h8300/h8300.h (PREDICATE_CODES): Remove.
1921         * config/h8300/h8300.md: Include predicates.md.
1922         * config/h8300/predicates.md: New.
1923
1924 2005-03-17  Richard Henderson  <rth@redhat.com>
1925
1926         * config.gcc (ia64*-*-hpux*): Add extra_options.
1927         * config/ia64/hpux.h (SUBTARGET_SWITCHES): Remove.
1928         (TARGET_DEFAULT): Remove MASK_INLINE_FLOAT_DIV_THR.
1929         * config/ia64/ia64.c (ia64_fixed_range_string): Remove.
1930         (ia64_tls_size_string, ia64_tune_string): Remove.
1931         (ia64_tune): Init to PROCESSOR_ITANIUM2.
1932         (TARGET_DEFAULT_TARGET_FLAGS): New.
1933         (TARGET_HANDLE_OPTION): New.
1934         (ia64_override_options): Move options parsing ...
1935         (ia64_handle_option): ... here.  New.
1936         * config/ia64/ia64.h (target_flags, MASK_BIG_ENDIAN, MASK_GNU_AS,
1937         MASK_GNU_LD, MASK_NO_PIC, MASK_VOL_ASM_STOP, MASK_ILP32,
1938         MASK_REG_NAMES, MASK_NO_SDATA, MASK_CONST_GP, MASK_AUTO_PIC,
1939         MASK_INLINE_FLOAT_DIV_LAT, MASK_INLINE_FLOAT_DIV_THR,
1940         MASK_INLINE_INT_DIV_LAT, MASK_INLINE_INT_DIV_THR,
1941         MASK_INLINE_SQRT_LAT, MASK_INLINE_SQRT_THR, MASK_DWARF2_ASM,
1942         MASK_EARLY_STOP_BITS, TARGET_BIG_ENDIAN, TARGET_GNU_AS, TARGET_GNU_LD,
1943         TARGET_NO_PIC, TARGET_VOL_ASM_STOP, TARGET_ILP32, TARGET_REG_NAMES,
1944         TARGET_NO_SDATA, TARGET_CONST_GP, TARGET_AUTO_PIC,
1945         TARGET_INLINE_FLOAT_DIV_LAT, TARGET_INLINE_FLOAT_DIV_THR,
1946         TARGET_INLINE_INT_DIV_LAT, TARGET_INLINE_INT_DIV_THR,
1947         TARGET_INLINE_FLOAT_DIV, TARGET_INLINE_INT_DIV, TARGET_INLINE_SQRT_LAT,
1948         TARGET_INLINE_SQRT_THR, TARGET_INLINE_SQRT, TARGET_DWARF2_ASM,
1949         TARGET_EARLY_STOP_BITS): Remove.
1950         (TARGET_ILP32): Default false.
1951         (TARGET_SWITCHES, SUBTARGET_SWITCHES, TARGET_OPTIONS): Remove.
1952         (enum ia64_inline_type): New.
1953         (TARGET_DEFAULT): Remove MASK_INLINE_FLOAT_DIV_THR.
1954         * config/ia64/ia64.md: Update for new definitions of
1955         TARGET_INLINE_INT_DIV, TARGET_INLINE_FLOAT_DIV, TARGET_INLINE_SQRT.
1956         * config/ia64/ia64.opt: New file.
1957         * config/ia64/ilp32.opt: New file.
1958
1959 2005-03-17  H.J. Lu  <hongjiu.lu@intel.com>
1960
1961         PR target/18380
1962         * config/ia64/unwind-ia64.c (_Unwind_FindTableEntry): Removed.
1963
1964 2005-03-17  Kazu Hirata  <kazu@cs.umass.edu>
1965
1966         * config/h8300/h8300.c (h8300_init_once): Use MASK_H8300S_1
1967         instead of MASK_H8300S.
1968         * config/h8300/h8300.h (target_flags, MASK_H8300S, MASK_MAC,
1969         MASK_INT32, MASK_ADDRESSES, MASK_QUICKCALL, MASK_SLOWBYTE,
1970         MASK_NORMAL_MODE, MASK_RELAX, MASK_H8300H, MASK_ALIGN_300,
1971         MASK_H8300SX, TARGET_INT32, TARGET_ADDRESSES,
1972         TARGET_QUICKCALL, TARGET_SLOWBYTE, TARGET_H8300H,
1973         TARGET_H8300XS, TARGET_NORMAL_MODE, TARGET_ALIGN_300,
1974         TARGET_SWITCHES): Remove.
1975         (TARGET_H8300S): Redefine interms of TARGET_H8300S_1 and
1976         TARGET_H8300SX.
1977         * config/h8300/h8300.opt: New.
1978
1979         * config/alpha/alpha.opt, config/arc/arc.opt,
1980         config/h8300/h8300.opt, config/mips/mips.opt: Add copyright
1981         notices.
1982
1983 2005-03-17  Ian Lance Taylor  <ian@airs.com>
1984
1985         * gmon.c: Remove.
1986
1987 2005-03-17  Richard Sandiford  <rsandifo@redhat.com>
1988
1989         * config/arc/arc.c (arc_cpu_string): Make static.  Default to "base"
1990         (arc_text_string, arc_data_string, arc_rodata_string): Make static.
1991         (TARGET_HANDLE_OPTION): Override default.
1992         (arc_handle_option): New function.
1993         (arc_init): Remove code to set arch_cpu_string.
1994         * config/arc/arc.h (target_flags, TARGET_MASK_MANGLE_CPU)
1995         (TARGET_MANGLE_CPU, TARGET_MASK_MANGLE_CPU_LIBGCC)
1996         (TARGET_MANGLE_CPU_LIBGCC, TARGET_MASK_ALIGN_LOOPS, TARGET_ALIGN_LOOPS)
1997         (TARGET_MASK_BIG_ENDIAN, TARGET_BIG_ENDIAN, TARGET_MASK_NO_COND_EXEC)
1998         (TARGET_NO_COND_EXEC, TARGET_SWITCHES, TARGET_DEFAULT)
1999         (SUBTARGET_SWITCHES, arc_cpu_string, arc_text_string, arc_data_string)
2000         (arc_rodata_string, TARGET_OPTIONS): Delete.
2001         * config/arc/arc.opt: New file.
2002
2003 2005-03-17  Richard Henderson  <rth@redhat.com>
2004
2005         * doc/extend.texi (Weak Pragmas): New section.
2006         (attribute alias): Clarify that target must be in the same
2007         translation unit.
2008
2009 2005-03-17  Richard Henderson  <rth@redhat.com>
2010
2011         * config/alpha/alpha.opt: New file.
2012         * config/alpha/alpha.c (alpha_tune): New.  Rename all existing uses
2013         of alpha_cpu.
2014         (alpha_cpu_string, alpha_tune_string, alpha_tp_string,
2015         alpha_fprm_string, alpha_fptm_string): Make static.
2016         (alpha_tls_size_string): Remove.
2017         (alpha_handle_option): New.
2018         (override_options): Update for alpha_cpu/alpha_tune split.
2019         (alpha_file_start): Likewise.
2020         (TARGET_DEFAULT_TARGET_FLAGS): New.
2021         (TARGET_HANDLE_OPTION): New.
2022         * config/alpha/alpha.h (alpha_tune): Declare.
2023         (MASK_FP, MASK_FPREGS, TARGET_FPREGS, MASK_GAS, TARGET_GAS,
2024         MASK_IEEE_CONFORMANT, TARGET_IEEE_CONFORMANT, MASK_IEEE, TARGET_IEEE,
2025         MASK_IEEE_WITH_INEXACT, TARGET_IEEE_WITH_INEXACT, MASK_BUILD_CONSTANTS,
2026         TARGET_BUILD_CONSTANTS, MASK_FLOAT_VAX, TARGET_FLOAT_VAX, MASK_BWX,
2027         TARGET_BWX, MASK_MAX, TARGET_MAX, MASK_FIX, TARGET_FIX, MASK_CIX,
2028         TARGET_CIX, MASK_EXPLICIT_RELOCS, TARGET_EXPLICIT_RELOCS,
2029         MASK_SMALL_DATA, TARGET_SMALL_DATA, MASK_TLS_KERNEL, TARGET_TLS_KERNEL,
2030         MASK_SMALL_TEXT, TARGET_SMALL_TEXT, MASK_LONG_DOUBLE_128,
2031         TARGET_LONG_DOUBLE_128, MASK_CPU_EV5, TARGET_CPU_EV5, MASK_CPU_EV6,
2032         TARGET_CPU_EV6, MASK_SUPPORT_ARCH): Remove.
2033         (TARGET_SWITCHES, TARGET_OPTIONS): Remove.
2034         (TARGET_DEFAULT): Remove MASK_FP.
2035         (TARGET_FP): Redefined based on TARGET_SOFT_FP.
2036         (TARGET_SUPPORT_ARCH): Default on if HAVE_AS_EXPLICIT_RELOCS.
2037         (alpha_cpu_string, alpha_tune_string, alpha_fprm_string,
2038         alpha_fptm_string, alpha_tp_string, alpha_mlat_string,
2039         alpha_tls_size_string): Remove.
2040         * config/alpha/alpha.md (prefetch): Use alpha_cpu.
2041         (attribute tune): Rename from attribute cpu.
2042         * config/alpha/ev4.md: Update to match.
2043         * config/alpha/ev5.md, config/alpha/ev6.md: Likewise.
2044         * config/alpha/freebsd.h (TARGET_DEFAULT): Remove MASK_FP.
2045         * config/alpha/linux.h (TARGET_DEFAULT): Likewise.
2046         * config/alpha/netbsd.h (TARGET_DEFAULT): Likewise.
2047         * config/alpha/osf5.h (TARGET_DEFAULT): Likewise.
2048         * config/alpha/vms.h (TARGET_DEFAULT): Likewise.
2049
2050 2005-03-16  James E. Wilson  <wilson@specifixinc.com>
2051
2052         * config/ia64/ia64.c (issue_nops_and_insn): Check first_insn attribute,
2053         and return without creating new state if before_nops_num is nonzero.
2054         * config/ia64/ia64.md (first_insn): New attribute.
2055         (alloc): Set it to yes.
2056
2057 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
2058
2059         * tree-vectorizer.c (new_vec_stmt_info): Initialize
2060         STMT_VINFO_SUBVARS to NULL.
2061         * tree-vect-analyze.c (vect_analyze_data_refs): Ditto.
2062
2063 2005-03-16 Dale Johannesen  <dalej@apple.com>
2064
2065         * rtlanal.c (find_first_parameter_load):  Rewrite to
2066         return actual first param load or the call if none,
2067         instead of first in block, when not all loads exist.
2068
2069 2005-03-16  Roger Sayle  <roger@eyesopen.com>
2070
2071         * optabs.c (expand_copysign_absneg): Make static.
2072         * optabs.h (expand_copysign_absneg): Delete prototype.
2073         * config/rs6000/rs6000.md (copysigntf3): Delete pattern.
2074
2075 2005-03-16  Richard Henderson  <rth@redhat.com>
2076
2077         PR middle-end/15700
2078         * varasm.c (struct alias_pair): Rename from struct output_def_pair.
2079         (alias_pairs): Rename from output_defs.
2080         (find_decl_and_mark_needed): Split out from assemble_alias.
2081         (do_assemble_alias): New.
2082         (assemble_output_def): Remove.
2083         (finish_aliases_1, finish_aliases_2): New.
2084         (process_pending_assemble_output_defs): Remove.
2085         (assemble_alias): Defer aliases for which we don't yet have a
2086         non-external decl for the target symbol.
2087         * passes.c (rest_of_decl_compilation): Register variables with cgraph.
2088         * cgraphunit.c (cgraph_finalize_compilation_unit): Use finish_aliases_1.
2089         * toplev.c (compile_file): Use finish_aliases_2 instead of
2090         process_pending_assemble_output_defs.
2091         * tree.h (finish_aliases_1, finish_aliases_2): Declare.
2092         (process_pending_assemble_output_defs): Remove.
2093
2094 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
2095
2096         Fix PR tree-optimization/20489
2097
2098         * tree-ssa-alias.c (push_fields_onto_fieldstack): DTRT
2099         for empty structures.
2100
2101 2005-03-16  Daniel Berlin  <dberlin@dberlin.org>
2102
2103         Fix PR tree-optimization/20490
2104
2105         * tree-ssa-pre.c (create_expression_by_pieces): Use
2106         force_gimple_operand on result of fold.
2107
2108 2005-03-16  Andrew Pinski  <pinskia@physics.uc.edu>
2109
2110         * config/i386/emmintrin.h (_mm_extract_epi16): Correct the number
2111         of closing parenthesis.
2112
2113 2005-03-16  Kazu Hirata  <kazu@cs.umass.edu>
2114
2115         * builtins.c (expand_movstr): Update a call to
2116         fold_builtin_strcpy.
2117         (expand_builtin_strncpy): Update a call to
2118         fold_builtin_strncpy.
2119         (fold_builtin_strcpy, fold_builtin_strncpy): Take decomosed
2120         arguments of CALL_EXPR.
2121         (fold_builtin_1): Update calls to fold_builtin_strcpy and
2122         fold_builtin_strncpy.
2123         * tree-ssa-ccp.c (ccp_fold_builtin): Likewise.
2124         * tree.h: Update the prototypes of fold_builtin_strcpy and
2125         fold_builtin_strncpy.
2126
2127 2005-03-16  Steven Bosscher  <stevenb@suse.de>
2128             Dorit Naishlos  <dorit@il.ibm.com>
2129
2130         * tree-vect-analyze.c (vect_enhance_data_refs_alignment): Copy
2131         UNITS_PER_SIMD_WORD to a local variable to avoid a "division by zero"
2132         error.
2133
2134 2005-03-16  Steven Bosscher  <stevenb@suse.de>
2135
2136         * tree-inline.c (walk_type_fields, walk_tree,
2137         walk_tree_without_duplicates): Move from here...
2138         * tree.c: ...to here.
2139
2140 2005-03-15  Zack Weinberg  <zack@codesourcery.com>
2141
2142         * BASE-VER, DATESTAMP, DEV-PHASE: New files.
2143         * Makefile.in (gcc_version, gcc_version_trigger, ): Delete.
2144         (BASEVER, DEVPHASE, DATESTAMP, BASEVER_c, DEVPHASE_c, DATESTAMP_c)
2145         (BASEVER_s, DEVPHASE_s, DATESTAMP_s): New variables.
2146         (version): Define using $(BASEVER_c).
2147         (Makefile, config.status, build/gcov-iov.o): No longer depends on
2148         version.c.
2149         (version.o): Depend on version files; add custom generation command.
2150         (prefix.o): Define BASEVER on command line.
2151         (s-iov): Depend on version files; adjust command.
2152         (TEXI_CPP_FILES, TEX_IGCC_FILES, TEXI_GCCINT_FILES, TEXI_CPPINT_FILES):
2153         Add gcc-vers.texi.
2154         (gcc-vers.texi): New rule.
2155         (doc/%.info, doc/%.dvi): Add -I . to command line.
2156         (doc/gccinstall.dvi): Likewise.
2157         (PACKAGE): Delete.  All uses replaced with "gcc".
2158         * aclocal.m4: Do not include gcc-version.m4.
2159         * configure.ac: Do not invoke TL_AC_GCC_VERSION.
2160         Do not AC_SUBST nor AC_DEFINE PACKAGE or VERSION.
2161         Set is_release based on contents of DEV-PHASE.
2162         Set gcc_version based on contents of BASE-VER.
2163         Define WIN32_REGISTRY_KEY only if the user overrode the default.
2164         * config.in, configure: Regenerate.
2165         * gccbug.in: Determine version of GCC in use at runtime.
2166         * gcov-iov.c: Get version number and development phase from
2167         command line, not by including version.c.
2168         * intl.c: Replace all uses of PACKAGE with "gcc".
2169         * libada-mk.in: Delete unused "gcc_version" variable.
2170         * prefix.c: Default WIN32_REGISTRY_KEY to BASEVER.
2171         * version.c: (VERSUFFIX): New hook for redistributors; adjust
2172         commentary to match.
2173         (version_string): Put together from pieces.
2174         * config/alpha/x-vms: Do not use $(gcc_version).
2175         * config/i386/t-nwld: Likewise.
2176         * doc/include/gcc-common.texi: Include gcc-vers.texi for
2177         version-GCC and DEVELOPMENT.
2178
2179 2005-03-15  Roger Sayle  <roger@eyesopen.com>
2180
2181         PR tree-optimization/17454
2182         * tree.c (tree_size): Add case for TREE_BINFO.
2183         * fold-const.c (fold_checksum_tree): Only clear the overloaded
2184         field TYPE_CACHED_VALUES if TYPE_CACHED_VALUES_P is set.
2185
2186 2005-03-15  Roger Sayle  <roger@eyesopen.com>
2187
2188         * optabs.c (expand_doubleword_mult): Avoid clobbering op0 and
2189         op1 whilst expanding the signed widenening multiply variant.
2190
2191 2005-03-15  Richard Sandiford  <rsandifo@redhat.com>
2192
2193         * toplev.c (display_target_options): Avoid unused variable warning if
2194         TARGET_SWITCHES and TARGET_OPTIONS are both undefined.
2195         * config/mips/mips.c (mips_arch_string, mips_tune_string): Make static.
2196         (mips_isa_string, mips_abi_string, mips_fix_vr4130_string): Delete.
2197         (mips_isa): Initialize to MIPS_ABI_DEFAULT.
2198         (mips_isa_info): New variable.
2199         (mips_parse_cpu): Remove the first argument and leave the caller
2200         to report errors.
2201         (TARGET_HANDLE_OPTION): Override default.
2202         (mips_handle_option): New function.  Move option validation code from...
2203         (override_options): ...here.  Update calls to mips_parse_cpu.
2204         * config/mips/mips.h (mips_arch_string, mips_tune_string)
2205         (mips_isa_string, mips_abi_string, TARGET_OPTIONS)
2206         (SUBTARGET_TARGET_OPTIONS): Delete.
2207         * config/mips/mips.opt (mabi=, march=, mflush-func=, mips)
2208         (mno-flush-func, mtune=): New options.
2209
2210 2005-03-15  Roger Sayle  <roger@eyesopen.com>
2211             Richard Henderson  <rth@redhat.com>
2212
2213         * real.c (c4x_single_format, c4x_extended_format): Provide values
2214         for signbit_ro for c4x's single and extended floating point formats.
2215         * optabs.c (expand_copysign): Use the floating point format's
2216         signbit_ro for expanding via expand_copysign_absneg, and it's
2217         signbit_rw field for expanding via expand_copysign_bit.
2218
2219 2005-03-15  Dorit Naishlos  <dorit@il.ibm.com>
2220
2221         * tree-vectorizer.h (unknown_alignment_for_access_p): Replaced by
2222         known_alignment_for_access_p.
2223         (known_alignment_for_access_p): New.
2224         (do_peeling_for_alignment): Field made int instead of bool and renamed
2225         to peeling_for_alignment.
2226         (LOOP_DO_PEELING_FOR_ALIGNMENT): Renamed to LOOP_PEELING_FOR_ALIGNMENT.
2227         * tree-vect-analyze.c (vect_determine_vectorization_factor): New. This
2228         functionality used to be in vect_analyze_operations.
2229         (vect_analyze_operations): Code to determine vectorization factor was
2230         moved to vect_determine_vectorization_factor.
2231         (vect_enhance_data_refs_alignment): Update to correct alignment when it
2232         is known instead of -1.  Set LOOP_PEELING_FOR_ALIGNMENT to peeling
2233         factor.
2234         (vect_analyze_loop): Call vect_determine_vectorization_factor (used to
2235         be part of vect_analyze_operations).
2236         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Use fold when
2237         creating the guard condition, as the number of iterations may be
2238         constant.
2239         (slpeel_tree_peel_loop_to_edge): Use new name of
2240         LOOP_DO_PEELING_FOR_ALIGNMENT. Set it to 0 instead of false.
2241         * tree-vect-transform.c (vect_gen_niters_for_prolog_loop): Handle known
2242         alignment case more efficiently. Use LOOP_PEELING_FOR_ALIGNMENT.
2243         (vect_do_peeling_for_alignment): Use fold.
2244         (vect_transform_loop): Use new name of LOOP_DO_PEELING_FOR_ALIGNMENT.
2245
2246         (vect_update_inits_of_dr): Renamed to
2247         vect_update_init_of_dr.
2248         (vect_update_inits_of_drs): Use new name of vect_update_inits_of_dr.
2249         (vectorizable_store): Fix assertion to use == instead of =.
2250
2251 2005-03-15  Daniel Jacobowitz  <dan@codesourcery.com>
2252
2253         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Don't clear
2254         call_used_regs for wCG registers.
2255
2256 2005-03-15  Ulrich Weigand  <uweigand@de.ibm.com>
2257
2258         * config/s390/s390.c (s390_secondary_output_reload_class): Adapt check
2259         for non-offsettable memory references to cope with outstanding reload
2260         replacements, take 2.
2261
2262 2005-03-15  Uros Bizjak  <uros@kss-loka.si>
2263
2264         PR target/18668
2265         * config/i386/i386.h (x86_fisttp): New.
2266         (TARGET_FISTTP): New macro.
2267         * config/i386/i386.c (x86_fisttp): Set for NOCONA.
2268         (output_fix_trunc): Add fisttp parameter.  Generate fisttp x87
2269         instruction when fisttp flag is set.
2270         * config/i386/i386-protos.h (output_fix_trunc): Change declaration.
2271
2272         * config/i386/i386.md (type attribute): Add fisttp.
2273         (unit attribute): Set to i387 for fisttp type.
2274         (X87MODEF, X87MODEI, SSEMODEF, SSEMODEI24): New mode macros.
2275         (fix_truncxfdi2, fix_truncxfsi2): Generate fisttp patterns for
2276         TARGET_FISTTP.
2277         (fix_truncdfdi2, fix_truncsfdi2, fix_truncdfsi2, fix_truncsfsi2):
2278         Generate fisttp patterns for TARGET_FISTTP. Implement using mode
2279         macros.
2280         (fix_truncxfhi2, fix_truncdfhi2, fix_truncsfhi2): Generate fisttp
2281         patterns for TARGET_FISTTP.  Enable patterns for
2282         (TARGET_FISTTP && !TARGET_SSE_MATH). Implement using mode macros.
2283         (fix_trunc<mode>_i387_fisttp_1, fix_trunc<mode>_i387_fisttp,
2284         fix_trunc<mode>_i387_fisttp_with_temp): New instruction patterns to
2285         implement fisttp x87 insn.
2286         (fix_trunc*_i387_fisttp splitters): New patterns.
2287         (*fix_truncdi_i387, *fix_truncsi_i387, *fix_trunchi_i387):
2288         Rename to *fix_trunc<mode>_i387_1.  Implement using mode macros.
2289         Disable patterns for TARGET_FISTTP.  Add comment about FLAGS_REG
2290         clobber.
2291         (fix_truncdi_memory, fix_truncdi_nomemory, fix_trunchi_nomemory):
2292         Rename to fix_trunc<mode>_i387 and fix_trunc<mode>_i387_with_temp.
2293         Implement using mode macros. Disable patterns for TARGET_FISTTP.
2294         (fix_truncsi_memory, fix_truncsi_nomemory, fix_trunchi_memory,
2295         fix_trunchi_nomemory): Rename to fix_trunc<mode>_i387 and
2296         fix_trunc<mode>_i387_with_temp. Implement using mode macros.
2297         Disable patterns for TARGET_FISTTP.
2298         (fix_trunc*_i387 splitters): Implement usign mode macros.
2299         (fix_truncdfdi_sse, fix_truncsfdi_sse, fix_truncdfsi_sse,
2300         fix_truncsfsi_sse): Disable for (TARGET_FISTTP && !TARGET_SSE_MATH).
2301         (fix_trunx*_sse peephole2s): Implement using mode macros.
2302
2303 2005-03-15  J"orn Rennecke <joern.rennecke@st.com>
2304
2305         PR rtl-optimization/20291
2306         * combine.c (try_combine): If splitting fails, re-try with
2307         original combined pattern, i.e. before clobber stripping.
2308
2309 2005-03-14  Eric Christopher  <echristo@redhat.com>
2310
2311         * config/mips/mips.h (DWARF_CIE_DATA_ALIGNMENT): Change for
2312         STACK_GROWS_DOWNWARD.
2313
2314 2005-03-14  Roger Sayle  <roger@eyesopen.com>
2315
2316         * real.h (struct real_format): Split the signbit field into two
2317         two fields, signbit_ro and signbit_rw.
2318         * real.c (ieee_single_format, mips_single_format, ieee_double_format,
2319         mips_double_format, ieee_extended_motorola_format,
2320         ieee_extended_intel_96_format, ieee_extended_intel_96_round_53_format,
2321         ieee_extended_intel_128_format, ibm_extended_format,
2322         mips_extended_format, ieee_quad_format, mips_quad_format,
2323         vax_f_format, vax_d_format, vax_g_format, i370_single_format,
2324         i370_double_format, c4x_single_format, c4x_extended_format,
2325         real_internal_format): Update initializers for new field.
2326         * builtins.c (expand_builtin_signbit): Use signbit_ro field of the
2327         real_format structure.
2328         * optabs.c (expand_absneg_bit, expand_copysign): Use signbit_rw
2329         field of the real_format structure.
2330
2331 2005-03-14  Daniel Berlin <dberlin@dberlin.org>
2332
2333         Fix PR tree-optimization/20458
2334
2335         * tree-flow-inline.h (mark_call_clobbered): Don't fiddle
2336         DECL_EXTERNAL on STRUCT_FIELD tags.
2337         (clear_call_clobbered): Ditto.
2338         * tree-ssa-operands.c (note_addressable): Make sure the original
2339         variable doesn't slip into the addressable list if we have
2340         subvars.
2341         * tree-tailcall.c (suitable_for_tail_opt_p): Look at STRUCT_FIELD
2342         tags too.
2343
2344 2005-03-14  Geoffrey Keating  <geoffk@apple.com>
2345
2346         * doc/cppopts.texi (-fexec-charset): Add concept index entry.
2347         (-fwide-exec-charset): Likewise.
2348         (-finput-charset): Likewise.
2349         * doc/invoke.texi (Warning Options): Document -Wnormalized=.
2350         * c-opts.c (c_common_handle_option): Handle -Wnormalized=.
2351         * c.opt (Wnormalized): New.
2352
2353 2005-03-14  Devang Patel  <dpatel@apple.com>
2354
2355         * doc/invoke.texi: Add reference to Visibility document.
2356
2357 2005-03-14  Richard Sandiford  <rsandifo@redhat.com>
2358
2359         * config.gcc (mips*-*-*): Rename MASK_SPLIT_ADDRS to
2360         MASK_SPLIT_ADDRESSES.
2361         * config/mips/mips.h (target_flags, mips_fix_vr4130_string): Delete.
2362         (MASK_INT64, MASK_LONG64, MASK_SPLIT_ADDR, MASK_NO_FUSED_MADD)
2363         (MASK_EXPLICIT_RELOCS, MASK_MEMCPY, MASK_SOFT_FLOAT)
2364         (MASK_FLOAT64, MASK_ABICALLS, MASK_XGOT, MASK_LONG_CALLS)
2365         (MASK_64BIT, MASK_EMBEDDED_DATA, MASK_BIG_ENDIAN)
2366         (MASK_SINGLE_FLOAT, MASK_MAD, MASK_4300_MUL_FIX, MASK_MIPS16)
2367         (MASK_NO_CHECK_ZERO_DIV, MASK_BRANCHLIKELY)
2368         (MASK_UNINIT_CONST_IN_RODATA, MASK_FIX_R4000, MASK_FIX_R4400)
2369         (MASK_FIX_SB1, MASK_FIX_VR4120, MASK_VR4130_ALIGN)
2370         (MASK_FP_EXCEPTIONS, MASK_DIVIDE_BREAKS, MASK_PAIRED_SINGLE)
2371         (MASK_MIPS3D, MASK_SYM32, MASK_DEBUG, MASK_DEBUG_D)
2372         (MASK_MIPS_TFILE, TARGET_INT64, TARGET_LONG64, TARGET_FLOAT64)
2373         (TARGET_64BIT, TARGET_SPLIT_ADDRESSES, TARGET_DEBUG_MODE)
2374         (TARGET_DEBUG_D_MODE, TARGET_MEMCPY, TARGET_ABICALLS)
2375         (TARGET_XGOT, TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT)
2376         (TARGET_LONG_CALLS, TARGET_EMBEDDED_DATA)
2377         (TARGET_UNINIT_CONST_IN_RODATA, TARGET_BIG_ENDIAN)
2378         (TARGET_SINGLE_FLOAT, TARGET_DOUBLE_FLOAT, TARGET_MAD)
2379         (TARGET_FUSED_MADD, TARGET_4300_MUL_FIX, TARGET_CHECK_ZERO_DIV)
2380         (TARGET_DIVIDE_TRAPS, TARGET_BRANCHLIKELY, TARGET_FIX_SB1)
2381         (TARGET_FIX_R4000, TARGET_FIX_R4400, TARGET_FIX_VR4120)
2382         (TARGET_FIX_VR4130, TARGET_VR4130_ALIGN, TARGET_FP_EXCEPTIONS)
2383         (TARGET_PAIRED_SINGLE_FLOAT, TARGET_MIPS3D, TARGET_SYM32)
2384         (TARGET_EXPLICIT_RELOCS): Delete.
2385         (TARGET_SWITCHES, SUBTARGET_TARGET_SWITCHES): Delete.
2386         (TARGET_OPTIONS): Remove entry for -mfix-vr4130.
2387         * config/mips/mips.c (TARGET_DEFAULT_TARGET_FLAGS): Define.
2388         (override_options): Set MASK_LONG64 if -mint64 is given and no
2389         -mlongXX option is.  Complain about -mint64 -mlong32.
2390         (override_options, CMP_BUILTINS, mips_bdesc, sb1_desc): Rename
2391         MASK_PAIRED_SINGLE to MASK_PAIRED_SINGLE_FLOAT.
2392         * config/mips/mips.opt: New file.
2393
2394 2005-03-14  Richard Sandiford  <rsandifo@redhat.com>
2395
2396         * config.gcc (extra_options): New variable for listing option files.
2397         Add ${cpu_type}/${cpu_type}.opt to it if that file exists.
2398         * configure.ac (extra_opt_files): New AC_SUBST variable.
2399         (tm_file_list, tm_include_list): Include options.h first.
2400         * configure: Regenerate.
2401         * Makefile.in (extra_opt_files, ALL_OPT_FILES): New variables.
2402         (s-options): Use $(ALL_OPT_FILES) instead of $(lang_opt_files)
2403         (s-options-h): New rule.
2404         (options.h): Depend on it.
2405         (TEXI_GCCINT_FILES): Add options.texi.
2406         * hooks.h (hook_bool_size_t_constcharptr_int_true): Declare.
2407         * hooks.c (hook_bool_size_t_constcharptr_int_true): New function.
2408         * target.h (gcc_target): Add default_target_flags and handle_option.
2409         * target-def.h (TARGET_DEFAULT_TARGET_FLAGS)
2410         (TARGET_HANDLE_OPTION): New macros.
2411         (TARGET_INITIALIZER): Include them.
2412         * opt-functions.awk (opt_args, nth_arg): New functions.
2413         (switch_flags): Handle the "Target" flag.
2414         (var_args): Delete.
2415         (var_name): Use opt_args and nth_arg.
2416         (var_set, var_ref): Likewise.  Handle "Mask" and "InverseMask".
2417         * opth-gen.awk: Declare target_flags.  Declare MASK_* and TARGET_*
2418         macros for the "Mask" and "InverseMask" options.
2419         * opts.h (cl_var_cond): New enum.
2420         (cl_option): Replace the "has_set_value" and "set_value" fields with
2421         "var_cond" and "var_value".
2422         (CL_TARGET): New macro.
2423         (option_enabled, print_filtered_help): Declare.
2424         (decode_options): Move definition.
2425         * opts.c (handle_option): Search for the original option before
2426         removing any "no-" prefix.  Handle CL_TARGET.  Adjust for the new
2427         var_cond and var_value fields.  Use targetm.handle_option to handle
2428         target options.
2429         (decode_options): Set target_flags to targetm.default_target_flags.
2430         (print_filtered_help): Make global.  Handle CL_TARGET.
2431         (option_enabled): New function.
2432         * toplev.c (target_switches): Guard with #ifdef TARGET_SWITCHES.
2433         (display_target_options, set_target_switch, print_switch_values)
2434         (default_pch_valid_p): Guard uses of target_switches with
2435         #ifdef TARGET_SWITCHES.  Also...
2436         (display_target_options): Display the CL_TARGET entries in cl_options.
2437         (set_target_option): Don't complain about the "" option when
2438         TARGET_SWITCHES is undefined.
2439         (print_switch_values): Use option_enabled.
2440         (default_pch_valid_p): Check cl_options[] when looking for something
2441         that has changed the value of target_flags.
2442         * c.opt: Remove documentation from top of file.
2443         * doc/gccint.texi: Add an "Options" chapter.  Include options.texi.
2444         * doc/sourecebuild.texi: Refer to the new options documentation
2445         instead of c.opt.  Document machine-specific .opt files.
2446         * doc/tm.texi (target_flags): Say that this variable is declared
2447         by options.h.
2448         (TARGET_DEFAULT_TARGET_FLAGS, TARGET_HANDLE_OPTION): Document.
2449         (TARGET_SWITCHES, TARGET_OPTIONS): Refer to the option files as
2450         an alternative.
2451         * doc/options.texi: New file.
2452
2453 2005-03-14  Alexandre Oliva  <aoliva@redhat.com>
2454
2455         PR middle-end/18628
2456         * cse.c (fold_rtx_mem): Don't fold a load from a jumptable into a
2457         register.
2458
2459 2005-03-14  Alexandre Oliva  <aoliva@redhat.com>
2460
2461         PR c++/20280
2462         * gimplify.c (gimplify_cond_expr): Add fallback argument.  Use a
2463         temporary variable of pointer type if an lvalues is required.
2464         (gimplify_modify_expr_rhs): Request an rvalue from it.
2465         (gimplify_expr): Pass fallback on.
2466
2467 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
2468
2469         * cfgbuild.c: Update comments.
2470
2471 2005-03-14  Roger Sayle  <roger@eyesopen.com>
2472
2473         PR rtl-optimization/17236
2474         * optabs.c (expand_doubleword_mult): New helper function split out
2475         from expand_binop.  Permute the order in which instructions are
2476         emitted to minimize the number of simultaneously live registers.
2477         (expand_binop): Call expand_doubleword_mult to synthesize a double
2478         word multiplication.
2479
2480 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
2481
2482         * basic-block.h: Update the prototypes of cached_make_edge and
2483         rtl_make_eh_edge.
2484         * cfg.c (cached_make_edge): Take edge_cache representing one
2485         row of the adjacency matrix of edges.
2486         * cfgbuild.c (make_label_edge, rtl_make_eh_edge): Likewise.
2487         (make_edges): Initialize edge_cache to represent one row of
2488         the adjacency matrix of edges.
2489
2490 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
2491
2492         * tree-ssa-phiopt.c (minmax_replacement, blocks_in_phiopt_order):
2493         New functions.
2494         (tree_ssa_phiopt): Use blocks_in_phiopt_order and minmax_replacement.
2495         Remove unused removed_phis variable.
2496         (conditional_replacement): Use build1/build2.
2497         (abs_replacement): Use last_and_only_stmt and build1/build2.
2498
2499 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
2500
2501         * builtin-attrs.def (ATTR_NOVOPS, ATTR_NOVOPS_LIST,
2502         ATTR_PURE_NOTHROW_NOVOPS_LIST): New.
2503         * builtins.def (ATTR_MATHFN_FPROUNDING): Use NOVOPS.
2504         (BUILT_IN_PREFETCH): Set the NOVOPS attribute.
2505         * c-common.c (handle_novops_attribute): New function.
2506         (c_common_attribute_table): Add "no vops" entry.
2507         * c-decl.c (merge_decls): Copy DECL_IS_NOVOPS.
2508         * calls.c (flags_from_decl_or_type): Set ECF_NOVOPS.
2509         * tree-ssa-operands.c (get_call_expr_operands): Do not
2510         create virtual operands for calls with ECF_NOVOPS flag.
2511         * tree.h (DECL_IS_NOVOPS): New macro.
2512         (struct tree_decl): Add novops_flag.
2513         (ECF_NOVOPS): New constant.
2514
2515 2005-03-14  Uros Bizjak  <uros@kss-loka.si>
2516
2517         PR target/17688
2518         * config/i386/i386.c (x86_use_himode_fiop): New.
2519         (x86_use_simode_fiop): Rename from x86_use_fiop.
2520         * config/i386/i386.h (x86_use_himode_fiop): Declare.
2521         (TARGET_USE_HIMODE_FIOP): New.
2522         (x86_use_simode_fiop): Rename from x86_use_fiop.
2523         (TARGET_USE_SIMODE_FIOP): Rename from TARGET_USE_FIOP.
2524
2525         * config/i386/i386.md (X87MODEI12): New mode macro define.
2526         (*cmpfp_<mode>): Rename from *cmpfp_si.  Use X87MODEI12 mode macro
2527         to implement x87 FP compare with HImode input operands.
2528         (*fp_jcc_8<mode>_387, splitter): Rename from *fp_jcc_8_387.
2529         Use X87MODEI12 mode macro to handle HImode input operands.
2530         (*fop_sf_2<mode>_i387, *fop_sf_3<mode>_i387, *fop_df_2<mode>_i387,
2531         *fop_df_3<mode>_i387, *fop_xf_2<mode>_i387, *fop_xf_3<mode>_i387):
2532         Renamed from *fop_sf_2_i387, *fop_sf_3_i387, *fop_df_2_i387,
2533         *fop_df_3_i387, *fop_xf_2_i387, *fop_xf_3_i387. Use X87MODEI12 mode
2534         macro to implement x87 operators with HImode input operands.
2535         (fop splitters): Use X87MODEI12 mode macro to handle HImode
2536         input operands.
2537
2538 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
2539
2540         * tree-cfg.c (find_taken_edge_cond_expr): Use zero_p instead of
2541         integer_zerop.
2542         * tree-gimple.c (is_gimple_min_invariant): Consider overflowed
2543         constants invariant.
2544
2545 2005-03-14  Zdenek Dvorak  <dvorakz@suse.cz>
2546
2547         * basic-block.h (BB_VISITED): Removed.
2548         * cfganal.c (dfs_enumerate_from): Do not use BB_VISITED flag.
2549
2550 2005-03-14  Falk Hueffner  <falk@debian.org>
2551
2552         PR bootstrap/20424
2553         * config/alpha/alpha.c (alpha_fold_builtin_cmpbge): Fix typo.
2554
2555 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
2556
2557         * ggc-zone.c: Fix comment typos.
2558
2559         * alloc-pool.c, except.h, ggc-common.c, ggc-zone.c, ggc.h,
2560         stringpool.c, config/mips/mips-protos.h: Update copyright.
2561
2562 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
2563
2564         * config/rs6000/rs6000-protos.h: Replace "struct rtx_def *"
2565         throughout with its typedef, "rtx".
2566         * config/rs6000/rs6000.c: Likewise.  Formatting fixes.
2567         (rs6000_tls_symbol_ref_1): Remove inline keyword.
2568         * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Formatting.  Reorder
2569         regs in comment to match code.
2570
2571 2005-03-14  Kazu Hirata  <kazu@cs.umass.edu>
2572
2573         * except.c (check_handled): Make it static.
2574         * except.h: Remove the corresponding prototype.
2575
2576         * function.c (get_func_frame_size): Make it static.
2577         * function.h: Remove the corresponding type.
2578
2579         * regclass.c (reg_class_superclasses, reg_class_subclasses):
2580         Make them static.
2581         * hard-reg-set.h: Remove the corresponding declarations.
2582
2583         * tree-cfg.c (verify_stmts): Check that
2584         bb_for_stmt (stmt) == bb for every PHI node and statement.
2585
2586 2005-03-14  Alan Modra  <amodra@bigpond.net.au>
2587
2588         * config.gcc: Remove excess indentation.
2589         (powerpc*-*-*, rs6000-*-*): Accept --with-cpu/tune power5 and 8548.
2590
2591 2005-03-13  Roger Sayle  <roger@eyesopen.com>
2592
2593         PR middle-end/19331
2594         * tree.c (get_unwidened): Treat CONVERT_EXPR and NOP_EXPR identically.
2595         * fold-const.c (fold_sign_changed_comparison): Likewise.
2596         (fold_binary): Optimize comparisons against widened operands if
2597         the extension is represented by a CONVERT_EXPR, same as a NOP_EXPR.
2598
2599 2005-03-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
2600
2601         * config/sparc/sparc.c (struct_value_alias_set): New global variable.
2602         (sparc_override_options): Initialize it.
2603         (sparc_struct_value_rtx): Set it on the MEM to be returned.
2604
2605 2005-03-13  David Edelsohn  <edelsohn@gnu.org>
2606
2607         * config/rs6000/predicates.md (mem_or_easy_const_operand): Delete.
2608         (reg_or_none500mem_operand): New predicate.
2609         (zero_reg_mem_operand): New predicate.
2610         * config/rs6000/rs6000.md (extendsfdf2): Change operand1 predicate
2611         to reg_or_none500mem_operand.
2612         (extendsfdf2_fpr): Add MEM alternative.
2613         (extenddftf2_internal): Change operand2 predicate to
2614         zero_reg_mem_operand.
2615
2616 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
2617
2618         * ggc-zone.c: Rewritten.
2619
2620         * alloc-pool.c (dump_alloc_pool_statistics): Don't print statistics
2621         if there are none.
2622         * configure.ac: Define GGC_ZONE for --with-gc=zone.
2623         * config.in: Regenerated.
2624         * configure: Regenerated.
2625         * gengtype.c (write_types_process_field, write_func_for_structure):
2626         Pass new argument to gt_pch_note_object.
2627         * ggc-common.c (struct ptr_data): Add TYPE.
2628         (gt_pch_note_object): Take TYPE argument and save it.
2629         (call_count): Update call to ggc_pch_count_object.
2630         (call_alloc): Update call to ggc_pch_alloc_object.
2631         (gt_pch_save): Call ggc_pch_prepare_write after paddng the PCH
2632         file.
2633         * ggc-none.c (rtl_zone, garbage_zone, ggc_alloc_zone_stat): Delete.
2634         * ggc-page.c (rtl_zone, tree_zone, garbage_zone)
2635         (ggc_alloc_zone_stat): Delete.
2636         (ggc_pch_count_object, ggc_pch_alloc_object): Add TYPE argument.
2637         * ggc.h (gt_pch_note_object, ggc_pch_count_object)
2638         (ggc_pch_alloc_object): Update prototypes.
2639         (garbage_zone): Delete.
2640         (tree_zone, rtl_zone, ggc_alloc_zone_stat, ggc_alloc_zone): Move to
2641         GGC_ZONE conditional.  Update.  Change tree_zone and rtl_zone into
2642         pointers.
2643         (tree_id_zone): New variable.
2644         (ggc_alloc_cleared_zone): Remove unused.
2645         (ggc_alloc_zone): Define.
2646         (ggc_alloc_rtvec, ggc_alloc_tree): Update to use ggc_alloc_zone.
2647         * rtl.c (rtx_alloc_stat, shallow_copy_rtx_stat): Use
2648         ggc_alloc_zone_stat.
2649         * stringpool.c (gt_pch_n_S): Update call to gt_pch_note_object.
2650         * tree.c (copy_node_stat, make_tree_binfo_stat, make_tree_vec_stat)
2651         (tree_cons_stat, build1_stat): Update call to ggc_alloc_zone_stat.
2652         (make_node_stat): Likewise.  Use tree_id_zone.
2653
2654 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
2655             Joseph S. Myers  <joseph@codesourcery.com>
2656
2657         * configure.ac: Check for MIPS TLS.
2658         * configure: Regenerated.
2659         * config/mips/mips-protos.h (enum mips_symbol_type): Add
2660         SYMBOL_TLS, SYMBOL_TLSGD, SYMBOL_TLSLDM, SYMBOL_DTPREL,
2661         SYMBOL_GOTTPREL, and SYMBOL_TPREL.
2662         * config/mips/mips.c (mips_regno_to_class): Handle V1_REG.
2663         (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
2664         (mips_classify_symbol, mips_symbolic_constant_p)
2665         (mips_symbolic_address_p, mips_symbol_insns): Handle TLS symbols.
2666         (mips_tls_operand_p, mips_call_tls_get_addr)
2667         (mips_legitimize_tls_address, mips_cannot_force_const_mem)
2668         (mips_tls_symbol_ref_1): New functions.
2669         (mips_legitimize_address, mips_legitimize_const_move): Call
2670         mips_legitimize_tls_address.
2671         (override_options): Handle V1_REG and TLS symbols.  Disable TLS
2672         for MIPS16.
2673         * config/mips/mips.h (enum reg_class, REG_CLASS_NAMES)
2674         (REG_CLASS_CONTENTS, GR_REG_CLASS_P): Include V1_REG.
2675         (mips_char_to_class): Document V1_REG.
2676         (HAVE_AS_TLS): Provide default.
2677         * config/mips/mips.md (UNSPEC_TLS_LDM, UNSPEC_TLS_GET_TP): New
2678         constants.
2679         (load_got<mode>): Renamed from *load_got<mode>.  Allow when
2680         !TARGET_ABICALLS.
2681         (tls_get_tp_<mode>): New instruction.
2682
2683 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
2684
2685         * configure.ac: Update checks for target tools.
2686         * configure: Regenerated.
2687
2688 2005-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
2689
2690         * varasm.c (decl_tls_model): Check flag_shlib instead of flag_pic.
2691
2692 2005-03-13  Roger Sayle  <roger@eyesopen.com>
2693
2694         * expmed.c (expand_mult): Use synthetic multiplication sequences for
2695         more classes of DImode multiplication by constant.  Allow both
2696         multiplication by small negative constants (by performing a
2697         multiplication by a positive constant and negating the result) and
2698         multiplications by large powers of two, by using a left shift.
2699
2700 2005-03-13  Kazu Hirata  <kazu@cs.umass.edu>
2701
2702         * tree-into-ssa.c (find_idf): Speed up by putting the indexes
2703         of basic blocks into work_stack.
2704
2705         * builtin-attrs.def, c-lex.c, c-pragma.h, reg-stack.c,
2706         config/mips/vr.h: Update copyright.
2707
2708         * c-decl.c (c_init_decl_processing): Remove useless calls to
2709         build_function_type.
2710
2711         * builtins.c (fold_trunc_transparent_mathfn,
2712         fold_fixed_mathfn, fold_builtin_atan, fold_builtin_trunc,
2713         fold_builtin_floor, fold_builtin_ceil, fold_builtin_round,
2714         fold_builtin_lround, fold_builtin_bitop, fold_builtin_memcpy,
2715         fold_builtin_strcpy, fold_builtin_strncpy,
2716         fold_builtin_signbit): Use TYPE (TYPE (fndecl)) instead of
2717         TREE_TYPE (exp).
2718
2719         * builtins.c (expand_builtin_mathfn_3): Remove local variable
2720         before_call.
2721
2722         * lambda-code.c (lambda_compute_auxillary_space): Remove local
2723         variable determinant.
2724
2725         * tree-cfg.c (group_case_labels): Remove local variable type.
2726
2727         * tree-ssa-live.c (build_tree_conflict_graph): Remove local
2728         variable ann.
2729
2730         * tree-ssa-phiopt.c (value_replacement): Remove local variable
2731         result.
2732
2733 2005-03-13  Andy Hutchinson  <HutchinsonAndy@netscape.net>
2734
2735         PR target/18251
2736         * config/avr/avr.md (movmemhi): Rewrite as RTL loop.
2737         (*movmemqi_insn): Delete.
2738         (*movmemhi): Delete.
2739
2740 2005-03-13  Kazu Hirata  <kazu@cs.umass.edu>
2741
2742         * builtins.c (fold_builtin_classify): Take decomposed
2743         arguments of CALL_EXPR.
2744         (fold_builtin_1): Update a call to fold_builtin_classify.
2745
2746 2005-03-13  Joseph S. Myers  <joseph@codesourcery.com>
2747
2748         PR c/20402
2749         * c-parser.c (c_parser_struct_or_union_specifier): Don't fall
2750         through into call to parser_xref_tag after parse error.
2751         (c_parser_struct_declaration): Consistently return NULL_TREE on
2752         error.
2753
2754 2005-03-12  Daniel Berlin  <dberlin@dberlin.org>
2755
2756         * tree-flow-inline.h (ref_contains_array_ref): New function.
2757         (lookup_subvars_for_var): Ditto.
2758         (get_subvars_for_var): Ditto.
2759         (var_can_have_subvars): Ditto.
2760
2761         * tree-flow.h (mem_tag_kind): Add STRUCT_FIELD.
2762         (struct subvar): New type.
2763
2764         * tree-dfa.c (okay_component_ref_for_subvars): New function.
2765
2766         * tree-optimize.c (init_tree_optimization_passes): Call
2767         pass_create_structure_vars.
2768
2769         * tree-ssa-alias.c: Include vec.h.
2770         (init_alias_info): Don't auto-clear call clobbered on struct-field
2771         tags.
2772         (compute_flow_insensitive_aliasing): Handle subvars.
2773         (group_aliases): Handle STRUCT_FIELD aliases.
2774         (setup_pointers_and_addressables): Ditto.
2775         Don't mark variables non-addressable if they still have
2776         addressable subvars.
2777         Also mark subvars addressable when the real variable is marked
2778         addressable.
2779         (add_pointed_to_var): Try to prune the pointed-to set by only
2780         pointing to subvars when possible.
2781         Otherwise, make sure we set addresses_needed and pt_vars to
2782         properly include subvars.
2783         (bitpos_of_field): New function.
2784         (push_fields_onto_fieldstack): Ditto.
2785         (get_or_create_used_part_for): Ditto.
2786         (create_overlap_variables_for): Ditto.
2787         (find_used_portions): Ditto.
2788         (create_structure_vars): Ditto.
2789         (pass_create_structure_vars): New structure.
2790
2791         * tree-ssa-operands.c (finalize_ssa_v_must_defs): Remove assert.
2792         (get_expr_operands): Handle subvars.  Also try to turn
2793         COMPONENT_REF accesses into must-defs now that we can accurately
2794         portray it.
2795         (note_addressable): Try to only mark as addressable those subvars
2796         we know a COMPONENT_REF touches.
2797         (overlap_subvar): New function.
2798
2799         * tree-vect-analyze.c (vect_object_analysis): Add new parameter.
2800         Handle subvar storing.
2801         (vect_address_analysis): Update caller of vect_object_analysis.
2802
2803         * tree-vect-transform.c (vect_create_data_ref_ptr): Copy subvars.
2804
2805         * tree-vectorizer.h (struct _stmt_vec_info): Add subvars member.
2806         (STMT_VINFO_SUBVARS): New macro.
2807
2808         * common.opts: add flag_tree_salias.
2809
2810         * opts.c (decode_options): flag_tree_salias defaults to on.
2811
2812         * doc/invoke.texi: Document fdump-tree-svars and -ftree-salias.
2813
2814         * doc/tree-ssa.texi: Document structural alias analysis.
2815
2816 2005-03-12  Steven Bosscher  <stevenb@suse.de>
2817
2818         * tree-cfg.c (make_goto_expr_edges): Don't use error_mark_node.
2819         * tree-ssa-dce.c (mark_stmt_necessary): Don't check for it.
2820         * tree-ssa-operands.c (get_expr_operands): Likewise.
2821         (get_expr_operands): Likewise for ERROR_MARK.
2822
2823 2005-03-12  Kazu Hirata  <kazu@cs.umass.edu>
2824
2825         * tree-ssa.c (kill_redundant_phi_nodes): Remove local variable
2826         var.
2827
2828         * tree-ssa-phiopt.c (tree_ssa_phiopt): Remove local variable
2829         removed_phis.
2830
2831         * tree-ssa-pre.c (compute_avail): Remove local variable val.
2832         (mark_operand_necessary): Remove local variable ver.
2833
2834         * tree-vect-transform.c (vect_get_new_vect_var): Remove local
2835         variable prefix_len.
2836
2837         * value-prof.c (mod_subtract_transform): Remove local variable
2838         value.
2839
2840         * builtins.c (fold_builtin_exponent): Take decomposed
2841         arguments of CALL_EXPR.
2842         (fold_builtin_1): Update a call to fold_builtin_exponent.
2843
2844         * builtins.c (fold_builtin_logarithm): Take decomposed
2845         arguments of CALL_EXPR.
2846         (fold_builtin_1): Update a call to fold_builtin_logarithm.
2847
2848         * c-decl.c (c_init_decl_processing): Remove local variables
2849         ptr_ftype_void and ptr_ftype_ptr.
2850
2851         * gimplify.c (gimplify_expr): Remove local variables r0 and
2852         r1.
2853
2854         * reg-stack.c (move_for_stack_reg): Remove local variable
2855         push_insn.
2856         (compare_for_stack_reg): Remove local variable flags_user.
2857         (convert_regs_1): Remove local variable deleted.
2858
2859         * tree-if-conv.c (tree_if_convert_cond_expr): Remove local
2860         variable new_cond.
2861         (combine_blocks): Remove local variables exits and new_e.
2862
2863         * tree-inline.c (expand_call_inline): Remove local variable
2864         decl.
2865
2866         * tree-ssa-live.c (create_ssa_var_map,
2867         calculate_live_on_entry): Remove local variable snn.
2868
2869 2005-03-12  Geoffrey Keating  <geoffk@apple.com>
2870
2871         * c-lex.c (c_lex_with_flags): Add parameter to call to
2872         cpp_spell_token.
2873
2874 2005-03-11  Per Bothner  <per@bothner.com>
2875
2876         * c-tree.h (struct c_declarator): New id_loc field.
2877         * c-pragma.h (c_lex_with_flags): Take position reference.
2878         * c-lex.c (c_lex_with_flags): Set passed-in location from cpp token,
2879         iff USE_MAPPED_LOCATION. (Type doesn't match otherwise.)
2880         (c_lex): Pass dummy location to c_lex_with_flags.
2881         * c-parser.c (c_lex_one_token): Set c_token's location using
2882         c_lex_with_flags, instead of input_location, which might be "ahead".
2883         (c_parser_direct_declarator): Set declarator's id_loc from
2884         c_token's id_loc.
2885         * c-decl.c (grokdeclarator): Set DECL_SOURCE_LOCATION from
2886         declarator's id_loc, rather than probably-imprecise input_location.
2887         (build_id_declarator): Initialize c_declarator's id_loc field.
2888
2889 2005-03-11  Roger Sayle  <roger@eyesopen.com>
2890
2891         PR middle-end/20419
2892         * builtins.c (expand_builtin_signbit): Force the signbit's word
2893         into an integer register to avoid SUBREGs of floating point modes.
2894
2895 2005-03-12  Kazu Hirata  <kazu@cs.umass.edu>
2896
2897         * cfglayout.c, loop-doloop.c, profile.c, target-def.h,
2898         target.h, targhooks.c, tracer.c, tree-ssa-loop-ch.c,
2899         tree-ssa-loop-unswitch.c, tree-ssa-loop.c, vec.c, vmsdbgout.c,
2900         config/m32r/m32r.md, config/xtensa/xtensa.h: Update copyright.
2901
2902 2005-03-11  David Edelsohn  <edelsohn@gnu.org>
2903
2904         PR rtl-optimization/20306
2905         * expr.c (emit_move_complex): Set try_int false if mode is
2906         MODE_COMPLEX_FLOAT and mov_optab exists for inner mode.  Only try
2907         emit_block_move if try_int is true.
2908
2909 2005-03-11  Richard Henderson  <rth@redhat.com>
2910
2911         PR target/20415
2912         * config/i386/mmx.md (vec_dupv4hi): Fix predicate.
2913         * config/i386/i386.c (ix86_expand_vector_init_duplicate): Update
2914         to match.
2915
2916 2005-03-11  Richard Sandiford  <rsandifo@redhat.com>
2917
2918         * config/mips/mips.h (mips_fix_vr4130_string): Declare.
2919         (TARGET_FIX_VR4130): New macro.
2920         (TARGET_OPTIONS): Add -mfix-vr4130.
2921         (ISA_HAS_MACCHI): New macro.
2922         (ASM_SPEC): Add -mfix-vr4130.
2923         * config/mips/mips.c (mips_fix_vr4130_string): New variable.
2924         (override_options): Handle mips_fix_vr4130_string.
2925         (mips_avoid_hazards): Clear all_noreorder_p
2926         if we're working around VR4130 errata and the macc alternatives
2927         are not available.
2928         * config/mips/mips.md (mfhilo_<mode>): Turn into a define_expand.
2929         (*mfhilo_<mode>, *mfhilo_<mode>_macc): New insns.
2930         * config/mips/vr.h (DEFAULT_VR_ARCH): Set to mfix-vr4130.
2931         (MULTILIB_DEFAULTS): Remove leading "march=".
2932         (DRIVER_SELF_SPECS): Likewise.  Make -mfix-vr4130 imply -march=vr4130
2933         if no architecture option is given.
2934         * config/mips/t-vr (MULTILIB_OPTIONS): Use -mfix-vr4130 for the
2935         VR4130 multilibs.
2936         (MULTILIB_MATCHES): Map -march=vr4130 to the -mfix-vr4130 multilibs.
2937         * doc/invoke.texi: Document -mfix-vr4130.
2938
2939 2005-03-11  Richard Sandiford  <rsandifo@redhat.com>
2940
2941         * config/mips/mips.c (override_options): Only warn about -mint64
2942         deprecation if TARGET_INT64.
2943
2944 2005-03-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2945
2946         * builtin-attrs.def (ATTR_NONNULL_LIST, ATTR_NOTHROW_NONNULL,
2947         ATTR_CONST_NOTHROW_NONNULL, ATTR_PURE_NOTHROW_NONNULL,
2948         ATTR_MALLOC_NOTHROW_NONNULL): New "nonnull" attribute lists which
2949         are non-specific regarding the nonnull parameter positions.
2950         (ATTR_NONNULL_1_2, ATTR_NONNULL_1_4, ATTR_NOTHROW_NONNULL_1_2,
2951         ATTR_NOTHROW_NONNULL_1_4, ATTR_CONST_NOTHROW_NONNULL_1,
2952         ATTR_PURE_NOTHROW_NONNULL_1, ATTR_PURE_NOTHROW_NONNULL_1_2,
2953         ATTR_MALLOC_NOTHROW_NONNULL_1): Delete.
2954
2955         * builtins.def: Use the non-specific "nonnull" attibute lists.
2956
2957 2005-03-11  Zdenek Dvorak  <dvorakz@suse.cz>
2958
2959         * basic-block.h (single_succ_p, single_pred_p, single_succ_edge,
2960         single_pred_edge, single_succ, single_pred): Improve comments.
2961
2962 2005-03-11  Zdenek Dvorak  <dvorakz@suse.cz>
2963
2964         * basic-block.h (single_succ_p, single_pred_p, single_succ_edge,
2965         single_pred_edge, single_succ, single_pred): New inline functions.
2966         * bb-reorder.c (rotate_loop, find_traces_1_round,
2967         add_labels_and_missing_jumps, fix_up_fall_thru_edges,
2968         duplicate_computed_gotos): Use the single_succ/pred functions.
2969         * cfganal.c (forwarder_block_p): Ditto.
2970         * cfgbuild.c (compute_outgoing_frequencies): Ditto.
2971         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
2972         outgoing_edges_match, try_crossjump_to_edge, try_optimize_cfg,
2973         merge_seq_blocks): Ditto.
2974         * cfghooks.c (split_edge, tidy_fallthru_edges): Ditto.
2975         * cfglayout.c (fixup_reorder_chain): Ditto.
2976         * cfgloop.c (mark_single_exit_loops, update_latch_info,
2977         canonicalize_loop_headers, verify_loop_structure): Ditto.
2978         * cfgloopmanip.c (remove_path, unloop, loop_delete_branch_edge,
2979         mfb_update_loops, create_preheader, force_single_succ_latches,
2980         create_loop_notes): Ditto.
2981         * cfgrtl.c (rtl_can_merge_blocks, try_redirect_by_replacing_jump,
2982         force_nonfallthru_and_redirect, rtl_tidy_fallthru_edge,
2983         commit_one_edge_insertion, purge_dead_edges,
2984         cfg_layout_can_merge_blocks_p): Ditto.
2985         * except.c (sjlj_emit_function_enter): Ditto.
2986         * flow.c (init_propagate_block_info): Ditto.
2987         * function.c (thread_prologue_and_epilogue_insns): Ditto.
2988         * gcse.c (find_implicit_sets, bypass_conditional_jumps,
2989         insert_insn_end_bb): Ditto.
2990         * ifcvt.c (merge_if_block, find_if_block, find_if_case_1,
2991         find_if_case_2): Ditto.
2992         * lambda-code.c (perfect_nestify): Ditto.
2993         * lcm.c (optimize_mode_switching): Ditto.
2994         * loop-doloop.c (doloop_modify): Ditto.
2995         * loop-init.c (loop_optimizer_init): Ditto.
2996         * loop-iv.c (simplify_using_initial_values): Ditto.
2997         * loop-unroll.c (unroll_loop_runtime_iterations): Ditto.
2998         * loop-unswitch.c (unswitch_loop): Ditto.
2999         * modulo-sched.c (generate_prolog_epilog): Ditto.
3000         * predict.c (combine_predictions_for_insn, estimate_probability,
3001         tree_estimate_probability, last_basic_block_p,
3002         estimate_bb_frequencies): Ditto.
3003         * profile.c (branch_prob): Ditto.
3004         * regrename.c (copyprop_hardreg_forward): Ditto.
3005         * sched-rgn.c (is_cfg_nonregular, find_rgns, update_live): Ditto.
3006         * tracer.c (layout_superblocks): Ditto.
3007         * tree-cfg.c (tree_can_merge_blocks_p, tree_merge_blocks,
3008         cfg_remove_useless_stmts_bb, cleanup_control_flow,
3009         cleanup_control_expr_graph, disband_implicit_edges,
3010         tree_find_edge_insert_loc, bsi_commit_edge_inserts,
3011         tree_verify_flow_info, tree_make_forwarder_block,
3012         tree_forwarder_block_p, remove_forwarder_block,
3013         remove_forwarder_block_with_phi, merge_phi_nodes): Ditto.
3014         * tree-if-conv.c (tree_if_conversion): Ditto.
3015         * tree-mudflap.c (mf_build_check_statement_for): Ditto.
3016         * tree-ssa-dce.c (remove_dead_stmt): Ditto.
3017         * tree-ssa-dom.c (dom_opt_finalize_block): Ditto.
3018         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p,
3019         copy_loop_headers): Ditto.
3020         * tree-ssa-loop-im.c (loop_commit_inserts): Ditto.
3021         * tree-ssa-loop-ivopts.c (compute_phi_arg_on_exit): Ditto.
3022         * tree-ssa-loop-manip.c (split_loop_exit_edge, ip_normal_pos,
3023         lv_adjust_loop_entry_edge, tree_ssa_loop_version): Ditto.
3024         * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Ditto.
3025         * tree-ssa-loop-unswitch.c (simplify_using_entry_checks): Ditto.
3026         * tree-ssa-phiopt.c (tree_ssa_phiopt, value_replacement): Ditto.
3027         * tree-ssa-pre.c (compute_antic_aux, insert_aux, init_pre): Ditto.
3028         * tree-ssa-threadupdate.c (redirect_edges): Ditto.
3029         * tree-tailcall.c (independent_of_stmt_p, find_tail_calls,
3030         eliminate_tail_call, tree_optimize_tail_calls_1): Ditto.
3031         * tree-vect-analyze.c (vect_analyze_loop_form): Ditto.
3032         * tree-vect-transform.c (vect_update_ivs_after_vectorizer): Ditto.
3033         * tree-vectorizer.c (slpeel_update_phi_nodes_for_guard,
3034         slpeel_add_loop_guard): Ditto.
3035
3036 2005-03-11  James A. Morrison  <phython@gcc.gnu.org>
3037
3038         PR tree-optimization/15784
3039         * fold-const.c (fold): Fold ~A + 1 to -A.  Fold -A - 1
3040         and -1 - A to ~A.
3041
3042         * stmt.c (expand_case): Don't change index_type.  Convert minval
3043         to the proper type.
3044
3045         PR tree-optimization/20130
3046         * fold-const.c (fold): Fold x * -1 into -x.
3047
3048 2005-03-11  Kaz Kojima  <kkojima@gcc.gnu.org>
3049
3050         PR rtl-optimization/20331
3051         * rtlanal.c (modified_between_p): Check its address first for MEM.
3052         (modified_in_p): Likewise.
3053
3054 2005-03-11  Joseph S. Myers  <joseph@codesourcery.com>
3055
3056         * config.gcc (hppa*64*-*-hpux11*): Use pa/t-hpux-shlib.
3057
3058 2005-03-10  Steven Bosscher  <stevenb@suse.de>
3059
3060         * expr.c (expand_expr_real_1): If possible, use a conditional
3061         move for expanding MIN_EXPR and MAX_EXPR.
3062         Use temp for moving around rtx-en.
3063
3064 2005-03-10  Andrew Pinski  <pinskia@physics.uc.edu>
3065
3066         PR rtl-opt/20412
3067         * simplify-rtx.c (simplify_relational_operation_1): Fix typo - check the
3068         correct mode.
3069
3070 2005-03-10  Roger Sayle  <roger@eyesopen.com>
3071
3072         * builtins.c (expand_builtin_signbit): Extend to handle floating
3073         point modes wider than the largest integer type, using the
3074         operand_subword_force function to obtain the signbit's word.
3075
3076 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
3077
3078         PR target/20322
3079         * combine.c (try_combine): If recog_for_combine added CLOBBERs
3080         to NEWI2PAT, fail to combine if they are used by NEWPAT.
3081
3082 2005-03-10  Aldy Hernandez  <aldyh@redhat.com>
3083
3084         * doc/invoke.texi: Add 8540 to list of cpus in rs6000 cpu section.
3085
3086 2005-03-10  Kazu Hirata  <kazu@cs.umass.edu>
3087
3088         * tree-outof-ssa.c (analyze_edges_for_bb): Make the return
3089         type void.
3090         (perform_edge_inserts): Unconditionally call
3091         free_dominator_info.
3092
3093         * tree-outof-ssa.c (analyze_edges_for_bb): Update a comment.
3094
3095 2005-03-10  Bob Wilson  <bob.wilson@acm.org>
3096
3097         * config/xtensa/xtensa.h (MEMBER_TYPE_FORCES_BLK): Define.
3098
3099 2005-03-10  Nathan Sidwell  <nathan@codesourcery.com>
3100
3101         * bitmap.c (bitmap_copy): Remove manual loop unrolling.
3102
3103         * value-prof.c (rtl_find_values_to_profile): Use gcc_assert and
3104         gcc_unreachable.
3105         (rtl_register_value_prof_hooks,
3106         tree_value_profile_transformations,
3107         tree_register_value_prof_hooks): Likewise.
3108         * var-tracking.c (stack_adjust_offset_pre_post,
3109         variable_htab_free, variable_union, dataflow_set_different_2,
3110         count_uses, variable_was_changed, set_frame_base_location,
3111         set_variable_part, emit_note_insn_var_location, vt_emit_notes,
3112         vt_add_function_parameters): Likewise.
3113         * varasm.c (named_section_real, named_section, make_decl_rtl,
3114         asm_emit_uninitialised, assemble_integer, decode_addr_const,
3115         const_hash_1, compare_constant, copy_constant, force_const_mem,
3116         output_constant_pool_2, output_constant_pool_1, output_constant,
3117         output_constructor, make_decl_one_only, decl_tls_model,
3118         default_no_named_section, default_elf_select_section_1,
3119         default_unique_section_1): Likewise.
3120         * vec.c (vec_gc_o_reserve, vec_heap_o_reserve): Likewise.
3121         * vmsdbgout.c (addr_const_to_string): Likewise.
3122
3123         PR c++/20375
3124         * function.c (struct assign_parm_data_one): Remove last_named
3125         field.
3126         (assign_parm_find_data_types): Don't determine last_named.
3127         Reorder named_parm determination.
3128         (assign_parms): Only setup varargs on the last non-varadic
3129         parameter.
3130
3131 2005-03-10  Kazuhiro Inaoka  <inaoka.lazuhiro@renesas.com>
3132
3133         * config/m32r/m32r.md (load_sda_base_32): New pattern.  Loads
3134         sda base address on medium model.
3135
3136 2005-03-10  Zdenek Dvorak  <dvorakz@suse.cz>
3137
3138         * Makefile.in (tree-optimize.o): Add CFGLOOP_H dependence.
3139         * cfgloop.c (flow_loop_nodes_find): Export.
3140         * cfgloop.h (flow_loop_nodes_find, fix_loop_structure):
3141         Declare.
3142         * cfgloopmanip.c (fix_loop_structure): New function.
3143         * predict.c (predict_loops): Clean up the loops information.
3144         * tree-cfg.c (cleanup_tree_cfg_loop): New function.
3145         (tree_can_merge_blocks_p, remove_bb, tree_forwarder_block_p): Respect
3146         loop structure.
3147         * tree-flow.h (cleanup_tree_cfg_loop): Declare.
3148         (rewrite_into_loop_closed_ssa): Declaration changed.
3149         * tree-loop-linear.c (linear_transform_loops): Add argument to
3150         rewrite_into_loop_closed_ssa call.
3151         * tree-ssa-loop-ch.c (copy_loop_headers): Ditto.
3152         * tree-ssa-loop-im.c (move_computations): Ditto.
3153         * tree-ssa-loop.c (tree_loop_optimizer_init): Ditto.
3154         * tree-vectorizer.c (vectorize_loops): Ditto.
3155         * tree-optimize.c: Include cfgloop.h.
3156         (execute_todo): Choose whether to call cleanup_tree_cfg or
3157         cleanup_tree_cfg_loop.
3158         * tree-ssa-loop-ivcanon.c (canonicalize_loop_induction_variables,
3159         (tree_unroll_loops_completely): Enable cleanup_tree_cfg_loop call.
3160         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Enable
3161         cleanup_tree_cfg_loop call.
3162         * tree-ssa-loop-manip.c (find_uses_to_rename_bb): New function.
3163         (find_uses_to_rename, rewrite_into_loop_closed_ssa): Support
3164         work on part of cfg.
3165
3166 2005-03-10  Jakub Jelinek  <jakub@redhat.com>
3167
3168         PR inline-asm/20314
3169         * gimplify.c (gimplify_asm_expr): Handle input/output constraints
3170         with multiple alternatives.
3171
3172         * stmt.c (parse_output_constraint): Fix a typo.
3173
3174 2005-03-09  Bob Wilson  <bob.wilson@acm.org>
3175
3176         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Use "no-transform"
3177         assembly directive instead of deprecated "no-generics".
3178
3179 2005-03-09  Ulrich Weigand  <uweigand@de.ibm.com>
3180
3181         * config/s390/s390.c (s390_secondary_output_reload_class): Adapt check
3182         for non-offsettable memory references to cope with outstanding reload
3183         replacements.
3184         * config/s390/s390.md ("reload_outti"): Call find_replacement to
3185         avoid losing outstanding address reloads.
3186         ("reload_outdi", "reload_outdf"): Likewise.
3187
3188 2005-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3189
3190         * builtins.c (fold_builtin_cbrt, fold_builtin_pow): Rearrange
3191         code.  Add more cbrt transformations.
3192
3193 2005-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3194
3195         * fold-const.c (fold_unary_to_constant): Add FIX_ROUND_EXPR case.
3196
3197 2005-03-09  Kazu Hirata  <kazu@cs.umass.edu>
3198
3199         * fold-const.c (fold_unary, fold_binary, fold_ternary): Return
3200         NULL_TREE when a given tree is not simplified.
3201         (fold): Return the original tree when any of the functions
3202         mentioned above NULL_TREE.
3203
3204         * fold-const.c (fold_unary, fold_binary): Take decomposed
3205         arguments, code, type, op0, and op1 in case of fold_binary.
3206         (fold): Update calls to fold_unary and fold_binary.
3207
3208 2005-03-09  Roger Sayle  <roger@eyesopen.com>
3209
3210         * builtins.c (fold_builtin_unordered_cmp): Change prototype to take
3211         a fndecl and an arglist instead of a CALL_EXPR, exp.
3212
3213 2005-03-09  Kazu Hirata  <kazu@cs.umass.edu>
3214
3215         * cfglayout.c (fixup_reorder_chain): Remove old_bb.
3216
3217         * cfgrtl.c (cfg_layout_merge_blocks): Remove new_e.
3218
3219         * expr.c (expand_assignment): Remove orig_to_rtx.
3220
3221         * fold-const.c (int_const_binop): Remove no_overflow.
3222
3223         * ifcvt.c (noce_emit_move_insn): Remove inmode.
3224
3225         * loop-iv.c (get_biv_step_1): Remove lhs.
3226
3227         * loop-unroll.c (analyze_insns_in_loop): Remove preheader.
3228
3229         * real.c (real_nan): Remove neg.
3230
3231         * function.c (thread_prologue_and_epilogue_insns): Remove i
3232         and newinsn.
3233
3234         * tree-data-ref.c (array_base_name_differ_p): Remove ta and
3235         tb.
3236
3237         * tree-eh.c (tree_could_trap_p): Remove idx.
3238
3239         * tree-into-ssa.c (ann): Remove ann.
3240
3241         * tree-outof-ssa.c (num_nodes): Remove num_nodes.
3242
3243         * tree-sra.c (decide_block_copy): Remove inst_count.
3244
3245         * tree-ssa-alias.c (may_alias_p): Remove v_ann.
3246
3247         * tree-ssa-loop-im.c (lhs): Remove.
3248
3249         * cfgbuild.c (state, STATE, SET_STATE,
3250         BLOCK_USED_BY_TABLEJUMP, FULL_STATE): Move just before
3251         make_edges.
3252         (make_edges): Speed up by skipping blocks with BLOCK_ORIGINAL.
3253         (find_basic_blocks): Set the state of each basic block to
3254         BLOCK_NEW.
3255
3256 2005-03-08  Jeff Law  <law@redhat.com>
3257
3258         * tree-cfg.c (cleanup_control_flow): If removal of a computed
3259         goto results in the removal of edges in the CFG, then we need
3260         to recompute dominators.
3261
3262 2005-03-09  Ben Elliston  <bje@au.ibm.com>
3263
3264         * c-common.c (c_do_switch_warnings): Comment fix.
3265
3266 2005-03-08  Julian Brown  <julian@codesourcery.com>
3267
3268         * Patch from 2005-03-08 reverted for causing regressions and
3269         ppc-darwin bootstrap failure.
3270
3271 2005-03-08  Fariborz Jahanian <fjahanian@apple.com>
3272
3273         * config/rs6000/rs6000.c (invalid_arg_for_unprototyped_fn):
3274         Define the real function for ppc-darwin.
3275         * c-typeck.c (convert_arguments): Check for target-specific
3276         invalid argument call to unprototyped function.
3277         * target-def.h (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
3278         New Macro.
3279         * target.h (invalid_arg_for_unprototyped_fn): New field
3280         in struct calls.
3281         * targhooks.c (hook_invalid_arg_for_unprototyped_fn): New
3282         default target hook.
3283         * targhooks.h (hook_invalid_arg_for_unprototyped_fn):
3284         Declare.
3285
3286 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
3287
3288         * c-typeck.c (constructor_stack, constructor_range_stack,
3289         initializer_stack): Make them static.
3290
3291         * cfg.c (rbi_pool): Make it static.
3292
3293         * gimple-low.c (lower_stmt_body): Make it static.
3294         * tree-flow.h: Remove the corresponding prototype.  Don't
3295         declare lower_data.
3296
3297         * sched-deps.c (cache_size): Make it static.
3298
3299         * stor-layout.c (lang_adjust_rli): Make it static.
3300
3301 2005-03-08  Julian Brown  <julian@codesourcery.com>
3302
3303         * config/elfos.h (MAKE_DECL_ONE_ONLY): Redefined to stop DECL_WEAK
3304         from being used for symbols with vague linkage when
3305         HAVE_GAS_COMDAT_GROUP is true.
3306
3307 2005-03-08  J"orn Rennecke <joern.rennecke@st.com>
3308
3309         * jump.c (invert_jump_1): Don't call redirect_jump_1 with
3310         nlabel == JUMP_LABEL (jump).
3311
3312 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
3313
3314         * c-common.c, c-opts.c, combine.c, cse.c, dojump.c,
3315         gimplify.c, tree-dfa.c, tree-ssa-loop-ivopts.c,
3316         tree-ssa-phiopt.c, tree-ssa-pre.c, tree-ssa-sink.c,
3317         tree-vect-analyze.c, tree.def, tree.h: Fix comment formatting.
3318
3319 2005-03-08  Alexey Neyman  <alex.neyman@auriga.ru>
3320
3321         PR c/14411
3322         * calls.c (flags_from_decl_or_type): Handle eturns_twice' attribute.
3323         * c-common.c (handle_returns_twice): New function.
3324         (c_common_attribute_table): Declare eturns_twice' attribute.
3325         * doc/extend.texi: Document eturns_twice' attribute.
3326         * tree.h (DECL_IS_RETURNS_TWICE): New macro.
3327         (struct tree_decl): Add returns_twice_flag.
3328
3329 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
3330
3331         * tree-ssa-phiopt.c: Fix a comment typo.
3332
3333         * c-semantics.c, cfghooks.c, diagnostic.h, loop-iv.c,
3334         loop-unswitch.c, modulo-sched.c, stor-layout.c, tree-gimple.h,
3335         config/i386/cygwin1.c, doc/cfg.texi, doc/objc.texi: Update
3336         copyright.
3337
3338 2005-03-08  Richard Henderson  <rth@redhat.com>
3339
3340         * config/alpha/alpha.c (code_for_builtin): Replace special-case
3341         builtin codes with ctzdi2, clzdi2, popcountdi2.
3342         (struct alpha_builtin_def): Add is_const.
3343         (zero_arg_builtins, one_arg_builtins, two_arg_builtins): Init it.
3344         (alpha_v8qi_u, alpha_v8qi_s, alpha_v4hi_u, alpha_v4hi_s): New.
3345         (alpha_init_builtins): Init them.  Set nothrow and const attributes
3346         on builtins.
3347         (alpha_fold_builtin_cmpbge, alpha_fold_builtin_zapnot,
3348         alpha_fold_builtin_extxx, alpha_fold_builtin_insxx,
3349         alpha_fold_builtin_mskxx, alpha_fold_builtin_umulh,
3350         alpha_fold_vector_minmax, alpha_fold_builtin_perr,
3351         alpha_fold_builtin_pklb, alpha_fold_builtin_pkwb,
3352         alpha_fold_builtin_unpkbl, alpha_fold_builtin_unpkbw,
3353         alpha_fold_builtin_cttz, alpha_fold_builtin_ctlz,
3354         alpha_fold_builtin_ctpop, alpha_fold_builtin): New.
3355         (TARGET_FOLD_BUILTIN): New.
3356         * config/alpha/alpha.md (UNSPEC_CTTZ): Remove.
3357         (UNSPEC_CTLZ, UNSPEC_CTPOP): Remove.
3358         (ffsdi2): Use ctz.
3359         (cttz, builtin_cttz, builtin_ctlz, builtin_ctpop): Remove.
3360
3361 2005-03-08  Ira Rosen  <irar@il.ibm.com>
3362
3363         PR tree-optimization/20122
3364         * tree-vect-analyze.c (vect_object_analysis): Analyze initial
3365         condition of access function instead of base.
3366
3367 2005-03-07  Jeff Law  <law@redhat.com>
3368             Steven Bosscher  <stevenb@suse.de>
3369
3370         * tree-cfg.c (find_taken_edge_computed_goto): New function.
3371         (find_taken_edge): Call find_taken_edge_computed_goto as
3372         appropriate.  Allow any gimple invariant rather than just
3373         INTEGER_CST for VAL.
3374         (cleanup_control_flow): Cleanup a computed goto which has turned
3375         into a simple goto.
3376         (tree_merge_blocks): If block B has any forced labels, move
3377         them to the start of block A.
3378         * tree-ssa-dom.c (thread_across_edge): Allow threading across
3379         computed gotos as well.
3380         * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Handle
3381         removal of unnecessary computed gotos too.
3382         (lookup_redirection_data): Fix type of INSERT argument.  Callers
3383         updated.
3384
3385 2005-03-08  Kazu Hirata  <kazu@cs.umass.edu>
3386
3387         * tree-ssa-phiopt.c: Update copyright.  Fix indentations.
3388         Remove trailing spaces.
3389
3390         * gimplify.c (gimple_push_bind_expr, gimple_pop_bind_expr,
3391         unshare_all_trees): Make them static.
3392         * tree-gimple.h: Remove the corresponding prototypes.
3393
3394         * diagnostic.h: Remove unused prototype
3395         debug_output_buffer.
3396         * modulo-sched.c: Remove unused prototype
3397         set_row_column_for_ps.
3398
3399         * tree-ssa-phiopt.c (tree_ssa_phiopt,