OSDN Git Service

2005-12-16 Paolo Bonzini <bonzini@gnu.org>
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2005-12-16  Paolo Bonzini  <bonzini@gnu.org>
2
3         * combine.c (combine_simplify_rtx <case NOT, NEG, TRUNCATE,
4         FLOAT_TRUNCATE, FLOAT_EXTEND, PLUS, MINUS, AND, IOR, XOR,
5         ABS, VEC_SELECT, POPCOUNT, PARITY, FFS, FLOAT>,
6         simplify_logical): Move simplifications that do not require
7         additional infrastructure...
8         * simplify-rtx.c (simplify_unary_operation_1,
9         simplify_binary_operation_1): ... here.
10
11 2005-12-16  Andreas Krebbel  <krebbel1@de.ibm.com>
12
13         PR 24823
14         * flow.c (mark_used_dest_regs): New function.
15         (mark_used_regs): Call mark_used_dest_regs.
16
17 2005-12-16  Jeff Law  <law@redhat.com>
18
19         * tree-ssa-dse.c (dse_optimize_stmt): Correctly handle PHI nodes which
20         represent a use and definition of the same SSA_NAME.
21
22 2005-12-16  Jon Grimm  <jgrimm2@us.ibm.com>
23             Janis Johnson  <janis187@us.ibm.com>
24             Ben Elliston  <bje@au.ibm.com>
25
26         * target-def.h (TARGET_DECIMAL_FLOAT_SUPPORTED_P): New.
27         (TARGET_INITIALIZER): Add TARGET_DECIMAL_FLOAT_P.
28         * target.h (struct gcc_target): Add decimal_float_supported_p.
29         * targhooks.c (default_scalar_mode_supported_p): Handle
30         MODE_DECIMAL_FLOAT.
31         * builtins.def: Add new builtins for 32, 64 and 128 bit variants
32         of inf, nan, finite, isinf and isnan.
33         * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128,
34         BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR,
35         BT_FN_DFLOAT32, BT_FN_DFLOAT64, BT_FN_DFLOAT128,
36         BT_FN_INT_DFLOAT32, BT_FN_INT_DFLOAT64, BT_FN_INT_DFLOAT128,
37         BT_FN_DFLOAT32_CONST_STRING, BT_FN_DFLOAT64_CONST_STRING,
38         BT_FN_DFLOAT32_CONST_STRING, BT_FN_DFLOAT32_DFLOAT32,
39         BT_FN_DFLOAT64_DFLOAT64, BT_FN_DFLOAT128_DFLOAT128): New.
40         * c-decl.c (declspecs_add_type): Verify combos on type qualifiers.
41         Pedwarn if decimal floating point types are used.  Error if
42         decimal floating point is not supported by the target.
43         (finish_declspecs): Return type from DFP typespec_word.
44         * c-typeck.c (c_common_type): Choose the decimal floating point
45         type with the greater precision when determining a common type.
46         (convert_arguments): Warn if there is a mismatch between argument
47         and prototype for decimal float types.  Warn of conversions with
48         binary float types and of precision narrowing due to prototype.
49         * c-parser.c (reswords): Add _Decimal32, _Decimal64, _Decimal128.
50         (c_token_starts_typename): Handle RID_DFLOAT32/64/128.
51         (c_token_starts_declspecs): Likewise.
52         (c_parser_attributes): Likewise.
53         * c-common.h (enum rid): Add new enumeration values RID_DFLOAT32,
54         RID_DFLOAT64, RID_DFLOAT128.
55         (T_D32, TEX_D32, T_D64, TEX_D64, T_D128, TEX_D128): New macros.
56         * c-common.c (c_common_type_for_mode): Handle decimal float modes.
57         (shorten_compare): Convert DFP/BFP operands to a common type.
58         (c_common_modes_and_builtins): Register built-in decimal float
59         types if the target supports them.
60         (handle_mode_addtribute): Handle MODE_DECIMAL_FLOAT.
61         * builtins.c (fold_builtin_1): Handle 32, 64 and 128 bit cases of
62         inf, nan, finite, isinf and isnan builtins.
63         * c-cppbuiltin.c (builtin_define_decimal_float_constants): New.
64         (builtin_define_float_constants): Assert non-decimal radix.
65         (c_cpp_builtins): Register built-in __DEC_EVAL_METHOD__ define.
66         Call builtin_define_decimal_float_constants for each type.
67         * c-lex.c (interpret_float): Decode decimal float types from CPP_N
68         flags.  Use real_from_string3, which can handle binary or decimal
69         floats.
70         * c-tree.h (enum c_typespec_keyword): Add cts_dfloat32,
71         cts_dfloat64, cts_dfloat128.
72         * tree.c (build_common_tree_nodes_2): Add decimal float types.
73         * tree.h (enum tree_index): Add new enumeration values
74         TI_DFLOAT32_TYPE, TI_DFLOAT64_TYPE, TI_DFLOAT128_TYPE,
75         TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE, TI_DFLOAT128_PTR_TYPE.
76         (dfloat32_type_node): New macro.
77         (dfloat64_type_node, dfloat128_type_node): Likewise.
78         (dfloat32_ptr_type_node, dfloat64_ptr_type_node): Likewise.
79         (dfloat128_ptr_type_node): Likewise.
80         * c-pretty-print.c (pp_c_floating_constant): Append 32, 64 and 128
81         bit decimal floating point types with "df", "dd" and "dl".
82         * c-format.h (enum format_lengths): Add new enumeration values
83         FMT_LEN_H, FMT_LEN_D and FMT_LEN_DD.
84         * c-format.c (printf_length_specs, scanf_length_specs): Add
85         entries for H, D, DD.
86         (print_char_table, scan_char_table): Use new entries.
87         (asm_fprintf_char_table, gcc_diag_char_table,
88         gcc_cdiag_char_table, gcc_cxxdiag_char_table): Adjust for longer
89         length arrays.
90         * defaults.h (DECIMAL32_TYPE_SIZE): Define.
91         (DECIMAL64_TYPE_SIZE): Likewise.
92         (DECIMAL128_TYPE_SIZE): Likewise.
93         (TARGET_DEC_EVAL_METHOD): Likewise.
94         * doc/extend.texi (Decimal Float): New node.
95         (Constructing Calls): Document decimal float built-ins.
96         * doc/tm.texi: Document TARGET_DECIMAL_FLOAT_SUPPORTED_P hook.
97         * Makefile.in (USER_H): Add $(srcdir)/ginclude/decfloat.h.
98         * ginclude/decfloat.h: New file.
99
100 2005-12-16  Alan Modra  <amodra@bigpond.net.au>
101
102         * reload.c (find_reloads): Fix comment typo.
103         * recog.h (recog_memoized): Correct comment.
104
105 2005-12-16  Kazu Hirata  <kazu@codesourcery.com>
106
107         * basic-block.h, config/i386/winnt.c, config/pa/pa.c,
108         config/s390/s390.c, dfp.c, expr.c, fold-const.c, params.def,
109         reload.c, struct-equiv.c, tree-ssa-ccp.c, tree-ssa-pre.c,
110         tree-ssa-reassoc.c, tree-ssa-structalias.c: Fix comment typos.
111         * doc/invoke.texi, doc/tm.texi: Fix typos.
112
113 2005-12-16  Ben Elliston  <bje@au.ibm.com>
114
115         * real.c (decimal_quad_format): Correct values for emin, emax.
116
117 2005-12-15  DJ Delorie  <dj@redhat.com>
118
119         * config/m32c/predicates.md (m32c_psi_scale): New.
120         * config/m32c/m32c.c (m32c_expand_neg_mulpsi3): New.
121         * config/m32c/muldiv.md (mulpsi3): Support negative constants.
122
123 2005-12-16  Jan Hubicka  <jh@suse.cz>
124
125         PR rtl-optimization/25224
126         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Free copy
127         tables.
128
129 2005-12-15  Zdenek Dvorak <dvorakz@suse.cz>
130             Steven Bosscher <stevenb@suse.de>
131
132         * loop-invariant.c (df): New global variable.
133         (find_defs, check_dependencies, find_invariant_insn, record_uses,
134         find_invariants_bb, find_invariants_body, find_invariants,
135         find_invariants_to_move, move_invariants, free_inv_motion_data,
136         move_single_loop_invariants, move_loop_invariants): Do not pass df in
137         arguments.
138
139 2005-12-15  Jakub Jelinek  <jakub@redhat.com>
140
141         * varasm.c (default_unique_section_1): Use special section
142         names for SECCAT_DATA_REL{,_RO}{,_LOCAL}.
143
144 2005-12-16  Ben Elliston  <bje@au.ibm.com>
145
146         * doc/invoke.texi (Warning Options): Document -Walways-true being
147         enabled by -Wall.
148
149 2005-12-15  Joseph S. Myers  <joseph@codesourcery.com>
150
151         PR other/25028
152         * libgcc2.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Define.
153         * libgcc2.c (__floatdixf, __floatundixf, __floatditf,
154         __floatunditf): Use #error if type sizes don't match requirements
155         of implementation.
156         (__floatdisf, __floatdidf): Unify.  Possibly use XFmode or TFmode
157         as wider floating-point type.  Use #error if type sizes don't
158         match requirements of implementation.  Avoid overflow in computing
159         Wtype_MAXp1_F * Wtype_MAXp1_F.  When special casing conversion,
160         shift one more bit.  Cast 1 to DWtype or UDWtype for shifting.
161         (__floatundisf, __floatundidf): Likewise.
162         * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Define.
163         * config/ia64/ia64.c (ia64_init_libfuncs): Use
164         _U_Qfcnvfxt_quad_to_quad and _U_Qfcnvxf_quad_to_quad for
165         TFmode-TImode conversions.
166         * doc/tm.texi (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Document.
167
168 2005-12-14  Craig Rodrigues  <rodrigc@gcc.gnu.org>
169
170         * freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS):
171         Use builtin_define_with_int_value() instead of
172         adding a new check for every new major FreeBSD version.
173
174 2005-12-14  Andrew Pinski  <pinskia@physics.uc.edu>
175
176         * config/t-darwin (darwin-c.o): Depend on $(TREE_H) instead of tree.h.
177
178 2005-12-15  Richard Sandiford  <richard@codesourcery.com>
179
180         * config/arm/predicates.md (call_memory_operand): New.
181         * config/arm/arm.md (*call_mem, *call_value_mem): Use it.
182
183 2005-12-15  Andrew Haley  <aph@redhat.com>
184
185         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Guard
186         against prev_cache_entry == NULL when moving a cache entry to the
187         head of the list.
188         
189 2005-12-15  Nathan Sidwell  <nathan@codesourcery.com>
190
191         * config/mt/mt.c (mt_override_options): Require lower case
192         architectures.  Revert accidental default to ms2.
193         * config/mt/mt.h (ASM_SPEC, LIBSPEC, STARTFILE_SPEC,
194         ENDFILE_SPEC): Require lower case architectures.  Revert default
195         to ms2.
196
197         * doc/invoke.texi (MT Options): Rename and update.
198         * doc/md.texi (MorphoTech family): Rename and update.
199
200 2005-12-15  Olivier Hainque  <hainque@adacore.com>
201
202         * stor-layout.c (layout_type): Don't complain about a too small
203         an array element type size compared to its alignment when the
204         size overflows.
205
206 2005-12-15  Jan Hubicka  <jh@suse.cz>
207
208         PR target/24969
209         * i386.c (classify_argument): Properly adjust offset of bitfield for
210         substructures.
211
212 2005-12-15  Richard Sandiford  <richard@codesourcery.com>
213
214         * final.c (final_scan_insn): Flip in_cold_section_p when changing
215         between the hot and cold sections.  Use current_function_section
216         to get the new section.
217         * dwarf2out.c (output_line_info): Use in_cold_section_p to
218         determine whether we are assembling hot or cold code.
219         (secname_for_decl, dwarf2out_var_location): Likewise.
220         (dwarf2out_init, dwarf2out_finish): Use switch_to_section.
221         * varasm.c (last_text_section): Delete.
222         (in_cold_section_p): New variable.
223         (hot_function_section): New function.
224         (current_function_section): Pass in_cold_section_p as the
225         reloc argument to select_section.  Use it to decide between
226         unlikely_function_section and hot_function_section.
227         (assemble_start_function): Use switch_to_section.  Set
228         in_cold_section_p instead of last_text_section.
229         (assemble_end_function): Use switch_to_section.
230         (switch_to_section): Don't set last_text_section.
231         * config/darwin/darwin.c (machopic_select_section): Trust the reloc
232         argument to make the right choice between hot and cold sections.
233
234 2005-12-15  Nathan Sidwell  <nathan@codesourcery.com>
235
236         Second part of MS1->MT renaming
237         * config/mt/mt.md (doloop_end): Call mt_add_loop.
238         (movqi, movhi): Call mt_set_memflags.
239         (*movdf_internal): Call mt_split_words. 
240         (reload_inqi, reload_outqi, reload_inhi, reload_outhi): Call
241         mt_set_memflags.
242         (cmpsi): Store to mt_compare_op[01].
243         (beq, bne, bge, bgt, ble, blt, bgeu, bgtu, bleu, bltu, bunge,
244         bungt, bunle, bunlt): Call mt_emit_cbranch.
245         (prologue): Call mt_expand_prologue.
246         (epilogu): Call mt_expend_epilogue.
247         (eh_return): Call mt_expand_eh_return.
248         (eh_epilogue): Call me_emit_eh_epilogue.
249         (conditional_trap): Store to mt_compare_op[01].
250         * config/mt/crti.asm: Adjust comment.
251         * config/mt/crtn.asm: Adjust comment.
252         * config/mt/mt.c (MT_INT_ARG_FIRST): Renamed.
253         (mt_compare_op0, mt_compare_op1): Renamed.
254         (current_frame_info, zero_frame_info): Adjust type.
255         (mt_ucmpsi3_libcall): Renamed.
256         (mt_flag_delayed_branch): Renamed.
257         (mt_struct_value_rtx, mt_return_addr_rtx): Renamed.
258         (mt_nops_required, mt_nop_reasons): Renamed.
259         (mt_asm_output_opcode, mt_get_attr_type, mt_final_prescan_insn,
260         mt_debug_stack, mt_print_operand_simple_address,
261         mt_print_operand_address, mt_print_operand): Renamed, adjusted.
262         (mt_init_cumulative_args, mt_function_arg_slotno, mt_function_arg,
263         mt_function_arg_advance, mt_arg_partial_bytes,
264         mt_pass_by_reference, mt_function_arg_boundary,
265         mt_reg_ok_for_base_p, mt_legitimate_simple_address_p,
266         mt_legitimate_address_p): Renamed, adjusted.
267         (mt_cpu): Renamed.
268         (mt_init_machine_status, mt_override_options, mt_builtin_saveregs,
269         mt_va_start, mt_compute_frame_size, mt_emit_save_restore,
270         mt_emit_save_fp, mt_emit_save_regs, mt_interrupt_function_p, 
271         mt_expand_prologue, mt_epilogue_uses, mt_expand_epilogue,
272         mt_expand_eh_return, mt_emit_eh_prologue,
273         mt_handl_interrupt_attribute): Renamed, adjusted.
274         (mt_attribute_table): Renamed, adjusted.
275         (mt_initial_elimination_offset, mt_generate_compare,
276         mt_emit_cbranch, mt_set_memflags_1, mt_set_memflags,
277         mt_secondary_reload_class, mt_function_value, mt_split_words,
278         mt_pass_in_stack, mt_add_loop, mt_loop_nesting, mt_block_length,
279         mt_scan_loop, mt_reorg_loops): Renamed, adjusted.
280         (mt_labels): Renamed.
281         (mt_add_branches, mt_check_delay_slot, mt_reorg_hazard,
282         mt_machine_reorg): Renamed, adjusted.
283         (mt_attribute_table: Renamed.
284         (TARGET_ATTRIBUTE_TABLE, TARGET_STRUCT_VALUE_RTX,
285         TARGET_PASS_BY_REFERENCE, TARGET_MUST_PASS_IN_STACK,
286         TARGET_ARG_PARTIAL_BYTES, TARGET_MACHINE_DEPENDENT_REORG): Adjust.
287         * config/mt/mt.opt (march): Set mt_cpu_string.
288         * config/mt/mt.h (mt_ucmpsi3_libcall, mt_cpu): Renamed.
289         (TARGET_CPU_CPP_BUILTINS): Adjust.
290         (TARGET_MS1_64_001, TARGET_MS1_16_002, TARGET_MS1_16_003,
291         TARGET_MS2): Adjust.
292         (TARGET_VERSION, OVERRIDE_OPTIONS, SECONDARY_RELOAD_CLASS): Adjust.
293         (MT_MIN_INT): Renamed.
294         (RETURN_ADDR_RTX): Adjust.
295         (struct mt_frame_info): Renamed.
296         (current_frame_info): Adjust type.
297         (INITIAL_ELIMINATION_OFFSET): Adjust.
298         (MT_NUM_ARG_REGS): Renamed.
299         (REG_PARM_STACK_SPACE, FUNCTION_ARG, INIT_CUMULATVE_ARGS,
300         FUNCTION_ARG_ADVANCE, FUNCTION_ARG_BOUNDARY, FUNCTION_VALUE,
301         LIBCALL_VALUE, EPILOGUE_USES, EXPAND_BUILTIN_VA_START,
302         GO_IF_LEGITIMATE_ADDRESS, REG_OK_FOR_BASE_P, ASM_OUTPUT_OPCODE,
303         FINAL_REPSCAN_INSN, PRINT_OPERAND, PRINT_OPERAND_ADDRESS): Adjust.
304         (mt_compare_op0, mt_compare_op1): Renamed.
305         * config/mt/mt-protos.h: Rename prototypes.
306
307 2005-12-15  Richard Guenther  <rguenther@suse.de>
308
309         * tree-flow.h (okay_component_ref_for_subvars): Remove.
310         (get_ref_base_and_extent): Declare.
311         * tree-dfa.c (okay_component_ref_for_subvars): Remove.
312         (get_ref_base_and_extent): New function.
313         * tree-ssa-alias.c (find_used_portions): Use it.
314         * tree-ssa-structalias.c (get_constraint_for_component_ref):
315         Likewise.
316         * tree-ssa-operands.c (get_expr_operands): Likewise.
317
318 2005-12-15  Paolo Bonzini  <bonzini@gnu.org>
319
320         * combine.c: Remove force_to_mode's fourth parameter.
321         (force_to_mode): Do not handle REG.
322         (canon_reg_for_combine): New.
323         (make_field_assignment): Use it where the removed argument was non-NULL.
324
325 2005-12-15  Alan Modra  <amodra@bigpond.net.au>
326
327         PR target/25406
328         * config/rs6000/rs6000.c (rs6000_special_round_type_align): Handle
329         error_mark_node.  Make alignment params unsigned.
330         * config/rs6000/rs6000-protos.h
331         (rs6000_special_round_type_align): Update prototype.
332         (rs6000_machopic_legitimize_pic_address): Remove arg names.
333
334 2005-12-14  Ulrich Weigand  <uweigand@de.ibm.com>
335
336         PR rtl-optimization/25310
337         * reload1.c (eliminate_regs_in_insn): Handle lowpart SUBREGs
338         of the eliminable register when substituting into a PLUS.
339
340 2005-12-14  Jakub Jelinek  <jakub@redhat.com>
341
342         PR debug/25023
343         * config/i386/i386.c (ix86_force_to_memory): Always use
344         SImode push for HImode in -m32.
345         (ix86_free_from_memory): Likewise.
346
347 2005-12-14  Richard Sandiford  <richard@codesourcery.com>
348
349         * gcc/config/arm/arm.md: Provide a big-endian version of the
350         (zero_extend:SI (subreg:QI ...)) splitter.
351
352 2005-12-14  J"orn Rennecke <joern.rennecke@st.com>
353
354         * struct-equiv.c (note_local_live): Handle hard regs with different
355         hard_regno_nregs.
356
357 2005-12-14  Jeff Law  <law@redhat.com>
358
359         * tree-ssa-ccp.c (fold_stmt_r): DATA argument is now a pointer
360         to a structure containing state rather than a pointer to bool.
361         (case ARRAY_REF): New code to handle folding some array references.
362         (case ADDR_EXPR): Note when we are processing expressions found
363         within an ADDRE_EXPR.
364         (fold_stmt, fold_stmt_inplace): Pass in a structure to fold_stmt_r
365         for state variables rather than just a pointer to a boolean.
366         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Remove
367         handling of constant string references.
368
369 2005-12-14  Adrian Straetling  <straetling@de.ibm.com>
370
371         * config/s390/s390.md ("*tstdi_extimm", "*tstsi_extimm"): Merge.
372         ("*tstdi_cconly_extimm", "*tstsi_cconly_extimm"): Merge.
373         ("*tstdi_cconly2", "*tstsi_cconly2"): Merge.
374         Move other tst* patterns to retain partial order.
375
376 2005-12-14  Adrian Straetling  <straetling@de.ibm.com>
377
378         * config/s390/s390.md ("d0", "1"): New mode attributes.
379         ("<shift>di3", "<shift>si3"): Merge.
380         ("*<shift>di3_and", "*<shift>si3_and"): Merge.
381         ("ashrdi3", "ashrsi3"): Merge.
382         ("*ashrdi3_cc", "*ashrsi3_cc"): Merge.
383         ("*ashrdi3_cc_and", "*ashrsi3_cc_and"): Merge.
384         ("*ashrdi3_cconly", "*ashrsi3_cconly"): Merge.
385         ("*ashrdi3_cconly_and", "*ashrsi3_cconly_and"): Merge.
386         ("*ashrdi3", "*ashrsi3"): Merge.
387         ("*ashrdi3_and", "*ashrsi3_and"): Merge.
388
389 2005-12-14  Adrian Straetling  <straetling@de.ibm.com>
390
391         * config/s390/s390.md ("extend<mode>di2", "extend<mode>si2"): Merge.
392         ("*extendqidi2_extimm", "*extendqisi2_extimm"): Merge.
393         ("*extendqidi2", "*extendqisi2") Merge.
394         ("*extendqidi2_short_displ", "*extendqisi2_short_displ"): Merge.
395         ("zero_extendhidi2", "zero_extendqidi2"): Merge.
396         ("*zero_extend<mode>di2_extimm", "*zero_extend<mode>si2_extimm"): Merge.
397         Move some patterns to retain partial ordering.
398
399 2005-12-14  Adrian Straetling  <straetling@de.ibm.com>
400
401         * config/s390/s390.md ("atype", "length"): Rewrite.
402         ("*insv<mode>_reg_imm", "*insv<mode>_reg_extimm"): Add mode.
403
404 2005-12-14  Sebastian Pop  <pop@cri.ensmp.fr>
405
406         * tree-ssa-operands.c (build_ssa_operands): Update leading comment.
407
408 2005-12-14  J"orn Rennecke <joern.rennecke@st.com>
409
410         * struct-equiv.c (rtx_equiv_p): Allow arbitrary RVALUE values for
411         PARALLELs with a mode.
412
413 2005-12-14  Sebastian Pop  <pop@cri.ensmp.fr>
414
415         * cfgloopmanip.c (lv_adjust_loop_entry_edge): Adjust the type of
416         cond_expr parameter.
417
418 2005-12-14  Sebastian Pop  <pop@cri.ensmp.fr>
419
420         * loop-unswitch.c (unswitch_loop): Free zero_bitmap before returning.
421
422 2005-12-14  J"orn Rennecke <joern.rennecke@st.com>
423
424         PR bootstrap/25397:
425
426         * struct-equiv.c (struct_equiv_init): Fix off-by-one error in clearing
427         of STACK_REGS bits.
428
429         * struct-euiv.c (rtx_equiv_p): Remove SUBREG case.
430
431 2005-12-14  Jakub Jelinek  <jakub@redhat.com>
432
433         PR target/25254
434         PR target/24188
435         * config/i386/i386.c (x86_64_elf_select_section): If DECL is not
436         DECL_P, call get_section rather than get_named_section.  Supply
437         section flags to it.
438
439 2005-12-14  Ben Elliston  <bje@au.ibm.com>
440
441         * c-common.c (c_common_truthvalue_conversion): Generalise warning
442         for addresses converted to booleans; not just function addresses.
443         * c-typeck.c (build_binary_op): Warn for address comparisons which
444         can never be NULL (eg. func == NULL or &var == NULL).
445         * common.opt (Walways-true): New option.
446         * c-opts.c (c_common_handle_option): Set it with -Wall.
447         * doc/invoke.texi: Document it.
448
449 2005-12-13  Paul Brook  <paul@codesourcery.com>
450
451         * config/m68k/fpgnulib.c (__unordsf2, __unorddf2, __unordxf2,
452         __floatunsidf, __floatunsisf, __floatunsixf): New functions.
453
454 2005-12-13  Nathan Sidwell  <nathan@codesourcery.com>
455
456         * sim/common/sim-signal.c (sim_signal_to_target): Add missing ':'.
457         * sim/common/sim-signal.h (sim_signal_to_target): Return an int.
458
459         * config/mt/t-mt (crti.o, crtn.o): Add multilib options.
460         (EXTRA_MULTILIB_PARTS): Define.
461
462 2005-12-13  J"orn Rennecke <joern.rennecke@st.com>
463
464         PR rtl-optimization/20070 / part1
465         * flow.c (update_life_info): If PROP_POST_REGSTACK is set, call
466         count_or_remove_death_notes with kill == -1.
467         (mark_set_1): Don't add REG_DEAD / REG_UNUSED notes for stack
468         registers if PROP_POST_REGSTACK is set.
469         (mark_used_reg): Likewise.
470         (count_or_remove_death_notes): If kill is -1, don't remove REG_DEAD /
471         REG_UNUSED notes for stack regs.
472         * cfgcleanup.c (condjump_equiv_p): Change parameters and processing
473         to match rtx_equiv_p machinery.  Change caller.
474         (outgoing_edges_match): Likewise.
475         (try_crossjump_to_edge): Use struct_equiv_block_eq
476         instead of flow_find_cross_jump.
477         * basic-block.h (PROP_POST_REGSTACK, STRUCT_EQUIV_START): Define.
478         (STRUCT_EQUIV_RERUN, STRUCT_EQUIV_FINAL): Likewise.
479         (STRUCT_EQUIV_NEED_FULL_BLOCK, STRUCT_EQUIV_MATCH_JUMPS): Likewise.
480         (STRUCT_EQUIV_MAX_LOCAL): Likewise.
481         (struct struct_equiv_checkpoint, struct equiv_info): Likewise.
482         (insns_match_p): Update prototype.
483         (flow_find_cross_jump): Remove prototype.
484         (struct_equiv_block_eq, struct_equiv_init): Declare.
485         (rtx_equiv_p, condjump_equiv_p): Likewise.
486         * struct-equiv.c: Include reload.h.
487         (IMPOSSIBLE_MOVE_FACTOR): Define.
488         (assign_reg_reg_set, struct_equiv_make_checkpoint): New functions.
489         (struct_equiv_improve_checkpoint): Likewise.
490         (struct_equiv_restore_checkpoint, rtx_equiv_p): Likewise.
491         (set_dest_equiv_p, set_dest_addr_equiv_p, struct_equiv_init): Likewise.
492         (struct_equiv_merge, find_dying_input): Likewise.
493         (resolve_input_conflict, note_local_live): Likewise.
494         (death_notes_match_p): Change parameters and processing
495         to match rtx_equiv_p machinery.  Change caller.
496         (insns_match_p): Likewise.
497         (flow_find_cross_jump): Replace with:
498         (struct_equiv_block_eq).
499
500         Back out this change:
501         2005-03-07  Kazu Hirata  <kazu@cs.umass.edu>
502           * recog.c (verify_changes): Make it static.
503           * recog.h: Remove the corresponding prototype.
504
505 2005-12-13  J"orn Rennecke <joern.rennecke@st.com>
506
507         * rtlhooks.c (gen_lowpart_general): Handle SUBREGs of floating point
508         values.
509
510 2005-12-13  Nathan Sidwell  <nathan@codesourcery.com>
511
512         * config/mt/t-mt (MULTILIB_OPTIONS): Add ms2
513         (MULTILIB_DIRNAMES): Add ms2.  Prefix ms1 dirs with 'ms1'.
514         * config/mt/mt.c (ms1_final_prescan): Use TARGET_MS2,
515         TARGET_MS1_64_001 appropriately.
516         (ms1_machine_reorg): Use TARGET_MS2.
517
518 2005-12-13  Jakub Jelinek  <jakub@redhat.com>
519
520         PR debug/25023
521         PR target/25293
522         * expr.c (emit_move_resolve_push): Handle PRE_MODIFY
523         and POST_MODIFY with CONST_INT adjustment equal to PUSH_ROUNDING.
524         Fix POST_INC/POST_DEC handling if PUSH_ROUNDING is not identity.
525         * config/i386/i386.md (pushhi2, pushqi2): Use pushl instead of pushw.
526         Set mode to SI, adjust constraints.
527         (pushhi2_rex64, pushqi2_rex64): Set mode to DI.
528         * config/i386/i386.h (PUSH_ROUNDING): Round up to 4 instead of 2 for
529         32-bit code.
530
531 2005-12-13  Carlos O'Donell <carlos@codesourcery.com>
532
533         * c-cppbuiltin.c (builtin_define_float_constants): Add
534         fp_cast parameter, pass to builtin_define_with_hex_fp_value.
535         Define __FLT_HAS_DENORM__, __DBL_HAS_DENORM__, __LDBL_HAS_DENORM__.
536         (builtin_define_with_hex_fp_value): Use fp_cast when building macro.
537         (c_cpp_builtins): If flag_single_precision_constant then set fp_cast
538         to "((double)%sL)" otherwise "%s".
539
540 2005-12-13  Paul Brook  <paul@codesourcery.com>
541
542         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=gnu for
543         apcs/atpcs.
544
545 2005-12-11 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
546
547         * tree-flow.h: Allow compilation with a C++ compiler.
548         (struct edge_prediction): Prefix all field names  with "ep_".
549         * predict.c (tree_predicted_by_p): Likewise for struct edge_prediction.
550         (tree_predict_edge, combine_predictions_for_bb): Likewise.
551         (remove_predictions_associated_with_edge): Likewise.
552         
553 2005-12-12  Jeff Law  <law@redhat.com>
554
555         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Remove
556         reassociation code.
557         * passes.c (init_optimization_passes): Run reassociation again
558         after loop optimizations.
559
560 2005-12-12  Daniel Berlin  <dberlin@dberlin.org>
561
562         * tree-ssa-dom.c (thread_across_edge): Canonicalize condition
563         if necessary.
564         (optimize_stmt): Ditto.
565         (canonicalize_comparison): New function.
566         * tree-ssa-operands.c (swap_tree_operands): Make external.
567         (get_expr_operands): Stop auto-canonicalization.
568         * tree-ssa-reassoc.c: Rewrite.
569         (init_optimization_passes): 
570         * tree-flow.h (swap_tree_operands): Prototype.
571         * Makefile.in (tree-ssa-reassoc.o): Update dependencies.
572
573 2005-12-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
574
575         * pa.c (pa_output_function_epilogue): Set cfun->machine->in_nsubspa to
576         indicate function epilogue has been output.
577         (pa_asm_output_mi_thunk): Likewise.
578         (output_deferred_plabels): Put plabels in readonly data section when
579         not generating PIC code.
580         (som_output_text_section_asm_op): Use .NSUBSPA to output debug
581         information.  Add assert.
582         (som_output_comdat_data_section_asm_op): New function.
583         (pa_som_asm_init_sections): Use som_output_comdat_data_section_asm_op
584         instead of output_section_asm_op for COMDAT sections.
585
586 2005-12-12  J"orn Rennecke <joern.rennecke@st.com>
587
588         * cfgcleanup.c (condjump_equiv_p, try_crossjump_to_edge):
589         Fix whitespace in vincinity of to-be-installed changes.
590         * struct-equiv.c (merge_memattrs, death_notes_match_p): Fix whitespace.
591         (insns_match_p): Likewise.
592
593 2005-12-12  Nathan Sidwell  <nathan@codesourcery.com>
594
595         * config.gcc (ms1): Replace with ...
596         (mt): ... this.
597         * config/ms1: Rename to ...
598         * config/mt: ... here.  Rename ms1 files to mt.
599         * config/mt/mt.c: Adjust gt-mt.h #include.
600         * config/mt/t-mt (LIB1ASMSRCS, LIB2FUNCS_EXTRA): Adjust.
601         (crti.o, crtn.o): Adjust file names.
602
603 2005-12-12  Gabriel Dos Reis  <gdr@integrable-solutions.net>
604
605         * varray.h: Allow compilation with a C++ compiler.
606         (union varray_data_tag): Prefix all field names with "vdt_".
607         (VARRAY_CHAR, VARRAY_UCHAR, VARRAY_SHORT, VARRAY_USHORT,
608         VARRAY_INT, VARRAY_UINT, VARRAY_LONG, VARRAY_ULONG,
609         VARRAY_WIDE_INT, VARRAY_UWIDE_INT, VARRAY_GENERIC_PTR,
610         VARRAY_GENERIC_PTR_NOGC, VARRAY_CHAR_PTR, VARRAY_RTX,
611         VARRAY_RTVEC, VARRAY_TREE, VARRAY_BITMAP, VARRAY_REG, VARRAY_BB,
612         VARRAY_ELT_LIST, VARRAY_EDGE, VARRAY_TREE_PTR): Adjust definition.
613         (VARRAY_PUSH_CHAR, VARRAY_PUSH_UCHAR, VARRAY_PUSH_SHORT,
614         VARRAY_PUSH_USHORT, VARRAY_PUSH_INT, VARRAY_PUSH_UINT, 
615         VARRAY_PUSH_LONG, VARRAY_PUSH_ULONG, VARRAY_PUSH_WIDE_INT, 
616         VARRAY_PUSH_UWIDE_INT, VARRAY_PUSH_GENERIC_PTR, 
617         VARRAY_PUSH_GENERIC_PTR_NOGC, VARRAY_PUSH_CHAR_PTR, 
618         VARRAY_PUSH_RTX, VARRAY_PUSH_RTVEC, VARRAY_PUSH_TREE, 
619         VARRAY_PUSH_BITMAP, VARRAY_PUSH_REG, VARRAY_PUSH_BB, 
620         VARRAY_PUSH_EDGE, VARRAY_PUSH_TREE_PTR): Likewise.
621         (VARRAY_TOP_CHAR, VARRAY_TOP_UCHAR, VARRAY_TOP_SHORT, 
622         VARRAY_TOP_USHORT, VARRAY_TOP_INT, VARRAY_TOP_UINT, 
623         VARRAY_TOP_LONG, VARRAY_TOP_ULONG, VARRAY_TOP_WIDE_INT, 
624         VARRAY_TOP_UWIDE_INT, VARRAY_TOP_GENERIC_PTR, 
625         VARRAY_TOP_GENERIC_PTR_NOGC, VARRAY_TOP_CHAR_PTR, VARRAY_TOP_RTX, 
626         VARRAY_TOP_RTVEC, VARRAY_TOP_TREE, VARRAY_TOP_BITMAP, 
627         VARRAY_TOP_REG, VARRAY_TOP_BB, VARRAY_TOP_EDGE, 
628         VARRAY_TOP_TREE_PTR): Likewise.
629         * varray.c (varray_grow): Likewise.
630         (varray_clear): Likewise.
631
632 2005-12-12  Alan Modra  <amodra@bigpond.net.au>
633
634         PR target/25299
635         * config/rs6000/rs6000.c (rs6000_special_round_type_align): Increase
636         alignment to doubleword if the first field is a double array.
637         * config/rs6000/linux64.h (TARGET_ALIGN_NATURAL): Define.
638
639 2005-12-11  Daniel Berlin  <dberlin@dberlin.org>
640
641         * tree-ssa-structalias.c (process_constraint): Remove code to
642         transform addressofs into scalar.
643         (create_variable_info_for): In whole-program IPA, globals don't
644         point to ANYTHING by default.
645
646 2005-12-11  Daniel Berlin  <dberlin@dberlin.org>
647
648         * timevar.def (TV_IPA_PTA): New.
649         * tree-pass.h (pass_ipa_pta): New
650         * tree-ssa-structalias.c: Include cgraph.h
651         (in_ipa_mode): New.
652         (predbitmap_obstack): New.
653         (EXECUTE_IF_IN_NONNULL_BITMAP): New.
654         (struct constraint_stats): Add num_edges.
655         (new_var_info): Don't call bitmap_clear.
656         (struct constraint_edge): Update docs.
657         (new_constraint_edge): Remove src param.
658         (struct constraint_graph): Add zero_weight_succs,
659         zero_weight_preds.  Update docs.
660         (constraint_expr_equal): Reformat.
661         (constraint_edge_equal): Update for removal of src.
662         (constraint_edge_less): Ditto.
663         (constraint_edge_vec_find): Ditto.
664         (erase_graph_self_edge): Update for removal of src and and zero
665         weight bitmap.
666         (clear_edges_for_node): Ditto.
667         (add_graph_edge): Ditto.
668         (get_graph_weights): Ditto.
669         (allocate_graph_weights): Ditto.
670         (merge_graph_nodes): Ditto.
671         (int_add_graph_edge): Ditto.
672         (valid_graph_edge): Ditto.
673         (valid_weighted_graph_edge): Ditto.
674         (build_constraint_graph): Ditto.
675         (scc_visit): Ditto.
676         (collapse_nodes): Ditto.
677         (process_unification_queue): Ditto.
678         (topo_visit): Ditto.
679         (solve_graph): Ditto.
680         (do_structure_copy): Ditto.
681         (perform_var_substitution): Ditto.
682         Init and release obstack.
683         (handle_ptr_arith): Try to resolve directly.
684         (find_func_aliases): Don't call update_alias_info here
685         Handle RETURN_EXPR, and CALL_EXPR's in IPA mode.
686         (do_sd_constraint): Add code for propagating faster.
687         Update.
688         (do_ds_constraint): Ditto.
689         (count_num_arguments): New function.
690         (create_function_info_for): Ditto.
691         (create_variable_info_for): Handle FUNCTION_DECL.
692         (intra_create_variable_infos): Use make_constraint_to_anything.
693         (init_alias_vars): Init obstacks here.
694         (need_to_solve): Handle zero weight graph changes.
695         (compute_points_to_sets): Call update_alias_info here.
696         (delete_points_to_sets): Free zero weight preds/succs here.
697         (gate_ipa_pta): New.
698         (ipa_pta_execute): New
699
700 2005-12-11  Daniel Berlin  <dberlin@dberlin.org>
701
702         * tree-ssa-structalias.c (var_anyoffset): Removed.
703         (anyoffset_tree): Ditto.
704         (anyoffset_id): Ditto.
705         (do_deref): Take vector of constraints, no return value.
706         Update to work on vector.                
707         (get_constraint_for): Ditto.
708         (get_constraint_for_component_ref): Ditto.
709         (do_structure_copy): Ditto.
710         (handle_ptr_arith): Ditto.
711         (find_func_aliases): Ditto.
712         (set_uids_in_ptset): Remove anyoffset handling.
713         (init_base_vars): Ditto.
714
715 2005-12-10  Mark Mitchell  <mark@codesourcery.com>
716
717         PR c++/25010
718         * ipa-inline.c (cgraph_clone_inlined_nodes): Do not assume that
719         DECL_EXTERNAL functions have no bodies.  Tidy.
720
721 2005-12-10  Andreas Schwab  <schwab@suse.de>
722
723         * except.c (switch_to_exception_section): Only define if
724         TARGET_UNWIND_INFO is not defined.
725
726 2005-12-10  Richard Sandiford  <richard@codesourcery.com>
727
728         * config/darwin.h (HAS_INIT_SECTION): Remove definition.
729         (INIT_SECTION_ASM_OP): Restore empty definition from before 2005-12-07.
730
731 2005-12-10  Richard Sandiford  <richard@codesourcery.com>
732
733         * output.h (init_section, fini_section): Delete.
734         * varasm.c (init_section, fini_section): Delete.
735         (init_varasm_once): Don't initialize them.
736         * doc/tm.texi (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Say that
737         there are no corresponding varasm.c variables.
738
739 2005-12-10  Richard Sandiford  <richard@codesourcery.com>
740
741         * dwarf2out.c (default_eh_frame_section): Delete, moving handling
742         of EH_FRAME_SECTION_NAME into...
743         (switch_to_eh_frame_section): ...here.  Try to set eh_frame_section
744         if it is still null.
745         * except.c (default_exception_section): Delete, moving most
746         of the code to...
747         (switch_to_exception_section): ...this new function.  Set
748         exception_section if it is still null, then switch to it.
749         (output_function_exception_table): Use switch_to_exception_section.
750         * varasm.c (exception_section, eh_frame_section): Update comments.
751         (get_section): Hoist use of SECTION_NAMED.
752         (init_varasm_once): Don't set exception_section and eh_frame_section.
753         * output.h (default_exception_section): Delete.
754         (default_eh_frame_section): Delete.
755
756 2005-12-09  Bernd Schmidt  <bernd.schmidt@analog.com>
757
758         * config/bfin/bfin.c: Include "cgraph.h".
759         (bfin_load_pic_reg): Omit loading pic reg if in a local function.
760         Return the reg that holds the pointer to the GOT.
761         (bfin_expand_prologue): Use return value of bfin_load_pic_reg when
762         doing stack checking.
763
764 2005-12-09  Diego Novillo  <dnovillo@redhat.com>
765
766         * tree.c (recompute_tree_invariant_for_addr_expr): Rename from
767         recompute_tree_invarant_for_addr_expr.
768         Update uses everywhere.
769
770 2005-12-09  Aldy Hernandez  <aldyh@redhat.com>
771
772         * config/ms1/t-ms1 (MULTILIB_OPTIONS): Define.
773         (MULTILIB_DIRNAMES): Define.
774
775 2005-12-09  Ulrich Weigand  <uweigand@de.ibm.com>
776
777         PR target/25311
778         * config/s390/s390.c (struct s390_address): New field literal_pool.
779         (s390_decompose_address): Compute literal_pool field.  Do not 
780         assume register %r13 is always (and solely) used as pool base.
781         (s390_extra_constraint_str): Use literal_pool field.
782
783 2005-12-09  Thiemo Seufer  <ths@networkno.de>
784
785         * config/mips/mips.c (override_options): Don't allow too small
786         integers in FP registers.
787
788 2005-12-09  Ulrich Weigand  <uweigand@de.ibm.com>
789
790         * config/s390/s390.c (s390_function_ok_for_sibcall): Use
791         targetm.binds_local_p to check for local function calls.
792
793 2005-12-09  Alan Modra  <amodra@bigpond.net.au>
794
795         PR debug/24908
796         * dwarf2out.c (dwarf2out_frame_debug_expr): Don't assert that
797         call_used_regs can't be used to save reg in another reg.
798
799 2005-12-08  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
800             Christophe Jaillet  <christophe.jaillet@wanadoo.fr>
801
802         * ipa-type-escape.c (analyze_variable): Use gcc_assert instead of
803         abort.
804         * except.c (output_ttype): Likewise.
805         * tree-object-size.c (collect_object_sizes_for): Likewise.
806         (check_for_plus_in_loops_1): Likewise.
807         (check_for_plus_in_loops): Likewise.
808         (compute_object_sizes): Use gcc_unreachable instead of abort.
809
810 2005-12-08  Nathan Sidwell  <nathan@codesourcery.com>
811
812         * config/ms1/ms1.md (UNSPEC_LOOP): New constant.
813         (loop_end, loop_init, doloop_end): New insns.
814         * config/ms1/ms1.h (LOOP_FIRST, LOOP_LAST): New.
815         (SPECIAL_REG_FIRST, FIRST_PSEUDO_REGISTER): Adjust.
816         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
817         (REG_CLASS_CONTENTS, REGISTER_NAMES): Adjust.
818         * config/ms1/ms1.c: #include basic-block.h
819         (struct machine_function): Add has_loops field.
820         (ms1_add_loop): New.
821         (MAX_LOOP_DEPTH, MAX_LOO_LENGTH): New.
822         (struct loop_info, struct loop_work): New.
823         (ms1_loop_nesting, ms1_block_length, ms1_scan_loop): New workers.
824         (ms1_reorg_loops): New loop optimization.
825         (ms1_machine_reorg): Call it.
826         * config/ms1/ms1-protos.h (ms1_add_loop): Declare.
827
828 2005-12-08  Zdenek Dvorak  <dvorakz@suse.cz>
829
830         PR tree-optimization/25248
831         * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Do not use
832         evolution_of_loop from the failed attempt.  Remove handling
833         of MULT_EXPR.
834
835 2005-12-08  Gabriel Dos Reis  <gdr@integrable-solutions.net>
836
837         * tree.h (DECL_EXTERNAL): Clarify documentation.
838
839 2005-12-08  Andreas Krebbel  <krebbel1@de.ibm.com>
840             Jakub Jelinek  <jakub@redhat.com>
841
842         PR target/25268
843         * config/s390/s390.c (s390_decompose_shift_count): Remove BITS
844         argument.  Don't drop outer ANDs.
845         (s390_extra_constraint_str, print_shift_count_operand): Adjust callers.
846         * config/s390/s390-protos.h (s390_decompose_shift_count): Adjust
847         prototype.
848         * config/s390/predicates.md (setmem_operand): Remove.
849         (shift_count_operand): Rename to...
850         (shift_count_or_setmem_operand): ... this.  Adjust
851         s390_decompose_shift_count caller.
852         * config/s390/s390.md (<shift>di3_31_and, <shift>di3_64_and,
853         ashrdi3_cc_31_and, ashrdi3_cconly_31_and, ashrdi3_31_and,
854         ashrdi3_cc_64_and, ashrdi3_cconly_64_and, ashrdi3_64_and,
855         <shift>si3_and, ashrsi3_cc_and, ashrsi3_cconly_and, ashrsi3_and,
856         rotl<mode>3_and, setmem_long_and): New insns.
857         (<shift>di3_31, <shift>di3_64, ashrdi3_cc_31, ashrdi3_cconly_31,
858         ashrdi3_31, ashrdi3_cc_64, ashrdi3_cconly_64, ashrdi3_64,
859         <shift>si3, ashrsi3_cc, ashrsi3_cconly, ashrsi3, rotl<mode>3,
860         <shift>di3, ashrdi3): Use shift_count_or_setmem_operand instead
861         of shift_count_operand.
862         (setmem_long): Use shift_count_or_setmem_operand instead of
863         setmem_operand.
864
865 2005-12-08  Daniel Jacobowitz  <dan@codesourcery.com>  
866             Andreas Tobler  <a.tobler@schweiz.ch>
867
868         * Makefile.in (ALL_GTFILES_H): Replace sed statement with more portable
869         tr expression.
870
871 2005-12-07  J"orn Rennecke <joern.rennecke@st.com>
872
873         * expr.c (force_operand): Use convert_to_mode for conversions.
874
875 2005-12-07  J"orn Rennecke <joern.rennecke@st.com>
876
877         * reload.h (reg_equiv_invariant): Declare.
878         * reload.c (refers_to_regno_for_reload_p): Allow R to be a pseudo
879         register also when reg_equiv_invariant[R] is set.
880
881 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
882             Andreas Tobler  <a.tobler@schweiz.ch>
883
884         * config/darwin.h: Guard section variables with #ifndef USED_FOR_TARGET.
885
886 2005-12-07  Daniel Berlin  <dberlin@dberlin.org>
887
888         * tree-ssa-pre.c (bitmap_set_and): New function.
889         (bitmap_set_and_compl): New function.
890         (bitmap_set_empty_p): New function.
891         (insert_extra_phis): New function.
892         (compute_avail): Use insert_extra_phis.
893
894 2005-12-07  Adrian Straetling  <straetling@de.ibm.com>
895
896         * config/s390/s390.c (s390_expand_atomic): New function.
897         Adjust comment of helper functions.
898         * config/s390/s390-protos.h (s390_expand_atomic): Declare.
899         * config/s390/s390.md ("ATOMIC"): New code macro.
900         ("atomic"): Corresponding new code attribute.
901         ("sync_lock_test_and_set[hq]i", 
902         "sync_{new_,old_,}{and,ior,xor,add,sub,nand}[hq]i"): New pattern.
903
904 2005-12-07  Adrian Straetling  <straetling@de.ibm.com>
905
906         * config/s390/s390.c (s390_expand_mask_and_shift, 
907         struct alignment_context, init_alignment_context, 
908         s390_expand_cs_hqi): New.
909         * config/s390/s390-protos.h (s390_expand_cs_hqi): Declare.
910         * config/s390/s390.md ("sync_compare_and_swaphi",
911         "sync_compare_and_swapqi"): New pattern.
912
913 2005-12-07  Daniel Berlin <dberlin@dberlin.org>
914
915         Fix PR tree-optimization/25291
916         * tree-ssa-operands.c (add_call_clobber_ops): Remove
917         redundant and crashing check.
918
919 2005-12-08  Alan Modra  <amodra@bigpond.net.au>
920
921         PR target/25212
922         * config/rs6000/rs6000.c (legitimate_indexed_address_p): Relax
923         tests further when !strict && reload_in_progress.
924         (print_operand): Check that both operands of indexed address are regs.
925         (print_operand_address): Likewise.
926         * config/rs6000/rs6000.h (INT_REG_OK_FOR_INDEX_P): Simplify.
927         (INT_REG_OK_FOR_BASE_P): Correct.
928
929 2005-12-07  J"orn Rennecke <joern.rennecke@st.com>
930
931         Preparation for PR rtl-optimization/20070 / part1
932         * basic-block.h (insns_match_p, flow_find_cross_jump): Declare.
933         * cfgcleanup.c (condjump_equiv_p): New function, broken out of
934         outgoing_edges_match.
935         (outgoing_edges_match): Use condjump_equiv_p.
936         (merge_memattrs, insns_match_p, flow_find_cross_jump): Move from here
937         into..
938         * struct-equiv.c: New file.
939         (death_notes_match_p) New function, broken out of insns_match_p.
940         * Makefile.in (OBJS-common): Add struct-equiv.o.
941         (struct-equiv.o): New target.
942
943 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
944
945         * coretypes.h: Revert previous change.
946         * config/darwin.h: Revert previous reversion.
947         * config/avr/avr.h (progmem_section): Guard with #ifndef IN_LIBGCC2.
948
949 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
950
951         * coretypes.h (section): Provide dummy definition for target files.
952         * config/darwin.h: Revert previous change.
953
954 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
955
956         * doc/sourcebuild.texi (all.build, install-normal): Remove.
957         * configure.ac: Remove all.build and install-normal from target_list
958         * configure: Regenerate.
959         * Makefile.in (install): Don't depend on install-normal.
960
961 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
962
963         * Makefile.in: Document the use of stamps.
964
965 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
966
967         * doc/gty.texi: Remove instructions for adding a dependency on s-gtype.
968         * Makefile.in: Add code to compute some dependencies on s-gtype
969         automatically.  Remove the declaration of those dependencies.
970
971 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
972
973         * gcc/reload.c (push_secondary_reload): Fix typo:
974         s/insn_constraint/scratch_constraint/.
975
976 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
977
978         * config/darwin.h: Guard section variables with #ifndef IN_LIBGCC2.
979
980 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
981
982         * config/alpha/alpha.c (alpha_start_function): Use switch_to_section.
983         (alpha_elf_select_rtx_section): Return the selected section rather
984         than emitting assembly code.
985         (alpha_write_linkage): Emit a ".link" directive directly and then
986         set in_section to NULL.
987         (vms_asm_out_constructor): Use switch_to_section.
988         (vms_asm_out_destructor): Likewise.
989         (unicosmk_output_common): Set in_section to NULL instead of calling
990         the dummy common_section function.
991         (unicosmk_text_section): Delete in favor of...
992         (unicosmk_output_text_section_asm_op): ...this new function.
993         (unicosmk_data_section): Delete in favor of...
994         (unicosmk_output_data_section_asm_op): ...this new function.
995         (unicosmk_init_sections): New function.
996         (unicosmk_output_deferred_case_vectors): Use switch_to_section.
997         (unicosmk_output_ssib): Set in_section to NULL instead of calling
998         the dummy ssib_section function.
999         (unicosmk_section_buf): Delete.
1000         * config/alpha/alpha-protos.h (unicosmk_text_section): Delete.
1001         (unicosmk_data_section): Delete.
1002         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
1003         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, sbss_section, sdata_section)
1004         (SECTION_FUNCTION_TEMPLATE): Delete.
1005         * config/alpha/unicosmk.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP)
1006         (READONLY_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
1007         (common_section, COMMON_SECTION, ssib_section, SSIB_SECTION): Delete.
1008         (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
1009         (TARGET_ASM_INIT_SECTIONS): Define.
1010         * config/alpha/vms.h (LINK_SECTION_ASM_OP, LITERALS_SECTION_ASM_OP)
1011         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
1012         (link_section, literals_section): Delete.
1013         (ASM_OUTPUT_DEF): Emit the ".literal" directive directly and then
1014         set in_section to NULL.
1015
1016         * config/arm/aof.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Delete.
1017         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, ZERO_INIT_SECTION): Delete.
1018         (COMMON_SECTION): Delete.
1019         (TARGET_ASM_INIT_SECTIONS): Define.
1020         (ASM_OUTPUT_COMMON): Set in_section to NULL rather than calling
1021         the dummy common_section function.
1022         * config/arm/aout.h (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
1023         * config/arm/arm.c (get_jump_table_size): Use pointer comparison
1024         between readonly_data_section and text_section to check whether
1025         read-only data is being put in the text section.
1026         (arm_output_function_epilogue): Use switch_to_section.
1027         (arm_elf_asm_constructor): Likewise.
1028         (thumb_call_via_reg): Replace call to in_text_section with
1029         a comparison between in_section and text_section.
1030         (arm_file_end): Use switch_to_section.
1031         (aof_text_section): Delete in favor of...
1032         (aof_output_text_section_asm_op): ...this new function.
1033         (aof_data_section): Delete in favor of...
1034         (aof_output_data_section_asm_op): ...this new function.
1035         (aof_asm_init_sections): New function.
1036         (zero_init_section): Moved from config/arm/aof.h.
1037         (aof_dump_imports, aof_file_start): Use switch_to_section.
1038         * config/arm/arm.h (thumb_call_via_label): Update comment.
1039         * config/arm/arm-protos.h (aof_text_section, aof_data_section): Delete.
1040         (common_section): Delete.
1041         * config/arm/pe.h (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.
1042         (ASM_DECLARE_OBJECT_NAME): Update the type of save_section.  Use the
1043         global switch_to_section function instead of the old port-local one.
1044         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, DRECTVE_SECTION_FUNCTION)
1045         (SWITCH_TO_SECTION_FUNCTION): Delete.
1046         (drectve_section): Redefine as a macro.
1047         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS):
1048         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use get_named_section and
1049         switch_to_section.
1050
1051         * config/avr/avr.c (progmem_section): New variable.
1052         (avr_output_progmem_section_asm_op): New function.
1053         (avr_asm_init_sections): New function.
1054         (avr_output_addr_vec_elt): Use switch_to_section.
1055         * config/avr/avr.h (progmem_section): Declare.
1056         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
1057         (READONLY_DATA_SECTION): Delete.
1058         (TARGET_ASM_INIT_SECTIONS): Define.
1059         (ASM_OUTPUT_CASE_LABEL): Use switch_to_section.
1060         * config/avr/avr-protos.h (progmem_section): Delete.
1061
1062         * config/bfin/bfin.h (ASM_OUTPUT_LOCAL): Use switch_to_section.
1063
1064         * config/c4x/c4x.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
1065         (INIT_SECTION_FUNCTION, FINI_SECTION_FUNCTION): Delete.
1066
1067         * config/darwin-sections.def: New file.
1068         * config/darwin.c: Define all sections in darwin-sections.def.
1069         (output_objc_section_asm_op, darwin_init_sections): New functions.
1070         (machopic_output_indirection): Use switch_to_section.
1071         (machopic_select_section): Return the selected section rather than
1072         emitting assembly code.  Replace the static function table with
1073         inline conditional expressions.  Update the tests of last_text_section
1074         and move them into the FUNCTION_DECL block.
1075         (machopic_select_rtx_section): Return the selected section rather than
1076         emitting assembly code.
1077         (machopic_asm_out_constructor, machopic_asm_out_destructor)
1078         (darwin_file_end): Use switch_to_section.
1079         * config/darwin.h: Use darwin-sections.def to declare sections.
1080         (INIT_SECTION_ASM_OP): Remove empty definition.
1081         (HAS_INIT_SECTION): Define this instead.
1082         (SECTION_FUNCTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
1083         (READONLY_DATA_SECTION, TARGET_ASM_EXCEPTION_SECTION): Delete.
1084         (TARGET_ASM_EH_FRAME_SECTION): Delete.
1085         (TARGET_ASM_INIT_SECTIONS): Define.
1086         * config/darwin-protos.h (darwin_init_sections): Declare.
1087         (machopic_picsymbol_stub_section, machopic_picsymbol_stub1_section)
1088         (machopic_symbol_stub_section, machopic_symbol_stub1_section): Delete.
1089         (machopic_lazy_symbol_ptr_section, machopic_nl_symbol_ptr_section)
1090         (constructor_section, destructor_section, mod_init_section): Delete.
1091         (mod_term_section): Delete.
1092         (darwin_exception_section, darwin_eh_frame_section): Delete.
1093         (machopic_select_section): Return a section.
1094         (machopic_select_rtx_section): Likewise.
1095         (text_coal_section, text_unlikely_section, text_unlikely_coal_section)
1096         (const_section, const_coal_section, const_data_section): Delete.
1097         (const_data_coal_section, data_coal_section, cstring_section): Delete.
1098         (literal4_section, literal8_section, constructor_section): Delete.
1099         (mod_init_section, mod_term_section, destructor_section): Delete.
1100         (objc_class_section, objc_meta_class_section, objc_category_section)
1101         (objc_class_vars_section, objc_instance_vars_section): Delete.
1102         (objc_cls_meth_section, objc_inst_meth_section): Delete.
1103         (objc_cat_cls_meth_section, objc_cat_inst_meth_section): Delete.
1104         (objc_selector_refs_section, objc_selector_fixup_section): Delete.
1105         (objc_symbols_section, objc_module_info_section): Delete.
1106         (objc_image_info_section, objc_protocol_section): Delete.
1107         (objc_string_object_section, objc_constant_string_object_section)
1108         (objc_class_names_section, objc_meth_var_names_section): Delete.
1109         (objc_meth_var_types_section, objc_cls_refs_section): Delete.
1110         (machopic_lazy_symbol_ptr_section, machopic_nl_symbol_ptr_section)
1111         (machopic_symbol_stub_section, machopic_picsymbol_stub_section)
1112         (darwin_exception_section, darwin_eh_frame_section): Delete.
1113         * config/t-darwin (darwin.o): Depend on config/darwin-sections.def.
1114
1115         * config/frv/frv.c (frv_asm_out_constructor): Use switch_to_section.
1116         (frv_asm_out_destructor): Likewise.
1117         * config/frv/frv.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
1118         (SDATA_SECTION_FUNCTION, FIXUP_SECTION_FUNCTION): Delete.
1119         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use switch_to_section and
1120         get_named_section.
1121         (ASM_OUTPUT_CASE_LABEL): Use switch_to_section.
1122         * config/frv/frv-protos.h (fixup_section, sdata_section, sbss_section)
1123         (data_section): Delete.
1124
1125         * config/i386/cygming.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
1126         (DRECTVE_SECTION_FUNCTION): Delete.
1127         (drectve_section): Redefine as a macro that sets in_section after
1128         emitting the directive.
1129         (SWITCH_TO_SECTION_FUNCTION): Delete.
1130         * config/i386/darwin.h (ASM_OUTPUT_ALIGN): Replace call to
1131         in_text_section with comparison between in_section and text_section.
1132         * config/i386/i386.c (x86_64_elf_select_section): Return the section
1133         rather than emitting assembly code.  Use get_named_section.
1134         (x86_output_aligned_bss, ix86_file_end): Use switch_to_section and
1135         get_named_section.
1136         (machopic_output_stub): Use switch_to_section.
1137         * config/i386/nwld.c (nwld_named_section_asm_out_constructor)
1138         (nwld_named_section_asm_out_destructor): Use get_section and
1139         switch_to_section.
1140
1141         * config/ia64/ia64.c (ia64_select_rtx_section): Return the section
1142         rather than emitting assembly code.
1143         (ia64_rwreloc_select_section): Likewise.
1144         (ia64_rwreloc_select_rtx_section): Likewise.
1145         * config/ia64/ia64-protos.h (sdata_section, sbss_section): Delete.
1146         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
1147         switch_to_section.
1148         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
1149         (SDATA_SECTION_FUNCTION, SBSS_SECTION_FUNCTION): Delete.
1150
1151         * config/iq2000/iq2000.c (iq2000_select_rtx_section): Return the
1152         section rather than emitting assembly code.
1153         (iq2000_select_section): Likewise.
1154         * config/iq2000/iq2000.h (rdata_section, sdata_section): Delete.
1155         (sbss_section): Delete.
1156
1157         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Use switch_to_section
1158         and get_named_section.
1159         * config/m32r/m32r-protos.h (sbss_section, sdata_section): Delete.
1160
1161         * config/mcore/mcore-elf.h (EXPORTS_SECTION_ASM_OP): Delete.
1162         (SUBTARGET_EXTRA_SECTIONS, SUBTARGET_EXTRA_SECTION_FUNCTIONS): Delete.
1163         (EXPORT_SECTION_FUNCTION, SUBTARGET_SWITCH_SECTIONS): Delete.
1164         (MCORE_EXPORT_NAME): Emit the exports directive directly, then set
1165         in_section to NULL.
1166         (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.
1167         (ASM_DECLARE_OBJECT_NAME): Update the type of save_section.  Use the
1168         global switch_to_section function instead of the old port-local one.
1169         * config/mcore/mcore.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
1170         (SWITCH_SECTION_FUNCTION): Delete.
1171         * config/mcore/mcore-pe.h (SUBTARGET_SWITCH_SECTIONS): Delete.
1172         (DRECTVE_SECTION_ASM_OP, SUBTARGET_EXTRA_SECTIONS): Delete.
1173         (SUBTARGET_EXTRA_SECTION_FUNCTIONS, DRECTVE_SECTION_FUNCTION): Delete.
1174         (MCORE_EXPORT_NAME): Emit ".section .drectve" directly, then set
1175         in_section to NULL.
1176         (ASM_DECLARE_OBJECT_NAME): Update the type of save_section.  Use the
1177         global switch_to_section function instead of the old port-local one.
1178         (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.
1179
1180         * config/mips/mips.c (mips_file_start): Update comment.
1181         (mips_output_aligned_bss): Use switch_to_section and get_named_section.
1182         (mips_output_aligned_decl_common): Use switch_to_section.
1183         (mips_select_rtx_section): Return the section rather than emitting
1184         assembly code.  Use get_named_section.
1185         (mips_function_rodata_section: Likewise get_section.
1186         (build_mips16_function_stub): Use switch_to_section.
1187         * config/mips/mips.h (ASM_OUTPUT_IDENT): Use switch_to_section.
1188         (SDATA_SECTION_ASM_OP): Delete.
1189         * config/mips/vxworks.h (EXTRA_SECTIONS): Delete.
1190         (EXTRA_SECTION_FUNCTIONS): Delete.
1191
1192         * config/mmix/mmix.c (mmix_file_start, mmix_file_end)
1193         (mmix_asm_output_aligned_local): Use switch_to_section.
1194
1195         * config/pa/pa.c (som_readonly_data_section, som_one_only_data_section)
1196         (som_one_only_readonly_data_section): New variables.
1197         (pa_output_function_epilogue): Set in_section to NULL instead of
1198         calling forget_section.
1199         (output_deferred_plabels): Use select_section.
1200         (pa_asm_output_mi_thunk): Likewise.  Set in_section to NULL instead
1201         of calling forget_section.
1202         (pa_asm_output_aligned_bss, pa_asm_output_aligned_common)
1203         (pa_asm_output_aligned_local): Use select_section.
1204         (som_text_section_asm_op): Delete in favor of...
1205         (som_output_text_section_asm_op): ...this new function.
1206         (pa_som_asm_init_sections): New function.
1207         (pa_select_section): Return the section rather than emitting
1208         assembly code.
1209         * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
1210         (SOM_READONLY_DATA_SECTION_FUNCTION): Delete.
1211         (SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION): Delete.
1212         (SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): Delete.
1213         * config/pa/pa-protos.h (som_text_section_asm_op): Delete.
1214         (som_readonly_data_section, som_one_only_readonly_data_section)
1215         (som_one_only_data_section, forget_section): Delete.
1216         * config/pa/som.h (TEXT_SECTION_ASM_OP): Delete.
1217         (TARGET_ASM_INIT_SECTIONS): Define.
1218         (READONLY_DATA_SECTION, TARGET_ASM_EXCEPTION_SECTION): Delete.
1219
1220         * config/rs6000/rs6000.c (read_only_data_section): New variable.
1221         (private_data_section, read_only_private_data_section): New variables.
1222         (sdata2_section, toc_section): New variables.
1223         (rs6000_file_start): Use switch_to_section.
1224         (rs6000_assemble_integer): Use comparisons against in_section
1225         instead of calling in_toc_section and in_text_section.  Use
1226         unlikely_text_section_p.
1227         (rs6000_elf_output_toc_section_asm_op): New function, derived
1228         from the old rs6000/sysv4.h toc_section function.
1229         (rs6000_elf_asm_init_sections): New function.
1230         (rs6000_elf_select_rtx_section, rs6000_elf_select_section): Return
1231         the section rather than emitting assembly code.
1232         (machopic_output_stub): Use switch_to_section.
1233         (toc_section): Delete dummy function.
1234         (rs6000_elf_asm_out_constructor, rs6000_elf_asm_out_destructor): Use
1235         switch_to_section and get_section.
1236         (rs6000_xcoff_output_readonly_section_asm_op): New function.
1237         (rs6000_xcoff_output_readwrite_section_asm_op): New function.
1238         (rs6000_xcoff_output_toc_section_asm_op): New function, derived from
1239         the old rs6000/xcoff.h toc_section function.
1240         (rs6000_xcoff_asm_init_sections): New function.
1241         (rs6000_xcoff_select_section, rs6000_xcoff_select_rtx_section): Return
1242         the section rather than emitting assembly code.
1243         (rs6000_xcoff_file_start): Use switch_to_section.
1244         (rs6000_xcoff_file_end): Likewise.
1245         * config/rs6000/rs6000-protos.h (toc_section, sdata_section): Delete.
1246         (sdata2_section, sbss_section, private_data_section): Delete.
1247         (read_only_data_section, read_only_private_data_section): Delete.
1248         * config/rs6000/sysv4.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
1249         (TOC_SECTION_FUNCTION, SDATA_SECTION_FUNCTION, SDATA2_SECTION_FUNCTION)
1250         (SBSS_SECTION_FUNCTION, INIT_SECTION_FUNCTION): Delete.
1251         (FINI_SECTION_FUNCTION): Delete.
1252         (TARGET_ASM_INIT_SECTIONS): Define.
1253         (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
1254         * config/rs6000/xcoff.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
1255         (READ_ONLY_DATA_SECTION_FUNCTION, PRIVATE_DATA_SECTION_FUNCTION)
1256         (READ_ONLY_PRIVATE_DATA_SECTION_FUNCTION, TOC_SECTION_FUNCTION)
1257         (READONLY_DATA_SECTION): Delete.
1258         (TARGET_ASM_INIT_SECTIONS): Define.
1259         (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.  Set in_section
1260         to NULL rather than no_section.
1261         (TARGET_ASM_EXCEPTION_SECTION): Delete.
1262
1263         * config/sh/sh.c (sh_file_start): Use switch_to_section.
1264
1265         * config/sparc/sparc.c (emit_pic_helper): Use switch_to_section.
1266         (sparc_output_deferred_case_vectors): Likewise.  Remove argument
1267         from call to current_function_section.
1268
1269         * config/stormy16/stormy16.c: Include ggc.h and gt-storm16.h.
1270         (bss100_section): New variable.
1271         (xstormy16_asm_output_aligned_common): Use switch_to_section.
1272         (xstormy16_asm_init_sections): New function.
1273         (xstormy16_asm_out_destructor, xstormy16_asm_out_constructor): Use
1274         switch_to_section and get_section.
1275         (xstormy16_output_addr_vec): Use switch_to_section.  Remove argument
1276         from calls to current_function_section.
1277         * config/stormy16/stormy16.h (EXTRA_SECTIONS): Delete.
1278         (XSTORMY16_SECTION_FUNCTION, EXTRA_SECTION_FUNCTIONS): Delete.
1279         (TARGET_ASM_INIT_SECTIONS): Define.
1280         * config/stormy16/stormy16-protos.h (bss100_section): Delete.
1281
1282         * config/svr3.h (ASM_OUTPUT_LOCAL): Use switch_to_section.
1283         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, INIT_SECTION_FUNCTION)
1284         (FINI_SECTION_FUNCTION): Delete.
1285
1286         * config/v850/v850.c: Include gt-v850.h.
1287         (rosdata_section, rozdata_section, tdata_section, zdata_section)
1288         (zbss_section): New variables.
1289         (v850_output_aligned_bss): Use switch_to_section.
1290         (v850_asm_init_sections): New function.
1291         (v850_select_section): Return the section rather than emitting
1292         assembly code.
1293         * config/v850/v850.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
1294         (ZDATA_SECTION_ASM_OP, ZBSS_SECTION_ASM_OP, TDATA_SECTION_ASM_OP)
1295         (ROSDATA_SECTION_ASM_OP, ROZDATA_SECTION_ASM_OP): Delete.
1296         (TARGET_ASM_INIT_SECTIONS): Define.
1297         * config/v850/v850-protos.h (sdata_section, rosdata_section): Delete.
1298         (sbss_section, tdata_section, zdata_section, rozdata_section): Delete.
1299         (zbss_section): Delete.
1300
1301         * config/vax/vaxv.h (ASM_OUTPUT_LOCAL): Use switch_to_section.
1302
1303         * config/vx-common.h (vxworks_exception_section): Delete.
1304         (TARGET_ASM_EXCEPTION_SECTION): Delete.
1305
1306         * config/xtensa/xtensa.c (xtensa_select_rtx_section): Return the
1307         section rather than emitting assembly code.
1308         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Use
1309         switch_to_section.
1310
1311         * Makefile.in (GTFILES): Add $(srcdir)/output.h.
1312         * coretypes.h (section): New union and typedef.
1313         * dbxout.c (FORCE_TEXT): Use switch_to_section.  Remove argument
1314         from call to current_function_section.
1315         (dbxout_function_end, dbxout_init, dbxout_source_file, dbxout_finish)
1316         (dbxout_symbol_location): Use switch_to_section.
1317         * dwarf2out.c (named_section_eh_frame_section): Delete, moving
1318         most of the code into...
1319         (default_eh_frame_section): ...here.  Return a section.
1320         (collect2_eh_frame_section): Delete, moving most of the code into..
1321         (switch_to_eh_frame_section): ...this new function.
1322         (debug_info_section, debug_abbrev_section, debug_aranges_section)
1323         (debug_macinfo_section, debug_line_section, debug_loc_section)
1324         (debug_pubnames_section, debug_str_section, debug_ranges_section): New
1325         variables.
1326         (output_call_frame_info): Call switch_to_eh_frame_section instead of
1327         eh_frame_section.  Use switch_to_section and get_section.
1328         (dwarf2out_begin_prologue): Use switch_to_section.
1329         (AT_string_form): Check the flags in debug_str_section instead of
1330         DEBUG_STR_SECTION_FLAGS.
1331         (output_comp_unit): Use switch_to_section, get_section, and
1332         debug_info_section.
1333         (output_line_info, secname_for_decl): Use unlikely_text_section_p.
1334         (dwarf2out_begin_block): Use switch_to_section.  Remove argument
1335         from call to current_function_section.
1336         (dwarf2out_var_location): Use unlikely_text_section_p.
1337         (dwarf2out_source_line): Use switch_to_section.  Remove argument
1338         from call to current_function_section.
1339         (dwarf2out_start_source_file, dwarf2out_end_source_file)
1340         (dwarf2out_define, dwarf2out_undef: Use switch_to_section and
1341         debug_macinfo_section.
1342         (dwarf2out_init): Initialize the new section variables.  Use them
1343         instead of calls to named_section_flags.  Use switch_to_section.
1344         (output_indirect_string): Use switch_to_section and debug_str_section.
1345         (dwarf2out_finish): Use switch_to_section and the new section
1346         variables.
1347         * except.c (default_exception_section): Return the section instead
1348         of emitting assembly code.
1349         (output_function_exception_table): Use the global exception_section
1350         variable instead of the target hook.  Use switch_to_section.  Remove
1351         argument from call to current_function_section.
1352         * final.c (HAVE_READONLY_DATA_SECTION): Delete.
1353         (shorten_branches): Use pointer comparisons to detect whether the
1354         text section is the same as readonly_data_section.
1355         (profile_function): Use switch_to_section.  Remove argument from
1356         call to current_function_section.
1357         (final_scan_insn): Likewise.  Update use of last_text_section.
1358         * gengtype.c (open_base_files): Add an include of output.h.
1359         * output.h (text_section, data_section, readonly_data_section)
1360         (ctors_section, dtors_section, bss_section, init_section)
1361         (fini_section, sdata_section): Turn into section pointers.
1362         (in_text_section, in_unlikely_text_section, exports_section)
1363         (drectve_section, named_section, mergeable_string_section)
1364         (last_text_section_name): Delete.
1365         (default_exception_section, default_eh_frame_section): Return sections.
1366         (SECTION_DECLARED, SECTION_NAMED): New macros.
1367         (SECTION_MACH_DEP): Bump value.
1368         (section_common, named_section, unnamed_section): New structures.
1369         (unnamed_section_callback): New typedef.
1370         (section): New union.
1371         (sbss_section, exception_section, eh_frame_section): New variables.
1372         (in_section, last_text_section): Turn into section pointers.
1373         (get_unnamed_section, get_section, get_named_section): New functions.
1374         (mergeable_constant_section, function_section): Return a section.
1375         (unlikely_text_section): Likewise.
1376         (current_function_section): Likewise.  Remove the decl argument.
1377         (unlikely_text_section_p, switch_to_section): New functions.
1378         (output_section_asm_op): New function.
1379         (set_named_section_flags, named_section_flags, named_section_real)
1380         (named_section_first_declaration): Delete.
1381         (default_select_section, default_elf_select_section): Return a section.
1382         (default_elf_select_section_1, default_function_rodata_section)
1383         (default_no_function_rodata_section, default_select_rtx_section)
1384         (default_elf_select_rtx_section): Likewise.
1385         * rtl.h (in_data_section): Delete.
1386         * sdbout.c (sdbout_one_type): Use switch_to_section.
1387         * system.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Poison.
1388         (READONLY_DATA_SECTION, TARGET_ASM_EXCEPTION_SECTION): Poison.
1389         (TARGET_ASM_EH_FRAME_SECTION): Poison.
1390         * target-def.h (TARGET_ASM_INIT_SECTIONS): New macro.
1391         (TARGET_ASM_EXCEPTION_SECTION, TARGET_ASM_EH_FRAME_SECTION): Delete.
1392         (TARGET_ASM_OUT): Update after above changes.
1393         * target.h (init_sections): New hook.
1394         (exception_section, eh_frame_section): Delete.
1395         (select_section, select_rtx_section, function_rodata_section): Return
1396         a section rather than emitting assembly code.
1397         * varasm.c (text_section, data_section, readonly_data_section)
1398         (ctors_section, dtors_section, bss_section, init_section)
1399         (fini_section): Turn into section pointers.
1400         (sdata_section, sbss_section, exception_section): New variables.
1401         (eh_frame_section): New variable.
1402         (in_section): Make global and turn into a section pointer.
1403         (last_text_section): Turn into a section pointer.
1404         (unnamed_sections): New variable.
1405         (in_named_name, last_text_section_name): Delete.
1406         (EXTRA_SECTION_FUNCTIONS): Delete.
1407         (in_named_entry): Delete.
1408         (section_htab): New variable, replacing...
1409         (in_named_htab): ...this deleted variable.
1410         (section_entry_eq, section_entry_hash): New functions, based on...
1411         (in_named_entry_eq, in_named_entry_hash): ...these deleted functions.
1412         (get_unnamed_section, get_section): New functions.
1413         (unlikely_text_section): Return a section instead of emitting
1414         assembly code.
1415         (in_text_section, in_unlikely_text_section, in_data_section): Delete.
1416         (get_named_section_flags, named_section_first_declaration): Delete.
1417         (unlikely_text_section_p): New function.
1418         (named_section_real, named_section): Delete.
1419         (get_named_section): New function.
1420         (asm_output_bss, asm_output_aligned_bss): Use switch_to_section.
1421         (function_section): Return a section rather than emitting
1422         assembly code.
1423         (current_function_section): Likewise.  Remove argument.  Use
1424         last_text_section if nonnull, otherwise use function_section.
1425         (default_function_rodata_section): Return a section rather than
1426         emitting assembly code.  Use get_section.
1427         (default_no_function_rodata_section): Return a section rather than
1428         emitting assembly code.
1429         (variable_section): Use switch_to_section and get_named_section.
1430         (mergeable_string_section): Return a section rather than emitting
1431         assembly code.  Use get_section.  Make static.  Don't take special
1432         countermeasures for empty strings.
1433         (mergeable_constant_section): Return a section rather than emitting
1434         assembly code.  Use get_section.
1435         (default_named_section_asm_out_destructor): Use switch_to_section
1436         and get_section.
1437         (default_dtor_section_asm_out_destructor): Use switch_to_section.
1438         (default_named_section_asm_out_constructor): Use switch_to_section
1439         and get_section.
1440         (default_ctor_section_asm_out_constructor): Use switch_to_section.
1441         (assemble_start_function): Likewise.  Set last_text_section to
1442         NULL rather than no_section.  Change the type of save_section.
1443         (assemble_zeros, assemble_variable): Use the section flags to detect
1444         whether or not a section is text.
1445         (assemble_static_space): Use switch_to_section.
1446         (assemble_trampoline_template): Likewise.
1447         (output_constant_def_contents): Use switch_to_section and
1448         get_named_section.
1449         (output_constant_pool_1): Use switch_to_section.  Use the section
1450         flags to see whether sections contain mergeable data.
1451         (init_varasm_once): Initialize section_htab instead of in_named_htab.
1452         Initialize new section variables.  Call TARGET_ASM_INIT_SECTIONS.
1453         (default_elf_asm_named_section): Use SECTION_DECLARED to detect
1454         whether a section has already been declared.
1455         (default_select_section, default_elf_select_section): Return a
1456         section rather than emitting assembly code.
1457         (default_elf_select_section_1): Likewise.  Use bss_section for
1458         SECCAT_BSS if nonnull.  Use get_named_section.
1459         (default_select_rtx_section): Return a section rather than
1460         emitting assembly code.
1461         (default_elf_select_rtx_section): Likewise.  Use get_named_section.
1462         (file_end_indicate_exec_stack): Use switch_to_section and get_section.
1463         (output_section_asm_op, switch_to_section): New functions.
1464         * vmsdbgout.c (vmsdbgout_finish): Use switch_to_section and
1465         get_named_section.
1466
1467         * doc/tm.texi: Expand the introduction to the sections documentation.
1468         (TRAMPOLINE_SECTION): Document new interface.
1469         (SDATA_SECTION_ASM_OP): Document new macro.
1470         (READONLY_DATA_SECTION): Delete.
1471         (SDATA_SECTION_ASM_OP): Document new macro.
1472         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
1473         (TARGET_ASM_INIT_SECTIONS): Document new hook.
1474         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_FUNCTION_RODATA_SECTION)
1475         (TARGET_ASM_SELECT_RTX_SECTION): Adjust for new interface.
1476         (TARGET_EXCEPTION_SECTION, TARGET_EH_FRAME_SECTION): Delete.
1477
1478 2005-12-07  Alan Modra  <amodra@bigpond.net.au>
1479
1480         * gcc.c (init_gcc_specs): Match braces inside conditionally
1481         compiled strings.
1482
1483 2005-12-06  Geoffrey Keating  <geoffk@apple.com>
1484
1485         * config/darwin.h (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): New.
1486
1487 2005-12-06  Aldy Hernandez  <aldyh@redhat.com>
1488
1489         PR C++/24138
1490         * tree.c (integer_all_onesp): Always return true if all bits on.
1491
1492         * testsuite/g++.dg/init/array0.C: New.
1493
1494 2005-12-06  Adrian Straetling  <straetling@de.ibm.com>
1495
1496         * doc/md.texi: Adapt to implementation.
1497
1498 2005-12-06  Andreas Schwab  <schwab@suse.de>
1499
1500         * opts.c (decode_options): Fix typo in message.
1501
1502 2005-12-06  Alan Modra  <amodra@bigpond.net.au>
1503
1504         PR other/13873
1505         * longlong.h: Merge PPC tests from upstream.
1506
1507 2005-12-06  Richard Guenther  <rguenther@suse.de>
1508
1509         * fold-const.c (fold_convert): Do not build and fold
1510         CONVERT_EXPR, but always use NOP_EXPR.
1511
1512 2005-12-06  Jan Beulich  <jbeulich@novell.com>
1513
1514         * config/i386/i386.c (builtin_description): Use MASK_SSE2 for
1515         __builtin_ia32_paddq and __builtin_ia32_subq.
1516         (ix86_init_mmx_sse_builtins): Use MASK_SSE|MASK_3DNOW_A for
1517         __builtin_ia32_pshufw.
1518         * config/i386/i386.md (mmx_adddi3, mmx_subdi3): Depend on TARGET_SSE2.
1519
1520 2005-12-05  James E Wilson  <wilson@specifix.com>
1521
1522         PR target/24934
1523         * opts.c (decode_options): Turn off partitioning if flag_unwind_tables
1524         is set.
1525
1526 2005-12-05  Daniel Berlin  <dberlin@dberlin.org>
1527         
1528         * print-tree.c (print_node): Ditto.
1529         * tree-dfa.c (add_referenced_var): Tag's don't have DECL_INITIAL.
1530         * tree-dump.c (dequeue_and_dump): Check for decl_common structure
1531         before accessing DECL_ARTIFICIAL. 
1532         Handle new tag tree codes.
1533         * tree-flow-inline.h (clear_call_clobbered): Update for tag
1534         changes.
1535         (unmodifiable_var_p): Ditto.
1536         * tree-flow.h (mem_tag_kind): Remove.
1537         (struct var_ann_d): Remove mem_tag_kind member.
1538         * tree-gimple.c (is_gimple_reg): Tags are not gimple registers.
1539         * tree-pretty-print.c (dump_generic_node): Handle memory tags.
1540         * tree-ssa-alias.c (init_alias_info): Update for memory tag changes.
1541         (group_aliases): Ditto.
1542         (setup_pointers_and_addressables): Ditto.
1543         (is_escape_site): Ditto.                                          
1544         (may_alias_p): Ditto.
1545         (create_tag_raw): New function.
1546         (create_memory_tag): Use it.
1547         (dump_alias_info): Update for tags.
1548         (may_be_aliased): Ditto.
1549         (add_type_alias): Ditto.
1550         (new_type_alias): Ditto.
1551         (create_sft): Ditto.
1552         (create_structure_vars): Ditto.
1553         * tree-ssa-ccp.c (get_default_value): Ditto.
1554         * tree-ssa-operands.c (get_expr_operands): Ditto.
1555         (add_stmt_operand): Ditto.
1556         (add_call_clobber_ops): Remove duplicated condition.
1557         * tree-ssa.c (verify_flow_insensitive_alias_info): Update for
1558         tags.
1559         * tree-tailcall.c (suitable_for_tail_opt_p): Ditto.
1560         * tree-vect-transform.c (vect_create_data_ref_ptr): Ditto.
1561         * tree.c (init_ttree): Update structures for new tree codes.
1562         (tree_code_size): Update sizes for new tree codes.
1563         (make_node_stat): Don't try to set common things on minimal
1564         structures.
1565         (tree_node_structure): Update for tags.
1566         (is_global_var): Ditto.
1567         * tree.def: Add new tree codes.
1568         * tree.h (MTAG_P): New macro.
1569         (TREE_MEMORY_TAG_CHECK): Ditto.
1570         (SSA_VAR_P): Update for tags.
1571         (struct tree_memory_tag): New structure.
1572         (MTAG_GLOBAL): New macro.
1573         (union tree_node): Add memory tag member.
1574         * treestruct.def (TS_MEMORY_TAG): New.
1575         
1576 2005-12-05  Dale Johannesen  <dalej@apple.com>
1577
1578         * config/i386/xmmintrin.h (_MM_TRANSPOSE4_PS):  Fix to match
1579         what was approved (PR 24323).
1580
1581 2005-12-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1582
1583         * doc/c-tree.texi (Function Bodies): Remove description of
1584         RETURN_INIT.
1585
1586 2005-12-05  Joseph S. Myers  <joseph@codesourcery.com>
1587
1588         * doc/libgcc.texi (__floatunsisf, __floatunsidf, __floatunsitf,
1589         __floatunsixf, __floatundisf, __floatundidf, __floatunditf,
1590         __floatundixf, __floatuntisf, __floatuntidf, __floatuntitf,
1591         __floatuntixf, __powisf2, __powidf2, __powixf2, __mulsc3,
1592         __muldc3, __multc3, __mulxc3, __divsc3, __divdc3, __divtc3,
1593         __divxc3): Document.
1594
1595 2005-12-05  Geoffrey Keating  <geoffk@apple.com>
1596
1597         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Preserve
1598         previous behaviour.
1599         * config/darwin.h (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Define to
1600         hook_bool_void_false.
1601         (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Define.
1602         * config/darwin.c (darwin_cxx_determine_class_data_visibility): New.
1603
1604         * config/darwin.c (machopic_select_section): It's not defined
1605         as weak if it's only marked as weak_import.
1606         
1607         * config/darwin-protos.h (darwin_cxx_determine_class_data_visibility):
1608         Prototype.
1609
1610         * varasm.c (default_binds_local_p_1): Weakrefs don't bind locally.
1611         A hidden weak object does bind locally.  Strong linkonce data
1612         counts like any other strong symbol for binding.
1613         (weak_finish_1): Don't specially handle weakrefs, they no longer
1614         arrive here.
1615         (assemble_alias): Weakrefs can't be TREE_PUBLIC yet.
1616         * c-common.c (handle_alias_attribute): Allow static aliases
1617         of variables.
1618         (handle_weakref_attribute): Don't call declare_weak on weakrefs.
1619         * gthr-dce.h: Make weakrefs static.
1620         * gthr-tpf.h: Likewise.
1621         * gthr-solaris.h: Likewise.
1622         * gthr-posix.h: Likewise.
1623         * gthr-posix95.h: Likewise.
1624         * config/darwin.c (darwin_encode_section_info): static weakref
1625         variables are not necessarily defined in this translation unit.
1626         * doc/extend.texi (Function Attributes): Mention that an alias
1627         attribute creates a definition for the thing it's attached to.
1628         Change the documentation for weakref to say that the thing
1629         it's attached to must be static.
1630
1631         * config/rs6000/host-darwin.c (segv_handler): Unblock SEGV so
1632         we don't go into an infinite loop.
1633
1634 2005-12-05  Paolo Bonzini  <bonzini@gnu.org>
1635
1636         * config/rs6000/predicates.md (logical_const_operand): Split
1637         out of logical_operand.
1638         (logical_operand): Use it.
1639         * config/rs6000/rs6000.md (cmp -> xor peephole2): Use
1640         logical_const_operand.
1641
1642 2005-12-05  Jan Beulich  <jbeulich@novell.com>
1643
1644         * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_CMPNEPS
1645         and IX86_BUILTIN_CMPNESS.
1646         (ix86_init_mmx_sse_builtins): Remove ti_ftype_ti_ti.
1647         * config/i386/i386.h (ALIGN_MODE_128): Don't check TFmode explicitly.
1648         * config/i386/i386.md (movti_internal): Correct type attribute.
1649         Simplify mode attribute.
1650         (movti_rex64, movsf_1, movdf_nointeger, movdf_integer, movtf_internal):
1651         Correct type attribute.
1652         (absxf2): Correct operator.
1653         * config/i386/mmx.md (mov<mode>_internal_rex64, mov<mode>_internal,
1654         movv2sf_internal_rex64, movv2sf_internal): Correct type attribute.
1655         * config/i386/sse.md (mov<mode>_internal, movv2df_internal): Simplify
1656         mode attribute.
1657         (sse2_vmsqrtv2df2): Correct mode attribute.
1658
1659 2005-12-05  Jan Beulich  <jbeulich@novell.com>
1660
1661         * config/ia64/ia64.md (rotlsi3_internal): Don't split if rotating by
1662         16 bits. Provide insn pattern for this case.
1663
1664 2005-12-05  Jan Beulich  <jbeulich@novell.com>
1665
1666         * libgcc2.c (__popcountSI2): Don't use wide type for iterator and
1667         result.
1668         (__popcountDI2): Likewise.
1669
1670 2005-12-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1671
1672         PR target/25166
1673         * pa/pa.c (pa_hpux_init_libfuncs): Add _U_Qfcnvxf_usgl_to_quad and
1674         _U_Qfcnvxf_udbl_to_quad to set of initialized libfuncs.
1675         * pa/quadlib.c (_U_Qfcnvxf_usgl_to_quad, _U_Qfcnvxf_udbl_to_quad): New
1676         functions.
1677
1678 2005-12-04  Joseph S. Myers  <joseph@codesourcery.com>
1679
1680         * c-typeck.c (null_pointer_constant_p): New function.
1681         (build_conditional_expr, build_c_cast, convert_for_assignment,
1682         build_binary_op): Use it.
1683
1684 2005-12-04  Joseph S. Myers  <joseph@codesourcery.com>
1685
1686         * c-common.c (binary_op_error): Do not allow NOP_EXPR.
1687         (c_common_truthvalue_conversion): Handle NOP_EXPR the same as
1688         CONVERT_EXPR.
1689         (check_function_arguments_recurse): Allow both NOP_EXPR and
1690         CONVERT_EXPR but check conversions preserve precision.
1691         * c-typeck.c (pointer_diff): Allow both NOP_EXPR and CONVERT_EXPR
1692         but check conversions preserve precision.
1693         (build_unary_op): Don't allow NOP_EXPR.  Use gcc_unreachable () in
1694         default case.
1695
1696 2005-12-04  Roger Sayle  <roger@eyesopen.com>
1697
1698         PR c/7776
1699         * common.opt (Wstring-literal-comparison): New command line option.
1700         * c-opts.c (c_common_handle_option): Set it with -Wall.
1701         * c-typeck.c (parser_build_binary_op): Issue warning if either
1702         operand of a comparison operator is a string literal, except for
1703         testing equality or inequality against NULL.
1704
1705         * doc/invoke.texi: Document new -Wstring-literal-comparison option.
1706
1707 2005-12-03  Joseph S. Myers  <joseph@codesourcery.com>
1708
1709         * c-common.c (c_sizeof_or_alignof_type): Use fold_convert instead
1710         of building a NOP_EXPR.
1711         (c_alignof_expr): Likewise.  Handle CONVERT_EXPR the same as
1712         NOP_EXPR.
1713         * c-convert.c (convert): Use fold_convert instead of building
1714         NOP_EXPRs and CONVERT_EXPRs directly.  Don't special case
1715         c_objc_common_truthvalue_conversion returning a NOP_EXPR.  Remove
1716         #if 0 code.
1717         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Handle
1718         NOP_EXPR the same as CONVERT_EXPR.
1719         * c-typeck.c (build_function_call): Use fold_convert instead of
1720         building a NOP_EXPR directly.
1721         (build_compound_expr): Handle NOP_EXPR the same as CONVERT_EXPR.
1722
1723 2005-12-03  Alan Modra  <amodra@bigpond.net.au>
1724
1725         PR rtl-optimization/25197
1726         * dwarf2out.c (dwarf2out_frame_debug_expr <rule 12>): Assert we
1727         have a reg.
1728
1729 2005-12-02  Stuart Hastings  <stuart@apple.com>
1730
1731         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Remove -fpic
1732         warning.
1733
1734 2005-12-03  Joseph S. Myers  <joseph@codesourcery.com>
1735
1736         * c-typeck.c (default_function_array_conversion,
1737         build_function_call): Allow for CONVERT_EXPR as well as NOP_EXPR.
1738         (build_conditional_expr): Apply integer_zerop to orig_op1 and
1739         orig_op2.  Don't check them for NOP_EXPR.
1740         (build_c_cast, convert_for_assignment): Don't check for NOP_EXPR
1741         around integer zero.
1742
1743 2005-12-03  Alan Modra  <amodra@bigpond.net.au>
1744
1745         * config/rs6000/rs6000.c (rs6000_stack_t): Remove toc_save_p,
1746         toc_save_offset, toc_size, lr_size.
1747         (rs6000_stack_info): Use memset rather than bss struct copy to init.
1748         Test rs6000_ra_ever_killed last in condition setting lr_save_p.
1749         Adjust for removal of unused rs6000_stack_t fields.
1750         (debug_stack_info): Adjust.
1751         (rs6000_ra_ever_killed): Expand FIND_REG_INC_NOTE.  Test for calls
1752         first, and don't bother checking for set/inc of lr on sibcalls.
1753         (rs6000_emit_epilogue): Tidy code restoring stack pointer.
1754
1755 2005-12-02  Jakub Jelinek  <jakub@redhat.com>
1756
1757         PR target/25199
1758         * config/i386/i386.md (movqi_1): Only force imovx for alternative
1759         5 if operand 1 is not aligned.  Undo previous constraint change.
1760         * config/i386/predicates.md (aligned_operand): Use MEM_ALIGN.
1761
1762 2005-12-02  Richard Guenther  <rguenther@suse.de>
1763
1764         * tree.h (build): Remove prototype.
1765         (build, _buildN1, _buildN2, _buildC1, _buildC2): Remove macros.
1766         * tree.c (build): Remove.
1767         (build0_stat): Update comment.
1768
1769 2005-12-02  Richard Guenther  <rguenther@suse.de>
1770
1771         * tree-ssa-loop-im.c (schedule_sm): Use buildN instead of build.
1772         * tree-complex.c (update_complex_assignment, expand_complex_div_wide):
1773         Likewise.
1774         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref,
1775         maybe_fold_offset_to_component_ref): Likewise.
1776         * tree-ssa-dom.c (thread_across_edge,
1777         simplify_rhs_and_lookup_avail_expr,
1778         find_equivalent_equality_comparison, record_equivalences_from_stmt):
1779         Likewise.
1780         * gimple-low.c (lower_function_body, lower_return_expr): Likewise.
1781         * tree-eh.c (do_return_redirection, honor_protect_cleanup_actions,
1782         lower_try_finally_switch): Likewise.
1783         * tree-if-conv.c (add_to_dst_predicate_list,
1784         replace_phi_with_cond_modify_expr, ifc_temp_var): Likewise.
1785         * gimplify.c (internal_get_tmp_var, gimple_build_eh_filter,
1786         voidify_wrapper_expr, build_stack_save_restore, gimplify_bind_expr,
1787         gimplify_return_expr, gimplify_decl_expr, gimplify_switch_expr,
1788         gimplify_case_label_expr, gimplify_exit_expr, gimplify_self_mod_expr,
1789         shortcut_cond_r, shortcut_cond_expr, gimplify_cond_expr,
1790         gimplify_init_ctor_eval, gimplify_init_constructor,
1791         gimplify_variable_sized_compare, gimplify_boolean_expr,
1792         gimplify_cleanup_point_expr, gimple_push_cleanup, gimplify_target_expr,
1793         gimplify_expr, gimplify_body, gimplify_function_tree,
1794         force_gimple_operand): Likewise.
1795         * tree-ssa-pre.c (create_expression_by_pieces): Likewise.
1796         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for,
1797         mx_register_decls): Likewise.
1798         * tree-nested.c (init_tmp_var, save_tmp_var, get_static_chain,
1799         get_frame_field, finalize_nesting_tree_1): Likewise.
1800         * tree-inline.c (setup_one_parameter): Likewise.
1801         * tree-vect-transform.c (vectorizable_condition): Likewise.
1802         * tree-outof-ssa.c (insert_copy_on_edge, insert_backedge_copies):
1803         Likewise.
1804         * tree-profile.c (tree_gen_edge_profiler): Likewise.
1805         * tree-cfg.c (factor_computed_gotos, gimplify_val): Likewise.
1806         * c-parser.c (c_parser_if_body, c_parser_switch_statement): Likewise.
1807         * tree-chrec.h (build_polynomial_chrec): Likewise.
1808
1809 2005-12-02  Richard Guenther  <rguenther@suse.de>
1810
1811         * config/alpha/alpha.c (alpha_va_start, alpha_gimplify_va_arg_1i,
1812         alpha_gimplify_va_arg): Use buildN and fold_buildN where applicable.
1813         * config/frv/frv.c (frv_expand_builtin_va_start): Likewise.
1814         * config/s390/s390.c (s390_va_start, s390_gimplify_va_arg): Likewise.
1815         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
1816         * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
1817         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg):
1818         Likewise.
1819         * config/sh/sh.c (sh_va_start, sh_gimplify_va_arg_expr,
1820         sh_adjust_unroll_max): Likewise.
1821         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
1822         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
1823         * config/xtensa/xtensa.c (xtensa_va_start, xtensa_gimplify_va_arg_expr):
1824         Likewise.
1825         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
1826         Likewise.
1827         * config/mips/mips.c (mips_va_start, mips_gimplify_va_arg_expr):
1828         Likewise.
1829
1830 2005-12-02  Richard Guenther  <rguenther@suse.de>
1831
1832         * tree-vrp.c (build_assert_expr_for, process_assert_insertions_for,
1833         simplify_cond_using_ranges): Use buildN instead of build.
1834         * tree-tailcall.c (adjust_accumulator_values,
1835         adjust_return_value): Likewise.
1836         * tree-sra.c (generate_one_element_ref, generate_copy_inout,
1837         generate_element_copy, generate_element_zero,
1838         generate_one_element_init): Likewise.
1839         * tree-ssa-forwprop.c (forward_propagate_into_cond_1): Likewise.
1840         * lambda-code.c (gcc_loop_to_lambda_loop, lbv_to_gcc_expression,
1841         lle_to_gcc_expression, lambda_loopnest_to_gcc_loopnest,
1842         perfect_nestify): Likewise.
1843
1844 2005-12-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1845
1846         * pa.c (pa_secondary_reload): Revise initialization of variable regno.
1847
1848 2005-12-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1849
1850         * ggc.h (GGC_RESIZEVEC): New.
1851
1852 2005-12-02  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1853
1854         * gcc.c (execute): Improve readability.
1855
1856 2005-12-02  Richard Guenther  <rguenther@suse.de>
1857
1858         * tree-cfg.c (mark_used_vars): New function.
1859         (dump_function_to_file): Dump only used VAR_DECLs.
1860
1861 2005-12-02  Richard Guenther  <rguenther@suse.de>
1862
1863         * convert.c (convert_to_integer): Fix compare for nonpositive
1864         constant to use tree_int_cst_sgn <= 0.
1865
1866 2005-12-02  Richard Guenther  <rguenther@suse.de>
1867
1868         * convert.c (convert_to_integer): Use fold_convert instead
1869         of fold_build1 (NOP_EXPR, ...).  Use tree_int_cst_sgn < 0
1870         instead of comparing against 0.  Use build_int_cst instead
1871         of converting integer_zero_node.
1872
1873 2005-12-02  Richard Guenther  <rguenther@suse.de>
1874
1875         * tree-pretty-print.c (op_symbol): Handle LROTATE_EXPR
1876         and RROTATE_EXPR.
1877  
1878 2005-12-02  Alan Modra  <amodra@bigpond.net.au>
1879
1880         PR target/21017
1881         * combine.c (simplify_logical <IOR>): Simplify more patterns to
1882         rotates.
1883
1884 2005-12-02  Alan Modra  <amodra@bigpond.net.au>
1885
1886         PR middle-end/25176
1887         * function.c (expand_function_end): Emit blockage for unwinder
1888         after return label.
1889
1890 2005-12-01  Roger Sayle  <roger@eyesopen.com>
1891
1892         * tree.h (TREE_OVERFLOW): Make this flag/predicate specific to
1893         constant nodes, i.e. INTEGER_CST, REAL_CST, etc...
1894         * tree-vrp.c (compare_values): Only check TREE_OVERFLOW for
1895         integer constant comparisons.
1896
1897 2005-12-02  Jon Grimm  <jgrimm2@us.ibm.com>
1898             Janis Johnson  <janis187@us.ibm.com>
1899             David Edelsohn  <dje@watson.ibm.com>
1900             Ben Elliston  <bje@au.ibm.com>
1901
1902         * dfp.h, dfp.c: New files.
1903         * Makefile.in (DECNUM, DECNUMINC, LIBDECNUMBER): New variables.
1904         (DECNUM_H): Likewise.
1905         (LIBDEPS, LIBS, BACKEND): Append $(LIBDECNUMBER).
1906         (INCLUDES): Append $(DECNUMINC).
1907         (OBJS-common): Add dfp.o.
1908         (dfp.o): New rule.
1909         * real.h (EXP_BITS): Pinch one bit to ..
1910         (struct real_value): Add decimal field.
1911         (real_format): Change table size, update documentation.
1912         (REAL_MODE_FORMAT): Update for to handle float, decimal float.
1913         (real_from_string3): Declare.
1914         (decimal_single_format): Declare.
1915         (decimal_double_format): Declare.
1916         (decimal_quad_format): Declare.
1917         (REAL_VALUE_TO_TARGET_DECIMAL32): New.
1918         (REAL_VALUE_TO_TARGET_DECIMAL64): New.
1919         (REAL_VALUE_TO_TARGET_DECIMAL128): New.
1920         * real.c: Include dfp.h.
1921         (normalize): Early return for decimal floats.
1922         (do_add): Zero decimal field.
1923         (do_compare): Call do_decimal_compare for decimal floats.
1924         (do_fix_trunc): Likewise, call decimal_do_fix_trunc.
1925         (real_arithmetic): Call decimal_real_arithmetic for decimal
1926         floating point operands.
1927         (real_identical): If a and b are of differing radix, return false.
1928         (real_to_integer): Call decimal_real_to_integer if the value is a
1929         decimal float.
1930         (real_to_integer2): Likewise, call decimal_real_to_integer2.
1931         (real_to_decimal): Likewise, call decimal_real_to_decimal.
1932         (real_to_hexadecimal): Place "N/A" in the return string for
1933         decimal float.
1934         (real_from_string3): New variant, given a mode.
1935         (real_maxval): Use decimal_real_maxval for decimal floats.
1936         (round_for_format): Use decimal_round_for_format for decimals.
1937         (real_convert): Use decimal_real_convert where appropriate.
1938         (significand_size): Handle base 10.
1939         (encode_decimal_single, decode_decimal_single,
1940         encode_decimal_double, decode_decimal_double, encode_decimal_quad,
1941         decode_decimal_quad): New functions.
1942         (decimal_single_format): New.
1943         (decimal_double_format): New.
1944         (decimal_quad_format): New.
1945         * machmode.def: Add SD, DD and TD decimal floating point modes.
1946         * machmode.h (FLOAT_MODE_P, SCALAR_FLOAT_MODE_P, MODES_WIDEN_P):
1947         Include MODE_DECIMAL_FLOAT.
1948         (DECIMAL_FLOAT_MODE_P): New.
1949         * mode-classes.def (MODE_DECIMAL_FLOAT): New mode class.
1950         * genmodes.c (struct mode_data): Add counter field.
1951         (struct mode_data): Update comment for format.
1952         (blank_mode): Initialise counter field.
1953         (new_mode): Increment counter field for each mode defined.
1954         (complete_mode): Handle MODE_DECIMAL_FLOAT, update check for mode
1955         using a format.
1956         (make_complex_modes): Handle modes containing `D'.
1957         (DECIMAL_FLOAT_MODE, FRACTIONAL_DECIMAL_FLOAT_MODE): New.
1958         (make_decimal_float_mode): New.
1959         (reset_float_format): Handle MODE_DECIMAL_FLOAT.
1960         (cmp_modes): Compare counter field if other characteristics
1961         similar.
1962         (emit_real_format_for_mode): Support formats for decimal floats.
1963         * doc/rtl.texi (Machine Modes): Document SD, DD and TDmodes.
1964         Document MODE_DECIMAL_FLOAT.
1965
1966 2005-12-02  Alan Modra  <amodra@bigpond.net.au>
1967
1968         * simplify-rtx.c (simplify_plus_minus): Do simplify constants.
1969         Delete dead code.
1970
1971 2005-12-01  Richard Henderson  <rth@redhat.com>
1972
1973         * optabs.c (expand_vec_cond_expr): Use EXPAND_NORMAL.
1974
1975 2005-12-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1976
1977         * builtins.def (BUILT_IN_PUTC, BUILT_IN_PUTC_UNLOCKED): New.
1978
1979         * config/pa/pa.c (pa_init_builtins): If we detect
1980         DONT_HAVE_FPUTC_UNLOCKED, set builtin fputc_unlocked to
1981         putc_unlocked.
1982
1983 2005-12-01  Richard Guenther  <rguenther@suse.de>
1984
1985         * fold-const.c (fold_binary): Use fold_build2, not
1986         fold (build (...)).
1987
1988 2005-12-01  Nathan Sidwell  <nathan@codesourcery.com>
1989
1990         * config/ms1/ms1.c (ms1_reorg_hazard): Don't count noop moves.
1991
1992         * vec.h (VEC_block_remove): New.
1993
1994 2005-12-01  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1995
1996         PR c/13384
1997         * c-common.c (lvalue_error): Fix wording.
1998
1999 2005-12-01  Richard Guenther  <rguenther@suse.de>
2000
2001         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Fix
2002         thinko in last patch.
2003
2004 2005-12-01  Geoffrey Keating  <geoffk@apple.com>
2005
2006         * config/t-slibgcc-darwin (SHLIB_LINK): Use -single_module rather
2007         than -flat_namespace.
2008
2009 2005-12-01  Ben Elliston  <bje@au.ibm.com>
2010
2011         * mklibgcc.in: Parameterise the script to build soft float
2012         functions by iterating over each type, rather than cloning the
2013         code for each type.
2014
2015 2005-11-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2016
2017         PR middle-end/25158
2018         * builtins.c (fold_builtin_fputs): Defer check for missing
2019         replacement functions.
2020
2021 2005-11-30  Kean Johnston  <jkj@sco.com>
2022
2023         * config/i386/i386.c: Check the value of SUPPORTS_ONE_ONLY, not
2024         simply its presense in case targets #define SUPPORTS_ONE_ONLY 0.
2025
2026 2005-11-30  Richard Guenther  <rguenther@suse.de>
2027
2028         PR tree-optimization/22501
2029         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): New
2030         function split out from ...
2031         (forward_propagate_addr_expr): ... here.  Use it to propagate
2032         ADDR_EXPRs to all uses.
2033
2034 2005-11-30  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2035
2036         * tree.h (CASE_FLT_FN, CASE_INT_FN): New macros.
2037         * builtins.c (expand_builtin_mathfn): Use them.
2038         (expand_builtin_mathfn_2): Likewise.
2039         (expand_builtin_mathfn_3): Likewise.
2040         (expand_builtin_int_roundingfn): Likewise.
2041         (expand_builtin): Likewise.
2042         (integer_valued_real_p): Likewise.
2043         (fold_builtin_int_roundingfn): Likewise.
2044         (fold_builtin_bitop): Likewise.
2045         (fold_builtin_logarithm): Likewise.
2046         (fold_builtin_1): Likewise.
2047         * convert.c (convert_to_integer): Likewise.
2048         * fold-const.c (negate_mathfn_p): Likewise.
2049         (tree_expr_nonnegative_p): Likewise.
2050
2051 2005-11-30  Dale Johannesen  <dalej@apple.com>
2052             Andrew Pinski  <pinskia@physics.uc.edu>
2053
2054         * combine.c (find_split_point):  Sign extend bitmask
2055         when changing bitfield assignment to IOR of AND.
2056
2057 2005-11-30  Nathan Sidwell  <nathan@codesourcery.com>
2058
2059         * config/ms1/ms1.md (decrement_and_branch_until_zero): Add early
2060         clobber to scratch reg.
2061         (*decrement_and_branch_until_zero_no_clobber): Remove.
2062         (decrement_and_branch peephole): Add dummy scratch reg to pattern.
2063         (mulhish3): Use TARGET_MS1_16_003, TARGET_MS2.
2064         * config/ms1/ms1.opt (mmul): Remove.
2065         * config/ms1/ms1.h (ASM_SPEC): Cope with uppercase arch names.
2066         (LINK_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Default to 16-002.
2067
2068 2005-11-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2069             Bernd Schmidt  <bernd.schmidt@analog.com>
2070
2071         * pa/predicates.md (symbolic_operand): Add comment.
2072         * pa/pa.md (reload_insi_r1, reload_indi_r1): New reload expanders.
2073         * pa/pa-protos.h (pa_secondary_reload_class): Delete.
2074         * pa/pa.c (TARGET_SECONDARY_RELOAD): Define.
2075         (pa_secondary_reload_class): Delete.
2076         (pa_secondary_reload): New function derived from SECONDARY_RELOAD_CLASS
2077         and pa_secondary_reload_class.  Reorder some checks.  Update inline
2078         copy of symbolic operand.
2079         * pa/pa.h (SECONDARY_RELOAD_CLASS): Delete.
2080
2081 2005-11-30  Nathan Sidwell  <nathan@codesourcery.com>
2082
2083         * loop-doloop.c (add_test): Only add jump notes if we did emit a
2084         jump.
2085
2086 2005-11-30  Jeff Law  <law@redhat.com>
2087
2088         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Properly
2089         handle SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
2090
2091 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
2092
2093         * config/ia64/ia64.c (ia64_expand_tls_address): Add ORIG_OP1 argument.
2094         Move ADDEND_{HI,LO} computation into TLS_MODEL_INITIAL_EXEC case.
2095         (ia64_expand_move): Adjust caller.
2096
2097         * config/ia64/ia64.c (ia64_expand_atomic_op): Only use
2098         fetchadd{4,8}.acq instruction if CODE is PLUS or MINUS, for MINUS
2099         negate VAL.
2100
2101 2005-11-30  Paolo Bonzini  <bonzini@gnu.org>
2102
2103         * simplify-rtx.c (simplify_plus_minus): Remove final parameter.
2104         Always produce an output if we can remove NEGs or canonicalize
2105         (minus (minus ...)) expressions.  Provide a fast path for the
2106         two-operand case.
2107         (simplify_gen_binary): Do not call simplify_plus_minus.
2108         (simplify_binary_operation_1): Reassociate at the end of the
2109         function.
2110
2111 2005-11-29  Evan Cheng  <evan.cheng@apple.com>
2112
2113         * config/i386/xmmintrin.h (_MM_TRANSPOSE4_PS): Rewrite using high/low
2114         moves and unpack to speed up.
2115
2116 2005-11-29  David S. Miller  <davem@sunset.davemloft.net>
2117
2118         * config/sparc/sparc.c (gen_compare_reg): Kill 2nd and 3rd
2119         argument, they are always sparc_compare_op0 and sparc_compare_op1.
2120         (gen_v9_scc): Update callers.
2121         * config/sparc/sparc.md: Likewise.
2122         * config/sparc/sparc-protos.h: Update extern declaration.
2123
2124         * tree-into-ssa.c (rewrite_into_ssa): Fix comment typo.
2125
2126 2005-11-29  Andrew Pinski  <pinskia@physics.uc.edu>
2127
2128         * fold-const.c (negate_expr) <case BIT_NOT_EXPR>: Add break after
2129         the if.
2130
2131 2005-11-29  Andrew Pinski  <pinskia@physics.uc.edu>
2132
2133         * fold-const.c (negate_expr_p): Return true for BIT_NOT_EXPR.
2134         (fold_unary) <case NEGATE_EXPR>: Move -(~a) transformation to ...
2135         (negate_expr): Here.
2136
2137 2005-11-29  Ben Elliston  <bje@au.ibm.com>
2138
2139         * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN):
2140         Fix typo in comment.
2141
2142 2005-11-29  Ben Elliston  <bje@au.ibm.com>
2143
2144         * Makefile.in (clean-target): Depend on clean-target-libgcc.
2145         (clean-target-libgcc): Import rule from the top-level Makefile.in.
2146
2147 2005-11-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2148
2149         PR middle-end/20109
2150         PR middle-end/25120
2151         * builtins.c (init_target_chars): New.
2152         (expand_builtin_printf, expand_builtin_fprintf,
2153         expand_builtin_sprintf, fold_builtin_sprintf,
2154         maybe_emit_sprintf_chk_warning, fold_builtin_sprintf_chk,
2155         fold_builtin_snprintf_chk, fold_builtin_printf,
2156         fold_builtin_fprintf): Check for matching format strings using
2157         the target charset.
2158
2159 2005-11-29  Paul Brook  <paul@codesourcery.com>
2160
2161         * config.gcc: Do not use fixproto on m68k-elf.
2162
2163 2005-11-28  Roger Sayle  <roger@eyesopen.com>
2164
2165         * expmed.c (div_cost): Replace with...
2166         (sdiv_cost, udiv_cost): New.
2167         (init_expmed): Initialize sdiv_cost and udiv_cost, not div_cost.
2168         Rename the div and mod fields, used to initialize sdiv_pow2_cheap
2169         and smod_pow2_cheap, to sdiv_32 and smod_32 to avoid confusion.
2170         (expand_divmod): Replace use of div_cost with either sdiv_cost
2171         or udiv_cost depending upon the signedness of the operation.
2172
2173 2005-11-28  Alexandre Oliva  <aoliva@redhat.com>
2174
2175         PR libfortran/24991
2176         * config/darwin.c (machopic_indirection_name,
2177         machopic_output_indirection): Follow transparent alias chain.
2178
2179 2005-11-28  Alexandre Oliva  <aoliva@redhat.com>
2180
2181         * varasm.c (ultimate_transparent_alias_target): Add comment.
2182
2183 2005-11-28  Kazu Hirata  <kazu@codesourcery.com>
2184
2185         * config/m68k/m68k.c (notice_update_cc): Use SET_DEST and
2186         SET_SRC instead of XEXP where appropriate.
2187
2188 2005-11-28  Joseph S. Myers  <joseph@codesourcery.com>
2189
2190         * config/fp-bit.c (isnan, isinf, pack_d, unpack_d): Use
2191         __builtin_expect.
2192
2193 2005-11-28  Joseph S. Myers  <joseph@codesourcery.com>
2194
2195         * config/fp-bit.h (LSHIFT): Take shift count parameter.
2196         * config/fp-bit.c (_fpadd_parts): Shift in one go instead of one
2197         bit at a time.
2198
2199 2005-11-28  Bernd Schmidt  <bernd.schmidt@analog.com>
2200
2201         * config/bfin/bfin.c (bfin_secondary_reload): Renamed from
2202         secondary_input_reload_class, made static.  Adapt to new
2203         infrastructure.
2204         (secondary_output_reload_class): Delete.
2205         (TARGET_SECONDARY_RELOAD): New macro.
2206         * config/bfin/bfin.h (SECONDARY_INPUT_RELOAD_CLASS,
2207         SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
2208
2209 2005-11-28  Nathan Sidwell  <nathan@codesourcery.com>
2210
2211         PR c++/21166
2212         * c-decl.c (finish_struct):  Only set DECL_PACKED on a field
2213         when its natural alignment is > BITS_PER_UNIT.
2214         * stor-layout.c (finalize_type_size): Revert my patch of 2005-08-08.
2215         * c-common.c (handle_packed_attribute): Ignore packing on a field
2216         whose type is naturally char aligned.
2217
2218 2005-11-28  Richard Guenther  <rguenther@suse.de>
2219
2220         * c-common.c (strict_aliasing_warning): Handle all
2221         component-ref like accesses.
2222
2223 2005-11-28  Roger Sayle  <roger@eyesopen.com>
2224             Uros Bizjak  <uros@kss-loka.si>
2225
2226         PR middle-end/20219
2227         * fold-const.c (fold binary) <RDIV_EXPR>: Optimize
2228         sin(x)/tan(x) as cos(x) and tan(x)/sin(x) as 1.0/cos(x)
2229         when flag_unsafe_math_optimizations is set and
2230         we don't care about NaNs or Infinities.
2231
2232         Move x/expN(y) and x/pow(y,z) transformation into common
2233         flag_unsafe_math_optimizations section.
2234
2235 2005-11-27  Mark Mitchell  <mark@codesourcery.com>
2236
2237         * gcc.c (main): Change type of argv to "char **".
2238
2239 2005-11-28  Alan Modra  <amodra@bigpond.net.au>
2240
2241         * doc/invoke.texi (powerpc msdata-data): Static data doesn't go in
2242         small data sections.
2243         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Make global.
2244         * config/rs6000/rs6000-protos.h: (rs6000_elf_in_small_data_p): Declare.
2245         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Rename to..
2246         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ..this, adding extra parm.  Don't
2247         output locals to sbss if !rs6000_elf_in_small_data_p.
2248         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above.
2249
2250 2005-11-28  Alan Modra  <amodra@bigpond.net.au>
2251
2252         PR target/24997
2253         * config/rs6000/rs6000.c (legitimate_indexed_address_p): Allow pattern
2254         generated by reload.
2255         * config/rs6000/predicates.md (indexed_or_indirect_operand): Use
2256         indexed_or_indirect_address.
2257         (indexed_or_indirect_address): Don't test for base reg.  Call
2258         address_operand last.  Make it a special predicate.
2259
2260 2005-11-27  Kazu Hirata  <kazu@codesourcery.com>
2261
2262         * config/m68k/m68k.c (notice_update_cc): Remove useless code.
2263
2264 2005-11-27  Andrew Pinski  <pinskia@physics.uc.edu>
2265
2266         PR middle-end/24575
2267         * fold-const.c (negate_expr_p): Add case for signed divides if overflow
2268         is undefined.
2269         (negate_expr): Likewise.
2270
2271 2005-11-27  Andreas Schwab  <schwab@suse.de>
2272
2273         * config/m68k/m68k.c: Reindent and fix whitespace, remove
2274         redundant parens.
2275
2276 2005-11-27  Steven Bosscher  <stevenb@suse.de>
2277
2278         * cfgcleanup.c (try_crossjump_to_edge): Always split SRC2 if it
2279         has EH predecessor edges.
2280
2281 2005-11-26  Eric Christopher  <echristo@apple.com>
2282
2283         * config/i386/i386.md (*zero_extendqihi2_movzbw): Avoid partial
2284         register stalls by zero extending to the full register.
2285
2286 2005-11-27  Joseph S. Myers  <joseph@codesourcery.com>
2287
2288         * config/floatunsisf.c, config/floatunsidf.c,
2289         config/floatunsixf.c, config/floatunsitf.c: New files.
2290         * config/ia64/t-hpux: Add floatunsitf.c.
2291         * config/ia64/ia64.c (ia64_init_libfuncs): Use
2292         _U_Qfcnvxuf_dbl_to_quad for unsigned DImode-to-TFmode conversion.
2293
2294 2005-11-26  Richard Henderson  <rth@redhat.com>
2295
2296         * c-lex.c (pragma_lex): Rename from c_lex.
2297         * c-pch.c: Update for pragma_lex rename.
2298         * c-pragma.c, c-pragma.h, config/ia64/ia64-c.c: Likewise.
2299         * config/m32c/m32c-pragma.c, config/darwin-c.c: Likewise.
2300         * config/rs6000/rs6000-c.c, config/c4x/c4x-c.c: Likewise.
2301         * config/sol2-c.c, config/v850/v850-c.c: Likewise.
2302         * doc/tm.texi: Likewise.
2303
2304 2005-11-26  Andrew Pinski  <pinskia@physics.uc.edu>
2305
2306         PR middle-end/23669
2307         * fold-const.c (fold_binary): Convert -A/-B to A/B for signed types
2308         when overflow is undefined.
2309
2310 2005-11-26  Hans-Peter Nilsson  <hp@axis.com>
2311
2312         * doc/md.texi (Insn Canonicalizations): Refer to the
2313         function commutative_operand_precedence for further rules.
2314
2315 2005-11-25  Roger Sayle  <roger@eyesopen.com>
2316
2317         PR middle-end/21309
2318         * expmed.c (choose_mult_variant): Return immediately when mult_cost
2319         is less than zero.  Limit mult_cost to a reasonable upper bound for
2320         the synthetic multiplication sequence.
2321
2322 2005-11-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2323
2324         PR middle-end/25022
2325         * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
2326         fold_builtin_fputs, fold_builtin_printf, fold_builtin_fprintf):
2327         Lookup the explicit replacement functions for any unlocked
2328         stdio builtin transformations.
2329
2330 2005-11-25  Hans-Peter Nilsson  <hp@axis.com>
2331
2332         * config/cris/cris.md ("reload_out<mode>"): Mark operand 2 as
2333         earlyclobber.
2334         * targhooks.c (default_secondary_reload): Don't require operand 2
2335         for an input reload to be earlyclobber.
2336
2337 2005-11-25  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2338
2339         * fold-const.c (negate_mathfn_p): Fix comment and add support
2340         for BUILT_IN_CBRT, BUILT_IN_SINH, BUILT_IN_TANH, BUILT_IN_ASINH,
2341         BUILT_IN_ATANH.
2342
2343 2005-11-25  Joseph S. Myers  <joseph@codesourcery.com>
2344
2345         PR middle-end/24998
2346         * config/sparc/sparc.c (sparc_init_libfuncs): Use _Q_utoq and
2347         _Q_ulltoq for unsigned conversions from SImode and DImode to
2348         TFmode.
2349
2350 2005-11-25  Alan Modra  <amodra@bigpond.net.au>
2351
2352         * config/rs6000/ppc64-fp.c (__floatunditf): New function.
2353         (__floatundidf, __floatundisf): Likewise.
2354
2355 2005-11-25  David Edelsohn  <edelsohn@gnu.org>
2356
2357         * config/rs6000/rs6000.c (rs6000_sr_alias_set): Delete.
2358         (rs6000_override_options): Remove initialization of
2359         rs6000_sr_alias_set.
2360         (rs6000_emit_eh_reg_restore): Use gen_frame_mem.
2361         (rs6000_emit_stack_tie): Same.
2362         (emit_frame_save): Same.
2363         (gen_frame_mem_offset): Same.
2364         (rs6000_emit_prologue): Same.
2365         (rs6000_emit_epilogue): Same.
2366
2367 2005-11-25  Andrew Pinski  <pinskia@physics.uc.edu>
2368
2369         PR middle-end/24989
2370         * fold-const.c (fold_build): Convert bool_var != 1 and
2371         bool_var == 0 to !bool_var.
2372
2373 2005-11-25  Andrew Pinski  <pinskia@physics.uc.edu>
2374
2375         PR middle-end/24990
2376         * fold-const.c (fold_binary): Fold (~a) == C to a == ~C
2377         for C being INTEGER_CST.  Likewise for !=.
2378
2379 2005-11-25  Joseph S. Myers  <joseph@codesourcery.com>
2380
2381         PR middle-end/24998
2382         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Use _q_utoq for
2383         unsigned conversions from SImode to TFmode.
2384
2385 2005-11-24  Bernd Schmidt  <bernd.schmidt@analog.com>
2386
2387         * expr.c (expand_expr_real_1): Fix error in last change.
2388
2389 2005-11-24  J"orn Rennecke <joern.rennecke@st.com>
2390
2391         * caller-save.c: (this_insn_sets): Move into:
2392         (save_call_clobbered_regs).
2393         (mark_set_regs): Get this_insn_sets from data.
2394
2395         (save_call_clobbered_regs): Take sets of the return value by
2396         sibcalls into account.
2397
2398 2005-11-24  J"orn Rennecke <joern.rennecke@st.com>
2399         PR target/21623:
2400
2401         * regclass.c (FORBIDDEN_INC_DEC_CLASSES): Remove
2402         SECONDARY_INPUT_RELOAD_CLASS and SECONDARY_OUTPUT_RELOAD_CLASS tests.
2403         (init_fake_stack_mems): Remove HAVE_SECONDARY_RELOADS test.
2404         (memory_move_secondary_cost, init_reg_autoinc): Remove
2405         SECONDARY_INPUT_RELOAD_CLASS / SECONDARY_OUTPUT_RELOAD_CLASS tests.
2406         Replace SECONDARY_{IN,OUT}PUT_RELOAD_CLASS use with
2407         secondary_reload_class call.
2408         (copy_cost): Likewise.  Add new parameter prev_sri.  Changed all
2409         callers.
2410         * reload.c (entire file): Remove HAVE_SECONDARY_RELOADS checks.
2411         (push_secondary_reload): Use secondary_reload target hook.
2412         (secondary_reload_class, scratch_reload_class): New functions.
2413         (push_reload): Remove SECONDARY_INPUT_RELOAD_CLASS and
2414         SECONDARY_OUTPUT_RELOAD_CLASS tests.  Replace
2415         SECONDARY_{IN,OUT}PUT_RELOAD_CLASS use with secondary_reload_class call.
2416         * reload.h (HAVE_SECONDARY_RELOADS): Don't define nor test.
2417         (secondary_reload_class, scratch_reload_class): Declare.
2418         * reload1.c: Include target.h.
2419         (reload_adjust_reg_for_temp): New function.
2420         (reload_adjust_reg_for_icode): Likewise.
2421         (choose_reload_regs): Remove SECONDARY_INPUT_RELOAD_CLASS test.
2422         Replace SECONDARY_INPUT_RELOAD_CLASS use with secondary_reload_class
2423         call.
2424         (emit_input_reload_insns): Likewise.  Rewrite secondary reload checks
2425         for inheritance.  Support case when both secondary & tertiary reloads
2426         are for intermediate registers.
2427         (emit_output_reload_insns): Replace SECONDARY_OUTPUT_RELOAD_CLASS use
2428         with secondary_reload_class call.  Support case when both secondary
2429         & tertiary reloads are for intermediate registers.
2430         * target-def.h (TARGET_SECONDARY_RELOAD): Provide default definition.
2431         (TARGET_INITIALIZER) Add TARGET_SECONDARY_RELOAD.
2432         * target.h (secondary_reload_info): New struct / typedef.
2433         (struct gcc_target): New member secondary_reload.
2434         * targhooks.c Include reload.h, optabs.h and recog.h.
2435         (default_secondary_reload): New function.
2436         * targhooks.h (default_secondary_reload): Declare.
2437         * doc/tm.texi: Document secondary_reload target hook.  Update
2438         description of SECONDARY_*RELOAD_CLASS and reload_{in,out}<mode>.
2439         * doc/md.texi: Likewise.
2440
2441         * sh-protos.h (sh_secondary_reload): Declare.
2442         * sh.c (TARGET_SECONDARY_RELOAD): Override.
2443         (sh_secondary_reload): New function.
2444         * sh.h (SECONDARY_INOUT_RELOAD_CLASS): Don't define.
2445         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
2446         (SECONDARY_INPUT_RELOAD_CLASS): Likewise.
2447         (HAVE_SECONDARY_RELOADS): Define.
2448         * sh.md (reload_indf): Rename to:
2449         (reload_indf__frn).
2450         (reload_outdf): Rename to:
2451         (reload_outdf__RnFRm).
2452         (reload_insf): Rename to:
2453         (reload_insf__frn).
2454         (reload_insi): Rename to:
2455         (reload_insi__i_fpul).
2456
2457 2005-11-24  Uros Bizjak  <uros@kss-loka.si>
2458
2459         * configure.ac: Require at least texinfo 4.4.
2460         * configure: Regenerate.
2461
2462         * doc/install.texi (Tools/packages necessary for building GCC):
2463         Update required version of texinfo to at least 4.4.
2464         (Installing GCC: Building): Update required version of texinfo
2465         to at least 4.4.
2466         (Installing GCC: Final installation): Update required version
2467         of texi2dvi to at least 4.4.
2468         (Host/target specific installation notes for GCC): Update required
2469         version of texinfo to at least 4.4.
2470
2471 2005-11-24  Richard Guenther  <rguenther@suse.de>
2472         Dirk Mueller <dmueller@suse.de>
2473
2474         PR c++/14024
2475         * c-common.h (strict_aliasing_warning): Declare.
2476         * c-common.c (strict_aliasing_warning): New function,
2477         split out from ...
2478         * c-typeck.c (build_c_cast): ... here.
2479
2480 2005-11-24  Paolo Bonzini  <bonzini@gnu.org>
2481
2482         * optabs.c (expand_binop): Use swap_commutative_operands_with_target
2483         to order operands.
2484         (swap_commutative_operands_with_target): New.
2485
2486 2005-11-24  Paolo Bonzini  <bonzini@gnu.org>
2487
2488         * gcse.c (hash_scan_set): Look through REG_EQUAL or REG_EQUIV notes
2489         also when doing PRE, rather than only for global CPROP.
2490
2491 2005-11-24  Ben Elliston  <bje@au.ibm.com>
2492
2493         * machmode.h (CLASS_HAS_WIDER_MODES_P): New macro.
2494         * optabs.c (expand_binop): Use CLASS_HAS_WIDER_MODES_P, improve
2495         formatting.
2496         (expand_twoval_unop): Likewise.
2497         (widen_clz): Likewise.
2498         (expand_parity): Likewise.
2499         (expand_unop): Likewise.
2500         (emit_cmp_and_jmp_insn_1): Likewise.
2501         (prepare_float_lib_cmp): Likewise.
2502
2503 2005-11-24  Ben Elliston  <bje@au.ibm.com>
2504
2505         * optabs.c (prepare_cmp_insn): Use SCALAR_FLOAT_MODE_P.
2506         Remove unused `class' variable.
2507
2508 2005-11-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2509
2510         PR c++/21667
2511         * c-typeck.c (build_array_ref): Avoid code duplicate.  Use common
2512         C/C++ diagnostic function warn_array_subscript_with_type_char.
2513         * c-common.h (warn_array_subscript_with_type_char): Declare.
2514         * c-common.c (warn_array_subscript_with_type_char): Define.
2515
2516 2005-11-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2517
2518         PR c/21668
2519         * c-decl.c (grokdeclarator): Don't warn for 'extern const' when
2520         compiling at the intersection of C and C++.
2521
2522 2005-11-23  Mark Mitchell  <mark@codesourcery.com>
2523
2524         * doc/invoke.texi: For man pages, include gcc-vers.texi.
2525         List @file in the option summary.  Include the libiberty
2526         documentation for @file.
2527         * gcc.c (main): Call expandargv.
2528         * Makefile.in (gcc-vers.texi): Define srcdir.
2529
2530 2005-11-23  Diego Novillo  <dnovillo@redhat.com>
2531
2532         * passes.c (init_optimization_passes): Document
2533         sequencing of passes.
2534
2535 2005-11-23  Kazu Hirata  <kazu@codesourcery.com>
2536
2537         * config/m68k/predicates.md (pcrel_address, extend_operator,
2538         post_inc_operand, pre_dec_operand): Remove redundant
2539         conditionals.
2540         (const_uint32_operand, const_sint32_operand): Use gcc_assert
2541         instead of abort.
2542         (valid_dbcc_comparison_p): Rewrite in the lisp style.
2543
2544 2005-11-23  Ben Elliston  <bje@au.ibm.com>
2545
2546         * dwarf2.h (enum dwarf_type): Add DW_ATE_decimal_float.
2547
2548 2005-11-22  J"orn Rennecke <joern.rennecke@st.com>
2549
2550         Preparatory work for PR target/21623:
2551         * alpha.c (secondary_reload_class): Rename to:
2552         (alpha_secondary_reload_class).
2553         * alpha.h, alpha-protos.h: Likewise.
2554         * mn10300.c (secondary_reload_class): Rename to:
2555         (mn10300_secondary_reload_class).
2556         * mn10300.h, mn10300-protos.h: Likewise.
2557         * pa.c (secondary_reload_class): Rename to:
2558         (pa_secondary_reload_class).
2559         * pa.h, pa-protos.h: Likewise.
2560         * rs6000.c (secondary_reload_class): Rename to:
2561         rs6000_secondary_reload_class.
2562         * rs6000.h, rs6000-protos.h: Likewise.
2563
2564 2005-11-22  Eric Botcazou  <ebotcazou@adacore.com>
2565
2566         PR middle-end/22561
2567         * tree-ssa-structalias.c (get_constraint_for): Handle ARRAY_RANGE_REF.
2568
2569 2005-11-22  Ian Lance Taylor  <ian@airs.com>
2570
2571         * optabs.c (expand_unop): Call SCALAR_FLOAT_MODE_P on a mode, not
2572         a mode_class.
2573         (prepare_cmp_insn): Likewise.
2574
2575 2005-11-22  Kazu Hirata  <kazu@codesourcery.com>
2576
2577         PR target/23435
2578         * m68k.md (zero_extendsidi2): Force operands[1] to a register
2579         if both operands[0] and operands[1] are memory.
2580
2581 2005-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
2582
2583         PR middle-end/23606
2584         * fold-const.c (fold_unary) <case NOP_EXPR, CONVERT_EXPR>: For
2585         COMPARISON_CLASS_P and an integral types create create a new
2586         expression with the new type and fold that.
2587
2588 2005-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
2589
2590         PR target/24988
2591         * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Remove call
2592         to SUBTARGET_OS_CPP_BUILTINS.
2593
2594 2005-11-22  Richard Earnshaw  <richard.earnshaw@arm.com>
2595
2596         * arm.c (emit_set_insn): New function.
2597         (arm_split_constant): Call it.
2598         (arm_gen_compare_reg, arm_reload_in_hi, arm_reload_out_hi): Likewise.
2599         (arm_legitimize_address): Likewise.  Use plus_constant.
2600         (arm_expand_prologue): Likewise.  Use VOIDmode in SET.
2601         (thumb_expand_prologue): Likewise.
2602         (arm_gen_load_multiple): Use VOIDmode in SET.
2603         (arm_gen_store_multiple): Likewise.
2604         (vfp_emit_fstmx): Likewise.  Use plus_constant.
2605         (emit_multi_reg_push): Likewise.
2606         (emit_sfm): Use plus_constant.
2607
2608 2005-11-23  Alan Modra  <amodra@bigpond.net.au>
2609
2610         PR target/24954
2611         * config/rs6000/predicates.md (easy_vector_constant_add_self): Fix
2612         typo last change.
2613
2614 2005-11-22  Alan Modra  <amodra@bigpond.net.au>
2615
2616         PR middle-end/24950
2617         * expmed.c (store_bit_field): Don't attempt to insv a field
2618         larger than the reg.
2619
2620 2005-11-22  Alan Modra  <amodra@bigpond.net.au>
2621
2622         PR target/24954
2623         * config/rs6000/predicated.md (easy_vector_constant_add_self): Use
2624         explicit sign extension, not a (char) cast.
2625
2626 2005-11-22  Ben Elliston  <bje@au.ibm.com>
2627
2628         * optabs.c: Use SCALAR_FLOAT_MODE_P instead of explicitly testing
2629         GET_MODE_CLASS (x) == MODE_FLOAT.
2630         * config/i386/i386.c: Likewise.
2631         * config/rs6000/xcoff.h: Likewise.
2632         * config/rs6000/linux64.h: Likewise.
2633         * config/rs6000/rs6000.c: Likewise.
2634         * config/rs6000/rs6000.h: Likewise.
2635         * config/rs6000/predicates.md: Likewise.
2636         * config/rs6000/sysv4.h: Likewise.
2637
2638 2005-11-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2639
2640         * c-cppbuiltin.c (c_cpp_builtins): Define __pic__ and __PIC__ when
2641         flag_pic is set.
2642
2643         * config/alpha/freebsd.h, config/alpha/linux.h,
2644         config/arm/linux-elf.h, config/bfin/bfin.h,
2645         config/cris/linux.h, config/darwin.h, config/freebsd-spec.h,
2646         config/i386/beos-elf.h, config/i386/gnu.h,
2647         config/i386/linux.h, config/i386/linux64.h, config/i386/nto.h,
2648         config/i386/sco5.h, config/m32r/m32r.h, config/m68k/linux.h,
2649         config/m68k/m68k.h, config/mips/linux.h, config/pa/pa-linux.h,
2650         config/rs6000/linux64.h, config/rs6000/sysv4.h,
2651         config/rs6000/vxworks.h, config/s390/linux.h, config/s390/tpf.h,
2652         config/sh/linux.h, config/sh/sh.h, config/sol2.h,
2653         config/sparc/linux.h, config/sparc/linux64.h,
2654         config/xtensa/xtensa.h: Don't define __pic__ or __PIC__.
2655
2656         * doc/invoke.texi: Document that the macros __pic__ and __PIC__
2657         are both defined when either flag -fpic or -fPIC are used.
2658
2659 2005-11-22  Joseph S. Myers  <joseph@codesourcery.com>
2660
2661         * config/fp-bit.c (clzusi): New function.
2662         (si_to_float, usi_to_float): Use it to compute proper shift.
2663         (usi_to_float): Preserve guard bits when shifting right.
2664         * libgcc-std.ver (GCC_4.2.0): New version.
2665         * libgcc2.c (__floatundixf, __floatunditf, __floatundidf,
2666         __floatundisf): New functions.
2667         * libgcc2.h (__floatundixf, __floatunditf, __floatundidf,
2668         __floatundisf): Declare.
2669         * mklibgcc.in (lib2funcs): Add _floatundidf, _floatundisf,
2670         _floatundixf, and _floatunditf.
2671         * optabs.c (expand_float): If target does not define a pattern for
2672         signed or unsigned conversion, use an unsigned libcall instead of
2673         a signed one.
2674         (init_optabs): Initialize ufloat_optab.
2675
2676 2005-11-22  Joseph S. Myers  <joseph@codesourcery.com>
2677
2678         * config/rs6000/rs6000.opt (mmulhw): New option.
2679         * doc/invoke.texi (-mmulhw): Document.
2680         * config/rs6000/rs6000.c (rs6000_override_options): Enable -mmulhw
2681         for 405 and 440.
2682         * config/rs6000/rs6000.md: Add half-word multiply and
2683         multiply-accumulate instructions for 405 and 440.
2684
2685 2005-11-21  Joel Sherrill <joel.sherrill@oarcorp.com>
2686
2687         * config/arm/rtems-elf.h: Added definition of LINK_GCC_C_SEQUENCE_SPEC
2688         which matches behavior of gcc 4.0 and older for RTEMS targets.  The
2689         default now includes a linker group which makes the RTEMS one nest.
2690
2691 2005-11-22  Ben Elliston  <bje@au.ibm.com>
2692
2693         * cse.c (fold_rtx): Typo fix.
2694         (find_comparison_args): Pass the mode of arg1, not arg1 itself.
2695
2696 2005-11-21  Richard Henderson  <rth@redhat.com>
2697
2698         * c-common.c, config/darwin-c.c, c-decl.c, c-tree.h, c-objc-common.h,
2699         langhooks-def.h, langhooks.h: Revert 2005-11-18 lookup_name patch.
2700
2701         * c-tree.h (lookup_name): Move declaration ...
2702         * c-common.h (lookup_name): ... here.
2703         * config/darwin-c.c: Include c-common.h.
2704         * config/t-darwin: Update dependencies.
2705
2706 2005-11-22  Ben Elliston  <bje@au.ibm.com>
2707
2708         * optabs.c (expand_abs_nojump): Use SCALAR_FLOAT_MODE_P instead of
2709         explicitly testing GET_MODE_CLASS (x) == MODE_FLOAT.
2710         * genopinit.c (gen_insn): Likewise.
2711         * reload.c (find_equiv_reg): Likewise.
2712         * loop.c (load_mems): Likewise.
2713         * rtlanal.c (may_trap_p_1, canonicalize_condition): Likewise.
2714         * cse.c (find_comparison_args, fold_rtx): Likewise.
2715         * dwarf2out.c (add_const_value_attribute): Likewise.
2716         * expr.c (convert_move): Likewise.
2717         * recog.c (general_operand, register_operand): Likewise.
2718         * reg-stack.c (replace_reg): Likewise.
2719         * tree-vect-generic.c (type_for_widest_vector_mode): Likewise.
2720         * c-common.c (handle_vector_size_attribute): Likewise.
2721         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
2722         (simplify_binary_operation_1): Likewise.
2723         (simplify_const_binary_operation): Likewise.
2724         (simplify_relational_operation): Likewise.
2725         (simplify_const_relational_operation): Likewise.
2726         (simplify_immed_subreg): Likewise.
2727         * emit-rtl.c (gen_lowpart_common): Likewise.
2728         * expmed.c (expand_mult): Likewise.
2729         * stor-layout.c (layout_type): Likewise.
2730
2731 2005-11-21  Paolo Bonzini  <bonzini@gnu.org>
2732
2733         PR target/24951
2734         * config/rs6000/rs6000.c (output_vec_const_move): Load cst and
2735         cst2 only for SPE vectors.
2736
2737 2005-11-21  David Edelsohn  <edelsohn@gnu.org>
2738
2739         PR target/24953
2740         * config/rs6000/predicates.md (vrsave_operation): Check
2741         UNSPEC_VOLATILE value.
2742
2743 2005-11-21  Jan Hubicka  <jh@suse.cz>
2744
2745         PR tree-optimization/24653
2746         * tree-ssa-ccp.c (ccp_fold): Strip down useless conversions.
2747
2748 2005-11-21  Uros Bizjak  <uros@kss-loka.si>
2749
2750         * config/i386/predicates.md (ax_reg_operand): New predicate.
2751         (memory_displacement_only_operand): New predicate.
2752         * config/i386/i386.md ("modrm" attribute): Return 0 if one
2753         operand is AX register and the other operand is memory operand
2754         with displacement only.
2755
2756 2005-11-21  Uros Bizjak  <uros@kss-loka.si>
2757
2758         * fold-const.c (fold_binary) <RDIV_EXPR>: Optimize A / A to 1.0
2759         if we don't care about NaNs or Infinities.
2760
2761 2005-11-20  Ian Lance Taylor  <ian@airs.com>
2762
2763         PR rtl-optimization/24883
2764         * combine.c (combinable_i3pat): When checking whether the
2765         destination of i3 is used in i3, consider paradoxical subregs.
2766
2767 2005-11-21  Kazu Hirata  <kazu@codesourcery.com>
2768
2769         PR middle-end/20583
2770         * cse.c (cse_insn): Reject invalid forms of CONST earlier.
2771
2772 2005-11-20  Joseph S. Myers  <joseph@codesourcery.com>
2773
2774         * combine.c (try_combine): Do not run subst on i1src and i2src in
2775         the case of generating a PARALLEL for a comparison.
2776
2777 2005-11-20  Richard Henderson  <rth@redhat.com>
2778
2779         PR 24931
2780         * tree-sra.c (struct sra_elt): Add all_no_warning.
2781         (struct sra_walk_fns) <use>: Add use_all argument.
2782         (sra_walk_expr): Pass it.
2783         (sra_walk_modify_expr): Likewise.
2784         (scalarize_ldst): Likewise.
2785         (scan_use): Update for new argument.
2786         (mark_no_warning): New.
2787         (scalarize_use): Use it.
2788
2789 2005-11-20  Bernd Schmidt  <bernd.schmidt@analog.com>
2790
2791         * expr.c (expand_expr_real): Use usmul_optab for widening
2792         signed * unsigned multiplies.
2793         * genopinit.c (optabs): Add usmul_widen_optab.
2794         * optabs.c (init_optabs): Likewise.
2795         * optabs.h (enum optab_index): Add OTI_usmul_widen.
2796         (usmul_widen_optab): Define.
2797         * config/bfin/bfin.md (usmulhisi3): New pattern.
2798
2799         * doc/md.texi (usmulqihi3, usmulhisi3, usmulsidi3): Document.
2800
2801 2005-11-20  Graham Stott <btinternet.com>
2802
2803         * gensupport.c (std_preds): Fixed extraneous `false` in last change.
2804
2805 2005-11-20  Andreas Schwab  <schwab@suse.de>
2806
2807         PR target/24757
2808         * config/ia64/ia64.c (ia64_expand_atomic_op): Fix condition of cmp
2809         insn.
2810
2811 2005-11-19  Richard Henderson  <rth@redhat.com>
2812
2813         PR tree-opt/24665
2814         * tree-gimple.c (is_gimple_id): Export.
2815         * tree-gimple.h (is_gimple_id): Declare.
2816         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): New.
2817         (get_default_value): Use it.
2818         (maybe_fold_stmt_indirect): Likewise.
2819
2820 2005-11-19  James A. Morrison  <phython@gcc.gnu.org>
2821
2822         * tree-vrp.c (compare_ranges): Return false for EQ_EXPR if VR0 is less
2823         than VR1 or vice-versa.
2824
2825 2005-11-19  Hans-Peter Nilsson  <hp@axis.com>
2826
2827         PR middle-end/24912
2828         PR middle-end/24750
2829         * reload.c (find_reloads_address_1): Mention dependency on
2830         gen_reload.
2831         * reload1.c (gen_reload): For IN with an unary operation, try
2832         moving inner expression to OUT if trivial SET is not valid.
2833         Confirm that the result is valid.  Move common code block into...
2834         (emit_insn_if_valid_for_reload): New function.
2835
2836 2005-11-19  Richard Guenther  <rguenther@suse.de>
2837
2838         * fold-const.c (fold_indirect_ref_1): Make sure we fold
2839         ARRAY_REFs of constant strings.
2840
2841 2005-11-19  Jakub Jelinek  <jakub@redhat.com>
2842
2843         * gcc.c (version_compare_spec_function): Use '%s' rather than %qs in
2844         fatal format string.
2845
2846 2005-11-19  Joseph S. Myers  <joseph@codesourcery.com>
2847
2848         * combine.c (make_compound_operation): Swap operands of
2849         commutative operation if necessary before returning.
2850
2851 2005-11-19  Richard Guenther  <rguenther@suse.de>
2852
2853         PR middle-end/23294
2854         * fold-const.c (fold_plusminus_mult_expr): New function.
2855         (fold_binary): Use to canonicalize PLUS_EXPR and MINUS_EXPR
2856         cases, remove now unnecessary code.
2857
2858 2005-11-19  Paolo Bonzini  <bonzini@gcc.gnu.org>
2859
2860         * gensupport.c (old_preds): Rename to std_preds, add special field.
2861         (struct old_pred_table): Rename to struct std_pred_table, add special
2862         field.
2863         (NUM_KNOWN_OLD_PREDS): Rename to NUM_KNOWN_STD_PREDS.
2864         (NUM_OLD_SPECIAL_MODE_PREDS): Remove.
2865         (init_predicate_table): Adjust, and set along the way whether a
2866         predicate is special.
2867
2868 2005-11-18  Mark Mitchell  <mark@codesourcery.com>
2869
2870         * BASE-VER: Change to 4.2.0.
2871
2872 2005-11-18  James E Wilson  <wilson@specifix.com>
2873
2874         * builtins.c (fold_builtin_strstr): Pass s1 through fold_convert before
2875         returning it.
2876
2877 2005-11-18  Mike Stump  <mrs@apple.com>
2878
2879         * c-common.c (handle_cleanup_attribute): Use a lang hook for lookup_name.
2880         * config/darwin-c.c (darwin_pragma_unused): Likewise.
2881         * c-decl.c (lookup_name_two) Remove.
2882         * c-tree.h (lookup_name_two): Remove.
2883         * c-objc-common.h (LANG_HOOKS_LOOKUP_NAME): Add.
2884         * langhooks-def.h (LANG_HOOKS_LOOKUP_NAME): Add.
2885         (LANG_HOOKS_DECLS): Add initializer for LANG_HOOKS_LOOKUP_NAME.
2886         * langhooks.h (lang_hooks_for_decls): Add lookup_name.
2887
2888 2005-11-18  Richard Earnshaw  <richard.earnshaw@arm.com>
2889
2890         PR target/24914
2891         * arm.c (arm_hard_regno_mode_ok): Co-processor registers aren't ok
2892         when not generating code to use that co-processor.
2893
2894 2005-11-18  James A. Morrison  <phython@gcc.gnu.org>
2895
2896         * tree-flow.h (reserve_phi_args_for_new_edge, create_phi_node,
2897         add_phi_arg, remove_phi_args, remove_phi_node phi_reverse): Mention that
2898         these functions are now in tree-phinodes.c.
2899
2900 2005-11-18  Jie Zhang  <jie.zhang@analog.com>
2901
2902         * config/bfin/bfin.md (trap): New pattern.
2903
2904 2005-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2905
2906         * tree-ssa-dom.c (extract_range_from_cond): Deal with variable bounds
2907         on types.
2908
2909         * expr.c (expand_expr_real): Don't call record_block_change unless
2910         ib_boundaries_block is non-null
2911
2912         * postreload.c (reload_cse_move2add): Don't try to work with BImode.
2913
2914         * fold-const.c (build_range_check): Use proper type for subtraction
2915         when merging lower bound.
2916
2917 2005-11-18  Zdenek Dvorak  <dvorakz@suse.cz>
2918
2919         PR rtl-optimization/24497
2920         * loop-unroll.c (apply_opt_in_copies): Do not verify equality of
2921         the copied insn.
2922
2923 2005-11-18  Zdenek Dvorak  <dvorakz@suse.cz>
2924
2925         * tree-scalar-evolution.c (expression_expensive_p): New function.
2926         (scev_const_prop): Use compute_overall_effect_of_inner_loop.
2927
2928 2005-11-18  Bernd Schmidt  <bernd.schmidt@analog.com>
2929
2930         * config/bfin/crtlibid.s: New file.
2931
2932 2005-11-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2933
2934         PR target/24348
2935         * config.gcc (hppa*-*-hpux*): Add pa/t-slibgcc-elf-ver to tmake config
2936         when not using sjlj exceptions.
2937         * config/pa/pa64-hpux.h (LIB_SPEC): Add -lpthread in static links.
2938         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
2939         * config/pa/som.h (ASM_PREFERRED_EH_DATA_FORMAT): Delete define.
2940         * config/pa/linux-unwind.h (pa32_fallback_frame_state): Use
2941         DWARF_ALT_FRAME_RETURN_COLUMN instead of column 0 as return column.
2942         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): New define.
2943         * config/pa/pa-linux.h (INCOMING_RETURN_ADDR_RTX,
2944         DWARF_FRAME_RETURN_COLUMN, ASM_PREFERRED_EH_DATA_FORMAT,
2945         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Delete defines.
2946         * config/pa/pa.h (ARG_POINTER_CFA_OFFSET): Delete.
2947         (FRAME_POINTER_CFA_OFFSET, INCOMING_RETURN_ADDR_RTX,
2948         DWARF_FRAME_RETURN_COLUMN, DWARF_ALT_FRAME_RETURN_COLUMN,
2949         ASM_PREFERRED_EH_DATA_FORMAT, ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): New
2950         defines.
2951         * config/pa/hpux-unwind.h: New file.
2952
2953 2005-11-17  Alexandre Oliva  <aoliva@redhat.com>
2954
2955         * config/rs6000/rs6000.h (ASM_OUTPUT_WEAKREF): Define.
2956         * defaults.h (ASM_OUTPUT_WEAKREF): Add decl argument.
2957         * varasm.c (do_assemble_alias): Adjust call.
2958         (weak_finish): Don't use ASM_WEAKEN_LABEL if ASM_WEAKEN_DECL
2959         is defined.
2960         * doc/tm.texi (ASM_OUTPUT_WEAKREF): Document it.
2961
2962 2005-11-17  James E Wilson  <wilson@specifix.com>
2963
2964         * tree.def (FUNCTION_DECL): Correct typo in comment.
2965
2966 2005-11-17  Richard Henderson  <rth@redhat.com>
2967
2968         * dwarf2out.c (dw_cfi_oprnd_struct): Reduce dw_cfi_reg_num to int.
2969         (lookup_cfa_1): Apply data alignment to DW_CFA_def_cfa_offset_sf
2970         and DW_CFA_def_cfa_sf.
2971         (def_cfa_1): Use DW_CFA_def_cfa_offset_sf with negative values.
2972         (dbx_reg_number): Don't assert particular registers here.
2973         (based_loc_descr): ... do it here instead.  Fold in ...
2974         (eliminate_reg_to_offset): ... this function.
2975         (compute_frame_pointer_to_cfa_displacement): Fold in the effects
2976         of eliminate_reg_to_offset; use FRAME_POINTER_CFA_OFFSET.
2977         * unwind-dw2.c (execute_cfa_program): Apply data align factor
2978         to DW_CFA_def_cfa_offset_sf and DW_CFA_def_cfa_sf.
2979         * function.c (instantiate_new_reg): Use FRAME_POINTER_CFA_OFFSET.
2980         (instantiate_virtual_regs): Likewise.
2981         * var-tracking.c (adjust_stack_reference): Likewise.
2982         * doc/tm.texi (FRAME_POINTER_CFA_OFFSET): New.
2983
2984 2005-11-17  Bernd Schmidt  <bernd.schmidt@analog.com>
2985
2986         * config/bfin/elf.h (STARTFILE_SPEC): Add "crtlibid%O%s"
2987         * config/bfin/uclinux.h (STARFILE_SPEC): Likewise.
2988         * config/bfin/t-bfin-elf (EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Add
2989         crtlibid.o.
2990         ($(T)crtlibid.o): New rule.
2991
2992 2005-11-16  Richard Guenther  <rguenther@suse.de>
2993
2994         PR middle-end/24851
2995         * fold-const.c (extract_array_ref): Return byte offset
2996         in all cases.
2997         (fold_binary): Fold &x[a] CMP &x[b] to
2998         a*sizeof(*x) CMP b*sizeof(*x) to get correct overflow
2999         behavior.
3000
3001 2005-11-16  Richard Henderson  <rth@redhat.com>
3002
3003         PR middle-end/23497
3004         * tree-ssa.c (warn_uninitialized_var): Skip real and imaginary
3005         parts of an SSA_NAME.
3006
3007 2005-11-16  Richard Earnshaw  <richard.earnshaw@arm.com>
3008
3009         PR target/24861
3010         * arm.md (split for movsf with immediate): Restrict split to insns
3011         that set a general register.
3012
3013 2005-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
3014
3015         * config/ia64/unwind-ia64.c (uw_advance_context): New.  Call
3016         uw_update_context.
3017         * unwind-dw2.c (uw_advance_context): Likewise.
3018         * unwind-sjlj.c (uw_advance_context): Likewise.  Also call
3019         _Unwind_SjLj_Unregister.
3020         * unwind.inc (_Unwind_ForcedUnwind_Phase2): Call uw_advance_context.
3021
3022 2005-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
3023
3024         * unwind-sjlj.c (_Unwind_GetCFA): Handle the builtin_setjmp case.
3025
3026 2005-11-16  Eric Botcazou  <ebotcazou@adacore.com>
3027
3028         * config/alpha/alpha.c (alpha_init_builtins): Use type_for_mode
3029         langhook to get a DImode integer type.
3030
3031 2005-11-16  Richard Henderson  <rth@redhat.com>
3032             J"orn Rennecke <joern.rennecke@st.com>
3033             Ulrich Weigand  <uweigand@de.ibm.com>
3034
3035         PR rtl-opt/24160
3036         PR target/24621
3037         * reload1.c (reg_equiv_invariant): New.
3038         (reload): Allocate, initialize, and free it.
3039         (calculate_needs_all_insns): Check it when skipping equivalence
3040         setting insns.
3041         (alter_reg): Likewise.
3042         (eliminate_regs_1): Rename from eliminate_regs.  Add new
3043         may_use_invariant argument; only use reg_equiv_invariant when true.
3044         (eliminate_regs): New.
3045         (eliminate_regs_in_insn): Use eliminate_regs_1; track when we're in
3046         a context for which may_use_invariant may be true.
3047
3048 2005-11-16  Eric Botcazou  <ebotcazou@adacore.com>
3049
3050         * fold-const.c (const_binop): Don't constant fold the operation
3051         if the result has overflowed and flag_trapping_math.
3052         * simplify-rtx.c (simplify_const_binary_operation): Likewise.
3053
3054 2005-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
3055
3056         * config/arm/unwind-arm.c (abort): Add prototype here.
3057         (UCB_FORCED_STOP_ARG): Correct typo in macro argument.
3058         (struct phase1_vrs): Add prev_sp.
3059         (unwind_phase2_forced): Save the original core registers instead of
3060         modifying entry_vrs.  Take a new flag argument for resuming unwinding
3061         and set action flags accordingly.  Always set _US_END_OF_STACK when
3062         get_eit_entry fails.  Unwind before calling the stop function.
3063         (_Unwind_GetCFA): New function.
3064         (__gnu_Unwind_ForcedUnwind): Update call to unwind_phase2_forced.
3065         (__gnu_Unwind_Resume_or_Rethrow): Likewise.
3066         (__gnu_Unwind_Resume): Do not unwind here for forced unwinding;
3067         just call unwind_phase2_forced.
3068         (_Unwind_GetDataRelBase, _Unwind_GetTextRelBase): Move to here.
3069         * config/arm/unwind-arm.h (abort): Remove prototype.
3070         (_Unwind_GetDataRelBase, _Unwind_GetTextRelBase): Change to
3071         prototypes.
3072         (_Unwind_GetCFA): New prototype.
3073         * config/arm/pr-support.c (abort): Add prototype here.
3074         * unwind-c.c (PERSONALITY_FUNCTION) [__ARM_EABI_UNWINDER__]: Handle
3075         forced unwinding.
3076         * config/arm/arm.c (arm_expand_prologue, thumb_expand_prologue): Do
3077         not schedule the prologue with non-call exceptions and EABI.
3078
3079 2005-11-16  Nathan Sidwell  <nathan@codesourcery.com>
3080
3081         * config/arm/unwind-arm.h: Reorder interface function declarations.
3082         (_URC_END_OF_STACK): New enumeration value.
3083         (_US_UNWIND_ACTION_MASK, _US_FORCE_UNWIND, _US_END_OF_STACK): Likewise.
3084         (struct _Unwind_Control_Block): Document reserved field use.
3085         (_Unwind_Stop_Fn): New typedef.
3086         (_Unwind_ForcedUnwind): Declare.
3087         (_Unwind_Resume_or_Rethrow): Declare.
3088         * gcc/config/arm/libunwind.S (UNWIND_WRAPER): Add nargs
3089         argument.  Adjust.
3090         (_Unwind_Resume_or_Rethrow, _Unwind_ForcedUnwind): New.
3091         * config/arm/unwind-arm.c (UCB_FORCED_STOP_FN)
3092         (UCB_FORCED_STOP_ARG): New.
3093         (search_EIT_table): Update boundary condition checks.
3094         (get_eit_entry): Return _URC_END_OF_STACK when cannot unwind.
3095         (unwind_phase2): Replace for with do..while.
3096         (unwind_phase2_forced): New.
3097         (__gnu_Unwind_RaiseException): Replace for with do..while.
3098         (__gnu_Unwind_ForcedUnwind): New.
3099         (__gnu_Unwind_Resume): Set FORCE_UNWIND flag, if forced unwinding.
3100         Use appropriate phase2 unwinder.
3101         (__gnu_Unwind_Resume_or_Rethrow): New.
3102         (__gnu_unwind_pr_common): Cope with forced unwinding.
3103
3104 2005-11-16  David Edelsohn  <edelsohn@gnu.org>
3105
3106         PR target/24772
3107         * config/rs6000/predicates.md (vrsave_operation): SET_SRC is a VEC.
3108
3109         * config/rs6000/rs6000.md (btruncsf2, ceilsf2, floorsf2,
3110         roundsf2): Remove "s" from mnemonic.
3111
3112 2005-11-16  Bernd Schmidt  <bernd.schmidt@analog.com>
3113
3114         * config/bfin/crti.s (__init, __fini): Use appropriate prologue if
3115         __PIC__ is defined.
3116         * config/bfin/crtn.s: Change epilogues to match.
3117         * config/bfin/t-bfin-elf (EXTRA_MULTILIB_PARTS): Define.
3118         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): If flag_pic, define
3119         __PIC__ and __pic__.
3120
3121 2005-11-16  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
3122
3123         PR 24357
3124         * doc/invoke.texi: Distinguish between free and fixed form instead of
3125         Fortran and Fortran 90/95.  Remove ratfor from the list of supported
3126         languages.
3127         * gcc.c (default_compilers): Remove double entries, add entries for
3128         suffixes '.F90' and '.F95'.
3129
3130 2005-11-16  Eric Botcazou <ebotcazou@adacore.com>
3131
3132         * config/alpha/alpha.c (alpha_expand_prologue): Fix off-by-one bug
3133         in the stack probing loop.
3134
3135 2005-11-15  David Edelsohn  <edelsohn@gnu.org>
3136
3137         * configure.ac: Use .machine power5 not power5x.
3138         * configure: Regenerate.
3139
3140 2005-11-15  Mike Stump  <mrs@apple.com>
3141
3142         * c-decl.c (lookup_name_two): Add.
3143         * c-tree.h (lookup_name_two): Likewise.
3144         * c-common.c (handle_cleanup_attribute): Use lookup_name_two instead.
3145         * config/darwin-c.c (darwin_pragma_unused): Likewise.
3146
3147 2005-11-16  Alan Modra  <amodra@bigpond.net.au>
3148
3149         PR rtl-optimization/23392
3150         * regrename.c (enum scan_actions) Add mark_access.
3151         (scan_actions_name): Ditto.
3152         (scan_rtx_reg): Handle mark_access.
3153         (scan_rtx_address): Do nothing for mark_access.
3154         (build_def_use): Mark source registers in REG_FRAME_RELATED_EXPR
3155         and regs in REG_INC notes before closing chains for dead regs.
3156         Mark destination regs in REG_FRAME_RELATED_EXPR notes after
3157         opening chains for new writes.
3158
3159 2005-11-15  David Edelsohn  <edelsohn@gnu.org>
3160
3161         * c.opt (ffixed-line-length-none): New.
3162
3163 2005-11-15  Steve Ellcey  <sje@cup.hp.com>
3164
3165         * mklibgcc.in: Change contents of eh_dummy.c.
3166
3167 2005-11-15  Daniel Jacobowitz  <dan@codesourcery.com>
3168
3169         * loop.c (scan_loop): Do not insert temporaries for hard registers.
3170
3171 2005-11-15  Daniel Jacobowitz  <dan@codesourcery.com>
3172
3173         * config/arm/lib1funcs.asm (div0) [L_dvmd_lnx]: Call raise instead
3174         of making syscalls.
3175         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define.  Set r7 also.
3176
3177 2005-11-15  Jan Hubicka  <jh@suse.cz>
3178
3179         * invoke.texi (large-unit-insns): Document.
3180         * ipa-inline.c (cgraph_decide_inlining): Use large-unit-insns param.
3181         * params.def (large-unit-insns): New param.
3182
3183 2005-11-15  Hans-Peter Nilsson  <hp@axis.com>
3184
3185         PR target/24869
3186         * config/cris/cris.md ("*mov_sidesisf_mem"): Do not match
3187         special register for operand 3.  Reindent constraints to align
3188         them vertically.
3189
3190 2005-11-14  David Edelsohn  <edelsohn@gnu.org>
3191
3192         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mmfcrf,
3193         -mpopcntb, -mfprnd. Add -mcpu=power5+.
3194         * configure.ac: Add test for FP rounding instructions.
3195         * configure: Regenerate.
3196         * config.in: Regenerate.
3197         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
3198         _ARCH_PPCSQ, _ARCH_PPCGR, _ARCH_PWR4, _ARCH_PWR5, _ARCH_PWR5X if
3199         features enabled.
3200         * config/rs6000/rs6000.opt (mfprnd): New.
3201         * config/rs6000/rs6000.c (processor_target_table): Add power5+.
3202         (POWERPC_MASKS): Add MASK_POPCNTB and MASK_FPRND.
3203         * config/rs6000/aix52.h (ASM_CPU_SPEC): Add -mpower5+.
3204         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mpower5+.
3205         (TARGET_FPRND): New.
3206         * config/rs6000/rs6000.md (UNSPEC_FRIM, UNSPEC_FRIN, UNSPEC_FRIP,
3207         UNSPEC_FRIZ): New.
3208         (btrunc<mode>2): New.
3209         (ceil<mode>2): New.
3210         (floor<mode>2): New.
3211         (round<mode>2): New.
3212
3213 2005-11-14  Geoffrey Keating  <geoffk@apple.com>
3214
3215         * gcc.c (version_compare_spec_function): Use fatal() rather than
3216         abort().
3217
3218         * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): New.
3219         (SUBTARGET_EXTRA_SPECS): Define %(darwin_crt2).
3220         * config/i386/darwin.h (SUBTARGET_EXTRA_SPECS): Define %(darwin_crt2)
3221         as empty.
3222         * config/darwin.h (STARTFILE_SPEC): Use %(darwin_crt2) to possibly
3223         link in crt2.o.
3224
3225         * config/darwin.h (REAL_LIBGCC_SPEC): Link in shared libgcc depending
3226         on -mmacosx-version-min setting.
3227
3228 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
3229
3230         PR 24840
3231         * tree-vrp.c (infer_value_range): Return false if STMT is a
3232         block terminator and its basic block has no successors.
3233
3234 2005-11-14  Mike Stump  <mrs@apple.com>
3235
3236         * config/i386/i386.c (override_options): -masm=intel isn't
3237         supported on darwin.
3238         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
3239
3240 2005-11-15  Joseph S. Myers  <joseph@codesourcery.com>
3241
3242         * crtstuff.c: Undefine gid_t, pid_t, rlim_t, ssize_t, uid_t and
3243         vfork after including auto-host.h.
3244
3245 2005-11-15  Alan Modra  <amodra@bigpond.net.au>
3246
3247         PR rtl-optimization/22002
3248         * combine.c (distribute_notes): Detect cases where a reg dies
3249         two or more times in a bb, including on the insn we are combining,
3250         and place the death note on the correct range.
3251
3252 2005-11-14  Dale Johannesen  <dalej@apple.com>
3253
3254         * expmed.c (store_bit_field):  Add offset unconditionally for
3255         memory targets.
3256         (extract_bit_field):  Don't force extzv or extv operand into
3257         a register if field is too big.
3258
3259 2005-11-14  Daniel Jacobowitz  <dan@codesourcery.com>
3260
3261         * config/arm/arm.c (pic_labelno): New.
3262         (arm_load_pic_register): Use an UNSPEC_PIC_LABEL instead of a
3263         LABEL_REF.  Pass only the labelno to PIC insns.
3264         (arm_call_tls_get_addr, legitimize_tls_address): Likewise.
3265         (arm_output_addr_const_extra): Handle UNSPEC_PIC_LABEL.
3266         * arm.md (UNSPEC_PIC_LABEL): New constant.
3267         (pic_add_dot_plus_four, pic_add_dot_plus_eight)
3268         (tls_load_dot_plus_eight): Expect a labelno instead of a LABEL_REF.
3269         Use the correct label prefix.
3270
3271 2005-11-14  Daniel Jacobowitz  <dan@codesourcery.com>
3272
3273         * config/arm/arm.c (legitimize_tls_address): Use correct rtx for
3274         REQ_EQUIV note.
3275
3276 2005-11-14  Richard Earnshaw  <richard.earnshaw@arm.com>
3277
3278         * loop-invariant.c: Include tm_p.h.
3279         * Makefile.in: Updated.
3280
3281 2005-11-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3282
3283         * pa.c (store_reg): Revise generation of frame notes in large frames.
3284         (set_reg_plus_d): Likewise.
3285
3286 2005-11-13  Andrew MacLeod  <amacleod@redhat.com>
3287
3288         PR tree-optimization/24709
3289         * tree-ssa-operands.c (verify_imm_links): Increase limit for infinite
3290         loop check.
3291
3292 2005-11-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
3293
3294         * gthr-posix95.h: Remove declaration of pthread_mutexattr_settype
3295         and duplicate declaration of pthread_self.
3296
3297 2005-11-13  Eric Botcazou  <ebotcazou@adacore.com>
3298             Ian Lance Taylor  <ian@airs.com>
3299
3300         PR middle-end/24003
3301         * calls.c (expand_call): If TARGET is a MEM and some part of the
3302         argument area has been saved, force TARGET to a register.
3303
3304 2005-11-13  Razya Ladelsky <razya@il.ibm.com>
3305
3306         * ipa-prop.c (ipa_callsite_compute_param ): Removed obsolete type
3307         checking.
3308
3309 2005-11-13  Jason Merrill  <jason@redhat.com>
3310
3311         PR c++/22489
3312         * dwarf2out.c (gen_subprogram_die): Force a declaration die for
3313         lazily declared methods.
3314         (force_decl_die): Stop if forcing out the context already make a
3315         DIE for the decl.
3316         (force_type_die): Likewise.
3317
3318 2005-11-13  Andrew Pinski  <pinskia@physics.uc.edu>
3319
3320         PR middle-end/24820
3321         * builtins.c (integer_valued_real_p): Add break in
3322         REAL_CST having TREE_OVERFLOW set.
3323
3324 2005-11-13  Zdenek Dvorak  <dvorakz@suse.cz>
3325
3326         * tree-ssa-loop-ivopts.c (get_address_cost): Prevent splitting
3327         addressing modes during calculation of costs.
3328
3329 2005-11-12  Eric Botcazou  <ebotcazou@adacore.com>
3330
3331         * function.c (assign_stack_local_1): Restrict sanity check
3332         on frame size overflow to 32-bit and above platforms.
3333
3334 2005-11-12  Hans-Peter Nilsson  <hp@axis.com>
3335
3336         * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Define.
3337         * config/cris/cris.c: Include reload.h.
3338         (cris_initial_elimination_offset): New function.
3339         * config/cris/cris-protos.h: (cris_initial_elimination_offset):
3340         Prototype.
3341
3342 2005-11-12  Richard Guenther  <rguenther@suse.de>
3343
3344         * gcse.c (find_rtx_in_ldst): Handle NULL pre_ldst_table.
3345
3346 2005-11-12  Jan Hubicka  <jh@suse.cz>
3347
3348         * expr.c (expand_expr_real_1): <MAX_EXPR, MIN_EXPR>: Canonicalize
3349         to compare against 0 when possible.
3350
3351 2005-11-12  Jie Zhang  <jie.zhang@analog.com>
3352
3353         * config/bfin/bfin.h (REGISTER_NAMES, SHORT_REGISTER_NAMES,
3354         HIGH_REGISTER_NAMES, FIXED_REGISTERS, CALL_USED_REGISTERS,
3355         REG_ALLOC_ORDER, enum reg_class): Rearrange I/B/L registers.
3356         * config/bfin/bfin.md: Redefine REG_ constants for I/B/L registers
3357         in the new order.
3358
3359 2005-11-12  Hans-Peter Nilsson  <hp@axis.com>
3360
3361         * recog.c (constrain_operands) <case 'g'>: For a match, require
3362         that a non-register matches general_operand when strict >= 0.
3363
3364 2005-11-11  Steven Bosscher  <stevenb@suse.de>
3365
3366         * loop-invariant.c (move_loop_invariants): Fix a thinko in the
3367         previous checkin.
3368
3369 2005-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
3370
3371         * tree-ssa-dse.c (struct address_walk_data, memory_ssa_name_same)
3372         (memory_address_same): New.
3373         (dse_optimize_stmt): Call memory_address_same.
3374
3375 2005-11-12  Hans-Peter Nilsson  <hp@axis.com>
3376
3377         PR middle-end/24750
3378         * reload.c (find_reloads_address_1) <case TRUNCATE, SIGN_EXTEND,
3379         ZERO_EXTEND>: New cases.
3380
3381 2005-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
3382
3383         * longlong.h (__clz_tab): Always provide.
3384
3385 2005-11-11  Steven Bosscher  <stevenb@suse.de>
3386
3387         PR 24265
3388         * loop-invariant.c (may_assign_reg_p): Make sure a hard register
3389         can be assigned to.
3390         (find_invariant_insn): Do the cheapest check, may_assign_reg_p,
3391         before check_maybe_invariant.
3392         (move_invariant_reg): Use gen_move_insn instead of replacing
3393         SET_DEST with the temporary for the invariant.
3394         (move_loop_invariants): If checking is enabled, do internal
3395         consistency checks after completing the pass.
3396
3397 2005-11-11  David Edelsohn  <edelsohn@gnu.org>
3398
3399         PR 24644
3400         * common.opt (Wvolatile-register-var): New.
3401         * varasm.c (make_decl_rtl): Only emit warning when option
3402         specified.  Clarify warning message.
3403         * doc/invoke.texi (Wvolatile-register-var): Document new option.
3404
3405         * doc/md.texi (copysign): Document standard named pattern.
3406
3407 2005-11-11  Jie Zhang  <jie.zhang@analog.com>
3408
3409         * config/bfin/bfin.c (bfin_expand_strmov): Correctly move the trailing
3410         bytes when align is 2.
3411         * config/bfin/bfin.md (rep_movsi, rep_movhi): Make LSETUP be followed
3412         by the first instruction of the loop.
3413
3414 2005-11-11  Jason Merrill  <jason@redhat.com>
3415