t-mt (MULTILIB_OPTIONS): Add ms2
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2005-12-13  Nathan Sidwell  <nathan@codesourcery.com>
2
3         * config/mt/t-mt (MULTILIB_OPTIONS): Add ms2
4         (MULTILIB_DIRNAMES): Add ms2.  Prefix ms1 dirs with 'ms1'.
5         * config/mt/mt.c (ms1_final_prescan): Use TARGET_MS2,
6         TARGET_MS1_64_001 appropriately.
7         (ms1_machine_reorg): Use TARGET_MS2.
8
9 2005-12-13  Jakub Jelinek  <jakub@redhat.com>
10
11         PR debug/25023
12         PR target/25293
13         * expr.c (emit_move_resolve_push): Handle PRE_MODIFY
14         and POST_MODIFY with CONST_INT adjustment equal to PUSH_ROUNDING.
15         Fix POST_INC/POST_DEC handling if PUSH_ROUNDING is not identity.
16         * config/i386/i386.md (pushhi2, pushqi2): Use pushl instead of pushw.
17         Set mode to SI, adjust constraints.
18         (pushhi2_rex64, pushqi2_rex64): Set mode to DI.
19         * config/i386/i386.h (PUSH_ROUNDING): Round up to 4 instead of 2 for
20         32-bit code.
21
22 2005-12-13  Carlos O'Donell <carlos@codesourcery.com>
23
24         * c-cppbuiltin.c (builtin_define_float_constants): Add
25         fp_cast parameter, pass to builtin_define_with_hex_fp_value.
26         Define __FLT_HAS_DENORM__, __DBL_HAS_DENORM__, __LDBL_HAS_DENORM__.
27         (builtin_define_with_hex_fp_value): Use fp_cast when building macro.
28         (c_cpp_builtins): If flag_single_precision_constant then set fp_cast
29         to "((double)%sL)" otherwise "%s".
30
31 2005-12-13  Paul Brook  <paul@codesourcery.com>
32
33         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=gnu for
34         apcs/atpcs.
35
36 2005-12-11 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
37
38         * tree-flow.h: Allow compilation with a C++ compiler.
39         (struct edge_prediction): Prefix all field names  with "ep_".
40         * predict.c (tree_predicted_by_p): Likewise for struct edge_prediction.
41         (tree_predict_edge, combine_predictions_for_bb): Likewise.
42         (remove_predictions_associated_with_edge): Likewise.
43         
44 2005-12-12  Jeff Law  <law@redhat.com>
45
46         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Remove
47         reassociation code.
48         * passes.c (init_optimization_passes): Run reassociation again
49         after loop optimizations.
50
51 2005-12-12  Daniel Berlin  <dberlin@dberlin.org>
52
53         * tree-ssa-dom.c (thread_across_edge): Canonicalize condition
54         if necessary.
55         (optimize_stmt): Ditto.
56         (canonicalize_comparison): New function.
57         * tree-ssa-operands.c (swap_tree_operands): Make external.
58         (get_expr_operands): Stop auto-canonicalization.
59         * tree-ssa-reassoc.c: Rewrite.
60         (init_optimization_passes): 
61         * tree-flow.h (swap_tree_operands): Prototype.
62         * Makefile.in (tree-ssa-reassoc.o): Update dependencies.
63
64 2005-12-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
65
66         * pa.c (pa_output_function_epilogue): Set cfun->machine->in_nsubspa to
67         indicate function epilogue has been output.
68         (pa_asm_output_mi_thunk): Likewise.
69         (output_deferred_plabels): Put plabels in readonly data section when
70         not generating PIC code.
71         (som_output_text_section_asm_op): Use .NSUBSPA to output debug
72         information.  Add assert.
73         (som_output_comdat_data_section_asm_op): New function.
74         (pa_som_asm_init_sections): Use som_output_comdat_data_section_asm_op
75         instead of output_section_asm_op for COMDAT sections.
76
77 2005-12-12  J"orn Rennecke <joern.rennecke@st.com>
78
79         * cfgcleanup.c (condjump_equiv_p, try_crossjump_to_edge):
80         Fix whitespace in vincinity of to-be-installed changes.
81         * struct-equiv.c (merge_memattrs, death_notes_match_p): Fix whitespace.
82         (insns_match_p): Likewise.
83
84 2005-12-12  Nathan Sidwell  <nathan@codesourcery.com>
85
86         * config.gcc (ms1): Replace with ...
87         (mt): ... this.
88         * config/ms1: Rename to ...
89         * config/mt: ... here.  Rename ms1 files to mt.
90         * config/mt/mt.c: Adjust gt-mt.h #include.
91         * config/mt/t-mt (LIB1ASMSRCS, LIB2FUNCS_EXTRA): Adjust.
92         (crti.o, crtn.o): Adjust file names.
93
94 2005-12-12  Gabriel Dos Reis  <gdr@integrable-solutions.net>
95
96         * varray.h: Allow compilation with a C++ compiler.
97         (union varray_data_tag): Prefix all field names with "vdt_".
98         (VARRAY_CHAR, VARRAY_UCHAR, VARRAY_SHORT, VARRAY_USHORT,
99         VARRAY_INT, VARRAY_UINT, VARRAY_LONG, VARRAY_ULONG,
100         VARRAY_WIDE_INT, VARRAY_UWIDE_INT, VARRAY_GENERIC_PTR,
101         VARRAY_GENERIC_PTR_NOGC, VARRAY_CHAR_PTR, VARRAY_RTX,
102         VARRAY_RTVEC, VARRAY_TREE, VARRAY_BITMAP, VARRAY_REG, VARRAY_BB,
103         VARRAY_ELT_LIST, VARRAY_EDGE, VARRAY_TREE_PTR): Adjust definition.
104         (VARRAY_PUSH_CHAR, VARRAY_PUSH_UCHAR, VARRAY_PUSH_SHORT,
105         VARRAY_PUSH_USHORT, VARRAY_PUSH_INT, VARRAY_PUSH_UINT, 
106         VARRAY_PUSH_LONG, VARRAY_PUSH_ULONG, VARRAY_PUSH_WIDE_INT, 
107         VARRAY_PUSH_UWIDE_INT, VARRAY_PUSH_GENERIC_PTR, 
108         VARRAY_PUSH_GENERIC_PTR_NOGC, VARRAY_PUSH_CHAR_PTR, 
109         VARRAY_PUSH_RTX, VARRAY_PUSH_RTVEC, VARRAY_PUSH_TREE, 
110         VARRAY_PUSH_BITMAP, VARRAY_PUSH_REG, VARRAY_PUSH_BB, 
111         VARRAY_PUSH_EDGE, VARRAY_PUSH_TREE_PTR): Likewise.
112         (VARRAY_TOP_CHAR, VARRAY_TOP_UCHAR, VARRAY_TOP_SHORT, 
113         VARRAY_TOP_USHORT, VARRAY_TOP_INT, VARRAY_TOP_UINT, 
114         VARRAY_TOP_LONG, VARRAY_TOP_ULONG, VARRAY_TOP_WIDE_INT, 
115         VARRAY_TOP_UWIDE_INT, VARRAY_TOP_GENERIC_PTR, 
116         VARRAY_TOP_GENERIC_PTR_NOGC, VARRAY_TOP_CHAR_PTR, VARRAY_TOP_RTX, 
117         VARRAY_TOP_RTVEC, VARRAY_TOP_TREE, VARRAY_TOP_BITMAP, 
118         VARRAY_TOP_REG, VARRAY_TOP_BB, VARRAY_TOP_EDGE, 
119         VARRAY_TOP_TREE_PTR): Likewise.
120         * varray.c (varray_grow): Likewise.
121         (varray_clear): Likewise.
122
123 2005-12-12  Alan Modra  <amodra@bigpond.net.au>
124
125         PR target/25299
126         * config/rs6000/rs6000.c (rs6000_special_round_type_align): Increase
127         alignment to doubleword if the first field is a double array.
128         * config/rs6000/linux64.h (TARGET_ALIGN_NATURAL): Define.
129
130 2005-12-11  Daniel Berlin  <dberlin@dberlin.org>
131
132         * tree-ssa-structalias.c (process_constraint): Remove code to
133         transform addressofs into scalar.
134         (create_variable_info_for): In whole-program IPA, globals don't
135         point to ANYTHING by default.
136
137 2005-12-11  Daniel Berlin  <dberlin@dberlin.org>
138
139         * timevar.def (TV_IPA_PTA): New.
140         * tree-pass.h (pass_ipa_pta): New
141         * tree-ssa-structalias.c: Include cgraph.h
142         (in_ipa_mode): New.
143         (predbitmap_obstack): New.
144         (EXECUTE_IF_IN_NONNULL_BITMAP): New.
145         (struct constraint_stats): Add num_edges.
146         (new_var_info): Don't call bitmap_clear.
147         (struct constraint_edge): Update docs.
148         (new_constraint_edge): Remove src param.
149         (struct constraint_graph): Add zero_weight_succs,
150         zero_weight_preds.  Update docs.
151         (constraint_expr_equal): Reformat.
152         (constraint_edge_equal): Update for removal of src.
153         (constraint_edge_less): Ditto.
154         (constraint_edge_vec_find): Ditto.
155         (erase_graph_self_edge): Update for removal of src and and zero
156         weight bitmap.
157         (clear_edges_for_node): Ditto.
158         (add_graph_edge): Ditto.
159         (get_graph_weights): Ditto.
160         (allocate_graph_weights): Ditto.
161         (merge_graph_nodes): Ditto.
162         (int_add_graph_edge): Ditto.
163         (valid_graph_edge): Ditto.
164         (valid_weighted_graph_edge): Ditto.
165         (build_constraint_graph): Ditto.
166         (scc_visit): Ditto.
167         (collapse_nodes): Ditto.
168         (process_unification_queue): Ditto.
169         (topo_visit): Ditto.
170         (solve_graph): Ditto.
171         (do_structure_copy): Ditto.
172         (perform_var_substitution): Ditto.
173         Init and release obstack.
174         (handle_ptr_arith): Try to resolve directly.
175         (find_func_aliases): Don't call update_alias_info here
176         Handle RETURN_EXPR, and CALL_EXPR's in IPA mode.
177         (do_sd_constraint): Add code for propagating faster.
178         Update.
179         (do_ds_constraint): Ditto.
180         (count_num_arguments): New function.
181         (create_function_info_for): Ditto.
182         (create_variable_info_for): Handle FUNCTION_DECL.
183         (intra_create_variable_infos): Use make_constraint_to_anything.
184         (init_alias_vars): Init obstacks here.
185         (need_to_solve): Handle zero weight graph changes.
186         (compute_points_to_sets): Call update_alias_info here.
187         (delete_points_to_sets): Free zero weight preds/succs here.
188         (gate_ipa_pta): New.
189         (ipa_pta_execute): New
190
191 2005-12-11  Daniel Berlin  <dberlin@dberlin.org>
192
193         * tree-ssa-structalias.c (var_anyoffset): Removed.
194         (anyoffset_tree): Ditto.
195         (anyoffset_id): Ditto.
196         (do_deref): Take vector of constraints, no return value.
197         Update to work on vector.                
198         (get_constraint_for): Ditto.
199         (get_constraint_for_component_ref): Ditto.
200         (do_structure_copy): Ditto.
201         (handle_ptr_arith): Ditto.
202         (find_func_aliases): Ditto.
203         (set_uids_in_ptset): Remove anyoffset handling.
204         (init_base_vars): Ditto.
205
206 2005-12-10  Mark Mitchell  <mark@codesourcery.com>
207
208         PR c++/25010
209         * ipa-inline.c (cgraph_clone_inlined_nodes): Do not assume that
210         DECL_EXTERNAL functions have no bodies.  Tidy.
211
212 2005-12-10  Andreas Schwab  <schwab@suse.de>
213
214         * except.c (switch_to_exception_section): Only define if
215         TARGET_UNWIND_INFO is not defined.
216
217 2005-12-10  Richard Sandiford  <richard@codesourcery.com>
218
219         * config/darwin.h (HAS_INIT_SECTION): Remove definition.
220         (INIT_SECTION_ASM_OP): Restore empty definition from before 2005-12-07.
221
222 2005-12-10  Richard Sandiford  <richard@codesourcery.com>
223
224         * output.h (init_section, fini_section): Delete.
225         * varasm.c (init_section, fini_section): Delete.
226         (init_varasm_once): Don't initialize them.
227         * doc/tm.texi (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Say that
228         there are no corresponding varasm.c variables.
229
230 2005-12-10  Richard Sandiford  <richard@codesourcery.com>
231
232         * dwarf2out.c (default_eh_frame_section): Delete, moving handling
233         of EH_FRAME_SECTION_NAME into...
234         (switch_to_eh_frame_section): ...here.  Try to set eh_frame_section
235         if it is still null.
236         * except.c (default_exception_section): Delete, moving most
237         of the code to...
238         (switch_to_exception_section): ...this new function.  Set
239         exception_section if it is still null, then switch to it.
240         (output_function_exception_table): Use switch_to_exception_section.
241         * varasm.c (exception_section, eh_frame_section): Update comments.
242         (get_section): Hoist use of SECTION_NAMED.
243         (init_varasm_once): Don't set exception_section and eh_frame_section.
244         * output.h (default_exception_section): Delete.
245         (default_eh_frame_section): Delete.
246
247 2005-12-09  Bernd Schmidt  <bernd.schmidt@analog.com>
248
249         * config/bfin/bfin.c: Include "cgraph.h".
250         (bfin_load_pic_reg): Omit loading pic reg if in a local function.
251         Return the reg that holds the pointer to the GOT.
252         (bfin_expand_prologue): Use return value of bfin_load_pic_reg when
253         doing stack checking.
254
255 2005-12-09  Diego Novillo  <dnovillo@redhat.com>
256
257         * tree.c (recompute_tree_invariant_for_addr_expr): Rename from
258         recompute_tree_invarant_for_addr_expr.
259         Update uses everywhere.
260
261 2005-12-09  Aldy Hernandez  <aldyh@redhat.com>
262
263         * config/ms1/t-ms1 (MULTILIB_OPTIONS): Define.
264         (MULTILIB_DIRNAMES): Define.
265
266 2005-12-09  Ulrich Weigand  <uweigand@de.ibm.com>
267
268         PR target/25311
269         * config/s390/s390.c (struct s390_address): New field literal_pool.
270         (s390_decompose_address): Compute literal_pool field.  Do not 
271         assume register %r13 is always (and solely) used as pool base.
272         (s390_extra_constraint_str): Use literal_pool field.
273
274 2005-12-09  Thiemo Seufer  <ths@networkno.de>
275
276         * config/mips/mips.c (override_options): Don't allow too small
277         integers in FP registers.
278
279 2005-12-09  Ulrich Weigand  <uweigand@de.ibm.com>
280
281         * config/s390/s390.c (s390_function_ok_for_sibcall): Use
282         targetm.binds_local_p to check for local function calls.
283
284 2005-12-09  Alan Modra  <amodra@bigpond.net.au>
285
286         PR debug/24908
287         * dwarf2out.c (dwarf2out_frame_debug_expr): Don't assert that
288         call_used_regs can't be used to save reg in another reg.
289
290 2005-12-08  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
291             Christophe Jaillet  <christophe.jaillet@wanadoo.fr>
292
293         * ipa-type-escape.c (analyze_variable): Use gcc_assert instead of
294         abort.
295         * except.c (output_ttype): Likewise.
296         * tree-object-size.c (collect_object_sizes_for): Likewise.
297         (check_for_plus_in_loops_1): Likewise.
298         (check_for_plus_in_loops): Likewise.
299         (compute_object_sizes): Use gcc_unreachable instead of abort.
300
301 2005-12-08  Nathan Sidwell  <nathan@codesourcery.com>
302
303         * config/ms1/ms1.md (UNSPEC_LOOP): New constant.
304         (loop_end, loop_init, doloop_end): New insns.
305         * config/ms1/ms1.h (LOOP_FIRST, LOOP_LAST): New.
306         (SPECIAL_REG_FIRST, FIRST_PSEUDO_REGISTER): Adjust.
307         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
308         (REG_CLASS_CONTENTS, REGISTER_NAMES): Adjust.
309         * config/ms1/ms1.c: #include basic-block.h
310         (struct machine_function): Add has_loops field.
311         (ms1_add_loop): New.
312         (MAX_LOOP_DEPTH, MAX_LOO_LENGTH): New.
313         (struct loop_info, struct loop_work): New.
314         (ms1_loop_nesting, ms1_block_length, ms1_scan_loop): New workers.
315         (ms1_reorg_loops): New loop optimization.
316         (ms1_machine_reorg): Call it.
317         * config/ms1/ms1-protos.h (ms1_add_loop): Declare.
318
319 2005-12-08  Zdenek Dvorak  <dvorakz@suse.cz>
320
321         PR tree-optimization/25248
322         * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Do not use
323         evolution_of_loop from the failed attempt.  Remove handling
324         of MULT_EXPR.
325
326 2005-12-08  Gabriel Dos Reis  <gdr@integrable-solutions.net>
327
328         * tree.h (DECL_EXTERNAL): Clarify documentation.
329
330 2005-12-08  Andreas Krebbel  <krebbel1@de.ibm.com>
331             Jakub Jelinek  <jakub@redhat.com>
332
333         PR target/25268
334         * config/s390/s390.c (s390_decompose_shift_count): Remove BITS
335         argument.  Don't drop outer ANDs.
336         (s390_extra_constraint_str, print_shift_count_operand): Adjust callers.
337         * config/s390/s390-protos.h (s390_decompose_shift_count): Adjust
338         prototype.
339         * config/s390/predicates.md (setmem_operand): Remove.
340         (shift_count_operand): Rename to...
341         (shift_count_or_setmem_operand): ... this.  Adjust
342         s390_decompose_shift_count caller.
343         * config/s390/s390.md (<shift>di3_31_and, <shift>di3_64_and,
344         ashrdi3_cc_31_and, ashrdi3_cconly_31_and, ashrdi3_31_and,
345         ashrdi3_cc_64_and, ashrdi3_cconly_64_and, ashrdi3_64_and,
346         <shift>si3_and, ashrsi3_cc_and, ashrsi3_cconly_and, ashrsi3_and,
347         rotl<mode>3_and, setmem_long_and): New insns.
348         (<shift>di3_31, <shift>di3_64, ashrdi3_cc_31, ashrdi3_cconly_31,
349         ashrdi3_31, ashrdi3_cc_64, ashrdi3_cconly_64, ashrdi3_64,
350         <shift>si3, ashrsi3_cc, ashrsi3_cconly, ashrsi3, rotl<mode>3,
351         <shift>di3, ashrdi3): Use shift_count_or_setmem_operand instead
352         of shift_count_operand.
353         (setmem_long): Use shift_count_or_setmem_operand instead of
354         setmem_operand.
355
356 2005-12-08  Daniel Jacobowitz  <dan@codesourcery.com>  
357             Andreas Tobler  <a.tobler@schweiz.ch>
358
359         * Makefile.in (ALL_GTFILES_H): Replace sed statement with more portable
360         tr expression.
361
362 2005-12-07  J"orn Rennecke <joern.rennecke@st.com>
363
364         * expr.c (force_operand): Use convert_to_mode for conversions.
365
366 2005-12-07  J"orn Rennecke <joern.rennecke@st.com>
367
368         * reload.h (reg_equiv_invariant): Declare.
369         * reload.c (refers_to_regno_for_reload_p): Allow R to be a pseudo
370         register also when reg_equiv_invariant[R] is set.
371
372 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
373             Andreas Tobler  <a.tobler@schweiz.ch>
374
375         * config/darwin.h: Guard section variables with #ifndef USED_FOR_TARGET.
376
377 2005-12-07  Daniel Berlin  <dberlin@dberlin.org>
378
379         * tree-ssa-pre.c (bitmap_set_and): New function.
380         (bitmap_set_and_compl): New function.
381         (bitmap_set_empty_p): New function.
382         (insert_extra_phis): New function.
383         (compute_avail): Use insert_extra_phis.
384
385 2005-12-07  Adrian Straetling  <straetling@de.ibm.com>
386
387         * config/s390/s390.c (s390_expand_atomic): New function.
388         Adjust comment of helper functions.
389         * config/s390/s390-protos.h (s390_expand_atomic): Declare.
390         * config/s390/s390.md ("ATOMIC"): New code macro.
391         ("atomic"): Corresponding new code attribute.
392         ("sync_lock_test_and_set[hq]i", 
393         "sync_{new_,old_,}{and,ior,xor,add,sub,nand}[hq]i"): New pattern.
394
395 2005-12-07  Adrian Straetling  <straetling@de.ibm.com>
396
397         * config/s390/s390.c (s390_expand_mask_and_shift, 
398         struct alignment_context, init_alignment_context, 
399         s390_expand_cs_hqi): New.
400         * config/s390/s390-protos.h (s390_expand_cs_hqi): Declare.
401         * config/s390/s390.md ("sync_compare_and_swaphi",
402         "sync_compare_and_swapqi"): New pattern.
403
404 2005-12-07  Daniel Berlin <dberlin@dberlin.org>
405
406         Fix PR tree-optimization/25291
407         * tree-ssa-operands.c (add_call_clobber_ops): Remove
408         redundant and crashing check.
409
410 2005-12-08  Alan Modra  <amodra@bigpond.net.au>
411
412         PR target/25212
413         * config/rs6000/rs6000.c (legitimate_indexed_address_p): Relax
414         tests further when !strict && reload_in_progress.
415         (print_operand): Check that both operands of indexed address are regs.
416         (print_operand_address): Likewise.
417         * config/rs6000/rs6000.h (INT_REG_OK_FOR_INDEX_P): Simplify.
418         (INT_REG_OK_FOR_BASE_P): Correct.
419
420 2005-12-07  J"orn Rennecke <joern.rennecke@st.com>
421
422         Preparation for PR rtl-optimization/20070 / part1
423         * basic-block.h (insns_match_p, flow_find_cross_jump): Declare.
424         * cfgcleanup.c (condjump_equiv_p): New function, broken out of
425         outgoing_edges_match.
426         (outgoing_edges_match): Use condjump_equiv_p.
427         (merge_memattrs, insns_match_p, flow_find_cross_jump): Move from here
428         into..
429         * struct-equiv.c: New file.
430         (death_notes_match_p) New function, broken out of insns_match_p.
431         * Makefile.in (OBJS-common): Add struct-equiv.o.
432         (struct-equiv.o): New target.
433
434 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
435
436         * coretypes.h: Revert previous change.
437         * config/darwin.h: Revert previous reversion.
438         * config/avr/avr.h (progmem_section): Guard with #ifndef IN_LIBGCC2.
439
440 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
441
442         * coretypes.h (section): Provide dummy definition for target files.
443         * config/darwin.h: Revert previous change.
444
445 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
446
447         * doc/sourcebuild.texi (all.build, install-normal): Remove.
448         * configure.ac: Remove all.build and install-normal from target_list
449         * configure: Regenerate.
450         * Makefile.in (install): Don't depend on install-normal.
451
452 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
453
454         * Makefile.in: Document the use of stamps.
455
456 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
457
458         * doc/gty.texi: Remove instructions for adding a dependency on s-gtype.
459         * Makefile.in: Add code to compute some dependencies on s-gtype
460         automatically.  Remove the declaration of those dependencies.
461
462 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
463
464         * gcc/reload.c (push_secondary_reload): Fix typo:
465         s/insn_constraint/scratch_constraint/.
466
467 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
468
469         * config/darwin.h: Guard section variables with #ifndef IN_LIBGCC2.
470
471 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
472
473         * config/alpha/alpha.c (alpha_start_function): Use switch_to_section.
474         (alpha_elf_select_rtx_section): Return the selected section rather
475         than emitting assembly code.
476         (alpha_write_linkage): Emit a ".link" directive directly and then
477         set in_section to NULL.
478         (vms_asm_out_constructor): Use switch_to_section.
479         (vms_asm_out_destructor): Likewise.
480         (unicosmk_output_common): Set in_section to NULL instead of calling
481         the dummy common_section function.
482         (unicosmk_text_section): Delete in favor of...
483         (unicosmk_output_text_section_asm_op): ...this new function.
484         (unicosmk_data_section): Delete in favor of...
485         (unicosmk_output_data_section_asm_op): ...this new function.
486         (unicosmk_init_sections): New function.
487         (unicosmk_output_deferred_case_vectors): Use switch_to_section.
488         (unicosmk_output_ssib): Set in_section to NULL instead of calling
489         the dummy ssib_section function.
490         (unicosmk_section_buf): Delete.
491         * config/alpha/alpha-protos.h (unicosmk_text_section): Delete.
492         (unicosmk_data_section): Delete.
493         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
494         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, sbss_section, sdata_section)
495         (SECTION_FUNCTION_TEMPLATE): Delete.
496         * config/alpha/unicosmk.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP)
497         (READONLY_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
498         (common_section, COMMON_SECTION, ssib_section, SSIB_SECTION): Delete.
499         (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
500         (TARGET_ASM_INIT_SECTIONS): Define.
501         * config/alpha/vms.h (LINK_SECTION_ASM_OP, LITERALS_SECTION_ASM_OP)
502         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
503         (link_section, literals_section): Delete.
504         (ASM_OUTPUT_DEF): Emit the ".literal" directive directly and then
505         set in_section to NULL.
506
507         * config/arm/aof.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Delete.
508         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, ZERO_INIT_SECTION): Delete.
509         (COMMON_SECTION): Delete.
510         (TARGET_ASM_INIT_SECTIONS): Define.
511         (ASM_OUTPUT_COMMON): Set in_section to NULL rather than calling
512         the dummy common_section function.
513         * config/arm/aout.h (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
514         * config/arm/arm.c (get_jump_table_size): Use pointer comparison
515         between readonly_data_section and text_section to check whether
516         read-only data is being put in the text section.
517         (arm_output_function_epilogue): Use switch_to_section.
518         (arm_elf_asm_constructor): Likewise.
519         (thumb_call_via_reg): Replace call to in_text_section with
520         a comparison between in_section and text_section.
521         (arm_file_end): Use switch_to_section.
522         (aof_text_section): Delete in favor of...
523         (aof_output_text_section_asm_op): ...this new function.
524         (aof_data_section): Delete in favor of...
525         (aof_output_data_section_asm_op): ...this new function.
526         (aof_asm_init_sections): New function.
527         (zero_init_section): Moved from config/arm/aof.h.
528         (aof_dump_imports, aof_file_start): Use switch_to_section.
529         * config/arm/arm.h (thumb_call_via_label): Update comment.
530         * config/arm/arm-protos.h (aof_text_section, aof_data_section): Delete.
531         (common_section): Delete.
532         * config/arm/pe.h (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.
533         (ASM_DECLARE_OBJECT_NAME): Update the type of save_section.  Use the
534         global switch_to_section function instead of the old port-local one.
535         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, DRECTVE_SECTION_FUNCTION)
536         (SWITCH_TO_SECTION_FUNCTION): Delete.
537         (drectve_section): Redefine as a macro.
538         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS):
539         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use get_named_section and
540         switch_to_section.
541
542         * config/avr/avr.c (progmem_section): New variable.
543         (avr_output_progmem_section_asm_op): New function.
544         (avr_asm_init_sections): New function.
545         (avr_output_addr_vec_elt): Use switch_to_section.
546         * config/avr/avr.h (progmem_section): Declare.
547         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
548         (READONLY_DATA_SECTION): Delete.
549         (TARGET_ASM_INIT_SECTIONS): Define.
550         (ASM_OUTPUT_CASE_LABEL): Use switch_to_section.
551         * config/avr/avr-protos.h (progmem_section): Delete.
552
553         * config/bfin/bfin.h (ASM_OUTPUT_LOCAL): Use switch_to_section.
554
555         * config/c4x/c4x.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
556         (INIT_SECTION_FUNCTION, FINI_SECTION_FUNCTION): Delete.
557
558         * config/darwin-sections.def: New file.
559         * config/darwin.c: Define all sections in darwin-sections.def.
560         (output_objc_section_asm_op, darwin_init_sections): New functions.
561         (machopic_output_indirection): Use switch_to_section.
562         (machopic_select_section): Return the selected section rather than
563         emitting assembly code.  Replace the static function table with
564         inline conditional expressions.  Update the tests of last_text_section
565         and move them into the FUNCTION_DECL block.
566         (machopic_select_rtx_section): Return the selected section rather than
567         emitting assembly code.
568         (machopic_asm_out_constructor, machopic_asm_out_destructor)
569         (darwin_file_end): Use switch_to_section.
570         * config/darwin.h: Use darwin-sections.def to declare sections.
571         (INIT_SECTION_ASM_OP): Remove empty definition.
572         (HAS_INIT_SECTION): Define this instead.
573         (SECTION_FUNCTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
574         (READONLY_DATA_SECTION, TARGET_ASM_EXCEPTION_SECTION): Delete.
575         (TARGET_ASM_EH_FRAME_SECTION): Delete.
576         (TARGET_ASM_INIT_SECTIONS): Define.
577         * config/darwin-protos.h (darwin_init_sections): Declare.
578         (machopic_picsymbol_stub_section, machopic_picsymbol_stub1_section)
579         (machopic_symbol_stub_section, machopic_symbol_stub1_section): Delete.
580         (machopic_lazy_symbol_ptr_section, machopic_nl_symbol_ptr_section)
581         (constructor_section, destructor_section, mod_init_section): Delete.
582         (mod_term_section): Delete.
583         (darwin_exception_section, darwin_eh_frame_section): Delete.
584         (machopic_select_section): Return a section.
585         (machopic_select_rtx_section): Likewise.
586         (text_coal_section, text_unlikely_section, text_unlikely_coal_section)
587         (const_section, const_coal_section, const_data_section): Delete.
588         (const_data_coal_section, data_coal_section, cstring_section): Delete.
589         (literal4_section, literal8_section, constructor_section): Delete.
590         (mod_init_section, mod_term_section, destructor_section): Delete.
591         (objc_class_section, objc_meta_class_section, objc_category_section)
592         (objc_class_vars_section, objc_instance_vars_section): Delete.
593         (objc_cls_meth_section, objc_inst_meth_section): Delete.
594         (objc_cat_cls_meth_section, objc_cat_inst_meth_section): Delete.
595         (objc_selector_refs_section, objc_selector_fixup_section): Delete.
596         (objc_symbols_section, objc_module_info_section): Delete.
597         (objc_image_info_section, objc_protocol_section): Delete.
598         (objc_string_object_section, objc_constant_string_object_section)
599         (objc_class_names_section, objc_meth_var_names_section): Delete.
600         (objc_meth_var_types_section, objc_cls_refs_section): Delete.
601         (machopic_lazy_symbol_ptr_section, machopic_nl_symbol_ptr_section)
602         (machopic_symbol_stub_section, machopic_picsymbol_stub_section)
603         (darwin_exception_section, darwin_eh_frame_section): Delete.
604         * config/t-darwin (darwin.o): Depend on config/darwin-sections.def.
605
606         * config/frv/frv.c (frv_asm_out_constructor): Use switch_to_section.
607         (frv_asm_out_destructor): Likewise.
608         * config/frv/frv.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
609         (SDATA_SECTION_FUNCTION, FIXUP_SECTION_FUNCTION): Delete.
610         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use switch_to_section and
611         get_named_section.
612         (ASM_OUTPUT_CASE_LABEL): Use switch_to_section.
613         * config/frv/frv-protos.h (fixup_section, sdata_section, sbss_section)
614         (data_section): Delete.
615
616         * config/i386/cygming.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
617         (DRECTVE_SECTION_FUNCTION): Delete.
618         (drectve_section): Redefine as a macro that sets in_section after
619         emitting the directive.
620         (SWITCH_TO_SECTION_FUNCTION): Delete.
621         * config/i386/darwin.h (ASM_OUTPUT_ALIGN): Replace call to
622         in_text_section with comparison between in_section and text_section.
623         * config/i386/i386.c (x86_64_elf_select_section): Return the section
624         rather than emitting assembly code.  Use get_named_section.
625         (x86_output_aligned_bss, ix86_file_end): Use switch_to_section and
626         get_named_section.
627         (machopic_output_stub): Use switch_to_section.
628         * config/i386/nwld.c (nwld_named_section_asm_out_constructor)
629         (nwld_named_section_asm_out_destructor): Use get_section and
630         switch_to_section.
631
632         * config/ia64/ia64.c (ia64_select_rtx_section): Return the section
633         rather than emitting assembly code.
634         (ia64_rwreloc_select_section): Likewise.
635         (ia64_rwreloc_select_rtx_section): Likewise.
636         * config/ia64/ia64-protos.h (sdata_section, sbss_section): Delete.
637         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
638         switch_to_section.
639         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
640         (SDATA_SECTION_FUNCTION, SBSS_SECTION_FUNCTION): Delete.
641
642         * config/iq2000/iq2000.c (iq2000_select_rtx_section): Return the
643         section rather than emitting assembly code.
644         (iq2000_select_section): Likewise.
645         * config/iq2000/iq2000.h (rdata_section, sdata_section): Delete.
646         (sbss_section): Delete.
647
648         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Use switch_to_section
649         and get_named_section.
650         * config/m32r/m32r-protos.h (sbss_section, sdata_section): Delete.
651
652         * config/mcore/mcore-elf.h (EXPORTS_SECTION_ASM_OP): Delete.
653         (SUBTARGET_EXTRA_SECTIONS, SUBTARGET_EXTRA_SECTION_FUNCTIONS): Delete.
654         (EXPORT_SECTION_FUNCTION, SUBTARGET_SWITCH_SECTIONS): Delete.
655         (MCORE_EXPORT_NAME): Emit the exports directive directly, then set
656         in_section to NULL.
657         (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.
658         (ASM_DECLARE_OBJECT_NAME): Update the type of save_section.  Use the
659         global switch_to_section function instead of the old port-local one.
660         * config/mcore/mcore.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
661         (SWITCH_SECTION_FUNCTION): Delete.
662         * config/mcore/mcore-pe.h (SUBTARGET_SWITCH_SECTIONS): Delete.
663         (DRECTVE_SECTION_ASM_OP, SUBTARGET_EXTRA_SECTIONS): Delete.
664         (SUBTARGET_EXTRA_SECTION_FUNCTIONS, DRECTVE_SECTION_FUNCTION): Delete.
665         (MCORE_EXPORT_NAME): Emit ".section .drectve" directly, then set
666         in_section to NULL.
667         (ASM_DECLARE_OBJECT_NAME): Update the type of save_section.  Use the
668         global switch_to_section function instead of the old port-local one.
669         (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.
670
671         * config/mips/mips.c (mips_file_start): Update comment.
672         (mips_output_aligned_bss): Use switch_to_section and get_named_section.
673         (mips_output_aligned_decl_common): Use switch_to_section.
674         (mips_select_rtx_section): Return the section rather than emitting
675         assembly code.  Use get_named_section.
676         (mips_function_rodata_section: Likewise get_section.
677         (build_mips16_function_stub): Use switch_to_section.
678         * config/mips/mips.h (ASM_OUTPUT_IDENT): Use switch_to_section.
679         (SDATA_SECTION_ASM_OP): Delete.
680         * config/mips/vxworks.h (EXTRA_SECTIONS): Delete.
681         (EXTRA_SECTION_FUNCTIONS): Delete.
682
683         * config/mmix/mmix.c (mmix_file_start, mmix_file_end)
684         (mmix_asm_output_aligned_local): Use switch_to_section.
685
686         * config/pa/pa.c (som_readonly_data_section, som_one_only_data_section)
687         (som_one_only_readonly_data_section): New variables.
688         (pa_output_function_epilogue): Set in_section to NULL instead of
689         calling forget_section.
690         (output_deferred_plabels): Use select_section.
691         (pa_asm_output_mi_thunk): Likewise.  Set in_section to NULL instead
692         of calling forget_section.
693         (pa_asm_output_aligned_bss, pa_asm_output_aligned_common)
694         (pa_asm_output_aligned_local): Use select_section.
695         (som_text_section_asm_op): Delete in favor of...
696         (som_output_text_section_asm_op): ...this new function.
697         (pa_som_asm_init_sections): New function.
698         (pa_select_section): Return the section rather than emitting
699         assembly code.
700         * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
701         (SOM_READONLY_DATA_SECTION_FUNCTION): Delete.
702         (SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION): Delete.
703         (SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): Delete.
704         * config/pa/pa-protos.h (som_text_section_asm_op): Delete.
705         (som_readonly_data_section, som_one_only_readonly_data_section)
706         (som_one_only_data_section, forget_section): Delete.
707         * config/pa/som.h (TEXT_SECTION_ASM_OP): Delete.
708         (TARGET_ASM_INIT_SECTIONS): Define.
709         (READONLY_DATA_SECTION, TARGET_ASM_EXCEPTION_SECTION): Delete.
710
711         * config/rs6000/rs6000.c (read_only_data_section): New variable.
712         (private_data_section, read_only_private_data_section): New variables.
713         (sdata2_section, toc_section): New variables.
714         (rs6000_file_start): Use switch_to_section.
715         (rs6000_assemble_integer): Use comparisons against in_section
716         instead of calling in_toc_section and in_text_section.  Use
717         unlikely_text_section_p.
718         (rs6000_elf_output_toc_section_asm_op): New function, derived
719         from the old rs6000/sysv4.h toc_section function.
720         (rs6000_elf_asm_init_sections): New function.
721         (rs6000_elf_select_rtx_section, rs6000_elf_select_section): Return
722         the section rather than emitting assembly code.
723         (machopic_output_stub): Use switch_to_section.
724         (toc_section): Delete dummy function.
725         (rs6000_elf_asm_out_constructor, rs6000_elf_asm_out_destructor): Use
726         switch_to_section and get_section.
727         (rs6000_xcoff_output_readonly_section_asm_op): New function.
728         (rs6000_xcoff_output_readwrite_section_asm_op): New function.
729         (rs6000_xcoff_output_toc_section_asm_op): New function, derived from
730         the old rs6000/xcoff.h toc_section function.
731         (rs6000_xcoff_asm_init_sections): New function.
732         (rs6000_xcoff_select_section, rs6000_xcoff_select_rtx_section): Return
733         the section rather than emitting assembly code.
734         (rs6000_xcoff_file_start): Use switch_to_section.
735         (rs6000_xcoff_file_end): Likewise.
736         * config/rs6000/rs6000-protos.h (toc_section, sdata_section): Delete.
737         (sdata2_section, sbss_section, private_data_section): Delete.
738         (read_only_data_section, read_only_private_data_section): Delete.
739         * config/rs6000/sysv4.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
740         (TOC_SECTION_FUNCTION, SDATA_SECTION_FUNCTION, SDATA2_SECTION_FUNCTION)
741         (SBSS_SECTION_FUNCTION, INIT_SECTION_FUNCTION): Delete.
742         (FINI_SECTION_FUNCTION): Delete.
743         (TARGET_ASM_INIT_SECTIONS): Define.
744         (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
745         * config/rs6000/xcoff.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
746         (READ_ONLY_DATA_SECTION_FUNCTION, PRIVATE_DATA_SECTION_FUNCTION)
747         (READ_ONLY_PRIVATE_DATA_SECTION_FUNCTION, TOC_SECTION_FUNCTION)
748         (READONLY_DATA_SECTION): Delete.
749         (TARGET_ASM_INIT_SECTIONS): Define.
750         (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.  Set in_section
751         to NULL rather than no_section.
752         (TARGET_ASM_EXCEPTION_SECTION): Delete.
753
754         * config/sh/sh.c (sh_file_start): Use switch_to_section.
755
756         * config/sparc/sparc.c (emit_pic_helper): Use switch_to_section.
757         (sparc_output_deferred_case_vectors): Likewise.  Remove argument
758         from call to current_function_section.
759
760         * config/stormy16/stormy16.c: Include ggc.h and gt-storm16.h.
761         (bss100_section): New variable.
762         (xstormy16_asm_output_aligned_common): Use switch_to_section.
763         (xstormy16_asm_init_sections): New function.
764         (xstormy16_asm_out_destructor, xstormy16_asm_out_constructor): Use
765         switch_to_section and get_section.
766         (xstormy16_output_addr_vec): Use switch_to_section.  Remove argument
767         from calls to current_function_section.
768         * config/stormy16/stormy16.h (EXTRA_SECTIONS): Delete.
769         (XSTORMY16_SECTION_FUNCTION, EXTRA_SECTION_FUNCTIONS): Delete.
770         (TARGET_ASM_INIT_SECTIONS): Define.
771         * config/stormy16/stormy16-protos.h (bss100_section): Delete.
772
773         * config/svr3.h (ASM_OUTPUT_LOCAL): Use switch_to_section.
774         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, INIT_SECTION_FUNCTION)
775         (FINI_SECTION_FUNCTION): Delete.
776
777         * config/v850/v850.c: Include gt-v850.h.
778         (rosdata_section, rozdata_section, tdata_section, zdata_section)
779         (zbss_section): New variables.
780         (v850_output_aligned_bss): Use switch_to_section.
781         (v850_asm_init_sections): New function.
782         (v850_select_section): Return the section rather than emitting
783         assembly code.
784         * config/v850/v850.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
785         (ZDATA_SECTION_ASM_OP, ZBSS_SECTION_ASM_OP, TDATA_SECTION_ASM_OP)
786         (ROSDATA_SECTION_ASM_OP, ROZDATA_SECTION_ASM_OP): Delete.
787         (TARGET_ASM_INIT_SECTIONS): Define.
788         * config/v850/v850-protos.h (sdata_section, rosdata_section): Delete.
789         (sbss_section, tdata_section, zdata_section, rozdata_section): Delete.
790         (zbss_section): Delete.
791
792         * config/vax/vaxv.h (ASM_OUTPUT_LOCAL): Use switch_to_section.
793
794         * config/vx-common.h (vxworks_exception_section): Delete.
795         (TARGET_ASM_EXCEPTION_SECTION): Delete.
796
797         * config/xtensa/xtensa.c (xtensa_select_rtx_section): Return the
798         section rather than emitting assembly code.
799         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Use
800         switch_to_section.
801
802         * Makefile.in (GTFILES): Add $(srcdir)/output.h.
803         * coretypes.h (section): New union and typedef.
804         * dbxout.c (FORCE_TEXT): Use switch_to_section.  Remove argument
805         from call to current_function_section.
806         (dbxout_function_end, dbxout_init, dbxout_source_file, dbxout_finish)
807         (dbxout_symbol_location): Use switch_to_section.
808         * dwarf2out.c (named_section_eh_frame_section): Delete, moving
809         most of the code into...
810         (default_eh_frame_section): ...here.  Return a section.
811         (collect2_eh_frame_section): Delete, moving most of the code into..
812         (switch_to_eh_frame_section): ...this new function.
813         (debug_info_section, debug_abbrev_section, debug_aranges_section)
814         (debug_macinfo_section, debug_line_section, debug_loc_section)
815         (debug_pubnames_section, debug_str_section, debug_ranges_section): New
816         variables.
817         (output_call_frame_info): Call switch_to_eh_frame_section instead of
818         eh_frame_section.  Use switch_to_section and get_section.
819         (dwarf2out_begin_prologue): Use switch_to_section.
820         (AT_string_form): Check the flags in debug_str_section instead of
821         DEBUG_STR_SECTION_FLAGS.
822         (output_comp_unit): Use switch_to_section, get_section, and
823         debug_info_section.
824         (output_line_info, secname_for_decl): Use unlikely_text_section_p.
825         (dwarf2out_begin_block): Use switch_to_section.  Remove argument
826         from call to current_function_section.
827         (dwarf2out_var_location): Use unlikely_text_section_p.
828         (dwarf2out_source_line): Use switch_to_section.  Remove argument
829         from call to current_function_section.
830         (dwarf2out_start_source_file, dwarf2out_end_source_file)
831         (dwarf2out_define, dwarf2out_undef: Use switch_to_section and
832         debug_macinfo_section.
833         (dwarf2out_init): Initialize the new section variables.  Use them
834         instead of calls to named_section_flags.  Use switch_to_section.
835         (output_indirect_string): Use switch_to_section and debug_str_section.
836         (dwarf2out_finish): Use switch_to_section and the new section
837         variables.
838         * except.c (default_exception_section): Return the section instead
839         of emitting assembly code.
840         (output_function_exception_table): Use the global exception_section
841         variable instead of the target hook.  Use switch_to_section.  Remove
842         argument from call to current_function_section.
843         * final.c (HAVE_READONLY_DATA_SECTION): Delete.
844         (shorten_branches): Use pointer comparisons to detect whether the
845         text section is the same as readonly_data_section.
846         (profile_function): Use switch_to_section.  Remove argument from
847         call to current_function_section.
848         (final_scan_insn): Likewise.  Update use of last_text_section.
849         * gengtype.c (open_base_files): Add an include of output.h.
850         * output.h (text_section, data_section, readonly_data_section)
851         (ctors_section, dtors_section, bss_section, init_section)
852         (fini_section, sdata_section): Turn into section pointers.
853         (in_text_section, in_unlikely_text_section, exports_section)
854         (drectve_section, named_section, mergeable_string_section)
855         (last_text_section_name): Delete.
856         (default_exception_section, default_eh_frame_section): Return sections.
857         (SECTION_DECLARED, SECTION_NAMED): New macros.
858         (SECTION_MACH_DEP): Bump value.
859         (section_common, named_section, unnamed_section): New structures.
860         (unnamed_section_callback): New typedef.
861         (section): New union.
862         (sbss_section, exception_section, eh_frame_section): New variables.
863         (in_section, last_text_section): Turn into section pointers.
864         (get_unnamed_section, get_section, get_named_section): New functions.
865         (mergeable_constant_section, function_section): Return a section.
866         (unlikely_text_section): Likewise.
867         (current_function_section): Likewise.  Remove the decl argument.
868         (unlikely_text_section_p, switch_to_section): New functions.
869         (output_section_asm_op): New function.
870         (set_named_section_flags, named_section_flags, named_section_real)
871         (named_section_first_declaration): Delete.
872         (default_select_section, default_elf_select_section): Return a section.
873         (default_elf_select_section_1, default_function_rodata_section)
874         (default_no_function_rodata_section, default_select_rtx_section)
875         (default_elf_select_rtx_section): Likewise.
876         * rtl.h (in_data_section): Delete.
877         * sdbout.c (sdbout_one_type): Use switch_to_section.
878         * system.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Poison.
879         (READONLY_DATA_SECTION, TARGET_ASM_EXCEPTION_SECTION): Poison.
880         (TARGET_ASM_EH_FRAME_SECTION): Poison.
881         * target-def.h (TARGET_ASM_INIT_SECTIONS): New macro.
882         (TARGET_ASM_EXCEPTION_SECTION, TARGET_ASM_EH_FRAME_SECTION): Delete.
883         (TARGET_ASM_OUT): Update after above changes.
884         * target.h (init_sections): New hook.
885         (exception_section, eh_frame_section): Delete.
886         (select_section, select_rtx_section, function_rodata_section): Return
887         a section rather than emitting assembly code.
888         * varasm.c (text_section, data_section, readonly_data_section)
889         (ctors_section, dtors_section, bss_section, init_section)
890         (fini_section): Turn into section pointers.
891         (sdata_section, sbss_section, exception_section): New variables.
892         (eh_frame_section): New variable.
893         (in_section): Make global and turn into a section pointer.
894         (last_text_section): Turn into a section pointer.
895         (unnamed_sections): New variable.
896         (in_named_name, last_text_section_name): Delete.
897         (EXTRA_SECTION_FUNCTIONS): Delete.
898         (in_named_entry): Delete.
899         (section_htab): New variable, replacing...
900         (in_named_htab): ...this deleted variable.
901         (section_entry_eq, section_entry_hash): New functions, based on...
902         (in_named_entry_eq, in_named_entry_hash): ...these deleted functions.
903         (get_unnamed_section, get_section): New functions.
904         (unlikely_text_section): Return a section instead of emitting
905         assembly code.
906         (in_text_section, in_unlikely_text_section, in_data_section): Delete.
907         (get_named_section_flags, named_section_first_declaration): Delete.
908         (unlikely_text_section_p): New function.
909         (named_section_real, named_section): Delete.
910         (get_named_section): New function.
911         (asm_output_bss, asm_output_aligned_bss): Use switch_to_section.
912         (function_section): Return a section rather than emitting
913         assembly code.
914         (current_function_section): Likewise.  Remove argument.  Use
915         last_text_section if nonnull, otherwise use function_section.
916         (default_function_rodata_section): Return a section rather than
917         emitting assembly code.  Use get_section.
918         (default_no_function_rodata_section): Return a section rather than
919         emitting assembly code.
920         (variable_section): Use switch_to_section and get_named_section.
921         (mergeable_string_section): Return a section rather than emitting
922         assembly code.  Use get_section.  Make static.  Don't take special
923         countermeasures for empty strings.
924         (mergeable_constant_section): Return a section rather than emitting
925         assembly code.  Use get_section.
926         (default_named_section_asm_out_destructor): Use switch_to_section
927         and get_section.
928         (default_dtor_section_asm_out_destructor): Use switch_to_section.
929         (default_named_section_asm_out_constructor): Use switch_to_section
930         and get_section.
931         (default_ctor_section_asm_out_constructor): Use switch_to_section.
932         (assemble_start_function): Likewise.  Set last_text_section to
933         NULL rather than no_section.  Change the type of save_section.
934         (assemble_zeros, assemble_variable): Use the section flags to detect
935         whether or not a section is text.
936         (assemble_static_space): Use switch_to_section.
937         (assemble_trampoline_template): Likewise.
938         (output_constant_def_contents): Use switch_to_section and
939         get_named_section.
940         (output_constant_pool_1): Use switch_to_section.  Use the section
941         flags to see whether sections contain mergeable data.
942         (init_varasm_once): Initialize section_htab instead of in_named_htab.
943         Initialize new section variables.  Call TARGET_ASM_INIT_SECTIONS.
944         (default_elf_asm_named_section): Use SECTION_DECLARED to detect
945         whether a section has already been declared.
946         (default_select_section, default_elf_select_section): Return a
947         section rather than emitting assembly code.
948         (default_elf_select_section_1): Likewise.  Use bss_section for
949         SECCAT_BSS if nonnull.  Use get_named_section.
950         (default_select_rtx_section): Return a section rather than
951         emitting assembly code.
952         (default_elf_select_rtx_section): Likewise.  Use get_named_section.
953         (file_end_indicate_exec_stack): Use switch_to_section and get_section.
954         (output_section_asm_op, switch_to_section): New functions.
955         * vmsdbgout.c (vmsdbgout_finish): Use switch_to_section and
956         get_named_section.
957
958         * doc/tm.texi: Expand the introduction to the sections documentation.
959         (TRAMPOLINE_SECTION): Document new interface.
960         (SDATA_SECTION_ASM_OP): Document new macro.
961         (READONLY_DATA_SECTION): Delete.
962         (SDATA_SECTION_ASM_OP): Document new macro.
963         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
964         (TARGET_ASM_INIT_SECTIONS): Document new hook.
965         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_FUNCTION_RODATA_SECTION)
966         (TARGET_ASM_SELECT_RTX_SECTION): Adjust for new interface.
967         (TARGET_EXCEPTION_SECTION, TARGET_EH_FRAME_SECTION): Delete.
968
969 2005-12-07  Alan Modra  <amodra@bigpond.net.au>
970
971         * gcc.c (init_gcc_specs): Match braces inside conditionally
972         compiled strings.
973
974 2005-12-06  Geoffrey Keating  <geoffk@apple.com>
975
976         * config/darwin.h (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): New.
977
978 2005-12-06  Aldy Hernandez  <aldyh@redhat.com>
979
980         PR C++/24138
981         * tree.c (integer_all_onesp): Always return true if all bits on.
982
983         * testsuite/g++.dg/init/array0.C: New.
984
985 2005-12-06  Adrian Straetling  <straetling@de.ibm.com>
986
987         * doc/md.texi: Adapt to implementation.
988
989 2005-12-06  Andreas Schwab  <schwab@suse.de>
990
991         * opts.c (decode_options): Fix typo in message.
992
993 2005-12-06  Alan Modra  <amodra@bigpond.net.au>
994
995         PR other/13873
996         * longlong.h: Merge PPC tests from upstream.
997
998 2005-12-06  Richard Guenther  <rguenther@suse.de>
999
1000         * fold-const.c (fold_convert): Do not build and fold
1001         CONVERT_EXPR, but always use NOP_EXPR.
1002
1003 2005-12-06  Jan Beulich  <jbeulich@novell.com>
1004
1005         * config/i386/i386.c (builtin_description): Use MASK_SSE2 for
1006         __builtin_ia32_paddq and __builtin_ia32_subq.
1007         (ix86_init_mmx_sse_builtins): Use MASK_SSE|MASK_3DNOW_A for
1008         __builtin_ia32_pshufw.
1009         * config/i386/i386.md (mmx_adddi3, mmx_subdi3): Depend on TARGET_SSE2.
1010
1011 2005-12-05  James E Wilson  <wilson@specifix.com>
1012
1013         PR target/24934
1014         * opts.c (decode_options): Turn off partitioning if flag_unwind_tables
1015         is set.
1016
1017 2005-12-05  Daniel Berlin  <dberlin@dberlin.org>
1018         
1019         * print-tree.c (print_node): Ditto.
1020         * tree-dfa.c (add_referenced_var): Tag's don't have DECL_INITIAL.
1021         * tree-dump.c (dequeue_and_dump): Check for decl_common structure
1022         before accessing DECL_ARTIFICIAL. 
1023         Handle new tag tree codes.
1024         * tree-flow-inline.h (clear_call_clobbered): Update for tag
1025         changes.
1026         (unmodifiable_var_p): Ditto.
1027         * tree-flow.h (mem_tag_kind): Remove.
1028         (struct var_ann_d): Remove mem_tag_kind member.
1029         * tree-gimple.c (is_gimple_reg): Tags are not gimple registers.
1030         * tree-pretty-print.c (dump_generic_node): Handle memory tags.
1031         * tree-ssa-alias.c (init_alias_info): Update for memory tag changes.
1032         (group_aliases): Ditto.
1033         (setup_pointers_and_addressables): Ditto.
1034         (is_escape_site): Ditto.                                          
1035         (may_alias_p): Ditto.
1036         (create_tag_raw): New function.
1037         (create_memory_tag): Use it.
1038         (dump_alias_info): Update for tags.
1039         (may_be_aliased): Ditto.
1040         (add_type_alias): Ditto.
1041         (new_type_alias): Ditto.
1042         (create_sft): Ditto.
1043         (create_structure_vars): Ditto.
1044         * tree-ssa-ccp.c (get_default_value): Ditto.
1045         * tree-ssa-operands.c (get_expr_operands): Ditto.
1046         (add_stmt_operand): Ditto.
1047         (add_call_clobber_ops): Remove duplicated condition.
1048         * tree-ssa.c (verify_flow_insensitive_alias_info): Update for
1049         tags.
1050         * tree-tailcall.c (suitable_for_tail_opt_p): Ditto.
1051         * tree-vect-transform.c (vect_create_data_ref_ptr): Ditto.
1052         * tree.c (init_ttree): Update structures for new tree codes.
1053         (tree_code_size): Update sizes for new tree codes.
1054         (make_node_stat): Don't try to set common things on minimal
1055         structures.
1056         (tree_node_structure): Update for tags.
1057         (is_global_var): Ditto.
1058         * tree.def: Add new tree codes.
1059         * tree.h (MTAG_P): New macro.
1060         (TREE_MEMORY_TAG_CHECK): Ditto.
1061         (SSA_VAR_P): Update for tags.
1062         (struct tree_memory_tag): New structure.
1063         (MTAG_GLOBAL): New macro.
1064         (union tree_node): Add memory tag member.
1065         * treestruct.def (TS_MEMORY_TAG): New.
1066         
1067 2005-12-05  Dale Johannesen  <dalej@apple.com>
1068
1069         * config/i386/xmmintrin.h (_MM_TRANSPOSE4_PS):  Fix to match
1070         what was approved (PR 24323).
1071
1072 2005-12-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1073
1074         * doc/c-tree.texi (Function Bodies): Remove description of
1075         RETURN_INIT.
1076
1077 2005-12-05  Joseph S. Myers  <joseph@codesourcery.com>
1078
1079         * doc/libgcc.texi (__floatunsisf, __floatunsidf, __floatunsitf,
1080         __floatunsixf, __floatundisf, __floatundidf, __floatunditf,
1081         __floatundixf, __floatuntisf, __floatuntidf, __floatuntitf,
1082         __floatuntixf, __powisf2, __powidf2, __powixf2, __mulsc3,
1083         __muldc3, __multc3, __mulxc3, __divsc3, __divdc3, __divtc3,
1084         __divxc3): Document.
1085
1086 2005-12-05  Geoffrey Keating  <geoffk@apple.com>
1087
1088         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Preserve
1089         previous behaviour.
1090         * config/darwin.h (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Define to
1091         hook_bool_void_false.
1092         (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Define.
1093         * config/darwin.c (darwin_cxx_determine_class_data_visibility): New.
1094
1095         * config/darwin.c (machopic_select_section): It's not defined
1096         as weak if it's only marked as weak_import.
1097         
1098         * config/darwin-protos.h (darwin_cxx_determine_class_data_visibility):
1099         Prototype.
1100
1101         * varasm.c (default_binds_local_p_1): Weakrefs don't bind locally.
1102         A hidden weak object does bind locally.  Strong linkonce data
1103         counts like any other strong symbol for binding.
1104         (weak_finish_1): Don't specially handle weakrefs, they no longer
1105         arrive here.
1106         (assemble_alias): Weakrefs can't be TREE_PUBLIC yet.
1107         * c-common.c (handle_alias_attribute): Allow static aliases
1108         of variables.
1109         (handle_weakref_attribute): Don't call declare_weak on weakrefs.
1110         * gthr-dce.h: Make weakrefs static.
1111         * gthr-tpf.h: Likewise.
1112         * gthr-solaris.h: Likewise.
1113         * gthr-posix.h: Likewise.
1114         * gthr-posix95.h: Likewise.
1115         * config/darwin.c (darwin_encode_section_info): static weakref
1116         variables are not necessarily defined in this translation unit.
1117         * doc/extend.texi (Function Attributes): Mention that an alias
1118         attribute creates a definition for the thing it's attached to.
1119         Change the documentation for weakref to say that the thing
1120         it's attached to must be static.
1121
1122         * config/rs6000/host-darwin.c (segv_handler): Unblock SEGV so
1123         we don't go into an infinite loop.
1124
1125 2005-12-05  Paolo Bonzini  <bonzini@gnu.org>
1126
1127         * config/rs6000/predicates.md (logical_const_operand): Split
1128         out of logical_operand.
1129         (logical_operand): Use it.
1130         * config/rs6000/rs6000.md (cmp -> xor peephole2): Use
1131         logical_const_operand.
1132
1133 2005-12-05  Jan Beulich  <jbeulich@novell.com>
1134
1135         * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_CMPNEPS
1136         and IX86_BUILTIN_CMPNESS.
1137         (ix86_init_mmx_sse_builtins): Remove ti_ftype_ti_ti.
1138         * config/i386/i386.h (ALIGN_MODE_128): Don't check TFmode explicitly.
1139         * config/i386/i386.md (movti_internal): Correct type attribute.
1140         Simplify mode attribute.
1141         (movti_rex64, movsf_1, movdf_nointeger, movdf_integer, movtf_internal):
1142         Correct type attribute.
1143         (absxf2): Correct operator.
1144         * config/i386/mmx.md (mov<mode>_internal_rex64, mov<mode>_internal,
1145         movv2sf_internal_rex64, movv2sf_internal): Correct type attribute.
1146         * config/i386/sse.md (mov<mode>_internal, movv2df_internal): Simplify
1147         mode attribute.
1148         (sse2_vmsqrtv2df2): Correct mode attribute.
1149
1150 2005-12-05  Jan Beulich  <jbeulich@novell.com>
1151
1152         * config/ia64/ia64.md (rotlsi3_internal): Don't split if rotating by
1153         16 bits. Provide insn pattern for this case.
1154
1155 2005-12-05  Jan Beulich  <jbeulich@novell.com>
1156
1157         * libgcc2.c (__popcountSI2): Don't use wide type for iterator and
1158         result.
1159         (__popcountDI2): Likewise.
1160
1161 2005-12-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1162
1163         PR target/25166
1164         * pa/pa.c (pa_hpux_init_libfuncs): Add _U_Qfcnvxf_usgl_to_quad and
1165         _U_Qfcnvxf_udbl_to_quad to set of initialized libfuncs.
1166         * pa/quadlib.c (_U_Qfcnvxf_usgl_to_quad, _U_Qfcnvxf_udbl_to_quad): New
1167         functions.
1168
1169 2005-12-04  Joseph S. Myers  <joseph@codesourcery.com>
1170
1171         * c-typeck.c (null_pointer_constant_p): New function.
1172         (build_conditional_expr, build_c_cast, convert_for_assignment,
1173         build_binary_op): Use it.
1174
1175 2005-12-04  Joseph S. Myers  <joseph@codesourcery.com>
1176
1177         * c-common.c (binary_op_error): Do not allow NOP_EXPR.
1178         (c_common_truthvalue_conversion): Handle NOP_EXPR the same as
1179         CONVERT_EXPR.
1180         (check_function_arguments_recurse): Allow both NOP_EXPR and
1181         CONVERT_EXPR but check conversions preserve precision.
1182         * c-typeck.c (pointer_diff): Allow both NOP_EXPR and CONVERT_EXPR
1183         but check conversions preserve precision.
1184         (build_unary_op): Don't allow NOP_EXPR.  Use gcc_unreachable () in
1185         default case.
1186
1187 2005-12-04  Roger Sayle  <roger@eyesopen.com>
1188
1189         PR c/7776
1190         * common.opt (Wstring-literal-comparison): New command line option.
1191         * c-opts.c (c_common_handle_option): Set it with -Wall.
1192         * c-typeck.c (parser_build_binary_op): Issue warning if either
1193         operand of a comparison operator is a string literal, except for
1194         testing equality or inequality against NULL.
1195
1196         * doc/invoke.texi: Document new -Wstring-literal-comparison option.
1197
1198 2005-12-03  Joseph S. Myers  <joseph@codesourcery.com>
1199
1200         * c-common.c (c_sizeof_or_alignof_type): Use fold_convert instead
1201         of building a NOP_EXPR.
1202         (c_alignof_expr): Likewise.  Handle CONVERT_EXPR the same as
1203         NOP_EXPR.
1204         * c-convert.c (convert): Use fold_convert instead of building
1205         NOP_EXPRs and CONVERT_EXPRs directly.  Don't special case
1206         c_objc_common_truthvalue_conversion returning a NOP_EXPR.  Remove
1207         #if 0 code.
1208         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Handle
1209         NOP_EXPR the same as CONVERT_EXPR.
1210         * c-typeck.c (build_function_call): Use fold_convert instead of
1211         building a NOP_EXPR directly.
1212         (build_compound_expr): Handle NOP_EXPR the same as CONVERT_EXPR.
1213
1214 2005-12-03  Alan Modra  <amodra@bigpond.net.au>
1215
1216         PR rtl-optimization/25197
1217         * dwarf2out.c (dwarf2out_frame_debug_expr <rule 12>): Assert we
1218         have a reg.
1219
1220 2005-12-02  Stuart Hastings  <stuart@apple.com>
1221
1222         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Remove -fpic
1223         warning.
1224
1225 2005-12-03  Joseph S. Myers  <joseph@codesourcery.com>
1226
1227         * c-typeck.c (default_function_array_conversion,
1228         build_function_call): Allow for CONVERT_EXPR as well as NOP_EXPR.
1229         (build_conditional_expr): Apply integer_zerop to orig_op1 and
1230         orig_op2.  Don't check them for NOP_EXPR.
1231         (build_c_cast, convert_for_assignment): Don't check for NOP_EXPR
1232         around integer zero.
1233
1234 2005-12-03  Alan Modra  <amodra@bigpond.net.au>
1235
1236         * config/rs6000/rs6000.c (rs6000_stack_t): Remove toc_save_p,
1237         toc_save_offset, toc_size, lr_size.
1238         (rs6000_stack_info): Use memset rather than bss struct copy to init.
1239         Test rs6000_ra_ever_killed last in condition setting lr_save_p.
1240         Adjust for removal of unused rs6000_stack_t fields.
1241         (debug_stack_info): Adjust.
1242         (rs6000_ra_ever_killed): Expand FIND_REG_INC_NOTE.  Test for calls
1243         first, and don't bother checking for set/inc of lr on sibcalls.
1244         (rs6000_emit_epilogue): Tidy code restoring stack pointer.
1245
1246 2005-12-02  Jakub Jelinek  <jakub@redhat.com>
1247
1248         PR target/25199
1249         * config/i386/i386.md (movqi_1): Only force imovx for alternative
1250         5 if operand 1 is not aligned.  Undo previous constraint change.
1251         * config/i386/predicates.md (aligned_operand): Use MEM_ALIGN.
1252
1253 2005-12-02  Richard Guenther  <rguenther@suse.de>
1254
1255         * tree.h (build): Remove prototype.
1256         (build, _buildN1, _buildN2, _buildC1, _buildC2): Remove macros.
1257         * tree.c (build): Remove.
1258         (build0_stat): Update comment.
1259
1260 2005-12-02  Richard Guenther  <rguenther@suse.de>
1261
1262         * tree-ssa-loop-im.c (schedule_sm): Use buildN instead of build.
1263         * tree-complex.c (update_complex_assignment, expand_complex_div_wide):
1264         Likewise.
1265         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref,
1266         maybe_fold_offset_to_component_ref): Likewise.
1267         * tree-ssa-dom.c (thread_across_edge,
1268         simplify_rhs_and_lookup_avail_expr,
1269         find_equivalent_equality_comparison, record_equivalences_from_stmt):
1270         Likewise.
1271         * gimple-low.c (lower_function_body, lower_return_expr): Likewise.
1272         * tree-eh.c (do_return_redirection, honor_protect_cleanup_actions,
1273         lower_try_finally_switch): Likewise.
1274         * tree-if-conv.c (add_to_dst_predicate_list,
1275         replace_phi_with_cond_modify_expr, ifc_temp_var): Likewise.
1276         * gimplify.c (internal_get_tmp_var, gimple_build_eh_filter,
1277         voidify_wrapper_expr, build_stack_save_restore, gimplify_bind_expr,
1278         gimplify_return_expr, gimplify_decl_expr, gimplify_switch_expr,
1279         gimplify_case_label_expr, gimplify_exit_expr, gimplify_self_mod_expr,
1280         shortcut_cond_r, shortcut_cond_expr, gimplify_cond_expr,
1281         gimplify_init_ctor_eval, gimplify_init_constructor,
1282         gimplify_variable_sized_compare, gimplify_boolean_expr,
1283         gimplify_cleanup_point_expr, gimple_push_cleanup, gimplify_target_expr,
1284         gimplify_expr, gimplify_body, gimplify_function_tree,
1285         force_gimple_operand): Likewise.
1286         * tree-ssa-pre.c (create_expression_by_pieces): Likewise.
1287         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for,
1288         mx_register_decls): Likewise.
1289         * tree-nested.c (init_tmp_var, save_tmp_var, get_static_chain,
1290         get_frame_field, finalize_nesting_tree_1): Likewise.
1291         * tree-inline.c (setup_one_parameter): Likewise.
1292         * tree-vect-transform.c (vectorizable_condition): Likewise.
1293         * tree-outof-ssa.c (insert_copy_on_edge, insert_backedge_copies):
1294         Likewise.
1295         * tree-profile.c (tree_gen_edge_profiler): Likewise.
1296         * tree-cfg.c (factor_computed_gotos, gimplify_val): Likewise.
1297         * c-parser.c (c_parser_if_body, c_parser_switch_statement): Likewise.
1298         * tree-chrec.h (build_polynomial_chrec): Likewise.
1299
1300 2005-12-02  Richard Guenther  <rguenther@suse.de>
1301
1302         * config/alpha/alpha.c (alpha_va_start, alpha_gimplify_va_arg_1i,
1303         alpha_gimplify_va_arg): Use buildN and fold_buildN where applicable.
1304         * config/frv/frv.c (frv_expand_builtin_va_start): Likewise.
1305         * config/s390/s390.c (s390_va_start, s390_gimplify_va_arg): Likewise.
1306         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
1307         * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
1308         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg):
1309         Likewise.
1310         * config/sh/sh.c (sh_va_start, sh_gimplify_va_arg_expr,
1311         sh_adjust_unroll_max): Likewise.
1312         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
1313         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
1314         * config/xtensa/xtensa.c (xtensa_va_start, xtensa_gimplify_va_arg_expr):
1315         Likewise.
1316         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
1317         Likewise.
1318         * config/mips/mips.c (mips_va_start, mips_gimplify_va_arg_expr):
1319         Likewise.
1320
1321 2005-12-02  Richard Guenther  <rguenther@suse.de>
1322
1323         * tree-vrp.c (build_assert_expr_for, process_assert_insertions_for,
1324         simplify_cond_using_ranges): Use buildN instead of build.
1325         * tree-tailcall.c (adjust_accumulator_values,
1326         adjust_return_value): Likewise.
1327         * tree-sra.c (generate_one_element_ref, generate_copy_inout,
1328         generate_element_copy, generate_element_zero,
1329         generate_one_element_init): Likewise.
1330         * tree-ssa-forwprop.c (forward_propagate_into_cond_1): Likewise.
1331         * lambda-code.c (gcc_loop_to_lambda_loop, lbv_to_gcc_expression,
1332         lle_to_gcc_expression, lambda_loopnest_to_gcc_loopnest,
1333         perfect_nestify): Likewise.
1334
1335 2005-12-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1336
1337         * pa.c (pa_secondary_reload): Revise initialization of variable regno.
1338
1339 2005-12-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1340
1341         * ggc.h (GGC_RESIZEVEC): New.
1342
1343 2005-12-02  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1344
1345         * gcc.c (execute): Improve readability.
1346
1347 2005-12-02  Richard Guenther  <rguenther@suse.de>
1348
1349         * tree-cfg.c (mark_used_vars): New function.
1350         (dump_function_to_file): Dump only used VAR_DECLs.
1351
1352 2005-12-02  Richard Guenther  <rguenther@suse.de>
1353
1354         * convert.c (convert_to_integer): Fix compare for nonpositive
1355         constant to use tree_int_cst_sgn <= 0.
1356
1357 2005-12-02  Richard Guenther  <rguenther@suse.de>
1358
1359         * convert.c (convert_to_integer): Use fold_convert instead
1360         of fold_build1 (NOP_EXPR, ...).  Use tree_int_cst_sgn < 0
1361         instead of comparing against 0.  Use build_int_cst instead
1362         of converting integer_zero_node.
1363
1364 2005-12-02  Richard Guenther  <rguenther@suse.de>
1365
1366         * tree-pretty-print.c (op_symbol): Handle LROTATE_EXPR
1367         and RROTATE_EXPR.
1368  
1369 2005-12-02  Alan Modra  <amodra@bigpond.net.au>
1370
1371         PR target/21017
1372         * combine.c (simplify_logical <IOR>): Simplify more patterns to
1373         rotates.
1374
1375 2005-12-02  Alan Modra  <amodra@bigpond.net.au>
1376
1377         PR middle-end/25176
1378         * function.c (expand_function_end): Emit blockage for unwinder
1379         after return label.
1380
1381 2005-12-01  Roger Sayle  <roger@eyesopen.com>
1382
1383         * tree.h (TREE_OVERFLOW): Make this flag/predicate specific to
1384         constant nodes, i.e. INTEGER_CST, REAL_CST, etc...
1385         * tree-vrp.c (compare_values): Only check TREE_OVERFLOW for
1386         integer constant comparisons.
1387
1388 2005-12-02  Jon Grimm  <jgrimm2@us.ibm.com>
1389             Janis Johnson  <janis187@us.ibm.com>
1390             David Edelsohn  <dje@watson.ibm.com>
1391             Ben Elliston  <bje@au.ibm.com>
1392
1393         * dfp.h, dfp.c: New files.
1394         * Makefile.in (DECNUM, DECNUMINC, LIBDECNUMBER): New variables.
1395         (DECNUM_H): Likewise.
1396         (LIBDEPS, LIBS, BACKEND): Append $(LIBDECNUMBER).
1397         (INCLUDES): Append $(DECNUMINC).
1398         (OBJS-common): Add dfp.o.
1399         (dfp.o): New rule.
1400         * real.h (EXP_BITS): Pinch one bit to ..
1401         (struct real_value): Add decimal field.
1402         (real_format): Change table size, update documentation.
1403         (REAL_MODE_FORMAT): Update for to handle float, decimal float.
1404         (real_from_string3): Declare.
1405         (decimal_single_format): Declare.
1406         (decimal_double_format): Declare.
1407         (decimal_quad_format): Declare.
1408         (REAL_VALUE_TO_TARGET_DECIMAL32): New.
1409         (REAL_VALUE_TO_TARGET_DECIMAL64): New.
1410         (REAL_VALUE_TO_TARGET_DECIMAL128): New.
1411         * real.c: Include dfp.h.
1412         (normalize): Early return for decimal floats.
1413         (do_add): Zero decimal field.
1414         (do_compare): Call do_decimal_compare for decimal floats.
1415         (do_fix_trunc): Likewise, call decimal_do_fix_trunc.
1416         (real_arithmetic): Call decimal_real_arithmetic for decimal
1417         floating point operands.
1418         (real_identical): If a and b are of differing radix, return false.
1419         (real_to_integer): Call decimal_real_to_integer if the value is a
1420         decimal float.
1421         (real_to_integer2): Likewise, call decimal_real_to_integer2.
1422         (real_to_decimal): Likewise, call decimal_real_to_decimal.
1423         (real_to_hexadecimal): Place "N/A" in the return string for
1424         decimal float.
1425         (real_from_string3): New variant, given a mode.
1426         (real_maxval): Use decimal_real_maxval for decimal floats.
1427         (round_for_format): Use decimal_round_for_format for decimals.
1428         (real_convert): Use decimal_real_convert where appropriate.
1429         (significand_size): Handle base 10.
1430         (encode_decimal_single, decode_decimal_single,
1431         encode_decimal_double, decode_decimal_double, encode_decimal_quad,
1432         decode_decimal_quad): New functions.
1433         (decimal_single_format): New.
1434         (decimal_double_format): New.
1435         (decimal_quad_format): New.
1436         * machmode.def: Add SD, DD and TD decimal floating point modes.
1437         * machmode.h (FLOAT_MODE_P, SCALAR_FLOAT_MODE_P, MODES_WIDEN_P):
1438         Include MODE_DECIMAL_FLOAT.
1439         (DECIMAL_FLOAT_MODE_P): New.
1440         * mode-classes.def (MODE_DECIMAL_FLOAT): New mode class.
1441         * genmodes.c (struct mode_data): Add counter field.
1442         (struct mode_data): Update comment for format.
1443         (blank_mode): Initialise counter field.
1444         (new_mode): Increment counter field for each mode defined.
1445         (complete_mode): Handle MODE_DECIMAL_FLOAT, update check for mode
1446         using a format.
1447         (make_complex_modes): Handle modes containing `D'.
1448         (DECIMAL_FLOAT_MODE, FRACTIONAL_DECIMAL_FLOAT_MODE): New.
1449         (make_decimal_float_mode): New.
1450         (reset_float_format): Handle MODE_DECIMAL_FLOAT.
1451         (cmp_modes): Compare counter field if other characteristics
1452         similar.
1453         (emit_real_format_for_mode): Support formats for decimal floats.
1454         * doc/rtl.texi (Machine Modes): Document SD, DD and TDmodes.
1455         Document MODE_DECIMAL_FLOAT.
1456
1457 2005-12-02  Alan Modra  <amodra@bigpond.net.au>
1458
1459         * simplify-rtx.c (simplify_plus_minus): Do simplify constants.
1460         Delete dead code.
1461
1462 2005-12-01  Richard Henderson  <rth@redhat.com>
1463
1464         * optabs.c (expand_vec_cond_expr): Use EXPAND_NORMAL.
1465
1466 2005-12-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1467
1468         * builtins.def (BUILT_IN_PUTC, BUILT_IN_PUTC_UNLOCKED): New.
1469
1470         * config/pa/pa.c (pa_init_builtins): If we detect
1471         DONT_HAVE_FPUTC_UNLOCKED, set builtin fputc_unlocked to
1472         putc_unlocked.
1473
1474 2005-12-01  Richard Guenther  <rguenther@suse.de>
1475
1476         * fold-const.c (fold_binary): Use fold_build2, not
1477         fold (build (...)).
1478
1479 2005-12-01  Nathan Sidwell  <nathan@codesourcery.com>
1480
1481         * config/ms1/ms1.c (ms1_reorg_hazard): Don't count noop moves.
1482
1483         * vec.h (VEC_block_remove): New.
1484
1485 2005-12-01  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1486
1487         PR c/13384
1488         * c-common.c (lvalue_error): Fix wording.
1489
1490 2005-12-01  Richard Guenther  <rguenther@suse.de>
1491
1492         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Fix
1493         thinko in last patch.
1494
1495 2005-12-01  Geoffrey Keating  <geoffk@apple.com>
1496
1497         * config/t-slibgcc-darwin (SHLIB_LINK): Use -single_module rather
1498         than -flat_namespace.
1499
1500 2005-12-01  Ben Elliston  <bje@au.ibm.com>
1501
1502         * mklibgcc.in: Parameterise the script to build soft float
1503         functions by iterating over each type, rather than cloning the
1504         code for each type.
1505
1506 2005-11-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1507
1508         PR middle-end/25158
1509         * builtins.c (fold_builtin_fputs): Defer check for missing
1510         replacement functions.
1511
1512 2005-11-30  Kean Johnston  <jkj@sco.com>
1513
1514         * config/i386/i386.c: Check the value of SUPPORTS_ONE_ONLY, not
1515         simply its presense in case targets #define SUPPORTS_ONE_ONLY 0.
1516
1517 2005-11-30  Richard Guenther  <rguenther@suse.de>
1518
1519         PR tree-optimization/22501
1520         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): New
1521         function split out from ...
1522         (forward_propagate_addr_expr): ... here.  Use it to propagate
1523         ADDR_EXPRs to all uses.
1524
1525 2005-11-30  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1526
1527         * tree.h (CASE_FLT_FN, CASE_INT_FN): New macros.
1528         * builtins.c (expand_builtin_mathfn): Use them.
1529         (expand_builtin_mathfn_2): Likewise.
1530         (expand_builtin_mathfn_3): Likewise.
1531         (expand_builtin_int_roundingfn): Likewise.
1532         (expand_builtin): Likewise.
1533         (integer_valued_real_p): Likewise.
1534         (fold_builtin_int_roundingfn): Likewise.
1535         (fold_builtin_bitop): Likewise.
1536         (fold_builtin_logarithm): Likewise.
1537         (fold_builtin_1): Likewise.
1538         * convert.c (convert_to_integer): Likewise.
1539         * fold-const.c (negate_mathfn_p): Likewise.
1540         (tree_expr_nonnegative_p): Likewise.
1541
1542 2005-11-30  Dale Johannesen  <dalej@apple.com>
1543             Andrew Pinski  <pinskia@physics.uc.edu>
1544
1545         * combine.c (find_split_point):  Sign extend bitmask
1546         when changing bitfield assignment to IOR of AND.
1547
1548 2005-11-30  Nathan Sidwell  <nathan@codesourcery.com>
1549
1550         * config/ms1/ms1.md (decrement_and_branch_until_zero): Add early
1551         clobber to scratch reg.
1552         (*decrement_and_branch_until_zero_no_clobber): Remove.
1553         (decrement_and_branch peephole): Add dummy scratch reg to pattern.
1554         (mulhish3): Use TARGET_MS1_16_003, TARGET_MS2.
1555         * config/ms1/ms1.opt (mmul): Remove.
1556         * config/ms1/ms1.h (ASM_SPEC): Cope with uppercase arch names.
1557         (LINK_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Default to 16-002.
1558
1559 2005-11-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1560             Bernd Schmidt  <bernd.schmidt@analog.com>
1561
1562         * pa/predicates.md (symbolic_operand): Add comment.
1563         * pa/pa.md (reload_insi_r1, reload_indi_r1): New reload expanders.
1564         * pa/pa-protos.h (pa_secondary_reload_class): Delete.
1565         * pa/pa.c (TARGET_SECONDARY_RELOAD): Define.
1566         (pa_secondary_reload_class): Delete.
1567         (pa_secondary_reload): New function derived from SECONDARY_RELOAD_CLASS
1568         and pa_secondary_reload_class.  Reorder some checks.  Update inline
1569         copy of symbolic operand.
1570         * pa/pa.h (SECONDARY_RELOAD_CLASS): Delete.
1571
1572 2005-11-30  Nathan Sidwell  <nathan@codesourcery.com>
1573
1574         * loop-doloop.c (add_test): Only add jump notes if we did emit a
1575         jump.
1576
1577 2005-11-30  Jeff Law  <law@redhat.com>
1578
1579         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Properly
1580         handle SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
1581
1582 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
1583
1584         * config/ia64/ia64.c (ia64_expand_tls_address): Add ORIG_OP1 argument.
1585         Move ADDEND_{HI,LO} computation into TLS_MODEL_INITIAL_EXEC case.
1586         (ia64_expand_move): Adjust caller.
1587
1588         * config/ia64/ia64.c (ia64_expand_atomic_op): Only use
1589         fetchadd{4,8}.acq instruction if CODE is PLUS or MINUS, for MINUS
1590         negate VAL.
1591
1592 2005-11-30  Paolo Bonzini  <bonzini@gnu.org>
1593
1594         * simplify-rtx.c (simplify_plus_minus): Remove final parameter.
1595         Always produce an output if we can remove NEGs or canonicalize
1596         (minus (minus ...)) expressions.  Provide a fast path for the
1597         two-operand case.
1598         (simplify_gen_binary): Do not call simplify_plus_minus.
1599         (simplify_binary_operation_1): Reassociate at the end of the
1600         function.
1601
1602 2005-11-29  Evan Cheng  <evan.cheng@apple.com>
1603
1604         * config/i386/xmmintrin.h (_MM_TRANSPOSE4_PS): Rewrite using high/low
1605         moves and unpack to speed up.
1606
1607 2005-11-29  David S. Miller  <davem@sunset.davemloft.net>
1608
1609         * config/sparc/sparc.c (gen_compare_reg): Kill 2nd and 3rd
1610         argument, they are always sparc_compare_op0 and sparc_compare_op1.
1611         (gen_v9_scc): Update callers.
1612         * config/sparc/sparc.md: Likewise.
1613         * config/sparc/sparc-protos.h: Update extern declaration.
1614
1615         * tree-into-ssa.c (rewrite_into_ssa): Fix comment typo.
1616
1617 2005-11-29  Andrew Pinski  <pinskia@physics.uc.edu>
1618
1619         * fold-const.c (negate_expr) <case BIT_NOT_EXPR>: Add break after
1620         the if.
1621
1622 2005-11-29  Andrew Pinski  <pinskia@physics.uc.edu>
1623
1624         * fold-const.c (negate_expr_p): Return true for BIT_NOT_EXPR.
1625         (fold_unary) <case NEGATE_EXPR>: Move -(~a) transformation to ...
1626         (negate_expr): Here.
1627
1628 2005-11-29  Ben Elliston  <bje@au.ibm.com>
1629
1630         * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN):
1631         Fix typo in comment.
1632
1633 2005-11-29  Ben Elliston  <bje@au.ibm.com>
1634
1635         * Makefile.in (clean-target): Depend on clean-target-libgcc.
1636         (clean-target-libgcc): Import rule from the top-level Makefile.in.
1637
1638 2005-11-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1639
1640         PR middle-end/20109
1641         PR middle-end/25120
1642         * builtins.c (init_target_chars): New.
1643         (expand_builtin_printf, expand_builtin_fprintf,
1644         expand_builtin_sprintf, fold_builtin_sprintf,
1645         maybe_emit_sprintf_chk_warning, fold_builtin_sprintf_chk,
1646         fold_builtin_snprintf_chk, fold_builtin_printf,
1647         fold_builtin_fprintf): Check for matching format strings using
1648         the target charset.
1649
1650 2005-11-29  Paul Brook  <paul@codesourcery.com>
1651
1652         * config.gcc: Do not use fixproto on m68k-elf.
1653
1654 2005-11-28  Roger Sayle  <roger@eyesopen.com>
1655
1656         * expmed.c (div_cost): Replace with...
1657         (sdiv_cost, udiv_cost): New.
1658         (init_expmed): Initialize sdiv_cost and udiv_cost, not div_cost.
1659         Rename the div and mod fields, used to initialize sdiv_pow2_cheap
1660         and smod_pow2_cheap, to sdiv_32 and smod_32 to avoid confusion.
1661         (expand_divmod): Replace use of div_cost with either sdiv_cost
1662         or udiv_cost depending upon the signedness of the operation.
1663
1664 2005-11-28  Alexandre Oliva  <aoliva@redhat.com>
1665
1666         PR libfortran/24991
1667         * config/darwin.c (machopic_indirection_name,
1668         machopic_output_indirection): Follow transparent alias chain.
1669
1670 2005-11-28  Alexandre Oliva  <aoliva@redhat.com>
1671
1672         * varasm.c (ultimate_transparent_alias_target): Add comment.
1673
1674 2005-11-28  Kazu Hirata  <kazu@codesourcery.com>
1675
1676         * config/m68k/m68k.c (notice_update_cc): Use SET_DEST and
1677         SET_SRC instead of XEXP where appropriate.
1678
1679 2005-11-28  Joseph S. Myers  <joseph@codesourcery.com>
1680
1681         * config/fp-bit.c (isnan, isinf, pack_d, unpack_d): Use
1682         __builtin_expect.
1683
1684 2005-11-28  Joseph S. Myers  <joseph@codesourcery.com>
1685
1686         * config/fp-bit.h (LSHIFT): Take shift count parameter.
1687         * config/fp-bit.c (_fpadd_parts): Shift in one go instead of one
1688         bit at a time.
1689
1690 2005-11-28  Bernd Schmidt  <bernd.schmidt@analog.com>
1691
1692         * config/bfin/bfin.c (bfin_secondary_reload): Renamed from
1693         secondary_input_reload_class, made static.  Adapt to new
1694         infrastructure.
1695         (secondary_output_reload_class): Delete.
1696         (TARGET_SECONDARY_RELOAD): New macro.
1697         * config/bfin/bfin.h (SECONDARY_INPUT_RELOAD_CLASS,
1698         SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
1699
1700 2005-11-28  Nathan Sidwell  <nathan@codesourcery.com>
1701
1702         PR c++/21166
1703         * c-decl.c (finish_struct):  Only set DECL_PACKED on a field
1704         when its natural alignment is > BITS_PER_UNIT.
1705         * stor-layout.c (finalize_type_size): Revert my patch of 2005-08-08.
1706         * c-common.c (handle_packed_attribute): Ignore packing on a field
1707         whose type is naturally char aligned.
1708
1709 2005-11-28  Richard Guenther  <rguenther@suse.de>
1710
1711         * c-common.c (strict_aliasing_warning): Handle all
1712         component-ref like accesses.
1713
1714 2005-11-28  Roger Sayle  <roger@eyesopen.com>
1715             Uros Bizjak  <uros@kss-loka.si>
1716
1717         PR middle-end/20219
1718         * fold-const.c (fold binary) <RDIV_EXPR>: Optimize
1719         sin(x)/tan(x) as cos(x) and tan(x)/sin(x) as 1.0/cos(x)
1720         when flag_unsafe_math_optimizations is set and
1721         we don't care about NaNs or Infinities.
1722
1723         Move x/expN(y) and x/pow(y,z) transformation into common
1724         flag_unsafe_math_optimizations section.
1725
1726 2005-11-27  Mark Mitchell  <mark@codesourcery.com>
1727
1728         * gcc.c (main): Change type of argv to "char **".
1729
1730 2005-11-28  Alan Modra  <amodra@bigpond.net.au>
1731
1732         * doc/invoke.texi (powerpc msdata-data): Static data doesn't go in
1733         small data sections.
1734         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Make global.
1735         * config/rs6000/rs6000-protos.h: (rs6000_elf_in_small_data_p): Declare.
1736         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Rename to..
1737         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ..this, adding extra parm.  Don't
1738         output locals to sbss if !rs6000_elf_in_small_data_p.
1739         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above.
1740
1741 2005-11-28  Alan Modra  <amodra@bigpond.net.au>
1742
1743         PR target/24997
1744         * config/rs6000/rs6000.c (legitimate_indexed_address_p): Allow pattern
1745         generated by reload.
1746         * config/rs6000/predicates.md (indexed_or_indirect_operand): Use
1747         indexed_or_indirect_address.
1748         (indexed_or_indirect_address): Don't test for base reg.  Call
1749         address_operand last.  Make it a special predicate.
1750
1751 2005-11-27  Kazu Hirata  <kazu@codesourcery.com>
1752
1753         * config/m68k/m68k.c (notice_update_cc): Remove useless code.
1754
1755 2005-11-27  Andrew Pinski  <pinskia@physics.uc.edu>
1756
1757         PR middle-end/24575
1758         * fold-const.c (negate_expr_p): Add case for signed divides if overflow
1759         is undefined.
1760         (negate_expr): Likewise.
1761
1762 2005-11-27  Andreas Schwab  <schwab@suse.de>
1763
1764         * config/m68k/m68k.c: Reindent and fix whitespace, remove
1765         redundant parens.
1766
1767 2005-11-27  Steven Bosscher  <stevenb@suse.de>
1768
1769         * cfgcleanup.c (try_crossjump_to_edge): Always split SRC2 if it
1770         has EH predecessor edges.
1771
1772 2005-11-26  Eric Christopher  <echristo@apple.com>
1773
1774         * config/i386/i386.md (*zero_extendqihi2_movzbw): Avoid partial
1775         register stalls by zero extending to the full register.
1776
1777 2005-11-27  Joseph S. Myers  <joseph@codesourcery.com>
1778
1779         * config/floatunsisf.c, config/floatunsidf.c,
1780         config/floatunsixf.c, config/floatunsitf.c: New files.
1781         * config/ia64/t-hpux: Add floatunsitf.c.
1782         * config/ia64/ia64.c (ia64_init_libfuncs): Use
1783         _U_Qfcnvxuf_dbl_to_quad for unsigned DImode-to-TFmode conversion.
1784
1785 2005-11-26  Richard Henderson  <rth@redhat.com>
1786
1787         * c-lex.c (pragma_lex): Rename from c_lex.
1788         * c-pch.c: Update for pragma_lex rename.
1789         * c-pragma.c, c-pragma.h, config/ia64/ia64-c.c: Likewise.
1790         * config/m32c/m32c-pragma.c, config/darwin-c.c: Likewise.
1791         * config/rs6000/rs6000-c.c, config/c4x/c4x-c.c: Likewise.
1792         * config/sol2-c.c, config/v850/v850-c.c: Likewise.
1793         * doc/tm.texi: Likewise.
1794
1795 2005-11-26  Andrew Pinski  <pinskia@physics.uc.edu>
1796
1797         PR middle-end/23669
1798         * fold-const.c (fold_binary): Convert -A/-B to A/B for signed types
1799         when overflow is undefined.
1800
1801 2005-11-26  Hans-Peter Nilsson  <hp@axis.com>
1802
1803         * doc/md.texi (Insn Canonicalizations): Refer to the
1804         function commutative_operand_precedence for further rules.
1805
1806 2005-11-25  Roger Sayle  <roger@eyesopen.com>
1807
1808         PR middle-end/21309
1809         * expmed.c (choose_mult_variant): Return immediately when mult_cost
1810         is less than zero.  Limit mult_cost to a reasonable upper bound for
1811         the synthetic multiplication sequence.
1812
1813 2005-11-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1814
1815         PR middle-end/25022
1816         * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
1817         fold_builtin_fputs, fold_builtin_printf, fold_builtin_fprintf):
1818         Lookup the explicit replacement functions for any unlocked
1819         stdio builtin transformations.
1820
1821 2005-11-25  Hans-Peter Nilsson  <hp@axis.com>
1822
1823         * config/cris/cris.md ("reload_out<mode>"): Mark operand 2 as
1824         earlyclobber.
1825         * targhooks.c (default_secondary_reload): Don't require operand 2
1826         for an input reload to be earlyclobber.
1827
1828 2005-11-25  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1829
1830         * fold-const.c (negate_mathfn_p): Fix comment and add support
1831         for BUILT_IN_CBRT, BUILT_IN_SINH, BUILT_IN_TANH, BUILT_IN_ASINH,
1832         BUILT_IN_ATANH.
1833
1834 2005-11-25  Joseph S. Myers  <joseph@codesourcery.com>
1835
1836         PR middle-end/24998
1837         * config/sparc/sparc.c (sparc_init_libfuncs): Use _Q_utoq and
1838         _Q_ulltoq for unsigned conversions from SImode and DImode to
1839         TFmode.
1840
1841 2005-11-25  Alan Modra  <amodra@bigpond.net.au>
1842
1843         * config/rs6000/ppc64-fp.c (__floatunditf): New function.
1844         (__floatundidf, __floatundisf): Likewise.
1845
1846 2005-11-25  David Edelsohn  <edelsohn@gnu.org>
1847
1848         * config/rs6000/rs6000.c (rs6000_sr_alias_set): Delete.
1849         (rs6000_override_options): Remove initialization of
1850         rs6000_sr_alias_set.
1851         (rs6000_emit_eh_reg_restore): Use gen_frame_mem.
1852         (rs6000_emit_stack_tie): Same.
1853         (emit_frame_save): Same.
1854         (gen_frame_mem_offset): Same.
1855         (rs6000_emit_prologue): Same.
1856         (rs6000_emit_epilogue): Same.
1857
1858 2005-11-25  Andrew Pinski  <pinskia@physics.uc.edu>
1859
1860         PR middle-end/24989
1861         * fold-const.c (fold_build): Convert bool_var != 1 and
1862         bool_var == 0 to !bool_var.
1863
1864 2005-11-25  Andrew Pinski  <pinskia@physics.uc.edu>
1865
1866         PR middle-end/24990
1867         * fold-const.c (fold_binary): Fold (~a) == C to a == ~C
1868         for C being INTEGER_CST.  Likewise for !=.
1869
1870 2005-11-25  Joseph S. Myers  <joseph@codesourcery.com>
1871
1872         PR middle-end/24998
1873         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Use _q_utoq for
1874         unsigned conversions from SImode to TFmode.
1875
1876 2005-11-24  Bernd Schmidt  <bernd.schmidt@analog.com>
1877
1878         * expr.c (expand_expr_real_1): Fix error in last change.
1879
1880 2005-11-24  J"orn Rennecke <joern.rennecke@st.com>
1881
1882         * caller-save.c: (this_insn_sets): Move into:
1883         (save_call_clobbered_regs).
1884         (mark_set_regs): Get this_insn_sets from data.
1885
1886         (save_call_clobbered_regs): Take sets of the return value by
1887         sibcalls into account.
1888
1889 2005-11-24  J"orn Rennecke <joern.rennecke@st.com>
1890         PR target/21623:
1891
1892         * regclass.c (FORBIDDEN_INC_DEC_CLASSES): Remove
1893         SECONDARY_INPUT_RELOAD_CLASS and SECONDARY_OUTPUT_RELOAD_CLASS tests.
1894         (init_fake_stack_mems): Remove HAVE_SECONDARY_RELOADS test.
1895         (memory_move_secondary_cost, init_reg_autoinc): Remove
1896         SECONDARY_INPUT_RELOAD_CLASS / SECONDARY_OUTPUT_RELOAD_CLASS tests.
1897         Replace SECONDARY_{IN,OUT}PUT_RELOAD_CLASS use with
1898         secondary_reload_class call.
1899         (copy_cost): Likewise.  Add new parameter prev_sri.  Changed all
1900         callers.
1901         * reload.c (entire file): Remove HAVE_SECONDARY_RELOADS checks.
1902         (push_secondary_reload): Use secondary_reload target hook.
1903         (secondary_reload_class, scratch_reload_class): New functions.
1904         (push_reload): Remove SECONDARY_INPUT_RELOAD_CLASS and
1905         SECONDARY_OUTPUT_RELOAD_CLASS tests.  Replace
1906         SECONDARY_{IN,OUT}PUT_RELOAD_CLASS use with secondary_reload_class call.
1907         * reload.h (HAVE_SECONDARY_RELOADS): Don't define nor test.
1908         (secondary_reload_class, scratch_reload_class): Declare.
1909         * reload1.c: Include target.h.
1910         (reload_adjust_reg_for_temp): New function.
1911         (reload_adjust_reg_for_icode): Likewise.
1912         (choose_reload_regs): Remove SECONDARY_INPUT_RELOAD_CLASS test.
1913         Replace SECONDARY_INPUT_RELOAD_CLASS use with secondary_reload_class
1914         call.
1915         (emit_input_reload_insns): Likewise.  Rewrite secondary reload checks
1916         for inheritance.  Support case when both secondary & tertiary reloads
1917         are for intermediate registers.
1918         (emit_output_reload_insns): Replace SECONDARY_OUTPUT_RELOAD_CLASS use
1919         with secondary_reload_class call.  Support case when both secondary
1920         & tertiary reloads are for intermediate registers.
1921         * target-def.h (TARGET_SECONDARY_RELOAD): Provide default definition.
1922         (TARGET_INITIALIZER) Add TARGET_SECONDARY_RELOAD.
1923         * target.h (secondary_reload_info): New struct / typedef.
1924         (struct gcc_target): New member secondary_reload.
1925         * targhooks.c Include reload.h, optabs.h and recog.h.
1926         (default_secondary_reload): New function.
1927         * targhooks.h (default_secondary_reload): Declare.
1928         * doc/tm.texi: Document secondary_reload target hook.  Update
1929         description of SECONDARY_*RELOAD_CLASS and reload_{in,out}<mode>.
1930         * doc/md.texi: Likewise.
1931
1932         * sh-protos.h (sh_secondary_reload): Declare.
1933         * sh.c (TARGET_SECONDARY_RELOAD): Override.
1934         (sh_secondary_reload): New function.
1935         * sh.h (SECONDARY_INOUT_RELOAD_CLASS): Don't define.
1936         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
1937         (SECONDARY_INPUT_RELOAD_CLASS): Likewise.
1938         (HAVE_SECONDARY_RELOADS): Define.
1939         * sh.md (reload_indf): Rename to:
1940         (reload_indf__frn).
1941         (reload_outdf): Rename to:
1942         (reload_outdf__RnFRm).
1943         (reload_insf): Rename to:
1944         (reload_insf__frn).
1945         (reload_insi): Rename to:
1946         (reload_insi__i_fpul).
1947
1948 2005-11-24  Uros Bizjak  <uros@kss-loka.si>
1949
1950         * configure.ac: Require at least texinfo 4.4.
1951         * configure: Regenerate.
1952
1953         * doc/install.texi (Tools/packages necessary for building GCC):
1954         Update required version of texinfo to at least 4.4.
1955         (Installing GCC: Building): Update required version of texinfo
1956         to at least 4.4.
1957         (Installing GCC: Final installation): Update required version
1958         of texi2dvi to at least 4.4.
1959         (Host/target specific installation notes for GCC): Update required
1960         version of texinfo to at least 4.4.
1961
1962 2005-11-24  Richard Guenther  <rguenther@suse.de>
1963         Dirk Mueller <dmueller@suse.de>
1964
1965         PR c++/14024
1966         * c-common.h (strict_aliasing_warning): Declare.
1967         * c-common.c (strict_aliasing_warning): New function,
1968         split out from ...
1969         * c-typeck.c (build_c_cast): ... here.
1970
1971 2005-11-24  Paolo Bonzini  <bonzini@gnu.org>
1972
1973         * optabs.c (expand_binop): Use swap_commutative_operands_with_target
1974         to order operands.
1975         (swap_commutative_operands_with_target): New.
1976
1977 2005-11-24  Paolo Bonzini  <bonzini@gnu.org>
1978
1979         * gcse.c (hash_scan_set): Look through REG_EQUAL or REG_EQUIV notes
1980         also when doing PRE, rather than only for global CPROP.
1981
1982 2005-11-24  Ben Elliston  <bje@au.ibm.com>
1983
1984         * machmode.h (CLASS_HAS_WIDER_MODES_P): New macro.
1985         * optabs.c (expand_binop): Use CLASS_HAS_WIDER_MODES_P, improve
1986         formatting.
1987         (expand_twoval_unop): Likewise.
1988         (widen_clz): Likewise.
1989         (expand_parity): Likewise.
1990         (expand_unop): Likewise.
1991         (emit_cmp_and_jmp_insn_1): Likewise.
1992         (prepare_float_lib_cmp): Likewise.
1993
1994 2005-11-24  Ben Elliston  <bje@au.ibm.com>
1995
1996         * optabs.c (prepare_cmp_insn): Use SCALAR_FLOAT_MODE_P.
1997         Remove unused `class' variable.
1998
1999 2005-11-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2000
2001         PR c++/21667
2002         * c-typeck.c (build_array_ref): Avoid code duplicate.  Use common
2003         C/C++ diagnostic function warn_array_subscript_with_type_char.
2004         * c-common.h (warn_array_subscript_with_type_char): Declare.
2005         * c-common.c (warn_array_subscript_with_type_char): Define.
2006
2007 2005-11-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2008
2009         PR c/21668
2010         * c-decl.c (grokdeclarator): Don't warn for 'extern const' when
2011         compiling at the intersection of C and C++.
2012
2013 2005-11-23  Mark Mitchell  <mark@codesourcery.com>
2014
2015         * doc/invoke.texi: For man pages, include gcc-vers.texi.
2016         List @file in the option summary.  Include the libiberty
2017         documentation for @file.
2018         * gcc.c (main): Call expandargv.
2019         * Makefile.in (gcc-vers.texi): Define srcdir.
2020
2021 2005-11-23  Diego Novillo  <dnovillo@redhat.com>
2022
2023         * passes.c (init_optimization_passes): Document
2024         sequencing of passes.
2025
2026 2005-11-23  Kazu Hirata  <kazu@codesourcery.com>
2027
2028         * config/m68k/predicates.md (pcrel_address, extend_operator,
2029         post_inc_operand, pre_dec_operand): Remove redundant
2030         conditionals.
2031         (const_uint32_operand, const_sint32_operand): Use gcc_assert
2032         instead of abort.
2033         (valid_dbcc_comparison_p): Rewrite in the lisp style.
2034
2035 2005-11-23  Ben Elliston  <bje@au.ibm.com>
2036
2037         * dwarf2.h (enum dwarf_type): Add DW_ATE_decimal_float.
2038
2039 2005-11-22  J"orn Rennecke <joern.rennecke@st.com>
2040
2041         Preparatory work for PR target/21623:
2042         * alpha.c (secondary_reload_class): Rename to:
2043         (alpha_secondary_reload_class).
2044         * alpha.h, alpha-protos.h: Likewise.
2045         * mn10300.c (secondary_reload_class): Rename to:
2046         (mn10300_secondary_reload_class).
2047         * mn10300.h, mn10300-protos.h: Likewise.
2048         * pa.c (secondary_reload_class): Rename to:
2049         (pa_secondary_reload_class).
2050         * pa.h, pa-protos.h: Likewise.
2051         * rs6000.c (secondary_reload_class): Rename to:
2052         rs6000_secondary_reload_class.
2053         * rs6000.h, rs6000-protos.h: Likewise.
2054
2055 2005-11-22  Eric Botcazou  <ebotcazou@adacore.com>
2056
2057         PR middle-end/22561
2058         * tree-ssa-structalias.c (get_constraint_for): Handle ARRAY_RANGE_REF.
2059
2060 2005-11-22  Ian Lance Taylor  <ian@airs.com>
2061
2062         * optabs.c (expand_unop): Call SCALAR_FLOAT_MODE_P on a mode, not
2063         a mode_class.
2064         (prepare_cmp_insn): Likewise.
2065
2066 2005-11-22  Kazu Hirata  <kazu@codesourcery.com>
2067
2068         PR target/23435
2069         * m68k.md (zero_extendsidi2): Force operands[1] to a register
2070         if both operands[0] and operands[1] are memory.
2071
2072 2005-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
2073
2074         PR middle-end/23606
2075         * fold-const.c (fold_unary) <case NOP_EXPR, CONVERT_EXPR>: For
2076         COMPARISON_CLASS_P and an integral types create create a new
2077         expression with the new type and fold that.
2078
2079 2005-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
2080
2081         PR target/24988
2082         * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Remove call
2083         to SUBTARGET_OS_CPP_BUILTINS.
2084
2085 2005-11-22  Richard Earnshaw  <richard.earnshaw@arm.com>
2086
2087         * arm.c (emit_set_insn): New function.
2088         (arm_split_constant): Call it.
2089         (arm_gen_compare_reg, arm_reload_in_hi, arm_reload_out_hi): Likewise.
2090         (arm_legitimize_address): Likewise.  Use plus_constant.
2091         (arm_expand_prologue): Likewise.  Use VOIDmode in SET.
2092         (thumb_expand_prologue): Likewise.
2093         (arm_gen_load_multiple): Use VOIDmode in SET.
2094         (arm_gen_store_multiple): Likewise.
2095         (vfp_emit_fstmx): Likewise.  Use plus_constant.
2096         (emit_multi_reg_push): Likewise.
2097         (emit_sfm): Use plus_constant.
2098
2099 2005-11-23  Alan Modra  <amodra@bigpond.net.au>
2100
2101         PR target/24954
2102         * config/rs6000/predicates.md (easy_vector_constant_add_self): Fix
2103         typo last change.
2104
2105 2005-11-22  Alan Modra  <amodra@bigpond.net.au>
2106
2107         PR middle-end/24950
2108         * expmed.c (store_bit_field): Don't attempt to insv a field
2109         larger than the reg.
2110
2111 2005-11-22  Alan Modra  <amodra@bigpond.net.au>
2112
2113         PR target/24954
2114         * config/rs6000/predicated.md (easy_vector_constant_add_self): Use
2115         explicit sign extension, not a (char) cast.
2116
2117 2005-11-22  Ben Elliston  <bje@au.ibm.com>
2118
2119         * optabs.c: Use SCALAR_FLOAT_MODE_P instead of explicitly testing
2120         GET_MODE_CLASS (x) == MODE_FLOAT.
2121         * config/i386/i386.c: Likewise.
2122         * config/rs6000/xcoff.h: Likewise.
2123         * config/rs6000/linux64.h: Likewise.
2124         * config/rs6000/rs6000.c: Likewise.
2125         * config/rs6000/rs6000.h: Likewise.
2126         * config/rs6000/predicates.md: Likewise.
2127         * config/rs6000/sysv4.h: Likewise.
2128
2129 2005-11-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2130
2131         * c-cppbuiltin.c (c_cpp_builtins): Define __pic__ and __PIC__ when
2132         flag_pic is set.
2133
2134         * config/alpha/freebsd.h, config/alpha/linux.h,
2135         config/arm/linux-elf.h, config/bfin/bfin.h,
2136         config/cris/linux.h, config/darwin.h, config/freebsd-spec.h,
2137         config/i386/beos-elf.h, config/i386/gnu.h,
2138         config/i386/linux.h, config/i386/linux64.h, config/i386/nto.h,
2139         config/i386/sco5.h, config/m32r/m32r.h, config/m68k/linux.h,
2140         config/m68k/m68k.h, config/mips/linux.h, config/pa/pa-linux.h,
2141         config/rs6000/linux64.h, config/rs6000/sysv4.h,
2142         config/rs6000/vxworks.h, config/s390/linux.h, config/s390/tpf.h,
2143         config/sh/linux.h, config/sh/sh.h, config/sol2.h,
2144         config/sparc/linux.h, config/sparc/linux64.h,
2145         config/xtensa/xtensa.h: Don't define __pic__ or __PIC__.
2146
2147         * doc/invoke.texi: Document that the macros __pic__ and __PIC__
2148         are both defined when either flag -fpic or -fPIC are used.
2149
2150 2005-11-22  Joseph S. Myers  <joseph@codesourcery.com>
2151
2152         * config/fp-bit.c (clzusi): New function.
2153         (si_to_float, usi_to_float): Use it to compute proper shift.
2154         (usi_to_float): Preserve guard bits when shifting right.
2155         * libgcc-std.ver (GCC_4.2.0): New version.
2156         * libgcc2.c (__floatundixf, __floatunditf, __floatundidf,
2157         __floatundisf): New functions.
2158         * libgcc2.h (__floatundixf, __floatunditf, __floatundidf,
2159         __floatundisf): Declare.
2160         * mklibgcc.in (lib2funcs): Add _floatundidf, _floatundisf,
2161         _floatundixf, and _floatunditf.
2162         * optabs.c (expand_float): If target does not define a pattern for
2163         signed or unsigned conversion, use an unsigned libcall instead of
2164         a signed one.
2165         (init_optabs): Initialize ufloat_optab.
2166
2167 2005-11-22  Joseph S. Myers  <joseph@codesourcery.com>
2168
2169         * config/rs6000/rs6000.opt (mmulhw): New option.
2170         * doc/invoke.texi (-mmulhw): Document.
2171         * config/rs6000/rs6000.c (rs6000_override_options): Enable -mmulhw
2172         for 405 and 440.
2173         * config/rs6000/rs6000.md: Add half-word multiply and
2174         multiply-accumulate instructions for 405 and 440.
2175
2176 2005-11-21  Joel Sherrill <joel.sherrill@oarcorp.com>
2177
2178         * config/arm/rtems-elf.h: Added definition of LINK_GCC_C_SEQUENCE_SPEC
2179         which matches behavior of gcc 4.0 and older for RTEMS targets.  The
2180         default now includes a linker group which makes the RTEMS one nest.
2181
2182 2005-11-22  Ben Elliston  <bje@au.ibm.com>
2183
2184         * cse.c (fold_rtx): Typo fix.
2185         (find_comparison_args): Pass the mode of arg1, not arg1 itself.
2186
2187 2005-11-21  Richard Henderson  <rth@redhat.com>
2188
2189         * c-common.c, config/darwin-c.c, c-decl.c, c-tree.h, c-objc-common.h,
2190         langhooks-def.h, langhooks.h: Revert 2005-11-18 lookup_name patch.
2191
2192         * c-tree.h (lookup_name): Move declaration ...
2193         * c-common.h (lookup_name): ... here.
2194         * config/darwin-c.c: Include c-common.h.
2195         * config/t-darwin: Update dependencies.
2196
2197 2005-11-22  Ben Elliston  <bje@au.ibm.com>
2198
2199         * optabs.c (expand_abs_nojump): Use SCALAR_FLOAT_MODE_P instead of
2200         explicitly testing GET_MODE_CLASS (x) == MODE_FLOAT.
2201         * genopinit.c (gen_insn): Likewise.
2202         * reload.c (find_equiv_reg): Likewise.
2203         * loop.c (load_mems): Likewise.
2204         * rtlanal.c (may_trap_p_1, canonicalize_condition): Likewise.
2205         * cse.c (find_comparison_args, fold_rtx): Likewise.
2206         * dwarf2out.c (add_const_value_attribute): Likewise.
2207         * expr.c (convert_move): Likewise.
2208         * recog.c (general_operand, register_operand): Likewise.
2209         * reg-stack.c (replace_reg): Likewise.
2210         * tree-vect-generic.c (type_for_widest_vector_mode): Likewise.
2211         * c-common.c (handle_vector_size_attribute): Likewise.
2212         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
2213         (simplify_binary_operation_1): Likewise.
2214         (simplify_const_binary_operation): Likewise.
2215         (simplify_relational_operation): Likewise.
2216         (simplify_const_relational_operation): Likewise.
2217         (simplify_immed_subreg): Likewise.
2218         * emit-rtl.c (gen_lowpart_common): Likewise.
2219         * expmed.c (expand_mult): Likewise.
2220         * stor-layout.c (layout_type): Likewise.
2221
2222 2005-11-21  Paolo Bonzini  <bonzini@gnu.org>
2223
2224         PR target/24951
2225         * config/rs6000/rs6000.c (output_vec_const_move): Load cst and
2226         cst2 only for SPE vectors.
2227
2228 2005-11-21  David Edelsohn  <edelsohn@gnu.org>
2229
2230         PR target/24953
2231         * config/rs6000/predicates.md (vrsave_operation): Check
2232         UNSPEC_VOLATILE value.
2233
2234 2005-11-21  Jan Hubicka  <jh@suse.cz>
2235
2236         PR tree-optimization/24653
2237         * tree-ssa-ccp.c (ccp_fold): Strip down useless conversions.
2238
2239 2005-11-21  Uros Bizjak  <uros@kss-loka.si>
2240
2241         * config/i386/predicates.md (ax_reg_operand): New predicate.
2242         (memory_displacement_only_operand): New predicate.
2243         * config/i386/i386.md ("modrm" attribute): Return 0 if one
2244         operand is AX register and the other operand is memory operand
2245         with displacement only.
2246
2247 2005-11-21  Uros Bizjak  <uros@kss-loka.si>
2248
2249         * fold-const.c (fold_binary) <RDIV_EXPR>: Optimize A / A to 1.0
2250         if we don't care about NaNs or Infinities.
2251
2252 2005-11-20  Ian Lance Taylor  <ian@airs.com>
2253
2254         PR rtl-optimization/24883
2255         * combine.c (combinable_i3pat): When checking whether the
2256         destination of i3 is used in i3, consider paradoxical subregs.
2257
2258 2005-11-21  Kazu Hirata  <kazu@codesourcery.com>
2259
2260         PR middle-end/20583
2261         * cse.c (cse_insn): Reject invalid forms of CONST earlier.
2262
2263 2005-11-20  Joseph S. Myers  <joseph@codesourcery.com>
2264
2265         * combine.c (try_combine): Do not run subst on i1src and i2src in
2266         the case of generating a PARALLEL for a comparison.
2267
2268 2005-11-20  Richard Henderson  <rth@redhat.com>
2269
2270         PR 24931
2271         * tree-sra.c (struct sra_elt): Add all_no_warning.
2272         (struct sra_walk_fns) <use>: Add use_all argument.
2273         (sra_walk_expr): Pass it.
2274         (sra_walk_modify_expr): Likewise.
2275         (scalarize_ldst): Likewise.
2276         (scan_use): Update for new argument.
2277         (mark_no_warning): New.
2278         (scalarize_use): Use it.
2279
2280 2005-11-20  Bernd Schmidt  <bernd.schmidt@analog.com>
2281
2282         * expr.c (expand_expr_real): Use usmul_optab for widening
2283         signed * unsigned multiplies.
2284         * genopinit.c (optabs): Add usmul_widen_optab.
2285         * optabs.c (init_optabs): Likewise.
2286         * optabs.h (enum optab_index): Add OTI_usmul_widen.
2287         (usmul_widen_optab): Define.
2288         * config/bfin/bfin.md (usmulhisi3): New pattern.
2289
2290         * doc/md.texi (usmulqihi3, usmulhisi3, usmulsidi3): Document.
2291
2292 2005-11-20  Graham Stott <btinternet.com>
2293
2294         * gensupport.c (std_preds): Fixed extraneous `false` in last change.
2295
2296 2005-11-20  Andreas Schwab  <schwab@suse.de>
2297
2298         PR target/24757
2299         * config/ia64/ia64.c (ia64_expand_atomic_op): Fix condition of cmp
2300         insn.
2301
2302 2005-11-19  Richard Henderson  <rth@redhat.com>
2303
2304         PR tree-opt/24665
2305         * tree-gimple.c (is_gimple_id): Export.
2306         * tree-gimple.h (is_gimple_id): Declare.
2307         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): New.
2308         (get_default_value): Use it.
2309         (maybe_fold_stmt_indirect): Likewise.
2310
2311 2005-11-19  James A. Morrison  <phython@gcc.gnu.org>
2312
2313         * tree-vrp.c (compare_ranges): Return false for EQ_EXPR if VR0 is less
2314         than VR1 or vice-versa.
2315
2316 2005-11-19  Hans-Peter Nilsson  <hp@axis.com>
2317
2318         PR middle-end/24912
2319         PR middle-end/24750
2320         * reload.c (find_reloads_address_1): Mention dependency on
2321         gen_reload.
2322         * reload1.c (gen_reload): For IN with an unary operation, try
2323         moving inner expression to OUT if trivial SET is not valid.
2324         Confirm that the result is valid.  Move common code block into...
2325         (emit_insn_if_valid_for_reload): New function.
2326
2327 2005-11-19  Richard Guenther  <rguenther@suse.de>
2328
2329         * fold-const.c (fold_indirect_ref_1): Make sure we fold
2330         ARRAY_REFs of constant strings.
2331
2332 2005-11-19  Jakub Jelinek  <jakub@redhat.com>
2333
2334         * gcc.c (version_compare_spec_function): Use '%s' rather than %qs in
2335         fatal format string.
2336
2337 2005-11-19  Joseph S. Myers  <joseph@codesourcery.com>
2338
2339         * combine.c (make_compound_operation): Swap operands of
2340         commutative operation if necessary before returning.
2341
2342 2005-11-19  Richard Guenther  <rguenther@suse.de>
2343
2344         PR middle-end/23294
2345         * fold-const.c (fold_plusminus_mult_expr): New function.
2346         (fold_binary): Use to canonicalize PLUS_EXPR and MINUS_EXPR
2347         cases, remove now unnecessary code.
2348
2349 2005-11-19  Paolo Bonzini  <bonzini@gcc.gnu.org>
2350
2351         * gensupport.c (old_preds): Rename to std_preds, add special field.
2352         (struct old_pred_table): Rename to struct std_pred_table, add special
2353         field.
2354         (NUM_KNOWN_OLD_PREDS): Rename to NUM_KNOWN_STD_PREDS.
2355         (NUM_OLD_SPECIAL_MODE_PREDS): Remove.
2356         (init_predicate_table): Adjust, and set along the way whether a
2357         predicate is special.
2358
2359 2005-11-18  Mark Mitchell  <mark@codesourcery.com>
2360
2361         * BASE-VER: Change to 4.2.0.
2362
2363 2005-11-18  James E Wilson  <wilson@specifix.com>
2364
2365         * builtins.c (fold_builtin_strstr): Pass s1 through fold_convert before
2366         returning it.
2367
2368 2005-11-18  Mike Stump  <mrs@apple.com>
2369
2370         * c-common.c (handle_cleanup_attribute): Use a lang hook for lookup_name.
2371         * config/darwin-c.c (darwin_pragma_unused): Likewise.
2372         * c-decl.c (lookup_name_two) Remove.
2373         * c-tree.h (lookup_name_two): Remove.
2374         * c-objc-common.h (LANG_HOOKS_LOOKUP_NAME): Add.
2375         * langhooks-def.h (LANG_HOOKS_LOOKUP_NAME): Add.
2376         (LANG_HOOKS_DECLS): Add initializer for LANG_HOOKS_LOOKUP_NAME.
2377         * langhooks.h (lang_hooks_for_decls): Add lookup_name.
2378
2379 2005-11-18  Richard Earnshaw  <richard.earnshaw@arm.com>
2380
2381         PR target/24914
2382         * arm.c (arm_hard_regno_mode_ok): Co-processor registers aren't ok
2383         when not generating code to use that co-processor.
2384
2385 2005-11-18  James A. Morrison  <phython@gcc.gnu.org>
2386
2387         * tree-flow.h (reserve_phi_args_for_new_edge, create_phi_node,
2388         add_phi_arg, remove_phi_args, remove_phi_node phi_reverse): Mention that
2389         these functions are now in tree-phinodes.c.
2390
2391 2005-11-18  Jie Zhang  <jie.zhang@analog.com>
2392
2393         * config/bfin/bfin.md (trap): New pattern.
2394
2395 2005-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2396
2397         * tree-ssa-dom.c (extract_range_from_cond): Deal with variable bounds
2398         on types.
2399
2400         * expr.c (expand_expr_real): Don't call record_block_change unless
2401         ib_boundaries_block is non-null
2402
2403         * postreload.c (reload_cse_move2add): Don't try to work with BImode.
2404
2405         * fold-const.c (build_range_check): Use proper type for subtraction
2406         when merging lower bound.
2407
2408 2005-11-18  Zdenek Dvorak  <dvorakz@suse.cz>
2409
2410         PR rtl-optimization/24497
2411         * loop-unroll.c (apply_opt_in_copies): Do not verify equality of
2412         the copied insn.
2413
2414 2005-11-18  Zdenek Dvorak  <dvorakz@suse.cz>
2415
2416         * tree-scalar-evolution.c (expression_expensive_p): New function.
2417         (scev_const_prop): Use compute_overall_effect_of_inner_loop.
2418
2419 2005-11-18  Bernd Schmidt  <bernd.schmidt@analog.com>
2420
2421         * config/bfin/crtlibid.s: New file.
2422
2423 2005-11-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2424
2425         PR target/24348
2426         * config.gcc (hppa*-*-hpux*): Add pa/t-slibgcc-elf-ver to tmake config
2427         when not using sjlj exceptions.
2428         * config/pa/pa64-hpux.h (LIB_SPEC): Add -lpthread in static links.
2429         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
2430         * config/pa/som.h (ASM_PREFERRED_EH_DATA_FORMAT): Delete define.
2431         * config/pa/linux-unwind.h (pa32_fallback_frame_state): Use
2432         DWARF_ALT_FRAME_RETURN_COLUMN instead of column 0 as return column.
2433         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): New define.
2434         * config/pa/pa-linux.h (INCOMING_RETURN_ADDR_RTX,
2435         DWARF_FRAME_RETURN_COLUMN, ASM_PREFERRED_EH_DATA_FORMAT,
2436         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Delete defines.
2437         * config/pa/pa.h (ARG_POINTER_CFA_OFFSET): Delete.
2438         (FRAME_POINTER_CFA_OFFSET, INCOMING_RETURN_ADDR_RTX,
2439         DWARF_FRAME_RETURN_COLUMN, DWARF_ALT_FRAME_RETURN_COLUMN,
2440         ASM_PREFERRED_EH_DATA_FORMAT, ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): New
2441         defines.
2442         * config/pa/hpux-unwind.h: New file.
2443
2444 2005-11-17  Alexandre Oliva  <aoliva@redhat.com>
2445
2446         * config/rs6000/rs6000.h (ASM_OUTPUT_WEAKREF): Define.
2447         * defaults.h (ASM_OUTPUT_WEAKREF): Add decl argument.
2448         * varasm.c (do_assemble_alias): Adjust call.
2449         (weak_finish): Don't use ASM_WEAKEN_LABEL if ASM_WEAKEN_DECL
2450         is defined.
2451         * doc/tm.texi (ASM_OUTPUT_WEAKREF): Document it.
2452
2453 2005-11-17  James E Wilson  <wilson@specifix.com>
2454
2455         * tree.def (FUNCTION_DECL): Correct typo in comment.
2456
2457 2005-11-17  Richard Henderson  <rth@redhat.com>
2458
2459         * dwarf2out.c (dw_cfi_oprnd_struct): Reduce dw_cfi_reg_num to int.
2460         (lookup_cfa_1): Apply data alignment to DW_CFA_def_cfa_offset_sf
2461         and DW_CFA_def_cfa_sf.
2462         (def_cfa_1): Use DW_CFA_def_cfa_offset_sf with negative values.
2463         (dbx_reg_number): Don't assert particular registers here.
2464         (based_loc_descr): ... do it here instead.  Fold in ...
2465         (eliminate_reg_to_offset): ... this function.
2466         (compute_frame_pointer_to_cfa_displacement): Fold in the effects
2467         of eliminate_reg_to_offset; use FRAME_POINTER_CFA_OFFSET.
2468         * unwind-dw2.c (execute_cfa_program): Apply data align factor
2469         to DW_CFA_def_cfa_offset_sf and DW_CFA_def_cfa_sf.
2470         * function.c (instantiate_new_reg): Use FRAME_POINTER_CFA_OFFSET.
2471         (instantiate_virtual_regs): Likewise.
2472         * var-tracking.c (adjust_stack_reference): Likewise.
2473         * doc/tm.texi (FRAME_POINTER_CFA_OFFSET): New.
2474
2475 2005-11-17  Bernd Schmidt  <bernd.schmidt@analog.com>
2476
2477         * config/bfin/elf.h (STARTFILE_SPEC): Add "crtlibid%O%s"
2478         * config/bfin/uclinux.h (STARFILE_SPEC): Likewise.
2479         * config/bfin/t-bfin-elf (EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Add
2480         crtlibid.o.
2481         ($(T)crtlibid.o): New rule.
2482
2483 2005-11-16  Richard Guenther  <rguenther@suse.de>
2484
2485         PR middle-end/24851
2486         * fold-const.c (extract_array_ref): Return byte offset
2487         in all cases.
2488         (fold_binary): Fold &x[a] CMP &x[b] to
2489         a*sizeof(*x) CMP b*sizeof(*x) to get correct overflow
2490         behavior.
2491
2492 2005-11-16  Richard Henderson  <rth@redhat.com>
2493
2494         PR middle-end/23497
2495         * tree-ssa.c (warn_uninitialized_var): Skip real and imaginary
2496         parts of an SSA_NAME.
2497
2498 2005-11-16  Richard Earnshaw  <richard.earnshaw@arm.com>
2499
2500         PR target/24861
2501         * arm.md (split for movsf with immediate): Restrict split to insns
2502         that set a general register.
2503
2504 2005-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
2505
2506         * config/ia64/unwind-ia64.c (uw_advance_context): New.  Call
2507         uw_update_context.
2508         * unwind-dw2.c (uw_advance_context): Likewise.
2509         * unwind-sjlj.c (uw_advance_context): Likewise.  Also call
2510         _Unwind_SjLj_Unregister.
2511         * unwind.inc (_Unwind_ForcedUnwind_Phase2): Call uw_advance_context.
2512
2513 2005-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
2514
2515         * unwind-sjlj.c (_Unwind_GetCFA): Handle the builtin_setjmp case.
2516
2517 2005-11-16  Eric Botcazou  <ebotcazou@adacore.com>
2518
2519         * config/alpha/alpha.c (alpha_init_builtins): Use type_for_mode
2520         langhook to get a DImode integer type.
2521
2522 2005-11-16  Richard Henderson  <rth@redhat.com>
2523             J"orn Rennecke <joern.rennecke@st.com>
2524             Ulrich Weigand  <uweigand@de.ibm.com>
2525
2526         PR rtl-opt/24160
2527         PR target/24621
2528         * reload1.c (reg_equiv_invariant): New.
2529         (reload): Allocate, initialize, and free it.
2530         (calculate_needs_all_insns): Check it when skipping equivalence
2531         setting insns.
2532         (alter_reg): Likewise.
2533         (eliminate_regs_1): Rename from eliminate_regs.  Add new
2534         may_use_invariant argument; only use reg_equiv_invariant when true.
2535         (eliminate_regs): New.
2536         (eliminate_regs_in_insn): Use eliminate_regs_1; track when we're in
2537         a context for which may_use_invariant may be true.
2538
2539 2005-11-16  Eric Botcazou  <ebotcazou@adacore.com>
2540
2541         * fold-const.c (const_binop): Don't constant fold the operation
2542         if the result has overflowed and flag_trapping_math.
2543         * simplify-rtx.c (simplify_const_binary_operation): Likewise.
2544
2545 2005-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
2546
2547         * config/arm/unwind-arm.c (abort): Add prototype here.
2548         (UCB_FORCED_STOP_ARG): Correct typo in macro argument.
2549         (struct phase1_vrs): Add prev_sp.
2550         (unwind_phase2_forced): Save the original core registers instead of
2551         modifying entry_vrs.  Take a new flag argument for resuming unwinding
2552         and set action flags accordingly.  Always set _US_END_OF_STACK when
2553         get_eit_entry fails.  Unwind before calling the stop function.
2554         (_Unwind_GetCFA): New function.
2555         (__gnu_Unwind_ForcedUnwind): Update call to unwind_phase2_forced.
2556         (__gnu_Unwind_Resume_or_Rethrow): Likewise.
2557         (__gnu_Unwind_Resume): Do not unwind here for forced unwinding;
2558         just call unwind_phase2_forced.
2559         (_Unwind_GetDataRelBase, _Unwind_GetTextRelBase): Move to here.
2560         * config/arm/unwind-arm.h (abort): Remove prototype.
2561         (_Unwind_GetDataRelBase, _Unwind_GetTextRelBase): Change to
2562         prototypes.
2563         (_Unwind_GetCFA): New prototype.
2564         * config/arm/pr-support.c (abort): Add prototype here.
2565         * unwind-c.c (PERSONALITY_FUNCTION) [__ARM_EABI_UNWINDER__]: Handle
2566         forced unwinding.
2567         * config/arm/arm.c (arm_expand_prologue, thumb_expand_prologue): Do
2568         not schedule the prologue with non-call exceptions and EABI.
2569
2570 2005-11-16  Nathan Sidwell  <nathan@codesourcery.com>
2571
2572         * config/arm/unwind-arm.h: Reorder interface function declarations.
2573         (_URC_END_OF_STACK): New enumeration value.
2574         (_US_UNWIND_ACTION_MASK, _US_FORCE_UNWIND, _US_END_OF_STACK): Likewise.
2575         (struct _Unwind_Control_Block): Document reserved field use.
2576         (_Unwind_Stop_Fn): New typedef.
2577         (_Unwind_ForcedUnwind): Declare.
2578         (_Unwind_Resume_or_Rethrow): Declare.
2579         * gcc/config/arm/libunwind.S (UNWIND_WRAPER): Add nargs
2580         argument.  Adjust.
2581         (_Unwind_Resume_or_Rethrow, _Unwind_ForcedUnwind): New.
2582         * config/arm/unwind-arm.c (UCB_FORCED_STOP_FN)
2583         (UCB_FORCED_STOP_ARG): New.
2584         (search_EIT_table): Update boundary condition checks.
2585         (get_eit_entry): Return _URC_END_OF_STACK when cannot unwind.
2586         (unwind_phase2): Replace for with do..while.
2587         (unwind_phase2_forced): New.
2588         (__gnu_Unwind_RaiseException): Replace for with do..while.
2589         (__gnu_Unwind_ForcedUnwind): New.
2590         (__gnu_Unwind_Resume): Set FORCE_UNWIND flag, if forced unwinding.
2591         Use appropriate phase2 unwinder.
2592         (__gnu_Unwind_Resume_or_Rethrow): New.
2593         (__gnu_unwind_pr_common): Cope with forced unwinding.
2594
2595 2005-11-16  David Edelsohn  <edelsohn@gnu.org>
2596
2597         PR target/24772
2598         * config/rs6000/predicates.md (vrsave_operation): SET_SRC is a VEC.
2599
2600         * config/rs6000/rs6000.md (btruncsf2, ceilsf2, floorsf2,
2601         roundsf2): Remove "s" from mnemonic.
2602
2603 2005-11-16  Bernd Schmidt  <bernd.schmidt@analog.com>
2604
2605         * config/bfin/crti.s (__init, __fini): Use appropriate prologue if
2606         __PIC__ is defined.
2607         * config/bfin/crtn.s: Change epilogues to match.
2608         * config/bfin/t-bfin-elf (EXTRA_MULTILIB_PARTS): Define.
2609         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): If flag_pic, define
2610         __PIC__ and __pic__.
2611
2612 2005-11-16  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
2613
2614         PR 24357
2615         * doc/invoke.texi: Distinguish between free and fixed form instead of
2616         Fortran and Fortran 90/95.  Remove ratfor from the list of supported
2617         languages.
2618         * gcc.c (default_compilers): Remove double entries, add entries for
2619         suffixes '.F90' and '.F95'.
2620
2621 2005-11-16  Eric Botcazou <ebotcazou@adacore.com>
2622
2623         * config/alpha/alpha.c (alpha_expand_prologue): Fix off-by-one bug
2624         in the stack probing loop.
2625
2626 2005-11-15  David Edelsohn  <edelsohn@gnu.org>
2627
2628         * configure.ac: Use .machine power5 not power5x.
2629         * configure: Regenerate.
2630
2631 2005-11-15  Mike Stump  <mrs@apple.com>
2632
2633         * c-decl.c (lookup_name_two): Add.
2634         * c-tree.h (lookup_name_two): Likewise.
2635         * c-common.c (handle_cleanup_attribute): Use lookup_name_two instead.
2636         * config/darwin-c.c (darwin_pragma_unused): Likewise.
2637
2638 2005-11-16  Alan Modra  <amodra@bigpond.net.au>
2639
2640         PR rtl-optimization/23392
2641         * regrename.c (enum scan_actions) Add mark_access.
2642         (scan_actions_name): Ditto.
2643         (scan_rtx_reg): Handle mark_access.
2644         (scan_rtx_address): Do nothing for mark_access.
2645         (build_def_use): Mark source registers in REG_FRAME_RELATED_EXPR
2646         and regs in REG_INC notes before closing chains for dead regs.
2647         Mark destination regs in REG_FRAME_RELATED_EXPR notes after
2648         opening chains for new writes.
2649
2650 2005-11-15  David Edelsohn  <edelsohn@gnu.org>
2651
2652         * c.opt (ffixed-line-length-none): New.
2653
2654 2005-11-15  Steve Ellcey  <sje@cup.hp.com>
2655
2656         * mklibgcc.in: Change contents of eh_dummy.c.
2657
2658 2005-11-15  Daniel Jacobowitz  <dan@codesourcery.com>
2659
2660         * loop.c (scan_loop): Do not insert temporaries for hard registers.
2661
2662 2005-11-15  Daniel Jacobowitz  <dan@codesourcery.com>
2663
2664         * config/arm/lib1funcs.asm (div0) [L_dvmd_lnx]: Call raise instead
2665         of making syscalls.
2666         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define.  Set r7 also.
2667
2668 2005-11-15  Jan Hubicka  <jh@suse.cz>
2669
2670         * invoke.texi (large-unit-insns): Document.
2671         * ipa-inline.c (cgraph_decide_inlining): Use large-unit-insns param.
2672         * params.def (large-unit-insns): New param.
2673
2674 2005-11-15  Hans-Peter Nilsson  <hp@axis.com>
2675
2676         PR target/24869
2677         * config/cris/cris.md ("*mov_sidesisf_mem"): Do not match
2678         special register for operand 3.  Reindent constraints to align
2679         them vertically.
2680
2681 2005-11-14  David Edelsohn  <edelsohn@gnu.org>
2682
2683         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mmfcrf,
2684         -mpopcntb, -mfprnd. Add -mcpu=power5+.
2685         * configure.ac: Add test for FP rounding instructions.
2686         * configure: Regenerate.
2687         * config.in: Regenerate.
2688         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
2689         _ARCH_PPCSQ, _ARCH_PPCGR, _ARCH_PWR4, _ARCH_PWR5, _ARCH_PWR5X if
2690         features enabled.
2691         * config/rs6000/rs6000.opt (mfprnd): New.
2692         * config/rs6000/rs6000.c (processor_target_table): Add power5+.
2693         (POWERPC_MASKS): Add MASK_POPCNTB and MASK_FPRND.
2694         * config/rs6000/aix52.h (ASM_CPU_SPEC): Add -mpower5+.
2695         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mpower5+.
2696         (TARGET_FPRND): New.
2697         * config/rs6000/rs6000.md (UNSPEC_FRIM, UNSPEC_FRIN, UNSPEC_FRIP,
2698         UNSPEC_FRIZ): New.
2699         (btrunc<mode>2): New.
2700         (ceil<mode>2): New.
2701         (floor<mode>2): New.
2702         (round<mode>2): New.
2703
2704 2005-11-14  Geoffrey Keating  <geoffk@apple.com>
2705
2706         * gcc.c (version_compare_spec_function): Use fatal() rather than
2707         abort().
2708
2709         * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): New.
2710         (SUBTARGET_EXTRA_SPECS): Define %(darwin_crt2).
2711         * config/i386/darwin.h (SUBTARGET_EXTRA_SPECS): Define %(darwin_crt2)
2712         as empty.
2713         * config/darwin.h (STARTFILE_SPEC): Use %(darwin_crt2) to possibly
2714         link in crt2.o.
2715
2716         * config/darwin.h (REAL_LIBGCC_SPEC): Link in shared libgcc depending
2717         on -mmacosx-version-min setting.
2718
2719 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
2720
2721         PR 24840
2722         * tree-vrp.c (infer_value_range): Return false if STMT is a
2723         block terminator and its basic block has no successors.
2724
2725 2005-11-14  Mike Stump  <mrs@apple.com>
2726
2727         * config/i386/i386.c (override_options): -masm=intel isn't
2728         supported on darwin.
2729         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
2730
2731 2005-11-15  Joseph S. Myers  <joseph@codesourcery.com>
2732
2733         * crtstuff.c: Undefine gid_t, pid_t, rlim_t, ssize_t, uid_t and
2734         vfork after including auto-host.h.
2735
2736 2005-11-15  Alan Modra  <amodra@bigpond.net.au>
2737
2738         PR rtl-optimization/22002
2739         * combine.c (distribute_notes): Detect cases where a reg dies
2740         two or more times in a bb, including on the insn we are combining,
2741         and place the death note on the correct range.
2742
2743 2005-11-14  Dale Johannesen  <dalej@apple.com>
2744
2745         * expmed.c (store_bit_field):  Add offset unconditionally for
2746         memory targets.
2747         (extract_bit_field):  Don't force extzv or extv operand into
2748         a register if field is too big.
2749
2750 2005-11-14  Daniel Jacobowitz  <dan@codesourcery.com>
2751
2752         * config/arm/arm.c (pic_labelno): New.
2753         (arm_load_pic_register): Use an UNSPEC_PIC_LABEL instead of a
2754         LABEL_REF.  Pass only the labelno to PIC insns.
2755         (arm_call_tls_get_addr, legitimize_tls_address): Likewise.
2756         (arm_output_addr_const_extra): Handle UNSPEC_PIC_LABEL.
2757         * arm.md (UNSPEC_PIC_LABEL): New constant.
2758         (pic_add_dot_plus_four, pic_add_dot_plus_eight)
2759         (tls_load_dot_plus_eight): Expect a labelno instead of a LABEL_REF.
2760         Use the correct label prefix.
2761
2762 2005-11-14  Daniel Jacobowitz  <dan@codesourcery.com>
2763
2764         * config/arm/arm.c (legitimize_tls_address): Use correct rtx for
2765         REQ_EQUIV note.
2766
2767 2005-11-14  Richard Earnshaw  <richard.earnshaw@arm.com>
2768
2769         * loop-invariant.c: Include tm_p.h.
2770         * Makefile.in: Updated.
2771
2772 2005-11-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2773
2774         * pa.c (store_reg): Revise generation of frame notes in large frames.
2775         (set_reg_plus_d): Likewise.
2776
2777 2005-11-13  Andrew MacLeod  <amacleod@redhat.com>
2778
2779         PR tree-optimization/24709
2780         * tree-ssa-operands.c (verify_imm_links): Increase limit for infinite
2781         loop check.
2782
2783 2005-11-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
2784
2785         * gthr-posix95.h: Remove declaration of pthread_mutexattr_settype
2786         and duplicate declaration of pthread_self.
2787
2788 2005-11-13  Eric Botcazou  <ebotcazou@adacore.com>
2789             Ian Lance Taylor  <ian@airs.com>
2790
2791         PR middle-end/24003
2792         * calls.c (expand_call): If TARGET is a MEM and some part of the
2793         argument area has been saved, force TARGET to a register.
2794
2795 2005-11-13  Razya Ladelsky <razya@il.ibm.com>
2796
2797         * ipa-prop.c (ipa_callsite_compute_param ): Removed obsolete type
2798         checking.
2799
2800 2005-11-13  Jason Merrill  <jason@redhat.com>
2801
2802         PR c++/22489
2803         * dwarf2out.c (gen_subprogram_die): Force a declaration die for
2804         lazily declared methods.
2805         (force_decl_die): Stop if forcing out the context already make a
2806         DIE for the decl.
2807         (force_type_die): Likewise.
2808
2809 2005-11-13  Andrew Pinski  <pinskia@physics.uc.edu>
2810
2811         PR middle-end/24820
2812         * builtins.c (integer_valued_real_p): Add break in
2813         REAL_CST having TREE_OVERFLOW set.
2814
2815 2005-11-13  Zdenek Dvorak  <dvorakz@suse.cz>
2816
2817         * tree-ssa-loop-ivopts.c (get_address_cost): Prevent splitting
2818         addressing modes during calculation of costs.
2819
2820 2005-11-12  Eric Botcazou  <ebotcazou@adacore.com>
2821
2822         * function.c (assign_stack_local_1): Restrict sanity check
2823         on frame size overflow to 32-bit and above platforms.
2824
2825 2005-11-12  Hans-Peter Nilsson  <hp@axis.com>
2826
2827         * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Define.
2828         * config/cris/cris.c: Include reload.h.
2829         (cris_initial_elimination_offset): New function.
2830         * config/cris/cris-protos.h: (cris_initial_elimination_offset):
2831         Prototype.
2832
2833 2005-11-12  Richard Guenther  <rguenther@suse.de>
2834
2835         * gcse.c (find_rtx_in_ldst): Handle NULL pre_ldst_table.
2836
2837 2005-11-12  Jan Hubicka  <jh@suse.cz>
2838
2839         * expr.c (expand_expr_real_1): <MAX_EXPR, MIN_EXPR>: Canonicalize
2840         to compare against 0 when possible.
2841
2842 2005-11-12  Jie Zhang  <jie.zhang@analog.com>
2843
2844         * config/bfin/bfin.h (REGISTER_NAMES, SHORT_REGISTER_NAMES,
2845         HIGH_REGISTER_NAMES, FIXED_REGISTERS, CALL_USED_REGISTERS,
2846         REG_ALLOC_ORDER, enum reg_class): Rearrange I/B/L registers.
2847         * config/bfin/bfin.md: Redefine REG_ constants for I/B/L registers
2848         in the new order.
2849
2850 2005-11-12  Hans-Peter Nilsson  <hp@axis.com>
2851
2852         * recog.c (constrain_operands) <case 'g'>: For a match, require
2853         that a non-register matches general_operand when strict >= 0.
2854
2855 2005-11-11  Steven Bosscher  <stevenb@suse.de>
2856
2857         * loop-invariant.c (move_loop_invariants): Fix a thinko in the
2858         previous checkin.
2859
2860 2005-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
2861
2862         * tree-ssa-dse.c (struct address_walk_data, memory_ssa_name_same)
2863         (memory_address_same): New.
2864         (dse_optimize_stmt): Call memory_address_same.
2865
2866 2005-11-12  Hans-Peter Nilsson  <hp@axis.com>
2867
2868         PR middle-end/24750
2869         * reload.c (find_reloads_address_1) <case TRUNCATE, SIGN_EXTEND,
2870         ZERO_EXTEND>: New cases.
2871
2872 2005-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
2873
2874         * longlong.h (__clz_tab): Always provide.
2875
2876 2005-11-11  Steven Bosscher  <stevenb@suse.de>
2877
2878         PR 24265
2879         * loop-invariant.c (may_assign_reg_p): Make sure a hard register
2880         can be assigned to.
2881         (find_invariant_insn): Do the cheapest check, may_assign_reg_p,
2882         before check_maybe_invariant.
2883         (move_invariant_reg): Use gen_move_insn instead of replacing
2884         SET_DEST with the temporary for the invariant.
2885         (move_loop_invariants): If checking is enabled, do internal
2886         consistency checks after completing the pass.
2887
2888 2005-11-11  David Edelsohn  <edelsohn@gnu.org>
2889
2890         PR 24644
2891         * common.opt (Wvolatile-register-var): New.
2892         * varasm.c (make_decl_rtl): Only emit warning when option
2893         specified.  Clarify warning message.
2894         * doc/invoke.texi (Wvolatile-register-var): Document new option.
2895
2896         * doc/md.texi (copysign): Document standard named pattern.
2897
2898 2005-11-11  Jie Zhang  <jie.zhang@analog.com>
2899
2900         * config/bfin/bfin.c (bfin_expand_strmov): Correctly move the trailing
2901         bytes when align is 2.
2902         * config/bfin/bfin.md (rep_movsi, rep_movhi): Make LSETUP be followed
2903         by the first instruction of the loop.
2904
2905 2005-11-11  Jason Merrill  <jason@redhat.com>
2906
2907         PR c++/24686
2908         * gimplify.c (gimplify_cleanup_point_expr): Also save and restore
2909         the cleanup list.
2910
2911 2005-11-11  Zdenek Dvorak  <dvorakz@suse.cz>
2912
2913         PR rtl-optimization/22509
2914         * local-alloc.c (memref_used_between_p): Check whether a function call
2915         could not reference the memref.
2916
2917 2005-11-11  Ulrich Weigand  <uweigand@de.ibm.com>
2918
2919         * postreload.c (reload_cse_simplify_operands): Fix bug in sorting
2920         algorithm so as to choose the best, not the worst, alternative.
2921         Reset accumulated register class before processing next alternative.
2922
2923 2005-11-11  Kaz Kojima  <kkojima@gcc.gnu.org>
2924
2925         PR target/24445
2926         * calls.c (expand_call): Copy a return value to a plain register
2927         if needed.
2928
2929 2005-11-10  Alexandre Oliva  <aoliva@redhat.com>
2930
2931         PR target/24778
2932         * varasm.c (assemble_name): Recompute name only for transparent
2933         aliases.
2934
2935 2005-11-10  Hans-Peter Nilsson  <hp@axis.com>
2936
2937         * tree-ssa-structalias.c (heapvar_lookup): Fix typo: stmt to from.
2938
2939 2005-11-04  Jeff Law  <law@redhat.com>
2940
2941         PR middle-end/23181
2942         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Do not
2943         perform reassociation if the parent statement will not die as
2944         a result of the optimization.
2945
2946 2005-11-10  Daniel Berlin  <dberlin@dberlin.org>
2947
2948         * tree-ssa-alias.c (compute_may_aliases): Remove call to
2949         delete_old_heap_vars.
2950         * tree-dfa.c (referenced_var_remove): Remove function.
2951         * tree-ssa.c (init_tree_ssa): Call init_alias_heapvars.
2952         (delete_tree_ssa): Remove call to delete_old_heapvars.
2953         Add call to delete_alias_heapvars.
2954         * tree-flow.h (referenced_var_remove): Remove prototype
2955         (init_alias_heapvars): New prototype.
2956         (delete_alias_heapvars): Ditto.
2957         * Makefile.in (tree-ssa-structalias.o): Add
2958         gt-tree-ssa-structalias.o
2959         (GTFILES): Add tree-ssa-structalias.h and
2960         tree-ssa-structalias.c.
2961         (s-gtype): Add gt-tree-ssa-structalias.h.
2962         * tree-ssa-structalias.c (heapvars): Remove.
2963         (oldheapvars): Remove.
2964         (heapvar_for_stmt): New variable.
2965         (heapvar_lookup): New function.
2966         (heapvar_insert): Ditto.
2967         (get_constraint_for): See if we have an old heapvar
2968         to reuse.
2969         (init_alias_heapvars): New function.
2970         (delete_alias_heapvars): Ditto.
2971         Add include of gt-tree-ssa-structalias.h.
2972
2973 2005-11-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
2974
2975         PR middle-end/22127
2976         * calls.c (special_function_p): Set ECF_RETURNS_TWICE for getcontext.
2977
2978 2005-11-10  Eric Botcazou  <ebotcazou@adacore.com>
2979
2980         * tree.c (int_fits_type_p): Only look at the base type
2981         if it has the same precision as the original type.
2982
2983 2005-11-10  Jakub Jelinek  <jakub@redhat.com>
2984
2985         PR other/4372
2986         * varasm.c (assemble_alias): Use %q+D in the error
2987         message instead of %J and %qD.
2988
2989 2005-11-10  Richard Guenther  <rguenther@suse.de>
2990
2991         * gcse.c (free_ldst_entry): Only free hashtable if
2992         it exists.
2993
2994 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
2995
2996         * function.c (assign_stack_local_1): Issue an error message if
2997         the frame size overflows in the signed target arithmetics.
2998
2999 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
3000
3001         * tree.c (build_qualified_type): Chain the new type to the original
3002         type's TYPE_NEXT_PTR_TO or TYPE_NEXT_REF_TO linked lists if it is
3003         a POINTER_TYPE or a REFERENCE_TYPE respectively.
3004         (build_pointer_type_for_mode): Only return unqualified types.
3005         (build_reference_type_for_mode): Likewise.
3006
3007 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
3008
3009         * Makefile.in (gnucompare): Do comparison of all files using one of
3010         the chosen methods and only afterwards decide if just warning should
3011         be issued or comparison failure raised.
3012
3013 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
3014
3015         * ifcvt.c (noce_get_alt_condition): Use prev_nonnote_insn.
3016         (noce_try_abs): Negate if the comparison is reversed.
3017         Look only one instruction backwards for a REG_EQUAL note.
3018
3019 2005-11-09  Alexandre Oliva  <aoliva@redhat.com>
3020
3021         PR other/4372
3022         * gthr-dce.h, gthr-posix.h, gthr-posix95.h, gthr-solaris.h,
3023         gthr-tpf.h: Define __gthrw.  For all identifiers that might
3024         be weak, introduce weakrefs or non-weak aliases with __gthrw,
3025         and prefix all uses with __ghtrw.
3026
3027 2005-11-09  Alexandre Oliva  <aoliva@redhat.com>
3028
3029         PR other/4372
3030         * tree.h (IDENTIFIER_TRANSPARENT_ALIAS): New.
3031         (TREE_DEPRECATED): Adjust comment.  Check for a DECL.
3032         * c-common.c (handle_weakref_attribute): New.
3033         (c_common_attribute_table): Add weakref.
3034         * configure.ac (HAVE_GAS_WEAKREF): Check for weakref support
3035         in the assembler.
3036         * configure, config.in: Rebuilt.
3037         * defaults.h (ASM_OUTPUT_WEAKREF): Define if HAVE_GAS_WEAKREF.
3038         * doc/extend.texi: Document weakref attribute.
3039         * varasm.c (ultimate_transparent_alias_target): New
3040         (assemble_name): Use it.
3041         (weak_finish_1): Split out of...
3042         (weak_finish): ... and deal with weakrefs in...
3043         (weakref_targets): ... new list.
3044         (globalize_decl): Clean up weakref_targets.
3045         (do_assemble_alias): Handle weakrefs.
3046         (finish_aliases_1): Do not reject weakrefs to external symbols.
3047         (assemble_alias): Handle weakrefs.
3048
3049 2005-11-09  Richard Guenther  <rguenther@suse.de>
3050
3051         PR tree-optimization/24716
3052         * tree-scalar-evolution.c (analyze_evolution_in_loop): Use
3053         t_bool to track results from follow_ssa_edge.
3054
3055 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
3056
3057         * final.c (force_source_line): New global variable.
3058         (final_scan_insn): Set it to true instead of clearing last_filename.
3059         (notice_source_line): Return true if force_source_line is true,
3060         unless source info is absent.
3061
3062 2005-11-09  Andrew Pinski  <pinskia@physics.uc.edu>
3063
3064         PR c/24644
3065         * dwarf2-out.c (add_name_and_src_coords_attributes): Don't add
3066         a linkage name for a variable if it a register variable.
3067         * c-decl.c (grokdeclarator): Global register variables
3068         should be set as PUBLIC.
3069
3070 2005-11-09  Andreas Krebbel  <krebbel1@de.ibm.com>
3071
3072         PR 24624
3073         * config/s390/s390.c (struct s390_frame_layout): New fields
3074         first_save_gpr_slot and last_save_gpr_slot.
3075         (cfun_grps_save_area_size, s390_frame_info, s390_emit_prologue,
3076         s390_emit_epilogue, s390_initial_elimination_offset): Replaced
3077         first_save_gpr and last_save_gpr with the _slot variants.
3078         (s390_register_info): Calculate first_save_gpr_slot and
3079         last_save_gpr_slot using regs_ever_live.
3080
3081 2005-11-09  Andreas Krebbel  <krebbel1@de.ibm.com>
3082
3083         PR 24623
3084         * config/s390/s390.c (s390_regs_ever_clobbered): Only save live eh regs
3085         for a function containing a landing pad.
3086
3087 2005-11-09  Andreas Krebbel  <krebbel1@de.ibm.com>
3088
3089         PR 24034
3090         * flow.c (mark_set_1): Handle CLOBBERs like SETs if the register
3091         is live afterwards.
3092
3093 2005-11-08  Bernd Schmidt  <bernd.schmidt@analog.com>
3094
3095         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DEFAULTS,
3096         MULTILIB_DIRNAMES, MULTILIB_EXCEPTIONS): New.
3097
3098 2005-11-09  Nathan Sidwell  <nathan@codesourcery.com>
3099
3100         Add ms2 support
3101         * config/ms1/ms1.md (UNSPEC_BLOCKAGE, UNSPEC_EI, UNSPEC_DI): New
3102         constants.
3103         (call,load,store): New insn types.
3104         (mem_access, branch_access): Adjust reservation conditions.
3105         (define_delay): Adjust condition.
3106         (decrement_and_branch_until_zero): Allow for ms2.  Set branch
3107         type.
3108         (*decrement_and_rbanch_until_zero_no_clobber): Allow for ms2.
3109         (*movqi_internal,*movsi_internal,*movsf_internal): Use load,store
3110         insn type.
3111         (call_internal, call_value_internal, return_internal,
3112         return_interrupt_internal, eh_return_internal, indirect_jump,
3113         tablejump): Set call insn type.
3114         (blockage, ei, di): Use appropriate unspec const.
3115         * config/ms1/ms1.c (ms1_flag_delayed_branch): New.
3116         (ms1_get_attr_type): Adjust to give load & store types.
3117         (ms1_final_prescan_insn): Adjust for new insn types.  Don't look
3118         backwards past a barrier.
3119         (ms1_override_options): Accept ms2 arch.  Copy and reset delayed
3120         branch scheduling.
3121         (struct branch_info, struct label_info): New.
3122         (ms1_labels): New.
3123         (ms1_add_branches, ms1_check_delay_slot, ms1_reorg_hazard): New.
3124         (ms1_machine_reorg): New.
3125         (TARGET_MACHINE_DEPENDENT_REORG): Override.
3126         * config/ms1/crtn.asm: Add nop for ms2 JAL hazard.
3127         * config/ms1/ms1.h (processor_type): Add PROCESSOR_MS2.
3128         (ASM_SPEC, LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Add ms2.
3129         (TARGET_MS2): New.
3130
3131 2005-11-09  Per Bothner  <per@bothner.com>
3132             Uros Bizjak  <uros@kss-loka.si>
3133
3134         PR c/24101
3135         * toplev.c (process_options): Initialize debug_hooks early
3136         in case lang_hooks.post_options ends up calling a debug_hook.
3137
3138 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
3139
3140         * dwarf2out.c (multiple_reg_loc_descriptor): Don't assume
3141         DBX_REGISTER_NUMBER being contiguous.
3142
3143 2005-11-08  James A. Morrison  <phython@gcc.gnu.org>
3144             Diego Novillo  <dnovillo@redhat.com>
3145
3146         PR 23046
3147         * tree-vrp.c (register_edge_assert_for): Do not register
3148         always-false predicates.
3149
3150 2005-11-08  Devang Patel <dpatel@apple.com>
3151
3152         PR tree-optimization/23115
3153         * tree-if-conv.c (find_phi_replacement_condition): Check domninated_by
3154         relation.
3155
3156 2005-11-08  Joseph S. Myers  <joseph@codesourcery.com>
3157
3158         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include
3159         -mcpu=440.
3160
3161 2005-11-08  Daniel Berlin  <dberlin@dberlin.org>
3162
3163         Fix PR tree-optimization/23382
3164
3165         * tree-ssa-alias.c (compute_may_aliases): Call
3166         delete_old_heap_vars.
3167         * tree-dfa.c (referenced_var_remove): New function.
3168         * tree-ssa.c (delete_tree_ssa): Call delete_old_heap_vars.
3169         * tree-flow.h (referenced_var_remove): Add prototype.
3170         (delete_old_heap_vars): Ditto.
3171         * tree-ssa-structalias.c (heapvars): New variable.
3172         (oldheapvars): Ditto.
3173         (get_constraint_for): Put heap vars on heapvars list.
3174         (delete_old_heap_vars): New function.
3175
3176 2005-11-08  Jason Merrill  <jason@redhat.com>
3177
3178         * tree.h (CALL_FROM_THUNK_P): Add CALL_EXPR_CHECK.
3179
3180 2005-11-08  Uros Bizjak  <uros@kss-loka.si>
3181
3182         PR target/19340
3183         * reg-stack.c (reg_to_stack): Update register liveness also
3184         for flag_sched2_use_traces.
3185
3186 2005-11-08  Alan Modra  <amodra@bigpond.net.au>
3187
3188         PR target/23704
3189         * config/rs6000/rs6000.c (rs6000_handle_option <OPT_m64>): Don't
3190         override prior explicit -mno-powerpc-gfxopt.
3191
3192 2005-11-07  Eric Botcazou  <ebotcazou@adacore.com>
3193
3194         * expmed.c (extract_bit_field): Do not use insv/extv/extzv patterns
3195         if the bitsize is zero.
3196         * doc/md.texi (Standard Pattern Names): Document it.
3197
3198         * config/ia64/ia64.c (ia64_pass_by_reference): Delete.
3199         (TARGET_PASS_BY_REFERENCE): Likewise.
3200
3201 2005-11-07  Ian Lance Taylor  <ian@airs.com>
3202
3203         PR rtl-optimization/24683
3204         * config/i386/i386.c (legitimize_pic_address): If constant operand
3205         to PLUS is too large, put it in a register.
3206
3207 2005-11-07  Jie Zhang  <jie.zhang@analog.com>
3208
3209         * configure.ac: Enable checking assembler dwarf2 support for bfin
3210         target.
3211         * configure: Regenerate.
3212
3213 2005-11-07  Paolo Bonzini  <bonzini@gnu.org>
3214
3215         PR target/24230
3216
3217         * config/rs6000/rs6000.c (easy_vector_splat_const, easy_vector_same,
3218         gen_easy_vector_constant_add_self): Delete.
3219         (vspltis_constant, easy_altivec_constant, gen_easy_altivec_constant):
3220         New.
3221         (output_vec_const_move): Use gen_easy_altivec_constant.
3222         (rs6000_expand_vector_init): Do not emit a set of a VEC_DUPLICATE.
3223         * config/rs6000/predicates.md (easy_vector_constant): Reorganize tests.
3224         (easy_vector_constant_add_self): Rewritten.
3225         * config/rs6000/rs6000-protos.h (easy_vector_splat_const,
3226         easy_vector_same, gen_easy_vector_constant_add_self): Remove prototype.
3227         (easy_altivec_constant, gen_easy_altivec_constant): Add prototype.
3228         * config/rs6000/altivec.md (easy_vector_constant_add_self splitters):
3229         Macroize and adjust for the other changes.
3230
3231 2005-11-07  Paolo Bonzini  <bonzini@gnu.org>
3232
3233         PR c/24599
3234
3235         * c-typeck.c (build_c_cast): Try using a shared constant, and see
3236         if TREE_OVERFLOW or TREE_CONSTANT_OVERFLOW really changed.
3237
3238 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
3239
3240         PR rtl-optimization/23567
3241         * ifcvt.c (noce_mem_write_may_trap_or_fault_p): New function.
3242         (noce_process_if_block): Don't do any optimizations except
3243         if (cond) x = x; if !set_b and write into orig_x may trap
3244         or fault.  Remove the MEM_READONLY_P check.
3245
3246 2005-11-06  Diego Novillo  <dnovillo@redhat.com>
3247
3248         PR 24670
3249         * tree-vrp.c (fix_equivalence_set): New.
3250         (extract_range_from_assert): Call it.
3251
3252 2005-11-05  Ian Lance Taylor  <ian@airs.com>
3253
3254         PR target/22432
3255         * combine.c (apply_distributive_law): Don't distribute across a
3256         vector mode subreg.
3257
3258 2005-11-05  Kazu Hirata  <kazu@codesourcery.com>
3259
3260         * c-typeck.c, config/i386/netware.h, config/m32c/cond.md,
3261         config/ms1/ms1.h, config/rs6000/predicates.md,
3262         config/s390/s390.c, params.def, postreload-gcse.c,
3263         tree-flow-inline.h, tree-ssa-operands.c, tree-vectorizer.c,
3264         tree-vrp.c, tree.c: Fix comment typos.
3265         * doc/invoke.texi: Fix typos.
3266
3267 2005-11-05  Sebastian Pop  <pop@cri.ensmp.fr>
3268
3269         * lambda-code.c (lambda_transform_legal_p): Use DDR_NUM_DIST_VECTS
3270         for testing whether the data_dependence_relation contains distance
3271         vectors.  Iterate over all distance vectors of the ddr.
3272         * lambda.h: Define a vec of lambda_vector pointers.
3273         * tree-data-ref.c (dump_data_dependence_relation,
3274         dump_data_dependence_direction): Iterate over all distance and
3275         direction vectors of the ddr.
3276         (initialize_data_dependence_relation): Initialize DDR_DIR_VECTS and
3277         DDR_DIST_VECTS.
3278         (build_classic_dist_vector, build_classic_dir_vector): Push a set
3279         of distance/direction vectors instead of a single one.
3280         * tree-data-ref.h (dir_vects, dist_vects): Replace dir/dist
3281         lambda_vectors with a vec of lambda_vectors.
3282         (DDR_DIR_VECT, DDR_DIST_VECT): Redefined as operations on vec.
3283         (DDR_DIR_VECTS, DDR_DIST_VECTS, DDR_NUM_DIR_VECTS,
3284         DDR_NUM_DIST_VECTS): New.
3285         * tree-loop-linear.c (gather_interchange_stats): Test for the
3286         existence of distance vectors only after having checked that there
3287         is a dependence.  Iterate over all distance vectors of the ddr.
3288         (linear_transform_loops): Use dump_data_dependence_relation.
3289         * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Test for
3290         distance vectors using DDR_NUM_DIST_VECTS.  Iterate over all the
3291         distance vectors of the ddr.
3292
3293 2005-11-05  Bernd Schmidt  <bernd.schmidt@analog.com>
3294
3295         * config/bfin/bfin.c (n_dregs_to_save, n_pregs_to_save,
3296         expand_prologue_reg_save, expand_epilogue_reg_restore): New argument
3297         IS_INTHANDLER; all callers changed.
3298         (n_regs_saved_by_prologue): Take interrupt handler attributes into
3299         account.
3300         (do_link, do_unlink): New argument ALL; all callers changed.
3301         (expand_interrupt_handler_prologue, expand_interrupt_handler_epilogue):
3302         If function isn't leaf, save and restore all registers.
3303         (bfin_function_ok_for_sibcall): Only true if not an interrupt or
3304         exception handler.
3305
3306 2005-11-05  Jan Hubicka  <jh@suse.cz>
3307
3308         PR rtl-optimization/23490
3309         * doc/invoke.texi (max-predicted-iterations, max-cse-insns,
3310         max-flow-memory-location): Document.
3311         * flow.c: Include params.h
3312         (MAX_MEM_SET_LIST_LEN): Kill.
3313         (add_to_mem_set_list): Use new param.
3314         * cse.c (cse_basic_block): Replace 1000 by new param.
3315         * params.def (PARAM_MAX_PREDICTED_ITERATIONS, PARAM_MAX_CSE_INSNS,
3316         PARAM_MAX_FLOW_MEMORY_LOCATIONS): New.
3317         * predict.c (predict_loops): Use new param.
3318         * predict.def (MAX_PRED_LOOP_ITERATIONS): Remove.
3319
3320         * ipa-inline.c (cgraph_decide_inlining_of_small_function,
3321         cgraph_decide_inlining, cgraph_decide_inlining_incrementally):
3322         Do not hold memory returned by cgraph_node_name across other call.
3323
3324 2005-11-04  Hans-Peter Nilsson  <hp@axis.com>
3325
3326         PR target/23424
3327         * config/cris/predicates.md ("cris_bdap_sign_extend_operand"):
3328         Disable.
3329
3330 2005-11-04  Jeff Law  <law@redhat.com>
3331
3332         PR/21883
3333         * doc/invoke.texi: Document max-jump-thread-duplication-stmts PARAM.
3334         * tree-ssa-dom.c: Include params.h.
3335         (thread_across_edge): If there are too many statements in the
3336         target block, then do not thread through it.
3337         * Makefile.in (tree-ssa-dom.o): Depend on $(PARAMS_H).
3338         * params.def (PARAM_MAX_JUMP_THREAD_DUPLICATION_STMTS): New PARAM.
3339
3340 2005-11-03  Diego Novillo  <dnovillo@redhat.com>
3341
3342         PR 24627
3343         * tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Use
3344         TODO_update_ssa instead of TODO_update_ssa_no_phi.
3345
3346 2005-11-04  Sebastian Pop  <pop@cri.ensmp.fr>
3347
3348         PR/18595
3349         * tree-scalar-evolution.c (instantiate_parameters_1,
3350         instantiate_parameters, resolve_mixers): Compute the size of an
3351         expression to be instantiated and give up the instantiation if the
3352         size exceeds PARAM_SCEV_MAX_EXPR_SIZE.
3353
3354 2005-11-04  Richard Guenther  <rguenther@suse.de>
3355
3356         * tree-flow.h (ref_contains_indirect_ref): Rename to
3357         array_ref_contains_indirect_ref.
3358         * tree-flow-inline.h (ref_contains_indirect_ref): Likewise.
3359         (array_ref_contains_indirect_ref): Make comment match the code
3360         and vice-versa.
3361         (ref_contains_array_ref): Likewise.
3362         * tree-ssa-structalias.c (find_func_aliases): Remove call to
3363         ref_contains_indirect_ref.
3364         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
3365         Rename calls to ref_contains_indirect_ref.
3366
3367 2005-11-04 Paul Brook  <paul@codesourcery.com>
3368
3369         * config/arm/arm.c (arm_load_pic_register): Pass extra reg to
3370         gen_pic_add_dot_plus_four and gen_pic_add_dot_plus_eight.
3371         (arm_call_tls_get_addr, legitimize_tls_address): Likewise.
3372         * config/arm/arm.md: Use match_operand in peephole input templates
3373         and match_dup in peephole output templates.
3374
3375 2005-11-04  Daniel Jacobowitz  <dan@codesourcery.com>
3376
3377         * config/arm/arm.c (arm_init_libfuncs): Use __aeabi_idiv and
3378         __aeabi_uidiv.
3379
3380 2005-11-04  Mark Mitchell  <mark@codesourcery.com>
3381             Daniel Jacobowitz  <dan@codesourcery.com>
3382
3383         * longlong.h (add_ssaaaa): Clobber condition code register
3384         in ARM version.
3385         (sub_ddmmss): Likewise.
3386         (umul_ppmm): Likewise.
3387
3388 2005-11-04  Daniel Jacobowitz  <dan@codesourcery.com>
3389             Paul Brook  <paul@codesourcery.com>
3390             Phil Blundell  <pb@reciva.com>
3391
3392         * configure.ac: Add test for ARM TLS support.
3393         * configure: Regenerated.
3394         * config/arm/arm-protos.h (legitimize_tls_address)
3395         (arm_tls_referenced_p, tls_mentioned_p)
3396         (arm_output_addr_const_extra): New prototypes.
3397         (thumb_legitimize_pic_address): Delete.
3398         * config/arm/arm.c: Include "gt-arm.h".
3399         (enum tls_reloc): New.
3400         (arm_cannot_copy_insn_p, arm_tls_symbol_p, load_tls_operand)
3401         (pcrel_constant_p, get_tls_get_addr, arm_load_tp)
3402         (arm_call_tls_get_addr, legitimize_tls_address)
3403         (arm_tls_referenced_p, arm_tls_operand_p_1, tls_mentioned_p)
3404         (arm_init_tls_builtins, arm_emit_tls_decoration)
3405         (arm_output_addr_const_extra): New functions.
3406         (TARGET_CANNOT_COPY_INSN_P, TARGET_CANNOT_FORCE_CONST_MEM)
3407         (TARGET_HAVE_TLS): Define.
3408         (target_thread_pointer): New.
3409         (arm_override_options): Handle -mtp=.
3410         (legitimize_pic_address): Ignore UNSPECs.
3411         (arm_legitimate_address_p, thumb_legitimate_address_p): Handle PC
3412         relative symbols.
3413         (arm_legitimize_address, thumb_legitimize_address): Handle TLS.
3414         (tls_get_addr_libfunc): New variable.
3415         (symbol_mentioned_p, label_mentioned_p): Ignore UNSPEC_TLS.
3416         (arm_init_builtins): Call arm_init_tls_builtins.
3417         (arm_expand_builtin): Handle ARM_BUILTIN_THREAD_POINTER.
3418         (arm_encode_section_info): Call default_encode_section_info.
3419         * config/arm/arm.h (TARGET_HARD_TP, TARGET_SOFT_TP): Define.
3420         (enum arm_tp_type): New.
3421         (target_thread_pointer): Add declaration.
3422         (LEGITIMATE_CONSTANT_P): Handle TLS.
3423         (LEGITIMATE_PIC_OPERAND_P): Handle TLS.
3424         (OUTPUT_ADDR_CONST_EXTRA): Call arm_output_addr_const_extra.
3425         (enum arm_builtins): Add ARM_BUILTIN_THREAD_POINTER.
3426         * config/arm/arm.md: Add UNSPEC_TLS.
3427         (movsi): Handle TLS.
3428         (pic_add_dot_plus_four, pic_add_dot_plus_eight): Allow for
3429         non-PIC.
3430         (tls_load_dot_plus_eight): New insn and a peephole to create it.
3431         (load_tp_hard, load_tp_soft): New insns.
3432         * arm.opt: Add -mtp=.
3433         * doc/invoke.texi (ARM Options): Document -mtp.
3434
3435 2005-11-04  Daniel Jacobowitz  <dan@codesourcery.com>
3436
3437         * config/arm/lib1funcs.asm: Don't include "libunwind.S".
3438         * config/arm/libunwind.S: Include "lib1funcs.asm".
3439         * config/arm/t-bpabi (LIB1ASMFUNCS): Remove _unwind.
3440         (LIB2ADDEH): Add libunwind.S.
3441         (LIB2ADDEHDEP): Add lib1funcs.asm.
3442         * mklibgcc.in: Handle asm files in libgcc_eh.a.
3443
3444 2005-11-04  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
3445
3446         PR fortran/18452
3447         * gcc/c.opt: Add a -lang-fortran option.
3448         * gcc/c-opts.c: Add a lang_fortran flag.
3449         (c_common_init_options): Handling the -lang-fortran option.
3450         (c_common_handle_option): Add a case for Fortran options in
3451         preprocessing. Remove cases for -ffixed-form and
3452         -ffixed-line-length. Add a case for -lang-fortran.
3453
3454 2005-11-03  David Edelsohn  <edelsohn@gnu.org>
3455
3456         * config/rs6000/rs6000.c: Include params.h
3457         (optimization_options): Set max-grow-copy-bb-insns default to 16.
3458         (bdesc_2arg): Delete vpkuhss and vpkuwss.
3459         * config/rs6000/altivec.md (UNSPEC_VPKUHSS): Delete.
3460         (UNSPEC_VPKUWSS): Delete.
3461         (altivec_vpkuhss): Delete.
3462         (altivec_vpkuwss): Delete.
3463         * config/rs6000/rs6000.md (plus_eqsi): Remove optimize_size from
3464         final condition.
3465         (neg_eq0<mode>): Remove final condition.
3466         (neg_eq<mode>): Remove condition and split-condition.
3467
3468 2005-11-04  Alan Modra  <amodra@bigpond.net.au>
3469
3470         * config/rs6000/rs6000.c (output_toc): Make "offset" HOST_WIDE_INT.
3471         Use associated print macros.
3472
3473 2005-11-03  Joseph S. Myers  <joseph@codesourcery.com>
3474
3475         PR c++/17964
3476         * diagnostic.c (diagnostic_set_info_translated): New function.
3477         (diagnostic_set_info): Use it.  Add comment.
3478         * diagnostic.h (diagnostic_set_info_translated): Declare.
3479
3480 2005-11-03  Eric Botcazou  <ebotcazou@adacore.com>
3481
3482         * dwarf2asm.c (dw2_force_const_mem): Add new parameter 'public'.
3483         On USE_LINKONCE_INDIRECT platforms, build a DECL_ONE_ONLY indirect
3484         reference only if 'public' is true.
3485         (dw2_output_indirect_constant_1): On USE_LINKONCE_INDIRECT platforms,
3486         emit the .hidden directive only if the indirect reference is public.
3487         (dw2_asm_output_encoded_addr_rtx): Add new parameter 'public'.
3488         Pass it to dw2_force_const_mem.
3489         * dwarf2asm.h (dw2_asm_output_encoded_addr_rtx): New param 'public'.
3490         * dwarf2out.c (output_cfi): Adjust calls to above function.
3491         (output_call_frame_info): Likewise.
3492         * except.c (output_ttype): Pass TREE_PUBLIC of the type_info object
3493         as 'public' argument to dw2_asm_output_encoded_addr_rtx.
3494
3495 2005-11-03  Zdenek Dvorak  <dvorakz@suse.cz>
3496
3497         PR tree-optimization/24483
3498         * tree-ssa-loop-ivopts.c (aff_combination_add_elt): Move rest
3499         field to elts if possible.
3500
3501 2005-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
3502
3503         PR middle-end/23155
3504         * gimplifier.c (gimplify_expr): Create a temporary for lvalue
3505         CONSTRUCTOR.
3506
3507 2005-11-03  Daniel Berlin  <dberlin@dberlin.org>
3508
3509         Fix PR tree-optimization/24351
3510
3511         * tree-ssa-structalias.c (struct variable_info): Add
3512         collapsed_into.
3513         (get_varinfo_fc): New function to follow collapsing.
3514         (new_var_info): Set collapsed_to to NULL.
3515         (dump_constraint): Follow collapsing.
3516         (build_constraint_graph): Handle collapsing.
3517         (do_simple_structure_copy): Return false if something bad
3518         happened.
3519         (collapse_rest_of_var): New function.
3520         (do_structure_copy): Collapse if do_simple_structure_copy returns
3521         false.
3522
3523 2005-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
3524
3525         PR middle-end/24589
3526         * gimplify.c (gimplify_expr) <case CONSTRUCTOR>: Add the
3527         expressions to a statement list instead of gimplifying them.
3528
3529 2005-11-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
3530
3531         PR rtl-optimization/23585
3532         * rtlanal.c (rtx_addr_can_trap_p_1) <PLUS>: Return 0 for an address
3533         that can't trap plus a constant integer, if the mode has zero size.
3534
3535 2005-11-03  Ulrich Weigand  <uweigand@de.ibm.com>
3536
3537         PR target/24620
3538         * config/s390/s390.md ("*insv<mode>_reg_imm"): Accept any CONST_INT
3539         as operand 2.
3540         ("*insv<mode>_reg_extimm"): Likewise.
3541
3542 2005-11-03  Joseph S. Myers  <joseph@codesourcery.com>
3543
3544         PR c/24329
3545         * c-pretty-print.c (pp_c_type_specifier): Do not recurse if
3546         c_common_type_for_mode returns an unnamed type.
3547
3548 2005-11-02  Richard Henderson  <rth@redhat.com>
3549
3550         PR target/9350
3551         PR target/24374
3552         * dwarf2out.c (dwarf2out_reg_save_reg): New.
3553         (dwarf2out_frame_debug_expr): Return after dwarf_handle_frame_unspec.
3554         * function.c (assign_parms): Use calls.internal_arg_pointer.
3555         (expand_main_function): Remove FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN
3556         code.
3557         * target-def.h (TARGET_INTERNAL_ARG_POINTER): New.
3558         (TARGET_CALLS): Add it.
3559         * target.h (struct gcc_target): Add calls.internal_arg_pointer.
3560         * targhooks.c (default_internal_arg_pointer): New.
3561         * targhooks.h (default_internal_arg_pointer): Declare.
3562         * tree.h (dwarf2out_reg_save_reg): Declare.
3563         * doc/tm.texi (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Remove.
3564         * config/i386/i386.c (dbx_register_map): Add return column.
3565         (dbx64_register_map, svr4_dbx_register_map): Likewise.
3566         (TARGET_INTERNAL_ARG_POINTER, ix86_internal_arg_pointer): New.
3567         (TARGET_DWARF_HANDLE_FRAME_UNSPEC, ix86_dwarf_handle_frame_unspec): New.
3568         (ix86_function_ok_for_sibcall): Disable if force_align_arg_pointer.
3569         (ix86_save_reg): Save force_align_arg_pointer.
3570         (ix86_emit_save_regs): Make regno unsigned.
3571         (ix86_emit_save_regs_using_mov): Likewise.
3572         (ix86_expand_prologue): Handle force_align_arg_pointer.
3573         (ix86_expand_epilogue): Likewise.
3574         * config/i386/i386.h: (dbx_register_map): Update.
3575         (dbx64_register_map, svr4_dbx_register_map): Update.
3576         (struct machine_function): Add force_align_arg_pointer.
3577         * config/i386/i386.md (UNSPEC_REG_SAVE, UNSPEC_DEF_CFA): New.
3578         (UNSPEC_TP, UNSPEC_TLS_GD, UNSPEC_TLS_LD_BASE): Renumber.
3579         (TARGET_PUSH_MEMORY peepholes): Disable if RTX_FRAME_RELATED_P.
3580
3581 2005-11-02  Jan Hubicka  <jh@suse.cz>
3582
3583         PR target/23303
3584         * i386.md: Add peep2 for simplyfing array accesses.
3585
3586 2005-11-02  Ulrich Weigand  <uweigand@de.ibm.com>
3587
3588         PR target/24615
3589         * config/s390/s390-protos.h (s390_decompose_shift_count): Declare.
3590         * config/s390/s390.c (s390_decompose_shift_count): New function.
3591         (s390_extra_constraint_str) ['Y']: Use s390_decompose_shift_count.
3592         (print_shift_count_operand): Use s390_decompose_shift_count.
3593         * config/s390/predicates.md ("setmem_operand", "shift_count_operand"):
3594         Use s390_decompose_shift_count.  Do not accept any non-base hard regs.
3595
3596 2005-11-02  Ulrich Weigand  <uweigand@de.ibm.com>
3597
3598         PR target/24600
3599         * loop.c (loop_givs_rescan): Use force_operand to expand
3600         complex GIVs.
3601
3602 2005-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
3603
3604         PR 22429
3605         * fold-const.c (build_range_check): Use unsigned when signed
3606         overflow is undefined also.  If etype is subtype, make sure that
3607         the subtraction is in the supertype.
3608
3609 2005-11-02  Richard Henderson  <rth@redhat.com>
3610
3611         PR target/24178
3612         * config/alpha/alpha.c (get_aligned_mem): Honor alignment given
3613         by MEM_ALIGN.
3614
3615 2005-11-01  Richard Henderson  <rth@redhat.com>
3616
3617         PR 21518
3618         * loop.c (scan_loop): Do not propagate computations to a hard
3619         register destination with SMALL_REGISTER_CLASSES.
3620
3621 2005-11-01  Joseph S. Myers  <joseph@codesourcery.com>
3622
3623         * config/rs6000/rs6000.c (rs6000_rtx_costs): Do not add extra
3624         costs for MULT inside PLUS or MINUS.
3625
3626 2005-11-01  Bob Wilson  <bob.wilson@acm.org>
3627
3628         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Add a byte of padding.
3629         (TRAMPOLINE_SIZE): Round up to 60.
3630         * config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Likewise.
3631
3632 2005-10-31  James E. Wilson  <wilson@specifix.com>
3633
3634         PR debug/24444
3635         * dwarf2out.c (convert_cfa_to_loc_list): Put inside DWARF2_UNWIND_INFO
3636         ifdef.  Put ifdefs around call in gen_subprogram_die.
3637         (compute_frame_pointer_to_cfa_displacement): Likewise.
3638         (gen_subprogram_die): Restore old code for when DWARF2_UNWIND_INFO is
3639         not defined.
3640
3641         PR rtl-optimization/17356
3642         *  cfgrtl.c (purge_dead_edges): Undo last change.  In EDGE_EH code,
3643         add check for CALL_INSN if EDGE_ABRNOMAL_CALL true.
3644
3645 2005-10-31  Jan Hubicka  <jh@suse.cz>
3646
3647         PR middle-end/24093
3648         * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Watch negative
3649
3650         PR target/20928
3651         * i386.c (legitimize_pic_address): Deal with large immediates.
3652
3653         PR profile/20815
3654         * coverage.c (coverage_checksum_string): Fix code to stip random seeds
3655         from symbol names while computing checkup.
3656
3657         PR profile/24487
3658         * predict.c (predict_loops): Do not estimate more than
3659         MAX_PRED_LOOP_ITERATIONS in PRED_LOOP_ITERATIONS heuristic.
3660         * predict.def (MAX_PRED_LOOP_ITERATIONS): Define.
3661
3662 2005-10-31  Andrew MacLeod  <amacleod@redhat.com>
3663
3664         PR tree-optimization/19097
3665         * tree-ssa-operands.c (correct_use_link): Don't look for modified stmts.
3666
3667 2005-10-31  J"orn Rennecke <joern.rennecke@st.com>
3668
3669         * optabs.c (expand_unop): Take TRULY_NOOP_TRUNCATION into account.
3670
3671 2005-10-31  Andrew Pinski  <pinskia@physics.uc.edu>
3672
3673         PR middle-end/23492
3674         * tree-inline.c (setup_one_parameter): If the init_stmt
3675         is NULL, don't insert the statement.
3676
3677 2005-10-30  Jan Hubicka  <jh@suse.cz>
3678
3679         PR tree-optimization/24172
3680         * tree-inline.c (copy_body_r): Unshare the substituted value first.
3681
3682 2005-10-30  Hans-Peter Nilsson  <hp@bitrange.com>
3683
3684         * config/mmix/mmix.c (mmix_intval): Correct handling of DFmode
3685         constants for hosts with long != 32 bits.
3686
3687 2005-10-28  Andreas Krebbel <krebbel1@de.ibm.com>
3688
3689         PR middle-end/24093
3690         * ipa-inline.c (craph_decide_recursive_inlining): Fix return value.
3691
3692 2005-10-28  Aldy Hernandez  <aldyh@redhat.com>
3693
3694         * config/ms1/ms1.h (TARGET_MS1_64_001): New.
3695         (TARGET_MS1_16_002): New.
3696         (TARGET_MS1_16_003): New.
3697
3698         * config/ms1/ms1.md ("decrement_and_branch_until_zero"): Rewrite.
3699         ("*decrement_and_branch_until_zero_no_clobber"): New.
3700         Add corresponding splitter for decrement_and_branch_until_zero
3701         instruction.
3702         Key all decrement_and_branch_until_zero patterns off of
3703         TARGET_MS1_16_003.
3704
3705 2005-10-28  Andrew Pinski  <pinskia@physics.uc.edu>
3706
3707         PR middle-end/24362
3708         * tree-complex.c (extract_component): Treat RESULT_DECL
3709         like the rest of the decls.
3710
3711 2005-10-25  Eric Botcazou  <ebotcazou@adacore.com>
3712
3713         * config/ia64/ia64.c (ia64_output_function_profiler): Emit an
3714         indirect call to _mcount if the function needs a static chain.
3715
3716 2005-10-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
3717             Caroline Tice  <ctice@apple.com>
3718
3719         PR rtl-optimization/24460
3720         * dwarf2out.c (have_switched_text_sections): New boolean variable.
3721         (dwarf2out_switch_text_section): Set it to true instead of
3722         incrementing separate_line_info_table_in_use.
3723         (output_loc_list): Additionally test have_switched_text_sections.
3724         (output_ranges): Likewise.
3725         (dwarf2out_finish): Likewise.
3726         * varasm.c (assemble_start_function): Do not call
3727         insert_section_boundary_note.
3728         (assemble_end_function): If flag_reorder_blocks_and_partition,
3729         switch to the function's section before emitting the .size directive.
3730         * bb-reorder.c (insert_section_boundary_note): Staticify.
3731         (rest_of_handle_reorder_blocks): Call insert_section_boundary_note.
3732         * output.h (insert_section_boundary_note): Delete.
3733
3734 2005-10-24  Andrew Pinski  <pinskia@physics.uc.edu>
3735
3736         PR c/23103
3737         * c-format.c (check_format_types): Use lang_hooks.types_compatible_p
3738         instead of pointer equality when comparing types.
3739
3740 2005-10-24  James E. Wilson  <wilson@specifix.com>
3741
3742         * sched-deps.c (flush_pending_lists): Pass 1 not 0 in first two
3743         add_dependence_list_and_free calls.
3744
3745 2005-10-24  Steven Bosscher  <stevenb@suse.de>
3746
3747         * contrib.texi: Add the names of the LLNL folks who donated
3748         Cray pointer support for gfortran.
3749
3750 2005-10-24  Steven Bosscher  <stevenb@suse.de>
3751
3752         PR tree-optimization/24225
3753         * profile.c (branch_prob): Look from end to start through a
3754         basic block when looking for a locus.
3755
3756 2005-10-24  Richard Henderson  <rth@redhat.com>
3757
3758         * pa.c (store_reg_modify): Set RTX_FRAME_RELATED_P on each set in
3759         parallel.
3760         (hppa_expand_prologue): Likewise.
3761
3762 2005-10-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3763
3764         * pa-linux.h (NO_PROFILE_COUNTERS): Delete define.
3765         (NO_DEFERRED_PROFILE_COUNTERS): Define.
3766         * pa.h (NO_PROFILE_COUNTERS): Define.
3767         * pa.c (NO_DEFERRED_PROFILE_COUNTERS): Define if not defined.
3768         (funcdef_nos): New vector to hold label numbers of deferred profile
3769         counters.
3770         (output_deferred_profile_counters): New function.
3771         (hppa_profile_hook): Push label number onto funcdef_nos.
3772         (pa_hpux_file_end): Call output_deferred_profile_counters if
3773         NO_DEFERRED_PROFILE_COUNTERS is false.
3774
3775         * pa-protos.h (get_deferred_plabel): New prototype.
3776         * pa.c (get_plabel): Rename to get_deferred_plabel.  Return plabel.
3777         Make global.
3778         (output_call): Adjust calls.
3779
3780 2005-10-24  Alan Modra  <amodra@bigpond.net.au>
3781
3782         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Explain
3783         peculiarity of GOT/TOC section usage.
3784
3785 2005-10-23  Andrew Pinski  <pinskia@physics.uc.edu>
3786
3787         PR objc/24435
3788          * c-common.c (constant_string_class_name): Add documentation.
3789
3790 2005-10-23  Kaz Kojima  <kkojima@gcc.gnu.org>
3791
3792         PR target/23832
3793         * recog.c (peephole2_optimize): Increment peep2_current_count
3794         only when the slot is empty.
3795
3796 2005-10-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3797
3798         PR ada/23957
3799         * except.c (output_function_exception_table): Call
3800         assemble_external_libcall if we need a personality function.
3801
3802 2005-10-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
3803
3804         PR rtl-optimization/24460
3805         * bb-reorder.c (fix_crossing_unconditional_branches): Do not
3806         set the basic block for barriers.
3807
3808 2005-10-21  Janis Johnson  <janis187@us.ibm.com>
3809
3810         * var-tracking.c (vt_initialize): Initialize post.
3811
3812 2005-10-21  Devang Patel  <dpatel@apple.com>
3813
3814         PR/24220
3815         * c-common.c (vector_types_convertible_p): Check vector element type.
3816
3817 2005-10-21  Kaz Kojima  <kkojima@gcc.gnu.org>
3818
3819         * config/sh/sh.c (prepare_move_operands): Handle the address
3820         constant which is a tls symbolic address plus a constant.
3821
3822 2005-10-21  Andrew Pinski  <pinskia@physics.uc.edu>
3823
3824         PR driver/24473
3825         * gcc.c (main): Use the correct counter for erroring out
3826         about mulitple files.
3827
3828 2005-10-21  Alan Modra  <amodra@bigpond.net.au>
3829
3830         PR target/24465
3831         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Always
3832         use r2 for 64-bit tls .got access.
3833
3834 2005-10-21  Paolo Bonzini  <bonzini@gnu.org>
3835
3836         * dojump.c (do_jump): Handle side-effecting TRUTH_AND_EXPR and
3837         TRUTH_OR_EXPR.
3838
3839 2005-10-20  Steven Bosscher  <stevenb@suse.de>
3840
3841         PR tree-optimization/24307
3842         * tree-cfg.c (tree_find_edge_insert_loc): Handle naked RETURN_EXPR.
3843
3844 2005-10-20  Alexandre Oliva  <aoliva@redhat.com>
3845
3846         PR middle-end/24295
3847         * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Mark
3848         alias targets.
3849         * varasm.c (find_decl_and_mark_needed): After cgraph global info
3850         is ready, stop marking functions, but still mark variables.
3851
3852 2005-10-20  Richard Guenther  <rguenther@suse.de>
3853
3854         PR c++/24439
3855         * fold-const.c (invert_truthvalue): Handle COND_EXPR with
3856         void type operands.
3857
3858 2005-10-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
3859
3860         PR rtl-optimization/23585
3861         * rtlanal.c (rtx_addr_can_trap_p_1): New predicate extracted from...
3862         (rtx_addr_can_trap_p): ... here.  Invoke rtx_addr_can_trap_p_1.
3863         (may_trap_p_1): New predicate extracted from...
3864         (may_trap_p): ... here.  Invoke may_trap_p_1.
3865         (may_trap_or_fault_p): New predicate.
3866         * rtl.h (may_trap_or_fault_p): Declare it.
3867         * reorg.c (steal_delay_list_from_target): Use may_trap_or_fault_p
3868         instead of may_trap_p.
3869         (steal_delay_list_from_fallthrough): Likewise.
3870         (fill_simple_delay_slots): Likewise.
3871         (fill_slots_from_thread): Likewise.
3872         * function.c (pad_to_arg_alignment): Rework comment about
3873         SPARC_STACK_BOUNDARY_HACK.
3874         * config/sparc/sparc.h: Likewise.
3875
3876 2005-10-19  Adrian Straetling  <straetling@de.ibm.com>
3877
3878         * config/s390/s390.c (s390_expand_insv): New.
3879         * config/s390/s390-protos.h (s390_expand_insv): Declare.
3880         * config/s390/s390.md ("UNSPEC_SETHIGH"): Rename to "UNSPEC_ICM".
3881         ("icm_hi"): Remove mode attribute.
3882         ("*sethigh<mode><mode>"): Rewrite to "sethighpart<mode>".
3883         Adjust all uses.
3884         ("*extracthi", "*extractqi"): Remove.
3885         (extv<mode>", "*extzv<mode>"): New.
3886         ("insv", "*insv<mode>_mem_reg", "*insvdi_mem_reghigh",
3887         "*insv<mode>_reg_imm", "*insv<mode>_reg_extimm"): New.
3888
3889 2005-10-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3890
3891         * cfgexpand.c (discover_nonconstant_array_refs_r,
3892         discover_nonconstant_array_refs): Move here from tree-outof-ssa.c
3893         (tree_expand_cfg): Call discover_nonconstant_array_refs.
3894         * tree-outof-ssa.c (rewrite_out_of_ssa): Remove call to
3895         discover_nonconstant_array_refs.
3896
3897 2005-10-19  Steven Bosscher  <stevenb@suse.de>
3898
3899         PR c/23228
3900         * c-decl.c (pop_scope): Don't warn about an unused variable
3901         if it is marked with TREE_NO_WARNING.
3902         (duplicate_decls): Set TREE_NO_WARNING if olddecl and newdecl
3903         somenow mismatch and olddecl is to be replaced.
3904
3905 2005-10-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
3906
3907         PR middle-end/23199
3908         * cfgrtl.c (safe_insert_insn_on_edge): Use can_copy_p to detect
3909         whether registers live on the edge can be saved/restored.
3910
3911 2005-10-19  Kaz Kojima  <kkojima@gcc.gnu.org>
3912
3913         * config/sh/sh.c (fixup_mova): Skip notes.
3914
3915 2005-10-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3916
3917         * config/s390/s390-protos.h (s390_hard_regno_rename_ok): Add prototype.
3918         * config/s390/s390.c (s390_hard_regno_rename_ok): New function.
3919         (s390_can_eliminate): Handle BASE_REGNUM elimination.
3920         (s390_initial_elimination_offset): Likewise.
3921         (s390_conditional_register_usage): BASE_REGNUM is no longer a fixed
3922         register on TARGET_ZARCH targets.
3923         * config/s390/s390.h (HARD_REGNO_RENAME_OK): Define
3924         (INITIAL_FRAME_POINTER_OFFSET): Remove.
3925         (REG_ALLOC_ORDER): Move BASE_REGNUM lower.
3926         (ELIMINABLE_REGS): Add BASE_REGNUM elimination rule.
3927
3928 2005-10-19  Andreas Krebbel  <krebbel1@de.ibm.com>
3929
3930         * config/s390/s390.md: Comment describing output modifiers updated.
3931         * config/s390/s390.c (print_operand): Likewise.
3932
3933 2005-10-19  Andreas Krebbel  <krebbel1@de.ibm.com>
3934
3935         * config/s390/s390.c (override_options): Added check for -mstack-size
3936         64k limitation.
3937         * doc/invoke.texi: Mention that limit in the documenation.
3938
3939 2005-10-18  Paolo Bonzini  <bonzini@gnu.org>
3940
3941         PR #19672
3942         * dojump.c (do_jump): Handle TRUTH_AND_EXPR and TRUTH_OR_EXPR here.
3943
3944 2005-10-18  Daniel Berlin <dberlin@dberlin.org>
3945
3946         Fix PR tree-optimization/24231
3947
3948         * tree-ssa-pre.c (try_look_through_load): Skip abnormal phi names
3949         (compute_avail): Ditto.
3950
3951 2005-10-18  Richard Henderson  <rth@redhat.com>
3952
3953         PR target/24428
3954         * config/i386/i386.c (legitimate_constant_p): Check
3955         SYMBOL_REF_TLS_MODEL directly.  Don't fallthru to SYMBOL_REF
3956         if LABEL_REF.
3957         (legitimate_pic_operand_p): Test SYMBOL_REF_TLS_MODEL directly.
3958         (legitimate_pic_address_disp_p): Reorg CONST checking to make
3959         sure SYMBOL_REF_TLS_MODEL is tested.  Test SYMBOL_REF_TLS_MODEL
3960         directly.
3961         (print_operand_address): Likewise.
3962         * config/i386/predicates.md (x86_64_immediate_operand): Test
3963         SYMBOL_REF_TLS_MODEL properly inside CONST.
3964         (x86_64_zext_immediate_operand): Likewise.
3965         (global_dynamic_symbolic_operand, local_dynamic_symbolic_operand,
3966         initial_exec_symbolic_operand, local_exec_symbolic_operand): Remove.
3967         * config/i386/i386-protos.h: Remove predicates.md entries.
3968
3969 2005-10-18  Danny Smith  <dannysmith@users.sourceforge.net>
3970
3971         * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
3972         Check that elements of TYPE_METHODS are FUNCTION_DECLs.
3973
3974 2005-10-17  Alexey Starovoytov  <alexey.starovoytov@sun.com>
3975             Ian Lance Taylor <ian@airs.com>
3976
3977         PR middle-end/23522
3978         * fold-const.c (fold_widened_comparison): Do not allow range based
3979         constant folding when right operand cannot be unwidened.
3980
3981 2005-10-17  Richard Henderson  <rth@redhat.com>
3982
3983         * builtins.c (expand_builtin_synchronize): Build a new-style asm
3984         with a memory clobber.
3985
3986 2005-10-17  James E Wilson  <wilson@specifix.com>
3987
3988         PR rtl-optimization/17356
3989         * cfgrtl.c (purge_dead_edges): Check for EDGE_ABNORMAL_CALL before
3990         checking for EDGE_EH.
3991
3992 2005-10-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
3993
3994         * config/sparc/sparc.c (function_arg_slotno): In 64-bit mode, align
3995         the slot on an even boundary for any type with 16-byte alignment.
3996
3997 2005-10-17  Hans-Peter Nilsson  <hp@axis.com>
3998
3999         PR target/23424
4000         * md.texi (Modifiers) <%>: Clarify that % doesn't work
4001         after register allocation.
4002
4003 2005-10-17  DJ Delorie  <dj@redhat.com>
4004
4005         * config/m32c/m32c.c (m32c_pushm_popm): Don't mark epilogue insns
4006         as frame related.
4007
4008 2005-10-17  Nathan Sidwell  <nathan@codesourcery.com>
4009
4010         PR c++/22551
4011         * c-common.c (c_add_case_label): Revert my 2005-10-14 clearing of
4012         overflow flags.
4013
4014 2005-10-17  Kaz Kojima  <kkojima@gcc.gnu.org>
4015
4016         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_schedule_insns
4017         to 2 if it's already non-zero.
4018         (OVERRIDE_OPTIONS): Clear flag_schedule_insns if flag_exceptions
4019         is set and warn about it if flag_schedule_insns is 1.
4020
4021 2005-10-17  Paul Woegerer  <paul.woegerer@nsc.com>
4022
4023         * config/crx/crx.md: Compare-and-branch instructions need to
4024         invalidate CC.
4025
4026 2005-10-17  Uros Bizjak  <uros@kss-loka.si>
4027
4028         PR target/24315
4029         * config/i386/i386.md (*pushdi2_rex64 splitter)
4030         (*movdi_1_rex64 splitter, *ashldi3_1 splitter)
4031         (*ashrdi3_1 splitter, *lshrdi3_1 splitter): Delay splitting after
4032         flow2 pass only when (optimize > 0 && flag_peephole2).
4033
4034 2005-10-16  Andrew Pinski  <pinskia@physics.uc.edu>
4035
4036         PR driver/22544
4037         * gcc.c (have_c): New static variable.
4038         (have_o): Likewise.
4039         (process_command): Remove declation of have_c.
4040         Set have_o to 1 when handling -o.
4041         (main): Add a fatel error if there are multiple
4042         files specified and -o and -c/-S is passed witout
4043         -combine or multiple languages.
4044
4045 2005-10-16  Daniel Berlin  <dberlin@dberlin.org>
4046
4047         Fix PR tree-optimization/22444
4048         * tree-ssa-alias.c (compute_flow_insensitive_aliasing):
4049         Assert that we don't hit something with subvars.
4050         (setup_pointers_and_addressables): Don't add things with subvars,
4051         because we'll already process the subvars for aliasing purposes.
4052
4053 2005-10-16  Hans-Peter Nilsson  <hp@axis.com>
4054
4055         PR target/23424
4056         * config/cris/cris.md ("*mov_side<mode>", "*mov_sidesisf")
4057         ("*mov_side<mode>_mem", "*mov_sidesisf_mem", "*clear_side<mode>")
4058         ("*ext_sideqihi", "*ext_side<mode>si", "*op_side<mode>")
4059         ("*op_swap_side<mode>", "*extopqihi_side", "*extop<mode>si_side")
4060         ("*extopqihi_swap_side", "*extop<mode>si_swap_side"): Have separate,
4061         swapped, alternatives for the R constraint.
4062
4063         PR middle-end/24341
4064         * builtins.c (get_builtin_sync_mode): Make unlimited
4065         mode_for_size request.
4066
4067 2005-10-15  Richard Henderson  <rth@redhat.com>
4068
4069         * gimplify.c (gimplify_var_or_parm_decl): Split out from ...
4070         (gimplify_expr): ... here.
4071         (gimplify_compound_lval): Use it in initial scan loop.  Allow
4072         fb_lvalue in base expression.
4073
4074 2005-10-15  Richard Henderson  <rth@redhat.com>
4075
4076         PR 23714
4077         * builtins.c (expand_builtin_trap): Export.
4078         * expr.h (expand_builtin_trap): Declare.
4079         * expr.c (expand_assignment): Emit a trap for integral offsets
4080         from registers that weren't reduced to bitpos.
4081
4082         * tree-cfg.c (mark_array_ref_addressable_1): Remove.
4083         (mark_array_ref_addressable): Remove.
4084         * tree-flow.h (mark_array_ref_addressable): Remove.
4085         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Don't call it.
4086
4087 2005-10-15  James E Wilson  <wilson@specifix.com>
4088
4089         PR target/24232
4090         * sched-deps.c (add_dependence_list): New arg UNCOND.  Fix all callers.
4091         (add_dependence_list_and_free): Likewise.
4092         (sched_analyze_2, case MEM): Delete sched_insns_conditions_mutex_p
4093         call.
4094
4095 2005-10-15  Diego Novillo  <dnovillo@redhat.com>
4096
4097         PR 23141
4098         PR 23142
4099         * tree-vrp.c (vrp_meet): Fix the intersection of equivalence
4100         sets VR0->EQUIV and VR1->EQUIV when meeting a range and an
4101         anti-range.
4102         (vrp_visit_phi_node): Only prevent infinite iterations when
4103         the previous result and the new result are both VR_RANGEs.
4104
4105 2005-10-15  Ranjit Mathew  <rmathew@gcc.gnu.org>
4106
4107         * tree-into-ssa.c (mark_def_sites): Correct minor typo in
4108         function comment.
4109
4110 2005-10-14  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
4111
4112         PR c/23439
4113         * c-parser.c (c_parser_for_statement): Use location of RID_FOR
4114         to initialize loc.
4115
4116 2005-10-14  Per Bothner  <per@bothner.com>
4117
4118         PR preprocessor/21250
4119         * c-ppoutput.c (print_line): Print internal line 0 as 1.
4120
4121 2005-10-14  Nathan Sidwell  <nathan@codesourcery.com>
4122
4123         PR c++/22551
4124         * c-common.c (c_add_case_label): Clear LOW_VALUE and HIGH_VALUE's
4125         overflow flags.  Refactor some conditionals.
4126
4127 2005-10-13  Andrew Pinski  <pinskia@physics.uc.edu>
4128
4129         PR tree-opt/21304
4130         * tree-dfa.c (add_referenced_var): Only look at decls which
4131         have TREE_CONSTANT or TREE_READONLY set instead of if
4132         !TREE_PUBLIC or !TREE_CONSTANT.
4133
4134 2005-10-13  James E Wilson  <wilson@specifix.com>
4135
4136         * doc/invoke.texi: For -x, add f95-cpp-input.
4137         * doc/install.texi: For --enable-languages doc, change f95 to fortran.
4138
4139 2005-10-12  Sebastian Pop  <pop@cri.ensmp.fr>
4140
4141         PR tree-optimization/24262
4142         * tree-data-ref.c (analyze_offset_expr): Check that init is invariant
4143         in loop all the time.
4144
4145 2005-10-12  Richard Henderson  <rth@redhat.com>
4146
4147         PR c/24255
4148         * tree.h (DECL_TRANSPARENT_UNION): Remove.
4149         * function.c (assign_parm_find_data_types): Don't support it.
4150         * print-tree.c (print_node): Likewise.
4151         * c-common.c (handle_transparent_union_attribute): Likewise.
4152         Use build_duplicate_type.
4153         * tree-inline.c (remap_type_1): Split out of remap_type;
4154         properly remap aggregate fields.
4155         (build_duplicate_type): New.
4156         * doc/extend.texi (Variable Attributes): Remove documentation
4157         for transparent_union.
4158
4159 2005-10-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
4160
4161         PR target/24284
4162         * config/sparc/sparc.c (gen_stack_pointer_inc): Build by hand.
4163         (gen_stack_pointer_dec): Likewise.
4164
4165 2005-10-12  Danny Smith  <dannysmith@users.sourceforge.net>
4166
4167         PR middle-end/21275
4168         PR middle-end/21766
4169         * target.h (struct gcc_target): Add valid_dllimport_attribute_p
4170         target hook.
4171         (struct cxx): Add adjust_class_at_definition target hook.
4172         * target-def.h: (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): New define,
4173         defaulting to hook_bool_tree_true. Add to TARGET_INITIALIZER
4174         (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): New define, defaulting to
4175         hook_void_tree. Add to TARGET_CXX.
4176         * tree.h (struct decl_with_vis): Rename non_addr_const_p field to
4177         dllimport_flag.
4178         (DECL_NON_ADDR_CONSTANT_P): Replace with DECL_DLLIMPORT_P macro.
4179         * tree.c (merge_dllimport_decl_attributes): Check DECL_DLLIMPORT_P
4180         instead of attribute. Check for dllexport override.  Warn if
4181         inconsistent dll linkage. Don't lose old dllimport if decl has
4182         had address referenced.   Tweak lookup of dllimport atribute.
4183         (handle_dll_attribute): Check targetm.valid_dllimport_attribute_p
4184         for target specific rules.  Don't add dllimport attribute if
4185         DECL_DECLARED_INLINE_P.  Set DECL_DLLIMPORT_P when adding
4186         dllimport attribute.
4187         (staticp): Replace DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P.
4188         * varasm.c (initializer_constant_valid_p): Replace
4189         DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P
4190
4191         PR target/21801
4192         PR target/23589
4193         * config.gcc (i[34567]86-*-cygwin*): Add winnt-cxx.o to
4194         'cxx_target_objs', winnt-stubs,o to 'extra_objs'.
4195         (i[34567]86-*-mingw32*): Likewise.
4196
4197         * doc/tm.texi (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Document.
4198         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Document.
4199
4200         * config/i386/winnt.c (i386_pe_dllimport_p): Factor out
4201         C++-specific code. Change return value to bool.
4202         (i386_pe_dllimport_p): Likewise.
4203         (associated_type): Simplify and make language-independent
4204         (i386_pe_encode_section_info): Replace override of ambiguous
4205         dllimport symbol refs with a gcc_assert.
4206         (i386_pe_valid_dllimport_attribute_p): Define.
4207         * config/i386/winnt-cxx.c: New file. Define C++ versions of
4208         i386_pe_type_dllimport_p, i386_pe_type_dllexport_p,
4209         i386_pe_adjust_class_at_definition.
4210         * config/i386/winnt-stubs.c: New file. Define stub versions of
4211         lang-specific functions.
4212         * config/i386/i386-protos.h: Declare winnt-[cxx|stubs].c functions
4213         i386_pe_type_dllimport_p, i386_pe_type_dllexport_p,
4214         i386_pe_adjust_class_at_definition.
4215         (i386_pe_valid_dllimport_attribute_p): Declare.
4216         * config/i386/cygming.h (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Define.
4217         (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Define.
4218         * config/i386/t-cygming: Add rules for winnt-cxx.o, winnt-stubs.o.
4219
4220         PR target/19704
4221         * config/i386/i386.c (ix86_function_ok_for_sibcall): Replace test for
4222         dllimport attribute with test of DECL_DLLIMPORT_P.
4223
4224 2005-10-12  Adrian Straetling <straetling@de.ibm.com>
4225
4226         * combine.c (make_extraction): Correct offset computation.
4227
4228 2005-10-12  Hans-Peter Nilsson  <hp@axis.com>
4229
4230         * config/cris/t-linux (LIMITS_H_TEST): Define.
4231
4232 2005-10-12  Richard Henderson  <rth@redhat.com>
4233
4234         PR rtl-opt/23324
4235         * cfgexpand.c (add_alias_set_conflicts): Use objects_must_conflict_p.
4236
4237 2005-10-12  Richard Guenther  <rguenther@suse.de>
4238
4239         * Makefile.in (CGRAPH_H): Depend on $(TREE_H).
4240
4241 2005-10-12  Nathan Sidwell  <nathan@codesourcery.com>
4242
4243         PR c++/19964
4244         * stor-layout.c (place_field): Set DECL_FIELD_OFFSET and
4245         DECL_FIELD_BIT_OFFSET of FIELD_DECLs, even if they have an invalid
4246         type.
4247
4248 2005-10-12  Richard Guenther  <rguenther@suse.de>
4249
4250         PR c++/23799
4251         * varasm.c (output_constant): Correct typo from previous
4252         patch by DJ.
4253
4254 2005-10-11  Ian Lance Taylor  <ian@airs.com>
4255
4256         PR rtl-optimization/13931
4257         * combine.c: Revert patch of 2003-05-14, and:
4258         (try_combine): Only set elim_i1 and elim_i2 if the destination is
4259         completely killed in the appropriate insn.
4260         (distribute_notes): Don't skip multiple hard register test for
4261         elim_i1 and elim_i2.
4262
4263 2005-10-11  Richard Henderson  <rth@redhat.com>
4264
4265         PR c/24255
4266         * c-typeck.c (convert_for_assignment): Use build_constructor_single
4267         to initialize a transparent union instead of a nop_expr.
4268
4269 2005-10-11  Richard Henderson  <rth@redhat.com>
4270
4271         * Makefile.in (tree-ssa-dce.o): Depend on SCEV_H.
4272         * tree-ssa-dce.c: Include tree-scalar-evolution.h.
4273         (tree_ssa_dce_loop): Call scev_reset.
4274
4275         PR tree-opt/24300
4276         * Makefile.in (tree-ssa-dce.o): Depend on CFGLOOP_H.
4277         * tree-ssa-dce.c: Include cfgloop.h.
4278         (tree_ssa_dce_loop, pass_dce_loop): New.
4279         * tree-pass.h (pass_dce_loop): Declare it.
4280         * passes.c (init_optimization_passes): Use it.
4281
4282 2005-10-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
4283
4284         PR middle-end/24263
4285         * convert.c (convert_to_real): Revert 2005-10-05 patch.
4286         Only apply the optimization for rounding builtins if the inner
4287         cast is also an extension.
4288
4289 2005-10-11  Andrew Pinski  <pinskia@physics.uc.edu>
4290
4291         PR tree-opt/23946
4292         * tree-ssa-ccp.c (execute_fold_all_builtins): Call
4293         mark_new_vars_to_rename instead of update_stmt.
4294
4295 2005-10-11  Bernd Schmidt  <bernd.schmidt@analog.com>
4296
4297         * config/bfin/crti.s (__init, __fini): Renamed from _init, _fini.
4298
4299 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
4300
4301         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use mmxadd type
4302         for setting MMX register to 0 rather than mmx.
4303
4304 2005-10-10  Steve Ellcey  <sje@cup.hp.com>
4305
4306         PR target/12098
4307         * configure.ac: Move gas check from mips specific case to common case.
4308         Do check for GNU as for mips*-*-* and *-*-hpux* targets.
4309         * configure: Regenerate
4310         * doc/install.texi: Update.
4311
4312 2005-10-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
4313
4314         PR target/24284
4315         * config/sparc/sparc.c (sparc_expand_prologue): Remove bogus PATTERN.
4316
4317 2005-10-10  Maciej W. Rozycki  <macro@linux-mips.org>
4318
4319         * gcc.c (do_spec_1): Accept numeric characters in file name
4320         suffixes.
4321
4322 2005-10-10  Nick Clifton  <nickc@redhat.com>
4323
4324         * config/arm/arm.c: Remove extraneous whitespace.  Remove comment
4325         describing the deleted arm_gen_rotated_half_load function.
4326
4327 2005-10-09  Kaz Kojima  <kkojima@gcc.gnu.org>
4328
4329         * config/sh/sh.c (emit_fpu_switch): Set TREE_PUBLIC for
4330         __fpscr_values.
4331
4332 2005-10-09  Daniel Jacobowitz  <dan@codesourcery.com>
4333
4334         * config.gcc (arm*-*-linux*): Remove redundant extra_parts and
4335         gnu_ld assignments.
4336         * config/arm/t-linux-eabi (LIB1ASMFUNCS)
4337         (EXTRA_MULTILIB_PARTS): Define.
4338         * config/arm/linux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
4339         (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
4340         (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Move to...
4341         * config/arm/uclinux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
4342         (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
4343         (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): ... here.
4344
4345 2005-10-09  Zdenek Dvorak  <dvorakz@suse.cz>
4346
4347         PR tree-optimization/24226
4348         * tree-cfg.c (remove_bb): Clean up unreachable loops.
4349         * tree-flow.h (free_numbers_of_iterations_estimates_loop): Declare.
4350         * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates_loop):
4351         Export.
4352
4353 2005-10-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
4354
4355         * config/sparc/gmon-sol2.c (internal_mcount): Mark as used.
4356
4357 2005-10-08  Andrew Pinski  <pinskia@physics.uc.edu>
4358
4359         PR target/24136
4360         * config/rs6000/darwin.md (movdf_low_si): Remove early clobber.
4361         Rewrite for no need for the early clobber.
4362
4363 2005-10-08  Kazu Hirata  <kazu@codesourcery.com>
4364
4365         Merge from csl-arm-branch:
4366         2005-09-07  Paul Brook  <paul@codesourcery.com>
4367         * config/arm/linux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Prepend a
4368         space to string.
4369
4370         2005-04-30  Paul Brook  <paul@codesourcery.com>
4371         * config/arm/bpabi.h (TARGET_DEFAULT): Define.
4372         * config/arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Define.
4373
4374         2005-03-07  Daniel Jacobowitz  <dan@codesourcery.com>
4375         * config/arm/arm.c (arm_all_abis): Add aapcs-linux.
4376         (arm_override_options): Use TARGET_AAPCS_BASED.
4377         * config/arm/arm.h (enum arm_abi_type): Add ARM_ABI_AAPCS_LINUX.
4378         (PTRDIFF_TYPE): Use int for AAPCS.
4379         (DEFAULT_SHORT_ENUMS): Use false for aapcs-linux.
4380         * config/arm/linux-eabi.h (ARM_DEFAULT_ABI, WCHAR_TYPE): Define.
4381         (DEFAULT_SHORT_ENUMS): Delete.
4382         * doc/invoke.texi (ARM Options): Document -mabi=aapcs-linux.
4383
4384         2004-12-15  Daniel Jacobowitz  <dan@codesourcery.com>
4385         * config/arm/arm.h (DEFAULT_SHORT_ENUMS): Wrap in #ifndef.
4386         * config/arm/linux-eabi.h (DEFAULT_SHORT_ENUMS): Define to 0.
4387         * config/arm/t-linux-eabi (TARGET_LIBGCC2_CFLAGS): Set to -fPIC.
4388
4389         2004-12-03  Mark Mitchell  <mark@codesourcery.com>
4390         * config/arm/linux-eabi.h (LIBGCC_SPEC): Do not define.
4391
4392         2004-11-22  Mark Mitchell  <mark@codesourcery.com>
4393         * config.gcc (arm*-*-linux-gnueabi): Use __cxa_atexit.
4394
4395         2004-11-19  Mark Mitchell  <mark@codesourcery.com>
4396         * config.gcc (arm*-*-linux-gnueabi): Add it.
4397         * config/arm/bpabi.h (FPUTYPE_DEFAULT): Undefine it before
4398         redefining it.
4399         (TARGET_OS_CPP_BUILTINS): Likeiwse.
4400         * config/arm/linux-eabi.h: New file.
4401         * config/arm/linux-elf.h (LINUX_TARGET_INTERPRETER): New macro.
4402         (LINUX_TARET_LINK_SPEC): Likewise.
4403         (LINK_SPEC): Use it.
4404         * config/arm/t-linux-eabi: New file.
4405
4406 2005-10-08  Steven Bosscher  <stevenb@suse.de>
4407
4408         PR other/22202
4409         * params.def (PARAM_MAX_VARIABLE_EXPANSIONS): Remove superfluous
4410         spaces.
4411         (PARAM_SMS_DFA_HISTORY): Likewise.
4412
4413 2005-10-08  Kazu Hirata  <kazu@codesourcery.com>
4414
4415         PR middle-end/23150
4416         * calls.c (mem_overlaps_already_clobbered_arg_p): New.
4417         (load_register_parameters): Call it.
4418         (check_sibcall_argument_overlap_1): Likewise.
4419         (store_one_arg): Likewise.
4420
4421 2005-10-07  James E. Wilson  <wilson@specifix.com>
4422
4423         * config/ia64/vect.md (ashl<mode>3, ashr<mode>3, lshr<mode>3): Use
4424         DImode not VECINT24 for operand 2.
4425
4426         PR target/23644
4427         * doc/invoke.texi (IA-64 Options, item -mtune): Renamed from
4428         -mtune-arch.
4429
4430         PR target/24193
4431         * config/ia64/ia64.md (movbi, movti_internal, gr_spill_internal,
4432         fr_spill): Use destination_operand for operand 0.
4433
4434 2005-10-07  DJ Delorie  <dj@redhat.com>
4435
4436         * varasm.c (output_constant): Limit error to expanding
4437         conversions.
4438
4439 2005-10-07  Richard Guenther  <rguenther@suse.de>
4440
4441         PR middle-end/24227
4442         * fold-const.c (fold_binary): Fix operand types during folding
4443         of X op (A, Y).  Evaluation order of the side-effects of
4444         X and A are frontend-defined, so ensure we honour that even for
4445         tcc_comparison class operands; eased by removing duplicate code.
4446
4447 2005-10-07  Steve Ellcey  <sje@cup.hp.com>
4448
4449         * stor-layout.c (layout_type): Do not allow alignment of array
4450         elements to be greater than their size.
4451
4452 2005-10-07  Steve Ellcey  <sje@cup.hp.com>
4453
4454         * config.host (hppa*-*-hpux*): Change out_host_hook_obj and
4455         host_xmake_file.
4456         (hppa*-*-linux*): Ditto.
4457         (ia64-*-hpux*): Add out_host_hook_obj and host_xmake_file.
4458         * config/host-hpux.c: New.
4459         * config/x-hpux: New.
4460         * config/pa/x-hpux: Remove.
4461         * config/pa/x-linux: Remove.
4462         * config/pa/pa-host.c: Remove.
4463
4464 2005-10-07  Jeff Law  <law@redhat.com>
4465
4466         * tree-ssa-dom.c (dom_opt_finalize_block): Fix conditions to
4467         determine whether or not to try and thread outgoing edges.
4468
4469 2005-10-07  David Edelsohn  <edelsohn@gnu.org>
4470
4471         * config/rs6000/rs6000.md (eqsi_power): New.
4472         (neg_eq0si): Add TARGET_POWER to final condition.
4473         (neg_eqsi): Same.
4474
4475 2005-10-06  Richard Henderson  <rth@redhat.com>
4476
4477         * config/rs6000/rs6000.c: Revert last change.
4478
4479 2005-10-06  Richard Henderson  <rth@redhat.com>
4480
4481         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): New.
4482         (TARGET_CANNOT_FORCE_CONST_MEM): Use it.
4483
4484 2005-10-06  Andrew Pinski  <pinskia@physics.uc.edu>
4485
4486         PR middle-end/22216
4487         PR middle-end/23651
4488         * cfgexpand.c (tree_expand_cfg): After expanding the functions, clear
4489         out return_label and naked_return_label.
4490
4491 2005-10-06  Daniel Berlin  <dberlin@dberlin.org>
4492
4493         * tree-ssa-structalias.c (check_for_overlaps): Fix bug in last
4494         change.
4495
4496 2005-10-06  Richard Henderson  <rth@redhat.com>
4497
4498         PR tree-opt/22237
4499         * tree-inline.c (declare_return_variable): Handle modify_dest not
4500         being a DECL.
4501
4502 2005-10-06  Daniel Berlin  <dberlin@dberlin.org>
4503
4504         Fix PR tree-optimization/22488
4505         * tree-ssa-structalias.c (check_for_overlaps): New function.
4506         (create_variable_info_for): Use it.
4507
4508 2005-10-06  Richard Henderson  <rth@redhat.com>
4509
4510         PR debug/24070
4511         * dwarf2out.c (lookup_filename): Return the result of maybe_emit_file.
4512         (dwarf2out_start_source_file): Print it.
4513
4514 2005-10-06  Geoffrey Keating  <geoffk@apple.com>
4515
4516         * config/t-slibgcc-darwin (SHLIB_MAPFILES): Use '+='.
4517
4518 2005-10-06  Richard Henderson  <rth@redhat.com>
4519
4520         PR 23706
4521         * mode-switching.c (optimize_mode_switching): Clear transp bit
4522         for block with incomming abnormal edges.
4523
4524         * config/sh/sh.c (fpscr_values, emit_fpu_switch): New.
4525         (fpscr_set_from_mem): Use them.
4526         * config/sh/sh.md (fpu_switch0, fpu_switch1): Remove.
4527         (fpscr postinc splitters): Rewrite as peephole2+split.
4528
4529 2005-10-06  David Edelsohn  <edelsohn@gnu.org>
4530
4531         * config/rs6000/rs6000.md (eq<mode>): Add !TARGET_POWER.
4532         (eq<mode>_compare): Same.
4533
4534 2005-10-06  Richard Guenther  <rguenther@suse.de>
4535
4536         PR tree-optimization/24238
4537         * tree-ssa-alias.c (find_used_portions): Handle RESULT_DECL.
4538
4539 2005-10-06  Daniel Jacobowitz  <dan@codesourcery.com>
4540
4541         * acinclude.m4 (gcc_AC_CHECK_TOOL): Handle environment variables
4542         here.  Use AC_PATH_PROG for environment variables instead of
4543         test -x.
4544         * configure.ac: Update calls to gcc_AC_CHECK_TOOL.  Use it for
4545         objdump also.
4546         * configure: Regenerated.
4547
4548 2005-10-06  Richard Earnshaw  <richard.earnshaw@arm.com>
4549
4550         PR target/23783
4551         * arm.md (call): If the address isn't a SYMBOL_REF or a register,
4552         then force it into a register.
4553         (call_value): Likewise.
4554
4555 2005-10-06  Richard Henderson  <rth@redhat.com>
4556
4557         PR 24049
4558         * passes.c (init_optimization_passes): Move pass_lower_vector_ssa
4559         under pass_vectorize.  Clear TODO_ggc_collect from the dce pass
4560         under pass_vectorize.
4561
4562 2005-10-05  Devang Patel  <dpatel@apple.com>
4563
4564         PR Debug/23205
4565         * dbxout.c (dbxout_symbol): Check DECL_RTL_SET_P, after
4566         handling constants. Check NAMESPACE_DECL context for constants.
4567
4568 2005-10-05  Eric Christopher  <echristo@apple.com>
4569
4570         * doc/md.texi (Standard Names): Fix name of pushm1 pattern.
4571
4572 2005-10-05  Richard Henderson  <rth@redhat.com>
4573
4574         PR 23714
4575         * tree-cfg.c (mark_array_ref_addressable_1): New.
4576         (mark_array_ref_addressable): New.
4577         * tree-flow.h (mark_array_ref_addressable): Declare.
4578         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Use it.
4579
4580 2005-10-05  Andrew Pinski  <pinskia@physics.uc.edu>
4581
4582         PR middle-end/20606
4583         PR middle-end/24069
4584         * reload.c (subst_reloads): When adding a REG_LABEL to a
4585         jump instruction, also update JUMP_LABEL.
4586
4587 2005-10-05  David Edelsohn  <edelsohn@gnu.org>
4588
4589         * params.def (PARAM_MAX_GROW_COPY_BB_INSNS): New.
4590         * bb-reorder.c (copy_bb_p): Use it.
4591         * doc/invoke.texi (param table): Add max-grow-copy-bb-insn.
4592
4593 2005-10-05  Richard Henderson  <rth@redhat.com>
4594
4595         PR target/23602
4596         * toplev.c (process_options): Warn about unsupported combinations
4597         of unwind tables and omit-frame-pointer.
4598         * config/i386/i386.c (override_options): Similarly.  Enable
4599         accumulate-outgoing-args if not explicitly disabled.
4600
4601 2005-10-05  Steve Ellcey  <sje@cup.hp.com>
4602
4603         * vect.md (vec_initv2si): Fix typo of V2SF to V2SI.
4604         Handle big endian vs. small endian.
4605         (vec_initv2sf): Handle big endian vs. small endian.
4606         (*vec_extractv2sf_1): Ditto.
4607
4608 2005-10-05  Dale Johannesen  <dalej@apple.com>
4609
4610         * convert.c (convert_to_real):  Don't convert
4611         (float)floor(double d) to floorf((float)d).
4612
4613 2005-10-05  Daniel Jacobowitz  <dan@codesourcery.com>
4614
4615         * config/arm/arm.md (insv): Use gen_int_mode in more places.
4616
4617 2005-10-05  Andrew MacLeod  <amacleod@redhat.com>
4618
4619         PR tree-optimization/18587
4620         * tree-ssa-operands.c (struct opbuild_list_d, OPBUILD_LAST): Delete.
4621         (build_defs, build_uses, build_v_may_defs, build_v_must_defs,
4622         build_vuses): Change to VEC type.
4623         (opbuild_initialize_virtual, opbuild_initialize_real, opbuild_free,
4624         opbuild_num_elems, opbuild_append_real, opbuild_append_virtual,
4625         opbuild_first, opbuild_next, opbuild_elem_real, opbuild_elem_virtual,
4626         opbuild_elem_uid, opbuild_clear, opbuild_remove_elem): Delete.
4627         (get_name_decl): New.  Return DECL_UID of base variable.
4628         (operand_build_cmp): New.  qsort comparison routine.
4629         (operand_build_sort_virtual): New.  Sort virtual build vector.
4630         (init_ssa_operands, fini_ssa_operands): Use VEC routines.
4631         (FINALIZE_OPBUILD_BASE, FINALIZE_OPBUILD_ELEM): Use VEC_Index.
4632         (FINALIZE_BASE): Use get_name_decl.
4633         (finalize_ssa_defs, finalize_ssa_uses, cleanup_v_may_defs,
4634         finalize_ssa_v_may_defs, finalize_ssa_vuses, finalize_ssa_v_must_defs,
4635         (start_ssa_stmt_operands, append_def, append_use, append_vuse,
4636         append_v_may_def, append_v_must_def): Replace opbuild_* routines with
4637         direct VEC_* manipulations.
4638         (build_ssa_operands): Call operand_build_sort_virtual.
4639         (copy_virtual_operand, create_ssa_artficial_load_stmt,
4640         add_call_clobber_ops, add_call_read_ops): Replace opbuild_* routines
4641         with direct VEC_* manipulations.
4642         * tree-ssa-opfinalize.h (FINALIZE_FUNC): Replace opbuild_* routines
4643         with direct VEC manipulations.
4644
4645 2005-10-05  Paolo Bonzini  <bonzini@gnu.org>
4646
4647         PR tree-optimization/21419
4648         PR tree-optimization/24146
4649         PR tree-optimization/24151
4650
4651         * c-typeck.c (readonly_error): Handle USE being lv_asm.
4652         (build_asm_expr): Call it if outputs are read-only.
4653         * gimplify.c (gimplify_asm_expr): Remove former fix to PR 21419.
4654
4655 2005-10-05  Billy Biggs  <billy.biggs@gmail.com>
4656             Paolo Bonzini  <bonzini@gnu.org>
4657
4658         PR target/23809
4659
4660         * doc/extend.texi (x86 Built-ins): Document that -msse and friends
4661         enable the instructions and not just the built-ins.
4662         * doc/invoke.texi (x86 Options): Likewise.
4663
4664 2005-10-04  Geoffrey Keating  <geoffk@apple.com>
4665
4666         * config/i386/t-darwin (SHLIB_VERPFX): Fix typo.
4667
4668         * doc/invoke.texi (Option Summary): Correct spelling
4669         of -mmacosx-version-min.
4670
4671 2005-10-04  Devang Patel  <dpatel@apple.com>
4672
4673         * c-common.c (vector_types_convertible_p): Check TYPE_PRECISION for
4674         real types.
4675
4676 2005-10-04  Steve Ellcey  <sje@cup.hp.com>
4677
4678         * tree-vect-transform.c (vect_create_epilog_for_reduction):
4679         Use BYTES_BIG_ENDIAN instead of BITS_BIG_ENDIAN.
4680
4681 2005-10-04  Adrian Straetling  <straetling@de.ibm.com>
4682
4683         * config/s390/s390.md ("TDSI","DP"): New mode macros.
4684         ("TE","tg"): New mode attributes.
4685         ("sync_compare_and_swap<mode>"): Replace with a define_expand.
4686         ("sync_compare_and_swap<mode>_cc"): Replace GPR with TDSI.
4687         ("*sync_compare_and_swap<mode>_cc"): Replace with one pattern for
4688         dword_mode and one for GPRmode.
4689
4690 2005-10-04  Ian Lance Taylor  <ian@airs.com>
4691
4692         PR preprocessor/13726
4693         * c-ppoutput.c (cb_include): Add comments parameter, and print out
4694         any comments passed in.
4695
4696 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
4697
4698         * tree.c (annotate_with_file_line): Fix typo.
4699
4700 2005-10-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4701
4702         PR ada/19382
4703         * builtins.c (fold_builtin_memcmp): When constructing the pointer
4704         type used to access data in the inlined length == 1 case, use
4705         build_pointer_type_for_mode with CAN_ALIAS_ALL set to true.
4706         (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
4707
4708 2005-10-04  Uros Bizjak  <uros@kss-loka.si>
4709
4710         * config/i386/i386.h (TARGET_FISTTP): Enable also for
4711         TARGET_SSE3 and only for TARGET_80387.
4712         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1,
4713         (fix_trunc<mode>_i387_fisttp, fix_trunc<mode>_i387_fisttp_with_temp):
4714         Do not depend on TARGET_80387.
4715
4716 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
4717
4718         * tree.c (last_annotated_node): Change type to location_t*.
4719         (annotate_with_file_line): Reflect the change of
4720         last_annotated_node type.
4721
4722 2005-10-04  Richard Guenther  <rguenther@suse.de>
4723
4724         PR c/23576
4725         * c-decl.c (grokdeclarator): Don't write to fields
4726         of error_mark_node.
4727
4728 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
4729
4730         PR middle-end/23125
4731         * c-decl.c (finish_decl): Use set_user_assembler_name even for
4732         register variables.
4733         * varasm.c (make_decl_rtl): If a register variable does not
4734         have a set user assmbler name, error out.
4735         Decode the asmspec is now name+1 bypassing '*'.
4736
4737 2005-10-04  Steven Bosscher  <stevenb@suse.de>
4738
4739         PR tree-optimization/23049
4740         * tree-ssa-dom.c (thread_across_edge): Make sure that the condition
4741         of a COND_EXPR is folded before calling fold on the whole rhs of a
4742         conditional assignment.
4743         * doc/tree-ssa.texi: Update the GIMPLE grammar for a valid rhs to
4744         document that a COND_EXPR may appear there.
4745
4746 2005-10-03  Diego Novillo  <dnovillo@redhat.com>
4747
4748         PR 23445
4749         * tree-vrp.c (extract_range_from_assert): If the new numeric
4750         range created out of the assertion contradicts the existing
4751         numeric range of the ASSERT_EXPR variable, make the new range
4752         varying.
4753
4754 2005-10-03  Kaz Kojima  <kkojima@gcc.gnu.org>
4755
4756         * config/sh/sh.c (sh_register_move_cost): Add case for moving
4757         from T_REGS to FP register class.
4758
4759 2005-10-03  Richard Henderson  <rth@redhat.com>
4760
4761         PR 24135
4762         * tree-nested.c (convert_nl_goto_reference): Lookup a translation
4763         before creating a new one.
4764
4765 2005-10-03  David Edelsohn  <edelsohn@gnu.org>
4766
4767         * config/rs6000/t-aix43 (LDFLAGS): New.
4768         * config/rs6000/t-aix52 (LDFLAGS): New.
4769
4770 2005-10-03  Ian Lance Taylor  <ian@airs.com>
4771
4772         * gimplify.c (find_single_pointer_decl_1): New static function.
4773         (find_single_pointer_decl): New static function.
4774         (internal_get_tmp_var): For a formal variable, set restrict base
4775         information if appropriate.
4776         * alias.c (find_base_decl): If a VAR_DECL has a restrict base,
4777         return it.
4778         * tree.h (DECL_BASED_ON_RESTRICT_P): Define.
4779         (DECL_GET_RESTRICT_BASE): Define.
4780         (SET_DECL_RESTRICT_BASE): Define.
4781         (decl_restrict_base_lookup): Declare.
4782         (decl_restrict_base_insert): Declare.
4783         (struct tree_decl_with_vis): Add based_on_restrict_p field.
4784         * tree.c (restrict_base_for_decl): New static variable.
4785         (init_ttree): Initialize restrict_base_for_decl.
4786         (copy_node_stat): Copy restrict base information.
4787         (decl_restrict_base_lookup): New function.
4788         (decl_restrict_base_insert): New function.
4789         (print_restrict_base_statistics): New static function.
4790         (dump_tree_statistics): Call print_restrict_base_statistics.
4791
4792 2005-10-02  Diego Novillo  <dnovillo@redhat.com>
4793
4794         PR 24142
4795         * tree-vrp.c (vrp_meet): Fix call to range_includes_zero_p in
4796         case of anti-ranges.
4797
4798 2005-10-02  Andrew Pinski  <pinskia@physics.uc.edu>
4799
4800         PR c/18851
4801         * c-typeck.c (tagged_tu_seen): Rename to ...
4802         (tagged_tu_seen_cache): this and add val field.
4803         (comptypes): Move functional to comptypes_internal
4804         and free tagged_tu_seen.
4805         (comptypes_internal): New function and call comptypes_internal
4806         instead of comptypes. Speed up by sibcalling
4807         tagged_types_tu_compatible_p.
4808         (alloc_tagged_tu_seen): New function
4809         (free_all_tagged_tu_seen_up_to): New function.
4810         (tagged_types_tu_compatible_p): Return the val of the seen two
4811         types.
4812         Add that the two types are the same to tagged_tu_seen_base
4813         if they are and call comptypes_internal instead of comptypes.
4814         <case UNION_TYPE>: Speed up common type where the fields are
4815         in the same order.
4816         (function_types_compatible_p): Call comptypes_internal instead of
4817         comptypes.
4818         (type_lists_compatible_p): Likewise.
4819         (all functions): s/tagged_tu_seen/tagged_tu_seen_cache/.
4820
4821 2005-10-02  Matthias Klose  <doko@debian.org>
4822
4823         * doc/invoke.texi: Fix typo and speling error.
4824
4825 2005-10-01  Richard Henderson  <rth@redhat.com>
4826
4827         * tree-stdarg.c (execute_optimize_stdarg): Process PHI nodes too.
4828
4829 2005-10-01  Mark Mitchell  <mark@codesourcery.com>
4830
4831         * config/arm/unknown-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define
4832         using --start-group and --end-group.
4833
4834 2005-10-01  Diego Novillo  <dnovillo@redhat.com>
4835
4836         * tree-vrp.c (value_inside_range, range_includes_zero_p): Add
4837         FIXME note regarding quirky semantics.
4838
4839 2005-10-01  Diego Novillo  <dnovillo@redhat.com>
4840
4841         PR 24141
4842         * tree-vrp.c (vrp_meet): Clear VR0->EQUIV when building a
4843         non-null range as a last resort.
4844
4845 2005-10-01  James A. Morrison  <phython@gcc.gnu.org>
4846             Diego Novillo  <dnovillo@redhat.com>
4847
4848         PR 23604
4849         * tree-vrp.c (extract_range_from_assert): For !=
4850         assertions, only build an anti-range if LIMIT is a
4851         single-valued range.
4852
4853 2005-09-30  Richard Earnshaw  <richard.earnshaw@arm.com>
4854
4855         * arm.md (movqi): On thumb when optimizing, handle loading from
4856         memory by describing this as taking a subreg of a zero-extended load
4857         into an SImode register.
4858         (movhi): Likewise.
4859
4860 2005-09-30  Daniel Jacobowitz  <dan@codesourcery.com>
4861
4862         * reload1.c (merge_assigned_reloads): Do not change any
4863         RELOAD_FOR_OUTPUT_ADDRESS reloads.
4864
4865 2005-09-30  Geoffrey Keating  <geoffk@apple.com>
4866
4867         * Makefile.in (LIPO_FOR_TARGET): Define.
4868         (STRIP_FOR_TARGET): Define.
4869
4870         * config/t-slibgcc-darwin (libgcc_s_%.dylib): Remove old symlinks
4871         before creating new ones.  Do symlinks before creating the actual
4872         targets.
4873
4874         * config/t-slibgcc-darwin (libgcc_s_%.dylib): Use --print-multi-lib
4875         to work out which multilibs are actually being built.
4876
4877 2005-09-30  Kazu Hirata  <kazu@codesourcery.com>
4878
4879         * tree-vect-transform.c, config/ms1/ms1.md,
4880         config/s390/s390.c, config/v850/v850.md: Fix comment typos.
4881         Follow spelling conventions.
4882         * doc/invoke.texi, doc/md.texi: Fix typos.
4883
4884 2005-09-30  Andrew Macleod  <amacleod@redat.com>
4885
4886         PR tree-optimization/21430
4887         * tree-ssa-operands.c (set_virtual_use_link): New. Link new virtual
4888         use operands, and set stmt pointer if need be.
4889         (FINALIZE_CORRECT_USE: New. Macro to call appropriate use fixup routine.
4890         tree-ssa-opfinalize.h (FINALIZE_FUNC): Call FINALIZE_CORRECT_USE if
4891         present.
4892
4893 2005-09-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4894
4895         PR middle-end/24053
4896         * stor-layout.c (set_sizetype): Set TYPE_MAIN_VARIANT of bitsizetype.
4897
4898 2005-09-29  Mark Mitchell  <mark@codesourcery.com>
4899
4900         * optabs.c (expand_binop): Initialize first_pass_p.
4901
4902 2005-09-29  Jakub Jelinek  <jakub@redhat.com>
4903
4904         PR middle-end/24109
4905         * c-decl.c (c_write_global_declarations_1): If any
4906         wrapup_global_declaration_2 call returned true, restart the loop.
4907
4908 2005-09-29  Daniel Berlin  <dberlin@dberlin.org>
4909
4910         Fix PR tree-optimization/24117
4911         * tree-ssa-structalias.c (find_func_aliases): Strip nops
4912         before considering whether to use anyoffset.
4913
4914 2005-09-29  Paolo Bonzini  <bonzini@gnu.org>
4915
4916         Revert this patch:
4917
4918         2005-09-15  Paolo Bonzini  <bonzini@gnu.org>
4919
4920         * optabs.c (expand_binop): Use swap_commutative_operands_with_target
4921         to order operands.
4922         (swap_commutative_operands_with_target): New.
4923
4924 2005-09-29  Paolo Bonzini  <bonzini@gnu.org>
4925
4926         PR c/21419
4927         * gimplify.c (gimplify_asm_expr): Raise an error if an output is
4928         read-only.
4929
4930 2005-09-29  Steven Bosscher  <stevenb@suse.de>
4931
4932         PR tree-optimization/23911
4933         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle REALPART_EXPR
4934         and IMAGPART_EXPR too.
4935
4936 2005-09-28  Mark Mitchell  <mark@codesourcery.com>
4937
4938         PR 17886
4939         * expmed.c (expand_shift): Move logic to reverse rotation
4940         direction when  rotating by constants ...
4941         * optabs.c (expand_binop): ... here.
4942         * config/i386/i386.md (rotrdi3): Handle 32-bit mode.
4943         (ix86_rotrdi3): New pattern.
4944         (rotldi3): Handle 32-bit mode.
4945         (ix86_rotldi3): New pattern.
4946
4947 2005-09-29  Alan Modra  <amodra@bigpond.net.au>
4948
4949         PR target/24102
4950         * config/rs6000/rs6000.md (floatdisf2_internal2): Correct range
4951         check for numbers that need no bit twiddle.
4952
4953 2005-09-28  Geoffrey Keating  <geoffk@apple.com>
4954
4955         * config/rs6000/t-darwin8: Uncomment contents, allow -m64
4956         multilib to be built.
4957
4958         * Makefile.in: Export LIPO_FOR_TARGET, STRIP_FOR_TARGET.
4959         (stage1-start): Delete old libgcc and libunwind before moving
4960         anything into the stage directory.
4961         (stage2-start): Likewise.
4962         (stage3-start): Likewise.
4963         (stage4-start): Likewise.
4964         (stageprofile-start): Likewise.
4965         (stagefeedback-start): Likewise.
4966         * config.gcc (*-*-darwin*): Automatically use CPU-specific darwin.h
4967         header in tm_file and CPU-specific t-darwin in tmake_file.
4968         (i[34567]86-*-darwin*): Don't change tm_file.
4969         (powerpc-*-darwin*): Don't change tm_file or tmake_file.
4970         * config/darwin.h (REAL_LIBGCC_SPEC): Rewrite to use proper libgcc
4971         shared library stub for target OS version.
4972         * config/t-slibgcc-darwin (SHLIB_SOLINK): Delete.
4973         (SHLIB_LINK): Don't make SHLIB_SOLINK.
4974         (SHLIB_INSTALL): Don't install SHLIB_SOLINK.
4975         (libgcc_s.%.dylib): New.
4976         (LIBGCC): Define.
4977         (install-darwin-libgcc-stubs): New.
4978         (INSTALL_LIBGCC): New append.
4979         * config/i386/darwin-libgcc.10.4.ver: New.
4980         * config/i386/darwin-libgcc.10.5.ver: New.
4981         * config/i386/t-darwin: New.
4982         * config/rs6000/darwin-libgcc.10.4.ver: New.
4983         * config/rs6000/darwin-libgcc.10.5.ver: New.
4984         * config/rs6000/darwin.h (REAL_LIBGCC_SPEC): Delete.
4985         * config/rs6000/t-darwin (SHLIB_VERPFX): Define.
4986
4987 2005-09-28  Paul Brook  <paul@codesourcery.com>
4988
4989         * config/m68k/fpgnulib.c (__extendsfdf2, __truncdfsf2): Handle
4990         denormals.
4991
4992 2005-09-28  Richard Guenther  <rguenther@suse.de>
4993
4994         PR tree-optimization/23853
4995         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use
4996         host_integerp to verify misalignment value.
4997
4998 2005-09-28  Richard Henderson  <rth@redhat.com>
4999
5000         * builtins.c (get_builtin_sync_mode): New.
5001         (expand_builtin_sync_operation): Pass in mode argument.
5002         (expand_builtin_compare_and_swap): Likewise.
5003         (expand_builtin_lock_test_and_set): Likewise.
5004         (expand_builtin_lock_release): Likewise.
5005         (expand_builtin): Update to match.
5006
5007 2005-09-28  Nick Clifton  <nickc@redhat.com>
5008
5009         * config/v850/v850.h (GO_IF_LEGITIMATE_ADDRESS): Tidy up
5010         formatting.  Add check to PLUS case to ensure that the offset is
5011         within an acceptable range.
5012
5013         * config/v850/v850.md (casesi): Disable the generation of the
5014         switch pattern as it is not being handled properly at the moment.
5015
5016         * config/v850/lib1funcs.asm (___ucmpdi2): Correct jump instruction
5017         for when the high words are identical.
5018
5019 2005-09-27  Richard Henderson  <rth@redhat.com>
5020
5021         * pretty-print.c (pp_base_format): Fix typo for %>.
5022
5023 2005-09-27  Daniel Berlin  <dberlin@dberlin.org>
5024             Devang Patel  <dpatel@apple.com>
5025
5026         PR tree-optimization/23625
5027         * tree-flow-inline.h (bsi_after_labels): Remove, first statement is
5028         LABEL_EXPR, assertion check.
5029
5030 2005-09-27  J"orn Rennecke <joern.rennecke@st.com>
5031
5032         * optabs.c (no_conflict_move_test): Check if a result of a
5033         to-be-moved insn would be clobbered by an originally
5034         preceding insn.
5035
5036 2005-09-27  Jeff Law  <law@redhat.com>
5037
5038         * passes.c (init_optimization_passes): Replace copy propagation
5039         passes immediately after DOM with phi-only copy propagation
5040         pases.  Add phi-only copy propagation pass after first DOM pass.
5041         * tree-pass.h (pass_phi_only_copy_prop): Declare.
5042         * tree-ssa-copy.c (init_copy_prop): Accept new PHI_ONLY argument.
5043         If true, then mark all non-control statements with DONT_SIMULATE_AGAIN.
5044         (execute_copy_prop): Accept new PHI_ONLY argument.  Pass it along
5045         to init_copy_prop.  Callers updated.
5046         (do_phi_only_copy_prop): New function.
5047         (pass_phi_only_copy_prop): New pass descriptor.
5048
5049 2005-09-27  Nick Clifton  <nickc@redhat.com>
5050
5051         * libgcc2.c (__popcount_tab): Remove redundant prototype.
5052
5053 2005-09-26  Jason Merrill  <jason@redhat.com>
5054
5055         PR c++/13764
5056         * c-common.c (finish_fname_decls): Use append_to_statement_list_force.
5057
5058         * doc/invoke.texi: Clarify documentation of -fno-enforce-eh-specs.
5059
5060 2005-09-26  James E Wilson  <wilson@specifix.com>
5061
5062         * config/ia64/crtbegin.asm, config/ia64/crtend.asm: Remove glibc
5063         copyright.  Add gcc copyright plus libgcc exception.
5064         * config/ia64/crtfastmath.asm: Remove glibc copyright.  Add gcc
5065         copyright.
5066         * config/ia64/lib1funcs.asm: Add gcc copyright plus libgcc exception.
5067
5068 2005-09-26  Jeff Law  <law@redhat.com>
5069
5070         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Be more selective
5071         about when to iterate.
5072
5073 2005-09-23  Fariborz Jahanian <fjahanian@apple.com>
5074
5075         PR target/23847
5076         * config/rs6000/rs6000.c (rs6000_function_value): Parallel pattern
5077         for __complex__ double in -mcpu=G5 mode.
5078
5079 2005-09-26  Sebastian Pop  <pop@cri.ensmp.fr>
5080
5081         PR tree-optimization/23942
5082         * Makefile.in (SCEV_H): Depends on PARAMS_H.
5083         * tree-scalar-evolution.c: Include params.h.
5084         (t_bool): New enum.
5085         (follow_ssa_edge, follow_ssa_edge_in_rhs,
5086         follow_ssa_edge_in_condition_phi_branch,
5087         follow_ssa_edge_in_condition_phi, follow_ssa_edge_inner_loop_phi):
5088         Change return type to t_bool.  Use a parameter to limit the size of
5089         trees that are walked before stopping
5090         (analyze_evolution_in_loop): Initialize the limit to 0.
5091         (follow_ssa_edge): Give up by returning t_dont_know if the limit
5092         exceeds PARAM_SCEV_MAX_EXPR_SIZE.
5093
5094 2005-09-26  Uros Bizjak  <uros@kss-loka.si>
5095
5096         PR middle-end/23831
5097         * simplify-rtx.c (simplify_immed_subreg) [MODE_INT]: Skip
5098         simplification if elem_bitsize > 2 * HOST_BITS_PER_WIDE_INT.
5099
5100 2005-09-26    Fariborz Jahanian <fjahanian@apple.com>
5101
5102         * combine.c (make_extraction): Check for valid use of subreg.
5103
5104 2005-09-26  Uros Bizjak  <uros@kss-loka.si>
5105
5106         PR target/24055
5107         * config/i386/i386.md ("*fistdi2_1"): New pattern.
5108         ("*fist<mode>2_1"): Use only HImode and SImode register operands.
5109         ("fist<mode>2_with_temp"): Use only register operands.
5110
5111 2005-09-26  J"orn Rennecke <joern.rennecke@st.com>
5112
5113         * rtlanal.c (reg_used_between_p): Don't check for CLOBBERs in
5114         CALL_INSN_FUNCTION_USAGE.
5115
5116 2005-09-26  Richard Guenther  <rguenther@suse.de>
5117
5118         PR middle-end/15855
5119         * gcse.c: Include hashtab.h, define ldst entry hashtable.
5120         (pre_ldst_expr_hash, pre_ldst_expr_eq): New functions.
5121         (ldst_entry): Use the hashtable instead of list-walking.
5122         (find_rtx_in_ldst): Likewise.
5123         (free_ldst_entry): Free the hashtable.
5124         (compute_ld_motion_mems): Create the hashtable.
5125         (trim_ld_motion_mems): Remove entry from hashtable if
5126         removing it from list.
5127         (compute_store_table): Likewise^2.
5128         (store_motion): Free hashtable in case we did not see
5129         any stores.
5130
5131 2005-09-25  Kazu Hirata  <kazu@codesourcery.com>
5132
5133         * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
5134         and arg1 if we are passing them to fold_build2.
5135
5136 2005-09-25  Dan Nicolaescu  <dann@ics.uci.edu>
5137
5138         PR 23828
5139         * config/i386/i386.c (ix86_function_regparm): Fix the test for
5140         a nested function.
5141
5142 2005-09-25  Richard Henderson  <rth@redhat.com>
5143
5144         * config/alpha/alpha.c (tls_symbolic_operand_1): Trust
5145         SYMBOL_REF_TLS_MODEL to be correct.
5146
5147 2005-09-24  Richard Henderson  <rth@redhat.com>
5148
5149         * ipa-type-escape.c (discover_unique_type): Remove dead code at
5150         end of function.  Reindent.
5151
5152 2005-09-24  Ian Lance Taylor  <ian@airs.com>
5153
5154         * convert.c (convert_to_integer): Don't test for ENUMERAL_TYPE in
5155         NEGATE_EXPR/BIT_NOT_EXPR case.
5156
5157 2005-09-24  Richard Henderson  <rth@redhat.com>
5158
5159         * c-common.c (handle_mode_attribute): When not modifying in place,
5160         create subtypes for enumerations.
5161         (sync_resolve_return): Use TYPE_MAIN_VARIANT.
5162         * gimplify.c (create_tmp_from_val): Likewise.
5163
5164 2005-09-24  Alexandre Oliva  <aoliva@redhat.com>
5165
5166         * config/i386/i386.md (*tls_global_dynamic_64,
5167         *tls_local_dynamic_base_64): Add missing mode to call.
5168         (tls_global_dynamic_64, tls_local_dynamic_base_64): Likewise.
5169
5170 2005-09-24  Jan Hubicka  <jh@suse.cz>
5171
5172         * cgraph.c (cgraph_clone_edge): Make the scale gcov_type.
5173         (cgraph_clone_node): Likewise.
5174         * cgraph.h (cgraph_clone_edge): Update prototype.
5175         (cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Remove
5176         duplicated prototypes; add updating argument.
5177         * cgraphunit.c (verify_cgraph_node): Verify that counts are non-negative.
5178         * ipa-inline.c (cgraph_clone_inlined_nodes): Allow clonning without
5179         updating profile.
5180         (cgraph_mark_inline_edge): Likewise.
5181         (cgraph_mark_inline): Update use of cgraph_mark_inline_edge.
5182         (cgraph_flatten_node): Likewise.
5183         (cgraph_decide_recursive_inlining): Likewise.
5184         (cgraph_decide_inlining_of_small_function): Likewise.
5185         * tree-optimize.c (tree_rest_of_compilation): Likewise.
5186
5187 2005-09-23  David Edelsohn  <edelsohn@gnu.org>
5188             Pete Steinmetz <steinmtz@us.ibm.com>
5189
5190         * config/rs6000/rs6000.md (neg-minus-mult): Set type to dmul.
5191         (rldic.): Set type to "compare".
5192         (rldicr.): Same.
5193         (movsf_hardfloat): Set type to mtjmpr for MTCTR/MTLR.  Set type to
5194         mfjmpr for MFCTR/MFLR.
5195         (movdf_hardfloat64): Same.
5196         (movdf_softfloat64): Same.  Correct order of store and move types.
5197         (movti_string): Set type to store_ux/load_ux.
5198         (load_multiple): Set type to load_ux.
5199         (store_multiple): Set type to store_ux.
5200         (movmemsi): Set type to store_ux.
5201         (output_cbranch direct_return): Set type to jmpreg.
5202         (stmw): Set type to store_ux.
5203         (lmw): Set type to load_ux.
5204         * config/rs6000/40x.md (ppc403-store): Increase latency to 2.
5205         * config/rs6000/440.md (ppc440-store): Increase latency to 6.
5206         * config/rs6000/603.md (ppc603-store): Occupy LSU for 2 cycles.
5207         * config/rs6000/6xx.md (ppc604-store): Increase latency to 3.
5208         * config/rs6000/mpc.md (mpccore-store): Increase latency to 2.
5209         * config/rs6000/rios1.md (rios1-store): Increase latency to 2.
5210         (rios1-fpstore): Increase latency to 3.
5211         * config/rs6000/rios2.md (rios2-store): Increase latency to 2.
5212         * config/rs6000/rs64.md (rs64a-store): Increase latency to 2.
5213
5214 2005-09-23  David Edelsohn  <edelsohn@gnu.org>
5215             Andrew Pinski  <pinskia@physics.uc.edu>
5216
5217         * config/rs6000/sync.md (sync_<fetchop_name>si_internal): Change
5218         operand2 constraint to "b".
5219         (sync_<fetchop_name>di_internal): Same.
5220         (sync_old_<fetchop_name>si_internal): Change operand3 constraint
5221         to "b".
5222         (sync_old_<fetchop_name>di_internal): Same.
5223         (sync_new_<fetchop_name>si_internal): Same.
5224         (sync_new_<fetchop_name>di_internal): Same.
5225
5226 2005-09-23  J"orn Rennecke <joern.rennecke@st.com>
5227
5228         PR middle-end/23991
5229         * final.c (insn_default_length, insn_min_length): In !HAVE_ATTR_length
5230         case, define as macros.
5231
5232         PR rtl-optimization/23837
5233         *  optabs.c (no_conflict_move_test): Don't set must_stay for a
5234         clobber / clobber match between dest and p->first.
5235
5236         * optabs.c (emit_libcall_block): Use no_conflict_move_test.
5237         (no_conflict_move_test): Update comments.
5238
5239 2005-09-22  Ranjit Mathew  <rmathew@gcc.gnu.org>
5240
5241         * doc/install.texi: Update URL for Jacks.
5242         * doc/sourcebuild.texi: Likewise.
5243
5244 2005-09-22  David Edelsohn  <edelsohn@gnu.org>
5245
5246         PR target/24007
5247         * config/rs6000/rs6000.md (movsf_hardfloat): Ignore special
5248         registers when choosing register preferences.
5249         (movdf_hardfloat64): Same.
5250
5251 2005-09-22  Andreas Krebbel  <krebbel1@de.ibm.com>
5252
5253         * expmed.c (expand_shift): Don't use the target of the rotate as
5254         target for the first expanded shift insn.
5255         * testsuite/gcc.dg/20050922-1.c: Testcase added.
5256
5257 2005-09-21  Zdenek Dvorak  <dvorakz@suse.cz>
5258
5259         PR tree-optimization/22438
5260         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Handle all
5261         preserved iv rhs rewriting specially.
5262
5263 2005-09-21  Daniel Berlin  <dberlin@dberlin.org>
5264
5265         * tree-data-ref.c (analyze_array_indexes): Only estimate when
5266         estimate_only  is true.
5267         * tree-flow.h (ref_contains_indirect_ref): New prototype.
5268         * tree-flow-inline.h (ref_contains_indirect_ref): Moved from
5269         tree-ssa-structalias.c
5270         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Use
5271         ref_contains_indirect_ref.
5272         * tree-ssa-structalias.c (ref_contains_indirect_ref): Moved.
5273
5274 2005-09-21  DJ Delorie  <dj@redhat.com>
5275
5276         * config/mn10300/mn10300.c (TARGET_DEFAULT_TARGET_FLAGS): Add
5277         MASK_PTR_A0D0.
5278         (mn10300_return_in_memory): Support variable size types also.
5279         (mn10300_pass_by_reference): Likewise.
5280         (mn10300_function_value): New.
5281         * config/mn10300/mn10300.h (FUNCTION_VALUE): Call the above.
5282         (FUNCTION_OUTGOING_VALUE): Likewise.
5283         * config/mn10300/mn10300.opt: Add -mreturn-pointer-on-d0.
5284         * doc/invoke.texi: Document it.
5285
5286 2005-09-21  Uros Bizjak  <uros@kss-loka.si>
5287
5288         PR target/22585
5289         * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
5290         force integer op1 into register for XFmode compares.
5291
5292 2005-09-21  Kazu Hirata  <kazu@codesourcery.com>
5293
5294         PR middle-end/23971
5295         * expmed.c (alg_code): Add alg_impossible.
5296         (alg_hash_entry): Add cost.
5297         (synth_mult): Record alg_impossible in the hash table if
5298         multiplication by a given integer is impossble within the
5299         limit.  Speed up using alg_impossible.
5300
5301 2005-09-20  Daniel Berlin  <dberlin@dberlin.org>
5302
5303         * tree-ssa-structalias.c (get_constraint_for_component_ref): Add
5304         argument.  Allow and set any offset if needs_anyoffset is passed
5305         in.
5306         (get_constraint_for): Add argument here too.
5307         Pass it down.
5308         (do_structure_copy): Pass NULL to get_constraint_for.
5309         (handle_ptr_arith): Ditto.
5310         (find_func_aliases): Ditto.
5311
5312 2005-09-20  J"orn Rennecke <joern.rennecke@st.com>
5313
5314         PR rtl-optimization/23898
5315         * output.h (get_attr_min_length): Declare.
5316         * final.c (get_attr_length_1): New function, broken out of:
5317         (get_attr_length).
5318         (get_attr_min_length): New function.
5319         * bb-reorder.c (copy_bb_p, get_uncond_jump_length): Use it.
5320         (duplicate_computed_gotos): Likewise.
5321         * genattr.c (insn_min_length): Generate declaration.
5322         * genattrtab.c (min_fn, min_attr_value): New functions.
5323         (make_length_attrs): Generate insn_min_length.
5324
5325 2005-09-20  Steve Ellcey  <sje@cup.hp.com>
5326
5327         * config/pa/pa.c (output_cbranch): Check for zero in operands[2].
5328
5329 2005-09-20  Richard Henderson  <rth@redhat.com>
5330
5331         PR tree-optimization/24059
5332         * expr.c (expand_expr_real_1) <INDIRECT_REF>: Allow modifier
5333         EXPAND_STACK_PARM.
5334
5335 2005-09-20  Joseph S. Myers  <joseph@codesourcery.com>
5336
5337         * c.opt (fextended-identifiers): New.
5338         * c-opts.c (c_common_handle_option): Handle
5339         -fextended-identifiers.
5340         * doc/cpp.texi: Update documentation of extended identifiers.
5341         * doc/cppopts.texi (-fextended-identifiers): Document.
5342
5343 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
5344
5345         PR tree-optimization/23929
5346         * tree-ssa-loop-niter.c (expand_simple_operations): Return immediately
5347         if expr is NULL.
5348
5349         PR tree-optimization/23818
5350         * tree-stdarg.c (execute_optimize_stdarg): Call
5351         calculate_dominance_info.
5352
5353 2005-09-20  Daniel Berlin  <dberlin@dberlin.org>
5354
5355         * tree-data-ref.c (get_number_of_iters_for_loop): New function.
5356         (analyze_siv_subscript_cst_affine): Add weak SIV test.
5357         (compute_overlap_steps_for_affine_1_2): Use
5358         get_number_of_iters_for_loop.
5359         (analyze_subscript_affine_affine): Check whether difference is
5360         zero first.
5361         Use get_number_of_iters_for_loop.
5362         Check whether overlap occurs outside of bounds.
5363         (analyze_miv_subscript): Use get_number_of_iters_for_loop.
5364
5365 2005-09-20  Andreas Krebbel  <krebbel1@de.ibm.com>
5366
5367         * tree-ssa-address.c (create_mem_ref): Put the symbol reference into the
5368         base register if possible.
5369
5370 2005-09-20  Zdenek Dvorak  <dvorakz@suse.cz>
5371
5372         PR tree-optimization/18463
5373         * tree-chrec.c (chrec_convert): Return fold_converted chrec if
5374         converting it directly is not possible.
5375         (chrec_convert_aggressive): New function.
5376         * tree-chrec.h (chrec_convert_aggressive): Declare.
5377         * tree-scalar-evolution.c (instantiate_parameters_1, resolve_mixers):
5378         Fold chrec conversions aggressively if asked to.
5379         (instantiate_parameters): Modified because of changes in
5380         instantiate_parameters_1.
5381
5382 2005-09-19  Richard Henderson  <rth@redhat.com>
5383
5384         * config/i386/sse.md (reduc_splus_v4sf): Rename from reduc_plus_v4sf.
5385         (reduc_splus_v2df): New.
5386
5387 2005-09-19  Richard Sandiford  <richard@codesourcery.com>
5388
5389         * config/arm/aof.h (REGISTER_NAMES): Add missing backslash.
5390         (ADDITIONAL_REGISTER_NAMES): Add missing comma.  Remove final comma.
5391
5392 2005-09-19  Richard Henderson  <rth@redhat.com>
5393
5394         * config/i386/sse.md (vcondu<SSEMODE124>): Rename from
5395         vcondu<SSEMODE12>.
5396
5397 2005-09-19  Richard Henderson  <rth@redhat.com>
5398
5399         * config/ia64/ia64.c (ia64_expand_widen_sum): New.
5400         (ia64_expand_dot_prod_v8qi): New.
5401         * config/ia64/ia64-protos.h: Update.
5402         * config/ia64/vect.md (pmpy2_r, pmpy2_l, widen_usumv8qi3,
5403         widen_usumv4hi3, widen_ssumv8qi3, widen_ssumv4hi3, udot_prodv8qi,
5404         sdot_prodv8qi, sdot_prodv4hi): New.
5405         (reduc_splus_v2sf): Rename from reduc_plus_v2sf.
5406
5407 2005-09-19  Richard Henderson  <rth@redhat.com>
5408
5409         PR 23941
5410         * real.c (exact_real_truncate): Return false if the format cannot
5411         represent the number as a normal.
5412
5413         * config/alpha/alpha.c (alpha_rtx_costs) <FLOAT_EXTEND>: Cost 0
5414         for a memory source.
5415
5416 2005-09-19  Dorit Nuzman  <dorit@il.ibm.com>
5417
5418         * tree-ssa-operands.c (swap_tree_operands): Export.
5419         * tree.h (swap_tree_operands): Declare.
5420         * tree-vectorizer.c (vect_is_simple_reduction): Remove ATTRIBUTE_UNUSED.
5421         Call swap_tree_operands.
5422
5423 2005-09-19  Richard Henderson  <rth@redhat.com>
5424
5425         * tree-flow.h (merge_alias_info): Declare.
5426         * tree-ssa-copy.c (merge_alias_info): Export.
5427         * tree-vect-transform.c (vect_create_index_for_vector_ref): Remove.
5428         (vect_create_data_ref_ptr): Use create_iv directly.
5429         (vectorizable_load): Use correct types for integer constants.
5430         (vect_generate_tmps_on_preheader): Likewise.
5431         (vect_gen_niters_for_prolog_loop): Likewise.
5432
5433 2005-09-19  Steven Bosscher  <stevenb@suse.de>
5434
5435         PR rtl-optimization/23943
5436         * cse.c (find_best_addr): Never propagate an EXPR_LIST rtx.
5437
5438 2005-09-18  Jan Hubicka  <jh@suse.cz>
5439
5440         * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK.
5441
5442 2005-09-18  Eric Botcazou  <ebotcazou@adacore.com>
5443
5444         * varasm.c (output_constant): Do not abort on conversions to union
5445         types between different sizes.
5446
5447 2005-09-18  Richard Guenther  <rguenther@suse.de>
5448
5449         PR middle-end/23944
5450         * gimplify.c (fold_indirect_ref_rhs): Fix thinko in
5451         fallback.
5452
5453 2005-09-18  Paul Brook  <paul@codesourcery.com>
5454
5455         * config/m68k/fpgnuib.c (__floatsidf): Don't rely on signed overflow.
5456
5457 2005-09-17  Richard Henderson  <rth@redhat.com>
5458
5459         * tree-pass.h, tree-flow.h, tree-ssa-dce.c: Revert last change.
5460         * tree-ssa-loop.c (pass_vect_dce): Remove.
5461         * passes.c (init_optimization_passes): Add pass_dce as a sub-pass
5462         of pass_vectorize.
5463
5464 2005-09-17  Richard Henderson  <rth@redhat.com>
5465
5466         * tree-pass.h (pass_vect_dce): Declare.
5467         * passes.c (init_optimization_passes): Add it.
5468         * tree-flow.h (tree_ssa_dce): Declare.
5469         * tree-ssa-dce.c (tree_ssa_dce): Export.
5470         * tree-ssa-loop.c (tree_vectorize): Move current_loops check ...
5471         (gate_tree_vectorize): ... here.
5472         (pass_vect_dce): New.
5473
5474 2005-09-17  Jan Hubicka  <jh@suse.cz>
5475
5476         * except.c (struct eh_status): Turn region_array into vec.
5477         (expand_resx_expr, collect_eh_region_array, remove_unreachable_regions,
5478         convert_from_eh_region_ranges, find_exception_handler_labels,
5479         current_function_has_exception_handlers, assign_filter_values,
5480         build_post_landing_pads, dw2_build_landing_pads,
5481         sjlj_find_directly_reachable_regions, sjlj_mark_call_sites,
5482         sjlj_emit_dispatch_table, remove_eh_handler, for_each_eh_region,
5483         foreach_reachable_handler, can_throw_internal_1,
5484         convert_to_eh_region_ranges, verify_eh_tree): Update uses of
5485         region_array.
5486         (duplicate_eh_region_1): Update region_array.
5487         (duplicate_eh_regions): Resize region_array and avoid recomputing.
5488
5489 2005-09-17  David Edelsohn  <edelsohn@gnu.org>
5490
5491         PR middle-end/22067
5492         * expmed.c (expand_mult): Substitute simple register for op0 when
5493         computing max_cost.
5494
5495 2005-09-17  Richard Henderson  <rth@redhat.com>
5496
5497         * expr.c (emit_move_via_integer): Add force argument, pass it on
5498         to emit_move_change_mode.  Update callers.
5499         (emit_move_complex): Pass true to new force argument.
5500         * function.c (expand_function_end): Move expand_eh_return call
5501         earlier.  Merge sub-word complex values into a pseudo before
5502         copying to the return hard register.
5503
5504 2005-09-17  Eric Botcazou  <ebotcazou@adacore.com>
5505
5506         * varasm.c (output_constant): Do not abort on VIEW_CONVERT_EXPRs
5507         between different sizes.
5508
5509 2005-09-16  Paolo Bonzini  <bonzini@gnu.org>
5510
5511         PR 23903
5512
5513         * passes.c (init_optimization_passes): Register dump files for
5514         IPA passes first.
5515
5516 2005-09-16  Andreas Krebbel  <krebbel1@de.ibm.com>
5517
5518         * config/s390/s390-protos.h (s390_overlap_p): Prototype added.
5519         * config/s390/s390.c (s390_overlap_p): New function.
5520         * config/s390/s390.md ("*mvc" peephole2, "*nc" peephole2, "*oc"
5521         peephole2, "*xc" peephole2): Added overlap check to the peephole2
5522         condition.
5523
5524 2005-09-16  Richard Guenther  <rguenther@suse.de>
5525
5526         * ipa-pure-const.c (static_execute): Free auxiliar information.
5527         * ipa-type-escape.c (discover_unique_type): Free temporary key.
5528         * tree-vrp.c (remove_range_assertions): Free blocks_visited sbitmap.
5529
5530 2005-09-15  DJ Delorie  <dj@redhat.com>
5531
5532         * config/m32c/m32c-lib1.S (__m32c_eh_return): Fix typo.
5533
5534 2005-09-15  Paolo Bonzini  <bonzini@gnu.org>
5535
5536         * optabs.c (expand_binop): Use swap_commutative_operands_with_target
5537         to order operands.
5538         (swap_commutative_operands_with_target): New.
5539
5540 2005-09-15  Daniel Berlin  <dberlin@dberlin.org>
5541
5542         * tree-data-ref.c (analyze_array_indexes): Add estimate_only
5543         parameter.
5544         Update callers.
5545         (estimate_iters_using_array): New function.
5546         * tree-data-ref.h (estimate_iters_using_array): Prototype
5547         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
5548         Use estimate_iters_using_array instead of analyze_array.
5549
5550 2005-09-15  Eric Botcazou  <ebotcazou@adacore.com>
5551
5552         * tree-nested.c (get_frame_type): Mark the "non-local frame structure"
5553         as addressable.
5554
5555 2005-09-15  Michael Matz  <matz@suse.de>
5556
5557         * tree-vrp.c (vrp_int_const_binop <MINUS_EXPR>): Handle 0 - -INF.
5558
5559 2005-09-14  Daniel Berlin  <dberlin@dberlin.org>
5560
5561         PR tree-optimization/23835
5562         * tree-ssa-alias.c (sort_pointers_by_pt_vars): New function.
5563         (create_name_tags): Rewrite to be not O(num_ssa_names^2).
5564
5565 2005-09-14  Richard Henderson  <rth@redhat.com>
5566
5567         * config/ia64/vect.md (addv2sf3, subv2sf3): Rewrite as expand.
5568         (addv2sf3_1, addv2sf3_2, subv2sf3_1, subv2sf3_2): New.
5569
5570 2005-09-14  Andrew Pinski  <pinskia@physics.uc.edu>
5571
5572         * config/i386/i386.c (contains_128bit_aligned_vector_p): Add break
5573         in the ARRAY_TYPE case.
5574
5575 2005-09-14  Eric Botcazou  <ebotcazou@adacore.com>
5576
5577         * tree.c (substitute_in_expr, case 4): New case, for ARRAY_REF.
5578
5579 2005-09-14  Uros Bizjak  <uros@kss-loka.si>
5580
5581         PR middle-end/22480
5582         * tree-vect-transform.c (vectorizable_operation): Return false for
5583         scalar shift operations and for vector shift operations with
5584         non-invariant shift arguments.  Use scalar tree operand op1 as
5585         a shift operand when vector shift insn pattern uses scalar shift
5586         operand.
5587         * Makefile.in (tree-vect-transform.o): Depend on recog.h.
5588
5589 2005-09-14  Olivier Hainque  <hainque@adacore.com>
5590
5591         * gimplify.c (gimplify_init_ctor_eval): Don't discard a zero-sized
5592         value if it has side-effects.
5593
5594 2005-09-14  David Edelsohn  <edelsohn@gnu.org>
5595
5596         PR target/22068
5597         * config/rs6000/rs6000.md (muldi3): Add mulli alternative.
5598
5599 2005-09-14  Alan Modra  <amodra@bigpond.net.au>
5600
5601         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Treat function name
5602         passed as NAME as if it were label at start of function code.
5603
5604 2005-09-13  Kaz Kojima  <kkojima@gcc.gnu.org>
5605
5606         * config/sh/sh.md (*movv4sf_i): Add general register cases to
5607         the constraints.
5608
5609 2005-09-13  Andrew Pinski  <pinskia@physics.uc.edu>
5610
5611         * config/rs6000/darwin.md (movdf_low_si): Mark the outgoing r constraint
5612         as early clobber.  Rewrite so the PIC register is not implicitly used.
5613
5614 2005-09-13  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
5615
5616         * tree.c (annotate_with_file_line): Compare line numbers before
5617         file names.
5618
5619 2005-09-13  Uros Bizjak  <uros@kss-loka.si>
5620
5621         PR target/23816
5622         * config/i386/sse.md (*ieee_sminv4sf3, *ieee_smaxv4sf3)
5623         (*ieee_sminv2df3, *ieee_smaxv2df3): New insn patterns.
5624
5625 2005-09-13  Ian Lance Taylor  <ian@airs.com>
5626
5627         * loop-doloop.c (doloop_modify): Use GEN_INT to pass an rtx rather
5628         than a HOST_WIDEST_INT to gen_doloop_begin.
5629
5630 2005-09-13  Diego Novillo  <dnovillo@redhat.com>
5631
5632         * tree-dfa.c (dump_variable): Guard against NULL annotations.
5633
5634 2005-09-13  Zdenek Dvorak  <dvorakz@suse.cz>
5635
5636         PR tree-optimize/23817
5637         * tree-cfg.c (tree_merge_blocks): Preserve loop closed ssa.
5638
5639 2005-09-13  Alan Modra  <amodra@bigpond.net.au>
5640
5641         PR target/23774
5642         * config/rs6000/rs6000.md (restore_stack_block): Write the backchain
5643         word before changing the stack pointer.  Use gen_frame_mem for MEMs.
5644         Use UNSPEC_TIE to prevent insn scheduling reordering the insns.
5645         (restore_stack_nonlocal): Likewise.
5646         (save_stack_nonlocal): Use template to emit insns, and gen_frame_mem.
5647
5648 2005-09-12  Ian Lance Taylor  <ian@airs.com>
5649
5650         PR g++/7874
5651         * c.opt (ffriend-injection): New C++ option.
5652         * doc/invoke.texi (Option Summary): Mention -ffriend-injection.
5653         (C++ Dialect Options): Document -ffriend-injection.
5654
5655 2005-09-12  Josh Conner  <jconner@apple.com>
5656
5657         PR middle-end/23237
5658         * ipa-reference.c (static_execute): Don't mark variables in
5659         named sections TREE_READONLY.
5660
5661 2005-09-12  Alan Modra  <amodra@bigpond.net.au>
5662
5663         * config/rs6000/rs6000.c (get_next_active_insn): Simplify test for
5664         stack_tie.
5665
5666 2005-09-12  Andrew Pinski  <pinskia@physics.uc.edu>
5667
5668         * tree-ssa-dse.c (dse_optimize_stmt): Fix up all of V_MAY_DEF and
5669         V_MUST_DEF instead of just the first_use_p.
5670         Don't mark the virtual variables for renaming on the statement which
5671         is being removed.
5672         (pass_dse): Remove TODO_update_ssa.
5673
5674 2005-09-12  J"orn Rennecke <joern.rennecke@st.com>
5675
5676         PR middle-end/23290
5677         * stor-layout.c (compute_record_mode): For records with a single
5678         field, actually check the field's mode size against the type size.
5679
5680         * sh.h (HARD_REGNO_MODE_OK): Allow V4SFmode in general purpose
5681         registers for TARGET_SHMEDIA.
5682         (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Rename
5683         GENERAL_FP_REGS to GENERAL_DF_REGS.  Add GENERAL_FP_REGS as union
5684         of GENERAL_REGS and FP_REGS.
5685
5686 2005-09-12  Bernd Schmidt  <bernd.schmidt@analog.com>
5687
5688         * config/bfin/bfin.c (legimitize_pic_address): Use gen_const_mem.
5689
5690 2005-09-12  Alan Modra  <amodra@bigpond.net.au>
5691
5692         * config/rs6000/rs6000.c (get_next_active_insn): Rewrite using
5693         CALL_P, JUMP_P and NONJUMP_INSN_P, so that barriers and labels
5694         are omitted.  Exclude stack_tie insn too.
5695
5696 2005-09-11  David Edelsohn  <edelsohn@gnu.org>
5697
5698         PR rtl-optimization/23098
5699         * config/rs6000/predicates.md (easy_fp_constant): SFmode constant
5700         0.0f is easy.
5701         * config/rs6000/rs6000.md (movdf splitter): Use
5702         const_double_operand predicate for TARGET_POWERPC64.
5703         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Expand
5704         SYMBOL_REF method to ABI_V4.
5705
5706         * config/rs6000/altivec.md (build_vector_mask_for_load): Use
5707         replace_equiv_address.
5708         * config/rs6000/rs6000.c (rs6000_emit_eh_reg_restore): Mark MEM as
5709         rs6000_sr_alias_set and MEM_NOTRAP.
5710         (rs6000_aix_emit_builtin_unwind_init): Use gen_frame_mem().
5711
5712 2005-09-11  Eric Botcazou  <ebotcazou@adacore.com>
5713
5714         * tree.c (contains_placeholder_p) <tcc_expression>: Properly
5715         handle CALL_EXPR again.
5716
5717 2005-09-11  Richard Earnshaw  <richard.earnshaw@arm.com>
5718
5719         * arm/predicates.md (alignable_memory_operand): Delete.
5720
5721 2005-09-10  Richard Henderson  <rth@redhat.com>
5722
5723         PR debug/23806
5724         * dbxout.c (dbxout_expand_expr): New.
5725         (dbxout_symbol): Use it.
5726
5727 2005-09-10  Richard Earnshaw  <richard.earnshaw@arm.com>
5728
5729         * arm.c (arm_gen_rotated_half_load): Delete.
5730         (vfp_emit_fstmx, arm_set_return_address): Use gen_frame_mem.
5731         (emit_multi_reg_push, emit_sfm, arm_expand_prologue)
5732         (thumb_set_return_address): Likewise.
5733         (thumb_load_double_from_address): Use adjust_address.
5734         * arm.md (splits calling arm_gen_rotated_half_load): Delete.
5735         (extendhsisi2_mem, movhi_bytes): Use change_address.
5736         (movhi): Use widen_memory_access.
5737         (reload_out_df): Use replace_equiv_address.
5738         * arm-protos.h (arm_gen_rotated_half_load): Delete prototype.
5739
5740 2005-09-09  Richard Henderson  <rth@redhat.com>
5741
5742         PR debug/20998
5743         * dbxout.c: Include expr.h.
5744         (dbxout_global_decl): Don't suppress for DECL_RTL unset.
5745         (dbxout_symbol): Handle DECL_VALUE_EXPR.
5746         * Makefile.in (dbxout.o): Add EXPR_H.
5747
5748 2005-09-09  Zdenek Dvorak  <dvorakz@suse.cz>
5749
5750         PR tree-optimization/23509
5751         * tree-cfg.c (replace_uses_by): Use replace_exp.
5752         * tree-ssa-loop-ivopts.c (get_ref_tag): Assert that dereferenced
5753         pointers have name_mem_tag or type_mem_tag set.
5754
5755 2005-09-09  Sebastian Pop  <pop@cri.ensmp.fr>
5756
5757         * tree-chrec.c (evolution_function_is_invariant_rec_p): Use
5758         CHREC_LEFT and CHREC_RIGHT for accessing chrec components instead
5759         of wrongly accessing operands.
5760
5761 2005-09-09  Sebastian Pop  <pop@cri.ensmp.fr>
5762
5763         * Makefile.in (tree-chrec.o): Depends on SCEV_H.
5764         * tree-chrec.c: Include tree-scalar-evolution.h.
5765         (chrec_convert): Instantiate the base and step before calling
5766         scev_probably_wraps_p that would fail on parametric evolutions.
5767         Collect all the fails into a single section failed_to_convert,
5768         print a diagnostic, and return chrec_dont_know instead of calling
5769         fold_convert.
5770         * tree-scalar-evolution.c (loop_closed_phi_def): New.
5771         (instantiate_parameters_1): Avoid instantiation of loop closed ssa
5772         phi nodes.
5773         (scev_const_prop): Don't replace the definition of a loop closed ssa
5774         phi node by itself, or by another loop closed ssa phi node.
5775         * tree-ssa-loop-niter.c (scev_probably_wraps_p, convert_step): Check
5776         that base and step are defined.
5777
5778 2005-09-09  Richard Guenther  <rguenther@suse.de>
5779
5780         PR c++/23624
5781         * fold-const.c (fold_ternary): Check truth_value_p before
5782         calling invert_truthvalue.
5783
5784 2005-09-09  Nick Clifton  <nickc@redhat.com>
5785
5786         * Makefile.in (LIBGCC_DEPS): Add libgcc2.h.
5787         * libgcc2.c (__clz_tab[], __popcount_tab[]): Set the fixed
5788         dimension of these arrays.
5789         * libgcc2.h (__clz_tab[], __popcount_tab[]): Add exports of
5790         these arrays.
5791         * longlong.h: Only provide a prototype for the __clz_tab[] array
5792         if this header has not been included from libgcc2.h.
5793         * config/stormy16/stormy16-lib2.c: Include libgcc2.h rather than
5794         defining own types.
5795         Provide prototypes for exported functions.
5796         Use the __clz_tab[] and __popcount_tab[] arrays provided by
5797         libgcc2.c.
5798
5799 2005-09-08  Josh Conner  <jconner@apple.com>
5800
5801         PR c++/21135
5802         PR c++/23180
5803         * expr.c (expand_expr_addr_expr_1): Don't invoke
5804         expand_simple_binop for EXPAND_INITIALIZER.
5805
5806 2005-09-08  Richard Henderson  <rth@redhat.com>
5807
5808         PR debug/23190
5809         * toplev.c (wrapup_global_declaration_1): Split out ...
5810         (wrapup_global_declaration_2): ... from ...
5811         (wrapup_global_declarations): ... here.  Return bool.
5812         (check_global_declaration_1): Split out ...
5813         (check_global_declarations): from here.
5814         (emit_debug_global_declarations): New.
5815         * toplev.h (wrapup_global_declaration_1, wrapup_global_declaration_2,
5816         check_global_declaration_1, emit_debug_global_declarations): Declare.
5817         * c-decl.c (c_write_global_declarations_1): Don't create a vector
5818         of decls.  Call wrapup_global_declaration_1,
5819         wrapup_global_declaration_2, check_global_declaration_1 directly.
5820         (c_write_global_declarations_2): New.
5821         (ext_block): New.
5822         (c_write_global_declarations): Call c_write_global_declarations_2.
5823         * langhooks.c (write_global_declarations): Call
5824         emit_debug_global_declarations.
5825
5826         * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Don't
5827         remove decls that have DECL_RTL_SET_P.
5828         * passes.c (rest_of_decl_compilation): Invoke
5829         cgraph_varpool_finalize_decl for all but functions.
5830
5831 2005-09-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
5832
5833         * tree-vrp.c (extract_range_from_unary_expr): Do not set the range for
5834         the result of a conversion if the new min and max cannot be compared.
5835
5836 2005-09-08  Andreas Krebbel  <krebbel1@de.ibm.com>
5837
5838         * config/s390/s390.c (s390_sr_alias_set): Variable removed.
5839         (override_options): Setting s390_sr_alias_set removed.
5840         (save_fpr, save_gprs): Set alias set to vararg or frame.
5841         (restore_fpr, restore_gprs, s390_emit_prologue): Replace
5842         s390_sr_alias_set with get_frame_alias_set ().
5843         (s390_gimplify_va_arg): Replace s390_sr_alias_set with
5844         get_varargs_alias_set ().
5845
5846 2005-09-08  Andrew Pinski  <pinskia@physics.uc.edu>
5847
5848         PR objc/20574
5849         PR objc/19324
5850         * c-parser.c (c_parser_objc_method_definition): If the next
5851         token is not "{", error out and don't start the function.
5852
5853 2005-09-08  Andrew Pinski  <pinskia@physics.uc.edu>
5854
5855         * tree-vrp.c (extract_range_from_expr): Move the check for non
5856         nullness after the check for gimple invariant.
5857
5858 2005-09-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5859
5860         * tree.c (host_integerp, tree_low_cst): Correct function comment.
5861
5862 2005-09-08  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5863
5864         PR target/23747
5865         * config/m32r.md (movmemsi_internal): Canonicalize order of
5866         operands in PLUS component of template.
5867
5868 2005-09-07  Andreas Krebbel  <krebbel1@de.ibm.com>
5869
5870         * reload1.c (fixup_eh_region_note): Remove assertion.
5871         (fixup_abnormal_edges): Reverted removal of call to
5872         find_many_sub_basic_blocks made on 2005-08-31.
5873
5874 2005-09-07  Richard Henderson  <rth@redhat.com>
5875
5876         * function.c (ARG_POINTER_CFA_OFFSET): Move ...
5877         * defaults.h (ARG_POINTER_CFA_OFFSET): ... here.
5878         (INCOMING_FRAME_SP_OFFSET): Move from dwarf2out.c.
5879         * dwarf2out.c (struct cfa_loc): Change reg to unsigned int,
5880         rearrange for better packing.
5881         (INCOMING_FRAME_SP_OFFSET): Move to defaults.h.
5882         (lookup_cfa_1): Remove inline marker.
5883         (cfa_equal_p): Split out of ...
5884         (def_cfa_1): ... here.  Use INVALID_REGNUM.
5885         (build_cfa_loc): Handle !cfa->indirect.
5886         (frame_pointer_cfa_offset): New.
5887         (dbx_reg_number): Assert register elimination performed; do
5888         leaf register remapping.
5889         (reg_loc_descriptor): Avoid calling dbx_reg_number when unused.
5890         (eliminate_reg_to_offset): New.
5891         (based_loc_descr): Remove can_use_fbreg argument.  Use fbreg only
5892         for verifiably local stack frame addresses; re-base to CFA.
5893         (mem_loc_descriptor): Remove can_use_fbreg argument.
5894         (concat_loc_descriptor, loc_descriptor): Likewise.
5895         (containing_function_has_frame_base): Remove.
5896         (rtl_for_decl_location): Don't do register elimination or
5897         leaf register remapping here.
5898         (secname_for_decl): Split out from ..
5899         (add_location_or_const_value_attribute): ... here.
5900         (convert_cfa_to_loc_list): New.
5901         (compute_frame_pointer_to_cfa_displacement): New.
5902         (gen_subprogram_die): Use them.
5903         * tree.h (frame_base_decl): Remove.
5904         * var-tracking.c (frame_base_decl, frame_stack_adjust): Remove.
5905         (prologue_stack_adjust): Remove.
5906         (vt_stack_adjustments): Use INCOMING_FRAME_SP_OFFSET.
5907         (adjust_stack_reference): Re-base memories to arg_pointer_rtx.
5908         (set_frame_base_location): Remove.
5909         (compute_bb_dataflow, emit_notes_in_bb): Don't call it.
5910         (dump_attrs_list, dump_dataflow_set): Use string concatenation.
5911         (vt_add_function_parameters): Don't eliminate_regs.
5912         (vt_initialize): Don't create frame_base_decl.
5913
5914 2005-09-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
5915
5916         * doc/install.texi (*-*-solaris2*): Clarify wording on the recommended
5917         version of GNU binutils for 4.x and later.
5918
5919 2005-09-06  Mark Mitchell  <mark@codesourcery.com>
5920
5921         * ggc-page.c (ggc_push_context): Remove.
5922         (ggc_pop_context): Likewise.
5923         * ggc.h (ggc_push_context): Remove.
5924         (ggc_pop_context): Likewise.
5925
5926 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
5927
5928         PR target/8973
5929         * config/arc/arc.c (arc_output_function_epilogue): Update flags while
5930         returning from an interrupt handler.
5931
5932 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
5933
5934         PR target/8972
5935         * config/arc/arc.c (output_shift): Add check for loop count when
5936         optimizing.
5937
5938 2005-09-06  Steven Bosscher  <stevenb@suse.de>
5939
5940         * tree-ssa-phiopt.c (conditional_replacement): Construct proper SSA
5941         form manually.
5942         (abs_replacement): Likewise.
5943         (pass_phiopt): Remove TODO_update_ssa.
5944
5945 2005-09-06  Jakub Jelinek  <jakub@redhat.com>
5946
5947         PR c/23075
5948         * c-typeck.c (c_finish_return): Set TREE_NO_WARNING on RETURN_EXPR
5949         if "return with no value, in function returning non-void" warning
5950         has been issued.
5951         * tree-cfg.c (execute_warn_function_return): Don't look at
5952         RETURN_EXPRs with TREE_NO_WARNING set.
5953
5954         PR target/22362
5955         * config/i386/i386.c (ix86_function_regparm): Make sure automatic regparm
5956         for internal functions doesn't use registers used by global registers
5957         variables.  Use fewer register parameters if there are global register
5958         variables.
5959
5960 2005-09-06  Olivier Hainque  <hainque@adacore.com>
5961             Eric Botcazou  <ebotcazou@adacore.com>
5962
5963         PR middle-end/14997
5964         * expr.c (expand_expr_real) <normal_inner_ref>: Force op0 to mem
5965         when we would be extracting outside its bit span (bitpos+bitsize
5966         larger than its mode), possible with some VIEW_CONVERT_EXPRs from
5967         Ada unchecked conversions.
5968
5969 2005-09-06  Steven Bosscher  <stevenb@suse.de>
5970
5971         * tree-ssa-pre.c (try_look_through_load): New function.
5972         (compute_avail): Use it to try to look through loads for some
5973         more useful expressions.
5974
5975 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
5976
5977         * simplify-rtx.c (simplify_binary_operation_1): Correct the
5978         condition for detecting cases like (a&a) and (a^a).
5979
5980 2005-09-06  Keith Besaw  <kbesaw@us.ibm.com>
5981
5982         * common.opt: Add option ftree-vect-loop-version.
5983         * params.def: Add --param vect-max-version-checks.
5984         * doc/invoke.texi: Document ftree-vect-loop-version and
5985         --param vect-max-version-checks.
5986         * tree-vectorizer.h (_loop_vec_info): Add ptr_mask and
5987         may_misalign_stmts and defines for accessors.
5988         * tree-vectorizer.c : (new_loop_vec_info): VEC_alloc for
5989         LOOP_VINFO_MAY_MISALIGN_STMTS.
5990         (destroy_loop_vec_info): VEC_free for
5991         LOOP_VINFO_MAY_MISALIGN_STMTS.
5992         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
5993         Update documentation.
5994         (vect_update_misalignment_for_peel): New.
5995         (vect_enhance_data_refs_alignment): Update to choose loop
5996         peeling or loop versioning if appropriate for the (potentially)
5997         unaligned data references in the loop.
5998         (vect_analyze_data_refs_alignment): Remove call to
5999         vect_enhance_data_refs_alignment so the checks can be done
6000         earlier.
6001         (vect_analyze_loop): Add call to vect_enhance_data_refs_alignment
6002         and move up call to vect_analyze_data_refs_alignment.
6003         * tree-vect-transform.c (vect_create_cond_for_align_checks): New.
6004         (vect_transform_loop): Add call to loop_version.
6005
6006 2005-09-06  Jakub Jelinek  <jakub@redhat.com>
6007
6008         PR rtl-optimization/23098
6009         * cse.c (fold_rtx_mem): Call delegitimize_address target hook.
6010         * simplify-rtx.c (constant_pool_reference_p): New function.
6011         * rtl.h (constant_pool_reference_p): New prototype.
6012         * config/i386/i386.md (pushf split, mov[sdx]f split): Use
6013         constant_pool_reference_p in condition and
6014         avoid_constant_pool_reference in preparation statements.
6015
6016 2005-09-06  Andreas Krebbel  <krebbel1@de.ibm.com>
6017
6018         * gcse.c (try_replace_reg): Disallow REG_EQUAL notes for
6019         STRICT_LOW_PART SETs.
6020
6021 2005-09-06  Alan Modra  <amodra@bigpond.net.au>
6022
6023         PR middle-end/21460
6024         * except.c (sjlj_emit_function_enter): Find the function begin
6025         note even when it's not in first basic block.
6026
6027 2005-09-06  Kelley Cook  <kcook@gcc.gnu.org>
6028
6029         * acinclude.m4: Renamed from aclocal.m4.  Delete AM_LANGINFO_CODESET,
6030         AM_PROG_CC_C_O, and AM_AUX_DIR_EXPAND.
6031         * aclocal.m4: Regenerate.
6032
6033 2005-09-05  DJ Delorie  <dj@redhat.com>
6034
6035         * config/m32c/m32c.h (TRAMPOLINE_ALIGNMENT): Correct misspelling
6036         of macro.
6037
6038 2005-09-06  Kazu Hirata  <kazu@codesourcery.com>
6039
6040         * gimplify.c, ipa-prop.h, varasm.c, config/vxlib.c,
6041         config/vxworks.h, config/crx/crx.c, config/ms1/ms1.c,
6042         config/ms1/ms1.md, config/rs6000/rs6000.c: Fix comment typos.
6043         Follow spelling conventions.
6044         * doc/invoke.texi: Follow spelling conventions.
6045
6046 2005-09-05  J"orn Rennecke <joern.rennecke@st.com>
6047
6048         * rtl.h (gen_frame_mem, gen_tmp_stack_mem): Declare.
6049         * emit-rtl.c (gen_frame_mem, gen_tmp_stack_mem): New functions.
6050         * builtins.c (expand_builtin_return_addr): Use gen_frame_mem.
6051
6052 2005-09-05  J"orn Rennecke <joern.rennecke@st.com>
6053
6054         PR target/23683
6055         * sh.c (sh_reorg, emit_load_ptr): Use gen_const_mem.
6056         (output_stack_adjust): Use gen_tmp_stack_mem.
6057         (sh_expand_prologue, sh_expand_epilogue): Use gen_frame_mem.
6058         (sh_set_return_address, sh_allocate_initial_value): Likewise.
6059         (sh_get_pr_initial_val): Likewise.
6060         (sh_builtin_saveregs): Use gen_frame_mem and change_address.
6061         (sh_initialize_trampoline): Likewise.  Also use adjust_address.
6062         * sh.md (divsi_inv_m0): Use gen_const_mem.
6063         (push_fpscr, pop_fpscr, load_ra): Use gen_frame_mem.
6064         (movdf_i4+1): Use gen_tmp_stack_mem.
6065         (reload_outdf+3, reload_outdf+4, fpu_switch+1): Use change_address.
6066         (fpu_switch+2): Likewise.
6067         (movv4sf_i, movv16sf_i): Use adjust_address.
6068         (symGOT_load): Set MEM_NOTRAP_P bit.
6069
6070 2005-09-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6071
6072         PR target/23721
6073         * pa.c (emit_move_sequence): Fix typo in last change.
6074
6075 2005-09-03  Jakub Jelinek  <jakub@redhat.com>
6076
6077         PR rtl-optimization/23454
6078         * reorg.c (relax_delay_slots): Only call invert_jump if any_condjump_p
6079         is true.
6080
6081 2005-09-03  Richard Henderson  <rth@redhat.com>
6082             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6083
6084         PR middle-end/23671
6085         * pa.c (emit_move_sequence): Use replace_equiv_address instead of
6086         gen_rtx_MEM.
6087
6088 2005-09-02  Nicolas Pitre <nico@cam.org>
6089
6090         * config/arm/arm.c (arm_legitimize_address): Limit the value passed
6091         to bit_count to 32 bits.
6092
6093 2005-08-31  Mark Mitchell  <mark@codesourcery.com>
6094
6095         PR c++/23167
6096         * gimplify.c (gimplify_expr): Handle TREE_ADDRESSABLE types when
6097         generating synthetic loads from volatile lvalues.
6098
6099 005-09-02  Nick Clifton  <nickc@redhat.com>
6100
6101         * config/stormy16/stormy16-lib2.c (__popcounthi2, __parityhi2,
6102         __ctzhi2, __clzhi2): New functions.
6103
6104 2005-09-02  Andrew Pinski  <pinskia@physics.uc.edu>
6105
6106         PR middle-end/23547
6107         * tree-nested.c (struct var_map_elt): Mark with GTY.
6108         (struct nesting_info): Mark with GTY.  Mark var_map's param is struct
6109         var_map_elt.
6110         (lookup_field_for_decl): Allocate new element in GC memory.
6111         (lookup_tramp_for_decl): Likewise.
6112         (convert_nl_goto_reference): Likewise
6113         (create_nesting_tree): Allocate info in GC memory. Likewise for
6114         info->var_map.
6115         (free_nesting_tree): Free with ggc_free instead of free.
6116         (root): New static variable.
6117         (lower_nested_functions): Remove root as local variable.  And zero out
6118         root at the end of the function.
6119
6120 2005-09-02  J"orn Rennecke <joern.rennecke@st.com>
6121
6122         PR rtl-optimization/20365
6123         * simplify-rtx.c (simplify_plus_minus_op_data): Change type of neg
6124         to short.  New member ix.
6125         (simplify_plus_minus_op_data_cmp): Break ties using ix member.
6126         (simplify_plus_minus): Initialize ix members before calling qsort.
6127
6128 2005-09-02  Zdenek Dvorak  <dvorakz@suse.cz>
6129
6130         PR tree-optimization/23626
6131         * tree-cfg.c (replace_uses_by): Clean up eh info.
6132
6133 2005-09-01  DJ Delorie  <dj@redhat.com>
6134
6135         * config/m32c/m32c.c (m32c_valid_pointer_mode): Remove stray debug
6136         fprintf.
6137
6138 2005-09-01  David Edelsohn  <edelsohn@gnu.org>
6139
6140         * config/rs6000/rs6000.c (setup_incoming_varargs): Set MEM_NOTRAP_P.
6141         (rs6000_split_multireg_move): Use replace_equiv_address instead of
6142         gen_rtx_MEM.
6143
6144 2005-09-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
6145
6146         * c-decl.c (diagnose_mismatched_decls):  With -Wredundant-decls,
6147         do not issue warning for a variable definition following
6148         a declaration.
6149
6150 2005-09-01  Richard Henderson  <rth@redhat.com>
6151
6152         PR 23668
6153         * config/i386/i386.c (ix86_expand_vector_init_one_var): Restore
6154         conversion to CONST_VECTOR.
6155
6156 2005-09-01  Richard Henderson  <rth@redhat.com>
6157
6158         PR 23676
6159         * reload1.c (reload_as_needed): Check !CALL_P before calling
6160         fixup_eh_region_note.
6161         * rtlanal.c (may_trap_p): SUBREG by itself cannot trap.
6162
6163 2005-09-01  DJ Delorie  <dj@redhat.com>
6164
6165         * varasm.c (output_constant): Let the target resolve
6166         conversions of addresses to non-default pointer sizes.
6167
6168 2005-09-01  Nicolas Pitre <nico@cam.org>
6169
6170         * config/arm/arm.c (arm_legitimize_address): Split absolute addresses
6171         to alow matching ARM pre-indexed addressing mode.
6172         (arm_override_options): Remove now irrelevant comment.
6173
6174 2005-09-01  Phil Edwards  <phil@codesourcery.com>
6175
6176         * config.gcc (i*86-wrs-vxworks):  Update.  Split out vxworksae target.
6177         * config/i386/t-vxworks:  Update multilibs for VxWorks 6 and RTP mode.
6178         * config/i386/vxworks.h:  Likewise.
6179         * config/i386/t-vxworksae:  New file, for VxWorks AE.
6180         * config/i386/vxworksae.h:  Likewise.
6181
6182 2005-09-01  Sebastian Pop  <pop@cri.ensmp.fr>
6183
6184         PR tree-optimization/23410
6185         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Check that the
6186         sequence is not wrapping during the first step.
6187
6188 2005-09-01  Jakub Jelinek  <jakub@redhat.com>
6189
6190         PR debug/7241
6191         * dwarf2out.c (base_type_die): Compare char_type_node with
6192         TYPE_MAIN_VARIANT (type), not type.
6193
6194 2005-09-01  Richard Guenther  <rguenther@suse.de>
6195
6196         PR tree-optimization/15366
6197         * common.opt: Add -finline-functions-called-once.
6198         Put -fearly-inlining in alphabetically ordered place.
6199         * doc/invoke.texi: Document new option.
6200         * ipa-inline.c (cgraph_decide_inlining): Honour
6201         flag_inline_functions_called_once.
6202
6203 2005-09-01  Jakub Jelinek  <jakub@redhat.com>
6204
6205         PR rtl-optimization/23478
6206         * local-alloc.c (struct qty): Add n_throwing_calls_crossed field.
6207         (alloc_qty): Initialize it.
6208         (update_equiv_regs): Clear REG_N_THROWING_CALLS_CROSSED.
6209         (combine_regs): Combine also n_throwing_calls_crossed fields.
6210         (find_free_reg): Don't attempt to caller-save pseudos crossing
6211         calls that might throw.
6212         * global.c (struct allocno): Add throwing_calls_crossed field.
6213         (global_alloc): Revert 2005-08-22 change.  Initialize
6214         throwing_calls_crossed.
6215         (find_reg): Don't attempt to caller-save pseudos crossing calls that
6216         might throw.
6217
6218 2005-09-01  Alan Modra  <amodra@bigpond.net.au>
6219
6220         PR target/23649
6221         * config/rs6000/predicates.md (mask_operand): Only handle rlwinm masks.
6222         (mask64_operand): Reinstate code prior to 2005-06-11 change.
6223         (mask64_2_operand): Reinstate code prior to 2004-11-11 change.
6224         (and64_2_operand): Tweak to use predicate.
6225         (and_operand): Adjust for mask_operand changes.
6226         * config/rs6000/rs6000.c (num_insns_constant): Revert 2005-06-11.
6227         (print_operand): Likewise.
6228         (rs6000_rtx_costs): Pass mode to mask_operand and use mask64_operand.
6229         (mask64_1or2_operand): Delete.
6230         * rs6000/rs6000-protos.h (mask64_1or2_operand): Delete.
6231         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT <S>): Revert 2005-06-11.
6232         (EXTRA_CONSTRAINT <T>): Pass operand mode to predicate.
6233         (EXTRA_CONSTRAINT <t>): Disallow mask64_operand matches.
6234         * config/rs6000/rs6000.md (andsi3_internal3 split): Revert 2005-06-11.
6235         (rotldi3_internal4): Likewise.
6236         (rotldi3_internal5, rotldi3_internal5 split): Likewise.
6237         (rotldi3_internal6, rotldi3_internal6 split): Likewise.
6238         (ashldi3_internal7): Likewise.
6239         (ashldi3_internal8, ashldi3_internal8 split): Likewise.
6240         (ashldi3_internal, ashldi3_internal9 split): Likewise.
6241         (anddi3 split): Don't match mask64_operand.
6242         (anddi3_internal2): Add rlwinm.  Modify 't' splitter predicate.
6243         (anddi3_internal3): Add rlwinm.  Use and64_2_operand in non-cr0
6244         splitter and match TARGET_64BIT not TARGET_POWERPC64.  Modify
6245         't' splitter predicate.
6246         (movdi_internal64 + 2): Revert 2005-06-11 change.
6247
6248 2005-08-31  DJ Delorie  <dj@redhat.com>
6249
6250         * config/m32c/m32c.c (m32c_valid_pointer_mode): New.
6251         (m32c_asm_integer): Add support for 32 bit pointers.
6252
6253 2005-08-31  Richard Henderson  <rth@redhat.com>
6254
6255         * emit-rtl.c (set_mem_attributes_minus_bitpos): Look through
6256         component-like references for setting MEM_NOTRAP_P.
6257
6258         * config/i386/i386.c (ix86_setup_incoming_varargs): Set MEM_NOTRAP_P.
6259         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
6260
6261 2005-08-31  Richard Henderson  <rth@redhat.com>
6262
6263         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Force subregs
6264         into a pseudo before applying gen_lowpart.
6265
6266 2005-08-31  Geoffrey Keating  <geoffk@apple.com>
6267
6268         * doc/install.texi (Specific): Update cctools version required
6269         for full functionality.
6270         * config/darwin.h (LINK_SPEC): Pass -mmacosx-version-min to the
6271         linkers as -macosx_version_min.
6272
6273 2005-08-31  J"orn Rennecke <joern.rennecke@st.com>
6274
6275         PR target/21255
6276         * sh.c (print_operand, %R and %S): Add handling of floating point
6277         registers, memory, constants and invalid operands.
6278
6279 2005-08-31  Daniel Berlin  <dberlin@dberlin.org>
6280
6281         * ipa-pure-const.c: Change dump name.
6282
6283 2005-08-31 Uros Bizjak <uros@kss-loka.si>
6284
6285         PR target/23570
6286         * config/i386/sse.md (*sse_concatv2sf): Change operand 2 constraint
6287         to "reg_or_0_operand".
6288         (sse2_loadld): Change operand 1 constraint to "reg_or_0_operand".
6289
6290 2005-08-31  Dale Johannesen  <dalej@apple.com>
6291
6292         * loop-iv.c (iv_number_of_iterations):  Fix overflow check for
6293         loops that count down.
6294
6295 2005-08-31  Richard Henderson  <rth@redhat.com>
6296
6297         PR rtl-opt/23601
6298         * reload1.c (reload): Set MEM_NOTRAP_P in spill slots.
6299         (fixup_eh_region_note): New.
6300         (reload_as_needed): Call it.
6301         (fixup_abnormal_edges): Allow all throwing insns to be deleted;
6302         don't call find_many_sub_basic_blocks; call verify_flow_info.
6303         * function.c (assign_stack_local_1): Set MEM_NOTRAP_P.
6304         (keep_stack_depressed): Likewise.
6305         (assign_stack_temp_for_type): Likewise; use adjust_address_nv.
6306
6307 2005-08-31  Richard Henderson  <rth@redhat.com>
6308
6309         * config/i386/i386.c (ix86_function_ok_for_sibcall): Fix test for
6310         fp return matching.
6311
6312 2005-08-31  Fariborz Jahanian <fjahanian@apple.com>
6313
6314         * expr.c (expand_expr_real_1): Compare size of address
6315         mode to target's address mode size in deciding expansion of
6316         the constant address.
6317
6318 2005-08-31  Richard Guenther  <rguenther@suse.de>
6319
6320         PR middle-end/23477
6321         * expr.c (all_zeros_p): New function.
6322         (expand_expr_real_1): Handle the case of an all-zero
6323         non-addressable constructor separately.
6324
6325 2005-08-31  Adrian Straetling  <straetling@de.ibm.com>
6326
6327         * builtins.c: (expand_builtin_strcpy, expand_builtin_strcat): Change
6328         arguments, adjust all callers.
6329         (expand_builtin_strcat): Rewrite to call strcpy instead of mempcpy.
6330
6331 2005-08-30  Richard Henderson  <rth@redhat.com>
6332
6333         PR target/23630
6334         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Use gen_lowpart
6335         whenever the mode sizes match.
6336
6337 2005-08-31  Alan Modra  <amodra@bigpond.net.au>
6338
6339         * calls.c (load_register_parameters): Fix comment typo.
6340         * expr.c (emit_push_insn): Comment formatting.
6341
6342 2005-08-30  Ian Lance Taylor  <ian@airs.com>
6343
6344         * config/i386/x-cygwin (host-cygwin): Change dependency from
6345         hosthooks-def.h to $(HOSTHOOKS_DEF_H).
6346
6347 2005-08-29  Geoffrey Keating  <geoffk@apple.com>
6348
6349         * config/i386/i386.c (ix86_expand_vector_init_one_var): Don't modify
6350         parts of 'vals'.
6351
6352 2005-08-29  Andrew Pinski  <pinskia@physics.uc.edu>
6353
6354         PR middle-end/23408
6355         * ipa-inline.c (cgraph_decide_inlining_incrementally): Remove the
6356         call to ggc_collect.
6357
6358 2005-08-29  Paolo Bonzini  <bonzini@gnu.org>
6359
6360         PR bootstrap/21268
6361         * Makefile.in (ALL_CPPFLAGS): Include $(INCLUDES) at the
6362         beginning.  Remove $(INCLUDES) from all the rules, if following
6363         $(ALL_CPPFLAGS) or $(BUILD_CPPFLAGS).
6364
6365 2005-08-29  Jakub Jelinek  <jakub@redhat.com>
6366
6367         PR middle-end/23484
6368         * builtins.c (fold_builtin_memory_chk, fold_builtin_stxcpy_chk,
6369         fold_builtin_strncpy_chk, fold_builtin_snprintf_chk): If len is
6370         not constant, but maxlen is, don't set len to maxlen, rather
6371         set maxlen to len if len is a constant.
6372
6373 2005-08-29  Zdenek Dvorak  <dvorakz@suse.cz>
6374
6375         PR tree-optimization/23475
6376         * tree-ssa-loop-ivcanon.c (remove_empty_loop): Update frequencies
6377         and counts.
6378
6379 2005-08-28  Daniel Berlin  <dberlin@dberlin.org>
6380
6381         Fix PR middle-end/22455
6382
6383         * fold-const.c (fold_checksum_tree): Adjust for now-largest tree size.
6384         Checksum only the parts of the tree that exist for the tree code.
6385
6386 2005-08-28  Dale Johannesen  <dalej@apple.com>
6387
6388         * config/i386/i386.c (nocona_cost):  Increase MOVE_RATIO.
6389
6390 2005-08-28  Andrew Pinski  <pinskia@physics.uc.edu>
6391
6392         * tree-vrp.c: Remove obsolete comment in front of vrp_initialize.
6393
6394 2005-08-28  Richard Henderson  <rth@redhat.com>
6395
6396         * stor-layout.c (finalize_type_size): Revert workaround from 08-26.
6397         * tree.c (make_node_stat): Use BITS_PER_UNIT instead of alignment
6398         of char_type_node.
6399
6400 2005-08-28  Jakub Jelinek  <jakub@redhat.com>
6401
6402         PR ada/23593
6403         * builtins.c (get_memory_rtx): Don't strip nops
6404         in between COMPONENT_REFs.
6405
6406 2005-08-27  Andrew Pinski  <pinskia@physics.uc.edu>
6407
6408         PR middle-end/23463
6409         * gimplify.c (gimplify_modify_expr_rhs): Remove check for zero sized
6410         types.
6411         (gimplify_modify_expr): Check for zero sized types and gimplify the
6412         rhs and lhs as statements.
6413
6414 2005-08-27  John David Anglin  <dave.anflin@nrc-cnrc.gc.ca>
6415
6416         PR libgcj/23508
6417         * pa/linux-unwind.h (pa32_fallback_frame_state): Use r0 slot in frame
6418         state for return address column of signal frames.
6419
6420 2005-08-27  David Edelsohn  <edelsohn@gnu.org>
6421
6422         PR target/23539
6423         * config/rs6000/rs6000.c (expand_block_clear): Use HImode when
6424         bytes >= 2 not bytes == 2.
6425         (expand_block_move): Same.
6426
6427 2005-08-27  Richard Guenther  <rguenther@suse.de>
6428
6429         PR target/23575
6430         * config/i386/sse.md (sse2_movsd): Add missing closing
6431         braces.
6432
6433 2005-08-27  Paul Brook  <paul@codesourcery.com>
6434
6435         * genrecog.c (enum decision_type): Add DT_num_insns.
6436         (struct decision_test): Add u.num_insns.
6437         (add_to_sequence): Add DT_num_insns test.
6438         (maybe_both_true_2, nodes_identical_1): Handle DT_num_insns.
6439         (write_cond, debug_decision_2): Ditto.
6440         (change_state): Assume peep2_next_insn never fails.
6441         Remove "afterward" argument.
6442         (write afterward, write_tree): Update to match.
6443         * recog.c (peep2_current_count): New variable.
6444         (peep2_next_insn): Check it.
6445         (peephole2_optimize): Set peep2_current_count.
6446         * recog.h (peep2_current_count): Declare.
6447
6448 2005-08-26  Josh Conner  <jconner@apple.com>
6449
6450         PR middle-end/23584
6451         * ipa-pure-const.c (check_tree): Check for volatile-ness
6452         when considering a dereference.
6453
6454 2005-08-27  Jakub Jelinek  <jakub@redhat.com>
6455
6456         * rtl.h (MEM_IN_STRUCT_P): Fix comment typo.
6457
6458 2005-08-26  Jakub Jelinek  <jakub@redhat.com>
6459
6460         PR rtl-optimization/23561
6461         * builtins.c (get_memory_rtx): Add LEN argument.  If MEM_EXPR is
6462         a COMPONENT_REF, remove all COMPONENT_REF from MEM_EXPR unless
6463         at most LEN bytes long memory fits into the field.
6464         (expand_builtin_memcpy, expand_builtin_mempcpy, expand_movstr,
6465         expand_builtin_strncpy, expand_builtin_memset, expand_builtin_memcmp,
6466         expand_builtin_strcmp, expand_builtin_strncmp): Adjust callers.
6467
6468 2005-08-26  Richard Henderson  <rth@redhat.com>
6469
6470         PR rtl-opt/23560
6471         * loop.c (biased_biv_may_wrap_p): New.
6472         (maybe_eliminate_biv_1): Use it to suppress non-equality
6473         comparison transformations.  Delete disabled code.
6474
6475 2005-08-26  Ian Lance Taylor  <ian@airs.com>
6476
6477         * combine.c (make_extraction): Avoid reference outside object.
6478
6479 2005-08-26  J"orn Rennecke <joern.rennecke@st.com>
6480
6481         * stor-layout.c (finalize_type_size): Restore behaviour for
6482         non-aggregate types to the status quo ante of the patch for
6483         pr 23467.  Document why it matters.
6484
6485 2005-08-26  Jakub Jelinek  <jakub@redhat.com>
6486
6487         PR c/23506
6488         * c-common.c (c_common_nodes_and_builtins): Increase builtin_types
6489         array by one element, initialize the BT_LAST element with NULL.
6490
6491 2005-08-26  David Edelsohn  <edelsohn@gnu.org>
6492
6493         * config/rs6000/rs6000.md (eq<mode>_compare): Only enable when
6494         optimizing for size.
6495         (plus_eqsi): Same.
6496         (compare_plus_eqsi): Same.
6497         (plus_eqsi_compare): Same.
6498         (neg_eq0<mode>): Same.
6499         (neg_eq<mode>): Same.
6500
6501         * config/rs6000/aix52.h (PROCESSOR_DEFAULT): Change to
6502         PROCESSOR_POWER4.
6503
6504 2005-08-26  Nick Clifton  <nickc@redhat.com>
6505
6506         * config/v850/v850.c (ep_memory_operand): Return FALSE if
6507         TARGET_EP is not defined.
6508         * config/v850/c850.h (TARGET_CPU_CPP_BUILTINS): Define __EP__ if
6509         TARGET_EP is enabled.
6510         (OPTIMIZATION_OPTIONS): Do not define MASK_EP when optimizing.
6511         * config/v850/v850.md (save_all_interrupt): Only use the EP
6512         register if TARGET_EP is defined.
6513         (restore_all_interrupt): Likewise.
6514         * config/v850/lib1funcs.asm: Update functions so that the EP
6515         register is only used if __EP__ is defined.
6516
6517 2005-08-26  David Ung  <davidu@mips.com>
6518
6519         * config/mips/mips.c (mips_expand_prologue): Handle case when
6520         generating for MIPS16 and the outgoing argument area is more than
6521         SMALL_OPERAND. Use the frame pointer as temporary to generate the
6522         add instruction.
6523
6524 2005-08-26  Paul Woegerer  <paul.woegerer@nsc.com>
6525
6526         * config/crx/crx.md: Make doloop_end pattern usage controllable
6527         via mloop-nesting=<max-nesting> command line switch. Make sure
6528         the combiner cannot use doloop_end_<mode> in an illegal way.
6529         * config/crx/crx.c: Use regs up to r6 for argument passing.
6530         Refine crx_address_cost (non cst4 displacements are expensive).
6531         * config/crx/crx.opt: Add switch for mloop-nesting=.
6532
6533 2005-08-26  Adrian Straetling  <straetling@de.ibm.com>
6534
6535         * config/s390/s390.md: ("movstr", "*movstr"): Add patterns.
6536         (UNSPEC_MVST): New constant.
6537
6538 2005-08-26  Andreas Krebbel  <krebbel1@de.ibm.com>
6539
6540         * config/s390/predicates.md ("shift_count_operand", "setmem_operand"):
6541         Reject operands containing eliminable registers.
6542         * testsuite/gcc.dg/20050825-1.c: New testcase.
6543
6544 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
6545             Jan Hubicka  <jh@suse.cz>
6546
6547         * regmove.c (reg_is_remote_constant_p): Reorganize to not use log links.
6548
6549 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
6550
6551         PR tree-optimization/23546
6552         * tree-ssa-loop-im.c (for_each_index): Handle INTEGER_CST
6553         and REAL_CST nodes.
6554
6555 2005-08-24  Pete Steinmetz  <steinmtz@us.ibm.com>
6556
6557         * params.def (PARAM_MIN_SPEC_PROB): New.
6558         * sched-rgn.c (MIN_PROBABILITY): Delete.
6559         (compute_trg_info): Convert to PARAM_VALUE.
6560         * doc/invoke.texi (param): Document min-spec-prob.
6561
6562 2005-08-24  Fariborz Jahanian <fjahanian@apple.com>
6563
6564         * config/darwin.h: define __PIC__
6565         * config/rs6000/darwin.h: Add SUBTARGET_OS_CPP_BUILTINS to
6566         TARGET_OS_CPP_BUILTINS macro.
6567
6568 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
6569
6570         * config/rs6000/rs6000.md: Fix thinko in the peephole2 I added
6571         yesterday.
6572
6573 2005-08-24  Zdenek Dvorak  <dvorakz@suse.cz>
6574
6575         * bb-reorder.c (copy_bb, duplicate_computed_gotos): Add argument
6576         to duplicate_block.
6577         * cfghooks.c (duplicate_block): Added position where to place
6578         new block as argument.
6579         * cfghooks.h (duplicate_block): Declaration changed.
6580         * cfglayout.c (copy_bbs): Add argument after.  Pass it to
6581         duplicate_block.
6582         * cfglayout.h (copy_bbs): Declaration changed.
6583         * cfgloop.h (loop_version): Declaration changed.
6584         * cfgloopmanip.c (duplicate_loop_to_header_edge): Pass
6585         position to copy_bbs.
6586         (loop_version): Pass position to duplicate_loop_to_header_edge.
6587         Add place_after argument and position new blocks according to
6588         it.
6589         * modulo-sched.c (sms_schedule): Pass place_after argument
6590         to loop_version.
6591         * tracer.c (tail_duplicate): Pass argument to duplicate_block.
6592         * tree-cfg.c (split_edge_bb_loc): New function.
6593         (tree_split_edge, tree_duplicate_sese_region): Use split_edge_bb_loc
6594         to determine position of new blocks.
6595         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass argument
6596         to loop_version.
6597         * tree-ssa-threadupdate.c (create_block_for_threading): Pass
6598         argument to duplicate_block.
6599         * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg):
6600         Pass position to copy_bbs.
6601
6602 2005-08-24  Zdenek Dvorak  <dvorakz@suse.cz>
6603
6604         * fold-const.c (ptr_difference_const): Use
6605         cst_and_fits_in_hwi instead of host_integerp.
6606
6607 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
6608
6609         * config/darwin.c (gen_pic_offset): New.
6610         (machopic_indirect_data_reference,  machopic_legitimize_pic_address):
6611         Use it.
6612
6613 2005-08-23  Zdenek Dvorak  <dvorakz@suse.cz>
6614
6615         PR tree-optimization/23486
6616         * tree-ssa-loop.c (pass_scev_cprop): Add TODO_update_ssa_only_virtuals.
6617
6618 2005-08-23  Phil Edwards  <phil@codesourcery.com>
6619
6620         * config.gcc (*-*-vxworks*):  Update tm_file, add extra_options,
6621         remove use_collect2.
6622         (powerpc-wrs-vxworks):  Update, split out *-*-vxworksae target.
6623
6624         * target-def.h (TARGET_HAVE_CTORS_DTORS):  Allow target
6625         configuration files to override the default value.
6626
6627         * config/t-vxworks:  Remove INSTALL_ASSERT_H.  Define STMP_FIXPROTO,
6628         EXTRA_HEADERS, and EXTRA_MULTILIB_PARTS.
6629         * config/vx-common.h:  New file, split out from...
6630         * config/vxworks.h:  here.  Update for VxWorks 6.x and RTP mode.
6631         * config/vxworksae.h:  New file, for VxWorks AE.
6632         * config/vxworks.opt:  New file.
6633         * config/vxlib.c:  Update for VxWorks 6.
6634
6635         * config/rs6000/t-vxworks (MULTILIB_OPTIONS):  New list.  Adjust
6636         other MULTILIB_* variables appropriately.
6637         (LIB2FUNCS_EXTRA, EXTRA_MULTILIB_PARTS):  Correct from t-ppccomm.
6638         * config/rs6000/t-vxworksae:  New file, adjust multilibs for AE.
6639         * config/rs6000/vxworks.h:  Update for VxWorks 6.
6640         * config/rs6000/vxworksae.h:  New file, mostly placeholder for now.
6641
6642 2005-08-23  Andrew Pinski  <pinskia@physics.uc.edu>
6643
6644         PR target/20799
6645         * config/darwin.c (machopic_select_section): Remove the hack to
6646         mark "::operator new" and "::operator delete" for coalescing
6647         even though they are not weak.
6648
6649 2005-08-24  Alan Modra  <amodra@bigpond.net.au>
6650
6651         * configure.ac (HAVE_LD_NO_DOT_SYMS): Set for powerpc-linux biarch.
6652         * configure: Regenerate.
6653
6654 2005-08-23  Paolo Bonzini  <bonzini@gnu.org>
6655
6656         PR middle-end/23517
6657         * fold-const.c (fold_convert): Use VIEW_CONVERT_EXPR to convert
6658         between vectors.
6659         * convert.c (convert_to_integer, convert_to_vector): Likewise.
6660         * tree-vect-generic.c (tree_vec_extract, expand_vector_operations_1):
6661         Likewise.
6662
6663 2005-08-23  Paolo Bonzini  <bonzini@gnu.org>
6664
6665         * config/rs6000/predicates.md (equality_operator): New.
6666         * config/rs6000/rs6000.md: Rewrite as a peephole2 the split for
6667         comparison with a large constant.
6668
6669 2005-08-23  Mark Mitchell  <mark@codesourcery.com>
6670
6671         * hwint.h (HOST_WIDE_INT_PRINT): Use HOST_LONG_LONG_FORMAT.
6672
6673 2005-08-23  J"orn Rennecke <joern.rennecke@st.com>
6674
6675         * sh.c (sh_builtin_saveregs): If the number of to-be-saved fp
6676         registers is even, and we have a hardware double precision fp,
6677         align the buffer.
6678         (sh_gimplify_va_arg_expr): For floating point arguments, consider
6679         size of current argument when checking if argument was passed in
6680         registers.
6681
6682         * sh.c (sh_attr_renesas_p): Handle error_mark_node.
6683
6684         PR middle-end/23467
6685         * stor-layout.c (finalize_type_size): Dont override
6686         existing alignment with a smaller alignment from the mode.
6687
6688 2005-08-23  Sebastian Pop  <pop@cri.ensmp.fr>
6689
6690         * lambda-code.c (lambda_vector_lexico_pos): Moved...
6691         * lambda.h (lambda_vector_lexico_pos): ... here.
6692         * tree-data-ref.c (build_classic_dist_vector): Return false when
6693         the distance vector is lexicographically negative.
6694
6695 2005-08-23  Sebastian Pop  <pop@cri.ensmp.fr>
6696
6697         PR tree-optimization/23511
6698         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Don't
6699         handle cases where TYPE_MIN_VALUE or TYPE_MAX_VALUE are NULL_TREE.
6700
6701 2005-08-23  Jakub Jelinek  <jakub@redhat.com>
6702
6703         PR tree-optimization/22043
6704         * tree.h (count_type_elements): Add ALLOW_FLEXARR argument.
6705         * expr.c (count_type_elements): Add ALLOW_FLEXARR argument.
6706         If ALLOW_FLEXARR, handle types ending with flexible array member.
6707         Pass false as second argument to recursive count_type_elements calls.
6708         (categorize_ctor_elements_1, mostly_zeros_p): Pass false as second
6709         argument to count_type_elements call.
6710         * tree-sra.c (decide_block_copy): Likewise.
6711         * gimplify.c (gimplify_init_constructor): If num_type_elements < 0
6712         for a constant-sized object, set cleared as well.  Pass true as
6713         second argument to count_type_elements call.
6714
6715 2005-08-23  Alan Modra  <amodra@bigpond.net.au>
6716
6717         PR target/21571
6718         * config/rs6000/rs6000.c (rs6000_legitimate_small_data_p): Rename
6719         from legitimate_small_data_p, and make global.  Update use.
6720         Remove forward declaration.
6721         * config/rs6000/rs6000-protos.h (rs6000_legitimate_small_data_p):
6722         Declare.
6723         * config/rs6000/rs6000.md (movdf_hardfloat32): Allow small data mems.
6724
6725 2005-08-23  David Edelsohn  <edelsohn@gnu.org>
6726
6727         * config/rs6000/rs6000.md (eq<mode>): Use output operand instead
6728         of scratch intermediates.
6729         (eq<mode>_compare): Same.
6730         (neg_eq0<mode>): New.
6731         (neg_eq<mode>): Convert to define_insn_and_split.
6732
6733 2005-08-23  Alan Modra  <amodra@bigpond.net.au>
6734
6735         PR target/23070
6736         * config/rs6000/rs6000.c (function_arg): For ABI_V4 calls to
6737         stdarg functions, set/clear the fp marker even when no variable
6738         args are passed.
6739         * config/rs6000/sysv4.opt (mprototype): Describe.
6740
6741 2005-08-22  Jakub Jelinek  <jakub@redhat.com>
6742
6743         PR rtl-optimization/23478
6744         * regs.h (reg_info): Add throw_calls_crossed.
6745         (REG_N_THROWING_CALLS_CROSSED): Define.
6746         * flow.c (allocate_reg_life_data): Initialize
6747         REG_N_THROWING_CALLS_CROSSED.
6748         (propagate_one_insn, attempt_auto_inc): Update
6749         REG_N_THROWING_CALLS_CROSSED.
6750         * global.c (global_alloc): Don't allocate pseudos across
6751         calls that may throw.
6752
6753 2005-08-22  Andrew Pinski  <pinskia@physics.uc.edu>
6754
6755         PR c/18715
6756         * c-common.c (c_do_switch_warnings): Look for a node where the enum's
6757         value is inbetween the range if we did not find an exact match.
6758
6759 2005-08-22  Aldy Hernandez  <aldyh@redhat.com>
6760
6761         * doc/invoke.texi (Option Summary): Add ms1 options.
6762         * doc/extend.texi: Document interrupt handler attribute for ms1.
6763         * doc/md.texi: Document ms1 constraints.
6764         * config.gcc: Add ms1-*-elf.
6765         * config/ms1/ms1.h: New.
6766         * config/ms1/ms1.c: New.
6767         * config/ms1/ms1.md: New.
6768         * config/ms1/ms1-protos.h: New.
6769         * config/ms1/ABI.txt: New.
6770         * config/ms1/crti.asm: New.
6771         * config/ms1/crtn.asm: New.
6772         * config/ms1/lib2extra-funcs.c: New.
6773         * config/ms1/t-ms1: New.
6774         * config/ms1/ms1.opt: New.
6775
6776 2005-08-22 Ira Rosen <irar@il.ibm.com>
6777
6778         * config/rs6000/altivec.md (xorv4sf3): New.
6779         (negv4sf2, neg<mode>2): Likewise.
6780
6781 2005-08-21  H.J. Lu  <hongjiu.lu@intel.com>
6782
6783         PR target/23485
6784         * config/ia64/ia64.md (divsi3): Check divide by zero.
6785         (udivsi3): Likewise.
6786         (divdi3): Likewise.
6787         (udivdi3): Likewise.
6788
6789 2005-08-21  Jakub Jelinek  <jakub@redhat.com>
6790
6791         * simplify-rtx.c (simplify_immed_subreg) <case CONST_DOUBLE>: Only clear
6792         up to elem_bitsize bits, not max_bitsize.
6793
6794 2005-08-21  Sebastian Pop  <pop@cri.ensmp.fr>
6795
6796         PR tree-optimization/23433
6797         * tree-chrec.c (chrec_apply): Translate INTEGER_CST to a
6798         REAL_CST when the type is SCALAR_FLOAT_TYPE_P.
6799
6800 2005-08-21  Sebastian Pop  <pop@cri.ensmp.fr>
6801
6802         PR tree-optimization/23434
6803         * tree-ssa-loop-niter.c (proved_non_wrapping_p): Give up when
6804         the iteration bound is not an INTEGER_CST.
6805
6806 2005-08-21  Dorit Nuzman  <dorit@il.ibm.com>
6807
6808         * tree-vect-transform.c (get_initial_def_for_reduction): Set
6809         need_epilog_adjust back to false for MIN/MAX case. Set *scalar_def to
6810         NULL if need_epilog_adjust is false.
6811         (vect_create_epilog_for_reduction): Variable adjust_in_epilog removed.
6812         Case 3 always peels first itration, not just for PLUS case, and no need
6813         to use scalar_initial_def here. Create an epilog adjustment only if
6814         scalar_initial_def is not NULL.
6815
6816         (vectorizable_reduction): Remove assert.
6817
6818 2005-08-20  H.J. Lu  <hongjiu.lu@intel.com>
6819
6820         PR target/23485
6821         * config/ia64/lib1funcs.asm (__divdi3): Check divide by zero.
6822         (__moddi3): Likewise.
6823         (__udivdi3): Likewise.
6824         (__umoddi3): Likewise.
6825         (__divsi3): Likewise.
6826         (__modsi3): Likewise.
6827         (__udivsi3): Likewise.
6828         (__umodsi3): Likewise.
6829
6830 2005-08-20  Jakub Jelinek  <jakub@redhat.com>
6831
6832         * tree-pass.h (TDF_GRAPH): Define.
6833         * tree-dump.c (dump_options): Don't set TDF_GRAPH in "all".
6834         * passes.c (finish_optimization_passes): Only call
6835         finish_graph_dump_file if TDF_GRAPH is set.
6836         (execute_one_pass): Only call clean_graph_dump_file if dump_file !=
6837         NULL.  Set TDF_GRAPH bit.
6838         (execute_todo): Call print_rtl_graph_with_bb if TDF_GRAPH is set.
6839
6840 2005-08-20  Richard Earnshaw  <richard.earnshaw@arm.com>
6841
6842         * arm.h (arm_stack_offsets): Add locals_base field.
6843         * arm.c (arm_get_frame_offsets): Compute it.
6844         (thumb_compute_initial_elimination offset): Make the Thumb frame
6845         pointer point to the base of the local variables.
6846         (thumb_expand_prologue): Update accordingly.
6847         (thumb_expand_epilogue): Likewise.
6848
6849         * arm.md (thumb_movhi_clobber): Make this insn a define_expand.  Change
6850         mode of clobbered scratch to DImode.  Handle a case that's known to
6851         need this.
6852
6853 2005-08-19  David Edelsohn  <edelsohn@gnu.org>
6854
6855         * config/rs6000/rs6000.md (gt0<mode>): Delete.
6856         (gt0<mode>_compare): Delete.
6857         (neg_gt0<mode>): Delete.
6858
6859 2005-08-19  Eric Christopher  <echristo@apple.com>
6860
6861         * optabs.h: Change CTI_ to COI_.
6862         * optabs.c: Ditto.
6863
6864 2005-08-19  James E Wilson  <wilson@specifix.com>
6865
6866         * builtins.c (expand_builtin_return_addr): Set
6867         current_function_accesses_prior_frames when count != 0.  Use
6868         frame_pointer_rtx when count == 0.
6869         * function.h (struct function): Add accesses_prior_frames field.
6870         (current_function_accesses_prior_frames): Define.
6871         * reload1.c (init_elim_table): Check
6872         current_function_accesses_prior_frames.
6873         * doc/tm.texi (INITIAL_FRAME_ADDRESS_RTX): Update docs.
6874
6875 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
6876
6877         * tree-cfgcleanup.c (cleanup_tree_cfg): Fix flowgraph change
6878         indicator.  Return true if the flowgraph changed during
6879         cleanup.
6880
6881 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
6882
6883         PR 23476
6884         * tree-cfgcleanup.c (cleanup_control_expr_graph): Fold the
6885         conditional expression before testing its value.
6886
6887 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
6888
6889         * doc/invoke.texi: Fix documentation for -ftree-dominator-opts.
6890
6891 2005-08-19  Devang Patel  <dpatel@apple.com>
6892
6893         PR tree-optimization/23048
6894         * tree-if-conv.c (if_convertible_bb_p): Supply basic_block as
6895         third parameter. Check whether latch is dominated by exit
6896         block or not.
6897         (if_convertible_loop_p): Supply exit block itself to
6898         if_convertible_bb_p.
6899
6900 2005-08-19  Richard Earnshaw  <richard.earnshaw@arm.com>
6901
6902         PR target/23473
6903         * arm.md (arm_load_pic_register): Change argument to the mask of
6904         saved registers.  Call thumb_find_work_register if we need a
6905         scratch register on Thumb.
6906         (arm_expand_prologue): Pass empty register set to
6907         arm_load_pic_register.
6908         (thumb_expand_prologue): Pass live_regs_mask directly to
6909         arm_load_pic_register.
6910         * arm-protos.h (arm_load_pic_register): Update prototype.
6911
6912 2005-08-19  J"orn Rennecke <joern.rennecke@st.com>
6913
6914         * sh.c (find_sole_member): New function.
6915         (sh_gimplify_va_arg_expr): Use it. Allow RECORD_TYPE mode mismatch
6916         if the record's alignment is larger than the size of its only member.
6917
6918 2005-08-19  Richard Earnshaw  <richard.earnshaw@arm.com>
6919
6920         PR target/23436
6921         * arm.c (thumb_legitimize_reload_address): New function.
6922         * arm-protos.h (thumb_legitimize_reload_address): Add prototype.
6923         * arm.h (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Call it.
6924
6925 2005-08-19  Paul Woegerer  <paul.woegerer@nsc.com>
6926
6927         * config/crx/crx.c: Implement crx_decompose_address. Reject
6928         symbolic displacements since CRX register relative adressing
6929         mode can't handle unsigned 32-bit values as displacements.
6930         * config/crx/crx.h: Simplify definitions, remove redundant
6931         parenthesis and obsolete macros.
6932         * config/crx/crx.opt: Add new switch for debugging addresses.
6933         * config/crx/crx-protos.h: Add new declarations for above.
6934
6935 2005-08-19  Andrew Pinski  <pinskia@physics.uc.edu>
6936
6937         PR middle-end/20624
6938         * gimple-low.c (block_may_fallthru): Handle CLEANUP_POINT_EXPR by
6939         looking past it.
6940
6941 2005-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6942
6943         * collect2.c (dup2): Delete.
6944         * configure.ac: Don't check for dup2.
6945
6946         * config.in, configure: Regenerate.
6947
6948 2005-08-18  J"orn Rennecke <joern.rennecke@st.com>
6949
6950         * sh.c (sh_gimplify_va_arg_expr): Loop to substitute a RECORD_TYPE
6951         record with the type of its only member.
6952
6953 2005-08-18  David Edelsohn  <edelsohn@gnu.org>
6954
6955         * config/rs6000/rs6000.md (ltu<mode>_compare): Convert to
6956         define_insn_and_split.
6957         (plus_ltu<mode>_compare): Same.
6958         (gtu<mode>_compare): Same.
6959         (plus_gtu<mode>_compare): Same.
6960
6961 2005-08-18  Dorit Nuzman  <dorit@il.ibm.com>
6962
6963         PR tree-optimization/22228
6964         * tree-ssa-loop (pass_vectorize): Add TODO_verify_loops to
6965         todo_flags_start.
6966         * tree-vect-transform.c (vect_transform_loop): Mark the variables that
6967         are recorded in vect_vnames_to_rename for renaming.
6968         * tree-vectorizer.c (vect_vnames_to_rename): New global bitmap.
6969         (slpeel_update_phi_nodes_for_guard1): Record virtual vars for renaming
6970         in vect_vnames_to_rename.
6971         (vectorize_loops): Allocate and free the vect_vnames_to_rename bitmap.
6972         * tree-vectorizer.h (vect_vnames_to_rename): New extern variable.
6973
6974 2005-08-18  Jan Hubicka  <jh@suse.cz>
6975
6976         PR c++/22034
6977         * cgraphunit.c (cgraph_varpool_assemble_pending_decls): Emit debug
6978         info only for local statics, not for member variables.
6979
6980 2005-08-18  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
6981
6982         * tree-data-ref.c (analyze_siv_subscript_cst_affine): Fix comment typo.
6983
6984 2005-08-18  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
6985
6986         * c-typeck.c (designator_errorneous): Rename to designator_erroneous.
6987
6988 2005-08-18  Andrew Pinski  <pinskia@physics.uc.edu>
6989
6990         PR middle-end/16045
6991         * builtins.c (fold_builtin): Create a new NOP_EXPR all the time.
6992
6993 2005-08-17  James E Wilson  <wilson@specifix.com>
6994
6995         * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
6996         array size check.
6997
6998 2005-08-17  David Edelsohn  <edelsohn@gnu.org>
6999
7000         * config/rs6000/rs6000.md (leu<mode>): Convert to mode macro.
7001         (leu<mode>_compare): Same.
7002         (plus_leu<mode>): Same.
7003         (neg_leu<mode>): Same.
7004         (and_neg_leu<mode): Same.
7005         (ltu<mode>_compare): Same.
7006         (plus_ltu<mode>): Same.
7007         (geu<mode>): Same.
7008         (geu<mode>_compare): Same.
7009         (plus_geu<mode>): Same.
7010         (neg_geu<mode>): Same.
7011         (and_neg_geu<mode>): Same.
7012         (plus_gt<mode>): Same.
7013         (gtu<mode>_compare): Same.
7014         (plus_gtu<mode>): Same.
7015
7016 2005-08-17  Erik Christiansen  <erik@dd.nec.com.au>
7017
7018         * config/v850/lib1funcs.asm (callt_save_interrupt): Fix comment typos.
7019         Move call_table_data to end.  Delete spurious .text.
7020         (callt_save_all_interrupt): Fix comment typo.
7021
7022 2005-08-17  James E Wilson  <wilson@specifix.com>
7023             Kevin Winchester  <winchester@amirix.com>
7024
7025         PR target/21684
7026         * config/mcore/mcore.h (SHIFT_COUNT_TRUNCATED): Define to 0.
7027
7028 2005-08-17  Uros Bizjak  <uros@kss-loka.si>
7029
7030         PR target/23268
7031         * config/i386/i386.md ("*fist<mode>2_1"): New pattern.
7032         ("lrint<mode>2"): Change expander to use "*fist<mode>2_1" pattern.
7033
7034 2005-08-17  J"orn Rennecke <joern.rennecke@st.com>
7035
7036         * sh.c (sh_gimplify_va_arg_expr): Don't substitute a RECORD_TYPE
7037         record with the type of its only member if the modes don't match.
7038
7039         * varasm.c (decode_reg_name): Skip empty additional register names.
7040
7041 2005-08-16  Zdenek Dvorak  <dvorakz@suse.cz>
7042
7043         * tree-ssa-loop-im.c (MAX_LSM_NAME_LENGTH, lsm_tmp_name,
7044         lsm_tmp_name_length): New.
7045         (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): New functions.
7046         (schedule_sm): Use get_lsm_tmp_name instead of "lsm_tmp".
7047
7048 2005-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7049             Andreas Krebbel  <krebbel1@de.ibm.com>
7050
7051         * config.gcc: Added z9-109 switch.
7052         * config/s390/2084.md ("x_int", "x_agen", "x_lr", "x_la", "x_larl",
7053         "x_load", "x_store", "x_branch", "x_call", "x_mul_hi", "x_mul_sidi",
7054         "x_div", "x_sem", "x_cs", "x_vs", "x_stm", "x_lm", "x_other",
7055         "x_fsimpdf", "x_fsimpsf", "x_fdivdf", "x_fdivsf", "x_floaddf",
7056         "x_floadsf", "x_fstore_df", "x_fstoresf", "x_ftoi", "x_itof"): Enable
7057         for "z9_109" cpu attribute.
7058         * config/s390/s390.c (z9_109_cost): New processor cost structure.
7059         (CONST_OK_FOR_Os, CONST_OK_FOR_Op, CONST_OK_FOR_On): New macros.
7060         (s390_handle_arch_option): Added z9-109 switch.
7061         (override_options): Set respective cost function for z9-109.
7062         (s390_const_ok_for_constraint_p): New constraints Os, Op, On.
7063         (legitimate_reload_constant_p): Accept extended immediates.
7064         (print_operand): Three new output modifiers added: k, m and o.
7065         (s390_adjust_priority, s390_issue_rate): Handle Z9_109 like Z990.
7066         (s390_output_mi_thunk): Use extended immediate when possible.
7067         * config/s390/s390.h (processor_flags): Added PF_EXTIMM.
7068         (TARGET_CPU_EXTIMM, TARGET_EXTIMM): New macros.
7069         (CONSTRAINT_LEN): Added length of O constraint.
7070         (CLZ_DEFINED_VALUE_AT_ZERO): Definition added.
7071         * config/s390/s390.md ("cpu"): New value z9_109 added.
7072         ("*tstdi_extimm", "*tstdi_ccconly_extimm", "*tstsi_extimm",
7073         "*tstsi_cconly_extimm", "*movdi_64extimm", "*extendhidi2_extimm",
7074         "*extendqidi2_extimm", "*extendhisi2_extimm", "*extendqisi2_extimm",
7075         "*zero_extend<mode>si2_extimm", "*anddi3_extimm", "*iordi3_extimm",
7076         "*xordi3_extimm", "clzdi2", "clztidi2"): New patterns.
7077         ("*tstdi", "*tstsi", "*movdi_64", "*extendhisi2", "*extendqisi2",
7078         "*zero_extend<mode>si2_64", "zero_extendqihi2", "*zero_extendqihi2_64",
7079         "*anddi3", "*iordi3", "*xordi3"): Disable for TARGET_EXTIMM.
7080         ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs", "*cmpsi_ccs", "*cmpdi_ccu",
7081         "*cmpsi_ccu", "*movsi_zarch", "*adddi3_imm_cc", "*adddi3_carry1_cc",
7082         "*adddi3_carry2_cc", "*adddi3_cc", "*adddi3_64", "*addsi3_imm_cc",
7083         "*addsi3_carry1_cc", "*addsi3_carry2_cc", "*addsi3_cc", "addsi3",
7084         "*andsi3_cc", "*andsi3_cconly", "*andsi3_zarch", "*iorsi3_cc",
7085         "*iorsi3_cconly", "*iorsi3_zarch", "*xorsi3_cc", "*xorsi3_cconly",
7086         "*xorsi3", "*xorhi3", "*xorqi3"): Added instruction using extended
7087         immediates.
7088         ("extend<mode>di2", "extend<mode>si2", "zero_extend<mode>di2",
7089         "zero_extend<mode>si2"): Allow memory operands and don't manually emit
7090         insns for TARGET_EXTIMM.
7091
7092 2005-08-17  Andreas Krebbel  <krebbel1@de.ibm.com>
7093
7094         * testsuite/gcc.dg/20020926-1.c: Added "-mesa" to dg-options.
7095
7096 2005-08-17  Nick Clifton  <nickc@redhat.com>
7097
7098         * config/stormy16/stormy16.c (xstormy16_encode_section_info):
7099         Call default_encode_section_info.
7100
7101 2005-08-17  Steven Bosscher  <stevenb@suse.de>
7102
7103         PR tree-optimization/21574
7104         * tree-ssa-ccp.c (likely_value): If the right hand side is a
7105         constant, return CONSTANT.
7106         (ccp_lattice_meet): Use operand_equal_p instead of simple_cst_equal.
7107         (ccp_fold, visit_assignment): Likewise.
7108         (evaluate_stmt): Handle UNDEFINED and UNKNOWN_VAL the same way.
7109
7110 2005-08-16  James A. Morrison  <phython@gcc.gnu.org>
7111
7112         * c-typeck.c (build_function_call): Call fold_buildN_initializer or
7113         fold_buildN instead of buildN then fold_initializer or fold.
7114         (build_unary_op): Likewise.
7115         (build_binary_op): Likewise.
7116         * fold-const.c (fold_initializer): Remove.
7117         (fold_build1_initializer): New function.
7118         (fold_build2_initializer): New function.
7119         (fold_build3_initializer): New function.
7120         * tree.h (fold_initializer): Remove.
7121         (fold_build1_initializer): New function.
7122         (fold_build2_initializer): New function.
7123         (fold_build3_initializer): New function.
7124
7125 2005-08-16  James A. Morrison  <phython@gcc.gnu.org>
7126
7127         * fold-const.c (optimize_bit_field_compare): Remove extra fold call.
7128         (try_move_mult_to_index): Call fold_build2 instead of build2.
7129         (fold_binary): Don't call fold after calls to try_move_mult_to_index.
7130         * tree-ssa-loop-niter.c (inverse): Call int_const_binop instead of
7131         fold_binary_to_constant.
7132         (infer_loop_bounds_from_undefined): Call fold_build2 instead of
7133         fold (build.
7134         * tree-data-ref.c (tree_fold_divides_p): Use tree_int_cst_equal to
7135         check if A == gcd (A, B).  Remove TYPE argument.
7136         (analyze_offset) Use fold_build2 instead of fold (build.
7137         (create_data_ref): Likewise.
7138         (analyze_siv_subscript_cst_affine): Update calls to tree_fold_divides_p.
7139         * tree-ssa-ccp.c (widen_bitfield): Call fold_build2 instead of build2
7140         then fold.
7141
7142 2005-08-17  Kelley Cook  <kcook@gcc.gnu.org>
7143
7144         * config/arm/unaligned-funcs.c,config/i386/crtfastmath.c,
7145         ipa-cp.c,ipa-prop.c,ipa-prop.h: Update FSF address.
7146
7147 2005-08-16  Andrew Pinski  <pinskia@physics.uc.edu>
7148
7149         PR tree-opt/23402
7150         * gimplify.c (zero_sized_type): New function.
7151         (gimplify_modify_expr_rhs): If we have a zero sized type,
7152         replace the statement with an empty statement.
7153
7154 2005-08-16  H.J. Lu  <hongjiu.lu@intel.com>
7155
7156         * config/i386/crtfastmath.c (set_fast_math): Add "=m" for
7157         fxsave.
7158
7159 2005-08-16  Ian Lance Taylor  <ian@airs.com>
7160
7161         * doc/tm.texi (Label Output): Correct typo.
7162
7163 2005-08-16  Steven Bosscher  <stevenb@suse.de>
7164
7165         PR target/23376
7166         * loop-unroll.c (analyze_insn_to_expand_var): Make sure that
7167         force_operand will work later on using have_insn_for.
7168
7169 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
7170
7171         * fold-const.c (tree_expr_nonnegative_p): Regroup cases.
7172
7173 2005-08-16  Ian Lance Taylor  <ian@airs.com>
7174
7175         PR c++/23337
7176         * gimplify.c (gimplify_init_ctor_eval): If we see an element of
7177         vector type, don't try to construct it element by element.  Add an
7178         assertion that we use a FIELD_DECL when building a COMPONENT_REF.
7179
7180 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
7181
7182         * fold-const.c (fold_ternary): Simplify folding of a CALL_EXPR.
7183
7184 2005-08-16  Geoffrey Keating  <geoffk@apple.com>
7185
7186         * doc/invoke.texi (Precompiled Headers): Document some more options
7187         which are known to be safe.
7188
7189 2005-08-16  James E Wilson  <wilson@specifix.com>
7190
7191         PR tree-optimization/21105
7192         * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
7193         TREE_OVERFLOW check.
7194
7195 2005-08-16  David Edelsohn  <edelsohn@gnu.org>
7196
7197         * config/rs6000/rs6000.md (ltu<mode>): Convert to mode macro.
7198         (neg_ltu<mode>): Same.
7199         (gtu<mode>): Same.
7200         (neg_gtu<mode>): Same.
7201
7202 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
7203
7204         * builtins.c (expand_builtin_strcat): Remove superfluous call to fold.
7205         (fold_builtin_isdigit): Use fold_buildN.
7206         (build_function_call_expr): Likewise.
7207         * c-typeck.c (c_finish_loop): Likewise.
7208
7209 2005-08-16  J"orn Rennecke <joern.rennecke@st.com>
7210             Richard Shann <rshann@superh.com>
7211
7212         PR middle-end/20396:
7213         * optabs.c (expand_binop): Take TRULY_NOOP_TRUNCATION into account.
7214
7215 2005-08-16  Sebastian Pop  <pop@cri.ensmp.fr>
7216
7217         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Reword a comment.
7218
7219 2005-08-15  Richard Earnshaw  <richard.earnshaw@arm.com>
7220
7221         PR target/23355
7222         * arm.c (thumb_compute_save_reg_mask): Use similar logic to
7223         arm_compure_save_reg0_reg12_mask to determine when the PIC register
7224         must be saved.
7225
7226 2005-08-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7227
7228         PR middle-end/23369
7229         * fold-const.c (build_range_check): Disable optimization for function
7230         pointer expressions on targets that require function pointer
7231         canonicalization.
7232
7233 2005-08-15  Ulrich Weigand  <uweigand@de.ibm.com>
7234
7235         * simplify-rtx.c (simplify_const_relational_operation): When
7236         extracting arguments of a COMPARE, recompute the mode as well.
7237
7238 2005-08-15  Ian Lance Taylor  <ian@airs.com>
7239
7240         * tree.c (build_string): Mark tree CONSTANT and INVARIANT.
7241
7242 2005-08-15  DJ Delorie  <dj@redhat.com>
7243
7244         * config/m32c/mov.md (movqi_op): Immediates can't be moved to
7245         the stack.
7246         (movsi_splittable): Allow, but split, moves to the stack.
7247         * config/m32c/m32c.c (m32c_split_move): Always split moves to the
7248         stack.
7249
7250 2005-08-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7251
7252         * aclocal.m4 (gcc_AC_FUNC_PRINTF_PTR): Delete.
7253         * configure.ac: Don't call gcc_AC_FUNC_PRINTF_PTR.
7254         * system.h (HOST_PTR_PRINTF): Don't define, poison it.
7255
7256         * bitmap.c, c-decl.c, config/i386/i386-interix.h,
7257         config/iq2000/iq2000.c, mips-tfile.c, print-rtl.c, print-tree.c:
7258         Delete HOST_PTR_PRINTF.
7259
7260         * configure, config.in: Regenerate.
7261
7262 2005-08-15  David Edelsohn  <edelsohn@gnu.org>
7263
7264         * config/rs6000/rs6000.md (QHSI): New mode macro.
7265         (wd): Extend mode attr for QImode and HImode
7266         (dbits): New mode attr.
7267         (zero_extend<mode>di2): Convert to mode macro.
7268
7269 2005-08-15  Steve Ellcey  <sje@cup.hp.com>
7270
7271         PR target/21841
7272         * doc/invoke.texi (-mgnu-ld): Update description.
7273         (-mhp-ld): Ditto.
7274
7275 2005-08-15  Sebastian Pop  <pop@cri.ensmp.fr>
7276
7277         PR 23391
7278         * Makefile.in (tree-chrec.o): Depends on real.h.
7279         * tree-chrec.c: Include real.h.
7280         (chrec_fold_plus_poly_poly, chrec_fold_multiply_poly_poly,
7281         chrec_fold_plus_1): Use build_real for SCALAR_FLOAT_TYPE_P.
7282         * tree-scalar-evolution.c (add_to_evolution_1,
7283         interpret_rhs_modify_expr): Ditto.
7284
7285 2005-08-15  Sebastian Pop  <pop@cri.ensmp.fr>
7286
7287         PR 23386
7288         * tree-data-ref.c (estimate_niter_from_size_of_data): When
7289         step is negative compute the estimation from init downwards to zero.
7290
7291 2005-08-14  James A. Morrison  <phython@gcc.gnu.org>
7292
7293         * fold-const (fold_binary): Call fold_build2 instead of fold (build.
7294
7295 2005-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
7296
7297         * config/s390/s390.c (s390_const_ok_for_constraint_p): Add 'P'
7298         constraint.
7299         (legitimate_reload_constant_p): Fix handling of lliXX operands.
7300         Accept double-word constants that can be split.
7301         * config/s390/s390.md ("movti"): Use 'P' constraint.
7302         ("*movdi_31", "*movdf_31"): Likewise.
7303
7304 2005-08-14  Daniel Berlin  <dberlin@dberlin.org>
7305
7306         Fix PR tree-optimization/22615
7307
7308         * tree-ssa-structalias.c (solution_set_add): Handle
7309         first_vi_for_offset returning NULL.
7310         (do_da_constraint): Ditto.
7311         (do_sd_constraint): Ditto.
7312         (do_ds_constraint): Ditto
7313         (find_func_aliases): Ditto.
7314         (build_constraint_graph): RHS is allowed be ANYTHING.
7315         (first_vi_for_offset): Return NULL if we couldn't find anything at
7316         the offset.
7317
7318 2005-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
7319
7320         * config/s390/s390.c (s390_canonicalize_comparison): Prefer register
7321         over memory as first operand.
7322
7323 2005-08-14  H.J. Lu  <hongjiu.lu@intel.com>
7324
7325         PR target/23360
7326         * config/i386/crtfastmath.c (set_fast_math): Check if DAZ is
7327         available for setting it.
7328
7329 2005-08-14  Ira Rosen  <irar@il.ibm.com>
7330
7331         PR tree-optimization/23320
7332         * tree-data-ref.c (base_addr_differ_p): Add comment. Check
7333         data-refs' types instead of base object nullness. Add check for
7334         pointer type data-refs before first location comparison. Remove
7335         assert.
7336
7337 2005-08-14  Andreas Schwab  <schwab@suse.de>
7338
7339         * doc/md.texi (Machine Constraints): Fix misplaced @end table.
7340
7341 2005-08-13  James E Wilson  <wilson@specifix.com>
7342
7343         * doc/cpp.texi (__SSP__, __SSP_ALL__): Document.
7344         * doc/invoke.texi (-Wstack-protector, -fstack-protector,
7345         -fstack-protector-all, --param ssp-buffer-size): Document.
7346         (-Wvariadic-macros): Alphabetize.
7347         (-fsched-stalled-insns-dep): Add missing 'f'.
7348
7349         * c-cppbuiltin.c (c_cpp_builtins): Add comment for flag_stack_protect
7350         macros.
7351
7352 2005-08-13  David Edelsohn  <edelsohn@gnu.org>
7353
7354         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'a' for indexed
7355         or indirect address operand.
7356         (EXTRA_ADDRESS_CONSTRAINT): New.
7357         * config/rs6000/rs6000.md (prefetch): Change constraint "p" to "a".
7358
7359 2005-08-13  Sebastian Pop  <pop@cri.ensmp.fr>
7360
7361         PR tree-optimization/22236
7362         * tree-cfg.c (print_pred_bbs, print_succ_bbs): Correctly print
7363         successors and predecessors.
7364         * tree-chrec.c (chrec_convert): Before converting, check that
7365         sequences don't wrap.
7366         * tree-data-ref.c (compute_estimated_nb_iterations): Moved ...
7367         (analyze_array): Extern.
7368         (find_data_references_in_loop): Remove call to
7369         compute_estimated_nb_iterations.
7370         * tree-data-ref.h (analyze_array): Declared.
7371         * tree-flow-inline.h (single_ssa_tree_operand, single_ssa_use_operand,
7372         single_ssa_def_operand, zero_ssa_operands): Fix documentation.
7373         * tree-flow.h (scev_probably_wraps_p): Declare with an extra parameter.
7374         * tree-scalar-evolution.c (instantiate_parameters_1): Factor entry
7375         condition.
7376         * tree-ssa-loop-ivcanon.c: Fix documentation.
7377         * tree-ssa-loop-ivopts.c (idx_find_step): Add a fixme note.
7378         * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): ... here.
7379         (infer_loop_bounds_from_undefined): New.
7380         (estimate_numbers_of_iterations_loop): Use
7381         infer_loop_bounds_from_undefined.
7382         (used_in_pointer_arithmetic_p): New.
7383         (scev_probably_wraps_p): Pass an extra parameter.  Call
7384         used_in_pointer_arithmetic_p.  Check that AT_STMT is not null.
7385         (convert_step): Fix documentation.
7386         * tree-vrp.c (adjust_range_with_scev): Call instantiate_parameters.
7387         Use initial_condition_in_loop_num and evolution_part_in_loop_num
7388         instead of CHREC_LEFT and CHREC_RIGHT.  Adjust the call to
7389         scev_probably_wraps_p.
7390
7391 2005-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
7392
7393         * config/s390/s390.c (s390_split_branches): Revert 2005-08-12 change.
7394         (s390_register_info): Ignore clobbered_regs information for fixed
7395         registers, and only fixed registers.
7396         (s390_init_frame_layout): Remove redundant call.
7397
7398 2005-08-12  Gerald Pfeifer  <gerald@pfeifer.com>
7399
7400         * doc/invoke.texi (C++ Dialect Options): Add dynamic_cast to
7401         description of -Wold-style-casts.
7402
7403 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
7404             Jakub Jelinek  <jakub@redhat.com>
7405
7406         * config/s390/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
7407         * config/s390/s390-protos.h (s390_get_thread_pointer): Prototype added.
7408         * config/s390/s390.c (print_operand): New output modifier 'G' added.
7409         (get_thread_pointer): Renamed to s390_get_thread_pointer.
7410         * config/s390/s390.md (stack_protect_set, stack_protect_test): If
7411         TARGET_THREAD_SSP_OFFSET is defined, change operands[1] to
7412         (MEM:P (PLUS:P (tp, TARGET_THREAD_SSP_OFFSET))).
7413         (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
7414         ("stack_protect_set", "stack_protect_test"): New expanders.
7415         ("stack_protect_setsi", "stack_protect_setdi", "stack_protect_testsi",
7416         "stack_protect_testdi"): New insn definitions.
7417
7418 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
7419
7420         * config/s390/s390.md ("*movdf_31"): Changed constraint from P to K.
7421
7422 2005-08-12  Paul Brook  <paul@codesourcery.com>
7423
7424         * config/arm/lib1funcs.asm: Error if __ARM_ARCH__ not set.
7425
7426 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
7427
7428         * config/s390/predicates.md (setmem_operand): New predicate.
7429         (shift_count_operand): Accept ANDs with special constants as
7430         operand.
7431         * config/s390/s390.c (print_shift_count_operand): Skip ANDs
7432         with special constants.
7433         * config/s390/s390.md ("setmem_long", "*setmem_long"): Replaced
7434         shift_count_operand with setmem_operand.
7435
7436 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
7437
7438         * config/s390/s390.c (s390_extract_part, s390_single_part):
7439         Type cast added.
7440         (s390_const_ok_for_constraint_p): Added SImode to the N constraint.
7441         (s390_output_mi_thunk): Don't use lg on 31 bit.
7442         * config/s390/s390.md ("*movdi_31", "*movdf_31"): Added lmy and stmy.
7443         ("*llgt_sisi" and splitter): Replaced TARGET_64BIT with TARGET_ZARCH.
7444
7445 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
7446
7447         * config/s390/s390.c (CONST_OK_FOR_J, CONST_OK_FOR_K): New macros.
7448         (s390_select_ccmode, s390_rtx_costs, legitimate_reload_constant_p,
7449         s390_init_frame_layout, s390_emit_prologue, s390_emit_epilogue,
7450         s390_output_mi_thunk): Replaced uses of CONST_OK_FOR_CONSTRAINT_P
7451         with one of the new macros.
7452
7453 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
7454
7455         * config/s390/s390.c (s390_split_branches, s390_init_frame_layout):
7456         Don't set save_return_addr_p.
7457         (s390_register_info): Make clobbered_regs not depending on
7458         save_return_addr_p.
7459
7460 2005-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
7461
7462         * gcc.c (LINK_SSP_SPEC): Remove space before a trailing }.
7463         (LINK_COMMAND_SPEC): Add space after %(link_ssp).
7464
7465 2005-08-11  James E. Wilson  <wilson@specifix.com>
7466
7467         * config/ia64/ia64.h (EXTRA_MEMORY_CONSTRAINT): New.
7468
7469 2005-08-11  Jakub Jelinek  <jakub@redhat.com>
7470
7471         * dwarf2out.c (add_location_or_const_value_attribute): Prefer
7472         locations gathered by var-tracking in single entry loc_list
7473         over loc_descriptor_from_tree.
7474
7475         * dwarf2out.c (concat_loc_descriptor): Add can_use_fbreg argument,
7476         pass it down to loc_descriptor.
7477         (loc_descriptor): Pass can_use_fbreg to concat_loc_descriptor.
7478         (containing_function_has_frame_base): Move earlier in the file.
7479         (loc_descriptor_from_tree_1): Use containing_function_has_frame_base
7480         instead of always assuming fbreg can't be used.
7481
7482 2005-08-11  David Edelsohn  <edelsohn@gnu.org>
7483
7484         * config/rs6000/altivec.md: Change constraint "m" to "Z".
7485         * config/rs6000/predicates.md (indexed_or_indirect_operand):
7486         Accept address wrapped in AND for Altivec.
7487         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
7488         Strip AND wrapping offset address for Altivec.
7489
7490 2005-08-11  Richard Henderson  <rth@redhat.com>
7491
7492         PR middle-end/23312
7493         * gimplify.c (gimplify_one_sizepos): Check for INTEGER_TYPE
7494         before using TYPE_IS_SIZETYPE.
7495
7496 2005-08-11  Richard Henderson  <rth@redhat.com>
7497
7498         PR target/22225
7499         * config/alpha/alpha.c (alphaev4_insn_pipe): Add take pipes for
7500         insn types not present on ev4.
7501         (alphaev5_insn_pipe): Similarly.
7502
7503 2005-08-11  Richard Earnshaw  <richard.earnshaw@arm.com>
7504
7505         PR target/23250
7506         * arm.c (arm_override_options): If the user has selected callee-super-
7507         interworking, then enable normal interworking.
7508
7509 2005-08-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7510
7511         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Undef before
7512         redefinition.
7513
7514 2005-08-11  Wu Zhou  <woodzltc@cn.ibm.com>
7515
7516         * doc/rtl.texi: Fix two typos.
7517
7518 2005-08-11  Richard Guenther  <rguenther@suse.de>
7519
7520         PR target/23289
7521         * config/i386/i386.c (ix86_function_ok_for_sibcall): Handle
7522         cases where we call to/from functions returning void.
7523
7524 2005-08-10  James A. Morrison  <phython@gcc.gnu.org>
7525
7526         PR c++/23225
7527         * tree.c (build_pointer_type_for_mode): Robustify.
7528
7529 2005-08-10  James E Wilson  <wilson@specifix.com>
7530
7531         * defaults.h, config/alpha/alpha.h, config/ia64/ia64.h
7532         (ASM_OUTPUT_ADDR_VEC_ELT): Delete.
7533
7534         * config/alpha/alpha.c (alpha_arg_partial_bytes): Change "(CUM)." to
7535         "cum->".
7536
7537 2005-08-10  Eric Christopher  <echristo@apple.com>
7538
7539         * config/rs6000/rs6000.c (mems_ok_for_quad_peep): Rewrite.
7540         * config/rs6000/rs6000.md (*lfq_power2, *stfq_power2): Use
7541         V2DFmode.
7542
7543 2005-08-10  Andrew Pinski  <pinskia@physics.uc.edu>
7544
7545         PR target/21887
7546         * config/darwin.c (machopic_indirect_data_reference): Use a new register
7547         for the high part when generating dynamic-no-pic code.
7548
7549 2005-08-10  H.J. Lu  <hongjiu.lu@intel.com>
7550
7551         * config.gcc (i[34567]86-*-linux*): Add i386/t-crtfm to tm-file.
7552         (x86_64-*-linux*): Likewise.
7553
7554         * config/i386/crtfastmath.c: New file.
7555         * config/i386/t-crtfm: Likewise.
7556
7557         * config/i386/linux.h (ENDFILE_SPEC): New.
7558         * config/i386/linux64.h (ENDFILE_SPEC): Likewise.
7559
7560         * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
7561         crtfastmath.o.
7562
7563 2005-08-10  Dorit Nuzman  <dorit@il.ibm.com>
7564
7565         * doc/md.texi: (reduc_smin, reduc_umin, reduc_splus, reduc_uplus):
7566         (vec_shl, vec_shr): Document new operations.
7567         * tree.def (VEC_RSHIFT_EXPR, VEC_LSHIFT_EXPR): Fix comment.
7568
7569 2005-08-10  David Edelsohn  <edelsohn@gnu.org>
7570
7571         * config/rs6000/predicates.md (indexed_or_indirect_address): New.
7572         * config/rs6000/rs6000.md (prefetch): Remove operand 0 mode and
7573         change predicate to indexed_or_indirect_address.
7574
7575 2005-08-10  Richard Sandiford  <richard@codesourcery.com>
7576
7577         * config/arm/lib1funcs.asm (__aeabi_uidiv, __aeabi_idiv): New aliases.
7578         * config/arm/libgcc-bpabi.ver (GCC_3.5): Add __aeabi_idiv,
7579         __aeabi_uidiv, __aeabi_uread4, __aeabi_uread8, __aeabi_uwrite4
7580         and __aeabi_uwrite8.
7581         * config/arm/unaligned-funcs.c: New file.
7582         * config/arm/t-bpabi (LIB2FUNCS_EXTRA): Add unaligned-funcs.c.
7583
7584 2005-08-09  Paolo Bonzini  <bonzini@gnu.org>
7585
7586         * bb-reorder.c (pass_duplicate_computed_gotos, pass_partition_blocks):
7587         Add dump.
7588         * cfglayout.c (pass_insn_locators_initialize): Add dump.
7589         * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes):
7590         Add dump.
7591         * except.c (pass_convert_to_eh_region_ranges): Add dump.
7592         * final.c (pass_shorten_branches): Add dump.
7593         * flow.c (pass_recompute_reg_usage, pass_remove_death_notes): Add dump.
7594         (pass_life): Rename dump.
7595         (rest_of_handle_flow2): Remove initial verify_flow_info.
7596         * function.c (pass_instantiate_virtual_regs): Add dump.
7597         * integrate.c (pass_initial_value_sets): Add dump.
7598         * jump.c (pass_cleanup_barriers, pass_purge_lineno_notes): Add dump.
7599         * loop-init.c (pass_rtl_loop_init, pass_rtl_loop_done): Rename dump.
7600         (pass_rtl_move_loop_invariants, pass_rtl_unswitch, pass_rtl_doloop,
7601         pass_rtl_unroll_and_peel_loops): Rename dump and add gate.
7602         (gate_rtl_move_loop_invariants, gate_rtl_unswitch, gate_rtl_doloop,
7603         gate_rtl_unrool_and_peel_loops): New.
7604         (rtl_move_loop_invariants, rtl_unswitch, rtl_unrool_and_peel_loops,
7605         rtl_doloop): Do not look at flags.
7606         * mode-switching.c (pass_mode_switching): Add dump.
7607         * recog.c (pass_split_all_insns, pass_split_for_shorten_branches,
7608         pass_split_before_regstack): Add dump.
7609         * regmove.c (pass_stack_adjustments): Add dump.
7610         * tree-optimize.c (pass_fixup_cfg): Add dump.
7611
7612 2005-08-10  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
7613
7614         PR 23309
7615         * config/m32r/m32r.c (m32r_reload_lr): Fix off by one error when
7616         deciding which instruction sequence to use.
7617
7618 2005-08-09  Dorit Nuzman  <dorit@il.ibm.com>
7619
7620         * tree-vect-transform.c (vect_create_epilog_for_reduction): Set
7621         BIT_FIELD_REF_UNSIGNED for newly created BIT_FIELD_REFs.
7622
7623 2005-08-09  Richard Guenther  <rguenther@suse.de>
7624
7625         * c-common.c (builtin_function_2): Remove.
7626         (def_builtin_1): New function.
7627         (c_common_nodes_and_builtins): Use def_builtin_1 to
7628         build builtin functions.
7629
7630 2005-08-09  Jie Zhang  <jie.zhang@analog.com>
7631
7632         * config/bfin/uclinux.h (NO_IMPLICIT_EXTERN_C): Define.
7633         * config/bfin/elf.h (NO_IMPLICIT_EXTERN_C): Define.
7634         * config/bfin/bfin.c (bfin_return_in_memory): Update to really match
7635         Visual DSP.
7636
7637 2005-08-09  James A. Morrison  <phython@gcc.gnu.org>
7638
7639         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Use
7640         fold_binary instead of fold_build2 since we don't care about the
7641         resulting tree.
7642         (loop_niter_by_eval): Likewise.
7643         (compare_trees): Likewise.
7644         (proved_non_wrapping_p): Likewise.
7645
7646 2005-08-09  James A. Morrison  <phython@gcc.gnu.org>
7647
7648         PR c/23161
7649         PR c/23165
7650         * c-typeck.c (c_finish_if_stmt): Look into STATEMENT_LISTs to see
7651         if the if is really empty.
7652
7653 2005-08-09  Steven Bosscher  <stevenb@suse.de>
7654
7655         PR tree-optimization/23234
7656         * tree-ssa-math-opts.c (place_reciprocal): New enum.
7657         (execute_cse_reciprocals_1): Replace the 'phi' argument with an
7658         argument of the new enum.
7659         (execute_cse_reciprocals): Add reciprocals for function arguments
7660         on the unique successor edge of the entry block.  Update other calls
7661         to execute_cse_reciprocals_1.
7662
7663 2005-08-08  Richard Henderson  <rth@redhat.com>
7664
7665         PR 22439
7666         * gimplify.c (gimplify_one_sizepos): Preserve the original type.
7667
7668 2005-08-08  Bob Wilson  <bob.wilson@acm.org>
7669
7670         * expr.c (write_complex_part): Return after handling MEM.
7671
7672 2005-08-08  Josh Conner  <jconner@apple.com>
7673
7674         PR rtl-optimization/23241
7675         * combine.c (simplify_comparison): Fix error in determining
7676         whether to lift a subreg from comparison.
7677
7678 2005-08-08  David Edelsohn  <edelsohn@gnu.org>
7679
7680         PR target/18506
7681         * config/rs6000/altivec.md (vec_init<mode>): New.
7682         (vec_set<mode>): New.
7683         (vec_extract<mode>): New.
7684         * config/rs6000/rs6000.c (rs6000_expand_vector_init): New.
7685         (rs6000_expand_vector_set): New.
7686         (rs6000_expand_vector_extract): New.
7687         (rs6000_legitimate_offset_address_p): Offset addresses are valid
7688         for Altivec modes before reload.
7689         (altivec_expand_vec_init_builtin): New.
7690         (get_element_number): New.
7691         (altivec_expand_vec_set_builtin): New.
7692         (altivec_expand_vec_ext_builtin): New.
7693         (altivec_expand_builtin): Expand vec_init, vec_set, and vec_ext
7694         builtins.
7695         (altivec_init_builtins): Init vec_init, vec_set, and vec_ext
7696         builtins.
7697         * config/rs6000/rs6000.h (rs6000_builtins): Add
7698         ALTIVEC_BUILTIN_VEC_INIT_<mode>, ALTIVEC_BUILTIN_VEC_SET_<mode>,
7699         ALTIVEC_BUILTIN_VEC_EXT_<mode>.
7700         * config/rs6000/rs6000-protos.h: Declare new functions.
7701
7702 2005-08-08  Jan Hubicka  <jh@suse.cz>
7703
7704         * i386.c (legitimate_pic_address_disp_p): Refuse GOTOFF in 64bit mode.
7705         (legitimate_address_p): Refuse GOT and GOTOFF in 64bit mode.
7706         * i386.md (movdi*): Use pic_32bit_operand.
7707         * predicates.md (pic_32bit_operand): New.
7708
7709 2005-08-08  Nathan Sidwell  <nathan@codesourcery.com>
7710
7711         PR c++/21166
7712         * stor-layout.c (finalize_type_size): Undo DECL_PACKED when possible.
7713
7714 2005-08-07  James A. Morrison  <phython@gcc.gnu.org>
7715
7716         * tree-vrp.c (simplify_div_or_mod_using_range): Use build2.
7717         (test_for_singularity): Use fold_build2.
7718
7719 2005-08-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7720
7721         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Fix loop upper bound.
7722
7723 2005-08-07  Danny Smith  <dannysmith@users.sourceforge.net>
7724
7725         * config/i386/cygming.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
7726         (COMMON_ASM_OP) Define.
7727         * config/i386/i386.c (ix86_in_large_data_p): Add ATTRIBUTE_UNUSED
7728         (ix86_encode_section_info): Likewise.
7729         (TARGET_ENCODE_SECTION_INFO): Conditionally define as
7730         SUBTARGET_ENCODE_SECTION_INFO.
7731
7732 2005-08-06  Richard Henderson  <rth@redhat.com>
7733
7734         PR 21894
7735         * tree-nested.c (convert_local_reference): Save and restore val_only
7736         around component_ref and friends.  Clear walk_subtrees by default.
7737
7738 2005-08-06  Peter O'Gorman  <peter@pogma.com>
7739
7740         PR 21366
7741         * gcc.c (process_command): Check the argument to -b has a dash.
7742         * doc/invoke.texi: Update -b and -V docs.
7743
7744 2005-08-06  James E Wilson  <wilson@specifix.com>
7745
7746         * config/mips/cross64.h, config/mips/t-cross64: Delete.
7747
7748 2005-08-06  Michael Matz  <matz@suse.de>
7749
7750         * genattrtab.c (write_attr_get, write_attr_case): Use insn_code
7751         member only if only one insn is associated with the value.
7752
7753 2005-08-06  Nick Clifton  <nickc@redhat.com>
7754
7755         * config/stormy16/stormy16.h (SYMBOL_FLAG_XSTORMY16_BELOW100):
7756         New define.
7757         (ASM_OUTPUT_LABELREF): Delete - it is no longer needed.
7758         * config/stormy16/stormy16.c (xstormy16_below100_symbol):
7759         Check symbol flags instead of symbol name mangling.
7760         (xstormy16_asm_output_aligned_common): Likewise.  Also
7761         simplify code since the bss100_section cass is the only case
7762         where the below100 code will be triggered.
7763         (xstormy16_encode_section_info): Encode below100 attribute
7764         using the SYMBOL_FLAG_XSTORMY16_BELOW100 instead of mangling
7765         the name.
7766         (xstormy16_strip_name_encoding): Delete - this function is no
7767         longer needed.
7768         (TARGET_STRIP_NAME_ENCODING): Undefine.
7769         * config/stormy16/stormy16-protos.h: Delete prototype for
7770         xstormy16_strip_name_encoding.
7771
7772 2005-08-06  Kazu Hirata  <kazu@codesourcery.com>
7773
7774         * Makefile.in, cfgexpand.c, cfgloop.h, cfgloopmanip.c,
7775         config.gcc, ipa-cp.c, ipa-prop.c, ipa-prop.h, reg-stack.c,
7776         tree-ssa-structalias.c, tree-vrp.c, value-prof.c, vec.h,
7777         config/linux.h, config/alpha/alpha.h, config/alpha/linux.h,
7778         config/alpha/predicates.md, config/arc/arc.h,
7779         config/arm/arm.h, config/arm/ieee754-df.S,
7780         config/arm/ieee754-sf.S, config/bfin/bfin.c,
7781         config/bfin/bfin.h, config/c4x/c4x.h, config/crx/crx.c,
7782         config/fr30/fr30.h, config/frv/frv.h, config/h8300/h8300.h,
7783         config/i386/i386.h, config/ia64/ia64.c, config/ia64/ia64.h,
7784         config/m68hc11/m68hc11.h, config/mips/mips.c,
7785         config/mips/mips.h, config/mips/openbsd.h,
7786         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.h,
7787         config/pdp11/pdp11.h, config/rs6000/linux-unwind.h,
7788         config/rs6000/rs6000.c, config/rs6000/rs6000.h,
7789         config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
7790         config/sparc/linux.h, config/sparc/linux64.h,
7791         config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h,
7792         doc/extend.texi, doc/gcov.texi, doc/install.texi,
7793         doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix comment/doc
7794         typos.  Follow spelling conventions.
7795
7796 2005-08-06  Joseph S. Myers  <joseph@codesourcery.com>
7797
7798         PR c/23113
7799         * stmt.c (warn_if_unused_value): Check TREE_NO_WARNING at start.
7800         Don't handle NOP_EXPR, CONVERT_EXPR and NON_LVALUE_EXPR
7801         specially.  Check for side effects only for COND_EXPR.
7802         * c-typeck.c (c_finish_stmt_expr): Mark statement expression
7803         return with TREE_NO_WARNING.
7804
7805 2005-08-06  Richard Sandiford  <richard@codesourcery.com>
7806
7807         PR rtl-optimization/23233
7808         * loop.c (combine_movables): Require the modes to be the same.
7809         (move_movables): Remove handling of cases where the replacement
7810         had a different mode to the original.
7811
7812 2005-08-05  James A. Morrison  <phython@gcc.gnu.org>
7813
7814         PR tree-optimization/23128
7815         * tree-vrp.c (vrp_int_const_binop): Check if unsigned addition or
7816         subtraction wrap, and set TREE_OVERFLOW if they do.
7817
7818 2005-08-05  Richard Henderson  <rth@redhat.com>
7819
7820         PR 21728
7821         * tree-cfg.c (remove_bb): Transmute DECL_NONLOCAL labels into
7822         FORCED_LABEL labels.
7823
7824 2005-08-05  J"orn Rennecke <joern.rennecke@st.com>
7825
7826         PR middle-end/23135
7827         * reload.c (find_reloads_subreg_address): Pass down TYPE
7828         unchanged.  Change all callers except find_reloads_toplev.
7829
7830 2005-08-05  Michael Matz  <matz@suse.de>
7831
7832         * genattrtab.c (current_alternative_string): Remove.
7833         (SIMPLIFY_ALTERNATIVE): Ditto.
7834         (attr_alt_bit_p): Ditto.
7835         (alternative_name): Make const char *.
7836         (evaluate_eq_attr): Remove use of above things.
7837         (simplify_test_exp): Ditto.
7838         (simplify_test_exp <EQ_ATTR>): Guard for insn_code < 0 .
7839         (simplify_test_exp <AND>): Correct typo (test 'right' not 'left').
7840
7841 2005-08-04  James E Wilson  <wilson@specifix.com>
7842
7843         * config/ptx4.h, config/sol2.h, config/arm/freebsd.h,
7844         config/arm/linux-elf.h, config/frv/frv.h, config/i386/freebsd.h,
7845         config/i386/freebsd64.h, config/i386/netware.h, config/i386/sco5.h,
7846         config/ia64/freebsd.h, config/rs6000/sysv4.h, config/sparc/freebsd.h
7847         (LINK_SPEC): Delete useless %{Wl,*:%*} item.
7848
7849 2005-08-04  Richard Henderson  <rth@redhat.com>
7850
7851         PR 21529
7852         * params.def (PARAM_SRA_MAX_STRUCTURE_COUNT): New.
7853         * params.h (SRA_MAX_STRUCTURE_COUNT): New.
7854         * tree-sra.c (decide_block_copy): Use it.  Disable element copy
7855         if we'd have to instantiate too many members.
7856
7857 2005-08-04  Richard Henderson  <rth@redhat.com>
7858
7859         PR 21291
7860         * tree-outof-ssa.c (coalesce_asm_operands): New.
7861         (coalesce_ssa_name): Use it.  Split out ...
7862         (coalesce_phi_operands, coalesce_result_decls): ... these.
7863
7864 2005-08-04  Paul Brook  <paul@codesourcery.com>
7865
7866         * read-rtl.c (read_quoted_string): Break if EOF.
7867
7868 2005-08-04  Andrew Pinski  <pinskia@physics.uc.edu>
7869
7870         * tree.h (fold_build1): Change to macro and call fold_build1_stat.
7871         (fold_build2): Likewise.
7872         (fold_build3): Likewise.
7873         (fold_build1_stat): New function prototype.
7874         (fold_build2_stat): Likewise.
7875         (fold_build3_stat): Likewise.
7876         * fold-const.c (fold_build1): Rename to ..
7877         (fold_build1_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
7878         through to build1_stat.
7879         (fold_build2): Rename to ..
7880         (fold_build2_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
7881         through to build2_stat.
7882         (fold_build3): Rename to ..
7883         (fold_build3_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
7884         through to build3_stat.
7885
7886 2005-08-04  David Edelsohn  <edelsohn@gnu.org>
7887             Ian Lance Taylor  <ian@airs.com>
7888
7889         * function.c (assign_stack_local_1): Do not correct stack slot
7890         address if allocation size is smaller than mode size.
7891
7892 2005-08-04  Diego Novillo  <dnovillo@redhat.com>
7893
7894         PR 22037
7895         * tree-cfg.c (replace_uses_by): Call mark_new_vars_to_rename.
7896         (tree_merge_blocks): Propagate anything allowed by
7897         may_propagate_copy.
7898         Clarify documentation.
7899         * passes.c (execute_todo): If cleanup_tree_cfg invalidated the
7900         SSA form, schedule an update if necessary.
7901
7902 2005-08-04  Gerald Pfeifer  <gerald@pfeifer.com>
7903
7904         * doc/install.texi (Binaries): Remove broken link to
7905         Sinix/Reliant Unix binaries.
7906
7907 2005-08-03  Richard Henderson  <rth@redhat.com>
7908
7909         PR 23221
7910         * function.c (stack_protect_epilogue): Export.
7911         * tree.h (stack_protect_epilogue): Declare.
7912         * calls.c (expand_call): Call it.
7913
7914 2005-08-03  Eric Christopher  <echristo@apple.com>
7915
7916         * gcc.c (LINK_SSP_SPEC): Add fstack-protector-all.
7917         * config/darwin.h (LINK_COMMAND_SPEC): Add link_ssp
7918         spec.
7919
7920 2005-08-04  Jan Hubicka  <jh@suse.cz>
7921
7922         * profile.c (branch_prob): Split edges with goto locus on them
7923         to get proper line counts.
7924         * tree-cfg.c (make_cond_expr_edges): Record user goto locuses, if any.
7925
7926 2005-08-03  Paul Brook  <paul@codesourcery.com>
7927
7928         * function.c (assign_parms): Round current_function_args_size
7929         to PARM_BOUNDARY, not STACK_BOUNDARY.
7930
7931 2005-08-03  Geoffrey Keating  <geoffk@apple.com>
7932
7933         * config/i386/i386.c (x86_elf_aligned_common)
7934         (x86_output_aligned_bss): Don't try to use symbols that aren't defined.
7935
7936 2005-08-03  Zdenek Dvorak  <dvorakz@suse.cz>
7937
7938         PR tree-optimization/23157
7939         * tree-scalar-evolution.c (scev_const_prop): Unshare trees
7940         before emitting them.
7941
7942 2005-08-03  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
7943
7944         PR tree-optimization/19899
7945         * Makefile.in (tree-scalar-evolution.o): Add real.h.
7946         * tree-scalar-evolution.c: Include real.h.
7947         (add_to_evolution): Build constant -1 of correct type.
7948
7949 2005-08-03  Jan Hubicka  <jh@suse.cz>
7950
7951         * cfgloop.h (DLTHE_FLAG_COMPLETTE_PEEL): New flag.
7952         * cfgloopmanip.c (duplicate_loop_to_header_edge): Special case
7953         profile updating for complette unrolling.
7954         * loop-unroll.c (peel_loop_completely): Use it.
7955         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
7956         (tree_unroll_loops_completely): Disable code growing unrolling of cold
7957         loops.
7958
7959 2005-08-03  Paul Brook  <paul@codesourcery.com>
7960
7961         * combine.c (can_change_dest_mode): New function.
7962         (try_combine, simplify_set): Use it.
7963
7964 2005-08-03  Eric Botcazou  <ebotcazou@adacore.com>
7965
7966         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Only force
7967         TFmode to BLKmode.
7968
7969 2005-08-03  Gerald Pfeifer  <gerald@pfeifer.com>
7970
7971         * doc/install.texi (Specific): Adjust link to openavr.org.
7972         (Specific): Remove broken reference to GCC 2.8.1 for OS/2.
7973         (Binaries): Adjust HP-UX Porting Center link.
7974         (Binaries): Adjust Free Software Foundation ordering link.
7975
7976 2005-08-03  Andrew Pinski  <pinskia@physics.uc.edu>
7977
7978         * convert.c (convert_to_integer): Use fold_build1 instead of
7979         build1 when converting an integer to an integer.
7980
7981 2005-08-02  Richard Henderson  <rth@redhat.com>
7982
7983         * combine.c (combine_instructions): Don't use reg_equal/equiv
7984         results if the mode doesn't match.
7985
7986 2005-08-02  Mark Mitchell  <mark@codesourcery.com>
7987
7988         * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Set it.
7989         * doc/fragments.texi (NATIVE_SYSTEM_HEADER_DIR): Document it.
7990
7991 2005-08-02  Richard Henderson  <rth@redhat.com>
7992
7993         PR 23196
7994         * explow.c (memory_address): Remove special-case for
7995         virtual_stack_vars_rtx and virtual_incoming_args_rtx.
7996
7997 2005-08-02  Diego Novillo  <dnovillo@redhat.com>
7998
7999         PR 23164
8000         * tree-cfgcleanup.c (cleanup_tree_cfg): Do not limit the
8001         number of calls to cleanup_tree_cfg_1.
8002
8003 2005-08-02  Martin Reinecke  <martin@mpa-garching.mpg.de>
8004
8005         * doc/invoke.texi: document file extensions .F90 and .F95
8006
8007 2005-08-02  Richard Guenther  <rguenther@suse.de>
8008
8009         * fold-const.c (tree_expr_nonnegative_p): frexp(x, &e) is
8010         positive if its first argument is positive.
8011
8012 2005-08-02  Richard Guenther  <rguenther@suse.de>
8013
8014         PR tree-optimization/23177
8015         * tree-ssa-operands.c (get_tmr_operands): Use get_expr_operands
8016         on TMR_TAG.
8017
8018 2005-08-02  James A. Morrison  <phython@gcc.gnu.org>
8019
8020         PR tree-optimization/23129
8021         * tree-vrp.c (extract_range_from_binary_expr): Set value range to
8022         varying for divisions with anti-ranges.
8023
8024 2005-08-02  Jan Hubicka  <jh@suse.cz>
8025
8026         * tree-ssa-dom.c (thread_across_edge): Remove updating here.
8027         * tree-ssa-threadupdate.c (thread_block): Add it here.
8028
8029 2005-08-01  James E Wilson  <wilson@specifix.com>
8030
8031         * config/mips/mips.c (mips_encode_section_info, mips_attribute_table,
8032         TARGET_ENCODE_SECTION_INFO, TARGET_ATTRIBUTE_TABLE): New.
8033         * config/mips/mips.h (SYMBOL_FLAG_LONG_CALL, SYMBOL_REF_LONG_CALL_P):
8034         New.
8035         * config/mips/predicates.md (const_call_insn_operand): Add check for
8036         SYMBOL_REF_LONG_CALL_P.
8037         * doc/extend.texi (long_call): Document the new attribute.
8038
8039 2005-08-01  Ian Lance Taylor  <ian@airs.com>
8040             Richard Henderson  <rth@redhat.com>
8041
8042         * Makefile.in (RTL_BASE_H): Add real.h.
8043         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Use structure copy
8044         instead of memcpy.
8045         * emit-rtl.c (const_double_from_real_value): Likewise; use rtx.u.rv
8046         directly.
8047         * rtl.c (rtl_check_failed_code_mode): New.
8048         * rtl.h (struct rtx_def): Add u.rv.
8049         (XCMWINT, XCNMPRV): New.
8050         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Use XCMWINT.
8051         (CONST_DOUBLE_REAL_VALUE): Use XCNMPRV; constify.
8052
8053 2005-08-01  Richard Henderson  <rth@redhat.com>
8054
8055         * dwarf2out.c (mem_loc_descriptor): Use XEXP, not SUBREG_REG,
8056         with auto-inc codes.
8057
8058         * config/alpha/predicates.md (and_operand): Test mode of CONST_DOUBLE.
8059
8060 2005-08-01  Jan Hubicka  <jh@suse.cz>
8061
8062         * i386-protos.h (asm_preferred_eh_data_format): Declare.
8063         * i386.c: Include dwarf2.h
8064         (asm_preferred_eh_data_format): New.
8065         * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Move offline.
8066
8067 2005-08-01  Ian Lance Taylor  <ian@airs.com>
8068
8069         * config/host-linux.c (linux_gt_pch_get_address): Add new name
8070         randomize_va_space for virtual address randomization control.
8071
8072 2005-08-01  Steven Bosscher  <stevenb@suse.de>
8073
8074         * common.opt (flag_ipa_cp): Put in right place to maintain
8075         alphabetic sort.
8076
8077 2005-08-01  Jan Hubicka  <jh@suse.cz>
8078
8079         * profile.c (compute_value_histograms): Fix thinko.
8080         * value-prof.c: Include toplev.h
8081         (check_counter): New function.
8082         (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
8083         tree_mod_subtract_transform): Add sanity check.
8084
8085 2005-08-01  Richard Guenther  <rguenther@suse.de>
8086
8087         PR tree-optimization/23133
8088         * tree-ssa-math-opts.c (execute_cse_reciprocals): Walk
8089         current functions parameter decls to find defs to cse
8090         reciprocals of.
8091
8092 2005-08-01  Richard Guenther  <rguenther@suse.de>
8093
8094         PR tree-optimization/23109
8095         * tree-ssa-math-opts.c (execute_cse_reciprocals_1):
8096         If trapping math is in effect, use post-dominator information
8097         to check if we'd in any case reach a trapping point before
8098         doing the reciprocal insertion.
8099         (execute_cse_reciprocals): Compute post-dominators, if necessary.
8100         * tree-ssa-loop-im.c (determine_invariantness_stmt): RDIV
8101         expressions are invariant only if trapping math is not in effect.
8102
8103 2005-08-01  Razya Ladelsky  <razya@il.ibm.com>
8104
8105         * cgraph.h (update_call_expr, cgraph_copy_node_for_versioning,
8106         cgraph_function_versioning): New declarations.
8107         * cgraphunit.c: Add include to ipa-prop.h.
8108         (update_call_expr, cgraph_copy_node_for_versioning,
8109         cgraph_function_versioning): New functions.
8110         * integrate.c (copy_decl_for_inlining): Remove.
8111         * ipa-prop.h (ipa_replace_map): New struct.
8112         (struct ipa_node): Add ipcp_orig_node, count_scale, new fields.
8113         * ipa-cp.c (ipcp_method_orig_node, ipcp_method_is_cloned,
8114         ipcp_method_set_orig_node, ipcp_cloned_create, ipcp_method_get_scale,
8115         ipcp_method_set_scale, ipcp_method_compute_scale, ipcp_after_propagate,
8116         ipcp_iterate_stage, ipcp_method_scale_print,
8117         ipcp_profile_mt_count_print, ipcp_profile_cs_count_print,
8118         ipcp_profile_edge_print, ipcp_profile_bb_print , ipcp_profile_print,
8119         ipcp_replace_map_create, ipcp_redirect, ipcp_update_callgraph,
8120         ipcp_update_bb_counts, ipcp_update_profiling,
8121         ipcp_update_edges_counts): New functions.
8122         (ipcp_method_cval_init): Remove restriction regarding local methods.
8123         (ipcp_init_stage): Add ipcp_method_compute_scale.
8124         (ipcp_insert_stage): Add versioning.
8125         (ipcp_structures_print): Add ipcp_method_scale_print.
8126         (ipcp_driver): Dump profiling info.
8127         * Makefile.in: Remove integrate.h dependency from tree-inline.o.
8128         Add ipa-prop.h dependency to tree-inline.o and cgraphunit.o.
8129         * tree-inline.c: Remove include to integrate.h, Add include ipa-prop.h.
8130         (struct inline_data): Add versioning_p, ipa_info, new fields.
8131         (remap_decl, mark_local_for_remap_r, setup_one_parameter,
8132         declare_return_variable): Replace calls to copy_decl_for_inlining with
8133         copy_decl_for_dup.
8134         (copy_body_r, copy_bb, copy_cfg_body, copy_tree_r, inlining_p): Add
8135         versioning support.
8136         (copy_decl_for_dup): Rename from copy_decl_for_inlining.
8137         Add argument VERSIONING.
8138         (copy_arguments_for_versioning, copy_static_chain,
8139         function_versionable_p, tree_versionable_function_p,
8140         tree_function_versioning, replace_ref_tree): New functions.
8141         * tree-inline.h: Include varray.h.
8142         (tree_versionable_function_p,  tree_function_versioning,
8143         tree copy_decl_for_dup): New declarations.
8144
8145 2005-08-01  Razya Ladelsky  <razya@il.ibm.com>
8146
8147         * ipa-cp.c: New file. Contains IPCP specific functionality.
8148         * ipa-prop.h: New file. Contains structures/definitions that can be
8149         used by several interprocedural data flow optimizations (and also IPCP).
8150         * ipa-prop.c: New file.
8151         * Makefile.in: Add ipa-cp.c, ipa-prop.h, ipa-prop.c.
8152         * common.opt: Add ipa-cp flag.
8153         * timevar.def: Add IPCP optimization.
8154         * tree-optimize.c (init_tree_optimization_passes): Schedule
8155         pass_ipa_cp.
8156         * tree-pass.h (pass_ipa_cp): Declare.
8157
8158 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
8159
8160         * dwarf2out.c, fold-const.c, ipa-type-escape.c,
8161         loop-invariant.c, predict.c, predict.def, reload1.c, reorg.c,
8162         tree-sra.c, config/arm/arm.c, config/crx/crx.c,
8163         config/i386/i386.c, config/mips/mips.h,
8164         config/rs6000/rs6000.h, config/sh/sh.c,
8165         config/stormy16/stormy16.c: Fix comment typos.
8166
8167 2005-08-01  Joseph S. Myers  <joseph@codesourcery.com>
8168
8169         PR c/22311
8170         * c-typeck.c (build_binary_op): Use common_type wrapper on
8171         shortened types.
8172         (common_type): Update comment.
8173
8174 2005-07-31  Steven Bosscher  <stevenb@suse.de>
8175
8176         PR target/23095
8177         * common.opt (flag_gcse_after_reload): Don't initialize to 2.
8178         (flag_rerun_cse_after_loop): Initialize this to 2 instead.
8179         * postreload-gcse.c (hash_scan_set): Do not consider stack regs.
8180
8181 2005-07-31  Jan Hubicka  <jh@suse.cz>
8182
8183         * pretty-print.h (pp_widest_integer): New macro.
8184         * tree-pretty-print.c (dump_bb_header): Print BB frequencies and
8185         counts.
8186
8187 2005-07-31  Jan Hubicka  <jh@suse.cz>
8188
8189         * output.h (enum section_category): Export from varasm.c
8190         (categorize_decl_for_section): Likewise.
8191         * varasm.c (enum section_category): Kill.
8192         (categorize_decl_for_section): Make global.
8193         * i386-protos.h (x86_output_aligned_bss, x86_elf_aligned_common):
8194         Declare.
8195         * i386.c (ix86_section_threshold): New static variable.
8196         (ix86_in_large_data_p, ix86_encode_section_info,
8197         x86_64_elf_unique_section,
8198         x86_64_elf_select_section): New functions.
8199         (TARGET_ENCODE_SECTION_INFO): Define
8200         (override_options): Enable medium model for PIC.
8201         (ix86_expand_prologue): Expand gen_set_got_rex64.
8202         (legitimate_constant_p): Handle new UNSPECs.
8203         (legitimate_pic_address_disp_p): Likewise.
8204         (legitimize_pic_address): Lower MEDIUM model addressing.
8205         * i386.h (PIC_OFFSET_TABLE_REGNUM): Set for medium model PIC.
8206         (enum cmodel): Add MEDIUM_PIC.
8207         (SYMBOL_REF_FAR_ADDR_P): New macro.
8208         (SYMBOL_FLAG_FAR_ADDR): New flag.
8209         * i386.md (movdi): Support medium model.
8210         (set_got_rex64): New pattern.
8211         * i386.opt (mlarge-data-threshold): New flag.
8212         * predicates.md (zext_operand/sext_operand): Deal with medium model.
8213         * x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Use x86_output_aligned_bss.
8214         (ASM_OUTPUT_ALIGNED_COMMON, TARGET_ASM_SELECT_SECTION,
8215         TARGET_ASM_UNIQUE_SECTION): New.
8216
8217         * invoke.texi (-mlarge_data_threshold): Document
8218
8219 2005-07-31  Jan Hubicka  <jh@suse.cz>
8220
8221         * tree-outof-ssa.c (coalesce_ssa_name): Use coalesce_cost.
8222         (coalesce_vars): Likewise.
8223         * tree-ssa-live.c (coalesce_cost): New.
8224         (build_tree_conflict_graph): Use coalesce_cost.
8225         * tree-ssa-live.h (coalesce_cost): Declare.
8226
8227 2005-07-30  Richard Earnshaw  <richard.earnshaw@arm.com>
8228
8229         * arm.md (all peepholes for post-increment operations): Delete.
8230         (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec)
8231         (loadqisi_preinc, loadqisi_predec, strsi_preinc, strsi_predec)
8232         (loadsi_preinc, loadsi_predec, strqi_shiftpreinc, strqi_shiftpredec)
8233         (loadqi_shiftpreinc, loadqi_shiftpredec, strsi_shiftpreinc)
8234         (strsishift_predec, loadsi_shiftpreinc, loadsi_shiftpredec): Delete.
8235
8236 2005-07-30  James A. Morrison  <phython@gcc.gnu.org>
8237
8238         * fold-const.c (tree_expr_nonnegative_p): Always return true for
8239         non-integral types.
8240
8241 2005-07-29  Wolfgang Bangerth <bangerth@dealii.org>
8242
8243         PR target/22582
8244         * doc/invoke.texi: Document -rdynamic.
8245
8246 2005-07-30  Joseph S. Myers  <joseph@codesourcery.com>
8247
8248         PR c/23143
8249         * c-parser.c (c_parser_parms_list_declarator): Call
8250         mark_forward_parm_decls.
8251         * c-decl.c (merge_decls): Only check DECL_IN_SYSTEM_HEADER for
8252         decls with visibility structure.
8253
8254 2005-07-30  Paul Brook  <paul@codesourcery.com>
8255
8256         * config/arm/arm.c (arm_coproc_mem_operand): Fix inaccurate comment.
8257
8258 2005-07-30  Paul Brook  <paul@codesourcery.com>
8259
8260         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
8261         prototype.
8262         * config/arm/arm.c (arm_canonicalize_comparison): Use correct limit
8263         value for mode.
8264         * config/arm/arm.h (CANONICALIZE_COMPARISON): Pass mode argument.
8265
8266 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
8267
8268         PR c/529
8269         * c-decl.c (warn_if_shadowing): Don't check for PARM_DECL in
8270         nested function declarators.
8271         (pushdecl): Don't call warn_if_shadowing for PARM_DECL.
8272         (grokparms): Call warn_if_shadowing for parameters used within the
8273         parameter list.
8274         (store_parm_decls_newstyle): Call warn_if_shadowing for parameters
8275         not used within the parameter list.
8276         (store_parm_decls_oldstyle): Call warn_if_shadowing for parameters.
8277
8278 2005-07-30  Jan Hubicka  <jh@suse.cz>
8279
8280         * expr.c (expand_expr_real_1): Do not load mem targets into register.
8281         * i386.c (ix86_fixup_binary_operands): Likewise.
8282         (ix86_expand_unary_operator): Likewise.
8283         (ix86_expand_fp_absneg_operator): Likewise.
8284         * optabs.c (expand_vec_cond_expr): Validate dest.
8285
8286 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
8287
8288         PR c/21720
8289         * real.c (real_from_string): Also set last bit if there is a
8290         nonzero hex digit beyond GCC's internal precision after ".".
8291
8292 2005-07-29  David Edelsohn  <edelsohn@gnu.org>
8293
8294         * config/rs6000/altivec.md: Convert UNSPEC numerical values to
8295         define_constants.  Change duplicate values to unassigned numbers.
8296         Change UNSPEC_SUBS to UNSPEC_VSUBS.
8297         (*altivec_vspltsf): New.
8298         (altivec_vperm_v4sf): Delete.
8299         (altivec_vperm_<mode>): Use mode macro V.
8300         (altivec_vsldoi_<mode>): Convert to mode macro pattern.
8301         (altivec_predicate_v4sf): Delete.
8302         (altivec_predicate_<mode>): Use mode macro V.
8303         (*altivec_lvesfx): New.
8304         (*altivec_stvesfx): New.
8305         (vec_realign_load_v4sf): Delete.
8306         (vec_realign_load_<mode>): Use mode macro V.
8307         * config/rs6000/rs6000.c (generate_set_vrsave): Use
8308         UNSPECV_SET_VRSAVE.
8309
8310 2005-07-29  Mark Mitchell  <mark@codesourcery.com>
8311
8312         PR bootstrap/23131
8313         * configure.ac (SYSTEM_HEADER_DIR): Avoid setting to empty
8314         string.
8315         * configure: Regenerated.
8316
8317 2005-07-29  Paul Brook  <paul@codesourcery.com>
8318
8319         * doc/install.texi: Add link to GFortran binaries wiki page.
8320
8321 2005-07-29  David Ung  <davidu@mips.com>
8322
8323         * config/mips/mips.c (mips_cpu_info_table): Add 5kf to the table.
8324         (mips_rtx_cost_data): Add costs for 5kc and 5kf.
8325         * config/mips/mips.h (processor_type): Add PROCESSOR_5KF.
8326         * config/mips/mips.md (cpu): Add 5kf name.
8327         (includes): Includes 5k.md.
8328         * config/mips/5k.md: New DFA pipeline for the 5kc/5kf.
8329         * doc/invoke.texi (MIPS Options): Updated cpu name supported with
8330         -march flag.
8331
8332 2005-07-29  Diego Novillo  <dnovillo@redhat.com>
8333
8334         PR 22550
8335         * tree-cfgcleanup.c (cleanup_tree_cfg_1): Extract from ...
8336         (cleanup_tree_cfg): ... here.
8337         Call cleanup_tree_cfg_1 until there are no more cleanups to
8338         do.
8339
8340 2005-07-29  James A. Morrison  <phython@gcc.gnu.org>
8341
8342         * tree-vrp.c (compare_range_with_value): Return true or false
8343         for ~[VAL_1, VAL_2] OP VAL if VAL_1 <= VAL <= VAL_2 for NE_EXPR and
8344         EQ_EXPR respectively.
8345
8346 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
8347
8348         * cfg.c, tree-complex.c, config/frv/frv.c, config/i386/i386.c:
8349         Fix comment typos.
8350
8351 2005-07-29  Diego Novillo  <dnovillo@redhat.com>
8352
8353         * tree-ssa-dom.c (struct opt_stats_d): Add field num_iterations.
8354         (tree_ssa_dominator_optimize): Increment it.
8355         (dump_dominator_optimization_stats): Print it.
8356
8357 2005-07-29  Richard Earnshaw  <richard.earnshaw@arm.com>
8358             Steven Bosscher  <stevenb@suse.de>
8359
8360         PR rtl-optimization/23117
8361         * sched-rgn.c (add_branch_dependences): Handle COND_EXEC correctly
8362         when head == tail.  Tidy comment.
8363
8364 2005-07-28  Richard Henderson  <rth@redhat.com>
8365
8366         * cse.c (exp_equiv_p): Special case CONST_DOUBLE.
8367         * cselib.c (rtx_equal_for_cselib_p): Likewise.
8368         * jump.c (rtx_renumbered_equal_p): Likewise.
8369         * loop.c (rtx_equal_for_loop_p): Tidy and special case PC, CC0,
8370         CONST_INT and CONST_DOUBLE.
8371         (rtx_equal_for_prefetch_p): Likewise, plus LABEL_REF.
8372         * reload.c (operands_match_p): Special case CONST_INT and
8373         CONST_DOUBLE; check mode earlier.
8374
8375 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
8376
8377         PR c/22240
8378         * c-typeck.c (convert_for_assignment): Do not check
8379         DECL_IN_SYSTEM_HEADER on NULL fundecl.
8380
8381 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
8382
8383         PR c/22192
8384         * c-typeck.c (composite_type): Prefer constant size arrays to
8385         VLAs.
8386
8387 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
8388
8389         PR c/21720
8390         * real.c (real_from_string): Set last bit if there is a nonzero
8391         hex digit beyond GCC's internal precision.
8392
8393 2005-07-28  Richard Henderson  <rth@redhat.com>
8394
8395         PR rtl-opt/22619
8396         * cfgcleanup.c (try_forward_edges): Watch out for end of
8397         insn chain.
8398
8399 2005-07-28  James E Wilson  <wilson@specifixinc.com>
8400
8401         PR c/23106
8402         * doc/invoke.texi (Wstrict-aliasing=2): Fix misleading wording.
8403
8404 2005-07-28  Jan Hubicka  <jh@suse.cz>
8405
8406         * Makefile.in (rtl-profile.o): Kill all traces of it.
8407         * common.opt (fspeculative-prefetching, ftree-based-profiling): Kill.
8408         * coverage.h (rtl_coverage_counter_ref): Kill.
8409         * opts.c (flag_speculative_prefetching_set): Kill.
8410         (flag_loop_optimize_set): New.
8411         (common_handle_option): Disable loop optimizer when profiling;
8412         do not handle speculative prefetching.
8413         * passes.c (init_optimization_passes): Replace pass_profiling combo
8414         by branch_prob pass.
8415         * profile.c (compute_value_histograms): Update for simplified value
8416         profiles.
8417         (rtl_register_profile_hooks): Kill.
8418         (pass_profiling): Kill.
8419         (rest_of_handle_branch_prob): Do not profile.
8420         * toplev.c (process_options): Remove speculative prefetching.
8421         * toplev.h (flag_tree_based_profiling): Kill.
8422         * tree-profile.c (prepare_instrumented_value,
8423         tree_gen_interval_profiler, tree_gen_pow2_profiler,
8424         tree_gen_one_value_profiler, do_tree_profiling): Update for
8425         simplified datastructures.
8426         * value-prof.c: Add comment that speculative prefetching was dropped;
8427         update rest of file for simplified datastructures.
8428         (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX,
8429         rtl_divmod_values_to_profile, insn_prefetch_values_to_profile,
8430         find_mem_reference_1, find_mem_reference_2, find_mem_reference,
8431         rtl_values_to_profile, rtl_divmod_fixed_value, rtl_mod_pow2,
8432         rtl_mod_subtract, gen_speculative_prefetch,
8433         rtl_divmod_fixed_value_transform, rtl_mod_pow2_value_transform,
8434         rtl_mod_subtract_transform, speculative_prefetching_transform): Kill.
8435         (gate_handle_value_profile_transformations,
8436         rest_of_handle_value_profile_transformations,
8437         pass_value_profile_transformations): Kill.
8438         * value-prof.h (histogram_value_t): Remove IL based unions.
8439         (rtl_register_value_prof_hooks, rtl_register_profile_hooks,
8440         rtl_profile_hooks): Remove hooks.
8441
8442         * invoke.texi (-ftree-based-profiling, -fspeculative-prefetching): Kill.
8443
8444         * cgraph.c (cgraph_clone_edge): New UPDATE_ORIGINAL argument.
8445         (cgraph_clone_node): Likewise.
8446         * cgraph.h (cgraph_clone_edge): Update prototype.
8447         (cgraph_clone_node): Likewise.
8448         * ipa-inline.c (cgraph_clone_inlined_nodes): Update call of
8449         cgraph_clone_node.
8450         (lookup_recursive_calls): Consider profile.
8451         (cgraph_decide_recursive_inlining): Fix updating; use new
8452         probability argument; use profile.
8453         * params.def (PARAM_MIN_INLINE_RECURSIVE_PROBABILITY): New.
8454         * tree-inline.c (copy_bb): Update clal of clone_edge.
8455         * tree-optimize.c (tree_rest_of_compilation): UPdate cal of clone_node.
8456
8457         * invoke.texi (min-inline-recursive-probability): Document.
8458
8459 2005-07-28  Gerald Pfeifer  <gerald@pfeifer.com>
8460
8461         * doc/install.texi (Configuration): Update Valgrind homepage.
8462
8463 2005-07-28  Richard Henderson  <rth@redhat.com>
8464
8465         PR middle-end/21362
8466         * cfgrtl.c (rtl_merge_blocks): Call maybe_remove_eh_handler on
8467         labels we want to delete.
8468         (cfg_layout_merge_blocks): Likewise.
8469
8470 2005-07-28  Richard Henderson  <rth@redhat.com>
8471
8472         PR target/17692
8473         * config/i386/i386.c (ix86_split_sse_movcc): Emit DELETED note
8474         when expanding to nothing.
8475
8476 2005-07-28  Josh Conner  <jconner@apple.com>
8477
8478         * ipa-inline.c (update_caller_keys): Fix estimated_growth caching.
8479         (cgraph_decide_inlining_of_small_functions): Likewise.
8480
8481 2005-07-28  Josh Conner  <jconner@apple.com>
8482
8483         * ipa-inline.c (cgraph_edge_badness): Update comments.  Invert shift
8484         direction of badness if negative.
8485         (cgraph_default_inline_p): Add reason to parameters, and assign it
8486         a value.
8487         (cgraph_decide_inlining_of_small_functions): New parameter in call
8488         to cgraph_default_inline_p.
8489         (cgraph_decide_inlining_incrementally): Likewise.
8490         * cgraphunit.c (decide_is_function_needed): Likewise.
8491         * cgraph.h (cgraph_default_inline_p): Likewise.
8492
8493 2005-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
8494
8495         * builtins.c: Fix comment typo(s).
8496         * genautomata.c: Likewise.
8497         * gimplify.c: Likewise.
8498         * tree-dfa.c: Likewise.
8499         * tree-flow-inline.h: Likewise.
8500         * tree-into-ssa.c: Likewise.
8501         * tree-ssa-alias.c: Likewise.
8502         * tree-ssa-ccp.c: Likewise.
8503         * tree-ssa-copy.c: Likewise.
8504         * tree-ssa-dce.c: Likewise.
8505         * tree-ssa-dom.c: Likewise.
8506         * tree-ssa-operands.c: Likewise.
8507         * tree-tailcall.c: Likewise.
8508         * tree-vectorizer.c: Likewise.
8509         * tree-vrp.c: Likewise.
8510         * tree.c: Likewise.
8511
8512 2005-07-28  Jeff Law  <law@redhat.com>
8513
8514         * tree-vrp.c (test_for_singularity): Extracted from  ...
8515         (simplify_cond_using_ranges): Attempt to simplify a relational
8516         test to NE_EXPR.  Dump information when a COND_EXPR is simplified.
8517
8518 2005-07-28  Dorit Nuzman  <dorit@il.ibm.com>
8519
8520         PR tree-optimization/22506
8521         * tree-vectorizer.c (update_phi_nodes_for_guard2): Skip loop-closed
8522         phis whose argument is constant.
8523
8524 2005-07-28  J"orn Rennecke <joern.rennecke@st.com>
8525
8526         PR rtl-optimization/18992
8527         Back out this patch:
8528           2003-10-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8529           PR optimization/12142
8530           * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
8531           uses of the register in the SET_SRC.  Remove unnecessary argument.
8532
8533         Replace it with this:
8534         * cse.c (count_reg_usage): In INSN, JUMP_INSN and CALL_INSN cases,
8535         if flag_non_call_exceptions is set and the insn may trap, pass
8536         pc_rtx as dest for recursion.
8537         In SET_SRC part of SET case, if dest is already set, pass it down
8538         unchanged.
8539
8540 2005-07-28  Jan Hubicka  <jh@suse.cz>
8541
8542         * cfg.c (update_bb_profile_for_threading): Use RDIV.
8543         (scale_bbs_frequencies_int): Likewise, assert for possible overflow.
8544         (scale_bbs_frequencies_gcov_type): Be more curefull about overflows and
8545         roundoff errors.
8546         * tree-cfg.c (tree_duplicate_sese_region): Use counts for updating
8547         profile when available.
8548
8549 2005-07-28  Jan Beulich <jbeulich@novell.com>
8550
8551         * config/ia64/ia64.c (ia64_load_pair_ok): New.
8552         (ia64_print_operand): Describe and handle 'X'.
8553         (ia64_register_move_cost): Also handle FP_REGS.
8554         (ia64_preferred_reload_class): Likewise.
8555         (ia64_secondary_reload_class): Likewise.
8556         (ia64_dependencies_evaluation_hook): New local variable c. Initialize
8557         it. Also check for ITANIUM_CLASS_FLDP.
8558         * config/ia64/ia64.h (FP_REGNO_P): New.
8559         (HARD_REGNO_MODE_OK): Remove explusion of TImode.
8560         (reg_class): Add FP_REGS.
8561         (REG_CLASS_NAMES): Adjust for it.
8562         (REG_CLASS_CONTENTS): Likewise.
8563         (REGNO_REG_CLASS): Use FP_REGS where appropriate.
8564         (REG_CLASS_FROM_LETTER): Handle 'x'.
8565         (CLASS_MAX_NREGS): Handle FP_REGS.
8566         (MEMORY_MOVE_COST): Likewise.
8567         * config/ia64/ia64.md (itanium_class): Add fldp.
8568         (type): Handle fldp.
8569         (movti_internal): More allowable operand combinations. Use ldfp8 when
8570         splitting unnecessary. Remove predicable attribute. Adjust
8571         itanium_class attribute.
8572         (smuldi3_highpart): Remove outdated comment.
8573         (mulditi3, umulditi3, rotlti3): New expanders.
8574         (addti3, subti3, mulditi3_internal, umulditi3_internal, negti2, rotlti3_internal): New insns.
8575         (absti2): Disabled new insn for future reference.
8576         Respective new splitters.
8577         * config/ia64/itanium1.md (1_fldp, 1b_fldp): New insn reservations.
8578         * config/ia64/itanium2.md (2_fldp, 2b_fldp): Likewise.
8579         * config/ia64/ia64-protos.h (ia64_load_pair_ok): New.
8580
8581 2005-07-25  James A. Morrison  <phython@gcc.gnu.org>
8582
8583         PR rtl-optimization/23047
8584         * simplify-rtx.c (simplify_const_relational_operation): Respect
8585         flag_wrapv for comparisons with ABS.
8586
8587 2005-07-27  James A. Morrison  <phython@gcc.gnu.org>
8588
8589         PR tree-optimization/22493
8590         * tree-vrp.c (extract_range_from_unary_expr): Deal with -fwrapv and
8591         VR_ANTI_RANGEs properly for NEGATE_EXPRs and ABS_EXPRs.
8592
8593 2005-07-27  Aldy Hernandez  <aldyh@redhat.com>
8594
8595         * config/frv/frv.opt (moptimize-membar): New.
8596
8597         * doc/invoke.texi: Document -moptimize-membar and its inverse.
8598
8599         * config/frv/frv.h: Remove machine_function definition.
8600
8601         * config/frv/frv.c (struct frv_io): New.
8602         (struct machine_function): Moved from frv.h.  Add has_membar_p.
8603         (frv_same_doubleword_p, frv_io_fixed_order_p, frv_io_union)
8604         (frv_extract_membar, frv_io_check_address, frv_io_handle_set)
8605         (frv_io_handle_use_1, frv_io_handle_use, frv_optimize_membar_local)
8606         (frv_optimize_membar_global, frv_optimize_membar): New functions.
8607         (frv_reorg): Call frv_optimize_membar when appropriate.
8608         (bdesc_loads, bdesc_stores): Use the membar code as the icode field.
8609         (frv_expand_builtin): Adjust calls accordingly.
8610         (frv_io_address_cookie): New function.
8611         (frv_expand_load_builtin, frv_expand_store_builtin): Emit a normal
8612         load or store rather than a special insn.  Add ccnstant address and
8613         io-type operands to the membar.
8614         (frv_ifcvt_modify_tests): Unsign regno.
8615         (frv_ifcvt_modify_tests): Same.
8616
8617         * config/frv/frv.md: Remove UNSPEC_BUILTIN_{LOAD,STORE}.  Change
8618         UNSPEC_OPTIONAL_MEMBAR constant.
8619         (builtin_read_<mode>): Delete.
8620         (builtin_write_<mode>): Delete.
8621         ("optional_membar_<mode>"): Add operand.
8622
8623         * testsuite/gcc.target/frv/all-builtin-read8.c: Delete.
8624         * testsuite/gcc.target/frv/all-builtin-read16.c: Delete.
8625         * testsuite/gcc.target/frv/all-builtin-read32.c: Delete.
8626         * testsuite/gcc.target/frv/all-builtin-read64.c: Delete.
8627         * testsuite/gcc.target/frv/all-builtin-write8.c: Delete.
8628         * testsuite/gcc.target/frv/all-builtin-write16.c: Delete.
8629         * testsuite/gcc.target/frv/all-builtin-write32.c: Delete.
8630         * testsuite/gcc.target/frv/all-builtin-write64.c: Delete.
8631         * testsuite/gcc.target/frv/all-read-write-1.c: New.
8632
8633 2005-07-28  Kaz Kojima  <kkojima@gcc.gnu.org>
8634
8635         * df.c (df_uses_record): Handle SCRATCH.
8636
8637 2005-07-28  Steven Bosscher  <stevenb@suse.de>
8638
8639         PR debug/20161
8640         * passes.c (rest_of_decl_compilation): If decl is a type and
8641         we have encountered errors, don't emit debug information.
8642
8643 2005-07-27  Kenneth Zadeck <zadeck@naturalbridge.com>
8644
8645         * params.def: Fixed comment.
8646
8647 2005-07-27  Bjoern Haase  <bjoern.m.haase@web.de>
8648
8649         PR target/19885
8650         * config/avr/avr.c (TARGET_ASM_ALIGNED_SI_OP): Add.
8651         (TARGET_ASM_UNALIGNED_HI_OP): Add.
8652         (TARGET_ASM_UNALIGNED_SI_OP): Add.
8653
8654 2005-07-27  Steven Bosscher  <stevenb@suse.de>
8655
8656         PR c++/22003
8657         * varasm.c (assemble_start_function): Don't do anything that may
8658         require a CFG if the current function is a thunk.
8659
8660 2005-07-25  Geoffrey Keating  <geoffk@apple.com>
8661
8662         * doc/install.texi (Prerequisites): Mention that perl is needed
8663         to do export control in libstdc++ targetting Darwin.
8664
8665 2005-07-27  Steven Bosscher  <stevenb@suse.de>
8666
8667         PR rtl-optimization/17808
8668         * sched-deps.c (sched_get_condition): Enable #if 0'ed code.
8669         (sched_insns_conditions_mutex_p): Split out from...
8670         (add_dependence): ...here.  But don't call it from here.
8671         (add_dependence_list): Check sched_insns_conditions_mutex_p
8672         before calling add_dependence.
8673         (add_dependence_list_and_free): Likewise.
8674         (fixup_sched_groups): Likewise.
8675         (sched_analyze_1): Likewise.
8676         (sched_analyze_2): Likewise (and replace a "0" with REG_DEP_TRUE).
8677         (sched_analyze): Likewise.
8678         (sched_analyze_insn): Likewise.
8679         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
8680         * sched-rgn.c (add_branch_dependences): Likewise.  Also, add
8681         dependencies on all COND_EXEC insns to jumps ending basic blocks
8682         when doing intrablock scheduling.
8683         * sched-int.h (sched_insns_conditions_mutex_p): Add prototype.
8684
8685 2005-07-27  Jeff Law  <law@redhat.com>
8686
8687         * tree-vrp.c (vrp_meet): Intersect the equivalency sets when
8688         meeting a VR_ANTI_RANGE with a VR_RANGE.  When intersecting
8689         equivalency sets, correctly handle the case were vr0 has an
8690         equivalency set, but vr1 does not.
8691
8692 2005-07-27  Dorit Nuzman  <dorit@il.ibm.com>
8693
8694         PR tree-optimization/23073
8695         * tree-vect-analyze.c (vect_analyze_data_refs_alignment): Call
8696         vect_print_dump_info before fprintf.
8697
8698 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
8699
8700         PR tree-optimize/22348
8701         * tree-ssa-loop-niter.c (number_of_iterations_cond):
8702         Fold the partial computation.
8703
8704 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
8705
8706         PR tree-optimization/22325
8707         * tree-flow.h (compute_phi_arg_on_exit, force_expr_to_var_cost):
8708         Declare.
8709         * tree-scalar-evolution.c (scev_const_prop): Add generic final
8710         value replacement.
8711         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Split from ...
8712         (force_var_cost): ... this function.
8713         (compute_phi_arg_on_exit): Export.
8714
8715 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
8716
8717         PR tree-optimization/20773
8718         * tree-ssa-loop-ch.c (copy_loop_headers): Select the correct latch
8719         edge.
8720
8721 2005-07-27  Richard Guenther  <rguenther@suse.de>
8722
8723         * tree-ssa-structalias.c (push_fields_onto_fieldstack):
8724         Avoid pushing again if current struct contains only
8725         fields we decomposed.
8726
8727 2005-07-27  Jan Hubicka  <jh@suse.cz>
8728
8729         PR tree-optimization/22574
8730         * cgraph.c (cgraph_function_body_availability): Unanalyzed bodies are
8731         not available.
8732
8733         * tree-tailcall.c (decrease_profile): New function.
8734         (eliminate_tail_call): Use it.
8735
8736         * cgraphunit.c (cgraph_function_and_variable_visibility): Set
8737         visibility flags correctly in whole program mode.
8738
8739 2005-07-26  Steve Ellcey  <sje@cup.hp.com>
8740
8741         PR rtl-optimization/22472
8742         * config/pa/pa.h (HARD_REGNO_RENAME_OK): Define.
8743
8744 2005-07-26  Steven Bosscher  <stevenb@suse.de>
8745
8746         PR tree-optimization/22504
8747         * tree-complex.c (expand_complex_addition): Use 'code' instead
8748         of MINUS_EXPR for (VARYING, ONLY_IMAG) and (ONLY_IMAG, VARYING).
8749
8750 2005-07-26  Aldy Hernandez  <aldyh@redhat.com>
8751
8752         * config.gcc (cpu_type): Add frv case.
8753         (with_cpu): Add frv400-*-*linux* and frv550-*-*linux* cases.
8754         (supported_defaults): Add fr550 case.
8755
8756 2005-07-26  Diego Novillo  <dnovillo@redhat.com>
8757
8758         PR 22591
8759         * tree-ssa-alias.c (may_alias_p): Remove shortcut that tests
8760         whether a pointer of type T * may point to objects of type T *.
8761
8762 2005-07-26  DJ Delorie  <dj@redhat.com>
8763
8764         * configure: Regenerate.
8765
8766 2005-07-26  Dale Johannesen  <dalej@apple.com>
8767
8768         * postreload-gcse.c (alloc_mem):  Start CUID numbering at 1.
8769
8770 2005-07-26  Mark Mitchell  <mark@codesourcery.com>
8771
8772         * doc/install.texi (--with-build-sysroot): Fix grammatical error.
8773         Clarify use of "build" in name.
8774
8775 2005-07-26  Aldy Hernandez  <aldyh@redhat.com>
8776
8777         * doc/extend.texi (Raw read/write Functions): New section.
8778         * testsuite/gcc.target/frv/all-builtin-read8.c: New.
8779         * testsuite/gcc.target/frv/all-builtin-read16.c: New.
8780         * testsuite/gcc.target/frv/all-builtin-read32.c: New.
8781         * testsuite/gcc.target/frv/all-builtin-read64.c: New.
8782         * testsuite/gcc.target/frv/all-builtin-write8.c: New.
8783         * testsuite/gcc.target/frv/all-builtin-write16.c: New.
8784         * testsuite/gcc.target/frv/all-builtin-write32.c: New.
8785         * testsuite/gcc.target/frv/all-builtin-write64.c: New.
8786         * config/frv/frv.c: Add bdesc_loads global.
8787         Add bdesc_stores global.
8788         (frv_init_builtins): Add support for __builtin_{read/write}*.
8789         (frv_volatile_memref): New.
8790         (frv_expand_load_builtin): New.
8791         (frv_expand_store_builtin): New.
8792         * config/frv/frv.h (frv_builtins): Add FRV_BUILTIN_SCAN,
8793         FRV_BUILTIN_READ8, FRV_BUILTIN_READ16, FRV_BUILTIN_READ32,
8794         FRV_BUILTIN_READ64, FRV_BUILTIN_WRITE8, FRV_BUILTIN_WRITE16,
8795         FRV_BUILTIN_WRITE32, FRV_BUILTIN_WRITE64.
8796         * config/frv/frv.md (unspecs): Add UNSPEC_BUILTIN_LOAD,
8797         UNSPEC_BUILTIN_STORE, UNSPEC_OPTIONAL_MEMBAR.
8798         (builtin_read_<mode>): New.
8799         (builtin_write_<mode>): New.
8800         (builtin_write64): New.
8801         (optional_membar_<mode>): New.
8802
8803 2005-07-26  J"orn Rennecke <joern.rennecke@st.com>
8804
8805         * emit-rtl.c (gen_lowpart_common): Compare size of MODE in bits
8806         (rather than units) against HOST_BITS_PER_WIDE_INT.
8807
8808 2005-07-26  Kazu Hirata  <kazu@codesourcery.com>
8809
8810         * ipa-pure-const.c, ipa-reference.c, ipa-reference.h,
8811         ipa-type-escape.c, ipa-type-escape.h, ipa-utils.c,
8812         ipa-utils.h, treestruct.def, config/crx/crx-protos.h,
8813         config/crx/crx.c, config/crx/crx.h, config/crx/crx.md: Update
8814         FSF address.
8815
8816         * calls.c, fold-const.c, ipa-reference.c, ipa-type-escape.c,
8817         tree-ssa-reassoc.c, tree-ssa-structalias.c, vec.h,
8818         config/crx/crx.c, config/m32c/m32c.c, config/m32c/m32c.h: Fix
8819         comment typos.
8820         * doc/c-tree.texi, doc/tree-ssa.texi: Fix typos.
8821
8822 2005-07-26  Richard Guenther  <rguenther@suse.de>
8823
8824         PR tree-optimization/22486
8825         * fold-const.c (fold_unary): Fold away useless component
8826         references of the form (T *)&T.x, if the address
8827         doesn't change.
8828
8829 2005-07-25  James E Wilson  <wilson@specifixinc.com>
8830
8831         * dwarf2out.c (add_call_src_coords_attributes): New.
8832         (gen_inlined_subroutine_die): Call it.
8833         (maybe_emit_file, init_file_table): Add comments.
8834         (prune_unused_types_walk_attribs): Pass DW_AT_call_file through
8835         maybe_emit_file.
8836         * tree-inline.c (remap_block): Copy BLOCK_SOURCE_LOCATION.
8837         (expand_call_inline): Set BLOCK_SOURCE_LOCATION.
8838         * tree.h (BLOCK_SOURCE_LOCATION): New.
8839         (struct tree_block): New field locus.
8840
8841 2005-07-26  Andreas Schwab  <schwab@suse.de>
8842
8843         PR rtl-optimization/23043
8844         * postreload-gcse.c (eliminate_partially_redundant_load): Fix typo
8845         when allocating a struct unoccr.
8846
8847 2005-07-25  Richard Henderson  <rth@redhat.com>
8848
8849         PR 22626
8850         * tree-complex.c (gate_no_optimization): True if errors.
8851         * Makefile.in (tree-complex.o): Update dependencies.
8852
8853 2005-07-25  Aldy Hernandez  <aldyh@redhat.com>
8854
8855         * config/frv/predicates.md (integer_register_operand): Use
8856         GPR_AP_OR_PSEUDO_P.
8857
8858 2005-07-25  Andrew Pinski  <pinskia@physics.uc.edu>
8859
8860         PR tree-opt/22484
8861         * tree-ssa-ccp.c (fold_stmt_inplace): Strip useless type conversions
8862         after fold.
8863         * tree-ssa-propagate.c (set_rhs): Reject invalid conditional operands.
8864
8865 2005-07-25  Andrew Pinski  <pinskia@physics.uc.edu>
8866
8867         * tree-ssa-reassoc.c (reassociate_expr): Allow scaler floating point
8868         types when flag_unsafe_math_optimizations is true.
8869
8870 2005-07-25  Mark Mitchell  <mark@codesourcery.com>
8871
8872         * gcc.c (option_map): Add --sysroot.
8873         (process_command): Handle --sysroot.
8874         (display_help): Document it.
8875         * doc/cppopts.tex (-isysroot): Document.
8876         * doc/invoke.texi (--sysroot): Document.
8877         * doc/install.texi (--with-build-sysroot): Document.
8878
8879         * Makefile.in (inhibit_libc): New variable.
8880         (INHIBIT_LIBC_CFLAGS): Likewise.
8881         (LIBGCC2_CFLAGS): Include
8882         $(INHIBIT_LIBC_CFLAGS).
8883         (CRTSTUFF_CFLAGS): Include $(INHIBIT_LIBC_CFLAGS).
8884         ($(T)crtbegin.o): Do not use @inhibit_libc@.
8885         ($(T)crtend.o): Likewise.
8886         ($(T)crtbeginS.o): Do not use @inhibit_libc@.
8887         ($(T)crtendS.o): Likewise.
8888         ($(T)crtbeginT.o): Do not use @inhibit_libc@.
8889         ($(T)crtendT.o): Likewise.
8890         (stmp-fixinc): Do not complain about missing headers if
8891         inhibit_libc.
8892         * configure.ac (inhibit_libc): Set it to true/false.
8893         (--with-build-sysroot): New option.  Use it to set
8894         SYSTEM_HEADER_DIR.
8895         * configure: Regenerated.
8896
8897 2005-07-25  Manfred Hollstein  <mh@suse.com>
8898
8899         * calls.c (store_one_arg): Fix unsigned comparison warning.
8900
8901 2005-07-25  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
8902
8903         PR other/22337
8904         * ggc-zone.c (ggc_alloc_zone_stat): Do not use CHUNK_OVERHEAD.
8905         (ggc_print_statistics): Initialize variable before use.
8906
8907 2005-07-25  Richard Guenther  <rguenther@suse.de>
8908
8909         * tree-dfa.c (mark_new_vars_to_rename): Protect against
8910         calling with a PHI_NODE argument.
8911
8912         * tree-flow-inline.h (overlap_subvar): Protect against
8913         possible overflow.
8914
8915 2005-07-25  Paolo Bonzini  <bonzini@gnu.org>
8916
8917         * aclocal.m4 (gcc_AC_CHECK_TOOL): Add /bin to default directory.
8918         * configure: Regenerate.
8919
8920 2005-07-25  Ira Rosen  <irar@il.ibm.com>
8921
8922         * expr.c (highest_pow2_factor): Make extern.
8923         * tree-data-ref.c (ptr_decl_may_alias_p): New function.
8924         (ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
8925         record_array_differ_p, array_ptr_differ_p): Likewise.
8926         (base_object_differ_p): Rename (from array_base_name_differ_p). Support
8927         additional cases. Call the above functions.
8928         (base_addr_differ_p): Moved from tree-vect-analyze.c. Call
8929         base_object_differ_p when there are two base objects. Otherwise, compare
8930         base address and offset. Call may_alias_p.
8931         (dump_data_reference): Use a correct field name.
8932         (analyze_array): Make static. Initialize new data-ref fields.
8933         (analyze_indirect_ref): New function.
8934         (init_data_ref): Initialize new data-ref fields.
8935         (strip_conversion): Moved from tree-vect-analyze.c.
8936         (analyze_offset_expr, get_ptr_offset, address_analysis,
8937         object_analysis): Likewise.
8938         (analyze_offset): New function.
8939         (create_data_ref): Likewise.
8940         (initialize_data_dependence_relation): Call base_addr_differ_p. Compare
8941         dimensions for ARRAY_REFs only.
8942         (build_classic_dist_vector): Make static.
8943         (access_functions_are_affine_or_constant_p): Call macro to get the
8944         address of access functions.
8945         (compute_all_dependences): Add new parameter
8946         compute_self_and_read_read_dependences. Compute self and read-read
8947         dependences if it is true.
8948         (find_data_references_in_loop): Call create_data_ref. Initialize new
8949         data-ref fields.
8950         (compute_data_dependences_for_loop): Add new parameter
8951         compute_self_and_read_read_dependences. Remove parameter nb_loops,
8952         compute nb_loops. Call compute_all_dependences,
8953         build_classic_dist_vector and build_classic_dir_vector with correct
8954         parameters.
8955         (analyze_all_data_dependences): Call compute_data_dependences_for_loop
8956         with correct parameters. Compare dimensions for ARRAY_REFs only.
8957         (free_data_refs): Call macro to free access functions.
8958         * tree-data-ref.h (struct first_location_in_loop): New structure. Move
8959         fields from stmt_vinfo.
8960         (struct base_object_info): New structure.
8961         (struct data_reference): Move fields to base_object_info. Add fields
8962         first_location and object_info for above structures. Move fields from
8963         stmt_info: memtag, ptr_info, subvars, misalignment. Add new field
8964         aligned_to.  Add macros to access the new fields.
8965         Update functions declarations.
8966         * tree-flow.h (is_aliased_with): Declare.
8967         * tree-loop-linear.c (linear_transform_loops): Call
8968         compute_data_dependences_for_loop with correct parameters.
8969         * tree-ssa-alias.c (is_aliased_with): New function.
8970         * tree-vect-analyze.c (vect_get_ptr_offset): Remove.
8971         (vect_analyze_offset_expr, vect_base_addr_differ_p): Likewise.
8972         (vect_analyze_data_ref_dependence): Get ddr. Remove call to
8973         vect_base_addr_differ_p, compute_subscript_distance and
8974         build_classic_dist_vector. Add printings. Check absolute value of
8975         distance.
8976         (vect_analyze_data_ref_dependences): Go through ddrs instead of
8977         data-refs.
8978         (vect_compute_data_ref_alignment): Get the fields of data-ref instead of
8979         stmt. Check aligned_to. Check if the base is aligned. Remove conversion
8980         to bytes. Add printing.
8981         (vect_compute_data_refs_alignment): Go through loads and stores in one
8982         loop.
8983         (vect_enhance_data_refs_alignment, vect_analyze_data_refs_alignment,
8984         vect_analyze_data_ref_access): Likewise.
8985         (vect_analyze_pointer_ref_access): Remove.
8986         (vect_address_analysis, vect_object_analysis): Likewise.
8987         (vect_analyze_data_refs): Call compute_data_dependences_for_loop to find
8988         and analyze data-refs in the loop.
8989         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Get the
8990         fields of data-ref instead of stmt. Add init to the offset from the
8991         base.
8992         (vect_create_data_ref_ptr): Get the fields of data-ref instead of stmt.
8993         (vect_update_init_of_dr): Likewise.
8994         (vect_update_inits_of_drs): Go through loads and stores in one loop.
8995         * tree-vectorizer.c (new_stmt_vec_info): Remove initialization of
8996         removed fields.
8997         (new_loop_vec_info): Initialize new fields.
8998         (destroy_loop_vec_info): Free new fields.
8999         (vect_strip_conversion): Remove.
9000         * tree-vectorizer.h (enum verbosity_levels): Add new verbosity level.
9001         (struct _loop_vec_info): Unify data_ref_writes and data_ref_reads into
9002         datarefs. Add new field ddrs.
9003         Add macros for the new fields access.
9004         (struct _stmt_vec_info): Remove: base_address, initial_offset, step,
9005         base_aligned_p, misalignment, memtag, ptr_info and subvars.
9006         Remove their macros.
9007         * tree.h (highest_pow2_factor): Declare.
9008
9009 2005-07-25  Jakub Jelinek  <jakub@redhat.com>
9010
9011         * calls.c (store_one_arg): Check for sibling call MEM arguments
9012         from already clobbered incoming argument area.
9013
9014 2005-07-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9015
9016         * c-common.c (check_missing_format_attribute): New.
9017         * c-common.h (check_missing_format_attribute): Likewise.
9018         * c-typeck.c (convert_for_assignment): Use it.
9019
9020 2005-07-24  Andreas Schwab  <schwab@suse.de>
9021
9022         * config/m68k/m68k.md ("extendqidi2"): When source is an address
9023         register use a word move.  Correct operand of ext.w in 68000 code.
9024
9025 2005-07-23  Mark Mitchell  <mark@codesourcery.com>
9026
9027         * dwarf2out.c (gen_variable_die): Treat un-emitted COMDAT
9028         variables as declarations, rather than definitions.
9029
9030 2005-07-24  Ira Rosen  <irar@il.ibm.com>
9031
9032         PR tree-optimization/22526
9033         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Match the type
9034         of the zero node.
9035
9036 2005-07-24  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
9037
9038         * builtins.def: Add DEF_EXT_C99RES_BUILTIN to define builtins
9039         that C99 reserve for future use. Use it to define clog10,
9040         clog10f and clog10l.
9041
9042 2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9043
9044         * Makefile.in (STRICT2_WARN): Add -Wmissing-format-attribute.
9045         * configure.ac: Check for -Wmissing-format-attribute.
9046
9047         * configure: Regenerate.
9048
9049 2005-07-23  Richard Henderson  <rth@redhat.com>
9050
9051         PR tree-optimization/22623
9052         * tree-complex.c (set_component_ssa_name): Use replace_ssa_name_symbol.
9053
9054 2005-07-23  Giovanni Bajo  <giovannibajo@libero.it>
9055
9056         PR target/22577
9057         * config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR.
9058
9059 2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9060
9061         * Makefile.in (C_TREE_H): Update dependencies.
9062         * c-tree.h: Include toplev.h.
9063         * diagnostic.h (diagnostic_set_info): Add format attribute.
9064         * rtl-error.c (diagnostic_for_asm): Likewise.
9065
9066 2005-07-23  Chao-ying Fu  <fu@mips.com>
9067
9068         * config/mips/mips-dsp.md: New file.
9069         * config/mips/mips-modes.def (V4QI, V2HI, CCDSP): New modes.
9070         * config/mips/mips.c (mips_function_type): Add types for DSP builtin
9071         functions.
9072         (mips_builtin_type): Add MIPS_BUILTIN_DIRECT_NO_TARGET and
9073         MIPS_BUILTIN_BPOSGE32.
9074         (mips_expand_builtin_direct): Add one parameter to indicate that
9075         builtin functions need to return a value.
9076         (mips_expand_builtin_bposge): New for expanding "bposge" builtin
9077         functions.
9078         (mips_regno_to_class): Add classes for 12 new DSP registers.
9079         (mips_subword): Change to check four HI registers.
9080         (mips_output_move): Output move to and from 6 new DSP accumulators.
9081         (override_options): Make sure -mdsp and -mips16 are not used together.
9082         Map 'A' to DSP_ACC_REGS and 'a' to ACC_REGS.  Enable DSP accumulators
9083         for machine modes.
9084         (mips_conditional_register_usage): Disable 6 new DSP accumulators
9085         when !TARGET_DSP.
9086         (print_operand): Add 'q' for printing DSP accumulators.
9087         (mips_cannot_change_mode_class): Check ACC_REGS.
9088         (mips_secondary_reload_class): Check ACC_REGS.
9089         (mips_vector_mode_supported_p): Enable V2HI and V4QI when TARGET_DSP.
9090         (mips_register_move_cost): Check ACC_REGS.
9091         (CODE_FOR_mips_addq_ph, CODE_FOR_mips_addu_qb, CODE_FOR_mips_subq_ph)
9092         (CODE_FOR_mips_subu_qb): New code-aliasing macros.
9093         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): New macros.
9094         (dsp_bdesc): New array.
9095         (bdesc_arrays): Add DSP builtin function table.
9096         (mips_prepare_builtin_arg): Check predicate again after
9097         copy_to_mode_reg.
9098         (mips_expand_builtin): Add one more parameter to
9099         mips_expand_builtin_direct. Expand MIPS_BUILTIN_DIRECT_NO_TARGET and
9100         MIPS_BUILTIN_BPOSGE32.
9101         (mips_init_builtins): Initialize new function types.
9102         (mips_expand_builtin_direct): Check if builtin functions need to
9103         return a value and pass operands properly.
9104         (mips_expand_builtin_bposge): New function.
9105         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips_dsp.
9106         (ASM_SPEC): Map -mdsp to -mdsp in GAS.
9107         (FIRST_PSEUDO_REGISTER): Increase to 188.
9108         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
9109         Update for 12 new DSP registers.
9110         (DSP_ACC_REG_FIRST, DSP_ACC_REG_LAST, DSP_ACC_REG_NUM, AC1HI_REGNUM)
9111         (AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM, AC3HI_REGNUM, AC3LO_REGNUM):
9112         (DSP_ACC_REG_P, ACC_REG_P, ACC_HI_REG_P): New macros.
9113         (reg_class): Add DSP_ACC_REGS and ACC_REGS.
9114         (REG_CLASS_NAMES): Add names for DSP_ACC_REGS and ACC_REGS.
9115         (REG_CLASS_CONTENTS): Update for DSP_ACC_REGS, ACC_REGS and ALL_REGS.
9116         (REG_ALLOC_ORDER): Update for 12 new DSP registers.
9117         (mips_char_to_class): Add 'A' for DSP_ACC_REGS and 'a' for ACC_REGS.
9118         (UIMM6_OPERAND, IMM10_OPERAND): New macros.
9119         (EXTRA_CONSTRAINT_Y): Add YA and YB extra constraints.
9120         (REGISTER_NAMES): Add names for 12 new DSP registers.
9121         * config/mips/mips.md: Include mips-dsp.md.
9122         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
9123         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
9124         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
9125         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
9126         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
9127         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
9128         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
9129         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
9130         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
9131         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
9132         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
9133         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
9134         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
9135         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
9136         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
9137         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
9138         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
9139         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
9140         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
9141         (UNSPEC_RDDSP): New constants.
9142         (*movdi_32bit): Change 'x' to 'a' for ACC_REGS.
9143         (*movsi_internal): Change 'x' to 'a' for ACC_REGS.  Add an
9144         A<-d alternative.
9145         * config/mips/mips.opt (-mdsp): New option.
9146         * config/mips/predicates.md (const_uimm6_operand, const_imm10_operand)
9147         (reg_imm10_operand): New predicates.
9148         * doc/extend.texi (MIPS DSP Built-in Functions): New section.
9149         * doc/invoke.texi (-mdsp): Document new option.
9150
9151 2005-07-22  DJ Delorie  <dj@redhat.com>
9152
9153         * c-objc-common.c (c_cannot_inline_tree_fn): Add warning control
9154         to warning calls.
9155         * tree-inline.c (inlinable_function_p): Likewise.
9156
9157 2005-07-22  Mark Mitchell  <mark@codesourcery.com>
9158
9159         PR debug/21828
9160         * toplev.c (check_global_declarations): Do not mark undefined
9161         variables as DECL_IGNORED_P.
9162         * varasm.c (first_global_object_name): GTY it.
9163         (weak_global_object_name): Likewise.
9164         (notice_global_symbol): Use ggc_strdup, not xstrdup, when creating
9165         a string to go into {weak,first}_global_object_name.
9166
9167 2005-07-22  DJ Delorie  <dj@redhat.com>
9168
9169         * c-format.c (check_function_format): Change warning control
9170         option from OPT_Wattribute to OPT_Wmissing_format_attribute.
9171
9172 2005-07-22  Diego Novillo  <dnovillo@redhat.com>
9173
9174         * tree-ssa-alias.c (count_ptr_derefs): Do not consider
9175         &PTR->FLD a dereference of PTR.
9176         * tree-ssa-structalias.c (update_alias_info): Consider &PTR->FLD
9177         a potential dereference of PTR.
9178
9179 2005-07-22  J"orn Rennecke <joern.rennecke@st.com>
9180
9181         PR rtl-optimization/20370
9182         * ifcvt.c (dead_or_predicable): Before calling propagate_block,
9183         call allocate_reg_info if necessary.
9184
9185         PR rtl-optimization/21848
9186         * calls.c (emit_library_call_value_1): For const functions, add
9187         USEs of the stack slots to CALL_INSN_FUNCTION_USAGE.
9188
9189         PR rtl-optimization/22445
9190         * cselib.c (target.h): Include.
9191         (rtx_equal_for_cselib_p): Allow commutative matches.
9192         (cselib_hash_rtx): Don't use MODE for CONST_INT hashing.
9193         Remove MODE parameter.  Changed all callers.
9194
9195         PR rtl-optimization/22258
9196         * combine.c (likely_spilled_retval_1, likely_spilled_retval_p):
9197         New functions.
9198         (try_combine): Use likely_spilled_retval_p.
9199
9200 2005-07-22  Paul Woegerer  <paul.woegerer@nsc.com>
9201
9202         * config.gcc: Add crx-elf support.
9203
9204         * doc/contrib.texi: Mention crx.
9205         * doc/extend.texi: Document crx extensions.
9206         * doc/install.texi: Document crx install.
9207         * doc/invoke.texi: Document crx options.
9208         * doc/md.texi: Document crx constraints.
9209
9210         * config/crx/crx-protos.h: New file.
9211         * config/crx/crx.c: New file.
9212         * config/crx/crx.h: New file.
9213         * config/crx/crx.md: New file.
9214         * config/crx/crx.opt: New file.
9215         * config/crx/t-crx: New file.
9216
9217 2005-07-22  Manfred Hollstein  <mh@suse.com>
9218
9219         * tree-ssa-structalias.c (merge_graph_nodes): Fix uninitialised
9220         warnings.
9221         (int_add_graph_edge): Likewise.
9222         (collapse_nodes): Likewise.
9223         (process_unification_queue): Likewise.
9224
9225 2005-07-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9226             Laurent GUERBY  <laurent@guerby.net>
9227
9228         PR tree-optimization/22336
9229         * function.c (record_block_change): Check for
9230         cfun->ib_boundaries_block.
9231
9232 2005-07-21  James A. Morrison  <phython@gcc.gnu.org>
9233
9234         * fold-const.c (fold_unary): Don't strip signed nops from ABS_EXPRs.
9235         (tree_expr_nonnegative_p): Return try for TYPE_UNSIGNED.
9236
9237 2005-07-21  DJ Delorie  <dj@redhat.com>
9238
9239         * toplev.c (warn_deprecated_use): Add warning control to warning
9240         call.
9241         * c-typeck.c (parser_build_binary_op): Likewise.
9242         (c_finish_if_stmt): Likewise.
9243         * c-common.c (check_function_sentinel): Likewise.
9244         (check_nonnull_arg): Likewise.
9245
9246 2005-07-21  Richard Henderson  <rth@redhat.com>
9247
9248         PR tree-opt/22504
9249         * tree-complex.c (complex_ssa_name_components): New.
9250         (cvc_lookup): Allow entry not found.
9251         (create_components): Remove.
9252         (create_one_component_var, get_component_var): New.
9253         (get_component_ssa_name, set_component_ssa_name): New.
9254         (extract_component): Use get_component_ssa_name.
9255         (update_complex_components): Use set_component_ssa_name.
9256         (update_complex_components_on_edge): Likewise.
9257         (update_phi_components): Create new PHI nodes directly, instead
9258         of adding insns to edges.
9259         (tree_lower_complex): Allocate and free complex_variable_components
9260         and complex_ssa_name_components here.
9261
9262 2005-07-20  Daniel Berlin  <dberlin@dberlin.org>
9263
9264         * alias.c (nonoverlapping_component_refs_p): Use TYPE_MAIN_VARIANT,
9265         revert to returning false.
9266
9267 2005-07-21  Uros Bizjak  <uros@kss-loka.si>
9268
9269         PR target/21149
9270         * config/i386/i386.md (sse_movhlps): Fix vec_select values.
9271
9272 2005-07-21  Uros Bizjak  <uros@kss-loka.si>
9273
9274         PR target/22576
9275         * config/i386/i386.md (cmpxf): Change operand constraints
9276         to "nonmemory_operand".
9277
9278 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
9279
9280         * config/i386/i386.md (trap): Use "".word/t0x0b0f" instead of ud2.
9281
9282 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
9283
9284         PR middle-end/21180
9285         * fold-const.c (fold_build1): Add checksum for the operands.
9286         (fold_build2): Likewise.
9287         (fold_build3): Likewise.
9288
9289 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
9290
9291         PR middle-end/19055
9292         * fold-const.c (fold_binary): Transform "(X | Y) ^ X" to "Y & ~ X".
9293
9294 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
9295
9296         * common.opt (-fforward-propagate): Committed by mistake,
9297         removed.
9298
9299 2005-07-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
9300
9301         * reg-stack.c: Fix comment typo(s).
9302         * tree-ssa-operands.c: Likewise.
9303         * tree-vectorizer: Likewise.
9304
9305 2005-07-21  Nick Clifton  <nickc@redhat.com>
9306
9307         * config/sh/symbian.c: Replace C++ style line comments with C
9308         style line comments.
9309         (symbian_add_attribute): Do not use a ? operator on the LHS of
9310         an assignment.
9311         (sh_symbian_handle_dll_attribute): Change the type of the
9312         method vector to "VEC(tree,gc)*" and use vector accessor
9313         macros to walk over the elements.
9314         (symbian_export_vtable_and_rtti_p): Likewise.
9315         (symbian_class_needs_attribute_p): Likewise.
9316
9317 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
9318
9319         PR target/22085
9320         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Do not
9321         initialize targetm.resolve_overloaded_builtin here.
9322         (altivec_expand_overloaded_builtin): Make it non-static.
9323         * config/rs6000/rs6000-protos.h
9324         (altivec_expand_overloaded_builtin): New prototype.
9325         * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Initialize
9326         targetm.resolve_overloaded_builtin here.
9327         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Likewise.
9328
9329 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
9330             Zdenek Dvorak  <dvorakz@suse.cz>
9331
9332         PR tree-optimization/19210
9333         * common.opt (Wunsafe-loop-optimizations, funsafe-loop-optimizations):
9334         New.
9335         * Makefile.in (tree-ssa-loop-niter.o): Depend intl.o.
9336         * loop-iv.c (get_simple_loop_desc): If -funsafe-loop-optimizations,
9337         rely on unproven assumptions.
9338         * predict.c (predict_loops): Adjust call to number_of_iterations_exit.
9339         * tree-flow.h (number_of_iterations_exit): Add final parameter.
9340         * tree-scalar-evolution.c (number_of_iterations_in_loop): Adjust call
9341         to number_of_iterations_exit.
9342         * tree-ssa-loop-ivcanon.c (empty_loop_p): Likewise.
9343         * tree-ssa-loop-ivopts.c (niter_for_exit): Likewise.
9344         * tree-ssa-loop-niter.c (find_loop_niter,
9345         estimate_numbers_of_iterations_loop): Likewise.
9346         (number_of_iterations_exit): Honor the new options.
9347         * doc/invoke.texi (Wunsafe-loop-optimizations,
9348         funsafe-loop-optimizations): Document them.
9349
9350 2005-07-21  Richard Sandiford  <richard@codesourcery.com>
9351
9352         PR rtl-optimization/22167
9353         * gcse.c (hoist_code): Fix hoist_exprs[] check.
9354
9355 2005-07-20  Adam Nemet  <anemet@lnxw.com>
9356
9357         * config/rs6000/lynx.h: Mark __do_global_ctors_aux and
9358         __do_global_dtors_aux longcall.
9359
9360 2005-07-20  Kazu Hirata  <kazu@cs.umass.edu>
9361
9362         * gensupport.c (old_preds): Don't reference PREDICATE_CODES.
9363         (old_special_pred_table): Don't reference
9364         SPECIAL_MODE_PREDICATES.
9365         * system.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Poison.
9366         * config/arc/arc.h: Don't mention PREDICATE_CODES.
9367         * config/sh/predicates.h: Don't mention
9368         SPECIAL_MODE_PREDICATES.
9369         * doc/tm.texi (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
9370         Remove.
9371
9372 2005-07-20  DJ Delorie  <dj@redhat.com>
9373
9374         * config.gcc: Add m32c-elf support.
9375
9376         * doc/contrib.texi: Mention m32c.
9377         * doc/extend.texi: Document m32c extensions.
9378         * doc/install.texi: Mention m32c.
9379         * doc/invoke.texi: Document m32c options.
9380         * doc/md.texi: Document m32c constraints.
9381
9382         * config/m32c/addsub.md: New file.
9383         * config/m32c/bitops.md: New file.
9384         * config/m32c/cond.md: New file.
9385         * config/m32c/jump.md: New file.
9386         * config/m32c/m32c-lib1.S: New file.
9387         * config/m32c/m32c-lib2.c: New file.
9388         * config/m32c/m32c-modes.def: New file.
9389         * config/m32c/m32c-pragma.c: New file.
9390         * config/m32c/m32c-protos.h: New file.
9391         * config/m32c/m32c.abi: New file.
9392         * config/m32c/m32c.c: New file.
9393         * config/m32c/m32c.h: New file.
9394         * config/m32c/m32c.md: New file.
9395         * config/m32c/m32c.opt: New file.
9396         * config/m32c/minmax.md: New file.
9397         * config/m32c/mov.md: New file.
9398         * config/m32c/muldiv.md: New file.
9399         * config/m32c/predicates.md: New file.
9400         * config/m32c/prologue.md: New file.
9401         * config/m32c/shift.md: New file.
9402         * config/m32c/t-m32c: New file.
9403
9404 2005-07-20  Kaz Kojima  <kkojima@gcc.gnu.org>
9405
9406         * config/sh/sh.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
9407         (stack_protect_set, stack_protect_test): New expanders.
9408         (stack_protect_set_si, stack_protect_set_si_media,
9409         stack_protect_set_di_media, stack_protect_test_si,
9410         stack_protect_test_si_media, stack_protect_test_di_media):
9411         New insns.
9412
9413 2005-07-20  Andrew Pinski  <pinskia@physics.uc.edu>
9414
9415         * c-typeck.c (output_init_element): Don't copy the INTEGER_CST.
9416
9417 2005-07-20  James A. Morrison  <phython@gcc.gnu.org>
9418
9419         * tree.h (tree_expr_nonzero_p): Export.
9420         * fold-const.c (tree_expr_nonzero_p): Likewise.
9421         Return true for CALL_EXPRs that are alloca calls.
9422         (fold_binary): Use omit_one_operand when checking EQ_EXPRs or NE_EXPRs
9423         against zero.
9424         * tree-flow.h (expr_computes_nonzero): Remove.
9425         * tree-vrp.c (expr_computes_nonzero): Remove.
9426         (vrp_expr_computes_nonzero): Use tree_expr_nonzero_p.
9427         (extract_range_from_unary_expr): Likewise.
9428         * tree-ssa-dom.c (record_equivalences_from_stmt): Use
9429         tree_expr_nonzero_p.
9430
9431 2005-07-20  Bernd Schmidt  <bernd.schmidt@analog.com>
9432
9433         * config/bfin/bfin-protos.h (legitimize_pic_address): Don't declare.
9434         * config/bfin/bfin.c (legitimize_pic_address): Now static.  Take
9435         extra arg "picreg" and use it instead of pic_offset_table_rtx.
9436         All callers changed.
9437         (frame_related_constant_load): New arg "related" which controls
9438         setting of RTX_FRAME_RELATED_P.  All callers changed.
9439         (bfin_load_pic_reg): New function, broken out of bfin_expand_prologue.
9440         (bfin_expand_prologue): Add stack limit checking.
9441         * config/bfin/bfin.md (trapifcc): New pattern.
9442
9443         * config/bfin/bfin.c: Include "langhooks.h".
9444         (def_builtin): Go through lang_hooks to call builtin_function.
9445
9446         * config/bfin/bfin-protos.h (bfin_longcall_p): Declare.
9447         * config/bfin/predicates.md (symbol_ref_operand): New.
9448         (call_insn_operand): Delete.  All callers changed to use
9449         register_no_elim_operand.
9450         * config/bfin/bfin.c (init_cumulative_args): Initialize the new
9451         call_cookie field.
9452         (function_arg): Use it to generate the call's operand 2.
9453         (bfin_longcall_p): New function.
9454         (bfin_expand_call): Extra arg "cookie".  All callers and declaration
9455         changed.  Emit extra USE in the pattern.  Use bfin_longcall_p to
9456         determine if the address needs to be in a REG.
9457         (bfin_handle_longcall_attribute): New function.
9458         (bfin_attribute_table): Add "longcall" and "shortcall".
9459         * config/bfin/bfin.h (CALL_NORMAL, CALL_LONG, CALL_SHORT): New macros.
9460         (CUMULATIVE_ARGS): New member call_cookie.
9461         (PREDICATE_CODES): Add symbol_ref_operand.
9462         * config/bfin/bfin.md (call, call_value, sibcall, sibcall_value): Add
9463         extra USE to the pattern.
9464         (call_symbol, sibcall_symbol, call_value_symbol, sibcall_value_symbol):
9465         New patterns, split off call_insn, sibcall_insn, call_value_insn and
9466         sibcall_value_insn; now the new patterns handle direct calls and the
9467         old ones indirect calls.
9468         * doc/extend.texi: Mention Blackfin in longcall/shortcall docs.
9469
9470 2005-07-20  Zdenek Dvorak  <dvorakz@suse.cz>
9471
9472         * doc/trouble.texi: Update section on handling of empty loops.
9473
9474 2005-07-20  Kazu Hirata  <kazu@codesourcery.com>
9475
9476         * config.gcc: Remove support for sparc-*-openbsd*,
9477         i860-*-sysv4*, ip2k-*-elf, ns32k-*-netbsdelf*,
9478         ns32k-*-netbsd*.
9479         * config.host: Remove support for i860-*-sysv4* as a host.
9480         * config/i860/*, config/ip2k/*, config/ns32k/*,
9481         config/sparc/openbsd.h, config/sparc/t-openbsd: Remove.
9482         * doc/install.texi, doc/invoke.texi, doc/md.texi: Don't
9483         mention obsolete ports.
9484
9485 2005-07-20  Kaz Kojima  <kkojima@gcc.gnu.org>
9486
9487         * config/sh/sh.c (regno_reg_class): Add GENERAL_REGS for
9488         soft frame pointer.
9489         (sh_expand_prologue): Use hard_frame_pointer_rtx instead
9490         of frame_pointer_rtx.
9491         (sh_expand_epilogue): Likewise.
9492         (sh_set_return_address): Likewise.
9493         (initial_elimination_offset): Use HARD_FRAME_POINTER_REGNUM
9494         instead of FRAME_POINTER_REGNUM if needed.  Add elimination
9495         offsets from FRAME_POINTER_REGNUM.
9496         * config/sh/sh.h (SH_REGISTER_NAMES_INITIALIZER): Add sfp.
9497         (sh_register_names): Add initializer for sfp.
9498         (GENERAL_OR_AP_REGISTER_P): Permit FRAME_POINTER_REGNUM.
9499         (VALID_REGISTER_P): Likewise.
9500         (FIRST_PSEUDO_REGISTER): Update.
9501         (DWARF_FRAME_REGISTERS): Define.
9502         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add sfp.
9503         (HARD_FRAME_POINTER_REGNUM): Define.
9504         (FRAME_POINTER_REGNUM): Redefine.
9505         (ELIMINABLE_REGS): Never eliminate to FRAME_POINTER_REGNUM,
9506         but HARD_FRAME_POINTER_REGNUM instead.  Add eliminations
9507         from FRAME_POINTER_REGNUM.
9508         (CAN_ELIMINATE): Use HARD_FRAME_POINTER_REGNUM instead of
9509         FRAME_POINTER_REGNUM.
9510         (REG_CLASS_CONTENTS): Add sfp.
9511         (REG_ALLOC_ORDER): Likewise.
9512         (FRAME_GROWS_DOWNWARD): Set to 1.  Update comment.
9513         (GO_IF_LEGITIMATE_ADDRESS): Use hard_frame_pointer_rtx instead
9514         of frame_pointer_rtx.
9515         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
9516
9517 2005-07-19  James A. Morrison  <phython@gcc.gnu.org>
9518
9519         * fold-const.c (tree_expr_nonnegative_p): Only return true for
9520         ABS_EXPR when flag_wrapv is false because of INT_MIN.
9521         (tree_expr_nonzero_p): Always call tree_expr_nonzero_p on the argument
9522         of an ABS_EXPR.
9523         (fold_unary): Always fold ABS_EXPR<ABS_EXPR<x>> into
9524         ABS_EXPR<x>.
9525
9526 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
9527
9528         Make CONSTRUCTOR use VEC to store initializers.
9529         * c-common.c (complete_array_type): Update to cope with VEC in
9530         CONSTRUCTOR_ELTS.
9531         * c-pretty-print.c (pp_c_initializer_list): Use pp_c_constructor_elts.
9532         (pp_c_constructor_elts): New function.
9533         * c-pretty-print.h (pp_c_constructor_elts): Declare.
9534         * c-typeck.c (build_function_call, build_c_cast, digest_init,
9535         struct constructor_stack, struct initializer_stack,
9536         constructor_elements, push_init_level, pop_init_level,
9537         add_pending_init, find_init_member, output_init_element): Update to
9538         cope with VEC in CONSTRUCTOR_ELTS.
9539         * coverage.c (build_fn_info_value, build_ctr_info_value,
9540         build_gcov_info): Likewise.
9541         * expr.c (categorize_ctor_elements_1, store_constructor,
9542         expand_expr_real_1): Likewise.
9543         * fold-const.c (fold_ternary): Likewise.
9544         * gimplify.c (gimplify_init_ctor_preeval, zero_sized_field_decl,
9545         gimplify_init_constructor, gimplify_expr): Likewise.
9546         * tree-dump.c (dequeue_and_dump): Likewise.
9547         * tree-inline.c (copy_tree_r): Add code to duplicate a CONSTRUCTOR
9548         node.
9549         * tree-pretty-print.c (dump_generic_node): Update to cope with VEC in
9550         CONSTRUCTOR_ELTS.
9551         * tree-sra.c (generate_element_init_1): Likewise.
9552         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
9553         * tree-ssa-operands.c (get_expr_operands): Likewise.
9554         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
9555         * tree-vect-transform.c (vect_get_vec_def_for_operand):
9556         (get_initial_def_for_reduction): Likewise.
9557         * tree-vn.c (set_value_handle, get_value_handle): CONSTURCTOR uses
9558         value handle in annotations.
9559         * tree.c (tree_node_kind, tree_code_size, make_node_stat,
9560         tree_node_structure): Add support for constr_kind.
9561         (build_vector_from_ctor, build_constructor_single,
9562         build_constructor_from_list): New functions.
9563         (build_constructor): Update to take a VEC instead of a TREE_LIST.
9564         (simple_cst_equal, iterative_hash_expr, initializer_zerop, walk_tree):
9565         Update to cope with VEC in CONSTRUCTOR_ELTS.
9566         * tree.def (CONSTRUCTOR): Make it a tcc_exceptional node.
9567         * tree.h (FOR_EACH_CONSTRUCTOR_VALUE, FOR_EACH_CONSTRUCTOR_ELT,
9568         CONSTRUCTOR_APPEND_ELT): New macros.
9569         (struct constructor_elt, struct tree_constructor): New data types.
9570         (union tree_node): Add tree_constructor field.
9571         * treestruct.def: Define TS_CONSTRUCTOR.
9572         * varasm.c (const_hash_1, compare_constant, copy_constant,
9573         compute_reloc_for_constant, output_addressed_constants,
9574         initializer_constant_valid_p, output_constant,
9575         array_size_for_constructor, output_constructor): Update to cope with
9576         VEC in CONSTRUCTOR_ELTS.
9577         * vec.h (VEC_empty, VEC_copy): New macros.
9578
9579 2005-07-19  Devang Patel  <dpatel@apple.com>
9580
9581         * dbxout.c (dbxout_type): Check Objective-C++ lang.
9582
9583 2005-07-19  Richard Henderson  <rth@redhat.com>
9584
9585         PR tree-opt/22278
9586         * gimplify.c (gimplify_expr): Use main variant type for the temp
9587         destination for a discarded volatile read.
9588         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't elide
9589         casts between non-void types that change volatility.
9590
9591 2005-07-15  DJ Delorie  <dj@redhat.com>
9592
9593         * toplev.h: Add comment about the first parameter for warning().
9594         * errors.h: Likewise.
9595
9596         * c.opt (Wpragmas): New.
9597         * doc/invoke.texi: Document it.
9598
9599         * function.c (do_warn_unused_parameter): Add warning control to
9600         warning call.
9601         * c-decl.c (warn_if_shadowing): Likewise.
9602         * c-lex.c (cb_def_pragma): Likewise.
9603         * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
9604         (pop_alignment): Likewise.
9605         (handle_pragma_pack): Likewise.
9606         (apply_pragma_weak): Likewise.
9607         (handle_pragma_weak): Likewise.
9608         (handle_pragma_redefine_extname): Likewise.
9609         (add_to_renaming_pragma_list): Likewise.
9610         (handle_pragma_extern_prefix): Likewise.
9611         (maybe_apply_renaming_pragma): Likewise.
9612         (handle_pragma_visibility): Likewise.
9613
9614         * config/c4x/c4x-c.c (BAD): Likewise.
9615         (c4x_parse_pragma): Likewise.
9616         * config/ia64/ia64-c.c (ia64_hpux_handle_builtin_pragma): Likewise.
9617         * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
9618         (rs6000_pragma_longcall): Likewise.
9619         * config/v850/v850-c.c (pop_data_area): Likewise.
9620         (ghs_pragma_section): Likewise.
9621         (ghs_pragma_section): Likewise.
9622         (ghs_pragma_interrupt): Likewise.
9623         (ghs_pragma_starttda): Likewise.
9624         (ghs_pragma_startsda): Likewise.
9625         (ghs_pragma_startzda): Likewise.
9626         (ghs_pragma_endtda): Likewise.
9627         (ghs_pragma_endsda): Likewise.
9628         (ghs_pragma_endzda): Likewise.
9629
9630 2005-07-19  Danny Berlin <dberlin@dberlin.org>
9631             Kenneth Zadeck <zadeck@naturalbridge.com>
9632
9633         * Makefile.in: Removed tree-promote-statics.c
9634         * tree-promote-statics.c: Removed.
9635         * common.opt: Removed flag-promote-statics.
9636         * opts.c: Ditto.
9637         * passes.c: Removed tree-promote-statics pass.
9638         * tree-pass.h: Ditto.
9639         * timevar.def: Removed TV_PROMOTE_STATICS.
9640
9641
9642 2005-07-19  Gerald Pfeifer  <gerald@pfeifer.com>
9643
9644         * config.gcc: Add support for *-*-freebsd7, *-*-freebsd8,
9645         and *-*-freebsd9.
9646         * config/freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Ditto.
9647
9648 2005-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9649
9650         PR c/22476
9651         * c-common.c (check_function_arguments): Call
9652         'check_function_format' if either -Wformat or
9653         -Wmissing-format-attribute are specified.
9654         * c-format.c (check_function_format): Check -Wformat before
9655         calling 'check_format_info'.
9656         * c-opts.c (c_common_post_options): Don't warn for
9657         -Wmissing-format-attribute without -Wformat.
9658         * c-typeck.c (convert_for_assignment): Detect additional cases for
9659         -Wmissing-format-attribute.
9660         * doc/invoke.texi (-Wmissing-format-attribute): Document new
9661         behavior.
9662
9663 2005-07-19  Richard Guenther  <rguenther@suse.de>
9664
9665         * config/i386/i386.md (lrint<mode>2): Use temporary
9666         instead of clobbering non-existent memory.
9667
9668 2005-07-19  Nick Clifton  <nickc@redhat.com>
9669
9670         * config/avr/avr.c (legitimate_address_p): Fix debugging print
9671         statement to avoid displaying ASCII control characters.
9672
9673 2005-07-19  Ben Elliston  <bje@au.ibm.com>
9674
9675         * bt-load.c (link_btr_uses): Fix uninitialised warnings.
9676         * cfganal.c (find_edge_index): Ditto.
9677         * combine.c (combine_instructions): Ditto.
9678         * ddg.c (create_scc): Ditto.
9679         (find_successors): Ditto.
9680         (find_predecessors): Ditto.
9681         (find_nodes_on_paths): Ditto.
9682         (longest_simple_path): Ditto.
9683         * flow.c (update_life_info): Ditto.
9684         (count_or_remove_death_notes): Ditto.
9685         (clear_log_links): Ditto.
9686         * modulo-sched.c (generate_reg_moves): Ditto.
9687         (find_max_asap): Ditto.
9688         (find_max_hv_min_mob): Ditto.
9689         (find_max_dv_min_mob): Ditto.
9690         * sbitmap.c (sbitmap_first_set_bit): Ditto.
9691         * sched-rgn.c (extract_edgelst): Ditto.
9692         * tree-into-ssa.c (prepare_names_to_update): Ditto.
9693         (dump_update_ssa): Ditto.
9694         (ssa_names_to_replace) Ditto.
9695         (switch_virtuals_to_full_rewrite): Ditto.
9696         (update_ssa): Ditto.
9697         * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
9698
9699 2005-07-18  Daniel Berlin  <dberlin@dberlin.org>
9700
9701         Fix PR tree-optimization/22483
9702
9703         * tree-complex.c (create_components): Use
9704         safe_referenced_var_iterator and FOR_EACH_REFERENCED_VAR_SAFE.
9705         * tree-flow-inline.h (fill_referenced_var_vec): New function.
9706         * tree-flow.h (safe_referenced_var_iterator): New structure.
9707         (FOR_EACH_REFERENCED_VAR_SAFE): New macro.
9708         * tree-ssa-alias.c (setup_pointers_and_addressables): Use
9709         safe_referenced_var iterator.
9710         (add_type_alias): Ditto.
9711
9712 2005-07-19  Steven Bosscher  <stevenb@suse.de>
9713
9714         * loop-init.c (rest_of_handle_loop2): Remove.
9715         (rtl_loop_init, rtl_loop_done, rtl_move_loop_invariants,
9716         rtl_unswitch, rtl_unroll_and_peel_loops, rtl_doloop): New functions.
9717         (pass_rtl_loop_init, pass_rtl_loop_done,
9718         pass_rtl_move_loop_invariants, pass_rtl_unswitch,
9719         pass_rtl_unroll_and_peel_loops, pass_rtl_doloop): New passes.
9720         * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_loop_done,
9721         pass_unswitch): Rename to pass_tree_loop, pass_tree_loop_init,
9722         pass_tree_loop_done, and pass_tree_unswitch.
9723         (gate_loop): Rename to gate_tree_loop.
9724         * passes.c (init_optimization_passes): Update for renamed tree
9725         loop passes.  Add the new loop2 passes as subpasses of loop2.
9726         * tree-pass.h: Add extern declarations for the new loop2 subpasses.
9727         Update for the renamed tree loop passes.
9728
9729 2005-07-18  Ian Lance Taylor  <ian@airs.com>
9730
9731         PR middle-end/22057
9732         * tree-cfgcleanup.c (cleanup_tree_cfg): Only remove forwarder
9733         blocks when optimizing.
9734
9735 2005-07-18  Steve Ellcey  <sje@cup.hp.com>
9736
9737         * common.opt (frename-registers): Initialize to 2.
9738         (fweb): Ditto.
9739         (fgcse-after-reload): Ditto.
9740         * toplev.c (AUTODETECT_FLAG_VAR_TRACKING): Rename to AUTODETECT_VALUE.
9741         (process_options): Only change flag_web, flag_rename_registers,
9742         and flag_rerun_cse_after_loop if not explicitly set by user.
9743
9744 2005-07-18  Jan Beulich  <jbeulich@novell.com>
9745
9746         * config/i386/i386.c (ix86_expand_branch, ix86_expand_setcc,
9747         ix86_expand_carry_flag_compare, ix86_expand_int_movcc): Handle TImode
9748         in 64-bit mode the same as DImode in 32-bit mode.
9749         (ix86_expand_ashl_const, ix86_split_ashl, ix86_split_ashr,
9750         ix86_split_lshr): Likewise. Rename to no longer refer to a specific
9751         mode. Add new mode parameter.
9752         * config/i386/i386.h (CONST_OK_FOR_LETTER_P): Describe and handle 'O'.
9753         * config/i386/i386.md (cmpti, addti3, subti3, negti2, ashlti3, ashrti3,
9754         x86_64_shift_adj): New expanders.
9755         (*addti3_1, *subti3_1, *negti2_1, ashlti3_1, *ashlti3_2, ashrti3_1,
9756         *ashrti3_2, lshrti3_1, *lshrti3_2, x86_64_shld, x86_64_shrd): New
9757         insns.
9758         Respective new splitters. Use renamed shift splitter helpers in 32-bit
9759         DImode shift splitters.
9760         * config/i386/i386-protos.h (ix86_split_ashl, ix86_split_ashr,
9761         ix86_split_lshr): Renamed from ix86_split_[al]sh[rl]di. Added new
9762         mode parameter.
9763
9764 2005-07-18  Jan Beulich  <jbeulich@novell.com>
9765
9766         * i386.md (movdi_extzv_1): New.
9767         (zero_extendhidi2): Combine alternatives and never force use of
9768         REX64 prefix.
9769         (zero_extendqidi2): Likewise. Don't restrict input selection.
9770
9771 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
9772
9773         Fix PR tree-optimization/22531
9774         * tree-ssa-pre.c (do_eustores):  Make sure LHS is a decl for the
9775          moment.
9776
9777 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
9778
9779         * tree-promote-statics.c (pass_promote_statics): Change dump file
9780          name.
9781
9782 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
9783
9784         * tree-optimize.c (init_tree_optimization_passes): Add
9785         pass_eliminate_useless_stores pass.
9786         * tree-pass.h (pass_eliminate_useless_stores): New pass structure.
9787         * tree-ssa-pre.c (is_copy_stmt): New function.
9788         (follow_copies_till_vuse): Ditto.
9789         (do_eustores): Ditto.
9790         (gate_eustores): Ditto.
9791
9792 2005-07-16  Richard Henderson  <rth@redhat.com>
9793
9794         * gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit.
9795
9796 2005-07-16 Danny Berlin <dberlin@dberlin.org>
9797            Kenneth Zadeck <zadeck@naturalbridge.com>
9798
9799         * Makefile.in: Added rules for ipa-pure-const.c, ipa-reference.c,
9800         ipa-reference.h, ipa-utils.c, ipa-utils.h, ipa-type-escape.c,
9801         ipa-type-escape.h, tree-promote-statics.c
9802         * ipa-pure-const.c, ipa-reference.c, ipa-reference.h, ipa-utils.c,
9803         ipa-utils.h, ipa-type-escape.c, ipa-type-escape.h,
9804         tree-promote-statics.c: new files.
9805         * alias.c: (nonlocal_mentioned_p_1, nonlocal_mentioned_p,
9806         nonlocal_referenced_p_1, nonlocal_referenced_p, nonlocal_set_p_1,
9807         int nonlocal_set_p, mark_constant_function): Deleted.
9808         (rest_of_handle_cfg): Removed call to mark_constant_function.
9809         (nonoverlapping_component_refs_p): Added calls to support
9810         type based aliasing.
9811         * tree-ssa-alias.c (may_alias_p,
9812         compute_flow_insensitive_aliasing): Ditto.
9813         * calls.c (flags_from_decl_or_type): Removed reference to
9814         cgraph_rtl_info.
9815         * c-typeck.c (convert_arguments): Make builtins tolerant of having
9816         too many arguments.  This is necessary for Spec 2000.
9817         * cgraph.h (const_function, pure_function): Removed.
9818         * common.opt: Added "fipa-pure-const", "fipa-reference",
9819         "fipa-type-escape", and "ftree-promote-static".
9820         * opts.c: Ditto.
9821         * passes.c: Added ipa and tree-promote-statics passes.
9822         * timevar.def: Added TV_IPA_PURE_CONST, TV_IPA_REFERENCE,
9823         TV_IPA_TYPE_ESCAPE, and TV_PROMOTE_STATICS.
9824         * tree-dfa.c (referenced_var_lookup_if_exists): New function.
9825         * tree-flow.h: Added exposed sra calls and addition of
9826         reference_vars_info field for FUNCTION_DECLS.
9827         * tree-pass.h: Added passes.
9828         * tree-sra.c: (sra_init_cache): New function.
9829         (sra_insert_before, sra_insert_after) Made public.
9830         (type_can_be_decomposed_p): Renamed from type_can_be_decomposed_p
9831         and made public.
9832         * tree-ssa-alias.c (dump_alias_stats): Added stats for type based
9833         aliasing. (may_alias_p): Added code to use type escape analysis to
9834         improve alias sets.
9835         * tree-ssa-operands.c (add_call_clobber_ops): Added parameter and
9836         code to prune clobbers of static variables based on information
9837         produced in ipa-reference pass.  Changed call clobbering so that
9838         statics are not marked as clobbered if the call does not clobber
9839         them.
9840
9841 2005-07-16  Daniel Berlin  <dberlin@dberlin.org>
9842
9843         * tree-ssa-structalias.c (need_to_solve): Need to check for preds,
9844         too.
9845
9846 2005-07-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
9847
9848         * doc/install.texi (*-*-solaris2*): Document recommended version
9849         of GNU binutils and mention GNU linker problem on Solaris 10.
9850
9851 2005-07-16  Joseph S. Myers  <joseph@codesourcery.com>
9852
9853         PR c/22421
9854         * c-decl.c (c_build_bitfield_integer_type): New function.
9855         (finish_struct): Call it.
9856         * c-pretty-print.c (pp_c_type_specifier): Handle bit-field types.
9857
9858 2005-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9859
9860         * c-typeck.c (digest_init): Call 'convert_for_assignment'
9861         before returning.
9862
9863 2005-07-16  Jan Hubicka  <jh@suse.cz>
9864
9865         * cfg.c (update_bb_profile_for_threading): Fix profile updating.
9866         (scale_bbs_frequencies_int): Watch roundoff errors.
9867         * predict.c (return_prediction): Initialize return_stmt.
9868
9869 2005-07-16  Jan Hubicka  <jh@suse.cz>
9870
9871         * profile.c (rest_of_handle_branch_prob): Fix handling of estimation
9872         after RTL profiling.
9873
9874 2005-07-11  Andrew Pinski  <pinskia@physics.uc.edu>
9875
9876         PR middle-end/22398
9877         * fold-const.c (build_range_check): Convert high/low to etype
9878         if we are only comparing against exp.
9879
9880 2005-07-13  Daniel Berlin  <dberlin@dberlin.org>
9881
9882         Fix PR tree-optimization/22376
9883         * tree-ssa-structalias.c (build_constraint_graph): We really meant
9884         special var here.
9885         (need_to_solve): New function.
9886         (compute_points_to_sets): Use it.
9887
9888 2005-07-15  Jan Hubicka  <jh@suse.cz>
9889
9890         * cfg.c (update_bb_profile_for_threading): More diagnostic.
9891         * tree-ssa-threadupdate.c (redirect_edges): Update profile of dup_block.
9892
9893 2005-07-15  Richard Guenther  <rguenther@suse.de>
9894
9895         * c-common.c (handle_flatten_attribute): New function.
9896         Add flatten function attribute.
9897         * doc/extend.texi: Document flatten function attribute.
9898         * Makefile.in (ipa-inline.o): Depend on hashtab.h.
9899         * ipa-inline.c (cgraph_find_cycles, cgraph_flatten_node):
9900         New functions.
9901         (cgraph_decide_inlining): Handle functions with flatten
9902         attribute.
9903
9904 2005-07-14  David Edelsohn  <edelsohn@gnu.org>
9905
9906         * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_LWSYNC,
9907         UNSPEC_ISYNC, UNSPEC_SYNC_OP, UNSPEC_ATOMIC, UNSPEC_CMPXCHG,
9908         UNSPEC_XCHG, UNSPEC_AND): New.
9909         (UNSPECV_ATOMIC, UNSPECV_SYNC, UNSPECV_SYNC_OP, UNSPECV_CMPXCHG,
9910         UNSPECV_LWSYNC, UNSPECV_ISYNC): Delete.
9911         * config/rs6000/sync.md (FETCHOP): New code macro.
9912         (fetchop_name, fetchop_pred, fetchopsi_constr, fetchopdi_constr):
9913         New code attrs.
9914         (memory_barrier, sync_internal): Use unspec instead of unspec_volatile.
9915         (sync_compare_and_swap<mode>): Same.
9916         (sync_lock_test_and_set<mode>): Same.
9917         (sync_<fetchop><mode>, sync_nand<mode>): Only use rs6000_emit_sync
9918         for QImode and HImode, and not PPC405.
9919         (sync_old_<fetchop><mode>, sync_old_nand<mode>): Same.
9920         (sync_new_<fetchop><mode>, sync_new_nand<mode>): Same.
9921         (sync_<fetchop>{si,di}_internal): New.
9922         (sync_nand{si,di}_internal): New.
9923         (sync_old_<fetchop>{si,di}_internal): New.
9924         (sync_old_nand{si,di}_internal): New
9925         (sync_new_<fetchop>{si,di}_internal): New.
9926         (sync_new_nand{si,di}_internal): New.
9927         (atomic_and{si,di}): New.
9928         (sync_new_nand{si,di}_internal): New.
9929         (atomic_and{si,di}): New.
9930         (sync_add<mode>_internal): Delete.
9931         (sync_addshort_internal): Use unspec instead of unspec_volatile.
9932         (sync_sub<mode>_internal): Delte.
9933         (sync_subshort_internal): New.
9934         (sync_andsi_internal): Use unspec instead of unspec_volatile.
9935         (sync_anddi_internal): Delete.
9936         (sync_boolsi_internal): Use unspec instead of unspec_volatile.
9937         (sync_booldi_internal): Delete.
9938         (sync_boolc<mode>_internal): Delete.
9939         (sync_boolcshort_internal): Use unspec instead of unspec_volatile.
9940         (sync_boolc<mode>_internal2): Delete.
9941         (sync_boolcc<mode>_internal): Delete.
9942         (isync, lwsync): Use unspec instead of unspec_volatile.
9943         * config/rs6000/rs6000.c (rs6000_emit_sync): Implement MINUS.
9944         Revert UNSPEC_VOLATILE.
9945         (rs6000_split_atomic_op): New.
9946         * config/rs6000/rs6000-protos.h (rs6000_split_atomic_op): Declare.
9947
9948 2005-07-14  Eric Christopher  <echristo@redhat.com>
9949
9950         * config/mips/mips.c (mips_canonicalize_comparison): Cast
9951         argument of trunc_int_for_mode to unsigned HOST_WIDE_INT.
9952
9953 2005-07-14  Eric Christopher  <echristo@redhat.com>
9954
9955         * config/s390/t-tpf (SHLIB_MAPFILES): Remove.
9956
9957 2005-07-14  Steven Bosscher  <stevenb@suse.de>
9958
9959         PR tree-optimization/22230
9960         * tree-vrp.c (extract_range_from_binary_expr): Fix logics thinko in
9961         the computation of the four cross productions for "range op range".
9962
9963 2005-07-14  Alexandre Oliva  <aoliva@redhat.com>
9964             Ulrich Weigand  <uweigand@de.ibm.com>
9965
9966         PR target/20126
9967         * loop.c (loop_givs_rescan): Do not ICE if unable to reduce an IV
9968         in some insn.
9969
9970 2005-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
9971
9972         * config/s390/s390.h (TARGET_TPF_PROFILING): Add default definition.
9973
9974 2005-07-14  Steve Ellcey  <sje@cup.hp.com>
9975
9976         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Support ILP32 mode.
9977
9978 2005-07-14  Richard Guenther  <rguenther@suse.de>
9979
9980         PR middle-end/22347
9981         * config/i386/i386-protos.h (ix86_function_value): Change
9982         prototype to match new target hook.
9983         * config/i386/i386.c (ix86_value_regno): Change prototype
9984         to take extra type argument.
9985         (TARGET_FUNCTION_VALUE): Define.
9986         (ix86_function_ok_for_sibcall): Pass extra argument to
9987         ix86_value_regno, check return slot rtx for exact match.
9988         (ix86_function_value): Take extra parameter.  Dispatch to
9989         ix86_value_regno with fndecl/fntype as provided.
9990         (ix86_value_regno): Handle extra type argument.
9991         * config/i386/i386.h (FUNCTION_VALUE): No longer define.
9992
9993         * testsuite/gcc.target/i386/sseregparm-3.c: New testcase.
9994         * testsuite/gcc.target/i386/sseregparm-4.c: New testcase.
9995         * testsuite/gcc.target/i386/sseregparm-5.c: New testcase.
9996         * testsuite/gcc.target/i386/sseregparm-6.c: New testcase.
9997         * testsuite/gcc.target/i386/sseregparm-7.c: New testcase.
9998
9999 2005-07-14  Richard Guenther  <rguenther@suse.de>
10000
10001         * Makefile.in (explow.o, reg-stack.o): Depend on target.h.
10002         * calls.c (expand_call): Pass fntype to hard_function_value.
10003         (emit_library_call_value_1): Likewise.
10004         * explow.c: Include target.h.
10005         (hard_function_value): Take extra argument, the fntype.
10006         Use new target hook for function_value.
10007         * expr.h (hard_function_value): Change prototype.
10008         * function.c (aggregate_value_p): Pass 0 as fntype to
10009         hard_function_value.
10010         (assign_parms): Use new target hook for function_value.
10011         Pass 0 as fntype to hard_function_value.
10012         (expand_function_end): Likewise.
10013         * reg-stack.c: Include target.h.
10014         (stack_result): Use new target hook for function_value.
10015         * target-def.h: New target hook function_value.
10016         * target.h: Likewise.
10017         * targhooks.c (default_function_value): New function.
10018         * targhooks.h (default_function_value): Declare.
10019
10020 2005-07-13  Ian Lance Taylor  <ian@airs.com>
10021
10022         * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
10023
10024 2005-07-14  Jan Hubicka  <jh@suse.cz>
10025
10026         * tree-dfa.c (dump_variable): Use default_def function.
10027         * tree-ssa-alias.c (dump_points_to_info): Likewise.
10028         * tree-ssa.c (verify_use): Likewise.
10029         * tree-ssanames.c (release_ssa_name): Likewise.
10030         * tree-tailcall.c (eliminate_tail_call): Likewise.
10031         (tree_optimize_tail_calls_1): Likewise.
10032         * tree-vrp.c (get_value_range): Likewise.
10033
10034 2005-07-14  Ben Elliston  <bje@au.ibm.com>
10035
10036         * gcc.c (main): Compare language[0] with '*' when iterating over
10037         the infiles.
10038
10039 2005-07-13  Adrian Strae½tling  <straetling@de.ibm.com>
10040
10041         * config/s390/s390.c: (s390_cc_modes_compatible): Move before
10042         "s390_emit_compare".  Add handling of CCZ1mode.
10043         (s390_canonicalize_comparison): Simplify cascaded EQ, NE.
10044         (390_emit_compare): Use "s390_cc_modes_compatible" for mode
10045         checking.
10046         (s390_branch_condition_mask): Add CCZ1mode handling.
10047         * config/s390/s390.md: ("seq", "*seq"): New pattern.
10048         ("sync_compare_and_swap_cc<mode>", "*sync_compare_and_swap_cc<mode>"):
10049         Use CCZ1mode instead of CCZmode.
10050         * config/s390/s390-modes.def: Add CCZ1mode.  Comment new mode.
10051
10052 2005-07-13  Adrian Strae½tling  <straetling@de.ibm.com>
10053
10054         * config/s390/s390.md: ("cmpstrsi", "*cmpstr<mode>"): New
10055         pattern.
10056         ("strlen<mode>", "*strlen<mode>"): Use hard reg 0 in SImode.
10057
10058 2005-07-13  Eric Christopher  <echristo@redhat.com>
10059
10060         * config/mips/mips.c (mips_canonicalize_comparison): New.
10061         (mips_emit_int_relational): Use.
10062
10063 2005-07-13  Eric Christopher  <echristo@redhat.com>
10064
10065         * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
10066         static extra parts.
10067         * config/s390/s390.md: Include tpf.md. Move tpf specific
10068         patterns...
10069         * config/s390/tpf.md: To here.
10070         * config/s390/s390.opt: Move tpf specific options...
10071         * config/s390/tpf.opt: to here. Add mmain option.
10072         * config/s390/tpf-unwind.h: Remove unnecessary defines.
10073         * config/s390/tpf.h: Rewrite.
10074
10075 2005-07-13  H.J. Lu  <hongjiu.lu@intel.com>
10076
10077         * doc/tm.texi: Remove @xref{Cross-profiling}.
10078
10079 2005-07-13  Jeff Law  <law@redhat.com>
10080
10081         * fold-const.c (fold_binary): When comparing two simple ADDR_EXPR
10082         expressions, test their _DECL operands for pointer equality rather
10083         than using operand_equal_p.
10084
10085 2005-07-13  H.J. Lu  <hongjiu.lu@intel.com>
10086
10087         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Renamed to ...
10088         (TARGET_POSIX_IO): This.
10089         * config/darwin.h: Likewise.
10090         * config/freebsd.h: Likewise.
10091         * config/linux.h: Likewise.
10092         * config/lynx.h: Likewise.
10093         * config/netbsd.h: Likewise.
10094         * config/rs6000/linux64.h: Likewise.
10095         * config/rs6000/linux.h: Likewise.
10096         * config/s390/tpf.h: Likewise.
10097         * config/sh/embed-elf.h: Likewise.
10098         * config/sparc/linux64.h: Likewise.
10099         * config/sparc/linux.h: Likewise.
10100         * config/svr4.h: Likewise.
10101         * gcov-io.h: Likewise.
10102
10103         * doc/tm.texi: Updated.
10104
10105         * libgcov.c (create_file_directory): Defined only if
10106         TARGET_POSIX_IO is defined.
10107         (gcov_exit): Call create_file_directory only if TARGET_POSIX_IO
10108         is defined.
10109
10110 2005-07-13  Jan Hubicka  <jh@suse.cz>
10111
10112         * tree-ssa-operands.c (get_expr_operands): Fix typo in previous patch.
10113
10114 2005-07-13  David Edelsohn  <edelsohn@gnu.org>
10115
10116         * tree-ssa-dom.c (lookup_avail_expr): Do not pass member in freed
10117         structure as argument.
10118
10119 2005-07-13  Paolo Bonzini  <bonzini@gnu.org>
10120
10121         PR tree-optimization/21921
10122         * tree-iterator.c (tsi_link_before): Support the case when
10123         tsi_end_p (tsi) == true.
10124
10125 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
10126
10127         PR tree-optimization/22442
10128         * tree-chrec.c (chrec_fold_multiply_poly_poly): Associate chrecs
10129         correctly.
10130
10131 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
10132
10133         PR rtl-optimization/20376
10134         * toplev.c (process_options): Enable -fweb and -frename-registers when
10135         unrolling.
10136         * doc/invoke.texi: Update the information about when -fweb and
10137         -frename-registers are enabled.
10138
10139 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
10140
10141         PR tree-opt/21840
10142         * tree-ssa-pre.c (eliminate): Convert the sprime to the correct type
10143         if *rhs_p is not a SSA_NAME.
10144
10145 2005-07-12  Daniel Berlin  <dberlin@dberlin.org>
10146
10147         Fix PR tree-optimization/22422
10148         * tree-ssa-structalias.c (struct variable_info): Add flag for
10149         special vars.
10150         (get_varinfo): Now a static function.
10151         (new_varinfo): init has_union and is_special_var to false.
10152         (solution_set_add): Check has_union.
10153         (do_da_constraint): Move temporary variable so it gets reset
10154         properly.
10155         Also check for special variable.
10156         (do_ds_constraint): Ditto.
10157         (do_sd_constraint): Ditto.
10158         (do_structure_copy): Check for special variable.
10159         (find_func_aliases): Ditto.
10160         (init_base_vars): Set special vars properly.
10161
10162 2005-07-13  Jan Hubicka  <jh@suse.cz>
10163
10164         * cfgexpand.c (expand_one_stack_var): Do not expand variables when we
10165         do unit-at-a-time.
10166
10167         * tree-ssa-operands.c (parse_ssa_operands): Fix formatting.
10168         (get_expr_operands): Fix thinko wrt flags and subvars.
10169
10170         PR tree-optimize/22379
10171         * tree-inline.c (expand_call_inline): Do not output sorry in early
10172         inlining.
10173
10174 2005-07-12  Dale Johannesen  <dalej@apple.com>
10175
10176         * config/rs6000.c (rs6000_rtx_cost):  Move FLOAT_EXTEND.
10177
10178 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
10179
10180         PR bootstrap/21704
10181         * host-linux.h: Include limits.h.
10182
10183 2005-07-12  Dale Johannesen  <dalej@apple.com>
10184
10185         * expr.c (compress_float_constant):  Add cost check.
10186         * config/rs6000.c (rs6000_rtx_cost):  Adjust FLOAT_EXTEND cost.
10187
10188 2005-07-12  Dale Johannesen  <dalej@apple.com>
10189
10190         * gcc.target/i386/compress-float-sse.c:  New.
10191         * gcc.target/i386/compress-float-sse-pic.c:  New.
10192         * gcc.target/i386/compress-float-387.c:  New.
10193         * gcc.target/i386/compress-float-387-pic.c:  New.
10194         * gcc.dg/compress-float-ppc.c:  New.
10195         * gcc.dg/compress-float-ppc-pic.c:  New.
10196
10197 2005-07-12  Eric Christopher  <echristo@redhat.com>
10198
10199         * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
10200         static extra parts.
10201         * config/s390/s390.md: Include tpf.md. Move tpf specific
10202         patterns...
10203         * config/s390/tpf.md: To here.
10204         * config/s390/s390.opt: Move tpf specific options...
10205         * config/s390/tpf.opt: to here. Add mmain option.
10206         * config/s390/tpf-unwind.h: Remove unnecessary defines.
10207         * config/s390/tpf.h: Rewrite.
10208
10209 2005-07-12  Eric Christopher  <echristo@redhat.com>
10210
10211         * gcc.c (struct infile): Update comment for language.
10212         (main): Rewrite input file resetting code.
10213
10214 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
10215
10216         PR tree-opt/22335
10217         * tree-ssa-dom.c (eliminate_redundant_computations): Reject the prop if
10218         requiring a cast in a non RHS of modify_expr.  Add a cast when required.
10219         (lookup_avail_expr): Use constant_boolean_node instead
10220         of boolean_false_node/boolean_true_node.
10221
10222 2005-07-12  Ben Elliston  <bje@au.ibm.com>
10223
10224         * tree-cfg.c (dump_cfg_stats): Add a new fmt_str_2 format string
10225         and use it when printing num_edges.
10226
10227 2005-07-12  Bernd Schmidt  <bernd.schmidt@analog.com>
10228
10229         * doc/extend.texi (Blackfin Built-in Functions): New section.
10230         * doc/invoke.texi (mcsync-anomaly, mno-csync-anomaly): Fix the
10231         @opindex.
10232
10233 2005-07-12  Adrian Straetling  <straetling@de.ibm.com>
10234
10235         * builtins.c: (expand_builtin_memcmp, expand_builtin_strncmp):
10236         s/cmpstrsi/cmpstrnsi
10237         (expand_builtin_strcmp): Rewrite to support both 'cmpstrsi' and
10238         'cmpstrnsi'.
10239         * optabs.c: (prepare_cmp_insn): Add availability of 'cmpstrn'.
10240         (init_optabs): Initialize cmpstrn_optab.
10241         * optabs.h: (enum insn_code cmpstrn_optab): Declare.
10242         * genopinit.c: (optabs[]): Add 'cmpstrn' to initialisation.
10243         * expr.c: (enum insn_code cmpstrn_optab): Declare.
10244         * config/i386/i386.md: s/cmpstr/cmpstrn
10245         * config/c4x/c4x.md: s/cmpstr/cmpstrn
10246         * doc/md.texi: Update documentation.
10247
10248 2005-07-11  Richard Henderson  <rth@redhat.com>
10249
10250         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use
10251         build_va_arg_indirect_ref.
10252         (alpha_gimplify_va_arg): Likewise.
10253         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
10254         * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
10255         * config/mips/mips.c (mips_gimplify_va_arg_expr): Likewise.
10256         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
10257         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
10258         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg):
10259         Likewise.
10260         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
10261
10262 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
10263
10264         * tree-flow.h (remove_empty_loops, single_dom_exit): Declare.
10265         * passes.c (init_optimization_passes): Add pass_empty_loop.
10266         * tree-pass.h (pass_empty_loop): Declare.
10267         * tree-ssa-loop-ivcanon.c (empty_loop_p, remove_empty_loop,
10268         try_remove_empty_loop, remove_empty_loops): New functions.
10269         * tree-ssa-loop-ivopts.c (single_dom_exit): Export.
10270         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): New.
10271
10272 2005-07-12  Peter Barada  <peter@the-baradas.com>
10273
10274         PR middle-end/16719
10275         PR middle-end/18421
10276         * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Disallow bytes
10277         in address registers.
10278         * config/m68k/m68k.c (hard_regno_mode_ok): Likewise.
10279         * config/m68k/m68k.md: Replace 's' with 'i' in 4th
10280         alternative of addsi3_5200.
10281
10282 2005-07-11  Ian Lance Taylor  <ian@airs.com>
10283
10284         * config/mips/mips.md (ffs<mode>2): Remove.
10285
10286 2005-07-11  Ian Lance Taylor  <ian@airs.com>
10287
10288         * doc/tree-ssa.texi (Cleanups): Improve description of
10289         TRY_FINALLY_EXPR.
10290         (GIMPLE Exception Handling): Clarify TRY_CATCH_EXPR cases.
10291
10292 2005-07-11  Daniel Berlin  <dberlin@dberlin.org>
10293
10294         * print-tree.c (print_node): Use DECL_ARGUMENT_FLD.
10295         * tree.h (DECL_ARGUMENT_FLD): New macro.
10296
10297 2005-07-11  Daniel Berlin  <dberlin@dberlin.org>
10298
10299         Fix PR tree-optimization/22404
10300
10301         * tree-ssa-structalias.c (create_variable_info_for): Use
10302         correct offset.
10303
10304 2005-07-11  Bernd Schmidt  <bernd.schmidt@analog.com>
10305
10306         * config/bfin/bfin.md (cmpsi, compare_eq, compare_ne, compare_lt,
10307         compare_le, compare_leu, compare_ltu): Use reg_or_const_int_operand
10308         for second comparison operand.
10309         * config/bfin/predicates.md (reg_or_const_int_operand): New.
10310
10311         * config/bfin/bfin.md (define_attr "type"): Add "sync".
10312         (define_insn_reservation "alu"): Likewise.
10313         (csync, ssync): Now of type sync.
10314         * config/bfin/bfin.h (TARGET_DEFAULT): Defaults to
10315         -mcsync-anomaly -mspecld-anomaly.
10316         * config/bfin/bfin.opt (mcsync): Remove.
10317         (mcsync-anomaly, mspecld-anomaly): Add.
10318         * config/bfin/bfin.c: Include "insn-codes.h".
10319         (bfin_reorg): Extend to handle the CSYNC anomaly as well.
10320         (TARGET_DEFAULT_TARGET_FLAGS): New.
10321         * doc/invoke.texi: Document -mcsync-anomaly, -mspecld-anomaly.
10322
10323 2005-07-11  Steven Bosscher  <stevenb@suse.de>
10324
10325         * basic-block.h: Give the BB flags enum a name, bb_flags.
10326         Add new flags BB_FORWARDER_BLOCK, and BB_NONTHREADABLE_BLOCK.
10327         * cfgcleanup.c (enum bb_flags): Remove here.
10328         (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG): Remove.
10329         (notice_new_block): Set/test bb->flags instead of aux via BB_FLAGS.
10330         (update_forwarder_flag): Likewise.
10331         (thread_jump): Likewise.
10332         (try_forward_edges): Likewise.
10333         (try_optimize_cfg): Likewise.  Clear bb->flags before updating the
10334         forwarder flags.  Don't clear bb->aux for all basic blocks.  Only
10335         reset the BB_FORWARDER_BLOCK and BB_NONTHREADABLE_BLOCK flags.
10336
10337 2005-07-11  Richard Guenther  <rguenther@suse.de>
10338
10339         * config/i386/i386.opt: New target option -msseregparm.
10340         * config/i386/i386.c (override_options): Error out for
10341         -msseregparm but no SSE support.
10342         (ix86_function_sseregparm): Check for global sseregparm.
10343         * doc/invoke.texi: Document -msseregparm.
10344
10345 2005-07-11  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
10346
10347         * config.gcc (m32r-*-linux*): Use the default extra_parts.
10348         (m32rle-*-linux*): Ditto.
10349
10350 2005-07-11  Jakub Jelinek  <jakub@redhat.com>
10351
10352         * cfgexpand.c (stack_protect_classify_type): Use TYPE_SIZE_UNIT (type)
10353         instead of TYPE_MAX_VALUE (TYPE_DOMAIN (type)) to get array size in
10354         bytes.
10355
10356 2005-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10357
10358         PR middle-end/22239
10359         PR target/20126
10360         * loop.c (loop_givs_rescan): Use expand_simple_binop instead of
10361         gen_rtx_MINUS to handle non-replaceable (plus ((x) (const)).
10362
10363 2005-07-07  Daniel Berlin  <dberlin@dberlin.org>
10364
10365         * tree-ssa-structalias.c (struct variable_info): Heapify complex.
10366         (varmap): Heapify varmap.
10367         (constraints): Heapify constraints.
10368         (struct constraint_graph): Heapify succs and preds.
10369         (constraint_vec_find): Update for heapification.
10370         (constraint_set_union): Ditto.
10371         (insert_into_complex): Ditto.
10372         (constraint_edge_vec_find): Ditto.
10373         (erase_graph_self_edge): Ditto.
10374         (add_graph_edge): Ditto.
10375         (get_graph_weights): Ditto.
10376         (merge_graph_nodes): Ditto.
10377         (build_constraint_graph): Ditto.
10378         (topo_visit): Ditto.
10379         (solve_graph): Ditto.
10380         (create_variable_info_for): Ditto.
10381         (init_base_vars): Ditto.
10382         (delete_points_to_sets): Free graph, varmap, and complex constraints.
10383         (condese_varmap_nodes): Free complex vector.
10384         (clear_edges_for_node): Clear succs and preds vector.
10385
10386 2005-07-10  Daniel Berlin  <dberlin@dberlin.org>
10387
10388         * tree-ssa-structalias.c (update_alias_info): Change counting of
10389         references to not include vdefs.
10390
10391 2005-07-10  Daniel Berlin  <dberlin@dberlin.org>
10392
10393         * tree-ssa-alias.c (free_used_part_map): Add missing free.
10394         (up_insert): Ditto.
10395
10396 2005-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10397
10398         * pa.c (pa_commutative_p): Make PLUS commutative when
10399         TARGET_NO_SPACE_REGS is true.
10400
10401 2005-07-09  Diego Novillo  <dnovillo@redhat.com>
10402
10403         * Makefile.in (tree-ssa-alias.o): Depend on tree-ssa-structalias.h
10404         * tree-cfg.c (CHECK_OP): Only test for is_gimple_val.
10405         * tree-dfa.c (dump_subvars_for): New.
10406         (debug_subvars_for): New.
10407         (dump_variable): Show subvariables if VAR has them.
10408         * tree-flow-inline.h (get_subvar_at): New.
10409         (overlap_subvar): Change offset and size to unsigned HOST_WIDE_INT.
10410         * tree-flow.h (struct ptr_info_def): Remove field pt_malloc.
10411         Update all users.
10412         (struct subvar): Change fields offset and size to unsigned
10413         HOST_WIDE_INT.
10414         (dump_subvars_for): Declare.
10415         (debug_subvars_for): Declare.
10416         (get_subvar_at): Declare.
10417         (okay_component_ref_for_subvars): Change 2nd and 3rd argument
10418         to unsigned HOST_WIDE_INT *.
10419         (overlap_subvar): Likewise.
10420         * tree-gimple.c (is_gimple_reg): Always return false for
10421         SFTs and memory tags.
10422         * tree-pass.h (pass_build_pta, pass_del_pta): Remove.
10423         Update all callers.
10424         * tree-ssa-alias.c: Include tree-ssa-structalias.h.
10425         (compute_may_aliases): Call compute_points_to_sets.
10426         (collect_points_to_info_for): Remove.
10427         (compute_points_to_and_addr_escape): Remove.
10428         (delete_alias_info): Call delete_points_to_sets.
10429         (compute_flow_sensitive_aliasing): If the call to
10430         find_what_p_points_to returns false, call set_pt_anything.
10431         (add_may_alias): Set TREE_ADDRESSABLE when adding a new alias.
10432         (set_pt_anything): Clear pi->pt_vars.
10433         (set_pt_malloc): Remove.
10434         (merge_pointed_to_info): Remove.
10435         (add_pointed_to_expr): Remove.
10436         (add_pointed_to_var): Remove.
10437         (collect_points_to_info_r): Remove.
10438         (is_escape_site): Make extern.
10439         (create_sft): New.
10440         (create_overlap_variables_for): Call it.
10441         * tree-ssa-copy.c (merge_alias_info): Never merge
10442         flow-sensitive alias information.
10443         * tree-ssa-operands.c (get_expr_operands): Adjust variables
10444         offset and size to be unsigned HOST_WIDE_INT.
10445         (add_to_addressable_set): Rename from note_addressable.
10446         Set TREE_ADDRESSABLE as the variables are added to the set.
10447         Update all users.
10448         (add_stmt_operand): Do not try to micro-optimize unmodifiable
10449         operands into VUSEs when adding V_MAY_DEFs for members in an
10450         alias set.
10451         * tree-ssa-operands.h (add_to_addressable_set): Declare.
10452         * tree-ssa-structalias.c: Include tree-ssa-structalias.h last.
10453         (struct variable_info): Add bitfield is_heap_var.
10454         (var_anyoffset, anyoffset_tree, anyoffset_id): Declare.
10455         (new_var_info): Initialize is_heap_var.
10456         (get_constraint_for): Add HEAP variables to the symbol table.
10457         Mark them with is_heap_var.
10458         (update_alias_info): New.  Taken mostly from the old
10459         compute_points_to_and_addr_escape.
10460         (handle_ptr_arith): New.
10461         (find_func_aliases): Call update_alias_info.
10462         Call handle_ptr_info for tcc_binary expressions.
10463         Call mark_stmt_modified.
10464         (create_variable_info_for): If DECL has subvars, do not create
10465         variables for its subvars.  Always add all the fields.
10466         (set_uids_in_ptset): If the solution includes ANYOFFSET and
10467         SFTs, then add all the SFTs of the structure.
10468         If VI->DECL is an aggregate with subvariables, add the SFT at
10469         VI->OFFSET.
10470         (find_what_p_points_to): If VI is an artificial variable,
10471         translate to bitfields in SSA_NAME_PTR_INFO.
10472         If the solution is empty, set pi->pt_vars to NULL
10473         (init_base_vars): Create ANYOFFSET.
10474         (compute_points_to_sets): Rename from create_alias_vars.
10475         Make extern.
10476         (pass_build_pta): Remove.
10477         (delete_points_to_sets): Rename from delete_alias_vars.
10478         (pass_del_pta): Remove.
10479         * tree-ssa-structalias.h (struct alias_info): Move from
10480         tree-ssa-alias.h.
10481         (NUM_REFERENCES, NUM_REFERENCES_CLEAR, NUM_REFERENCES_INC,
10482         NUM_REFERENCES_SET): Likewise.
10483         (compute_points_to_sets, delete_points_to_sets): Declare.
10484
10485 2005-07-09  Richard Henderson  <rth@redhat.com>
10486
10487         * config/alpha/alpha.c (emit_insxl, alpha_expand_compare_and_swap_12,
10488         alpha_split_compare_and_swap_12, alpha_expand_lock_test_and_set_12,
10489         alpha_split_lock_test_and_set_12): New functions.
10490         * config/alpha/alpha-protos.h: Update.
10491         * config/alpha/alpha.md (UNSPEC_MB, UNSPEC_ATOMIC,
10492         UNSPEC_CMPXCHG, UNSPEC_XCHG): Rename from UNSPECV_FOO.
10493         * config/alpha/sync.md (I12MODE): New.
10494         (memory_barrier, mb_internal): Use unspec instead of unspec_volatile.
10495         (sync_<fetchop_name><I48MODE>): Likewise.
10496         (sync_nand<I48MODE>): Likewise.
10497         (sync_old_<fetchop_name><I48MODE>): Likewise.
10498         (sync_new_<fetchop_name><I48MODE>): Likewise.
10499         (sync_old_nand<I48MODE>, sync_new_nand<I48MODE>): Likewise.
10500         (sync_compare_and_swap<I48MODE>): Likewise.
10501         (sync_lock_test_and_set<I48MODE>): Likewise.
10502         (sync_compare_and_swap<I12MODE>): New.
10503         (sync_compare_and_swap<I12MODE>_1): New.
10504         (sync_lock_test_and_set<I12MODE>): New.
10505         (sync_lock_test_and_set<I12MODE>_1): New.
10506
10507 2005-07-09  Diego Novillo  <dnovillo@redhat.com>
10508
10509         PR 21356
10510         PR 22332
10511         * passes.c (execute_todo): Cleanup the CFG before updating SSA.
10512
10513 2005-07-09  Jakub Jelinek  <jakub@redhat.com>
10514
10515         * config/i386/i386.c (output_set_got): Don't omit OFFSET FLAT:
10516         in Intel syntax add %reg, OFFSET FLAT:_GLOBAL_OFFSET_TABLE_+(.-.Lx).
10517
10518 2005-07-09  Richard SAndiford  <richard@codesourcery.com>
10519
10520         PR target/21656
10521         * config/mips/elf.h (NO_IMPLICIT_EXTERN_C): Define.
10522
10523 2005-07-08  David Edelsohn  <edelsohn@gnu.org>
10524
10525         * config/rs6000/sync.md (load_locked_<mode>): Use Z for
10526         memory_operand constraint.
10527         (store_conditional_<mode>): Same.
10528         (sync_compare_and_swap<mode>): Same.
10529         (sync_lock_test_and_set<mode>): Same.
10530
10531 2005-07-08  Hans-Peter Nilsson  <hp@axis.com>
10532
10533         Rewrite PIC support to more closely model actual instructions.
10534         * config/cris/cris-protos.h (cris_gotless_symbol, cris_got_symbol)
10535         (cris_symbol): Remove prototypes for removed functions.
10536         (cris_pic_symbol_type_of, cris_valid_pic_const)
10537         (cris_expand_pic_call_address): Prototypes for new functions.
10538         * config/cris/cris/cris.c (cris_pic_sympart_only): Remove unused
10539         variable.
10540         (cris_print_operand) <case 'v', 'P'>: Remove cases for unused
10541         modifiers.
10542         <case ':'>: Add case for new punctuation character.
10543         <case 'd'>: Temporarily set flag_pic = 2 instead of incorrectly
10544         emitting (extra) PIC modifier.
10545         <case UNSPEC>: Do not assert for PLT.
10546         (cris_initial_frame_pointer_offset, cris_simple_epilogue)
10547         (cris_expand_prologue, cris_expand_epilogue): Check
10548         for pic_offset_table_rtx usage instead of taking
10549         current_function_uses_pic_offset_table as the final word.
10550         (cris_rtx_costs, cris_address_cost, cris_side_effect_mode_ok):
10551         Remove flag_pic difference.
10552         (cris_valid_pic_const, cris_pic_symbol_type_of): New functions,
10553         the moral equivalents of...
10554         (cris_symbol, cris_gotless_symbol, cris_got_symbol): Remove
10555         functions.
10556         (cris_legitimate_pic_operand): Just call cris_valid_pic_const.
10557         (cris_handle_option): Mark ARG as unused.
10558         (cris_expand_pic_call_address): New worker function for "call",
10559         "call_value".
10560         (cris_asm_output_symbol_ref, cris_asm_output_label_ref): Do not
10561         output PIC constructs here.
10562         (cris_output_addr_const_extra): Changes for emitting PIC modifiers
10563         as symbol-specific modifers, not whole or part of operands.
10564         * config/cris/cris/cris.h (EXTRA_CONSTRAINT): Remove 'U' case.
10565         (EXTRA_CONSTRAINT_S): Changed semantics: allow only CONST-wrapped
10566         constants and flag_pic.
10567         (CONSTANT_INDEX_P): Adjust for new functions.
10568         (enum cris_pic_symbol_type): New helper type.
10569         (PRINT_OPERAND_PUNCT_VALID_P): Add ':'.
10570         * config/cris/cris/cris.md (CRIS_UNSPEC_GOTREL)
10571         (CRIS_UNSPEC_GOTREAD, CRIS_UNSPEC_PLTGOTREAD): New
10572         define_constants.
10573         ("movsi"): Emit actual instructions for GOT and relative access.
10574         ("*movsi_got_load"): New pattern to set up the register holding
10575         the GOT pointer.
10576         ("*movsi_internal"): Operand 1 is not a plain general_operand.
10577         Adjust FIXME for 'S'.
10578         <output for 'S' alternative>: Sanity-check UNSPEC types for PIC.
10579         Use "movs" for -fpic cases.
10580         ("addsi3"): Add alternative for 'S'; use adds.w when possible.
10581         ("uminsi3","*expanded_call_value"): Remove 'S' alternative.
10582         ("call", "call_value"): Just call cris_expand_pic_call_address for
10583         PIC addresses.
10584         ("*expanded_call_no_gotplt", "*expanded_call_value_no_gotplt"):
10585         Remove special pattern.
10586         ("*expanded_call_side", "*expanded_call_value_side"): New
10587         patterns.
10588         (gotplt-to-plt, gotplt-to-plt-side-call)
10589         (gotplt-to-plt-side-call-value, gotplt-to-plt-side): New
10590         peephole2:s.
10591         * config/cris/cris/predicates.md
10592         ("cris_general_operand_or_gotless_symbol"): Remove unused
10593         predicate.
10594         ("cris_general_operand_or_symbol"): Adjust for new functions.
10595
10596 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
10597
10598         * config/darwin.h (TARGET_C99_FUNCTIONS): Define to 1.
10599
10600 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
10601
10602         * Makefile.in (TREE_H): Add treestruct.def.
10603         (c-decl.o): Add pointer-set.h
10604         * c-decl.c (diagnose_mismatched_decls): Don't attempt to look at
10605         visibility on regular DECL's.
10606         (merge_decls): Fix the copying of decl nodes of various types for
10607         the new structures.  Don't update RTL, section name, weak status,
10608         etc, on DECL's without RTL.
10609         (grokdeclarator): DECL_ARG_TYPE_AS_WRITTEN is gone.
10610         Don't check volatile on non-variable types.
10611         (store_parm_decls_oldstyle): Use pointer_set instead of DECL_WEAK
10612         to check whether we have seen arguments.
10613         * c-objc-common.c (c_tree_printer): Reverse order of tests so that
10614         flag is checked before field (flag is common, field is not).
10615         * dwarf2out.c (decl_ultimate_origin):  Only DECL's with
10616         TS_DECL_COMMON could have an origin.
10617         (add_location_or_const_value_attribute): Don't check section name
10618         on non-var/function decls.
10619         (dwarf2out_var_location): Reverse order of tests.
10620         * emit-rtl.c (set_reg_attrs_for_parm): DECL_CHECK is dead, replace
10621         with DECL_WRTL_CHECK.
10622         * expmed.c (make_tree): rtl is now in decl_with_rtl.
10623         * fold-const.c (fold_binary): Don't check weakness on
10624         non-var/function decls.
10625         (tree_expr_nonzero_p): Ditto.
10626         (fold_checksum_tree): Use tree_decl_extra as sizeof
10627         buffer.
10628         * ggc-page.c (extra_order_size_table): Add sizes for
10629         tree_decl_non_common, tree_parm_decl,  tree_var_decl, and
10630         tree_field_decl.
10631         * gimplify.c (gimplify_bind_expr): Only set
10632         DECL_SEEN_IN_BIND_EXPR_P on VAR_DECL.
10633         * integrate.c (copy_decl_for_inlining): Don't set RTL on decl's
10634         without RTL.
10635         * langhooks-def.h (LANG_HOOK_INIT_TS): New.
10636         * langhooks.h (init_ts). New langhook.
10637         * passes.c (rest_of_decl_compilation): Reverse order of tests.
10638         * print-tree.c (print_node): Update to only print fields that
10639         exist in the structures the passed decl has.
10640         * toplev.c (wrapup_global_declarations): Don't reset
10641         DECL_DEFER_OUTPUT on DECL's that don't contain it.
10642         * tree-browser.c (browse_tree): DECL_ARG_TYPE_AS_WRITTEN removed.
10643         * tree-inline.c (remap_decl): Ditto.
10644         * tree-outof-ssa.c (create_temp): Reverse order of tests.
10645         * tree-pretty-print.c (print_declaration): Don't print
10646         DECL_REGISTER on things that don't contain it.
10647         * tree-vrp.c (expr_computes_nonzero): Don't check weakness on
10648         non-var/function decls.
10649         * tree.c (tree_contains_struct): New structure.
10650         (init_priority_for_decl): New hashtable.
10651         (tree_int_map): New structure.
10652         (tree_int_map_eq): New function.
10653         (tree_int_map_marked_p): Ditto.
10654         (tree_int_map_hash): Ditto.
10655         (tree_map): Move to tree.h.
10656         (tree_map_eq): Externalize.
10657         (tree_map_hash): Ditto.
10658         (tree_map_marked_p): Ditto.
10659         (init_ttree): Set up tree_contains_struct and call langhook.
10660         (decl_assembler_name): Use DECL_NON_COMMON_CHECK..
10661         (tree_code_size): Update for new structures.
10662         (tree_node_structure): Update for new structures.
10663         (make_node_stat): Don't try to set DECL_IN_SYSTEM_HEADER on decls
10664         without the field.
10665         (copy_node_stat):  Copy init priority.
10666         (build_decl_stat): Ditto for visibility.
10667         (ts_enum_names): New.
10668         (tree_contains_struct_check_failed): New function.
10669         (decl_init_priority_lookup): Ditto.
10670         (decl_init_priority_insert): Ditto.
10671         * treestruct.def: New file.
10672         * tree.h (CODE_CONTAINS_STRUCT): New macro.
10673         (CONTAINS_STRUCT_CHECK): Ditto.
10674         (tree_contains_struct_check_failed): New prototype.
10675         (DECL_CHECK): Removed.
10676         (DECL_MINIMAL_CHECK): New.
10677         (DECL_COMMON_CHECK): Ditto.
10678         (DECL_WRTL_CHECK): Ditto.
10679         (DECL_NON_COMMON_CHECK): Ditto.
10680         (DECL_WITH_VIS_CHECK): Ditto.
10681         (VAR_OR_FUNCTION_DECL_P): Ditto
10682         (struct tree_decl_minimal): New structure.
10683         (struct tree_decl_common): Ditto.
10684         (struct tree_decl_with_rtl): Ditto.
10685         (struct tree_decl_with_vis): Ditto.
10686         (struct tree_decl_non_common): Ditto.
10687         (struct tree_field_decl): Ditto.
10688         (struct tree_parm_decl): Ditto.
10689         (struct tree_var_decl): Ditto.
10690         (struct tree_function_decl): Ditto.
10691         (struct tree_const_decl): Ditto.
10692         (struct tree_result_decl): Ditto.
10693         (union tree_node): Add new structures.
10694         * var-tracking.c (track_expr_p): Reverse order of tests.
10695
10696         * doc/c-tree.texi: Add documentation on DECL node internal structure.
10697
10698 2005-07-08  Kazu Hirata  <kazu@codesourcery.com>
10699
10700         * cfgexpand.c (tree_expand_cfg): Don't use FINALIZE_PIC.
10701         * system.h: Poison FINALIZE_PIC.
10702         * doc/tm.texi (FINALIZE_PIC): Remove.
10703
10704 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
10705
10706         PR tree-opt/22329
10707         * tree-ssa-propagate.c (fold_predicate_in): Convert the value
10708         to the correct type if we have a MODIFY_EXPR.
10709
10710 2005-07-08  Kazu Hirata  <kazu@codesourcery.com>
10711
10712         PR tree-optimization/22360
10713         * tree.c (upper_bound_in_type): Fix calculations for casting
10714         to a non-wider signed type and casting a signed value to a
10715         wider unsigned type.
10716         (lower_bound_in_type): Fix calculations for casting to a
10717         non-wider signed type.
10718
10719         PR tree-optimization/20139
10720         * tree-cfg.c (remove_bb): Check in_ssa_p before calling
10721         release_defs.
10722         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Call
10723         fold_cond_expr_cond.
10724         * tree-ssanames.c (release_defs): Assert in_ssa_p.
10725         * tree.c (upper_bound_in_type, lower_bound_in_type): Rewrite.
10726
10727 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
10728
10729         PR tree-opt/22356
10730         * tree-complex.c (expand_complex_libcall): Produce
10731         REALPART_EXPR/IMAGPART_EXPR with the correct type.
10732
10733 2005-07-08  Kenneth Zadeck <zadeck@naturalbridge.com>
10734
10735         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
10736         bitmap_and_compl_into, bitmap_xor, bitmap_xor_into): Removed "a !=
10737         b" assert and inserted fastpath code for this case.
10738         (bitmap_ior): Removed "a != b" assert.
10739
10740 2005-07-08  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
10741
10742         * config/m32r/linux.h (STARTFILE_SPEC): Support PIE.
10743         (ENDFILE_SPEC): Likewise.
10744         * config/m32r/m32r.h (ASM_SPEC): Likewise.
10745
10746         * config/m32r/m32r.c (m32r_output_function_epilogue): Care for
10747         a large stack frame at epilogue.
10748
10749 2005-07-08  David Billinghurst  <David.Billinghurst@riotinto.com>
10750
10751         * final.c: Include sdbout.h when required.
10752
10753 2005-07-07  Geoffrey Keating  <geoffk@apple.com>
10754
10755         * config.gcc (*-*-darwin*): Only one target-specific header file
10756         for generic darwin.
10757         (powerpc-*-darwin*): Add version-specific header files.
10758         * configure.in (gcc_AC_CHECK_DECLS): Add strverscmp.
10759         * config.in: Regenerate.
10760         * configure: Regenerate.
10761         * gcc.c: Include xregex.h.
10762         (version_compare_spec_function): New.
10763         (spec_function): Add version-compare.
10764         (replace_outfile_spec_function): Reformat comment.
10765         (compare_version_strings): New.
10766         * config/darwin-c.c (version_as_macro): New.
10767         (builtin_define): New.
10768         (darwin_cpp_builtins): New.
10769         * config/darwin-protos.h (darwin_cpp_builtins): New.
10770         * config/darwin.h (CPP_SPEC): Don't define APPLE_CC here.
10771         (LIB_SPEC): Make unconditional, update comment.
10772         (TARGET_C99_FUNCTIONS): Define.
10773         * config/darwin.opt: Sort.
10774         (mmacosx-version-min=): New.
10775         * config/darwin7.h: Delete.
10776         * config/darwin8.h: Delete.
10777         * config/i386/darwin.h (): Call darwin_cpp_builtins.
10778         * config/rs6000/darwin.h (): Call darwin_cpp_builtins.
10779         (TARGET_C99_FUNCTIONS): Define.
10780         * config/rs6000/darwin7.h: New.
10781         * config/rs6000/darwin8.h: New.
10782         * doc/invoke.texi (Darwin Options): Add -mmacosx-version-min=
10783         (-mmacosx-version-min): Document.
10784
10785 2005-07-07  Ian Lance Taylor  <ian@airs.com>
10786
10787         * config/mips/mips.md (abs<mode>2) [GPR]: Remove.
10788
10789 2005-07-07  John David Anglin  <dave.anglin@nrc-crc.gc.ca>
10790
10791         PR middle-end/22239
10792         * loop.c (loop_givs_rescan): Check that v->new_reg is a REG.
10793
10794 2005-07-07  Khem Raj  <kraj@mvista.com>
10795
10796         * config/arm/arm.c (thumb_output_function_prologue): Calculate offset
10797         in bytes, not words.
10798
10799 2005-07-07  Paul Brook  <paul@codesourcery.com>
10800
10801         * config/arm/arm.c (arm_pad_arg_upward): Compare return value of
10802         DEFAULT_FUNCTION_ARG_PADDING to upward.
10803
10804 2005-07-07  Richard Henderson  <rth@redhat.com>
10805
10806         * function.c (locate_and_pad_parm): Record parameter alignment in
10807         stack_alignment_needed.
10808
10809 2005-07-07  David Edelsohn  <edelsohn@gnu.org>
10810
10811         * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_SYNC_OP,
10812         UNSPEC_SYNC_SWAP, UNSPEC_LWSYNC, UNSPEC_ISYNC): Delete.
10813         (UNSPECV_LL, UNSPECV_SC, UNSPECV_ATOMIC, UNSPECV_SYNC,
10814         UNSPECV_SYNC_OP, UNSPECV_CMPXCHG, UNSPECV_LWSYNC, UNSPECV_ISYNC): New.
10815         (define_attr "type"): Add isync, sync, load_l, store_c.
10816         * config/rs6000/sync.md (memory_barrier): Change to define_expand.
10817         Create scratch volatile MEM.
10818         (sync_internal): New.  POWER mnemonic is dcs, not ics.  Attribute
10819         sync.
10820         (load_locked_<mode>): New.
10821         (store_conditional_<mode>): New.
10822         (sync_compare_and_swap<mode>): Replace with splitter.
10823         (sync_lock_test_and_set<mode>): Replace with splitter.
10824         (sync_<fetchop><mode>): Change to unspec_volatile UNSPECV_SYNC_OP
10825         and UNSPECV_ISYNC.
10826         (isync): Change to unspec_volatile UNSPECV_ISYNC.  POWER mnemonic
10827         is ics.  Attribute isync.
10828         (lwsync): Change to unspec_volatile UNSPECV_LWSYNC.  Attribute
10829         lwsync.
10830         * config/rs6000/rs6000.c (rs6000_emit_sync): Use UNSPEC_VOLATILE
10831         and UNSPECV_SYNC_OP.
10832         (emit_unlikely_jump): New.
10833         (emit_load_locked): New.
10834         (emit_store_conditional): New.
10835         (rs6000_split_compare_and_swap): New.
10836         (rs6000_split_lock_test_and_set): New.
10837         (is_dispatch_slot_restricted): Return 4 for TYPE_LOAD_L,
10838         TYPE_STORE_C, TYPE_ISYNC, TYPE_SYNC.
10839         * config/rs6000/rs6000-protos.h (rs6000_split_compare_and_swap,
10840         rs6000_split_lock_test_and_set): Declare.
10841         * config/rs6000/{40x.md,440.md,603.md,6xx.md,7450.md,7xx.md,8540.md,
10842         mpc.md,power4.md,power5.md,rios1.md,rios2.md,rs64.md): Add load_l,
10843         store_c, isync, sync.
10844
10845 2005-07-07  Kelley Cook  <kcook@gcc.gnu.org>
10846
10847         * Makefile.in (echo_quoted_to_gtyp): New template for outputing
10848         filenames to gtyp-gen.h.
10849         (s-typ-gen): Use it in place of for loops.
10850
10851 2005-07-07  J"orn Rennecke <joern.rennecke@st.com>
10852
10853         * hooks.c (hook_bool_rtx_int_false): New function.
10854         * hooks.h (hook_bool_rtx_int_false): Declare.
10855         * target-def.h (TARGET_COMMUTATIVE_P): Define.
10856         (TARGET_INITIALIZER): Add TARGET_COMMUTATIVE_P.
10857         * target.h (struct gcc_target): Add commutative_p member.
10858         * targhooks.c (hook_bool_rtx_commutative_p): New function.
10859         * targhooks.h (hook_bool_rtx_commutative_p): Declare.
10860         * pa.c (TARGET_COMMUTATIVE_P): Redefine.
10861         (pa_commutative_p): New function.
10862         * jump.c (target.h): Include.
10863         (rtx_renumbered_equal_p): Use targetm.commutative_p.
10864         * doc/tm.texi: Document TARGET_COMMUTATIVE_P.
10865
10866 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
10867
10868         * config/s390/s390-protos.h (s390_expand_clrmem): Delete.
10869         (s390_expand_setmem): New.
10870         * config/s390/s390.c: Likewise.
10871         (print_shift_count_operand): Truncate to 12 bits instead of 6.
10872         Adapt comments.
10873         * config/s390/s390.md: ("setmem<mode>"): Accept character as
10874         general_operand.  Call new function "s390_expand_setmem".
10875         ("clrmem_long", "*clrmem_long"): Rewrite to ...
10876         ("setmem_long", "*setmem_long"): ... this.
10877
10878 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
10879
10880         * config/s390/s390.c: (optimization_options): Enable
10881         TARGET_MVCLE at -Os.
10882         * doc/invoke.texi: Document changes in default behaviour.
10883         * config/s390/s390.opt: ("mvcle"): Fix typo: is "mmvcle".
10884
10885 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
10886
10887         * expr.c: (set_storage_via_setmem): Convert opchar to mode
10888         defined by back-end.
10889
10890 2005-07-07  Jakub Jelinek  <jakub@redhat.com>
10891
10892         * config/sparc/sparc.md (stack_protect_testsi): Put clobbers after
10893         all sets in the pattern.
10894         * config/rs6000/rs6000.md (stack_protect_testsi,
10895         stack_protect_testdi): Likewise.
10896
10897 2005-07-06  Jeff Law  <law@redhat.com>
10898
10899         * tree-vrp.c (simplify_using_ranges): Kill.
10900         (vrp_finalize): Remove call to simplify_using_ranges.
10901         (simplify_stmt_using_ranges): New function extracted from
10902         simplify_using_ranges.
10903         (simplify_div_or_mod_using_ranges): Likewise.
10904         (simplify_abs_using_ranges): Likewise.
10905         (simplify_cond_using_ranges): New function.
10906         * tree-flow.h (simplify_stmt_using_ranges): Prototype.
10907         * tree-ssa-propagate.c (substitute_and_fold): Call
10908         simplify_stmt_using_ranges if we have range information.
10909
10910 2005-07-06  James E. Wilson  <wilson@specifixinc.com>
10911
10912         * config/ia64/ia64.c (ia64_reorg): Check optimize before
10913         ia64_flag_schedule_isns2.
10914
10915         * config/ia64/ia64.c (ia64_expand_movxf_movrf): Don't word swap when
10916         reading/writing general registers.
10917         (ia64_function_arg): Revert 2005-06-18 change.
10918
10919 2005-07-06  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
10920
10921         * pa.c (legitimize_pic_address): Use gcc_assert instead of abort.
10922         (legitimize_tls_address): Use gcc_unreachable instead of abort.
10923
10924 2005-07-06  Kaz Kojima  <kkojima@gcc.gnu.org>
10925
10926         * function.c (expand_function_end): Revert part of 2005-06-27
10927         patch.  Do sjlj_emit_function_exit_after after return_label.
10928
10929 2005-07-06  Kazu Hirata  <kazu@codesourcery.com>
10930
10931         * doc/install.texi (--disable-libssp): New.
10932
10933 2005-07-06  Fariborz Jahanian <fjahanian@apple.com>
10934
10935         * doc/invoke.texi: Update -fforce-mem documentation.
10936         * dojump.c (compare_from_rtx,do_compare_rtx_and_jump): Remove
10937         code for -fforce-mem.
10938         * expmed.c: (store_bit_field,store_fixed_bit_field,
10939         extract_bit_field): Ditto.
10940         * expr.c: (convert_move): Ditto.
10941         * optabs.c: (expand_binop,expand_twoval_unop,expand_twoval_binop,
10942         expand_unop,emit_unop_insn,prepare_cmp_insn,emit_conditional_move,
10943         emit_conditional_add,expand_float,expand_fix): Ditto.
10944         * opts.c: (decode_options): Remove setting of flag_force_mem flag.
10945         (common_handle_option): Issue warning when -fforce-mem specified.
10946
10947 2005-07-06  Paul Brook  <paul@codesourcery.com>
10948
10949         * aclocal.m4: Work around a bug in AC_PATH_PROGS when its last
10950         argument is empty.
10951         * configure: Regenerate.
10952
10953 2005-07-06  J"orn Rennecke <joern.rennecke@st.com>
10954
10955         * sh.c (final_prescan_insn): Undo bogus change from 2005-05-09.
10956
10957 2005-07-06  Daniel Berlin  <dberlin@dberlin.org>
10958
10959         Fix PR tree-optimization/22319
10960         Fix PR tree-optimization/22140
10961         Fix PR tree-optimization/22310
10962
10963         * tree-ssa-structalias.c (do_structure_copy): Give up earlier on
10964         variable sized types.
10965         Use correct type for intermediate structure on *a = *b structure
10966         copies.
10967
10968 2005-07-06  Jakub Jelinek  <jakub@redhat.com>
10969
10970         * config/rs6000/rs6000.h (RS6000_VARARGS_AREA, RS6000_VARARGS_SIZE):
10971         Remove.
10972         (STARTING_FRAME_OFFSET): Don't add RS6000_VARARGS_AREA.
10973         (machine_function): Move typedef to...
10974         * config/rs6000/rs6000.c (machine_function): ... here.  Add
10975         varargs_save_offset field.
10976         (rs6000_stack_t): Remove varargs_size field.
10977         (setup_incoming_varargs): Allocate varargs save area using
10978         assign_stack_local, try to make it as small as possible.
10979         Save offset from virtual_stack_vars_rtx to the save area
10980         in cfun->machine->varargs_save_offset.  Use UNITS_PER_FP_WORD
10981         instead of magic 8 when fp word byte size is used.
10982         (rs6000_va_start): Use cfun->machine->varargs_save_offset
10983         instead of -RS6000_VARARGS_SIZE.
10984         (rs6000_stack_info, debug_stack_info,
10985         rs6000_initial_elimination_offset): Remove all traces of
10986         varargs_size.
10987         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Remove.
10988         * config/rs6000/darwin.h (STARTING_FRAME_OFFSET): Don't add
10989         RS6000_VARARGS_AREA.
10990
10991 2005-07-06  Zdenek Dvorak  <dvorakz@suse.cz>
10992
10993         PR tree-optimization/21963
10994         * tree-ssa-loop-ivopts.c (get_computation_aff): Use
10995         constant_multiple_of in the same way get_computation_cost_at does.
10996
10997 2005-07-06  Jakub Jelinek  <jakub@redhat.com>
10998
10999         * config/sparc/sparc.h (sparc_compare_emitted): New extern.
11000         * config/sparc/sparc.c (sparc_compare_emitted): New variable.
11001         (gen_compare_reg): If sparc_compare_emitted is set, clear it
11002         and return its previous value.
11003         (emit_v9_brxx_insn): Assert sparc_compare_emitted is NULL.
11004         * config/sparc/sparc.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New
11005         constants.
11006         (stack_protect_set, stack_protect_test): New expanders.
11007         (stack_protect_setsi, stack_protect_setdi, stack_protect_testsi,
11008         stack_protect_testdi): New insns.
11009         * config/sparc/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
11010         * config/sparc/linux64.h (TARGET_THREAD_SSP_OFFSET): Define.
11011
11012 2005-07-06  Jeff Law  <law@redhat.com>
11013
11014         * tree-ssa-dce.c (cfg_altered): New global.
11015         (tree_dce_init): Initialize cfg_altered.
11016         (remove_dead_stmt): If we remove an edge in the CFG, then set
11017         CFG_ALTERED.
11018         (perform_tree_ssa_dce): If we altered the CFG, then invalidate
11019         the dominators.
11020
11021 2005-07-06  Kazu Hirata  <kazu@codesourcery.com>
11022
11023         * Makefile.in (stamp-collect-ld): Use
11024         $(ORIGINAL_LD_FOR_TARGET) instead of $<.  Don't remove
11025         ./collect-ld if it already exists.
11026         (stamp-nm): Use $(ORIGINAL_NM_FOR_TARGET) instead of $<.
11027         Don't remove ./nm if it already exists.
11028
11029 2005-07-05  Devang Patel  <dpatel@apple.com>
11030
11031         * tree-vectorizer.h (struct _loop_vec_info): Remove loop_line_number.
11032         (LOOP_VINFO_LOC, LOOP_LOC): Remove.
11033         * tree-vectorizer.c (vect_loop_location): New.
11034         (vect_print_dump_info): Use vect_loop_location.
11035         (new_loop_vec_info): Do not set LOOP_VINFO_LOC.
11036         (vectorize_loops): Set vect_loop_location.
11037         * tree-vect-analyze.c (vect_analyze_offset_expr,
11038         vect_determin_vectorization_factor, vect_analyze_operations,
11039         vect_analyze_scalar_cycles, vect_analyze_data_ref_dependence,
11040         vect_analyze_data_ref_dependences, vect_compute_data_ref_alignment,
11041         vect_analyze_data_refs_alignment, vect_analyze_data_ref_access,
11042         vect_analyze_data_ref_accesses, vect_analyze_pointer_ref_access,
11043         vect_object_analysis, vect_analyze_data_refs, vect_mark_relevant,
11044         vect_stmt_relevant_p, vect_mark_stmts_to_be_vectorized,
11045         vect_can_advance_ivs_p, vect_get_loop_niters, vect_analyze_loop_form,
11046         vect_analyze_loop): Adjust vect_print_dump_info API.
11047         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
11048         vect_create_data_ref_ptr, vect_init_vector, vect_get_vec_def_for_operand,
11049         vect_finish_stmt_generation, vectorizable_assignment,
11050         vectorizable_operation, vectorizable_store, vectorizable_load,
11051         vectorizable_live_operation, vectorizable_condition, vect_transform_stmt,
11052         vect_update_ivs_after_vectorizer, vect_do_peeling_for_loop_bound,
11053         vect_gen_ninters_for_prolog_loop, vect_do_peeling_for_alignment,
11054         vect_transform_loop): Same.
11055         * tree-vectorizer.c (get_vectype_for_scalar_type, vect_is_simple_use,
11056         vect_is_simple_reduction, vect_is_simple_iv_evolution, vectorize_loops):
11057         Same.
11058
11059 2005-07-05  Randolph Chung  <tausq@debian.org>
11060
11061         * configure.ac (hppa*-*-linux*: Check for a TLS capable gas.
11062         * configure: Regenerate.
11063         * config/pa/pa-protos.h (tls_symbolic_operand): Declare.
11064         (pa_tls_referenced_p): Declare.
11065         * config/pa/pa.c (legitimize_pic_address): Reject TLS operands.
11066         (gen_tls_tga, gen_tls_get_addr, hppa_tls_call): New.
11067         (legitimize_tls_address): New.
11068         (hppa_legitimize_address): Handle TLS addresses.
11069         (pa_tls_symbol_ref_1, pa_tls_referenced_p): New.
11070         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
11071         (emit_move_sequence): Handle TLS addresses.
11072         (pa_encode_section_info): Call default handler to handle common
11073         sections.
11074         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): New.
11075         (CONSTANT_ADDRESS_P): Reject TLS operands.
11076         (TARGET_HAVE_TLS) [HAVE_AS_TLS]: Define.
11077         * config/pa/pa.md (UNSPEC_TP, UNSPEC_TLSGD, UNSPEC_TLSLDM)
11078         (UNSPEC_TLSLDO, UNSPEC_TLSLDBASE, UNSPEC_TLSIE)
11079         (UNSPEC_TLSLE): Define new constants.
11080         (tgd_load, tld_load, tld_offset_load, tp_load, tie_load, tle_load): New.
11081         * config/pa/predicates.md (symbolic_operand): Reject TLS operands.
11082         (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand)
11083         (tie_symbolic_operand, tle_symbolic_operand): New
11084
11085 2005-07-06  Kelley Cook  <kcook@gcc.gnu.org>
11086
11087         * aclocal.m4: Update macros for autoconf 2.59 style.
11088         * configure.ac: Likewise.
11089
11090 2005-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11091
11092         * pa.c (function_value): Handle small aggregates on 32-bit targets.
11093         (function_arg): Pass small aggregates in general registers on 32-bit
11094         targets.
11095         * som.h (MEMBER_TYPE_FORCES_BLK): Delete define.
11096
11097 2005-07-05  Andrew Pinski  <pinskia@physics.uc.edu>
11098
11099         * Makefile.in (final.o): Fix dependencies.
11100
11101 2005-07-05  Joseph S. Myers  <joseph@codesourcery.com>
11102
11103         PR c/22013
11104         PR c/22098
11105         * langhooks.h (struct lang_hooks): Add expr_to_decl.
11106         * langhooks.c (lhd_expr_to_decl): New.
11107         * langhooks-def.h (lhd_expr_to_decl, LANG_HOOKS_EXPR_TO_DECL):
11108         New.
11109         (LANG_HOOKS_INITIALIZER): Update.
11110         * tree.c (recompute_tree_invarant_for_addr_expr): Call
11111         expr_to_decl langhook.
11112         * c-tree.h (c_expr_to_decl): Declare.
11113         * c-typeck.c (c_expr_to_decl): New.
11114         (build_unary_op): Do not handle ADDR_EXPR of COMPOUND_LITERAL_EXPR
11115         specially.
11116         * c-objc-common.h (LANG_HOOKS_EXPR_TO_DECL): Define.
11117
11118 2005-07-05  Joseph S. Myers  <joseph@codesourcery.com>
11119
11120         PR c/22308
11121         * c-decl.c (finish_struct): Also copy C_TYPE_FIELDS_READONLY,
11122         C_TYPE_FIELDS_VOLATILE and C_TYPE_VARIABLE_SIZE to type variants.
11123
11124 2005-07-05  Paolo Bonzini  <bonzini@gnu.org>
11125
11126         * Makefile.in: Adjust dependencies.
11127         * tree-pass.h: Add new passes and passes formerly in tree-optimize.c.
11128         * basic-block.h (duplicate_computed_gotos): Remove, it is now static.
11129         * alias.c (rest_of_handle_cfg, pass_cfg): New.
11130         * bb-reorder.c (duplicate_computed_gotos): Make it static.
11131         * cfgexpand.c (tree_expand_cfg): Add code formerly at the beginning of
11132         rest_of_compilation.
11133
11134         * bb-reorder.c (gate_duplicate_computed_gotos,
11135         pass_duplicate_computed_gotos, gate_handle_reorder_blocks,
11136         rest_of_handle_reorder_blocks, pass_reorder_blocks,
11137         gate_handle_partition_blocks, rest_of_handle_partition_blocks,
11138         pass_partition_blocks): New.
11139         * bt-load.c (gate_handle_branch_target_load_optimize,
11140         rest_of_handle_branch_target_load_optimize,
11141         pass_branch_target_load_optimize): New.
11142         * cfgcleanup.c (rest_of_handle_jump, pass_jump, rest_of_handle_jump2,
11143         pass_jump2): New.
11144         * cfglayout.c (pass_insn_locators_initialize): New.
11145         * cfgrtl.c (pass_free_cfg): New.
11146         * combine.c (gate_handle_combine, rest_of_handle_combine,
11147         pass_combine): New.
11148         * cse.c (gate_handle_cse, rest_of_handle_cse, pass_cse,
11149         gate_handle_cse2, rest_of_handle_cse2, pass_cse2): New.
11150         * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes): New.
11151         * except.c (pass_set_nothrow_function_flags,
11152         pass_convert_to_eh_region_ranges, gate_handle_eh, rest_of_handle_eh,
11153         pass_rtl_eh): New.
11154         * final.c (pass_compute_alignments, rest_of_handle_final, pass_final,
11155         rest_of_handle_shorten_branches, pass_shorten_branches,
11156         rest_of_clean_state, pass_clean_state): New.
11157         * flow.c (pass_recompute_reg_usage, gate_remove_death_notes,
11158         rest_of_handle_remove_death_notes, pass_remove_death_notes,
11159         rest_of_handle_life, pass_life, rest_of_handle_flow2,
11160         pass_flow2): New.
11161         * function.c (pass_instantiate_virtual_regs, pass_init_function,
11162         rest_of_handle_check_leaf_regs, pass_leaf_regs): New.
11163         * gcse.c (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
11164         pass_jump_bypass, gate_handle_gcse, rest_of_handle_gcse,
11165         pass_gcse): New.
11166         * global.c (rest_of_handle_global_alloc, pass_global_alloc): New.
11167         * ifcvt.c (gate_handle_if_conversion, rest_of_handle_if_conversion,
11168         pass_rtl_ifcvt, gate_handle_if_after_combine,
11169         rest_of_handle_if_after_combine, pass_if_after_combine,
11170         gate_handle_if_after_reload, rest_of_handle_if_after_reload,
11171         pass_if_after_reload): New.
11172         * integrate.c (pass_initial_value_sets): New.
11173         * jump.c (pass_cleanup_barriers, purge_line_number_notes,
11174         pass_purge_lineno_notes): New.
11175         * mode-switching.c (rest_of_handle_mode_switching,
11176         pass_mode_switching): New.
11177         * local-alloc.c (rest_of_handle_local_alloc, pass_local_alloc): New.
11178         * loop-init.c (gate_handle_loop2, rest_of_handle_loop2,
11179         pass_loop2): New.
11180         * loop.c (gate_handle_loop_optimize, rest_of_handle_loop_optimize,
11181         pass_loop_optimize): New.
11182         * modulo-sched.c (gate_handle_sms, rest_of_handle_sms,
11183         pass_sms): New.
11184         * postreload-gcse.c (gate_handle_gcse2, rest_of_handle_gcse2,
11185         pass_gcse2): New.
11186         * postreload.c (gate_handle_postreload, rest_of_handle_postreload,
11187         pass_postreload_cse): New.
11188         * profile.c (gate_handle_profiling, pass_profiling,
11189         rest_of_handle_branch_prob, pass_branch_prob): New.
11190         * recog.c (pass pass_split_for_shorten_branches, gate_do_final_split,
11191         pass_split_before_regstack, gate_handle_split_before_regstack,
11192         gate_handle_peephole2, rest_of_handle_peephole2, pass_peephole2,
11193         rest_of_handle_split_all_insns, pass_split_all_insns): New.
11194         * reg-stack.c (gate_handle_stack_regs, rest_of_handle_stack_regs,
11195         pass_stack_regs): New.
11196         * regmove.c (gate_handle_regmove, rest_of_handle_regmove, pass_regmove,
11197         gate_handle_stack_adjustments, rest_of_handle_stack_adjustments,
11198         pass_stack_adjustments): New.
11199         * regrename.c (gate_handle_regrename, rest_of_handle_regrename,
11200         pass_regrename): New.
11201         * reorg.c (gate_handle_delay_slots, rest_of_handle_delay_slots,
11202         pass_delay_slots, gate_handle_machine_reorg,
11203         rest_of_handle_machine_reorg, pass_machine_reorg): New.
11204         * rtl.h (extern void purge_line_number_notes): New.
11205         * sched-rgn.c (gate_handle_sched, rest_of_handle_sched,
11206         gate_handle_sched2, rest_of_handle_sched2, pass_sched,
11207         pass_sched2): New.
11208         * tracer.c (gate_handle_tracer, rest_of_handle_tracer,
11209         pass_tracer): New.
11210         * value-prof.c (gate_handle_value_profile_transformations,
11211         rest_of_handle_value_profile_transformations,
11212         pass_value_profile_transformations): New.
11213         * var-tracking.c (gate_handle_var_tracking,
11214         pass_variable_tracking): New.
11215         * web.c (gate_handle_web, rest_of_handle_web, pass_web): New.
11216
11217         * passes.c (open_dump_file, close_dump_file, rest_of_handle_final,
11218         rest_of_handle_delay_slots, rest_of_handle_stack_regs,
11219         rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
11220         rest_of_handle_old_regalloc, rest_of_handle_regrename,
11221         rest_of_handle_reorder_blocks, rest_of_handle_partition_blocks,
11222         rest_of_handle_sms, rest_of_handle_sched, rest_of_handle_sched2,
11223         rest_of_handle_gcse2, rest_of_handle_regmove,
11224         rest_of_handle_tracer, rest_of_handle_if_conversion,
11225         rest_of_handle_if_after_combine, rest_of_handle_if_after_reload,
11226         rest_of_handle_web, rest_of_handle_branch_prob,
11227         rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
11228         rest_of_handle_jump_bypass, rest_of_handle_combine,
11229         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
11230         rest_of_handle_gcse, rest_of_handle_loop_optimize,
11231         rest_of_handle_loop2, rest_of_handle_branch_target_load_optimize,
11232         rest_of_handle_mode_switching, rest_of_handle_jump,
11233         rest_of_handle_eh, rest_of_handle_stack_adjustments,
11234         rest_of_handle_flow2, rest_of_handle_jump2,
11235         rest_of_handle_peephole2, rest_of_handle_postreload,
11236         rest_of_handle_shorten_branches, rest_of_clean_state,
11237         rest_of_compilation): Remove.
11238
11239         * cgraphunit.c (ipa_passes): Moved from tree-optimize.c.
11240         * passes.c (dump_flags, in_gimple_form, all_passes,
11241         all_ipa_passes, all_lowering_passes, register_one_dump_file,
11242         register_dump_files, next_pass_1, last_verified, execute_todo,
11243         execute_one_pass, execute_pass_list, execute_ipa_pass_list): Moved
11244         from tree-optimize.c.
11245         (init_optimization_passes): Moved from tree-optimize.c,
11246         adding the RTL optimizations.
11247         * tree-dump.h (dump_info_p, dump_flag): Moved from tree.h.
11248         * tree-optimize.c (dump_flags, in_gimple_form, all_passes,
11249         all_ipa_passes, all_lowering_passes, register_one_dump_file,
11250         register_dump_files, next_pass_1, last_verified, execute_todo,
11251         execute_one_pass, execute_pass_list, execute_ipa_pass_list,
11252         init_tree_optimization_passes, ipa_passes): Delete.
11253         * tree-pass.h (enum tree_dump_index): Moved from tree.h, removing
11254         the RTL dumps.
11255         (TDF_*, get_dump_file_name, dump_enabled_p, dump_initialized_p,
11256         dump_begin, dump_end, dump_node, dump_switch_p, dump_flag_name): Moved
11257         from tree.h.
11258         (ipa_passes): Remove.
11259         (all_passes, all_ipa_passes, all_lowering_passes): Now extern.
11260         * tree.h (enum tree_dump_index, TDF_*, get_dump_file_name,
11261         dump_enabled_p, dump_initialized_p, dump_begin, dump_end, dump_node,
11262         dump_switch_p, dump_flag_name): Moved to tree-pass.h.
11263         (dump_info_p, dump_flag): Moved to tree-dump.h.
11264
11265         * Makefile.in: Adjust dependencies for tree-pretty-print.c,
11266         cgraph.c, opts.c.
11267         * passes.c (finish_optimization_passes): Use dump_begin
11268         and dump_end, TDI_end.
11269         (gate_rest_of_compilation): New.
11270         (pass_rest_of_compilation): Use it.
11271         (gate_postreload, pass_postreload): New.
11272         * toplev.c (general_init): Rename init_tree_optimization_passes.
11273         * toplev.h (init_tree_optimization_passes): Rename to
11274         init_optimizations_passes.
11275         * tree-dump.c (dump_flag): Make static.
11276         (dump_files): Remove RTL dumps.
11277         * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
11278         pass_cleanup_cfg, pass_free_cfg_annotations,
11279         pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
11280         pass_init_datastructures, pass_fixup_cfg): Make non-static.
11281         * tree-pretty-print.c: Include tree-pass.h.
11282         * cgraph.c: Include tree-dump.h.
11283
11284 2005-07-04  Daniel Berlin  <dberlin@dberlin.org>
11285
11286         * tree-ssa-structalias.c (get_constraint_exp_from_ssa_var):
11287         Only fall back to saying it points to readonly memory if
11288         we can't do better.
11289
11290 2005-07-05  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
11291
11292         * config/m32r/m32r-protos.h: Remove m32r_finalize_pic.
11293         * config/m32r/m32r.c (m32r_compute_frame_size,
11294         m32r_expand_prologue): Take current_function_profile into
11295         account whenever we reference
11296         current_function_uses_pic_offset_table.
11297         (m32r_finalize_pic): Remove.
11298         * config/m32r/m32r.h (FINALIZE_PIC): Likewise.
11299
11300 2005-07-05  Kazu Hirata  <kazu@codesourcery.com>
11301
11302         * Makefile.in (stamp-as): Use $(ORIGINAL_AS_FOR_TARGET)
11303         instead of $<.  Don't remove ./as if it already exists.
11304
11305 2005-07-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11306
11307         PR target/21723
11308         * pa.md: Remove fcpy alternative from movhi and movqi patterns.
11309         * pa32-regs.h (HARD_REGNO_NREGS): Return two floating point registers
11310         for complex modes when generating code for PA 1.0.
11311         (VALID_FP_MODE_P): New macro.
11312         (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P.  Use non-overlapping register
11313         sets for all general and floating point modes.  Align wide floating
11314         point modes to even register boundaries to comply with architectural
11315         requirements.
11316         (CLASS_MAX_NREGS): Update to align with change to HARD_REGNO_NREGS.
11317         * pa64-regs.h (HARD_REGNO_NREGS): Update comment and formatting.
11318         (VALID_FP_MODE_P): New macro.
11319         (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P.  Use non-overlapping register
11320         sets for all general and floating point modes.  Align wide floating
11321         point modes to even register boundaries to comply with architectural
11322         requirements.
11323
11324 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
11325
11326         * tree-dump.c (dump_files): Initialize dump number for .cgraph
11327         to 0.
11328
11329 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
11330
11331         * tree-ssa-structalias.c: Don't include expr.h.
11332
11333 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
11334
11335         * tree-iterator.h (TSI_NEW_STMT, TSI_SAME_STMT): Fix
11336         comments.
11337
11338 2005-07-04  Daniel Berlin  <dberlin@dberlin.org>
11339
11340         Fix PR tree-optimization/22279
11341
11342         * tree-ssa-structalias.c (offset_overlaps_with_access): Use
11343         correct operator.
11344
11345 2005-07-04  J"orn Rennecke <joern.rennecke@st.com>
11346
11347         * sh.c (output_ieee_ccmpeq): Replace "\\;" with "\n\t".
11348
11349 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
11350
11351         * bb-reorder.c, c-pch.c, c-pragma.c, c.opt, cfghooks.c, cfgloop.c,
11352         cfgrtl.c, cgraphunit.c, config/c4x/c4x.c, config/cris/cris.c,
11353         config/frv/frv.c, config/host-darwin.c, config/iq2000/iq2000.c,
11354         config/lynx.h, config/m68k/m68k.c, config/pa/pa.c, config/sh/sh.h,
11355         config/stormy16/stormy16.c, config/v850/v850.c,
11356         config/vax/netbsd-elf.h, coverage.c, dwarf2out.c, emit-rtl.c,
11357         except.c, gcc.c, tree-cfg.c, tree-eh.c, tree-ssa.c, xcoffout.c:
11358         Avoid "." or "\n" at end of diagnostics and capital letters at
11359         start of diagnostics.
11360         * combine.c, cse.c: Don't translate dump file output.
11361         * toplev.c (print_version): Only translate output if going to
11362         stderr.
11363
11364 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
11365
11366         * c-decl.c, tree-object-size.c, tree-vectorizer.c,
11367         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Fix comment
11368         typos.
11369
11370 2005-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11371
11372         * pa.c (fix_range): Fix typo in comment.
11373
11374 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
11375
11376         * tree-vrp.c (extract_range_from_assert): Replace
11377         fold (build (...)) with fold_build2.
11378
11379 2005-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11380
11381         * c-format.c (gcc_gfc_format_type, gcc_gfc_flag_pairs,
11382         gcc_gfc_char_table, init_dynamic_gfc_info): New.
11383         (format_types_orig, handle_format_attribute): Add support for
11384         format "gcc_gfc".
11385
11386 2005-07-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11387
11388         * varasm.c (assemble_variable): Fix format specifier thinko.
11389
11390 2005-07-03  Ira Rosen  <irar@il.ibm.com>
11391
11392         PR tree-optimization/22029 (and 22135)
11393         * tree-pretty-print.c (dump_generic_node): Check that the node is not
11394         a phi node before calling dump_vops.
11395
11396 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11397
11398         * tree-dump.h (dump_string_field): Declare.
11399         * tree-dump.c: Use it instead of dump_string.
11400         (dump_string_field): Make non-static.
11401
11402 2005-07-03  Kaz Kojima  <kkojima@gcc.gnu.org>
11403
11404         * config/sh/sh.c (sh_output_mi_thunk): Initialize and clean
11405         up the minimal CFG stuff always when optimize > 0.  Call
11406         split_all_insns_noflow in PIC case if needed.
11407
11408 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11409             Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
11410
11411         PR c++/18279
11412         * c-decl.c (c_write_global_declarations): Dump contents of
11413         external scope to.
11414         * tree-dump.c (dequeue_and_dump): Dump abstract origin of a decl.
11415         <TRY_FINALLY_EXPR>, <RETURN_EXPR>, <CASE_LABEL_EXPR>, <LABEL_EXPR>,
11416         <GOTO_EXPR>, <SWITCH_EXPR>: Add.
11417         (dump_enabled_p): Return TRUE if PHASE is TDI_all and any dump
11418         is enabled.
11419
11420 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
11421
11422         * c-common.h (GCC_DIAG_STYLE): Define.
11423         * c-tree.h (GCC_DIAG_STYLE): Do not define.  Change minimum GCC
11424         version for format checking to 4.1.
11425         * c-format.c: Include toplev.h after c-common.h.
11426         (enum format_type): Add gcc_tdiag_format_type.
11427         (gcc_tdiag_length_specs, gcc_tdiag_flag_pairs,
11428         gcc_tdiag_flag_specs, gcc_tdiag_char_table): New.
11429         (format_types_orig): Add gcc_tdiag.
11430         (init_dynamic_diag_info): Support gcc_tdiag formats.
11431         (handle_format_attribute): Likewise.
11432         * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Remove.
11433         (GCC_DIAG_STYLE): Default to __gcc_tdiag__.  Change minimum GCC
11434         version for format checking to 4.1.
11435         (warning0, warning, error, pedwarn, sorry): Use
11436         ATTRIBUTE_GCC_DIAG.
11437         * config/rs6000/rs6000.c (altivec_expand_builtin), varasm.c
11438         (finish_aliases_1): Do not use %qE.
11439         * config/arm/arm.c, config/i386/i386.c, config/mmix/mmix.c,
11440         config/pdp11/pdp11.c, stor-layout.c, tree-eh.c, tree-ssa.c:
11441         Correct format bugs.
11442         * config/v850/v850-protos.h (v850_output_aligned_bss): Change size
11443         parameter to unsigned HOST_WIDE_INT.
11444         * config/v850/v850.c (v850_output_aligned_bss): Likewise.
11445
11446 2005-07-02  David Edelsohn  <edelsohn@gnu.org>
11447
11448         PR middle-end/21742
11449         * expr.c (write_complex_part): Use adjust_address for MEM.
11450         (read_complex_part): Same.
11451
11452 2005-07-02  Daniel Berlin  <dberlin@dberlin.org>
11453
11454         Fix PR tree-optimization/22280
11455
11456         * tree-sra.c (generate_element_init): Remove useless loop.
11457
11458 2005-07-02  Richard Henderson  <rth@redhat.com>
11459
11460         * config/alpha/alpha.c (alpha_legitimize_address): Check for
11461         TLS_MODEL_NONE.
11462         (alpha_stdarg_optimize_hook): Use DECL_UID with va_list_vars.
11463
11464 2005-07-02  Andrew Pinski  <pinskia@physics.uc.edu>
11465
11466         PR middle-end/14490
11467         * fold-const.c (fold_binary): Handle the return value of
11468         fold_to_nonsharp_ineq_using_bound if we get back the same operand back.
11469         Implement "X +- C1 CMP C2" folding to "X CMP C2 -+ C1".
11470
11471 2005-07-02  Jeff Law  <law@redhat.com>
11472
11473         * tree-ssa-dom.c (find_equivalent_equality_comparison): Do not
11474         a eliminate type conversion which feeds an equality comparison
11475         if the original type or either operand in the comparison is a
11476         function pointer.
11477
11478 2005-07-02  Joseph S. Myers  <joseph@codesourcery.com>
11479
11480         * c.opt, common.opt, config/bfin/bfin.opt, config/pa/pa.opt,
11481         config/rs6000/rs6000.opt, params.def: Remove "." from end of help
11482         texts.
11483         * config/avr/avr.c: Do not use '`' as left quote.
11484         * config/rs6000/rs6000.c, config/s390/s390.c, opts.c, tree.c:
11485         Remove "." from end of diagnostics.  Make diagnostics start with
11486         lowercase letter.
11487
11488 2005-07-02  Zack Weinberg  <zack@codesourcery.com>
11489             Joseph S. Myers  <joseph@codesourcery.com>
11490
11491         * toplev.c (default_tree_printer): Handle setting location with
11492         '+' flag.
11493         * c-objc.common.c (c_tree_printer): Likewise.
11494         * c-format.c (gcc_diag_flag_specs): Add '+'.
11495         (gcc_cdiag_char_table): Allow '+' flag for tree formats.
11496         (format_types_orig): Allow '+' flag for gcc_diag and gcc_cdiag
11497         formats.
11498         * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c,
11499         config/arm/pe.c, config/i386/winnt.c, config/ia64/ia64.c,
11500         config/mcore/mcore.c, config/sh/symbian.c, config/sol2.c,
11501         config/v850/v850.c, function.c, stor-layout.c, toplev.c,
11502         tree-inline.c, tree-optimize.c, tree.c, varasm.c: Use '+' flag
11503         instead of %J or %H.  Use 'q' flag for quoting.  Avoid '.' at end
11504         of diagnostics.  Use %q+D not %s for a decl.  Do not pass excess
11505         format arguments where %J is used without %D.
11506
11507 2005-07-02  Jakub Jelinek  <jakub@redhat.com>
11508
11509         * gcc.c (LINK_SSP_SPEC): Define.
11510         (link_ssp_spec): New variable.
11511         (LINK_COMMAND_SPEC): Add %(link_ssp).
11512         (static_specs): Add link_ssp_spec.
11513         * configure.ac (TARGET_LIBC_PROVIDES_SSP): New test.
11514         * configure: Rebuilt.
11515         * config.in: Rebuilt.
11516
11517         * config/rs6000/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
11518         * config/rs6000/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
11519         * config/i386/linux.h (TARGET_THREAD_SSP_OFFSET): Likewise.
11520         * config/i386/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
11521         * config/rs6000/rs6000.md (stack_protect_set, stack_protect_test):
11522         If TARGET_THREAD_SSP_OFFSET is defined, use -0x7010(13) resp.
11523         -0x7008(2) instead of reading __stack_chk_guard variable.
11524         * config/i386/i386.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): Change
11525         number.
11526         (UNSPEC_SP_TLS_SET, UNSPEC_SP_TLS_TEST): New constants.
11527         (stack_protect_set, stack_protect_test): Use *_tls* patterns
11528         if TARGET_THREAD_SSP_OFFSET is defined.
11529         (stack_tls_protect_set_si, stack_tls_protect_set_di,
11530         stack_tls_protect_test_si, stack_tls_protect_test_di): New insns.
11531
11532         Revert:
11533         2005-06-27  Richard Henderson  <rth@redhat.com>
11534         * libgcc-std.ver (GCC_4.1.0): New.
11535         * libgcc.h (__stack_chk_guard): Declare.
11536         (__stack_chk_fail, __stack_chk_fail_local): Declare.
11537         * libgcc2.c (L_stack_chk, L_stack_chk_local): New.
11538         * mklibgcc.in (lib2funcs): Add them.
11539
11540 2005-07-01  Richard Henderson  <rth@redhat.com>
11541
11542         * config/i386/linux-unwind.h (x86_64_fallback_frame_state): Cast to
11543         void * before struct sigcontext *.
11544         (x86_fallback_frame_state): Likewise.
11545
11546 2005-07-01  James E. Wilson  <wilson@specifixinc.com>
11547
11548         * doc/invoke.texi (-funit-at-a-time): Correct grammar in second bullet.
11549
11550 2005-07-01  Andrew Pinski  <pinskia@physics.uc.edu>
11551
11552         PR tree-opt/22269
11553         * tree-ssa-reassoc.c (should_transpose): Fix which operand
11554         we check for SSA_NAME for.
11555
11556 2005-07-01  Daniel Berlin  <dberlin@dberlin.org>
11557
11558         Fix PR tree-optimization/22071
11559
11560         * tree-ssa-structalias.c (offset_overlaps_with_access): New
11561         function.
11562         (get_constraint_for_component_ref): Use it.
11563
11564 2005-07-01  Andrew Pinski  <pinskia@physics.uc.edu>
11565
11566         PR other/22264
11567         * diagnostic.c (diagnostic_report_current_module): Use pp_newline to
11568         print out the last new line.
11569
11570 2005-07-01  Hans-Peter Nilsson  <hp@axis.se>
11571
11572         * config/cris/cris.md (CRIS_CC0_REGNUM): New constant.
11573         Swap numbers for CRIS_AP_REGNUM and CRIS_MOF_REGNUM.
11574         * config/cris/cris.c (cris_conditional_register_usage): Adjust
11575         reg_names[CRIS_CC0_REGNUM] for early CRIS versions.
11576         (cris_print_operand) <case REG>: Handle CRIS_CC0_REGNUM.
11577         (cris_md_asm_clobbers): Clobber CRIS_CC0_REGNUM for all asms.
11578         * config/cris/cris.h (CRIS_CANONICAL_CC0_REGNUM): New macro.
11579         (enum reg_class): New member CC0_REGS.
11580         (REG_CLASS_FROM_LETTER): Add 'c' for CC0_REGS.
11581         (FIRST_PSEUDO_REGISTER, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
11582         (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, REG_CLASS_NAMES)
11583         (CRIS_SPECIAL_REGS_CONTENTS, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
11584         (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
11585         Adjust for register now described.
11586
11587 2005-07-01  Jakub Jelinek  <jakub@redhat.com>
11588
11589         PR target/22262
11590         * config/i386/i386.md (stack_protect_test_si,
11591         stack_protect_test_di): Add earlyclobber for scratch 3.
11592         * config/rs6000/rs6000.md (stack_protect_testsi,
11593         stack_protect_testdi): Add earlyclobber for scratch 3,
11594         remove earlyclobber from scratch 4.
11595
11596 Older entries for 2005 can be found in ChangeLog-2005.