OSDN Git Service

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