OSDN Git Service

* real.c (decimal_quad_format): Correct values for emin, emax.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2005-12-16  Ben Elliston  <bje@au.ibm.com>
2
3         * real.c (decimal_quad_format): Correct values for emin, emax.
4
5 2005-12-15  DJ Delorie  <dj@redhat.com>
6
7         * config/m32c/predicates.md (m32c_psi_scale): New.
8         * config/m32c/m32c.c (m32c_expand_neg_mulpsi3): New.
9         * config/m32c/muldiv.md (mulpsi3): Support negative constants.
10
11 2005-12-16  Jan Hubicka  <jh@suse.cz>
12
13         PR rtl-optimization/25224
14         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Free copy
15         tables.
16
17 2005-12-15  Zdenek Dvorak <dvorakz@suse.cz>
18             Steven Bosscher <stevenb@suse.de>
19
20         * loop-invariant.c (df): New global variable.
21         (find_defs, check_dependencies, find_invariant_insn, record_uses,
22         find_invariants_bb, find_invariants_body, find_invariants,
23         find_invariants_to_move, move_invariants, free_inv_motion_data,
24         move_single_loop_invariants, move_loop_invariants): Do not pass df in
25         arguments.
26
27 2005-12-15  Jakub Jelinek  <jakub@redhat.com>
28
29         * varasm.c (default_unique_section_1): Use special section
30         names for SECCAT_DATA_REL{,_RO}{,_LOCAL}.
31
32 2005-12-16  Ben Elliston  <bje@au.ibm.com>
33
34         * doc/invoke.texi (Warning Options): Document -Walways-true being
35         enabled by -Wall.
36
37 2005-12-15  Joseph S. Myers  <joseph@codesourcery.com>
38
39         PR other/25028
40         * libgcc2.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Define.
41         * libgcc2.c (__floatdixf, __floatundixf, __floatditf,
42         __floatunditf): Use #error if type sizes don't match requirements
43         of implementation.
44         (__floatdisf, __floatdidf): Unify.  Possibly use XFmode or TFmode
45         as wider floating-point type.  Use #error if type sizes don't
46         match requirements of implementation.  Avoid overflow in computing
47         Wtype_MAXp1_F * Wtype_MAXp1_F.  When special casing conversion,
48         shift one more bit.  Cast 1 to DWtype or UDWtype for shifting.
49         (__floatundisf, __floatundidf): Likewise.
50         * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Define.
51         * config/ia64/ia64.c (ia64_init_libfuncs): Use
52         _U_Qfcnvfxt_quad_to_quad and _U_Qfcnvxf_quad_to_quad for
53         TFmode-TImode conversions.
54         * doc/tm.texi (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Document.
55
56 2005-12-14  Craig Rodrigues  <rodrigc@gcc.gnu.org>
57
58         * freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS):
59         Use builtin_define_with_int_value() instead of
60         adding a new check for every new major FreeBSD version.
61
62 2005-12-14  Andrew Pinski  <pinskia@physics.uc.edu>
63
64         * config/t-darwin (darwin-c.o): Depend on $(TREE_H) instead of tree.h.
65
66 2005-12-15  Richard Sandiford  <richard@codesourcery.com>
67
68         * config/arm/predicates.md (call_memory_operand): New.
69         * config/arm/arm.md (*call_mem, *call_value_mem): Use it.
70
71 2005-12-15  Andrew Haley  <aph@redhat.com>
72
73         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Guard
74         against prev_cache_entry == NULL when moving a cache entry to the
75         head of the list.
76         
77 2005-12-15  Nathan Sidwell  <nathan@codesourcery.com>
78
79         * config/mt/mt.c (mt_override_options): Require lower case
80         architectures.  Revert accidental default to ms2.
81         * config/mt/mt.h (ASM_SPEC, LIBSPEC, STARTFILE_SPEC,
82         ENDFILE_SPEC): Require lower case architectures.  Revert default
83         to ms2.
84
85         * doc/invoke.texi (MT Options): Rename and update.
86         * doc/md.texi (MorphoTech family): Rename and update.
87
88 2005-12-15  Olivier Hainque  <hainque@adacore.com>
89
90         * stor-layout.c (layout_type): Don't complain about a too small
91         an array element type size compared to its alignment when the
92         size overflows.
93
94 2005-12-15  Jan Hubicka  <jh@suse.cz>
95
96         PR target/24969
97         * i386.c (classify_argument): Properly adjust offset of bitfield for
98         substructures.
99
100 2005-12-15  Richard Sandiford  <richard@codesourcery.com>
101
102         * final.c (final_scan_insn): Flip in_cold_section_p when changing
103         between the hot and cold sections.  Use current_function_section
104         to get the new section.
105         * dwarf2out.c (output_line_info): Use in_cold_section_p to
106         determine whether we are assembling hot or cold code.
107         (secname_for_decl, dwarf2out_var_location): Likewise.
108         (dwarf2out_init, dwarf2out_finish): Use switch_to_section.
109         * varasm.c (last_text_section): Delete.
110         (in_cold_section_p): New variable.
111         (hot_function_section): New function.
112         (current_function_section): Pass in_cold_section_p as the
113         reloc argument to select_section.  Use it to decide between
114         unlikely_function_section and hot_function_section.
115         (assemble_start_function): Use switch_to_section.  Set
116         in_cold_section_p instead of last_text_section.
117         (assemble_end_function): Use switch_to_section.
118         (switch_to_section): Don't set last_text_section.
119         * config/darwin/darwin.c (machopic_select_section): Trust the reloc
120         argument to make the right choice between hot and cold sections.
121
122 2005-12-15  Nathan Sidwell  <nathan@codesourcery.com>
123
124         Second part of MS1->MT renaming
125         * config/mt/mt.md (doloop_end): Call mt_add_loop.
126         (movqi, movhi): Call mt_set_memflags.
127         (*movdf_internal): Call mt_split_words. 
128         (reload_inqi, reload_outqi, reload_inhi, reload_outhi): Call
129         mt_set_memflags.
130         (cmpsi): Store to mt_compare_op[01].
131         (beq, bne, bge, bgt, ble, blt, bgeu, bgtu, bleu, bltu, bunge,
132         bungt, bunle, bunlt): Call mt_emit_cbranch.
133         (prologue): Call mt_expand_prologue.
134         (epilogu): Call mt_expend_epilogue.
135         (eh_return): Call mt_expand_eh_return.
136         (eh_epilogue): Call me_emit_eh_epilogue.
137         (conditional_trap): Store to mt_compare_op[01].
138         * config/mt/crti.asm: Adjust comment.
139         * config/mt/crtn.asm: Adjust comment.
140         * config/mt/mt.c (MT_INT_ARG_FIRST): Renamed.
141         (mt_compare_op0, mt_compare_op1): Renamed.
142         (current_frame_info, zero_frame_info): Adjust type.
143         (mt_ucmpsi3_libcall): Renamed.
144         (mt_flag_delayed_branch): Renamed.
145         (mt_struct_value_rtx, mt_return_addr_rtx): Renamed.
146         (mt_nops_required, mt_nop_reasons): Renamed.
147         (mt_asm_output_opcode, mt_get_attr_type, mt_final_prescan_insn,
148         mt_debug_stack, mt_print_operand_simple_address,
149         mt_print_operand_address, mt_print_operand): Renamed, adjusted.
150         (mt_init_cumulative_args, mt_function_arg_slotno, mt_function_arg,
151         mt_function_arg_advance, mt_arg_partial_bytes,
152         mt_pass_by_reference, mt_function_arg_boundary,
153         mt_reg_ok_for_base_p, mt_legitimate_simple_address_p,
154         mt_legitimate_address_p): Renamed, adjusted.
155         (mt_cpu): Renamed.
156         (mt_init_machine_status, mt_override_options, mt_builtin_saveregs,
157         mt_va_start, mt_compute_frame_size, mt_emit_save_restore,
158         mt_emit_save_fp, mt_emit_save_regs, mt_interrupt_function_p, 
159         mt_expand_prologue, mt_epilogue_uses, mt_expand_epilogue,
160         mt_expand_eh_return, mt_emit_eh_prologue,
161         mt_handl_interrupt_attribute): Renamed, adjusted.
162         (mt_attribute_table): Renamed, adjusted.
163         (mt_initial_elimination_offset, mt_generate_compare,
164         mt_emit_cbranch, mt_set_memflags_1, mt_set_memflags,
165         mt_secondary_reload_class, mt_function_value, mt_split_words,
166         mt_pass_in_stack, mt_add_loop, mt_loop_nesting, mt_block_length,
167         mt_scan_loop, mt_reorg_loops): Renamed, adjusted.
168         (mt_labels): Renamed.
169         (mt_add_branches, mt_check_delay_slot, mt_reorg_hazard,
170         mt_machine_reorg): Renamed, adjusted.
171         (mt_attribute_table: Renamed.
172         (TARGET_ATTRIBUTE_TABLE, TARGET_STRUCT_VALUE_RTX,
173         TARGET_PASS_BY_REFERENCE, TARGET_MUST_PASS_IN_STACK,
174         TARGET_ARG_PARTIAL_BYTES, TARGET_MACHINE_DEPENDENT_REORG): Adjust.
175         * config/mt/mt.opt (march): Set mt_cpu_string.
176         * config/mt/mt.h (mt_ucmpsi3_libcall, mt_cpu): Renamed.
177         (TARGET_CPU_CPP_BUILTINS): Adjust.
178         (TARGET_MS1_64_001, TARGET_MS1_16_002, TARGET_MS1_16_003,
179         TARGET_MS2): Adjust.
180         (TARGET_VERSION, OVERRIDE_OPTIONS, SECONDARY_RELOAD_CLASS): Adjust.
181         (MT_MIN_INT): Renamed.
182         (RETURN_ADDR_RTX): Adjust.
183         (struct mt_frame_info): Renamed.
184         (current_frame_info): Adjust type.
185         (INITIAL_ELIMINATION_OFFSET): Adjust.
186         (MT_NUM_ARG_REGS): Renamed.
187         (REG_PARM_STACK_SPACE, FUNCTION_ARG, INIT_CUMULATVE_ARGS,
188         FUNCTION_ARG_ADVANCE, FUNCTION_ARG_BOUNDARY, FUNCTION_VALUE,
189         LIBCALL_VALUE, EPILOGUE_USES, EXPAND_BUILTIN_VA_START,
190         GO_IF_LEGITIMATE_ADDRESS, REG_OK_FOR_BASE_P, ASM_OUTPUT_OPCODE,
191         FINAL_REPSCAN_INSN, PRINT_OPERAND, PRINT_OPERAND_ADDRESS): Adjust.
192         (mt_compare_op0, mt_compare_op1): Renamed.
193         * config/mt/mt-protos.h: Rename prototypes.
194
195 2005-12-15  Richard Guenther  <rguenther@suse.de>
196
197         * tree-flow.h (okay_component_ref_for_subvars): Remove.
198         (get_ref_base_and_extent): Declare.
199         * tree-dfa.c (okay_component_ref_for_subvars): Remove.
200         (get_ref_base_and_extent): New function.
201         * tree-ssa-alias.c (find_used_portions): Use it.
202         * tree-ssa-structalias.c (get_constraint_for_component_ref):
203         Likewise.
204         * tree-ssa-operands.c (get_expr_operands): Likewise.
205
206 2005-12-15  Paolo Bonzini  <bonzini@gnu.org>
207
208         * combine.c: Remove force_to_mode's fourth parameter.
209         (force_to_mode): Do not handle REG.
210         (canon_reg_for_combine): New.
211         (make_field_assignment): Use it where the removed argument was non-NULL.
212
213 2005-12-15  Alan Modra  <amodra@bigpond.net.au>
214
215         PR target/25406
216         * config/rs6000/rs6000.c (rs6000_special_round_type_align): Handle
217         error_mark_node.  Make alignment params unsigned.
218         * config/rs6000/rs6000-protos.h
219         (rs6000_special_round_type_align): Update prototype.
220         (rs6000_machopic_legitimize_pic_address): Remove arg names.
221
222 2005-12-14  Ulrich Weigand  <uweigand@de.ibm.com>
223
224         PR rtl-optimization/25310
225         * reload1.c (eliminate_regs_in_insn): Handle lowpart SUBREGs
226         of the eliminable register when substituting into a PLUS.
227
228 2005-12-14  Jakub Jelinek  <jakub@redhat.com>
229
230         PR debug/25023
231         * config/i386/i386.c (ix86_force_to_memory): Always use
232         SImode push for HImode in -m32.
233         (ix86_free_from_memory): Likewise.
234
235 2005-12-14  Richard Sandiford  <richard@codesourcery.com>
236
237         * gcc/config/arm/arm.md: Provide a big-endian version of the
238         (zero_extend:SI (subreg:QI ...)) splitter.
239
240 2005-12-14  J"orn Rennecke <joern.rennecke@st.com>
241
242         * struct-equiv.c (note_local_live): Handle hard regs with different
243         hard_regno_nregs.
244
245 2005-12-14  Jeff Law  <law@redhat.com>
246
247         * tree-ssa-ccp.c (fold_stmt_r): DATA argument is now a pointer
248         to a structure containing state rather than a pointer to bool.
249         (case ARRAY_REF): New code to handle folding some array references.
250         (case ADDR_EXPR): Note when we are processing expressions found
251         within an ADDRE_EXPR.
252         (fold_stmt, fold_stmt_inplace): Pass in a structure to fold_stmt_r
253         for state variables rather than just a pointer to a boolean.
254         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Remove
255         handling of constant string references.
256
257 2005-12-14  Adrian Straetling  <straetling@de.ibm.com>
258
259         * config/s390/s390.md ("*tstdi_extimm", "*tstsi_extimm"): Merge.
260         ("*tstdi_cconly_extimm", "*tstsi_cconly_extimm"): Merge.
261         ("*tstdi_cconly2", "*tstsi_cconly2"): Merge.
262         Move other tst* patterns to retain partial order.
263
264 2005-12-14  Adrian Straetling  <straetling@de.ibm.com>
265
266         * config/s390/s390.md ("d0", "1"): New mode attributes.
267         ("<shift>di3", "<shift>si3"): Merge.
268         ("*<shift>di3_and", "*<shift>si3_and"): Merge.
269         ("ashrdi3", "ashrsi3"): Merge.
270         ("*ashrdi3_cc", "*ashrsi3_cc"): Merge.
271         ("*ashrdi3_cc_and", "*ashrsi3_cc_and"): Merge.
272         ("*ashrdi3_cconly", "*ashrsi3_cconly"): Merge.
273         ("*ashrdi3_cconly_and", "*ashrsi3_cconly_and"): Merge.
274         ("*ashrdi3", "*ashrsi3"): Merge.
275         ("*ashrdi3_and", "*ashrsi3_and"): Merge.
276
277 2005-12-14  Adrian Straetling  <straetling@de.ibm.com>
278
279         * config/s390/s390.md ("extend<mode>di2", "extend<mode>si2"): Merge.
280         ("*extendqidi2_extimm", "*extendqisi2_extimm"): Merge.
281         ("*extendqidi2", "*extendqisi2") Merge.
282         ("*extendqidi2_short_displ", "*extendqisi2_short_displ"): Merge.
283         ("zero_extendhidi2", "zero_extendqidi2"): Merge.
284         ("*zero_extend<mode>di2_extimm", "*zero_extend<mode>si2_extimm"): Merge.
285         Move some patterns to retain partial ordering.
286
287 2005-12-14  Adrian Straetling  <straetling@de.ibm.com>
288
289         * config/s390/s390.md ("atype", "length"): Rewrite.
290         ("*insv<mode>_reg_imm", "*insv<mode>_reg_extimm"): Add mode.
291
292 2005-12-14  Sebastian Pop  <pop@cri.ensmp.fr>
293
294         * tree-ssa-operands.c (build_ssa_operands): Update leading comment.
295
296 2005-12-14  J"orn Rennecke <joern.rennecke@st.com>
297
298         * struct-equiv.c (rtx_equiv_p): Allow arbitrary RVALUE values for
299         PARALLELs with a mode.
300
301 2005-12-14  Sebastian Pop  <pop@cri.ensmp.fr>
302
303         * cfgloopmanip.c (lv_adjust_loop_entry_edge): Adjust the type of
304         cond_expr parameter.
305
306 2005-12-14  Sebastian Pop  <pop@cri.ensmp.fr>
307
308         * loop-unswitch.c (unswitch_loop): Free zero_bitmap before returning.
309
310 2005-12-14  J"orn Rennecke <joern.rennecke@st.com>
311
312         PR bootstrap/25397:
313
314         * struct-equiv.c (struct_equiv_init): Fix off-by-one error in clearing
315         of STACK_REGS bits.
316
317         * struct-euiv.c (rtx_equiv_p): Remove SUBREG case.
318
319 2005-12-14  Jakub Jelinek  <jakub@redhat.com>
320
321         PR target/25254
322         PR target/24188
323         * config/i386/i386.c (x86_64_elf_select_section): If DECL is not
324         DECL_P, call get_section rather than get_named_section.  Supply
325         section flags to it.
326
327 2005-12-14  Ben Elliston  <bje@au.ibm.com>
328
329         * c-common.c (c_common_truthvalue_conversion): Generalise warning
330         for addresses converted to booleans; not just function addresses.
331         * c-typeck.c (build_binary_op): Warn for address comparisons which
332         can never be NULL (eg. func == NULL or &var == NULL).
333         * common.opt (Walways-true): New option.
334         * c-opts.c (c_common_handle_option): Set it with -Wall.
335         * doc/invoke.texi: Document it.
336
337 2005-12-13  Paul Brook  <paul@codesourcery.com>
338
339         * config/m68k/fpgnulib.c (__unordsf2, __unorddf2, __unordxf2,
340         __floatunsidf, __floatunsisf, __floatunsixf): New functions.
341
342 2005-12-13  Nathan Sidwell  <nathan@codesourcery.com>
343
344         * sim/common/sim-signal.c (sim_signal_to_target): Add missing ':'.
345         * sim/common/sim-signal.h (sim_signal_to_target): Return an int.
346
347         * config/mt/t-mt (crti.o, crtn.o): Add multilib options.
348         (EXTRA_MULTILIB_PARTS): Define.
349
350 2005-12-13  J"orn Rennecke <joern.rennecke@st.com>
351
352         PR rtl-optimization/20070 / part1
353         * flow.c (update_life_info): If PROP_POST_REGSTACK is set, call
354         count_or_remove_death_notes with kill == -1.
355         (mark_set_1): Don't add REG_DEAD / REG_UNUSED notes for stack
356         registers if PROP_POST_REGSTACK is set.
357         (mark_used_reg): Likewise.
358         (count_or_remove_death_notes): If kill is -1, don't remove REG_DEAD /
359         REG_UNUSED notes for stack regs.
360         * cfgcleanup.c (condjump_equiv_p): Change parameters and processing
361         to match rtx_equiv_p machinery.  Change caller.
362         (outgoing_edges_match): Likewise.
363         (try_crossjump_to_edge): Use struct_equiv_block_eq
364         instead of flow_find_cross_jump.
365         * basic-block.h (PROP_POST_REGSTACK, STRUCT_EQUIV_START): Define.
366         (STRUCT_EQUIV_RERUN, STRUCT_EQUIV_FINAL): Likewise.
367         (STRUCT_EQUIV_NEED_FULL_BLOCK, STRUCT_EQUIV_MATCH_JUMPS): Likewise.
368         (STRUCT_EQUIV_MAX_LOCAL): Likewise.
369         (struct struct_equiv_checkpoint, struct equiv_info): Likewise.
370         (insns_match_p): Update prototype.
371         (flow_find_cross_jump): Remove prototype.
372         (struct_equiv_block_eq, struct_equiv_init): Declare.
373         (rtx_equiv_p, condjump_equiv_p): Likewise.
374         * struct-equiv.c: Include reload.h.
375         (IMPOSSIBLE_MOVE_FACTOR): Define.
376         (assign_reg_reg_set, struct_equiv_make_checkpoint): New functions.
377         (struct_equiv_improve_checkpoint): Likewise.
378         (struct_equiv_restore_checkpoint, rtx_equiv_p): Likewise.
379         (set_dest_equiv_p, set_dest_addr_equiv_p, struct_equiv_init): Likewise.
380         (struct_equiv_merge, find_dying_input): Likewise.
381         (resolve_input_conflict, note_local_live): Likewise.
382         (death_notes_match_p): Change parameters and processing
383         to match rtx_equiv_p machinery.  Change caller.
384         (insns_match_p): Likewise.
385         (flow_find_cross_jump): Replace with:
386         (struct_equiv_block_eq).
387
388         Back out this change:
389         2005-03-07  Kazu Hirata  <kazu@cs.umass.edu>
390           * recog.c (verify_changes): Make it static.
391           * recog.h: Remove the corresponding prototype.
392
393 2005-12-13  J"orn Rennecke <joern.rennecke@st.com>
394
395         * rtlhooks.c (gen_lowpart_general): Handle SUBREGs of floating point
396         values.
397
398 2005-12-13  Nathan Sidwell  <nathan@codesourcery.com>
399
400         * config/mt/t-mt (MULTILIB_OPTIONS): Add ms2
401         (MULTILIB_DIRNAMES): Add ms2.  Prefix ms1 dirs with 'ms1'.
402         * config/mt/mt.c (ms1_final_prescan): Use TARGET_MS2,
403         TARGET_MS1_64_001 appropriately.
404         (ms1_machine_reorg): Use TARGET_MS2.
405
406 2005-12-13  Jakub Jelinek  <jakub@redhat.com>
407
408         PR debug/25023
409         PR target/25293
410         * expr.c (emit_move_resolve_push): Handle PRE_MODIFY
411         and POST_MODIFY with CONST_INT adjustment equal to PUSH_ROUNDING.
412         Fix POST_INC/POST_DEC handling if PUSH_ROUNDING is not identity.
413         * config/i386/i386.md (pushhi2, pushqi2): Use pushl instead of pushw.
414         Set mode to SI, adjust constraints.
415         (pushhi2_rex64, pushqi2_rex64): Set mode to DI.
416         * config/i386/i386.h (PUSH_ROUNDING): Round up to 4 instead of 2 for
417         32-bit code.
418
419 2005-12-13  Carlos O'Donell <carlos@codesourcery.com>
420
421         * c-cppbuiltin.c (builtin_define_float_constants): Add
422         fp_cast parameter, pass to builtin_define_with_hex_fp_value.
423         Define __FLT_HAS_DENORM__, __DBL_HAS_DENORM__, __LDBL_HAS_DENORM__.
424         (builtin_define_with_hex_fp_value): Use fp_cast when building macro.
425         (c_cpp_builtins): If flag_single_precision_constant then set fp_cast
426         to "((double)%sL)" otherwise "%s".
427
428 2005-12-13  Paul Brook  <paul@codesourcery.com>
429
430         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=gnu for
431         apcs/atpcs.
432
433 2005-12-11 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
434
435         * tree-flow.h: Allow compilation with a C++ compiler.
436         (struct edge_prediction): Prefix all field names  with "ep_".
437         * predict.c (tree_predicted_by_p): Likewise for struct edge_prediction.
438         (tree_predict_edge, combine_predictions_for_bb): Likewise.
439         (remove_predictions_associated_with_edge): Likewise.
440         
441 2005-12-12  Jeff Law  <law@redhat.com>
442
443         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Remove
444         reassociation code.
445         * passes.c (init_optimization_passes): Run reassociation again
446         after loop optimizations.
447
448 2005-12-12  Daniel Berlin  <dberlin@dberlin.org>
449
450         * tree-ssa-dom.c (thread_across_edge): Canonicalize condition
451         if necessary.
452         (optimize_stmt): Ditto.
453         (canonicalize_comparison): New function.
454         * tree-ssa-operands.c (swap_tree_operands): Make external.
455         (get_expr_operands): Stop auto-canonicalization.
456         * tree-ssa-reassoc.c: Rewrite.
457         (init_optimization_passes): 
458         * tree-flow.h (swap_tree_operands): Prototype.
459         * Makefile.in (tree-ssa-reassoc.o): Update dependencies.
460
461 2005-12-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
462
463         * pa.c (pa_output_function_epilogue): Set cfun->machine->in_nsubspa to
464         indicate function epilogue has been output.
465         (pa_asm_output_mi_thunk): Likewise.
466         (output_deferred_plabels): Put plabels in readonly data section when
467         not generating PIC code.
468         (som_output_text_section_asm_op): Use .NSUBSPA to output debug
469         information.  Add assert.
470         (som_output_comdat_data_section_asm_op): New function.
471         (pa_som_asm_init_sections): Use som_output_comdat_data_section_asm_op
472         instead of output_section_asm_op for COMDAT sections.
473
474 2005-12-12  J"orn Rennecke <joern.rennecke@st.com>
475
476         * cfgcleanup.c (condjump_equiv_p, try_crossjump_to_edge):
477         Fix whitespace in vincinity of to-be-installed changes.
478         * struct-equiv.c (merge_memattrs, death_notes_match_p): Fix whitespace.
479         (insns_match_p): Likewise.
480
481 2005-12-12  Nathan Sidwell  <nathan@codesourcery.com>
482
483         * config.gcc (ms1): Replace with ...
484         (mt): ... this.
485         * config/ms1: Rename to ...
486         * config/mt: ... here.  Rename ms1 files to mt.
487         * config/mt/mt.c: Adjust gt-mt.h #include.
488         * config/mt/t-mt (LIB1ASMSRCS, LIB2FUNCS_EXTRA): Adjust.
489         (crti.o, crtn.o): Adjust file names.
490
491 2005-12-12  Gabriel Dos Reis  <gdr@integrable-solutions.net>
492
493         * varray.h: Allow compilation with a C++ compiler.
494         (union varray_data_tag): Prefix all field names with "vdt_".
495         (VARRAY_CHAR, VARRAY_UCHAR, VARRAY_SHORT, VARRAY_USHORT,
496         VARRAY_INT, VARRAY_UINT, VARRAY_LONG, VARRAY_ULONG,
497         VARRAY_WIDE_INT, VARRAY_UWIDE_INT, VARRAY_GENERIC_PTR,
498         VARRAY_GENERIC_PTR_NOGC, VARRAY_CHAR_PTR, VARRAY_RTX,
499         VARRAY_RTVEC, VARRAY_TREE, VARRAY_BITMAP, VARRAY_REG, VARRAY_BB,
500         VARRAY_ELT_LIST, VARRAY_EDGE, VARRAY_TREE_PTR): Adjust definition.
501         (VARRAY_PUSH_CHAR, VARRAY_PUSH_UCHAR, VARRAY_PUSH_SHORT,
502         VARRAY_PUSH_USHORT, VARRAY_PUSH_INT, VARRAY_PUSH_UINT, 
503         VARRAY_PUSH_LONG, VARRAY_PUSH_ULONG, VARRAY_PUSH_WIDE_INT, 
504         VARRAY_PUSH_UWIDE_INT, VARRAY_PUSH_GENERIC_PTR, 
505         VARRAY_PUSH_GENERIC_PTR_NOGC, VARRAY_PUSH_CHAR_PTR, 
506         VARRAY_PUSH_RTX, VARRAY_PUSH_RTVEC, VARRAY_PUSH_TREE, 
507         VARRAY_PUSH_BITMAP, VARRAY_PUSH_REG, VARRAY_PUSH_BB, 
508         VARRAY_PUSH_EDGE, VARRAY_PUSH_TREE_PTR): Likewise.
509         (VARRAY_TOP_CHAR, VARRAY_TOP_UCHAR, VARRAY_TOP_SHORT, 
510         VARRAY_TOP_USHORT, VARRAY_TOP_INT, VARRAY_TOP_UINT, 
511         VARRAY_TOP_LONG, VARRAY_TOP_ULONG, VARRAY_TOP_WIDE_INT, 
512         VARRAY_TOP_UWIDE_INT, VARRAY_TOP_GENERIC_PTR, 
513         VARRAY_TOP_GENERIC_PTR_NOGC, VARRAY_TOP_CHAR_PTR, VARRAY_TOP_RTX, 
514         VARRAY_TOP_RTVEC, VARRAY_TOP_TREE, VARRAY_TOP_BITMAP, 
515         VARRAY_TOP_REG, VARRAY_TOP_BB, VARRAY_TOP_EDGE, 
516         VARRAY_TOP_TREE_PTR): Likewise.
517         * varray.c (varray_grow): Likewise.
518         (varray_clear): Likewise.
519
520 2005-12-12  Alan Modra  <amodra@bigpond.net.au>
521
522         PR target/25299
523         * config/rs6000/rs6000.c (rs6000_special_round_type_align): Increase
524         alignment to doubleword if the first field is a double array.
525         * config/rs6000/linux64.h (TARGET_ALIGN_NATURAL): Define.
526
527 2005-12-11  Daniel Berlin  <dberlin@dberlin.org>
528
529         * tree-ssa-structalias.c (process_constraint): Remove code to
530         transform addressofs into scalar.
531         (create_variable_info_for): In whole-program IPA, globals don't
532         point to ANYTHING by default.
533
534 2005-12-11  Daniel Berlin  <dberlin@dberlin.org>
535
536         * timevar.def (TV_IPA_PTA): New.
537         * tree-pass.h (pass_ipa_pta): New
538         * tree-ssa-structalias.c: Include cgraph.h
539         (in_ipa_mode): New.
540         (predbitmap_obstack): New.
541         (EXECUTE_IF_IN_NONNULL_BITMAP): New.
542         (struct constraint_stats): Add num_edges.
543         (new_var_info): Don't call bitmap_clear.
544         (struct constraint_edge): Update docs.
545         (new_constraint_edge): Remove src param.
546         (struct constraint_graph): Add zero_weight_succs,
547         zero_weight_preds.  Update docs.
548         (constraint_expr_equal): Reformat.
549         (constraint_edge_equal): Update for removal of src.
550         (constraint_edge_less): Ditto.
551         (constraint_edge_vec_find): Ditto.
552         (erase_graph_self_edge): Update for removal of src and and zero
553         weight bitmap.
554         (clear_edges_for_node): Ditto.
555         (add_graph_edge): Ditto.
556         (get_graph_weights): Ditto.
557         (allocate_graph_weights): Ditto.
558         (merge_graph_nodes): Ditto.
559         (int_add_graph_edge): Ditto.
560         (valid_graph_edge): Ditto.
561         (valid_weighted_graph_edge): Ditto.
562         (build_constraint_graph): Ditto.
563         (scc_visit): Ditto.
564         (collapse_nodes): Ditto.
565         (process_unification_queue): Ditto.
566         (topo_visit): Ditto.
567         (solve_graph): Ditto.
568         (do_structure_copy): Ditto.
569         (perform_var_substitution): Ditto.
570         Init and release obstack.
571         (handle_ptr_arith): Try to resolve directly.
572         (find_func_aliases): Don't call update_alias_info here
573         Handle RETURN_EXPR, and CALL_EXPR's in IPA mode.
574         (do_sd_constraint): Add code for propagating faster.
575         Update.
576         (do_ds_constraint): Ditto.
577         (count_num_arguments): New function.
578         (create_function_info_for): Ditto.
579         (create_variable_info_for): Handle FUNCTION_DECL.
580         (intra_create_variable_infos): Use make_constraint_to_anything.
581         (init_alias_vars): Init obstacks here.
582         (need_to_solve): Handle zero weight graph changes.
583         (compute_points_to_sets): Call update_alias_info here.
584         (delete_points_to_sets): Free zero weight preds/succs here.
585         (gate_ipa_pta): New.
586         (ipa_pta_execute): New
587
588 2005-12-11  Daniel Berlin  <dberlin@dberlin.org>
589
590         * tree-ssa-structalias.c (var_anyoffset): Removed.
591         (anyoffset_tree): Ditto.
592         (anyoffset_id): Ditto.
593         (do_deref): Take vector of constraints, no return value.
594         Update to work on vector.                
595         (get_constraint_for): Ditto.
596         (get_constraint_for_component_ref): Ditto.
597         (do_structure_copy): Ditto.
598         (handle_ptr_arith): Ditto.
599         (find_func_aliases): Ditto.
600         (set_uids_in_ptset): Remove anyoffset handling.
601         (init_base_vars): Ditto.
602
603 2005-12-10  Mark Mitchell  <mark@codesourcery.com>
604
605         PR c++/25010
606         * ipa-inline.c (cgraph_clone_inlined_nodes): Do not assume that
607         DECL_EXTERNAL functions have no bodies.  Tidy.
608
609 2005-12-10  Andreas Schwab  <schwab@suse.de>
610
611         * except.c (switch_to_exception_section): Only define if
612         TARGET_UNWIND_INFO is not defined.
613
614 2005-12-10  Richard Sandiford  <richard@codesourcery.com>
615
616         * config/darwin.h (HAS_INIT_SECTION): Remove definition.
617         (INIT_SECTION_ASM_OP): Restore empty definition from before 2005-12-07.
618
619 2005-12-10  Richard Sandiford  <richard@codesourcery.com>
620
621         * output.h (init_section, fini_section): Delete.
622         * varasm.c (init_section, fini_section): Delete.
623         (init_varasm_once): Don't initialize them.
624         * doc/tm.texi (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Say that
625         there are no corresponding varasm.c variables.
626
627 2005-12-10  Richard Sandiford  <richard@codesourcery.com>
628
629         * dwarf2out.c (default_eh_frame_section): Delete, moving handling
630         of EH_FRAME_SECTION_NAME into...
631         (switch_to_eh_frame_section): ...here.  Try to set eh_frame_section
632         if it is still null.
633         * except.c (default_exception_section): Delete, moving most
634         of the code to...
635         (switch_to_exception_section): ...this new function.  Set
636         exception_section if it is still null, then switch to it.
637         (output_function_exception_table): Use switch_to_exception_section.
638         * varasm.c (exception_section, eh_frame_section): Update comments.
639         (get_section): Hoist use of SECTION_NAMED.
640         (init_varasm_once): Don't set exception_section and eh_frame_section.
641         * output.h (default_exception_section): Delete.
642         (default_eh_frame_section): Delete.
643
644 2005-12-09  Bernd Schmidt  <bernd.schmidt@analog.com>
645
646         * config/bfin/bfin.c: Include "cgraph.h".
647         (bfin_load_pic_reg): Omit loading pic reg if in a local function.
648         Return the reg that holds the pointer to the GOT.
649         (bfin_expand_prologue): Use return value of bfin_load_pic_reg when
650         doing stack checking.
651
652 2005-12-09  Diego Novillo  <dnovillo@redhat.com>
653
654         * tree.c (recompute_tree_invariant_for_addr_expr): Rename from
655         recompute_tree_invarant_for_addr_expr.
656         Update uses everywhere.
657
658 2005-12-09  Aldy Hernandez  <aldyh@redhat.com>
659
660         * config/ms1/t-ms1 (MULTILIB_OPTIONS): Define.
661         (MULTILIB_DIRNAMES): Define.
662
663 2005-12-09  Ulrich Weigand  <uweigand@de.ibm.com>
664
665         PR target/25311
666         * config/s390/s390.c (struct s390_address): New field literal_pool.
667         (s390_decompose_address): Compute literal_pool field.  Do not 
668         assume register %r13 is always (and solely) used as pool base.
669         (s390_extra_constraint_str): Use literal_pool field.
670
671 2005-12-09  Thiemo Seufer  <ths@networkno.de>
672
673         * config/mips/mips.c (override_options): Don't allow too small
674         integers in FP registers.
675
676 2005-12-09  Ulrich Weigand  <uweigand@de.ibm.com>
677
678         * config/s390/s390.c (s390_function_ok_for_sibcall): Use
679         targetm.binds_local_p to check for local function calls.
680
681 2005-12-09  Alan Modra  <amodra@bigpond.net.au>
682
683         PR debug/24908
684         * dwarf2out.c (dwarf2out_frame_debug_expr): Don't assert that
685         call_used_regs can't be used to save reg in another reg.
686
687 2005-12-08  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
688             Christophe Jaillet  <christophe.jaillet@wanadoo.fr>
689
690         * ipa-type-escape.c (analyze_variable): Use gcc_assert instead of
691         abort.
692         * except.c (output_ttype): Likewise.
693         * tree-object-size.c (collect_object_sizes_for): Likewise.
694         (check_for_plus_in_loops_1): Likewise.
695         (check_for_plus_in_loops): Likewise.
696         (compute_object_sizes): Use gcc_unreachable instead of abort.
697
698 2005-12-08  Nathan Sidwell  <nathan@codesourcery.com>
699
700         * config/ms1/ms1.md (UNSPEC_LOOP): New constant.
701         (loop_end, loop_init, doloop_end): New insns.
702         * config/ms1/ms1.h (LOOP_FIRST, LOOP_LAST): New.
703         (SPECIAL_REG_FIRST, FIRST_PSEUDO_REGISTER): Adjust.
704         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
705         (REG_CLASS_CONTENTS, REGISTER_NAMES): Adjust.
706         * config/ms1/ms1.c: #include basic-block.h
707         (struct machine_function): Add has_loops field.
708         (ms1_add_loop): New.
709         (MAX_LOOP_DEPTH, MAX_LOO_LENGTH): New.
710         (struct loop_info, struct loop_work): New.
711         (ms1_loop_nesting, ms1_block_length, ms1_scan_loop): New workers.
712         (ms1_reorg_loops): New loop optimization.
713         (ms1_machine_reorg): Call it.
714         * config/ms1/ms1-protos.h (ms1_add_loop): Declare.
715
716 2005-12-08  Zdenek Dvorak  <dvorakz@suse.cz>
717
718         PR tree-optimization/25248
719         * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Do not use
720         evolution_of_loop from the failed attempt.  Remove handling
721         of MULT_EXPR.
722
723 2005-12-08  Gabriel Dos Reis  <gdr@integrable-solutions.net>
724
725         * tree.h (DECL_EXTERNAL): Clarify documentation.
726
727 2005-12-08  Andreas Krebbel  <krebbel1@de.ibm.com>
728             Jakub Jelinek  <jakub@redhat.com>
729
730         PR target/25268
731         * config/s390/s390.c (s390_decompose_shift_count): Remove BITS
732         argument.  Don't drop outer ANDs.
733         (s390_extra_constraint_str, print_shift_count_operand): Adjust callers.
734         * config/s390/s390-protos.h (s390_decompose_shift_count): Adjust
735         prototype.
736         * config/s390/predicates.md (setmem_operand): Remove.
737         (shift_count_operand): Rename to...
738         (shift_count_or_setmem_operand): ... this.  Adjust
739         s390_decompose_shift_count caller.
740         * config/s390/s390.md (<shift>di3_31_and, <shift>di3_64_and,
741         ashrdi3_cc_31_and, ashrdi3_cconly_31_and, ashrdi3_31_and,
742         ashrdi3_cc_64_and, ashrdi3_cconly_64_and, ashrdi3_64_and,
743         <shift>si3_and, ashrsi3_cc_and, ashrsi3_cconly_and, ashrsi3_and,
744         rotl<mode>3_and, setmem_long_and): New insns.
745         (<shift>di3_31, <shift>di3_64, ashrdi3_cc_31, ashrdi3_cconly_31,
746         ashrdi3_31, ashrdi3_cc_64, ashrdi3_cconly_64, ashrdi3_64,
747         <shift>si3, ashrsi3_cc, ashrsi3_cconly, ashrsi3, rotl<mode>3,
748         <shift>di3, ashrdi3): Use shift_count_or_setmem_operand instead
749         of shift_count_operand.
750         (setmem_long): Use shift_count_or_setmem_operand instead of
751         setmem_operand.
752
753 2005-12-08  Daniel Jacobowitz  <dan@codesourcery.com>  
754             Andreas Tobler  <a.tobler@schweiz.ch>
755
756         * Makefile.in (ALL_GTFILES_H): Replace sed statement with more portable
757         tr expression.
758
759 2005-12-07  J"orn Rennecke <joern.rennecke@st.com>
760
761         * expr.c (force_operand): Use convert_to_mode for conversions.
762
763 2005-12-07  J"orn Rennecke <joern.rennecke@st.com>
764
765         * reload.h (reg_equiv_invariant): Declare.
766         * reload.c (refers_to_regno_for_reload_p): Allow R to be a pseudo
767         register also when reg_equiv_invariant[R] is set.
768
769 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
770             Andreas Tobler  <a.tobler@schweiz.ch>
771
772         * config/darwin.h: Guard section variables with #ifndef USED_FOR_TARGET.
773
774 2005-12-07  Daniel Berlin  <dberlin@dberlin.org>
775
776         * tree-ssa-pre.c (bitmap_set_and): New function.
777         (bitmap_set_and_compl): New function.
778         (bitmap_set_empty_p): New function.
779         (insert_extra_phis): New function.
780         (compute_avail): Use insert_extra_phis.
781
782 2005-12-07  Adrian Straetling  <straetling@de.ibm.com>
783
784         * config/s390/s390.c (s390_expand_atomic): New function.
785         Adjust comment of helper functions.
786         * config/s390/s390-protos.h (s390_expand_atomic): Declare.
787         * config/s390/s390.md ("ATOMIC"): New code macro.
788         ("atomic"): Corresponding new code attribute.
789         ("sync_lock_test_and_set[hq]i", 
790         "sync_{new_,old_,}{and,ior,xor,add,sub,nand}[hq]i"): New pattern.
791
792 2005-12-07  Adrian Straetling  <straetling@de.ibm.com>
793
794         * config/s390/s390.c (s390_expand_mask_and_shift, 
795         struct alignment_context, init_alignment_context, 
796         s390_expand_cs_hqi): New.
797         * config/s390/s390-protos.h (s390_expand_cs_hqi): Declare.
798         * config/s390/s390.md ("sync_compare_and_swaphi",
799         "sync_compare_and_swapqi"): New pattern.
800
801 2005-12-07  Daniel Berlin <dberlin@dberlin.org>
802
803         Fix PR tree-optimization/25291
804         * tree-ssa-operands.c (add_call_clobber_ops): Remove
805         redundant and crashing check.
806
807 2005-12-08  Alan Modra  <amodra@bigpond.net.au>
808
809         PR target/25212
810         * config/rs6000/rs6000.c (legitimate_indexed_address_p): Relax
811         tests further when !strict && reload_in_progress.
812         (print_operand): Check that both operands of indexed address are regs.
813         (print_operand_address): Likewise.
814         * config/rs6000/rs6000.h (INT_REG_OK_FOR_INDEX_P): Simplify.
815         (INT_REG_OK_FOR_BASE_P): Correct.
816
817 2005-12-07  J"orn Rennecke <joern.rennecke@st.com>
818
819         Preparation for PR rtl-optimization/20070 / part1
820         * basic-block.h (insns_match_p, flow_find_cross_jump): Declare.
821         * cfgcleanup.c (condjump_equiv_p): New function, broken out of
822         outgoing_edges_match.
823         (outgoing_edges_match): Use condjump_equiv_p.
824         (merge_memattrs, insns_match_p, flow_find_cross_jump): Move from here
825         into..
826         * struct-equiv.c: New file.
827         (death_notes_match_p) New function, broken out of insns_match_p.
828         * Makefile.in (OBJS-common): Add struct-equiv.o.
829         (struct-equiv.o): New target.
830
831 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
832
833         * coretypes.h: Revert previous change.
834         * config/darwin.h: Revert previous reversion.
835         * config/avr/avr.h (progmem_section): Guard with #ifndef IN_LIBGCC2.
836
837 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
838
839         * coretypes.h (section): Provide dummy definition for target files.
840         * config/darwin.h: Revert previous change.
841
842 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
843
844         * doc/sourcebuild.texi (all.build, install-normal): Remove.
845         * configure.ac: Remove all.build and install-normal from target_list
846         * configure: Regenerate.
847         * Makefile.in (install): Don't depend on install-normal.
848
849 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
850
851         * Makefile.in: Document the use of stamps.
852
853 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
854
855         * doc/gty.texi: Remove instructions for adding a dependency on s-gtype.
856         * Makefile.in: Add code to compute some dependencies on s-gtype
857         automatically.  Remove the declaration of those dependencies.
858
859 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
860
861         * gcc/reload.c (push_secondary_reload): Fix typo:
862         s/insn_constraint/scratch_constraint/.
863
864 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
865
866         * config/darwin.h: Guard section variables with #ifndef IN_LIBGCC2.
867
868 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
869
870         * config/alpha/alpha.c (alpha_start_function): Use switch_to_section.
871         (alpha_elf_select_rtx_section): Return the selected section rather
872         than emitting assembly code.
873         (alpha_write_linkage): Emit a ".link" directive directly and then
874         set in_section to NULL.
875         (vms_asm_out_constructor): Use switch_to_section.
876         (vms_asm_out_destructor): Likewise.
877         (unicosmk_output_common): Set in_section to NULL instead of calling
878         the dummy common_section function.
879         (unicosmk_text_section): Delete in favor of...
880         (unicosmk_output_text_section_asm_op): ...this new function.
881         (unicosmk_data_section): Delete in favor of...
882         (unicosmk_output_data_section_asm_op): ...this new function.
883         (unicosmk_init_sections): New function.
884         (unicosmk_output_deferred_case_vectors): Use switch_to_section.
885         (unicosmk_output_ssib): Set in_section to NULL instead of calling
886         the dummy ssib_section function.
887         (unicosmk_section_buf): Delete.
888         * config/alpha/alpha-protos.h (unicosmk_text_section): Delete.
889         (unicosmk_data_section): Delete.
890         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
891         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, sbss_section, sdata_section)
892         (SECTION_FUNCTION_TEMPLATE): Delete.
893         * config/alpha/unicosmk.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP)
894         (READONLY_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
895         (common_section, COMMON_SECTION, ssib_section, SSIB_SECTION): Delete.
896         (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
897         (TARGET_ASM_INIT_SECTIONS): Define.
898         * config/alpha/vms.h (LINK_SECTION_ASM_OP, LITERALS_SECTION_ASM_OP)
899         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
900         (link_section, literals_section): Delete.
901         (ASM_OUTPUT_DEF): Emit the ".literal" directive directly and then
902         set in_section to NULL.
903
904         * config/arm/aof.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Delete.
905         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, ZERO_INIT_SECTION): Delete.
906         (COMMON_SECTION): Delete.
907         (TARGET_ASM_INIT_SECTIONS): Define.
908         (ASM_OUTPUT_COMMON): Set in_section to NULL rather than calling
909         the dummy common_section function.
910         * config/arm/aout.h (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
911         * config/arm/arm.c (get_jump_table_size): Use pointer comparison
912         between readonly_data_section and text_section to check whether
913         read-only data is being put in the text section.
914         (arm_output_function_epilogue): Use switch_to_section.
915         (arm_elf_asm_constructor): Likewise.
916         (thumb_call_via_reg): Replace call to in_text_section with
917         a comparison between in_section and text_section.
918         (arm_file_end): Use switch_to_section.
919         (aof_text_section): Delete in favor of...
920         (aof_output_text_section_asm_op): ...this new function.
921         (aof_data_section): Delete in favor of...
922         (aof_output_data_section_asm_op): ...this new function.
923         (aof_asm_init_sections): New function.
924         (zero_init_section): Moved from config/arm/aof.h.
925         (aof_dump_imports, aof_file_start): Use switch_to_section.
926         * config/arm/arm.h (thumb_call_via_label): Update comment.
927         * config/arm/arm-protos.h (aof_text_section, aof_data_section): Delete.
928         (common_section): Delete.
929         * config/arm/pe.h (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.
930         (ASM_DECLARE_OBJECT_NAME): Update the type of save_section.  Use the
931         global switch_to_section function instead of the old port-local one.
932         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, DRECTVE_SECTION_FUNCTION)
933         (SWITCH_TO_SECTION_FUNCTION): Delete.
934         (drectve_section): Redefine as a macro.
935         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS):
936         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use get_named_section and
937         switch_to_section.
938
939         * config/avr/avr.c (progmem_section): New variable.
940         (avr_output_progmem_section_asm_op): New function.
941         (avr_asm_init_sections): New function.
942         (avr_output_addr_vec_elt): Use switch_to_section.
943         * config/avr/avr.h (progmem_section): Declare.
944         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
945         (READONLY_DATA_SECTION): Delete.
946         (TARGET_ASM_INIT_SECTIONS): Define.
947         (ASM_OUTPUT_CASE_LABEL): Use switch_to_section.
948         * config/avr/avr-protos.h (progmem_section): Delete.
949
950         * config/bfin/bfin.h (ASM_OUTPUT_LOCAL): Use switch_to_section.
951
952         * config/c4x/c4x.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
953         (INIT_SECTION_FUNCTION, FINI_SECTION_FUNCTION): Delete.
954
955         * config/darwin-sections.def: New file.
956         * config/darwin.c: Define all sections in darwin-sections.def.
957         (output_objc_section_asm_op, darwin_init_sections): New functions.
958         (machopic_output_indirection): Use switch_to_section.
959         (machopic_select_section): Return the selected section rather than
960         emitting assembly code.  Replace the static function table with
961         inline conditional expressions.  Update the tests of last_text_section
962         and move them into the FUNCTION_DECL block.
963         (machopic_select_rtx_section): Return the selected section rather than
964         emitting assembly code.
965         (machopic_asm_out_constructor, machopic_asm_out_destructor)
966         (darwin_file_end): Use switch_to_section.
967         * config/darwin.h: Use darwin-sections.def to declare sections.
968         (INIT_SECTION_ASM_OP): Remove empty definition.
969         (HAS_INIT_SECTION): Define this instead.
970         (SECTION_FUNCTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
971         (READONLY_DATA_SECTION, TARGET_ASM_EXCEPTION_SECTION): Delete.
972         (TARGET_ASM_EH_FRAME_SECTION): Delete.
973         (TARGET_ASM_INIT_SECTIONS): Define.
974         * config/darwin-protos.h (darwin_init_sections): Declare.
975         (machopic_picsymbol_stub_section, machopic_picsymbol_stub1_section)
976         (machopic_symbol_stub_section, machopic_symbol_stub1_section): Delete.
977         (machopic_lazy_symbol_ptr_section, machopic_nl_symbol_ptr_section)
978         (constructor_section, destructor_section, mod_init_section): Delete.
979         (mod_term_section): Delete.
980         (darwin_exception_section, darwin_eh_frame_section): Delete.
981         (machopic_select_section): Return a section.
982         (machopic_select_rtx_section): Likewise.
983         (text_coal_section, text_unlikely_section, text_unlikely_coal_section)
984         (const_section, const_coal_section, const_data_section): Delete.
985         (const_data_coal_section, data_coal_section, cstring_section): Delete.
986         (literal4_section, literal8_section, constructor_section): Delete.
987         (mod_init_section, mod_term_section, destructor_section): Delete.
988         (objc_class_section, objc_meta_class_section, objc_category_section)
989         (objc_class_vars_section, objc_instance_vars_section): Delete.
990         (objc_cls_meth_section, objc_inst_meth_section): Delete.
991         (objc_cat_cls_meth_section, objc_cat_inst_meth_section): Delete.
992         (objc_selector_refs_section, objc_selector_fixup_section): Delete.
993         (objc_symbols_section, objc_module_info_section): Delete.
994         (objc_image_info_section, objc_protocol_section): Delete.
995         (objc_string_object_section, objc_constant_string_object_section)
996         (objc_class_names_section, objc_meth_var_names_section): Delete.
997         (objc_meth_var_types_section, objc_cls_refs_section): Delete.
998         (machopic_lazy_symbol_ptr_section, machopic_nl_symbol_ptr_section)
999         (machopic_symbol_stub_section, machopic_picsymbol_stub_section)
1000         (darwin_exception_section, darwin_eh_frame_section): Delete.
1001         * config/t-darwin (darwin.o): Depend on config/darwin-sections.def.
1002
1003         * config/frv/frv.c (frv_asm_out_constructor): Use switch_to_section.
1004         (frv_asm_out_destructor): Likewise.
1005         * config/frv/frv.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
1006         (SDATA_SECTION_FUNCTION, FIXUP_SECTION_FUNCTION): Delete.
1007         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use switch_to_section and
1008         get_named_section.
1009         (ASM_OUTPUT_CASE_LABEL): Use switch_to_section.
1010         * config/frv/frv-protos.h (fixup_section, sdata_section, sbss_section)
1011         (data_section): Delete.
1012
1013         * config/i386/cygming.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
1014         (DRECTVE_SECTION_FUNCTION): Delete.
1015         (drectve_section): Redefine as a macro that sets in_section after
1016         emitting the directive.
1017         (SWITCH_TO_SECTION_FUNCTION): Delete.
1018         * config/i386/darwin.h (ASM_OUTPUT_ALIGN): Replace call to
1019         in_text_section with comparison between in_section and text_section.
1020         * config/i386/i386.c (x86_64_elf_select_section): Return the section
1021         rather than emitting assembly code.  Use get_named_section.
1022         (x86_output_aligned_bss, ix86_file_end): Use switch_to_section and
1023         get_named_section.
1024         (machopic_output_stub): Use switch_to_section.
1025         * config/i386/nwld.c (nwld_named_section_asm_out_constructor)
1026         (nwld_named_section_asm_out_destructor): Use get_section and
1027         switch_to_section.
1028
1029         * config/ia64/ia64.c (ia64_select_rtx_section): Return the section
1030         rather than emitting assembly code.
1031         (ia64_rwreloc_select_section): Likewise.
1032         (ia64_rwreloc_select_rtx_section): Likewise.
1033         * config/ia64/ia64-protos.h (sdata_section, sbss_section): Delete.
1034         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
1035         switch_to_section.
1036         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
1037         (SDATA_SECTION_FUNCTION, SBSS_SECTION_FUNCTION): Delete.
1038
1039         * config/iq2000/iq2000.c (iq2000_select_rtx_section): Return the
1040         section rather than emitting assembly code.
1041         (iq2000_select_section): Likewise.
1042         * config/iq2000/iq2000.h (rdata_section, sdata_section): Delete.
1043         (sbss_section): Delete.
1044
1045         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Use switch_to_section
1046         and get_named_section.
1047         * config/m32r/m32r-protos.h (sbss_section, sdata_section): Delete.
1048
1049         * config/mcore/mcore-elf.h (EXPORTS_SECTION_ASM_OP): Delete.
1050         (SUBTARGET_EXTRA_SECTIONS, SUBTARGET_EXTRA_SECTION_FUNCTIONS): Delete.
1051         (EXPORT_SECTION_FUNCTION, SUBTARGET_SWITCH_SECTIONS): Delete.
1052         (MCORE_EXPORT_NAME): Emit the exports directive directly, then set
1053         in_section to NULL.
1054         (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.
1055         (ASM_DECLARE_OBJECT_NAME): Update the type of save_section.  Use the
1056         global switch_to_section function instead of the old port-local one.
1057         * config/mcore/mcore.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
1058         (SWITCH_SECTION_FUNCTION): Delete.
1059         * config/mcore/mcore-pe.h (SUBTARGET_SWITCH_SECTIONS): Delete.
1060         (DRECTVE_SECTION_ASM_OP, SUBTARGET_EXTRA_SECTIONS): Delete.
1061         (SUBTARGET_EXTRA_SECTION_FUNCTIONS, DRECTVE_SECTION_FUNCTION): Delete.
1062         (MCORE_EXPORT_NAME): Emit ".section .drectve" directly, then set
1063         in_section to NULL.
1064         (ASM_DECLARE_OBJECT_NAME): Update the type of save_section.  Use the
1065         global switch_to_section function instead of the old port-local one.
1066         (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.
1067
1068         * config/mips/mips.c (mips_file_start): Update comment.
1069         (mips_output_aligned_bss): Use switch_to_section and get_named_section.
1070         (mips_output_aligned_decl_common): Use switch_to_section.
1071         (mips_select_rtx_section): Return the section rather than emitting
1072         assembly code.  Use get_named_section.
1073         (mips_function_rodata_section: Likewise get_section.
1074         (build_mips16_function_stub): Use switch_to_section.
1075         * config/mips/mips.h (ASM_OUTPUT_IDENT): Use switch_to_section.
1076         (SDATA_SECTION_ASM_OP): Delete.
1077         * config/mips/vxworks.h (EXTRA_SECTIONS): Delete.
1078         (EXTRA_SECTION_FUNCTIONS): Delete.
1079
1080         * config/mmix/mmix.c (mmix_file_start, mmix_file_end)
1081         (mmix_asm_output_aligned_local): Use switch_to_section.
1082
1083         * config/pa/pa.c (som_readonly_data_section, som_one_only_data_section)
1084         (som_one_only_readonly_data_section): New variables.
1085         (pa_output_function_epilogue): Set in_section to NULL instead of
1086         calling forget_section.
1087         (output_deferred_plabels): Use select_section.
1088         (pa_asm_output_mi_thunk): Likewise.  Set in_section to NULL instead
1089         of calling forget_section.
1090         (pa_asm_output_aligned_bss, pa_asm_output_aligned_common)
1091         (pa_asm_output_aligned_local): Use select_section.
1092         (som_text_section_asm_op): Delete in favor of...
1093         (som_output_text_section_asm_op): ...this new function.
1094         (pa_som_asm_init_sections): New function.
1095         (pa_select_section): Return the section rather than emitting
1096         assembly code.
1097         * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
1098         (SOM_READONLY_DATA_SECTION_FUNCTION): Delete.
1099         (SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION): Delete.
1100         (SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): Delete.
1101         * config/pa/pa-protos.h (som_text_section_asm_op): Delete.
1102         (som_readonly_data_section, som_one_only_readonly_data_section)
1103         (som_one_only_data_section, forget_section): Delete.
1104         * config/pa/som.h (TEXT_SECTION_ASM_OP): Delete.
1105         (TARGET_ASM_INIT_SECTIONS): Define.
1106         (READONLY_DATA_SECTION, TARGET_ASM_EXCEPTION_SECTION): Delete.
1107
1108         * config/rs6000/rs6000.c (read_only_data_section): New variable.
1109         (private_data_section, read_only_private_data_section): New variables.
1110         (sdata2_section, toc_section): New variables.
1111         (rs6000_file_start): Use switch_to_section.
1112         (rs6000_assemble_integer): Use comparisons against in_section
1113         instead of calling in_toc_section and in_text_section.  Use
1114         unlikely_text_section_p.
1115         (rs6000_elf_output_toc_section_asm_op): New function, derived
1116         from the old rs6000/sysv4.h toc_section function.
1117         (rs6000_elf_asm_init_sections): New function.
1118         (rs6000_elf_select_rtx_section, rs6000_elf_select_section): Return
1119         the section rather than emitting assembly code.
1120         (machopic_output_stub): Use switch_to_section.
1121         (toc_section): Delete dummy function.
1122         (rs6000_elf_asm_out_constructor, rs6000_elf_asm_out_destructor): Use
1123         switch_to_section and get_section.
1124         (rs6000_xcoff_output_readonly_section_asm_op): New function.
1125         (rs6000_xcoff_output_readwrite_section_asm_op): New function.
1126         (rs6000_xcoff_output_toc_section_asm_op): New function, derived from
1127         the old rs6000/xcoff.h toc_section function.
1128         (rs6000_xcoff_asm_init_sections): New function.
1129         (rs6000_xcoff_select_section, rs6000_xcoff_select_rtx_section): Return
1130         the section rather than emitting assembly code.
1131         (rs6000_xcoff_file_start): Use switch_to_section.
1132         (rs6000_xcoff_file_end): Likewise.
1133         * config/rs6000/rs6000-protos.h (toc_section, sdata_section): Delete.
1134         (sdata2_section, sbss_section, private_data_section): Delete.
1135         (read_only_data_section, read_only_private_data_section): Delete.
1136         * config/rs6000/sysv4.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
1137         (TOC_SECTION_FUNCTION, SDATA_SECTION_FUNCTION, SDATA2_SECTION_FUNCTION)
1138         (SBSS_SECTION_FUNCTION, INIT_SECTION_FUNCTION): Delete.
1139         (FINI_SECTION_FUNCTION): Delete.
1140         (TARGET_ASM_INIT_SECTIONS): Define.
1141         (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
1142         * config/rs6000/xcoff.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
1143         (READ_ONLY_DATA_SECTION_FUNCTION, PRIVATE_DATA_SECTION_FUNCTION)
1144         (READ_ONLY_PRIVATE_DATA_SECTION_FUNCTION, TOC_SECTION_FUNCTION)
1145         (READONLY_DATA_SECTION): Delete.
1146         (TARGET_ASM_INIT_SECTIONS): Define.
1147         (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.  Set in_section
1148         to NULL rather than no_section.
1149         (TARGET_ASM_EXCEPTION_SECTION): Delete.
1150
1151         * config/sh/sh.c (sh_file_start): Use switch_to_section.
1152
1153         * config/sparc/sparc.c (emit_pic_helper): Use switch_to_section.
1154         (sparc_output_deferred_case_vectors): Likewise.  Remove argument
1155         from call to current_function_section.
1156
1157         * config/stormy16/stormy16.c: Include ggc.h and gt-storm16.h.
1158         (bss100_section): New variable.
1159         (xstormy16_asm_output_aligned_common): Use switch_to_section.
1160         (xstormy16_asm_init_sections): New function.
1161         (xstormy16_asm_out_destructor, xstormy16_asm_out_constructor): Use
1162         switch_to_section and get_section.
1163         (xstormy16_output_addr_vec): Use switch_to_section.  Remove argument
1164         from calls to current_function_section.
1165         * config/stormy16/stormy16.h (EXTRA_SECTIONS): Delete.
1166         (XSTORMY16_SECTION_FUNCTION, EXTRA_SECTION_FUNCTIONS): Delete.
1167         (TARGET_ASM_INIT_SECTIONS): Define.
1168         * config/stormy16/stormy16-protos.h (bss100_section): Delete.
1169
1170         * config/svr3.h (ASM_OUTPUT_LOCAL): Use switch_to_section.
1171         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, INIT_SECTION_FUNCTION)
1172         (FINI_SECTION_FUNCTION): Delete.
1173
1174         * config/v850/v850.c: Include gt-v850.h.
1175         (rosdata_section, rozdata_section, tdata_section, zdata_section)
1176         (zbss_section): New variables.
1177         (v850_output_aligned_bss): Use switch_to_section.
1178         (v850_asm_init_sections): New function.
1179         (v850_select_section): Return the section rather than emitting
1180         assembly code.
1181         * config/v850/v850.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
1182         (ZDATA_SECTION_ASM_OP, ZBSS_SECTION_ASM_OP, TDATA_SECTION_ASM_OP)
1183         (ROSDATA_SECTION_ASM_OP, ROZDATA_SECTION_ASM_OP): Delete.
1184         (TARGET_ASM_INIT_SECTIONS): Define.
1185         * config/v850/v850-protos.h (sdata_section, rosdata_section): Delete.
1186         (sbss_section, tdata_section, zdata_section, rozdata_section): Delete.
1187         (zbss_section): Delete.
1188
1189         * config/vax/vaxv.h (ASM_OUTPUT_LOCAL): Use switch_to_section.
1190
1191         * config/vx-common.h (vxworks_exception_section): Delete.
1192         (TARGET_ASM_EXCEPTION_SECTION): Delete.
1193
1194         * config/xtensa/xtensa.c (xtensa_select_rtx_section): Return the
1195         section rather than emitting assembly code.
1196         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Use
1197         switch_to_section.
1198
1199         * Makefile.in (GTFILES): Add $(srcdir)/output.h.
1200         * coretypes.h (section): New union and typedef.
1201         * dbxout.c (FORCE_TEXT): Use switch_to_section.  Remove argument
1202         from call to current_function_section.
1203         (dbxout_function_end, dbxout_init, dbxout_source_file, dbxout_finish)
1204         (dbxout_symbol_location): Use switch_to_section.
1205         * dwarf2out.c (named_section_eh_frame_section): Delete, moving
1206         most of the code into...
1207         (default_eh_frame_section): ...here.  Return a section.
1208         (collect2_eh_frame_section): Delete, moving most of the code into..
1209         (switch_to_eh_frame_section): ...this new function.
1210         (debug_info_section, debug_abbrev_section, debug_aranges_section)
1211         (debug_macinfo_section, debug_line_section, debug_loc_section)
1212         (debug_pubnames_section, debug_str_section, debug_ranges_section): New
1213         variables.
1214         (output_call_frame_info): Call switch_to_eh_frame_section instead of
1215         eh_frame_section.  Use switch_to_section and get_section.
1216         (dwarf2out_begin_prologue): Use switch_to_section.
1217         (AT_string_form): Check the flags in debug_str_section instead of
1218         DEBUG_STR_SECTION_FLAGS.
1219         (output_comp_unit): Use switch_to_section, get_section, and
1220         debug_info_section.
1221         (output_line_info, secname_for_decl): Use unlikely_text_section_p.
1222         (dwarf2out_begin_block): Use switch_to_section.  Remove argument
1223         from call to current_function_section.
1224         (dwarf2out_var_location): Use unlikely_text_section_p.
1225         (dwarf2out_source_line): Use switch_to_section.  Remove argument
1226         from call to current_function_section.
1227         (dwarf2out_start_source_file, dwarf2out_end_source_file)
1228         (dwarf2out_define, dwarf2out_undef: Use switch_to_section and
1229         debug_macinfo_section.
1230         (dwarf2out_init): Initialize the new section variables.  Use them
1231         instead of calls to named_section_flags.  Use switch_to_section.
1232         (output_indirect_string): Use switch_to_section and debug_str_section.
1233         (dwarf2out_finish): Use switch_to_section and the new section
1234         variables.
1235         * except.c (default_exception_section): Return the section instead
1236         of emitting assembly code.
1237         (output_function_exception_table): Use the global exception_section
1238         variable instead of the target hook.  Use switch_to_section.  Remove
1239         argument from call to current_function_section.
1240         * final.c (HAVE_READONLY_DATA_SECTION): Delete.
1241         (shorten_branches): Use pointer comparisons to detect whether the
1242         text section is the same as readonly_data_section.
1243         (profile_function): Use switch_to_section.  Remove argument from
1244         call to current_function_section.
1245         (final_scan_insn): Likewise.  Update use of last_text_section.
1246         * gengtype.c (open_base_files): Add an include of output.h.
1247         * output.h (text_section, data_section, readonly_data_section)
1248         (ctors_section, dtors_section, bss_section, init_section)
1249         (fini_section, sdata_section): Turn into section pointers.
1250         (in_text_section, in_unlikely_text_section, exports_section)
1251         (drectve_section, named_section, mergeable_string_section)
1252         (last_text_section_name): Delete.
1253         (default_exception_section, default_eh_frame_section): Return sections.
1254         (SECTION_DECLARED, SECTION_NAMED): New macros.
1255         (SECTION_MACH_DEP): Bump value.
1256         (section_common, named_section, unnamed_section): New structures.
1257         (unnamed_section_callback): New typedef.
1258         (section): New union.
1259         (sbss_section, exception_section, eh_frame_section): New variables.
1260         (in_section, last_text_section): Turn into section pointers.
1261         (get_unnamed_section, get_section, get_named_section): New functions.
1262         (mergeable_constant_section, function_section): Return a section.
1263         (unlikely_text_section): Likewise.
1264         (current_function_section): Likewise.  Remove the decl argument.
1265         (unlikely_text_section_p, switch_to_section): New functions.
1266         (output_section_asm_op): New function.
1267         (set_named_section_flags, named_section_flags, named_section_real)
1268         (named_section_first_declaration): Delete.
1269         (default_select_section, default_elf_select_section): Return a section.
1270         (default_elf_select_section_1, default_function_rodata_section)
1271         (default_no_function_rodata_section, default_select_rtx_section)
1272         (default_elf_select_rtx_section): Likewise.
1273         * rtl.h (in_data_section): Delete.
1274         * sdbout.c (sdbout_one_type): Use switch_to_section.
1275         * system.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Poison.
1276         (READONLY_DATA_SECTION, TARGET_ASM_EXCEPTION_SECTION): Poison.
1277         (TARGET_ASM_EH_FRAME_SECTION): Poison.
1278         * target-def.h (TARGET_ASM_INIT_SECTIONS): New macro.
1279         (TARGET_ASM_EXCEPTION_SECTION, TARGET_ASM_EH_FRAME_SECTION): Delete.
1280         (TARGET_ASM_OUT): Update after above changes.
1281         * target.h (init_sections): New hook.
1282         (exception_section, eh_frame_section): Delete.
1283         (select_section, select_rtx_section, function_rodata_section): Return
1284         a section rather than emitting assembly code.
1285         * varasm.c (text_section, data_section, readonly_data_section)
1286         (ctors_section, dtors_section, bss_section, init_section)
1287         (fini_section): Turn into section pointers.
1288         (sdata_section, sbss_section, exception_section): New variables.
1289         (eh_frame_section): New variable.
1290         (in_section): Make global and turn into a section pointer.
1291         (last_text_section): Turn into a section pointer.
1292         (unnamed_sections): New variable.
1293         (in_named_name, last_text_section_name): Delete.
1294         (EXTRA_SECTION_FUNCTIONS): Delete.
1295         (in_named_entry): Delete.
1296         (section_htab): New variable, replacing...
1297         (in_named_htab): ...this deleted variable.
1298         (section_entry_eq, section_entry_hash): New functions, based on...
1299         (in_named_entry_eq, in_named_entry_hash): ...these deleted functions.
1300         (get_unnamed_section, get_section): New functions.
1301         (unlikely_text_section): Return a section instead of emitting
1302         assembly code.
1303         (in_text_section, in_unlikely_text_section, in_data_section): Delete.
1304         (get_named_section_flags, named_section_first_declaration): Delete.
1305         (unlikely_text_section_p): New function.
1306         (named_section_real, named_section): Delete.
1307         (get_named_section): New function.
1308         (asm_output_bss, asm_output_aligned_bss): Use switch_to_section.
1309         (function_section): Return a section rather than emitting
1310         assembly code.
1311         (current_function_section): Likewise.  Remove argument.  Use
1312         last_text_section if nonnull, otherwise use function_section.
1313         (default_function_rodata_section): Return a section rather than
1314         emitting assembly code.  Use get_section.
1315         (default_no_function_rodata_section): Return a section rather than
1316         emitting assembly code.
1317         (variable_section): Use switch_to_section and get_named_section.
1318         (mergeable_string_section): Return a section rather than emitting
1319         assembly code.  Use get_section.  Make static.  Don't take special
1320         countermeasures for empty strings.
1321         (mergeable_constant_section): Return a section rather than emitting
1322         assembly code.  Use get_section.
1323         (default_named_section_asm_out_destructor): Use switch_to_section
1324         and get_section.
1325         (default_dtor_section_asm_out_destructor): Use switch_to_section.
1326         (default_named_section_asm_out_constructor): Use switch_to_section
1327         and get_section.
1328         (default_ctor_section_asm_out_constructor): Use switch_to_section.
1329         (assemble_start_function): Likewise.  Set last_text_section to
1330         NULL rather than no_section.  Change the type of save_section.
1331         (assemble_zeros, assemble_variable): Use the section flags to detect
1332         whether or not a section is text.
1333         (assemble_static_space): Use switch_to_section.
1334         (assemble_trampoline_template): Likewise.
1335         (output_constant_def_contents): Use switch_to_section and
1336         get_named_section.
1337         (output_constant_pool_1): Use switch_to_section.  Use the section
1338         flags to see whether sections contain mergeable data.
1339         (init_varasm_once): Initialize section_htab instead of in_named_htab.
1340         Initialize new section variables.  Call TARGET_ASM_INIT_SECTIONS.
1341         (default_elf_asm_named_section): Use SECTION_DECLARED to detect
1342         whether a section has already been declared.
1343         (default_select_section, default_elf_select_section): Return a
1344         section rather than emitting assembly code.
1345         (default_elf_select_section_1): Likewise.  Use bss_section for
1346         SECCAT_BSS if nonnull.  Use get_named_section.
1347         (default_select_rtx_section): Return a section rather than
1348         emitting assembly code.
1349         (default_elf_select_rtx_section): Likewise.  Use get_named_section.
1350         (file_end_indicate_exec_stack): Use switch_to_section and get_section.
1351         (output_section_asm_op, switch_to_section): New functions.
1352         * vmsdbgout.c (vmsdbgout_finish): Use switch_to_section and
1353         get_named_section.
1354
1355         * doc/tm.texi: Expand the introduction to the sections documentation.
1356         (TRAMPOLINE_SECTION): Document new interface.
1357         (SDATA_SECTION_ASM_OP): Document new macro.
1358         (READONLY_DATA_SECTION): Delete.
1359         (SDATA_SECTION_ASM_OP): Document new macro.
1360         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
1361         (TARGET_ASM_INIT_SECTIONS): Document new hook.
1362         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_FUNCTION_RODATA_SECTION)
1363         (TARGET_ASM_SELECT_RTX_SECTION): Adjust for new interface.
1364         (TARGET_EXCEPTION_SECTION, TARGET_EH_FRAME_SECTION): Delete.
1365
1366 2005-12-07  Alan Modra  <amodra@bigpond.net.au>
1367
1368         * gcc.c (init_gcc_specs): Match braces inside conditionally
1369         compiled strings.
1370
1371 2005-12-06  Geoffrey Keating  <geoffk@apple.com>
1372
1373         * config/darwin.h (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): New.
1374
1375 2005-12-06  Aldy Hernandez  <aldyh@redhat.com>
1376
1377         PR C++/24138
1378         * tree.c (integer_all_onesp): Always return true if all bits on.
1379
1380         * testsuite/g++.dg/init/array0.C: New.
1381
1382 2005-12-06  Adrian Straetling  <straetling@de.ibm.com>
1383
1384         * doc/md.texi: Adapt to implementation.
1385
1386 2005-12-06  Andreas Schwab  <schwab@suse.de>
1387
1388         * opts.c (decode_options): Fix typo in message.
1389
1390 2005-12-06  Alan Modra  <amodra@bigpond.net.au>
1391
1392         PR other/13873
1393         * longlong.h: Merge PPC tests from upstream.
1394
1395 2005-12-06  Richard Guenther  <rguenther@suse.de>
1396
1397         * fold-const.c (fold_convert): Do not build and fold
1398         CONVERT_EXPR, but always use NOP_EXPR.
1399
1400 2005-12-06  Jan Beulich  <jbeulich@novell.com>
1401
1402         * config/i386/i386.c (builtin_description): Use MASK_SSE2 for
1403         __builtin_ia32_paddq and __builtin_ia32_subq.
1404         (ix86_init_mmx_sse_builtins): Use MASK_SSE|MASK_3DNOW_A for
1405         __builtin_ia32_pshufw.
1406         * config/i386/i386.md (mmx_adddi3, mmx_subdi3): Depend on TARGET_SSE2.
1407
1408 2005-12-05  James E Wilson  <wilson@specifix.com>
1409
1410         PR target/24934
1411         * opts.c (decode_options): Turn off partitioning if flag_unwind_tables
1412         is set.
1413
1414 2005-12-05  Daniel Berlin  <dberlin@dberlin.org>
1415         
1416         * print-tree.c (print_node): Ditto.
1417         * tree-dfa.c (add_referenced_var): Tag's don't have DECL_INITIAL.
1418         * tree-dump.c (dequeue_and_dump): Check for decl_common structure
1419         before accessing DECL_ARTIFICIAL. 
1420         Handle new tag tree codes.
1421         * tree-flow-inline.h (clear_call_clobbered): Update for tag
1422         changes.
1423         (unmodifiable_var_p): Ditto.
1424         * tree-flow.h (mem_tag_kind): Remove.
1425         (struct var_ann_d): Remove mem_tag_kind member.
1426         * tree-gimple.c (is_gimple_reg): Tags are not gimple registers.
1427         * tree-pretty-print.c (dump_generic_node): Handle memory tags.
1428         * tree-ssa-alias.c (init_alias_info): Update for memory tag changes.
1429         (group_aliases): Ditto.
1430         (setup_pointers_and_addressables): Ditto.
1431         (is_escape_site): Ditto.                                          
1432         (may_alias_p): Ditto.
1433         (create_tag_raw): New function.
1434         (create_memory_tag): Use it.
1435         (dump_alias_info): Update for tags.
1436         (may_be_aliased): Ditto.
1437         (add_type_alias): Ditto.
1438         (new_type_alias): Ditto.
1439         (create_sft): Ditto.
1440         (create_structure_vars): Ditto.
1441         * tree-ssa-ccp.c (get_default_value): Ditto.
1442         * tree-ssa-operands.c (get_expr_operands): Ditto.
1443         (add_stmt_operand): Ditto.
1444         (add_call_clobber_ops): Remove duplicated condition.
1445         * tree-ssa.c (verify_flow_insensitive_alias_info): Update for
1446         tags.
1447         * tree-tailcall.c (suitable_for_tail_opt_p): Ditto.
1448         * tree-vect-transform.c (vect_create_data_ref_ptr): Ditto.
1449         * tree.c (init_ttree): Update structures for new tree codes.
1450         (tree_code_size): Update sizes for new tree codes.
1451         (make_node_stat): Don't try to set common things on minimal
1452         structures.
1453         (tree_node_structure): Update for tags.
1454         (is_global_var): Ditto.
1455         * tree.def: Add new tree codes.
1456         * tree.h (MTAG_P): New macro.
1457         (TREE_MEMORY_TAG_CHECK): Ditto.
1458         (SSA_VAR_P): Update for tags.
1459         (struct tree_memory_tag): New structure.
1460         (MTAG_GLOBAL): New macro.
1461         (union tree_node): Add memory tag member.
1462         * treestruct.def (TS_MEMORY_TAG): New.
1463         
1464 2005-12-05  Dale Johannesen  <dalej@apple.com>
1465
1466         * config/i386/xmmintrin.h (_MM_TRANSPOSE4_PS):  Fix to match
1467         what was approved (PR 24323).
1468
1469 2005-12-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1470
1471         * doc/c-tree.texi (Function Bodies): Remove description of
1472         RETURN_INIT.
1473
1474 2005-12-05  Joseph S. Myers  <joseph@codesourcery.com>
1475
1476         * doc/libgcc.texi (__floatunsisf, __floatunsidf, __floatunsitf,
1477         __floatunsixf, __floatundisf, __floatundidf, __floatunditf,
1478         __floatundixf, __floatuntisf, __floatuntidf, __floatuntitf,
1479         __floatuntixf, __powisf2, __powidf2, __powixf2, __mulsc3,
1480         __muldc3, __multc3, __mulxc3, __divsc3, __divdc3, __divtc3,
1481         __divxc3): Document.
1482
1483 2005-12-05  Geoffrey Keating  <geoffk@apple.com>
1484
1485         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Preserve
1486         previous behaviour.
1487         * config/darwin.h (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Define to
1488         hook_bool_void_false.
1489         (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Define.
1490         * config/darwin.c (darwin_cxx_determine_class_data_visibility): New.
1491
1492         * config/darwin.c (machopic_select_section): It's not defined
1493         as weak if it's only marked as weak_import.
1494         
1495         * config/darwin-protos.h (darwin_cxx_determine_class_data_visibility):
1496         Prototype.
1497
1498         * varasm.c (default_binds_local_p_1): Weakrefs don't bind locally.
1499         A hidden weak object does bind locally.  Strong linkonce data
1500         counts like any other strong symbol for binding.
1501         (weak_finish_1): Don't specially handle weakrefs, they no longer
1502         arrive here.
1503         (assemble_alias): Weakrefs can't be TREE_PUBLIC yet.
1504         * c-common.c (handle_alias_attribute): Allow static aliases
1505         of variables.
1506         (handle_weakref_attribute): Don't call declare_weak on weakrefs.
1507         * gthr-dce.h: Make weakrefs static.
1508         * gthr-tpf.h: Likewise.
1509         * gthr-solaris.h: Likewise.
1510         * gthr-posix.h: Likewise.
1511         * gthr-posix95.h: Likewise.
1512         * config/darwin.c (darwin_encode_section_info): static weakref
1513         variables are not necessarily defined in this translation unit.
1514         * doc/extend.texi (Function Attributes): Mention that an alias
1515         attribute creates a definition for the thing it's attached to.
1516         Change the documentation for weakref to say that the thing
1517         it's attached to must be static.
1518
1519         * config/rs6000/host-darwin.c (segv_handler): Unblock SEGV so
1520         we don't go into an infinite loop.
1521
1522 2005-12-05  Paolo Bonzini  <bonzini@gnu.org>
1523
1524         * config/rs6000/predicates.md (logical_const_operand): Split
1525         out of logical_operand.
1526         (logical_operand): Use it.
1527         * config/rs6000/rs6000.md (cmp -> xor peephole2): Use
1528         logical_const_operand.
1529
1530 2005-12-05  Jan Beulich  <jbeulich@novell.com>
1531
1532         * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_CMPNEPS
1533         and IX86_BUILTIN_CMPNESS.
1534         (ix86_init_mmx_sse_builtins): Remove ti_ftype_ti_ti.
1535         * config/i386/i386.h (ALIGN_MODE_128): Don't check TFmode explicitly.
1536         * config/i386/i386.md (movti_internal): Correct type attribute.
1537         Simplify mode attribute.
1538         (movti_rex64, movsf_1, movdf_nointeger, movdf_integer, movtf_internal):
1539         Correct type attribute.
1540         (absxf2): Correct operator.
1541         * config/i386/mmx.md (mov<mode>_internal_rex64, mov<mode>_internal,
1542         movv2sf_internal_rex64, movv2sf_internal): Correct type attribute.
1543         * config/i386/sse.md (mov<mode>_internal, movv2df_internal): Simplify
1544         mode attribute.
1545         (sse2_vmsqrtv2df2): Correct mode attribute.
1546
1547 2005-12-05  Jan Beulich  <jbeulich@novell.com>
1548
1549         * config/ia64/ia64.md (rotlsi3_internal): Don't split if rotating by
1550         16 bits. Provide insn pattern for this case.
1551
1552 2005-12-05  Jan Beulich  <jbeulich@novell.com>
1553
1554         * libgcc2.c (__popcountSI2): Don't use wide type for iterator and
1555         result.
1556         (__popcountDI2): Likewise.
1557
1558 2005-12-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1559
1560         PR target/25166
1561         * pa/pa.c (pa_hpux_init_libfuncs): Add _U_Qfcnvxf_usgl_to_quad and
1562         _U_Qfcnvxf_udbl_to_quad to set of initialized libfuncs.
1563         * pa/quadlib.c (_U_Qfcnvxf_usgl_to_quad, _U_Qfcnvxf_udbl_to_quad): New
1564         functions.
1565
1566 2005-12-04  Joseph S. Myers  <joseph@codesourcery.com>
1567
1568         * c-typeck.c (null_pointer_constant_p): New function.
1569         (build_conditional_expr, build_c_cast, convert_for_assignment,
1570         build_binary_op): Use it.
1571
1572 2005-12-04  Joseph S. Myers  <joseph@codesourcery.com>
1573
1574         * c-common.c (binary_op_error): Do not allow NOP_EXPR.
1575         (c_common_truthvalue_conversion): Handle NOP_EXPR the same as
1576         CONVERT_EXPR.
1577         (check_function_arguments_recurse): Allow both NOP_EXPR and
1578         CONVERT_EXPR but check conversions preserve precision.
1579         * c-typeck.c (pointer_diff): Allow both NOP_EXPR and CONVERT_EXPR
1580         but check conversions preserve precision.
1581         (build_unary_op): Don't allow NOP_EXPR.  Use gcc_unreachable () in
1582         default case.
1583
1584 2005-12-04  Roger Sayle  <roger@eyesopen.com>
1585
1586         PR c/7776
1587         * common.opt (Wstring-literal-comparison): New command line option.
1588         * c-opts.c (c_common_handle_option): Set it with -Wall.
1589         * c-typeck.c (parser_build_binary_op): Issue warning if either
1590         operand of a comparison operator is a string literal, except for
1591         testing equality or inequality against NULL.
1592
1593         * doc/invoke.texi: Document new -Wstring-literal-comparison option.
1594
1595 2005-12-03  Joseph S. Myers  <joseph@codesourcery.com>
1596
1597         * c-common.c (c_sizeof_or_alignof_type): Use fold_convert instead
1598         of building a NOP_EXPR.
1599         (c_alignof_expr): Likewise.  Handle CONVERT_EXPR the same as
1600         NOP_EXPR.
1601         * c-convert.c (convert): Use fold_convert instead of building
1602         NOP_EXPRs and CONVERT_EXPRs directly.  Don't special case
1603         c_objc_common_truthvalue_conversion returning a NOP_EXPR.  Remove
1604         #if 0 code.
1605         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Handle
1606         NOP_EXPR the same as CONVERT_EXPR.
1607         * c-typeck.c (build_function_call): Use fold_convert instead of
1608         building a NOP_EXPR directly.
1609         (build_compound_expr): Handle NOP_EXPR the same as CONVERT_EXPR.
1610
1611 2005-12-03  Alan Modra  <amodra@bigpond.net.au>
1612
1613         PR rtl-optimization/25197
1614         * dwarf2out.c (dwarf2out_frame_debug_expr <rule 12>): Assert we
1615         have a reg.
1616
1617 2005-12-02  Stuart Hastings  <stuart@apple.com>
1618
1619         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Remove -fpic
1620         warning.
1621
1622 2005-12-03  Joseph S. Myers  <joseph@codesourcery.com>
1623
1624         * c-typeck.c (default_function_array_conversion,
1625         build_function_call): Allow for CONVERT_EXPR as well as NOP_EXPR.
1626         (build_conditional_expr): Apply integer_zerop to orig_op1 and
1627         orig_op2.  Don't check them for NOP_EXPR.
1628         (build_c_cast, convert_for_assignment): Don't check for NOP_EXPR
1629         around integer zero.
1630
1631 2005-12-03  Alan Modra  <amodra@bigpond.net.au>
1632
1633         * config/rs6000/rs6000.c (rs6000_stack_t): Remove toc_save_p,
1634         toc_save_offset, toc_size, lr_size.
1635         (rs6000_stack_info): Use memset rather than bss struct copy to init.
1636         Test rs6000_ra_ever_killed last in condition setting lr_save_p.
1637         Adjust for removal of unused rs6000_stack_t fields.
1638         (debug_stack_info): Adjust.
1639         (rs6000_ra_ever_killed): Expand FIND_REG_INC_NOTE.  Test for calls
1640         first, and don't bother checking for set/inc of lr on sibcalls.
1641         (rs6000_emit_epilogue): Tidy code restoring stack pointer.
1642
1643 2005-12-02  Jakub Jelinek  <jakub@redhat.com>
1644
1645         PR target/25199
1646         * config/i386/i386.md (movqi_1): Only force imovx for alternative
1647         5 if operand 1 is not aligned.  Undo previous constraint change.
1648         * config/i386/predicates.md (aligned_operand): Use MEM_ALIGN.
1649
1650 2005-12-02  Richard Guenther  <rguenther@suse.de>
1651
1652         * tree.h (build): Remove prototype.
1653         (build, _buildN1, _buildN2, _buildC1, _buildC2): Remove macros.
1654         * tree.c (build): Remove.
1655         (build0_stat): Update comment.
1656
1657 2005-12-02  Richard Guenther  <rguenther@suse.de>
1658
1659         * tree-ssa-loop-im.c (schedule_sm): Use buildN instead of build.
1660         * tree-complex.c (update_complex_assignment, expand_complex_div_wide):
1661         Likewise.
1662         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref,
1663         maybe_fold_offset_to_component_ref): Likewise.
1664         * tree-ssa-dom.c (thread_across_edge,
1665         simplify_rhs_and_lookup_avail_expr,
1666         find_equivalent_equality_comparison, record_equivalences_from_stmt):
1667         Likewise.
1668         * gimple-low.c (lower_function_body, lower_return_expr): Likewise.
1669         * tree-eh.c (do_return_redirection, honor_protect_cleanup_actions,
1670         lower_try_finally_switch): Likewise.
1671         * tree-if-conv.c (add_to_dst_predicate_list,
1672         replace_phi_with_cond_modify_expr, ifc_temp_var): Likewise.
1673         * gimplify.c (internal_get_tmp_var, gimple_build_eh_filter,
1674         voidify_wrapper_expr, build_stack_save_restore, gimplify_bind_expr,
1675         gimplify_return_expr, gimplify_decl_expr, gimplify_switch_expr,
1676         gimplify_case_label_expr, gimplify_exit_expr, gimplify_self_mod_expr,
1677         shortcut_cond_r, shortcut_cond_expr, gimplify_cond_expr,
1678         gimplify_init_ctor_eval, gimplify_init_constructor,
1679         gimplify_variable_sized_compare, gimplify_boolean_expr,
1680         gimplify_cleanup_point_expr, gimple_push_cleanup, gimplify_target_expr,
1681         gimplify_expr, gimplify_body, gimplify_function_tree,
1682         force_gimple_operand): Likewise.
1683         * tree-ssa-pre.c (create_expression_by_pieces): Likewise.
1684         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for,
1685         mx_register_decls): Likewise.
1686         * tree-nested.c (init_tmp_var, save_tmp_var, get_static_chain,
1687         get_frame_field, finalize_nesting_tree_1): Likewise.
1688         * tree-inline.c (setup_one_parameter): Likewise.
1689         * tree-vect-transform.c (vectorizable_condition): Likewise.
1690         * tree-outof-ssa.c (insert_copy_on_edge, insert_backedge_copies):
1691         Likewise.
1692         * tree-profile.c (tree_gen_edge_profiler): Likewise.
1693         * tree-cfg.c (factor_computed_gotos, gimplify_val): Likewise.
1694         * c-parser.c (c_parser_if_body, c_parser_switch_statement): Likewise.
1695         * tree-chrec.h (build_polynomial_chrec): Likewise.
1696
1697 2005-12-02  Richard Guenther  <rguenther@suse.de>
1698
1699         * config/alpha/alpha.c (alpha_va_start, alpha_gimplify_va_arg_1i,
1700         alpha_gimplify_va_arg): Use buildN and fold_buildN where applicable.
1701         * config/frv/frv.c (frv_expand_builtin_va_start): Likewise.
1702         * config/s390/s390.c (s390_va_start, s390_gimplify_va_arg): Likewise.
1703         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
1704         * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
1705         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg):
1706         Likewise.
1707         * config/sh/sh.c (sh_va_start, sh_gimplify_va_arg_expr,
1708         sh_adjust_unroll_max): Likewise.
1709         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
1710         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
1711         * config/xtensa/xtensa.c (xtensa_va_start, xtensa_gimplify_va_arg_expr):
1712         Likewise.
1713         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
1714         Likewise.
1715         * config/mips/mips.c (mips_va_start, mips_gimplify_va_arg_expr):
1716         Likewise.
1717
1718 2005-12-02  Richard Guenther  <rguenther@suse.de>
1719
1720         * tree-vrp.c (build_assert_expr_for, process_assert_insertions_for,
1721         simplify_cond_using_ranges): Use buildN instead of build.
1722         * tree-tailcall.c (adjust_accumulator_values,
1723         adjust_return_value): Likewise.
1724         * tree-sra.c (generate_one_element_ref, generate_copy_inout,
1725         generate_element_copy, generate_element_zero,
1726         generate_one_element_init): Likewise.
1727         * tree-ssa-forwprop.c (forward_propagate_into_cond_1): Likewise.
1728         * lambda-code.c (gcc_loop_to_lambda_loop, lbv_to_gcc_expression,
1729         lle_to_gcc_expression, lambda_loopnest_to_gcc_loopnest,
1730         perfect_nestify): Likewise.
1731
1732 2005-12-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1733
1734         * pa.c (pa_secondary_reload): Revise initialization of variable regno.
1735
1736 2005-12-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1737
1738         * ggc.h (GGC_RESIZEVEC): New.
1739
1740 2005-12-02  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1741
1742         * gcc.c (execute): Improve readability.
1743
1744 2005-12-02  Richard Guenther  <rguenther@suse.de>
1745
1746         * tree-cfg.c (mark_used_vars): New function.
1747         (dump_function_to_file): Dump only used VAR_DECLs.
1748
1749 2005-12-02  Richard Guenther  <rguenther@suse.de>
1750
1751         * convert.c (convert_to_integer): Fix compare for nonpositive
1752         constant to use tree_int_cst_sgn <= 0.
1753
1754 2005-12-02  Richard Guenther  <rguenther@suse.de>
1755
1756         * convert.c (convert_to_integer): Use fold_convert instead
1757         of fold_build1 (NOP_EXPR, ...).  Use tree_int_cst_sgn < 0
1758         instead of comparing against 0.  Use build_int_cst instead
1759         of converting integer_zero_node.
1760
1761 2005-12-02  Richard Guenther  <rguenther@suse.de>
1762
1763         * tree-pretty-print.c (op_symbol): Handle LROTATE_EXPR
1764         and RROTATE_EXPR.
1765  
1766 2005-12-02  Alan Modra  <amodra@bigpond.net.au>
1767
1768         PR target/21017
1769         * combine.c (simplify_logical <IOR>): Simplify more patterns to
1770         rotates.
1771
1772 2005-12-02  Alan Modra  <amodra@bigpond.net.au>
1773
1774         PR middle-end/25176
1775         * function.c (expand_function_end): Emit blockage for unwinder
1776         after return label.
1777
1778 2005-12-01  Roger Sayle  <roger@eyesopen.com>
1779
1780         * tree.h (TREE_OVERFLOW): Make this flag/predicate specific to
1781         constant nodes, i.e. INTEGER_CST, REAL_CST, etc...
1782         * tree-vrp.c (compare_values): Only check TREE_OVERFLOW for
1783         integer constant comparisons.
1784
1785 2005-12-02  Jon Grimm  <jgrimm2@us.ibm.com>
1786             Janis Johnson  <janis187@us.ibm.com>
1787             David Edelsohn  <dje@watson.ibm.com>
1788             Ben Elliston  <bje@au.ibm.com>
1789
1790         * dfp.h, dfp.c: New files.
1791         * Makefile.in (DECNUM, DECNUMINC, LIBDECNUMBER): New variables.
1792         (DECNUM_H): Likewise.
1793         (LIBDEPS, LIBS, BACKEND): Append $(LIBDECNUMBER).
1794         (INCLUDES): Append $(DECNUMINC).
1795         (OBJS-common): Add dfp.o.
1796         (dfp.o): New rule.
1797         * real.h (EXP_BITS): Pinch one bit to ..
1798         (struct real_value): Add decimal field.
1799         (real_format): Change table size, update documentation.
1800         (REAL_MODE_FORMAT): Update for to handle float, decimal float.
1801         (real_from_string3): Declare.
1802         (decimal_single_format): Declare.
1803         (decimal_double_format): Declare.
1804         (decimal_quad_format): Declare.
1805         (REAL_VALUE_TO_TARGET_DECIMAL32): New.
1806         (REAL_VALUE_TO_TARGET_DECIMAL64): New.
1807         (REAL_VALUE_TO_TARGET_DECIMAL128): New.
1808         * real.c: Include dfp.h.
1809         (normalize): Early return for decimal floats.
1810         (do_add): Zero decimal field.
1811         (do_compare): Call do_decimal_compare for decimal floats.
1812         (do_fix_trunc): Likewise, call decimal_do_fix_trunc.
1813         (real_arithmetic): Call decimal_real_arithmetic for decimal
1814         floating point operands.
1815         (real_identical): If a and b are of differing radix, return false.
1816         (real_to_integer): Call decimal_real_to_integer if the value is a
1817         decimal float.
1818         (real_to_integer2): Likewise, call decimal_real_to_integer2.
1819         (real_to_decimal): Likewise, call decimal_real_to_decimal.
1820         (real_to_hexadecimal): Place "N/A" in the return string for
1821         decimal float.
1822         (real_from_string3): New variant, given a mode.
1823         (real_maxval): Use decimal_real_maxval for decimal floats.
1824         (round_for_format): Use decimal_round_for_format for decimals.
1825         (real_convert): Use decimal_real_convert where appropriate.
1826         (significand_size): Handle base 10.
1827         (encode_decimal_single, decode_decimal_single,
1828         encode_decimal_double, decode_decimal_double, encode_decimal_quad,
1829         decode_decimal_quad): New functions.
1830         (decimal_single_format): New.
1831         (decimal_double_format): New.
1832         (decimal_quad_format): New.
1833         * machmode.def: Add SD, DD and TD decimal floating point modes.
1834         * machmode.h (FLOAT_MODE_P, SCALAR_FLOAT_MODE_P, MODES_WIDEN_P):
1835         Include MODE_DECIMAL_FLOAT.
1836         (DECIMAL_FLOAT_MODE_P): New.
1837         * mode-classes.def (MODE_DECIMAL_FLOAT): New mode class.
1838         * genmodes.c (struct mode_data): Add counter field.
1839         (struct mode_data): Update comment for format.
1840         (blank_mode): Initialise counter field.
1841         (new_mode): Increment counter field for each mode defined.
1842         (complete_mode): Handle MODE_DECIMAL_FLOAT, update check for mode
1843         using a format.
1844         (make_complex_modes): Handle modes containing `D'.
1845         (DECIMAL_FLOAT_MODE, FRACTIONAL_DECIMAL_FLOAT_MODE): New.
1846         (make_decimal_float_mode): New.
1847         (reset_float_format): Handle MODE_DECIMAL_FLOAT.
1848         (cmp_modes): Compare counter field if other characteristics
1849         similar.
1850         (emit_real_format_for_mode): Support formats for decimal floats.
1851         * doc/rtl.texi (Machine Modes): Document SD, DD and TDmodes.
1852         Document MODE_DECIMAL_FLOAT.
1853
1854 2005-12-02  Alan Modra  <amodra@bigpond.net.au>
1855
1856         * simplify-rtx.c (simplify_plus_minus): Do simplify constants.
1857         Delete dead code.
1858
1859 2005-12-01  Richard Henderson  <rth@redhat.com>
1860
1861         * optabs.c (expand_vec_cond_expr): Use EXPAND_NORMAL.
1862
1863 2005-12-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1864
1865         * builtins.def (BUILT_IN_PUTC, BUILT_IN_PUTC_UNLOCKED): New.
1866
1867         * config/pa/pa.c (pa_init_builtins): If we detect
1868         DONT_HAVE_FPUTC_UNLOCKED, set builtin fputc_unlocked to
1869         putc_unlocked.
1870
1871 2005-12-01  Richard Guenther  <rguenther@suse.de>
1872
1873         * fold-const.c (fold_binary): Use fold_build2, not
1874         fold (build (...)).
1875
1876 2005-12-01  Nathan Sidwell  <nathan@codesourcery.com>
1877
1878         * config/ms1/ms1.c (ms1_reorg_hazard): Don't count noop moves.
1879
1880         * vec.h (VEC_block_remove): New.
1881
1882 2005-12-01  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1883
1884         PR c/13384
1885         * c-common.c (lvalue_error): Fix wording.
1886
1887 2005-12-01  Richard Guenther  <rguenther@suse.de>
1888
1889         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Fix
1890         thinko in last patch.
1891
1892 2005-12-01  Geoffrey Keating  <geoffk@apple.com>
1893
1894         * config/t-slibgcc-darwin (SHLIB_LINK): Use -single_module rather
1895         than -flat_namespace.
1896
1897 2005-12-01  Ben Elliston  <bje@au.ibm.com>
1898
1899         * mklibgcc.in: Parameterise the script to build soft float
1900         functions by iterating over each type, rather than cloning the
1901         code for each type.
1902
1903 2005-11-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1904
1905         PR middle-end/25158
1906         * builtins.c (fold_builtin_fputs): Defer check for missing
1907         replacement functions.
1908
1909 2005-11-30  Kean Johnston  <jkj@sco.com>
1910
1911         * config/i386/i386.c: Check the value of SUPPORTS_ONE_ONLY, not
1912         simply its presense in case targets #define SUPPORTS_ONE_ONLY 0.
1913
1914 2005-11-30  Richard Guenther  <rguenther@suse.de>
1915
1916         PR tree-optimization/22501
1917         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): New
1918         function split out from ...
1919         (forward_propagate_addr_expr): ... here.  Use it to propagate
1920         ADDR_EXPRs to all uses.
1921
1922 2005-11-30  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1923
1924         * tree.h (CASE_FLT_FN, CASE_INT_FN): New macros.
1925         * builtins.c (expand_builtin_mathfn): Use them.
1926         (expand_builtin_mathfn_2): Likewise.
1927         (expand_builtin_mathfn_3): Likewise.
1928         (expand_builtin_int_roundingfn): Likewise.
1929         (expand_builtin): Likewise.
1930         (integer_valued_real_p): Likewise.
1931         (fold_builtin_int_roundingfn): Likewise.
1932         (fold_builtin_bitop): Likewise.
1933         (fold_builtin_logarithm): Likewise.
1934         (fold_builtin_1): Likewise.
1935         * convert.c (convert_to_integer): Likewise.
1936         * fold-const.c (negate_mathfn_p): Likewise.
1937         (tree_expr_nonnegative_p): Likewise.
1938
1939 2005-11-30  Dale Johannesen  <dalej@apple.com>
1940             Andrew Pinski  <pinskia@physics.uc.edu>
1941
1942         * combine.c (find_split_point):  Sign extend bitmask
1943         when changing bitfield assignment to IOR of AND.
1944
1945 2005-11-30  Nathan Sidwell  <nathan@codesourcery.com>
1946
1947         * config/ms1/ms1.md (decrement_and_branch_until_zero): Add early
1948         clobber to scratch reg.
1949         (*decrement_and_branch_until_zero_no_clobber): Remove.
1950         (decrement_and_branch peephole): Add dummy scratch reg to pattern.
1951         (mulhish3): Use TARGET_MS1_16_003, TARGET_MS2.
1952         * config/ms1/ms1.opt (mmul): Remove.
1953         * config/ms1/ms1.h (ASM_SPEC): Cope with uppercase arch names.
1954         (LINK_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Default to 16-002.
1955
1956 2005-11-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1957             Bernd Schmidt  <bernd.schmidt@analog.com>
1958
1959         * pa/predicates.md (symbolic_operand): Add comment.
1960         * pa/pa.md (reload_insi_r1, reload_indi_r1): New reload expanders.
1961         * pa/pa-protos.h (pa_secondary_reload_class): Delete.
1962         * pa/pa.c (TARGET_SECONDARY_RELOAD): Define.
1963         (pa_secondary_reload_class): Delete.
1964         (pa_secondary_reload): New function derived from SECONDARY_RELOAD_CLASS
1965         and pa_secondary_reload_class.  Reorder some checks.  Update inline
1966         copy of symbolic operand.
1967         * pa/pa.h (SECONDARY_RELOAD_CLASS): Delete.
1968
1969 2005-11-30  Nathan Sidwell  <nathan@codesourcery.com>
1970
1971         * loop-doloop.c (add_test): Only add jump notes if we did emit a
1972         jump.
1973
1974 2005-11-30  Jeff Law  <law@redhat.com>
1975
1976         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Properly
1977         handle SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
1978
1979 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
1980
1981         * config/ia64/ia64.c (ia64_expand_tls_address): Add ORIG_OP1 argument.
1982         Move ADDEND_{HI,LO} computation into TLS_MODEL_INITIAL_EXEC case.
1983         (ia64_expand_move): Adjust caller.
1984
1985         * config/ia64/ia64.c (ia64_expand_atomic_op): Only use
1986         fetchadd{4,8}.acq instruction if CODE is PLUS or MINUS, for MINUS
1987         negate VAL.
1988
1989 2005-11-30  Paolo Bonzini  <bonzini@gnu.org>
1990
1991         * simplify-rtx.c (simplify_plus_minus): Remove final parameter.
1992         Always produce an output if we can remove NEGs or canonicalize
1993         (minus (minus ...)) expressions.  Provide a fast path for the
1994         two-operand case.
1995         (simplify_gen_binary): Do not call simplify_plus_minus.
1996         (simplify_binary_operation_1): Reassociate at the end of the
1997         function.
1998
1999 2005-11-29  Evan Cheng  <evan.cheng@apple.com>
2000
2001         * config/i386/xmmintrin.h (_MM_TRANSPOSE4_PS): Rewrite using high/low
2002         moves and unpack to speed up.
2003
2004 2005-11-29  David S. Miller  <davem@sunset.davemloft.net>
2005
2006         * config/sparc/sparc.c (gen_compare_reg): Kill 2nd and 3rd
2007         argument, they are always sparc_compare_op0 and sparc_compare_op1.
2008         (gen_v9_scc): Update callers.
2009         * config/sparc/sparc.md: Likewise.
2010         * config/sparc/sparc-protos.h: Update extern declaration.
2011
2012         * tree-into-ssa.c (rewrite_into_ssa): Fix comment typo.
2013
2014 2005-11-29  Andrew Pinski  <pinskia@physics.uc.edu>
2015
2016         * fold-const.c (negate_expr) <case BIT_NOT_EXPR>: Add break after
2017         the if.
2018
2019 2005-11-29  Andrew Pinski  <pinskia@physics.uc.edu>
2020
2021         * fold-const.c (negate_expr_p): Return true for BIT_NOT_EXPR.
2022         (fold_unary) <case NEGATE_EXPR>: Move -(~a) transformation to ...
2023         (negate_expr): Here.
2024
2025 2005-11-29  Ben Elliston  <bje@au.ibm.com>
2026
2027         * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN):
2028         Fix typo in comment.
2029
2030 2005-11-29  Ben Elliston  <bje@au.ibm.com>
2031
2032         * Makefile.in (clean-target): Depend on clean-target-libgcc.
2033         (clean-target-libgcc): Import rule from the top-level Makefile.in.
2034
2035 2005-11-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2036
2037         PR middle-end/20109
2038         PR middle-end/25120
2039         * builtins.c (init_target_chars): New.
2040         (expand_builtin_printf, expand_builtin_fprintf,
2041         expand_builtin_sprintf, fold_builtin_sprintf,
2042         maybe_emit_sprintf_chk_warning, fold_builtin_sprintf_chk,
2043         fold_builtin_snprintf_chk, fold_builtin_printf,
2044         fold_builtin_fprintf): Check for matching format strings using
2045         the target charset.
2046
2047 2005-11-29  Paul Brook  <paul@codesourcery.com>
2048
2049         * config.gcc: Do not use fixproto on m68k-elf.
2050
2051 2005-11-28  Roger Sayle  <roger@eyesopen.com>
2052
2053         * expmed.c (div_cost): Replace with...
2054         (sdiv_cost, udiv_cost): New.
2055         (init_expmed): Initialize sdiv_cost and udiv_cost, not div_cost.
2056         Rename the div and mod fields, used to initialize sdiv_pow2_cheap
2057         and smod_pow2_cheap, to sdiv_32 and smod_32 to avoid confusion.
2058         (expand_divmod): Replace use of div_cost with either sdiv_cost
2059         or udiv_cost depending upon the signedness of the operation.
2060
2061 2005-11-28  Alexandre Oliva  <aoliva@redhat.com>
2062
2063         PR libfortran/24991
2064         * config/darwin.c (machopic_indirection_name,
2065         machopic_output_indirection): Follow transparent alias chain.
2066
2067 2005-11-28  Alexandre Oliva  <aoliva@redhat.com>
2068
2069         * varasm.c (ultimate_transparent_alias_target): Add comment.
2070
2071 2005-11-28  Kazu Hirata  <kazu@codesourcery.com>
2072
2073         * config/m68k/m68k.c (notice_update_cc): Use SET_DEST and
2074         SET_SRC instead of XEXP where appropriate.
2075
2076 2005-11-28  Joseph S. Myers  <joseph@codesourcery.com>
2077
2078         * config/fp-bit.c (isnan, isinf, pack_d, unpack_d): Use
2079         __builtin_expect.
2080
2081 2005-11-28  Joseph S. Myers  <joseph@codesourcery.com>
2082
2083         * config/fp-bit.h (LSHIFT): Take shift count parameter.
2084         * config/fp-bit.c (_fpadd_parts): Shift in one go instead of one
2085         bit at a time.
2086
2087 2005-11-28  Bernd Schmidt  <bernd.schmidt@analog.com>
2088
2089         * config/bfin/bfin.c (bfin_secondary_reload): Renamed from
2090         secondary_input_reload_class, made static.  Adapt to new
2091         infrastructure.
2092         (secondary_output_reload_class): Delete.
2093         (TARGET_SECONDARY_RELOAD): New macro.
2094         * config/bfin/bfin.h (SECONDARY_INPUT_RELOAD_CLASS,
2095         SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
2096
2097 2005-11-28  Nathan Sidwell  <nathan@codesourcery.com>
2098
2099         PR c++/21166
2100         * c-decl.c (finish_struct):  Only set DECL_PACKED on a field
2101         when its natural alignment is > BITS_PER_UNIT.
2102         * stor-layout.c (finalize_type_size): Revert my patch of 2005-08-08.
2103         * c-common.c (handle_packed_attribute): Ignore packing on a field
2104         whose type is naturally char aligned.
2105
2106 2005-11-28  Richard Guenther  <rguenther@suse.de>
2107
2108         * c-common.c (strict_aliasing_warning): Handle all
2109         component-ref like accesses.
2110
2111 2005-11-28  Roger Sayle  <roger@eyesopen.com>
2112             Uros Bizjak  <uros@kss-loka.si>
2113
2114         PR middle-end/20219
2115         * fold-const.c (fold binary) <RDIV_EXPR>: Optimize
2116         sin(x)/tan(x) as cos(x) and tan(x)/sin(x) as 1.0/cos(x)
2117         when flag_unsafe_math_optimizations is set and
2118         we don't care about NaNs or Infinities.
2119
2120         Move x/expN(y) and x/pow(y,z) transformation into common
2121         flag_unsafe_math_optimizations section.
2122
2123 2005-11-27  Mark Mitchell  <mark@codesourcery.com>
2124
2125         * gcc.c (main): Change type of argv to "char **".
2126
2127 2005-11-28  Alan Modra  <amodra@bigpond.net.au>
2128
2129         * doc/invoke.texi (powerpc msdata-data): Static data doesn't go in
2130         small data sections.
2131         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Make global.
2132         * config/rs6000/rs6000-protos.h: (rs6000_elf_in_small_data_p): Declare.
2133         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Rename to..
2134         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ..this, adding extra parm.  Don't
2135         output locals to sbss if !rs6000_elf_in_small_data_p.
2136         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above.
2137
2138 2005-11-28  Alan Modra  <amodra@bigpond.net.au>
2139
2140         PR target/24997
2141         * config/rs6000/rs6000.c (legitimate_indexed_address_p): Allow pattern
2142         generated by reload.
2143         * config/rs6000/predicates.md (indexed_or_indirect_operand): Use
2144         indexed_or_indirect_address.
2145         (indexed_or_indirect_address): Don't test for base reg.  Call
2146         address_operand last.  Make it a special predicate.
2147
2148 2005-11-27  Kazu Hirata  <kazu@codesourcery.com>
2149
2150         * config/m68k/m68k.c (notice_update_cc): Remove useless code.
2151
2152 2005-11-27  Andrew Pinski  <pinskia@physics.uc.edu>
2153
2154         PR middle-end/24575
2155         * fold-const.c (negate_expr_p): Add case for signed divides if overflow
2156         is undefined.
2157         (negate_expr): Likewise.
2158
2159 2005-11-27  Andreas Schwab  <schwab@suse.de>
2160
2161         * config/m68k/m68k.c: Reindent and fix whitespace, remove
2162         redundant parens.
2163
2164 2005-11-27  Steven Bosscher  <stevenb@suse.de>
2165
2166         * cfgcleanup.c (try_crossjump_to_edge): Always split SRC2 if it
2167         has EH predecessor edges.
2168
2169 2005-11-26  Eric Christopher  <echristo@apple.com>
2170
2171         * config/i386/i386.md (*zero_extendqihi2_movzbw): Avoid partial
2172         register stalls by zero extending to the full register.
2173
2174 2005-11-27  Joseph S. Myers  <joseph@codesourcery.com>
2175
2176         * config/floatunsisf.c, config/floatunsidf.c,
2177         config/floatunsixf.c, config/floatunsitf.c: New files.
2178         * config/ia64/t-hpux: Add floatunsitf.c.
2179         * config/ia64/ia64.c (ia64_init_libfuncs): Use
2180         _U_Qfcnvxuf_dbl_to_quad for unsigned DImode-to-TFmode conversion.
2181
2182 2005-11-26  Richard Henderson  <rth@redhat.com>
2183
2184         * c-lex.c (pragma_lex): Rename from c_lex.
2185         * c-pch.c: Update for pragma_lex rename.
2186         * c-pragma.c, c-pragma.h, config/ia64/ia64-c.c: Likewise.
2187         * config/m32c/m32c-pragma.c, config/darwin-c.c: Likewise.
2188         * config/rs6000/rs6000-c.c, config/c4x/c4x-c.c: Likewise.
2189         * config/sol2-c.c, config/v850/v850-c.c: Likewise.
2190         * doc/tm.texi: Likewise.
2191
2192 2005-11-26  Andrew Pinski  <pinskia@physics.uc.edu>
2193
2194         PR middle-end/23669
2195         * fold-const.c (fold_binary): Convert -A/-B to A/B for signed types
2196         when overflow is undefined.
2197
2198 2005-11-26  Hans-Peter Nilsson  <hp@axis.com>
2199
2200         * doc/md.texi (Insn Canonicalizations): Refer to the
2201         function commutative_operand_precedence for further rules.
2202
2203 2005-11-25  Roger Sayle  <roger@eyesopen.com>
2204
2205         PR middle-end/21309
2206         * expmed.c (choose_mult_variant): Return immediately when mult_cost
2207         is less than zero.  Limit mult_cost to a reasonable upper bound for
2208         the synthetic multiplication sequence.
2209
2210 2005-11-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2211
2212         PR middle-end/25022
2213         * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
2214         fold_builtin_fputs, fold_builtin_printf, fold_builtin_fprintf):
2215         Lookup the explicit replacement functions for any unlocked
2216         stdio builtin transformations.
2217
2218 2005-11-25  Hans-Peter Nilsson  <hp@axis.com>
2219
2220         * config/cris/cris.md ("reload_out<mode>"): Mark operand 2 as
2221         earlyclobber.
2222         * targhooks.c (default_secondary_reload): Don't require operand 2
2223         for an input reload to be earlyclobber.
2224
2225 2005-11-25  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2226
2227         * fold-const.c (negate_mathfn_p): Fix comment and add support
2228         for BUILT_IN_CBRT, BUILT_IN_SINH, BUILT_IN_TANH, BUILT_IN_ASINH,
2229         BUILT_IN_ATANH.
2230
2231 2005-11-25  Joseph S. Myers  <joseph@codesourcery.com>
2232
2233         PR middle-end/24998
2234         * config/sparc/sparc.c (sparc_init_libfuncs): Use _Q_utoq and
2235         _Q_ulltoq for unsigned conversions from SImode and DImode to
2236         TFmode.
2237
2238 2005-11-25  Alan Modra  <amodra@bigpond.net.au>
2239
2240         * config/rs6000/ppc64-fp.c (__floatunditf): New function.
2241         (__floatundidf, __floatundisf): Likewise.
2242
2243 2005-11-25  David Edelsohn  <edelsohn@gnu.org>
2244
2245         * config/rs6000/rs6000.c (rs6000_sr_alias_set): Delete.
2246         (rs6000_override_options): Remove initialization of
2247         rs6000_sr_alias_set.
2248         (rs6000_emit_eh_reg_restore): Use gen_frame_mem.
2249         (rs6000_emit_stack_tie): Same.
2250         (emit_frame_save): Same.
2251         (gen_frame_mem_offset): Same.
2252         (rs6000_emit_prologue): Same.
2253         (rs6000_emit_epilogue): Same.
2254
2255 2005-11-25  Andrew Pinski  <pinskia@physics.uc.edu>
2256
2257         PR middle-end/24989
2258         * fold-const.c (fold_build): Convert bool_var != 1 and
2259         bool_var == 0 to !bool_var.
2260
2261 2005-11-25  Andrew Pinski  <pinskia@physics.uc.edu>
2262
2263         PR middle-end/24990
2264         * fold-const.c (fold_binary): Fold (~a) == C to a == ~C
2265         for C being INTEGER_CST.  Likewise for !=.
2266
2267 2005-11-25  Joseph S. Myers  <joseph@codesourcery.com>
2268
2269         PR middle-end/24998
2270         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Use _q_utoq for
2271         unsigned conversions from SImode to TFmode.
2272
2273 2005-11-24  Bernd Schmidt  <bernd.schmidt@analog.com>
2274
2275         * expr.c (expand_expr_real_1): Fix error in last change.
2276
2277 2005-11-24  J"orn Rennecke <joern.rennecke@st.com>
2278
2279         * caller-save.c: (this_insn_sets): Move into:
2280         (save_call_clobbered_regs).
2281         (mark_set_regs): Get this_insn_sets from data.
2282
2283         (save_call_clobbered_regs): Take sets of the return value by
2284         sibcalls into account.
2285
2286 2005-11-24  J"orn Rennecke <joern.rennecke@st.com>
2287         PR target/21623:
2288
2289         * regclass.c (FORBIDDEN_INC_DEC_CLASSES): Remove
2290         SECONDARY_INPUT_RELOAD_CLASS and SECONDARY_OUTPUT_RELOAD_CLASS tests.
2291         (init_fake_stack_mems): Remove HAVE_SECONDARY_RELOADS test.
2292         (memory_move_secondary_cost, init_reg_autoinc): Remove
2293         SECONDARY_INPUT_RELOAD_CLASS / SECONDARY_OUTPUT_RELOAD_CLASS tests.
2294         Replace SECONDARY_{IN,OUT}PUT_RELOAD_CLASS use with
2295         secondary_reload_class call.
2296         (copy_cost): Likewise.  Add new parameter prev_sri.  Changed all
2297         callers.
2298         * reload.c (entire file): Remove HAVE_SECONDARY_RELOADS checks.
2299         (push_secondary_reload): Use secondary_reload target hook.
2300         (secondary_reload_class, scratch_reload_class): New functions.
2301         (push_reload): Remove SECONDARY_INPUT_RELOAD_CLASS and
2302         SECONDARY_OUTPUT_RELOAD_CLASS tests.  Replace
2303         SECONDARY_{IN,OUT}PUT_RELOAD_CLASS use with secondary_reload_class call.
2304         * reload.h (HAVE_SECONDARY_RELOADS): Don't define nor test.
2305         (secondary_reload_class, scratch_reload_class): Declare.
2306         * reload1.c: Include target.h.
2307         (reload_adjust_reg_for_temp): New function.
2308         (reload_adjust_reg_for_icode): Likewise.
2309         (choose_reload_regs): Remove SECONDARY_INPUT_RELOAD_CLASS test.
2310         Replace SECONDARY_INPUT_RELOAD_CLASS use with secondary_reload_class
2311         call.
2312         (emit_input_reload_insns): Likewise.  Rewrite secondary reload checks
2313         for inheritance.  Support case when both secondary & tertiary reloads
2314         are for intermediate registers.
2315         (emit_output_reload_insns): Replace SECONDARY_OUTPUT_RELOAD_CLASS use
2316         with secondary_reload_class call.  Support case when both secondary
2317         & tertiary reloads are for intermediate registers.
2318         * target-def.h (TARGET_SECONDARY_RELOAD): Provide default definition.
2319         (TARGET_INITIALIZER) Add TARGET_SECONDARY_RELOAD.
2320         * target.h (secondary_reload_info): New struct / typedef.
2321         (struct gcc_target): New member secondary_reload.
2322         * targhooks.c Include reload.h, optabs.h and recog.h.
2323         (default_secondary_reload): New function.
2324         * targhooks.h (default_secondary_reload): Declare.
2325         * doc/tm.texi: Document secondary_reload target hook.  Update
2326         description of SECONDARY_*RELOAD_CLASS and reload_{in,out}<mode>.
2327         * doc/md.texi: Likewise.
2328
2329         * sh-protos.h (sh_secondary_reload): Declare.
2330         * sh.c (TARGET_SECONDARY_RELOAD): Override.
2331         (sh_secondary_reload): New function.
2332         * sh.h (SECONDARY_INOUT_RELOAD_CLASS): Don't define.
2333         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
2334         (SECONDARY_INPUT_RELOAD_CLASS): Likewise.
2335         (HAVE_SECONDARY_RELOADS): Define.
2336         * sh.md (reload_indf): Rename to:
2337         (reload_indf__frn).
2338         (reload_outdf): Rename to:
2339         (reload_outdf__RnFRm).
2340         (reload_insf): Rename to:
2341         (reload_insf__frn).
2342         (reload_insi): Rename to:
2343         (reload_insi__i_fpul).
2344
2345 2005-11-24  Uros Bizjak  <uros@kss-loka.si>
2346
2347         * configure.ac: Require at least texinfo 4.4.
2348         * configure: Regenerate.
2349
2350         * doc/install.texi (Tools/packages necessary for building GCC):
2351         Update required version of texinfo to at least 4.4.
2352         (Installing GCC: Building): Update required version of texinfo
2353         to at least 4.4.
2354         (Installing GCC: Final installation): Update required version
2355         of texi2dvi to at least 4.4.
2356         (Host/target specific installation notes for GCC): Update required
2357         version of texinfo to at least 4.4.
2358
2359 2005-11-24  Richard Guenther  <rguenther@suse.de>
2360         Dirk Mueller <dmueller@suse.de>
2361
2362         PR c++/14024
2363         * c-common.h (strict_aliasing_warning): Declare.
2364         * c-common.c (strict_aliasing_warning): New function,
2365         split out from ...
2366         * c-typeck.c (build_c_cast): ... here.
2367
2368 2005-11-24  Paolo Bonzini  <bonzini@gnu.org>
2369
2370         * optabs.c (expand_binop): Use swap_commutative_operands_with_target
2371         to order operands.
2372         (swap_commutative_operands_with_target): New.
2373
2374 2005-11-24  Paolo Bonzini  <bonzini@gnu.org>
2375
2376         * gcse.c (hash_scan_set): Look through REG_EQUAL or REG_EQUIV notes
2377         also when doing PRE, rather than only for global CPROP.
2378
2379 2005-11-24  Ben Elliston  <bje@au.ibm.com>
2380
2381         * machmode.h (CLASS_HAS_WIDER_MODES_P): New macro.
2382         * optabs.c (expand_binop): Use CLASS_HAS_WIDER_MODES_P, improve
2383         formatting.
2384         (expand_twoval_unop): Likewise.
2385         (widen_clz): Likewise.
2386         (expand_parity): Likewise.
2387         (expand_unop): Likewise.
2388         (emit_cmp_and_jmp_insn_1): Likewise.
2389         (prepare_float_lib_cmp): Likewise.
2390
2391 2005-11-24  Ben Elliston  <bje@au.ibm.com>
2392
2393         * optabs.c (prepare_cmp_insn): Use SCALAR_FLOAT_MODE_P.
2394         Remove unused `class' variable.
2395
2396 2005-11-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2397
2398         PR c++/21667
2399         * c-typeck.c (build_array_ref): Avoid code duplicate.  Use common
2400         C/C++ diagnostic function warn_array_subscript_with_type_char.
2401         * c-common.h (warn_array_subscript_with_type_char): Declare.
2402         * c-common.c (warn_array_subscript_with_type_char): Define.
2403
2404 2005-11-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2405
2406         PR c/21668
2407         * c-decl.c (grokdeclarator): Don't warn for 'extern const' when
2408         compiling at the intersection of C and C++.
2409
2410 2005-11-23  Mark Mitchell  <mark@codesourcery.com>
2411
2412         * doc/invoke.texi: For man pages, include gcc-vers.texi.
2413         List @file in the option summary.  Include the libiberty
2414         documentation for @file.
2415         * gcc.c (main): Call expandargv.
2416         * Makefile.in (gcc-vers.texi): Define srcdir.
2417
2418 2005-11-23  Diego Novillo  <dnovillo@redhat.com>
2419
2420         * passes.c (init_optimization_passes): Document
2421         sequencing of passes.
2422
2423 2005-11-23  Kazu Hirata  <kazu@codesourcery.com>
2424
2425         * config/m68k/predicates.md (pcrel_address, extend_operator,
2426         post_inc_operand, pre_dec_operand): Remove redundant
2427         conditionals.
2428         (const_uint32_operand, const_sint32_operand): Use gcc_assert
2429         instead of abort.
2430         (valid_dbcc_comparison_p): Rewrite in the lisp style.
2431
2432 2005-11-23  Ben Elliston  <bje@au.ibm.com>
2433
2434         * dwarf2.h (enum dwarf_type): Add DW_ATE_decimal_float.
2435
2436 2005-11-22  J"orn Rennecke <joern.rennecke@st.com>
2437
2438         Preparatory work for PR target/21623:
2439         * alpha.c (secondary_reload_class): Rename to:
2440         (alpha_secondary_reload_class).
2441         * alpha.h, alpha-protos.h: Likewise.
2442         * mn10300.c (secondary_reload_class): Rename to:
2443         (mn10300_secondary_reload_class).
2444         * mn10300.h, mn10300-protos.h: Likewise.
2445         * pa.c (secondary_reload_class): Rename to:
2446         (pa_secondary_reload_class).
2447         * pa.h, pa-protos.h: Likewise.
2448         * rs6000.c (secondary_reload_class): Rename to:
2449         rs6000_secondary_reload_class.
2450         * rs6000.h, rs6000-protos.h: Likewise.
2451
2452 2005-11-22  Eric Botcazou  <ebotcazou@adacore.com>
2453
2454         PR middle-end/22561
2455         * tree-ssa-structalias.c (get_constraint_for): Handle ARRAY_RANGE_REF.
2456
2457 2005-11-22  Ian Lance Taylor  <ian@airs.com>
2458
2459         * optabs.c (expand_unop): Call SCALAR_FLOAT_MODE_P on a mode, not
2460         a mode_class.
2461         (prepare_cmp_insn): Likewise.
2462
2463 2005-11-22  Kazu Hirata  <kazu@codesourcery.com>
2464
2465         PR target/23435
2466         * m68k.md (zero_extendsidi2): Force operands[1] to a register
2467         if both operands[0] and operands[1] are memory.
2468
2469 2005-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
2470
2471         PR middle-end/23606
2472         * fold-const.c (fold_unary) <case NOP_EXPR, CONVERT_EXPR>: For
2473         COMPARISON_CLASS_P and an integral types create create a new
2474         expression with the new type and fold that.
2475
2476 2005-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
2477
2478         PR target/24988
2479         * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Remove call
2480         to SUBTARGET_OS_CPP_BUILTINS.
2481
2482 2005-11-22  Richard Earnshaw  <richard.earnshaw@arm.com>
2483
2484         * arm.c (emit_set_insn): New function.
2485         (arm_split_constant): Call it.
2486         (arm_gen_compare_reg, arm_reload_in_hi, arm_reload_out_hi): Likewise.
2487         (arm_legitimize_address): Likewise.  Use plus_constant.
2488         (arm_expand_prologue): Likewise.  Use VOIDmode in SET.
2489         (thumb_expand_prologue): Likewise.
2490         (arm_gen_load_multiple): Use VOIDmode in SET.
2491         (arm_gen_store_multiple): Likewise.
2492         (vfp_emit_fstmx): Likewise.  Use plus_constant.
2493         (emit_multi_reg_push): Likewise.
2494         (emit_sfm): Use plus_constant.
2495
2496 2005-11-23  Alan Modra  <amodra@bigpond.net.au>
2497
2498         PR target/24954
2499         * config/rs6000/predicates.md (easy_vector_constant_add_self): Fix
2500         typo last change.
2501
2502 2005-11-22  Alan Modra  <amodra@bigpond.net.au>
2503
2504         PR middle-end/24950
2505         * expmed.c (store_bit_field): Don't attempt to insv a field
2506         larger than the reg.
2507
2508 2005-11-22  Alan Modra  <amodra@bigpond.net.au>
2509
2510         PR target/24954
2511         * config/rs6000/predicated.md (easy_vector_constant_add_self): Use
2512         explicit sign extension, not a (char) cast.
2513
2514 2005-11-22  Ben Elliston  <bje@au.ibm.com>
2515
2516         * optabs.c: Use SCALAR_FLOAT_MODE_P instead of explicitly testing
2517         GET_MODE_CLASS (x) == MODE_FLOAT.
2518         * config/i386/i386.c: Likewise.
2519         * config/rs6000/xcoff.h: Likewise.
2520         * config/rs6000/linux64.h: Likewise.
2521         * config/rs6000/rs6000.c: Likewise.
2522         * config/rs6000/rs6000.h: Likewise.
2523         * config/rs6000/predicates.md: Likewise.
2524         * config/rs6000/sysv4.h: Likewise.
2525
2526 2005-11-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2527
2528         * c-cppbuiltin.c (c_cpp_builtins): Define __pic__ and __PIC__ when
2529         flag_pic is set.
2530
2531         * config/alpha/freebsd.h, config/alpha/linux.h,
2532         config/arm/linux-elf.h, config/bfin/bfin.h,
2533         config/cris/linux.h, config/darwin.h, config/freebsd-spec.h,
2534         config/i386/beos-elf.h, config/i386/gnu.h,
2535         config/i386/linux.h, config/i386/linux64.h, config/i386/nto.h,
2536         config/i386/sco5.h, config/m32r/m32r.h, config/m68k/linux.h,
2537         config/m68k/m68k.h, config/mips/linux.h, config/pa/pa-linux.h,
2538         config/rs6000/linux64.h, config/rs6000/sysv4.h,
2539         config/rs6000/vxworks.h, config/s390/linux.h, config/s390/tpf.h,
2540         config/sh/linux.h, config/sh/sh.h, config/sol2.h,
2541         config/sparc/linux.h, config/sparc/linux64.h,
2542         config/xtensa/xtensa.h: Don't define __pic__ or __PIC__.
2543
2544         * doc/invoke.texi: Document that the macros __pic__ and __PIC__
2545         are both defined when either flag -fpic or -fPIC are used.
2546
2547 2005-11-22  Joseph S. Myers  <joseph@codesourcery.com>
2548
2549         * config/fp-bit.c (clzusi): New function.
2550         (si_to_float, usi_to_float): Use it to compute proper shift.
2551         (usi_to_float): Preserve guard bits when shifting right.
2552         * libgcc-std.ver (GCC_4.2.0): New version.
2553         * libgcc2.c (__floatundixf, __floatunditf, __floatundidf,
2554         __floatundisf): New functions.
2555         * libgcc2.h (__floatundixf, __floatunditf, __floatundidf,
2556         __floatundisf): Declare.
2557         * mklibgcc.in (lib2funcs): Add _floatundidf, _floatundisf,
2558         _floatundixf, and _floatunditf.
2559         * optabs.c (expand_float): If target does not define a pattern for
2560         signed or unsigned conversion, use an unsigned libcall instead of
2561         a signed one.
2562         (init_optabs): Initialize ufloat_optab.
2563
2564 2005-11-22  Joseph S. Myers  <joseph@codesourcery.com>
2565
2566         * config/rs6000/rs6000.opt (mmulhw): New option.
2567         * doc/invoke.texi (-mmulhw): Document.
2568         * config/rs6000/rs6000.c (rs6000_override_options): Enable -mmulhw
2569         for 405 and 440.
2570         * config/rs6000/rs6000.md: Add half-word multiply and
2571         multiply-accumulate instructions for 405 and 440.
2572
2573 2005-11-21  Joel Sherrill <joel.sherrill@oarcorp.com>
2574
2575         * config/arm/rtems-elf.h: Added definition of LINK_GCC_C_SEQUENCE_SPEC
2576         which matches behavior of gcc 4.0 and older for RTEMS targets.  The
2577         default now includes a linker group which makes the RTEMS one nest.
2578
2579 2005-11-22  Ben Elliston  <bje@au.ibm.com>
2580
2581         * cse.c (fold_rtx): Typo fix.
2582         (find_comparison_args): Pass the mode of arg1, not arg1 itself.
2583
2584 2005-11-21  Richard Henderson  <rth@redhat.com>
2585
2586         * c-common.c, config/darwin-c.c, c-decl.c, c-tree.h, c-objc-common.h,
2587         langhooks-def.h, langhooks.h: Revert 2005-11-18 lookup_name patch.
2588
2589         * c-tree.h (lookup_name): Move declaration ...
2590         * c-common.h (lookup_name): ... here.
2591         * config/darwin-c.c: Include c-common.h.
2592         * config/t-darwin: Update dependencies.
2593
2594 2005-11-22  Ben Elliston  <bje@au.ibm.com>
2595
2596         * optabs.c (expand_abs_nojump): Use SCALAR_FLOAT_MODE_P instead of
2597         explicitly testing GET_MODE_CLASS (x) == MODE_FLOAT.
2598         * genopinit.c (gen_insn): Likewise.
2599         * reload.c (find_equiv_reg): Likewise.
2600         * loop.c (load_mems): Likewise.
2601         * rtlanal.c (may_trap_p_1, canonicalize_condition): Likewise.
2602         * cse.c (find_comparison_args, fold_rtx): Likewise.
2603         * dwarf2out.c (add_const_value_attribute): Likewise.
2604         * expr.c (convert_move): Likewise.
2605         * recog.c (general_operand, register_operand): Likewise.
2606         * reg-stack.c (replace_reg): Likewise.
2607         * tree-vect-generic.c (type_for_widest_vector_mode): Likewise.
2608         * c-common.c (handle_vector_size_attribute): Likewise.
2609         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
2610         (simplify_binary_operation_1): Likewise.
2611         (simplify_const_binary_operation): Likewise.
2612         (simplify_relational_operation): Likewise.
2613         (simplify_const_relational_operation): Likewise.
2614         (simplify_immed_subreg): Likewise.
2615         * emit-rtl.c (gen_lowpart_common): Likewise.
2616         * expmed.c (expand_mult): Likewise.
2617         * stor-layout.c (layout_type): Likewise.
2618
2619 2005-11-21  Paolo Bonzini  <bonzini@gnu.org>
2620
2621         PR target/24951
2622         * config/rs6000/rs6000.c (output_vec_const_move): Load cst and
2623         cst2 only for SPE vectors.
2624
2625 2005-11-21  David Edelsohn  <edelsohn@gnu.org>
2626
2627         PR target/24953
2628         * config/rs6000/predicates.md (vrsave_operation): Check
2629         UNSPEC_VOLATILE value.
2630
2631 2005-11-21  Jan Hubicka  <jh@suse.cz>
2632
2633         PR tree-optimization/24653
2634         * tree-ssa-ccp.c (ccp_fold): Strip down useless conversions.
2635
2636 2005-11-21  Uros Bizjak  <uros@kss-loka.si>
2637
2638         * config/i386/predicates.md (ax_reg_operand): New predicate.
2639         (memory_displacement_only_operand): New predicate.
2640         * config/i386/i386.md ("modrm" attribute): Return 0 if one
2641         operand is AX register and the other operand is memory operand
2642         with displacement only.
2643
2644 2005-11-21  Uros Bizjak  <uros@kss-loka.si>
2645
2646         * fold-const.c (fold_binary) <RDIV_EXPR>: Optimize A / A to 1.0
2647         if we don't care about NaNs or Infinities.
2648
2649 2005-11-20  Ian Lance Taylor  <ian@airs.com>
2650
2651         PR rtl-optimization/24883
2652         * combine.c (combinable_i3pat): When checking whether the
2653         destination of i3 is used in i3, consider paradoxical subregs.
2654
2655 2005-11-21  Kazu Hirata  <kazu@codesourcery.com>
2656
2657         PR middle-end/20583
2658         * cse.c (cse_insn): Reject invalid forms of CONST earlier.
2659
2660 2005-11-20  Joseph S. Myers  <joseph@codesourcery.com>
2661
2662         * combine.c (try_combine): Do not run subst on i1src and i2src in
2663         the case of generating a PARALLEL for a comparison.
2664
2665 2005-11-20  Richard Henderson  <rth@redhat.com>
2666
2667         PR 24931
2668         * tree-sra.c (struct sra_elt): Add all_no_warning.
2669         (struct sra_walk_fns) <use>: Add use_all argument.
2670         (sra_walk_expr): Pass it.
2671         (sra_walk_modify_expr): Likewise.
2672         (scalarize_ldst): Likewise.
2673         (scan_use): Update for new argument.
2674         (mark_no_warning): New.
2675         (scalarize_use): Use it.
2676
2677 2005-11-20  Bernd Schmidt  <bernd.schmidt@analog.com>
2678
2679         * expr.c (expand_expr_real): Use usmul_optab for widening
2680         signed * unsigned multiplies.
2681         * genopinit.c (optabs): Add usmul_widen_optab.
2682         * optabs.c (init_optabs): Likewise.
2683         * optabs.h (enum optab_index): Add OTI_usmul_widen.
2684         (usmul_widen_optab): Define.
2685         * config/bfin/bfin.md (usmulhisi3): New pattern.
2686
2687         * doc/md.texi (usmulqihi3, usmulhisi3, usmulsidi3): Document.
2688
2689 2005-11-20  Graham Stott <btinternet.com>
2690
2691         * gensupport.c (std_preds): Fixed extraneous `false` in last change.
2692
2693 2005-11-20  Andreas Schwab  <schwab@suse.de>
2694
2695         PR target/24757
2696         * config/ia64/ia64.c (ia64_expand_atomic_op): Fix condition of cmp
2697         insn.
2698
2699 2005-11-19  Richard Henderson  <rth@redhat.com>
2700
2701         PR tree-opt/24665
2702         * tree-gimple.c (is_gimple_id): Export.
2703         * tree-gimple.h (is_gimple_id): Declare.
2704         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): New.
2705         (get_default_value): Use it.
2706         (maybe_fold_stmt_indirect): Likewise.
2707
2708 2005-11-19  James A. Morrison  <phython@gcc.gnu.org>
2709
2710         * tree-vrp.c (compare_ranges): Return false for EQ_EXPR if VR0 is less
2711         than VR1 or vice-versa.
2712
2713 2005-11-19  Hans-Peter Nilsson  <hp@axis.com>
2714
2715         PR middle-end/24912
2716         PR middle-end/24750
2717         * reload.c (find_reloads_address_1): Mention dependency on
2718         gen_reload.
2719         * reload1.c (gen_reload): For IN with an unary operation, try
2720         moving inner expression to OUT if trivial SET is not valid.
2721         Confirm that the result is valid.  Move common code block into...
2722         (emit_insn_if_valid_for_reload): New function.
2723
2724 2005-11-19  Richard Guenther  <rguenther@suse.de>
2725
2726         * fold-const.c (fold_indirect_ref_1): Make sure we fold
2727         ARRAY_REFs of constant strings.
2728
2729 2005-11-19  Jakub Jelinek  <jakub@redhat.com>
2730
2731         * gcc.c (version_compare_spec_function): Use '%s' rather than %qs in
2732         fatal format string.
2733
2734 2005-11-19  Joseph S. Myers  <joseph@codesourcery.com>
2735
2736         * combine.c (make_compound_operation): Swap operands of
2737         commutative operation if necessary before returning.
2738
2739 2005-11-19  Richard Guenther  <rguenther@suse.de>
2740
2741         PR middle-end/23294
2742         * fold-const.c (fold_plusminus_mult_expr): New function.
2743         (fold_binary): Use to canonicalize PLUS_EXPR and MINUS_EXPR
2744         cases, remove now unnecessary code.
2745
2746 2005-11-19  Paolo Bonzini  <bonzini@gcc.gnu.org>
2747
2748         * gensupport.c (old_preds): Rename to std_preds, add special field.
2749         (struct old_pred_table): Rename to struct std_pred_table, add special
2750         field.
2751         (NUM_KNOWN_OLD_PREDS): Rename to NUM_KNOWN_STD_PREDS.
2752         (NUM_OLD_SPECIAL_MODE_PREDS): Remove.
2753         (init_predicate_table): Adjust, and set along the way whether a
2754         predicate is special.
2755
2756 2005-11-18  Mark Mitchell  <mark@codesourcery.com>
2757
2758         * BASE-VER: Change to 4.2.0.
2759
2760 2005-11-18  James E Wilson  <wilson@specifix.com>
2761
2762         * builtins.c (fold_builtin_strstr): Pass s1 through fold_convert before
2763         returning it.
2764
2765 2005-11-18  Mike Stump  <mrs@apple.com>
2766
2767         * c-common.c (handle_cleanup_attribute): Use a lang hook for lookup_name.
2768         * config/darwin-c.c (darwin_pragma_unused): Likewise.
2769         * c-decl.c (lookup_name_two) Remove.
2770         * c-tree.h (lookup_name_two): Remove.
2771         * c-objc-common.h (LANG_HOOKS_LOOKUP_NAME): Add.
2772         * langhooks-def.h (LANG_HOOKS_LOOKUP_NAME): Add.
2773         (LANG_HOOKS_DECLS): Add initializer for LANG_HOOKS_LOOKUP_NAME.
2774         * langhooks.h (lang_hooks_for_decls): Add lookup_name.
2775
2776 2005-11-18  Richard Earnshaw  <richard.earnshaw@arm.com>
2777
2778         PR target/24914
2779         * arm.c (arm_hard_regno_mode_ok): Co-processor registers aren't ok
2780         when not generating code to use that co-processor.
2781
2782 2005-11-18  James A. Morrison  <phython@gcc.gnu.org>
2783
2784         * tree-flow.h (reserve_phi_args_for_new_edge, create_phi_node,
2785         add_phi_arg, remove_phi_args, remove_phi_node phi_reverse): Mention that
2786         these functions are now in tree-phinodes.c.
2787
2788 2005-11-18  Jie Zhang  <jie.zhang@analog.com>
2789
2790         * config/bfin/bfin.md (trap): New pattern.
2791
2792 2005-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2793
2794         * tree-ssa-dom.c (extract_range_from_cond): Deal with variable bounds
2795         on types.
2796
2797         * expr.c (expand_expr_real): Don't call record_block_change unless
2798         ib_boundaries_block is non-null
2799
2800         * postreload.c (reload_cse_move2add): Don't try to work with BImode.
2801
2802         * fold-const.c (build_range_check): Use proper type for subtraction
2803         when merging lower bound.
2804
2805 2005-11-18  Zdenek Dvorak  <dvorakz@suse.cz>
2806
2807         PR rtl-optimization/24497
2808         * loop-unroll.c (apply_opt_in_copies): Do not verify equality of
2809         the copied insn.
2810
2811 2005-11-18  Zdenek Dvorak  <dvorakz@suse.cz>
2812
2813         * tree-scalar-evolution.c (expression_expensive_p): New function.
2814         (scev_const_prop): Use compute_overall_effect_of_inner_loop.
2815
2816 2005-11-18  Bernd Schmidt  <bernd.schmidt@analog.com>
2817
2818         * config/bfin/crtlibid.s: New file.
2819
2820 2005-11-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2821
2822         PR target/24348
2823         * config.gcc (hppa*-*-hpux*): Add pa/t-slibgcc-elf-ver to tmake config
2824         when not using sjlj exceptions.
2825         * config/pa/pa64-hpux.h (LIB_SPEC): Add -lpthread in static links.
2826         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
2827         * config/pa/som.h (ASM_PREFERRED_EH_DATA_FORMAT): Delete define.
2828         * config/pa/linux-unwind.h (pa32_fallback_frame_state): Use
2829         DWARF_ALT_FRAME_RETURN_COLUMN instead of column 0 as return column.
2830         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): New define.
2831         * config/pa/pa-linux.h (INCOMING_RETURN_ADDR_RTX,
2832         DWARF_FRAME_RETURN_COLUMN, ASM_PREFERRED_EH_DATA_FORMAT,
2833         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Delete defines.
2834         * config/pa/pa.h (ARG_POINTER_CFA_OFFSET): Delete.
2835         (FRAME_POINTER_CFA_OFFSET, INCOMING_RETURN_ADDR_RTX,
2836         DWARF_FRAME_RETURN_COLUMN, DWARF_ALT_FRAME_RETURN_COLUMN,
2837         ASM_PREFERRED_EH_DATA_FORMAT, ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): New
2838         defines.
2839         * config/pa/hpux-unwind.h: New file.
2840
2841 2005-11-17  Alexandre Oliva  <aoliva@redhat.com>
2842
2843         * config/rs6000/rs6000.h (ASM_OUTPUT_WEAKREF): Define.
2844         * defaults.h (ASM_OUTPUT_WEAKREF): Add decl argument.
2845         * varasm.c (do_assemble_alias): Adjust call.
2846         (weak_finish): Don't use ASM_WEAKEN_LABEL if ASM_WEAKEN_DECL
2847         is defined.
2848         * doc/tm.texi (ASM_OUTPUT_WEAKREF): Document it.
2849
2850 2005-11-17  James E Wilson  <wilson@specifix.com>
2851
2852         * tree.def (FUNCTION_DECL): Correct typo in comment.
2853
2854 2005-11-17  Richard Henderson  <rth@redhat.com>
2855
2856         * dwarf2out.c (dw_cfi_oprnd_struct): Reduce dw_cfi_reg_num to int.
2857         (lookup_cfa_1): Apply data alignment to DW_CFA_def_cfa_offset_sf
2858         and DW_CFA_def_cfa_sf.
2859         (def_cfa_1): Use DW_CFA_def_cfa_offset_sf with negative values.
2860         (dbx_reg_number): Don't assert particular registers here.
2861         (based_loc_descr): ... do it here instead.  Fold in ...
2862         (eliminate_reg_to_offset): ... this function.
2863         (compute_frame_pointer_to_cfa_displacement): Fold in the effects
2864         of eliminate_reg_to_offset; use FRAME_POINTER_CFA_OFFSET.
2865         * unwind-dw2.c (execute_cfa_program): Apply data align factor
2866         to DW_CFA_def_cfa_offset_sf and DW_CFA_def_cfa_sf.
2867         * function.c (instantiate_new_reg): Use FRAME_POINTER_CFA_OFFSET.
2868         (instantiate_virtual_regs): Likewise.
2869         * var-tracking.c (adjust_stack_reference): Likewise.
2870         * doc/tm.texi (FRAME_POINTER_CFA_OFFSET): New.
2871
2872 2005-11-17  Bernd Schmidt  <bernd.schmidt@analog.com>
2873
2874         * config/bfin/elf.h (STARTFILE_SPEC): Add "crtlibid%O%s"
2875         * config/bfin/uclinux.h (STARFILE_SPEC): Likewise.
2876         * config/bfin/t-bfin-elf (EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Add
2877         crtlibid.o.
2878         ($(T)crtlibid.o): New rule.
2879
2880 2005-11-16  Richard Guenther  <rguenther@suse.de>
2881
2882         PR middle-end/24851
2883         * fold-const.c (extract_array_ref): Return byte offset
2884         in all cases.
2885         (fold_binary): Fold &x[a] CMP &x[b] to
2886         a*sizeof(*x) CMP b*sizeof(*x) to get correct overflow
2887         behavior.
2888
2889 2005-11-16  Richard Henderson  <rth@redhat.com>
2890
2891         PR middle-end/23497
2892         * tree-ssa.c (warn_uninitialized_var): Skip real and imaginary
2893         parts of an SSA_NAME.
2894
2895 2005-11-16  Richard Earnshaw  <richard.earnshaw@arm.com>
2896
2897         PR target/24861
2898         * arm.md (split for movsf with immediate): Restrict split to insns
2899         that set a general register.
2900
2901 2005-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
2902
2903         * config/ia64/unwind-ia64.c (uw_advance_context): New.  Call
2904         uw_update_context.
2905         * unwind-dw2.c (uw_advance_context): Likewise.
2906         * unwind-sjlj.c (uw_advance_context): Likewise.  Also call
2907         _Unwind_SjLj_Unregister.
2908         * unwind.inc (_Unwind_ForcedUnwind_Phase2): Call uw_advance_context.
2909
2910 2005-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
2911
2912         * unwind-sjlj.c (_Unwind_GetCFA): Handle the builtin_setjmp case.
2913
2914 2005-11-16  Eric Botcazou  <ebotcazou@adacore.com>
2915
2916         * config/alpha/alpha.c (alpha_init_builtins): Use type_for_mode
2917         langhook to get a DImode integer type.
2918
2919 2005-11-16  Richard Henderson  <rth@redhat.com>
2920             J"orn Rennecke <joern.rennecke@st.com>
2921             Ulrich Weigand  <uweigand@de.ibm.com>
2922
2923         PR rtl-opt/24160
2924         PR target/24621
2925         * reload1.c (reg_equiv_invariant): New.
2926         (reload): Allocate, initialize, and free it.
2927         (calculate_needs_all_insns): Check it when skipping equivalence
2928         setting insns.
2929         (alter_reg): Likewise.
2930         (eliminate_regs_1): Rename from eliminate_regs.  Add new
2931         may_use_invariant argument; only use reg_equiv_invariant when true.
2932         (eliminate_regs): New.
2933         (eliminate_regs_in_insn): Use eliminate_regs_1; track when we're in
2934         a context for which may_use_invariant may be true.
2935
2936 2005-11-16  Eric Botcazou  <ebotcazou@adacore.com>
2937
2938         * fold-const.c (const_binop): Don't constant fold the operation
2939         if the result has overflowed and flag_trapping_math.
2940         * simplify-rtx.c (simplify_const_binary_operation): Likewise.
2941
2942 2005-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
2943
2944         * config/arm/unwind-arm.c (abort): Add prototype here.
2945         (UCB_FORCED_STOP_ARG): Correct typo in macro argument.
2946         (struct phase1_vrs): Add prev_sp.
2947         (unwind_phase2_forced): Save the original core registers instead of
2948         modifying entry_vrs.  Take a new flag argument for resuming unwinding
2949         and set action flags accordingly.  Always set _US_END_OF_STACK when
2950         get_eit_entry fails.  Unwind before calling the stop function.
2951         (_Unwind_GetCFA): New function.
2952         (__gnu_Unwind_ForcedUnwind): Update call to unwind_phase2_forced.
2953         (__gnu_Unwind_Resume_or_Rethrow): Likewise.
2954         (__gnu_Unwind_Resume): Do not unwind here for forced unwinding;
2955         just call unwind_phase2_forced.
2956         (_Unwind_GetDataRelBase, _Unwind_GetTextRelBase): Move to here.
2957         * config/arm/unwind-arm.h (abort): Remove prototype.
2958         (_Unwind_GetDataRelBase, _Unwind_GetTextRelBase): Change to
2959         prototypes.
2960         (_Unwind_GetCFA): New prototype.
2961         * config/arm/pr-support.c (abort): Add prototype here.
2962         * unwind-c.c (PERSONALITY_FUNCTION) [__ARM_EABI_UNWINDER__]: Handle
2963         forced unwinding.
2964         * config/arm/arm.c (arm_expand_prologue, thumb_expand_prologue): Do
2965         not schedule the prologue with non-call exceptions and EABI.
2966
2967 2005-11-16  Nathan Sidwell  <nathan@codesourcery.com>
2968
2969         * config/arm/unwind-arm.h: Reorder interface function declarations.
2970         (_URC_END_OF_STACK): New enumeration value.
2971         (_US_UNWIND_ACTION_MASK, _US_FORCE_UNWIND, _US_END_OF_STACK): Likewise.
2972         (struct _Unwind_Control_Block): Document reserved field use.
2973         (_Unwind_Stop_Fn): New typedef.
2974         (_Unwind_ForcedUnwind): Declare.
2975         (_Unwind_Resume_or_Rethrow): Declare.
2976         * gcc/config/arm/libunwind.S (UNWIND_WRAPER): Add nargs
2977         argument.  Adjust.
2978         (_Unwind_Resume_or_Rethrow, _Unwind_ForcedUnwind): New.
2979         * config/arm/unwind-arm.c (UCB_FORCED_STOP_FN)
2980         (UCB_FORCED_STOP_ARG): New.
2981         (search_EIT_table): Update boundary condition checks.
2982         (get_eit_entry): Return _URC_END_OF_STACK when cannot unwind.
2983         (unwind_phase2): Replace for with do..while.
2984         (unwind_phase2_forced): New.
2985         (__gnu_Unwind_RaiseException): Replace for with do..while.
2986         (__gnu_Unwind_ForcedUnwind): New.
2987         (__gnu_Unwind_Resume): Set FORCE_UNWIND flag, if forced unwinding.
2988         Use appropriate phase2 unwinder.
2989         (__gnu_Unwind_Resume_or_Rethrow): New.
2990         (__gnu_unwind_pr_common): Cope with forced unwinding.
2991
2992 2005-11-16  David Edelsohn  <edelsohn@gnu.org>
2993
2994         PR target/24772
2995         * config/rs6000/predicates.md (vrsave_operation): SET_SRC is a VEC.
2996
2997         * config/rs6000/rs6000.md (btruncsf2, ceilsf2, floorsf2,
2998         roundsf2): Remove "s" from mnemonic.
2999
3000 2005-11-16  Bernd Schmidt  <bernd.schmidt@analog.com>
3001
3002         * config/bfin/crti.s (__init, __fini): Use appropriate prologue if
3003         __PIC__ is defined.
3004         * config/bfin/crtn.s: Change epilogues to match.
3005         * config/bfin/t-bfin-elf (EXTRA_MULTILIB_PARTS): Define.
3006         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): If flag_pic, define
3007         __PIC__ and __pic__.
3008
3009 2005-11-16  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
3010
3011         PR 24357
3012         * doc/invoke.texi: Distinguish between free and fixed form instead of
3013         Fortran and Fortran 90/95.  Remove ratfor from the list of supported
3014         languages.
3015         * gcc.c (default_compilers): Remove double entries, add entries for
3016         suffixes '.F90' and '.F95'.
3017
3018 2005-11-16  Eric Botcazou <ebotcazou@adacore.com>
3019
3020         * config/alpha/alpha.c (alpha_expand_prologue): Fix off-by-one bug
3021         in the stack probing loop.
3022
3023 2005-11-15  David Edelsohn  <edelsohn@gnu.org>
3024
3025         * configure.ac: Use .machine power5 not power5x.
3026         * configure: Regenerate.
3027
3028 2005-11-15  Mike Stump  <mrs@apple.com>
3029
3030         * c-decl.c (lookup_name_two): Add.
3031         * c-tree.h (lookup_name_two): Likewise.
3032         * c-common.c (handle_cleanup_attribute): Use lookup_name_two instead.
3033         * config/darwin-c.c (darwin_pragma_unused): Likewise.
3034
3035 2005-11-16  Alan Modra  <amodra@bigpond.net.au>
3036
3037         PR rtl-optimization/23392
3038         * regrename.c (enum scan_actions) Add mark_access.
3039         (scan_actions_name): Ditto.
3040         (scan_rtx_reg): Handle mark_access.
3041         (scan_rtx_address): Do nothing for mark_access.
3042         (build_def_use): Mark source registers in REG_FRAME_RELATED_EXPR
3043         and regs in REG_INC notes before closing chains for dead regs.
3044         Mark destination regs in REG_FRAME_RELATED_EXPR notes after
3045         opening chains for new writes.
3046
3047 2005-11-15  David Edelsohn  <edelsohn@gnu.org>
3048
3049         * c.opt (ffixed-line-length-none): New.
3050
3051 2005-11-15  Steve Ellcey  <sje@cup.hp.com>
3052
3053         * mklibgcc.in: Change contents of eh_dummy.c.
3054
3055 2005-11-15  Daniel Jacobowitz  <dan@codesourcery.com>
3056
3057         * loop.c (scan_loop): Do not insert temporaries for hard registers.
3058
3059 2005-11-15  Daniel Jacobowitz  <dan@codesourcery.com>
3060
3061         * config/arm/lib1funcs.asm (div0) [L_dvmd_lnx]: Call raise instead
3062         of making syscalls.
3063         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define.  Set r7 also.
3064
3065 2005-11-15  Jan Hubicka  <jh@suse.cz>
3066
3067         * invoke.texi (large-unit-insns): Document.
3068         * ipa-inline.c (cgraph_decide_inlining): Use large-unit-insns param.
3069         * params.def (large-unit-insns): New param.
3070
3071 2005-11-15  Hans-Peter Nilsson  <hp@axis.com>
3072
3073         PR target/24869
3074         * config/cris/cris.md ("*mov_sidesisf_mem"): Do not match
3075         special register for operand 3.  Reindent constraints to align
3076         them vertically.
3077
3078 2005-11-14  David Edelsohn  <edelsohn@gnu.org>
3079
3080         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mmfcrf,
3081         -mpopcntb, -mfprnd. Add -mcpu=power5+.
3082         * configure.ac: Add test for FP rounding instructions.
3083         * configure: Regenerate.
3084         * config.in: Regenerate.
3085         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
3086         _ARCH_PPCSQ, _ARCH_PPCGR, _ARCH_PWR4, _ARCH_PWR5, _ARCH_PWR5X if
3087         features enabled.
3088         * config/rs6000/rs6000.opt (mfprnd): New.
3089         * config/rs6000/rs6000.c (processor_target_table): Add power5+.
3090         (POWERPC_MASKS): Add MASK_POPCNTB and MASK_FPRND.
3091         * config/rs6000/aix52.h (ASM_CPU_SPEC): Add -mpower5+.
3092         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mpower5+.
3093         (TARGET_FPRND): New.
3094         * config/rs6000/rs6000.md (UNSPEC_FRIM, UNSPEC_FRIN, UNSPEC_FRIP,
3095         UNSPEC_FRIZ): New.
3096         (btrunc<mode>2): New.
3097         (ceil<mode>2): New.
3098         (floor<mode>2): New.
3099         (round<mode>2): New.
3100
3101 2005-11-14  Geoffrey Keating  <geoffk@apple.com>
3102
3103         * gcc.c (version_compare_spec_function): Use fatal() rather than
3104         abort().
3105
3106         * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): New.
3107         (SUBTARGET_EXTRA_SPECS): Define %(darwin_crt2).
3108         * config/i386/darwin.h (SUBTARGET_EXTRA_SPECS): Define %(darwin_crt2)
3109         as empty.
3110         * config/darwin.h (STARTFILE_SPEC): Use %(darwin_crt2) to possibly
3111         link in crt2.o.
3112
3113         * config/darwin.h (REAL_LIBGCC_SPEC): Link in shared libgcc depending
3114         on -mmacosx-version-min setting.
3115
3116 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
3117
3118         PR 24840
3119         * tree-vrp.c (infer_value_range): Return false if STMT is a
3120         block terminator and its basic block has no successors.
3121
3122 2005-11-14  Mike Stump  <mrs@apple.com>
3123
3124         * config/i386/i386.c (override_options): -masm=intel isn't
3125         supported on darwin.
3126         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
3127
3128 2005-11-15  Joseph S. Myers  <joseph@codesourcery.com>
3129
3130         * crtstuff.c: Undefine gid_t, pid_t, rlim_t, ssize_t, uid_t and
3131         vfork after including auto-host.h.
3132
3133 2005-11-15  Alan Modra  <amodra@bigpond.net.au>
3134
3135         PR rtl-optimization/22002
3136         * combine.c (distribute_notes): Detect cases where a reg dies
3137         two or more times in a bb, including on the insn we are combining,
3138         and place the death note on the correct range.
3139
3140 2005-11-14  Dale Johannesen  <dalej@apple.com>
3141
3142         * expmed.c (store_bit_field):  Add offset unconditionally for
3143         memory targets.
3144         (extract_bit_field):  Don't force extzv or extv operand into
3145         a register if field is too big.
3146
3147 2005-11-14  Daniel Jacobowitz  <dan@codesourcery.com>
3148
3149         * config/arm/arm.c (pic_labelno): New.
3150         (arm_load_pic_register): Use an UNSPEC_PIC_LABEL instead of a
3151         LABEL_REF.  Pass only the labelno to PIC insns.
3152         (arm_call_tls_get_addr, legitimize_tls_address): Likewise.
3153         (arm_output_addr_const_extra): Handle UNSPEC_PIC_LABEL.
3154         * arm.md (UNSPEC_PIC_LABEL): New constant.
3155         (pic_add_dot_plus_four, pic_add_dot_plus_eight)
3156         (tls_load_dot_plus_eight): Expect a labelno instead of a LABEL_REF.
3157         Use the correct label prefix.
3158
3159 2005-11-14  Daniel Jacobowitz  <dan@codesourcery.com>
3160
3161         * config/arm/arm.c (legitimize_tls_address): Use correct rtx for
3162         REQ_EQUIV note.
3163
3164 2005-11-14  Richard Earnshaw  <richard.earnshaw@arm.com>
3165
3166         * loop-invariant.c: Include tm_p.h.
3167         * Makefile.in: Updated.
3168
3169 2005-11-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3170
3171         * pa.c (store_reg): Revise generation of frame notes in large frames.
3172         (set_reg_plus_d): Likewise.
3173
3174 2005-11-13  Andrew MacLeod  <amacleod@redhat.com>
3175
3176         PR tree-optimization/24709
3177         * tree-ssa-operands.c (verify_imm_links): Increase limit for infinite
3178         loop check.
3179
3180 2005-11-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
3181
3182         * gthr-posix95.h: Remove declaration of pthread_mutexattr_settype
3183         and duplicate declaration of pthread_self.
3184
3185 2005-11-13  Eric Botcazou  <ebotcazou@adacore.com>
3186             Ian Lance Taylor  <ian@airs.com>
3187
3188         PR middle-end/24003
3189         * calls.c (expand_call): If TARGET is a MEM and some part of the
3190         argument area has been saved, force TARGET to a register.
3191
3192 2005-11-13  Razya Ladelsky <razya@il.ibm.com>
3193
3194         * ipa-prop.c (ipa_callsite_compute_param ): Removed obsolete type
3195         checking.
3196
3197 2005-11-13  Jason Merrill  <jason@redhat.com>
3198
3199         PR c++/22489
3200         * dwarf2out.c (gen_subprogram_die): Force a declaration die for
3201         lazily declared methods.
3202         (force_decl_die): Stop if forcing out the context already make a
3203         DIE for the decl.
3204         (force_type_die): Likewise.
3205
3206 2005-11-13  Andrew Pinski  <pinskia@physics.uc.edu>
3207
3208         PR middle-end/24820
3209         * builtins.c (integer_valued_real_p): Add break in
3210         REAL_CST having TREE_OVERFLOW set.
3211
3212 2005-11-13  Zdenek Dvorak  <dvorakz@suse.cz>
3213
3214         * tree-ssa-loop-ivopts.c (get_address_cost): Prevent splitting
3215         addressing modes during calculation of costs.
3216
3217 2005-11-12  Eric Botcazou  <ebotcazou@adacore.com>
3218
3219         * function.c (assign_stack_local_1): Restrict sanity check
3220         on frame size overflow to 32-bit and above platforms.
3221
3222 2005-11-12  Hans-Peter Nilsson  <hp@axis.com>
3223
3224         * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Define.
3225         * config/cris/cris.c: Include reload.h.
3226         (cris_initial_elimination_offset): New function.
3227         * config/cris/cris-protos.h: (cris_initial_elimination_offset):
3228         Prototype.
3229
3230 2005-11-12  Richard Guenther  <rguenther@suse.de>
3231
3232         * gcse.c (find_rtx_in_ldst): Handle NULL pre_ldst_table.
3233
3234 2005-11-12  Jan Hubicka  <jh@suse.cz>
3235
3236         * expr.c (expand_expr_real_1): <MAX_EXPR, MIN_EXPR>: Canonicalize
3237         to compare against 0 when possible.
3238
3239 2005-11-12  Jie Zhang  <jie.zhang@analog.com>
3240
3241         * config/bfin/bfin.h (REGISTER_NAMES, SHORT_REGISTER_NAMES,
3242         HIGH_REGISTER_NAMES, FIXED_REGISTERS, CALL_USED_REGISTERS,
3243         REG_ALLOC_ORDER, enum reg_class): Rearrange I/B/L registers.
3244         * config/bfin/bfin.md: Redefine REG_ constants for I/B/L registers
3245         in the new order.
3246
3247 2005-11-12  Hans-Peter Nilsson  <hp@axis.com>
3248
3249         * recog.c (constrain_operands) <case 'g'>: For a match, require
3250         that a non-register matches general_operand when strict >= 0.
3251
3252 2005-11-11  Steven Bosscher  <stevenb@suse.de>
3253
3254         * loop-invariant.c (move_loop_invariants): Fix a thinko in the
3255         previous checkin.
3256
3257 2005-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
3258
3259         * tree-ssa-dse.c (struct address_walk_data, memory_ssa_name_same)
3260         (memory_address_same): New.
3261         (dse_optimize_stmt): Call memory_address_same.
3262
3263 2005-11-12  Hans-Peter Nilsson  <hp@axis.com>
3264
3265         PR middle-end/24750
3266         * reload.c (find_reloads_address_1) <case TRUNCATE, SIGN_EXTEND,
3267         ZERO_EXTEND>: New cases.
3268
3269 2005-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
3270
3271         * longlong.h (__clz_tab): Always provide.
3272
3273 2005-11-11  Steven Bosscher  <stevenb@suse.de>
3274
3275         PR 24265
3276         * loop-invariant.c (may_assign_reg_p): Make sure a hard register
3277         can be assigned to.
3278         (find_invariant_insn): Do the cheapest check, may_assign_reg_p,
3279         before check_maybe_invariant.
3280         (move_invariant_reg): Use gen_move_insn instead of replacing
3281         SET_DEST with the temporary for the invariant.
3282         (move_loop_invariants): If checking is enabled, do internal
3283         consistency checks after completing the pass.
3284
3285 2005-11-11  David Edelsohn  <edelsohn@gnu.org>
3286
3287         PR 24644
3288         * common.opt (Wvolatile-register-var): New.
3289         * varasm.c (make_decl_rtl): Only emit warning when option
3290         specified.  Clarify warning message.
3291         * doc/invoke.texi (Wvolatile-register-var): Document new option.
3292
3293         * doc/md.texi (copysign): Document standard named pattern.
3294
3295 2005-11-11  Jie Zhang  <jie.zhang@analog.com>
3296
3297         * config/bfin/bfin.c (bfin_expand_strmov): Correctly move the trailing
3298         bytes when align is 2.
3299         * config/bfin/bfin.md (rep_movsi, rep_movhi): Make LSETUP be followed
3300         by the first instruction of the loop.
3301
3302 2005-11-11  Jason Merrill  <jason@redhat.com>
3303
3304         PR c++/24686
3305         * gimplify.c (gimplify_cleanup_point_expr): Also save and restore
3306         the cleanup list.
3307
3308 2005-11-11  Zdenek Dvorak  <dvorakz@suse.cz>
3309
3310         PR rtl-optimization/22509
3311         * local-alloc.c (memref_used_between_p): Check whether a function call
3312         could not reference the memref.
3313
3314 2005-11-11  Ulrich Weigand  <uweigand@de.ibm.com>
3315
3316         * postreload.c (reload_cse_simplify_operands): Fix bug in sorting
3317         algorithm so as to choose the best, not the worst, alternative.
3318         Reset accumulated register class before processing next alternative.
3319
3320 2005-11-11  Kaz Kojima  <kkojima@gcc.gnu.org>
3321
3322         PR target/24445
3323         * calls.c (expand_call): Copy a return value to a plain register
3324         if needed.
3325
3326 2005-11-10  Alexandre Oliva  <aoliva@redhat.com>
3327
3328         PR target/24778
3329         * varasm.c (assemble_name): Recompute name only for transparent
3330         aliases.
3331
3332 2005-11-10  Hans-Peter Nilsson  <hp@axis.com>
3333
3334         * tree-ssa-structalias.c (heapvar_lookup): Fix typo: stmt to from.
3335
3336 2005-11-04  Jeff Law  <law@redhat.com>
3337
3338         PR middle-end/23181
3339         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Do not
3340         perform reassociation if the parent statement will not die as
3341         a result of the optimization.
3342
3343 2005-11-10  Daniel Berlin  <dberlin@dberlin.org>
3344
3345         * tree-ssa-alias.c (compute_may_aliases): Remove call to
3346         delete_old_heap_vars.
3347         * tree-dfa.c (referenced_var_remove): Remove function.
3348         * tree-ssa.c (init_tree_ssa): Call init_alias_heapvars.
3349         (delete_tree_ssa): Remove call to delete_old_heapvars.
3350         Add call to delete_alias_heapvars.
3351         * tree-flow.h (referenced_var_remove): Remove prototype
3352         (init_alias_heapvars): New prototype.
3353         (delete_alias_heapvars): Ditto.
3354         * Makefile.in (tree-ssa-structalias.o): Add
3355         gt-tree-ssa-structalias.o
3356         (GTFILES): Add tree-ssa-structalias.h and
3357         tree-ssa-structalias.c.
3358         (s-gtype): Add gt-tree-ssa-structalias.h.
3359         * tree-ssa-structalias.c (heapvars): Remove.
3360         (oldheapvars): Remove.
3361         (heapvar_for_stmt): New variable.
3362         (heapvar_lookup): New function.
3363         (heapvar_insert): Ditto.
3364         (get_constraint_for): See if we have an old heapvar
3365         to reuse.
3366         (init_alias_heapvars): New function.
3367         (delete_alias_heapvars): Ditto.
3368         Add include of gt-tree-ssa-structalias.h.
3369
3370 2005-11-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
3371
3372         PR middle-end/22127
3373         * calls.c (special_function_p): Set ECF_RETURNS_TWICE for getcontext.
3374
3375 2005-11-10  Eric Botcazou  <ebotcazou@adacore.com>
3376
3377         * tree.c (int_fits_type_p): Only look at the base type
3378         if it has the same precision as the original type.
3379
3380 2005-11-10  Jakub Jelinek  <jakub@redhat.com>
3381
3382         PR other/4372
3383         * varasm.c (assemble_alias): Use %q+D in the error
3384         message instead of %J and %qD.
3385
3386 2005-11-10  Richard Guenther  <rguenther@suse.de>
3387
3388         * gcse.c (free_ldst_entry): Only free hashtable if
3389         it exists.
3390
3391 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
3392
3393         * function.c (assign_stack_local_1): Issue an error message if
3394         the frame size overflows in the signed target arithmetics.
3395
3396 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
3397
3398         * tree.c (build_qualified_type): Chain the new type to the original
3399         type's TYPE_NEXT_PTR_TO or TYPE_NEXT_REF_TO linked lists if it is
3400         a POINTER_TYPE or a REFERENCE_TYPE respectively.
3401         (build_pointer_type_for_mode): Only return unqualified types.
3402         (build_reference_type_for_mode): Likewise.
3403
3404 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
3405
3406         * Makefile.in (gnucompare): Do comparison of all files using one of
3407         the chosen methods and only afterwards decide if just warning should
3408         be issued or comparison failure raised.
3409
3410 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
3411
3412         * ifcvt.c (noce_get_alt_condition): Use prev_nonnote_insn.
3413         (noce_try_abs): Negate if the comparison is reversed.
3414         Look only one instruction backwards for a REG_EQUAL note.
3415
3416 2005-11-09  Alexandre Oliva  <aoliva@redhat.com>
3417
3418         PR other/4372
3419         * gthr-dce.h, gthr-posix.h, gthr-posix95.h, gthr-solaris.h,
3420         gthr-tpf.h: Define __gthrw.  For all identifiers that might
3421         be weak, introduce weakrefs or non-weak aliases with __gthrw,
3422         and prefix all uses with __ghtrw.
3423
3424 2005-11-09  Alexandre Oliva  <aoliva@redhat.com>
3425
3426         PR other/4372
3427         * tree.h (IDENTIFIER_TRANSPARENT_ALIAS): New.
3428         (TREE_DEPRECATED): Adjust comment.  Check for a DECL.
3429         * c-common.c (handle_weakref_attribute): New.
3430         (c_common_attribute_table): Add weakref.
3431         * configure.ac (HAVE_GAS_WEAKREF): Check for weakref support
3432         in the assembler.
3433         * configure, config.in: Rebuilt.
3434         * defaults.h (ASM_OUTPUT_WEAKREF): Define if HAVE_GAS_WEAKREF.
3435         * doc/extend.texi: Document weakref attribute.
3436         * varasm.c (ultimate_transparent_alias_target): New
3437         (assemble_name): Use it.
3438         (weak_finish_1): Split out of...
3439         (weak_finish): ... and deal with weakrefs in...
3440         (weakref_targets): ... new list.
3441         (globalize_decl): Clean up weakref_targets.
3442         (do_assemble_alias): Handle weakrefs.
3443         (finish_aliases_1): Do not reject weakrefs to external symbols.
3444         (assemble_alias): Handle weakrefs.
3445
3446 2005-11-09  Richard Guenther  <rguenther@suse.de>
3447
3448         PR tree-optimization/24716
3449         * tree-scalar-evolution.c (analyze_evolution_in_loop): Use
3450         t_bool to track results from follow_ssa_edge.
3451
3452 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
3453
3454         * final.c (force_source_line): New global variable.
3455         (final_scan_insn): Set it to true instead of clearing last_filename.
3456         (notice_source_line): Return true if force_source_line is true,
3457         unless source info is absent.
3458
3459 2005-11-09  Andrew Pinski  <pinskia@physics.uc.edu>
3460
3461         PR c/24644
3462         * dwarf2-out.c (add_name_and_src_coords_attributes): Don't add
3463         a linkage name for a variable if it a register variable.
3464         * c-decl.c (grokdeclarator): Global register variables
3465         should be set as PUBLIC.
3466
3467 2005-11-09  Andreas Krebbel  <krebbel1@de.ibm.com>
3468
3469         PR 24624
3470         * config/s390/s390.c (struct s390_frame_layout): New fields
3471         first_save_gpr_slot and last_save_gpr_slot.
3472         (cfun_grps_save_area_size, s390_frame_info, s390_emit_prologue,
3473         s390_emit_epilogue, s390_initial_elimination_offset): Replaced
3474         first_save_gpr and last_save_gpr with the _slot variants.
3475         (s390_register_info): Calculate first_save_gpr_slot and
3476         last_save_gpr_slot using regs_ever_live.
3477
3478 2005-11-09  Andreas Krebbel  <krebbel1@de.ibm.com>
3479
3480         PR 24623
3481         * config/s390/s390.c (s390_regs_ever_clobbered): Only save live eh regs
3482         for a function containing a landing pad.
3483
3484 2005-11-09  Andreas Krebbel  <krebbel1@de.ibm.com>
3485
3486         PR 24034
3487         * flow.c (mark_set_1): Handle CLOBBERs like SETs if the register
3488         is live afterwards.
3489
3490 2005-11-08  Bernd Schmidt  <bernd.schmidt@analog.com>
3491
3492         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DEFAULTS,
3493         MULTILIB_DIRNAMES, MULTILIB_EXCEPTIONS): New.
3494
3495 2005-11-09  Nathan Sidwell  <nathan@codesourcery.com>
3496
3497         Add ms2 support
3498         * config/ms1/ms1.md (UNSPEC_BLOCKAGE, UNSPEC_EI, UNSPEC_DI): New
3499         constants.
3500         (call,load,store): New insn types.
3501         (mem_access, branch_access): Adjust reservation conditions.
3502         (define_delay): Adjust condition.
3503         (decrement_and_branch_until_zero): Allow for ms2.  Set branch
3504         type.
3505         (*decrement_and_rbanch_until_zero_no_clobber): Allow for ms2.
3506         (*movqi_internal,*movsi_internal,*movsf_internal): Use load,store
3507         insn type.
3508         (call_internal, call_value_internal, return_internal,
3509         return_interrupt_internal, eh_return_internal, indirect_jump,
3510         tablejump): Set call insn type.
3511         (blockage, ei, di): Use appropriate unspec const.
3512         * config/ms1/ms1.c (ms1_flag_delayed_branch): New.
3513         (ms1_get_attr_type): Adjust to give load & store types.
3514         (ms1_final_prescan_insn): Adjust for new insn types.  Don't look
3515         backwards past a barrier.
3516         (ms1_override_options): Accept ms2 arch.  Copy and reset delayed
3517         branch scheduling.
3518         (struct branch_info, struct label_info): New.
3519         (ms1_labels): New.
3520         (ms1_add_branches, ms1_check_delay_slot, ms1_reorg_hazard): New.
3521         (ms1_machine_reorg): New.
3522         (TARGET_MACHINE_DEPENDENT_REORG): Override.
3523         * config/ms1/crtn.asm: Add nop for ms2 JAL hazard.
3524         * config/ms1/ms1.h (processor_type): Add PROCESSOR_MS2.
3525         (ASM_SPEC, LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Add ms2.
3526         (TARGET_MS2): New.
3527
3528 2005-11-09  Per Bothner  <per@bothner.com>
3529             Uros Bizjak  <uros@kss-loka.si>
3530
3531         PR c/24101
3532         * toplev.c (process_options): Initialize debug_hooks early
3533         in case lang_hooks.post_options ends up calling a debug_hook.
3534
3535 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
3536
3537         * dwarf2out.c (multiple_reg_loc_descriptor): Don't assume
3538         DBX_REGISTER_NUMBER being contiguous.
3539
3540 2005-11-08  James A. Morrison  <phython@gcc.gnu.org>
3541             Diego Novillo  <dnovillo@redhat.com>
3542
3543         PR 23046
3544         * tree-vrp.c (register_edge_assert_for): Do not register
3545         always-false predicates.
3546
3547 2005-11-08  Devang Patel <dpatel@apple.com>
3548
3549         PR tree-optimization/23115
3550         * tree-if-conv.c (find_phi_replacement_condition): Check domninated_by
3551         relation.
3552
3553 2005-11-08  Joseph S. Myers  <joseph@codesourcery.com>
3554
3555         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include
3556         -mcpu=440.
3557
3558 2005-11-08  Daniel Berlin  <dberlin@dberlin.org>
3559
3560         Fix PR tree-optimization/23382
3561
3562         * tree-ssa-alias.c (compute_may_aliases): Call
3563         delete_old_heap_vars.
3564         * tree-dfa.c (referenced_var_remove): New function.
3565         * tree-ssa.c (delete_tree_ssa): Call delete_old_heap_vars.
3566         * tree-flow.h (referenced_var_remove): Add prototype.
3567         (delete_old_heap_vars): Ditto.
3568         * tree-ssa-structalias.c (heapvars): New variable.
3569         (oldheapvars): Ditto.
3570         (get_constraint_for): Put heap vars on heapvars list.
3571         (delete_old_heap_vars): New function.
3572
3573 2005-11-08  Jason Merrill  <jason@redhat.com>
3574
3575         * tree.h (CALL_FROM_THUNK_P): Add CALL_EXPR_CHECK.
3576
3577 2005-11-08  Uros Bizjak  <uros@kss-loka.si>
3578
3579         PR target/19340
3580         * reg-stack.c (reg_to_stack): Update register liveness also
3581         for flag_sched2_use_traces.
3582
3583 2005-11-08  Alan Modra  <amodra@bigpond.net.au>
3584
3585         PR target/23704
3586         * config/rs6000/rs6000.c (rs6000_handle_option <OPT_m64>): Don't
3587         override prior explicit -mno-powerpc-gfxopt.
3588
3589 2005-11-07  Eric Botcazou  <ebotcazou@adacore.com>
3590
3591         * expmed.c (extract_bit_field): Do not use insv/extv/extzv patterns
3592         if the bitsize is zero.
3593         * doc/md.texi (Standard Pattern Names): Document it.
3594
3595         * config/ia64/ia64.c (ia64_pass_by_reference): Delete.
3596         (TARGET_PASS_BY_REFERENCE): Likewise.
3597
3598 2005-11-07  Ian Lance Taylor  <ian@airs.com>
3599
3600         PR rtl-optimization/24683
3601         * config/i386/i386.c (legitimize_pic_address): If constant operand
3602         to PLUS is too large, put it in a register.
3603
3604 2005-11-07  Jie Zhang  <jie.zhang@analog.com>
3605
3606         * configure.ac: Enable checking assembler dwarf2 support for bfin
3607         target.
3608         * configure: Regenerate.
3609
3610 2005-11-07  Paolo Bonzini  <bonzini@gnu.org>
3611
3612         PR target/24230
3613
3614         * config/rs6000/rs6000.c (easy_vector_splat_const, easy_vector_same,
3615         gen_easy_vector_constant_add_self): Delete.
3616         (vspltis_constant, easy_altivec_constant, gen_easy_altivec_constant):
3617         New.
3618         (output_vec_const_move): Use gen_easy_altivec_constant.
3619         (rs6000_expand_vector_init): Do not emit a set of a VEC_DUPLICATE.
3620         * config/rs6000/predicates.md (easy_vector_constant): Reorganize tests.
3621         (easy_vector_constant_add_self): Rewritten.
3622         * config/rs6000/rs6000-protos.h (easy_vector_splat_const,
3623         easy_vector_same, gen_easy_vector_constant_add_self): Remove prototype.
3624         (easy_altivec_constant, gen_easy_altivec_constant): Add prototype.
3625         * config/rs6000/altivec.md (easy_vector_constant_add_self splitters):
3626         Macroize and adjust for the other changes.
3627
3628 2005-11-07  Paolo Bonzini  <bonzini@gnu.org>
3629
3630         PR c/24599
3631
3632         * c-typeck.c (build_c_cast): Try using a shared constant, and see
3633         if TREE_OVERFLOW or TREE_CONSTANT_OVERFLOW really changed.
3634
3635 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
3636
3637         PR rtl-optimization/23567
3638         * ifcvt.c (noce_mem_write_may_trap_or_fault_p): New function.
3639         (noce_process_if_block): Don't do any optimizations except
3640         if (cond) x = x; if !set_b and write into orig_x may trap
3641         or fault.  Remove the MEM_READONLY_P check.
3642
3643 2005-11-06  Diego Novillo  <dnovillo@redhat.com>
3644
3645         PR 24670
3646         * tree-vrp.c (fix_equivalence_set): New.
3647         (extract_range_from_assert): Call it.
3648
3649 2005-11-05  Ian Lance Taylor  <ian@airs.com>
3650
3651         PR target/22432
3652         * combine.c (apply_distributive_law): Don't distribute across a
3653         vector mode subreg.
3654
3655 2005-11-05  Kazu Hirata  <kazu@codesourcery.com>
3656
3657         * c-typeck.c, config/i386/netware.h, config/m32c/cond.md,
3658         config/ms1/ms1.h, config/rs6000/predicates.md,
3659         config/s390/s390.c, params.def, postreload-gcse.c,
3660         tree-flow-inline.h, tree-ssa-operands.c, tree-vectorizer.c,
3661         tree-vrp.c, tree.c: Fix comment typos.
3662         * doc/invoke.texi: Fix typos.
3663
3664 2005-11-05  Sebastian Pop  <pop@cri.ensmp.fr>
3665
3666         * lambda-code.c (lambda_transform_legal_p): Use DDR_NUM_DIST_VECTS
3667         for testing whether the data_dependence_relation contains distance
3668         vectors.  Iterate over all distance vectors of the ddr.
3669         * lambda.h: Define a vec of lambda_vector pointers.
3670         * tree-data-ref.c (dump_data_dependence_relation,
3671         dump_data_dependence_direction): Iterate over all distance and
3672         direction vectors of the ddr.
3673         (initialize_data_dependence_relation): Initialize DDR_DIR_VECTS and
3674         DDR_DIST_VECTS.
3675         (build_classic_dist_vector, build_classic_dir_vector): Push a set
3676         of distance/direction vectors instead of a single one.
3677         * tree-data-ref.h (dir_vects, dist_vects): Replace dir/dist
3678         lambda_vectors with a vec of lambda_vectors.
3679         (DDR_DIR_VECT, DDR_DIST_VECT): Redefined as operations on vec.
3680         (DDR_DIR_VECTS, DDR_DIST_VECTS, DDR_NUM_DIR_VECTS,
3681         DDR_NUM_DIST_VECTS): New.
3682         * tree-loop-linear.c (gather_interchange_stats): Test for the
3683         existence of distance vectors only after having checked that there
3684         is a dependence.  Iterate over all distance vectors of the ddr.
3685         (linear_transform_loops): Use dump_data_dependence_relation.
3686         * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Test for
3687         distance vectors using DDR_NUM_DIST_VECTS.  Iterate over all the
3688         distance vectors of the ddr.
3689
3690 2005-11-05  Bernd Schmidt  <bernd.schmidt@analog.com>
3691
3692         * config/bfin/bfin.c (n_dregs_to_save, n_pregs_to_save,
3693         expand_prologue_reg_save, expand_epilogue_reg_restore): New argument
3694         IS_INTHANDLER; all callers changed.
3695         (n_regs_saved_by_prologue): Take interrupt handler attributes into
3696         account.
3697         (do_link, do_unlink): New argument ALL; all callers changed.
3698         (expand_interrupt_handler_prologue, expand_interrupt_handler_epilogue):
3699         If function isn't leaf, save and restore all registers.
3700         (bfin_function_ok_for_sibcall): Only true if not an interrupt or
3701         exception handler.
3702
3703 2005-11-05  Jan Hubicka  <jh@suse.cz>
3704
3705         PR rtl-optimization/23490
3706         * doc/invoke.texi (max-predicted-iterations, max-cse-insns,
3707         max-flow-memory-location): Document.
3708         * flow.c: Include params.h
3709         (MAX_MEM_SET_LIST_LEN): Kill.
3710         (add_to_mem_set_list): Use new param.
3711         * cse.c (cse_basic_block): Replace 1000 by new param.
3712         * params.def (PARAM_MAX_PREDICTED_ITERATIONS, PARAM_MAX_CSE_INSNS,
3713         PARAM_MAX_FLOW_MEMORY_LOCATIONS): New.
3714         * predict.c (predict_loops): Use new param.
3715         * predict.def (MAX_PRED_LOOP_ITERATIONS): Remove.
3716
3717         * ipa-inline.c (cgraph_decide_inlining_of_small_function,
3718         cgraph_decide_inlining, cgraph_decide_inlining_incrementally):
3719         Do not hold memory returned by cgraph_node_name across other call.
3720
3721 2005-11-04  Hans-Peter Nilsson  <hp@axis.com>
3722
3723         PR target/23424
3724         * config/cris/predicates.md ("cris_bdap_sign_extend_operand"):
3725         Disable.
3726
3727 2005-11-04  Jeff Law  <law@redhat.com>
3728
3729         PR/21883
3730         * doc/invoke.texi: Document max-jump-thread-duplication-stmts PARAM.
3731         * tree-ssa-dom.c: Include params.h.
3732         (thread_across_edge): If there are too many statements in the
3733         target block, then do not thread through it.
3734         * Makefile.in (tree-ssa-dom.o): Depend on $(PARAMS_H).
3735         * params.def (PARAM_MAX_JUMP_THREAD_DUPLICATION_STMTS): New PARAM.
3736
3737 2005-11-03  Diego Novillo  <dnovillo@redhat.com>
3738
3739         PR 24627
3740         * tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Use
3741         TODO_update_ssa instead of TODO_update_ssa_no_phi.
3742
3743 2005-11-04  Sebastian Pop  <pop@cri.ensmp.fr>
3744
3745         PR/18595
3746         * tree-scalar-evolution.c (instantiate_parameters_1,
3747         instantiate_parameters, resolve_mixers): Compute the size of an
3748         expression to be instantiated and give up the instantiation if the
3749         size exceeds PARAM_SCEV_MAX_EXPR_SIZE.
3750
3751 2005-11-04  Richard Guenther  <rguenther@suse.de>
3752
3753         * tree-flow.h (ref_contains_indirect_ref): Rename to
3754         array_ref_contains_indirect_ref.
3755         * tree-flow-inline.h (ref_contains_indirect_ref): Likewise.
3756         (array_ref_contains_indirect_ref): Make comment match the code
3757         and vice-versa.
3758         (ref_contains_array_ref): Likewise.
3759         * tree-ssa-structalias.c (find_func_aliases): Remove call to
3760         ref_contains_indirect_ref.
3761         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
3762         Rename calls to ref_contains_indirect_ref.
3763
3764 2005-11-04 Paul Brook  <paul@codesourcery.com>
3765
3766         * config/arm/arm.c (arm_load_pic_register): Pass extra reg to
3767         gen_pic_add_dot_plus_four and gen_pic_add_dot_plus_eight.
3768         (arm_call_tls_get_addr, legitimize_tls_address): Likewise.
3769         * config/arm/arm.md: Use match_operand in peephole input templates
3770         and match_dup in peephole output templates.
3771
3772 2005-11-04  Daniel Jacobowitz  <dan@codesourcery.com>
3773
3774         * config/arm/arm.c (arm_init_libfuncs): Use __aeabi_idiv and
3775         __aeabi_uidiv.
3776
3777 2005-11-04  Mark Mitchell  <mark@codesourcery.com>
3778             Daniel Jacobowitz  <dan@codesourcery.com>
3779
3780         * longlong.h (add_ssaaaa): Clobber condition code register
3781         in ARM version.
3782         (sub_ddmmss): Likewise.
3783         (umul_ppmm): Likewise.
3784
3785 2005-11-04  Daniel Jacobowitz  <dan@codesourcery.com>
3786             Paul Brook  <paul@codesourcery.com>
3787             Phil Blundell  <pb@reciva.com>
3788
3789         * configure.ac: Add test for ARM TLS support.
3790         * configure: Regenerated.
3791         * config/arm/arm-protos.h (legitimize_tls_address)
3792         (arm_tls_referenced_p, tls_mentioned_p)
3793         (arm_output_addr_const_extra): New prototypes.
3794         (thumb_legitimize_pic_address): Delete.
3795         * config/arm/arm.c: Include "gt-arm.h".
3796         (enum tls_reloc): New.
3797         (arm_cannot_copy_insn_p, arm_tls_symbol_p, load_tls_operand)
3798         (pcrel_constant_p, get_tls_get_addr, arm_load_tp)
3799         (arm_call_tls_get_addr, legitimize_tls_address)
3800         (arm_tls_referenced_p, arm_tls_operand_p_1, tls_mentioned_p)
3801         (arm_init_tls_builtins, arm_emit_tls_decoration)
3802         (arm_output_addr_const_extra): New functions.
3803         (TARGET_CANNOT_COPY_INSN_P, TARGET_CANNOT_FORCE_CONST_MEM)
3804         (TARGET_HAVE_TLS): Define.
3805         (target_thread_pointer): New.
3806         (arm_override_options): Handle -mtp=.
3807         (legitimize_pic_address): Ignore UNSPECs.
3808         (arm_legitimate_address_p, thumb_legitimate_address_p): Handle PC
3809         relative symbols.
3810         (arm_legitimize_address, thumb_legitimize_address): Handle TLS.
3811         (tls_get_addr_libfunc): New variable.
3812         (symbol_mentioned_p, label_mentioned_p): Ignore UNSPEC_TLS.
3813         (arm_init_builtins): Call arm_init_tls_builtins.
3814         (arm_expand_builtin): Handle ARM_BUILTIN_THREAD_POINTER.
3815         (arm_encode_section_info): Call default_encode_section_info.
3816         * config/arm/arm.h (TARGET_HARD_TP, TARGET_SOFT_TP): Define.
3817         (enum arm_tp_type): New.
3818         (target_thread_pointer): Add declaration.
3819         (LEGITIMATE_CONSTANT_P): Handle TLS.
3820         (LEGITIMATE_PIC_OPERAND_P): Handle TLS.
3821         (OUTPUT_ADDR_CONST_EXTRA): Call arm_output_addr_const_extra.
3822         (enum arm_builtins): Add ARM_BUILTIN_THREAD_POINTER.
3823         * config/arm/arm.md: Add UNSPEC_TLS.
3824         (movsi): Handle TLS.
3825         (pic_add_dot_plus_four, pic_add_dot_plus_eight): Allow for
3826         non-PIC.
3827         (tls_load_dot_plus_eight): New insn and a peephole to create it.
3828         (load_tp_hard, load_tp_soft): New insns.
3829         * arm.opt: Add -mtp=.
3830         * doc/invoke.texi (ARM Options): Document -mtp.
3831
3832 2005-11-04  Daniel Jacobowitz  <dan@codesourcery.com>
3833
3834         * config/arm/lib1funcs.asm: Don't include "libunwind.S".
3835         * config/arm/libunwind.S: Include "lib1funcs.asm".
3836         * config/arm/t-bpabi (LIB1ASMFUNCS): Remove _unwind.
3837         (LIB2ADDEH): Add libunwind.S.
3838         (LIB2ADDEHDEP): Add lib1funcs.asm.
3839         * mklibgcc.in: Handle asm files in libgcc_eh.a.
3840
3841 2005-11-04  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
3842
3843         PR fortran/18452
3844         * gcc/c.opt: Add a -lang-fortran option.
3845         * gcc/c-opts.c: Add a lang_fortran flag.
3846         (c_common_init_options): Handling the -lang-fortran option.
3847         (c_common_handle_option): Add a case for Fortran options in
3848         preprocessing. Remove cases for -ffixed-form and
3849         -ffixed-line-length. Add a case for -lang-fortran.
3850
3851 2005-11-03  David Edelsohn  <edelsohn@gnu.org>
3852
3853         * config/rs6000/rs6000.c: Include params.h
3854         (optimization_options): Set max-grow-copy-bb-insns default to 16.
3855         (bdesc_2arg): Delete vpkuhss and vpkuwss.
3856         * config/rs6000/altivec.md (UNSPEC_VPKUHSS): Delete.
3857         (UNSPEC_VPKUWSS): Delete.
3858         (altivec_vpkuhss): Delete.
3859         (altivec_vpkuwss): Delete.
3860         * config/rs6000/rs6000.md (plus_eqsi): Remove optimize_size from
3861         final condition.
3862         (neg_eq0<mode>): Remove final condition.
3863         (neg_eq<mode>): Remove condition and split-condition.
3864
3865 2005-11-04  Alan Modra  <amodra@bigpond.net.au>
3866
3867         * config/rs6000/rs6000.c (output_toc): Make "offset" HOST_WIDE_INT.
3868         Use associated print macros.
3869
3870 2005-11-03  Joseph S. Myers  <joseph@codesourcery.com>
3871
3872         PR c++/17964
3873         * diagnostic.c (diagnostic_set_info_translated): New function.
3874         (diagnostic_set_info): Use it.  Add comment.
3875         * diagnostic.h (diagnostic_set_info_translated): Declare.
3876
3877 2005-11-03  Eric Botcazou  <ebotcazou@adacore.com>
3878
3879         * dwarf2asm.c (dw2_force_const_mem): Add new parameter 'public'.
3880         On USE_LINKONCE_INDIRECT platforms, build a DECL_ONE_ONLY indirect
3881         reference only if 'public' is true.
3882         (dw2_output_indirect_constant_1): On USE_LINKONCE_INDIRECT platforms,
3883         emit the .hidden directive only if the indirect reference is public.
3884         (dw2_asm_output_encoded_addr_rtx): Add new parameter 'public'.
3885         Pass it to dw2_force_const_mem.
3886         * dwarf2asm.h (dw2_asm_output_encoded_addr_rtx): New param 'public'.
3887         * dwarf2out.c (output_cfi): Adjust calls to above function.
3888         (output_call_frame_info): Likewise.
3889         * except.c (output_ttype): Pass TREE_PUBLIC of the type_info object
3890         as 'public' argument to dw2_asm_output_encoded_addr_rtx.
3891
3892 2005-11-03  Zdenek Dvorak  <dvorakz@suse.cz>
3893
3894         PR tree-optimization/24483
3895         * tree-ssa-loop-ivopts.c (aff_combination_add_elt): Move rest
3896         field to elts if possible.
3897
3898 2005-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
3899
3900         PR middle-end/23155
3901         * gimplifier.c (gimplify_expr): Create a temporary for lvalue
3902         CONSTRUCTOR.
3903
3904 2005-11-03  Daniel Berlin  <dberlin@dberlin.org>
3905
3906         Fix PR tree-optimization/24351
3907
3908         * tree-ssa-structalias.c (struct variable_info): Add
3909         collapsed_into.
3910         (get_varinfo_fc): New function to follow collapsing.
3911         (new_var_info): Set collapsed_to to NULL.
3912         (dump_constraint): Follow collapsing.
3913         (build_constraint_graph): Handle collapsing.
3914         (do_simple_structure_copy): Return false if something bad
3915         happened.
3916         (collapse_rest_of_var): New function.
3917         (do_structure_copy): Collapse if do_simple_structure_copy returns
3918         false.
3919
3920 2005-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
3921
3922         PR middle-end/24589
3923         * gimplify.c (gimplify_expr) <case CONSTRUCTOR>: Add the
3924         expressions to a statement list instead of gimplifying them.
3925
3926 2005-11-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
3927
3928         PR rtl-optimization/23585
3929         * rtlanal.c (rtx_addr_can_trap_p_1) <PLUS>: Return 0 for an address
3930         that can't trap plus a constant integer, if the mode has zero size.
3931
3932 2005-11-03  Ulrich Weigand  <uweigand@de.ibm.com>
3933
3934         PR target/24620
3935         * config/s390/s390.md ("*insv<mode>_reg_imm"): Accept any CONST_INT
3936         as operand 2.
3937         ("*insv<mode>_reg_extimm"): Likewise.
3938
3939 2005-11-03  Joseph S. Myers  <joseph@codesourcery.com>
3940
3941         PR c/24329
3942         * c-pretty-print.c (pp_c_type_specifier): Do not recurse if
3943         c_common_type_for_mode returns an unnamed type.
3944
3945 2005-11-02  Richard Henderson  <rth@redhat.com>
3946
3947         PR target/9350
3948         PR target/24374
3949         * dwarf2out.c (dwarf2out_reg_save_reg): New.
3950         (dwarf2out_frame_debug_expr): Return after dwarf_handle_frame_unspec.
3951         * function.c (assign_parms): Use calls.internal_arg_pointer.
3952         (expand_main_function): Remove FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN
3953         code.
3954         * target-def.h (TARGET_INTERNAL_ARG_POINTER): New.
3955         (TARGET_CALLS): Add it.
3956         * target.h (struct gcc_target): Add calls.internal_arg_pointer.
3957         * targhooks.c (default_internal_arg_pointer): New.
3958         * targhooks.h (default_internal_arg_pointer): Declare.
3959         * tree.h (dwarf2out_reg_save_reg): Declare.
3960         * doc/tm.texi (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Remove.
3961         * config/i386/i386.c (dbx_register_map): Add return column.
3962         (dbx64_register_map, svr4_dbx_register_map): Likewise.
3963         (TARGET_INTERNAL_ARG_POINTER, ix86_internal_arg_pointer): New.
3964         (TARGET_DWARF_HANDLE_FRAME_UNSPEC, ix86_dwarf_handle_frame_unspec): New.
3965         (ix86_function_ok_for_sibcall): Disable if force_align_arg_pointer.
3966         (ix86_save_reg): Save force_align_arg_pointer.
3967         (ix86_emit_save_regs): Make regno unsigned.
3968         (ix86_emit_save_regs_using_mov): Likewise.
3969         (ix86_expand_prologue): Handle force_align_arg_pointer.
3970         (ix86_expand_epilogue): Likewise.
3971         * config/i386/i386.h: (dbx_register_map): Update.
3972         (dbx64_register_map, svr4_dbx_register_map): Update.
3973         (struct machine_function): Add force_align_arg_pointer.
3974         * config/i386/i386.md (UNSPEC_REG_SAVE, UNSPEC_DEF_CFA): New.
3975         (UNSPEC_TP, UNSPEC_TLS_GD, UNSPEC_TLS_LD_BASE): Renumber.
3976         (TARGET_PUSH_MEMORY peepholes): Disable if RTX_FRAME_RELATED_P.
3977
3978 2005-11-02  Jan Hubicka  <jh@suse.cz>
3979
3980         PR target/23303
3981         * i386.md: Add peep2 for simplyfing array accesses.
3982
3983 2005-11-02  Ulrich Weigand  <uweigand@de.ibm.com>
3984
3985         PR target/24615
3986         * config/s390/s390-protos.h (s390_decompose_shift_count): Declare.
3987         * config/s390/s390.c (s390_decompose_shift_count): New function.
3988         (s390_extra_constraint_str) ['Y']: Use s390_decompose_shift_count.
3989         (print_shift_count_operand): Use s390_decompose_shift_count.
3990         * config/s390/predicates.md ("setmem_operand", "shift_count_operand"):
3991         Use s390_decompose_shift_count.  Do not accept any non-base hard regs.
3992
3993 2005-11-02  Ulrich Weigand  <uweigand@de.ibm.com>
3994
3995         PR target/24600
3996         * loop.c (loop_givs_rescan): Use force_operand to expand
3997         complex GIVs.
3998
3999 2005-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
4000
4001         PR 22429
4002         * fold-const.c (build_range_check): Use unsigned when signed
4003         overflow is undefined also.  If etype is subtype, make sure that
4004         the subtraction is in the supertype.
4005
4006 2005-11-02  Richard Henderson  <rth@redhat.com>
4007
4008         PR target/24178
4009         * config/alpha/alpha.c (get_aligned_mem): Honor alignment given
4010         by MEM_ALIGN.
4011
4012 2005-11-01  Richard Henderson  <rth@redhat.com>
4013
4014         PR 21518
4015         * loop.c (scan_loop): Do not propagate computations to a hard
4016         register destination with SMALL_REGISTER_CLASSES.
4017
4018 2005-11-01  Joseph S. Myers  <joseph@codesourcery.com>
4019
4020         * config/rs6000/rs6000.c (rs6000_rtx_costs): Do not add extra
4021         costs for MULT inside PLUS or MINUS.
4022
4023 2005-11-01  Bob Wilson  <bob.wilson@acm.org>
4024
4025         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Add a byte of padding.
4026         (TRAMPOLINE_SIZE): Round up to 60.
4027         * config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Likewise.
4028
4029 2005-10-31  James E. Wilson  <wilson@specifix.com>
4030
4031         PR debug/24444
4032         * dwarf2out.c (convert_cfa_to_loc_list): Put inside DWARF2_UNWIND_INFO
4033         ifdef.  Put ifdefs around call in gen_subprogram_die.
4034         (compute_frame_pointer_to_cfa_displacement): Likewise.
4035         (gen_subprogram_die): Restore old code for when DWARF2_UNWIND_INFO is
4036         not defined.
4037
4038         PR rtl-optimization/17356
4039         *  cfgrtl.c (purge_dead_edges): Undo last change.  In EDGE_EH code,
4040         add check for CALL_INSN if EDGE_ABRNOMAL_CALL true.
4041
4042 2005-10-31  Jan Hubicka  <jh@suse.cz>
4043
4044         PR middle-end/24093
4045         * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Watch negative
4046
4047         PR target/20928
4048         * i386.c (legitimize_pic_address): Deal with large immediates.
4049
4050         PR profile/20815
4051         * coverage.c (coverage_checksum_string): Fix code to stip random seeds
4052         from symbol names while computing checkup.
4053
4054         PR profile/24487
4055         * predict.c (predict_loops): Do not estimate more than
4056         MAX_PRED_LOOP_ITERATIONS in PRED_LOOP_ITERATIONS heuristic.
4057         * predict.def (MAX_PRED_LOOP_ITERATIONS): Define.
4058
4059 2005-10-31  Andrew MacLeod  <amacleod@redhat.com>
4060
4061         PR tree-optimization/19097
4062         * tree-ssa-operands.c (correct_use_link): Don't look for modified stmts.
4063
4064 2005-10-31  J"orn Rennecke <joern.rennecke@st.com>
4065
4066         * optabs.c (expand_unop): Take TRULY_NOOP_TRUNCATION into account.
4067
4068 2005-10-31  Andrew Pinski  <pinskia@physics.uc.edu>
4069
4070         PR middle-end/23492
4071         * tree-inline.c (setup_one_parameter): If the init_stmt
4072         is NULL, don't insert the statement.
4073
4074 2005-10-30  Jan Hubicka  <jh@suse.cz>
4075
4076         PR tree-optimization/24172
4077         * tree-inline.c (copy_body_r): Unshare the substituted value first.
4078
4079 2005-10-30  Hans-Peter Nilsson  <hp@bitrange.com>
4080
4081         * config/mmix/mmix.c (mmix_intval): Correct handling of DFmode
4082         constants for hosts with long != 32 bits.
4083
4084 2005-10-28  Andreas Krebbel <krebbel1@de.ibm.com>
4085
4086         PR middle-end/24093
4087         * ipa-inline.c (craph_decide_recursive_inlining): Fix return value.
4088
4089 2005-10-28  Aldy Hernandez  <aldyh@redhat.com>
4090
4091         * config/ms1/ms1.h (TARGET_MS1_64_001): New.
4092         (TARGET_MS1_16_002): New.
4093         (TARGET_MS1_16_003): New.
4094
4095         * config/ms1/ms1.md ("decrement_and_branch_until_zero"): Rewrite.
4096         ("*decrement_and_branch_until_zero_no_clobber"): New.
4097         Add corresponding splitter for decrement_and_branch_until_zero
4098         instruction.
4099         Key all decrement_and_branch_until_zero patterns off of
4100         TARGET_MS1_16_003.
4101
4102 2005-10-28  Andrew Pinski  <pinskia@physics.uc.edu>
4103
4104         PR middle-end/24362
4105         * tree-complex.c (extract_component): Treat RESULT_DECL
4106         like the rest of the decls.
4107
4108 2005-10-25  Eric Botcazou  <ebotcazou@adacore.com>
4109
4110         * config/ia64/ia64.c (ia64_output_function_profiler): Emit an
4111         indirect call to _mcount if the function needs a static chain.
4112
4113 2005-10-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
4114             Caroline Tice  <ctice@apple.com>
4115
4116         PR rtl-optimization/24460
4117         * dwarf2out.c (have_switched_text_sections): New boolean variable.
4118         (dwarf2out_switch_text_section): Set it to true instead of
4119         incrementing separate_line_info_table_in_use.
4120         (output_loc_list): Additionally test have_switched_text_sections.
4121         (output_ranges): Likewise.
4122         (dwarf2out_finish): Likewise.
4123         * varasm.c (assemble_start_function): Do not call
4124         insert_section_boundary_note.
4125         (assemble_end_function): If flag_reorder_blocks_and_partition,
4126         switch to the function's section before emitting the .size directive.
4127         * bb-reorder.c (insert_section_boundary_note): Staticify.
4128         (rest_of_handle_reorder_blocks): Call insert_section_boundary_note.
4129         * output.h (insert_section_boundary_note): Delete.
4130
4131 2005-10-24  Andrew Pinski  <pinskia@physics.uc.edu>
4132
4133         PR c/23103
4134         * c-format.c (check_format_types): Use lang_hooks.types_compatible_p
4135         instead of pointer equality when comparing types.
4136
4137 2005-10-24  James E. Wilson  <wilson@specifix.com>
4138
4139         * sched-deps.c (flush_pending_lists): Pass 1 not 0 in first two
4140         add_dependence_list_and_free calls.
4141
4142 2005-10-24  Steven Bosscher  <stevenb@suse.de>
4143
4144         * contrib.texi: Add the names of the LLNL folks who donated
4145         Cray pointer support for gfortran.
4146
4147 2005-10-24  Steven Bosscher  <stevenb@suse.de>
4148
4149         PR tree-optimization/24225
4150         * profile.c (branch_prob): Look from end to start through a
4151         basic block when looking for a locus.
4152
4153 2005-10-24  Richard Henderson  <rth@redhat.com>
4154
4155         * pa.c (store_reg_modify): Set RTX_FRAME_RELATED_P on each set in
4156         parallel.
4157         (hppa_expand_prologue): Likewise.
4158
4159 2005-10-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4160
4161         * pa-linux.h (NO_PROFILE_COUNTERS): Delete define.
4162         (NO_DEFERRED_PROFILE_COUNTERS): Define.
4163         * pa.h (NO_PROFILE_COUNTERS): Define.
4164         * pa.c (NO_DEFERRED_PROFILE_COUNTERS): Define if not defined.
4165         (funcdef_nos): New vector to hold label numbers of deferred profile
4166         counters.
4167         (output_deferred_profile_counters): New function.
4168         (hppa_profile_hook): Push label number onto funcdef_nos.
4169         (pa_hpux_file_end): Call output_deferred_profile_counters if
4170         NO_DEFERRED_PROFILE_COUNTERS is false.
4171
4172         * pa-protos.h (get_deferred_plabel): New prototype.
4173         * pa.c (get_plabel): Rename to get_deferred_plabel.  Return plabel.
4174         Make global.
4175         (output_call): Adjust calls.
4176
4177 2005-10-24  Alan Modra  <amodra@bigpond.net.au>
4178
4179         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Explain
4180         peculiarity of GOT/TOC section usage.
4181
4182 2005-10-23  Andrew Pinski  <pinskia@physics.uc.edu>
4183
4184         PR objc/24435
4185          * c-common.c (constant_string_class_name): Add documentation.
4186
4187 2005-10-23  Kaz Kojima  <kkojima@gcc.gnu.org>
4188
4189         PR target/23832
4190         * recog.c (peephole2_optimize): Increment peep2_current_count
4191         only when the slot is empty.
4192
4193 2005-10-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4194
4195         PR ada/23957
4196         * except.c (output_function_exception_table): Call
4197         assemble_external_libcall if we need a personality function.
4198
4199 2005-10-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
4200
4201         PR rtl-optimization/24460
4202         * bb-reorder.c (fix_crossing_unconditional_branches): Do not
4203         set the basic block for barriers.
4204
4205 2005-10-21  Janis Johnson  <janis187@us.ibm.com>
4206
4207         * var-tracking.c (vt_initialize): Initialize post.
4208
4209 2005-10-21  Devang Patel  <dpatel@apple.com>
4210
4211         PR/24220
4212         * c-common.c (vector_types_convertible_p): Check vector element type.
4213
4214 2005-10-21  Kaz Kojima  <kkojima@gcc.gnu.org>
4215
4216         * config/sh/sh.c (prepare_move_operands): Handle the address
4217         constant which is a tls symbolic address plus a constant.
4218
4219 2005-10-21  Andrew Pinski  <pinskia@physics.uc.edu>
4220
4221         PR driver/24473
4222         * gcc.c (main): Use the correct counter for erroring out
4223         about mulitple files.
4224
4225 2005-10-21  Alan Modra  <amodra@bigpond.net.au>
4226
4227         PR target/24465
4228         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Always
4229         use r2 for 64-bit tls .got access.
4230
4231 2005-10-21  Paolo Bonzini  <bonzini@gnu.org>
4232
4233         * dojump.c (do_jump): Handle side-effecting TRUTH_AND_EXPR and
4234         TRUTH_OR_EXPR.
4235
4236 2005-10-20  Steven Bosscher  <stevenb@suse.de>
4237
4238         PR tree-optimization/24307
4239         * tree-cfg.c (tree_find_edge_insert_loc): Handle naked RETURN_EXPR.
4240
4241 2005-10-20  Alexandre Oliva  <aoliva@redhat.com>
4242
4243         PR middle-end/24295
4244         * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Mark
4245         alias targets.
4246         * varasm.c (find_decl_and_mark_needed): After cgraph global info
4247         is ready, stop marking functions, but still mark variables.
4248
4249 2005-10-20  Richard Guenther  <rguenther@suse.de>
4250
4251         PR c++/24439
4252         * fold-const.c (invert_truthvalue): Handle COND_EXPR with
4253         void type operands.
4254
4255 2005-10-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
4256
4257         PR rtl-optimization/23585
4258         * rtlanal.c (rtx_addr_can_trap_p_1): New predicate extracted from...
4259         (rtx_addr_can_trap_p): ... here.  Invoke rtx_addr_can_trap_p_1.
4260         (may_trap_p_1): New predicate extracted from...
4261         (may_trap_p): ... here.  Invoke may_trap_p_1.
4262         (may_trap_or_fault_p): New predicate.
4263         * rtl.h (may_trap_or_fault_p): Declare it.
4264         * reorg.c (steal_delay_list_from_target): Use may_trap_or_fault_p
4265         instead of may_trap_p.
4266         (steal_delay_list_from_fallthrough): Likewise.
4267         (fill_simple_delay_slots): Likewise.
4268         (fill_slots_from_thread): Likewise.
4269         * function.c (pad_to_arg_alignment): Rework comment about
4270         SPARC_STACK_BOUNDARY_HACK.
4271         * config/sparc/sparc.h: Likewise.
4272
4273 2005-10-19  Adrian Straetling  <straetling@de.ibm.com>
4274
4275         * config/s390/s390.c (s390_expand_insv): New.
4276         * config/s390/s390-protos.h (s390_expand_insv): Declare.
4277         * config/s390/s390.md ("UNSPEC_SETHIGH"): Rename to "UNSPEC_ICM".
4278         ("icm_hi"): Remove mode attribute.
4279         ("*sethigh<mode><mode>"): Rewrite to "sethighpart<mode>".
4280         Adjust all uses.
4281         ("*extracthi", "*extractqi"): Remove.
4282         (extv<mode>", "*extzv<mode>"): New.
4283         ("insv", "*insv<mode>_mem_reg", "*insvdi_mem_reghigh",
4284         "*insv<mode>_reg_imm", "*insv<mode>_reg_extimm"): New.
4285
4286 2005-10-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4287
4288         * cfgexpand.c (discover_nonconstant_array_refs_r,
4289         discover_nonconstant_array_refs): Move here from tree-outof-ssa.c
4290         (tree_expand_cfg): Call discover_nonconstant_array_refs.
4291         * tree-outof-ssa.c (rewrite_out_of_ssa): Remove call to
4292         discover_nonconstant_array_refs.
4293
4294 2005-10-19  Steven Bosscher  <stevenb@suse.de>
4295
4296         PR c/23228
4297         * c-decl.c (pop_scope): Don't warn about an unused variable
4298         if it is marked with TREE_NO_WARNING.
4299         (duplicate_decls): Set TREE_NO_WARNING if olddecl and newdecl
4300         somenow mismatch and olddecl is to be replaced.
4301
4302 2005-10-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
4303
4304         PR middle-end/23199
4305         * cfgrtl.c (safe_insert_insn_on_edge): Use can_copy_p to detect
4306         whether registers live on the edge can be saved/restored.
4307
4308 2005-10-19  Kaz Kojima  <kkojima@gcc.gnu.org>
4309
4310         * config/sh/sh.c (fixup_mova): Skip notes.
4311
4312 2005-10-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4313
4314         * config/s390/s390-protos.h (s390_hard_regno_rename_ok): Add prototype.
4315         * config/s390/s390.c (s390_hard_regno_rename_ok): New function.
4316         (s390_can_eliminate): Handle BASE_REGNUM elimination.
4317         (s390_initial_elimination_offset): Likewise.
4318         (s390_conditional_register_usage): BASE_REGNUM is no longer a fixed
4319         register on TARGET_ZARCH targets.
4320         * config/s390/s390.h (HARD_REGNO_RENAME_OK): Define
4321         (INITIAL_FRAME_POINTER_OFFSET): Remove.
4322         (REG_ALLOC_ORDER): Move BASE_REGNUM lower.
4323         (ELIMINABLE_REGS): Add BASE_REGNUM elimination rule.
4324
4325 2005-10-19  Andreas Krebbel  <krebbel1@de.ibm.com>
4326
4327         * config/s390/s390.md: Comment describing output modifiers updated.
4328         * config/s390/s390.c (print_operand): Likewise.
4329
4330 2005-10-19  Andreas Krebbel  <krebbel1@de.ibm.com>
4331
4332         * config/s390/s390.c (override_options): Added check for -mstack-size
4333         64k limitation.
4334         * doc/invoke.texi: Mention that limit in the documenation.
4335
4336 2005-10-18  Paolo Bonzini  <bonzini@gnu.org>
4337
4338         PR #19672
4339         * dojump.c (do_jump): Handle TRUTH_AND_EXPR and TRUTH_OR_EXPR here.
4340
4341 2005-10-18  Daniel Berlin <dberlin@dberlin.org>
4342
4343         Fix PR tree-optimization/24231
4344
4345         * tree-ssa-pre.c (try_look_through_load): Skip abnormal phi names
4346         (compute_avail): Ditto.
4347
4348 2005-10-18  Richard Henderson  <rth@redhat.com>
4349
4350         PR target/24428
4351         * config/i386/i386.c (legitimate_constant_p): Check
4352         SYMBOL_REF_TLS_MODEL directly.  Don't fallthru to SYMBOL_REF
4353         if LABEL_REF.
4354         (legitimate_pic_operand_p): Test SYMBOL_REF_TLS_MODEL directly.
4355         (legitimate_pic_address_disp_p): Reorg CONST checking to make
4356         sure SYMBOL_REF_TLS_MODEL is tested.  Test SYMBOL_REF_TLS_MODEL
4357         directly.
4358         (print_operand_address): Likewise.
4359         * config/i386/predicates.md (x86_64_immediate_operand): Test
4360         SYMBOL_REF_TLS_MODEL properly inside CONST.
4361         (x86_64_zext_immediate_operand): Likewise.
4362         (global_dynamic_symbolic_operand, local_dynamic_symbolic_operand,
4363         initial_exec_symbolic_operand, local_exec_symbolic_operand): Remove.
4364         * config/i386/i386-protos.h: Remove predicates.md entries.
4365
4366 2005-10-18  Danny Smith  <dannysmith@users.sourceforge.net>
4367
4368         * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
4369         Check that elements of TYPE_METHODS are FUNCTION_DECLs.
4370
4371 2005-10-17  Alexey Starovoytov  <alexey.starovoytov@sun.com>
4372             Ian Lance Taylor <ian@airs.com>
4373
4374         PR middle-end/23522
4375         * fold-const.c (fold_widened_comparison): Do not allow range based
4376         constant folding when right operand cannot be unwidened.
4377
4378 2005-10-17  Richard Henderson  <rth@redhat.com>
4379
4380         * builtins.c (expand_builtin_synchronize): Build a new-style asm
4381         with a memory clobber.
4382
4383 2005-10-17  James E Wilson  <wilson@specifix.com>
4384
4385         PR rtl-optimization/17356
4386         * cfgrtl.c (purge_dead_edges): Check for EDGE_ABNORMAL_CALL before
4387         checking for EDGE_EH.
4388
4389 2005-10-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
4390
4391         * config/sparc/sparc.c (function_arg_slotno): In 64-bit mode, align
4392         the slot on an even boundary for any type with 16-byte alignment.
4393
4394 2005-10-17  Hans-Peter Nilsson  <hp@axis.com>
4395
4396         PR target/23424
4397         * md.texi (Modifiers) <%>: Clarify that % doesn't work
4398         after register allocation.
4399
4400 2005-10-17  DJ Delorie  <dj@redhat.com>
4401
4402         * config/m32c/m32c.c (m32c_pushm_popm): Don't mark epilogue insns
4403         as frame related.
4404
4405 2005-10-17  Nathan Sidwell  <nathan@codesourcery.com>
4406
4407         PR c++/22551
4408         * c-common.c (c_add_case_label): Revert my 2005-10-14 clearing of
4409         overflow flags.
4410
4411 2005-10-17  Kaz Kojima  <kkojima@gcc.gnu.org>
4412
4413         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_schedule_insns
4414         to 2 if it's already non-zero.
4415         (OVERRIDE_OPTIONS): Clear flag_schedule_insns if flag_exceptions
4416         is set and warn about it if flag_schedule_insns is 1.
4417
4418 2005-10-17  Paul Woegerer  <paul.woegerer@nsc.com>
4419
4420         * config/crx/crx.md: Compare-and-branch instructions need to
4421         invalidate CC.
4422
4423 2005-10-17  Uros Bizjak  <uros@kss-loka.si>
4424
4425         PR target/24315
4426         * config/i386/i386.md (*pushdi2_rex64 splitter)
4427         (*movdi_1_rex64 splitter, *ashldi3_1 splitter)
4428         (*ashrdi3_1 splitter, *lshrdi3_1 splitter): Delay splitting after
4429         flow2 pass only when (optimize > 0 && flag_peephole2).
4430
4431 2005-10-16  Andrew Pinski  <pinskia@physics.uc.edu>
4432
4433         PR driver/22544
4434         * gcc.c (have_c): New static variable.
4435         (have_o): Likewise.
4436         (process_command): Remove declation of have_c.
4437         Set have_o to 1 when handling -o.
4438         (main): Add a fatel error if there are multiple
4439         files specified and -o and -c/-S is passed witout
4440         -combine or multiple languages.
4441
4442 2005-10-16  Daniel Berlin  <dberlin@dberlin.org>
4443
4444         Fix PR tree-optimization/22444
4445         * tree-ssa-alias.c (compute_flow_insensitive_aliasing):
4446         Assert that we don't hit something with subvars.
4447         (setup_pointers_and_addressables): Don't add things with subvars,
4448         because we'll already process the subvars for aliasing purposes.
4449
4450 2005-10-16  Hans-Peter Nilsson  <hp@axis.com>
4451
4452         PR target/23424
4453         * config/cris/cris.md ("*mov_side<mode>", "*mov_sidesisf")
4454         ("*mov_side<mode>_mem", "*mov_sidesisf_mem", "*clear_side<mode>")
4455         ("*ext_sideqihi", "*ext_side<mode>si", "*op_side<mode>")
4456         ("*op_swap_side<mode>", "*extopqihi_side", "*extop<mode>si_side")
4457         ("*extopqihi_swap_side", "*extop<mode>si_swap_side"): Have separate,
4458         swapped, alternatives for the R constraint.
4459
4460         PR middle-end/24341
4461         * builtins.c (get_builtin_sync_mode): Make unlimited
4462         mode_for_size request.
4463
4464 2005-10-15  Richard Henderson  <rth@redhat.com>
4465
4466         * gimplify.c (gimplify_var_or_parm_decl): Split out from ...
4467         (gimplify_expr): ... here.
4468         (gimplify_compound_lval): Use it in initial scan loop.  Allow
4469         fb_lvalue in base expression.
4470
4471 2005-10-15  Richard Henderson  <rth@redhat.com>
4472
4473         PR 23714
4474         * builtins.c (expand_builtin_trap): Export.
4475         * expr.h (expand_builtin_trap): Declare.
4476         * expr.c (expand_assignment): Emit a trap for integral offsets
4477         from registers that weren't reduced to bitpos.
4478
4479         * tree-cfg.c (mark_array_ref_addressable_1): Remove.
4480         (mark_array_ref_addressable): Remove.
4481         * tree-flow.h (mark_array_ref_addressable): Remove.
4482         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Don't call it.
4483
4484 2005-10-15  James E Wilson  <wilson@specifix.com>
4485
4486         PR target/24232
4487         * sched-deps.c (add_dependence_list): New arg UNCOND.  Fix all callers.
4488         (add_dependence_list_and_free): Likewise.
4489         (sched_analyze_2, case MEM): Delete sched_insns_conditions_mutex_p
4490         call.
4491
4492 2005-10-15  Diego Novillo  <dnovillo@redhat.com>
4493
4494         PR 23141
4495         PR 23142
4496         * tree-vrp.c (vrp_meet): Fix the intersection of equivalence
4497         sets VR0->EQUIV and VR1->EQUIV when meeting a range and an
4498         anti-range.
4499         (vrp_visit_phi_node): Only prevent infinite iterations when
4500         the previous result and the new result are both VR_RANGEs.
4501
4502 2005-10-15  Ranjit Mathew  <rmathew@gcc.gnu.org>
4503
4504         * tree-into-ssa.c (mark_def_sites): Correct minor typo in
4505         function comment.
4506
4507 2005-10-14  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
4508
4509         PR c/23439
4510         * c-parser.c (c_parser_for_statement): Use location of RID_FOR
4511         to initialize loc.
4512
4513 2005-10-14  Per Bothner  <per@bothner.com>
4514
4515         PR preprocessor/21250
4516         * c-ppoutput.c (print_line): Print internal line 0 as 1.
4517
4518 2005-10-14  Nathan Sidwell  <nathan@codesourcery.com>
4519
4520         PR c++/22551
4521         * c-common.c (c_add_case_label): Clear LOW_VALUE and HIGH_VALUE's
4522         overflow flags.  Refactor some conditionals.
4523
4524 2005-10-13  Andrew Pinski  <pinskia@physics.uc.edu>
4525
4526         PR tree-opt/21304
4527         * tree-dfa.c (add_referenced_var): Only look at decls which
4528         have TREE_CONSTANT or TREE_READONLY set instead of if
4529         !TREE_PUBLIC or !TREE_CONSTANT.
4530
4531 2005-10-13  James E Wilson  <wilson@specifix.com>
4532
4533         * doc/invoke.texi: For -x, add f95-cpp-input.
4534         * doc/install.texi: For --enable-languages doc, change f95 to fortran.
4535
4536 2005-10-12  Sebastian Pop  <pop@cri.ensmp.fr>
4537
4538         PR tree-optimization/24262
4539         * tree-data-ref.c (analyze_offset_expr): Check that init is invariant
4540         in loop all the time.
4541
4542 2005-10-12  Richard Henderson  <rth@redhat.com>
4543
4544         PR c/24255
4545         * tree.h (DECL_TRANSPARENT_UNION): Remove.
4546         * function.c (assign_parm_find_data_types): Don't support it.
4547         * print-tree.c (print_node): Likewise.
4548         * c-common.c (handle_transparent_union_attribute): Likewise.
4549         Use build_duplicate_type.
4550         * tree-inline.c (remap_type_1): Split out of remap_type;
4551         properly remap aggregate fields.
4552         (build_duplicate_type): New.
4553         * doc/extend.texi (Variable Attributes): Remove documentation
4554         for transparent_union.
4555
4556 2005-10-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
4557
4558         PR target/24284
4559         * config/sparc/sparc.c (gen_stack_pointer_inc): Build by hand.
4560         (gen_stack_pointer_dec): Likewise.
4561
4562 2005-10-12  Danny Smith  <dannysmith@users.sourceforge.net>
4563
4564         PR middle-end/21275
4565         PR middle-end/21766
4566         * target.h (struct gcc_target): Add valid_dllimport_attribute_p
4567         target hook.
4568         (struct cxx): Add adjust_class_at_definition target hook.
4569         * target-def.h: (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): New define,
4570         defaulting to hook_bool_tree_true. Add to TARGET_INITIALIZER
4571         (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): New define, defaulting to
4572         hook_void_tree. Add to TARGET_CXX.
4573         * tree.h (struct decl_with_vis): Rename non_addr_const_p field to
4574         dllimport_flag.
4575         (DECL_NON_ADDR_CONSTANT_P): Replace with DECL_DLLIMPORT_P macro.
4576         * tree.c (merge_dllimport_decl_attributes): Check DECL_DLLIMPORT_P
4577         instead of attribute. Check for dllexport override.  Warn if
4578         inconsistent dll linkage. Don't lose old dllimport if decl has
4579         had address referenced.   Tweak lookup of dllimport atribute.
4580         (handle_dll_attribute): Check targetm.valid_dllimport_attribute_p
4581         for target specific rules.  Don't add dllimport attribute if
4582         DECL_DECLARED_INLINE_P.  Set DECL_DLLIMPORT_P when adding
4583         dllimport attribute.
4584         (staticp): Replace DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P.
4585         * varasm.c (initializer_constant_valid_p): Replace
4586         DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P
4587
4588         PR target/21801
4589         PR target/23589
4590         * config.gcc (i[34567]86-*-cygwin*): Add winnt-cxx.o to
4591         'cxx_target_objs', winnt-stubs,o to 'extra_objs'.
4592         (i[34567]86-*-mingw32*): Likewise.
4593
4594         * doc/tm.texi (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Document.
4595         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Document.
4596
4597         * config/i386/winnt.c (i386_pe_dllimport_p): Factor out
4598         C++-specific code. Change return value to bool.
4599         (i386_pe_dllimport_p): Likewise.
4600         (associated_type): Simplify and make language-independent
4601         (i386_pe_encode_section_info): Replace override of ambiguous
4602         dllimport symbol refs with a gcc_assert.
4603         (i386_pe_valid_dllimport_attribute_p): Define.
4604         * config/i386/winnt-cxx.c: New file. Define C++ versions of
4605         i386_pe_type_dllimport_p, i386_pe_type_dllexport_p,
4606         i386_pe_adjust_class_at_definition.
4607         * config/i386/winnt-stubs.c: New file. Define stub versions of
4608         lang-specific functions.
4609         * config/i386/i386-protos.h: Declare winnt-[cxx|stubs].c functions
4610         i386_pe_type_dllimport_p, i386_pe_type_dllexport_p,
4611         i386_pe_adjust_class_at_definition.
4612         (i386_pe_valid_dllimport_attribute_p): Declare.
4613         * config/i386/cygming.h (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Define.
4614         (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Define.
4615         * config/i386/t-cygming: Add rules for winnt-cxx.o, winnt-stubs.o.
4616
4617         PR target/19704
4618         * config/i386/i386.c (ix86_function_ok_for_sibcall): Replace test for
4619         dllimport attribute with test of DECL_DLLIMPORT_P.
4620
4621 2005-10-12  Adrian Straetling <straetling@de.ibm.com>
4622
4623         * combine.c (make_extraction): Correct offset computation.
4624
4625 2005-10-12  Hans-Peter Nilsson  <hp@axis.com>
4626
4627         * config/cris/t-linux (LIMITS_H_TEST): Define.
4628
4629 2005-10-12  Richard Henderson  <rth@redhat.com>
4630
4631         PR rtl-opt/23324
4632         * cfgexpand.c (add_alias_set_conflicts): Use objects_must_conflict_p.
4633
4634 2005-10-12  Richard Guenther  <rguenther@suse.de>
4635
4636         * Makefile.in (CGRAPH_H): Depend on $(TREE_H).
4637
4638 2005-10-12  Nathan Sidwell  <nathan@codesourcery.com>
4639
4640         PR c++/19964
4641         * stor-layout.c (place_field): Set DECL_FIELD_OFFSET and
4642         DECL_FIELD_BIT_OFFSET of FIELD_DECLs, even if they have an invalid
4643         type.
4644
4645 2005-10-12  Richard Guenther  <rguenther@suse.de>
4646
4647         PR c++/23799
4648         * varasm.c (output_constant): Correct typo from previous
4649         patch by DJ.
4650
4651 2005-10-11  Ian Lance Taylor  <ian@airs.com>
4652
4653         PR rtl-optimization/13931
4654         * combine.c: Revert patch of 2003-05-14, and:
4655         (try_combine): Only set elim_i1 and elim_i2 if the destination is
4656         completely killed in the appropriate insn.
4657         (distribute_notes): Don't skip multiple hard register test for
4658         elim_i1 and elim_i2.
4659
4660 2005-10-11  Richard Henderson  <rth@redhat.com>
4661
4662         PR c/24255
4663         * c-typeck.c (convert_for_assignment): Use build_constructor_single
4664         to initialize a transparent union instead of a nop_expr.
4665
4666 2005-10-11  Richard Henderson  <rth@redhat.com>
4667
4668         * Makefile.in (tree-ssa-dce.o): Depend on SCEV_H.
4669         * tree-ssa-dce.c: Include tree-scalar-evolution.h.
4670         (tree_ssa_dce_loop): Call scev_reset.
4671
4672         PR tree-opt/24300
4673         * Makefile.in (tree-ssa-dce.o): Depend on CFGLOOP_H.
4674         * tree-ssa-dce.c: Include cfgloop.h.
4675         (tree_ssa_dce_loop, pass_dce_loop): New.
4676         * tree-pass.h (pass_dce_loop): Declare it.
4677         * passes.c (init_optimization_passes): Use it.
4678
4679 2005-10-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
4680
4681         PR middle-end/24263
4682         * convert.c (convert_to_real): Revert 2005-10-05 patch.
4683         Only apply the optimization for rounding builtins if the inner
4684         cast is also an extension.
4685
4686 2005-10-11  Andrew Pinski  <pinskia@physics.uc.edu>
4687
4688         PR tree-opt/23946
4689         * tree-ssa-ccp.c (execute_fold_all_builtins): Call
4690         mark_new_vars_to_rename instead of update_stmt.
4691
4692 2005-10-11  Bernd Schmidt  <bernd.schmidt@analog.com>
4693
4694         * config/bfin/crti.s (__init, __fini): Renamed from _init, _fini.
4695
4696 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
4697
4698         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use mmxadd type
4699         for setting MMX register to 0 rather than mmx.
4700
4701 2005-10-10  Steve Ellcey  <sje@cup.hp.com>
4702
4703         PR target/12098
4704         * configure.ac: Move gas check from mips specific case to common case.
4705         Do check for GNU as for mips*-*-* and *-*-hpux* targets.
4706         * configure: Regenerate
4707         * doc/install.texi: Update.
4708
4709 2005-10-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
4710
4711         PR target/24284
4712         * config/sparc/sparc.c (sparc_expand_prologue): Remove bogus PATTERN.
4713
4714 2005-10-10  Maciej W. Rozycki  <macro@linux-mips.org>
4715
4716         * gcc.c (do_spec_1): Accept numeric characters in file name
4717         suffixes.
4718
4719 2005-10-10  Nick Clifton  <nickc@redhat.com>
4720
4721         * config/arm/arm.c: Remove extraneous whitespace.  Remove comment
4722         describing the deleted arm_gen_rotated_half_load function.
4723
4724 2005-10-09  Kaz Kojima  <kkojima@gcc.gnu.org>
4725
4726         * config/sh/sh.c (emit_fpu_switch): Set TREE_PUBLIC for
4727         __fpscr_values.
4728
4729 2005-10-09  Daniel Jacobowitz  <dan@codesourcery.com>
4730
4731         * config.gcc (arm*-*-linux*): Remove redundant extra_parts and
4732         gnu_ld assignments.
4733         * config/arm/t-linux-eabi (LIB1ASMFUNCS)
4734         (EXTRA_MULTILIB_PARTS): Define.
4735         * config/arm/linux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
4736         (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
4737         (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Move to...
4738         * config/arm/uclinux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
4739         (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
4740         (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): ... here.
4741
4742 2005-10-09  Zdenek Dvorak  <dvorakz@suse.cz>
4743
4744         PR tree-optimization/24226
4745         * tree-cfg.c (remove_bb): Clean up unreachable loops.
4746         * tree-flow.h (free_numbers_of_iterations_estimates_loop): Declare.
4747         * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates_loop):
4748         Export.
4749
4750 2005-10-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
4751
4752         * config/sparc/gmon-sol2.c (internal_mcount): Mark as used.
4753
4754 2005-10-08  Andrew Pinski  <pinskia@physics.uc.edu>
4755
4756         PR target/24136
4757         * config/rs6000/darwin.md (movdf_low_si): Remove early clobber.
4758         Rewrite for no need for the early clobber.
4759
4760 2005-10-08  Kazu Hirata  <kazu@codesourcery.com>
4761
4762         Merge from csl-arm-branch:
4763         2005-09-07  Paul Brook  <paul@codesourcery.com>
4764         * config/arm/linux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Prepend a
4765         space to string.
4766
4767         2005-04-30  Paul Brook  <paul@codesourcery.com>
4768         * config/arm/bpabi.h (TARGET_DEFAULT): Define.
4769         * config/arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Define.
4770
4771         2005-03-07  Daniel Jacobowitz  <dan@codesourcery.com>
4772         * config/arm/arm.c (arm_all_abis): Add aapcs-linux.
4773         (arm_override_options): Use TARGET_AAPCS_BASED.
4774         * config/arm/arm.h (enum arm_abi_type): Add ARM_ABI_AAPCS_LINUX.
4775         (PTRDIFF_TYPE): Use int for AAPCS.
4776         (DEFAULT_SHORT_ENUMS): Use false for aapcs-linux.
4777         * config/arm/linux-eabi.h (ARM_DEFAULT_ABI, WCHAR_TYPE): Define.
4778         (DEFAULT_SHORT_ENUMS): Delete.
4779         * doc/invoke.texi (ARM Options): Document -mabi=aapcs-linux.
4780
4781         2004-12-15  Daniel Jacobowitz  <dan@codesourcery.com>
4782         * config/arm/arm.h (DEFAULT_SHORT_ENUMS): Wrap in #ifndef.
4783         * config/arm/linux-eabi.h (DEFAULT_SHORT_ENUMS): Define to 0.
4784         * config/arm/t-linux-eabi (TARGET_LIBGCC2_CFLAGS): Set to -fPIC.
4785
4786         2004-12-03  Mark Mitchell  <mark@codesourcery.com>
4787         * config/arm/linux-eabi.h (LIBGCC_SPEC): Do not define.
4788
4789         2004-11-22  Mark Mitchell  <mark@codesourcery.com>
4790         * config.gcc (arm*-*-linux-gnueabi): Use __cxa_atexit.
4791
4792         2004-11-19  Mark Mitchell  <mark@codesourcery.com>
4793         * config.gcc (arm*-*-linux-gnueabi): Add it.
4794         * config/arm/bpabi.h (FPUTYPE_DEFAULT): Undefine it before
4795         redefining it.
4796         (TARGET_OS_CPP_BUILTINS): Likeiwse.
4797         * config/arm/linux-eabi.h: New file.
4798         * config/arm/linux-elf.h (LINUX_TARGET_INTERPRETER): New macro.
4799         (LINUX_TARET_LINK_SPEC): Likewise.
4800         (LINK_SPEC): Use it.
4801         * config/arm/t-linux-eabi: New file.
4802
4803 2005-10-08  Steven Bosscher  <stevenb@suse.de>
4804
4805         PR other/22202
4806         * params.def (PARAM_MAX_VARIABLE_EXPANSIONS): Remove superfluous
4807         spaces.
4808         (PARAM_SMS_DFA_HISTORY): Likewise.
4809
4810 2005-10-08  Kazu Hirata  <kazu@codesourcery.com>
4811
4812         PR middle-end/23150
4813         * calls.c (mem_overlaps_already_clobbered_arg_p): New.
4814         (load_register_parameters): Call it.
4815         (check_sibcall_argument_overlap_1): Likewise.
4816         (store_one_arg): Likewise.
4817
4818 2005-10-07  James E. Wilson  <wilson@specifix.com>
4819
4820         * config/ia64/vect.md (ashl<mode>3, ashr<mode>3, lshr<mode>3): Use
4821         DImode not VECINT24 for operand 2.
4822
4823         PR target/23644
4824         * doc/invoke.texi (IA-64 Options, item -mtune): Renamed from
4825         -mtune-arch.
4826
4827         PR target/24193
4828         * config/ia64/ia64.md (movbi, movti_internal, gr_spill_internal,
4829         fr_spill): Use destination_operand for operand 0.
4830
4831 2005-10-07  DJ Delorie  <dj@redhat.com>
4832
4833         * varasm.c (output_constant): Limit error to expanding
4834         conversions.
4835
4836 2005-10-07  Richard Guenther  <rguenther@suse.de>
4837
4838         PR middle-end/24227
4839         * fold-const.c (fold_binary): Fix operand types during folding
4840         of X op (A, Y).  Evaluation order of the side-effects of
4841         X and A are frontend-defined, so ensure we honour that even for
4842         tcc_comparison class operands; eased by removing duplicate code.
4843
4844 2005-10-07  Steve Ellcey  <sje@cup.hp.com>
4845
4846         * stor-layout.c (layout_type): Do not allow alignment of array
4847         elements to be greater than their size.
4848
4849 2005-10-07  Steve Ellcey  <sje@cup.hp.com>
4850
4851         * config.host (hppa*-*-hpux*): Change out_host_hook_obj and
4852         host_xmake_file.
4853         (hppa*-*-linux*): Ditto.
4854         (ia64-*-hpux*): Add out_host_hook_obj and host_xmake_file.
4855         * config/host-hpux.c: New.
4856         * config/x-hpux: New.
4857         * config/pa/x-hpux: Remove.
4858         * config/pa/x-linux: Remove.
4859         * config/pa/pa-host.c: Remove.
4860
4861 2005-10-07  Jeff Law  <law@redhat.com>
4862
4863         * tree-ssa-dom.c (dom_opt_finalize_block): Fix conditions to
4864         determine whether or not to try and thread outgoing edges.
4865
4866 2005-10-07  David Edelsohn  <edelsohn@gnu.org>
4867
4868         * config/rs6000/rs6000.md (eqsi_power): New.
4869         (neg_eq0si): Add TARGET_POWER to final condition.
4870         (neg_eqsi): Same.
4871
4872 2005-10-06  Richard Henderson  <rth@redhat.com>
4873
4874         * config/rs6000/rs6000.c: Revert last change.
4875
4876 2005-10-06  Richard Henderson  <rth@redhat.com>
4877
4878         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): New.
4879         (TARGET_CANNOT_FORCE_CONST_MEM): Use it.
4880
4881 2005-10-06  Andrew Pinski  <pinskia@physics.uc.edu>
4882
4883         PR middle-end/22216
4884         PR middle-end/23651
4885         * cfgexpand.c (tree_expand_cfg): After expanding the functions, clear
4886         out return_label and naked_return_label.
4887
4888 2005-10-06  Daniel Berlin  <dberlin@dberlin.org>
4889
4890         * tree-ssa-structalias.c (check_for_overlaps): Fix bug in last
4891         change.
4892
4893 2005-10-06  Richard Henderson  <rth@redhat.com>
4894
4895         PR tree-opt/22237
4896         * tree-inline.c (declare_return_variable): Handle modify_dest not
4897         being a DECL.
4898
4899 2005-10-06  Daniel Berlin  <dberlin@dberlin.org>
4900
4901         Fix PR tree-optimization/22488
4902         * tree-ssa-structalias.c (check_for_overlaps): New function.
4903         (create_variable_info_for): Use it.
4904
4905 2005-10-06  Richard Henderson  <rth@redhat.com>
4906
4907         PR debug/24070
4908         * dwarf2out.c (lookup_filename): Return the result of maybe_emit_file.
4909         (dwarf2out_start_source_file): Print it.
4910
4911 2005-10-06  Geoffrey Keating  <geoffk@apple.com>
4912
4913         * config/t-slibgcc-darwin (SHLIB_MAPFILES): Use '+='.
4914
4915 2005-10-06  Richard Henderson  <rth@redhat.com>
4916
4917         PR 23706
4918         * mode-switching.c (optimize_mode_switching): Clear transp bit
4919         for block with incomming abnormal edges.
4920
4921         * config/sh/sh.c (fpscr_values, emit_fpu_switch): New.
4922         (fpscr_set_from_mem): Use them.
4923         * config/sh/sh.md (fpu_switch0, fpu_switch1): Remove.
4924         (fpscr postinc splitters): Rewrite as peephole2+split.
4925
4926 2005-10-06  David Edelsohn  <edelsohn@gnu.org>
4927
4928         * config/rs6000/rs6000.md (eq<mode>): Add !TARGET_POWER.
4929         (eq<mode>_compare): Same.
4930
4931 2005-10-06  Richard Guenther  <rguenther@suse.de>
4932
4933         PR tree-optimization/24238
4934         * tree-ssa-alias.c (find_used_portions): Handle RESULT_DECL.
4935
4936 2005-10-06  Daniel Jacobowitz  <dan@codesourcery.com>
4937
4938         * acinclude.m4 (gcc_AC_CHECK_TOOL): Handle environment variables
4939         here.  Use AC_PATH_PROG for environment variables instead of
4940         test -x.
4941         * configure.ac: Update calls to gcc_AC_CHECK_TOOL.  Use it for
4942         objdump also.
4943         * configure: Regenerated.
4944
4945 2005-10-06  Richard Earnshaw  <richard.earnshaw@arm.com>
4946
4947         PR target/23783
4948         * arm.md (call): If the address isn't a SYMBOL_REF or a register,
4949         then force it into a register.
4950         (call_value): Likewise.
4951
4952 2005-10-06  Richard Henderson  <rth@redhat.com>
4953
4954         PR 24049
4955         * passes.c (init_optimization_passes): Move pass_lower_vector_ssa
4956         under pass_vectorize.  Clear TODO_ggc_collect from the dce pass
4957         under pass_vectorize.
4958
4959 2005-10-05  Devang Patel  <dpatel@apple.com>
4960
4961         PR Debug/23205
4962         * dbxout.c (dbxout_symbol): Check DECL_RTL_SET_P, after
4963         handling constants. Check NAMESPACE_DECL context for constants.
4964
4965 2005-10-05  Eric Christopher  <echristo@apple.com>
4966
4967         * doc/md.texi (Standard Names): Fix name of pushm1 pattern.
4968
4969 2005-10-05  Richard Henderson  <rth@redhat.com>
4970
4971         PR 23714
4972         * tree-cfg.c (mark_array_ref_addressable_1): New.
4973         (mark_array_ref_addressable): New.
4974         * tree-flow.h (mark_array_ref_addressable): Declare.
4975         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Use it.
4976
4977 2005-10-05  Andrew Pinski  <pinskia@physics.uc.edu>
4978
4979         PR middle-end/20606
4980         PR middle-end/24069
4981         * reload.c (subst_reloads): When adding a REG_LABEL to a
4982         jump instruction, also update JUMP_LABEL.
4983
4984 2005-10-05  David Edelsohn  <edelsohn@gnu.org>
4985
4986         * params.def (PARAM_MAX_GROW_COPY_BB_INSNS): New.
4987         * bb-reorder.c (copy_bb_p): Use it.
4988         * doc/invoke.texi (param table): Add max-grow-copy-bb-insn.
4989
4990 2005-10-05  Richard Henderson  <rth@redhat.com>
4991
4992         PR target/23602
4993         * toplev.c (process_options): Warn about unsupported combinations
4994         of unwind tables and omit-frame-pointer.
4995         * config/i386/i386.c (override_options): Similarly.  Enable
4996         accumulate-outgoing-args if not explicitly disabled.
4997
4998 2005-10-05  Steve Ellcey  <sje@cup.hp.com>
4999
5000         * vect.md (vec_initv2si): Fix typo of V2SF to V2SI.
5001         Handle big endian vs. small endian.
5002         (vec_initv2sf): Handle big endian vs. small endian.
5003         (*vec_extractv2sf_1): Ditto.
5004
5005 2005-10-05  Dale Johannesen  <dalej@apple.com>
5006
5007         * convert.c (convert_to_real):  Don't convert
5008         (float)floor(double d) to floorf((float)d).
5009
5010 2005-10-05  Daniel Jacobowitz  <dan@codesourcery.com>
5011
5012         * config/arm/arm.md (insv): Use gen_int_mode in more places.
5013
5014 2005-10-05  Andrew MacLeod  <amacleod@redhat.com>
5015
5016         PR tree-optimization/18587
5017         * tree-ssa-operands.c (struct opbuild_list_d, OPBUILD_LAST): Delete.
5018         (build_defs, build_uses, build_v_may_defs, build_v_must_defs,
5019         build_vuses): Change to VEC type.
5020         (opbuild_initialize_virtual, opbuild_initialize_real, opbuild_free,
5021         opbuild_num_elems, opbuild_append_real, opbuild_append_virtual,
5022         opbuild_first, opbuild_next, opbuild_elem_real, opbuild_elem_virtual,
5023         opbuild_elem_uid, opbuild_clear, opbuild_remove_elem): Delete.
5024         (get_name_decl): New.  Return DECL_UID of base variable.
5025         (operand_build_cmp): New.  qsort comparison routine.
5026         (operand_build_sort_virtual): New.  Sort virtual build vector.
5027         (init_ssa_operands, fini_ssa_operands): Use VEC routines.
5028         (FINALIZE_OPBUILD_BASE, FINALIZE_OPBUILD_ELEM): Use VEC_Index.
5029         (FINALIZE_BASE): Use get_name_decl.
5030         (finalize_ssa_defs, finalize_ssa_uses, cleanup_v_may_defs,
5031         finalize_ssa_v_may_defs, finalize_ssa_vuses, finalize_ssa_v_must_defs,
5032         (start_ssa_stmt_operands, append_def, append_use, append_vuse,
5033         append_v_may_def, append_v_must_def): Replace opbuild_* routines with
5034         direct VEC_* manipulations.
5035         (build_ssa_operands): Call operand_build_sort_virtual.
5036         (copy_virtual_operand, create_ssa_artficial_load_stmt,
5037         add_call_clobber_ops, add_call_read_ops): Replace opbuild_* routines
5038         with direct VEC_* manipulations.
5039         * tree-ssa-opfinalize.h (FINALIZE_FUNC): Replace opbuild_* routines
5040         with direct VEC manipulations.
5041
5042 2005-10-05  Paolo Bonzini  <bonzini@gnu.org>
5043
5044         PR tree-optimization/21419
5045         PR tree-optimization/24146
5046         PR tree-optimization/24151
5047
5048         * c-typeck.c (readonly_error): Handle USE being lv_asm.
5049         (build_asm_expr): Call it if outputs are read-only.
5050         * gimplify.c (gimplify_asm_expr): Remove former fix to PR 21419.
5051
5052 2005-10-05  Billy Biggs  <billy.biggs@gmail.com>
5053             Paolo Bonzini  <bonzini@gnu.org>
5054
5055         PR target/23809
5056
5057         * doc/extend.texi (x86 Built-ins): Document that -msse and friends
5058         enable the instructions and not just the built-ins.
5059         * doc/invoke.texi (x86 Options): Likewise.
5060
5061 2005-10-04  Geoffrey Keating  <geoffk@apple.com>
5062
5063         * config/i386/t-darwin (SHLIB_VERPFX): Fix typo.
5064
5065         * doc/invoke.texi (Option Summary): Correct spelling
5066         of -mmacosx-version-min.
5067
5068 2005-10-04  Devang Patel  <dpatel@apple.com>
5069
5070         * c-common.c (vector_types_convertible_p): Check TYPE_PRECISION for
5071         real types.
5072
5073 2005-10-04  Steve Ellcey  <sje@cup.hp.com>
5074
5075         * tree-vect-transform.c (vect_create_epilog_for_reduction):
5076         Use BYTES_BIG_ENDIAN instead of BITS_BIG_ENDIAN.
5077
5078 2005-10-04  Adrian Straetling  <straetling@de.ibm.com>
5079
5080         * config/s390/s390.md ("TDSI","DP"): New mode macros.
5081         ("TE","tg"): New mode attributes.
5082         ("sync_compare_and_swap<mode>"): Replace with a define_expand.
5083         ("sync_compare_and_swap<mode>_cc"): Replace GPR with TDSI.
5084         ("*sync_compare_and_swap<mode>_cc"): Replace with one pattern for
5085         dword_mode and one for GPRmode.
5086
5087 2005-10-04  Ian Lance Taylor  <ian@airs.com>
5088
5089         PR preprocessor/13726
5090         * c-ppoutput.c (cb_include): Add comments parameter, and print out
5091         any comments passed in.
5092
5093 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
5094
5095         * tree.c (annotate_with_file_line): Fix typo.
5096
5097 2005-10-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5098
5099         PR ada/19382
5100         * builtins.c (fold_builtin_memcmp): When constructing the pointer
5101         type used to access data in the inlined length == 1 case, use
5102         build_pointer_type_for_mode with CAN_ALIAS_ALL set to true.
5103         (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
5104
5105 2005-10-04  Uros Bizjak  <uros@kss-loka.si>
5106
5107         * config/i386/i386.h (TARGET_FISTTP): Enable also for
5108         TARGET_SSE3 and only for TARGET_80387.
5109         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1,
5110         (fix_trunc<mode>_i387_fisttp, fix_trunc<mode>_i387_fisttp_with_temp):
5111         Do not depend on TARGET_80387.
5112
5113 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
5114
5115         * tree.c (last_annotated_node): Change type to location_t*.
5116         (annotate_with_file_line): Reflect the change of
5117         last_annotated_node type.
5118
5119 2005-10-04  Richard Guenther  <rguenther@suse.de>
5120
5121         PR c/23576
5122         * c-decl.c (grokdeclarator): Don't write to fields
5123         of error_mark_node.
5124
5125 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
5126
5127         PR middle-end/23125
5128         * c-decl.c (finish_decl): Use set_user_assembler_name even for
5129         register variables.
5130         * varasm.c (make_decl_rtl): If a register variable does not
5131         have a set user assmbler name, error out.
5132         Decode the asmspec is now name+1 bypassing '*'.
5133
5134 2005-10-04  Steven Bosscher  <stevenb@suse.de>
5135
5136         PR tree-optimization/23049
5137         * tree-ssa-dom.c (thread_across_edge): Make sure that the condition
5138         of a COND_EXPR is folded before calling fold on the whole rhs of a
5139         conditional assignment.
5140         * doc/tree-ssa.texi: Update the GIMPLE grammar for a valid rhs to
5141         document that a COND_EXPR may appear there.
5142
5143 2005-10-03  Diego Novillo  <dnovillo@redhat.com>
5144
5145         PR 23445
5146         * tree-vrp.c (extract_range_from_assert): If the new numeric
5147         range created out of the assertion contradicts the existing
5148         numeric range of the ASSERT_EXPR variable, make the new range
5149         varying.
5150
5151 2005-10-03  Kaz Kojima  <kkojima@gcc.gnu.org>
5152
5153         * config/sh/sh.c (sh_register_move_cost): Add case for moving
5154         from T_REGS to FP register class.
5155
5156 2005-10-03  Richard Henderson  <rth@redhat.com>
5157
5158         PR 24135
5159         * tree-nested.c (convert_nl_goto_reference): Lookup a translation
5160         before creating a new one.
5161
5162 2005-10-03  David Edelsohn  <edelsohn@gnu.org>
5163
5164         * config/rs6000/t-aix43 (LDFLAGS): New.
5165         * config/rs6000/t-aix52 (LDFLAGS): New.
5166
5167 2005-10-03  Ian Lance Taylor  <ian@airs.com>
5168
5169         * gimplify.c (find_single_pointer_decl_1): New static function.
5170         (find_single_pointer_decl): New static function.
5171         (internal_get_tmp_var): For a formal variable, set restrict base
5172         information if appropriate.
5173         * alias.c (find_base_decl): If a VAR_DECL has a restrict base,
5174         return it.
5175         * tree.h (DECL_BASED_ON_RESTRICT_P): Define.
5176         (DECL_GET_RESTRICT_BASE): Define.
5177         (SET_DECL_RESTRICT_BASE): Define.
5178         (decl_restrict_base_lookup): Declare.
5179         (decl_restrict_base_insert): Declare.
5180         (struct tree_decl_with_vis): Add based_on_restrict_p field.
5181         * tree.c (restrict_base_for_decl): New static variable.
5182         (init_ttree): Initialize restrict_base_for_decl.
5183         (copy_node_stat): Copy restrict base information.
5184         (decl_restrict_base_lookup): New function.
5185         (decl_restrict_base_insert): New function.
5186         (print_restrict_base_statistics): New static function.
5187         (dump_tree_statistics): Call print_restrict_base_statistics.
5188
5189 2005-10-02  Diego Novillo  <dnovillo@redhat.com>
5190
5191         PR 24142
5192         * tree-vrp.c (vrp_meet): Fix call to range_includes_zero_p in
5193         case of anti-ranges.
5194
5195 2005-10-02  Andrew Pinski  <pinskia@physics.uc.edu>
5196
5197         PR c/18851
5198         * c-typeck.c (tagged_tu_seen): Rename to ...
5199         (tagged_tu_seen_cache): this and add val field.
5200         (comptypes): Move functional to comptypes_internal
5201         and free tagged_tu_seen.
5202         (comptypes_internal): New function and call comptypes_internal
5203         instead of comptypes. Speed up by sibcalling
5204         tagged_types_tu_compatible_p.
5205         (alloc_tagged_tu_seen): New function
5206         (free_all_tagged_tu_seen_up_to): New function.
5207         (tagged_types_tu_compatible_p): Return the val of the seen two
5208         types.
5209         Add that the two types are the same to tagged_tu_seen_base
5210         if they are and call comptypes_internal instead of comptypes.
5211         <case UNION_TYPE>: Speed up common type where the fields are
5212         in the same order.
5213         (function_types_compatible_p): Call comptypes_internal instead of
5214         comptypes.
5215         (type_lists_compatible_p): Likewise.
5216         (all functions): s/tagged_tu_seen/tagged_tu_seen_cache/.
5217
5218 2005-10-02  Matthias Klose  <doko@debian.org>
5219
5220         * doc/invoke.texi: Fix typo and speling error.
5221
5222 2005-10-01  Richard Henderson  <rth@redhat.com>
5223
5224         * tree-stdarg.c (execute_optimize_stdarg): Process PHI nodes too.
5225
5226 2005-10-01  Mark Mitchell  <mark@codesourcery.com>
5227
5228         * config/arm/unknown-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define
5229         using --start-group and --end-group.
5230
5231 2005-10-01  Diego Novillo  <dnovillo@redhat.com>
5232
5233         * tree-vrp.c (value_inside_range, range_includes_zero_p): Add
5234         FIXME note regarding quirky semantics.
5235
5236 2005-10-01  Diego Novillo  <dnovillo@redhat.com>
5237
5238         PR 24141
5239         * tree-vrp.c (vrp_meet): Clear VR0->EQUIV when building a
5240         non-null range as a last resort.
5241
5242 2005-10-01  James A. Morrison  <phython@gcc.gnu.org>
5243             Diego Novillo  <dnovillo@redhat.com>
5244
5245         PR 23604
5246         * tree-vrp.c (extract_range_from_assert): For !=
5247         assertions, only build an anti-range if LIMIT is a
5248         single-valued range.
5249
5250 2005-09-30  Richard Earnshaw  <richard.earnshaw@arm.com>
5251
5252         * arm.md (movqi): On thumb when optimizing, handle loading from
5253         memory by describing this as taking a subreg of a zero-extended load
5254         into an SImode register.
5255         (movhi): Likewise.
5256
5257 2005-09-30  Daniel Jacobowitz  <dan@codesourcery.com>
5258
5259         * reload1.c (merge_assigned_reloads): Do not change any
5260         RELOAD_FOR_OUTPUT_ADDRESS reloads.
5261
5262 2005-09-30  Geoffrey Keating  <geoffk@apple.com>
5263
5264         * Makefile.in (LIPO_FOR_TARGET): Define.
5265         (STRIP_FOR_TARGET): Define.
5266
5267         * config/t-slibgcc-darwin (libgcc_s_%.dylib): Remove old symlinks
5268         before creating new ones.  Do symlinks before creating the actual
5269         targets.
5270
5271         * config/t-slibgcc-darwin (libgcc_s_%.dylib): Use --print-multi-lib
5272         to work out which multilibs are actually being built.
5273
5274 2005-09-30  Kazu Hirata  <kazu@codesourcery.com>
5275
5276         * tree-vect-transform.c, config/ms1/ms1.md,
5277         config/s390/s390.c, config/v850/v850.md: Fix comment typos.
5278         Follow spelling conventions.
5279         * doc/invoke.texi, doc/md.texi: Fix typos.
5280
5281 2005-09-30  Andrew Macleod  <amacleod@redat.com>
5282
5283         PR tree-optimization/21430
5284         * tree-ssa-operands.c (set_virtual_use_link): New. Link new virtual
5285         use operands, and set stmt pointer if need be.
5286         (FINALIZE_CORRECT_USE: New. Macro to call appropriate use fixup routine.
5287         tree-ssa-opfinalize.h (FINALIZE_FUNC): Call FINALIZE_CORRECT_USE if
5288         present.
5289
5290 2005-09-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5291
5292         PR middle-end/24053
5293         * stor-layout.c (set_sizetype): Set TYPE_MAIN_VARIANT of bitsizetype.
5294
5295 2005-09-29  Mark Mitchell  <mark@codesourcery.com>
5296
5297         * optabs.c (expand_binop): Initialize first_pass_p.
5298
5299 2005-09-29  Jakub Jelinek  <jakub@redhat.com>
5300
5301         PR middle-end/24109
5302         * c-decl.c (c_write_global_declarations_1): If any
5303         wrapup_global_declaration_2 call returned true, restart the loop.
5304
5305 2005-09-29  Daniel Berlin  <dberlin@dberlin.org>
5306
5307         Fix PR tree-optimization/24117
5308         * tree-ssa-structalias.c (find_func_aliases): Strip nops
5309         before considering whether to use anyoffset.
5310
5311 2005-09-29  Paolo Bonzini  <bonzini@gnu.org>
5312
5313         Revert this patch:
5314
5315         2005-09-15  Paolo Bonzini  <bonzini@gnu.org>
5316
5317         * optabs.c (expand_binop): Use swap_commutative_operands_with_target
5318         to order operands.
5319         (swap_commutative_operands_with_target): New.
5320
5321 2005-09-29  Paolo Bonzini  <bonzini@gnu.org>
5322
5323         PR c/21419
5324         * gimplify.c (gimplify_asm_expr): Raise an error if an output is
5325         read-only.
5326
5327 2005-09-29  Steven Bosscher  <stevenb@suse.de>
5328
5329         PR tree-optimization/23911
5330         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle REALPART_EXPR
5331         and IMAGPART_EXPR too.
5332
5333 2005-09-28  Mark Mitchell  <mark@codesourcery.com>
5334
5335         PR 17886
5336         * expmed.c (expand_shift): Move logic to reverse rotation
5337         direction when  rotating by constants ...
5338         * optabs.c (expand_binop): ... here.
5339         * config/i386/i386.md (rotrdi3): Handle 32-bit mode.
5340         (ix86_rotrdi3): New pattern.
5341         (rotldi3): Handle 32-bit mode.
5342         (ix86_rotldi3): New pattern.
5343
5344 2005-09-29  Alan Modra  <amodra@bigpond.net.au>
5345
5346         PR target/24102
5347         * config/rs6000/rs6000.md (floatdisf2_internal2): Correct range
5348         check for numbers that need no bit twiddle.
5349
5350 2005-09-28  Geoffrey Keating  <geoffk@apple.com>
5351
5352         * config/rs6000/t-darwin8: Uncomment contents, allow -m64
5353         multilib to be built.
5354
5355         * Makefile.in: Export LIPO_FOR_TARGET, STRIP_FOR_TARGET.
5356         (stage1-start): Delete old libgcc and libunwind before moving
5357         anything into the stage directory.
5358         (stage2-start): Likewise.
5359         (stage3-start): Likewise.
5360         (stage4-start): Likewise.
5361         (stageprofile-start): Likewise.
5362         (stagefeedback-start): Likewise.
5363         * config.gcc (*-*-darwin*): Automatically use CPU-specific darwin.h
5364         header in tm_file and CPU-specific t-darwin in tmake_file.
5365         (i[34567]86-*-darwin*): Don't change tm_file.
5366         (powerpc-*-darwin*): Don't change tm_file or tmake_file.
5367         * config/darwin.h (REAL_LIBGCC_SPEC): Rewrite to use proper libgcc
5368         shared library stub for target OS version.
5369         * config/t-slibgcc-darwin (SHLIB_SOLINK): Delete.
5370         (SHLIB_LINK): Don't make SHLIB_SOLINK.
5371         (SHLIB_INSTALL): Don't install SHLIB_SOLINK.
5372         (libgcc_s.%.dylib): New.
5373         (LIBGCC): Define.
5374         (install-darwin-libgcc-stubs): New.
5375         (INSTALL_LIBGCC): New append.
5376         * config/i386/darwin-libgcc.10.4.ver: New.
5377         * config/i386/darwin-libgcc.10.5.ver: New.
5378         * config/i386/t-darwin: New.
5379         * config/rs6000/darwin-libgcc.10.4.ver: New.
5380         * config/rs6000/darwin-libgcc.10.5.ver: New.
5381         * config/rs6000/darwin.h (REAL_LIBGCC_SPEC): Delete.
5382         * config/rs6000/t-darwin (SHLIB_VERPFX): Define.
5383
5384 2005-09-28  Paul Brook  <paul@codesourcery.com>
5385
5386         * config/m68k/fpgnulib.c (__extendsfdf2, __truncdfsf2): Handle
5387         denormals.
5388
5389 2005-09-28  Richard Guenther  <rguenther@suse.de>
5390
5391         PR tree-optimization/23853
5392         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use
5393         host_integerp to verify misalignment value.
5394
5395 2005-09-28  Richard Henderson  <rth@redhat.com>
5396
5397         * builtins.c (get_builtin_sync_mode): New.
5398         (expand_builtin_sync_operation): Pass in mode argument.
5399         (expand_builtin_compare_and_swap): Likewise.
5400         (expand_builtin_lock_test_and_set): Likewise.
5401         (expand_builtin_lock_release): Likewise.
5402         (expand_builtin): Update to match.
5403
5404 2005-09-28  Nick Clifton  <nickc@redhat.com>
5405
5406         * config/v850/v850.h (GO_IF_LEGITIMATE_ADDRESS): Tidy up
5407         formatting.  Add check to PLUS case to ensure that the offset is
5408         within an acceptable range.
5409
5410         * config/v850/v850.md (casesi): Disable the generation of the
5411         switch pattern as it is not being handled properly at the moment.
5412
5413         * config/v850/lib1funcs.asm (___ucmpdi2): Correct jump instruction
5414         for when the high words are identical.
5415
5416 2005-09-27  Richard Henderson  <rth@redhat.com>
5417
5418         * pretty-print.c (pp_base_format): Fix typo for %>.
5419
5420 2005-09-27  Daniel Berlin  <dberlin@dberlin.org>
5421             Devang Patel  <dpatel@apple.com>
5422
5423         PR tree-optimization/23625
5424         * tree-flow-inline.h (bsi_after_labels): Remove, first statement is
5425         LABEL_EXPR, assertion check.
5426
5427 2005-09-27  J"orn Rennecke <joern.rennecke@st.com>
5428
5429         * optabs.c (no_conflict_move_test): Check if a result of a
5430         to-be-moved insn would be clobbered by an originally
5431         preceding insn.
5432
5433 2005-09-27  Jeff Law  <law@redhat.com>
5434
5435         * passes.c (init_optimization_passes): Replace copy propagation
5436         passes immediately after DOM with phi-only copy propagation
5437         pases.  Add phi-only copy propagation pass after first DOM pass.
5438         * tree-pass.h (pass_phi_only_copy_prop): Declare.
5439         * tree-ssa-copy.c (init_copy_prop): Accept new PHI_ONLY argument.
5440         If true, then mark all non-control statements with DONT_SIMULATE_AGAIN.
5441         (execute_copy_prop): Accept new PHI_ONLY argument.  Pass it along
5442         to init_copy_prop.  Callers updated.
5443         (do_phi_only_copy_prop): New function.
5444         (pass_phi_only_copy_prop): New pass descriptor.
5445
5446 2005-09-27  Nick Clifton  <nickc@redhat.com>
5447
5448         * libgcc2.c (__popcount_tab): Remove redundant prototype.
5449
5450 2005-09-26  Jason Merrill  <jason@redhat.com>
5451
5452         PR c++/13764
5453         * c-common.c (finish_fname_decls): Use append_to_statement_list_force.
5454
5455         * doc/invoke.texi: Clarify documentation of -fno-enforce-eh-specs.
5456
5457 2005-09-26  James E Wilson  <wilson@specifix.com>
5458
5459         * config/ia64/crtbegin.asm, config/ia64/crtend.asm: Remove glibc
5460         copyright.  Add gcc copyright plus libgcc exception.
5461         * config/ia64/crtfastmath.asm: Remove glibc copyright.  Add gcc
5462         copyright.
5463         * config/ia64/lib1funcs.asm: Add gcc copyright plus libgcc exception.
5464
5465 2005-09-26  Jeff Law  <law@redhat.com>
5466
5467         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Be more selective
5468         about when to iterate.
5469
5470 2005-09-23  Fariborz Jahanian <fjahanian@apple.com>
5471
5472         PR target/23847
5473         * config/rs6000/rs6000.c (rs6000_function_value): Parallel pattern
5474         for __complex__ double in -mcpu=G5 mode.
5475
5476 2005-09-26  Sebastian Pop  <pop@cri.ensmp.fr>
5477
5478         PR tree-optimization/23942
5479         * Makefile.in (SCEV_H): Depends on PARAMS_H.
5480         * tree-scalar-evolution.c: Include params.h.
5481         (t_bool): New enum.
5482         (follow_ssa_edge, follow_ssa_edge_in_rhs,
5483         follow_ssa_edge_in_condition_phi_branch,
5484         follow_ssa_edge_in_condition_phi, follow_ssa_edge_inner_loop_phi):
5485         Change return type to t_bool.  Use a parameter to limit the size of
5486         trees that are walked before stopping
5487         (analyze_evolution_in_loop): Initialize the limit to 0.
5488         (follow_ssa_edge): Give up by returning t_dont_know if the limit
5489         exceeds PARAM_SCEV_MAX_EXPR_SIZE.
5490
5491 2005-09-26  Uros Bizjak  <uros@kss-loka.si>
5492
5493         PR middle-end/23831
5494         * simplify-rtx.c (simplify_immed_subreg) [MODE_INT]: Skip
5495         simplification if elem_bitsize > 2 * HOST_BITS_PER_WIDE_INT.
5496
5497 2005-09-26    Fariborz Jahanian <fjahanian@apple.com>
5498
5499         * combine.c (make_extraction): Check for valid use of subreg.
5500
5501 2005-09-26  Uros Bizjak  <uros@kss-loka.si>
5502
5503         PR target/24055
5504         * config/i386/i386.md ("*fistdi2_1"): New pattern.
5505         ("*fist<mode>2_1"): Use only HImode and SImode register operands.
5506         ("fist<mode>2_with_temp"): Use only register operands.
5507
5508 2005-09-26  J"orn Rennecke <joern.rennecke@st.com>
5509
5510         * rtlanal.c (reg_used_between_p): Don't check for CLOBBERs in
5511         CALL_INSN_FUNCTION_USAGE.
5512
5513 2005-09-26  Richard Guenther  <rguenther@suse.de>
5514
5515         PR middle-end/15855
5516         * gcse.c: Include hashtab.h, define ldst entry hashtable.
5517         (pre_ldst_expr_hash, pre_ldst_expr_eq): New functions.
5518         (ldst_entry): Use the hashtable instead of list-walking.
5519         (find_rtx_in_ldst): Likewise.
5520         (free_ldst_entry): Free the hashtable.
5521         (compute_ld_motion_mems): Create the hashtable.
5522         (trim_ld_motion_mems): Remove entry from hashtable if
5523         removing it from list.
5524         (compute_store_table): Likewise^2.
5525         (store_motion): Free hashtable in case we did not see
5526         any stores.
5527
5528 2005-09-25  Kazu Hirata  <kazu@codesourcery.com>
5529
5530         * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
5531         and arg1 if we are passing them to fold_build2.
5532
5533 2005-09-25  Dan Nicolaescu  <dann@ics.uci.edu>
5534
5535         PR 23828
5536         * config/i386/i386.c (ix86_function_regparm): Fix the test for
5537         a nested function.
5538
5539 2005-09-25  Richard Henderson  <rth@redhat.com>
5540
5541         * config/alpha/alpha.c (tls_symbolic_operand_1): Trust
5542         SYMBOL_REF_TLS_MODEL to be correct.
5543
5544 2005-09-24  Richard Henderson  <rth@redhat.com>
5545
5546         * ipa-type-escape.c (discover_unique_type): Remove dead code at
5547         end of function.  Reindent.
5548
5549 2005-09-24  Ian Lance Taylor  <ian@airs.com>
5550
5551         * convert.c (convert_to_integer): Don't test for ENUMERAL_TYPE in
5552         NEGATE_EXPR/BIT_NOT_EXPR case.
5553
5554 2005-09-24  Richard Henderson  <rth@redhat.com>
5555
5556         * c-common.c (handle_mode_attribute): When not modifying in place,
5557         create subtypes for enumerations.
5558         (sync_resolve_return): Use TYPE_MAIN_VARIANT.
5559         * gimplify.c (create_tmp_from_val): Likewise.
5560
5561 2005-09-24  Alexandre Oliva  <aoliva@redhat.com>
5562
5563         * config/i386/i386.md (*tls_global_dynamic_64,
5564         *tls_local_dynamic_base_64): Add missing mode to call.
5565         (tls_global_dynamic_64, tls_local_dynamic_base_64): Likewise.
5566
5567 2005-09-24  Jan Hubicka  <jh@suse.cz>
5568
5569         * cgraph.c (cgraph_clone_edge): Make the scale gcov_type.
5570         (cgraph_clone_node): Likewise.
5571         * cgraph.h (cgraph_clone_edge): Update prototype.
5572         (cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Remove
5573         duplicated prototypes; add updating argument.
5574         * cgraphunit.c (verify_cgraph_node): Verify that counts are non-negative.
5575         * ipa-inline.c (cgraph_clone_inlined_nodes): Allow clonning without
5576         updating profile.
5577         (cgraph_mark_inline_edge): Likewise.
5578         (cgraph_mark_inline): Update use of cgraph_mark_inline_edge.
5579         (cgraph_flatten_node): Likewise.
5580         (cgraph_decide_recursive_inlining): Likewise.
5581         (cgraph_decide_inlining_of_small_function): Likewise.
5582         * tree-optimize.c (tree_rest_of_compilation): Likewise.
5583
5584 2005-09-23  David Edelsohn  <edelsohn@gnu.org>
5585             Pete Steinmetz <steinmtz@us.ibm.com>
5586
5587         * config/rs6000/rs6000.md (neg-minus-mult): Set type to dmul.
5588         (rldic.): Set type to "compare".
5589         (rldicr.): Same.
5590         (movsf_hardfloat): Set type to mtjmpr for MTCTR/MTLR.  Set type to
5591         mfjmpr for MFCTR/MFLR.
5592         (movdf_hardfloat64): Same.
5593         (movdf_softfloat64): Same.  Correct order of store and move types.
5594         (movti_string): Set type to store_ux/load_ux.
5595         (load_multiple): Set type to load_ux.
5596         (store_multiple): Set type to store_ux.
5597         (movmemsi): Set type to store_ux.
5598         (output_cbranch direct_return): Set type to jmpreg.
5599         (stmw): Set type to store_ux.
5600         (lmw): Set type to load_ux.
5601         * config/rs6000/40x.md (ppc403-store): Increase latency to 2.
5602         * config/rs6000/440.md (ppc440-store): Increase latency to 6.
5603         * config/rs6000/603.md (ppc603-store): Occupy LSU for 2 cycles.
5604         * config/rs6000/6xx.md (ppc604-store): Increase latency to 3.
5605         * config/rs6000/mpc.md (mpccore-store): Increase latency to 2.
5606         * config/rs6000/rios1.md (rios1-store): Increase latency to 2.
5607         (rios1-fpstore): Increase latency to 3.
5608         * config/rs6000/rios2.md (rios2-store): Increase latency to 2.
5609         * config/rs6000/rs64.md (rs64a-store): Increase latency to 2.
5610
5611 2005-09-23  David Edelsohn  <edelsohn@gnu.org>
5612             Andrew Pinski  <pinskia@physics.uc.edu>
5613
5614         * config/rs6000/sync.md (sync_<fetchop_name>si_internal): Change
5615         operand2 constraint to "b".
5616         (sync_<fetchop_name>di_internal): Same.
5617         (sync_old_<fetchop_name>si_internal): Change operand3 constraint
5618         to "b".
5619         (sync_old_<fetchop_name>di_internal): Same.
5620         (sync_new_<fetchop_name>si_internal): Same.
5621         (sync_new_<fetchop_name>di_internal): Same.
5622
5623 2005-09-23  J"orn Rennecke <joern.rennecke@st.com>
5624
5625         PR middle-end/23991
5626         * final.c (insn_default_length, insn_min_length): In !HAVE_ATTR_length
5627         case, define as macros.
5628
5629         PR rtl-optimization/23837
5630         *  optabs.c (no_conflict_move_test): Don't set must_stay for a
5631         clobber / clobber match between dest and p->first.
5632
5633         * optabs.c (emit_libcall_block): Use no_conflict_move_test.
5634         (no_conflict_move_test): Update comments.
5635
5636 2005-09-22  Ranjit Mathew  <rmathew@gcc.gnu.org>
5637
5638         * doc/install.texi: Update URL for Jacks.
5639         * doc/sourcebuild.texi: Likewise.
5640
5641 2005-09-22  David Edelsohn  <edelsohn@gnu.org>
5642
5643         PR target/24007
5644         * config/rs6000/rs6000.md (movsf_hardfloat): Ignore special
5645         registers when choosing register preferences.
5646         (movdf_hardfloat64): Same.
5647
5648 2005-09-22  Andreas Krebbel  <krebbel1@de.ibm.com>
5649
5650         * expmed.c (expand_shift): Don't use the target of the rotate as
5651         target for the first expanded shift insn.
5652         * testsuite/gcc.dg/20050922-1.c: Testcase added.
5653
5654 2005-09-21  Zdenek Dvorak  <dvorakz@suse.cz>
5655
5656         PR tree-optimization/22438
5657         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Handle all
5658         preserved iv rhs rewriting specially.
5659
5660 2005-09-21  Daniel Berlin  <dberlin@dberlin.org>
5661
5662         * tree-data-ref.c (analyze_array_indexes): Only estimate when
5663         estimate_only  is true.
5664         * tree-flow.h (ref_contains_indirect_ref): New prototype.
5665         * tree-flow-inline.h (ref_contains_indirect_ref): Moved from
5666         tree-ssa-structalias.c
5667         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Use
5668         ref_contains_indirect_ref.
5669         * tree-ssa-structalias.c (ref_contains_indirect_ref): Moved.
5670
5671 2005-09-21  DJ Delorie  <dj@redhat.com>
5672
5673         * config/mn10300/mn10300.c (TARGET_DEFAULT_TARGET_FLAGS): Add
5674         MASK_PTR_A0D0.
5675         (mn10300_return_in_memory): Support variable size types also.
5676         (mn10300_pass_by_reference): Likewise.
5677         (mn10300_function_value): New.
5678         * config/mn10300/mn10300.h (FUNCTION_VALUE): Call the above.
5679         (FUNCTION_OUTGOING_VALUE): Likewise.
5680         * config/mn10300/mn10300.opt: Add -mreturn-pointer-on-d0.
5681         * doc/invoke.texi: Document it.
5682
5683 2005-09-21  Uros Bizjak  <uros@kss-loka.si>
5684
5685         PR target/22585
5686         * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
5687         force integer op1 into register for XFmode compares.
5688
5689 2005-09-21  Kazu Hirata  <kazu@codesourcery.com>
5690
5691         PR middle-end/23971
5692         * expmed.c (alg_code): Add alg_impossible.
5693         (alg_hash_entry): Add cost.
5694         (synth_mult): Record alg_impossible in the hash table if
5695         multiplication by a given integer is impossble within the
5696         limit.  Speed up using alg_impossible.
5697
5698 2005-09-20  Daniel Berlin  <dberlin@dberlin.org>
5699
5700         * tree-ssa-structalias.c (get_constraint_for_component_ref): Add
5701         argument.  Allow and set any offset if needs_anyoffset is passed
5702         in.
5703         (get_constraint_for): Add argument here too.
5704         Pass it down.
5705         (do_structure_copy): Pass NULL to get_constraint_for.
5706         (handle_ptr_arith): Ditto.
5707         (find_func_aliases): Ditto.
5708
5709 2005-09-20  J"orn Rennecke <joern.rennecke@st.com>
5710
5711         PR rtl-optimization/23898
5712         * output.h (get_attr_min_length): Declare.
5713         * final.c (get_attr_length_1): New function, broken out of:
5714         (get_attr_length).
5715         (get_attr_min_length): New function.
5716         * bb-reorder.c (copy_bb_p, get_uncond_jump_length): Use it.
5717         (duplicate_computed_gotos): Likewise.
5718         * genattr.c (insn_min_length): Generate declaration.
5719         * genattrtab.c (min_fn, min_attr_value): New functions.
5720         (make_length_attrs): Generate insn_min_length.
5721
5722 2005-09-20  Steve Ellcey  <sje@cup.hp.com>
5723
5724         * config/pa/pa.c (output_cbranch): Check for zero in operands[2].
5725
5726 2005-09-20  Richard Henderson  <rth@redhat.com>
5727
5728         PR tree-optimization/24059
5729         * expr.c (expand_expr_real_1) <INDIRECT_REF>: Allow modifier
5730         EXPAND_STACK_PARM.
5731
5732 2005-09-20  Joseph S. Myers  <joseph@codesourcery.com>
5733
5734         * c.opt (fextended-identifiers): New.
5735         * c-opts.c (c_common_handle_option): Handle
5736         -fextended-identifiers.
5737         * doc/cpp.texi: Update documentation of extended identifiers.
5738         * doc/cppopts.texi (-fextended-identifiers): Document.
5739
5740 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
5741
5742         PR tree-optimization/23929
5743         * tree-ssa-loop-niter.c (expand_simple_operations): Return immediately
5744         if expr is NULL.
5745
5746         PR tree-optimization/23818
5747         * tree-stdarg.c (execute_optimize_stdarg): Call
5748         calculate_dominance_info.
5749
5750 2005-09-20  Daniel Berlin  <dberlin@dberlin.org>
5751
5752         * tree-data-ref.c (get_number_of_iters_for_loop): New function.
5753         (analyze_siv_subscript_cst_affine): Add weak SIV test.
5754         (compute_overlap_steps_for_affine_1_2): Use
5755         get_number_of_iters_for_loop.
5756         (analyze_subscript_affine_affine): Check whether difference is
5757         zero first.
5758         Use get_number_of_iters_for_loop.
5759         Check whether overlap occurs outside of bounds.
5760         (analyze_miv_subscript): Use get_number_of_iters_for_loop.
5761
5762 2005-09-20  Andreas Krebbel  <krebbel1@de.ibm.com>
5763
5764         * tree-ssa-address.c (create_mem_ref): Put the symbol reference into the
5765         base register if possible.
5766
5767 2005-09-20  Zdenek Dvorak  <dvorakz@suse.cz>
5768
5769         PR tree-optimization/18463
5770         * tree-chrec.c (chrec_convert): Return fold_converted chrec if
5771         converting it directly is not possible.
5772         (chrec_convert_aggressive): New function.
5773         * tree-chrec.h (chrec_convert_aggressive): Declare.
5774         * tree-scalar-evolution.c (instantiate_parameters_1, resolve_mixers):
5775         Fold chrec conversions aggressively if asked to.
5776         (instantiate_parameters): Modified because of changes in
5777         instantiate_parameters_1.
5778
5779 2005-09-19  Richard Henderson  <rth@redhat.com>
5780
5781         * config/i386/sse.md (reduc_splus_v4sf): Rename from reduc_plus_v4sf.
5782         (reduc_splus_v2df): New.
5783
5784 2005-09-19  Richard Sandiford  <richard@codesourcery.com>
5785
5786         * config/arm/aof.h (REGISTER_NAMES): Add missing backslash.
5787         (ADDITIONAL_REGISTER_NAMES): Add missing comma.  Remove final comma.
5788
5789 2005-09-19  Richard Henderson  <rth@redhat.com>
5790
5791         * config/i386/sse.md (vcondu<SSEMODE124>): Rename from
5792         vcondu<SSEMODE12>.
5793
5794 2005-09-19  Richard Henderson  <rth@redhat.com>
5795
5796         * config/ia64/ia64.c (ia64_expand_widen_sum): New.
5797         (ia64_expand_dot_prod_v8qi): New.
5798         * config/ia64/ia64-protos.h: Update.
5799         * config/ia64/vect.md (pmpy2_r, pmpy2_l, widen_usumv8qi3,
5800         widen_usumv4hi3, widen_ssumv8qi3, widen_ssumv4hi3, udot_prodv8qi,
5801         sdot_prodv8qi, sdot_prodv4hi): New.
5802         (reduc_splus_v2sf): Rename from reduc_plus_v2sf.
5803
5804 2005-09-19  Richard Henderson  <rth@redhat.com>
5805
5806         PR 23941
5807         * real.c (exact_real_truncate): Return false if the format cannot
5808         represent the number as a normal.
5809
5810         * config/alpha/alpha.c (alpha_rtx_costs) <FLOAT_EXTEND>: Cost 0
5811         for a memory source.
5812
5813 2005-09-19  Dorit Nuzman  <dorit@il.ibm.com>
5814
5815         * tree-ssa-operands.c (swap_tree_operands): Export.
5816         * tree.h (swap_tree_operands): Declare.
5817         * tree-vectorizer.c (vect_is_simple_reduction): Remove ATTRIBUTE_UNUSED.
5818         Call swap_tree_operands.
5819
5820 2005-09-19  Richard Henderson  <rth@redhat.com>
5821
5822         * tree-flow.h (merge_alias_info): Declare.
5823         * tree-ssa-copy.c (merge_alias_info): Export.
5824         * tree-vect-transform.c (vect_create_index_for_vector_ref): Remove.
5825         (vect_create_data_ref_ptr): Use create_iv directly.
5826         (vectorizable_load): Use correct types for integer constants.
5827         (vect_generate_tmps_on_preheader): Likewise.
5828         (vect_gen_niters_for_prolog_loop): Likewise.
5829
5830 2005-09-19  Steven Bosscher  <stevenb@suse.de>
5831
5832         PR rtl-optimization/23943
5833         * cse.c (find_best_addr): Never propagate an EXPR_LIST rtx.
5834
5835 2005-09-18  Jan Hubicka  <jh@suse.cz>
5836
5837         * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK.
5838
5839 2005-09-18  Eric Botcazou  <ebotcazou@adacore.com>
5840
5841         * varasm.c (output_constant): Do not abort on conversions to union
5842         types between different sizes.
5843
5844 2005-09-18  Richard Guenther  <rguenther@suse.de>
5845
5846         PR middle-end/23944
5847         * gimplify.c (fold_indirect_ref_rhs): Fix thinko in
5848         fallback.
5849
5850 2005-09-18  Paul Brook  <paul@codesourcery.com>
5851
5852         * config/m68k/fpgnuib.c (__floatsidf): Don't rely on signed overflow.
5853
5854 2005-09-17  Richard Henderson  <rth@redhat.com>
5855
5856         * tree-pass.h, tree-flow.h, tree-ssa-dce.c: Revert last change.
5857         * tree-ssa-loop.c (pass_vect_dce): Remove.
5858         * passes.c (init_optimization_passes): Add pass_dce as a sub-pass
5859         of pass_vectorize.
5860
5861 2005-09-17  Richard Henderson  <rth@redhat.com>
5862
5863         * tree-pass.h (pass_vect_dce): Declare.
5864         * passes.c (init_optimization_passes): Add it.
5865         * tree-flow.h (tree_ssa_dce): Declare.
5866         * tree-ssa-dce.c (tree_ssa_dce): Export.
5867         * tree-ssa-loop.c (tree_vectorize): Move current_loops check ...
5868         (gate_tree_vectorize): ... here.
5869         (pass_vect_dce): New.
5870
5871 2005-09-17  Jan Hubicka  <jh@suse.cz>
5872
5873         * except.c (struct eh_status): Turn region_array into vec.
5874         (expand_resx_expr, collect_eh_region_array, remove_unreachable_regions,
5875         convert_from_eh_region_ranges, find_exception_handler_labels,
5876         current_function_has_exception_handlers, assign_filter_values,
5877         build_post_landing_pads, dw2_build_landing_pads,
5878         sjlj_find_directly_reachable_regions, sjlj_mark_call_sites,
5879         sjlj_emit_dispatch_table, remove_eh_handler, for_each_eh_region,
5880         foreach_reachable_handler, can_throw_internal_1,
5881         convert_to_eh_region_ranges, verify_eh_tree): Update uses of
5882         region_array.
5883         (duplicate_eh_region_1): Update region_array.
5884         (duplicate_eh_regions): Resize region_array and avoid recomputing.
5885
5886 2005-09-17  David Edelsohn  <edelsohn@gnu.org>
5887
5888         PR middle-end/22067
5889         * expmed.c (expand_mult): Substitute simple register for op0 when
5890         computing max_cost.
5891
5892 2005-09-17  Richard Henderson  <rth@redhat.com>
5893
5894         * expr.c (emit_move_via_integer): Add force argument, pass it on
5895         to emit_move_change_mode.  Update callers.
5896         (emit_move_complex): Pass true to new force argument.
5897         * function.c (expand_function_end): Move expand_eh_return call
5898         earlier.  Merge sub-word complex values into a pseudo before
5899         copying to the return hard register.
5900
5901 2005-09-17  Eric Botcazou  <ebotcazou@adacore.com>
5902
5903         * varasm.c (output_constant): Do not abort on VIEW_CONVERT_EXPRs
5904         between different sizes.
5905
5906 2005-09-16  Paolo Bonzini  <bonzini@gnu.org>
5907
5908         PR 23903
5909
5910         * passes.c (init_optimization_passes): Register dump files for
5911         IPA passes first.
5912
5913 2005-09-16  Andreas Krebbel  <krebbel1@de.ibm.com>
5914
5915         * config/s390/s390-protos.h (s390_overlap_p): Prototype added.
5916         * config/s390/s390.c (s390_overlap_p): New function.
5917         * config/s390/s390.md ("*mvc" peephole2, "*nc" peephole2, "*oc"
5918         peephole2, "*xc" peephole2): Added overlap check to the peephole2
5919         condition.
5920
5921 2005-09-16  Richard Guenther  <rguenther@suse.de>
5922
5923         * ipa-pure-const.c (static_execute): Free auxiliar information.
5924         * ipa-type-escape.c (discover_unique_type): Free temporary key.
5925         * tree-vrp.c (remove_range_assertions): Free blocks_visited sbitmap.
5926
5927 2005-09-15  DJ Delorie  <dj@redhat.com>
5928
5929         * config/m32c/m32c-lib1.S (__m32c_eh_return): Fix typo.
5930
5931 2005-09-15  Paolo Bonzini  <bonzini@gnu.org>
5932
5933         * optabs.c (expand_binop): Use swap_commutative_operands_with_target
5934         to order operands.
5935         (swap_commutative_operands_with_target): New.
5936
5937 2005-09-15  Daniel Berlin  <dberlin@dberlin.org>
5938
5939         * tree-data-ref.c (analyze_array_indexes): Add estimate_only
5940         parameter.
5941         Update callers.
5942         (estimate_iters_using_array): New function.
5943         * tree-data-ref.h (estimate_iters_using_array): Prototype
5944         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
5945         Use estimate_iters_using_array instead of analyze_array.
5946
5947 2005-09-15  Eric Botcazou  <ebotcazou@adacore.com>
5948
5949         * tree-nested.c (get_frame_type): Mark the "non-local frame structure"
5950         as addressable.
5951
5952 2005-09-15  Michael Matz  <matz@suse.de>
5953
5954         * tree-vrp.c (vrp_int_const_binop <MINUS_EXPR>): Handle 0 - -INF.
5955
5956 2005-09-14  Daniel Berlin  <dberlin@dberlin.org>
5957
5958         PR tree-optimization/23835
5959         * tree-ssa-alias.c (sort_pointers_by_pt_vars): New function.
5960         (create_name_tags): Rewrite to be not O(num_ssa_names^2).
5961
5962 2005-09-14  Richard Henderson  <rth@redhat.com>
5963
5964         * config/ia64/vect.md (addv2sf3, subv2sf3): Rewrite as expand.
5965         (addv2sf3_1, addv2sf3_2, subv2sf3_1, subv2sf3_2): New.
5966
5967 2005-09-14  Andrew Pinski  <pinskia@physics.uc.edu>
5968
5969         * config/i386/i386.c (contains_128bit_aligned_vector_p): Add break
5970         in the ARRAY_TYPE case.
5971
5972 2005-09-14  Eric Botcazou  <ebotcazou@adacore.com>
5973
5974         * tree.c (substitute_in_expr, case 4): New case, for ARRAY_REF.
5975
5976 2005-09-14  Uros Bizjak  <uros@kss-loka.si>
5977
5978         PR middle-end/22480
5979         * tree-vect-transform.c (vectorizable_operation): Return false for
5980         scalar shift operations and for vector shift operations with
5981         non-invariant shift arguments.  Use scalar tree operand op1 as
5982         a shift operand when vector shift insn pattern uses scalar shift
5983         operand.
5984         * Makefile.in (tree-vect-transform.o): Depend on recog.h.
5985
5986 2005-09-14  Olivier Hainque  <hainque@adacore.com>
5987
5988         * gimplify.c (gimplify_init_ctor_eval): Don't discard a zero-sized
5989         value if it has side-effects.
5990
5991 2005-09-14  David Edelsohn  <edelsohn@gnu.org>
5992
5993         PR target/22068
5994         * config/rs6000/rs6000.md (muldi3): Add mulli alternative.
5995
5996 2005-09-14  Alan Modra  <amodra@bigpond.net.au>
5997
5998         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Treat function name
5999         passed as NAME as if it were label at start of function code.
6000
6001 2005-09-13  Kaz Kojima  <kkojima@gcc.gnu.org>
6002
6003         * config/sh/sh.md (*movv4sf_i): Add general register cases to
6004         the constraints.
6005
6006 2005-09-13  Andrew Pinski  <pinskia@physics.uc.edu>
6007
6008         * config/rs6000/darwin.md (movdf_low_si): Mark the outgoing r constraint
6009         as early clobber.  Rewrite so the PIC register is not implicitly used.
6010
6011 2005-09-13  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
6012
6013         * tree.c (annotate_with_file_line): Compare line numbers before
6014         file names.
6015
6016 2005-09-13  Uros Bizjak  <uros@kss-loka.si>
6017
6018         PR target/23816
6019         * config/i386/sse.md (*ieee_sminv4sf3, *ieee_smaxv4sf3)
6020         (*ieee_sminv2df3, *ieee_smaxv2df3): New insn patterns.
6021
6022 2005-09-13  Ian Lance Taylor  <ian@airs.com>
6023
6024         * loop-doloop.c (doloop_modify): Use GEN_INT to pass an rtx rather
6025         than a HOST_WIDEST_INT to gen_doloop_begin.
6026
6027 2005-09-13  Diego Novillo  <dnovillo@redhat.com>
6028
6029         * tree-dfa.c (dump_variable): Guard against NULL annotations.
6030
6031 2005-09-13  Zdenek Dvorak  <dvorakz@suse.cz>
6032
6033         PR tree-optimize/23817
6034         * tree-cfg.c (tree_merge_blocks): Preserve loop closed ssa.
6035
6036 2005-09-13  Alan Modra  <amodra@bigpond.net.au>
6037
6038         PR target/23774
6039         * config/rs6000/rs6000.md (restore_stack_block): Write the backchain
6040         word before changing the stack pointer.  Use gen_frame_mem for MEMs.
6041         Use UNSPEC_TIE to prevent insn scheduling reordering the insns.
6042         (restore_stack_nonlocal): Likewise.
6043         (save_stack_nonlocal): Use template to emit insns, and gen_frame_mem.
6044
6045 2005-09-12  Ian Lance Taylor  <ian@airs.com>
6046
6047         PR g++/7874
6048         * c.opt (ffriend-injection): New C++ option.
6049         * doc/invoke.texi (Option Summary): Mention -ffriend-injection.
6050         (C++ Dialect Options): Document -ffriend-injection.
6051
6052 2005-09-12  Josh Conner  <jconner@apple.com>
6053
6054         PR middle-end/23237
6055         * ipa-reference.c (static_execute): Don't mark variables in
6056         named sections TREE_READONLY.
6057
6058 2005-09-12  Alan Modra  <amodra@bigpond.net.au>
6059
6060         * config/rs6000/rs6000.c (get_next_active_insn): Simplify test for
6061         stack_tie.
6062
6063 2005-09-12  Andrew Pinski  <pinskia@physics.uc.edu>
6064
6065         * tree-ssa-dse.c (dse_optimize_stmt): Fix up all of V_MAY_DEF and
6066         V_MUST_DEF instead of just the first_use_p.
6067         Don't mark the virtual variables for renaming on the statement which
6068         is being removed.
6069         (pass_dse): Remove TODO_update_ssa.
6070
6071 2005-09-12  J"orn Rennecke <joern.rennecke@st.com>
6072
6073         PR middle-end/23290
6074         * stor-layout.c (compute_record_mode): For records with a single
6075         field, actually check the field's mode size against the type size.
6076
6077         * sh.h (HARD_REGNO_MODE_OK): Allow V4SFmode in general purpose
6078         registers for TARGET_SHMEDIA.
6079         (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Rename
6080         GENERAL_FP_REGS to GENERAL_DF_REGS.  Add GENERAL_FP_REGS as union
6081         of GENERAL_REGS and FP_REGS.
6082
6083 2005-09-12  Bernd Schmidt  <bernd.schmidt@analog.com>
6084
6085         * config/bfin/bfin.c (legimitize_pic_address): Use gen_const_mem.
6086
6087 2005-09-12  Alan Modra  <amodra@bigpond.net.au>
6088
6089         * config/rs6000/rs6000.c (get_next_active_insn): Rewrite using
6090         CALL_P, JUMP_P and NONJUMP_INSN_P, so that barriers and labels
6091         are omitted.  Exclude stack_tie insn too.
6092
6093 2005-09-11  David Edelsohn  <edelsohn@gnu.org>
6094
6095         PR rtl-optimization/23098
6096         * config/rs6000/predicates.md (easy_fp_constant): SFmode constant
6097         0.0f is easy.
6098         * config/rs6000/rs6000.md (movdf splitter): Use
6099         const_double_operand predicate for TARGET_POWERPC64.
6100         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Expand
6101         SYMBOL_REF method to ABI_V4.
6102
6103         * config/rs6000/altivec.md (build_vector_mask_for_load): Use
6104         replace_equiv_address.
6105         * config/rs6000/rs6000.c (rs6000_emit_eh_reg_restore): Mark MEM as
6106         rs6000_sr_alias_set and MEM_NOTRAP.
6107         (rs6000_aix_emit_builtin_unwind_init): Use gen_frame_mem().
6108
6109 2005-09-11  Eric Botcazou  <ebotcazou@adacore.com>
6110
6111         * tree.c (contains_placeholder_p) <tcc_expression>: Properly
6112         handle CALL_EXPR again.
6113
6114 2005-09-11  Richard Earnshaw  <richard.earnshaw@arm.com>
6115
6116         * arm/predicates.md (alignable_memory_operand): Delete.
6117
6118 2005-09-10  Richard Henderson  <rth@redhat.com>
6119
6120         PR debug/23806
6121         * dbxout.c (dbxout_expand_expr): New.
6122         (dbxout_symbol): Use it.
6123
6124 2005-09-10  Richard Earnshaw  <richard.earnshaw@arm.com>
6125
6126         * arm.c (arm_gen_rotated_half_load): Delete.
6127         (vfp_emit_fstmx, arm_set_return_address): Use gen_frame_mem.
6128         (emit_multi_reg_push, emit_sfm, arm_expand_prologue)
6129         (thumb_set_return_address): Likewise.
6130         (thumb_load_double_from_address): Use adjust_address.
6131         * arm.md (splits calling arm_gen_rotated_half_load): Delete.
6132         (extendhsisi2_mem, movhi_bytes): Use change_address.
6133         (movhi): Use widen_memory_access.
6134         (reload_out_df): Use replace_equiv_address.
6135         * arm-protos.h (arm_gen_rotated_half_load): Delete prototype.
6136
6137 2005-09-09  Richard Henderson  <rth@redhat.com>
6138
6139         PR debug/20998
6140         * dbxout.c: Include expr.h.
6141         (dbxout_global_decl): Don't suppress for DECL_RTL unset.
6142         (dbxout_symbol): Handle DECL_VALUE_EXPR.
6143         * Makefile.in (dbxout.o): Add EXPR_H.
6144
6145 2005-09-09  Zdenek Dvorak  <dvorakz@suse.cz>
6146
6147         PR tree-optimization/23509
6148         * tree-cfg.c (replace_uses_by): Use replace_exp.
6149         * tree-ssa-loop-ivopts.c (get_ref_tag): Assert that dereferenced
6150         pointers have name_mem_tag or type_mem_tag set.
6151
6152 2005-09-09  Sebastian Pop  <pop@cri.ensmp.fr>
6153
6154         * tree-chrec.c (evolution_function_is_invariant_rec_p): Use
6155         CHREC_LEFT and CHREC_RIGHT for accessing chrec components instead
6156         of wrongly accessing operands.
6157
6158 2005-09-09  Sebastian Pop  <pop@cri.ensmp.fr>
6159
6160         * Makefile.in (tree-chrec.o): Depends on SCEV_H.
6161         * tree-chrec.c: Include tree-scalar-evolution.h.
6162         (chrec_convert): Instantiate the base and step before calling
6163         scev_probably_wraps_p that would fail on parametric evolutions.
6164         Collect all the fails into a single section failed_to_convert,
6165         print a diagnostic, and return chrec_dont_know instead of calling
6166         fold_convert.
6167         * tree-scalar-evolution.c (loop_closed_phi_def): New.
6168         (instantiate_parameters_1): Avoid instantiation of loop closed ssa
6169         phi nodes.
6170         (scev_const_prop): Don't replace the definition of a loop closed ssa
6171         phi node by itself, or by another loop closed ssa phi node.
6172         * tree-ssa-loop-niter.c (scev_probably_wraps_p, convert_step): Check
6173         that base and step are defined.
6174
6175 2005-09-09  Richard Guenther  <rguenther@suse.de>
6176
6177         PR c++/23624
6178         * fold-const.c (fold_ternary): Check truth_value_p before
6179         calling invert_truthvalue.
6180
6181 2005-09-09  Nick Clifton  <nickc@redhat.com>
6182
6183         * Makefile.in (LIBGCC_DEPS): Add libgcc2.h.
6184         * libgcc2.c (__clz_tab[], __popcount_tab[]): Set the fixed
6185         dimension of these arrays.
6186         * libgcc2.h (__clz_tab[], __popcount_tab[]): Add exports of
6187         these arrays.
6188         * longlong.h: Only provide a prototype for the __clz_tab[] array
6189         if this header has not been included from libgcc2.h.
6190         * config/stormy16/stormy16-lib2.c: Include libgcc2.h rather than
6191         defining own types.
6192         Provide prototypes for exported functions.
6193         Use the __clz_tab[] and __popcount_tab[] arrays provided by
6194         libgcc2.c.
6195
6196 2005-09-08  Josh Conner  <jconner@apple.com>
6197
6198         PR c++/21135
6199         PR c++/23180
6200         * expr.c (expand_expr_addr_expr_1): Don't invoke
6201         expand_simple_binop for EXPAND_INITIALIZER.
6202
6203 2005-09-08  Richard Henderson  <rth@redhat.com>
6204
6205         PR debug/23190
6206         * toplev.c (wrapup_global_declaration_1): Split out ...
6207         (wrapup_global_declaration_2): ... from ...
6208         (wrapup_global_declarations): ... here.  Return bool.
6209         (check_global_declaration_1): Split out ...
6210         (check_global_declarations): from here.
6211         (emit_debug_global_declarations): New.
6212         * toplev.h (wrapup_global_declaration_1, wrapup_global_declaration_2,
6213         check_global_declaration_1, emit_debug_global_declarations): Declare.
6214         * c-decl.c (c_write_global_declarations_1): Don't create a vector
6215         of decls.  Call wrapup_global_declaration_1,
6216         wrapup_global_declaration_2, check_global_declaration_1 directly.
6217         (c_write_global_declarations_2): New.
6218         (ext_block): New.
6219         (c_write_global_declarations): Call c_write_global_declarations_2.
6220         * langhooks.c (write_global_declarations): Call
6221         emit_debug_global_declarations.
6222
6223         * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Don't
6224         remove decls that have DECL_RTL_SET_P.
6225         * passes.c (rest_of_decl_compilation): Invoke
6226         cgraph_varpool_finalize_decl for all but functions.
6227
6228 2005-09-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
6229
6230         * tree-vrp.c (extract_range_from_unary_expr): Do not set the range for
6231         the result of a conversion if the new min and max cannot be compared.
6232
6233 2005-09-08  Andreas Krebbel  <krebbel1@de.ibm.com>
6234
6235         * config/s390/s390.c (s390_sr_alias_set): Variable removed.
6236         (override_options): Setting s390_sr_alias_set removed.
6237         (save_fpr, save_gprs): Set alias set to vararg or frame.
6238         (restore_fpr, restore_gprs, s390_emit_prologue): Replace
6239         s390_sr_alias_set with get_frame_alias_set ().
6240         (s390_gimplify_va_arg): Replace s390_sr_alias_set with
6241         get_varargs_alias_set ().
6242
6243 2005-09-08  Andrew Pinski  <pinskia@physics.uc.edu>
6244
6245         PR objc/20574
6246         PR objc/19324
6247         * c-parser.c (c_parser_objc_method_definition): If the next
6248         token is not "{", error out and don't start the function.
6249
6250 2005-09-08  Andrew Pinski  <pinskia@physics.uc.edu>
6251
6252         * tree-vrp.c (extract_range_from_expr): Move the check for non
6253         nullness after the check for gimple invariant.
6254
6255 2005-09-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6256
6257         * tree.c (host_integerp, tree_low_cst): Correct function comment.
6258
6259 2005-09-08  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
6260
6261         PR target/23747
6262         * config/m32r.md (movmemsi_internal): Canonicalize order of
6263         operands in PLUS component of template.
6264
6265 2005-09-07  Andreas Krebbel  <krebbel1@de.ibm.com>
6266
6267         * reload1.c (fixup_eh_region_note): Remove assertion.
6268         (fixup_abnormal_edges): Reverted removal of call to
6269         find_many_sub_basic_blocks made on 2005-08-31.
6270
6271 2005-09-07  Richard Henderson  <rth@redhat.com>
6272
6273         * function.c (ARG_POINTER_CFA_OFFSET): Move ...
6274         * defaults.h (ARG_POINTER_CFA_OFFSET): ... here.
6275         (INCOMING_FRAME_SP_OFFSET): Move from dwarf2out.c.
6276         * dwarf2out.c (struct cfa_loc): Change reg to unsigned int,
6277         rearrange for better packing.
6278         (INCOMING_FRAME_SP_OFFSET): Move to defaults.h.
6279         (lookup_cfa_1): Remove inline marker.
6280         (cfa_equal_p): Split out of ...
6281         (def_cfa_1): ... here.  Use INVALID_REGNUM.
6282         (build_cfa_loc): Handle !cfa->indirect.
6283         (frame_pointer_cfa_offset): New.
6284         (dbx_reg_number): Assert register elimination performed; do
6285         leaf register remapping.
6286         (reg_loc_descriptor): Avoid calling dbx_reg_number when unused.
6287         (eliminate_reg_to_offset): New.
6288         (based_loc_descr): Remove can_use_fbreg argument.  Use fbreg only
6289         for verifiably local stack frame addresses; re-base to CFA.
6290         (mem_loc_descriptor): Remove can_use_fbreg argument.
6291         (concat_loc_descriptor, loc_descriptor): Likewise.
6292         (containing_function_has_frame_base): Remove.
6293         (rtl_for_decl_location): Don't do register elimination or
6294         leaf register remapping here.
6295         (secname_for_decl): Split out from ..
6296         (add_location_or_const_value_attribute): ... here.
6297         (convert_cfa_to_loc_list): New.
6298         (compute_frame_pointer_to_cfa_displacement): New.
6299         (gen_subprogram_die): Use them.
6300         * tree.h (frame_base_decl): Remove.
6301         * var-tracking.c (frame_base_decl, frame_stack_adjust): Remove.
6302         (prologue_stack_adjust): Remove.
6303         (vt_stack_adjustments): Use INCOMING_FRAME_SP_OFFSET.
6304         (adjust_stack_reference): Re-base memories to arg_pointer_rtx.
6305         (set_frame_base_location): Remove.
6306         (compute_bb_dataflow, emit_notes_in_bb): Don't call it.
6307         (dump_attrs_list, dump_dataflow_set): Use string concatenation.
6308         (vt_add_function_parameters): Don't eliminate_regs.
6309         (vt_initialize): Don't create frame_base_decl.
6310
6311 2005-09-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
6312
6313         * doc/install.texi (*-*-solaris2*): Clarify wording on the recommended
6314         version of GNU binutils for 4.x and later.
6315
6316 2005-09-06  Mark Mitchell  <mark@codesourcery.com>
6317
6318         * ggc-page.c (ggc_push_context): Remove.
6319         (ggc_pop_context): Likewise.
6320         * ggc.h (ggc_push_context): Remove.
6321         (ggc_pop_context): Likewise.
6322
6323 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
6324
6325         PR target/8973
6326         * config/arc/arc.c (arc_output_function_epilogue): Update flags while
6327         returning from an interrupt handler.
6328
6329 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
6330
6331         PR target/8972
6332         * config/arc/arc.c (output_shift): Add check for loop count when
6333         optimizing.
6334
6335 2005-09-06  Steven Bosscher  <stevenb@suse.de>
6336
6337         * tree-ssa-phiopt.c (conditional_replacement): Construct proper SSA
6338         form manually.
6339         (abs_replacement): Likewise.
6340         (pass_phiopt): Remove TODO_update_ssa.
6341
6342 2005-09-06  Jakub Jelinek  <jakub@redhat.com>
6343
6344         PR c/23075
6345         * c-typeck.c (c_finish_return): Set TREE_NO_WARNING on RETURN_EXPR
6346         if "return with no value, in function returning non-void" warning
6347         has been issued.
6348         * tree-cfg.c (execute_warn_function_return): Don't look at
6349         RETURN_EXPRs with TREE_NO_WARNING set.
6350
6351         PR target/22362
6352         * config/i386/i386.c (ix86_function_regparm): Make sure automatic regparm
6353         for internal functions doesn't use registers used by global registers
6354         variables.  Use fewer register parameters if there are global register
6355         variables.
6356
6357 2005-09-06  Olivier Hainque  <hainque@adacore.com>
6358             Eric Botcazou  <ebotcazou@adacore.com>
6359
6360         PR middle-end/14997
6361         * expr.c (expand_expr_real) <normal_inner_ref>: Force op0 to mem
6362         when we would be extracting outside its bit span (bitpos+bitsize
6363         larger than its mode), possible with some VIEW_CONVERT_EXPRs from
6364         Ada unchecked conversions.
6365
6366 2005-09-06  Steven Bosscher  <stevenb@suse.de>
6367
6368         * tree-ssa-pre.c (try_look_through_load): New function.
6369         (compute_avail): Use it to try to look through loads for some
6370         more useful expressions.
6371
6372 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
6373
6374         * simplify-rtx.c (simplify_binary_operation_1): Correct the
6375         condition for detecting cases like (a&a) and (a^a).
6376
6377 2005-09-06  Keith Besaw  <kbesaw@us.ibm.com>
6378
6379         * common.opt: Add option ftree-vect-loop-version.
6380         * params.def: Add --param vect-max-version-checks.
6381         * doc/invoke.texi: Document ftree-vect-loop-version and
6382         --param vect-max-version-checks.
6383         * tree-vectorizer.h (_loop_vec_info): Add ptr_mask and
6384         may_misalign_stmts and defines for accessors.
6385         * tree-vectorizer.c : (new_loop_vec_info): VEC_alloc for
6386         LOOP_VINFO_MAY_MISALIGN_STMTS.
6387         (destroy_loop_vec_info): VEC_free for
6388         LOOP_VINFO_MAY_MISALIGN_STMTS.
6389         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
6390         Update documentation.
6391         (vect_update_misalignment_for_peel): New.
6392         (vect_enhance_data_refs_alignment): Update to choose loop
6393         peeling or loop versioning if appropriate for the (potentially)
6394         unaligned data references in the loop.
6395         (vect_analyze_data_refs_alignment): Remove call to
6396         vect_enhance_data_refs_alignment so the checks can be done
6397         earlier.
6398         (vect_analyze_loop): Add call to vect_enhance_data_refs_alignment
6399         and move up call to vect_analyze_data_refs_alignment.
6400         * tree-vect-transform.c (vect_create_cond_for_align_checks): New.
6401         (vect_transform_loop): Add call to loop_version.
6402
6403 2005-09-06  Jakub Jelinek  <jakub@redhat.com>
6404
6405         PR rtl-optimization/23098
6406         * cse.c (fold_rtx_mem): Call delegitimize_address target hook.
6407         * simplify-rtx.c (constant_pool_reference_p): New function.
6408         * rtl.h (constant_pool_reference_p): New prototype.
6409         * config/i386/i386.md (pushf split, mov[sdx]f split): Use
6410         constant_pool_reference_p in condition and
6411         avoid_constant_pool_reference in preparation statements.
6412
6413 2005-09-06  Andreas Krebbel  <krebbel1@de.ibm.com>
6414
6415         * gcse.c (try_replace_reg): Disallow REG_EQUAL notes for
6416         STRICT_LOW_PART SETs.
6417
6418 2005-09-06  Alan Modra  <amodra@bigpond.net.au>
6419
6420         PR middle-end/21460
6421         * except.c (sjlj_emit_function_enter): Find the function begin
6422         note even when it's not in first basic block.
6423
6424 2005-09-06  Kelley Cook  <kcook@gcc.gnu.org>
6425
6426         * acinclude.m4: Renamed from aclocal.m4.  Delete AM_LANGINFO_CODESET,
6427         AM_PROG_CC_C_O, and AM_AUX_DIR_EXPAND.
6428         * aclocal.m4: Regenerate.
6429
6430 2005-09-05  DJ Delorie  <dj@redhat.com>
6431
6432         * config/m32c/m32c.h (TRAMPOLINE_ALIGNMENT): Correct misspelling
6433         of macro.
6434
6435 2005-09-06  Kazu Hirata  <kazu@codesourcery.com>
6436
6437         * gimplify.c, ipa-prop.h, varasm.c, config/vxlib.c,
6438         config/vxworks.h, config/crx/crx.c, config/ms1/ms1.c,
6439         config/ms1/ms1.md, config/rs6000/rs6000.c: Fix comment typos.
6440         Follow spelling conventions.
6441         * doc/invoke.texi: Follow spelling conventions.
6442
6443 2005-09-05  J"orn Rennecke <joern.rennecke@st.com>
6444
6445         * rtl.h (gen_frame_mem, gen_tmp_stack_mem): Declare.
6446         * emit-rtl.c (gen_frame_mem, gen_tmp_stack_mem): New functions.
6447         * builtins.c (expand_builtin_return_addr): Use gen_frame_mem.
6448
6449 2005-09-05  J"orn Rennecke <joern.rennecke@st.com>
6450
6451         PR target/23683
6452         * sh.c (sh_reorg, emit_load_ptr): Use gen_const_mem.
6453         (output_stack_adjust): Use gen_tmp_stack_mem.
6454         (sh_expand_prologue, sh_expand_epilogue): Use gen_frame_mem.
6455         (sh_set_return_address, sh_allocate_initial_value): Likewise.
6456         (sh_get_pr_initial_val): Likewise.
6457         (sh_builtin_saveregs): Use gen_frame_mem and change_address.
6458         (sh_initialize_trampoline): Likewise.  Also use adjust_address.
6459         * sh.md (divsi_inv_m0): Use gen_const_mem.
6460         (push_fpscr, pop_fpscr, load_ra): Use gen_frame_mem.
6461         (movdf_i4+1): Use gen_tmp_stack_mem.
6462         (reload_outdf+3, reload_outdf+4, fpu_switch+1): Use change_address.
6463         (fpu_switch+2): Likewise.
6464         (movv4sf_i, movv16sf_i): Use adjust_address.
6465         (symGOT_load): Set MEM_NOTRAP_P bit.
6466
6467 2005-09-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6468
6469         PR target/23721
6470         * pa.c (emit_move_sequence): Fix typo in last change.
6471
6472 2005-09-03  Jakub Jelinek  <jakub@redhat.com>
6473
6474         PR rtl-optimization/23454
6475         * reorg.c (relax_delay_slots): Only call invert_jump if any_condjump_p
6476         is true.
6477
6478 2005-09-03  Richard Henderson  <rth@redhat.com>
6479             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6480
6481         PR middle-end/23671
6482         * pa.c (emit_move_sequence): Use replace_equiv_address instead of
6483         gen_rtx_MEM.
6484
6485 2005-09-02  Nicolas Pitre <nico@cam.org>
6486
6487         * config/arm/arm.c (arm_legitimize_address): Limit the value passed
6488         to bit_count to 32 bits.
6489
6490 2005-08-31  Mark Mitchell  <mark@codesourcery.com>
6491
6492         PR c++/23167
6493         * gimplify.c (gimplify_expr): Handle TREE_ADDRESSABLE types when
6494         generating synthetic loads from volatile lvalues.
6495
6496 005-09-02  Nick Clifton  <nickc@redhat.com>
6497
6498         * config/stormy16/stormy16-lib2.c (__popcounthi2, __parityhi2,
6499         __ctzhi2, __clzhi2): New functions.
6500
6501 2005-09-02  Andrew Pinski  <pinskia@physics.uc.edu>
6502
6503         PR middle-end/23547
6504         * tree-nested.c (struct var_map_elt): Mark with GTY.
6505         (struct nesting_info): Mark with GTY.  Mark var_map's param is struct
6506         var_map_elt.
6507         (lookup_field_for_decl): Allocate new element in GC memory.
6508         (lookup_tramp_for_decl): Likewise.
6509         (convert_nl_goto_reference): Likewise
6510         (create_nesting_tree): Allocate info in GC memory. Likewise for
6511         info->var_map.
6512         (free_nesting_tree): Free with ggc_free instead of free.
6513         (root): New static variable.
6514         (lower_nested_functions): Remove root as local variable.  And zero out
6515         root at the end of the function.
6516
6517 2005-09-02  J"orn Rennecke <joern.rennecke@st.com>
6518
6519         PR rtl-optimization/20365
6520         * simplify-rtx.c (simplify_plus_minus_op_data): Change type of neg
6521         to short.  New member ix.
6522         (simplify_plus_minus_op_data_cmp): Break ties using ix member.
6523         (simplify_plus_minus): Initialize ix members before calling qsort.
6524
6525 2005-09-02  Zdenek Dvorak  <dvorakz@suse.cz>
6526
6527         PR tree-optimization/23626
6528         * tree-cfg.c (replace_uses_by): Clean up eh info.
6529
6530 2005-09-01  DJ Delorie  <dj@redhat.com>
6531
6532         * config/m32c/m32c.c (m32c_valid_pointer_mode): Remove stray debug
6533         fprintf.
6534
6535 2005-09-01  David Edelsohn  <edelsohn@gnu.org>
6536
6537         * config/rs6000/rs6000.c (setup_incoming_varargs): Set MEM_NOTRAP_P.
6538         (rs6000_split_multireg_move): Use replace_equiv_address instead of
6539         gen_rtx_MEM.
6540
6541 2005-09-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
6542
6543         * c-decl.c (diagnose_mismatched_decls):  With -Wredundant-decls,
6544         do not issue warning for a variable definition following
6545         a declaration.
6546
6547 2005-09-01  Richard Henderson  <rth@redhat.com>
6548
6549         PR 23668
6550         * config/i386/i386.c (ix86_expand_vector_init_one_var): Restore
6551         conversion to CONST_VECTOR.
6552
6553 2005-09-01  Richard Henderson  <rth@redhat.com>
6554
6555         PR 23676
6556         * reload1.c (reload_as_needed): Check !CALL_P before calling
6557         fixup_eh_region_note.
6558         * rtlanal.c (may_trap_p): SUBREG by itself cannot trap.
6559
6560 2005-09-01  DJ Delorie  <dj@redhat.com>
6561
6562         * varasm.c (output_constant): Let the target resolve
6563         conversions of addresses to non-default pointer sizes.
6564
6565 2005-09-01  Nicolas Pitre <nico@cam.org>
6566
6567         * config/arm/arm.c (arm_legitimize_address): Split absolute addresses
6568         to alow matching ARM pre-indexed addressing mode.
6569         (arm_override_options): Remove now irrelevant comment.
6570
6571 2005-09-01  Phil Edwards  <phil@codesourcery.com>
6572
6573         * config.gcc (i*86-wrs-vxworks):  Update.  Split out vxworksae target.
6574         * config/i386/t-vxworks:  Update multilibs for VxWorks 6 and RTP mode.
6575         * config/i386/vxworks.h:  Likewise.
6576         * config/i386/t-vxworksae:  New file, for VxWorks AE.
6577         * config/i386/vxworksae.h:  Likewise.
6578
6579 2005-09-01  Sebastian Pop  <pop@cri.ensmp.fr>
6580
6581         PR tree-optimization/23410
6582         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Check that the
6583         sequence is not wrapping during the first step.
6584
6585 2005-09-01  Jakub Jelinek  <jakub@redhat.com>
6586
6587         PR debug/7241
6588         * dwarf2out.c (base_type_die): Compare char_type_node with
6589         TYPE_MAIN_VARIANT (type), not type.
6590
6591 2005-09-01  Richard Guenther  <rguenther@suse.de>
6592
6593         PR tree-optimization/15366
6594         * common.opt: Add -finline-functions-called-once.
6595         Put -fearly-inlining in alphabetically ordered place.
6596         * doc/invoke.texi: Document new option.
6597         * ipa-inline.c (cgraph_decide_inlining): Honour
6598         flag_inline_functions_called_once.
6599
6600 2005-09-01  Jakub Jelinek  <jakub@redhat.com>
6601
6602         PR rtl-optimization/23478
6603         * local-alloc.c (struct qty): Add n_throwing_calls_crossed field.
6604         (alloc_qty): Initialize it.
6605         (update_equiv_regs): Clear REG_N_THROWING_CALLS_CROSSED.
6606         (combine_regs): Combine also n_throwing_calls_crossed fields.
6607         (find_free_reg): Don't attempt to caller-save pseudos crossing
6608         calls that might throw.
6609         * global.c (struct allocno): Add throwing_calls_crossed field.
6610         (global_alloc): Revert 2005-08-22 change.  Initialize
6611         throwing_calls_crossed.
6612         (find_reg): Don't attempt to caller-save pseudos crossing calls that
6613         might throw.
6614
6615 2005-09-01  Alan Modra  <amodra@bigpond.net.au>
6616
6617         PR target/23649
6618         * config/rs6000/predicates.md (mask_operand): Only handle rlwinm masks.
6619         (mask64_operand): Reinstate code prior to 2005-06-11 change.
6620         (mask64_2_operand): Reinstate code prior to 2004-11-11 change.
6621         (and64_2_operand): Tweak to use predicate.
6622         (and_operand): Adjust for mask_operand changes.
6623         * config/rs6000/rs6000.c (num_insns_constant): Revert 2005-06-11.
6624         (print_operand): Likewise.
6625         (rs6000_rtx_costs): Pass mode to mask_operand and use mask64_operand.
6626         (mask64_1or2_operand): Delete.
6627         * rs6000/rs6000-protos.h (mask64_1or2_operand): Delete.
6628         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT <S>): Revert 2005-06-11.
6629         (EXTRA_CONSTRAINT <T>): Pass operand mode to predicate.
6630         (EXTRA_CONSTRAINT <t>): Disallow mask64_operand matches.
6631         * config/rs6000/rs6000.md (andsi3_internal3 split): Revert 2005-06-11.
6632         (rotldi3_internal4): Likewise.
6633         (rotldi3_internal5, rotldi3_internal5 split): Likewise.
6634         (rotldi3_internal6, rotldi3_internal6 split): Likewise.
6635         (ashldi3_internal7): Likewise.
6636         (ashldi3_internal8, ashldi3_internal8 split): Likewise.
6637         (ashldi3_internal, ashldi3_internal9 split): Likewise.
6638         (anddi3 split): Don't match mask64_operand.
6639         (anddi3_internal2): Add rlwinm.  Modify 't' splitter predicate.
6640         (anddi3_internal3): Add rlwinm.  Use and64_2_operand in non-cr0
6641         splitter and match TARGET_64BIT not TARGET_POWERPC64.  Modify
6642         't' splitter predicate.
6643         (movdi_internal64 + 2): Revert 2005-06-11 change.
6644
6645 2005-08-31  DJ Delorie  <dj@redhat.com>
6646
6647         * config/m32c/m32c.c (m32c_valid_pointer_mode): New.
6648         (m32c_asm_integer): Add support for 32 bit pointers.
6649
6650 2005-08-31  Richard Henderson  <rth@redhat.com>
6651
6652         * emit-rtl.c (set_mem_attributes_minus_bitpos): Look through
6653         component-like references for setting MEM_NOTRAP_P.
6654
6655         * config/i386/i386.c (ix86_setup_incoming_varargs): Set MEM_NOTRAP_P.
6656         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
6657
6658 2005-08-31  Richard Henderson  <rth@redhat.com>
6659
6660         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Force subregs
6661         into a pseudo before applying gen_lowpart.
6662
6663 2005-08-31  Geoffrey Keating  <geoffk@apple.com>
6664
6665         * doc/install.texi (Specific): Update cctools version required
6666         for full functionality.
6667         * config/darwin.h (LINK_SPEC): Pass -mmacosx-version-min to the
6668         linkers as -macosx_version_min.
6669
6670 2005-08-31  J"orn Rennecke <joern.rennecke@st.com>
6671
6672         PR target/21255
6673         * sh.c (print_operand, %R and %S): Add handling of floating point
6674         registers, memory, constants and invalid operands.
6675
6676 2005-08-31  Daniel Berlin  <dberlin@dberlin.org>
6677
6678         * ipa-pure-const.c: Change dump name.
6679
6680 2005-08-31 Uros Bizjak <uros@kss-loka.si>
6681
6682         PR target/23570
6683         * config/i386/sse.md (*sse_concatv2sf): Change operand 2 constraint
6684         to "reg_or_0_operand".
6685         (sse2_loadld): Change operand 1 constraint to "reg_or_0_operand".
6686
6687 2005-08-31  Dale Johannesen  <dalej@apple.com>
6688
6689         * loop-iv.c (iv_number_of_iterations):  Fix overflow check for
6690         loops that count down.
6691
6692 2005-08-31  Richard Henderson  <rth@redhat.com>
6693
6694         PR rtl-opt/23601
6695         * reload1.c (reload): Set MEM_NOTRAP_P in spill slots.
6696         (fixup_eh_region_note): New.
6697         (reload_as_needed): Call it.
6698         (fixup_abnormal_edges): Allow all throwing insns to be deleted;
6699         don't call find_many_sub_basic_blocks; call verify_flow_info.
6700         * function.c (assign_stack_local_1): Set MEM_NOTRAP_P.
6701         (keep_stack_depressed): Likewise.
6702         (assign_stack_temp_for_type): Likewise; use adjust_address_nv.
6703
6704 2005-08-31  Richard Henderson  <rth@redhat.com>
6705
6706         * config/i386/i386.c (ix86_function_ok_for_sibcall): Fix test for
6707         fp return matching.
6708
6709 2005-08-31  Fariborz Jahanian <fjahanian@apple.com>
6710
6711         * expr.c (expand_expr_real_1): Compare size of address
6712         mode to target's address mode size in deciding expansion of
6713         the constant address.
6714
6715 2005-08-31  Richard Guenther  <rguenther@suse.de>
6716
6717         PR middle-end/23477
6718         * expr.c (all_zeros_p): New function.
6719         (expand_expr_real_1): Handle the case of an all-zero
6720         non-addressable constructor separately.
6721
6722 2005-08-31  Adrian Straetling  <straetling@de.ibm.com>
6723
6724         * builtins.c: (expand_builtin_strcpy, expand_builtin_strcat): Change
6725         arguments, adjust all callers.
6726         (expand_builtin_strcat): Rewrite to call strcpy instead of mempcpy.
6727
6728 2005-08-30  Richard Henderson  <rth@redhat.com>
6729
6730         PR target/23630
6731         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Use gen_lowpart
6732         whenever the mode sizes match.
6733
6734 2005-08-31  Alan Modra  <amodra@bigpond.net.au>
6735
6736         * calls.c (load_register_parameters): Fix comment typo.
6737         * expr.c (emit_push_insn): Comment formatting.
6738
6739 2005-08-30  Ian Lance Taylor  <ian@airs.com>
6740
6741         * config/i386/x-cygwin (host-cygwin): Change dependency from
6742         hosthooks-def.h to $(HOSTHOOKS_DEF_H).
6743
6744 2005-08-29  Geoffrey Keating  <geoffk@apple.com>
6745
6746         * config/i386/i386.c (ix86_expand_vector_init_one_var): Don't modify
6747         parts of 'vals'.
6748
6749 2005-08-29  Andrew Pinski  <pinskia@physics.uc.edu>
6750
6751         PR middle-end/23408
6752         * ipa-inline.c (cgraph_decide_inlining_incrementally): Remove the
6753         call to ggc_collect.
6754
6755 2005-08-29  Paolo Bonzini  <bonzini@gnu.org>
6756
6757         PR bootstrap/21268
6758         * Makefile.in (ALL_CPPFLAGS): Include $(INCLUDES) at the
6759         beginning.  Remove $(INCLUDES) from all the rules, if following
6760         $(ALL_CPPFLAGS) or $(BUILD_CPPFLAGS).
6761
6762 2005-08-29  Jakub Jelinek  <jakub@redhat.com>
6763
6764         PR middle-end/23484
6765         * builtins.c (fold_builtin_memory_chk, fold_builtin_stxcpy_chk,
6766         fold_builtin_strncpy_chk, fold_builtin_snprintf_chk): If len is
6767         not constant, but maxlen is, don't set len to maxlen, rather
6768         set maxlen to len if len is a constant.
6769
6770 2005-08-29  Zdenek Dvorak  <dvorakz@suse.cz>
6771
6772         PR tree-optimization/23475
6773         * tree-ssa-loop-ivcanon.c (remove_empty_loop): Update frequencies
6774         and counts.
6775
6776 2005-08-28  Daniel Berlin  <dberlin@dberlin.org>
6777
6778         Fix PR middle-end/22455
6779
6780         * fold-const.c (fold_checksum_tree): Adjust for now-largest tree size.
6781         Checksum only the parts of the tree that exist for the tree code.
6782
6783 2005-08-28  Dale Johannesen  <dalej@apple.com>
6784
6785         * config/i386/i386.c (nocona_cost):  Increase MOVE_RATIO.
6786
6787 2005-08-28  Andrew Pinski  <pinskia@physics.uc.edu>
6788
6789         * tree-vrp.c: Remove obsolete comment in front of vrp_initialize.
6790
6791 2005-08-28  Richard Henderson  <rth@redhat.com>
6792
6793         * stor-layout.c (finalize_type_size): Revert workaround from 08-26.
6794         * tree.c (make_node_stat): Use BITS_PER_UNIT instead of alignment
6795         of char_type_node.
6796
6797 2005-08-28  Jakub Jelinek  <jakub@redhat.com>
6798
6799         PR ada/23593
6800         * builtins.c (get_memory_rtx): Don't strip nops
6801         in between COMPONENT_REFs.
6802
6803 2005-08-27  Andrew Pinski  <pinskia@physics.uc.edu>
6804
6805         PR middle-end/23463
6806         * gimplify.c (gimplify_modify_expr_rhs): Remove check for zero sized
6807         types.
6808         (gimplify_modify_expr): Check for zero sized types and gimplify the
6809         rhs and lhs as statements.
6810
6811 2005-08-27  John David Anglin  <dave.anflin@nrc-cnrc.gc.ca>
6812
6813         PR libgcj/23508
6814         * pa/linux-unwind.h (pa32_fallback_frame_state): Use r0 slot in frame
6815         state for return address column of signal frames.
6816
6817 2005-08-27  David Edelsohn  <edelsohn@gnu.org>
6818
6819         PR target/23539
6820         * config/rs6000/rs6000.c (expand_block_clear): Use HImode when
6821         bytes >= 2 not bytes == 2.
6822         (expand_block_move): Same.
6823
6824 2005-08-27  Richard Guenther  <rguenther@suse.de>
6825
6826         PR target/23575
6827         * config/i386/sse.md (sse2_movsd): Add missing closing
6828         braces.
6829
6830 2005-08-27  Paul Brook  <paul@codesourcery.com>
6831
6832         * genrecog.c (enum decision_type): Add DT_num_insns.
6833         (struct decision_test): Add u.num_insns.
6834         (add_to_sequence): Add DT_num_insns test.
6835         (maybe_both_true_2, nodes_identical_1): Handle DT_num_insns.
6836         (write_cond, debug_decision_2): Ditto.
6837         (change_state): Assume peep2_next_insn never fails.
6838         Remove "afterward" argument.
6839         (write afterward, write_tree): Update to match.
6840         * recog.c (peep2_current_count): New variable.
6841         (peep2_next_insn): Check it.
6842         (peephole2_optimize): Set peep2_current_count.
6843         * recog.h (peep2_current_count): Declare.
6844
6845 2005-08-26  Josh Conner  <jconner@apple.com>
6846
6847         PR middle-end/23584
6848         * ipa-pure-const.c (check_tree): Check for volatile-ness
6849         when considering a dereference.
6850
6851 2005-08-27  Jakub Jelinek  <jakub@redhat.com>
6852
6853         * rtl.h (MEM_IN_STRUCT_P): Fix comment typo.
6854
6855 2005-08-26  Jakub Jelinek  <jakub@redhat.com>
6856
6857         PR rtl-optimization/23561
6858         * builtins.c (get_memory_rtx): Add LEN argument.  If MEM_EXPR is
6859         a COMPONENT_REF, remove all COMPONENT_REF from MEM_EXPR unless
6860         at most LEN bytes long memory fits into the field.
6861         (expand_builtin_memcpy, expand_builtin_mempcpy, expand_movstr,
6862         expand_builtin_strncpy, expand_builtin_memset, expand_builtin_memcmp,
6863         expand_builtin_strcmp, expand_builtin_strncmp): Adjust callers.
6864
6865 2005-08-26  Richard Henderson  <rth@redhat.com>
6866
6867         PR rtl-opt/23560
6868         * loop.c (biased_biv_may_wrap_p): New.
6869         (maybe_eliminate_biv_1): Use it to suppress non-equality
6870         comparison transformations.  Delete disabled code.
6871
6872 2005-08-26  Ian Lance Taylor  <ian@airs.com>
6873
6874         * combine.c (make_extraction): Avoid reference outside object.
6875
6876 2005-08-26  J"orn Rennecke <joern.rennecke@st.com>
6877
6878         * stor-layout.c (finalize_type_size): Restore behaviour for
6879         non-aggregate types to the status quo ante of the patch for
6880         pr 23467.  Document why it matters.
6881
6882 2005-08-26  Jakub Jelinek  <jakub@redhat.com>
6883
6884         PR c/23506
6885         * c-common.c (c_common_nodes_and_builtins): Increase builtin_types
6886         array by one element, initialize the BT_LAST element with NULL.
6887
6888 2005-08-26  David Edelsohn  <edelsohn@gnu.org>
6889
6890         * config/rs6000/rs6000.md (eq<mode>_compare): Only enable when
6891         optimizing for size.
6892         (plus_eqsi): Same.
6893         (compare_plus_eqsi): Same.
6894         (plus_eqsi_compare): Same.
6895         (neg_eq0<mode>): Same.
6896         (neg_eq<mode>): Same.
6897
6898         * config/rs6000/aix52.h (PROCESSOR_DEFAULT): Change to
6899         PROCESSOR_POWER4.
6900
6901 2005-08-26  Nick Clifton  <nickc@redhat.com>
6902
6903         * config/v850/v850.c (ep_memory_operand): Return FALSE if
6904         TARGET_EP is not defined.
6905         * config/v850/c850.h (TARGET_CPU_CPP_BUILTINS): Define __EP__ if
6906         TARGET_EP is enabled.
6907         (OPTIMIZATION_OPTIONS): Do not define MASK_EP when optimizing.
6908         * config/v850/v850.md (save_all_interrupt): Only use the EP
6909         register if TARGET_EP is defined.
6910         (restore_all_interrupt): Likewise.
6911         * config/v850/lib1funcs.asm: Update functions so that the EP
6912         register is only used if __EP__ is defined.
6913
6914 2005-08-26  David Ung  <davidu@mips.com>
6915
6916         * config/mips/mips.c (mips_expand_prologue): Handle case when
6917         generating for MIPS16 and the outgoing argument area is more than
6918         SMALL_OPERAND. Use the frame pointer as temporary to generate the
6919         add instruction.
6920
6921 2005-08-26  Paul Woegerer  <paul.woegerer@nsc.com>
6922
6923         * config/crx/crx.md: Make doloop_end pattern usage controllable
6924         via mloop-nesting=<max-nesting> command line switch. Make sure
6925         the combiner cannot use doloop_end_<mode> in an illegal way.
6926         * config/crx/crx.c: Use regs up to r6 for argument passing.
6927         Refine crx_address_cost (non cst4 displacements are expensive).
6928         * config/crx/crx.opt: Add switch for mloop-nesting=.
6929
6930 2005-08-26  Adrian Straetling  <straetling@de.ibm.com>
6931
6932         * config/s390/s390.md: ("movstr", "*movstr"): Add patterns.
6933         (UNSPEC_MVST): New constant.
6934
6935 2005-08-26  Andreas Krebbel  <krebbel1@de.ibm.com>
6936
6937         * config/s390/predicates.md ("shift_count_operand", "setmem_operand"):
6938         Reject operands containing eliminable registers.
6939         * testsuite/gcc.dg/20050825-1.c: New testcase.
6940
6941 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
6942             Jan Hubicka  <jh@suse.cz>
6943
6944         * regmove.c (reg_is_remote_constant_p): Reorganize to not use log links.
6945
6946 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
6947
6948         PR tree-optimization/23546
6949         * tree-ssa-loop-im.c (for_each_index): Handle INTEGER_CST
6950         and REAL_CST nodes.
6951
6952 2005-08-24  Pete Steinmetz  <steinmtz@us.ibm.com>
6953
6954         * params.def (PARAM_MIN_SPEC_PROB): New.
6955         * sched-rgn.c (MIN_PROBABILITY): Delete.
6956         (compute_trg_info): Convert to PARAM_VALUE.
6957         * doc/invoke.texi (param): Document min-spec-prob.
6958
6959 2005-08-24  Fariborz Jahanian <fjahanian@apple.com>
6960
6961         * config/darwin.h: define __PIC__
6962         * config/rs6000/darwin.h: Add SUBTARGET_OS_CPP_BUILTINS to
6963         TARGET_OS_CPP_BUILTINS macro.
6964
6965 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
6966
6967         * config/rs6000/rs6000.md: Fix thinko in the peephole2 I added
6968         yesterday.
6969
6970 2005-08-24  Zdenek Dvorak  <dvorakz@suse.cz>
6971
6972         * bb-reorder.c (copy_bb, duplicate_computed_gotos): Add argument
6973         to duplicate_block.
6974         * cfghooks.c (duplicate_block): Added position where to place
6975         new block as argument.
6976         * cfghooks.h (duplicate_block): Declaration changed.
6977         * cfglayout.c (copy_bbs): Add argument after.  Pass it to
6978         duplicate_block.
6979         * cfglayout.h (copy_bbs): Declaration changed.
6980         * cfgloop.h (loop_version): Declaration changed.
6981         * cfgloopmanip.c (duplicate_loop_to_header_edge): Pass
6982         position to copy_bbs.
6983         (loop_version): Pass position to duplicate_loop_to_header_edge.
6984         Add place_after argument and position new blocks according to
6985         it.
6986         * modulo-sched.c (sms_schedule): Pass place_after argument
6987         to loop_version.
6988         * tracer.c (tail_duplicate): Pass argument to duplicate_block.
6989         * tree-cfg.c (split_edge_bb_loc): New function.
6990         (tree_split_edge, tree_duplicate_sese_region): Use split_edge_bb_loc
6991         to determine position of new blocks.
6992         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass argument
6993         to loop_version.
6994         * tree-ssa-threadupdate.c (create_block_for_threading): Pass
6995         argument to duplicate_block.
6996         * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg):
6997         Pass position to copy_bbs.
6998
6999 2005-08-24  Zdenek Dvorak  <dvorakz@suse.cz>
7000
7001         * fold-const.c (ptr_difference_const): Use
7002         cst_and_fits_in_hwi instead of host_integerp.
7003
7004 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
7005
7006         * config/darwin.c (gen_pic_offset): New.
7007         (machopic_indirect_data_reference,  machopic_legitimize_pic_address):
7008         Use it.
7009
7010 2005-08-23  Zdenek Dvorak  <dvorakz@suse.cz>
7011
7012         PR tree-optimization/23486
7013         * tree-ssa-loop.c (pass_scev_cprop): Add TODO_update_ssa_only_virtuals.
7014
7015 2005-08-23  Phil Edwards  <phil@codesourcery.com>
7016
7017         * config.gcc (*-*-vxworks*):  Update tm_file, add extra_options,
7018         remove use_collect2.
7019         (powerpc-wrs-vxworks):  Update, split out *-*-vxworksae target.
7020
7021         * target-def.h (TARGET_HAVE_CTORS_DTORS):  Allow target
7022         configuration files to override the default value.
7023
7024         * config/t-vxworks:  Remove INSTALL_ASSERT_H.  Define STMP_FIXPROTO,
7025         EXTRA_HEADERS, and EXTRA_MULTILIB_PARTS.
7026         * config/vx-common.h:  New file, split out from...
7027         * config/vxworks.h:  here.  Update for VxWorks 6.x and RTP mode.
7028         * config/vxworksae.h:  New file, for VxWorks AE.
7029         * config/vxworks.opt:  New file.
7030         * config/vxlib.c:  Update for VxWorks 6.
7031
7032         * config/rs6000/t-vxworks (MULTILIB_OPTIONS):  New list.  Adjust
7033         other MULTILIB_* variables appropriately.
7034         (LIB2FUNCS_EXTRA, EXTRA_MULTILIB_PARTS):  Correct from t-ppccomm.
7035         * config/rs6000/t-vxworksae:  New file, adjust multilibs for AE.
7036         * config/rs6000/vxworks.h:  Update for VxWorks 6.
7037         * config/rs6000/vxworksae.h:  New file, mostly placeholder for now.
7038
7039 2005-08-23  Andrew Pinski  <pinskia@physics.uc.edu>
7040
7041         PR target/20799
7042         * config/darwin.c (machopic_select_section): Remove the hack to
7043         mark "::operator new" and "::operator delete" for coalescing
7044         even though they are not weak.
7045
7046 2005-08-24  Alan Modra  <amodra@bigpond.net.au>
7047
7048         * configure.ac (HAVE_LD_NO_DOT_SYMS): Set for powerpc-linux biarch.
7049         * configure: Regenerate.
7050
7051 2005-08-23  Paolo Bonzini  <bonzini@gnu.org>
7052
7053         PR middle-end/23517
7054         * fold-const.c (fold_convert): Use VIEW_CONVERT_EXPR to convert
7055         between vectors.
7056         * convert.c (convert_to_integer, convert_to_vector): Likewise.
7057         * tree-vect-generic.c (tree_vec_extract, expand_vector_operations_1):
7058         Likewise.
7059
7060 2005-08-23  Paolo Bonzini  <bonzini@gnu.org>
7061
7062         * config/rs6000/predicates.md (equality_operator): New.
7063         * config/rs6000/rs6000.md: Rewrite as a peephole2 the split for
7064         comparison with a large constant.
7065
7066 2005-08-23  Mark Mitchell  <mark@codesourcery.com>
7067
7068         * hwint.h (HOST_WIDE_INT_PRINT): Use HOST_LONG_LONG_FORMAT.
7069
7070 2005-08-23  J"orn Rennecke <joern.rennecke@st.com>
7071
7072         * sh.c (sh_builtin_saveregs): If the number of to-be-saved fp
7073         registers is even, and we have a hardware double precision fp,
7074         align the buffer.
7075         (sh_gimplify_va_arg_expr): For floating point arguments, consider
7076         size of current argument when checking if argument was passed in
7077         registers.
7078
7079         * sh.c (sh_attr_renesas_p): Handle error_mark_node.
7080
7081         PR middle-end/23467
7082         * stor-layout.c (finalize_type_size): Dont override
7083         existing alignment with a smaller alignment from the mode.
7084
7085 2005-08-23  Sebastian Pop  <pop@cri.ensmp.fr>
7086
7087         * lambda-code.c (lambda_vector_lexico_pos): Moved...
7088         * lambda.h (lambda_vector_lexico_pos): ... here.
7089         * tree-data-ref.c (build_classic_dist_vector): Return false when
7090         the distance vector is lexicographically negative.
7091
7092 2005-08-23  Sebastian Pop  <pop@cri.ensmp.fr>
7093
7094         PR tree-optimization/23511
7095         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Don't
7096         handle cases where TYPE_MIN_VALUE or TYPE_MAX_VALUE are NULL_TREE.
7097
7098 2005-08-23  Jakub Jelinek  <jakub@redhat.com>
7099
7100         PR tree-optimization/22043
7101         * tree.h (count_type_elements): Add ALLOW_FLEXARR argument.
7102         * expr.c (count_type_elements): Add ALLOW_FLEXARR argument.
7103         If ALLOW_FLEXARR, handle types ending with flexible array member.
7104         Pass false as second argument to recursive count_type_elements calls.
7105         (categorize_ctor_elements_1, mostly_zeros_p): Pass false as second
7106         argument to count_type_elements call.
7107         * tree-sra.c (decide_block_copy): Likewise.
7108         * gimplify.c (gimplify_init_constructor): If num_type_elements < 0
7109         for a constant-sized object, set cleared as well.  Pass true as
7110         second argument to count_type_elements call.
7111
7112 2005-08-23  Alan Modra  <amodra@bigpond.net.au>
7113
7114         PR target/21571
7115         * config/rs6000/rs6000.c (rs6000_legitimate_small_data_p): Rename
7116         from legitimate_small_data_p, and make global.  Update use.
7117         Remove forward declaration.
7118         * config/rs6000/rs6000-protos.h (rs6000_legitimate_small_data_p):
7119         Declare.
7120         * config/rs6000/rs6000.md (movdf_hardfloat32): Allow small data mems.
7121
7122 2005-08-23  David Edelsohn  <edelsohn@gnu.org>
7123
7124         * config/rs6000/rs6000.md (eq<mode>): Use output operand instead
7125         of scratch intermediates.
7126         (eq<mode>_compare): Same.
7127         (neg_eq0<mode>): New.
7128         (neg_eq<mode>): Convert to define_insn_and_split.
7129
7130 2005-08-23  Alan Modra  <amodra@bigpond.net.au>
7131
7132         PR target/23070
7133         * config/rs6000/rs6000.c (function_arg): For ABI_V4 calls to
7134         stdarg functions, set/clear the fp marker even when no variable
7135         args are passed.
7136         * config/rs6000/sysv4.opt (mprototype): Describe.
7137
7138 2005-08-22  Jakub Jelinek  <jakub@redhat.com>
7139
7140         PR rtl-optimization/23478
7141         * regs.h (reg_info): Add throw_calls_crossed.
7142         (REG_N_THROWING_CALLS_CROSSED): Define.
7143         * flow.c (allocate_reg_life_data): Initialize
7144         REG_N_THROWING_CALLS_CROSSED.
7145         (propagate_one_insn, attempt_auto_inc): Update
7146         REG_N_THROWING_CALLS_CROSSED.
7147         * global.c (global_alloc): Don't allocate pseudos across
7148         calls that may throw.
7149
7150 2005-08-22  Andrew Pinski  <pinskia@physics.uc.edu>
7151
7152         PR c/18715
7153         * c-common.c (c_do_switch_warnings): Look for a node where the enum's
7154         value is inbetween the range if we did not find an exact match.
7155
7156 2005-08-22  Aldy Hernandez  <aldyh@redhat.com>
7157
7158         * doc/invoke.texi (Option Summary): Add ms1 options.
7159         * doc/extend.texi: Document interrupt handler attribute for ms1.
7160         * doc/md.texi: Document ms1 constraints.
7161         * config.gcc: Add ms1-*-elf.
7162         * config/ms1/ms1.h: New.
7163         * config/ms1/ms1.c: New.
7164         * config/ms1/ms1.md: New.
7165         * config/ms1/ms1-protos.h: New.
7166         * config/ms1/ABI.txt: New.
7167         * config/ms1/crti.asm: New.
7168         * config/ms1/crtn.asm: New.
7169         * config/ms1/lib2extra-funcs.c: New.
7170         * config/ms1/t-ms1: New.
7171         * config/ms1/ms1.opt: New.
7172
7173 2005-08-22 Ira Rosen <irar@il.ibm.com>
7174
7175         * config/rs6000/altivec.md (xorv4sf3): New.
7176         (negv4sf2, neg<mode>2): Likewise.
7177
7178 2005-08-21  H.J. Lu  <hongjiu.lu@intel.com>
7179
7180         PR target/23485
7181         * config/ia64/ia64.md (divsi3): Check divide by zero.
7182         (udivsi3): Likewise.
7183         (divdi3): Likewise.
7184         (udivdi3): Likewise.
7185
7186 2005-08-21  Jakub Jelinek  <jakub@redhat.com>
7187
7188         * simplify-rtx.c (simplify_immed_subreg) <case CONST_DOUBLE>: Only clear
7189         up to elem_bitsize bits, not max_bitsize.
7190
7191 2005-08-21  Sebastian Pop  <pop@cri.ensmp.fr>
7192
7193         PR tree-optimization/23433
7194         * tree-chrec.c (chrec_apply): Translate INTEGER_CST to a
7195         REAL_CST when the type is SCALAR_FLOAT_TYPE_P.
7196
7197 2005-08-21  Sebastian Pop  <pop@cri.ensmp.fr>
7198
7199         PR tree-optimization/23434
7200         * tree-ssa-loop-niter.c (proved_non_wrapping_p): Give up when
7201         the iteration bound is not an INTEGER_CST.
7202
7203 2005-08-21  Dorit Nuzman  <dorit@il.ibm.com>
7204
7205         * tree-vect-transform.c (get_initial_def_for_reduction): Set
7206         need_epilog_adjust back to false for MIN/MAX case. Set *scalar_def to
7207         NULL if need_epilog_adjust is false.
7208         (vect_create_epilog_for_reduction): Variable adjust_in_epilog removed.
7209         Case 3 always peels first itration, not just for PLUS case, and no need
7210         to use scalar_initial_def here. Create an epilog adjustment only if
7211         scalar_initial_def is not NULL.
7212
7213         (vectorizable_reduction): Remove assert.
7214
7215 2005-08-20  H.J. Lu  <hongjiu.lu@intel.com>
7216
7217         PR target/23485
7218         * config/ia64/lib1funcs.asm (__divdi3): Check divide by zero.
7219         (__moddi3): Likewise.
7220         (__udivdi3): Likewise.
7221         (__umoddi3): Likewise.
7222         (__divsi3): Likewise.
7223         (__modsi3): Likewise.
7224         (__udivsi3): Likewise.
7225         (__umodsi3): Likewise.
7226
7227 2005-08-20  Jakub Jelinek  <jakub@redhat.com>
7228
7229         * tree-pass.h (TDF_GRAPH): Define.
7230         * tree-dump.c (dump_options): Don't set TDF_GRAPH in "all".
7231         * passes.c (finish_optimization_passes): Only call
7232         finish_graph_dump_file if TDF_GRAPH is set.
7233         (execute_one_pass): Only call clean_graph_dump_file if dump_file !=
7234         NULL.  Set TDF_GRAPH bit.
7235         (execute_todo): Call print_rtl_graph_with_bb if TDF_GRAPH is set.
7236
7237 2005-08-20  Richard Earnshaw  <richard.earnshaw@arm.com>
7238
7239         * arm.h (arm_stack_offsets): Add locals_base field.
7240         * arm.c (arm_get_frame_offsets): Compute it.
7241         (thumb_compute_initial_elimination offset): Make the Thumb frame
7242         pointer point to the base of the local variables.
7243         (thumb_expand_prologue): Update accordingly.
7244         (thumb_expand_epilogue): Likewise.
7245
7246         * arm.md (thumb_movhi_clobber): Make this insn a define_expand.  Change
7247         mode of clobbered scratch to DImode.  Handle a case that's known to
7248         need this.
7249
7250 2005-08-19  David Edelsohn  <edelsohn@gnu.org>
7251
7252         * config/rs6000/rs6000.md (gt0<mode>): Delete.
7253         (gt0<mode>_compare): Delete.
7254         (neg_gt0<mode>): Delete.
7255
7256 2005-08-19  Eric Christopher  <echristo@apple.com>
7257
7258         * optabs.h: Change CTI_ to COI_.
7259         * optabs.c: Ditto.
7260
7261 2005-08-19  James E Wilson  <wilson@specifix.com>
7262
7263         * builtins.c (expand_builtin_return_addr): Set
7264         current_function_accesses_prior_frames when count != 0.  Use
7265         frame_pointer_rtx when count == 0.
7266         * function.h (struct function): Add accesses_prior_frames field.
7267         (current_function_accesses_prior_frames): Define.
7268         * reload1.c (init_elim_table): Check
7269         current_function_accesses_prior_frames.
7270         * doc/tm.texi (INITIAL_FRAME_ADDRESS_RTX): Update docs.
7271
7272 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
7273
7274         * tree-cfgcleanup.c (cleanup_tree_cfg): Fix flowgraph change
7275         indicator.  Return true if the flowgraph changed during
7276         cleanup.
7277
7278 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
7279
7280         PR 23476
7281         * tree-cfgcleanup.c (cleanup_control_expr_graph): Fold the
7282         conditional expression before testing its value.
7283
7284 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
7285
7286         * doc/invoke.texi: Fix documentation for -ftree-dominator-opts.
7287
7288 2005-08-19  Devang Patel  <dpatel@apple.com>
7289
7290         PR tree-optimization/23048
7291         * tree-if-conv.c (if_convertible_bb_p): Supply basic_block as
7292         third parameter. Check whether latch is dominated by exit
7293         block or not.
7294         (if_convertible_loop_p): Supply exit block itself to
7295         if_convertible_bb_p.
7296
7297 2005-08-19  Richard Earnshaw  <richard.earnshaw@arm.com>
7298
7299         PR target/23473
7300         * arm.md (arm_load_pic_register): Change argument to the mask of
7301         saved registers.  Call thumb_find_work_register if we need a
7302         scratch register on Thumb.
7303         (arm_expand_prologue): Pass empty register set to
7304         arm_load_pic_register.
7305         (thumb_expand_prologue): Pass live_regs_mask directly to
7306         arm_load_pic_register.
7307         * arm-protos.h (arm_load_pic_register): Update prototype.
7308
7309 2005-08-19  J"orn Rennecke <joern.rennecke@st.com>
7310
7311         * sh.c (find_sole_member): New function.
7312         (sh_gimplify_va_arg_expr): Use it. Allow RECORD_TYPE mode mismatch
7313         if the record's alignment is larger than the size of its only member.
7314
7315 2005-08-19  Richard Earnshaw  <richard.earnshaw@arm.com>
7316
7317         PR target/23436
7318         * arm.c (thumb_legitimize_reload_address): New function.
7319         * arm-protos.h (thumb_legitimize_reload_address): Add prototype.
7320         * arm.h (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Call it.
7321
7322 2005-08-19  Paul Woegerer  <paul.woegerer@nsc.com>
7323
7324         * config/crx/crx.c: Implement crx_decompose_address. Reject
7325         symbolic displacements since CRX register relative adressing
7326         mode can't handle unsigned 32-bit values as displacements.
7327         * config/crx/crx.h: Simplify definitions, remove redundant
7328         parenthesis and obsolete macros.
7329         * config/crx/crx.opt: Add new switch for debugging addresses.
7330         * config/crx/crx-protos.h: Add new declarations for above.
7331
7332 2005-08-19  Andrew Pinski  <pinskia@physics.uc.edu>
7333
7334         PR middle-end/20624
7335         * gimple-low.c (block_may_fallthru): Handle CLEANUP_POINT_EXPR by
7336         looking past it.
7337
7338 2005-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7339
7340         * collect2.c (dup2): Delete.
7341         * configure.ac: Don't check for dup2.
7342
7343         * config.in, configure: Regenerate.
7344
7345 2005-08-18  J"orn Rennecke <joern.rennecke@st.com>
7346
7347         * sh.c (sh_gimplify_va_arg_expr): Loop to substitute a RECORD_TYPE
7348         record with the type of its only member.
7349
7350 2005-08-18  David Edelsohn  <edelsohn@gnu.org>
7351
7352         * config/rs6000/rs6000.md (ltu<mode>_compare): Convert to
7353         define_insn_and_split.
7354         (plus_ltu<mode>_compare): Same.
7355         (gtu<mode>_compare): Same.
7356         (plus_gtu<mode>_compare): Same.
7357
7358 2005-08-18  Dorit Nuzman  <dorit@il.ibm.com>
7359
7360         PR tree-optimization/22228
7361         * tree-ssa-loop (pass_vectorize): Add TODO_verify_loops to
7362         todo_flags_start.
7363         * tree-vect-transform.c (vect_transform_loop): Mark the variables that
7364         are recorded in vect_vnames_to_rename for renaming.
7365         * tree-vectorizer.c (vect_vnames_to_rename): New global bitmap.
7366         (slpeel_update_phi_nodes_for_guard1): Record virtual vars for renaming
7367         in vect_vnames_to_rename.
7368         (vectorize_loops): Allocate and free the vect_vnames_to_rename bitmap.
7369         * tree-vectorizer.h (vect_vnames_to_rename): New extern variable.
7370
7371 2005-08-18  Jan Hubicka  <jh@suse.cz>
7372
7373         PR c++/22034
7374         * cgraphunit.c (cgraph_varpool_assemble_pending_decls): Emit debug
7375         info only for local statics, not for member variables.
7376
7377 2005-08-18  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
7378
7379         * tree-data-ref.c (analyze_siv_subscript_cst_affine): Fix comment typo.
7380
7381 2005-08-18  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
7382
7383         * c-typeck.c (designator_errorneous): Rename to designator_erroneous.
7384
7385 2005-08-18  Andrew Pinski  <pinskia@physics.uc.edu>
7386
7387         PR middle-end/16045
7388         * builtins.c (fold_builtin): Create a new NOP_EXPR all the time.
7389
7390 2005-08-17  James E Wilson  <wilson@specifix.com>
7391
7392         * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
7393         array size check.
7394
7395 2005-08-17  David Edelsohn  <edelsohn@gnu.org>
7396
7397         * config/rs6000/rs6000.md (leu<mode>): Convert to mode macro.
7398         (leu<mode>_compare): Same.
7399         (plus_leu<mode>): Same.
7400         (neg_leu<mode>): Same.
7401         (and_neg_leu<mode): Same.
7402         (ltu<mode>_compare): Same.
7403         (plus_ltu<mode>): Same.
7404         (geu<mode>): Same.
7405         (geu<mode>_compare): Same.
7406         (plus_geu<mode>): Same.
7407         (neg_geu<mode>): Same.
7408         (and_neg_geu<mode>): Same.
7409         (plus_gt<mode>): Same.
7410         (gtu<mode>_compare): Same.
7411         (plus_gtu<mode>): Same.
7412
7413 2005-08-17  Erik Christiansen  <erik@dd.nec.com.au>
7414
7415         * config/v850/lib1funcs.asm (callt_save_interrupt): Fix comment typos.
7416         Move call_table_data to end.  Delete spurious .text.
7417         (callt_save_all_interrupt): Fix comment typo.
7418
7419 2005-08-17  James E Wilson  <wilson@specifix.com>
7420             Kevin Winchester  <winchester@amirix.com>
7421
7422         PR target/21684
7423         * config/mcore/mcore.h (SHIFT_COUNT_TRUNCATED): Define to 0.
7424
7425 2005-08-17  Uros Bizjak  <uros@kss-loka.si>
7426
7427         PR target/23268
7428         * config/i386/i386.md ("*fist<mode>2_1"): New pattern.
7429         ("lrint<mode>2"): Change expander to use "*fist<mode>2_1" pattern.
7430
7431 2005-08-17  J"orn Rennecke <joern.rennecke@st.com>
7432
7433         * sh.c (sh_gimplify_va_arg_expr): Don't substitute a RECORD_TYPE
7434         record with the type of its only member if the modes don't match.
7435
7436         * varasm.c (decode_reg_name): Skip empty additional register names.
7437
7438 2005-08-16  Zdenek Dvorak  <dvorakz@suse.cz>
7439
7440         * tree-ssa-loop-im.c (MAX_LSM_NAME_LENGTH, lsm_tmp_name,
7441         lsm_tmp_name_length): New.
7442         (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): New functions.
7443         (schedule_sm): Use get_lsm_tmp_name instead of "lsm_tmp".
7444
7445 2005-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7446             Andreas Krebbel  <krebbel1@de.ibm.com>
7447
7448         * config.gcc: Added z9-109 switch.
7449         * config/s390/2084.md ("x_int", "x_agen", "x_lr", "x_la", "x_larl",
7450         "x_load", "x_store", "x_branch", "x_call", "x_mul_hi", "x_mul_sidi",
7451         "x_div", "x_sem", "x_cs", "x_vs", "x_stm", "x_lm", "x_other",
7452         "x_fsimpdf", "x_fsimpsf", "x_fdivdf", "x_fdivsf", "x_floaddf",
7453         "x_floadsf", "x_fstore_df", "x_fstoresf", "x_ftoi", "x_itof"): Enable
7454         for "z9_109" cpu attribute.
7455         * config/s390/s390.c (z9_109_cost): New processor cost structure.
7456         (CONST_OK_FOR_Os, CONST_OK_FOR_Op, CONST_OK_FOR_On): New macros.
7457         (s390_handle_arch_option): Added z9-109 switch.
7458         (override_options): Set respective cost function for z9-109.
7459         (s390_const_ok_for_constraint_p): New constraints Os, Op, On.
7460         (legitimate_reload_constant_p): Accept extended immediates.
7461         (print_operand): Three new output modifiers added: k, m and o.
7462         (s390_adjust_priority, s390_issue_rate): Handle Z9_109 like Z990.
7463         (s390_output_mi_thunk): Use extended immediate when possible.
7464         * config/s390/s390.h (processor_flags): Added PF_EXTIMM.
7465         (TARGET_CPU_EXTIMM, TARGET_EXTIMM): New macros.
7466         (CONSTRAINT_LEN): Added length of O constraint.
7467         (CLZ_DEFINED_VALUE_AT_ZERO): Definition added.
7468         * config/s390/s390.md ("cpu"): New value z9_109 added.
7469         ("*tstdi_extimm", "*tstdi_ccconly_extimm", "*tstsi_extimm",
7470         "*tstsi_cconly_extimm", "*movdi_64extimm", "*extendhidi2_extimm",
7471         "*extendqidi2_extimm", "*extendhisi2_extimm", "*extendqisi2_extimm",
7472         "*zero_extend<mode>si2_extimm", "*anddi3_extimm", "*iordi3_extimm",
7473         "*xordi3_extimm", "clzdi2", "clztidi2"): New patterns.
7474         ("*tstdi", "*tstsi", "*movdi_64", "*extendhisi2", "*extendqisi2",
7475         "*zero_extend<mode>si2_64", "zero_extendqihi2", "*zero_extendqihi2_64",
7476         "*anddi3", "*iordi3", "*xordi3"): Disable for TARGET_EXTIMM.
7477         ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs", "*cmpsi_ccs", "*cmpdi_ccu",
7478         "*cmpsi_ccu", "*movsi_zarch", "*adddi3_imm_cc", "*adddi3_carry1_cc",
7479         "*adddi3_carry2_cc", "*adddi3_cc", "*adddi3_64", "*addsi3_imm_cc",
7480         "*addsi3_carry1_cc", "*addsi3_carry2_cc", "*addsi3_cc", "addsi3",
7481         "*andsi3_cc", "*andsi3_cconly", "*andsi3_zarch", "*iorsi3_cc",
7482         "*iorsi3_cconly", "*iorsi3_zarch", "*xorsi3_cc", "*xorsi3_cconly",
7483         "*xorsi3", "*xorhi3", "*xorqi3"): Added instruction using extended
7484         immediates.
7485         ("extend<mode>di2", "extend<mode>si2", "zero_extend<mode>di2",
7486         "zero_extend<mode>si2"): Allow memory operands and don't manually emit
7487         insns for TARGET_EXTIMM.
7488
7489 2005-08-17  Andreas Krebbel  <krebbel1@de.ibm.com>
7490
7491         * testsuite/gcc.dg/20020926-1.c: Added "-mesa" to dg-options.
7492
7493 2005-08-17  Nick Clifton  <nickc@redhat.com>
7494
7495         * config/stormy16/stormy16.c (xstormy16_encode_section_info):
7496         Call default_encode_section_info.
7497
7498 2005-08-17  Steven Bosscher  <stevenb@suse.de>
7499
7500         PR tree-optimization/21574
7501         * tree-ssa-ccp.c (likely_value): If the right hand side is a
7502         constant, return CONSTANT.
7503         (ccp_lattice_meet): Use operand_equal_p instead of simple_cst_equal.
7504         (ccp_fold, visit_assignment): Likewise.
7505         (evaluate_stmt): Handle UNDEFINED and UNKNOWN_VAL the same way.
7506
7507 2005-08-16  James A. Morrison  <phython@gcc.gnu.org>
7508
7509         * c-typeck.c (build_function_call): Call fold_buildN_initializer or
7510         fold_buildN instead of buildN then fold_initializer or fold.
7511         (build_unary_op): Likewise.
7512         (build_binary_op): Likewise.
7513         * fold-const.c (fold_initializer): Remove.
7514         (fold_build1_initializer): New function.
7515         (fold_build2_initializer): New function.
7516         (fold_build3_initializer): New function.
7517         * tree.h (fold_initializer): Remove.
7518         (fold_build1_initializer): New function.
7519         (fold_build2_initializer): New function.
7520         (fold_build3_initializer): New function.
7521
7522 2005-08-16  James A. Morrison  <phython@gcc.gnu.org>
7523
7524         * fold-const.c (optimize_bit_field_compare): Remove extra fold call.
7525         (try_move_mult_to_index): Call fold_build2 instead of build2.
7526         (fold_binary): Don't call fold after calls to try_move_mult_to_index.
7527         * tree-ssa-loop-niter.c (inverse): Call int_const_binop instead of
7528         fold_binary_to_constant.
7529         (infer_loop_bounds_from_undefined): Call fold_build2 instead of
7530         fold (build.
7531         * tree-data-ref.c (tree_fold_divides_p): Use tree_int_cst_equal to
7532         check if A == gcd (A, B).  Remove TYPE argument.
7533         (analyze_offset) Use fold_build2 instead of fold (build.
7534         (create_data_ref): Likewise.
7535         (analyze_siv_subscript_cst_affine): Update calls to tree_fold_divides_p.
7536         * tree-ssa-ccp.c (widen_bitfield): Call fold_build2 instead of build2
7537         then fold.
7538
7539 2005-08-17  Kelley Cook  <kcook@gcc.gnu.org>
7540
7541         * config/arm/unaligned-funcs.c,config/i386/crtfastmath.c,
7542         ipa-cp.c,ipa-prop.c,ipa-prop.h: Update FSF address.
7543
7544 2005-08-16  Andrew Pinski  <pinskia@physics.uc.edu>
7545
7546         PR tree-opt/23402
7547         * gimplify.c (zero_sized_type): New function.
7548         (gimplify_modify_expr_rhs): If we have a zero sized type,
7549         replace the statement with an empty statement.
7550
7551 2005-08-16  H.J. Lu  <hongjiu.lu@intel.com>
7552
7553         * config/i386/crtfastmath.c (set_fast_math): Add "=m" for
7554         fxsave.
7555
7556 2005-08-16  Ian Lance Taylor  <ian@airs.com>
7557
7558         * doc/tm.texi (Label Output): Correct typo.
7559
7560 2005-08-16  Steven Bosscher  <stevenb@suse.de>
7561
7562         PR target/23376
7563         * loop-unroll.c (analyze_insn_to_expand_var): Make sure that
7564         force_operand will work later on using have_insn_for.
7565
7566 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
7567
7568         * fold-const.c (tree_expr_nonnegative_p): Regroup cases.
7569
7570 2005-08-16  Ian Lance Taylor  <ian@airs.com>
7571
7572         PR c++/23337
7573         * gimplify.c (gimplify_init_ctor_eval): If we see an element of
7574         vector type, don't try to construct it element by element.  Add an
7575         assertion that we use a FIELD_DECL when building a COMPONENT_REF.
7576
7577 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
7578
7579         * fold-const.c (fold_ternary): Simplify folding of a CALL_EXPR.
7580
7581 2005-08-16  Geoffrey Keating  <geoffk@apple.com>
7582
7583         * doc/invoke.texi (Precompiled Headers): Document some more options
7584         which are known to be safe.
7585
7586 2005-08-16  James E Wilson  <wilson@specifix.com>
7587
7588         PR tree-optimization/21105
7589         * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
7590         TREE_OVERFLOW check.
7591
7592 2005-08-16  David Edelsohn  <edelsohn@gnu.org>
7593
7594         * config/rs6000/rs6000.md (ltu<mode>): Convert to mode macro.
7595         (neg_ltu<mode>): Same.
7596         (gtu<mode>): Same.
7597         (neg_gtu<mode>): Same.
7598
7599 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
7600
7601         * builtins.c (expand_builtin_strcat): Remove superfluous call to fold.
7602         (fold_builtin_isdigit): Use fold_buildN.
7603         (build_function_call_expr): Likewise.
7604         * c-typeck.c (c_finish_loop): Likewise.
7605
7606 2005-08-16  J"orn Rennecke <joern.rennecke@st.com>
7607             Richard Shann <rshann@superh.com>
7608
7609         PR middle-end/20396:
7610         * optabs.c (expand_binop): Take TRULY_NOOP_TRUNCATION into account.
7611
7612 2005-08-16  Sebastian Pop  <pop@cri.ensmp.fr>
7613
7614         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Reword a comment.
7615
7616 2005-08-15  Richard Earnshaw  <richard.earnshaw@arm.com>
7617
7618         PR target/23355
7619         * arm.c (thumb_compute_save_reg_mask): Use similar logic to
7620         arm_compure_save_reg0_reg12_mask to determine when the PIC register
7621         must be saved.
7622
7623 2005-08-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7624
7625         PR middle-end/23369
7626         * fold-const.c (build_range_check): Disable optimization for function
7627         pointer expressions on targets that require function pointer
7628         canonicalization.
7629
7630 2005-08-15  Ulrich Weigand  <uweigand@de.ibm.com>
7631
7632         * simplify-rtx.c (simplify_const_relational_operation): When
7633         extracting arguments of a COMPARE, recompute the mode as well.
7634
7635 2005-08-15  Ian Lance Taylor  <ian@airs.com>
7636
7637         * tree.c (build_string): Mark tree CONSTANT and INVARIANT.
7638
7639 2005-08-15  DJ Delorie  <dj@redhat.com>
7640
7641         * config/m32c/mov.md (movqi_op): Immediates can't be moved to
7642         the stack.
7643         (movsi_splittable): Allow, but split, moves to the stack.
7644         * config/m32c/m32c.c (m32c_split_move): Always split moves to the
7645         stack.
7646
7647 2005-08-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7648
7649         * aclocal.m4 (gcc_AC_FUNC_PRINTF_PTR): Delete.
7650         * configure.ac: Don't call gcc_AC_FUNC_PRINTF_PTR.
7651         * system.h (HOST_PTR_PRINTF): Don't define, poison it.
7652
7653         * bitmap.c, c-decl.c, config/i386/i386-interix.h,
7654         config/iq2000/iq2000.c, mips-tfile.c, print-rtl.c, print-tree.c:
7655         Delete HOST_PTR_PRINTF.
7656
7657         * configure, config.in: Regenerate.
7658
7659 2005-08-15  David Edelsohn  <edelsohn@gnu.org>
7660
7661         * config/rs6000/rs6000.md (QHSI): New mode macro.
7662         (wd): Extend mode attr for QImode and HImode
7663         (dbits): New mode attr.
7664         (zero_extend<mode>di2): Convert to mode macro.
7665
7666 2005-08-15  Steve Ellcey  <sje@cup.hp.com>
7667
7668         PR target/21841
7669         * doc/invoke.texi (-mgnu-ld): Update description.
7670         (-mhp-ld): Ditto.
7671
7672 2005-08-15  Sebastian Pop  <pop@cri.ensmp.fr>
7673
7674         PR 23391
7675         * Makefile.in (tree-chrec.o): Depends on real.h.
7676         * tree-chrec.c: Include real.h.
7677         (chrec_fold_plus_poly_poly, chrec_fold_multiply_poly_poly,
7678         chrec_fold_plus_1): Use build_real for SCALAR_FLOAT_TYPE_P.
7679         * tree-scalar-evolution.c (add_to_evolution_1,
7680         interpret_rhs_modify_expr): Ditto.
7681
7682 2005-08-15  Sebastian Pop  <pop@cri.ensmp.fr>
7683
7684         PR 23386
7685         * tree-data-ref.c (estimate_niter_from_size_of_data): When
7686         step is negative compute the estimation from init downwards to zero.
7687
7688 2005-08-14  James A. Morrison  <phython@gcc.gnu.org>
7689
7690         * fold-const (fold_binary): Call fold_build2 instead of fold (build.
7691
7692 2005-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
7693
7694         * config/s390/s390.c (s390_const_ok_for_constraint_p): Add 'P'
7695         constraint.
7696         (legitimate_reload_constant_p): Fix handling of lliXX operands.
7697         Accept double-word constants that can be split.
7698         * config/s390/s390.md ("movti"): Use 'P' constraint.
7699         ("*movdi_31", "*movdf_31"): Likewise.
7700
7701 2005-08-14  Daniel Berlin  <dberlin@dberlin.org>
7702
7703         Fix PR tree-optimization/22615
7704
7705         * tree-ssa-structalias.c (solution_set_add): Handle
7706         first_vi_for_offset returning NULL.
7707         (do_da_constraint): Ditto.
7708         (do_sd_constraint): Ditto.
7709         (do_ds_constraint): Ditto
7710         (find_func_aliases): Ditto.
7711         (build_constraint_graph): RHS is allowed be ANYTHING.
7712         (first_vi_for_offset): Return NULL if we couldn't find anything at
7713         the offset.
7714
7715 2005-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
7716
7717         * config/s390/s390.c (s390_canonicalize_comparison): Prefer register
7718         over memory as first operand.
7719
7720 2005-08-14  H.J. Lu  <hongjiu.lu@intel.com>
7721
7722         PR target/23360
7723         * config/i386/crtfastmath.c (set_fast_math): Check if DAZ is
7724         available for setting it.
7725
7726 2005-08-14  Ira Rosen  <irar@il.ibm.com>
7727
7728         PR tree-optimization/23320
7729         * tree-data-ref.c (base_addr_differ_p): Add comment. Check
7730         data-refs' types instead of base object nullness. Add check for
7731         pointer type data-refs before first location comparison. Remove
7732         assert.
7733
7734 2005-08-14  Andreas Schwab  <schwab@suse.de>
7735
7736         * doc/md.texi (Machine Constraints): Fix misplaced @end table.
7737
7738 2005-08-13  James E Wilson  <wilson@specifix.com>
7739
7740         * doc/cpp.texi (__SSP__, __SSP_ALL__): Document.
7741         * doc/invoke.texi (-Wstack-protector, -fstack-protector,
7742         -fstack-protector-all, --param ssp-buffer-size): Document.
7743         (-Wvariadic-macros): Alphabetize.
7744         (-fsched-stalled-insns-dep): Add missing 'f'.
7745
7746         * c-cppbuiltin.c (c_cpp_builtins): Add comment for flag_stack_protect
7747         macros.
7748
7749 2005-08-13  David Edelsohn  <edelsohn@gnu.org>
7750
7751         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'a' for indexed
7752         or indirect address operand.
7753         (EXTRA_ADDRESS_CONSTRAINT): New.
7754         * config/rs6000/rs6000.md (prefetch): Change constraint "p" to "a".
7755
7756 2005-08-13  Sebastian Pop  <pop@cri.ensmp.fr>
7757
7758         PR tree-optimization/22236
7759         * tree-cfg.c (print_pred_bbs, print_succ_bbs): Correctly print
7760         successors and predecessors.
7761         * tree-chrec.c (chrec_convert): Before converting, check that
7762         sequences don't wrap.
7763         * tree-data-ref.c (compute_estimated_nb_iterations): Moved ...
7764         (analyze_array): Extern.
7765         (find_data_references_in_loop): Remove call to
7766         compute_estimated_nb_iterations.
7767         * tree-data-ref.h (analyze_array): Declared.
7768         * tree-flow-inline.h (single_ssa_tree_operand, single_ssa_use_operand,
7769         single_ssa_def_operand, zero_ssa_operands): Fix documentation.
7770         * tree-flow.h (scev_probably_wraps_p): Declare with an extra parameter.
7771         * tree-scalar-evolution.c (instantiate_parameters_1): Factor entry
7772         condition.
7773         * tree-ssa-loop-ivcanon.c: Fix documentation.
7774         * tree-ssa-loop-ivopts.c (idx_find_step): Add a fixme note.
7775         * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): ... here.
7776         (infer_loop_bounds_from_undefined): New.
7777         (estimate_numbers_of_iterations_loop): Use
7778         infer_loop_bounds_from_undefined.
7779         (used_in_pointer_arithmetic_p): New.
7780         (scev_probably_wraps_p): Pass an extra parameter.  Call
7781         used_in_pointer_arithmetic_p.  Check that AT_STMT is not null.
7782         (convert_step): Fix documentation.
7783         * tree-vrp.c (adjust_range_with_scev): Call instantiate_parameters.
7784         Use initial_condition_in_loop_num and evolution_part_in_loop_num
7785         instead of CHREC_LEFT and CHREC_RIGHT.  Adjust the call to
7786         scev_probably_wraps_p.
7787
7788 2005-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
7789
7790         * config/s390/s390.c (s390_split_branches): Revert 2005-08-12 change.
7791         (s390_register_info): Ignore clobbered_regs information for fixed
7792         registers, and only fixed registers.
7793         (s390_init_frame_layout): Remove redundant call.
7794
7795 2005-08-12  Gerald Pfeifer  <gerald@pfeifer.com>
7796
7797         * doc/invoke.texi (C++ Dialect Options): Add dynamic_cast to
7798         description of -Wold-style-casts.
7799
7800 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
7801             Jakub Jelinek  <jakub@redhat.com>
7802
7803         * config/s390/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
7804         * config/s390/s390-protos.h (s390_get_thread_pointer): Prototype added.
7805         * config/s390/s390.c (print_operand): New output modifier 'G' added.
7806         (get_thread_pointer): Renamed to s390_get_thread_pointer.
7807         * config/s390/s390.md (stack_protect_set, stack_protect_test): If
7808         TARGET_THREAD_SSP_OFFSET is defined, change operands[1] to
7809         (MEM:P (PLUS:P (tp, TARGET_THREAD_SSP_OFFSET))).
7810         (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
7811         ("stack_protect_set", "stack_protect_test"): New expanders.
7812         ("stack_protect_setsi", "stack_protect_setdi", "stack_protect_testsi",
7813         "stack_protect_testdi"): New insn definitions.
7814
7815 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
7816
7817         * config/s390/s390.md ("*movdf_31"): Changed constraint from P to K.
7818
7819 2005-08-12  Paul Brook  <paul@codesourcery.com>
7820
7821         * config/arm/lib1funcs.asm: Error if __ARM_ARCH__ not set.
7822
7823 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
7824
7825         * config/s390/predicates.md (setmem_operand): New predicate.
7826         (shift_count_operand): Accept ANDs with special constants as
7827         operand.
7828         * config/s390/s390.c (print_shift_count_operand): Skip ANDs
7829         with special constants.
7830         * config/s390/s390.md ("setmem_long", "*setmem_long"): Replaced
7831         shift_count_operand with setmem_operand.
7832
7833 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
7834
7835         * config/s390/s390.c (s390_extract_part, s390_single_part):
7836         Type cast added.
7837         (s390_const_ok_for_constraint_p): Added SImode to the N constraint.
7838         (s390_output_mi_thunk): Don't use lg on 31 bit.
7839         * config/s390/s390.md ("*movdi_31", "*movdf_31"): Added lmy and stmy.
7840         ("*llgt_sisi" and splitter): Replaced TARGET_64BIT with TARGET_ZARCH.
7841
7842 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
7843
7844         * config/s390/s390.c (CONST_OK_FOR_J, CONST_OK_FOR_K): New macros.
7845         (s390_select_ccmode, s390_rtx_costs, legitimate_reload_constant_p,
7846         s390_init_frame_layout, s390_emit_prologue, s390_emit_epilogue,
7847         s390_output_mi_thunk): Replaced uses of CONST_OK_FOR_CONSTRAINT_P
7848         with one of the new macros.
7849
7850 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
7851
7852         * config/s390/s390.c (s390_split_branches, s390_init_frame_layout):
7853         Don't set save_return_addr_p.
7854         (s390_register_info): Make clobbered_regs not depending on
7855         save_return_addr_p.
7856
7857 2005-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
7858
7859         * gcc.c (LINK_SSP_SPEC): Remove space before a trailing }.
7860         (LINK_COMMAND_SPEC): Add space after %(link_ssp).
7861
7862 2005-08-11  James E. Wilson  <wilson@specifix.com>
7863
7864         * config/ia64/ia64.h (EXTRA_MEMORY_CONSTRAINT): New.
7865
7866 2005-08-11  Jakub Jelinek  <jakub@redhat.com>
7867
7868         * dwarf2out.c (add_location_or_const_value_attribute): Prefer
7869         locations gathered by var-tracking in single entry loc_list
7870         over loc_descriptor_from_tree.
7871
7872         * dwarf2out.c (concat_loc_descriptor): Add can_use_fbreg argument,
7873         pass it down to loc_descriptor.
7874         (loc_descriptor): Pass can_use_fbreg to concat_loc_descriptor.
7875         (containing_function_has_frame_base): Move earlier in the file.
7876         (loc_descriptor_from_tree_1): Use containing_function_has_frame_base
7877         instead of always assuming fbreg can't be used.
7878
7879 2005-08-11  David Edelsohn  <edelsohn@gnu.org>
7880
7881         * config/rs6000/altivec.md: Change constraint "m" to "Z".
7882         * config/rs6000/predicates.md (indexed_or_indirect_operand):
7883         Accept address wrapped in AND for Altivec.
7884         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
7885         Strip AND wrapping offset address for Altivec.
7886
7887 2005-08-11  Richard Henderson  <rth@redhat.com>
7888
7889         PR middle-end/23312
7890         * gimplify.c (gimplify_one_sizepos): Check for INTEGER_TYPE
7891         before using TYPE_IS_SIZETYPE.
7892
7893 2005-08-11  Richard Henderson  <rth@redhat.com>
7894
7895         PR target/22225
7896         * config/alpha/alpha.c (alphaev4_insn_pipe): Add take pipes for
7897         insn types not present on ev4.
7898         (alphaev5_insn_pipe): Similarly.
7899
7900 2005-08-11  Richard Earnshaw  <richard.earnshaw@arm.com>
7901
7902         PR target/23250
7903         * arm.c (arm_override_options): If the user has selected callee-super-
7904         interworking, then enable normal interworking.
7905
7906 2005-08-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7907
7908         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Undef before
7909         redefinition.
7910
7911 2005-08-11  Wu Zhou  <woodzltc@cn.ibm.com>
7912
7913         * doc/rtl.texi: Fix two typos.
7914
7915 2005-08-11  Richard Guenther  <rguenther@suse.de>
7916
7917         PR target/23289
7918         * config/i386/i386.c (ix86_function_ok_for_sibcall): Handle
7919         cases where we call to/from functions returning void.
7920
7921 2005-08-10  James A. Morrison  <phython@gcc.gnu.org>
7922
7923         PR c++/23225
7924         * tree.c (build_pointer_type_for_mode): Robustify.
7925
7926 2005-08-10  James E Wilson  <wilson@specifix.com>
7927
7928         * defaults.h, config/alpha/alpha.h, config/ia64/ia64.h
7929         (ASM_OUTPUT_ADDR_VEC_ELT): Delete.
7930
7931         * config/alpha/alpha.c (alpha_arg_partial_bytes): Change "(CUM)." to
7932         "cum->".
7933
7934 2005-08-10  Eric Christopher  <echristo@apple.com>
7935
7936         * config/rs6000/rs6000.c (mems_ok_for_quad_peep): Rewrite.
7937         * config/rs6000/rs6000.md (*lfq_power2, *stfq_power2): Use
7938         V2DFmode.
7939
7940 2005-08-10  Andrew Pinski  <pinskia@physics.uc.edu>
7941
7942         PR target/21887
7943         * config/darwin.c (machopic_indirect_data_reference): Use a new register
7944         for the high part when generating dynamic-no-pic code.
7945
7946 2005-08-10  H.J. Lu  <hongjiu.lu@intel.com>
7947
7948         * config.gcc (i[34567]86-*-linux*): Add i386/t-crtfm to tm-file.
7949         (x86_64-*-linux*): Likewise.
7950
7951         * config/i386/crtfastmath.c: New file.
7952         * config/i386/t-crtfm: Likewise.
7953
7954         * config/i386/linux.h (ENDFILE_SPEC): New.
7955         * config/i386/linux64.h (ENDFILE_SPEC): Likewise.
7956
7957         * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
7958         crtfastmath.o.
7959
7960 2005-08-10  Dorit Nuzman  <dorit@il.ibm.com>
7961
7962         * doc/md.texi: (reduc_smin, reduc_umin, reduc_splus, reduc_uplus):
7963         (vec_shl, vec_shr): Document new operations.
7964         * tree.def (VEC_RSHIFT_EXPR, VEC_LSHIFT_EXPR): Fix comment.
7965
7966 2005-08-10  David Edelsohn  <edelsohn@gnu.org>
7967
7968         * config/rs6000/predicates.md (indexed_or_indirect_address): New.
7969         * config/rs6000/rs6000.md (prefetch): Remove operand 0 mode and
7970         change predicate to indexed_or_indirect_address.
7971
7972 2005-08-10  Richard Sandiford  <richard@codesourcery.com>
7973
7974         * config/arm/lib1funcs.asm (__aeabi_uidiv, __aeabi_idiv): New aliases.
7975         * config/arm/libgcc-bpabi.ver (GCC_3.5): Add __aeabi_idiv,
7976         __aeabi_uidiv, __aeabi_uread4, __aeabi_uread8, __aeabi_uwrite4
7977         and __aeabi_uwrite8.
7978         * config/arm/unaligned-funcs.c: New file.
7979         * config/arm/t-bpabi (LIB2FUNCS_EXTRA): Add unaligned-funcs.c.
7980
7981 2005-08-09  Paolo Bonzini  <bonzini@gnu.org>
7982
7983         * bb-reorder.c (pass_duplicate_computed_gotos, pass_partition_blocks):
7984         Add dump.
7985         * cfglayout.c (pass_insn_locators_initialize): Add dump.
7986         * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes):
7987         Add dump.
7988         * except.c (pass_convert_to_eh_region_ranges): Add dump.
7989         * final.c (pass_shorten_branches): Add dump.
7990         * flow.c (pass_recompute_reg_usage, pass_remove_death_notes): Add dump.
7991         (pass_life): Rename dump.
7992         (rest_of_handle_flow2): Remove initial verify_flow_info.
7993         * function.c (pass_instantiate_virtual_regs): Add dump.
7994         * integrate.c (pass_initial_value_sets): Add dump.
7995         * jump.c (pass_cleanup_barriers, pass_purge_lineno_notes): Add dump.
7996         * loop-init.c (pass_rtl_loop_init, pass_rtl_loop_done): Rename dump.
7997         (pass_rtl_move_loop_invariants, pass_rtl_unswitch, pass_rtl_doloop,
7998         pass_rtl_unroll_and_peel_loops): Rename dump and add gate.
7999         (gate_rtl_move_loop_invariants, gate_rtl_unswitch, gate_rtl_doloop,
8000         gate_rtl_unrool_and_peel_loops): New.
8001         (rtl_move_loop_invariants, rtl_unswitch, rtl_unrool_and_peel_loops,
8002         rtl_doloop): Do not look at flags.
8003         * mode-switching.c (pass_mode_switching): Add dump.
8004         * recog.c (pass_split_all_insns, pass_split_for_shorten_branches,
8005         pass_split_before_regstack): Add dump.
8006         * regmove.c (pass_stack_adjustments): Add dump.
8007         * tree-optimize.c (pass_fixup_cfg): Add dump.
8008
8009 2005-08-10  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
8010
8011         PR 23309
8012         * config/m32r/m32r.c (m32r_reload_lr): Fix off by one error when
8013         deciding which instruction sequence to use.
8014
8015 2005-08-09  Dorit Nuzman  <dorit@il.ibm.com>
8016
8017         * tree-vect-transform.c (vect_create_epilog_for_reduction): Set
8018         BIT_FIELD_REF_UNSIGNED for newly created BIT_FIELD_REFs.
8019
8020 2005-08-09  Richard Guenther  <rguenther@suse.de>
8021
8022         * c-common.c (builtin_function_2): Remove.
8023         (def_builtin_1): New function.
8024         (c_common_nodes_and_builtins): Use def_builtin_1 to
8025         build builtin functions.
8026
8027 2005-08-09  Jie Zhang  <jie.zhang@analog.com>
8028
8029         * config/bfin/uclinux.h (NO_IMPLICIT_EXTERN_C): Define.
8030         * config/bfin/elf.h (NO_IMPLICIT_EXTERN_C): Define.
8031         * config/bfin/bfin.c (bfin_return_in_memory): Update to really match
8032         Visual DSP.
8033
8034 2005-08-09  James A. Morrison  <phython@gcc.gnu.org>
8035
8036         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Use
8037         fold_binary instead of fold_build2 since we don't care about the
8038         resulting tree.
8039         (loop_niter_by_eval): Likewise.
8040         (compare_trees): Likewise.
8041         (proved_non_wrapping_p): Likewise.
8042
8043 2005-08-09  James A. Morrison  <phython@gcc.gnu.org>
8044
8045         PR c/23161
8046         PR c/23165
8047         * c-typeck.c (c_finish_if_stmt): Look into STATEMENT_LISTs to see
8048         if the if is really empty.
8049
8050 2005-08-09  Steven Bosscher  <stevenb@suse.de>
8051
8052         PR tree-optimization/23234
8053         * tree-ssa-math-opts.c (place_reciprocal): New enum.
8054         (execute_cse_reciprocals_1): Replace the 'phi' argument with an
8055         argument of the new enum.
8056         (execute_cse_reciprocals): Add reciprocals for function arguments
8057         on the unique successor edge of the entry block.  Update other calls
8058         to execute_cse_reciprocals_1.
8059
8060 2005-08-08  Richard Henderson  <rth@redhat.com>
8061
8062         PR 22439
8063         * gimplify.c (gimplify_one_sizepos): Preserve the original type.
8064
8065 2005-08-08  Bob Wilson  <bob.wilson@acm.org>
8066
8067         * expr.c (write_complex_part): Return after handling MEM.
8068
8069 2005-08-08  Josh Conner  <jconner@apple.com>
8070
8071         PR rtl-optimization/23241
8072         * combine.c (simplify_comparison): Fix error in determining
8073         whether to lift a subreg from comparison.
8074
8075 2005-08-08  David Edelsohn  <edelsohn@gnu.org>
8076
8077         PR target/18506
8078         * config/rs6000/altivec.md (vec_init<mode>): New.
8079         (vec_set<mode>): New.
8080         (vec_extract<mode>): New.
8081         * config/rs6000/rs6000.c (rs6000_expand_vector_init): New.
8082         (rs6000_expand_vector_set): New.
8083         (rs6000_expand_vector_extract): New.
8084         (rs6000_legitimate_offset_address_p): Offset addresses are valid
8085         for Altivec modes before reload.
8086         (altivec_expand_vec_init_builtin): New.
8087         (get_element_number): New.
8088         (altivec_expand_vec_set_builtin): New.
8089         (altivec_expand_vec_ext_builtin): New.
8090         (altivec_expand_builtin): Expand vec_init, vec_set, and vec_ext
8091         builtins.
8092         (altivec_init_builtins): Init vec_init, vec_set, and vec_ext
8093         builtins.
8094         * config/rs6000/rs6000.h (rs6000_builtins): Add
8095         ALTIVEC_BUILTIN_VEC_INIT_<mode>, ALTIVEC_BUILTIN_VEC_SET_<mode>,
8096         ALTIVEC_BUILTIN_VEC_EXT_<mode>.
8097         * config/rs6000/rs6000-protos.h: Declare new functions.
8098
8099 2005-08-08  Jan Hubicka  <jh@suse.cz>
8100
8101         * i386.c (legitimate_pic_address_disp_p): Refuse GOTOFF in 64bit mode.
8102         (legitimate_address_p): Refuse GOT and GOTOFF in 64bit mode.
8103         * i386.md (movdi*): Use pic_32bit_operand.
8104         * predicates.md (pic_32bit_operand): New.
8105
8106 2005-08-08  Nathan Sidwell  <nathan@codesourcery.com>
8107
8108         PR c++/21166
8109         * stor-layout.c (finalize_type_size): Undo DECL_PACKED when possible.
8110
8111 2005-08-07  James A. Morrison  <phython@gcc.gnu.org>
8112
8113         * tree-vrp.c (simplify_div_or_mod_using_range): Use build2.
8114         (test_for_singularity): Use fold_build2.
8115
8116 2005-08-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8117
8118         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Fix loop upper bound.
8119
8120 2005-08-07  Danny Smith  <dannysmith@users.sourceforge.net>
8121
8122         * config/i386/cygming.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
8123         (COMMON_ASM_OP) Define.
8124         * config/i386/i386.c (ix86_in_large_data_p): Add ATTRIBUTE_UNUSED
8125         (ix86_encode_section_info): Likewise.
8126         (TARGET_ENCODE_SECTION_INFO): Conditionally define as
8127         SUBTARGET_ENCODE_SECTION_INFO.
8128
8129 2005-08-06  Richard Henderson  <rth@redhat.com>
8130
8131         PR 21894
8132         * tree-nested.c (convert_local_reference): Save and restore val_only
8133         around component_ref and friends.  Clear walk_subtrees by default.
8134
8135 2005-08-06  Peter O'Gorman  <peter@pogma.com>
8136
8137         PR 21366
8138         * gcc.c (process_command): Check the argument to -b has a dash.
8139         * doc/invoke.texi: Update -b and -V docs.
8140
8141 2005-08-06  James E Wilson  <wilson@specifix.com>
8142
8143         * config/mips/cross64.h, config/mips/t-cross64: Delete.
8144
8145 2005-08-06  Michael Matz  <matz@suse.de>
8146
8147         * genattrtab.c (write_attr_get, write_attr_case): Use insn_code
8148         member only if only one insn is associated with the value.
8149
8150 2005-08-06  Nick Clifton  <nickc@redhat.com>
8151
8152         * config/stormy16/stormy16.h (SYMBOL_FLAG_XSTORMY16_BELOW100):
8153         New define.
8154         (ASM_OUTPUT_LABELREF): Delete - it is no longer needed.
8155         * config/stormy16/stormy16.c (xstormy16_below100_symbol):
8156         Check symbol flags instead of symbol name mangling.
8157         (xstormy16_asm_output_aligned_common): Likewise.  Also
8158         simplify code since the bss100_section cass is the only case
8159         where the below100 code will be triggered.
8160         (xstormy16_encode_section_info): Encode below100 attribute
8161         using the SYMBOL_FLAG_XSTORMY16_BELOW100 instead of mangling
8162         the name.
8163         (xstormy16_strip_name_encoding): Delete - this function is no
8164         longer needed.
8165         (TARGET_STRIP_NAME_ENCODING): Undefine.
8166         * config/stormy16/stormy16-protos.h: Delete prototype for
8167         xstormy16_strip_name_encoding.
8168
8169 2005-08-06  Kazu Hirata  <kazu@codesourcery.com>
8170
8171         * Makefile.in, cfgexpand.c, cfgloop.h, cfgloopmanip.c,
8172         config.gcc, ipa-cp.c, ipa-prop.c, ipa-prop.h, reg-stack.c,
8173         tree-ssa-structalias.c, tree-vrp.c, value-prof.c, vec.h,
8174         config/linux.h, config/alpha/alpha.h, config/alpha/linux.h,
8175         config/alpha/predicates.md, config/arc/arc.h,
8176         config/arm/arm.h, config/arm/ieee754-df.S,
8177         config/arm/ieee754-sf.S, config/bfin/bfin.c,
8178         config/bfin/bfin.h, config/c4x/c4x.h, config/crx/crx.c,
8179         config/fr30/fr30.h, config/frv/frv.h, config/h8300/h8300.h,
8180         config/i386/i386.h, config/ia64/ia64.c, config/ia64/ia64.h,
8181         config/m68hc11/m68hc11.h, config/mips/mips.c,
8182         config/mips/mips.h, config/mips/openbsd.h,
8183         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.h,
8184         config/pdp11/pdp11.h, config/rs6000/linux-unwind.h,
8185         config/rs6000/rs6000.c, config/rs6000/rs6000.h,
8186         config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
8187         config/sparc/linux.h, config/sparc/linux64.h,
8188         config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h,
8189         doc/extend.texi, doc/gcov.texi, doc/install.texi,
8190         doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix comment/doc
8191         typos.  Follow spelling conventions.
8192
8193 2005-08-06  Joseph S. Myers  <joseph@codesourcery.com>
8194
8195         PR c/23113
8196         * stmt.c (warn_if_unused_value): Check TREE_NO_WARNING at start.
8197         Don't handle NOP_EXPR, CONVERT_EXPR and NON_LVALUE_EXPR
8198         specially.  Check for side effects only for COND_EXPR.
8199         * c-typeck.c (c_finish_stmt_expr): Mark statement expression
8200         return with TREE_NO_WARNING.
8201
8202 2005-08-06  Richard Sandiford  <richard@codesourcery.com>
8203
8204         PR rtl-optimization/23233
8205         * loop.c (combine_movables): Require the modes to be the same.
8206         (move_movables): Remove handling of cases where the replacement
8207         had a different mode to the original.
8208
8209 2005-08-05  James A. Morrison  <phython@gcc.gnu.org>
8210
8211         PR tree-optimization/23128
8212         * tree-vrp.c (vrp_int_const_binop): Check if unsigned addition or
8213         subtraction wrap, and set TREE_OVERFLOW if they do.
8214
8215 2005-08-05  Richard Henderson  <rth@redhat.com>
8216
8217         PR 21728
8218         * tree-cfg.c (remove_bb): Transmute DECL_NONLOCAL labels into
8219         FORCED_LABEL labels.
8220
8221 2005-08-05  J"orn Rennecke <joern.rennecke@st.com>
8222
8223         PR middle-end/23135
8224         * reload.c (find_reloads_subreg_address): Pass down TYPE
8225         unchanged.  Change all callers except find_reloads_toplev.
8226
8227 2005-08-05  Michael Matz  <matz@suse.de>
8228
8229         * genattrtab.c (current_alternative_string): Remove.
8230         (SIMPLIFY_ALTERNATIVE): Ditto.
8231         (attr_alt_bit_p): Ditto.
8232         (alternative_name): Make const char *.
8233         (evaluate_eq_attr): Remove use of above things.
8234         (simplify_test_exp): Ditto.
8235         (simplify_test_exp <EQ_ATTR>): Guard for insn_code < 0 .
8236         (simplify_test_exp <AND>): Correct typo (test 'right' not 'left').
8237
8238 2005-08-04  James E Wilson  <wilson@specifix.com>
8239
8240         * config/ptx4.h, config/sol2.h, config/arm/freebsd.h,
8241         config/arm/linux-elf.h, config/frv/frv.h, config/i386/freebsd.h,
8242         config/i386/freebsd64.h, config/i386/netware.h, config/i386/sco5.h,
8243         config/ia64/freebsd.h, config/rs6000/sysv4.h, config/sparc/freebsd.h
8244         (LINK_SPEC): Delete useless %{Wl,*:%*} item.
8245
8246 2005-08-04  Richard Henderson  <rth@redhat.com>
8247
8248         PR 21529
8249         * params.def (PARAM_SRA_MAX_STRUCTURE_COUNT): New.
8250         * params.h (SRA_MAX_STRUCTURE_COUNT): New.
8251         * tree-sra.c (decide_block_copy): Use it.  Disable element copy
8252         if we'd have to instantiate too many members.
8253
8254 2005-08-04  Richard Henderson  <rth@redhat.com>
8255
8256         PR 21291
8257         * tree-outof-ssa.c (coalesce_asm_operands): New.
8258         (coalesce_ssa_name): Use it.  Split out ...
8259         (coalesce_phi_operands, coalesce_result_decls): ... these.
8260
8261 2005-08-04  Paul Brook  <paul@codesourcery.com>
8262
8263         * read-rtl.c (read_quoted_string): Break if EOF.
8264
8265 2005-08-04  Andrew Pinski  <pinskia@physics.uc.edu>
8266
8267         * tree.h (fold_build1): Change to macro and call fold_build1_stat.
8268         (fold_build2): Likewise.
8269         (fold_build3): Likewise.
8270         (fold_build1_stat): New function prototype.
8271         (fold_build2_stat): Likewise.
8272         (fold_build3_stat): Likewise.
8273         * fold-const.c (fold_build1): Rename to ..
8274         (fold_build1_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
8275         through to build1_stat.
8276         (fold_build2): Rename to ..
8277         (fold_build2_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
8278         through to build2_stat.
8279         (fold_build3): Rename to ..
8280         (fold_build3_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
8281         through to build3_stat.
8282
8283 2005-08-04  David Edelsohn  <edelsohn@gnu.org>
8284             Ian Lance Taylor  <ian@airs.com>
8285
8286         * function.c (assign_stack_local_1): Do not correct stack slot
8287         address if allocation size is smaller than mode size.
8288
8289 2005-08-04  Diego Novillo  <dnovillo@redhat.com>
8290
8291         PR 22037
8292         * tree-cfg.c (replace_uses_by): Call mark_new_vars_to_rename.
8293         (tree_merge_blocks): Propagate anything allowed by
8294         may_propagate_copy.
8295         Clarify documentation.
8296         * passes.c (execute_todo): If cleanup_tree_cfg invalidated the
8297         SSA form, schedule an update if necessary.
8298
8299 2005-08-04  Gerald Pfeifer  <gerald@pfeifer.com>
8300
8301         * doc/install.texi (Binaries): Remove broken link to
8302         Sinix/Reliant Unix binaries.
8303
8304 2005-08-03  Richard Henderson  <rth@redhat.com>
8305
8306         PR 23221
8307         * function.c (stack_protect_epilogue): Export.
8308         * tree.h (stack_protect_epilogue): Declare.
8309         * calls.c (expand_call): Call it.
8310
8311 2005-08-03  Eric Christopher  <echristo@apple.com>
8312
8313         * gcc.c (LINK_SSP_SPEC): Add fstack-protector-all.
8314         * config/darwin.h (LINK_COMMAND_SPEC): Add link_ssp
8315         spec.
8316
8317 2005-08-04  Jan Hubicka  <jh@suse.cz>
8318
8319         * profile.c (branch_prob): Split edges with goto locus on them
8320         to get proper line counts.
8321         * tree-cfg.c (make_cond_expr_edges): Record user goto locuses, if any.
8322
8323 2005-08-03  Paul Brook  <paul@codesourcery.com>
8324
8325         * function.c (assign_parms): Round current_function_args_size
8326         to PARM_BOUNDARY, not STACK_BOUNDARY.
8327
8328 2005-08-03  Geoffrey Keating  <geoffk@apple.com>
8329
8330         * config/i386/i386.c (x86_elf_aligned_common)
8331         (x86_output_aligned_bss): Don't try to use symbols that aren't defined.
8332
8333 2005-08-03  Zdenek Dvorak  <dvorakz@suse.cz>
8334
8335         PR tree-optimization/23157
8336         * tree-scalar-evolution.c (scev_const_prop): Unshare trees
8337         before emitting them.
8338
8339 2005-08-03  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
8340
8341         PR tree-optimization/19899
8342         * Makefile.in (tree-scalar-evolution.o): Add real.h.
8343         * tree-scalar-evolution.c: Include real.h.
8344         (add_to_evolution): Build constant -1 of correct type.
8345
8346 2005-08-03  Jan Hubicka  <jh@suse.cz>
8347
8348         * cfgloop.h (DLTHE_FLAG_COMPLETTE_PEEL): New flag.
8349         * cfgloopmanip.c (duplicate_loop_to_header_edge): Special case
8350         profile updating for complette unrolling.
8351         * loop-unroll.c (peel_loop_completely): Use it.
8352         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
8353         (tree_unroll_loops_completely): Disable code growing unrolling of cold
8354         loops.
8355
8356 2005-08-03  Paul Brook  <paul@codesourcery.com>
8357
8358         * combine.c (can_change_dest_mode): New function.
8359         (try_combine, simplify_set): Use it.
8360
8361 2005-08-03  Eric Botcazou  <ebotcazou@adacore.com>
8362
8363         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Only force
8364         TFmode to BLKmode.
8365
8366 2005-08-03  Gerald Pfeifer  <gerald@pfeifer.com>
8367
8368         * doc/install.texi (Specific): Adjust link to openavr.org.
8369         (Specific): Remove broken reference to GCC 2.8.1 for OS/2.
8370         (Binaries): Adjust HP-UX Porting Center link.
8371         (Binaries): Adjust Free Software Foundation ordering link.
8372
8373 2005-08-03  Andrew Pinski  <pinskia@physics.uc.edu>
8374
8375         * convert.c (convert_to_integer): Use fold_build1 instead of
8376         build1 when converting an integer to an integer.
8377
8378 2005-08-02  Richard Henderson  <rth@redhat.com>
8379
8380         * combine.c (combine_instructions): Don't use reg_equal/equiv
8381         results if the mode doesn't match.
8382
8383 2005-08-02  Mark Mitchell  <mark@codesourcery.com>
8384
8385         * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Set it.
8386         * doc/fragments.texi (NATIVE_SYSTEM_HEADER_DIR): Document it.
8387
8388 2005-08-02  Richard Henderson  <rth@redhat.com>
8389
8390         PR 23196
8391         * explow.c (memory_address): Remove special-case for
8392         virtual_stack_vars_rtx and virtual_incoming_args_rtx.
8393
8394 2005-08-02  Diego Novillo  <dnovillo@redhat.com>
8395
8396         PR 23164
8397         * tree-cfgcleanup.c (cleanup_tree_cfg): Do not limit the
8398         number of calls to cleanup_tree_cfg_1.
8399
8400 2005-08-02  Martin Reinecke  <martin@mpa-garching.mpg.de>
8401
8402         * doc/invoke.texi: document file extensions .F90 and .F95
8403
8404 2005-08-02  Richard Guenther  <rguenther@suse.de>
8405
8406         * fold-const.c (tree_expr_nonnegative_p): frexp(x, &e) is
8407         positive if its first argument is positive.
8408
8409 2005-08-02  Richard Guenther  <rguenther@suse.de>
8410
8411         PR tree-optimization/23177
8412         * tree-ssa-operands.c (get_tmr_operands): Use get_expr_operands
8413         on TMR_TAG.
8414
8415 2005-08-02  James A. Morrison  <phython@gcc.gnu.org>
8416
8417         PR tree-optimization/23129
8418         * tree-vrp.c (extract_range_from_binary_expr): Set value range to
8419         varying for divisions with anti-ranges.
8420
8421 2005-08-02  Jan Hubicka  <jh@suse.cz>
8422
8423         * tree-ssa-dom.c (thread_across_edge): Remove updating here.
8424         * tree-ssa-threadupdate.c (thread_block): Add it here.
8425
8426 2005-08-01  James E Wilson  <wilson@specifix.com>
8427
8428         * config/mips/mips.c (mips_encode_section_info, mips_attribute_table,
8429         TARGET_ENCODE_SECTION_INFO, TARGET_ATTRIBUTE_TABLE): New.
8430         * config/mips/mips.h (SYMBOL_FLAG_LONG_CALL, SYMBOL_REF_LONG_CALL_P):
8431         New.
8432         * config/mips/predicates.md (const_call_insn_operand): Add check for
8433         SYMBOL_REF_LONG_CALL_P.
8434         * doc/extend.texi (long_call): Document the new attribute.
8435
8436 2005-08-01  Ian Lance Taylor  <ian@airs.com>
8437             Richard Henderson  <rth@redhat.com>
8438
8439         * Makefile.in (RTL_BASE_H): Add real.h.
8440         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Use structure copy
8441         instead of memcpy.
8442         * emit-rtl.c (const_double_from_real_value): Likewise; use rtx.u.rv
8443         directly.
8444         * rtl.c (rtl_check_failed_code_mode): New.
8445         * rtl.h (struct rtx_def): Add u.rv.
8446         (XCMWINT, XCNMPRV): New.
8447         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Use XCMWINT.
8448         (CONST_DOUBLE_REAL_VALUE): Use XCNMPRV; constify.
8449
8450 2005-08-01  Richard Henderson  <rth@redhat.com>
8451
8452         * dwarf2out.c (mem_loc_descriptor): Use XEXP, not SUBREG_REG,
8453         with auto-inc codes.
8454
8455         * config/alpha/predicates.md (and_operand): Test mode of CONST_DOUBLE.
8456
8457 2005-08-01  Jan Hubicka  <jh@suse.cz>
8458
8459         * i386-protos.h (asm_preferred_eh_data_format): Declare.
8460         * i386.c: Include dwarf2.h
8461         (asm_preferred_eh_data_format): New.
8462         * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Move offline.
8463
8464 2005-08-01  Ian Lance Taylor  <ian@airs.com>
8465
8466         * config/host-linux.c (linux_gt_pch_get_address): Add new name
8467         randomize_va_space for virtual address randomization control.
8468
8469 2005-08-01  Steven Bosscher  <stevenb@suse.de>
8470
8471         * common.opt (flag_ipa_cp): Put in right place to maintain
8472         alphabetic sort.
8473
8474 2005-08-01  Jan Hubicka  <jh@suse.cz>
8475
8476         * profile.c (compute_value_histograms): Fix thinko.
8477         * value-prof.c: Include toplev.h
8478         (check_counter): New function.
8479         (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
8480         tree_mod_subtract_transform): Add sanity check.
8481
8482 2005-08-01  Richard Guenther  <rguenther@suse.de>
8483
8484         PR tree-optimization/23133
8485         * tree-ssa-math-opts.c (execute_cse_reciprocals): Walk
8486         current functions parameter decls to find defs to cse
8487         reciprocals of.
8488
8489 2005-08-01  Richard Guenther  <rguenther@suse.de>
8490
8491         PR tree-optimization/23109
8492         * tree-ssa-math-opts.c (execute_cse_reciprocals_1):
8493         If trapping math is in effect, use post-dominator information
8494         to check if we'd in any case reach a trapping point before
8495         doing the reciprocal insertion.
8496         (execute_cse_reciprocals): Compute post-dominators, if necessary.
8497         * tree-ssa-loop-im.c (determine_invariantness_stmt): RDIV
8498         expressions are invariant only if trapping math is not in effect.
8499
8500 2005-08-01  Razya Ladelsky  <razya@il.ibm.com>
8501
8502         * cgraph.h (update_call_expr, cgraph_copy_node_for_versioning,
8503         cgraph_function_versioning): New declarations.
8504         * cgraphunit.c: Add include to ipa-prop.h.
8505         (update_call_expr, cgraph_copy_node_for_versioning,
8506         cgraph_function_versioning): New functions.
8507         * integrate.c (copy_decl_for_inlining): Remove.
8508         * ipa-prop.h (ipa_replace_map): New struct.
8509         (struct ipa_node): Add ipcp_orig_node, count_scale, new fields.
8510         * ipa-cp.c (ipcp_method_orig_node, ipcp_method_is_cloned,
8511         ipcp_method_set_orig_node, ipcp_cloned_create, ipcp_method_get_scale,
8512         ipcp_method_set_scale, ipcp_method_compute_scale, ipcp_after_propagate,
8513         ipcp_iterate_stage, ipcp_method_scale_print,
8514         ipcp_profile_mt_count_print, ipcp_profile_cs_count_print,
8515         ipcp_profile_edge_print, ipcp_profile_bb_print , ipcp_profile_print,
8516         ipcp_replace_map_create, ipcp_redirect, ipcp_update_callgraph,
8517         ipcp_update_bb_counts, ipcp_update_profiling,
8518         ipcp_update_edges_counts): New functions.
8519         (ipcp_method_cval_init): Remove restriction regarding local methods.
8520         (ipcp_init_stage): Add ipcp_method_compute_scale.
8521         (ipcp_insert_stage): Add versioning.
8522         (ipcp_structures_print): Add ipcp_method_scale_print.
8523         (ipcp_driver): Dump profiling info.
8524         * Makefile.in: Remove integrate.h dependency from tree-inline.o.
8525         Add ipa-prop.h dependency to tree-inline.o and cgraphunit.o.
8526         * tree-inline.c: Remove include to integrate.h, Add include ipa-prop.h.
8527         (struct inline_data): Add versioning_p, ipa_info, new fields.
8528         (remap_decl, mark_local_for_remap_r, setup_one_parameter,
8529         declare_return_variable): Replace calls to copy_decl_for_inlining with
8530         copy_decl_for_dup.
8531         (copy_body_r, copy_bb, copy_cfg_body, copy_tree_r, inlining_p): Add
8532         versioning support.
8533         (copy_decl_for_dup): Rename from copy_decl_for_inlining.
8534         Add argument VERSIONING.
8535         (copy_arguments_for_versioning, copy_static_chain,
8536         function_versionable_p, tree_versionable_function_p,
8537         tree_function_versioning, replace_ref_tree): New functions.
8538         * tree-inline.h: Include varray.h.
8539         (tree_versionable_function_p,  tree_function_versioning,
8540         tree copy_decl_for_dup): New declarations.
8541
8542 2005-08-01  Razya Ladelsky  <razya@il.ibm.com>
8543
8544         * ipa-cp.c: New file. Contains IPCP specific functionality.
8545         * ipa-prop.h: New file. Contains structures/definitions that can be
8546         used by several interprocedural data flow optimizations (and also IPCP).
8547         * ipa-prop.c: New file.
8548         * Makefile.in: Add ipa-cp.c, ipa-prop.h, ipa-prop.c.
8549         * common.opt: Add ipa-cp flag.
8550         * timevar.def: Add IPCP optimization.
8551         * tree-optimize.c (init_tree_optimization_passes): Schedule
8552         pass_ipa_cp.
8553         * tree-pass.h (pass_ipa_cp): Declare.
8554
8555 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
8556
8557         * dwarf2out.c, fold-const.c, ipa-type-escape.c,
8558         loop-invariant.c, predict.c, predict.def, reload1.c, reorg.c,
8559         tree-sra.c, config/arm/arm.c, config/crx/crx.c,
8560         config/i386/i386.c, config/mips/mips.h,
8561         config/rs6000/rs6000.h, config/sh/sh.c,
8562         config/stormy16/stormy16.c: Fix comment typos.
8563
8564 2005-08-01  Joseph S. Myers  <joseph@codesourcery.com>
8565
8566         PR c/22311
8567         * c-typeck.c (build_binary_op): Use common_type wrapper on
8568         shortened types.
8569         (common_type): Update comment.
8570
8571 2005-07-31  Steven Bosscher  <stevenb@suse.de>
8572
8573         PR target/23095
8574         * common.opt (flag_gcse_after_reload): Don't initialize to 2.
8575         (flag_rerun_cse_after_loop): Initialize this to 2 instead.
8576         * postreload-gcse.c (hash_scan_set): Do not consider stack regs.
8577
8578 2005-07-31  Jan Hubicka  <jh@suse.cz>
8579
8580         * pretty-print.h (pp_widest_integer): New macro.
8581         * tree-pretty-print.c (dump_bb_header): Print BB frequencies and
8582         counts.
8583
8584 2005-07-31  Jan Hubicka  <jh@suse.cz>
8585
8586         * output.h (enum section_category): Export from varasm.c
8587         (categorize_decl_for_section): Likewise.
8588         * varasm.c (enum section_category): Kill.
8589         (categorize_decl_for_section): Make global.
8590         * i386-protos.h (x86_output_aligned_bss, x86_elf_aligned_common):
8591         Declare.
8592         * i386.c (ix86_section_threshold): New static variable.
8593         (ix86_in_large_data_p, ix86_encode_section_info,
8594         x86_64_elf_unique_section,
8595         x86_64_elf_select_section): New functions.
8596         (TARGET_ENCODE_SECTION_INFO): Define
8597         (override_options): Enable medium model for PIC.
8598         (ix86_expand_prologue): Expand gen_set_got_rex64.
8599         (legitimate_constant_p): Handle new UNSPECs.
8600         (legitimate_pic_address_disp_p): Likewise.
8601         (legitimize_pic_address): Lower MEDIUM model addressing.
8602         * i386.h (PIC_OFFSET_TABLE_REGNUM): Set for medium model PIC.
8603         (enum cmodel): Add MEDIUM_PIC.
8604         (SYMBOL_REF_FAR_ADDR_P): New macro.
8605         (SYMBOL_FLAG_FAR_ADDR): New flag.
8606         * i386.md (movdi): Support medium model.
8607         (set_got_rex64): New pattern.
8608         * i386.opt (mlarge-data-threshold): New flag.
8609         * predicates.md (zext_operand/sext_operand): Deal with medium model.
8610         * x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Use x86_output_aligned_bss.
8611         (ASM_OUTPUT_ALIGNED_COMMON, TARGET_ASM_SELECT_SECTION,
8612         TARGET_ASM_UNIQUE_SECTION): New.
8613
8614         * invoke.texi (-mlarge_data_threshold): Document
8615
8616 2005-07-31  Jan Hubicka  <jh@suse.cz>
8617
8618         * tree-outof-ssa.c (coalesce_ssa_name): Use coalesce_cost.
8619         (coalesce_vars): Likewise.
8620         * tree-ssa-live.c (coalesce_cost): New.
8621         (build_tree_conflict_graph): Use coalesce_cost.
8622         * tree-ssa-live.h (coalesce_cost): Declare.
8623
8624 2005-07-30  Richard Earnshaw  <richard.earnshaw@arm.com>
8625
8626         * arm.md (all peepholes for post-increment operations): Delete.
8627         (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec)
8628         (loadqisi_preinc, loadqisi_predec, strsi_preinc, strsi_predec)
8629         (loadsi_preinc, loadsi_predec, strqi_shiftpreinc, strqi_shiftpredec)
8630         (loadqi_shiftpreinc, loadqi_shiftpredec, strsi_shiftpreinc)
8631         (strsishift_predec, loadsi_shiftpreinc, loadsi_shiftpredec): Delete.
8632
8633 2005-07-30  James A. Morrison  <phython@gcc.gnu.org>
8634
8635         * fold-const.c (tree_expr_nonnegative_p): Always return true for
8636         non-integral types.
8637
8638 2005-07-29  Wolfgang Bangerth <bangerth@dealii.org>
8639
8640         PR target/22582
8641         * doc/invoke.texi: Document -rdynamic.
8642
8643 2005-07-30  Joseph S. Myers  <joseph@codesourcery.com>
8644
8645         PR c/23143
8646         * c-parser.c (c_parser_parms_list_declarator): Call
8647         mark_forward_parm_decls.
8648         * c-decl.c (merge_decls): Only check DECL_IN_SYSTEM_HEADER for
8649         decls with visibility structure.
8650
8651 2005-07-30  Paul Brook  <paul@codesourcery.com>
8652
8653         * config/arm/arm.c (arm_coproc_mem_operand): Fix inaccurate comment.
8654
8655 2005-07-30  Paul Brook  <paul@codesourcery.com>
8656
8657         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
8658         prototype.
8659         * config/arm/arm.c (arm_canonicalize_comparison): Use correct limit
8660         value for mode.
8661         * config/arm/arm.h (CANONICALIZE_COMPARISON): Pass mode argument.
8662
8663 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
8664
8665         PR c/529
8666         * c-decl.c (warn_if_shadowing): Don't check for PARM_DECL in
8667         nested function declarators.
8668         (pushdecl): Don't call warn_if_shadowing for PARM_DECL.
8669         (grokparms): Call warn_if_shadowing for parameters used within the
8670         parameter list.
8671         (store_parm_decls_newstyle): Call warn_if_shadowing for parameters
8672         not used within the parameter list.
8673         (store_parm_decls_oldstyle): Call warn_if_shadowing for parameters.
8674
8675 2005-07-30  Jan Hubicka  <jh@suse.cz>
8676
8677         * expr.c (expand_expr_real_1): Do not load mem targets into register.
8678         * i386.c (ix86_fixup_binary_operands): Likewise.
8679         (ix86_expand_unary_operator): Likewise.
8680         (ix86_expand_fp_absneg_operator): Likewise.
8681         * optabs.c (expand_vec_cond_expr): Validate dest.
8682
8683 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
8684
8685         PR c/21720
8686         * real.c (real_from_string): Also set last bit if there is a
8687         nonzero hex digit beyond GCC's internal precision after ".".
8688
8689 2005-07-29  David Edelsohn  <edelsohn@gnu.org>
8690
8691         * config/rs6000/altivec.md: Convert UNSPEC numerical values to
8692         define_constants.  Change duplicate values to unassigned numbers.
8693         Change UNSPEC_SUBS to UNSPEC_VSUBS.
8694         (*altivec_vspltsf): New.
8695         (altivec_vperm_v4sf): Delete.
8696         (altivec_vperm_<mode>): Use mode macro V.
8697         (altivec_vsldoi_<mode>): Convert to mode macro pattern.
8698         (altivec_predicate_v4sf): Delete.
8699         (altivec_predicate_<mode>): Use mode macro V.
8700         (*altivec_lvesfx): New.
8701         (*altivec_stvesfx): New.
8702         (vec_realign_load_v4sf): Delete.
8703         (vec_realign_load_<mode>): Use mode macro V.
8704         * config/rs6000/rs6000.c (generate_set_vrsave): Use
8705         UNSPECV_SET_VRSAVE.
8706
8707 2005-07-29  Mark Mitchell  <mark@codesourcery.com>
8708
8709         PR bootstrap/23131
8710         * configure.ac (SYSTEM_HEADER_DIR): Avoid setting to empty
8711         string.
8712         * configure: Regenerated.
8713
8714 2005-07-29  Paul Brook  <paul@codesourcery.com>
8715
8716         * doc/install.texi: Add link to GFortran binaries wiki page.
8717
8718 2005-07-29  David Ung  <davidu@mips.com>
8719
8720         * config/mips/mips.c (mips_cpu_info_table): Add 5kf to the table.
8721         (mips_rtx_cost_data): Add costs for 5kc and 5kf.
8722         * config/mips/mips.h (processor_type): Add PROCESSOR_5KF.
8723         * config/mips/mips.md (cpu): Add 5kf name.
8724         (includes): Includes 5k.md.
8725         * config/mips/5k.md: New DFA pipeline for the 5kc/5kf.
8726         * doc/invoke.texi (MIPS Options): Updated cpu name supported with
8727         -march flag.
8728
8729 2005-07-29  Diego Novillo  <dnovillo@redhat.com>
8730
8731         PR 22550
8732         * tree-cfgcleanup.c (cleanup_tree_cfg_1): Extract from ...
8733         (cleanup_tree_cfg): ... here.
8734         Call cleanup_tree_cfg_1 until there are no more cleanups to
8735         do.
8736
8737 2005-07-29  James A. Morrison  <phython@gcc.gnu.org>
8738
8739         * tree-vrp.c (compare_range_with_value): Return true or false
8740         for ~[VAL_1, VAL_2] OP VAL if VAL_1 <= VAL <= VAL_2 for NE_EXPR and
8741         EQ_EXPR respectively.
8742
8743 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
8744
8745         * cfg.c, tree-complex.c, config/frv/frv.c, config/i386/i386.c:
8746         Fix comment typos.
8747
8748 2005-07-29  Diego Novillo  <dnovillo@redhat.com>
8749
8750         * tree-ssa-dom.c (struct opt_stats_d): Add field num_iterations.
8751         (tree_ssa_dominator_optimize): Increment it.
8752         (dump_dominator_optimization_stats): Print it.
8753
8754 2005-07-29  Richard Earnshaw  <richard.earnshaw@arm.com>
8755             Steven Bosscher  <stevenb@suse.de>
8756
8757         PR rtl-optimization/23117
8758         * sched-rgn.c (add_branch_dependences): Handle COND_EXEC correctly
8759         when head == tail.  Tidy comment.
8760
8761 2005-07-28  Richard Henderson  <rth@redhat.com>
8762
8763         * cse.c (exp_equiv_p): Special case CONST_DOUBLE.
8764         * cselib.c (rtx_equal_for_cselib_p): Likewise.
8765         * jump.c (rtx_renumbered_equal_p): Likewise.
8766         * loop.c (rtx_equal_for_loop_p): Tidy and special case PC, CC0,
8767         CONST_INT and CONST_DOUBLE.
8768         (rtx_equal_for_prefetch_p): Likewise, plus LABEL_REF.
8769         * reload.c (operands_match_p): Special case CONST_INT and
8770         CONST_DOUBLE; check mode earlier.
8771
8772 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
8773
8774         PR c/22240
8775         * c-typeck.c (convert_for_assignment): Do not check
8776         DECL_IN_SYSTEM_HEADER on NULL fundecl.
8777
8778 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
8779
8780         PR c/22192
8781         * c-typeck.c (composite_type): Prefer constant size arrays to
8782         VLAs.
8783
8784 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
8785
8786         PR c/21720
8787         * real.c (real_from_string): Set last bit if there is a nonzero
8788         hex digit beyond GCC's internal precision.
8789
8790 2005-07-28  Richard Henderson  <rth@redhat.com>
8791
8792         PR rtl-opt/22619
8793         * cfgcleanup.c (try_forward_edges): Watch out for end of
8794         insn chain.
8795
8796 2005-07-28  James E Wilson  <wilson@specifixinc.com>
8797
8798         PR c/23106
8799         * doc/invoke.texi (Wstrict-aliasing=2): Fix misleading wording.
8800
8801 2005-07-28  Jan Hubicka  <jh@suse.cz>
8802
8803         * Makefile.in (rtl-profile.o): Kill all traces of it.
8804         * common.opt (fspeculative-prefetching, ftree-based-profiling): Kill.
8805         * coverage.h (rtl_coverage_counter_ref): Kill.
8806         * opts.c (flag_speculative_prefetching_set): Kill.
8807         (flag_loop_optimize_set): New.
8808         (common_handle_option): Disable loop optimizer when profiling;
8809         do not handle speculative prefetching.
8810         * passes.c (init_optimization_passes): Replace pass_profiling combo
8811         by branch_prob pass.
8812         * profile.c (compute_value_histograms): Update for simplified value
8813         profiles.
8814         (rtl_register_profile_hooks): Kill.
8815         (pass_profiling): Kill.
8816         (rest_of_handle_branch_prob): Do not profile.
8817         * toplev.c (process_options): Remove speculative prefetching.
8818         * toplev.h (flag_tree_based_profiling): Kill.
8819         * tree-profile.c (prepare_instrumented_value,
8820         tree_gen_interval_profiler, tree_gen_pow2_profiler,
8821         tree_gen_one_value_profiler, do_tree_profiling): Update for
8822         simplified datastructures.
8823         * value-prof.c: Add comment that speculative prefetching was dropped;
8824         update rest of file for simplified datastructures.
8825         (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX,
8826         rtl_divmod_values_to_profile, insn_prefetch_values_to_profile,
8827         find_mem_reference_1, find_mem_reference_2, find_mem_reference,
8828         rtl_values_to_profile, rtl_divmod_fixed_value, rtl_mod_pow2,
8829         rtl_mod_subtract, gen_speculative_prefetch,
8830         rtl_divmod_fixed_value_transform, rtl_mod_pow2_value_transform,
8831         rtl_mod_subtract_transform, speculative_prefetching_transform): Kill.
8832         (gate_handle_value_profile_transformations,
8833         rest_of_handle_value_profile_transformations,
8834         pass_value_profile_transformations): Kill.
8835         * value-prof.h (histogram_value_t): Remove IL based unions.
8836         (rtl_register_value_prof_hooks, rtl_register_profile_hooks,
8837         rtl_profile_hooks): Remove hooks.
8838
8839         * invoke.texi (-ftree-based-profiling, -fspeculative-prefetching): Kill.
8840
8841         * cgraph.c (cgraph_clone_edge): New UPDATE_ORIGINAL argument.
8842         (cgraph_clone_node): Likewise.
8843         * cgraph.h (cgraph_clone_edge): Update prototype.
8844         (cgraph_clone_node): Likewise.
8845         * ipa-inline.c (cgraph_clone_inlined_nodes): Update call of
8846         cgraph_clone_node.
8847         (lookup_recursive_calls): Consider profile.
8848         (cgraph_decide_recursive_inlining): Fix updating; use new
8849         probability argument; use profile.
8850         * params.def (PARAM_MIN_INLINE_RECURSIVE_PROBABILITY): New.
8851         * tree-inline.c (copy_bb): Update clal of clone_edge.
8852         * tree-optimize.c (tree_rest_of_compilation): UPdate cal of clone_node.
8853
8854         * invoke.texi (min-inline-recursive-probability): Document.
8855
8856 2005-07-28  Gerald Pfeifer  <gerald@pfeifer.com>
8857
8858         * doc/install.texi (Configuration): Update Valgrind homepage.
8859
8860 2005-07-28  Richard Henderson  <rth@redhat.com>
8861
8862         PR middle-end/21362
8863         * cfgrtl.c (rtl_merge_blocks): Call maybe_remove_eh_handler on
8864         labels we want to delete.
8865         (cfg_layout_merge_blocks): Likewise.
8866
8867 2005-07-28  Richard Henderson  <rth@redhat.com>
8868
8869         PR target/17692
8870         * config/i386/i386.c (ix86_split_sse_movcc): Emit DELETED note
8871         when expanding to nothing.
8872
8873 2005-07-28  Josh Conner  <jconner@apple.com>
8874
8875         * ipa-inline.c (update_caller_keys): Fix estimated_growth caching.
8876         (cgraph_decide_inlining_of_small_functions): Likewise.
8877
8878 2005-07-28  Josh Conner  <jconner@apple.com>
8879
8880         * ipa-inline.c (cgraph_edge_badness): Update comments.  Invert shift
8881         direction of badness if negative.
8882         (cgraph_default_inline_p): Add reason to parameters, and assign it
8883         a value.
8884         (cgraph_decide_inlining_of_small_functions): New parameter in call
8885         to cgraph_default_inline_p.
8886         (cgraph_decide_inlining_incrementally): Likewise.
8887         * cgraphunit.c (decide_is_function_needed): Likewise.
8888         * cgraph.h (cgraph_default_inline_p): Likewise.
8889
8890 2005-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
8891
8892         * builtins.c: Fix comment typo(s).
8893         * genautomata.c: Likewise.
8894         * gimplify.c: Likewise.
8895         * tree-dfa.c: Likewise.
8896         * tree-flow-inline.h: Likewise.
8897         * tree-into-ssa.c: Likewise.
8898         * tree-ssa-alias.c: Likewise.
8899         * tree-ssa-ccp.c: Likewise.
8900         * tree-ssa-copy.c: Likewise.
8901         * tree-ssa-dce.c: Likewise.
8902         * tree-ssa-dom.c: Likewise.
8903         * tree-ssa-operands.c: Likewise.
8904         * tree-tailcall.c: Likewise.
8905         * tree-vectorizer.c: Likewise.
8906         * tree-vrp.c: Likewise.
8907         * tree.c: Likewise.
8908
8909 2005-07-28  Jeff Law  <law@redhat.com>
8910
8911         * tree-vrp.c (test_for_singularity): Extracted from  ...
8912         (simplify_cond_using_ranges): Attempt to simplify a relational
8913         test to NE_EXPR.  Dump information when a COND_EXPR is simplified.
8914
8915 2005-07-28  Dorit Nuzman  <dorit@il.ibm.com>
8916
8917         PR tree-optimization/22506
8918         * tree-vectorizer.c (update_phi_nodes_for_guard2): Skip loop-closed
8919         phis whose argument is constant.
8920
8921 2005-07-28  J"orn Rennecke <joern.rennecke@st.com>
8922
8923         PR rtl-optimization/18992
8924         Back out this patch:
8925           2003-10-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8926           PR optimization/12142
8927           * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
8928           uses of the register in the SET_SRC.  Remove unnecessary argument.
8929
8930         Replace it with this:
8931         * cse.c (count_reg_usage): In INSN, JUMP_INSN and CALL_INSN cases,
8932         if flag_non_call_exceptions is set and the insn may trap, pass
8933         pc_rtx as dest for recursion.
8934         In SET_SRC part of SET case, if dest is already set, pass it down
8935         unchanged.
8936
8937 2005-07-28  Jan Hubicka  <jh@suse.cz>
8938
8939         * cfg.c (update_bb_profile_for_threading): Use RDIV.
8940         (scale_bbs_frequencies_int): Likewise, assert for possible overflow.
8941         (scale_bbs_frequencies_gcov_type): Be more curefull about overflows and
8942         roundoff errors.
8943         * tree-cfg.c (tree_duplicate_sese_region): Use counts for updating
8944         profile when available.
8945
8946 2005-07-28  Jan Beulich <jbeulich@novell.com>
8947
8948         * config/ia64/ia64.c (ia64_load_pair_ok): New.
8949         (ia64_print_operand): Describe and handle 'X'.
8950         (ia64_register_move_cost): Also handle FP_REGS.
8951         (ia64_preferred_reload_class): Likewise.
8952         (ia64_secondary_reload_class): Likewise.
8953         (ia64_dependencies_evaluation_hook): New local variable c. Initialize
8954         it. Also check for ITANIUM_CLASS_FLDP.
8955         * config/ia64/ia64.h (FP_REGNO_P): New.
8956         (HARD_REGNO_MODE_OK): Remove explusion of TImode.
8957         (reg_class): Add FP_REGS.
8958         (REG_CLASS_NAMES): Adjust for it.
8959         (REG_CLASS_CONTENTS): Likewise.
8960         (REGNO_REG_CLASS): Use FP_REGS where appropriate.
8961         (REG_CLASS_FROM_LETTER): Handle 'x'.
8962         (CLASS_MAX_NREGS): Handle FP_REGS.
8963         (MEMORY_MOVE_COST): Likewise.
8964         * config/ia64/ia64.md (itanium_class): Add fldp.
8965         (type): Handle fldp.
8966         (movti_internal): More allowable operand combinations. Use ldfp8 when
8967         splitting unnecessary. Remove predicable attribute. Adjust
8968         itanium_class attribute.
8969         (smuldi3_highpart): Remove outdated comment.
8970         (mulditi3, umulditi3, rotlti3): New expanders.
8971         (addti3, subti3, mulditi3_internal, umulditi3_internal, negti2, rotlti3_internal): New insns.
8972         (absti2): Disabled new insn for future reference.
8973         Respective new splitters.
8974         * config/ia64/itanium1.md (1_fldp, 1b_fldp): New insn reservations.
8975         * config/ia64/itanium2.md (2_fldp, 2b_fldp): Likewise.
8976         * config/ia64/ia64-protos.h (ia64_load_pair_ok): New.
8977
8978 2005-07-25  James A. Morrison  <phython@gcc.gnu.org>
8979
8980         PR rtl-optimization/23047
8981         * simplify-rtx.c (simplify_const_relational_operation): Respect
8982         flag_wrapv for comparisons with ABS.
8983
8984 2005-07-27  James A. Morrison  <phython@gcc.gnu.org>
8985
8986         PR tree-optimization/22493
8987         * tree-vrp.c (extract_range_from_unary_expr): Deal with -fwrapv and
8988         VR_ANTI_RANGEs properly for NEGATE_EXPRs and ABS_EXPRs.
8989
8990 2005-07-27  Aldy Hernandez  <aldyh@redhat.com>
8991
8992         * config/frv/frv.opt (moptimize-membar): New.
8993
8994         * doc/invoke.texi: Document -moptimize-membar and its inverse.
8995
8996         * config/frv/frv.h: Remove machine_function definition.
8997
8998         * config/frv/frv.c (struct frv_io): New.
8999         (struct machine_function): Moved from frv.h.  Add has_membar_p.
9000         (frv_same_doubleword_p, frv_io_fixed_order_p, frv_io_union)
9001         (frv_extract_membar, frv_io_check_address, frv_io_handle_set)
9002         (frv_io_handle_use_1, frv_io_handle_use, frv_optimize_membar_local)
9003         (frv_optimize_membar_global, frv_optimize_membar): New functions.
9004         (frv_reorg): Call frv_optimize_membar when appropriate.
9005         (bdesc_loads, bdesc_stores): Use the membar code as the icode field.
9006         (frv_expand_builtin): Adjust calls accordingly.
9007         (frv_io_address_cookie): New function.
9008         (frv_expand_load_builtin, frv_expand_store_builtin): Emit a normal
9009         load or store rather than a special insn.  Add ccnstant address and
9010         io-type operands to the membar.
9011         (frv_ifcvt_modify_tests): Unsign regno.
9012         (frv_ifcvt_modify_tests): Same.
9013
9014         * config/frv/frv.md: Remove UNSPEC_BUILTIN_{LOAD,STORE}.  Change
9015         UNSPEC_OPTIONAL_MEMBAR constant.
9016         (builtin_read_<mode>): Delete.
9017         (builtin_write_<mode>): Delete.
9018         ("optional_membar_<mode>"): Add operand.
9019
9020         * testsuite/gcc.target/frv/all-builtin-read8.c: Delete.
9021         * testsuite/gcc.target/frv/all-builtin-read16.c: Delete.
9022         * testsuite/gcc.target/frv/all-builtin-read32.c: Delete.
9023         * testsuite/gcc.target/frv/all-builtin-read64.c: Delete.
9024         * testsuite/gcc.target/frv/all-builtin-write8.c: Delete.
9025         * testsuite/gcc.target/frv/all-builtin-write16.c: Delete.
9026         * testsuite/gcc.target/frv/all-builtin-write32.c: Delete.
9027         * testsuite/gcc.target/frv/all-builtin-write64.c: Delete.
9028         * testsuite/gcc.target/frv/all-read-write-1.c: New.
9029
9030 2005-07-28  Kaz Kojima  <kkojima@gcc.gnu.org>
9031
9032         * df.c (df_uses_record): Handle SCRATCH.
9033
9034 2005-07-28  Steven Bosscher  <stevenb@suse.de>
9035
9036         PR debug/20161
9037         * passes.c (rest_of_decl_compilation): If decl is a type and
9038         we have encountered errors, don't emit debug information.
9039
9040 2005-07-27  Kenneth Zadeck <zadeck@naturalbridge.com>
9041
9042         * params.def: Fixed comment.
9043
9044 2005-07-27  Bjoern Haase  <bjoern.m.haase@web.de>
9045
9046         PR target/19885
9047         * config/avr/avr.c (TARGET_ASM_ALIGNED_SI_OP): Add.
9048         (TARGET_ASM_UNALIGNED_HI_OP): Add.
9049         (TARGET_ASM_UNALIGNED_SI_OP): Add.
9050
9051 2005-07-27  Steven Bosscher  <stevenb@suse.de>
9052
9053         PR c++/22003
9054         * varasm.c (assemble_start_function): Don't do anything that may
9055         require a CFG if the current function is a thunk.
9056
9057 2005-07-25  Geoffrey Keating  <geoffk@apple.com>
9058
9059         * doc/install.texi (Prerequisites): Mention that perl is needed
9060         to do export control in libstdc++ targetting Darwin.
9061
9062 2005-07-27  Steven Bosscher  <stevenb@suse.de>
9063
9064         PR rtl-optimization/17808
9065         * sched-deps.c (sched_get_condition): Enable #if 0'ed code.
9066         (sched_insns_conditions_mutex_p): Split out from...
9067         (add_dependence): ...here.  But don't call it from here.
9068         (add_dependence_list): Check sched_insns_conditions_mutex_p
9069         before calling add_dependence.
9070         (add_dependence_list_and_free): Likewise.
9071         (fixup_sched_groups): Likewise.
9072         (sched_analyze_1): Likewise.
9073         (sched_analyze_2): Likewise (and replace a "0" with REG_DEP_TRUE).
9074         (sched_analyze): Likewise.
9075         (sched_analyze_insn): Likewise.
9076         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
9077         * sched-rgn.c (add_branch_dependences): Likewise.  Also, add
9078         dependencies on all COND_EXEC insns to jumps ending basic blocks
9079         when doing intrablock scheduling.
9080         * sched-int.h (sched_insns_conditions_mutex_p): Add prototype.
9081
9082 2005-07-27  Jeff Law  <law@redhat.com>
9083
9084         * tree-vrp.c (vrp_meet): Intersect the equivalency sets when
9085         meeting a VR_ANTI_RANGE with a VR_RANGE.  When intersecting
9086         equivalency sets, correctly handle the case were vr0 has an
9087         equivalency set, but vr1 does not.
9088
9089 2005-07-27  Dorit Nuzman  <dorit@il.ibm.com>
9090
9091         PR tree-optimization/23073
9092         * tree-vect-analyze.c (vect_analyze_data_refs_alignment): Call
9093         vect_print_dump_info before fprintf.
9094
9095 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
9096
9097         PR tree-optimize/22348
9098         * tree-ssa-loop-niter.c (number_of_iterations_cond):
9099         Fold the partial computation.
9100
9101 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
9102
9103         PR tree-optimization/22325
9104         * tree-flow.h (compute_phi_arg_on_exit, force_expr_to_var_cost):
9105         Declare.
9106         * tree-scalar-evolution.c (scev_const_prop): Add generic final
9107         value replacement.
9108         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Split from ...
9109         (force_var_cost): ... this function.
9110         (compute_phi_arg_on_exit): Export.
9111
9112 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
9113
9114         PR tree-optimization/20773
9115         * tree-ssa-loop-ch.c (copy_loop_headers): Select the correct latch
9116         edge.
9117
9118 2005-07-27  Richard Guenther  <rguenther@suse.de>
9119
9120         * tree-ssa-structalias.c (push_fields_onto_fieldstack):
9121         Avoid pushing again if current struct contains only
9122         fields we decomposed.
9123
9124 2005-07-27  Jan Hubicka  <jh@suse.cz>
9125
9126         PR tree-optimization/22574
9127         * cgraph.c (cgraph_function_body_availability): Unanalyzed bodies are
9128         not available.
9129
9130         * tree-tailcall.c (decrease_profile): New function.
9131         (eliminate_tail_call): Use it.
9132
9133         * cgraphunit.c (cgraph_function_and_variable_visibility): Set
9134         visibility flags correctly in whole program mode.
9135
9136 2005-07-26  Steve Ellcey  <sje@cup.hp.com>
9137
9138         PR rtl-optimization/22472
9139         * config/pa/pa.h (HARD_REGNO_RENAME_OK): Define.
9140
9141 2005-07-26  Steven Bosscher  <stevenb@suse.de>
9142
9143         PR tree-optimization/22504
9144         * tree-complex.c (expand_complex_addition): Use 'code' instead
9145         of MINUS_EXPR for (VARYING, ONLY_IMAG) and (ONLY_IMAG, VARYING).
9146
9147 2005-07-26  Aldy Hernandez  <aldyh@redhat.com>
9148
9149         * config.gcc (cpu_type): Add frv case.
9150         (with_cpu): Add frv400-*-*linux* and frv550-*-*linux* cases.
9151         (supported_defaults): Add fr550 case.
9152
9153 2005-07-26  Diego Novillo  <dnovillo@redhat.com>
9154
9155         PR 22591
9156         * tree-ssa-alias.c (may_alias_p): Remove shortcut that tests
9157         whether a pointer of type T * may point to objects of type T *.
9158
9159 2005-07-26  DJ Delorie  <dj@redhat.com>
9160
9161         * configure: Regenerate.
9162
9163 2005-07-26  Dale Johannesen  <dalej@apple.com>
9164
9165         * postreload-gcse.c (alloc_mem):  Start CUID numbering at 1.
9166
9167 2005-07-26  Mark Mitchell  <mark@codesourcery.com>
9168
9169         * doc/install.texi (--with-build-sysroot): Fix grammatical error.
9170         Clarify use of "build" in name.
9171
9172 2005-07-26  Aldy Hernandez  <aldyh@redhat.com>
9173
9174         * doc/extend.texi (Raw read/write Functions): New section.
9175         * testsuite/gcc.target/frv/all-builtin-read8.c: New.
9176         * testsuite/gcc.target/frv/all-builtin-read16.c: New.
9177         * testsuite/gcc.target/frv/all-builtin-read32.c: New.
9178         * testsuite/gcc.target/frv/all-builtin-read64.c: New.
9179         * testsuite/gcc.target/frv/all-builtin-write8.c: New.
9180         * testsuite/gcc.target/frv/all-builtin-write16.c: New.
9181         * testsuite/gcc.target/frv/all-builtin-write32.c: New.
9182         * testsuite/gcc.target/frv/all-builtin-write64.c: New.
9183         * config/frv/frv.c: Add bdesc_loads global.
9184         Add bdesc_stores global.
9185         (frv_init_builtins): Add support for __builtin_{read/write}*.
9186         (frv_volatile_memref): New.
9187         (frv_expand_load_builtin): New.
9188         (frv_expand_store_builtin): New.
9189         * config/frv/frv.h (frv_builtins): Add FRV_BUILTIN_SCAN,
9190         FRV_BUILTIN_READ8, FRV_BUILTIN_READ16, FRV_BUILTIN_READ32,
9191         FRV_BUILTIN_READ64, FRV_BUILTIN_WRITE8, FRV_BUILTIN_WRITE16,
9192         FRV_BUILTIN_WRITE32, FRV_BUILTIN_WRITE64.
9193         * config/frv/frv.md (unspecs): Add UNSPEC_BUILTIN_LOAD,
9194         UNSPEC_BUILTIN_STORE, UNSPEC_OPTIONAL_MEMBAR.
9195         (builtin_read_<mode>): New.
9196         (builtin_write_<mode>): New.
9197         (builtin_write64): New.
9198         (optional_membar_<mode>): New.
9199
9200 2005-07-26  J"orn Rennecke <joern.rennecke@st.com>
9201
9202         * emit-rtl.c (gen_lowpart_common): Compare size of MODE in bits
9203         (rather than units) against HOST_BITS_PER_WIDE_INT.
9204
9205 2005-07-26  Kazu Hirata  <kazu@codesourcery.com>
9206
9207         * ipa-pure-const.c, ipa-reference.c, ipa-reference.h,
9208         ipa-type-escape.c, ipa-type-escape.h, ipa-utils.c,
9209         ipa-utils.h, treestruct.def, config/crx/crx-protos.h,
9210         config/crx/crx.c, config/crx/crx.h, config/crx/crx.md: Update
9211         FSF address.
9212
9213         * calls.c, fold-const.c, ipa-reference.c, ipa-type-escape.c,
9214         tree-ssa-reassoc.c, tree-ssa-structalias.c, vec.h,
9215         config/crx/crx.c, config/m32c/m32c.c, config/m32c/m32c.h: Fix
9216         comment typos.
9217         * doc/c-tree.texi, doc/tree-ssa.texi: Fix typos.
9218
9219 2005-07-26  Richard Guenther  <rguenther@suse.de>
9220
9221         PR tree-optimization/22486
9222         * fold-const.c (fold_unary): Fold away useless component
9223         references of the form (T *)&T.x, if the address
9224         doesn't change.
9225
9226 2005-07-25  James E Wilson  <wilson@specifixinc.com>
9227
9228         * dwarf2out.c (add_call_src_coords_attributes): New.
9229         (gen_inlined_subroutine_die): Call it.
9230         (maybe_emit_file, init_file_table): Add comments.
9231         (prune_unused_types_walk_attribs): Pass DW_AT_call_file through
9232         maybe_emit_file.
9233         * tree-inline.c (remap_block): Copy BLOCK_SOURCE_LOCATION.
9234         (expand_call_inline): Set BLOCK_SOURCE_LOCATION.
9235         * tree.h (BLOCK_SOURCE_LOCATION): New.
9236         (struct tree_block): New field locus.
9237
9238 2005-07-26  Andreas Schwab  <schwab@suse.de>
9239
9240         PR rtl-optimization/23043
9241         * postreload-gcse.c (eliminate_partially_redundant_load): Fix typo
9242         when allocating a struct unoccr.
9243
9244 2005-07-25  Richard Henderson  <rth@redhat.com>
9245
9246         PR 22626
9247         * tree-complex.c (gate_no_optimization): True if errors.
9248         * Makefile.in (tree-complex.o): Update dependencies.
9249
9250 2005-07-25  Aldy Hernandez  <aldyh@redhat.com>
9251
9252         * config/frv/predicates.md (integer_register_operand): Use
9253         GPR_AP_OR_PSEUDO_P.
9254
9255 2005-07-25  Andrew Pinski  <pinskia@physics.uc.edu>
9256
9257         PR tree-opt/22484
9258         * tree-ssa-ccp.c (fold_stmt_inplace): Strip useless type conversions
9259         after fold.
9260         * tree-ssa-propagate.c (set_rhs): Reject invalid conditional operands.
9261
9262 2005-07-25  Andrew Pinski  <pinskia@physics.uc.edu>
9263
9264         * tree-ssa-reassoc.c (reassociate_expr): Allow scaler floating point
9265         types when flag_unsafe_math_optimizations is true.
9266
9267 2005-07-25  Mark Mitchell  <mark@codesourcery.com>
9268
9269         * gcc.c (option_map): Add --sysroot.
9270         (process_command): Handle --sysroot.
9271         (display_help): Document it.
9272         * doc/cppopts.tex (-isysroot): Document.
9273         * doc/invoke.texi (--sysroot): Document.
9274         * doc/install.texi (--with-build-sysroot): Document.
9275
9276         * Makefile.in (inhibit_libc): New variable.
9277         (INHIBIT_LIBC_CFLAGS): Likewise.
9278         (LIBGCC2_CFLAGS): Include
9279         $(INHIBIT_LIBC_CFLAGS).
9280         (CRTSTUFF_CFLAGS): Include $(INHIBIT_LIBC_CFLAGS).
9281         ($(T)crtbegin.o): Do not use @inhibit_libc@.
9282         ($(T)crtend.o): Likewise.
9283         ($(T)crtbeginS.o): Do not use @inhibit_libc@.
9284         ($(T)crtendS.o): Likewise.
9285         ($(T)crtbeginT.o): Do not use @inhibit_libc@.
9286         ($(T)crtendT.o): Likewise.
9287         (stmp-fixinc): Do not complain about missing headers if
9288         inhibit_libc.
9289         * configure.ac (inhibit_libc): Set it to true/false.
9290         (--with-build-sysroot): New option.  Use it to set
9291         SYSTEM_HEADER_DIR.
9292         * configure: Regenerated.
9293
9294 2005-07-25  Manfred Hollstein  <mh@suse.com>
9295
9296         * calls.c (store_one_arg): Fix unsigned comparison warning.
9297
9298 2005-07-25  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
9299
9300         PR other/22337
9301         * ggc-zone.c (ggc_alloc_zone_stat): Do not use CHUNK_OVERHEAD.
9302         (ggc_print_statistics): Initialize variable before use.
9303
9304 2005-07-25  Richard Guenther  <rguenther@suse.de>
9305
9306         * tree-dfa.c (mark_new_vars_to_rename): Protect against
9307         calling with a PHI_NODE argument.
9308
9309         * tree-flow-inline.h (overlap_subvar): Protect against
9310         possible overflow.
9311
9312 2005-07-25  Paolo Bonzini  <bonzini@gnu.org>
9313
9314         * aclocal.m4 (gcc_AC_CHECK_TOOL): Add /bin to default directory.
9315         * configure: Regenerate.
9316
9317 2005-07-25  Ira Rosen  <irar@il.ibm.com>
9318
9319         * expr.c (highest_pow2_factor): Make extern.
9320         * tree-data-ref.c (ptr_decl_may_alias_p): New function.
9321         (ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
9322         record_array_differ_p, array_ptr_differ_p): Likewise.
9323         (base_object_differ_p): Rename (from array_base_name_differ_p). Support
9324         additional cases. Call the above functions.
9325         (base_addr_differ_p): Moved from tree-vect-analyze.c. Call
9326         base_object_differ_p when there are two base objects. Otherwise, compare
9327         base address and offset. Call may_alias_p.
9328         (dump_data_reference): Use a correct field name.
9329         (analyze_array): Make static. Initialize new data-ref fields.
9330         (analyze_indirect_ref): New function.
9331         (init_data_ref): Initialize new data-ref fields.
9332         (strip_conversion): Moved from tree-vect-analyze.c.
9333         (analyze_offset_expr, get_ptr_offset, address_analysis,
9334         object_analysis): Likewise.
9335         (analyze_offset): New function.
9336         (create_data_ref): Likewise.
9337         (initialize_data_dependence_relation): Call base_addr_differ_p. Compare
9338         dimensions for ARRAY_REFs only.
9339         (build_classic_dist_vector): Make static.
9340         (access_functions_are_affine_or_constant_p): Call macro to get the
9341         address of access functions.
9342         (compute_all_dependences): Add new parameter
9343         compute_self_and_read_read_dependences. Compute self and read-read
9344         dependences if it is true.
9345         (find_data_references_in_loop): Call create_data_ref. Initialize new
9346         data-ref fields.
9347         (compute_data_dependences_for_loop): Add new parameter
9348         compute_self_and_read_read_dependences. Remove parameter nb_loops,
9349         compute nb_loops. Call compute_all_dependences,
9350         build_classic_dist_vector and build_classic_dir_vector with correct
9351         parameters.
9352         (analyze_all_data_dependences): Call compute_data_dependences_for_loop
9353         with correct parameters. Compare dimensions for ARRAY_REFs only.
9354         (free_data_refs): Call macro to free access functions.
9355         * tree-data-ref.h (struct first_location_in_loop): New structure. Move
9356         fields from stmt_vinfo.
9357         (struct base_object_info): New structure.
9358         (struct data_reference): Move fields to base_object_info. Add fields
9359         first_location and object_info for above structures. Move fields from
9360         stmt_info: memtag, ptr_info, subvars, misalignment. Add new field
9361         aligned_to.  Add macros to access the new fields.
9362         Update functions declarations.
9363         * tree-flow.h (is_aliased_with): Declare.
9364         * tree-loop-linear.c (linear_transform_loops): Call
9365         compute_data_dependences_for_loop with correct parameters.
9366         * tree-ssa-alias.c (is_aliased_with): New function.
9367         * tree-vect-analyze.c (vect_get_ptr_offset): Remove.
9368         (vect_analyze_offset_expr, vect_base_addr_differ_p): Likewise.
9369         (vect_analyze_data_ref_dependence): Get ddr. Remove call to
9370         vect_base_addr_differ_p, compute_subscript_distance and
9371         build_classic_dist_vector. Add printings. Check absolute value of
9372         distance.
9373         (vect_analyze_data_ref_dependences): Go through ddrs instead of
9374         data-refs.
9375         (vect_compute_data_ref_alignment): Get the fields of data-ref instead of
9376         stmt. Check aligned_to. Check if the base is aligned. Remove conversion
9377         to bytes. Add printing.
9378         (vect_compute_data_refs_alignment): Go through loads and stores in one
9379         loop.
9380         (vect_enhance_data_refs_alignment, vect_analyze_data_refs_alignment,
9381         vect_analyze_data_ref_access): Likewise.
9382         (vect_analyze_pointer_ref_access): Remove.
9383         (vect_address_analysis, vect_object_analysis): Likewise.
9384         (vect_analyze_data_refs): Call compute_data_dependences_for_loop to find
9385         and analyze data-refs in the loop.
9386         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Get the
9387         fields of data-ref instead of stmt. Add init to the offset from the
9388         base.
9389         (vect_create_data_ref_ptr): Get the fields of data-ref instead of stmt.
9390         (vect_update_init_of_dr): Likewise.
9391         (vect_update_inits_of_drs): Go through loads and stores in one loop.
9392         * tree-vectorizer.c (new_stmt_vec_info): Remove initialization of
9393         removed fields.
9394         (new_loop_vec_info): Initialize new fields.
9395         (destroy_loop_vec_info): Free new fields.
9396         (vect_strip_conversion): Remove.
9397         * tree-vectorizer.h (enum verbosity_levels): Add new verbosity level.
9398         (struct _loop_vec_info): Unify data_ref_writes and data_ref_reads into
9399         datarefs. Add new field ddrs.
9400         Add macros for the new fields access.
9401         (struct _stmt_vec_info): Remove: base_address, initial_offset, step,
9402         base_aligned_p, misalignment, memtag, ptr_info and subvars.
9403         Remove their macros.
9404         * tree.h (highest_pow2_factor): Declare.
9405
9406 2005-07-25  Jakub Jelinek  <jakub@redhat.com>
9407
9408         * calls.c (store_one_arg): Check for sibling call MEM arguments
9409         from already clobbered incoming argument area.
9410
9411 2005-07-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9412
9413         * c-common.c (check_missing_format_attribute): New.
9414         * c-common.h (check_missing_format_attribute): Likewise.
9415         * c-typeck.c (convert_for_assignment): Use it.
9416
9417 2005-07-24  Andreas Schwab  <schwab@suse.de>
9418
9419         * config/m68k/m68k.md ("extendqidi2"): When source is an address
9420         register use a word move.  Correct operand of ext.w in 68000 code.
9421
9422 2005-07-23  Mark Mitchell  <mark@codesourcery.com>
9423
9424         * dwarf2out.c (gen_variable_die): Treat un-emitted COMDAT
9425         variables as declarations, rather than definitions.
9426
9427 2005-07-24  Ira Rosen  <irar@il.ibm.com>
9428
9429         PR tree-optimization/22526
9430         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Match the type
9431         of the zero node.
9432
9433 2005-07-24  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
9434
9435         * builtins.def: Add DEF_EXT_C99RES_BUILTIN to define builtins
9436         that C99 reserve for future use. Use it to define clog10,
9437         clog10f and clog10l.
9438
9439 2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9440
9441         * Makefile.in (STRICT2_WARN): Add -Wmissing-format-attribute.
9442         * configure.ac: Check for -Wmissing-format-attribute.
9443
9444         * configure: Regenerate.
9445
9446 2005-07-23  Richard Henderson  <rth@redhat.com>
9447
9448         PR tree-optimization/22623
9449         * tree-complex.c (set_component_ssa_name): Use replace_ssa_name_symbol.
9450
9451 2005-07-23  Giovanni Bajo  <giovannibajo@libero.it>
9452
9453         PR target/22577
9454         * config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR.
9455
9456 2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9457
9458         * Makefile.in (C_TREE_H): Update dependencies.
9459         * c-tree.h: Include toplev.h.
9460         * diagnostic.h (diagnostic_set_info): Add format attribute.
9461         * rtl-error.c (diagnostic_for_asm): Likewise.
9462
9463 2005-07-23  Chao-ying Fu  <fu@mips.com>
9464
9465         * config/mips/mips-dsp.md: New file.
9466         * config/mips/mips-modes.def (V4QI, V2HI, CCDSP): New modes.
9467         * config/mips/mips.c (mips_function_type): Add types for DSP builtin
9468         functions.
9469         (mips_builtin_type): Add MIPS_BUILTIN_DIRECT_NO_TARGET and
9470         MIPS_BUILTIN_BPOSGE32.
9471         (mips_expand_builtin_direct): Add one parameter to indicate that
9472         builtin functions need to return a value.
9473         (mips_expand_builtin_bposge): New for expanding "bposge" builtin
9474         functions.
9475         (mips_regno_to_class): Add classes for 12 new DSP registers.
9476         (mips_subword): Change to check four HI registers.
9477         (mips_output_move): Output move to and from 6 new DSP accumulators.
9478         (override_options): Make sure -mdsp and -mips16 are not used together.
9479         Map 'A' to DSP_ACC_REGS and 'a' to ACC_REGS.  Enable DSP accumulators
9480         for machine modes.
9481         (mips_conditional_register_usage): Disable 6 new DSP accumulators
9482         when !TARGET_DSP.
9483         (print_operand): Add 'q' for printing DSP accumulators.
9484         (mips_cannot_change_mode_class): Check ACC_REGS.
9485         (mips_secondary_reload_class): Check ACC_REGS.
9486         (mips_vector_mode_supported_p): Enable V2HI and V4QI when TARGET_DSP.
9487         (mips_register_move_cost): Check ACC_REGS.
9488         (CODE_FOR_mips_addq_ph, CODE_FOR_mips_addu_qb, CODE_FOR_mips_subq_ph)
9489         (CODE_FOR_mips_subu_qb): New code-aliasing macros.
9490         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): New macros.
9491         (dsp_bdesc): New array.
9492         (bdesc_arrays): Add DSP builtin function table.
9493         (mips_prepare_builtin_arg): Check predicate again after
9494         copy_to_mode_reg.
9495         (mips_expand_builtin): Add one more parameter to
9496         mips_expand_builtin_direct. Expand MIPS_BUILTIN_DIRECT_NO_TARGET and
9497         MIPS_BUILTIN_BPOSGE32.
9498         (mips_init_builtins): Initialize new function types.
9499         (mips_expand_builtin_direct): Check if builtin functions need to
9500         return a value and pass operands properly.
9501         (mips_expand_builtin_bposge): New function.
9502         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips_dsp.
9503         (ASM_SPEC): Map -mdsp to -mdsp in GAS.
9504         (FIRST_PSEUDO_REGISTER): Increase to 188.
9505         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
9506         Update for 12 new DSP registers.
9507         (DSP_ACC_REG_FIRST, DSP_ACC_REG_LAST, DSP_ACC_REG_NUM, AC1HI_REGNUM)
9508         (AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM, AC3HI_REGNUM, AC3LO_REGNUM):
9509         (DSP_ACC_REG_P, ACC_REG_P, ACC_HI_REG_P): New macros.
9510         (reg_class): Add DSP_ACC_REGS and ACC_REGS.
9511         (REG_CLASS_NAMES): Add names for DSP_ACC_REGS and ACC_REGS.
9512         (REG_CLASS_CONTENTS): Update for DSP_ACC_REGS, ACC_REGS and ALL_REGS.
9513         (REG_ALLOC_ORDER): Update for 12 new DSP registers.
9514         (mips_char_to_class): Add 'A' for DSP_ACC_REGS and 'a' for ACC_REGS.
9515         (UIMM6_OPERAND, IMM10_OPERAND): New macros.
9516         (EXTRA_CONSTRAINT_Y): Add YA and YB extra constraints.
9517         (REGISTER_NAMES): Add names for 12 new DSP registers.
9518         * config/mips/mips.md: Include mips-dsp.md.
9519         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
9520         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
9521         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
9522         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
9523         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
9524         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
9525         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
9526         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
9527         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
9528         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
9529         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
9530         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
9531         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
9532         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
9533         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
9534         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
9535         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
9536         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
9537         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
9538         (UNSPEC_RDDSP): New constants.
9539         (*movdi_32bit): Change 'x' to 'a' for ACC_REGS.
9540         (*movsi_internal): Change 'x' to 'a' for ACC_REGS.  Add an
9541         A<-d alternative.
9542         * config/mips/mips.opt (-mdsp): New option.
9543         * config/mips/predicates.md (const_uimm6_operand, const_imm10_operand)
9544         (reg_imm10_operand): New predicates.
9545         * doc/extend.texi (MIPS DSP Built-in Functions): New section.
9546         * doc/invoke.texi (-mdsp): Document new option.
9547
9548 2005-07-22  DJ Delorie  <dj@redhat.com>
9549
9550         * c-objc-common.c (c_cannot_inline_tree_fn): Add warning control
9551         to warning calls.
9552         * tree-inline.c (inlinable_function_p): Likewise.
9553
9554 2005-07-22  Mark Mitchell  <mark@codesourcery.com>
9555
9556         PR debug/21828
9557         * toplev.c (check_global_declarations): Do not mark undefined
9558         variables as DECL_IGNORED_P.
9559         * varasm.c (first_global_object_name): GTY it.
9560         (weak_global_object_name): Likewise.
9561         (notice_global_symbol): Use ggc_strdup, not xstrdup, when creating
9562         a string to go into {weak,first}_global_object_name.
9563
9564 2005-07-22  DJ Delorie  <dj@redhat.com>
9565
9566         * c-format.c (check_function_format): Change warning control
9567         option from OPT_Wattribute to OPT_Wmissing_format_attribute.
9568
9569 2005-07-22  Diego Novillo  <dnovillo@redhat.com>
9570
9571         * tree-ssa-alias.c (count_ptr_derefs): Do not consider
9572         &PTR->FLD a dereference of PTR.
9573         * tree-ssa-structalias.c (update_alias_info): Consider &PTR->FLD
9574         a potential dereference of PTR.
9575
9576 2005-07-22  J"orn Rennecke <joern.rennecke@st.com>
9577
9578         PR rtl-optimization/20370
9579         * ifcvt.c (dead_or_predicable): Before calling propagate_block,
9580         call allocate_reg_info if necessary.
9581
9582         PR rtl-optimization/21848
9583         * calls.c (emit_library_call_value_1): For const functions, add
9584         USEs of the stack slots to CALL_INSN_FUNCTION_USAGE.
9585
9586         PR rtl-optimization/22445
9587         * cselib.c (target.h): Include.
9588         (rtx_equal_for_cselib_p): Allow commutative matches.
9589         (cselib_hash_rtx): Don't use MODE for CONST_INT hashing.
9590         Remove MODE parameter.  Changed all callers.
9591
9592         PR rtl-optimization/22258
9593         * combine.c (likely_spilled_retval_1, likely_spilled_retval_p):
9594         New functions.
9595         (try_combine): Use likely_spilled_retval_p.
9596
9597 2005-07-22  Paul Woegerer  <paul.woegerer@nsc.com>
9598
9599         * config.gcc: Add crx-elf support.
9600
9601         * doc/contrib.texi: Mention crx.
9602         * doc/extend.texi: Document crx extensions.
9603         * doc/install.texi: Document crx install.
9604         * doc/invoke.texi: Document crx options.
9605         * doc/md.texi: Document crx constraints.
9606
9607         * config/crx/crx-protos.h: New file.
9608         * config/crx/crx.c: New file.
9609         * config/crx/crx.h: New file.
9610         * config/crx/crx.md: New file.
9611         * config/crx/crx.opt: New file.
9612         * config/crx/t-crx: New file.
9613
9614 2005-07-22  Manfred Hollstein  <mh@suse.com>
9615
9616         * tree-ssa-structalias.c (merge_graph_nodes): Fix uninitialised
9617         warnings.
9618         (int_add_graph_edge): Likewise.
9619         (collapse_nodes): Likewise.
9620         (process_unification_queue): Likewise.
9621
9622 2005-07-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9623             Laurent GUERBY  <laurent@guerby.net>
9624
9625         PR tree-optimization/22336
9626         * function.c (record_block_change): Check for
9627         cfun->ib_boundaries_block.
9628
9629 2005-07-21  James A. Morrison  <phython@gcc.gnu.org>
9630
9631         * fold-const.c (fold_unary): Don't strip signed nops from ABS_EXPRs.
9632         (tree_expr_nonnegative_p): Return try for TYPE_UNSIGNED.
9633
9634 2005-07-21  DJ Delorie  <dj@redhat.com>
9635
9636         * toplev.c (warn_deprecated_use): Add warning control to warning
9637         call.
9638         * c-typeck.c (parser_build_binary_op): Likewise.
9639         (c_finish_if_stmt): Likewise.
9640         * c-common.c (check_function_sentinel): Likewise.
9641         (check_nonnull_arg): Likewise.
9642
9643 2005-07-21  Richard Henderson  <rth@redhat.com>
9644
9645         PR tree-opt/22504
9646         * tree-complex.c (complex_ssa_name_components): New.
9647         (cvc_lookup): Allow entry not found.
9648         (create_components): Remove.
9649         (create_one_component_var, get_component_var): New.
9650         (get_component_ssa_name, set_component_ssa_name): New.
9651         (extract_component): Use get_component_ssa_name.
9652         (update_complex_components): Use set_component_ssa_name.
9653         (update_complex_components_on_edge): Likewise.
9654         (update_phi_components): Create new PHI nodes directly, instead
9655         of adding insns to edges.
9656         (tree_lower_complex): Allocate and free complex_variable_components
9657         and complex_ssa_name_components here.
9658
9659 2005-07-20  Daniel Berlin  <dberlin@dberlin.org>
9660
9661         * alias.c (nonoverlapping_component_refs_p): Use TYPE_MAIN_VARIANT,
9662         revert to returning false.
9663
9664 2005-07-21  Uros Bizjak  <uros@kss-loka.si>
9665
9666         PR target/21149
9667         * config/i386/i386.md (sse_movhlps): Fix vec_select values.
9668
9669 2005-07-21  Uros Bizjak  <uros@kss-loka.si>
9670
9671         PR target/22576
9672         * config/i386/i386.md (cmpxf): Change operand constraints
9673         to "nonmemory_operand".
9674
9675 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
9676
9677         * config/i386/i386.md (trap): Use "".word/t0x0b0f" instead of ud2.
9678
9679 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
9680
9681         PR middle-end/21180
9682         * fold-const.c (fold_build1): Add checksum for the operands.
9683         (fold_build2): Likewise.
9684         (fold_build3): Likewise.
9685
9686 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
9687
9688         PR middle-end/19055
9689         * fold-const.c (fold_binary): Transform "(X | Y) ^ X" to "Y & ~ X".
9690
9691 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
9692
9693         * common.opt (-fforward-propagate): Committed by mistake,
9694         removed.
9695
9696 2005-07-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
9697
9698         * reg-stack.c: Fix comment typo(s).
9699         * tree-ssa-operands.c: Likewise.
9700         * tree-vectorizer: Likewise.
9701
9702 2005-07-21  Nick Clifton  <nickc@redhat.com>
9703
9704         * config/sh/symbian.c: Replace C++ style line comments with C
9705         style line comments.
9706         (symbian_add_attribute): Do not use a ? operator on the LHS of
9707         an assignment.
9708         (sh_symbian_handle_dll_attribute): Change the type of the
9709         method vector to "VEC(tree,gc)*" and use vector accessor
9710         macros to walk over the elements.
9711         (symbian_export_vtable_and_rtti_p): Likewise.
9712         (symbian_class_needs_attribute_p): Likewise.
9713
9714 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
9715
9716         PR target/22085
9717         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Do not
9718         initialize targetm.resolve_overloaded_builtin here.
9719         (altivec_expand_overloaded_builtin): Make it non-static.
9720         * config/rs6000/rs6000-protos.h
9721         (altivec_expand_overloaded_builtin): New prototype.
9722         * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Initialize
9723         targetm.resolve_overloaded_builtin here.
9724         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Likewise.
9725
9726 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
9727             Zdenek Dvorak  <dvorakz@suse.cz>
9728
9729         PR tree-optimization/19210
9730         * common.opt (Wunsafe-loop-optimizations, funsafe-loop-optimizations):
9731         New.
9732         * Makefile.in (tree-ssa-loop-niter.o): Depend intl.o.
9733         * loop-iv.c (get_simple_loop_desc): If -funsafe-loop-optimizations,
9734         rely on unproven assumptions.
9735         * predict.c (predict_loops): Adjust call to number_of_iterations_exit.
9736         * tree-flow.h (number_of_iterations_exit): Add final parameter.
9737         * tree-scalar-evolution.c (number_of_iterations_in_loop): Adjust call
9738         to number_of_iterations_exit.
9739         * tree-ssa-loop-ivcanon.c (empty_loop_p): Likewise.
9740         * tree-ssa-loop-ivopts.c (niter_for_exit): Likewise.
9741         * tree-ssa-loop-niter.c (find_loop_niter,
9742         estimate_numbers_of_iterations_loop): Likewise.
9743         (number_of_iterations_exit): Honor the new options.
9744         * doc/invoke.texi (Wunsafe-loop-optimizations,
9745         funsafe-loop-optimizations): Document them.
9746
9747 2005-07-21  Richard Sandiford  <richard@codesourcery.com>
9748
9749         PR rtl-optimization/22167
9750         * gcse.c (hoist_code): Fix hoist_exprs[] check.
9751
9752 2005-07-20  Adam Nemet  <anemet@lnxw.com>
9753
9754         * config/rs6000/lynx.h: Mark __do_global_ctors_aux and
9755         __do_global_dtors_aux longcall.
9756
9757 2005-07-20  Kazu Hirata  <kazu@cs.umass.edu>
9758
9759         * gensupport.c (old_preds): Don't reference PREDICATE_CODES.
9760         (old_special_pred_table): Don't reference
9761         SPECIAL_MODE_PREDICATES.
9762         * system.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Poison.
9763         * config/arc/arc.h: Don't mention PREDICATE_CODES.
9764         * config/sh/predicates.h: Don't mention
9765         SPECIAL_MODE_PREDICATES.
9766         * doc/tm.texi (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
9767         Remove.
9768
9769 2005-07-20  DJ Delorie  <dj@redhat.com>
9770
9771         * config.gcc: Add m32c-elf support.
9772
9773         * doc/contrib.texi: Mention m32c.
9774         * doc/extend.texi: Document m32c extensions.
9775         * doc/install.texi: Mention m32c.
9776         * doc/invoke.texi: Document m32c options.
9777         * doc/md.texi: Document m32c constraints.
9778
9779         * config/m32c/addsub.md: New file.
9780         * config/m32c/bitops.md: New file.
9781         * config/m32c/cond.md: New file.
9782         * config/m32c/jump.md: New file.
9783         * config/m32c/m32c-lib1.S: New file.
9784         * config/m32c/m32c-lib2.c: New file.
9785         * config/m32c/m32c-modes.def: New file.
9786         * config/m32c/m32c-pragma.c: New file.
9787         * config/m32c/m32c-protos.h: New file.
9788         * config/m32c/m32c.abi: New file.
9789         * config/m32c/m32c.c: New file.
9790         * config/m32c/m32c.h: New file.
9791         * config/m32c/m32c.md: New file.
9792         * config/m32c/m32c.opt: New file.
9793         * config/m32c/minmax.md: New file.
9794         * config/m32c/mov.md: New file.
9795         * config/m32c/muldiv.md: New file.
9796         * config/m32c/predicates.md: New file.
9797         * config/m32c/prologue.md: New file.
9798         * config/m32c/shift.md: New file.
9799         * config/m32c/t-m32c: New file.
9800
9801 2005-07-20  Kaz Kojima  <kkojima@gcc.gnu.org>
9802
9803         * config/sh/sh.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
9804         (stack_protect_set, stack_protect_test): New expanders.
9805         (stack_protect_set_si, stack_protect_set_si_media,
9806         stack_protect_set_di_media, stack_protect_test_si,
9807         stack_protect_test_si_media, stack_protect_test_di_media):
9808         New insns.
9809
9810 2005-07-20  Andrew Pinski  <pinskia@physics.uc.edu>
9811
9812         * c-typeck.c (output_init_element): Don't copy the INTEGER_CST.
9813
9814 2005-07-20  James A. Morrison  <phython@gcc.gnu.org>
9815
9816         * tree.h (tree_expr_nonzero_p): Export.
9817         * fold-const.c (tree_expr_nonzero_p): Likewise.
9818         Return true for CALL_EXPRs that are alloca calls.
9819         (fold_binary): Use omit_one_operand when checking EQ_EXPRs or NE_EXPRs
9820         against zero.
9821         * tree-flow.h (expr_computes_nonzero): Remove.
9822         * tree-vrp.c (expr_computes_nonzero): Remove.
9823         (vrp_expr_computes_nonzero): Use tree_expr_nonzero_p.
9824         (extract_range_from_unary_expr): Likewise.
9825         * tree-ssa-dom.c (record_equivalences_from_stmt): Use
9826         tree_expr_nonzero_p.
9827
9828 2005-07-20  Bernd Schmidt  <bernd.schmidt@analog.com>
9829
9830         * config/bfin/bfin-protos.h (legitimize_pic_address): Don't declare.
9831         * config/bfin/bfin.c (legitimize_pic_address): Now static.  Take
9832         extra arg "picreg" and use it instead of pic_offset_table_rtx.
9833         All callers changed.
9834         (frame_related_constant_load): New arg "related" which controls
9835         setting of RTX_FRAME_RELATED_P.  All callers changed.
9836         (bfin_load_pic_reg): New function, broken out of bfin_expand_prologue.
9837         (bfin_expand_prologue): Add stack limit checking.
9838         * config/bfin/bfin.md (trapifcc): New pattern.
9839
9840         * config/bfin/bfin.c: Include "langhooks.h".
9841         (def_builtin): Go through lang_hooks to call builtin_function.
9842
9843         * config/bfin/bfin-protos.h (bfin_longcall_p): Declare.
9844         * config/bfin/predicates.md (symbol_ref_operand): New.
9845         (call_insn_operand): Delete.  All callers changed to use
9846         register_no_elim_operand.
9847         * config/bfin/bfin.c (init_cumulative_args): Initialize the new
9848         call_cookie field.
9849         (function_arg): Use it to generate the call's operand 2.
9850         (bfin_longcall_p): New function.
9851         (bfin_expand_call): Extra arg "cookie".  All callers and declaration
9852         changed.  Emit extra USE in the pattern.  Use bfin_longcall_p to
9853         determine if the address needs to be in a REG.
9854         (bfin_handle_longcall_attribute): New function.
9855         (bfin_attribute_table): Add "longcall" and "shortcall".
9856         * config/bfin/bfin.h (CALL_NORMAL, CALL_LONG, CALL_SHORT): New macros.
9857         (CUMULATIVE_ARGS): New member call_cookie.
9858         (PREDICATE_CODES): Add symbol_ref_operand.
9859         * config/bfin/bfin.md (call, call_value, sibcall, sibcall_value): Add
9860         extra USE to the pattern.
9861         (call_symbol, sibcall_symbol, call_value_symbol, sibcall_value_symbol):
9862         New patterns, split off call_insn, sibcall_insn, call_value_insn and
9863         sibcall_value_insn; now the new patterns handle direct calls and the
9864         old ones indirect calls.
9865         * doc/extend.texi: Mention Blackfin in longcall/shortcall docs.
9866
9867 2005-07-20  Zdenek Dvorak  <dvorakz@suse.cz>
9868
9869         * doc/trouble.texi: Update section on handling of empty loops.
9870
9871 2005-07-20  Kazu Hirata  <kazu@codesourcery.com>
9872
9873         * config.gcc: Remove support for sparc-*-openbsd*,
9874         i860-*-sysv4*, ip2k-*-elf, ns32k-*-netbsdelf*,
9875         ns32k-*-netbsd*.
9876         * config.host: Remove support for i860-*-sysv4* as a host.
9877         * config/i860/*, config/ip2k/*, config/ns32k/*,
9878         config/sparc/openbsd.h, config/sparc/t-openbsd: Remove.
9879         * doc/install.texi, doc/invoke.texi, doc/md.texi: Don't
9880         mention obsolete ports.
9881
9882 2005-07-20  Kaz Kojima  <kkojima@gcc.gnu.org>
9883
9884         * config/sh/sh.c (regno_reg_class): Add GENERAL_REGS for
9885         soft frame pointer.
9886         (sh_expand_prologue): Use hard_frame_pointer_rtx instead
9887         of frame_pointer_rtx.
9888         (sh_expand_epilogue): Likewise.
9889         (sh_set_return_address): Likewise.
9890         (initial_elimination_offset): Use HARD_FRAME_POINTER_REGNUM
9891         instead of FRAME_POINTER_REGNUM if needed.  Add elimination
9892         offsets from FRAME_POINTER_REGNUM.
9893         * config/sh/sh.h (SH_REGISTER_NAMES_INITIALIZER): Add sfp.
9894         (sh_register_names): Add initializer for sfp.
9895         (GENERAL_OR_AP_REGISTER_P): Permit FRAME_POINTER_REGNUM.
9896         (VALID_REGISTER_P): Likewise.
9897         (FIRST_PSEUDO_REGISTER): Update.
9898         (DWARF_FRAME_REGISTERS): Define.
9899         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add sfp.
9900         (HARD_FRAME_POINTER_REGNUM): Define.
9901         (FRAME_POINTER_REGNUM): Redefine.
9902         (ELIMINABLE_REGS): Never eliminate to FRAME_POINTER_REGNUM,
9903         but HARD_FRAME_POINTER_REGNUM instead.  Add eliminations
9904         from FRAME_POINTER_REGNUM.
9905         (CAN_ELIMINATE): Use HARD_FRAME_POINTER_REGNUM instead of
9906         FRAME_POINTER_REGNUM.
9907         (REG_CLASS_CONTENTS): Add sfp.
9908         (REG_ALLOC_ORDER): Likewise.
9909         (FRAME_GROWS_DOWNWARD): Set to 1.  Update comment.
9910         (GO_IF_LEGITIMATE_ADDRESS): Use hard_frame_pointer_rtx instead
9911         of frame_pointer_rtx.
9912         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
9913
9914 2005-07-19  James A. Morrison  <phython@gcc.gnu.org>
9915
9916         * fold-const.c (tree_expr_nonnegative_p): Only return true for
9917         ABS_EXPR when flag_wrapv is false because of INT_MIN.
9918         (tree_expr_nonzero_p): Always call tree_expr_nonzero_p on the argument
9919         of an ABS_EXPR.
9920         (fold_unary): Always fold ABS_EXPR<ABS_EXPR<x>> into
9921         ABS_EXPR<x>.
9922
9923 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
9924
9925         Make CONSTRUCTOR use VEC to store initializers.
9926         * c-common.c (complete_array_type): Update to cope with VEC in
9927         CONSTRUCTOR_ELTS.
9928         * c-pretty-print.c (pp_c_initializer_list): Use pp_c_constructor_elts.
9929         (pp_c_constructor_elts): New function.
9930         * c-pretty-print.h (pp_c_constructor_elts): Declare.
9931         * c-typeck.c (build_function_call, build_c_cast, digest_init,
9932         struct constructor_stack, struct initializer_stack,
9933         constructor_elements, push_init_level, pop_init_level,
9934         add_pending_init, find_init_member, output_init_element): Update to
9935         cope with VEC in CONSTRUCTOR_ELTS.
9936         * coverage.c (build_fn_info_value, build_ctr_info_value,
9937         build_gcov_info): Likewise.
9938         * expr.c (categorize_ctor_elements_1, store_constructor,
9939         expand_expr_real_1): Likewise.
9940         * fold-const.c (fold_ternary): Likewise.
9941         * gimplify.c (gimplify_init_ctor_preeval, zero_sized_field_decl,
9942         gimplify_init_constructor, gimplify_expr): Likewise.
9943         * tree-dump.c (dequeue_and_dump): Likewise.
9944         * tree-inline.c (copy_tree_r): Add code to duplicate a CONSTRUCTOR
9945         node.
9946         * tree-pretty-print.c (dump_generic_node): Update to cope with VEC in
9947         CONSTRUCTOR_ELTS.
9948         * tree-sra.c (generate_element_init_1): Likewise.
9949         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
9950         * tree-ssa-operands.c (get_expr_operands): Likewise.
9951         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
9952         * tree-vect-transform.c (vect_get_vec_def_for_operand):
9953         (get_initial_def_for_reduction): Likewise.
9954         * tree-vn.c (set_value_handle, get_value_handle): CONSTURCTOR uses
9955         value handle in annotations.
9956         * tree.c (tree_node_kind, tree_code_size, make_node_stat,
9957         tree_node_structure): Add support for constr_kind.
9958         (build_vector_from_ctor, build_constructor_single,
9959         build_constructor_from_list): New functions.
9960         (build_constructor): Update to take a VEC instead of a TREE_LIST.
9961         (simple_cst_equal, iterative_hash_expr, initializer_zerop, walk_tree):
9962         Update to cope with VEC in CONSTRUCTOR_ELTS.
9963         * tree.def (CONSTRUCTOR): Make it a tcc_exceptional node.
9964         * tree.h (FOR_EACH_CONSTRUCTOR_VALUE, FOR_EACH_CONSTRUCTOR_ELT,
9965         CONSTRUCTOR_APPEND_ELT): New macros.
9966         (struct constructor_elt, struct tree_constructor): New data types.
9967         (union tree_node): Add tree_constructor field.
9968         * treestruct.def: Define TS_CONSTRUCTOR.
9969         * varasm.c (const_hash_1, compare_constant, copy_constant,
9970         compute_reloc_for_constant, output_addressed_constants,
9971         initializer_constant_valid_p, output_constant,
9972         array_size_for_constructor, output_constructor): Update to cope with
9973         VEC in CONSTRUCTOR_ELTS.
9974         * vec.h (VEC_empty, VEC_copy): New macros.
9975
9976 2005-07-19  Devang Patel  <dpatel@apple.com>
9977
9978         * dbxout.c (dbxout_type): Check Objective-C++ lang.
9979
9980 2005-07-19  Richard Henderson  <rth@redhat.com>
9981
9982         PR tree-opt/22278
9983         * gimplify.c (gimplify_expr): Use main variant type for the temp
9984         destination for a discarded volatile read.
9985         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't elide
9986         casts between non-void types that change volatility.
9987
9988 2005-07-15  DJ Delorie  <dj@redhat.com>
9989
9990         * toplev.h: Add comment about the first parameter for warning().
9991         * errors.h: Likewise.
9992
9993         * c.opt (Wpragmas): New.
9994         * doc/invoke.texi: Document it.
9995
9996         * function.c (do_warn_unused_parameter): Add warning control to
9997         warning call.
9998         * c-decl.c (warn_if_shadowing): Likewise.
9999         * c-lex.c (cb_def_pragma): Likewise.
10000         * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
10001         (pop_alignment): Likewise.
10002         (handle_pragma_pack): Likewise.
10003         (apply_pragma_weak): Likewise.
10004         (handle_pragma_weak): Likewise.
10005         (handle_pragma_redefine_extname): Likewise.
10006         (add_to_renaming_pragma_list): Likewise.
10007         (handle_pragma_extern_prefix): Likewise.
10008         (maybe_apply_renaming_pragma): Likewise.
10009         (handle_pragma_visibility): Likewise.
10010
10011         * config/c4x/c4x-c.c (BAD): Likewise.
10012         (c4x_parse_pragma): Likewise.
10013         * config/ia64/ia64-c.c (ia64_hpux_handle_builtin_pragma): Likewise.
10014         * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
10015         (rs6000_pragma_longcall): Likewise.
10016         * config/v850/v850-c.c (pop_data_area): Likewise.
10017         (ghs_pragma_section): Likewise.
10018         (ghs_pragma_section): Likewise.
10019         (ghs_pragma_interrupt): Likewise.
10020         (ghs_pragma_starttda): Likewise.
10021         (ghs_pragma_startsda): Likewise.
10022         (ghs_pragma_startzda): Likewise.
10023         (ghs_pragma_endtda): Likewise.
10024         (ghs_pragma_endsda): Likewise.
10025         (ghs_pragma_endzda): Likewise.
10026
10027 2005-07-19  Danny Berlin <dberlin@dberlin.org>
10028             Kenneth Zadeck <zadeck@naturalbridge.com>
10029
10030         * Makefile.in: Removed tree-promote-statics.c
10031         * tree-promote-statics.c: Removed.
10032         * common.opt: Removed flag-promote-statics.
10033         * opts.c: Ditto.
10034         * passes.c: Removed tree-promote-statics pass.
10035         * tree-pass.h: Ditto.
10036         * timevar.def: Removed TV_PROMOTE_STATICS.
10037
10038
10039 2005-07-19  Gerald Pfeifer  <gerald@pfeifer.com>
10040
10041         * config.gcc: Add support for *-*-freebsd7, *-*-freebsd8,
10042         and *-*-freebsd9.
10043         * config/freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Ditto.
10044
10045 2005-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10046
10047         PR c/22476
10048         * c-common.c (check_function_arguments): Call
10049         'check_function_format' if either -Wformat or
10050         -Wmissing-format-attribute are specified.
10051         * c-format.c (check_function_format): Check -Wformat before
10052         calling 'check_format_info'.
10053         * c-opts.c (c_common_post_options): Don't warn for
10054         -Wmissing-format-attribute without -Wformat.
10055         * c-typeck.c (convert_for_assignment): Detect additional cases for
10056         -Wmissing-format-attribute.
10057         * doc/invoke.texi (-Wmissing-format-attribute): Document new
10058         behavior.
10059
10060 2005-07-19  Richard Guenther  <rguenther@suse.de>
10061
10062         * config/i386/i386.md (lrint<mode>2): Use temporary
10063         instead of clobbering non-existent memory.
10064
10065 2005-07-19  Nick Clifton  <nickc@redhat.com>
10066
10067         * config/avr/avr.c (legitimate_address_p): Fix debugging print
10068         statement to avoid displaying ASCII control characters.
10069
10070 2005-07-19  Ben Elliston  <bje@au.ibm.com>
10071
10072         * bt-load.c (link_btr_uses): Fix uninitialised warnings.
10073         * cfganal.c (find_edge_index): Ditto.
10074         * combine.c (combine_instructions): Ditto.
10075         * ddg.c (create_scc): Ditto.
10076         (find_successors): Ditto.
10077         (find_predecessors): Ditto.
10078         (find_nodes_on_paths): Ditto.
10079         (longest_simple_path): Ditto.
10080         * flow.c (update_life_info): Ditto.
10081         (count_or_remove_death_notes): Ditto.
10082         (clear_log_links): Ditto.
10083         * modulo-sched.c (generate_reg_moves): Ditto.
10084         (find_max_asap): Ditto.
10085         (find_max_hv_min_mob): Ditto.
10086         (find_max_dv_min_mob): Ditto.
10087         * sbitmap.c (sbitmap_first_set_bit): Ditto.
10088         * sched-rgn.c (extract_edgelst): Ditto.
10089         * tree-into-ssa.c (prepare_names_to_update): Ditto.
10090         (dump_update_ssa): Ditto.
10091         (ssa_names_to_replace) Ditto.
10092         (switch_virtuals_to_full_rewrite): Ditto.
10093         (update_ssa): Ditto.
10094         * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
10095
10096 2005-07-18  Daniel Berlin  <dberlin@dberlin.org>
10097
10098         Fix PR tree-optimization/22483
10099
10100         * tree-complex.c (create_components): Use
10101         safe_referenced_var_iterator and FOR_EACH_REFERENCED_VAR_SAFE.
10102         * tree-flow-inline.h (fill_referenced_var_vec): New function.
10103         * tree-flow.h (safe_referenced_var_iterator): New structure.
10104         (FOR_EACH_REFERENCED_VAR_SAFE): New macro.
10105         * tree-ssa-alias.c (setup_pointers_and_addressables): Use
10106         safe_referenced_var iterator.
10107         (add_type_alias): Ditto.
10108
10109 2005-07-19  Steven Bosscher  <stevenb@suse.de>
10110
10111         * loop-init.c (rest_of_handle_loop2): Remove.
10112         (rtl_loop_init, rtl_loop_done, rtl_move_loop_invariants,
10113         rtl_unswitch, rtl_unroll_and_peel_loops, rtl_doloop): New functions.
10114         (pass_rtl_loop_init, pass_rtl_loop_done,
10115         pass_rtl_move_loop_invariants, pass_rtl_unswitch,
10116         pass_rtl_unroll_and_peel_loops, pass_rtl_doloop): New passes.
10117         * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_loop_done,
10118         pass_unswitch): Rename to pass_tree_loop, pass_tree_loop_init,
10119         pass_tree_loop_done, and pass_tree_unswitch.
10120         (gate_loop): Rename to gate_tree_loop.
10121         * passes.c (init_optimization_passes): Update for renamed tree
10122         loop passes.  Add the new loop2 passes as subpasses of loop2.
10123         * tree-pass.h: Add extern declarations for the new loop2 subpasses.
10124         Update for the renamed tree loop passes.
10125
10126 2005-07-18  Ian Lance Taylor  <ian@airs.com>
10127
10128         PR middle-end/22057
10129         * tree-cfgcleanup.c (cleanup_tree_cfg): Only remove forwarder
10130         blocks when optimizing.
10131
10132 2005-07-18  Steve Ellcey  <sje@cup.hp.com>
10133
10134         * common.opt (frename-registers): Initialize to 2.
10135         (fweb): Ditto.
10136         (fgcse-after-reload): Ditto.
10137         * toplev.c (AUTODETECT_FLAG_VAR_TRACKING): Rename to AUTODETECT_VALUE.
10138         (process_options): Only change flag_web, flag_rename_registers,
10139         and flag_rerun_cse_after_loop if not explicitly set by user.
10140
10141 2005-07-18  Jan Beulich  <jbeulich@novell.com>
10142
10143         * config/i386/i386.c (ix86_expand_branch, ix86_expand_setcc,
10144         ix86_expand_carry_flag_compare, ix86_expand_int_movcc): Handle TImode
10145         in 64-bit mode the same as DImode in 32-bit mode.
10146         (ix86_expand_ashl_const, ix86_split_ashl, ix86_split_ashr,
10147         ix86_split_lshr): Likewise. Rename to no longer refer to a specific
10148         mode. Add new mode parameter.
10149         * config/i386/i386.h (CONST_OK_FOR_LETTER_P): Describe and handle 'O'.
10150         * config/i386/i386.md (cmpti, addti3, subti3, negti2, ashlti3, ashrti3,
10151         x86_64_shift_adj): New expanders.
10152         (*addti3_1, *subti3_1, *negti2_1, ashlti3_1, *ashlti3_2, ashrti3_1,
10153         *ashrti3_2, lshrti3_1, *lshrti3_2, x86_64_shld, x86_64_shrd): New
10154         insns.
10155         Respective new splitters. Use renamed shift splitter helpers in 32-bit
10156         DImode shift splitters.
10157         * config/i386/i386-protos.h (ix86_split_ashl, ix86_split_ashr,
10158         ix86_split_lshr): Renamed from ix86_split_[al]sh[rl]di. Added new
10159         mode parameter.
10160
10161 2005-07-18  Jan Beulich  <jbeulich@novell.com>
10162
10163         * i386.md (movdi_extzv_1): New.
10164         (zero_extendhidi2): Combine alternatives and never force use of
10165         REX64 prefix.
10166         (zero_extendqidi2): Likewise. Don't restrict input selection.
10167
10168 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
10169
10170         Fix PR tree-optimization/22531
10171         * tree-ssa-pre.c (do_eustores):  Make sure LHS is a decl for the
10172          moment.
10173
10174 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
10175
10176         * tree-promote-statics.c (pass_promote_statics): Change dump file
10177          name.
10178
10179 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
10180
10181         * tree-optimize.c (init_tree_optimization_passes): Add
10182         pass_eliminate_useless_stores pass.
10183         * tree-pass.h (pass_eliminate_useless_stores): New pass structure.
10184         * tree-ssa-pre.c (is_copy_stmt): New function.
10185         (follow_copies_till_vuse): Ditto.
10186         (do_eustores): Ditto.
10187         (gate_eustores): Ditto.
10188
10189 2005-07-16  Richard Henderson  <rth@redhat.com>
10190
10191         * gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit.
10192
10193 2005-07-16 Danny Berlin <dberlin@dberlin.org>
10194            Kenneth Zadeck <zadeck@naturalbridge.com>
10195
10196         * Makefile.in: Added rules for ipa-pure-const.c, ipa-reference.c,
10197         ipa-reference.h, ipa-utils.c, ipa-utils.h, ipa-type-escape.c,
10198         ipa-type-escape.h, tree-promote-statics.c
10199         * ipa-pure-const.c, ipa-reference.c, ipa-reference.h, ipa-utils.c,
10200         ipa-utils.h, ipa-type-escape.c, ipa-type-escape.h,
10201         tree-promote-statics.c: new files.
10202         * alias.c: (nonlocal_mentioned_p_1, nonlocal_mentioned_p,
10203         nonlocal_referenced_p_1, nonlocal_referenced_p, nonlocal_set_p_1,
10204         int nonlocal_set_p, mark_constant_function): Deleted.
10205         (rest_of_handle_cfg): Removed call to mark_constant_function.
10206         (nonoverlapping_component_refs_p): Added calls to support
10207         type based aliasing.
10208         * tree-ssa-alias.c (may_alias_p,
10209         compute_flow_insensitive_aliasing): Ditto.
10210         * calls.c (flags_from_decl_or_type): Removed reference to
10211         cgraph_rtl_info.
10212         * c-typeck.c (convert_arguments): Make builtins tolerant of having
10213         too many arguments.  This is necessary for Spec 2000.
10214         * cgraph.h (const_function, pure_function): Removed.
10215         * common.opt: Added "fipa-pure-const", "fipa-reference",
10216         "fipa-type-escape", and "ftree-promote-static".
10217         * opts.c: Ditto.
10218         * passes.c: Added ipa and tree-promote-statics passes.
10219         * timevar.def: Added TV_IPA_PURE_CONST, TV_IPA_REFERENCE,
10220         TV_IPA_TYPE_ESCAPE, and TV_PROMOTE_STATICS.
10221         * tree-dfa.c (referenced_var_lookup_if_exists): New function.
10222         * tree-flow.h: Added exposed sra calls and addition of
10223         reference_vars_info field for FUNCTION_DECLS.
10224         * tree-pass.h: Added passes.
10225         * tree-sra.c: (sra_init_cache): New function.
10226         (sra_insert_before, sra_insert_after) Made public.
10227         (type_can_be_decomposed_p): Renamed from type_can_be_decomposed_p
10228         and made public.
10229         * tree-ssa-alias.c (dump_alias_stats): Added stats for type based
10230         aliasing. (may_alias_p): Added code to use type escape analysis to
10231         improve alias sets.
10232         * tree-ssa-operands.c (add_call_clobber_ops): Added parameter and
10233         code to prune clobbers of static variables based on information
10234         produced in ipa-reference pass.  Changed call clobbering so that
10235         statics are not marked as clobbered if the call does not clobber
10236         them.
10237
10238 2005-07-16  Daniel Berlin  <dberlin@dberlin.org>
10239
10240         * tree-ssa-structalias.c (need_to_solve): Need to check for preds,
10241         too.
10242
10243 2005-07-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
10244
10245         * doc/install.texi (*-*-solaris2*): Document recommended version
10246         of GNU binutils and mention GNU linker problem on Solaris 10.
10247
10248 2005-07-16  Joseph S. Myers  <joseph@codesourcery.com>
10249
10250         PR c/22421
10251         * c-decl.c (c_build_bitfield_integer_type): New function.
10252         (finish_struct): Call it.
10253         * c-pretty-print.c (pp_c_type_specifier): Handle bit-field types.
10254
10255 2005-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10256
10257         * c-typeck.c (digest_init): Call 'convert_for_assignment'
10258         before returning.
10259
10260 2005-07-16  Jan Hubicka  <jh@suse.cz>
10261
10262         * cfg.c (update_bb_profile_for_threading): Fix profile updating.
10263         (scale_bbs_frequencies_int): Watch roundoff errors.
10264         * predict.c (return_prediction): Initialize return_stmt.
10265
10266 2005-07-16  Jan Hubicka  <jh@suse.cz>
10267
10268         * profile.c (rest_of_handle_branch_prob): Fix handling of estimation
10269         after RTL profiling.
10270
10271 2005-07-11  Andrew Pinski  <pinskia@physics.uc.edu>
10272
10273         PR middle-end/22398
10274         * fold-const.c (build_range_check): Convert high/low to etype
10275         if we are only comparing against exp.
10276
10277 2005-07-13  Daniel Berlin  <dberlin@dberlin.org>
10278
10279         Fix PR tree-optimization/22376
10280         * tree-ssa-structalias.c (build_constraint_graph): We really meant
10281         special var here.
10282         (need_to_solve): New function.
10283         (compute_points_to_sets): Use it.
10284
10285 2005-07-15  Jan Hubicka  <jh@suse.cz>
10286
10287         * cfg.c (update_bb_profile_for_threading): More diagnostic.
10288         * tree-ssa-threadupdate.c (redirect_edges): Update profile of dup_block.
10289
10290 2005-07-15  Richard Guenther  <rguenther@suse.de>
10291
10292         * c-common.c (handle_flatten_attribute): New function.
10293         Add flatten function attribute.
10294         * doc/extend.texi: Document flatten function attribute.
10295         * Makefile.in (ipa-inline.o): Depend on hashtab.h.
10296         * ipa-inline.c (cgraph_find_cycles, cgraph_flatten_node):
10297         New functions.
10298         (cgraph_decide_inlining): Handle functions with flatten
10299         attribute.
10300
10301 2005-07-14  David Edelsohn  <edelsohn@gnu.org>
10302
10303         * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_LWSYNC,
10304         UNSPEC_ISYNC, UNSPEC_SYNC_OP, UNSPEC_ATOMIC, UNSPEC_CMPXCHG,
10305         UNSPEC_XCHG, UNSPEC_AND): New.
10306         (UNSPECV_ATOMIC, UNSPECV_SYNC, UNSPECV_SYNC_OP, UNSPECV_CMPXCHG,
10307         UNSPECV_LWSYNC, UNSPECV_ISYNC): Delete.
10308         * config/rs6000/sync.md (FETCHOP): New code macro.
10309         (fetchop_name, fetchop_pred, fetchopsi_constr, fetchopdi_constr):
10310         New code attrs.
10311         (memory_barrier, sync_internal): Use unspec instead of unspec_volatile.
10312         (sync_compare_and_swap<mode>): Same.
10313         (sync_lock_test_and_set<mode>): Same.
10314         (sync_<fetchop><mode>, sync_nand<mode>): Only use rs6000_emit_sync
10315         for QImode and HImode, and not PPC405.
10316         (sync_old_<fetchop><mode>, sync_old_nand<mode>): Same.
10317         (sync_new_<fetchop><mode>, sync_new_nand<mode>): Same.
10318         (sync_<fetchop>{si,di}_internal): New.
10319         (sync_nand{si,di}_internal): New.
10320         (sync_old_<fetchop>{si,di}_internal): New.
10321         (sync_old_nand{si,di}_internal): New
10322         (sync_new_<fetchop>{si,di}_internal): New.
10323         (sync_new_nand{si,di}_internal): New.
10324         (atomic_and{si,di}): New.
10325         (sync_new_nand{si,di}_internal): New.
10326         (atomic_and{si,di}): New.
10327         (sync_add<mode>_internal): Delete.
10328         (sync_addshort_internal): Use unspec instead of unspec_volatile.
10329         (sync_sub<mode>_internal): Delte.
10330         (sync_subshort_internal): New.
10331         (sync_andsi_internal): Use unspec instead of unspec_volatile.
10332         (sync_anddi_internal): Delete.
10333         (sync_boolsi_internal): Use unspec instead of unspec_volatile.
10334         (sync_booldi_internal): Delete.
10335         (sync_boolc<mode>_internal): Delete.
10336         (sync_boolcshort_internal): Use unspec instead of unspec_volatile.
10337         (sync_boolc<mode>_internal2): Delete.
10338         (sync_boolcc<mode>_internal): Delete.
10339         (isync, lwsync): Use unspec instead of unspec_volatile.
10340         * config/rs6000/rs6000.c (rs6000_emit_sync): Implement MINUS.
10341         Revert UNSPEC_VOLATILE.
10342         (rs6000_split_atomic_op): New.
10343         * config/rs6000/rs6000-protos.h (rs6000_split_atomic_op): Declare.
10344
10345 2005-07-14  Eric Christopher  <echristo@redhat.com>
10346
10347         * config/mips/mips.c (mips_canonicalize_comparison): Cast
10348         argument of trunc_int_for_mode to unsigned HOST_WIDE_INT.
10349
10350 2005-07-14  Eric Christopher  <echristo@redhat.com>
10351
10352         * config/s390/t-tpf (SHLIB_MAPFILES): Remove.
10353
10354 2005-07-14  Steven Bosscher  <stevenb@suse.de>
10355
10356         PR tree-optimization/22230
10357         * tree-vrp.c (extract_range_from_binary_expr): Fix logics thinko in
10358         the computation of the four cross productions for "range op range".
10359
10360 2005-07-14  Alexandre Oliva  <aoliva@redhat.com>
10361             Ulrich Weigand  <uweigand@de.ibm.com>
10362
10363         PR target/20126
10364         * loop.c (loop_givs_rescan): Do not ICE if unable to reduce an IV
10365         in some insn.
10366
10367 2005-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
10368
10369         * config/s390/s390.h (TARGET_TPF_PROFILING): Add default definition.
10370
10371 2005-07-14  Steve Ellcey  <sje@cup.hp.com>
10372
10373         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Support ILP32 mode.
10374
10375 2005-07-14  Richard Guenther  <rguenther@suse.de>
10376
10377         PR middle-end/22347
10378         * config/i386/i386-protos.h (ix86_function_value): Change
10379         prototype to match new target hook.
10380         * config/i386/i386.c (ix86_value_regno): Change prototype
10381         to take extra type argument.
10382         (TARGET_FUNCTION_VALUE): Define.
10383         (ix86_function_ok_for_sibcall): Pass extra argument to
10384         ix86_value_regno, check return slot rtx for exact match.
10385         (ix86_function_value): Take extra parameter.  Dispatch to
10386         ix86_value_regno with fndecl/fntype as provided.
10387         (ix86_value_regno): Handle extra type argument.
10388         * config/i386/i386.h (FUNCTION_VALUE): No longer define.
10389
10390         * testsuite/gcc.target/i386/sseregparm-3.c: New testcase.
10391         * testsuite/gcc.target/i386/sseregparm-4.c: New testcase.
10392         * testsuite/gcc.target/i386/sseregparm-5.c: New testcase.
10393         * testsuite/gcc.target/i386/sseregparm-6.c: New testcase.
10394         * testsuite/gcc.target/i386/sseregparm-7.c: New testcase.
10395
10396 2005-07-14  Richard Guenther  <rguenther@suse.de>
10397
10398         * Makefile.in (explow.o, reg-stack.o): Depend on target.h.
10399         * calls.c (expand_call): Pass fntype to hard_function_value.
10400         (emit_library_call_value_1): Likewise.
10401         * explow.c: Include target.h.
10402         (hard_function_value): Take extra argument, the fntype.
10403         Use new target hook for function_value.
10404         * expr.h (hard_function_value): Change prototype.
10405         * function.c (aggregate_value_p): Pass 0 as fntype to
10406         hard_function_value.
10407         (assign_parms): Use new target hook for function_value.
10408         Pass 0 as fntype to hard_function_value.
10409         (expand_function_end): Likewise.
10410         * reg-stack.c: Include target.h.
10411         (stack_result): Use new target hook for function_value.
10412         * target-def.h: New target hook function_value.
10413         * target.h: Likewise.
10414         * targhooks.c (default_function_value): New function.
10415         * targhooks.h (default_function_value): Declare.
10416
10417 2005-07-13  Ian Lance Taylor  <ian@airs.com>
10418
10419         * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
10420
10421 2005-07-14  Jan Hubicka  <jh@suse.cz>
10422
10423         * tree-dfa.c (dump_variable): Use default_def function.
10424         * tree-ssa-alias.c (dump_points_to_info): Likewise.
10425         * tree-ssa.c (verify_use): Likewise.
10426         * tree-ssanames.c (release_ssa_name): Likewise.
10427         * tree-tailcall.c (eliminate_tail_call): Likewise.
10428         (tree_optimize_tail_calls_1): Likewise.
10429         * tree-vrp.c (get_value_range): Likewise.
10430
10431 2005-07-14  Ben Elliston  <bje@au.ibm.com>
10432
10433         * gcc.c (main): Compare language[0] with '*' when iterating over
10434         the infiles.
10435
10436 2005-07-13  Adrian Strae½tling  <straetling@de.ibm.com>
10437
10438         * config/s390/s390.c: (s390_cc_modes_compatible): Move before
10439         "s390_emit_compare".  Add handling of CCZ1mode.
10440         (s390_canonicalize_comparison): Simplify cascaded EQ, NE.
10441         (390_emit_compare): Use "s390_cc_modes_compatible" for mode
10442         checking.
10443         (s390_branch_condition_mask): Add CCZ1mode handling.
10444         * config/s390/s390.md: ("seq", "*seq"): New pattern.
10445         ("sync_compare_and_swap_cc<mode>", "*sync_compare_and_swap_cc<mode>"):
10446         Use CCZ1mode instead of CCZmode.
10447         * config/s390/s390-modes.def: Add CCZ1mode.  Comment new mode.
10448
10449 2005-07-13  Adrian Strae½tling  <straetling@de.ibm.com>
10450
10451         * config/s390/s390.md: ("cmpstrsi", "*cmpstr<mode>"): New
10452         pattern.
10453         ("strlen<mode>", "*strlen<mode>"): Use hard reg 0 in SImode.
10454
10455 2005-07-13  Eric Christopher  <echristo@redhat.com>
10456
10457         * config/mips/mips.c (mips_canonicalize_comparison): New.
10458         (mips_emit_int_relational): Use.
10459
10460 2005-07-13  Eric Christopher  <echristo@redhat.com>
10461
10462         * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
10463         static extra parts.
10464         * config/s390/s390.md: Include tpf.md. Move tpf specific
10465         patterns...
10466         * config/s390/tpf.md: To here.
10467         * config/s390/s390.opt: Move tpf specific options...
10468         * config/s390/tpf.opt: to here. Add mmain option.
10469         * config/s390/tpf-unwind.h: Remove unnecessary defines.
10470         * config/s390/tpf.h: Rewrite.
10471
10472 2005-07-13  H.J. Lu  <hongjiu.lu@intel.com>
10473
10474         * doc/tm.texi: Remove @xref{Cross-profiling}.
10475
10476 2005-07-13  Jeff Law  <law@redhat.com>
10477
10478         * fold-const.c (fold_binary): When comparing two simple ADDR_EXPR
10479         expressions, test their _DECL operands for pointer equality rather
10480         than using operand_equal_p.
10481
10482 2005-07-13  H.J. Lu  <hongjiu.lu@intel.com>
10483
10484         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Renamed to ...
10485         (TARGET_POSIX_IO): This.
10486         * config/darwin.h: Likewise.
10487         * config/freebsd.h: Likewise.
10488         * config/linux.h: Likewise.
10489         * config/lynx.h: Likewise.
10490         * config/netbsd.h: Likewise.
10491         * config/rs6000/linux64.h: Likewise.
10492         * config/rs6000/linux.h: Likewise.
10493         * config/s390/tpf.h: Likewise.
10494         * config/sh/embed-elf.h: Likewise.
10495         * config/sparc/linux64.h: Likewise.
10496         * config/sparc/linux.h: Likewise.
10497         * config/svr4.h: Likewise.
10498         * gcov-io.h: Likewise.
10499
10500         * doc/tm.texi: Updated.
10501
10502         * libgcov.c (create_file_directory): Defined only if
10503         TARGET_POSIX_IO is defined.
10504         (gcov_exit): Call create_file_directory only if TARGET_POSIX_IO
10505         is defined.
10506
10507 2005-07-13  Jan Hubicka  <jh@suse.cz>
10508
10509         * tree-ssa-operands.c (get_expr_operands): Fix typo in previous patch.
10510
10511 2005-07-13  David Edelsohn  <edelsohn@gnu.org>
10512
10513         * tree-ssa-dom.c (lookup_avail_expr): Do not pass member in freed
10514         structure as argument.
10515
10516 2005-07-13  Paolo Bonzini  <bonzini@gnu.org>
10517
10518         PR tree-optimization/21921
10519         * tree-iterator.c (tsi_link_before): Support the case when
10520         tsi_end_p (tsi) == true.
10521
10522 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
10523
10524         PR tree-optimization/22442
10525         * tree-chrec.c (chrec_fold_multiply_poly_poly): Associate chrecs
10526         correctly.
10527
10528 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
10529
10530         PR rtl-optimization/20376
10531         * toplev.c (process_options): Enable -fweb and -frename-registers when
10532         unrolling.
10533         * doc/invoke.texi: Update the information about when -fweb and
10534         -frename-registers are enabled.
10535
10536 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
10537
10538         PR tree-opt/21840
10539         * tree-ssa-pre.c (eliminate): Convert the sprime to the correct type
10540         if *rhs_p is not a SSA_NAME.
10541
10542 2005-07-12  Daniel Berlin  <dberlin@dberlin.org>
10543
10544         Fix PR tree-optimization/22422
10545         * tree-ssa-structalias.c (struct variable_info): Add flag for
10546         special vars.
10547         (get_varinfo): Now a static function.
10548         (new_varinfo): init has_union and is_special_var to false.
10549         (solution_set_add): Check has_union.
10550         (do_da_constraint): Move temporary variable so it gets reset
10551         properly.
10552         Also check for special variable.
10553         (do_ds_constraint): Ditto.
10554         (do_sd_constraint): Ditto.
10555         (do_structure_copy): Check for special variable.
10556         (find_func_aliases): Ditto.
10557         (init_base_vars): Set special vars properly.
10558
10559 2005-07-13  Jan Hubicka  <jh@suse.cz>
10560
10561         * cfgexpand.c (expand_one_stack_var): Do not expand variables when we
10562         do unit-at-a-time.
10563
10564         * tree-ssa-operands.c (parse_ssa_operands): Fix formatting.
10565         (get_expr_operands): Fix thinko wrt flags and subvars.
10566
10567         PR tree-optimize/22379
10568         * tree-inline.c (expand_call_inline): Do not output sorry in early
10569         inlining.
10570
10571 2005-07-12  Dale Johannesen  <dalej@apple.com>
10572
10573         * config/rs6000.c (rs6000_rtx_cost):  Move FLOAT_EXTEND.
10574
10575 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
10576
10577         PR bootstrap/21704
10578         * host-linux.h: Include limits.h.
10579
10580 2005-07-12  Dale Johannesen  <dalej@apple.com>
10581
10582         * expr.c (compress_float_constant):  Add cost check.
10583         * config/rs6000.c (rs6000_rtx_cost):  Adjust FLOAT_EXTEND cost.
10584
10585 2005-07-12  Dale Johannesen  <dalej@apple.com>
10586
10587         * gcc.target/i386/compress-float-sse.c:  New.
10588         * gcc.target/i386/compress-float-sse-pic.c:  New.
10589         * gcc.target/i386/compress-float-387.c:  New.
10590         * gcc.target/i386/compress-float-387-pic.c:  New.
10591         * gcc.dg/compress-float-ppc.c:  New.
10592         * gcc.dg/compress-float-ppc-pic.c:  New.
10593
10594 2005-07-12  Eric Christopher  <echristo@redhat.com>
10595
10596         * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
10597         static extra parts.
10598         * config/s390/s390.md: Include tpf.md. Move tpf specific
10599         patterns...
10600         * config/s390/tpf.md: To here.
10601         * config/s390/s390.opt: Move tpf specific options...
10602         * config/s390/tpf.opt: to here. Add mmain option.
10603         * config/s390/tpf-unwind.h: Remove unnecessary defines.
10604         * config/s390/tpf.h: Rewrite.
10605
10606 2005-07-12  Eric Christopher  <echristo@redhat.com>
10607
10608         * gcc.c (struct infile): Update comment for language.
10609         (main): Rewrite input file resetting code.
10610
10611 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
10612
10613         PR tree-opt/22335
10614         * tree-ssa-dom.c (eliminate_redundant_computations): Reject the prop if
10615         requiring a cast in a non RHS of modify_expr.  Add a cast when required.
10616         (lookup_avail_expr): Use constant_boolean_node instead
10617         of boolean_false_node/boolean_true_node.
10618
10619 2005-07-12  Ben Elliston  <bje@au.ibm.com>
10620
10621         * tree-cfg.c (dump_cfg_stats): Add a new fmt_str_2 format string
10622         and use it when printing num_edges.
10623
10624 2005-07-12  Bernd Schmidt  <bernd.schmidt@analog.com>
10625
10626         * doc/extend.texi (Blackfin Built-in Functions): New section.
10627         * doc/invoke.texi (mcsync-anomaly, mno-csync-anomaly): Fix the
10628         @opindex.
10629
10630 2005-07-12  Adrian Straetling  <straetling@de.ibm.com>
10631
10632         * builtins.c: (expand_builtin_memcmp, expand_builtin_strncmp):
10633         s/cmpstrsi/cmpstrnsi
10634         (expand_builtin_strcmp): Rewrite to support both 'cmpstrsi' and
10635         'cmpstrnsi'.
10636         * optabs.c: (prepare_cmp_insn): Add availability of 'cmpstrn'.
10637         (init_optabs): Initialize cmpstrn_optab.
10638         * optabs.h: (enum insn_code cmpstrn_optab): Declare.
10639         * genopinit.c: (optabs[]): Add 'cmpstrn' to initialisation.
10640         * expr.c: (enum insn_code cmpstrn_optab): Declare.
10641         * config/i386/i386.md: s/cmpstr/cmpstrn
10642         * config/c4x/c4x.md: s/cmpstr/cmpstrn
10643         * doc/md.texi: Update documentation.
10644
10645 2005-07-11  Richard Henderson  <rth@redhat.com>
10646
10647         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use
10648         build_va_arg_indirect_ref.
10649         (alpha_gimplify_va_arg): Likewise.
10650         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
10651         * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
10652         * config/mips/mips.c (mips_gimplify_va_arg_expr): Likewise.
10653         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
10654         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
10655         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg):
10656         Likewise.
10657         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
10658
10659 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
10660
10661         * tree-flow.h (remove_empty_loops, single_dom_exit): Declare.
10662         * passes.c (init_optimization_passes): Add pass_empty_loop.
10663         * tree-pass.h (pass_empty_loop): Declare.
10664         * tree-ssa-loop-ivcanon.c (empty_loop_p, remove_empty_loop,
10665         try_remove_empty_loop, remove_empty_loops): New functions.
10666         * tree-ssa-loop-ivopts.c (single_dom_exit): Export.
10667         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): New.
10668
10669 2005-07-12  Peter Barada  <peter@the-baradas.com>
10670
10671         PR middle-end/16719
10672         PR middle-end/18421
10673         * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Disallow bytes
10674         in address registers.
10675         * config/m68k/m68k.c (hard_regno_mode_ok): Likewise.
10676         * config/m68k/m68k.md: Replace 's' with 'i' in 4th
10677         alternative of addsi3_5200.
10678
10679 2005-07-11  Ian Lance Taylor  <ian@airs.com>
10680
10681         * config/mips/mips.md (ffs<mode>2): Remove.
10682
10683 2005-07-11  Ian Lance Taylor  <ian@airs.com>
10684
10685         * doc/tree-ssa.texi (Cleanups): Improve description of
10686         TRY_FINALLY_EXPR.
10687         (GIMPLE Exception Handling): Clarify TRY_CATCH_EXPR cases.
10688
10689 2005-07-11  Daniel Berlin  <dberlin@dberlin.org>
10690
10691         * print-tree.c (print_node): Use DECL_ARGUMENT_FLD.
10692         * tree.h (DECL_ARGUMENT_FLD): New macro.
10693
10694 2005-07-11  Daniel Berlin  <dberlin@dberlin.org>
10695
10696         Fix PR tree-optimization/22404
10697
10698         * tree-ssa-structalias.c (create_variable_info_for): Use
10699         correct offset.
10700
10701 2005-07-11  Bernd Schmidt  <bernd.schmidt@analog.com>
10702
10703         * config/bfin/bfin.md (cmpsi, compare_eq, compare_ne, compare_lt,
10704         compare_le, compare_leu, compare_ltu): Use reg_or_const_int_operand
10705         for second comparison operand.
10706         * config/bfin/predicates.md (reg_or_const_int_operand): New.
10707
10708         * config/bfin/bfin.md (define_attr "type"): Add "sync".
10709         (define_insn_reservation "alu"): Likewise.
10710         (csync, ssync): Now of type sync.
10711         * config/bfin/bfin.h (TARGET_DEFAULT): Defaults to
10712         -mcsync-anomaly -mspecld-anomaly.
10713         * config/bfin/bfin.opt (mcsync): Remove.
10714         (mcsync-anomaly, mspecld-anomaly): Add.
10715         * config/bfin/bfin.c: Include "insn-codes.h".
10716         (bfin_reorg): Extend to handle the CSYNC anomaly as well.
10717         (TARGET_DEFAULT_TARGET_FLAGS): New.
10718         * doc/invoke.texi: Document -mcsync-anomaly, -mspecld-anomaly.
10719
10720 2005-07-11  Steven Bosscher  <stevenb@suse.de>
10721
10722         * basic-block.h: Give the BB flags enum a name, bb_flags.
10723         Add new flags BB_FORWARDER_BLOCK, and BB_NONTHREADABLE_BLOCK.
10724         * cfgcleanup.c (enum bb_flags): Remove here.
10725         (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG): Remove.
10726         (notice_new_block): Set/test bb->flags instead of aux via BB_FLAGS.
10727         (update_forwarder_flag): Likewise.
10728         (thread_jump): Likewise.
10729         (try_forward_edges): Likewise.
10730         (try_optimize_cfg): Likewise.  Clear bb->flags before updating the
10731         forwarder flags.  Don't clear bb->aux for all basic blocks.  Only
10732         reset the BB_FORWARDER_BLOCK and BB_NONTHREADABLE_BLOCK flags.
10733
10734 2005-07-11  Richard Guenther  <rguenther@suse.de>
10735
10736         * config/i386/i386.opt: New target option -msseregparm.
10737         * config/i386/i386.c (override_options): Error out for
10738         -msseregparm but no SSE support.
10739         (ix86_function_sseregparm): Check for global sseregparm.
10740         * doc/invoke.texi: Document -msseregparm.
10741
10742 2005-07-11  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
10743
10744         * config.gcc (m32r-*-linux*): Use the default extra_parts.
10745         (m32rle-*-linux*): Ditto.
10746
10747 2005-07-11  Jakub Jelinek  <jakub@redhat.com>
10748
10749         * cfgexpand.c (stack_protect_classify_type): Use TYPE_SIZE_UNIT (type)
10750         instead of TYPE_MAX_VALUE (TYPE_DOMAIN (type)) to get array size in
10751         bytes.
10752
10753 2005-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10754
10755         PR middle-end/22239
10756         PR target/20126
10757         * loop.c (loop_givs_rescan): Use expand_simple_binop instead of
10758         gen_rtx_MINUS to handle non-replaceable (plus ((x) (const)).
10759
10760 2005-07-07  Daniel Berlin  <dberlin@dberlin.org>
10761
10762         * tree-ssa-structalias.c (struct variable_info): Heapify complex.
10763         (varmap): Heapify varmap.
10764         (constraints): Heapify constraints.
10765         (struct constraint_graph): Heapify succs and preds.
10766         (constraint_vec_find): Update for heapification.
10767         (constraint_set_union): Ditto.
10768         (insert_into_complex): Ditto.
10769         (constraint_edge_vec_find): Ditto.
10770         (erase_graph_self_edge): Ditto.
10771         (add_graph_edge): Ditto.
10772         (get_graph_weights): Ditto.
10773         (merge_graph_nodes): Ditto.
10774         (build_constraint_graph): Ditto.
10775         (topo_visit): Ditto.
10776         (solve_graph): Ditto.
10777         (create_variable_info_for): Ditto.
10778         (init_base_vars): Ditto.
10779         (delete_points_to_sets): Free graph, varmap, and complex constraints.
10780         (condese_varmap_nodes): Free complex vector.
10781         (clear_edges_for_node): Clear succs and preds vector.
10782
10783 2005-07-10  Daniel Berlin  <dberlin@dberlin.org>
10784
10785         * tree-ssa-structalias.c (update_alias_info): Change counting of
10786         references to not include vdefs.
10787
10788 2005-07-10  Daniel Berlin  <dberlin@dberlin.org>
10789
10790         * tree-ssa-alias.c (free_used_part_map): Add missing free.
10791         (up_insert): Ditto.
10792
10793 2005-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10794
10795         * pa.c (pa_commutative_p): Make PLUS commutative when
10796         TARGET_NO_SPACE_REGS is true.
10797
10798 2005-07-09  Diego Novillo  <dnovillo@redhat.com>
10799
10800         * Makefile.in (tree-ssa-alias.o): Depend on tree-ssa-structalias.h
10801         * tree-cfg.c (CHECK_OP): Only test for is_gimple_val.
10802         * tree-dfa.c (dump_subvars_for): New.
10803         (debug_subvars_for): New.
10804         (dump_variable): Show subvariables if VAR has them.
10805         * tree-flow-inline.h (get_subvar_at): New.
10806         (overlap_subvar): Change offset and size to unsigned HOST_WIDE_INT.
10807         * tree-flow.h (struct ptr_info_def): Remove field pt_malloc.
10808         Update all users.
10809         (struct subvar): Change fields offset and size to unsigned
10810         HOST_WIDE_INT.
10811         (dump_subvars_for): Declare.
10812         (debug_subvars_for): Declare.
10813         (get_subvar_at): Declare.
10814         (okay_component_ref_for_subvars): Change 2nd and 3rd argument
10815         to unsigned HOST_WIDE_INT *.
10816         (overlap_subvar): Likewise.
10817         * tree-gimple.c (is_gimple_reg): Always return false for
10818         SFTs and memory tags.
10819         * tree-pass.h (pass_build_pta, pass_del_pta): Remove.
10820         Update all callers.
10821         * tree-ssa-alias.c: Include tree-ssa-structalias.h.
10822         (compute_may_aliases): Call compute_points_to_sets.
10823         (collect_points_to_info_for): Remove.
10824         (compute_points_to_and_addr_escape): Remove.
10825         (delete_alias_info): Call delete_points_to_sets.
10826         (compute_flow_sensitive_aliasing): If the call to
10827         find_what_p_points_to returns false, call set_pt_anything.
10828         (add_may_alias): Set TREE_ADDRESSABLE when adding a new alias.
10829         (set_pt_anything): Clear pi->pt_vars.
10830         (set_pt_malloc): Remove.
10831         (merge_pointed_to_info): Remove.
10832         (add_pointed_to_expr): Remove.
10833         (add_pointed_to_var): Remove.
10834         (collect_points_to_info_r): Remove.
10835         (is_escape_site): Make extern.
10836         (create_sft): New.
10837         (create_overlap_variables_for): Call it.
10838         * tree-ssa-copy.c (merge_alias_info): Never merge
10839         flow-sensitive alias information.
10840         * tree-ssa-operands.c (get_expr_operands): Adjust variables
10841         offset and size to be unsigned HOST_WIDE_INT.
10842         (add_to_addressable_set): Rename from note_addressable.
10843         Set TREE_ADDRESSABLE as the variables are added to the set.
10844         Update all users.
10845         (add_stmt_operand): Do not try to micro-optimize unmodifiable
10846         operands into VUSEs when adding V_MAY_DEFs for members in an
10847         alias set.
10848         * tree-ssa-operands.h (add_to_addressable_set): Declare.
10849         * tree-ssa-structalias.c: Include tree-ssa-structalias.h last.
10850         (struct variable_info): Add bitfield is_heap_var.
10851         (var_anyoffset, anyoffset_tree, anyoffset_id): Declare.
10852         (new_var_info): Initialize is_heap_var.
10853         (get_constraint_for): Add HEAP variables to the symbol table.
10854         Mark them with is_heap_var.
10855         (update_alias_info): New.  Taken mostly from the old
10856         compute_points_to_and_addr_escape.
10857         (handle_ptr_arith): New.
10858         (find_func_aliases): Call update_alias_info.
10859         Call handle_ptr_info for tcc_binary expressions.
10860         Call mark_stmt_modified.
10861         (create_variable_info_for): If DECL has subvars, do not create
10862         variables for its subvars.  Always add all the fields.
10863         (set_uids_in_ptset): If the solution includes ANYOFFSET and
10864         SFTs, then add all the SFTs of the structure.
10865         If VI->DECL is an aggregate with subvariables, add the SFT at
10866         VI->OFFSET.
10867         (find_what_p_points_to): If VI is an artificial variable,
10868         translate to bitfields in SSA_NAME_PTR_INFO.
10869         If the solution is empty, set pi->pt_vars to NULL
10870         (init_base_vars): Create ANYOFFSET.
10871         (compute_points_to_sets): Rename from create_alias_vars.
10872         Make extern.
10873         (pass_build_pta): Remove.
10874         (delete_points_to_sets): Rename from delete_alias_vars.
10875         (pass_del_pta): Remove.
10876         * tree-ssa-structalias.h (struct alias_info): Move from
10877         tree-ssa-alias.h.
10878         (NUM_REFERENCES, NUM_REFERENCES_CLEAR, NUM_REFERENCES_INC,
10879         NUM_REFERENCES_SET): Likewise.
10880         (compute_points_to_sets, delete_points_to_sets): Declare.
10881
10882 2005-07-09  Richard Henderson  <rth@redhat.com>
10883
10884         * config/alpha/alpha.c (emit_insxl, alpha_expand_compare_and_swap_12,
10885         alpha_split_compare_and_swap_12, alpha_expand_lock_test_and_set_12,
10886         alpha_split_lock_test_and_set_12): New functions.
10887         * config/alpha/alpha-protos.h: Update.
10888         * config/alpha/alpha.md (UNSPEC_MB, UNSPEC_ATOMIC,
10889         UNSPEC_CMPXCHG, UNSPEC_XCHG): Rename from UNSPECV_FOO.
10890         * config/alpha/sync.md (I12MODE): New.
10891         (memory_barrier, mb_internal): Use unspec instead of unspec_volatile.
10892         (sync_<fetchop_name><I48MODE>): Likewise.
10893         (sync_nand<I48MODE>): Likewise.
10894         (sync_old_<fetchop_name><I48MODE>): Likewise.
10895         (sync_new_<fetchop_name><I48MODE>): Likewise.
10896         (sync_old_nand<I48MODE>, sync_new_nand<I48MODE>): Likewise.
10897         (sync_compare_and_swap<I48MODE>): Likewise.
10898         (sync_lock_test_and_set<I48MODE>): Likewise.
10899         (sync_compare_and_swap<I12MODE>): New.
10900         (sync_compare_and_swap<I12MODE>_1): New.
10901         (sync_lock_test_and_set<I12MODE>): New.
10902         (sync_lock_test_and_set<I12MODE>_1): New.
10903
10904 2005-07-09  Diego Novillo  <dnovillo@redhat.com>
10905
10906         PR 21356
10907         PR 22332
10908         * passes.c (execute_todo): Cleanup the CFG before updating SSA.
10909
10910 2005-07-09  Jakub Jelinek  <jakub@redhat.com>
10911
10912         * config/i386/i386.c (output_set_got): Don't omit OFFSET FLAT:
10913         in Intel syntax add %reg, OFFSET FLAT:_GLOBAL_OFFSET_TABLE_+(.-.Lx).
10914
10915 2005-07-09  Richard SAndiford  <richard@codesourcery.com>
10916
10917         PR target/21656
10918         * config/mips/elf.h (NO_IMPLICIT_EXTERN_C): Define.
10919
10920 2005-07-08  David Edelsohn  <edelsohn@gnu.org>
10921
10922         * config/rs6000/sync.md (load_locked_<mode>): Use Z for
10923         memory_operand constraint.
10924         (store_conditional_<mode>): Same.
10925         (sync_compare_and_swap<mode>): Same.
10926         (sync_lock_test_and_set<mode>): Same.
10927
10928 2005-07-08  Hans-Peter Nilsson  <hp@axis.com>
10929
10930         Rewrite PIC support to more closely model actual instructions.
10931         * config/cris/cris-protos.h (cris_gotless_symbol, cris_got_symbol)
10932         (cris_symbol): Remove prototypes for removed functions.
10933         (cris_pic_symbol_type_of, cris_valid_pic_const)
10934         (cris_expand_pic_call_address): Prototypes for new functions.
10935         * config/cris/cris/cris.c (cris_pic_sympart_only): Remove unused
10936         variable.
10937         (cris_print_operand) <case 'v', 'P'>: Remove cases for unused
10938         modifiers.
10939         <case ':'>: Add case for new punctuation character.
10940         <case 'd'>: Temporarily set flag_pic = 2 instead of incorrectly
10941         emitting (extra) PIC modifier.
10942         <case UNSPEC>: Do not assert for PLT.
10943         (cris_initial_frame_pointer_offset, cris_simple_epilogue)
10944         (cris_expand_prologue, cris_expand_epilogue): Check
10945         for pic_offset_table_rtx usage instead of taking
10946         current_function_uses_pic_offset_table as the final word.
10947         (cris_rtx_costs, cris_address_cost, cris_side_effect_mode_ok):
10948         Remove flag_pic difference.
10949         (cris_valid_pic_const, cris_pic_symbol_type_of): New functions,
10950         the moral equivalents of...
10951         (cris_symbol, cris_gotless_symbol, cris_got_symbol): Remove
10952         functions.
10953         (cris_legitimate_pic_operand): Just call cris_valid_pic_const.
10954         (cris_handle_option): Mark ARG as unused.
10955         (cris_expand_pic_call_address): New worker function for "call",
10956         "call_value".
10957         (cris_asm_output_symbol_ref, cris_asm_output_label_ref): Do not
10958         output PIC constructs here.
10959         (cris_output_addr_const_extra): Changes for emitting PIC modifiers
10960         as symbol-specific modifers, not whole or part of operands.
10961         * config/cris/cris/cris.h (EXTRA_CONSTRAINT): Remove 'U' case.
10962         (EXTRA_CONSTRAINT_S): Changed semantics: allow only CONST-wrapped
10963         constants and flag_pic.
10964         (CONSTANT_INDEX_P): Adjust for new functions.
10965         (enum cris_pic_symbol_type): New helper type.
10966         (PRINT_OPERAND_PUNCT_VALID_P): Add ':'.
10967         * config/cris/cris/cris.md (CRIS_UNSPEC_GOTREL)
10968         (CRIS_UNSPEC_GOTREAD, CRIS_UNSPEC_PLTGOTREAD): New
10969         define_constants.
10970         ("movsi"): Emit actual instructions for GOT and relative access.
10971         ("*movsi_got_load"): New pattern to set up the register holding
10972         the GOT pointer.
10973         ("*movsi_internal"): Operand 1 is not a plain general_operand.
10974         Adjust FIXME for 'S'.
10975         <output for 'S' alternative>: Sanity-check UNSPEC types for PIC.
10976         Use "movs" for -fpic cases.
10977         ("addsi3"): Add alternative for 'S'; use adds.w when possible.
10978         ("uminsi3","*expanded_call_value"): Remove 'S' alternative.
10979         ("call", "call_value"): Just call cris_expand_pic_call_address for
10980         PIC addresses.
10981         ("*expanded_call_no_gotplt", "*expanded_call_value_no_gotplt"):
10982         Remove special pattern.
10983         ("*expanded_call_side", "*expanded_call_value_side"): New
10984         patterns.
10985         (gotplt-to-plt, gotplt-to-plt-side-call)
10986         (gotplt-to-plt-side-call-value, gotplt-to-plt-side): New
10987         peephole2:s.
10988         * config/cris/cris/predicates.md
10989         ("cris_general_operand_or_gotless_symbol"): Remove unused
10990         predicate.
10991         ("cris_general_operand_or_symbol"): Adjust for new functions.
10992
10993 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
10994
10995         * config/darwin.h (TARGET_C99_FUNCTIONS): Define to 1.
10996
10997 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
10998
10999         * Makefile.in (TREE_H): Add treestruct.def.
11000         (c-decl.o): Add pointer-set.h
11001         * c-decl.c (diagnose_mismatched_decls): Don't attempt to look at
11002         visibility on regular DECL's.
11003         (merge_decls): Fix the copying of decl nodes of various types for
11004         the new structures.  Don't update RTL, section name, weak status,
11005         etc, on DECL's without RTL.
11006         (grokdeclarator): DECL_ARG_TYPE_AS_WRITTEN is gone.
11007         Don't check volatile on non-variable types.
11008         (store_parm_decls_oldstyle): Use pointer_set instead of DECL_WEAK
11009         to check whether we have seen arguments.
11010         * c-objc-common.c (c_tree_printer): Reverse order of tests so that
11011         flag is checked before field (flag is common, field is not).
11012         * dwarf2out.c (decl_ultimate_origin):  Only DECL's with
11013         TS_DECL_COMMON could have an origin.
11014         (add_location_or_const_value_attribute): Don't check section name
11015         on non-var/function decls.
11016         (dwarf2out_var_location): Reverse order of tests.
11017         * emit-rtl.c (set_reg_attrs_for_parm): DECL_CHECK is dead, replace
11018         with DECL_WRTL_CHECK.
11019         * expmed.c (make_tree): rtl is now in decl_with_rtl.
11020         * fold-const.c (fold_binary): Don't check weakness on
11021         non-var/function decls.
11022         (tree_expr_nonzero_p): Ditto.
11023         (fold_checksum_tree): Use tree_decl_extra as sizeof
11024         buffer.
11025         * ggc-page.c (extra_order_size_table): Add sizes for
11026         tree_decl_non_common, tree_parm_decl,  tree_var_decl, and
11027         tree_field_decl.
11028         * gimplify.c (gimplify_bind_expr): Only set
11029         DECL_SEEN_IN_BIND_EXPR_P on VAR_DECL.
11030         * integrate.c (copy_decl_for_inlining): Don't set RTL on decl's
11031         without RTL.
11032         * langhooks-def.h (LANG_HOOK_INIT_TS): New.
11033         * langhooks.h (init_ts). New langhook.
11034         * passes.c (rest_of_decl_compilation): Reverse order of tests.
11035         * print-tree.c (print_node): Update to only print fields that
11036         exist in the structures the passed decl has.
11037         * toplev.c (wrapup_global_declarations): Don't reset
11038         DECL_DEFER_OUTPUT on DECL's that don't contain it.
11039         * tree-browser.c (browse_tree): DECL_ARG_TYPE_AS_WRITTEN removed.
11040         * tree-inline.c (remap_decl): Ditto.
11041         * tree-outof-ssa.c (create_temp): Reverse order of tests.
11042         * tree-pretty-print.c (print_declaration): Don't print
11043         DECL_REGISTER on things that don't contain it.
11044         * tree-vrp.c (expr_computes_nonzero): Don't check weakness on
11045         non-var/function decls.
11046         * tree.c (tree_contains_struct): New structure.
11047         (init_priority_for_decl): New hashtable.
11048         (tree_int_map): New structure.
11049         (tree_int_map_eq): New function.
11050         (tree_int_map_marked_p): Ditto.
11051         (tree_int_map_hash): Ditto.
11052         (tree_map): Move to tree.h.
11053         (tree_map_eq): Externalize.
11054         (tree_map_hash): Ditto.
11055         (tree_map_marked_p): Ditto.
11056         (init_ttree): Set up tree_contains_struct and call langhook.
11057         (decl_assembler_name): Use DECL_NON_COMMON_CHECK..
11058         (tree_code_size): Update for new structures.
11059         (tree_node_structure): Update for new structures.
11060         (make_node_stat): Don't try to set DECL_IN_SYSTEM_HEADER on decls
11061         without the field.
11062         (copy_node_stat):  Copy init priority.
11063         (build_decl_stat): Ditto for visibility.
11064         (ts_enum_names): New.
11065         (tree_contains_struct_check_failed): New function.
11066         (decl_init_priority_lookup): Ditto.
11067         (decl_init_priority_insert): Ditto.
11068         * treestruct.def: New file.
11069         * tree.h (CODE_CONTAINS_STRUCT): New macro.
11070         (CONTAINS_STRUCT_CHECK): Ditto.
11071         (tree_contains_struct_check_failed): New prototype.
11072         (DECL_CHECK): Removed.
11073         (DECL_MINIMAL_CHECK): New.
11074         (DECL_COMMON_CHECK): Ditto.
11075         (DECL_WRTL_CHECK): Ditto.
11076         (DECL_NON_COMMON_CHECK): Ditto.
11077         (DECL_WITH_VIS_CHECK): Ditto.
11078         (VAR_OR_FUNCTION_DECL_P): Ditto
11079         (struct tree_decl_minimal): New structure.
11080         (struct tree_decl_common): Ditto.
11081         (struct tree_decl_with_rtl): Ditto.
11082         (struct tree_decl_with_vis): Ditto.
11083         (struct tree_decl_non_common): Ditto.
11084         (struct tree_field_decl): Ditto.
11085         (struct tree_parm_decl): Ditto.
11086         (struct tree_var_decl): Ditto.
11087         (struct tree_function_decl): Ditto.
11088         (struct tree_const_decl): Ditto.
11089         (struct tree_result_decl): Ditto.
11090         (union tree_node): Add new structures.
11091         * var-tracking.c (track_expr_p): Reverse order of tests.
11092
11093         * doc/c-tree.texi: Add documentation on DECL node internal structure.
11094
11095 2005-07-08  Kazu Hirata  <kazu@codesourcery.com>
11096
11097         * cfgexpand.c (tree_expand_cfg): Don't use FINALIZE_PIC.
11098         * system.h: Poison FINALIZE_PIC.
11099         * doc/tm.texi (FINALIZE_PIC): Remove.
11100
11101 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
11102
11103         PR tree-opt/22329
11104         * tree-ssa-propagate.c (fold_predicate_in): Convert the value
11105         to the correct type if we have a MODIFY_EXPR.
11106
11107 2005-07-08  Kazu Hirata  <kazu@codesourcery.com>
11108
11109         PR tree-optimization/22360
11110         * tree.c (upper_bound_in_type): Fix calculations for casting
11111         to a non-wider signed type and casting a signed value to a
11112         wider unsigned type.
11113         (lower_bound_in_type): Fix calculations for casting to a
11114         non-wider signed type.
11115
11116         PR tree-optimization/20139
11117         * tree-cfg.c (remove_bb): Check in_ssa_p before calling
11118         release_defs.
11119         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Call
11120         fold_cond_expr_cond.
11121         * tree-ssanames.c (release_defs): Assert in_ssa_p.
11122         * tree.c (upper_bound_in_type, lower_bound_in_type): Rewrite.
11123
11124 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
11125
11126         PR tree-opt/22356
11127         * tree-complex.c (expand_complex_libcall): Produce
11128         REALPART_EXPR/IMAGPART_EXPR with the correct type.
11129
11130 2005-07-08  Kenneth Zadeck <zadeck@naturalbridge.com>
11131
11132         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
11133         bitmap_and_compl_into, bitmap_xor, bitmap_xor_into): Removed "a !=
11134         b" assert and inserted fastpath code for this case.
11135         (bitmap_ior): Removed "a != b" assert.
11136
11137 2005-07-08  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
11138
11139         * config/m32r/linux.h (STARTFILE_SPEC): Support PIE.
11140         (ENDFILE_SPEC): Likewise.
11141         * config/m32r/m32r.h (ASM_SPEC): Likewise.
11142
11143         * config/m32r/m32r.c (m32r_output_function_epilogue): Care for
11144         a large stack frame at epilogue.
11145
11146 2005-07-08  David Billinghurst  <David.Billinghurst@riotinto.com>
11147
11148         * final.c: Include sdbout.h when required.
11149
11150 2005-07-07  Geoffrey Keating  <geoffk@apple.com>
11151
11152         * config.gcc (*-*-darwin*): Only one target-specific header file
11153         for generic darwin.
11154         (powerpc-*-darwin*): Add version-specific header files.
11155         * configure.in (gcc_AC_CHECK_DECLS): Add strverscmp.
11156         * config.in: Regenerate.
11157         * configure: Regenerate.
11158         * gcc.c: Include xregex.h.
11159         (version_compare_spec_function): New.
11160         (spec_function): Add version-compare.
11161         (replace_outfile_spec_function): Reformat comment.
11162         (compare_version_strings): New.
11163         * config/darwin-c.c (version_as_macro): New.
11164         (builtin_define): New.
11165         (darwin_cpp_builtins): New.
11166         * config/darwin-protos.h (darwin_cpp_builtins): New.
11167         * config/darwin.h (CPP_SPEC): Don't define APPLE_CC here.
11168         (LIB_SPEC): Make unconditional, update comment.
11169         (TARGET_C99_FUNCTIONS): Define.
11170         * config/darwin.opt: Sort.
11171         (mmacosx-version-min=): New.
11172         * config/darwin7.h: Delete.
11173         * config/darwin8.h: Delete.
11174         * config/i386/darwin.h (): Call darwin_cpp_builtins.
11175         * config/rs6000/darwin.h (): Call darwin_cpp_builtins.
11176         (TARGET_C99_FUNCTIONS): Define.
11177         * config/rs6000/darwin7.h: New.
11178         * config/rs6000/darwin8.h: New.
11179         * doc/invoke.texi (Darwin Options): Add -mmacosx-version-min=
11180         (-mmacosx-version-min): Document.
11181
11182 2005-07-07  Ian Lance Taylor  <ian@airs.com>
11183
11184         * config/mips/mips.md (abs<mode>2) [GPR]: Remove.
11185
11186 2005-07-07  John David Anglin  <dave.anglin@nrc-crc.gc.ca>
11187
11188         PR middle-end/22239
11189         * loop.c (loop_givs_rescan): Check that v->new_reg is a REG.
11190
11191 2005-07-07  Khem Raj  <kraj@mvista.com>
11192
11193         * config/arm/arm.c (thumb_output_function_prologue): Calculate offset
11194         in bytes, not words.
11195
11196 2005-07-07  Paul Brook  <paul@codesourcery.com>
11197
11198         * config/arm/arm.c (arm_pad_arg_upward): Compare return value of
11199         DEFAULT_FUNCTION_ARG_PADDING to upward.
11200
11201 2005-07-07  Richard Henderson  <rth@redhat.com>
11202
11203         * function.c (locate_and_pad_parm): Record parameter alignment in
11204         stack_alignment_needed.
11205
11206 2005-07-07  David Edelsohn  <edelsohn@gnu.org>
11207
11208         * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_SYNC_OP,
11209         UNSPEC_SYNC_SWAP, UNSPEC_LWSYNC, UNSPEC_ISYNC): Delete.
11210         (UNSPECV_LL, UNSPECV_SC, UNSPECV_ATOMIC, UNSPECV_SYNC,
11211         UNSPECV_SYNC_OP, UNSPECV_CMPXCHG, UNSPECV_LWSYNC, UNSPECV_ISYNC): New.
11212         (define_attr "type"): Add isync, sync, load_l, store_c.
11213         * config/rs6000/sync.md (memory_barrier): Change to define_expand.
11214         Create scratch volatile MEM.
11215         (sync_internal): New.  POWER mnemonic is dcs, not ics.  Attribute
11216         sync.
11217         (load_locked_<mode>): New.
11218         (store_conditional_<mode>): New.
11219         (sync_compare_and_swap<mode>): Replace with splitter.
11220         (sync_lock_test_and_set<mode>): Replace with splitter.
11221         (sync_<fetchop><mode>): Change to unspec_volatile UNSPECV_SYNC_OP
11222         and UNSPECV_ISYNC.
11223         (isync): Change to unspec_volatile UNSPECV_ISYNC.  POWER mnemonic
11224         is ics.  Attribute isync.
11225         (lwsync): Change to unspec_volatile UNSPECV_LWSYNC.  Attribute
11226         lwsync.
11227         * config/rs6000/rs6000.c (rs6000_emit_sync): Use UNSPEC_VOLATILE
11228         and UNSPECV_SYNC_OP.
11229         (emit_unlikely_jump): New.
11230         (emit_load_locked): New.
11231         (emit_store_conditional): New.
11232         (rs6000_split_compare_and_swap): New.
11233         (rs6000_split_lock_test_and_set): New.
11234         (is_dispatch_slot_restricted): Return 4 for TYPE_LOAD_L,
11235         TYPE_STORE_C, TYPE_ISYNC, TYPE_SYNC.
11236         * config/rs6000/rs6000-protos.h (rs6000_split_compare_and_swap,
11237         rs6000_split_lock_test_and_set): Declare.
11238         * config/rs6000/{40x.md,440.md,603.md,6xx.md,7450.md,7xx.md,8540.md,
11239         mpc.md,power4.md,power5.md,rios1.md,rios2.md,rs64.md): Add load_l,
11240         store_c, isync, sync.
11241
11242 2005-07-07  Kelley Cook  <kcook@gcc.gnu.org>
11243
11244         * Makefile.in (echo_quoted_to_gtyp): New template for outputing
11245         filenames to gtyp-gen.h.
11246         (s-typ-gen): Use it in place of for loops.
11247
11248 2005-07-07  J"orn Rennecke <joern.rennecke@st.com>
11249
11250         * hooks.c (hook_bool_rtx_int_false): New function.
11251         * hooks.h (hook_bool_rtx_int_false): Declare.
11252         * target-def.h (TARGET_COMMUTATIVE_P): Define.
11253         (TARGET_INITIALIZER): Add TARGET_COMMUTATIVE_P.
11254         * target.h (struct gcc_target): Add commutative_p member.
11255         * targhooks.c (hook_bool_rtx_commutative_p): New function.
11256         * targhooks.h (hook_bool_rtx_commutative_p): Declare.
11257         * pa.c (TARGET_COMMUTATIVE_P): Redefine.
11258         (pa_commutative_p): New function.
11259         * jump.c (target.h): Include.
11260         (rtx_renumbered_equal_p): Use targetm.commutative_p.
11261         * doc/tm.texi: Document TARGET_COMMUTATIVE_P.
11262
11263 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
11264
11265         * config/s390/s390-protos.h (s390_expand_clrmem): Delete.
11266         (s390_expand_setmem): New.
11267         * config/s390/s390.c: Likewise.
11268         (print_shift_count_operand): Truncate to 12 bits instead of 6.
11269         Adapt comments.
11270         * config/s390/s390.md: ("setmem<mode>"): Accept character as
11271         general_operand.  Call new function "s390_expand_setmem".
11272         ("clrmem_long", "*clrmem_long"): Rewrite to ...
11273         ("setmem_long", "*setmem_long"): ... this.
11274
11275 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
11276
11277         * config/s390/s390.c: (optimization_options): Enable
11278         TARGET_MVCLE at -Os.
11279         * doc/invoke.texi: Document changes in default behaviour.
11280         * config/s390/s390.opt: ("mvcle"): Fix typo: is "mmvcle".
11281
11282 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
11283
11284         * expr.c: (set_storage_via_setmem): Convert opchar to mode
11285         defined by back-end.
11286
11287 2005-07-07  Jakub Jelinek  <jakub@redhat.com>
11288
11289         * config/sparc/sparc.md (stack_protect_testsi): Put clobbers after
11290         all sets in the pattern.
11291         * config/rs6000/rs6000.md (stack_protect_testsi,
11292         stack_protect_testdi): Likewise.
11293
11294 2005-07-06  Jeff Law  <law@redhat.com>
11295
11296         * tree-vrp.c (simplify_using_ranges): Kill.
11297         (vrp_finalize): Remove call to simplify_using_ranges.
11298         (simplify_stmt_using_ranges): New function extracted from
11299         simplify_using_ranges.
11300         (simplify_div_or_mod_using_ranges): Likewise.
11301         (simplify_abs_using_ranges): Likewise.
11302         (simplify_cond_using_ranges): New function.
11303         * tree-flow.h (simplify_stmt_using_ranges): Prototype.
11304         * tree-ssa-propagate.c (substitute_and_fold): Call
11305         simplify_stmt_using_ranges if we have range information.
11306
11307 2005-07-06  James E. Wilson  <wilson@specifixinc.com>
11308
11309         * config/ia64/ia64.c (ia64_reorg): Check optimize before
11310         ia64_flag_schedule_isns2.
11311
11312         * config/ia64/ia64.c (ia64_expand_movxf_movrf): Don't word swap when
11313         reading/writing general registers.
11314         (ia64_function_arg): Revert 2005-06-18 change.
11315
11316 2005-07-06  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
11317
11318         * pa.c (legitimize_pic_address): Use gcc_assert instead of abort.
11319         (legitimize_tls_address): Use gcc_unreachable instead of abort.
11320
11321 2005-07-06  Kaz Kojima  <kkojima@gcc.gnu.org>
11322
11323         * function.c (expand_function_end): Revert part of 2005-06-27
11324         patch.  Do sjlj_emit_function_exit_after after return_label.
11325
11326 2005-07-06  Kazu Hirata  <kazu@codesourcery.com>
11327
11328         * doc/install.texi (--disable-libssp): New.
11329
11330 2005-07-06  Fariborz Jahanian <fjahanian@apple.com>
11331
11332         * doc/invoke.texi: Update -fforce-mem documentation.
11333         * dojump.c (compare_from_rtx,do_compare_rtx_and_jump): Remove
11334         code for -fforce-mem.
11335         * expmed.c: (store_bit_field,store_fixed_bit_field,
11336         extract_bit_field): Ditto.
11337         * expr.c: (convert_move): Ditto.
11338         * optabs.c: (expand_binop,expand_twoval_unop,expand_twoval_binop,
11339         expand_unop,emit_unop_insn,prepare_cmp_insn,emit_conditional_move,
11340         emit_conditional_add,expand_float,expand_fix): Ditto.
11341         * opts.c: (decode_options): Remove setting of flag_force_mem flag.
11342         (common_handle_option): Issue warning when -fforce-mem specified.
11343
11344 2005-07-06  Paul Brook  <paul@codesourcery.com>
11345
11346         * aclocal.m4: Work around a bug in AC_PATH_PROGS when its last
11347         argument is empty.
11348         * configure: Regenerate.
11349
11350 2005-07-06  J"orn Rennecke <joern.rennecke@st.com>
11351
11352         * sh.c (final_prescan_insn): Undo bogus change from 2005-05-09.
11353
11354 2005-07-06  Daniel Berlin  <dberlin@dberlin.org>
11355
11356         Fix PR tree-optimization/22319
11357         Fix PR tree-optimization/22140
11358         Fix PR tree-optimization/22310
11359
11360         * tree-ssa-structalias.c (do_structure_copy): Give up earlier on
11361         variable sized types.
11362         Use correct type for intermediate structure on *a = *b structure
11363         copies.
11364
11365 2005-07-06  Jakub Jelinek  <jakub@redhat.com>
11366
11367         * config/rs6000/rs6000.h (RS6000_VARARGS_AREA, RS6000_VARARGS_SIZE):
11368         Remove.
11369         (STARTING_FRAME_OFFSET): Don't add RS6000_VARARGS_AREA.
11370         (machine_function): Move typedef to...
11371         * config/rs6000/rs6000.c (machine_function): ... here.  Add
11372         varargs_save_offset field.
11373         (rs6000_stack_t): Remove varargs_size field.
11374         (setup_incoming_varargs): Allocate varargs save area using
11375         assign_stack_local, try to make it as small as possible.
11376         Save offset from virtual_stack_vars_rtx to the save area
11377         in cfun->machine->varargs_save_offset.  Use UNITS_PER_FP_WORD
11378         instead of magic 8 when fp word byte size is used.
11379         (rs6000_va_start): Use cfun->machine->varargs_save_offset
11380         instead of -RS6000_VARARGS_SIZE.
11381         (rs6000_stack_info, debug_stack_info,
11382         rs6000_initial_elimination_offset): Remove all traces of
11383         varargs_size.
11384         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Remove.
11385         * config/rs6000/darwin.h (STARTING_FRAME_OFFSET): Don't add
11386         RS6000_VARARGS_AREA.
11387
11388 2005-07-06  Zdenek Dvorak  <dvorakz@suse.cz>
11389
11390         PR tree-optimization/21963
11391         * tree-ssa-loop-ivopts.c (get_computation_aff): Use
11392         constant_multiple_of in the same way get_computation_cost_at does.
11393
11394 2005-07-06  Jakub Jelinek  <jakub@redhat.com>
11395
11396         * config/sparc/sparc.h (sparc_compare_emitted): New extern.
11397         * config/sparc/sparc.c (sparc_compare_emitted): New variable.
11398         (gen_compare_reg): If sparc_compare_emitted is set, clear it
11399         and return its previous value.
11400         (emit_v9_brxx_insn): Assert sparc_compare_emitted is NULL.
11401         * config/sparc/sparc.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New
11402         constants.
11403         (stack_protect_set, stack_protect_test): New expanders.
11404         (stack_protect_setsi, stack_protect_setdi, stack_protect_testsi,
11405         stack_protect_testdi): New insns.
11406         * config/sparc/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
11407         * config/sparc/linux64.h (TARGET_THREAD_SSP_OFFSET): Define.
11408
11409 2005-07-06  Jeff Law  <law@redhat.com>
11410
11411         * tree-ssa-dce.c (cfg_altered): New global.
11412         (tree_dce_init): Initialize cfg_altered.
11413         (remove_dead_stmt): If we remove an edge in the CFG, then set
11414         CFG_ALTERED.
11415         (perform_tree_ssa_dce): If we altered the CFG, then invalidate
11416         the dominators.
11417
11418 2005-07-06  Kazu Hirata  <kazu@codesourcery.com>
11419
11420         * Makefile.in (stamp-collect-ld): Use
11421         $(ORIGINAL_LD_FOR_TARGET) instead of $<.  Don't remove
11422         ./collect-ld if it already exists.
11423         (stamp-nm): Use $(ORIGINAL_NM_FOR_TARGET) instead of $<.
11424         Don't remove ./nm if it already exists.
11425
11426 2005-07-05  Devang Patel  <dpatel@apple.com>
11427
11428         * tree-vectorizer.h (struct _loop_vec_info): Remove loop_line_number.
11429         (LOOP_VINFO_LOC, LOOP_LOC): Remove.
11430         * tree-vectorizer.c (vect_loop_location): New.
11431         (vect_print_dump_info): Use vect_loop_location.
11432         (new_loop_vec_info): Do not set LOOP_VINFO_LOC.
11433         (vectorize_loops): Set vect_loop_location.
11434         * tree-vect-analyze.c (vect_analyze_offset_expr,
11435         vect_determin_vectorization_factor, vect_analyze_operations,
11436         vect_analyze_scalar_cycles, vect_analyze_data_ref_dependence,
11437         vect_analyze_data_ref_dependences, vect_compute_data_ref_alignment,
11438         vect_analyze_data_refs_alignment, vect_analyze_data_ref_access,
11439         vect_analyze_data_ref_accesses, vect_analyze_pointer_ref_access,
11440         vect_object_analysis, vect_analyze_data_refs, vect_mark_relevant,
11441         vect_stmt_relevant_p, vect_mark_stmts_to_be_vectorized,
11442         vect_can_advance_ivs_p, vect_get_loop_niters, vect_analyze_loop_form,
11443         vect_analyze_loop): Adjust vect_print_dump_info API.
11444         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
11445         vect_create_data_ref_ptr, vect_init_vector, vect_get_vec_def_for_operand,
11446         vect_finish_stmt_generation, vectorizable_assignment,
11447         vectorizable_operation, vectorizable_store, vectorizable_load,
11448         vectorizable_live_operation, vectorizable_condition, vect_transform_stmt,
11449         vect_update_ivs_after_vectorizer, vect_do_peeling_for_loop_bound,
11450         vect_gen_ninters_for_prolog_loop, vect_do_peeling_for_alignment,
11451         vect_transform_loop): Same.
11452         * tree-vectorizer.c (get_vectype_for_scalar_type, vect_is_simple_use,
11453         vect_is_simple_reduction, vect_is_simple_iv_evolution, vectorize_loops):
11454         Same.
11455
11456 2005-07-05  Randolph Chung  <tausq@debian.org>
11457
11458         * configure.ac (hppa*-*-linux*: Check for a TLS capable gas.
11459         * configure: Regenerate.
11460         * config/pa/pa-protos.h (tls_symbolic_operand): Declare.
11461         (pa_tls_referenced_p): Declare.
11462         * config/pa/pa.c (legitimize_pic_address): Reject TLS operands.
11463         (gen_tls_tga, gen_tls_get_addr, hppa_tls_call): New.
11464         (legitimize_tls_address): New.
11465         (hppa_legitimize_address): Handle TLS addresses.
11466         (pa_tls_symbol_ref_1, pa_tls_referenced_p): New.
11467         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
11468         (emit_move_sequence): Handle TLS addresses.
11469         (pa_encode_section_info): Call default handler to handle common
11470         sections.
11471         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): New.
11472         (CONSTANT_ADDRESS_P): Reject TLS operands.
11473         (TARGET_HAVE_TLS) [HAVE_AS_TLS]: Define.
11474         * config/pa/pa.md (UNSPEC_TP, UNSPEC_TLSGD, UNSPEC_TLSLDM)
11475         (UNSPEC_TLSLDO, UNSPEC_TLSLDBASE, UNSPEC_TLSIE)
11476         (UNSPEC_TLSLE): Define new constants.
11477         (tgd_load, tld_load, tld_offset_load, tp_load, tie_load, tle_load): New.
11478         * config/pa/predicates.md (symbolic_operand): Reject TLS operands.
11479         (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand)
11480         (tie_symbolic_operand, tle_symbolic_operand): New
11481
11482 2005-07-06  Kelley Cook  <kcook@gcc.gnu.org>
11483
11484         * aclocal.m4: Update macros for autoconf 2.59 style.
11485         * configure.ac: Likewise.
11486
11487 2005-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11488
11489         * pa.c (function_value): Handle small aggregates on 32-bit targets.
11490         (function_arg): Pass small aggregates in general registers on 32-bit
11491         targets.
11492         * som.h (MEMBER_TYPE_FORCES_BLK): Delete define.
11493
11494 2005-07-05  Andrew Pinski  <pinskia@physics.uc.edu>
11495
11496         * Makefile.in (final.o): Fix dependencies.
11497
11498 2005-07-05  Joseph S. Myers  <joseph@codesourcery.com>
11499
11500         PR c/22013
11501         PR c/22098
11502         * langhooks.h (struct lang_hooks): Add expr_to_decl.
11503         * langhooks.c (lhd_expr_to_decl): New.
11504         * langhooks-def.h (lhd_expr_to_decl, LANG_HOOKS_EXPR_TO_DECL):
11505         New.
11506         (LANG_HOOKS_INITIALIZER): Update.
11507         * tree.c (recompute_tree_invarant_for_addr_expr): Call
11508         expr_to_decl langhook.
11509         * c-tree.h (c_expr_to_decl): Declare.
11510         * c-typeck.c (c_expr_to_decl): New.
11511         (build_unary_op): Do not handle ADDR_EXPR of COMPOUND_LITERAL_EXPR
11512         specially.
11513         * c-objc-common.h (LANG_HOOKS_EXPR_TO_DECL): Define.
11514
11515 2005-07-05  Joseph S. Myers  <joseph@codesourcery.com>
11516
11517         PR c/22308
11518         * c-decl.c (finish_struct): Also copy C_TYPE_FIELDS_READONLY,
11519         C_TYPE_FIELDS_VOLATILE and C_TYPE_VARIABLE_SIZE to type variants.
11520
11521 2005-07-05  Paolo Bonzini  <bonzini@gnu.org>
11522
11523         * Makefile.in: Adjust dependencies.
11524         * tree-pass.h: Add new passes and passes formerly in tree-optimize.c.
11525         * basic-block.h (duplicate_computed_gotos): Remove, it is now static.
11526         * alias.c (rest_of_handle_cfg, pass_cfg): New.
11527         * bb-reorder.c (duplicate_computed_gotos): Make it static.
11528         * cfgexpand.c (tree_expand_cfg): Add code formerly at the beginning of
11529         rest_of_compilation.
11530
11531         * bb-reorder.c (gate_duplicate_computed_gotos,
11532         pass_duplicate_computed_gotos, gate_handle_reorder_blocks,
11533         rest_of_handle_reorder_blocks, pass_reorder_blocks,
11534         gate_handle_partition_blocks, rest_of_handle_partition_blocks,
11535         pass_partition_blocks): New.
11536         * bt-load.c (gate_handle_branch_target_load_optimize,
11537         rest_of_handle_branch_target_load_optimize,
11538         pass_branch_target_load_optimize): New.
11539         * cfgcleanup.c (rest_of_handle_jump, pass_jump, rest_of_handle_jump2,
11540         pass_jump2): New.
11541         * cfglayout.c (pass_insn_locators_initialize): New.
11542         * cfgrtl.c (pass_free_cfg): New.
11543         * combine.c (gate_handle_combine, rest_of_handle_combine,
11544         pass_combine): New.
11545         * cse.c (gate_handle_cse, rest_of_handle_cse, pass_cse,
11546         gate_handle_cse2, rest_of_handle_cse2, pass_cse2): New.
11547         * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes): New.
11548         * except.c (pass_set_nothrow_function_flags,
11549         pass_convert_to_eh_region_ranges, gate_handle_eh, rest_of_handle_eh,
11550         pass_rtl_eh): New.
11551         * final.c (pass_compute_alignments, rest_of_handle_final, pass_final,
11552         rest_of_handle_shorten_branches, pass_shorten_branches,
11553         rest_of_clean_state, pass_clean_state): New.
11554         * flow.c (pass_recompute_reg_usage, gate_remove_death_notes,
11555         rest_of_handle_remove_death_notes, pass_remove_death_notes,
11556         rest_of_handle_life, pass_life, rest_of_handle_flow2,
11557         pass_flow2): New.
11558         * function.c (pass_instantiate_virtual_regs, pass_init_function,
11559         rest_of_handle_check_leaf_regs, pass_leaf_regs): New.
11560         * gcse.c (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
11561         pass_jump_bypass, gate_handle_gcse, rest_of_handle_gcse,
11562         pass_gcse): New.
11563         * global.c (rest_of_handle_global_alloc, pass_global_alloc): New.
11564         * ifcvt.c (gate_handle_if_conversion, rest_of_handle_if_conversion,
11565         pass_rtl_ifcvt, gate_handle_if_after_combine,
11566         rest_of_handle_if_after_combine, pass_if_after_combine,
11567         gate_handle_if_after_reload, rest_of_handle_if_after_reload,
11568         pass_if_after_reload): New.
11569         * integrate.c (pass_initial_value_sets): New.
11570         * jump.c (pass_cleanup_barriers, purge_line_number_notes,
11571         pass_purge_lineno_notes): New.
11572         * mode-switching.c (rest_of_handle_mode_switching,
11573         pass_mode_switching): New.
11574         * local-alloc.c (rest_of_handle_local_alloc, pass_local_alloc): New.
11575         * loop-init.c (gate_handle_loop2, rest_of_handle_loop2,
11576         pass_loop2): New.
11577         * loop.c (gate_handle_loop_optimize, rest_of_handle_loop_optimize,
11578         pass_loop_optimize): New.
11579         * modulo-sched.c (gate_handle_sms, rest_of_handle_sms,
11580         pass_sms): New.
11581         * postreload-gcse.c (gate_handle_gcse2, rest_of_handle_gcse2,
11582         pass_gcse2): New.
11583         * postreload.c (gate_handle_postreload, rest_of_handle_postreload,
11584         pass_postreload_cse): New.
11585         * profile.c (gate_handle_profiling, pass_profiling,
11586         rest_of_handle_branch_prob, pass_branch_prob): New.
11587         * recog.c (pass pass_split_for_shorten_branches, gate_do_final_split,
11588         pass_split_before_regstack, gate_handle_split_before_regstack,
11589         gate_handle_peephole2, rest_of_handle_peephole2, pass_peephole2,
11590         rest_of_handle_split_all_insns, pass_split_all_insns): New.
11591         * reg-stack.c (gate_handle_stack_regs, rest_of_handle_stack_regs,
11592         pass_stack_regs): New.
11593         * regmove.c (gate_handle_regmove, rest_of_handle_regmove, pass_regmove,
11594         gate_handle_stack_adjustments, rest_of_handle_stack_adjustments,
11595         pass_stack_adjustments): New.
11596         * regrename.c (gate_handle_regrename, rest_of_handle_regrename,
11597         pass_regrename): New.
11598         * reorg.c (gate_handle_delay_slots, rest_of_handle_delay_slots,
11599         pass_delay_slots, gate_handle_machine_reorg,
11600         rest_of_handle_machine_reorg, pass_machine_reorg): New.
11601         * rtl.h (extern void purge_line_number_notes): New.
11602         * sched-rgn.c (gate_handle_sched, rest_of_handle_sched,
11603         gate_handle_sched2, rest_of_handle_sched2, pass_sched,
11604         pass_sched2): New.
11605         * tracer.c (gate_handle_tracer, rest_of_handle_tracer,
11606         pass_tracer): New.
11607         * value-prof.c (gate_handle_value_profile_transformations,
11608         rest_of_handle_value_profile_transformations,
11609         pass_value_profile_transformations): New.
11610         * var-tracking.c (gate_handle_var_tracking,
11611         pass_variable_tracking): New.
11612         * web.c (gate_handle_web, rest_of_handle_web, pass_web): New.
11613
11614         * passes.c (open_dump_file, close_dump_file, rest_of_handle_final,
11615         rest_of_handle_delay_slots, rest_of_handle_stack_regs,
11616         rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
11617         rest_of_handle_old_regalloc, rest_of_handle_regrename,
11618         rest_of_handle_reorder_blocks, rest_of_handle_partition_blocks,
11619         rest_of_handle_sms, rest_of_handle_sched, rest_of_handle_sched2,
11620         rest_of_handle_gcse2, rest_of_handle_regmove,
11621         rest_of_handle_tracer, rest_of_handle_if_conversion,
11622         rest_of_handle_if_after_combine, rest_of_handle_if_after_reload,
11623         rest_of_handle_web, rest_of_handle_branch_prob,
11624         rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
11625         rest_of_handle_jump_bypass, rest_of_handle_combine,
11626         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
11627         rest_of_handle_gcse, rest_of_handle_loop_optimize,
11628         rest_of_handle_loop2, rest_of_handle_branch_target_load_optimize,
11629         rest_of_handle_mode_switching, rest_of_handle_jump,
11630         rest_of_handle_eh, rest_of_handle_stack_adjustments,
11631         rest_of_handle_flow2, rest_of_handle_jump2,
11632         rest_of_handle_peephole2, rest_of_handle_postreload,
11633         rest_of_handle_shorten_branches, rest_of_clean_state,
11634         rest_of_compilation): Remove.
11635
11636         * cgraphunit.c (ipa_passes): Moved from tree-optimize.c.
11637         * passes.c (dump_flags, in_gimple_form, all_passes,
11638         all_ipa_passes, all_lowering_passes, register_one_dump_file,
11639         register_dump_files, next_pass_1, last_verified, execute_todo,
11640         execute_one_pass, execute_pass_list, execute_ipa_pass_list): Moved
11641         from tree-optimize.c.
11642         (init_optimization_passes): Moved from tree-optimize.c,
11643         adding the RTL optimizations.
11644         * tree-dump.h (dump_info_p, dump_flag): Moved from tree.h.
11645         * tree-optimize.c (dump_flags, in_gimple_form, all_passes,
11646         all_ipa_passes, all_lowering_passes, register_one_dump_file,
11647         register_dump_files, next_pass_1, last_verified, execute_todo,
11648         execute_one_pass, execute_pass_list, execute_ipa_pass_list,
11649         init_tree_optimization_passes, ipa_passes): Delete.
11650         * tree-pass.h (enum tree_dump_index): Moved from tree.h, removing
11651         the RTL dumps.
11652         (TDF_*, get_dump_file_name, dump_enabled_p, dump_initialized_p,
11653         dump_begin, dump_end, dump_node, dump_switch_p, dump_flag_name): Moved
11654         from tree.h.
11655         (ipa_passes): Remove.
11656         (all_passes, all_ipa_passes, all_lowering_passes): Now extern.
11657         * tree.h (enum tree_dump_index, TDF_*, get_dump_file_name,
11658         dump_enabled_p, dump_initialized_p, dump_begin, dump_end, dump_node,
11659         dump_switch_p, dump_flag_name): Moved to tree-pass.h.
11660         (dump_info_p, dump_flag): Moved to tree-dump.h.
11661
11662         * Makefile.in: Adjust dependencies for tree-pretty-print.c,
11663         cgraph.c, opts.c.
11664         * passes.c (finish_optimization_passes): Use dump_begin
11665         and dump_end, TDI_end.
11666         (gate_rest_of_compilation): New.
11667         (pass_rest_of_compilation): Use it.
11668         (gate_postreload, pass_postreload): New.
11669         * toplev.c (general_init): Rename init_tree_optimization_passes.
11670         * toplev.h (init_tree_optimization_passes): Rename to
11671         init_optimizations_passes.
11672         * tree-dump.c (dump_flag): Make static.
11673         (dump_files): Remove RTL dumps.
11674         * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
11675         pass_cleanup_cfg, pass_free_cfg_annotations,
11676         pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
11677         pass_init_datastructures, pass_fixup_cfg): Make non-static.
11678         * tree-pretty-print.c: Include tree-pass.h.
11679         * cgraph.c: Include tree-dump.h.
11680
11681 2005-07-04  Daniel Berlin  <dberlin@dberlin.org>
11682
11683         * tree-ssa-structalias.c (get_constraint_exp_from_ssa_var):
11684         Only fall back to saying it points to readonly memory if
11685         we can't do better.
11686
11687 2005-07-05  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
11688
11689         * config/m32r/m32r-protos.h: Remove m32r_finalize_pic.
11690         * config/m32r/m32r.c (m32r_compute_frame_size,
11691         m32r_expand_prologue): Take current_function_profile into
11692         account whenever we reference
11693         current_function_uses_pic_offset_table.
11694         (m32r_finalize_pic): Remove.
11695         * config/m32r/m32r.h (FINALIZE_PIC): Likewise.
11696
11697 2005-07-05  Kazu Hirata  <kazu@codesourcery.com>
11698
11699         * Makefile.in (stamp-as): Use $(ORIGINAL_AS_FOR_TARGET)
11700         instead of $<.  Don't remove ./as if it already exists.
11701
11702 2005-07-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11703
11704         PR target/21723
11705         * pa.md: Remove fcpy alternative from movhi and movqi patterns.
11706         * pa32-regs.h (HARD_REGNO_NREGS): Return two floating point registers
11707         for complex modes when generating code for PA 1.0.
11708         (VALID_FP_MODE_P): New macro.
11709         (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P.  Use non-overlapping register
11710         sets for all general and floating point modes.  Align wide floating
11711         point modes to even register boundaries to comply with architectural
11712         requirements.
11713         (CLASS_MAX_NREGS): Update to align with change to HARD_REGNO_NREGS.
11714         * pa64-regs.h (HARD_REGNO_NREGS): Update comment and formatting.
11715         (VALID_FP_MODE_P): New macro.
11716         (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P.  Use non-overlapping register
11717         sets for all general and floating point modes.  Align wide floating
11718         point modes to even register boundaries to comply with architectural
11719         requirements.
11720
11721 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
11722
11723         * tree-dump.c (dump_files): Initialize dump number for .cgraph
11724         to 0.
11725
11726 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
11727
11728         * tree-ssa-structalias.c: Don't include expr.h.
11729
11730 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
11731
11732         * tree-iterator.h (TSI_NEW_STMT, TSI_SAME_STMT): Fix
11733         comments.
11734
11735 2005-07-04  Daniel Berlin  <dberlin@dberlin.org>
11736
11737         Fix PR tree-optimization/22279
11738
11739         * tree-ssa-structalias.c (offset_overlaps_with_access): Use
11740         correct operator.
11741
11742 2005-07-04  J"orn Rennecke <joern.rennecke@st.com>
11743
11744         * sh.c (output_ieee_ccmpeq): Replace "\\;" with "\n\t".
11745
11746 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
11747
11748         * bb-reorder.c, c-pch.c, c-pragma.c, c.opt, cfghooks.c, cfgloop.c,
11749         cfgrtl.c, cgraphunit.c, config/c4x/c4x.c, config/cris/cris.c,
11750         config/frv/frv.c, config/host-darwin.c, config/iq2000/iq2000.c,
11751         config/lynx.h, config/m68k/m68k.c, config/pa/pa.c, config/sh/sh.h,
11752         config/stormy16/stormy16.c, config/v850/v850.c,
11753         config/vax/netbsd-elf.h, coverage.c, dwarf2out.c, emit-rtl.c,
11754         except.c, gcc.c, tree-cfg.c, tree-eh.c, tree-ssa.c, xcoffout.c:
11755         Avoid "." or "\n" at end of diagnostics and capital letters at
11756         start of diagnostics.
11757         * combine.c, cse.c: Don't translate dump file output.
11758         * toplev.c (print_version): Only translate output if going to
11759         stderr.
11760
11761 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
11762
11763         * c-decl.c, tree-object-size.c, tree-vectorizer.c,
11764         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Fix comment
11765         typos.
11766
11767 2005-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11768
11769         * pa.c (fix_range): Fix typo in comment.
11770
11771 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
11772
11773         * tree-vrp.c (extract_range_from_assert): Replace
11774         fold (build (...)) with fold_build2.
11775
11776 2005-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11777
11778         * c-format.c (gcc_gfc_format_type, gcc_gfc_flag_pairs,
11779         gcc_gfc_char_table, init_dynamic_gfc_info): New.
11780         (format_types_orig, handle_format_attribute): Add support for
11781         format "gcc_gfc".
11782
11783 2005-07-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11784
11785         * varasm.c (assemble_variable): Fix format specifier thinko.
11786
11787 2005-07-03  Ira Rosen  <irar@il.ibm.com>
11788
11789         PR tree-optimization/22029 (and 22135)
11790         * tree-pretty-print.c (dump_generic_node): Check that the node is not
11791         a phi node before calling dump_vops.
11792
11793 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11794
11795         * tree-dump.h (dump_string_field): Declare.
11796         * tree-dump.c: Use it instead of dump_string.
11797         (dump_string_field): Make non-static.
11798
11799 2005-07-03  Kaz Kojima  <kkojima@gcc.gnu.org>
11800
11801         * config/sh/sh.c (sh_output_mi_thunk): Initialize and clean
11802         up the minimal CFG stuff always when optimize > 0.  Call
11803         split_all_insns_noflow in PIC case if needed.
11804
11805 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11806             Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
11807
11808         PR c++/18279
11809         * c-decl.c (c_write_global_declarations): Dump contents of
11810         external scope to.
11811         * tree-dump.c (dequeue_and_dump): Dump abstract origin of a decl.
11812         <TRY_FINALLY_EXPR>, <RETURN_EXPR>, <CASE_LABEL_EXPR>, <LABEL_EXPR>,
11813         <GOTO_EXPR>, <SWITCH_EXPR>: Add.
11814         (dump_enabled_p): Return TRUE if PHASE is TDI_all and any dump
11815         is enabled.
11816
11817 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
11818
11819         * c-common.h (GCC_DIAG_STYLE): Define.
11820         * c-tree.h (GCC_DIAG_STYLE): Do not define.  Change minimum GCC
11821         version for format checking to 4.1.
11822         * c-format.c: Include toplev.h after c-common.h.
11823         (enum format_type): Add gcc_tdiag_format_type.
11824         (gcc_tdiag_length_specs, gcc_tdiag_flag_pairs,
11825         gcc_tdiag_flag_specs, gcc_tdiag_char_table): New.
11826         (format_types_orig): Add gcc_tdiag.
11827         (init_dynamic_diag_info): Support gcc_tdiag formats.
11828         (handle_format_attribute): Likewise.
11829         * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Remove.
11830         (GCC_DIAG_STYLE): Default to __gcc_tdiag__.  Change minimum GCC
11831         version for format checking to 4.1.
11832         (warning0, warning, error, pedwarn, sorry): Use
11833         ATTRIBUTE_GCC_DIAG.
11834         * config/rs6000/rs6000.c (altivec_expand_builtin), varasm.c
11835         (finish_aliases_1): Do not use %qE.
11836         * config/arm/arm.c, config/i386/i386.c, config/mmix/mmix.c,
11837         config/pdp11/pdp11.c, stor-layout.c, tree-eh.c, tree-ssa.c:
11838         Correct format bugs.
11839         * config/v850/v850-protos.h (v850_output_aligned_bss): Change size
11840         parameter to unsigned HOST_WIDE_INT.
11841         * config/v850/v850.c (v850_output_aligned_bss): Likewise.
11842
11843 2005-07-02  David Edelsohn  <edelsohn@gnu.org>
11844
11845         PR middle-end/21742
11846         * expr.c (write_complex_part): Use adjust_address for MEM.
11847         (read_complex_part): Same.
11848
11849 2005-07-02  Daniel Berlin  <dberlin@dberlin.org>
11850
11851         Fix PR tree-optimization/22280
11852
11853         * tree-sra.c (generate_element_init): Remove useless loop.
11854
11855 2005-07-02  Richard Henderson  <rth@redhat.com>
11856
11857         * config/alpha/alpha.c (alpha_legitimize_address): Check for
11858         TLS_MODEL_NONE.
11859         (alpha_stdarg_optimize_hook): Use DECL_UID with va_list_vars.
11860
11861 2005-07-02  Andrew Pinski  <pinskia@physics.uc.edu>
11862
11863         PR middle-end/14490
11864         * fold-const.c (fold_binary): Handle the return value of
11865         fold_to_nonsharp_ineq_using_bound if we get back the same operand back.
11866         Implement "X +- C1 CMP C2" folding to "X CMP C2 -+ C1".
11867
11868 2005-07-02  Jeff Law  <law@redhat.com>
11869
11870         * tree-ssa-dom.c (find_equivalent_equality_comparison): Do not
11871         a eliminate type conversion which feeds an equality comparison
11872         if the original type or either operand in the comparison is a
11873         function pointer.
11874
11875 2005-07-02  Joseph S. Myers  <joseph@codesourcery.com>
11876
11877         * c.opt, common.opt, config/bfin/bfin.opt, config/pa/pa.opt,
11878         config/rs6000/rs6000.opt, params.def: Remove "." from end of help
11879         texts.
11880         * config/avr/avr.c: Do not use '`' as left quote.
11881         * config/rs6000/rs6000.c, config/s390/s390.c, opts.c, tree.c:
11882         Remove "." from end of diagnostics.  Make diagnostics start with
11883         lowercase letter.
11884
11885 2005-07-02  Zack Weinberg  <zack@codesourcery.com>
11886             Joseph S. Myers  <joseph@codesourcery.com>
11887
11888         * toplev.c (default_tree_printer): Handle setting location with
11889         '+' flag.
11890         * c-objc.common.c (c_tree_printer): Likewise.
11891         * c-format.c (gcc_diag_flag_specs): Add '+'.
11892         (gcc_cdiag_char_table): Allow '+' flag for tree formats.
11893         (format_types_orig): Allow '+' flag for gcc_diag and gcc_cdiag
11894         formats.
11895         * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c,
11896         config/arm/pe.c, config/i386/winnt.c, config/ia64/ia64.c,
11897         config/mcore/mcore.c, config/sh/symbian.c, config/sol2.c,
11898         config/v850/v850.c, function.c, stor-layout.c, toplev.c,
11899         tree-inline.c, tree-optimize.c, tree.c, varasm.c: Use '+' flag
11900         instead of %J or %H.  Use 'q' flag for quoting.  Avoid '.' at end
11901         of diagnostics.  Use %q+D not %s for a decl.  Do not pass excess
11902         format arguments where %J is used without %D.
11903
11904 2005-07-02  Jakub Jelinek  <jakub@redhat.com>
11905
11906         * gcc.c (LINK_SSP_SPEC): Define.
11907         (link_ssp_spec): New variable.
11908         (LINK_COMMAND_SPEC): Add %(link_ssp).
11909         (static_specs): Add link_ssp_spec.
11910         * configure.ac (TARGET_LIBC_PROVIDES_SSP): New test.
11911         * configure: Rebuilt.
11912         * config.in: Rebuilt.
11913
11914         * config/rs6000/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
11915         * config/rs6000/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
11916         * config/i386/linux.h (TARGET_THREAD_SSP_OFFSET): Likewise.
11917         * config/i386/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
11918         * config/rs6000/rs6000.md (stack_protect_set, stack_protect_test):
11919         If TARGET_THREAD_SSP_OFFSET is defined, use -0x7010(13) resp.
11920         -0x7008(2) instead of reading __stack_chk_guard variable.
11921         * config/i386/i386.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): Change
11922         number.
11923         (UNSPEC_SP_TLS_SET, UNSPEC_SP_TLS_TEST): New constants.
11924         (stack_protect_set, stack_protect_test): Use *_tls* patterns
11925         if TARGET_THREAD_SSP_OFFSET is defined.
11926         (stack_tls_protect_set_si, stack_tls_protect_set_di,
11927         stack_tls_protect_test_si, stack_tls_protect_test_di): New insns.
11928
11929         Revert:
11930         2005-06-27  Richard Henderson  <rth@redhat.com>
11931         * libgcc-std.ver (GCC_4.1.0): New.
11932         * libgcc.h (__stack_chk_guard): Declare.
11933         (__stack_chk_fail, __stack_chk_fail_local): Declare.
11934         * libgcc2.c (L_stack_chk, L_stack_chk_local): New.
11935         * mklibgcc.in (lib2funcs): Add them.
11936
11937 2005-07-01  Richard Henderson  <rth@redhat.com>
11938
11939         * config/i386/linux-unwind.h (x86_64_fallback_frame_state): Cast to
11940         void * before struct sigcontext *.
11941         (x86_fallback_frame_state): Likewise.
11942
11943 2005-07-01  James E. Wilson  <wilson@specifixinc.com>
11944
11945         * doc/invoke.texi (-funit-at-a-time): Correct grammar in second bullet.
11946
11947 2005-07-01  Andrew Pinski  <pinskia@physics.uc.edu>
11948
11949         PR tree-opt/22269
11950         * tree-ssa-reassoc.c (should_transpose): Fix which operand
11951         we check for SSA_NAME for.
11952
11953 2005-07-01  Daniel Berlin  <dberlin@dberlin.org>
11954
11955         Fix PR tree-optimization/22071
11956
11957         * tree-ssa-structalias.c (offset_overlaps_with_access): New
11958         function.
11959         (get_constraint_for_component_ref): Use it.
11960
11961 2005-07-01  Andrew Pinski  <pinskia@physics.uc.edu>
11962
11963         PR other/22264
11964         * diagnostic.c (diagnostic_report_current_module): Use pp_newline to
11965         print out the last new line.
11966
11967 2005-07-01  Hans-Peter Nilsson  <hp@axis.se>
11968
11969         * config/cris/cris.md (CRIS_CC0_REGNUM): New constant.
11970         Swap numbers for CRIS_AP_REGNUM and CRIS_MOF_REGNUM.
11971         * config/cris/cris.c (cris_conditional_register_usage): Adjust
11972         reg_names[CRIS_CC0_REGNUM] for early CRIS versions.
11973         (cris_print_operand) <case REG>: Handle CRIS_CC0_REGNUM.
11974         (cris_md_asm_clobbers): Clobber CRIS_CC0_REGNUM for all asms.
11975         * config/cris/cris.h (CRIS_CANONICAL_CC0_REGNUM): New macro.
11976         (enum reg_class): New member CC0_REGS.
11977         (REG_CLASS_FROM_LETTER): Add 'c' for CC0_REGS.
11978         (FIRST_PSEUDO_REGISTER, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
11979         (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, REG_CLASS_NAMES)
11980         (CRIS_SPECIAL_REGS_CONTENTS, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
11981         (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
11982         Adjust for register now described.
11983
11984 2005-07-01  Jakub Jelinek  <jakub@redhat.com>
11985
11986         PR target/22262
11987         * config/i386/i386.md (stack_protect_test_si,
11988         stack_protect_test_di): Add earlyclobber for scratch 3.
11989         * config/rs6000/rs6000.md (stack_protect_testsi,
11990         stack_protect_testdi): Add earlyclobber for scratch 3,
11991         remove earlyclobber from scratch 4.
11992
11993 Older entries for 2005 can be found in ChangeLog-2005.