OSDN Git Service

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