OSDN Git Service

PR driver/20425
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2005-12-16  Alan Modra  <amodra@bigpond.net.au>
2
3         PR driver/20425
4         * gcc.c (for_each_path): New function.
5         (add_to_obstack, file_at_path): New functions.
6         (struct file_at_path_info, struct add_to_obstack_info): New.
7         (build_search_list): Rewrite using for_each_path.  Constify struct
8         path_prefix pointer.  Add do_multi param.  Adjust all callers.
9         (find_a_file): Similarly, but just change existing param to bool.
10         (putenv_from_prefixes): Add do_multi param, make "paths" const.
11         (do_spec_path): Delete.
12         (struct spec_path_info): New.
13         (spec_path): New function.
14         (do_spec_1): Use for_each_path for %D and %I.
15         (find_file): Adjust for find_a_file changes.
16         (main): Search multilibs for specs.  Print multilib lib path for
17         -print-search-dirs.  Likewise add multilibs to LIBRARY_PATH_ENV.
18         (read_specs): Search multilibs for %include and %include_noerr.
19         (is_directory): Remove second string param.  Change last param
20         to a bool.  Don't use concat.  Remove SMALL_ARG_MAX test, always
21         check path is a dir.  Update all callers.
22         * doc/hostconfig.texi (SMALL_ARG_MAX): Remove mention.
23         * system.h (SMALL_ARG_MAX): Poison.
24         * config.gcc: Don't define SMALL_ARG_MAX.
25         * config.host: Likewise.
26         * config.build: Likewise.
27
28 2005-12-16  Paolo Bonzini  <bonzini@gnu.org>
29
30         * combine.c (combine_simplify_rtx <case NOT, NEG, TRUNCATE,
31         FLOAT_TRUNCATE, FLOAT_EXTEND, PLUS, MINUS, AND, IOR, XOR,
32         ABS, VEC_SELECT, POPCOUNT, PARITY, FFS, FLOAT>,
33         simplify_logical): Move simplifications that do not require
34         additional infrastructure...
35         * simplify-rtx.c (simplify_unary_operation_1,
36         simplify_binary_operation_1): ... here.
37
38 2005-12-16  Andreas Krebbel  <krebbel1@de.ibm.com>
39
40         PR 24823
41         * flow.c (mark_used_dest_regs): New function.
42         (mark_used_regs): Call mark_used_dest_regs.
43
44 2005-12-16  Jeff Law  <law@redhat.com>
45
46         * tree-ssa-dse.c (dse_optimize_stmt): Correctly handle PHI nodes which
47         represent a use and definition of the same SSA_NAME.
48
49 2005-12-16  Jon Grimm  <jgrimm2@us.ibm.com>
50             Janis Johnson  <janis187@us.ibm.com>
51             Ben Elliston  <bje@au.ibm.com>
52
53         * target-def.h (TARGET_DECIMAL_FLOAT_SUPPORTED_P): New.
54         (TARGET_INITIALIZER): Add TARGET_DECIMAL_FLOAT_P.
55         * target.h (struct gcc_target): Add decimal_float_supported_p.
56         * targhooks.c (default_scalar_mode_supported_p): Handle
57         MODE_DECIMAL_FLOAT.
58         * builtins.def: Add new builtins for 32, 64 and 128 bit variants
59         of inf, nan, finite, isinf and isnan.
60         * builtin-types.def (BT_DFLOAT32, BT_DFLOAT64, BT_DFLOAT128,
61         BT_DFLOAT32_PTR, BT_DFLOAT64_PTR, BT_DFLOAT128_PTR,
62         BT_FN_DFLOAT32, BT_FN_DFLOAT64, BT_FN_DFLOAT128,
63         BT_FN_INT_DFLOAT32, BT_FN_INT_DFLOAT64, BT_FN_INT_DFLOAT128,
64         BT_FN_DFLOAT32_CONST_STRING, BT_FN_DFLOAT64_CONST_STRING,
65         BT_FN_DFLOAT32_CONST_STRING, BT_FN_DFLOAT32_DFLOAT32,
66         BT_FN_DFLOAT64_DFLOAT64, BT_FN_DFLOAT128_DFLOAT128): New.
67         * c-decl.c (declspecs_add_type): Verify combos on type qualifiers.
68         Pedwarn if decimal floating point types are used.  Error if
69         decimal floating point is not supported by the target.
70         (finish_declspecs): Return type from DFP typespec_word.
71         * c-typeck.c (c_common_type): Choose the decimal floating point
72         type with the greater precision when determining a common type.
73         (convert_arguments): Warn if there is a mismatch between argument
74         and prototype for decimal float types.  Warn of conversions with
75         binary float types and of precision narrowing due to prototype.
76         * c-parser.c (reswords): Add _Decimal32, _Decimal64, _Decimal128.
77         (c_token_starts_typename): Handle RID_DFLOAT32/64/128.
78         (c_token_starts_declspecs): Likewise.
79         (c_parser_attributes): Likewise.
80         * c-common.h (enum rid): Add new enumeration values RID_DFLOAT32,
81         RID_DFLOAT64, RID_DFLOAT128.
82         (T_D32, TEX_D32, T_D64, TEX_D64, T_D128, TEX_D128): New macros.
83         * c-common.c (c_common_type_for_mode): Handle decimal float modes.
84         (shorten_compare): Convert DFP/BFP operands to a common type.
85         (c_common_modes_and_builtins): Register built-in decimal float
86         types if the target supports them.
87         (handle_mode_addtribute): Handle MODE_DECIMAL_FLOAT.
88         * builtins.c (fold_builtin_1): Handle 32, 64 and 128 bit cases of
89         inf, nan, finite, isinf and isnan builtins.
90         * c-cppbuiltin.c (builtin_define_decimal_float_constants): New.
91         (builtin_define_float_constants): Assert non-decimal radix.
92         (c_cpp_builtins): Register built-in __DEC_EVAL_METHOD__ define.
93         Call builtin_define_decimal_float_constants for each type.
94         * c-lex.c (interpret_float): Decode decimal float types from CPP_N
95         flags.  Use real_from_string3, which can handle binary or decimal
96         floats.
97         * c-tree.h (enum c_typespec_keyword): Add cts_dfloat32,
98         cts_dfloat64, cts_dfloat128.
99         * tree.c (build_common_tree_nodes_2): Add decimal float types.
100         * tree.h (enum tree_index): Add new enumeration values
101         TI_DFLOAT32_TYPE, TI_DFLOAT64_TYPE, TI_DFLOAT128_TYPE,
102         TI_DFLOAT32_PTR_TYPE, TI_DFLOAT64_PTR_TYPE, TI_DFLOAT128_PTR_TYPE.
103         (dfloat32_type_node): New macro.
104         (dfloat64_type_node, dfloat128_type_node): Likewise.
105         (dfloat32_ptr_type_node, dfloat64_ptr_type_node): Likewise.
106         (dfloat128_ptr_type_node): Likewise.
107         * c-pretty-print.c (pp_c_floating_constant): Append 32, 64 and 128
108         bit decimal floating point types with "df", "dd" and "dl".
109         * c-format.h (enum format_lengths): Add new enumeration values
110         FMT_LEN_H, FMT_LEN_D and FMT_LEN_DD.
111         * c-format.c (printf_length_specs, scanf_length_specs): Add
112         entries for H, D, DD.
113         (print_char_table, scan_char_table): Use new entries.
114         (asm_fprintf_char_table, gcc_diag_char_table,
115         gcc_cdiag_char_table, gcc_cxxdiag_char_table): Adjust for longer
116         length arrays.
117         * defaults.h (DECIMAL32_TYPE_SIZE): Define.
118         (DECIMAL64_TYPE_SIZE): Likewise.
119         (DECIMAL128_TYPE_SIZE): Likewise.
120         (TARGET_DEC_EVAL_METHOD): Likewise.
121         * doc/extend.texi (Decimal Float): New node.
122         (Constructing Calls): Document decimal float built-ins.
123         * doc/tm.texi: Document TARGET_DECIMAL_FLOAT_SUPPORTED_P hook.
124         * Makefile.in (USER_H): Add $(srcdir)/ginclude/decfloat.h.
125         * ginclude/decfloat.h: New file.
126
127 2005-12-16  Alan Modra  <amodra@bigpond.net.au>
128
129         * reload.c (find_reloads): Fix comment typo.
130         * recog.h (recog_memoized): Correct comment.
131
132 2005-12-16  Kazu Hirata  <kazu@codesourcery.com>
133
134         * basic-block.h, config/i386/winnt.c, config/pa/pa.c,
135         config/s390/s390.c, dfp.c, expr.c, fold-const.c, params.def,
136         reload.c, struct-equiv.c, tree-ssa-ccp.c, tree-ssa-pre.c,
137         tree-ssa-reassoc.c, tree-ssa-structalias.c: Fix comment typos.
138         * doc/invoke.texi, doc/tm.texi: Fix typos.
139
140 2005-12-16  Ben Elliston  <bje@au.ibm.com>
141
142         * real.c (decimal_quad_format): Correct values for emin, emax.
143
144 2005-12-15  DJ Delorie  <dj@redhat.com>
145
146         * config/m32c/predicates.md (m32c_psi_scale): New.
147         * config/m32c/m32c.c (m32c_expand_neg_mulpsi3): New.
148         * config/m32c/muldiv.md (mulpsi3): Support negative constants.
149
150 2005-12-16  Jan Hubicka  <jh@suse.cz>
151
152         PR rtl-optimization/25224
153         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Free copy
154         tables.
155
156 2005-12-15  Zdenek Dvorak <dvorakz@suse.cz>
157             Steven Bosscher <stevenb@suse.de>
158
159         * loop-invariant.c (df): New global variable.
160         (find_defs, check_dependencies, find_invariant_insn, record_uses,
161         find_invariants_bb, find_invariants_body, find_invariants,
162         find_invariants_to_move, move_invariants, free_inv_motion_data,
163         move_single_loop_invariants, move_loop_invariants): Do not pass df in
164         arguments.
165
166 2005-12-15  Jakub Jelinek  <jakub@redhat.com>
167
168         * varasm.c (default_unique_section_1): Use special section
169         names for SECCAT_DATA_REL{,_RO}{,_LOCAL}.
170
171 2005-12-16  Ben Elliston  <bje@au.ibm.com>
172
173         * doc/invoke.texi (Warning Options): Document -Walways-true being
174         enabled by -Wall.
175
176 2005-12-15  Joseph S. Myers  <joseph@codesourcery.com>
177
178         PR other/25028
179         * libgcc2.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Define.
180         * libgcc2.c (__floatdixf, __floatundixf, __floatditf,
181         __floatunditf): Use #error if type sizes don't match requirements
182         of implementation.
183         (__floatdisf, __floatdidf): Unify.  Possibly use XFmode or TFmode
184         as wider floating-point type.  Use #error if type sizes don't
185         match requirements of implementation.  Avoid overflow in computing
186         Wtype_MAXp1_F * Wtype_MAXp1_F.  When special casing conversion,
187         shift one more bit.  Cast 1 to DWtype or UDWtype for shifting.
188         (__floatundisf, __floatundidf): Likewise.
189         * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Define.
190         * config/ia64/ia64.c (ia64_init_libfuncs): Use
191         _U_Qfcnvfxt_quad_to_quad and _U_Qfcnvxf_quad_to_quad for
192         TFmode-TImode conversions.
193         * doc/tm.texi (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Document.
194
195 2005-12-14  Craig Rodrigues  <rodrigc@gcc.gnu.org>
196
197         * freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS):
198         Use builtin_define_with_int_value() instead of
199         adding a new check for every new major FreeBSD version.
200
201 2005-12-14  Andrew Pinski  <pinskia@physics.uc.edu>
202
203         * config/t-darwin (darwin-c.o): Depend on $(TREE_H) instead of tree.h.
204
205 2005-12-15  Richard Sandiford  <richard@codesourcery.com>
206
207         * config/arm/predicates.md (call_memory_operand): New.
208         * config/arm/arm.md (*call_mem, *call_value_mem): Use it.
209
210 2005-12-15  Andrew Haley  <aph@redhat.com>
211
212         * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Guard
213         against prev_cache_entry == NULL when moving a cache entry to the
214         head of the list.
215         
216 2005-12-15  Nathan Sidwell  <nathan@codesourcery.com>
217
218         * config/mt/mt.c (mt_override_options): Require lower case
219         architectures.  Revert accidental default to ms2.
220         * config/mt/mt.h (ASM_SPEC, LIBSPEC, STARTFILE_SPEC,
221         ENDFILE_SPEC): Require lower case architectures.  Revert default
222         to ms2.
223
224         * doc/invoke.texi (MT Options): Rename and update.
225         * doc/md.texi (MorphoTech family): Rename and update.
226
227 2005-12-15  Olivier Hainque  <hainque@adacore.com>
228
229         * stor-layout.c (layout_type): Don't complain about a too small
230         an array element type size compared to its alignment when the
231         size overflows.
232
233 2005-12-15  Jan Hubicka  <jh@suse.cz>
234
235         PR target/24969
236         * i386.c (classify_argument): Properly adjust offset of bitfield for
237         substructures.
238
239 2005-12-15  Richard Sandiford  <richard@codesourcery.com>
240
241         * final.c (final_scan_insn): Flip in_cold_section_p when changing
242         between the hot and cold sections.  Use current_function_section
243         to get the new section.
244         * dwarf2out.c (output_line_info): Use in_cold_section_p to
245         determine whether we are assembling hot or cold code.
246         (secname_for_decl, dwarf2out_var_location): Likewise.
247         (dwarf2out_init, dwarf2out_finish): Use switch_to_section.
248         * varasm.c (last_text_section): Delete.
249         (in_cold_section_p): New variable.
250         (hot_function_section): New function.
251         (current_function_section): Pass in_cold_section_p as the
252         reloc argument to select_section.  Use it to decide between
253         unlikely_function_section and hot_function_section.
254         (assemble_start_function): Use switch_to_section.  Set
255         in_cold_section_p instead of last_text_section.
256         (assemble_end_function): Use switch_to_section.
257         (switch_to_section): Don't set last_text_section.
258         * config/darwin/darwin.c (machopic_select_section): Trust the reloc
259         argument to make the right choice between hot and cold sections.
260
261 2005-12-15  Nathan Sidwell  <nathan@codesourcery.com>
262
263         Second part of MS1->MT renaming
264         * config/mt/mt.md (doloop_end): Call mt_add_loop.
265         (movqi, movhi): Call mt_set_memflags.
266         (*movdf_internal): Call mt_split_words. 
267         (reload_inqi, reload_outqi, reload_inhi, reload_outhi): Call
268         mt_set_memflags.
269         (cmpsi): Store to mt_compare_op[01].
270         (beq, bne, bge, bgt, ble, blt, bgeu, bgtu, bleu, bltu, bunge,
271         bungt, bunle, bunlt): Call mt_emit_cbranch.
272         (prologue): Call mt_expand_prologue.
273         (epilogu): Call mt_expend_epilogue.
274         (eh_return): Call mt_expand_eh_return.
275         (eh_epilogue): Call me_emit_eh_epilogue.
276         (conditional_trap): Store to mt_compare_op[01].
277         * config/mt/crti.asm: Adjust comment.
278         * config/mt/crtn.asm: Adjust comment.
279         * config/mt/mt.c (MT_INT_ARG_FIRST): Renamed.
280         (mt_compare_op0, mt_compare_op1): Renamed.
281         (current_frame_info, zero_frame_info): Adjust type.
282         (mt_ucmpsi3_libcall): Renamed.
283         (mt_flag_delayed_branch): Renamed.
284         (mt_struct_value_rtx, mt_return_addr_rtx): Renamed.
285         (mt_nops_required, mt_nop_reasons): Renamed.
286         (mt_asm_output_opcode, mt_get_attr_type, mt_final_prescan_insn,
287         mt_debug_stack, mt_print_operand_simple_address,
288         mt_print_operand_address, mt_print_operand): Renamed, adjusted.
289         (mt_init_cumulative_args, mt_function_arg_slotno, mt_function_arg,
290         mt_function_arg_advance, mt_arg_partial_bytes,
291         mt_pass_by_reference, mt_function_arg_boundary,
292         mt_reg_ok_for_base_p, mt_legitimate_simple_address_p,
293         mt_legitimate_address_p): Renamed, adjusted.
294         (mt_cpu): Renamed.
295         (mt_init_machine_status, mt_override_options, mt_builtin_saveregs,
296         mt_va_start, mt_compute_frame_size, mt_emit_save_restore,
297         mt_emit_save_fp, mt_emit_save_regs, mt_interrupt_function_p, 
298         mt_expand_prologue, mt_epilogue_uses, mt_expand_epilogue,
299         mt_expand_eh_return, mt_emit_eh_prologue,
300         mt_handl_interrupt_attribute): Renamed, adjusted.
301         (mt_attribute_table): Renamed, adjusted.
302         (mt_initial_elimination_offset, mt_generate_compare,
303         mt_emit_cbranch, mt_set_memflags_1, mt_set_memflags,
304         mt_secondary_reload_class, mt_function_value, mt_split_words,
305         mt_pass_in_stack, mt_add_loop, mt_loop_nesting, mt_block_length,
306         mt_scan_loop, mt_reorg_loops): Renamed, adjusted.
307         (mt_labels): Renamed.
308         (mt_add_branches, mt_check_delay_slot, mt_reorg_hazard,
309         mt_machine_reorg): Renamed, adjusted.
310         (mt_attribute_table: Renamed.
311         (TARGET_ATTRIBUTE_TABLE, TARGET_STRUCT_VALUE_RTX,
312         TARGET_PASS_BY_REFERENCE, TARGET_MUST_PASS_IN_STACK,
313         TARGET_ARG_PARTIAL_BYTES, TARGET_MACHINE_DEPENDENT_REORG): Adjust.
314         * config/mt/mt.opt (march): Set mt_cpu_string.
315         * config/mt/mt.h (mt_ucmpsi3_libcall, mt_cpu): Renamed.
316         (TARGET_CPU_CPP_BUILTINS): Adjust.
317         (TARGET_MS1_64_001, TARGET_MS1_16_002, TARGET_MS1_16_003,
318         TARGET_MS2): Adjust.
319         (TARGET_VERSION, OVERRIDE_OPTIONS, SECONDARY_RELOAD_CLASS): Adjust.
320         (MT_MIN_INT): Renamed.
321         (RETURN_ADDR_RTX): Adjust.
322         (struct mt_frame_info): Renamed.
323         (current_frame_info): Adjust type.
324         (INITIAL_ELIMINATION_OFFSET): Adjust.
325         (MT_NUM_ARG_REGS): Renamed.
326         (REG_PARM_STACK_SPACE, FUNCTION_ARG, INIT_CUMULATVE_ARGS,
327         FUNCTION_ARG_ADVANCE, FUNCTION_ARG_BOUNDARY, FUNCTION_VALUE,
328         LIBCALL_VALUE, EPILOGUE_USES, EXPAND_BUILTIN_VA_START,
329         GO_IF_LEGITIMATE_ADDRESS, REG_OK_FOR_BASE_P, ASM_OUTPUT_OPCODE,
330         FINAL_REPSCAN_INSN, PRINT_OPERAND, PRINT_OPERAND_ADDRESS): Adjust.
331         (mt_compare_op0, mt_compare_op1): Renamed.
332         * config/mt/mt-protos.h: Rename prototypes.
333
334 2005-12-15  Richard Guenther  <rguenther@suse.de>
335
336         * tree-flow.h (okay_component_ref_for_subvars): Remove.
337         (get_ref_base_and_extent): Declare.
338         * tree-dfa.c (okay_component_ref_for_subvars): Remove.
339         (get_ref_base_and_extent): New function.
340         * tree-ssa-alias.c (find_used_portions): Use it.
341         * tree-ssa-structalias.c (get_constraint_for_component_ref):
342         Likewise.
343         * tree-ssa-operands.c (get_expr_operands): Likewise.
344
345 2005-12-15  Paolo Bonzini  <bonzini@gnu.org>
346
347         * combine.c: Remove force_to_mode's fourth parameter.
348         (force_to_mode): Do not handle REG.
349         (canon_reg_for_combine): New.
350         (make_field_assignment): Use it where the removed argument was non-NULL.
351
352 2005-12-15  Alan Modra  <amodra@bigpond.net.au>
353
354         PR target/25406
355         * config/rs6000/rs6000.c (rs6000_special_round_type_align): Handle
356         error_mark_node.  Make alignment params unsigned.
357         * config/rs6000/rs6000-protos.h
358         (rs6000_special_round_type_align): Update prototype.
359         (rs6000_machopic_legitimize_pic_address): Remove arg names.
360
361 2005-12-14  Ulrich Weigand  <uweigand@de.ibm.com>
362
363         PR rtl-optimization/25310
364         * reload1.c (eliminate_regs_in_insn): Handle lowpart SUBREGs
365         of the eliminable register when substituting into a PLUS.
366
367 2005-12-14  Jakub Jelinek  <jakub@redhat.com>
368
369         PR debug/25023
370         * config/i386/i386.c (ix86_force_to_memory): Always use
371         SImode push for HImode in -m32.
372         (ix86_free_from_memory): Likewise.
373
374 2005-12-14  Richard Sandiford  <richard@codesourcery.com>
375
376         * gcc/config/arm/arm.md: Provide a big-endian version of the
377         (zero_extend:SI (subreg:QI ...)) splitter.
378
379 2005-12-14  J"orn Rennecke <joern.rennecke@st.com>
380
381         * struct-equiv.c (note_local_live): Handle hard regs with different
382         hard_regno_nregs.
383
384 2005-12-14  Jeff Law  <law@redhat.com>
385
386         * tree-ssa-ccp.c (fold_stmt_r): DATA argument is now a pointer
387         to a structure containing state rather than a pointer to bool.
388         (case ARRAY_REF): New code to handle folding some array references.
389         (case ADDR_EXPR): Note when we are processing expressions found
390         within an ADDRE_EXPR.
391         (fold_stmt, fold_stmt_inplace): Pass in a structure to fold_stmt_r
392         for state variables rather than just a pointer to a boolean.
393         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Remove
394         handling of constant string references.
395
396 2005-12-14  Adrian Straetling  <straetling@de.ibm.com>
397
398         * config/s390/s390.md ("*tstdi_extimm", "*tstsi_extimm"): Merge.
399         ("*tstdi_cconly_extimm", "*tstsi_cconly_extimm"): Merge.
400         ("*tstdi_cconly2", "*tstsi_cconly2"): Merge.
401         Move other tst* patterns to retain partial order.
402
403 2005-12-14  Adrian Straetling  <straetling@de.ibm.com>
404
405         * config/s390/s390.md ("d0", "1"): New mode attributes.
406         ("<shift>di3", "<shift>si3"): Merge.
407         ("*<shift>di3_and", "*<shift>si3_and"): Merge.
408         ("ashrdi3", "ashrsi3"): Merge.
409         ("*ashrdi3_cc", "*ashrsi3_cc"): Merge.
410         ("*ashrdi3_cc_and", "*ashrsi3_cc_and"): Merge.
411         ("*ashrdi3_cconly", "*ashrsi3_cconly"): Merge.
412         ("*ashrdi3_cconly_and", "*ashrsi3_cconly_and"): Merge.
413         ("*ashrdi3", "*ashrsi3"): Merge.
414         ("*ashrdi3_and", "*ashrsi3_and"): Merge.
415
416 2005-12-14  Adrian Straetling  <straetling@de.ibm.com>
417
418         * config/s390/s390.md ("extend<mode>di2", "extend<mode>si2"): Merge.
419         ("*extendqidi2_extimm", "*extendqisi2_extimm"): Merge.
420         ("*extendqidi2", "*extendqisi2") Merge.
421         ("*extendqidi2_short_displ", "*extendqisi2_short_displ"): Merge.
422         ("zero_extendhidi2", "zero_extendqidi2"): Merge.
423         ("*zero_extend<mode>di2_extimm", "*zero_extend<mode>si2_extimm"): Merge.
424         Move some patterns to retain partial ordering.
425
426 2005-12-14  Adrian Straetling  <straetling@de.ibm.com>
427
428         * config/s390/s390.md ("atype", "length"): Rewrite.
429         ("*insv<mode>_reg_imm", "*insv<mode>_reg_extimm"): Add mode.
430
431 2005-12-14  Sebastian Pop  <pop@cri.ensmp.fr>
432
433         * tree-ssa-operands.c (build_ssa_operands): Update leading comment.
434
435 2005-12-14  J"orn Rennecke <joern.rennecke@st.com>
436
437         * struct-equiv.c (rtx_equiv_p): Allow arbitrary RVALUE values for
438         PARALLELs with a mode.
439
440 2005-12-14  Sebastian Pop  <pop@cri.ensmp.fr>
441
442         * cfgloopmanip.c (lv_adjust_loop_entry_edge): Adjust the type of
443         cond_expr parameter.
444
445 2005-12-14  Sebastian Pop  <pop@cri.ensmp.fr>
446
447         * loop-unswitch.c (unswitch_loop): Free zero_bitmap before returning.
448
449 2005-12-14  J"orn Rennecke <joern.rennecke@st.com>
450
451         PR bootstrap/25397:
452
453         * struct-equiv.c (struct_equiv_init): Fix off-by-one error in clearing
454         of STACK_REGS bits.
455
456         * struct-euiv.c (rtx_equiv_p): Remove SUBREG case.
457
458 2005-12-14  Jakub Jelinek  <jakub@redhat.com>
459
460         PR target/25254
461         PR target/24188
462         * config/i386/i386.c (x86_64_elf_select_section): If DECL is not
463         DECL_P, call get_section rather than get_named_section.  Supply
464         section flags to it.
465
466 2005-12-14  Ben Elliston  <bje@au.ibm.com>
467
468         * c-common.c (c_common_truthvalue_conversion): Generalise warning
469         for addresses converted to booleans; not just function addresses.
470         * c-typeck.c (build_binary_op): Warn for address comparisons which
471         can never be NULL (eg. func == NULL or &var == NULL).
472         * common.opt (Walways-true): New option.
473         * c-opts.c (c_common_handle_option): Set it with -Wall.
474         * doc/invoke.texi: Document it.
475
476 2005-12-13  Paul Brook  <paul@codesourcery.com>
477
478         * config/m68k/fpgnulib.c (__unordsf2, __unorddf2, __unordxf2,
479         __floatunsidf, __floatunsisf, __floatunsixf): New functions.
480
481 2005-12-13  Nathan Sidwell  <nathan@codesourcery.com>
482
483         * sim/common/sim-signal.c (sim_signal_to_target): Add missing ':'.
484         * sim/common/sim-signal.h (sim_signal_to_target): Return an int.
485
486         * config/mt/t-mt (crti.o, crtn.o): Add multilib options.
487         (EXTRA_MULTILIB_PARTS): Define.
488
489 2005-12-13  J"orn Rennecke <joern.rennecke@st.com>
490
491         PR rtl-optimization/20070 / part1
492         * flow.c (update_life_info): If PROP_POST_REGSTACK is set, call
493         count_or_remove_death_notes with kill == -1.
494         (mark_set_1): Don't add REG_DEAD / REG_UNUSED notes for stack
495         registers if PROP_POST_REGSTACK is set.
496         (mark_used_reg): Likewise.
497         (count_or_remove_death_notes): If kill is -1, don't remove REG_DEAD /
498         REG_UNUSED notes for stack regs.
499         * cfgcleanup.c (condjump_equiv_p): Change parameters and processing
500         to match rtx_equiv_p machinery.  Change caller.
501         (outgoing_edges_match): Likewise.
502         (try_crossjump_to_edge): Use struct_equiv_block_eq
503         instead of flow_find_cross_jump.
504         * basic-block.h (PROP_POST_REGSTACK, STRUCT_EQUIV_START): Define.
505         (STRUCT_EQUIV_RERUN, STRUCT_EQUIV_FINAL): Likewise.
506         (STRUCT_EQUIV_NEED_FULL_BLOCK, STRUCT_EQUIV_MATCH_JUMPS): Likewise.
507         (STRUCT_EQUIV_MAX_LOCAL): Likewise.
508         (struct struct_equiv_checkpoint, struct equiv_info): Likewise.
509         (insns_match_p): Update prototype.
510         (flow_find_cross_jump): Remove prototype.
511         (struct_equiv_block_eq, struct_equiv_init): Declare.
512         (rtx_equiv_p, condjump_equiv_p): Likewise.
513         * struct-equiv.c: Include reload.h.
514         (IMPOSSIBLE_MOVE_FACTOR): Define.
515         (assign_reg_reg_set, struct_equiv_make_checkpoint): New functions.
516         (struct_equiv_improve_checkpoint): Likewise.
517         (struct_equiv_restore_checkpoint, rtx_equiv_p): Likewise.
518         (set_dest_equiv_p, set_dest_addr_equiv_p, struct_equiv_init): Likewise.
519         (struct_equiv_merge, find_dying_input): Likewise.
520         (resolve_input_conflict, note_local_live): Likewise.
521         (death_notes_match_p): Change parameters and processing
522         to match rtx_equiv_p machinery.  Change caller.
523         (insns_match_p): Likewise.
524         (flow_find_cross_jump): Replace with:
525         (struct_equiv_block_eq).
526
527         Back out this change:
528         2005-03-07  Kazu Hirata  <kazu@cs.umass.edu>
529           * recog.c (verify_changes): Make it static.
530           * recog.h: Remove the corresponding prototype.
531
532 2005-12-13  J"orn Rennecke <joern.rennecke@st.com>
533
534         * rtlhooks.c (gen_lowpart_general): Handle SUBREGs of floating point
535         values.
536
537 2005-12-13  Nathan Sidwell  <nathan@codesourcery.com>
538
539         * config/mt/t-mt (MULTILIB_OPTIONS): Add ms2
540         (MULTILIB_DIRNAMES): Add ms2.  Prefix ms1 dirs with 'ms1'.
541         * config/mt/mt.c (ms1_final_prescan): Use TARGET_MS2,
542         TARGET_MS1_64_001 appropriately.
543         (ms1_machine_reorg): Use TARGET_MS2.
544
545 2005-12-13  Jakub Jelinek  <jakub@redhat.com>
546
547         PR debug/25023
548         PR target/25293
549         * expr.c (emit_move_resolve_push): Handle PRE_MODIFY
550         and POST_MODIFY with CONST_INT adjustment equal to PUSH_ROUNDING.
551         Fix POST_INC/POST_DEC handling if PUSH_ROUNDING is not identity.
552         * config/i386/i386.md (pushhi2, pushqi2): Use pushl instead of pushw.
553         Set mode to SI, adjust constraints.
554         (pushhi2_rex64, pushqi2_rex64): Set mode to DI.
555         * config/i386/i386.h (PUSH_ROUNDING): Round up to 4 instead of 2 for
556         32-bit code.
557
558 2005-12-13  Carlos O'Donell <carlos@codesourcery.com>
559
560         * c-cppbuiltin.c (builtin_define_float_constants): Add
561         fp_cast parameter, pass to builtin_define_with_hex_fp_value.
562         Define __FLT_HAS_DENORM__, __DBL_HAS_DENORM__, __LDBL_HAS_DENORM__.
563         (builtin_define_with_hex_fp_value): Use fp_cast when building macro.
564         (c_cpp_builtins): If flag_single_precision_constant then set fp_cast
565         to "((double)%sL)" otherwise "%s".
566
567 2005-12-13  Paul Brook  <paul@codesourcery.com>
568
569         * config/arm/bpabi.h (SUBTARGET_EXTRA_ASM_SPEC): Pass -meabi=gnu for
570         apcs/atpcs.
571
572 2005-12-11 Rafael Ávila de Espíndola <rafael.espindola@gmail.com>
573
574         * tree-flow.h: Allow compilation with a C++ compiler.
575         (struct edge_prediction): Prefix all field names  with "ep_".
576         * predict.c (tree_predicted_by_p): Likewise for struct edge_prediction.
577         (tree_predict_edge, combine_predictions_for_bb): Likewise.
578         (remove_predictions_associated_with_edge): Likewise.
579         
580 2005-12-12  Jeff Law  <law@redhat.com>
581
582         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Remove
583         reassociation code.
584         * passes.c (init_optimization_passes): Run reassociation again
585         after loop optimizations.
586
587 2005-12-12  Daniel Berlin  <dberlin@dberlin.org>
588
589         * tree-ssa-dom.c (thread_across_edge): Canonicalize condition
590         if necessary.
591         (optimize_stmt): Ditto.
592         (canonicalize_comparison): New function.
593         * tree-ssa-operands.c (swap_tree_operands): Make external.
594         (get_expr_operands): Stop auto-canonicalization.
595         * tree-ssa-reassoc.c: Rewrite.
596         (init_optimization_passes): 
597         * tree-flow.h (swap_tree_operands): Prototype.
598         * Makefile.in (tree-ssa-reassoc.o): Update dependencies.
599
600 2005-12-12  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
601
602         * pa.c (pa_output_function_epilogue): Set cfun->machine->in_nsubspa to
603         indicate function epilogue has been output.
604         (pa_asm_output_mi_thunk): Likewise.
605         (output_deferred_plabels): Put plabels in readonly data section when
606         not generating PIC code.
607         (som_output_text_section_asm_op): Use .NSUBSPA to output debug
608         information.  Add assert.
609         (som_output_comdat_data_section_asm_op): New function.
610         (pa_som_asm_init_sections): Use som_output_comdat_data_section_asm_op
611         instead of output_section_asm_op for COMDAT sections.
612
613 2005-12-12  J"orn Rennecke <joern.rennecke@st.com>
614
615         * cfgcleanup.c (condjump_equiv_p, try_crossjump_to_edge):
616         Fix whitespace in vincinity of to-be-installed changes.
617         * struct-equiv.c (merge_memattrs, death_notes_match_p): Fix whitespace.
618         (insns_match_p): Likewise.
619
620 2005-12-12  Nathan Sidwell  <nathan@codesourcery.com>
621
622         * config.gcc (ms1): Replace with ...
623         (mt): ... this.
624         * config/ms1: Rename to ...
625         * config/mt: ... here.  Rename ms1 files to mt.
626         * config/mt/mt.c: Adjust gt-mt.h #include.
627         * config/mt/t-mt (LIB1ASMSRCS, LIB2FUNCS_EXTRA): Adjust.
628         (crti.o, crtn.o): Adjust file names.
629
630 2005-12-12  Gabriel Dos Reis  <gdr@integrable-solutions.net>
631
632         * varray.h: Allow compilation with a C++ compiler.
633         (union varray_data_tag): Prefix all field names with "vdt_".
634         (VARRAY_CHAR, VARRAY_UCHAR, VARRAY_SHORT, VARRAY_USHORT,
635         VARRAY_INT, VARRAY_UINT, VARRAY_LONG, VARRAY_ULONG,
636         VARRAY_WIDE_INT, VARRAY_UWIDE_INT, VARRAY_GENERIC_PTR,
637         VARRAY_GENERIC_PTR_NOGC, VARRAY_CHAR_PTR, VARRAY_RTX,
638         VARRAY_RTVEC, VARRAY_TREE, VARRAY_BITMAP, VARRAY_REG, VARRAY_BB,
639         VARRAY_ELT_LIST, VARRAY_EDGE, VARRAY_TREE_PTR): Adjust definition.
640         (VARRAY_PUSH_CHAR, VARRAY_PUSH_UCHAR, VARRAY_PUSH_SHORT,
641         VARRAY_PUSH_USHORT, VARRAY_PUSH_INT, VARRAY_PUSH_UINT, 
642         VARRAY_PUSH_LONG, VARRAY_PUSH_ULONG, VARRAY_PUSH_WIDE_INT, 
643         VARRAY_PUSH_UWIDE_INT, VARRAY_PUSH_GENERIC_PTR, 
644         VARRAY_PUSH_GENERIC_PTR_NOGC, VARRAY_PUSH_CHAR_PTR, 
645         VARRAY_PUSH_RTX, VARRAY_PUSH_RTVEC, VARRAY_PUSH_TREE, 
646         VARRAY_PUSH_BITMAP, VARRAY_PUSH_REG, VARRAY_PUSH_BB, 
647         VARRAY_PUSH_EDGE, VARRAY_PUSH_TREE_PTR): Likewise.
648         (VARRAY_TOP_CHAR, VARRAY_TOP_UCHAR, VARRAY_TOP_SHORT, 
649         VARRAY_TOP_USHORT, VARRAY_TOP_INT, VARRAY_TOP_UINT, 
650         VARRAY_TOP_LONG, VARRAY_TOP_ULONG, VARRAY_TOP_WIDE_INT, 
651         VARRAY_TOP_UWIDE_INT, VARRAY_TOP_GENERIC_PTR, 
652         VARRAY_TOP_GENERIC_PTR_NOGC, VARRAY_TOP_CHAR_PTR, VARRAY_TOP_RTX, 
653         VARRAY_TOP_RTVEC, VARRAY_TOP_TREE, VARRAY_TOP_BITMAP, 
654         VARRAY_TOP_REG, VARRAY_TOP_BB, VARRAY_TOP_EDGE, 
655         VARRAY_TOP_TREE_PTR): Likewise.
656         * varray.c (varray_grow): Likewise.
657         (varray_clear): Likewise.
658
659 2005-12-12  Alan Modra  <amodra@bigpond.net.au>
660
661         PR target/25299
662         * config/rs6000/rs6000.c (rs6000_special_round_type_align): Increase
663         alignment to doubleword if the first field is a double array.
664         * config/rs6000/linux64.h (TARGET_ALIGN_NATURAL): Define.
665
666 2005-12-11  Daniel Berlin  <dberlin@dberlin.org>
667
668         * tree-ssa-structalias.c (process_constraint): Remove code to
669         transform addressofs into scalar.
670         (create_variable_info_for): In whole-program IPA, globals don't
671         point to ANYTHING by default.
672
673 2005-12-11  Daniel Berlin  <dberlin@dberlin.org>
674
675         * timevar.def (TV_IPA_PTA): New.
676         * tree-pass.h (pass_ipa_pta): New
677         * tree-ssa-structalias.c: Include cgraph.h
678         (in_ipa_mode): New.
679         (predbitmap_obstack): New.
680         (EXECUTE_IF_IN_NONNULL_BITMAP): New.
681         (struct constraint_stats): Add num_edges.
682         (new_var_info): Don't call bitmap_clear.
683         (struct constraint_edge): Update docs.
684         (new_constraint_edge): Remove src param.
685         (struct constraint_graph): Add zero_weight_succs,
686         zero_weight_preds.  Update docs.
687         (constraint_expr_equal): Reformat.
688         (constraint_edge_equal): Update for removal of src.
689         (constraint_edge_less): Ditto.
690         (constraint_edge_vec_find): Ditto.
691         (erase_graph_self_edge): Update for removal of src and and zero
692         weight bitmap.
693         (clear_edges_for_node): Ditto.
694         (add_graph_edge): Ditto.
695         (get_graph_weights): Ditto.
696         (allocate_graph_weights): Ditto.
697         (merge_graph_nodes): Ditto.
698         (int_add_graph_edge): Ditto.
699         (valid_graph_edge): Ditto.
700         (valid_weighted_graph_edge): Ditto.
701         (build_constraint_graph): Ditto.
702         (scc_visit): Ditto.
703         (collapse_nodes): Ditto.
704         (process_unification_queue): Ditto.
705         (topo_visit): Ditto.
706         (solve_graph): Ditto.
707         (do_structure_copy): Ditto.
708         (perform_var_substitution): Ditto.
709         Init and release obstack.
710         (handle_ptr_arith): Try to resolve directly.
711         (find_func_aliases): Don't call update_alias_info here
712         Handle RETURN_EXPR, and CALL_EXPR's in IPA mode.
713         (do_sd_constraint): Add code for propagating faster.
714         Update.
715         (do_ds_constraint): Ditto.
716         (count_num_arguments): New function.
717         (create_function_info_for): Ditto.
718         (create_variable_info_for): Handle FUNCTION_DECL.
719         (intra_create_variable_infos): Use make_constraint_to_anything.
720         (init_alias_vars): Init obstacks here.
721         (need_to_solve): Handle zero weight graph changes.
722         (compute_points_to_sets): Call update_alias_info here.
723         (delete_points_to_sets): Free zero weight preds/succs here.
724         (gate_ipa_pta): New.
725         (ipa_pta_execute): New
726
727 2005-12-11  Daniel Berlin  <dberlin@dberlin.org>
728
729         * tree-ssa-structalias.c (var_anyoffset): Removed.
730         (anyoffset_tree): Ditto.
731         (anyoffset_id): Ditto.
732         (do_deref): Take vector of constraints, no return value.
733         Update to work on vector.                
734         (get_constraint_for): Ditto.
735         (get_constraint_for_component_ref): Ditto.
736         (do_structure_copy): Ditto.
737         (handle_ptr_arith): Ditto.
738         (find_func_aliases): Ditto.
739         (set_uids_in_ptset): Remove anyoffset handling.
740         (init_base_vars): Ditto.
741
742 2005-12-10  Mark Mitchell  <mark@codesourcery.com>
743
744         PR c++/25010
745         * ipa-inline.c (cgraph_clone_inlined_nodes): Do not assume that
746         DECL_EXTERNAL functions have no bodies.  Tidy.
747
748 2005-12-10  Andreas Schwab  <schwab@suse.de>
749
750         * except.c (switch_to_exception_section): Only define if
751         TARGET_UNWIND_INFO is not defined.
752
753 2005-12-10  Richard Sandiford  <richard@codesourcery.com>
754
755         * config/darwin.h (HAS_INIT_SECTION): Remove definition.
756         (INIT_SECTION_ASM_OP): Restore empty definition from before 2005-12-07.
757
758 2005-12-10  Richard Sandiford  <richard@codesourcery.com>
759
760         * output.h (init_section, fini_section): Delete.
761         * varasm.c (init_section, fini_section): Delete.
762         (init_varasm_once): Don't initialize them.
763         * doc/tm.texi (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Say that
764         there are no corresponding varasm.c variables.
765
766 2005-12-10  Richard Sandiford  <richard@codesourcery.com>
767
768         * dwarf2out.c (default_eh_frame_section): Delete, moving handling
769         of EH_FRAME_SECTION_NAME into...
770         (switch_to_eh_frame_section): ...here.  Try to set eh_frame_section
771         if it is still null.
772         * except.c (default_exception_section): Delete, moving most
773         of the code to...
774         (switch_to_exception_section): ...this new function.  Set
775         exception_section if it is still null, then switch to it.
776         (output_function_exception_table): Use switch_to_exception_section.
777         * varasm.c (exception_section, eh_frame_section): Update comments.
778         (get_section): Hoist use of SECTION_NAMED.
779         (init_varasm_once): Don't set exception_section and eh_frame_section.
780         * output.h (default_exception_section): Delete.
781         (default_eh_frame_section): Delete.
782
783 2005-12-09  Bernd Schmidt  <bernd.schmidt@analog.com>
784
785         * config/bfin/bfin.c: Include "cgraph.h".
786         (bfin_load_pic_reg): Omit loading pic reg if in a local function.
787         Return the reg that holds the pointer to the GOT.
788         (bfin_expand_prologue): Use return value of bfin_load_pic_reg when
789         doing stack checking.
790
791 2005-12-09  Diego Novillo  <dnovillo@redhat.com>
792
793         * tree.c (recompute_tree_invariant_for_addr_expr): Rename from
794         recompute_tree_invarant_for_addr_expr.
795         Update uses everywhere.
796
797 2005-12-09  Aldy Hernandez  <aldyh@redhat.com>
798
799         * config/ms1/t-ms1 (MULTILIB_OPTIONS): Define.
800         (MULTILIB_DIRNAMES): Define.
801
802 2005-12-09  Ulrich Weigand  <uweigand@de.ibm.com>
803
804         PR target/25311
805         * config/s390/s390.c (struct s390_address): New field literal_pool.
806         (s390_decompose_address): Compute literal_pool field.  Do not 
807         assume register %r13 is always (and solely) used as pool base.
808         (s390_extra_constraint_str): Use literal_pool field.
809
810 2005-12-09  Thiemo Seufer  <ths@networkno.de>
811
812         * config/mips/mips.c (override_options): Don't allow too small
813         integers in FP registers.
814
815 2005-12-09  Ulrich Weigand  <uweigand@de.ibm.com>
816
817         * config/s390/s390.c (s390_function_ok_for_sibcall): Use
818         targetm.binds_local_p to check for local function calls.
819
820 2005-12-09  Alan Modra  <amodra@bigpond.net.au>
821
822         PR debug/24908
823         * dwarf2out.c (dwarf2out_frame_debug_expr): Don't assert that
824         call_used_regs can't be used to save reg in another reg.
825
826 2005-12-08  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
827             Christophe Jaillet  <christophe.jaillet@wanadoo.fr>
828
829         * ipa-type-escape.c (analyze_variable): Use gcc_assert instead of
830         abort.
831         * except.c (output_ttype): Likewise.
832         * tree-object-size.c (collect_object_sizes_for): Likewise.
833         (check_for_plus_in_loops_1): Likewise.
834         (check_for_plus_in_loops): Likewise.
835         (compute_object_sizes): Use gcc_unreachable instead of abort.
836
837 2005-12-08  Nathan Sidwell  <nathan@codesourcery.com>
838
839         * config/ms1/ms1.md (UNSPEC_LOOP): New constant.
840         (loop_end, loop_init, doloop_end): New insns.
841         * config/ms1/ms1.h (LOOP_FIRST, LOOP_LAST): New.
842         (SPECIAL_REG_FIRST, FIRST_PSEUDO_REGISTER): Adjust.
843         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
844         (REG_CLASS_CONTENTS, REGISTER_NAMES): Adjust.
845         * config/ms1/ms1.c: #include basic-block.h
846         (struct machine_function): Add has_loops field.
847         (ms1_add_loop): New.
848         (MAX_LOOP_DEPTH, MAX_LOO_LENGTH): New.
849         (struct loop_info, struct loop_work): New.
850         (ms1_loop_nesting, ms1_block_length, ms1_scan_loop): New workers.
851         (ms1_reorg_loops): New loop optimization.
852         (ms1_machine_reorg): Call it.
853         * config/ms1/ms1-protos.h (ms1_add_loop): Declare.
854
855 2005-12-08  Zdenek Dvorak  <dvorakz@suse.cz>
856
857         PR tree-optimization/25248
858         * tree-scalar-evolution.c (follow_ssa_edge_in_rhs): Do not use
859         evolution_of_loop from the failed attempt.  Remove handling
860         of MULT_EXPR.
861
862 2005-12-08  Gabriel Dos Reis  <gdr@integrable-solutions.net>
863
864         * tree.h (DECL_EXTERNAL): Clarify documentation.
865
866 2005-12-08  Andreas Krebbel  <krebbel1@de.ibm.com>
867             Jakub Jelinek  <jakub@redhat.com>
868
869         PR target/25268
870         * config/s390/s390.c (s390_decompose_shift_count): Remove BITS
871         argument.  Don't drop outer ANDs.
872         (s390_extra_constraint_str, print_shift_count_operand): Adjust callers.
873         * config/s390/s390-protos.h (s390_decompose_shift_count): Adjust
874         prototype.
875         * config/s390/predicates.md (setmem_operand): Remove.
876         (shift_count_operand): Rename to...
877         (shift_count_or_setmem_operand): ... this.  Adjust
878         s390_decompose_shift_count caller.
879         * config/s390/s390.md (<shift>di3_31_and, <shift>di3_64_and,
880         ashrdi3_cc_31_and, ashrdi3_cconly_31_and, ashrdi3_31_and,
881         ashrdi3_cc_64_and, ashrdi3_cconly_64_and, ashrdi3_64_and,
882         <shift>si3_and, ashrsi3_cc_and, ashrsi3_cconly_and, ashrsi3_and,
883         rotl<mode>3_and, setmem_long_and): New insns.
884         (<shift>di3_31, <shift>di3_64, ashrdi3_cc_31, ashrdi3_cconly_31,
885         ashrdi3_31, ashrdi3_cc_64, ashrdi3_cconly_64, ashrdi3_64,
886         <shift>si3, ashrsi3_cc, ashrsi3_cconly, ashrsi3, rotl<mode>3,
887         <shift>di3, ashrdi3): Use shift_count_or_setmem_operand instead
888         of shift_count_operand.
889         (setmem_long): Use shift_count_or_setmem_operand instead of
890         setmem_operand.
891
892 2005-12-08  Daniel Jacobowitz  <dan@codesourcery.com>  
893             Andreas Tobler  <a.tobler@schweiz.ch>
894
895         * Makefile.in (ALL_GTFILES_H): Replace sed statement with more portable
896         tr expression.
897
898 2005-12-07  J"orn Rennecke <joern.rennecke@st.com>
899
900         * expr.c (force_operand): Use convert_to_mode for conversions.
901
902 2005-12-07  J"orn Rennecke <joern.rennecke@st.com>
903
904         * reload.h (reg_equiv_invariant): Declare.
905         * reload.c (refers_to_regno_for_reload_p): Allow R to be a pseudo
906         register also when reg_equiv_invariant[R] is set.
907
908 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
909             Andreas Tobler  <a.tobler@schweiz.ch>
910
911         * config/darwin.h: Guard section variables with #ifndef USED_FOR_TARGET.
912
913 2005-12-07  Daniel Berlin  <dberlin@dberlin.org>
914
915         * tree-ssa-pre.c (bitmap_set_and): New function.
916         (bitmap_set_and_compl): New function.
917         (bitmap_set_empty_p): New function.
918         (insert_extra_phis): New function.
919         (compute_avail): Use insert_extra_phis.
920
921 2005-12-07  Adrian Straetling  <straetling@de.ibm.com>
922
923         * config/s390/s390.c (s390_expand_atomic): New function.
924         Adjust comment of helper functions.
925         * config/s390/s390-protos.h (s390_expand_atomic): Declare.
926         * config/s390/s390.md ("ATOMIC"): New code macro.
927         ("atomic"): Corresponding new code attribute.
928         ("sync_lock_test_and_set[hq]i", 
929         "sync_{new_,old_,}{and,ior,xor,add,sub,nand}[hq]i"): New pattern.
930
931 2005-12-07  Adrian Straetling  <straetling@de.ibm.com>
932
933         * config/s390/s390.c (s390_expand_mask_and_shift, 
934         struct alignment_context, init_alignment_context, 
935         s390_expand_cs_hqi): New.
936         * config/s390/s390-protos.h (s390_expand_cs_hqi): Declare.
937         * config/s390/s390.md ("sync_compare_and_swaphi",
938         "sync_compare_and_swapqi"): New pattern.
939
940 2005-12-07  Daniel Berlin <dberlin@dberlin.org>
941
942         Fix PR tree-optimization/25291
943         * tree-ssa-operands.c (add_call_clobber_ops): Remove
944         redundant and crashing check.
945
946 2005-12-08  Alan Modra  <amodra@bigpond.net.au>
947
948         PR target/25212
949         * config/rs6000/rs6000.c (legitimate_indexed_address_p): Relax
950         tests further when !strict && reload_in_progress.
951         (print_operand): Check that both operands of indexed address are regs.
952         (print_operand_address): Likewise.
953         * config/rs6000/rs6000.h (INT_REG_OK_FOR_INDEX_P): Simplify.
954         (INT_REG_OK_FOR_BASE_P): Correct.
955
956 2005-12-07  J"orn Rennecke <joern.rennecke@st.com>
957
958         Preparation for PR rtl-optimization/20070 / part1
959         * basic-block.h (insns_match_p, flow_find_cross_jump): Declare.
960         * cfgcleanup.c (condjump_equiv_p): New function, broken out of
961         outgoing_edges_match.
962         (outgoing_edges_match): Use condjump_equiv_p.
963         (merge_memattrs, insns_match_p, flow_find_cross_jump): Move from here
964         into..
965         * struct-equiv.c: New file.
966         (death_notes_match_p) New function, broken out of insns_match_p.
967         * Makefile.in (OBJS-common): Add struct-equiv.o.
968         (struct-equiv.o): New target.
969
970 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
971
972         * coretypes.h: Revert previous change.
973         * config/darwin.h: Revert previous reversion.
974         * config/avr/avr.h (progmem_section): Guard with #ifndef IN_LIBGCC2.
975
976 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
977
978         * coretypes.h (section): Provide dummy definition for target files.
979         * config/darwin.h: Revert previous change.
980
981 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
982
983         * doc/sourcebuild.texi (all.build, install-normal): Remove.
984         * configure.ac: Remove all.build and install-normal from target_list
985         * configure: Regenerate.
986         * Makefile.in (install): Don't depend on install-normal.
987
988 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
989
990         * Makefile.in: Document the use of stamps.
991
992 2005-12-07  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
993
994         * doc/gty.texi: Remove instructions for adding a dependency on s-gtype.
995         * Makefile.in: Add code to compute some dependencies on s-gtype
996         automatically.  Remove the declaration of those dependencies.
997
998 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
999
1000         * gcc/reload.c (push_secondary_reload): Fix typo:
1001         s/insn_constraint/scratch_constraint/.
1002
1003 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
1004
1005         * config/darwin.h: Guard section variables with #ifndef IN_LIBGCC2.
1006
1007 2005-12-07  Richard Sandiford  <richard@codesourcery.com>
1008
1009         * config/alpha/alpha.c (alpha_start_function): Use switch_to_section.
1010         (alpha_elf_select_rtx_section): Return the selected section rather
1011         than emitting assembly code.
1012         (alpha_write_linkage): Emit a ".link" directive directly and then
1013         set in_section to NULL.
1014         (vms_asm_out_constructor): Use switch_to_section.
1015         (vms_asm_out_destructor): Likewise.
1016         (unicosmk_output_common): Set in_section to NULL instead of calling
1017         the dummy common_section function.
1018         (unicosmk_text_section): Delete in favor of...
1019         (unicosmk_output_text_section_asm_op): ...this new function.
1020         (unicosmk_data_section): Delete in favor of...
1021         (unicosmk_output_data_section_asm_op): ...this new function.
1022         (unicosmk_init_sections): New function.
1023         (unicosmk_output_deferred_case_vectors): Use switch_to_section.
1024         (unicosmk_output_ssib): Set in_section to NULL instead of calling
1025         the dummy ssib_section function.
1026         (unicosmk_section_buf): Delete.
1027         * config/alpha/alpha-protos.h (unicosmk_text_section): Delete.
1028         (unicosmk_data_section): Delete.
1029         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
1030         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, sbss_section, sdata_section)
1031         (SECTION_FUNCTION_TEMPLATE): Delete.
1032         * config/alpha/unicosmk.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP)
1033         (READONLY_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
1034         (common_section, COMMON_SECTION, ssib_section, SSIB_SECTION): Delete.
1035         (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
1036         (TARGET_ASM_INIT_SECTIONS): Define.
1037         * config/alpha/vms.h (LINK_SECTION_ASM_OP, LITERALS_SECTION_ASM_OP)
1038         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
1039         (link_section, literals_section): Delete.
1040         (ASM_OUTPUT_DEF): Emit the ".literal" directive directly and then
1041         set in_section to NULL.
1042
1043         * config/arm/aof.h (TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Delete.
1044         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, ZERO_INIT_SECTION): Delete.
1045         (COMMON_SECTION): Delete.
1046         (TARGET_ASM_INIT_SECTIONS): Define.
1047         (ASM_OUTPUT_COMMON): Set in_section to NULL rather than calling
1048         the dummy common_section function.
1049         * config/arm/aout.h (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
1050         * config/arm/arm.c (get_jump_table_size): Use pointer comparison
1051         between readonly_data_section and text_section to check whether
1052         read-only data is being put in the text section.
1053         (arm_output_function_epilogue): Use switch_to_section.
1054         (arm_elf_asm_constructor): Likewise.
1055         (thumb_call_via_reg): Replace call to in_text_section with
1056         a comparison between in_section and text_section.
1057         (arm_file_end): Use switch_to_section.
1058         (aof_text_section): Delete in favor of...
1059         (aof_output_text_section_asm_op): ...this new function.
1060         (aof_data_section): Delete in favor of...
1061         (aof_output_data_section_asm_op): ...this new function.
1062         (aof_asm_init_sections): New function.
1063         (zero_init_section): Moved from config/arm/aof.h.
1064         (aof_dump_imports, aof_file_start): Use switch_to_section.
1065         * config/arm/arm.h (thumb_call_via_label): Update comment.
1066         * config/arm/arm-protos.h (aof_text_section, aof_data_section): Delete.
1067         (common_section): Delete.
1068         * config/arm/pe.h (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.
1069         (ASM_DECLARE_OBJECT_NAME): Update the type of save_section.  Use the
1070         global switch_to_section function instead of the old port-local one.
1071         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, DRECTVE_SECTION_FUNCTION)
1072         (SWITCH_TO_SECTION_FUNCTION): Delete.
1073         (drectve_section): Redefine as a macro.
1074         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS):
1075         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use get_named_section and
1076         switch_to_section.
1077
1078         * config/avr/avr.c (progmem_section): New variable.
1079         (avr_output_progmem_section_asm_op): New function.
1080         (avr_asm_init_sections): New function.
1081         (avr_output_addr_vec_elt): Use switch_to_section.
1082         * config/avr/avr.h (progmem_section): Declare.
1083         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
1084         (READONLY_DATA_SECTION): Delete.
1085         (TARGET_ASM_INIT_SECTIONS): Define.
1086         (ASM_OUTPUT_CASE_LABEL): Use switch_to_section.
1087         * config/avr/avr-protos.h (progmem_section): Delete.
1088
1089         * config/bfin/bfin.h (ASM_OUTPUT_LOCAL): Use switch_to_section.
1090
1091         * config/c4x/c4x.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
1092         (INIT_SECTION_FUNCTION, FINI_SECTION_FUNCTION): Delete.
1093
1094         * config/darwin-sections.def: New file.
1095         * config/darwin.c: Define all sections in darwin-sections.def.
1096         (output_objc_section_asm_op, darwin_init_sections): New functions.
1097         (machopic_output_indirection): Use switch_to_section.
1098         (machopic_select_section): Return the selected section rather than
1099         emitting assembly code.  Replace the static function table with
1100         inline conditional expressions.  Update the tests of last_text_section
1101         and move them into the FUNCTION_DECL block.
1102         (machopic_select_rtx_section): Return the selected section rather than
1103         emitting assembly code.
1104         (machopic_asm_out_constructor, machopic_asm_out_destructor)
1105         (darwin_file_end): Use switch_to_section.
1106         * config/darwin.h: Use darwin-sections.def to declare sections.
1107         (INIT_SECTION_ASM_OP): Remove empty definition.
1108         (HAS_INIT_SECTION): Define this instead.
1109         (SECTION_FUNCTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
1110         (READONLY_DATA_SECTION, TARGET_ASM_EXCEPTION_SECTION): Delete.
1111         (TARGET_ASM_EH_FRAME_SECTION): Delete.
1112         (TARGET_ASM_INIT_SECTIONS): Define.
1113         * config/darwin-protos.h (darwin_init_sections): Declare.
1114         (machopic_picsymbol_stub_section, machopic_picsymbol_stub1_section)
1115         (machopic_symbol_stub_section, machopic_symbol_stub1_section): Delete.
1116         (machopic_lazy_symbol_ptr_section, machopic_nl_symbol_ptr_section)
1117         (constructor_section, destructor_section, mod_init_section): Delete.
1118         (mod_term_section): Delete.
1119         (darwin_exception_section, darwin_eh_frame_section): Delete.
1120         (machopic_select_section): Return a section.
1121         (machopic_select_rtx_section): Likewise.
1122         (text_coal_section, text_unlikely_section, text_unlikely_coal_section)
1123         (const_section, const_coal_section, const_data_section): Delete.
1124         (const_data_coal_section, data_coal_section, cstring_section): Delete.
1125         (literal4_section, literal8_section, constructor_section): Delete.
1126         (mod_init_section, mod_term_section, destructor_section): Delete.
1127         (objc_class_section, objc_meta_class_section, objc_category_section)
1128         (objc_class_vars_section, objc_instance_vars_section): Delete.
1129         (objc_cls_meth_section, objc_inst_meth_section): Delete.
1130         (objc_cat_cls_meth_section, objc_cat_inst_meth_section): Delete.
1131         (objc_selector_refs_section, objc_selector_fixup_section): Delete.
1132         (objc_symbols_section, objc_module_info_section): Delete.
1133         (objc_image_info_section, objc_protocol_section): Delete.
1134         (objc_string_object_section, objc_constant_string_object_section)
1135         (objc_class_names_section, objc_meth_var_names_section): Delete.
1136         (objc_meth_var_types_section, objc_cls_refs_section): Delete.
1137         (machopic_lazy_symbol_ptr_section, machopic_nl_symbol_ptr_section)
1138         (machopic_symbol_stub_section, machopic_picsymbol_stub_section)
1139         (darwin_exception_section, darwin_eh_frame_section): Delete.
1140         * config/t-darwin (darwin.o): Depend on config/darwin-sections.def.
1141
1142         * config/frv/frv.c (frv_asm_out_constructor): Use switch_to_section.
1143         (frv_asm_out_destructor): Likewise.
1144         * config/frv/frv.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
1145         (SDATA_SECTION_FUNCTION, FIXUP_SECTION_FUNCTION): Delete.
1146         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use switch_to_section and
1147         get_named_section.
1148         (ASM_OUTPUT_CASE_LABEL): Use switch_to_section.
1149         * config/frv/frv-protos.h (fixup_section, sdata_section, sbss_section)
1150         (data_section): Delete.
1151
1152         * config/i386/cygming.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
1153         (DRECTVE_SECTION_FUNCTION): Delete.
1154         (drectve_section): Redefine as a macro that sets in_section after
1155         emitting the directive.
1156         (SWITCH_TO_SECTION_FUNCTION): Delete.
1157         * config/i386/darwin.h (ASM_OUTPUT_ALIGN): Replace call to
1158         in_text_section with comparison between in_section and text_section.
1159         * config/i386/i386.c (x86_64_elf_select_section): Return the section
1160         rather than emitting assembly code.  Use get_named_section.
1161         (x86_output_aligned_bss, ix86_file_end): Use switch_to_section and
1162         get_named_section.
1163         (machopic_output_stub): Use switch_to_section.
1164         * config/i386/nwld.c (nwld_named_section_asm_out_constructor)
1165         (nwld_named_section_asm_out_destructor): Use get_section and
1166         switch_to_section.
1167
1168         * config/ia64/ia64.c (ia64_select_rtx_section): Return the section
1169         rather than emitting assembly code.
1170         (ia64_rwreloc_select_section): Likewise.
1171         (ia64_rwreloc_select_rtx_section): Likewise.
1172         * config/ia64/ia64-protos.h (sdata_section, sbss_section): Delete.
1173         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
1174         switch_to_section.
1175         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
1176         (SDATA_SECTION_FUNCTION, SBSS_SECTION_FUNCTION): Delete.
1177
1178         * config/iq2000/iq2000.c (iq2000_select_rtx_section): Return the
1179         section rather than emitting assembly code.
1180         (iq2000_select_section): Likewise.
1181         * config/iq2000/iq2000.h (rdata_section, sdata_section): Delete.
1182         (sbss_section): Delete.
1183
1184         * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Use switch_to_section
1185         and get_named_section.
1186         * config/m32r/m32r-protos.h (sbss_section, sdata_section): Delete.
1187
1188         * config/mcore/mcore-elf.h (EXPORTS_SECTION_ASM_OP): Delete.
1189         (SUBTARGET_EXTRA_SECTIONS, SUBTARGET_EXTRA_SECTION_FUNCTIONS): Delete.
1190         (EXPORT_SECTION_FUNCTION, SUBTARGET_SWITCH_SECTIONS): Delete.
1191         (MCORE_EXPORT_NAME): Emit the exports directive directly, then set
1192         in_section to NULL.
1193         (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.
1194         (ASM_DECLARE_OBJECT_NAME): Update the type of save_section.  Use the
1195         global switch_to_section function instead of the old port-local one.
1196         * config/mcore/mcore.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
1197         (SWITCH_SECTION_FUNCTION): Delete.
1198         * config/mcore/mcore-pe.h (SUBTARGET_SWITCH_SECTIONS): Delete.
1199         (DRECTVE_SECTION_ASM_OP, SUBTARGET_EXTRA_SECTIONS): Delete.
1200         (SUBTARGET_EXTRA_SECTION_FUNCTIONS, DRECTVE_SECTION_FUNCTION): Delete.
1201         (MCORE_EXPORT_NAME): Emit ".section .drectve" directly, then set
1202         in_section to NULL.
1203         (ASM_DECLARE_OBJECT_NAME): Update the type of save_section.  Use the
1204         global switch_to_section function instead of the old port-local one.
1205         (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.
1206
1207         * config/mips/mips.c (mips_file_start): Update comment.
1208         (mips_output_aligned_bss): Use switch_to_section and get_named_section.
1209         (mips_output_aligned_decl_common): Use switch_to_section.
1210         (mips_select_rtx_section): Return the section rather than emitting
1211         assembly code.  Use get_named_section.
1212         (mips_function_rodata_section: Likewise get_section.
1213         (build_mips16_function_stub): Use switch_to_section.
1214         * config/mips/mips.h (ASM_OUTPUT_IDENT): Use switch_to_section.
1215         (SDATA_SECTION_ASM_OP): Delete.
1216         * config/mips/vxworks.h (EXTRA_SECTIONS): Delete.
1217         (EXTRA_SECTION_FUNCTIONS): Delete.
1218
1219         * config/mmix/mmix.c (mmix_file_start, mmix_file_end)
1220         (mmix_asm_output_aligned_local): Use switch_to_section.
1221
1222         * config/pa/pa.c (som_readonly_data_section, som_one_only_data_section)
1223         (som_one_only_readonly_data_section): New variables.
1224         (pa_output_function_epilogue): Set in_section to NULL instead of
1225         calling forget_section.
1226         (output_deferred_plabels): Use select_section.
1227         (pa_asm_output_mi_thunk): Likewise.  Set in_section to NULL instead
1228         of calling forget_section.
1229         (pa_asm_output_aligned_bss, pa_asm_output_aligned_common)
1230         (pa_asm_output_aligned_local): Use select_section.
1231         (som_text_section_asm_op): Delete in favor of...
1232         (som_output_text_section_asm_op): ...this new function.
1233         (pa_som_asm_init_sections): New function.
1234         (pa_select_section): Return the section rather than emitting
1235         assembly code.
1236         * config/pa/pa.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
1237         (SOM_READONLY_DATA_SECTION_FUNCTION): Delete.
1238         (SOM_ONE_ONLY_READONLY_DATA_SECTION_FUNCTION): Delete.
1239         (SOM_ONE_ONLY_DATA_SECTION_FUNCTION, FORGET_SECTION_FUNCTION): Delete.
1240         * config/pa/pa-protos.h (som_text_section_asm_op): Delete.
1241         (som_readonly_data_section, som_one_only_readonly_data_section)
1242         (som_one_only_data_section, forget_section): Delete.
1243         * config/pa/som.h (TEXT_SECTION_ASM_OP): Delete.
1244         (TARGET_ASM_INIT_SECTIONS): Define.
1245         (READONLY_DATA_SECTION, TARGET_ASM_EXCEPTION_SECTION): Delete.
1246
1247         * config/rs6000/rs6000.c (read_only_data_section): New variable.
1248         (private_data_section, read_only_private_data_section): New variables.
1249         (sdata2_section, toc_section): New variables.
1250         (rs6000_file_start): Use switch_to_section.
1251         (rs6000_assemble_integer): Use comparisons against in_section
1252         instead of calling in_toc_section and in_text_section.  Use
1253         unlikely_text_section_p.
1254         (rs6000_elf_output_toc_section_asm_op): New function, derived
1255         from the old rs6000/sysv4.h toc_section function.
1256         (rs6000_elf_asm_init_sections): New function.
1257         (rs6000_elf_select_rtx_section, rs6000_elf_select_section): Return
1258         the section rather than emitting assembly code.
1259         (machopic_output_stub): Use switch_to_section.
1260         (toc_section): Delete dummy function.
1261         (rs6000_elf_asm_out_constructor, rs6000_elf_asm_out_destructor): Use
1262         switch_to_section and get_section.
1263         (rs6000_xcoff_output_readonly_section_asm_op): New function.
1264         (rs6000_xcoff_output_readwrite_section_asm_op): New function.
1265         (rs6000_xcoff_output_toc_section_asm_op): New function, derived from
1266         the old rs6000/xcoff.h toc_section function.
1267         (rs6000_xcoff_asm_init_sections): New function.
1268         (rs6000_xcoff_select_section, rs6000_xcoff_select_rtx_section): Return
1269         the section rather than emitting assembly code.
1270         (rs6000_xcoff_file_start): Use switch_to_section.
1271         (rs6000_xcoff_file_end): Likewise.
1272         * config/rs6000/rs6000-protos.h (toc_section, sdata_section): Delete.
1273         (sdata2_section, sbss_section, private_data_section): Delete.
1274         (read_only_data_section, read_only_private_data_section): Delete.
1275         * config/rs6000/sysv4.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
1276         (TOC_SECTION_FUNCTION, SDATA_SECTION_FUNCTION, SDATA2_SECTION_FUNCTION)
1277         (SBSS_SECTION_FUNCTION, INIT_SECTION_FUNCTION): Delete.
1278         (FINI_SECTION_FUNCTION): Delete.
1279         (TARGET_ASM_INIT_SECTIONS): Define.
1280         (ASM_OUTPUT_ALIGNED_LOCAL): Use switch_to_section.
1281         * config/rs6000/xcoff.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
1282         (READ_ONLY_DATA_SECTION_FUNCTION, PRIVATE_DATA_SECTION_FUNCTION)
1283         (READ_ONLY_PRIVATE_DATA_SECTION_FUNCTION, TOC_SECTION_FUNCTION)
1284         (READONLY_DATA_SECTION): Delete.
1285         (TARGET_ASM_INIT_SECTIONS): Define.
1286         (ASM_DECLARE_FUNCTION_NAME): Use switch_to_section.  Set in_section
1287         to NULL rather than no_section.
1288         (TARGET_ASM_EXCEPTION_SECTION): Delete.
1289
1290         * config/sh/sh.c (sh_file_start): Use switch_to_section.
1291
1292         * config/sparc/sparc.c (emit_pic_helper): Use switch_to_section.
1293         (sparc_output_deferred_case_vectors): Likewise.  Remove argument
1294         from call to current_function_section.
1295
1296         * config/stormy16/stormy16.c: Include ggc.h and gt-storm16.h.
1297         (bss100_section): New variable.
1298         (xstormy16_asm_output_aligned_common): Use switch_to_section.
1299         (xstormy16_asm_init_sections): New function.
1300         (xstormy16_asm_out_destructor, xstormy16_asm_out_constructor): Use
1301         switch_to_section and get_section.
1302         (xstormy16_output_addr_vec): Use switch_to_section.  Remove argument
1303         from calls to current_function_section.
1304         * config/stormy16/stormy16.h (EXTRA_SECTIONS): Delete.
1305         (XSTORMY16_SECTION_FUNCTION, EXTRA_SECTION_FUNCTIONS): Delete.
1306         (TARGET_ASM_INIT_SECTIONS): Define.
1307         * config/stormy16/stormy16-protos.h (bss100_section): Delete.
1308
1309         * config/svr3.h (ASM_OUTPUT_LOCAL): Use switch_to_section.
1310         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS, INIT_SECTION_FUNCTION)
1311         (FINI_SECTION_FUNCTION): Delete.
1312
1313         * config/v850/v850.c: Include gt-v850.h.
1314         (rosdata_section, rozdata_section, tdata_section, zdata_section)
1315         (zbss_section): New variables.
1316         (v850_output_aligned_bss): Use switch_to_section.
1317         (v850_asm_init_sections): New function.
1318         (v850_select_section): Return the section rather than emitting
1319         assembly code.
1320         * config/v850/v850.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS)
1321         (ZDATA_SECTION_ASM_OP, ZBSS_SECTION_ASM_OP, TDATA_SECTION_ASM_OP)
1322         (ROSDATA_SECTION_ASM_OP, ROZDATA_SECTION_ASM_OP): Delete.
1323         (TARGET_ASM_INIT_SECTIONS): Define.
1324         * config/v850/v850-protos.h (sdata_section, rosdata_section): Delete.
1325         (sbss_section, tdata_section, zdata_section, rozdata_section): Delete.
1326         (zbss_section): Delete.
1327
1328         * config/vax/vaxv.h (ASM_OUTPUT_LOCAL): Use switch_to_section.
1329
1330         * config/vx-common.h (vxworks_exception_section): Delete.
1331         (TARGET_ASM_EXCEPTION_SECTION): Delete.
1332
1333         * config/xtensa/xtensa.c (xtensa_select_rtx_section): Return the
1334         section rather than emitting assembly code.
1335         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Use
1336         switch_to_section.
1337
1338         * Makefile.in (GTFILES): Add $(srcdir)/output.h.
1339         * coretypes.h (section): New union and typedef.
1340         * dbxout.c (FORCE_TEXT): Use switch_to_section.  Remove argument
1341         from call to current_function_section.
1342         (dbxout_function_end, dbxout_init, dbxout_source_file, dbxout_finish)
1343         (dbxout_symbol_location): Use switch_to_section.
1344         * dwarf2out.c (named_section_eh_frame_section): Delete, moving
1345         most of the code into...
1346         (default_eh_frame_section): ...here.  Return a section.
1347         (collect2_eh_frame_section): Delete, moving most of the code into..
1348         (switch_to_eh_frame_section): ...this new function.
1349         (debug_info_section, debug_abbrev_section, debug_aranges_section)
1350         (debug_macinfo_section, debug_line_section, debug_loc_section)
1351         (debug_pubnames_section, debug_str_section, debug_ranges_section): New
1352         variables.
1353         (output_call_frame_info): Call switch_to_eh_frame_section instead of
1354         eh_frame_section.  Use switch_to_section and get_section.
1355         (dwarf2out_begin_prologue): Use switch_to_section.
1356         (AT_string_form): Check the flags in debug_str_section instead of
1357         DEBUG_STR_SECTION_FLAGS.
1358         (output_comp_unit): Use switch_to_section, get_section, and
1359         debug_info_section.
1360         (output_line_info, secname_for_decl): Use unlikely_text_section_p.
1361         (dwarf2out_begin_block): Use switch_to_section.  Remove argument
1362         from call to current_function_section.
1363         (dwarf2out_var_location): Use unlikely_text_section_p.
1364         (dwarf2out_source_line): Use switch_to_section.  Remove argument
1365         from call to current_function_section.
1366         (dwarf2out_start_source_file, dwarf2out_end_source_file)
1367         (dwarf2out_define, dwarf2out_undef: Use switch_to_section and
1368         debug_macinfo_section.
1369         (dwarf2out_init): Initialize the new section variables.  Use them
1370         instead of calls to named_section_flags.  Use switch_to_section.
1371         (output_indirect_string): Use switch_to_section and debug_str_section.
1372         (dwarf2out_finish): Use switch_to_section and the new section
1373         variables.
1374         * except.c (default_exception_section): Return the section instead
1375         of emitting assembly code.
1376         (output_function_exception_table): Use the global exception_section
1377         variable instead of the target hook.  Use switch_to_section.  Remove
1378         argument from call to current_function_section.
1379         * final.c (HAVE_READONLY_DATA_SECTION): Delete.
1380         (shorten_branches): Use pointer comparisons to detect whether the
1381         text section is the same as readonly_data_section.
1382         (profile_function): Use switch_to_section.  Remove argument from
1383         call to current_function_section.
1384         (final_scan_insn): Likewise.  Update use of last_text_section.
1385         * gengtype.c (open_base_files): Add an include of output.h.
1386         * output.h (text_section, data_section, readonly_data_section)
1387         (ctors_section, dtors_section, bss_section, init_section)
1388         (fini_section, sdata_section): Turn into section pointers.
1389         (in_text_section, in_unlikely_text_section, exports_section)
1390         (drectve_section, named_section, mergeable_string_section)
1391         (last_text_section_name): Delete.
1392         (default_exception_section, default_eh_frame_section): Return sections.
1393         (SECTION_DECLARED, SECTION_NAMED): New macros.
1394         (SECTION_MACH_DEP): Bump value.
1395         (section_common, named_section, unnamed_section): New structures.
1396         (unnamed_section_callback): New typedef.
1397         (section): New union.
1398         (sbss_section, exception_section, eh_frame_section): New variables.
1399         (in_section, last_text_section): Turn into section pointers.
1400         (get_unnamed_section, get_section, get_named_section): New functions.
1401         (mergeable_constant_section, function_section): Return a section.
1402         (unlikely_text_section): Likewise.
1403         (current_function_section): Likewise.  Remove the decl argument.
1404         (unlikely_text_section_p, switch_to_section): New functions.
1405         (output_section_asm_op): New function.
1406         (set_named_section_flags, named_section_flags, named_section_real)
1407         (named_section_first_declaration): Delete.
1408         (default_select_section, default_elf_select_section): Return a section.
1409         (default_elf_select_section_1, default_function_rodata_section)
1410         (default_no_function_rodata_section, default_select_rtx_section)
1411         (default_elf_select_rtx_section): Likewise.
1412         * rtl.h (in_data_section): Delete.
1413         * sdbout.c (sdbout_one_type): Use switch_to_section.
1414         * system.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Poison.
1415         (READONLY_DATA_SECTION, TARGET_ASM_EXCEPTION_SECTION): Poison.
1416         (TARGET_ASM_EH_FRAME_SECTION): Poison.
1417         * target-def.h (TARGET_ASM_INIT_SECTIONS): New macro.
1418         (TARGET_ASM_EXCEPTION_SECTION, TARGET_ASM_EH_FRAME_SECTION): Delete.
1419         (TARGET_ASM_OUT): Update after above changes.
1420         * target.h (init_sections): New hook.
1421         (exception_section, eh_frame_section): Delete.
1422         (select_section, select_rtx_section, function_rodata_section): Return
1423         a section rather than emitting assembly code.
1424         * varasm.c (text_section, data_section, readonly_data_section)
1425         (ctors_section, dtors_section, bss_section, init_section)
1426         (fini_section): Turn into section pointers.
1427         (sdata_section, sbss_section, exception_section): New variables.
1428         (eh_frame_section): New variable.
1429         (in_section): Make global and turn into a section pointer.
1430         (last_text_section): Turn into a section pointer.
1431         (unnamed_sections): New variable.
1432         (in_named_name, last_text_section_name): Delete.
1433         (EXTRA_SECTION_FUNCTIONS): Delete.
1434         (in_named_entry): Delete.
1435         (section_htab): New variable, replacing...
1436         (in_named_htab): ...this deleted variable.
1437         (section_entry_eq, section_entry_hash): New functions, based on...
1438         (in_named_entry_eq, in_named_entry_hash): ...these deleted functions.
1439         (get_unnamed_section, get_section): New functions.
1440         (unlikely_text_section): Return a section instead of emitting
1441         assembly code.
1442         (in_text_section, in_unlikely_text_section, in_data_section): Delete.
1443         (get_named_section_flags, named_section_first_declaration): Delete.
1444         (unlikely_text_section_p): New function.
1445         (named_section_real, named_section): Delete.
1446         (get_named_section): New function.
1447         (asm_output_bss, asm_output_aligned_bss): Use switch_to_section.
1448         (function_section): Return a section rather than emitting
1449         assembly code.
1450         (current_function_section): Likewise.  Remove argument.  Use
1451         last_text_section if nonnull, otherwise use function_section.
1452         (default_function_rodata_section): Return a section rather than
1453         emitting assembly code.  Use get_section.
1454         (default_no_function_rodata_section): Return a section rather than
1455         emitting assembly code.
1456         (variable_section): Use switch_to_section and get_named_section.
1457         (mergeable_string_section): Return a section rather than emitting
1458         assembly code.  Use get_section.  Make static.  Don't take special
1459         countermeasures for empty strings.
1460         (mergeable_constant_section): Return a section rather than emitting
1461         assembly code.  Use get_section.
1462         (default_named_section_asm_out_destructor): Use switch_to_section
1463         and get_section.
1464         (default_dtor_section_asm_out_destructor): Use switch_to_section.
1465         (default_named_section_asm_out_constructor): Use switch_to_section
1466         and get_section.
1467         (default_ctor_section_asm_out_constructor): Use switch_to_section.
1468         (assemble_start_function): Likewise.  Set last_text_section to
1469         NULL rather than no_section.  Change the type of save_section.
1470         (assemble_zeros, assemble_variable): Use the section flags to detect
1471         whether or not a section is text.
1472         (assemble_static_space): Use switch_to_section.
1473         (assemble_trampoline_template): Likewise.
1474         (output_constant_def_contents): Use switch_to_section and
1475         get_named_section.
1476         (output_constant_pool_1): Use switch_to_section.  Use the section
1477         flags to see whether sections contain mergeable data.
1478         (init_varasm_once): Initialize section_htab instead of in_named_htab.
1479         Initialize new section variables.  Call TARGET_ASM_INIT_SECTIONS.
1480         (default_elf_asm_named_section): Use SECTION_DECLARED to detect
1481         whether a section has already been declared.
1482         (default_select_section, default_elf_select_section): Return a
1483         section rather than emitting assembly code.
1484         (default_elf_select_section_1): Likewise.  Use bss_section for
1485         SECCAT_BSS if nonnull.  Use get_named_section.
1486         (default_select_rtx_section): Return a section rather than
1487         emitting assembly code.
1488         (default_elf_select_rtx_section): Likewise.  Use get_named_section.
1489         (file_end_indicate_exec_stack): Use switch_to_section and get_section.
1490         (output_section_asm_op, switch_to_section): New functions.
1491         * vmsdbgout.c (vmsdbgout_finish): Use switch_to_section and
1492         get_named_section.
1493
1494         * doc/tm.texi: Expand the introduction to the sections documentation.
1495         (TRAMPOLINE_SECTION): Document new interface.
1496         (SDATA_SECTION_ASM_OP): Document new macro.
1497         (READONLY_DATA_SECTION): Delete.
1498         (SDATA_SECTION_ASM_OP): Document new macro.
1499         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
1500         (TARGET_ASM_INIT_SECTIONS): Document new hook.
1501         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_FUNCTION_RODATA_SECTION)
1502         (TARGET_ASM_SELECT_RTX_SECTION): Adjust for new interface.
1503         (TARGET_EXCEPTION_SECTION, TARGET_EH_FRAME_SECTION): Delete.
1504
1505 2005-12-07  Alan Modra  <amodra@bigpond.net.au>
1506
1507         * gcc.c (init_gcc_specs): Match braces inside conditionally
1508         compiled strings.
1509
1510 2005-12-06  Geoffrey Keating  <geoffk@apple.com>
1511
1512         * config/darwin.h (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): New.
1513
1514 2005-12-06  Aldy Hernandez  <aldyh@redhat.com>
1515
1516         PR C++/24138
1517         * tree.c (integer_all_onesp): Always return true if all bits on.
1518
1519         * testsuite/g++.dg/init/array0.C: New.
1520
1521 2005-12-06  Adrian Straetling  <straetling@de.ibm.com>
1522
1523         * doc/md.texi: Adapt to implementation.
1524
1525 2005-12-06  Andreas Schwab  <schwab@suse.de>
1526
1527         * opts.c (decode_options): Fix typo in message.
1528
1529 2005-12-06  Alan Modra  <amodra@bigpond.net.au>
1530
1531         PR other/13873
1532         * longlong.h: Merge PPC tests from upstream.
1533
1534 2005-12-06  Richard Guenther  <rguenther@suse.de>
1535
1536         * fold-const.c (fold_convert): Do not build and fold
1537         CONVERT_EXPR, but always use NOP_EXPR.
1538
1539 2005-12-06  Jan Beulich  <jbeulich@novell.com>
1540
1541         * config/i386/i386.c (builtin_description): Use MASK_SSE2 for
1542         __builtin_ia32_paddq and __builtin_ia32_subq.
1543         (ix86_init_mmx_sse_builtins): Use MASK_SSE|MASK_3DNOW_A for
1544         __builtin_ia32_pshufw.
1545         * config/i386/i386.md (mmx_adddi3, mmx_subdi3): Depend on TARGET_SSE2.
1546
1547 2005-12-05  James E Wilson  <wilson@specifix.com>
1548
1549         PR target/24934
1550         * opts.c (decode_options): Turn off partitioning if flag_unwind_tables
1551         is set.
1552
1553 2005-12-05  Daniel Berlin  <dberlin@dberlin.org>
1554         
1555         * print-tree.c (print_node): Ditto.
1556         * tree-dfa.c (add_referenced_var): Tag's don't have DECL_INITIAL.
1557         * tree-dump.c (dequeue_and_dump): Check for decl_common structure
1558         before accessing DECL_ARTIFICIAL. 
1559         Handle new tag tree codes.
1560         * tree-flow-inline.h (clear_call_clobbered): Update for tag
1561         changes.
1562         (unmodifiable_var_p): Ditto.
1563         * tree-flow.h (mem_tag_kind): Remove.
1564         (struct var_ann_d): Remove mem_tag_kind member.
1565         * tree-gimple.c (is_gimple_reg): Tags are not gimple registers.
1566         * tree-pretty-print.c (dump_generic_node): Handle memory tags.
1567         * tree-ssa-alias.c (init_alias_info): Update for memory tag changes.
1568         (group_aliases): Ditto.
1569         (setup_pointers_and_addressables): Ditto.
1570         (is_escape_site): Ditto.                                          
1571         (may_alias_p): Ditto.
1572         (create_tag_raw): New function.
1573         (create_memory_tag): Use it.
1574         (dump_alias_info): Update for tags.
1575         (may_be_aliased): Ditto.
1576         (add_type_alias): Ditto.
1577         (new_type_alias): Ditto.
1578         (create_sft): Ditto.
1579         (create_structure_vars): Ditto.
1580         * tree-ssa-ccp.c (get_default_value): Ditto.
1581         * tree-ssa-operands.c (get_expr_operands): Ditto.
1582         (add_stmt_operand): Ditto.
1583         (add_call_clobber_ops): Remove duplicated condition.
1584         * tree-ssa.c (verify_flow_insensitive_alias_info): Update for
1585         tags.
1586         * tree-tailcall.c (suitable_for_tail_opt_p): Ditto.
1587         * tree-vect-transform.c (vect_create_data_ref_ptr): Ditto.
1588         * tree.c (init_ttree): Update structures for new tree codes.
1589         (tree_code_size): Update sizes for new tree codes.
1590         (make_node_stat): Don't try to set common things on minimal
1591         structures.
1592         (tree_node_structure): Update for tags.
1593         (is_global_var): Ditto.
1594         * tree.def: Add new tree codes.
1595         * tree.h (MTAG_P): New macro.
1596         (TREE_MEMORY_TAG_CHECK): Ditto.
1597         (SSA_VAR_P): Update for tags.
1598         (struct tree_memory_tag): New structure.
1599         (MTAG_GLOBAL): New macro.
1600         (union tree_node): Add memory tag member.
1601         * treestruct.def (TS_MEMORY_TAG): New.
1602         
1603 2005-12-05  Dale Johannesen  <dalej@apple.com>
1604
1605         * config/i386/xmmintrin.h (_MM_TRANSPOSE4_PS):  Fix to match
1606         what was approved (PR 24323).
1607
1608 2005-12-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1609
1610         * doc/c-tree.texi (Function Bodies): Remove description of
1611         RETURN_INIT.
1612
1613 2005-12-05  Joseph S. Myers  <joseph@codesourcery.com>
1614
1615         * doc/libgcc.texi (__floatunsisf, __floatunsidf, __floatunsitf,
1616         __floatunsixf, __floatundisf, __floatundidf, __floatunditf,
1617         __floatundixf, __floatuntisf, __floatuntidf, __floatuntitf,
1618         __floatuntixf, __powisf2, __powidf2, __powixf2, __mulsc3,
1619         __muldc3, __multc3, __mulxc3, __divsc3, __divdc3, __divtc3,
1620         __divxc3): Document.
1621
1622 2005-12-05  Geoffrey Keating  <geoffk@apple.com>
1623
1624         * config/arm/arm.c (arm_cxx_determine_class_data_visibility): Preserve
1625         previous behaviour.
1626         * config/darwin.h (TARGET_CXX_CLASS_DATA_ALWAYS_COMDAT): Define to
1627         hook_bool_void_false.
1628         (TARGET_CXX_DETERMINE_CLASS_DATA_VISIBILITY): Define.
1629         * config/darwin.c (darwin_cxx_determine_class_data_visibility): New.
1630
1631         * config/darwin.c (machopic_select_section): It's not defined
1632         as weak if it's only marked as weak_import.
1633         
1634         * config/darwin-protos.h (darwin_cxx_determine_class_data_visibility):
1635         Prototype.
1636
1637         * varasm.c (default_binds_local_p_1): Weakrefs don't bind locally.
1638         A hidden weak object does bind locally.  Strong linkonce data
1639         counts like any other strong symbol for binding.
1640         (weak_finish_1): Don't specially handle weakrefs, they no longer
1641         arrive here.
1642         (assemble_alias): Weakrefs can't be TREE_PUBLIC yet.
1643         * c-common.c (handle_alias_attribute): Allow static aliases
1644         of variables.
1645         (handle_weakref_attribute): Don't call declare_weak on weakrefs.
1646         * gthr-dce.h: Make weakrefs static.
1647         * gthr-tpf.h: Likewise.
1648         * gthr-solaris.h: Likewise.
1649         * gthr-posix.h: Likewise.
1650         * gthr-posix95.h: Likewise.
1651         * config/darwin.c (darwin_encode_section_info): static weakref
1652         variables are not necessarily defined in this translation unit.
1653         * doc/extend.texi (Function Attributes): Mention that an alias
1654         attribute creates a definition for the thing it's attached to.
1655         Change the documentation for weakref to say that the thing
1656         it's attached to must be static.
1657
1658         * config/rs6000/host-darwin.c (segv_handler): Unblock SEGV so
1659         we don't go into an infinite loop.
1660
1661 2005-12-05  Paolo Bonzini  <bonzini@gnu.org>
1662
1663         * config/rs6000/predicates.md (logical_const_operand): Split
1664         out of logical_operand.
1665         (logical_operand): Use it.
1666         * config/rs6000/rs6000.md (cmp -> xor peephole2): Use
1667         logical_const_operand.
1668
1669 2005-12-05  Jan Beulich  <jbeulich@novell.com>
1670
1671         * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_CMPNEPS
1672         and IX86_BUILTIN_CMPNESS.
1673         (ix86_init_mmx_sse_builtins): Remove ti_ftype_ti_ti.
1674         * config/i386/i386.h (ALIGN_MODE_128): Don't check TFmode explicitly.
1675         * config/i386/i386.md (movti_internal): Correct type attribute.
1676         Simplify mode attribute.
1677         (movti_rex64, movsf_1, movdf_nointeger, movdf_integer, movtf_internal):
1678         Correct type attribute.
1679         (absxf2): Correct operator.
1680         * config/i386/mmx.md (mov<mode>_internal_rex64, mov<mode>_internal,
1681         movv2sf_internal_rex64, movv2sf_internal): Correct type attribute.
1682         * config/i386/sse.md (mov<mode>_internal, movv2df_internal): Simplify
1683         mode attribute.
1684         (sse2_vmsqrtv2df2): Correct mode attribute.
1685
1686 2005-12-05  Jan Beulich  <jbeulich@novell.com>
1687
1688         * config/ia64/ia64.md (rotlsi3_internal): Don't split if rotating by
1689         16 bits. Provide insn pattern for this case.
1690
1691 2005-12-05  Jan Beulich  <jbeulich@novell.com>
1692
1693         * libgcc2.c (__popcountSI2): Don't use wide type for iterator and
1694         result.
1695         (__popcountDI2): Likewise.
1696
1697 2005-12-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1698
1699         PR target/25166
1700         * pa/pa.c (pa_hpux_init_libfuncs): Add _U_Qfcnvxf_usgl_to_quad and
1701         _U_Qfcnvxf_udbl_to_quad to set of initialized libfuncs.
1702         * pa/quadlib.c (_U_Qfcnvxf_usgl_to_quad, _U_Qfcnvxf_udbl_to_quad): New
1703         functions.
1704
1705 2005-12-04  Joseph S. Myers  <joseph@codesourcery.com>
1706
1707         * c-typeck.c (null_pointer_constant_p): New function.
1708         (build_conditional_expr, build_c_cast, convert_for_assignment,
1709         build_binary_op): Use it.
1710
1711 2005-12-04  Joseph S. Myers  <joseph@codesourcery.com>
1712
1713         * c-common.c (binary_op_error): Do not allow NOP_EXPR.
1714         (c_common_truthvalue_conversion): Handle NOP_EXPR the same as
1715         CONVERT_EXPR.
1716         (check_function_arguments_recurse): Allow both NOP_EXPR and
1717         CONVERT_EXPR but check conversions preserve precision.
1718         * c-typeck.c (pointer_diff): Allow both NOP_EXPR and CONVERT_EXPR
1719         but check conversions preserve precision.
1720         (build_unary_op): Don't allow NOP_EXPR.  Use gcc_unreachable () in
1721         default case.
1722
1723 2005-12-04  Roger Sayle  <roger@eyesopen.com>
1724
1725         PR c/7776
1726         * common.opt (Wstring-literal-comparison): New command line option.
1727         * c-opts.c (c_common_handle_option): Set it with -Wall.
1728         * c-typeck.c (parser_build_binary_op): Issue warning if either
1729         operand of a comparison operator is a string literal, except for
1730         testing equality or inequality against NULL.
1731
1732         * doc/invoke.texi: Document new -Wstring-literal-comparison option.
1733
1734 2005-12-03  Joseph S. Myers  <joseph@codesourcery.com>
1735
1736         * c-common.c (c_sizeof_or_alignof_type): Use fold_convert instead
1737         of building a NOP_EXPR.
1738         (c_alignof_expr): Likewise.  Handle CONVERT_EXPR the same as
1739         NOP_EXPR.
1740         * c-convert.c (convert): Use fold_convert instead of building
1741         NOP_EXPRs and CONVERT_EXPRs directly.  Don't special case
1742         c_objc_common_truthvalue_conversion returning a NOP_EXPR.  Remove
1743         #if 0 code.
1744         * c-pretty-print.c (pp_c_cast_expression, pp_c_expression): Handle
1745         NOP_EXPR the same as CONVERT_EXPR.
1746         * c-typeck.c (build_function_call): Use fold_convert instead of
1747         building a NOP_EXPR directly.
1748         (build_compound_expr): Handle NOP_EXPR the same as CONVERT_EXPR.
1749
1750 2005-12-03  Alan Modra  <amodra@bigpond.net.au>
1751
1752         PR rtl-optimization/25197
1753         * dwarf2out.c (dwarf2out_frame_debug_expr <rule 12>): Assert we
1754         have a reg.
1755
1756 2005-12-02  Stuart Hastings  <stuart@apple.com>
1757
1758         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Remove -fpic
1759         warning.
1760
1761 2005-12-03  Joseph S. Myers  <joseph@codesourcery.com>
1762
1763         * c-typeck.c (default_function_array_conversion,
1764         build_function_call): Allow for CONVERT_EXPR as well as NOP_EXPR.
1765         (build_conditional_expr): Apply integer_zerop to orig_op1 and
1766         orig_op2.  Don't check them for NOP_EXPR.
1767         (build_c_cast, convert_for_assignment): Don't check for NOP_EXPR
1768         around integer zero.
1769
1770 2005-12-03  Alan Modra  <amodra@bigpond.net.au>
1771
1772         * config/rs6000/rs6000.c (rs6000_stack_t): Remove toc_save_p,
1773         toc_save_offset, toc_size, lr_size.
1774         (rs6000_stack_info): Use memset rather than bss struct copy to init.
1775         Test rs6000_ra_ever_killed last in condition setting lr_save_p.
1776         Adjust for removal of unused rs6000_stack_t fields.
1777         (debug_stack_info): Adjust.
1778         (rs6000_ra_ever_killed): Expand FIND_REG_INC_NOTE.  Test for calls
1779         first, and don't bother checking for set/inc of lr on sibcalls.
1780         (rs6000_emit_epilogue): Tidy code restoring stack pointer.
1781
1782 2005-12-02  Jakub Jelinek  <jakub@redhat.com>
1783
1784         PR target/25199
1785         * config/i386/i386.md (movqi_1): Only force imovx for alternative
1786         5 if operand 1 is not aligned.  Undo previous constraint change.
1787         * config/i386/predicates.md (aligned_operand): Use MEM_ALIGN.
1788
1789 2005-12-02  Richard Guenther  <rguenther@suse.de>
1790
1791         * tree.h (build): Remove prototype.
1792         (build, _buildN1, _buildN2, _buildC1, _buildC2): Remove macros.
1793         * tree.c (build): Remove.
1794         (build0_stat): Update comment.
1795
1796 2005-12-02  Richard Guenther  <rguenther@suse.de>
1797
1798         * tree-ssa-loop-im.c (schedule_sm): Use buildN instead of build.
1799         * tree-complex.c (update_complex_assignment, expand_complex_div_wide):
1800         Likewise.
1801         * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref,
1802         maybe_fold_offset_to_component_ref): Likewise.
1803         * tree-ssa-dom.c (thread_across_edge,
1804         simplify_rhs_and_lookup_avail_expr,
1805         find_equivalent_equality_comparison, record_equivalences_from_stmt):
1806         Likewise.
1807         * gimple-low.c (lower_function_body, lower_return_expr): Likewise.
1808         * tree-eh.c (do_return_redirection, honor_protect_cleanup_actions,
1809         lower_try_finally_switch): Likewise.
1810         * tree-if-conv.c (add_to_dst_predicate_list,
1811         replace_phi_with_cond_modify_expr, ifc_temp_var): Likewise.
1812         * gimplify.c (internal_get_tmp_var, gimple_build_eh_filter,
1813         voidify_wrapper_expr, build_stack_save_restore, gimplify_bind_expr,
1814         gimplify_return_expr, gimplify_decl_expr, gimplify_switch_expr,
1815         gimplify_case_label_expr, gimplify_exit_expr, gimplify_self_mod_expr,
1816         shortcut_cond_r, shortcut_cond_expr, gimplify_cond_expr,
1817         gimplify_init_ctor_eval, gimplify_init_constructor,
1818         gimplify_variable_sized_compare, gimplify_boolean_expr,
1819         gimplify_cleanup_point_expr, gimple_push_cleanup, gimplify_target_expr,
1820         gimplify_expr, gimplify_body, gimplify_function_tree,
1821         force_gimple_operand): Likewise.
1822         * tree-ssa-pre.c (create_expression_by_pieces): Likewise.
1823         * tree-mudflap.c (mf_decl_cache_locals, mf_build_check_statement_for,
1824         mx_register_decls): Likewise.
1825         * tree-nested.c (init_tmp_var, save_tmp_var, get_static_chain,
1826         get_frame_field, finalize_nesting_tree_1): Likewise.
1827         * tree-inline.c (setup_one_parameter): Likewise.
1828         * tree-vect-transform.c (vectorizable_condition): Likewise.
1829         * tree-outof-ssa.c (insert_copy_on_edge, insert_backedge_copies):
1830         Likewise.
1831         * tree-profile.c (tree_gen_edge_profiler): Likewise.
1832         * tree-cfg.c (factor_computed_gotos, gimplify_val): Likewise.
1833         * c-parser.c (c_parser_if_body, c_parser_switch_statement): Likewise.
1834         * tree-chrec.h (build_polynomial_chrec): Likewise.
1835
1836 2005-12-02  Richard Guenther  <rguenther@suse.de>
1837
1838         * config/alpha/alpha.c (alpha_va_start, alpha_gimplify_va_arg_1i,
1839         alpha_gimplify_va_arg): Use buildN and fold_buildN where applicable.
1840         * config/frv/frv.c (frv_expand_builtin_va_start): Likewise.
1841         * config/s390/s390.c (s390_va_start, s390_gimplify_va_arg): Likewise.
1842         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
1843         * config/i386/i386.c (ix86_va_start, ix86_gimplify_va_arg): Likewise.
1844         * config/rs6000/rs6000.c (rs6000_va_start, rs6000_gimplify_va_arg):
1845         Likewise.
1846         * config/sh/sh.c (sh_va_start, sh_gimplify_va_arg_expr,
1847         sh_adjust_unroll_max): Likewise.
1848         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
1849         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
1850         * config/xtensa/xtensa.c (xtensa_va_start, xtensa_gimplify_va_arg_expr):
1851         Likewise.
1852         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_start):
1853         Likewise.
1854         * config/mips/mips.c (mips_va_start, mips_gimplify_va_arg_expr):
1855         Likewise.
1856
1857 2005-12-02  Richard Guenther  <rguenther@suse.de>
1858
1859         * tree-vrp.c (build_assert_expr_for, process_assert_insertions_for,
1860         simplify_cond_using_ranges): Use buildN instead of build.
1861         * tree-tailcall.c (adjust_accumulator_values,
1862         adjust_return_value): Likewise.
1863         * tree-sra.c (generate_one_element_ref, generate_copy_inout,
1864         generate_element_copy, generate_element_zero,
1865         generate_one_element_init): Likewise.
1866         * tree-ssa-forwprop.c (forward_propagate_into_cond_1): Likewise.
1867         * lambda-code.c (gcc_loop_to_lambda_loop, lbv_to_gcc_expression,
1868         lle_to_gcc_expression, lambda_loopnest_to_gcc_loopnest,
1869         perfect_nestify): Likewise.
1870
1871 2005-12-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1872
1873         * pa.c (pa_secondary_reload): Revise initialization of variable regno.
1874
1875 2005-12-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1876
1877         * ggc.h (GGC_RESIZEVEC): New.
1878
1879 2005-12-02  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
1880
1881         * gcc.c (execute): Improve readability.
1882
1883 2005-12-02  Richard Guenther  <rguenther@suse.de>
1884
1885         * tree-cfg.c (mark_used_vars): New function.
1886         (dump_function_to_file): Dump only used VAR_DECLs.
1887
1888 2005-12-02  Richard Guenther  <rguenther@suse.de>
1889
1890         * convert.c (convert_to_integer): Fix compare for nonpositive
1891         constant to use tree_int_cst_sgn <= 0.
1892
1893 2005-12-02  Richard Guenther  <rguenther@suse.de>
1894
1895         * convert.c (convert_to_integer): Use fold_convert instead
1896         of fold_build1 (NOP_EXPR, ...).  Use tree_int_cst_sgn < 0
1897         instead of comparing against 0.  Use build_int_cst instead
1898         of converting integer_zero_node.
1899
1900 2005-12-02  Richard Guenther  <rguenther@suse.de>
1901
1902         * tree-pretty-print.c (op_symbol): Handle LROTATE_EXPR
1903         and RROTATE_EXPR.
1904  
1905 2005-12-02  Alan Modra  <amodra@bigpond.net.au>
1906
1907         PR target/21017
1908         * combine.c (simplify_logical <IOR>): Simplify more patterns to
1909         rotates.
1910
1911 2005-12-02  Alan Modra  <amodra@bigpond.net.au>
1912
1913         PR middle-end/25176
1914         * function.c (expand_function_end): Emit blockage for unwinder
1915         after return label.
1916
1917 2005-12-01  Roger Sayle  <roger@eyesopen.com>
1918
1919         * tree.h (TREE_OVERFLOW): Make this flag/predicate specific to
1920         constant nodes, i.e. INTEGER_CST, REAL_CST, etc...
1921         * tree-vrp.c (compare_values): Only check TREE_OVERFLOW for
1922         integer constant comparisons.
1923
1924 2005-12-02  Jon Grimm  <jgrimm2@us.ibm.com>
1925             Janis Johnson  <janis187@us.ibm.com>
1926             David Edelsohn  <dje@watson.ibm.com>
1927             Ben Elliston  <bje@au.ibm.com>
1928
1929         * dfp.h, dfp.c: New files.
1930         * Makefile.in (DECNUM, DECNUMINC, LIBDECNUMBER): New variables.
1931         (DECNUM_H): Likewise.
1932         (LIBDEPS, LIBS, BACKEND): Append $(LIBDECNUMBER).
1933         (INCLUDES): Append $(DECNUMINC).
1934         (OBJS-common): Add dfp.o.
1935         (dfp.o): New rule.
1936         * real.h (EXP_BITS): Pinch one bit to ..
1937         (struct real_value): Add decimal field.
1938         (real_format): Change table size, update documentation.
1939         (REAL_MODE_FORMAT): Update for to handle float, decimal float.
1940         (real_from_string3): Declare.
1941         (decimal_single_format): Declare.
1942         (decimal_double_format): Declare.
1943         (decimal_quad_format): Declare.
1944         (REAL_VALUE_TO_TARGET_DECIMAL32): New.
1945         (REAL_VALUE_TO_TARGET_DECIMAL64): New.
1946         (REAL_VALUE_TO_TARGET_DECIMAL128): New.
1947         * real.c: Include dfp.h.
1948         (normalize): Early return for decimal floats.
1949         (do_add): Zero decimal field.
1950         (do_compare): Call do_decimal_compare for decimal floats.
1951         (do_fix_trunc): Likewise, call decimal_do_fix_trunc.
1952         (real_arithmetic): Call decimal_real_arithmetic for decimal
1953         floating point operands.
1954         (real_identical): If a and b are of differing radix, return false.
1955         (real_to_integer): Call decimal_real_to_integer if the value is a
1956         decimal float.
1957         (real_to_integer2): Likewise, call decimal_real_to_integer2.
1958         (real_to_decimal): Likewise, call decimal_real_to_decimal.
1959         (real_to_hexadecimal): Place "N/A" in the return string for
1960         decimal float.
1961         (real_from_string3): New variant, given a mode.
1962         (real_maxval): Use decimal_real_maxval for decimal floats.
1963         (round_for_format): Use decimal_round_for_format for decimals.
1964         (real_convert): Use decimal_real_convert where appropriate.
1965         (significand_size): Handle base 10.
1966         (encode_decimal_single, decode_decimal_single,
1967         encode_decimal_double, decode_decimal_double, encode_decimal_quad,
1968         decode_decimal_quad): New functions.
1969         (decimal_single_format): New.
1970         (decimal_double_format): New.
1971         (decimal_quad_format): New.
1972         * machmode.def: Add SD, DD and TD decimal floating point modes.
1973         * machmode.h (FLOAT_MODE_P, SCALAR_FLOAT_MODE_P, MODES_WIDEN_P):
1974         Include MODE_DECIMAL_FLOAT.
1975         (DECIMAL_FLOAT_MODE_P): New.
1976         * mode-classes.def (MODE_DECIMAL_FLOAT): New mode class.
1977         * genmodes.c (struct mode_data): Add counter field.
1978         (struct mode_data): Update comment for format.
1979         (blank_mode): Initialise counter field.
1980         (new_mode): Increment counter field for each mode defined.
1981         (complete_mode): Handle MODE_DECIMAL_FLOAT, update check for mode
1982         using a format.
1983         (make_complex_modes): Handle modes containing `D'.
1984         (DECIMAL_FLOAT_MODE, FRACTIONAL_DECIMAL_FLOAT_MODE): New.
1985         (make_decimal_float_mode): New.
1986         (reset_float_format): Handle MODE_DECIMAL_FLOAT.
1987         (cmp_modes): Compare counter field if other characteristics
1988         similar.
1989         (emit_real_format_for_mode): Support formats for decimal floats.
1990         * doc/rtl.texi (Machine Modes): Document SD, DD and TDmodes.
1991         Document MODE_DECIMAL_FLOAT.
1992
1993 2005-12-02  Alan Modra  <amodra@bigpond.net.au>
1994
1995         * simplify-rtx.c (simplify_plus_minus): Do simplify constants.
1996         Delete dead code.
1997
1998 2005-12-01  Richard Henderson  <rth@redhat.com>
1999
2000         * optabs.c (expand_vec_cond_expr): Use EXPAND_NORMAL.
2001
2002 2005-12-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2003
2004         * builtins.def (BUILT_IN_PUTC, BUILT_IN_PUTC_UNLOCKED): New.
2005
2006         * config/pa/pa.c (pa_init_builtins): If we detect
2007         DONT_HAVE_FPUTC_UNLOCKED, set builtin fputc_unlocked to
2008         putc_unlocked.
2009
2010 2005-12-01  Richard Guenther  <rguenther@suse.de>
2011
2012         * fold-const.c (fold_binary): Use fold_build2, not
2013         fold (build (...)).
2014
2015 2005-12-01  Nathan Sidwell  <nathan@codesourcery.com>
2016
2017         * config/ms1/ms1.c (ms1_reorg_hazard): Don't count noop moves.
2018
2019         * vec.h (VEC_block_remove): New.
2020
2021 2005-12-01  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2022
2023         PR c/13384
2024         * c-common.c (lvalue_error): Fix wording.
2025
2026 2005-12-01  Richard Guenther  <rguenther@suse.de>
2027
2028         * tree-ssa-forwprop.c (forward_propagate_addr_expr): Fix
2029         thinko in last patch.
2030
2031 2005-12-01  Geoffrey Keating  <geoffk@apple.com>
2032
2033         * config/t-slibgcc-darwin (SHLIB_LINK): Use -single_module rather
2034         than -flat_namespace.
2035
2036 2005-12-01  Ben Elliston  <bje@au.ibm.com>
2037
2038         * mklibgcc.in: Parameterise the script to build soft float
2039         functions by iterating over each type, rather than cloning the
2040         code for each type.
2041
2042 2005-11-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2043
2044         PR middle-end/25158
2045         * builtins.c (fold_builtin_fputs): Defer check for missing
2046         replacement functions.
2047
2048 2005-11-30  Kean Johnston  <jkj@sco.com>
2049
2050         * config/i386/i386.c: Check the value of SUPPORTS_ONE_ONLY, not
2051         simply its presense in case targets #define SUPPORTS_ONE_ONLY 0.
2052
2053 2005-11-30  Richard Guenther  <rguenther@suse.de>
2054
2055         PR tree-optimization/22501
2056         * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): New
2057         function split out from ...
2058         (forward_propagate_addr_expr): ... here.  Use it to propagate
2059         ADDR_EXPRs to all uses.
2060
2061 2005-11-30  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2062
2063         * tree.h (CASE_FLT_FN, CASE_INT_FN): New macros.
2064         * builtins.c (expand_builtin_mathfn): Use them.
2065         (expand_builtin_mathfn_2): Likewise.
2066         (expand_builtin_mathfn_3): Likewise.
2067         (expand_builtin_int_roundingfn): Likewise.
2068         (expand_builtin): Likewise.
2069         (integer_valued_real_p): Likewise.
2070         (fold_builtin_int_roundingfn): Likewise.
2071         (fold_builtin_bitop): Likewise.
2072         (fold_builtin_logarithm): Likewise.
2073         (fold_builtin_1): Likewise.
2074         * convert.c (convert_to_integer): Likewise.
2075         * fold-const.c (negate_mathfn_p): Likewise.
2076         (tree_expr_nonnegative_p): Likewise.
2077
2078 2005-11-30  Dale Johannesen  <dalej@apple.com>
2079             Andrew Pinski  <pinskia@physics.uc.edu>
2080
2081         * combine.c (find_split_point):  Sign extend bitmask
2082         when changing bitfield assignment to IOR of AND.
2083
2084 2005-11-30  Nathan Sidwell  <nathan@codesourcery.com>
2085
2086         * config/ms1/ms1.md (decrement_and_branch_until_zero): Add early
2087         clobber to scratch reg.
2088         (*decrement_and_branch_until_zero_no_clobber): Remove.
2089         (decrement_and_branch peephole): Add dummy scratch reg to pattern.
2090         (mulhish3): Use TARGET_MS1_16_003, TARGET_MS2.
2091         * config/ms1/ms1.opt (mmul): Remove.
2092         * config/ms1/ms1.h (ASM_SPEC): Cope with uppercase arch names.
2093         (LINK_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Default to 16-002.
2094
2095 2005-11-30  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2096             Bernd Schmidt  <bernd.schmidt@analog.com>
2097
2098         * pa/predicates.md (symbolic_operand): Add comment.
2099         * pa/pa.md (reload_insi_r1, reload_indi_r1): New reload expanders.
2100         * pa/pa-protos.h (pa_secondary_reload_class): Delete.
2101         * pa/pa.c (TARGET_SECONDARY_RELOAD): Define.
2102         (pa_secondary_reload_class): Delete.
2103         (pa_secondary_reload): New function derived from SECONDARY_RELOAD_CLASS
2104         and pa_secondary_reload_class.  Reorder some checks.  Update inline
2105         copy of symbolic operand.
2106         * pa/pa.h (SECONDARY_RELOAD_CLASS): Delete.
2107
2108 2005-11-30  Nathan Sidwell  <nathan@codesourcery.com>
2109
2110         * loop-doloop.c (add_test): Only add jump notes if we did emit a
2111         jump.
2112
2113 2005-11-30  Jeff Law  <law@redhat.com>
2114
2115         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Properly
2116         handle SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
2117
2118 2005-11-30  Jakub Jelinek  <jakub@redhat.com>
2119
2120         * config/ia64/ia64.c (ia64_expand_tls_address): Add ORIG_OP1 argument.
2121         Move ADDEND_{HI,LO} computation into TLS_MODEL_INITIAL_EXEC case.
2122         (ia64_expand_move): Adjust caller.
2123
2124         * config/ia64/ia64.c (ia64_expand_atomic_op): Only use
2125         fetchadd{4,8}.acq instruction if CODE is PLUS or MINUS, for MINUS
2126         negate VAL.
2127
2128 2005-11-30  Paolo Bonzini  <bonzini@gnu.org>
2129
2130         * simplify-rtx.c (simplify_plus_minus): Remove final parameter.
2131         Always produce an output if we can remove NEGs or canonicalize
2132         (minus (minus ...)) expressions.  Provide a fast path for the
2133         two-operand case.
2134         (simplify_gen_binary): Do not call simplify_plus_minus.
2135         (simplify_binary_operation_1): Reassociate at the end of the
2136         function.
2137
2138 2005-11-29  Evan Cheng  <evan.cheng@apple.com>
2139
2140         * config/i386/xmmintrin.h (_MM_TRANSPOSE4_PS): Rewrite using high/low
2141         moves and unpack to speed up.
2142
2143 2005-11-29  David S. Miller  <davem@sunset.davemloft.net>
2144
2145         * config/sparc/sparc.c (gen_compare_reg): Kill 2nd and 3rd
2146         argument, they are always sparc_compare_op0 and sparc_compare_op1.
2147         (gen_v9_scc): Update callers.
2148         * config/sparc/sparc.md: Likewise.
2149         * config/sparc/sparc-protos.h: Update extern declaration.
2150
2151         * tree-into-ssa.c (rewrite_into_ssa): Fix comment typo.
2152
2153 2005-11-29  Andrew Pinski  <pinskia@physics.uc.edu>
2154
2155         * fold-const.c (negate_expr) <case BIT_NOT_EXPR>: Add break after
2156         the if.
2157
2158 2005-11-29  Andrew Pinski  <pinskia@physics.uc.edu>
2159
2160         * fold-const.c (negate_expr_p): Return true for BIT_NOT_EXPR.
2161         (fold_unary) <case NEGATE_EXPR>: Move -(~a) transformation to ...
2162         (negate_expr): Here.
2163
2164 2005-11-29  Ben Elliston  <bje@au.ibm.com>
2165
2166         * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN):
2167         Fix typo in comment.
2168
2169 2005-11-29  Ben Elliston  <bje@au.ibm.com>
2170
2171         * Makefile.in (clean-target): Depend on clean-target-libgcc.
2172         (clean-target-libgcc): Import rule from the top-level Makefile.in.
2173
2174 2005-11-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2175
2176         PR middle-end/20109
2177         PR middle-end/25120
2178         * builtins.c (init_target_chars): New.
2179         (expand_builtin_printf, expand_builtin_fprintf,
2180         expand_builtin_sprintf, fold_builtin_sprintf,
2181         maybe_emit_sprintf_chk_warning, fold_builtin_sprintf_chk,
2182         fold_builtin_snprintf_chk, fold_builtin_printf,
2183         fold_builtin_fprintf): Check for matching format strings using
2184         the target charset.
2185
2186 2005-11-29  Paul Brook  <paul@codesourcery.com>
2187
2188         * config.gcc: Do not use fixproto on m68k-elf.
2189
2190 2005-11-28  Roger Sayle  <roger@eyesopen.com>
2191
2192         * expmed.c (div_cost): Replace with...
2193         (sdiv_cost, udiv_cost): New.
2194         (init_expmed): Initialize sdiv_cost and udiv_cost, not div_cost.
2195         Rename the div and mod fields, used to initialize sdiv_pow2_cheap
2196         and smod_pow2_cheap, to sdiv_32 and smod_32 to avoid confusion.
2197         (expand_divmod): Replace use of div_cost with either sdiv_cost
2198         or udiv_cost depending upon the signedness of the operation.
2199
2200 2005-11-28  Alexandre Oliva  <aoliva@redhat.com>
2201
2202         PR libfortran/24991
2203         * config/darwin.c (machopic_indirection_name,
2204         machopic_output_indirection): Follow transparent alias chain.
2205
2206 2005-11-28  Alexandre Oliva  <aoliva@redhat.com>
2207
2208         * varasm.c (ultimate_transparent_alias_target): Add comment.
2209
2210 2005-11-28  Kazu Hirata  <kazu@codesourcery.com>
2211
2212         * config/m68k/m68k.c (notice_update_cc): Use SET_DEST and
2213         SET_SRC instead of XEXP where appropriate.
2214
2215 2005-11-28  Joseph S. Myers  <joseph@codesourcery.com>
2216
2217         * config/fp-bit.c (isnan, isinf, pack_d, unpack_d): Use
2218         __builtin_expect.
2219
2220 2005-11-28  Joseph S. Myers  <joseph@codesourcery.com>
2221
2222         * config/fp-bit.h (LSHIFT): Take shift count parameter.
2223         * config/fp-bit.c (_fpadd_parts): Shift in one go instead of one
2224         bit at a time.
2225
2226 2005-11-28  Bernd Schmidt  <bernd.schmidt@analog.com>
2227
2228         * config/bfin/bfin.c (bfin_secondary_reload): Renamed from
2229         secondary_input_reload_class, made static.  Adapt to new
2230         infrastructure.
2231         (secondary_output_reload_class): Delete.
2232         (TARGET_SECONDARY_RELOAD): New macro.
2233         * config/bfin/bfin.h (SECONDARY_INPUT_RELOAD_CLASS,
2234         SECONDARY_OUTPUT_RELOAD_CLASS): Delete.
2235
2236 2005-11-28  Nathan Sidwell  <nathan@codesourcery.com>
2237
2238         PR c++/21166
2239         * c-decl.c (finish_struct):  Only set DECL_PACKED on a field
2240         when its natural alignment is > BITS_PER_UNIT.
2241         * stor-layout.c (finalize_type_size): Revert my patch of 2005-08-08.
2242         * c-common.c (handle_packed_attribute): Ignore packing on a field
2243         whose type is naturally char aligned.
2244
2245 2005-11-28  Richard Guenther  <rguenther@suse.de>
2246
2247         * c-common.c (strict_aliasing_warning): Handle all
2248         component-ref like accesses.
2249
2250 2005-11-28  Roger Sayle  <roger@eyesopen.com>
2251             Uros Bizjak  <uros@kss-loka.si>
2252
2253         PR middle-end/20219
2254         * fold-const.c (fold binary) <RDIV_EXPR>: Optimize
2255         sin(x)/tan(x) as cos(x) and tan(x)/sin(x) as 1.0/cos(x)
2256         when flag_unsafe_math_optimizations is set and
2257         we don't care about NaNs or Infinities.
2258
2259         Move x/expN(y) and x/pow(y,z) transformation into common
2260         flag_unsafe_math_optimizations section.
2261
2262 2005-11-27  Mark Mitchell  <mark@codesourcery.com>
2263
2264         * gcc.c (main): Change type of argv to "char **".
2265
2266 2005-11-28  Alan Modra  <amodra@bigpond.net.au>
2267
2268         * doc/invoke.texi (powerpc msdata-data): Static data doesn't go in
2269         small data sections.
2270         * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Make global.
2271         * config/rs6000/rs6000-protos.h: (rs6000_elf_in_small_data_p): Declare.
2272         * config/rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_LOCAL): Rename to..
2273         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): ..this, adding extra parm.  Don't
2274         output locals to sbss if !rs6000_elf_in_small_data_p.
2275         (ASM_OUTPUT_ALIGNED_BSS): Adjust for above.
2276
2277 2005-11-28  Alan Modra  <amodra@bigpond.net.au>
2278
2279         PR target/24997
2280         * config/rs6000/rs6000.c (legitimate_indexed_address_p): Allow pattern
2281         generated by reload.
2282         * config/rs6000/predicates.md (indexed_or_indirect_operand): Use
2283         indexed_or_indirect_address.
2284         (indexed_or_indirect_address): Don't test for base reg.  Call
2285         address_operand last.  Make it a special predicate.
2286
2287 2005-11-27  Kazu Hirata  <kazu@codesourcery.com>
2288
2289         * config/m68k/m68k.c (notice_update_cc): Remove useless code.
2290
2291 2005-11-27  Andrew Pinski  <pinskia@physics.uc.edu>
2292
2293         PR middle-end/24575
2294         * fold-const.c (negate_expr_p): Add case for signed divides if overflow
2295         is undefined.
2296         (negate_expr): Likewise.
2297
2298 2005-11-27  Andreas Schwab  <schwab@suse.de>
2299
2300         * config/m68k/m68k.c: Reindent and fix whitespace, remove
2301         redundant parens.
2302
2303 2005-11-27  Steven Bosscher  <stevenb@suse.de>
2304
2305         * cfgcleanup.c (try_crossjump_to_edge): Always split SRC2 if it
2306         has EH predecessor edges.
2307
2308 2005-11-26  Eric Christopher  <echristo@apple.com>
2309
2310         * config/i386/i386.md (*zero_extendqihi2_movzbw): Avoid partial
2311         register stalls by zero extending to the full register.
2312
2313 2005-11-27  Joseph S. Myers  <joseph@codesourcery.com>
2314
2315         * config/floatunsisf.c, config/floatunsidf.c,
2316         config/floatunsixf.c, config/floatunsitf.c: New files.
2317         * config/ia64/t-hpux: Add floatunsitf.c.
2318         * config/ia64/ia64.c (ia64_init_libfuncs): Use
2319         _U_Qfcnvxuf_dbl_to_quad for unsigned DImode-to-TFmode conversion.
2320
2321 2005-11-26  Richard Henderson  <rth@redhat.com>
2322
2323         * c-lex.c (pragma_lex): Rename from c_lex.
2324         * c-pch.c: Update for pragma_lex rename.
2325         * c-pragma.c, c-pragma.h, config/ia64/ia64-c.c: Likewise.
2326         * config/m32c/m32c-pragma.c, config/darwin-c.c: Likewise.
2327         * config/rs6000/rs6000-c.c, config/c4x/c4x-c.c: Likewise.
2328         * config/sol2-c.c, config/v850/v850-c.c: Likewise.
2329         * doc/tm.texi: Likewise.
2330
2331 2005-11-26  Andrew Pinski  <pinskia@physics.uc.edu>
2332
2333         PR middle-end/23669
2334         * fold-const.c (fold_binary): Convert -A/-B to A/B for signed types
2335         when overflow is undefined.
2336
2337 2005-11-26  Hans-Peter Nilsson  <hp@axis.com>
2338
2339         * doc/md.texi (Insn Canonicalizations): Refer to the
2340         function commutative_operand_precedence for further rules.
2341
2342 2005-11-25  Roger Sayle  <roger@eyesopen.com>
2343
2344         PR middle-end/21309
2345         * expmed.c (choose_mult_variant): Return immediately when mult_cost
2346         is less than zero.  Limit mult_cost to a reasonable upper bound for
2347         the synthetic multiplication sequence.
2348
2349 2005-11-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2350
2351         PR middle-end/25022
2352         * builtins.c (expand_builtin_printf, expand_builtin_fprintf,
2353         fold_builtin_fputs, fold_builtin_printf, fold_builtin_fprintf):
2354         Lookup the explicit replacement functions for any unlocked
2355         stdio builtin transformations.
2356
2357 2005-11-25  Hans-Peter Nilsson  <hp@axis.com>
2358
2359         * config/cris/cris.md ("reload_out<mode>"): Mark operand 2 as
2360         earlyclobber.
2361         * targhooks.c (default_secondary_reload): Don't require operand 2
2362         for an input reload to be earlyclobber.
2363
2364 2005-11-25  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2365
2366         * fold-const.c (negate_mathfn_p): Fix comment and add support
2367         for BUILT_IN_CBRT, BUILT_IN_SINH, BUILT_IN_TANH, BUILT_IN_ASINH,
2368         BUILT_IN_ATANH.
2369
2370 2005-11-25  Joseph S. Myers  <joseph@codesourcery.com>
2371
2372         PR middle-end/24998
2373         * config/sparc/sparc.c (sparc_init_libfuncs): Use _Q_utoq and
2374         _Q_ulltoq for unsigned conversions from SImode and DImode to
2375         TFmode.
2376
2377 2005-11-25  Alan Modra  <amodra@bigpond.net.au>
2378
2379         * config/rs6000/ppc64-fp.c (__floatunditf): New function.
2380         (__floatundidf, __floatundisf): Likewise.
2381
2382 2005-11-25  David Edelsohn  <edelsohn@gnu.org>
2383
2384         * config/rs6000/rs6000.c (rs6000_sr_alias_set): Delete.
2385         (rs6000_override_options): Remove initialization of
2386         rs6000_sr_alias_set.
2387         (rs6000_emit_eh_reg_restore): Use gen_frame_mem.
2388         (rs6000_emit_stack_tie): Same.
2389         (emit_frame_save): Same.
2390         (gen_frame_mem_offset): Same.
2391         (rs6000_emit_prologue): Same.
2392         (rs6000_emit_epilogue): Same.
2393
2394 2005-11-25  Andrew Pinski  <pinskia@physics.uc.edu>
2395
2396         PR middle-end/24989
2397         * fold-const.c (fold_build): Convert bool_var != 1 and
2398         bool_var == 0 to !bool_var.
2399
2400 2005-11-25  Andrew Pinski  <pinskia@physics.uc.edu>
2401
2402         PR middle-end/24990
2403         * fold-const.c (fold_binary): Fold (~a) == C to a == ~C
2404         for C being INTEGER_CST.  Likewise for !=.
2405
2406 2005-11-25  Joseph S. Myers  <joseph@codesourcery.com>
2407
2408         PR middle-end/24998
2409         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Use _q_utoq for
2410         unsigned conversions from SImode to TFmode.
2411
2412 2005-11-24  Bernd Schmidt  <bernd.schmidt@analog.com>
2413
2414         * expr.c (expand_expr_real_1): Fix error in last change.
2415
2416 2005-11-24  J"orn Rennecke <joern.rennecke@st.com>
2417
2418         * caller-save.c: (this_insn_sets): Move into:
2419         (save_call_clobbered_regs).
2420         (mark_set_regs): Get this_insn_sets from data.
2421
2422         (save_call_clobbered_regs): Take sets of the return value by
2423         sibcalls into account.
2424
2425 2005-11-24  J"orn Rennecke <joern.rennecke@st.com>
2426         PR target/21623:
2427
2428         * regclass.c (FORBIDDEN_INC_DEC_CLASSES): Remove
2429         SECONDARY_INPUT_RELOAD_CLASS and SECONDARY_OUTPUT_RELOAD_CLASS tests.
2430         (init_fake_stack_mems): Remove HAVE_SECONDARY_RELOADS test.
2431         (memory_move_secondary_cost, init_reg_autoinc): Remove
2432         SECONDARY_INPUT_RELOAD_CLASS / SECONDARY_OUTPUT_RELOAD_CLASS tests.
2433         Replace SECONDARY_{IN,OUT}PUT_RELOAD_CLASS use with
2434         secondary_reload_class call.
2435         (copy_cost): Likewise.  Add new parameter prev_sri.  Changed all
2436         callers.
2437         * reload.c (entire file): Remove HAVE_SECONDARY_RELOADS checks.
2438         (push_secondary_reload): Use secondary_reload target hook.
2439         (secondary_reload_class, scratch_reload_class): New functions.
2440         (push_reload): Remove SECONDARY_INPUT_RELOAD_CLASS and
2441         SECONDARY_OUTPUT_RELOAD_CLASS tests.  Replace
2442         SECONDARY_{IN,OUT}PUT_RELOAD_CLASS use with secondary_reload_class call.
2443         * reload.h (HAVE_SECONDARY_RELOADS): Don't define nor test.
2444         (secondary_reload_class, scratch_reload_class): Declare.
2445         * reload1.c: Include target.h.
2446         (reload_adjust_reg_for_temp): New function.
2447         (reload_adjust_reg_for_icode): Likewise.
2448         (choose_reload_regs): Remove SECONDARY_INPUT_RELOAD_CLASS test.
2449         Replace SECONDARY_INPUT_RELOAD_CLASS use with secondary_reload_class
2450         call.
2451         (emit_input_reload_insns): Likewise.  Rewrite secondary reload checks
2452         for inheritance.  Support case when both secondary & tertiary reloads
2453         are for intermediate registers.
2454         (emit_output_reload_insns): Replace SECONDARY_OUTPUT_RELOAD_CLASS use
2455         with secondary_reload_class call.  Support case when both secondary
2456         & tertiary reloads are for intermediate registers.
2457         * target-def.h (TARGET_SECONDARY_RELOAD): Provide default definition.
2458         (TARGET_INITIALIZER) Add TARGET_SECONDARY_RELOAD.
2459         * target.h (secondary_reload_info): New struct / typedef.
2460         (struct gcc_target): New member secondary_reload.
2461         * targhooks.c Include reload.h, optabs.h and recog.h.
2462         (default_secondary_reload): New function.
2463         * targhooks.h (default_secondary_reload): Declare.
2464         * doc/tm.texi: Document secondary_reload target hook.  Update
2465         description of SECONDARY_*RELOAD_CLASS and reload_{in,out}<mode>.
2466         * doc/md.texi: Likewise.
2467
2468         * sh-protos.h (sh_secondary_reload): Declare.
2469         * sh.c (TARGET_SECONDARY_RELOAD): Override.
2470         (sh_secondary_reload): New function.
2471         * sh.h (SECONDARY_INOUT_RELOAD_CLASS): Don't define.
2472         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
2473         (SECONDARY_INPUT_RELOAD_CLASS): Likewise.
2474         (HAVE_SECONDARY_RELOADS): Define.
2475         * sh.md (reload_indf): Rename to:
2476         (reload_indf__frn).
2477         (reload_outdf): Rename to:
2478         (reload_outdf__RnFRm).
2479         (reload_insf): Rename to:
2480         (reload_insf__frn).
2481         (reload_insi): Rename to:
2482         (reload_insi__i_fpul).
2483
2484 2005-11-24  Uros Bizjak  <uros@kss-loka.si>
2485
2486         * configure.ac: Require at least texinfo 4.4.
2487         * configure: Regenerate.
2488
2489         * doc/install.texi (Tools/packages necessary for building GCC):
2490         Update required version of texinfo to at least 4.4.
2491         (Installing GCC: Building): Update required version of texinfo
2492         to at least 4.4.
2493         (Installing GCC: Final installation): Update required version
2494         of texi2dvi to at least 4.4.
2495         (Host/target specific installation notes for GCC): Update required
2496         version of texinfo to at least 4.4.
2497
2498 2005-11-24  Richard Guenther  <rguenther@suse.de>
2499         Dirk Mueller <dmueller@suse.de>
2500
2501         PR c++/14024
2502         * c-common.h (strict_aliasing_warning): Declare.
2503         * c-common.c (strict_aliasing_warning): New function,
2504         split out from ...
2505         * c-typeck.c (build_c_cast): ... here.
2506
2507 2005-11-24  Paolo Bonzini  <bonzini@gnu.org>
2508
2509         * optabs.c (expand_binop): Use swap_commutative_operands_with_target
2510         to order operands.
2511         (swap_commutative_operands_with_target): New.
2512
2513 2005-11-24  Paolo Bonzini  <bonzini@gnu.org>
2514
2515         * gcse.c (hash_scan_set): Look through REG_EQUAL or REG_EQUIV notes
2516         also when doing PRE, rather than only for global CPROP.
2517
2518 2005-11-24  Ben Elliston  <bje@au.ibm.com>
2519
2520         * machmode.h (CLASS_HAS_WIDER_MODES_P): New macro.
2521         * optabs.c (expand_binop): Use CLASS_HAS_WIDER_MODES_P, improve
2522         formatting.
2523         (expand_twoval_unop): Likewise.
2524         (widen_clz): Likewise.
2525         (expand_parity): Likewise.
2526         (expand_unop): Likewise.
2527         (emit_cmp_and_jmp_insn_1): Likewise.
2528         (prepare_float_lib_cmp): Likewise.
2529
2530 2005-11-24  Ben Elliston  <bje@au.ibm.com>
2531
2532         * optabs.c (prepare_cmp_insn): Use SCALAR_FLOAT_MODE_P.
2533         Remove unused `class' variable.
2534
2535 2005-11-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2536
2537         PR c++/21667
2538         * c-typeck.c (build_array_ref): Avoid code duplicate.  Use common
2539         C/C++ diagnostic function warn_array_subscript_with_type_char.
2540         * c-common.h (warn_array_subscript_with_type_char): Declare.
2541         * c-common.c (warn_array_subscript_with_type_char): Define.
2542
2543 2005-11-23  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2544
2545         PR c/21668
2546         * c-decl.c (grokdeclarator): Don't warn for 'extern const' when
2547         compiling at the intersection of C and C++.
2548
2549 2005-11-23  Mark Mitchell  <mark@codesourcery.com>
2550
2551         * doc/invoke.texi: For man pages, include gcc-vers.texi.
2552         List @file in the option summary.  Include the libiberty
2553         documentation for @file.
2554         * gcc.c (main): Call expandargv.
2555         * Makefile.in (gcc-vers.texi): Define srcdir.
2556
2557 2005-11-23  Diego Novillo  <dnovillo@redhat.com>
2558
2559         * passes.c (init_optimization_passes): Document
2560         sequencing of passes.
2561
2562 2005-11-23  Kazu Hirata  <kazu@codesourcery.com>
2563
2564         * config/m68k/predicates.md (pcrel_address, extend_operator,
2565         post_inc_operand, pre_dec_operand): Remove redundant
2566         conditionals.
2567         (const_uint32_operand, const_sint32_operand): Use gcc_assert
2568         instead of abort.
2569         (valid_dbcc_comparison_p): Rewrite in the lisp style.
2570
2571 2005-11-23  Ben Elliston  <bje@au.ibm.com>
2572
2573         * dwarf2.h (enum dwarf_type): Add DW_ATE_decimal_float.
2574
2575 2005-11-22  J"orn Rennecke <joern.rennecke@st.com>
2576
2577         Preparatory work for PR target/21623:
2578         * alpha.c (secondary_reload_class): Rename to:
2579         (alpha_secondary_reload_class).
2580         * alpha.h, alpha-protos.h: Likewise.
2581         * mn10300.c (secondary_reload_class): Rename to:
2582         (mn10300_secondary_reload_class).
2583         * mn10300.h, mn10300-protos.h: Likewise.
2584         * pa.c (secondary_reload_class): Rename to:
2585         (pa_secondary_reload_class).
2586         * pa.h, pa-protos.h: Likewise.
2587         * rs6000.c (secondary_reload_class): Rename to:
2588         rs6000_secondary_reload_class.
2589         * rs6000.h, rs6000-protos.h: Likewise.
2590
2591 2005-11-22  Eric Botcazou  <ebotcazou@adacore.com>
2592
2593         PR middle-end/22561
2594         * tree-ssa-structalias.c (get_constraint_for): Handle ARRAY_RANGE_REF.
2595
2596 2005-11-22  Ian Lance Taylor  <ian@airs.com>
2597
2598         * optabs.c (expand_unop): Call SCALAR_FLOAT_MODE_P on a mode, not
2599         a mode_class.
2600         (prepare_cmp_insn): Likewise.
2601
2602 2005-11-22  Kazu Hirata  <kazu@codesourcery.com>
2603
2604         PR target/23435
2605         * m68k.md (zero_extendsidi2): Force operands[1] to a register
2606         if both operands[0] and operands[1] are memory.
2607
2608 2005-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
2609
2610         PR middle-end/23606
2611         * fold-const.c (fold_unary) <case NOP_EXPR, CONVERT_EXPR>: For
2612         COMPARISON_CLASS_P and an integral types create create a new
2613         expression with the new type and fold that.
2614
2615 2005-11-22  Andrew Pinski  <pinskia@physics.uc.edu>
2616
2617         PR target/24988
2618         * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Remove call
2619         to SUBTARGET_OS_CPP_BUILTINS.
2620
2621 2005-11-22  Richard Earnshaw  <richard.earnshaw@arm.com>
2622
2623         * arm.c (emit_set_insn): New function.
2624         (arm_split_constant): Call it.
2625         (arm_gen_compare_reg, arm_reload_in_hi, arm_reload_out_hi): Likewise.
2626         (arm_legitimize_address): Likewise.  Use plus_constant.
2627         (arm_expand_prologue): Likewise.  Use VOIDmode in SET.
2628         (thumb_expand_prologue): Likewise.
2629         (arm_gen_load_multiple): Use VOIDmode in SET.
2630         (arm_gen_store_multiple): Likewise.
2631         (vfp_emit_fstmx): Likewise.  Use plus_constant.
2632         (emit_multi_reg_push): Likewise.
2633         (emit_sfm): Use plus_constant.
2634
2635 2005-11-23  Alan Modra  <amodra@bigpond.net.au>
2636
2637         PR target/24954
2638         * config/rs6000/predicates.md (easy_vector_constant_add_self): Fix
2639         typo last change.
2640
2641 2005-11-22  Alan Modra  <amodra@bigpond.net.au>
2642
2643         PR middle-end/24950
2644         * expmed.c (store_bit_field): Don't attempt to insv a field
2645         larger than the reg.
2646
2647 2005-11-22  Alan Modra  <amodra@bigpond.net.au>
2648
2649         PR target/24954
2650         * config/rs6000/predicated.md (easy_vector_constant_add_self): Use
2651         explicit sign extension, not a (char) cast.
2652
2653 2005-11-22  Ben Elliston  <bje@au.ibm.com>
2654
2655         * optabs.c: Use SCALAR_FLOAT_MODE_P instead of explicitly testing
2656         GET_MODE_CLASS (x) == MODE_FLOAT.
2657         * config/i386/i386.c: Likewise.
2658         * config/rs6000/xcoff.h: Likewise.
2659         * config/rs6000/linux64.h: Likewise.
2660         * config/rs6000/rs6000.c: Likewise.
2661         * config/rs6000/rs6000.h: Likewise.
2662         * config/rs6000/predicates.md: Likewise.
2663         * config/rs6000/sysv4.h: Likewise.
2664
2665 2005-11-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2666
2667         * c-cppbuiltin.c (c_cpp_builtins): Define __pic__ and __PIC__ when
2668         flag_pic is set.
2669
2670         * config/alpha/freebsd.h, config/alpha/linux.h,
2671         config/arm/linux-elf.h, config/bfin/bfin.h,
2672         config/cris/linux.h, config/darwin.h, config/freebsd-spec.h,
2673         config/i386/beos-elf.h, config/i386/gnu.h,
2674         config/i386/linux.h, config/i386/linux64.h, config/i386/nto.h,
2675         config/i386/sco5.h, config/m32r/m32r.h, config/m68k/linux.h,
2676         config/m68k/m68k.h, config/mips/linux.h, config/pa/pa-linux.h,
2677         config/rs6000/linux64.h, config/rs6000/sysv4.h,
2678         config/rs6000/vxworks.h, config/s390/linux.h, config/s390/tpf.h,
2679         config/sh/linux.h, config/sh/sh.h, config/sol2.h,
2680         config/sparc/linux.h, config/sparc/linux64.h,
2681         config/xtensa/xtensa.h: Don't define __pic__ or __PIC__.
2682
2683         * doc/invoke.texi: Document that the macros __pic__ and __PIC__
2684         are both defined when either flag -fpic or -fPIC are used.
2685
2686 2005-11-22  Joseph S. Myers  <joseph@codesourcery.com>
2687
2688         * config/fp-bit.c (clzusi): New function.
2689         (si_to_float, usi_to_float): Use it to compute proper shift.
2690         (usi_to_float): Preserve guard bits when shifting right.
2691         * libgcc-std.ver (GCC_4.2.0): New version.
2692         * libgcc2.c (__floatundixf, __floatunditf, __floatundidf,
2693         __floatundisf): New functions.
2694         * libgcc2.h (__floatundixf, __floatunditf, __floatundidf,
2695         __floatundisf): Declare.
2696         * mklibgcc.in (lib2funcs): Add _floatundidf, _floatundisf,
2697         _floatundixf, and _floatunditf.
2698         * optabs.c (expand_float): If target does not define a pattern for
2699         signed or unsigned conversion, use an unsigned libcall instead of
2700         a signed one.
2701         (init_optabs): Initialize ufloat_optab.
2702
2703 2005-11-22  Joseph S. Myers  <joseph@codesourcery.com>
2704
2705         * config/rs6000/rs6000.opt (mmulhw): New option.
2706         * doc/invoke.texi (-mmulhw): Document.
2707         * config/rs6000/rs6000.c (rs6000_override_options): Enable -mmulhw
2708         for 405 and 440.
2709         * config/rs6000/rs6000.md: Add half-word multiply and
2710         multiply-accumulate instructions for 405 and 440.
2711
2712 2005-11-21  Joel Sherrill <joel.sherrill@oarcorp.com>
2713
2714         * config/arm/rtems-elf.h: Added definition of LINK_GCC_C_SEQUENCE_SPEC
2715         which matches behavior of gcc 4.0 and older for RTEMS targets.  The
2716         default now includes a linker group which makes the RTEMS one nest.
2717
2718 2005-11-22  Ben Elliston  <bje@au.ibm.com>
2719
2720         * cse.c (fold_rtx): Typo fix.
2721         (find_comparison_args): Pass the mode of arg1, not arg1 itself.
2722
2723 2005-11-21  Richard Henderson  <rth@redhat.com>
2724
2725         * c-common.c, config/darwin-c.c, c-decl.c, c-tree.h, c-objc-common.h,
2726         langhooks-def.h, langhooks.h: Revert 2005-11-18 lookup_name patch.
2727
2728         * c-tree.h (lookup_name): Move declaration ...
2729         * c-common.h (lookup_name): ... here.
2730         * config/darwin-c.c: Include c-common.h.
2731         * config/t-darwin: Update dependencies.
2732
2733 2005-11-22  Ben Elliston  <bje@au.ibm.com>
2734
2735         * optabs.c (expand_abs_nojump): Use SCALAR_FLOAT_MODE_P instead of
2736         explicitly testing GET_MODE_CLASS (x) == MODE_FLOAT.
2737         * genopinit.c (gen_insn): Likewise.
2738         * reload.c (find_equiv_reg): Likewise.
2739         * loop.c (load_mems): Likewise.
2740         * rtlanal.c (may_trap_p_1, canonicalize_condition): Likewise.
2741         * cse.c (find_comparison_args, fold_rtx): Likewise.
2742         * dwarf2out.c (add_const_value_attribute): Likewise.
2743         * expr.c (convert_move): Likewise.
2744         * recog.c (general_operand, register_operand): Likewise.
2745         * reg-stack.c (replace_reg): Likewise.
2746         * tree-vect-generic.c (type_for_widest_vector_mode): Likewise.
2747         * c-common.c (handle_vector_size_attribute): Likewise.
2748         * simplify-rtx.c (simplify_const_unary_operation): Likewise.
2749         (simplify_binary_operation_1): Likewise.
2750         (simplify_const_binary_operation): Likewise.
2751         (simplify_relational_operation): Likewise.
2752         (simplify_const_relational_operation): Likewise.
2753         (simplify_immed_subreg): Likewise.
2754         * emit-rtl.c (gen_lowpart_common): Likewise.
2755         * expmed.c (expand_mult): Likewise.
2756         * stor-layout.c (layout_type): Likewise.
2757
2758 2005-11-21  Paolo Bonzini  <bonzini@gnu.org>
2759
2760         PR target/24951
2761         * config/rs6000/rs6000.c (output_vec_const_move): Load cst and
2762         cst2 only for SPE vectors.
2763
2764 2005-11-21  David Edelsohn  <edelsohn@gnu.org>
2765
2766         PR target/24953
2767         * config/rs6000/predicates.md (vrsave_operation): Check
2768         UNSPEC_VOLATILE value.
2769
2770 2005-11-21  Jan Hubicka  <jh@suse.cz>
2771
2772         PR tree-optimization/24653
2773         * tree-ssa-ccp.c (ccp_fold): Strip down useless conversions.
2774
2775 2005-11-21  Uros Bizjak  <uros@kss-loka.si>
2776
2777         * config/i386/predicates.md (ax_reg_operand): New predicate.
2778         (memory_displacement_only_operand): New predicate.
2779         * config/i386/i386.md ("modrm" attribute): Return 0 if one
2780         operand is AX register and the other operand is memory operand
2781         with displacement only.
2782
2783 2005-11-21  Uros Bizjak  <uros@kss-loka.si>
2784
2785         * fold-const.c (fold_binary) <RDIV_EXPR>: Optimize A / A to 1.0
2786         if we don't care about NaNs or Infinities.
2787
2788 2005-11-20  Ian Lance Taylor  <ian@airs.com>
2789
2790         PR rtl-optimization/24883
2791         * combine.c (combinable_i3pat): When checking whether the
2792         destination of i3 is used in i3, consider paradoxical subregs.
2793
2794 2005-11-21  Kazu Hirata  <kazu@codesourcery.com>
2795
2796         PR middle-end/20583
2797         * cse.c (cse_insn): Reject invalid forms of CONST earlier.
2798
2799 2005-11-20  Joseph S. Myers  <joseph@codesourcery.com>
2800
2801         * combine.c (try_combine): Do not run subst on i1src and i2src in
2802         the case of generating a PARALLEL for a comparison.
2803
2804 2005-11-20  Richard Henderson  <rth@redhat.com>
2805
2806         PR 24931
2807         * tree-sra.c (struct sra_elt): Add all_no_warning.
2808         (struct sra_walk_fns) <use>: Add use_all argument.
2809         (sra_walk_expr): Pass it.
2810         (sra_walk_modify_expr): Likewise.
2811         (scalarize_ldst): Likewise.
2812         (scan_use): Update for new argument.
2813         (mark_no_warning): New.
2814         (scalarize_use): Use it.
2815
2816 2005-11-20  Bernd Schmidt  <bernd.schmidt@analog.com>
2817
2818         * expr.c (expand_expr_real): Use usmul_optab for widening
2819         signed * unsigned multiplies.
2820         * genopinit.c (optabs): Add usmul_widen_optab.
2821         * optabs.c (init_optabs): Likewise.
2822         * optabs.h (enum optab_index): Add OTI_usmul_widen.
2823         (usmul_widen_optab): Define.
2824         * config/bfin/bfin.md (usmulhisi3): New pattern.
2825
2826         * doc/md.texi (usmulqihi3, usmulhisi3, usmulsidi3): Document.
2827
2828 2005-11-20  Graham Stott <btinternet.com>
2829
2830         * gensupport.c (std_preds): Fixed extraneous `false` in last change.
2831
2832 2005-11-20  Andreas Schwab  <schwab@suse.de>
2833
2834         PR target/24757
2835         * config/ia64/ia64.c (ia64_expand_atomic_op): Fix condition of cmp
2836         insn.
2837
2838 2005-11-19  Richard Henderson  <rth@redhat.com>
2839
2840         PR tree-opt/24665
2841         * tree-gimple.c (is_gimple_id): Export.
2842         * tree-gimple.h (is_gimple_id): Declare.
2843         * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): New.
2844         (get_default_value): Use it.
2845         (maybe_fold_stmt_indirect): Likewise.
2846
2847 2005-11-19  James A. Morrison  <phython@gcc.gnu.org>
2848
2849         * tree-vrp.c (compare_ranges): Return false for EQ_EXPR if VR0 is less
2850         than VR1 or vice-versa.
2851
2852 2005-11-19  Hans-Peter Nilsson  <hp@axis.com>
2853
2854         PR middle-end/24912
2855         PR middle-end/24750
2856         * reload.c (find_reloads_address_1): Mention dependency on
2857         gen_reload.
2858         * reload1.c (gen_reload): For IN with an unary operation, try
2859         moving inner expression to OUT if trivial SET is not valid.
2860         Confirm that the result is valid.  Move common code block into...
2861         (emit_insn_if_valid_for_reload): New function.
2862
2863 2005-11-19  Richard Guenther  <rguenther@suse.de>
2864
2865         * fold-const.c (fold_indirect_ref_1): Make sure we fold
2866         ARRAY_REFs of constant strings.
2867
2868 2005-11-19  Jakub Jelinek  <jakub@redhat.com>
2869
2870         * gcc.c (version_compare_spec_function): Use '%s' rather than %qs in
2871         fatal format string.
2872
2873 2005-11-19  Joseph S. Myers  <joseph@codesourcery.com>
2874
2875         * combine.c (make_compound_operation): Swap operands of
2876         commutative operation if necessary before returning.
2877
2878 2005-11-19  Richard Guenther  <rguenther@suse.de>
2879
2880         PR middle-end/23294
2881         * fold-const.c (fold_plusminus_mult_expr): New function.
2882         (fold_binary): Use to canonicalize PLUS_EXPR and MINUS_EXPR
2883         cases, remove now unnecessary code.
2884
2885 2005-11-19  Paolo Bonzini  <bonzini@gcc.gnu.org>
2886
2887         * gensupport.c (old_preds): Rename to std_preds, add special field.
2888         (struct old_pred_table): Rename to struct std_pred_table, add special
2889         field.
2890         (NUM_KNOWN_OLD_PREDS): Rename to NUM_KNOWN_STD_PREDS.
2891         (NUM_OLD_SPECIAL_MODE_PREDS): Remove.
2892         (init_predicate_table): Adjust, and set along the way whether a
2893         predicate is special.
2894
2895 2005-11-18  Mark Mitchell  <mark@codesourcery.com>
2896
2897         * BASE-VER: Change to 4.2.0.
2898
2899 2005-11-18  James E Wilson  <wilson@specifix.com>
2900
2901         * builtins.c (fold_builtin_strstr): Pass s1 through fold_convert before
2902         returning it.
2903
2904 2005-11-18  Mike Stump  <mrs@apple.com>
2905
2906         * c-common.c (handle_cleanup_attribute): Use a lang hook for lookup_name.
2907         * config/darwin-c.c (darwin_pragma_unused): Likewise.
2908         * c-decl.c (lookup_name_two) Remove.
2909         * c-tree.h (lookup_name_two): Remove.
2910         * c-objc-common.h (LANG_HOOKS_LOOKUP_NAME): Add.
2911         * langhooks-def.h (LANG_HOOKS_LOOKUP_NAME): Add.
2912         (LANG_HOOKS_DECLS): Add initializer for LANG_HOOKS_LOOKUP_NAME.
2913         * langhooks.h (lang_hooks_for_decls): Add lookup_name.
2914
2915 2005-11-18  Richard Earnshaw  <richard.earnshaw@arm.com>
2916
2917         PR target/24914
2918         * arm.c (arm_hard_regno_mode_ok): Co-processor registers aren't ok
2919         when not generating code to use that co-processor.
2920
2921 2005-11-18  James A. Morrison  <phython@gcc.gnu.org>
2922
2923         * tree-flow.h (reserve_phi_args_for_new_edge, create_phi_node,
2924         add_phi_arg, remove_phi_args, remove_phi_node phi_reverse): Mention that
2925         these functions are now in tree-phinodes.c.
2926
2927 2005-11-18  Jie Zhang  <jie.zhang@analog.com>
2928
2929         * config/bfin/bfin.md (trap): New pattern.
2930
2931 2005-11-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2932
2933         * tree-ssa-dom.c (extract_range_from_cond): Deal with variable bounds
2934         on types.
2935
2936         * expr.c (expand_expr_real): Don't call record_block_change unless
2937         ib_boundaries_block is non-null
2938
2939         * postreload.c (reload_cse_move2add): Don't try to work with BImode.
2940
2941         * fold-const.c (build_range_check): Use proper type for subtraction
2942         when merging lower bound.
2943
2944 2005-11-18  Zdenek Dvorak  <dvorakz@suse.cz>
2945
2946         PR rtl-optimization/24497
2947         * loop-unroll.c (apply_opt_in_copies): Do not verify equality of
2948         the copied insn.
2949
2950 2005-11-18  Zdenek Dvorak  <dvorakz@suse.cz>
2951
2952         * tree-scalar-evolution.c (expression_expensive_p): New function.
2953         (scev_const_prop): Use compute_overall_effect_of_inner_loop.
2954
2955 2005-11-18  Bernd Schmidt  <bernd.schmidt@analog.com>
2956
2957         * config/bfin/crtlibid.s: New file.
2958
2959 2005-11-17  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2960
2961         PR target/24348
2962         * config.gcc (hppa*-*-hpux*): Add pa/t-slibgcc-elf-ver to tmake config
2963         when not using sjlj exceptions.
2964         * config/pa/pa64-hpux.h (LIB_SPEC): Add -lpthread in static links.
2965         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
2966         * config/pa/som.h (ASM_PREFERRED_EH_DATA_FORMAT): Delete define.
2967         * config/pa/linux-unwind.h (pa32_fallback_frame_state): Use
2968         DWARF_ALT_FRAME_RETURN_COLUMN instead of column 0 as return column.
2969         * config/pa/pa-hpux.h (MD_UNWIND_SUPPORT): New define.
2970         * config/pa/pa-linux.h (INCOMING_RETURN_ADDR_RTX,
2971         DWARF_FRAME_RETURN_COLUMN, ASM_PREFERRED_EH_DATA_FORMAT,
2972         ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Delete defines.
2973         * config/pa/pa.h (ARG_POINTER_CFA_OFFSET): Delete.
2974         (FRAME_POINTER_CFA_OFFSET, INCOMING_RETURN_ADDR_RTX,
2975         DWARF_FRAME_RETURN_COLUMN, DWARF_ALT_FRAME_RETURN_COLUMN,
2976         ASM_PREFERRED_EH_DATA_FORMAT, ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): New
2977         defines.
2978         * config/pa/hpux-unwind.h: New file.
2979
2980 2005-11-17  Alexandre Oliva  <aoliva@redhat.com>
2981
2982         * config/rs6000/rs6000.h (ASM_OUTPUT_WEAKREF): Define.
2983         * defaults.h (ASM_OUTPUT_WEAKREF): Add decl argument.
2984         * varasm.c (do_assemble_alias): Adjust call.
2985         (weak_finish): Don't use ASM_WEAKEN_LABEL if ASM_WEAKEN_DECL
2986         is defined.
2987         * doc/tm.texi (ASM_OUTPUT_WEAKREF): Document it.
2988
2989 2005-11-17  James E Wilson  <wilson@specifix.com>
2990
2991         * tree.def (FUNCTION_DECL): Correct typo in comment.
2992
2993 2005-11-17  Richard Henderson  <rth@redhat.com>
2994
2995         * dwarf2out.c (dw_cfi_oprnd_struct): Reduce dw_cfi_reg_num to int.
2996         (lookup_cfa_1): Apply data alignment to DW_CFA_def_cfa_offset_sf
2997         and DW_CFA_def_cfa_sf.
2998         (def_cfa_1): Use DW_CFA_def_cfa_offset_sf with negative values.
2999         (dbx_reg_number): Don't assert particular registers here.
3000         (based_loc_descr): ... do it here instead.  Fold in ...
3001         (eliminate_reg_to_offset): ... this function.
3002         (compute_frame_pointer_to_cfa_displacement): Fold in the effects
3003         of eliminate_reg_to_offset; use FRAME_POINTER_CFA_OFFSET.
3004         * unwind-dw2.c (execute_cfa_program): Apply data align factor
3005         to DW_CFA_def_cfa_offset_sf and DW_CFA_def_cfa_sf.
3006         * function.c (instantiate_new_reg): Use FRAME_POINTER_CFA_OFFSET.
3007         (instantiate_virtual_regs): Likewise.
3008         * var-tracking.c (adjust_stack_reference): Likewise.
3009         * doc/tm.texi (FRAME_POINTER_CFA_OFFSET): New.
3010
3011 2005-11-17  Bernd Schmidt  <bernd.schmidt@analog.com>
3012
3013         * config/bfin/elf.h (STARTFILE_SPEC): Add "crtlibid%O%s"
3014         * config/bfin/uclinux.h (STARFILE_SPEC): Likewise.
3015         * config/bfin/t-bfin-elf (EXTRA_PARTS, EXTRA_MULTILIB_PARTS): Add
3016         crtlibid.o.
3017         ($(T)crtlibid.o): New rule.
3018
3019 2005-11-16  Richard Guenther  <rguenther@suse.de>
3020
3021         PR middle-end/24851
3022         * fold-const.c (extract_array_ref): Return byte offset
3023         in all cases.
3024         (fold_binary): Fold &x[a] CMP &x[b] to
3025         a*sizeof(*x) CMP b*sizeof(*x) to get correct overflow
3026         behavior.
3027
3028 2005-11-16  Richard Henderson  <rth@redhat.com>
3029
3030         PR middle-end/23497
3031         * tree-ssa.c (warn_uninitialized_var): Skip real and imaginary
3032         parts of an SSA_NAME.
3033
3034 2005-11-16  Richard Earnshaw  <richard.earnshaw@arm.com>
3035
3036         PR target/24861
3037         * arm.md (split for movsf with immediate): Restrict split to insns
3038         that set a general register.
3039
3040 2005-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
3041
3042         * config/ia64/unwind-ia64.c (uw_advance_context): New.  Call
3043         uw_update_context.
3044         * unwind-dw2.c (uw_advance_context): Likewise.
3045         * unwind-sjlj.c (uw_advance_context): Likewise.  Also call
3046         _Unwind_SjLj_Unregister.
3047         * unwind.inc (_Unwind_ForcedUnwind_Phase2): Call uw_advance_context.
3048
3049 2005-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
3050
3051         * unwind-sjlj.c (_Unwind_GetCFA): Handle the builtin_setjmp case.
3052
3053 2005-11-16  Eric Botcazou  <ebotcazou@adacore.com>
3054
3055         * config/alpha/alpha.c (alpha_init_builtins): Use type_for_mode
3056         langhook to get a DImode integer type.
3057
3058 2005-11-16  Richard Henderson  <rth@redhat.com>
3059             J"orn Rennecke <joern.rennecke@st.com>
3060             Ulrich Weigand  <uweigand@de.ibm.com>
3061
3062         PR rtl-opt/24160
3063         PR target/24621
3064         * reload1.c (reg_equiv_invariant): New.
3065         (reload): Allocate, initialize, and free it.
3066         (calculate_needs_all_insns): Check it when skipping equivalence
3067         setting insns.
3068         (alter_reg): Likewise.
3069         (eliminate_regs_1): Rename from eliminate_regs.  Add new
3070         may_use_invariant argument; only use reg_equiv_invariant when true.
3071         (eliminate_regs): New.
3072         (eliminate_regs_in_insn): Use eliminate_regs_1; track when we're in
3073         a context for which may_use_invariant may be true.
3074
3075 2005-11-16  Eric Botcazou  <ebotcazou@adacore.com>
3076
3077         * fold-const.c (const_binop): Don't constant fold the operation
3078         if the result has overflowed and flag_trapping_math.
3079         * simplify-rtx.c (simplify_const_binary_operation): Likewise.
3080
3081 2005-11-16  Daniel Jacobowitz  <dan@codesourcery.com>
3082
3083         * config/arm/unwind-arm.c (abort): Add prototype here.
3084         (UCB_FORCED_STOP_ARG): Correct typo in macro argument.
3085         (struct phase1_vrs): Add prev_sp.
3086         (unwind_phase2_forced): Save the original core registers instead of
3087         modifying entry_vrs.  Take a new flag argument for resuming unwinding
3088         and set action flags accordingly.  Always set _US_END_OF_STACK when
3089         get_eit_entry fails.  Unwind before calling the stop function.
3090         (_Unwind_GetCFA): New function.
3091         (__gnu_Unwind_ForcedUnwind): Update call to unwind_phase2_forced.
3092         (__gnu_Unwind_Resume_or_Rethrow): Likewise.
3093         (__gnu_Unwind_Resume): Do not unwind here for forced unwinding;
3094         just call unwind_phase2_forced.
3095         (_Unwind_GetDataRelBase, _Unwind_GetTextRelBase): Move to here.
3096         * config/arm/unwind-arm.h (abort): Remove prototype.
3097         (_Unwind_GetDataRelBase, _Unwind_GetTextRelBase): Change to
3098         prototypes.
3099         (_Unwind_GetCFA): New prototype.
3100         * config/arm/pr-support.c (abort): Add prototype here.
3101         * unwind-c.c (PERSONALITY_FUNCTION) [__ARM_EABI_UNWINDER__]: Handle
3102         forced unwinding.
3103         * config/arm/arm.c (arm_expand_prologue, thumb_expand_prologue): Do
3104         not schedule the prologue with non-call exceptions and EABI.
3105
3106 2005-11-16  Nathan Sidwell  <nathan@codesourcery.com>
3107
3108         * config/arm/unwind-arm.h: Reorder interface function declarations.
3109         (_URC_END_OF_STACK): New enumeration value.
3110         (_US_UNWIND_ACTION_MASK, _US_FORCE_UNWIND, _US_END_OF_STACK): Likewise.
3111         (struct _Unwind_Control_Block): Document reserved field use.
3112         (_Unwind_Stop_Fn): New typedef.
3113         (_Unwind_ForcedUnwind): Declare.
3114         (_Unwind_Resume_or_Rethrow): Declare.
3115         * gcc/config/arm/libunwind.S (UNWIND_WRAPER): Add nargs
3116         argument.  Adjust.
3117         (_Unwind_Resume_or_Rethrow, _Unwind_ForcedUnwind): New.
3118         * config/arm/unwind-arm.c (UCB_FORCED_STOP_FN)
3119         (UCB_FORCED_STOP_ARG): New.
3120         (search_EIT_table): Update boundary condition checks.
3121         (get_eit_entry): Return _URC_END_OF_STACK when cannot unwind.
3122         (unwind_phase2): Replace for with do..while.
3123         (unwind_phase2_forced): New.
3124         (__gnu_Unwind_RaiseException): Replace for with do..while.
3125         (__gnu_Unwind_ForcedUnwind): New.
3126         (__gnu_Unwind_Resume): Set FORCE_UNWIND flag, if forced unwinding.
3127         Use appropriate phase2 unwinder.
3128         (__gnu_Unwind_Resume_or_Rethrow): New.
3129         (__gnu_unwind_pr_common): Cope with forced unwinding.
3130
3131 2005-11-16  David Edelsohn  <edelsohn@gnu.org>
3132
3133         PR target/24772
3134         * config/rs6000/predicates.md (vrsave_operation): SET_SRC is a VEC.
3135
3136         * config/rs6000/rs6000.md (btruncsf2, ceilsf2, floorsf2,
3137         roundsf2): Remove "s" from mnemonic.
3138
3139 2005-11-16  Bernd Schmidt  <bernd.schmidt@analog.com>
3140
3141         * config/bfin/crti.s (__init, __fini): Use appropriate prologue if
3142         __PIC__ is defined.
3143         * config/bfin/crtn.s: Change epilogues to match.
3144         * config/bfin/t-bfin-elf (EXTRA_MULTILIB_PARTS): Define.
3145         * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): If flag_pic, define
3146         __PIC__ and __pic__.
3147
3148 2005-11-16  Tobias Schl"uter  <tobias.schlueter@physik.uni-muenchen.de>
3149
3150         PR 24357
3151         * doc/invoke.texi: Distinguish between free and fixed form instead of
3152         Fortran and Fortran 90/95.  Remove ratfor from the list of supported
3153         languages.
3154         * gcc.c (default_compilers): Remove double entries, add entries for
3155         suffixes '.F90' and '.F95'.
3156
3157 2005-11-16  Eric Botcazou <ebotcazou@adacore.com>
3158
3159         * config/alpha/alpha.c (alpha_expand_prologue): Fix off-by-one bug
3160         in the stack probing loop.
3161
3162 2005-11-15  David Edelsohn  <edelsohn@gnu.org>
3163
3164         * configure.ac: Use .machine power5 not power5x.
3165         * configure: Regenerate.
3166
3167 2005-11-15  Mike Stump  <mrs@apple.com>
3168
3169         * c-decl.c (lookup_name_two): Add.
3170         * c-tree.h (lookup_name_two): Likewise.
3171         * c-common.c (handle_cleanup_attribute): Use lookup_name_two instead.
3172         * config/darwin-c.c (darwin_pragma_unused): Likewise.
3173
3174 2005-11-16  Alan Modra  <amodra@bigpond.net.au>
3175
3176         PR rtl-optimization/23392
3177         * regrename.c (enum scan_actions) Add mark_access.
3178         (scan_actions_name): Ditto.
3179         (scan_rtx_reg): Handle mark_access.
3180         (scan_rtx_address): Do nothing for mark_access.
3181         (build_def_use): Mark source registers in REG_FRAME_RELATED_EXPR
3182         and regs in REG_INC notes before closing chains for dead regs.
3183         Mark destination regs in REG_FRAME_RELATED_EXPR notes after
3184         opening chains for new writes.
3185
3186 2005-11-15  David Edelsohn  <edelsohn@gnu.org>
3187
3188         * c.opt (ffixed-line-length-none): New.
3189
3190 2005-11-15  Steve Ellcey  <sje@cup.hp.com>
3191
3192         * mklibgcc.in: Change contents of eh_dummy.c.
3193
3194 2005-11-15  Daniel Jacobowitz  <dan@codesourcery.com>
3195
3196         * loop.c (scan_loop): Do not insert temporaries for hard registers.
3197
3198 2005-11-15  Daniel Jacobowitz  <dan@codesourcery.com>
3199
3200         * config/arm/lib1funcs.asm (div0) [L_dvmd_lnx]: Call raise instead
3201         of making syscalls.
3202         * config/arm/linux-eabi.h (CLEAR_INSN_CACHE): Define.  Set r7 also.
3203
3204 2005-11-15  Jan Hubicka  <jh@suse.cz>
3205
3206         * invoke.texi (large-unit-insns): Document.
3207         * ipa-inline.c (cgraph_decide_inlining): Use large-unit-insns param.
3208         * params.def (large-unit-insns): New param.
3209
3210 2005-11-15  Hans-Peter Nilsson  <hp@axis.com>
3211
3212         PR target/24869
3213         * config/cris/cris.md ("*mov_sidesisf_mem"): Do not match
3214         special register for operand 3.  Reindent constraints to align
3215         them vertically.
3216
3217 2005-11-14  David Edelsohn  <edelsohn@gnu.org>
3218
3219         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mmfcrf,
3220         -mpopcntb, -mfprnd. Add -mcpu=power5+.
3221         * configure.ac: Add test for FP rounding instructions.
3222         * configure: Regenerate.
3223         * config.in: Regenerate.
3224         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
3225         _ARCH_PPCSQ, _ARCH_PPCGR, _ARCH_PWR4, _ARCH_PWR5, _ARCH_PWR5X if
3226         features enabled.
3227         * config/rs6000/rs6000.opt (mfprnd): New.
3228         * config/rs6000/rs6000.c (processor_target_table): Add power5+.
3229         (POWERPC_MASKS): Add MASK_POPCNTB and MASK_FPRND.
3230         * config/rs6000/aix52.h (ASM_CPU_SPEC): Add -mpower5+.
3231         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mpower5+.
3232         (TARGET_FPRND): New.
3233         * config/rs6000/rs6000.md (UNSPEC_FRIM, UNSPEC_FRIN, UNSPEC_FRIP,
3234         UNSPEC_FRIZ): New.
3235         (btrunc<mode>2): New.
3236         (ceil<mode>2): New.
3237         (floor<mode>2): New.
3238         (round<mode>2): New.
3239
3240 2005-11-14  Geoffrey Keating  <geoffk@apple.com>
3241
3242         * gcc.c (version_compare_spec_function): Use fatal() rather than
3243         abort().
3244
3245         * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): New.
3246         (SUBTARGET_EXTRA_SPECS): Define %(darwin_crt2).
3247         * config/i386/darwin.h (SUBTARGET_EXTRA_SPECS): Define %(darwin_crt2)
3248         as empty.
3249         * config/darwin.h (STARTFILE_SPEC): Use %(darwin_crt2) to possibly
3250         link in crt2.o.
3251
3252         * config/darwin.h (REAL_LIBGCC_SPEC): Link in shared libgcc depending
3253         on -mmacosx-version-min setting.
3254
3255 2005-11-14  Diego Novillo  <dnovillo@redhat.com>
3256
3257         PR 24840
3258         * tree-vrp.c (infer_value_range): Return false if STMT is a
3259         block terminator and its basic block has no successors.
3260
3261 2005-11-14  Mike Stump  <mrs@apple.com>
3262
3263         * config/i386/i386.c (override_options): -masm=intel isn't
3264         supported on darwin.
3265         * doc/invoke.texi (i386 and x86-64 Options): Likewise.
3266
3267 2005-11-15  Joseph S. Myers  <joseph@codesourcery.com>
3268
3269         * crtstuff.c: Undefine gid_t, pid_t, rlim_t, ssize_t, uid_t and
3270         vfork after including auto-host.h.
3271
3272 2005-11-15  Alan Modra  <amodra@bigpond.net.au>
3273
3274         PR rtl-optimization/22002
3275         * combine.c (distribute_notes): Detect cases where a reg dies
3276         two or more times in a bb, including on the insn we are combining,
3277         and place the death note on the correct range.
3278
3279 2005-11-14  Dale Johannesen  <dalej@apple.com>
3280
3281         * expmed.c (store_bit_field):  Add offset unconditionally for
3282         memory targets.
3283         (extract_bit_field):  Don't force extzv or extv operand into
3284         a register if field is too big.
3285
3286 2005-11-14  Daniel Jacobowitz  <dan@codesourcery.com>
3287
3288         * config/arm/arm.c (pic_labelno): New.
3289         (arm_load_pic_register): Use an UNSPEC_PIC_LABEL instead of a
3290         LABEL_REF.  Pass only the labelno to PIC insns.
3291         (arm_call_tls_get_addr, legitimize_tls_address): Likewise.
3292         (arm_output_addr_const_extra): Handle UNSPEC_PIC_LABEL.
3293         * arm.md (UNSPEC_PIC_LABEL): New constant.
3294         (pic_add_dot_plus_four, pic_add_dot_plus_eight)
3295         (tls_load_dot_plus_eight): Expect a labelno instead of a LABEL_REF.
3296         Use the correct label prefix.
3297
3298 2005-11-14  Daniel Jacobowitz  <dan@codesourcery.com>
3299
3300         * config/arm/arm.c (legitimize_tls_address): Use correct rtx for
3301         REQ_EQUIV note.
3302
3303 2005-11-14  Richard Earnshaw  <richard.earnshaw@arm.com>
3304
3305         * loop-invariant.c: Include tm_p.h.
3306         * Makefile.in: Updated.
3307
3308 2005-11-13  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
3309
3310         * pa.c (store_reg): Revise generation of frame notes in large frames.
3311         (set_reg_plus_d): Likewise.
3312
3313 2005-11-13  Andrew MacLeod  <amacleod@redhat.com>
3314
3315         PR tree-optimization/24709
3316         * tree-ssa-operands.c (verify_imm_links): Increase limit for infinite
3317         loop check.
3318
3319 2005-11-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
3320
3321         * gthr-posix95.h: Remove declaration of pthread_mutexattr_settype
3322         and duplicate declaration of pthread_self.
3323
3324 2005-11-13  Eric Botcazou  <ebotcazou@adacore.com>
3325             Ian Lance Taylor  <ian@airs.com>
3326
3327         PR middle-end/24003
3328         * calls.c (expand_call): If TARGET is a MEM and some part of the
3329         argument area has been saved, force TARGET to a register.
3330
3331 2005-11-13  Razya Ladelsky <razya@il.ibm.com>
3332
3333         * ipa-prop.c (ipa_callsite_compute_param ): Removed obsolete type
3334         checking.
3335
3336 2005-11-13  Jason Merrill  <jason@redhat.com>
3337
3338         PR c++/22489
3339         * dwarf2out.c (gen_subprogram_die): Force a declaration die for
3340         lazily declared methods.
3341         (force_decl_die): Stop if forcing out the context already make a
3342         DIE for the decl.
3343         (force_type_die): Likewise.
3344
3345 2005-11-13  Andrew Pinski  <pinskia@physics.uc.edu>
3346
3347         PR middle-end/24820
3348         * builtins.c (integer_valued_real_p): Add break in
3349         REAL_CST having TREE_OVERFLOW set.
3350
3351 2005-11-13  Zdenek Dvorak  <dvorakz@suse.cz>
3352
3353         * tree-ssa-loop-ivopts.c (get_address_cost): Prevent splitting
3354         addressing modes during calculation of costs.
3355
3356 2005-11-12  Eric Botcazou  <ebotcazou@adacore.com>
3357
3358         * function.c (assign_stack_local_1): Restrict sanity check
3359         on frame size overflow to 32-bit and above platforms.
3360
3361 2005-11-12  Hans-Peter Nilsson  <hp@axis.com>
3362
3363         * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Define.
3364         * config/cris/cris.c: Include reload.h.
3365         (cris_initial_elimination_offset): New function.
3366         * config/cris/cris-protos.h: (cris_initial_elimination_offset):
3367         Prototype.
3368
3369 2005-11-12  Richard Guenther  <rguenther@suse.de>
3370
3371         * gcse.c (find_rtx_in_ldst): Handle NULL pre_ldst_table.
3372
3373 2005-11-12  Jan Hubicka  <jh@suse.cz>
3374
3375         * expr.c (expand_expr_real_1): <MAX_EXPR, MIN_EXPR>: Canonicalize
3376         to compare against 0 when possible.
3377
3378 2005-11-12  Jie Zhang  <jie.zhang@analog.com>
3379
3380         * config/bfin/bfin.h (REGISTER_NAMES, SHORT_REGISTER_NAMES,
3381         HIGH_REGISTER_NAMES, FIXED_REGISTERS, CALL_USED_REGISTERS,
3382         REG_ALLOC_ORDER, enum reg_class): Rearrange I/B/L registers.
3383         * config/bfin/bfin.md: Redefine REG_ constants for I/B/L registers
3384         in the new order.
3385
3386 2005-11-12  Hans-Peter Nilsson  <hp@axis.com>
3387
3388         * recog.c (constrain_operands) <case 'g'>: For a match, require
3389         that a non-register matches general_operand when strict >= 0.
3390
3391 2005-11-11  Steven Bosscher  <stevenb@suse.de>
3392
3393         * loop-invariant.c (move_loop_invariants): Fix a thinko in the
3394         previous checkin.
3395
3396 2005-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
3397
3398         * tree-ssa-dse.c (struct address_walk_data, memory_ssa_name_same)
3399         (memory_address_same): New.
3400         (dse_optimize_stmt): Call memory_address_same.
3401
3402 2005-11-12  Hans-Peter Nilsson  <hp@axis.com>
3403
3404         PR middle-end/24750
3405         * reload.c (find_reloads_address_1) <case TRUNCATE, SIGN_EXTEND,
3406         ZERO_EXTEND>: New cases.
3407
3408 2005-11-11  Daniel Jacobowitz  <dan@codesourcery.com>
3409
3410         * longlong.h (__clz_tab): Always provide.
3411
3412 2005-11-11  Steven Bosscher  <stevenb@suse.de>
3413
3414         PR 24265
3415         * loop-invariant.c (may_assign_reg_p): Make sure a hard register
3416         can be assigned to.
3417         (find_invariant_insn): Do the cheapest check, may_assign_reg_p,
3418         before check_maybe_invariant.
3419         (move_invariant_reg): Use gen_move_insn instead of replacing
3420         SET_DEST with the temporary for the invariant.
3421         (move_loop_invariants): If checking is enabled, do internal
3422         consistency checks after completing the pass.
3423
3424 2005-11-11  David Edelsohn  <edelsohn@gnu.org>
3425
3426         PR 24644
3427         * common.opt (Wvolatile-register-var): New.
3428         * varasm.c (make_decl_rtl): Only emit warning when option
3429         specified.  Clarify warning message.
3430         * doc/invoke.texi (Wvolatile-register-var): Document new option.
3431
3432         * doc/md.texi (copysign): Document standard named pattern.
3433
3434 2005-11-11  Jie Zhang  <jie.zhang@analog.com>
3435
3436         * config/bfin/bfin.c (bfin_expand_strmov): Correctly move the trailing
3437         bytes when align is 2.
3438         * config/bfin/bfin.md (rep_movsi, rep_movhi): Make LSETUP be followed
3439         by the first instruction of the loop.
3440
3441 2005-11-11  Jason Merrill  <jason@redhat.com>
3442
3443         PR c++/24686
3444         * gimplify.c (gimplify_cleanup_point_expr): Also save and restore
3445         the cleanup list.
3446
3447 2005-11-11  Zdenek Dvorak  <dvorakz@suse.cz>
3448
3449         PR rtl-optimization/22509
3450         * local-alloc.c (memref_used_between_p): Check whether a function call
3451         could not reference the memref.
3452
3453 2005-11-11  Ulrich Weigand  <uweigand@de.ibm.com>
3454
3455         * postreload.c (reload_cse_simplify_operands): Fix bug in sorting
3456         algorithm so as to choose the best, not the worst, alternative.
3457         Reset accumulated register class before processing next alternative.
3458
3459 2005-11-11  Kaz Kojima  <kkojima@gcc.gnu.org>
3460
3461         PR target/24445
3462         * calls.c (expand_call): Copy a return value to a plain register
3463         if needed.
3464
3465 2005-11-10  Alexandre Oliva  <aoliva@redhat.com>
3466
3467         PR target/24778
3468         * varasm.c (assemble_name): Recompute name only for transparent
3469         aliases.
3470
3471 2005-11-10  Hans-Peter Nilsson  <hp@axis.com>
3472
3473         * tree-ssa-structalias.c (heapvar_lookup): Fix typo: stmt to from.
3474
3475 2005-11-04  Jeff Law  <law@redhat.com>
3476
3477         PR middle-end/23181
3478         * tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Do not
3479         perform reassociation if the parent statement will not die as
3480         a result of the optimization.
3481
3482 2005-11-10  Daniel Berlin  <dberlin@dberlin.org>
3483
3484         * tree-ssa-alias.c (compute_may_aliases): Remove call to
3485         delete_old_heap_vars.
3486         * tree-dfa.c (referenced_var_remove): Remove function.
3487         * tree-ssa.c (init_tree_ssa): Call init_alias_heapvars.
3488         (delete_tree_ssa): Remove call to delete_old_heapvars.
3489         Add call to delete_alias_heapvars.
3490         * tree-flow.h (referenced_var_remove): Remove prototype
3491         (init_alias_heapvars): New prototype.
3492         (delete_alias_heapvars): Ditto.
3493         * Makefile.in (tree-ssa-structalias.o): Add
3494         gt-tree-ssa-structalias.o
3495         (GTFILES): Add tree-ssa-structalias.h and
3496         tree-ssa-structalias.c.
3497         (s-gtype): Add gt-tree-ssa-structalias.h.
3498         * tree-ssa-structalias.c (heapvars): Remove.
3499         (oldheapvars): Remove.
3500         (heapvar_for_stmt): New variable.
3501         (heapvar_lookup): New function.
3502         (heapvar_insert): Ditto.
3503         (get_constraint_for): See if we have an old heapvar
3504         to reuse.
3505         (init_alias_heapvars): New function.
3506         (delete_alias_heapvars): Ditto.
3507         Add include of gt-tree-ssa-structalias.h.
3508
3509 2005-11-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
3510
3511         PR middle-end/22127
3512         * calls.c (special_function_p): Set ECF_RETURNS_TWICE for getcontext.
3513
3514 2005-11-10  Eric Botcazou  <ebotcazou@adacore.com>
3515
3516         * tree.c (int_fits_type_p): Only look at the base type
3517         if it has the same precision as the original type.
3518
3519 2005-11-10  Jakub Jelinek  <jakub@redhat.com>
3520
3521         PR other/4372
3522         * varasm.c (assemble_alias): Use %q+D in the error
3523         message instead of %J and %qD.
3524
3525 2005-11-10  Richard Guenther  <rguenther@suse.de>
3526
3527         * gcse.c (free_ldst_entry): Only free hashtable if
3528         it exists.
3529
3530 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
3531
3532         * function.c (assign_stack_local_1): Issue an error message if
3533         the frame size overflows in the signed target arithmetics.
3534
3535 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
3536
3537         * tree.c (build_qualified_type): Chain the new type to the original
3538         type's TYPE_NEXT_PTR_TO or TYPE_NEXT_REF_TO linked lists if it is
3539         a POINTER_TYPE or a REFERENCE_TYPE respectively.
3540         (build_pointer_type_for_mode): Only return unqualified types.
3541         (build_reference_type_for_mode): Likewise.
3542
3543 2005-11-09  Jakub Jelinek  <jakub@redhat.com>
3544
3545         * Makefile.in (gnucompare): Do comparison of all files using one of
3546         the chosen methods and only afterwards decide if just warning should
3547         be issued or comparison failure raised.
3548
3549 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
3550
3551         * ifcvt.c (noce_get_alt_condition): Use prev_nonnote_insn.
3552         (noce_try_abs): Negate if the comparison is reversed.
3553         Look only one instruction backwards for a REG_EQUAL note.
3554
3555 2005-11-09  Alexandre Oliva  <aoliva@redhat.com>
3556
3557         PR other/4372
3558         * gthr-dce.h, gthr-posix.h, gthr-posix95.h, gthr-solaris.h,
3559         gthr-tpf.h: Define __gthrw.  For all identifiers that might
3560         be weak, introduce weakrefs or non-weak aliases with __gthrw,
3561         and prefix all uses with __ghtrw.
3562
3563 2005-11-09  Alexandre Oliva  <aoliva@redhat.com>
3564
3565         PR other/4372
3566         * tree.h (IDENTIFIER_TRANSPARENT_ALIAS): New.
3567         (TREE_DEPRECATED): Adjust comment.  Check for a DECL.
3568         * c-common.c (handle_weakref_attribute): New.
3569         (c_common_attribute_table): Add weakref.
3570         * configure.ac (HAVE_GAS_WEAKREF): Check for weakref support
3571         in the assembler.
3572         * configure, config.in: Rebuilt.
3573         * defaults.h (ASM_OUTPUT_WEAKREF): Define if HAVE_GAS_WEAKREF.
3574         * doc/extend.texi: Document weakref attribute.
3575         * varasm.c (ultimate_transparent_alias_target): New
3576         (assemble_name): Use it.
3577         (weak_finish_1): Split out of...
3578         (weak_finish): ... and deal with weakrefs in...
3579         (weakref_targets): ... new list.
3580         (globalize_decl): Clean up weakref_targets.
3581         (do_assemble_alias): Handle weakrefs.
3582         (finish_aliases_1): Do not reject weakrefs to external symbols.
3583         (assemble_alias): Handle weakrefs.
3584
3585 2005-11-09  Richard Guenther  <rguenther@suse.de>
3586
3587         PR tree-optimization/24716
3588         * tree-scalar-evolution.c (analyze_evolution_in_loop): Use
3589         t_bool to track results from follow_ssa_edge.
3590
3591 2005-11-09  Eric Botcazou  <ebotcazou@adacore.com>
3592
3593         * final.c (force_source_line): New global variable.
3594         (final_scan_insn): Set it to true instead of clearing last_filename.
3595         (notice_source_line): Return true if force_source_line is true,
3596         unless source info is absent.
3597
3598 2005-11-09  Andrew Pinski  <pinskia@physics.uc.edu>
3599
3600         PR c/24644
3601         * dwarf2-out.c (add_name_and_src_coords_attributes): Don't add
3602         a linkage name for a variable if it a register variable.
3603         * c-decl.c (grokdeclarator): Global register variables
3604         should be set as PUBLIC.
3605
3606 2005-11-09  Andreas Krebbel  <krebbel1@de.ibm.com>
3607
3608         PR 24624
3609         * config/s390/s390.c (struct s390_frame_layout): New fields
3610         first_save_gpr_slot and last_save_gpr_slot.
3611         (cfun_grps_save_area_size, s390_frame_info, s390_emit_prologue,
3612         s390_emit_epilogue, s390_initial_elimination_offset): Replaced
3613         first_save_gpr and last_save_gpr with the _slot variants.
3614         (s390_register_info): Calculate first_save_gpr_slot and
3615         last_save_gpr_slot using regs_ever_live.
3616
3617 2005-11-09  Andreas Krebbel  <krebbel1@de.ibm.com>
3618
3619         PR 24623
3620         * config/s390/s390.c (s390_regs_ever_clobbered): Only save live eh regs
3621         for a function containing a landing pad.
3622
3623 2005-11-09  Andreas Krebbel  <krebbel1@de.ibm.com>
3624
3625         PR 24034
3626         * flow.c (mark_set_1): Handle CLOBBERs like SETs if the register
3627         is live afterwards.
3628
3629 2005-11-08  Bernd Schmidt  <bernd.schmidt@analog.com>
3630
3631         * config/bfin/t-bfin-elf (MULTILIB_OPTIONS, MULTILIB_DEFAULTS,
3632         MULTILIB_DIRNAMES, MULTILIB_EXCEPTIONS): New.
3633
3634 2005-11-09  Nathan Sidwell  <nathan@codesourcery.com>
3635
3636         Add ms2 support
3637         * config/ms1/ms1.md (UNSPEC_BLOCKAGE, UNSPEC_EI, UNSPEC_DI): New
3638         constants.
3639         (call,load,store): New insn types.
3640         (mem_access, branch_access): Adjust reservation conditions.
3641         (define_delay): Adjust condition.
3642         (decrement_and_branch_until_zero): Allow for ms2.  Set branch
3643         type.
3644         (*decrement_and_rbanch_until_zero_no_clobber): Allow for ms2.
3645         (*movqi_internal,*movsi_internal,*movsf_internal): Use load,store
3646         insn type.
3647         (call_internal, call_value_internal, return_internal,
3648         return_interrupt_internal, eh_return_internal, indirect_jump,
3649         tablejump): Set call insn type.
3650         (blockage, ei, di): Use appropriate unspec const.
3651         * config/ms1/ms1.c (ms1_flag_delayed_branch): New.
3652         (ms1_get_attr_type): Adjust to give load & store types.
3653         (ms1_final_prescan_insn): Adjust for new insn types.  Don't look
3654         backwards past a barrier.
3655         (ms1_override_options): Accept ms2 arch.  Copy and reset delayed
3656         branch scheduling.
3657         (struct branch_info, struct label_info): New.
3658         (ms1_labels): New.
3659         (ms1_add_branches, ms1_check_delay_slot, ms1_reorg_hazard): New.
3660         (ms1_machine_reorg): New.
3661         (TARGET_MACHINE_DEPENDENT_REORG): Override.
3662         * config/ms1/crtn.asm: Add nop for ms2 JAL hazard.
3663         * config/ms1/ms1.h (processor_type): Add PROCESSOR_MS2.
3664         (ASM_SPEC, LIB_SPEC, STARTFILE_SPEC, ENDFILE_SPEC): Add ms2.
3665         (TARGET_MS2): New.
3666
3667 2005-11-09  Per Bothner  <per@bothner.com>
3668             Uros Bizjak  <uros@kss-loka.si>
3669
3670         PR c/24101
3671         * toplev.c (process_options): Initialize debug_hooks early
3672         in case lang_hooks.post_options ends up calling a debug_hook.
3673
3674 2005-11-08  Jakub Jelinek  <jakub@redhat.com>
3675
3676         * dwarf2out.c (multiple_reg_loc_descriptor): Don't assume
3677         DBX_REGISTER_NUMBER being contiguous.
3678
3679 2005-11-08  James A. Morrison  <phython@gcc.gnu.org>
3680             Diego Novillo  <dnovillo@redhat.com>
3681
3682         PR 23046
3683         * tree-vrp.c (register_edge_assert_for): Do not register
3684         always-false predicates.
3685
3686 2005-11-08  Devang Patel <dpatel@apple.com>
3687
3688         PR tree-optimization/23115
3689         * tree-if-conv.c (find_phi_replacement_condition): Check domninated_by
3690         relation.
3691
3692 2005-11-08  Joseph S. Myers  <joseph@codesourcery.com>
3693
3694         * config/rs6000/t-fprules (MULTILIB_MATCHES_FLOAT): Include
3695         -mcpu=440.
3696
3697 2005-11-08  Daniel Berlin  <dberlin@dberlin.org>
3698
3699         Fix PR tree-optimization/23382
3700
3701         * tree-ssa-alias.c (compute_may_aliases): Call
3702         delete_old_heap_vars.
3703         * tree-dfa.c (referenced_var_remove): New function.
3704         * tree-ssa.c (delete_tree_ssa): Call delete_old_heap_vars.
3705         * tree-flow.h (referenced_var_remove): Add prototype.
3706         (delete_old_heap_vars): Ditto.
3707         * tree-ssa-structalias.c (heapvars): New variable.
3708         (oldheapvars): Ditto.
3709         (get_constraint_for): Put heap vars on heapvars list.
3710         (delete_old_heap_vars): New function.
3711
3712 2005-11-08  Jason Merrill  <jason@redhat.com>
3713
3714         * tree.h (CALL_FROM_THUNK_P): Add CALL_EXPR_CHECK.
3715
3716 2005-11-08  Uros Bizjak  <uros@kss-loka.si>
3717
3718         PR target/19340
3719         * reg-stack.c (reg_to_stack): Update register liveness also
3720         for flag_sched2_use_traces.
3721
3722 2005-11-08  Alan Modra  <amodra@bigpond.net.au>
3723
3724         PR target/23704
3725         * config/rs6000/rs6000.c (rs6000_handle_option <OPT_m64>): Don't
3726         override prior explicit -mno-powerpc-gfxopt.
3727
3728 2005-11-07  Eric Botcazou  <ebotcazou@adacore.com>
3729
3730         * expmed.c (extract_bit_field): Do not use insv/extv/extzv patterns
3731         if the bitsize is zero.
3732         * doc/md.texi (Standard Pattern Names): Document it.
3733
3734         * config/ia64/ia64.c (ia64_pass_by_reference): Delete.
3735         (TARGET_PASS_BY_REFERENCE): Likewise.
3736
3737 2005-11-07  Ian Lance Taylor  <ian@airs.com>
3738
3739         PR rtl-optimization/24683
3740         * config/i386/i386.c (legitimize_pic_address): If constant operand
3741         to PLUS is too large, put it in a register.
3742
3743 2005-11-07  Jie Zhang  <jie.zhang@analog.com>
3744
3745         * configure.ac: Enable checking assembler dwarf2 support for bfin
3746         target.
3747         * configure: Regenerate.
3748
3749 2005-11-07  Paolo Bonzini  <bonzini@gnu.org>
3750
3751         PR target/24230
3752
3753         * config/rs6000/rs6000.c (easy_vector_splat_const, easy_vector_same,
3754         gen_easy_vector_constant_add_self): Delete.
3755         (vspltis_constant, easy_altivec_constant, gen_easy_altivec_constant):
3756         New.
3757         (output_vec_const_move): Use gen_easy_altivec_constant.
3758         (rs6000_expand_vector_init): Do not emit a set of a VEC_DUPLICATE.
3759         * config/rs6000/predicates.md (easy_vector_constant): Reorganize tests.
3760         (easy_vector_constant_add_self): Rewritten.
3761         * config/rs6000/rs6000-protos.h (easy_vector_splat_const,
3762         easy_vector_same, gen_easy_vector_constant_add_self): Remove prototype.
3763         (easy_altivec_constant, gen_easy_altivec_constant): Add prototype.
3764         * config/rs6000/altivec.md (easy_vector_constant_add_self splitters):
3765         Macroize and adjust for the other changes.
3766
3767 2005-11-07  Paolo Bonzini  <bonzini@gnu.org>
3768
3769         PR c/24599
3770
3771         * c-typeck.c (build_c_cast): Try using a shared constant, and see
3772         if TREE_OVERFLOW or TREE_CONSTANT_OVERFLOW really changed.
3773
3774 2005-11-07  Jakub Jelinek  <jakub@redhat.com>
3775
3776         PR rtl-optimization/23567
3777         * ifcvt.c (noce_mem_write_may_trap_or_fault_p): New function.
3778         (noce_process_if_block): Don't do any optimizations except
3779         if (cond) x = x; if !set_b and write into orig_x may trap
3780         or fault.  Remove the MEM_READONLY_P check.
3781
3782 2005-11-06  Diego Novillo  <dnovillo@redhat.com>
3783
3784         PR 24670
3785         * tree-vrp.c (fix_equivalence_set): New.
3786         (extract_range_from_assert): Call it.
3787
3788 2005-11-05  Ian Lance Taylor  <ian@airs.com>
3789
3790         PR target/22432
3791         * combine.c (apply_distributive_law): Don't distribute across a
3792         vector mode subreg.
3793
3794 2005-11-05  Kazu Hirata  <kazu@codesourcery.com>
3795
3796         * c-typeck.c, config/i386/netware.h, config/m32c/cond.md,
3797         config/ms1/ms1.h, config/rs6000/predicates.md,
3798         config/s390/s390.c, params.def, postreload-gcse.c,
3799         tree-flow-inline.h, tree-ssa-operands.c, tree-vectorizer.c,
3800         tree-vrp.c, tree.c: Fix comment typos.
3801         * doc/invoke.texi: Fix typos.
3802
3803 2005-11-05  Sebastian Pop  <pop@cri.ensmp.fr>
3804
3805         * lambda-code.c (lambda_transform_legal_p): Use DDR_NUM_DIST_VECTS
3806         for testing whether the data_dependence_relation contains distance
3807         vectors.  Iterate over all distance vectors of the ddr.
3808         * lambda.h: Define a vec of lambda_vector pointers.
3809         * tree-data-ref.c (dump_data_dependence_relation,
3810         dump_data_dependence_direction): Iterate over all distance and
3811         direction vectors of the ddr.
3812         (initialize_data_dependence_relation): Initialize DDR_DIR_VECTS and
3813         DDR_DIST_VECTS.
3814         (build_classic_dist_vector, build_classic_dir_vector): Push a set
3815         of distance/direction vectors instead of a single one.
3816         * tree-data-ref.h (dir_vects, dist_vects): Replace dir/dist
3817         lambda_vectors with a vec of lambda_vectors.
3818         (DDR_DIR_VECT, DDR_DIST_VECT): Redefined as operations on vec.
3819         (DDR_DIR_VECTS, DDR_DIST_VECTS, DDR_NUM_DIR_VECTS,
3820         DDR_NUM_DIST_VECTS): New.
3821         * tree-loop-linear.c (gather_interchange_stats): Test for the
3822         existence of distance vectors only after having checked that there
3823         is a dependence.  Iterate over all distance vectors of the ddr.
3824         (linear_transform_loops): Use dump_data_dependence_relation.
3825         * tree-vect-analyze.c (vect_analyze_data_ref_dependence): Test for
3826         distance vectors using DDR_NUM_DIST_VECTS.  Iterate over all the
3827         distance vectors of the ddr.
3828
3829 2005-11-05  Bernd Schmidt  <bernd.schmidt@analog.com>
3830
3831         * config/bfin/bfin.c (n_dregs_to_save, n_pregs_to_save,
3832         expand_prologue_reg_save, expand_epilogue_reg_restore): New argument
3833         IS_INTHANDLER; all callers changed.
3834         (n_regs_saved_by_prologue): Take interrupt handler attributes into
3835         account.
3836         (do_link, do_unlink): New argument ALL; all callers changed.
3837         (expand_interrupt_handler_prologue, expand_interrupt_handler_epilogue):
3838         If function isn't leaf, save and restore all registers.
3839         (bfin_function_ok_for_sibcall): Only true if not an interrupt or
3840         exception handler.
3841
3842 2005-11-05  Jan Hubicka  <jh@suse.cz>
3843
3844         PR rtl-optimization/23490
3845         * doc/invoke.texi (max-predicted-iterations, max-cse-insns,
3846         max-flow-memory-location): Document.
3847         * flow.c: Include params.h
3848         (MAX_MEM_SET_LIST_LEN): Kill.
3849         (add_to_mem_set_list): Use new param.
3850         * cse.c (cse_basic_block): Replace 1000 by new param.
3851         * params.def (PARAM_MAX_PREDICTED_ITERATIONS, PARAM_MAX_CSE_INSNS,
3852         PARAM_MAX_FLOW_MEMORY_LOCATIONS): New.
3853         * predict.c (predict_loops): Use new param.
3854         * predict.def (MAX_PRED_LOOP_ITERATIONS): Remove.
3855
3856         * ipa-inline.c (cgraph_decide_inlining_of_small_function,
3857         cgraph_decide_inlining, cgraph_decide_inlining_incrementally):
3858         Do not hold memory returned by cgraph_node_name across other call.
3859
3860 2005-11-04  Hans-Peter Nilsson  <hp@axis.com>
3861
3862         PR target/23424
3863         * config/cris/predicates.md ("cris_bdap_sign_extend_operand"):
3864         Disable.
3865
3866 2005-11-04  Jeff Law  <law@redhat.com>
3867
3868         PR/21883
3869         * doc/invoke.texi: Document max-jump-thread-duplication-stmts PARAM.
3870         * tree-ssa-dom.c: Include params.h.
3871         (thread_across_edge): If there are too many statements in the
3872         target block, then do not thread through it.
3873         * Makefile.in (tree-ssa-dom.o): Depend on $(PARAMS_H).
3874         * params.def (PARAM_MAX_JUMP_THREAD_DUPLICATION_STMTS): New PARAM.
3875
3876 2005-11-03  Diego Novillo  <dnovillo@redhat.com>
3877
3878         PR 24627
3879         * tree-ssa-dce.c (pass_dce, pass_dce_loop, pass_cd_dce): Use
3880         TODO_update_ssa instead of TODO_update_ssa_no_phi.
3881
3882 2005-11-04  Sebastian Pop  <pop@cri.ensmp.fr>
3883
3884         PR/18595
3885         * tree-scalar-evolution.c (instantiate_parameters_1,
3886         instantiate_parameters, resolve_mixers): Compute the size of an
3887         expression to be instantiated and give up the instantiation if the
3888         size exceeds PARAM_SCEV_MAX_EXPR_SIZE.
3889
3890 2005-11-04  Richard Guenther  <rguenther@suse.de>
3891
3892         * tree-flow.h (ref_contains_indirect_ref): Rename to
3893         array_ref_contains_indirect_ref.
3894         * tree-flow-inline.h (ref_contains_indirect_ref): Likewise.
3895         (array_ref_contains_indirect_ref): Make comment match the code
3896         and vice-versa.
3897         (ref_contains_array_ref): Likewise.
3898         * tree-ssa-structalias.c (find_func_aliases): Remove call to
3899         ref_contains_indirect_ref.
3900         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
3901         Rename calls to ref_contains_indirect_ref.
3902
3903 2005-11-04 Paul Brook  <paul@codesourcery.com>
3904
3905         * config/arm/arm.c (arm_load_pic_register): Pass extra reg to
3906         gen_pic_add_dot_plus_four and gen_pic_add_dot_plus_eight.
3907         (arm_call_tls_get_addr, legitimize_tls_address): Likewise.
3908         * config/arm/arm.md: Use match_operand in peephole input templates
3909         and match_dup in peephole output templates.
3910
3911 2005-11-04  Daniel Jacobowitz  <dan@codesourcery.com>
3912
3913         * config/arm/arm.c (arm_init_libfuncs): Use __aeabi_idiv and
3914         __aeabi_uidiv.
3915
3916 2005-11-04  Mark Mitchell  <mark@codesourcery.com>
3917             Daniel Jacobowitz  <dan@codesourcery.com>
3918
3919         * longlong.h (add_ssaaaa): Clobber condition code register
3920         in ARM version.
3921         (sub_ddmmss): Likewise.
3922         (umul_ppmm): Likewise.
3923
3924 2005-11-04  Daniel Jacobowitz  <dan@codesourcery.com>
3925             Paul Brook  <paul@codesourcery.com>
3926             Phil Blundell  <pb@reciva.com>
3927
3928         * configure.ac: Add test for ARM TLS support.
3929         * configure: Regenerated.
3930         * config/arm/arm-protos.h (legitimize_tls_address)
3931         (arm_tls_referenced_p, tls_mentioned_p)
3932         (arm_output_addr_const_extra): New prototypes.
3933         (thumb_legitimize_pic_address): Delete.
3934         * config/arm/arm.c: Include "gt-arm.h".
3935         (enum tls_reloc): New.
3936         (arm_cannot_copy_insn_p, arm_tls_symbol_p, load_tls_operand)
3937         (pcrel_constant_p, get_tls_get_addr, arm_load_tp)
3938         (arm_call_tls_get_addr, legitimize_tls_address)
3939         (arm_tls_referenced_p, arm_tls_operand_p_1, tls_mentioned_p)
3940         (arm_init_tls_builtins, arm_emit_tls_decoration)
3941         (arm_output_addr_const_extra): New functions.
3942         (TARGET_CANNOT_COPY_INSN_P, TARGET_CANNOT_FORCE_CONST_MEM)
3943         (TARGET_HAVE_TLS): Define.
3944         (target_thread_pointer): New.
3945         (arm_override_options): Handle -mtp=.
3946         (legitimize_pic_address): Ignore UNSPECs.
3947         (arm_legitimate_address_p, thumb_legitimate_address_p): Handle PC
3948         relative symbols.
3949         (arm_legitimize_address, thumb_legitimize_address): Handle TLS.
3950         (tls_get_addr_libfunc): New variable.
3951         (symbol_mentioned_p, label_mentioned_p): Ignore UNSPEC_TLS.
3952         (arm_init_builtins): Call arm_init_tls_builtins.
3953         (arm_expand_builtin): Handle ARM_BUILTIN_THREAD_POINTER.
3954         (arm_encode_section_info): Call default_encode_section_info.
3955         * config/arm/arm.h (TARGET_HARD_TP, TARGET_SOFT_TP): Define.
3956         (enum arm_tp_type): New.
3957         (target_thread_pointer): Add declaration.
3958         (LEGITIMATE_CONSTANT_P): Handle TLS.
3959         (LEGITIMATE_PIC_OPERAND_P): Handle TLS.
3960         (OUTPUT_ADDR_CONST_EXTRA): Call arm_output_addr_const_extra.
3961         (enum arm_builtins): Add ARM_BUILTIN_THREAD_POINTER.
3962         * config/arm/arm.md: Add UNSPEC_TLS.
3963         (movsi): Handle TLS.
3964         (pic_add_dot_plus_four, pic_add_dot_plus_eight): Allow for
3965         non-PIC.
3966         (tls_load_dot_plus_eight): New insn and a peephole to create it.
3967         (load_tp_hard, load_tp_soft): New insns.
3968         * arm.opt: Add -mtp=.
3969         * doc/invoke.texi (ARM Options): Document -mtp.
3970
3971 2005-11-04  Daniel Jacobowitz  <dan@codesourcery.com>
3972
3973         * config/arm/lib1funcs.asm: Don't include "libunwind.S".
3974         * config/arm/libunwind.S: Include "lib1funcs.asm".
3975         * config/arm/t-bpabi (LIB1ASMFUNCS): Remove _unwind.
3976         (LIB2ADDEH): Add libunwind.S.
3977         (LIB2ADDEHDEP): Add lib1funcs.asm.
3978         * mklibgcc.in: Handle asm files in libgcc_eh.a.
3979
3980 2005-11-04  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
3981
3982         PR fortran/18452
3983         * gcc/c.opt: Add a -lang-fortran option.
3984         * gcc/c-opts.c: Add a lang_fortran flag.
3985         (c_common_init_options): Handling the -lang-fortran option.
3986         (c_common_handle_option): Add a case for Fortran options in
3987         preprocessing. Remove cases for -ffixed-form and
3988         -ffixed-line-length. Add a case for -lang-fortran.
3989
3990 2005-11-03  David Edelsohn  <edelsohn@gnu.org>
3991
3992         * config/rs6000/rs6000.c: Include params.h
3993         (optimization_options): Set max-grow-copy-bb-insns default to 16.
3994         (bdesc_2arg): Delete vpkuhss and vpkuwss.
3995         * config/rs6000/altivec.md (UNSPEC_VPKUHSS): Delete.
3996         (UNSPEC_VPKUWSS): Delete.
3997         (altivec_vpkuhss): Delete.
3998         (altivec_vpkuwss): Delete.
3999         * config/rs6000/rs6000.md (plus_eqsi): Remove optimize_size from
4000         final condition.
4001         (neg_eq0<mode>): Remove final condition.
4002         (neg_eq<mode>): Remove condition and split-condition.
4003
4004 2005-11-04  Alan Modra  <amodra@bigpond.net.au>
4005
4006         * config/rs6000/rs6000.c (output_toc): Make "offset" HOST_WIDE_INT.
4007         Use associated print macros.
4008
4009 2005-11-03  Joseph S. Myers  <joseph@codesourcery.com>
4010
4011         PR c++/17964
4012         * diagnostic.c (diagnostic_set_info_translated): New function.
4013         (diagnostic_set_info): Use it.  Add comment.
4014         * diagnostic.h (diagnostic_set_info_translated): Declare.
4015
4016 2005-11-03  Eric Botcazou  <ebotcazou@adacore.com>
4017
4018         * dwarf2asm.c (dw2_force_const_mem): Add new parameter 'public'.
4019         On USE_LINKONCE_INDIRECT platforms, build a DECL_ONE_ONLY indirect
4020         reference only if 'public' is true.
4021         (dw2_output_indirect_constant_1): On USE_LINKONCE_INDIRECT platforms,
4022         emit the .hidden directive only if the indirect reference is public.
4023         (dw2_asm_output_encoded_addr_rtx): Add new parameter 'public'.
4024         Pass it to dw2_force_const_mem.
4025         * dwarf2asm.h (dw2_asm_output_encoded_addr_rtx): New param 'public'.
4026         * dwarf2out.c (output_cfi): Adjust calls to above function.
4027         (output_call_frame_info): Likewise.
4028         * except.c (output_ttype): Pass TREE_PUBLIC of the type_info object
4029         as 'public' argument to dw2_asm_output_encoded_addr_rtx.
4030
4031 2005-11-03  Zdenek Dvorak  <dvorakz@suse.cz>
4032
4033         PR tree-optimization/24483
4034         * tree-ssa-loop-ivopts.c (aff_combination_add_elt): Move rest
4035         field to elts if possible.
4036
4037 2005-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
4038
4039         PR middle-end/23155
4040         * gimplifier.c (gimplify_expr): Create a temporary for lvalue
4041         CONSTRUCTOR.
4042
4043 2005-11-03  Daniel Berlin  <dberlin@dberlin.org>
4044
4045         Fix PR tree-optimization/24351
4046
4047         * tree-ssa-structalias.c (struct variable_info): Add
4048         collapsed_into.
4049         (get_varinfo_fc): New function to follow collapsing.
4050         (new_var_info): Set collapsed_to to NULL.
4051         (dump_constraint): Follow collapsing.
4052         (build_constraint_graph): Handle collapsing.
4053         (do_simple_structure_copy): Return false if something bad
4054         happened.
4055         (collapse_rest_of_var): New function.
4056         (do_structure_copy): Collapse if do_simple_structure_copy returns
4057         false.
4058
4059 2005-11-03  Andrew Pinski  <pinskia@physics.uc.edu>
4060
4061         PR middle-end/24589
4062         * gimplify.c (gimplify_expr) <case CONSTRUCTOR>: Add the
4063         expressions to a statement list instead of gimplifying them.
4064
4065 2005-11-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
4066
4067         PR rtl-optimization/23585
4068         * rtlanal.c (rtx_addr_can_trap_p_1) <PLUS>: Return 0 for an address
4069         that can't trap plus a constant integer, if the mode has zero size.
4070
4071 2005-11-03  Ulrich Weigand  <uweigand@de.ibm.com>
4072
4073         PR target/24620
4074         * config/s390/s390.md ("*insv<mode>_reg_imm"): Accept any CONST_INT
4075         as operand 2.
4076         ("*insv<mode>_reg_extimm"): Likewise.
4077
4078 2005-11-03  Joseph S. Myers  <joseph@codesourcery.com>
4079
4080         PR c/24329
4081         * c-pretty-print.c (pp_c_type_specifier): Do not recurse if
4082         c_common_type_for_mode returns an unnamed type.
4083
4084 2005-11-02  Richard Henderson  <rth@redhat.com>
4085
4086         PR target/9350
4087         PR target/24374
4088         * dwarf2out.c (dwarf2out_reg_save_reg): New.
4089         (dwarf2out_frame_debug_expr): Return after dwarf_handle_frame_unspec.
4090         * function.c (assign_parms): Use calls.internal_arg_pointer.
4091         (expand_main_function): Remove FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN
4092         code.
4093         * target-def.h (TARGET_INTERNAL_ARG_POINTER): New.
4094         (TARGET_CALLS): Add it.
4095         * target.h (struct gcc_target): Add calls.internal_arg_pointer.
4096         * targhooks.c (default_internal_arg_pointer): New.
4097         * targhooks.h (default_internal_arg_pointer): Declare.
4098         * tree.h (dwarf2out_reg_save_reg): Declare.
4099         * doc/tm.texi (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): Remove.
4100         * config/i386/i386.c (dbx_register_map): Add return column.
4101         (dbx64_register_map, svr4_dbx_register_map): Likewise.
4102         (TARGET_INTERNAL_ARG_POINTER, ix86_internal_arg_pointer): New.
4103         (TARGET_DWARF_HANDLE_FRAME_UNSPEC, ix86_dwarf_handle_frame_unspec): New.
4104         (ix86_function_ok_for_sibcall): Disable if force_align_arg_pointer.
4105         (ix86_save_reg): Save force_align_arg_pointer.
4106         (ix86_emit_save_regs): Make regno unsigned.
4107         (ix86_emit_save_regs_using_mov): Likewise.
4108         (ix86_expand_prologue): Handle force_align_arg_pointer.
4109         (ix86_expand_epilogue): Likewise.
4110         * config/i386/i386.h: (dbx_register_map): Update.
4111         (dbx64_register_map, svr4_dbx_register_map): Update.
4112         (struct machine_function): Add force_align_arg_pointer.
4113         * config/i386/i386.md (UNSPEC_REG_SAVE, UNSPEC_DEF_CFA): New.
4114         (UNSPEC_TP, UNSPEC_TLS_GD, UNSPEC_TLS_LD_BASE): Renumber.
4115         (TARGET_PUSH_MEMORY peepholes): Disable if RTX_FRAME_RELATED_P.
4116
4117 2005-11-02  Jan Hubicka  <jh@suse.cz>
4118
4119         PR target/23303
4120         * i386.md: Add peep2 for simplyfing array accesses.
4121
4122 2005-11-02  Ulrich Weigand  <uweigand@de.ibm.com>
4123
4124         PR target/24615
4125         * config/s390/s390-protos.h (s390_decompose_shift_count): Declare.
4126         * config/s390/s390.c (s390_decompose_shift_count): New function.
4127         (s390_extra_constraint_str) ['Y']: Use s390_decompose_shift_count.
4128         (print_shift_count_operand): Use s390_decompose_shift_count.
4129         * config/s390/predicates.md ("setmem_operand", "shift_count_operand"):
4130         Use s390_decompose_shift_count.  Do not accept any non-base hard regs.
4131
4132 2005-11-02  Ulrich Weigand  <uweigand@de.ibm.com>
4133
4134         PR target/24600
4135         * loop.c (loop_givs_rescan): Use force_operand to expand
4136         complex GIVs.
4137
4138 2005-11-02  Andrew Pinski  <pinskia@physics.uc.edu>
4139
4140         PR 22429
4141         * fold-const.c (build_range_check): Use unsigned when signed
4142         overflow is undefined also.  If etype is subtype, make sure that
4143         the subtraction is in the supertype.
4144
4145 2005-11-02  Richard Henderson  <rth@redhat.com>
4146
4147         PR target/24178
4148         * config/alpha/alpha.c (get_aligned_mem): Honor alignment given
4149         by MEM_ALIGN.
4150
4151 2005-11-01  Richard Henderson  <rth@redhat.com>
4152
4153         PR 21518
4154         * loop.c (scan_loop): Do not propagate computations to a hard
4155         register destination with SMALL_REGISTER_CLASSES.
4156
4157 2005-11-01  Joseph S. Myers  <joseph@codesourcery.com>
4158
4159         * config/rs6000/rs6000.c (rs6000_rtx_costs): Do not add extra
4160         costs for MULT inside PLUS or MINUS.
4161
4162 2005-11-01  Bob Wilson  <bob.wilson@acm.org>
4163
4164         * config/xtensa/xtensa.h (TRAMPOLINE_TEMPLATE): Add a byte of padding.
4165         (TRAMPOLINE_SIZE): Round up to 60.
4166         * config/xtensa/lib2funcs.S (TRAMPOLINE_SIZE): Likewise.
4167
4168 2005-10-31  James E. Wilson  <wilson@specifix.com>
4169
4170         PR debug/24444
4171         * dwarf2out.c (convert_cfa_to_loc_list): Put inside DWARF2_UNWIND_INFO
4172         ifdef.  Put ifdefs around call in gen_subprogram_die.
4173         (compute_frame_pointer_to_cfa_displacement): Likewise.
4174         (gen_subprogram_die): Restore old code for when DWARF2_UNWIND_INFO is
4175         not defined.
4176
4177         PR rtl-optimization/17356
4178         *  cfgrtl.c (purge_dead_edges): Undo last change.  In EDGE_EH code,
4179         add check for CALL_INSN if EDGE_ABRNOMAL_CALL true.
4180
4181 2005-10-31  Jan Hubicka  <jh@suse.cz>
4182
4183         PR middle-end/24093
4184         * cgraph.c (cgraph_clone_edge, cgraph_clone_node): Watch negative
4185
4186         PR target/20928
4187         * i386.c (legitimize_pic_address): Deal with large immediates.
4188
4189         PR profile/20815
4190         * coverage.c (coverage_checksum_string): Fix code to stip random seeds
4191         from symbol names while computing checkup.
4192
4193         PR profile/24487
4194         * predict.c (predict_loops): Do not estimate more than
4195         MAX_PRED_LOOP_ITERATIONS in PRED_LOOP_ITERATIONS heuristic.
4196         * predict.def (MAX_PRED_LOOP_ITERATIONS): Define.
4197
4198 2005-10-31  Andrew MacLeod  <amacleod@redhat.com>
4199
4200         PR tree-optimization/19097
4201         * tree-ssa-operands.c (correct_use_link): Don't look for modified stmts.
4202
4203 2005-10-31  J"orn Rennecke <joern.rennecke@st.com>
4204
4205         * optabs.c (expand_unop): Take TRULY_NOOP_TRUNCATION into account.
4206
4207 2005-10-31  Andrew Pinski  <pinskia@physics.uc.edu>
4208
4209         PR middle-end/23492
4210         * tree-inline.c (setup_one_parameter): If the init_stmt
4211         is NULL, don't insert the statement.
4212
4213 2005-10-30  Jan Hubicka  <jh@suse.cz>
4214
4215         PR tree-optimization/24172
4216         * tree-inline.c (copy_body_r): Unshare the substituted value first.
4217
4218 2005-10-30  Hans-Peter Nilsson  <hp@bitrange.com>
4219
4220         * config/mmix/mmix.c (mmix_intval): Correct handling of DFmode
4221         constants for hosts with long != 32 bits.
4222
4223 2005-10-28  Andreas Krebbel <krebbel1@de.ibm.com>
4224
4225         PR middle-end/24093
4226         * ipa-inline.c (craph_decide_recursive_inlining): Fix return value.
4227
4228 2005-10-28  Aldy Hernandez  <aldyh@redhat.com>
4229
4230         * config/ms1/ms1.h (TARGET_MS1_64_001): New.
4231         (TARGET_MS1_16_002): New.
4232         (TARGET_MS1_16_003): New.
4233
4234         * config/ms1/ms1.md ("decrement_and_branch_until_zero"): Rewrite.
4235         ("*decrement_and_branch_until_zero_no_clobber"): New.
4236         Add corresponding splitter for decrement_and_branch_until_zero
4237         instruction.
4238         Key all decrement_and_branch_until_zero patterns off of
4239         TARGET_MS1_16_003.
4240
4241 2005-10-28  Andrew Pinski  <pinskia@physics.uc.edu>
4242
4243         PR middle-end/24362
4244         * tree-complex.c (extract_component): Treat RESULT_DECL
4245         like the rest of the decls.
4246
4247 2005-10-25  Eric Botcazou  <ebotcazou@adacore.com>
4248
4249         * config/ia64/ia64.c (ia64_output_function_profiler): Emit an
4250         indirect call to _mcount if the function needs a static chain.
4251
4252 2005-10-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
4253             Caroline Tice  <ctice@apple.com>
4254
4255         PR rtl-optimization/24460
4256         * dwarf2out.c (have_switched_text_sections): New boolean variable.
4257         (dwarf2out_switch_text_section): Set it to true instead of
4258         incrementing separate_line_info_table_in_use.
4259         (output_loc_list): Additionally test have_switched_text_sections.
4260         (output_ranges): Likewise.
4261         (dwarf2out_finish): Likewise.
4262         * varasm.c (assemble_start_function): Do not call
4263         insert_section_boundary_note.
4264         (assemble_end_function): If flag_reorder_blocks_and_partition,
4265         switch to the function's section before emitting the .size directive.
4266         * bb-reorder.c (insert_section_boundary_note): Staticify.
4267         (rest_of_handle_reorder_blocks): Call insert_section_boundary_note.
4268         * output.h (insert_section_boundary_note): Delete.
4269
4270 2005-10-24  Andrew Pinski  <pinskia@physics.uc.edu>
4271
4272         PR c/23103
4273         * c-format.c (check_format_types): Use lang_hooks.types_compatible_p
4274         instead of pointer equality when comparing types.
4275
4276 2005-10-24  James E. Wilson  <wilson@specifix.com>
4277
4278         * sched-deps.c (flush_pending_lists): Pass 1 not 0 in first two
4279         add_dependence_list_and_free calls.
4280
4281 2005-10-24  Steven Bosscher  <stevenb@suse.de>
4282
4283         * contrib.texi: Add the names of the LLNL folks who donated
4284         Cray pointer support for gfortran.
4285
4286 2005-10-24  Steven Bosscher  <stevenb@suse.de>
4287
4288         PR tree-optimization/24225
4289         * profile.c (branch_prob): Look from end to start through a
4290         basic block when looking for a locus.
4291
4292 2005-10-24  Richard Henderson  <rth@redhat.com>
4293
4294         * pa.c (store_reg_modify): Set RTX_FRAME_RELATED_P on each set in
4295         parallel.
4296         (hppa_expand_prologue): Likewise.
4297
4298 2005-10-24  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4299
4300         * pa-linux.h (NO_PROFILE_COUNTERS): Delete define.
4301         (NO_DEFERRED_PROFILE_COUNTERS): Define.
4302         * pa.h (NO_PROFILE_COUNTERS): Define.
4303         * pa.c (NO_DEFERRED_PROFILE_COUNTERS): Define if not defined.
4304         (funcdef_nos): New vector to hold label numbers of deferred profile
4305         counters.
4306         (output_deferred_profile_counters): New function.
4307         (hppa_profile_hook): Push label number onto funcdef_nos.
4308         (pa_hpux_file_end): Call output_deferred_profile_counters if
4309         NO_DEFERRED_PROFILE_COUNTERS is false.
4310
4311         * pa-protos.h (get_deferred_plabel): New prototype.
4312         * pa.c (get_plabel): Rename to get_deferred_plabel.  Return plabel.
4313         Make global.
4314         (output_call): Adjust calls.
4315
4316 2005-10-24  Alan Modra  <amodra@bigpond.net.au>
4317
4318         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Explain
4319         peculiarity of GOT/TOC section usage.
4320
4321 2005-10-23  Andrew Pinski  <pinskia@physics.uc.edu>
4322
4323         PR objc/24435
4324          * c-common.c (constant_string_class_name): Add documentation.
4325
4326 2005-10-23  Kaz Kojima  <kkojima@gcc.gnu.org>
4327
4328         PR target/23832
4329         * recog.c (peephole2_optimize): Increment peep2_current_count
4330         only when the slot is empty.
4331
4332 2005-10-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4333
4334         PR ada/23957
4335         * except.c (output_function_exception_table): Call
4336         assemble_external_libcall if we need a personality function.
4337
4338 2005-10-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
4339
4340         PR rtl-optimization/24460
4341         * bb-reorder.c (fix_crossing_unconditional_branches): Do not
4342         set the basic block for barriers.
4343
4344 2005-10-21  Janis Johnson  <janis187@us.ibm.com>
4345
4346         * var-tracking.c (vt_initialize): Initialize post.
4347
4348 2005-10-21  Devang Patel  <dpatel@apple.com>
4349
4350         PR/24220
4351         * c-common.c (vector_types_convertible_p): Check vector element type.
4352
4353 2005-10-21  Kaz Kojima  <kkojima@gcc.gnu.org>
4354
4355         * config/sh/sh.c (prepare_move_operands): Handle the address
4356         constant which is a tls symbolic address plus a constant.
4357
4358 2005-10-21  Andrew Pinski  <pinskia@physics.uc.edu>
4359
4360         PR driver/24473
4361         * gcc.c (main): Use the correct counter for erroring out
4362         about mulitple files.
4363
4364 2005-10-21  Alan Modra  <amodra@bigpond.net.au>
4365
4366         PR target/24465
4367         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Always
4368         use r2 for 64-bit tls .got access.
4369
4370 2005-10-21  Paolo Bonzini  <bonzini@gnu.org>
4371
4372         * dojump.c (do_jump): Handle side-effecting TRUTH_AND_EXPR and
4373         TRUTH_OR_EXPR.
4374
4375 2005-10-20  Steven Bosscher  <stevenb@suse.de>
4376
4377         PR tree-optimization/24307
4378         * tree-cfg.c (tree_find_edge_insert_loc): Handle naked RETURN_EXPR.
4379
4380 2005-10-20  Alexandre Oliva  <aoliva@redhat.com>
4381
4382         PR middle-end/24295
4383         * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Mark
4384         alias targets.
4385         * varasm.c (find_decl_and_mark_needed): After cgraph global info
4386         is ready, stop marking functions, but still mark variables.
4387
4388 2005-10-20  Richard Guenther  <rguenther@suse.de>
4389
4390         PR c++/24439
4391         * fold-const.c (invert_truthvalue): Handle COND_EXPR with
4392         void type operands.
4393
4394 2005-10-20  Eric Botcazou  <ebotcazou@libertysurf.fr>
4395
4396         PR rtl-optimization/23585
4397         * rtlanal.c (rtx_addr_can_trap_p_1): New predicate extracted from...
4398         (rtx_addr_can_trap_p): ... here.  Invoke rtx_addr_can_trap_p_1.
4399         (may_trap_p_1): New predicate extracted from...
4400         (may_trap_p): ... here.  Invoke may_trap_p_1.
4401         (may_trap_or_fault_p): New predicate.
4402         * rtl.h (may_trap_or_fault_p): Declare it.
4403         * reorg.c (steal_delay_list_from_target): Use may_trap_or_fault_p
4404         instead of may_trap_p.
4405         (steal_delay_list_from_fallthrough): Likewise.
4406         (fill_simple_delay_slots): Likewise.
4407         (fill_slots_from_thread): Likewise.
4408         * function.c (pad_to_arg_alignment): Rework comment about
4409         SPARC_STACK_BOUNDARY_HACK.
4410         * config/sparc/sparc.h: Likewise.
4411
4412 2005-10-19  Adrian Straetling  <straetling@de.ibm.com>
4413
4414         * config/s390/s390.c (s390_expand_insv): New.
4415         * config/s390/s390-protos.h (s390_expand_insv): Declare.
4416         * config/s390/s390.md ("UNSPEC_SETHIGH"): Rename to "UNSPEC_ICM".
4417         ("icm_hi"): Remove mode attribute.
4418         ("*sethigh<mode><mode>"): Rewrite to "sethighpart<mode>".
4419         Adjust all uses.
4420         ("*extracthi", "*extractqi"): Remove.
4421         (extv<mode>", "*extzv<mode>"): New.
4422         ("insv", "*insv<mode>_mem_reg", "*insvdi_mem_reghigh",
4423         "*insv<mode>_reg_imm", "*insv<mode>_reg_extimm"): New.
4424
4425 2005-10-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4426
4427         * cfgexpand.c (discover_nonconstant_array_refs_r,
4428         discover_nonconstant_array_refs): Move here from tree-outof-ssa.c
4429         (tree_expand_cfg): Call discover_nonconstant_array_refs.
4430         * tree-outof-ssa.c (rewrite_out_of_ssa): Remove call to
4431         discover_nonconstant_array_refs.
4432
4433 2005-10-19  Steven Bosscher  <stevenb@suse.de>
4434
4435         PR c/23228
4436         * c-decl.c (pop_scope): Don't warn about an unused variable
4437         if it is marked with TREE_NO_WARNING.
4438         (duplicate_decls): Set TREE_NO_WARNING if olddecl and newdecl
4439         somenow mismatch and olddecl is to be replaced.
4440
4441 2005-10-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
4442
4443         PR middle-end/23199
4444         * cfgrtl.c (safe_insert_insn_on_edge): Use can_copy_p to detect
4445         whether registers live on the edge can be saved/restored.
4446
4447 2005-10-19  Kaz Kojima  <kkojima@gcc.gnu.org>
4448
4449         * config/sh/sh.c (fixup_mova): Skip notes.
4450
4451 2005-10-19  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4452
4453         * config/s390/s390-protos.h (s390_hard_regno_rename_ok): Add prototype.
4454         * config/s390/s390.c (s390_hard_regno_rename_ok): New function.
4455         (s390_can_eliminate): Handle BASE_REGNUM elimination.
4456         (s390_initial_elimination_offset): Likewise.
4457         (s390_conditional_register_usage): BASE_REGNUM is no longer a fixed
4458         register on TARGET_ZARCH targets.
4459         * config/s390/s390.h (HARD_REGNO_RENAME_OK): Define
4460         (INITIAL_FRAME_POINTER_OFFSET): Remove.
4461         (REG_ALLOC_ORDER): Move BASE_REGNUM lower.
4462         (ELIMINABLE_REGS): Add BASE_REGNUM elimination rule.
4463
4464 2005-10-19  Andreas Krebbel  <krebbel1@de.ibm.com>
4465
4466         * config/s390/s390.md: Comment describing output modifiers updated.
4467         * config/s390/s390.c (print_operand): Likewise.
4468
4469 2005-10-19  Andreas Krebbel  <krebbel1@de.ibm.com>
4470
4471         * config/s390/s390.c (override_options): Added check for -mstack-size
4472         64k limitation.
4473         * doc/invoke.texi: Mention that limit in the documenation.
4474
4475 2005-10-18  Paolo Bonzini  <bonzini@gnu.org>
4476
4477         PR #19672
4478         * dojump.c (do_jump): Handle TRUTH_AND_EXPR and TRUTH_OR_EXPR here.
4479
4480 2005-10-18  Daniel Berlin <dberlin@dberlin.org>
4481
4482         Fix PR tree-optimization/24231
4483
4484         * tree-ssa-pre.c (try_look_through_load): Skip abnormal phi names
4485         (compute_avail): Ditto.
4486
4487 2005-10-18  Richard Henderson  <rth@redhat.com>
4488
4489         PR target/24428
4490         * config/i386/i386.c (legitimate_constant_p): Check
4491         SYMBOL_REF_TLS_MODEL directly.  Don't fallthru to SYMBOL_REF
4492         if LABEL_REF.
4493         (legitimate_pic_operand_p): Test SYMBOL_REF_TLS_MODEL directly.
4494         (legitimate_pic_address_disp_p): Reorg CONST checking to make
4495         sure SYMBOL_REF_TLS_MODEL is tested.  Test SYMBOL_REF_TLS_MODEL
4496         directly.
4497         (print_operand_address): Likewise.
4498         * config/i386/predicates.md (x86_64_immediate_operand): Test
4499         SYMBOL_REF_TLS_MODEL properly inside CONST.
4500         (x86_64_zext_immediate_operand): Likewise.
4501         (global_dynamic_symbolic_operand, local_dynamic_symbolic_operand,
4502         initial_exec_symbolic_operand, local_exec_symbolic_operand): Remove.
4503         * config/i386/i386-protos.h: Remove predicates.md entries.
4504
4505 2005-10-18  Danny Smith  <dannysmith@users.sourceforge.net>
4506
4507         * config/i386/winnt-cxx.c (i386_pe_adjust_class_at_definition):
4508         Check that elements of TYPE_METHODS are FUNCTION_DECLs.
4509
4510 2005-10-17  Alexey Starovoytov  <alexey.starovoytov@sun.com>
4511             Ian Lance Taylor <ian@airs.com>
4512
4513         PR middle-end/23522
4514         * fold-const.c (fold_widened_comparison): Do not allow range based
4515         constant folding when right operand cannot be unwidened.
4516
4517 2005-10-17  Richard Henderson  <rth@redhat.com>
4518
4519         * builtins.c (expand_builtin_synchronize): Build a new-style asm
4520         with a memory clobber.
4521
4522 2005-10-17  James E Wilson  <wilson@specifix.com>
4523
4524         PR rtl-optimization/17356
4525         * cfgrtl.c (purge_dead_edges): Check for EDGE_ABNORMAL_CALL before
4526         checking for EDGE_EH.
4527
4528 2005-10-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
4529
4530         * config/sparc/sparc.c (function_arg_slotno): In 64-bit mode, align
4531         the slot on an even boundary for any type with 16-byte alignment.
4532
4533 2005-10-17  Hans-Peter Nilsson  <hp@axis.com>
4534
4535         PR target/23424
4536         * md.texi (Modifiers) <%>: Clarify that % doesn't work
4537         after register allocation.
4538
4539 2005-10-17  DJ Delorie  <dj@redhat.com>
4540
4541         * config/m32c/m32c.c (m32c_pushm_popm): Don't mark epilogue insns
4542         as frame related.
4543
4544 2005-10-17  Nathan Sidwell  <nathan@codesourcery.com>
4545
4546         PR c++/22551
4547         * c-common.c (c_add_case_label): Revert my 2005-10-14 clearing of
4548         overflow flags.
4549
4550 2005-10-17  Kaz Kojima  <kkojima@gcc.gnu.org>
4551
4552         * config/sh/sh.h (OPTIMIZATION_OPTIONS): Set flag_schedule_insns
4553         to 2 if it's already non-zero.
4554         (OVERRIDE_OPTIONS): Clear flag_schedule_insns if flag_exceptions
4555         is set and warn about it if flag_schedule_insns is 1.
4556
4557 2005-10-17  Paul Woegerer  <paul.woegerer@nsc.com>
4558
4559         * config/crx/crx.md: Compare-and-branch instructions need to
4560         invalidate CC.
4561
4562 2005-10-17  Uros Bizjak  <uros@kss-loka.si>
4563
4564         PR target/24315
4565         * config/i386/i386.md (*pushdi2_rex64 splitter)
4566         (*movdi_1_rex64 splitter, *ashldi3_1 splitter)
4567         (*ashrdi3_1 splitter, *lshrdi3_1 splitter): Delay splitting after
4568         flow2 pass only when (optimize > 0 && flag_peephole2).
4569
4570 2005-10-16  Andrew Pinski  <pinskia@physics.uc.edu>
4571
4572         PR driver/22544
4573         * gcc.c (have_c): New static variable.
4574         (have_o): Likewise.
4575         (process_command): Remove declation of have_c.
4576         Set have_o to 1 when handling -o.
4577         (main): Add a fatel error if there are multiple
4578         files specified and -o and -c/-S is passed witout
4579         -combine or multiple languages.
4580
4581 2005-10-16  Daniel Berlin  <dberlin@dberlin.org>
4582
4583         Fix PR tree-optimization/22444
4584         * tree-ssa-alias.c (compute_flow_insensitive_aliasing):
4585         Assert that we don't hit something with subvars.
4586         (setup_pointers_and_addressables): Don't add things with subvars,
4587         because we'll already process the subvars for aliasing purposes.
4588
4589 2005-10-16  Hans-Peter Nilsson  <hp@axis.com>
4590
4591         PR target/23424
4592         * config/cris/cris.md ("*mov_side<mode>", "*mov_sidesisf")
4593         ("*mov_side<mode>_mem", "*mov_sidesisf_mem", "*clear_side<mode>")
4594         ("*ext_sideqihi", "*ext_side<mode>si", "*op_side<mode>")
4595         ("*op_swap_side<mode>", "*extopqihi_side", "*extop<mode>si_side")
4596         ("*extopqihi_swap_side", "*extop<mode>si_swap_side"): Have separate,
4597         swapped, alternatives for the R constraint.
4598
4599         PR middle-end/24341
4600         * builtins.c (get_builtin_sync_mode): Make unlimited
4601         mode_for_size request.
4602
4603 2005-10-15  Richard Henderson  <rth@redhat.com>
4604
4605         * gimplify.c (gimplify_var_or_parm_decl): Split out from ...
4606         (gimplify_expr): ... here.
4607         (gimplify_compound_lval): Use it in initial scan loop.  Allow
4608         fb_lvalue in base expression.
4609
4610 2005-10-15  Richard Henderson  <rth@redhat.com>
4611
4612         PR 23714
4613         * builtins.c (expand_builtin_trap): Export.
4614         * expr.h (expand_builtin_trap): Declare.
4615         * expr.c (expand_assignment): Emit a trap for integral offsets
4616         from registers that weren't reduced to bitpos.
4617
4618         * tree-cfg.c (mark_array_ref_addressable_1): Remove.
4619         (mark_array_ref_addressable): Remove.
4620         * tree-flow.h (mark_array_ref_addressable): Remove.
4621         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Don't call it.
4622
4623 2005-10-15  James E Wilson  <wilson@specifix.com>
4624
4625         PR target/24232
4626         * sched-deps.c (add_dependence_list): New arg UNCOND.  Fix all callers.
4627         (add_dependence_list_and_free): Likewise.
4628         (sched_analyze_2, case MEM): Delete sched_insns_conditions_mutex_p
4629         call.
4630
4631 2005-10-15  Diego Novillo  <dnovillo@redhat.com>
4632
4633         PR 23141
4634         PR 23142
4635         * tree-vrp.c (vrp_meet): Fix the intersection of equivalence
4636         sets VR0->EQUIV and VR1->EQUIV when meeting a range and an
4637         anti-range.
4638         (vrp_visit_phi_node): Only prevent infinite iterations when
4639         the previous result and the new result are both VR_RANGEs.
4640
4641 2005-10-15  Ranjit Mathew  <rmathew@gcc.gnu.org>
4642
4643         * tree-into-ssa.c (mark_def_sites): Correct minor typo in
4644         function comment.
4645
4646 2005-10-14  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
4647
4648         PR c/23439
4649         * c-parser.c (c_parser_for_statement): Use location of RID_FOR
4650         to initialize loc.
4651
4652 2005-10-14  Per Bothner  <per@bothner.com>
4653
4654         PR preprocessor/21250
4655         * c-ppoutput.c (print_line): Print internal line 0 as 1.
4656
4657 2005-10-14  Nathan Sidwell  <nathan@codesourcery.com>
4658
4659         PR c++/22551
4660         * c-common.c (c_add_case_label): Clear LOW_VALUE and HIGH_VALUE's
4661         overflow flags.  Refactor some conditionals.
4662
4663 2005-10-13  Andrew Pinski  <pinskia@physics.uc.edu>
4664
4665         PR tree-opt/21304
4666         * tree-dfa.c (add_referenced_var): Only look at decls which
4667         have TREE_CONSTANT or TREE_READONLY set instead of if
4668         !TREE_PUBLIC or !TREE_CONSTANT.
4669
4670 2005-10-13  James E Wilson  <wilson@specifix.com>
4671
4672         * doc/invoke.texi: For -x, add f95-cpp-input.
4673         * doc/install.texi: For --enable-languages doc, change f95 to fortran.
4674
4675 2005-10-12  Sebastian Pop  <pop@cri.ensmp.fr>
4676
4677         PR tree-optimization/24262
4678         * tree-data-ref.c (analyze_offset_expr): Check that init is invariant
4679         in loop all the time.
4680
4681 2005-10-12  Richard Henderson  <rth@redhat.com>
4682
4683         PR c/24255
4684         * tree.h (DECL_TRANSPARENT_UNION): Remove.
4685         * function.c (assign_parm_find_data_types): Don't support it.
4686         * print-tree.c (print_node): Likewise.
4687         * c-common.c (handle_transparent_union_attribute): Likewise.
4688         Use build_duplicate_type.
4689         * tree-inline.c (remap_type_1): Split out of remap_type;
4690         properly remap aggregate fields.
4691         (build_duplicate_type): New.
4692         * doc/extend.texi (Variable Attributes): Remove documentation
4693         for transparent_union.
4694
4695 2005-10-12  Eric Botcazou  <ebotcazou@libertysurf.fr>
4696
4697         PR target/24284
4698         * config/sparc/sparc.c (gen_stack_pointer_inc): Build by hand.
4699         (gen_stack_pointer_dec): Likewise.
4700
4701 2005-10-12  Danny Smith  <dannysmith@users.sourceforge.net>
4702
4703         PR middle-end/21275
4704         PR middle-end/21766
4705         * target.h (struct gcc_target): Add valid_dllimport_attribute_p
4706         target hook.
4707         (struct cxx): Add adjust_class_at_definition target hook.
4708         * target-def.h: (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): New define,
4709         defaulting to hook_bool_tree_true. Add to TARGET_INITIALIZER
4710         (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): New define, defaulting to
4711         hook_void_tree. Add to TARGET_CXX.
4712         * tree.h (struct decl_with_vis): Rename non_addr_const_p field to
4713         dllimport_flag.
4714         (DECL_NON_ADDR_CONSTANT_P): Replace with DECL_DLLIMPORT_P macro.
4715         * tree.c (merge_dllimport_decl_attributes): Check DECL_DLLIMPORT_P
4716         instead of attribute. Check for dllexport override.  Warn if
4717         inconsistent dll linkage. Don't lose old dllimport if decl has
4718         had address referenced.   Tweak lookup of dllimport atribute.
4719         (handle_dll_attribute): Check targetm.valid_dllimport_attribute_p
4720         for target specific rules.  Don't add dllimport attribute if
4721         DECL_DECLARED_INLINE_P.  Set DECL_DLLIMPORT_P when adding
4722         dllimport attribute.
4723         (staticp): Replace DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P.
4724         * varasm.c (initializer_constant_valid_p): Replace
4725         DECL_NON_ADDR_CONSTANT_P with DECL_DLLIMPORT_P
4726
4727         PR target/21801
4728         PR target/23589
4729         * config.gcc (i[34567]86-*-cygwin*): Add winnt-cxx.o to
4730         'cxx_target_objs', winnt-stubs,o to 'extra_objs'.
4731         (i[34567]86-*-mingw32*): Likewise.
4732
4733         * doc/tm.texi (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Document.
4734         (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Document.
4735
4736         * config/i386/winnt.c (i386_pe_dllimport_p): Factor out
4737         C++-specific code. Change return value to bool.
4738         (i386_pe_dllimport_p): Likewise.
4739         (associated_type): Simplify and make language-independent
4740         (i386_pe_encode_section_info): Replace override of ambiguous
4741         dllimport symbol refs with a gcc_assert.
4742         (i386_pe_valid_dllimport_attribute_p): Define.
4743         * config/i386/winnt-cxx.c: New file. Define C++ versions of
4744         i386_pe_type_dllimport_p, i386_pe_type_dllexport_p,
4745         i386_pe_adjust_class_at_definition.
4746         * config/i386/winnt-stubs.c: New file. Define stub versions of
4747         lang-specific functions.
4748         * config/i386/i386-protos.h: Declare winnt-[cxx|stubs].c functions
4749         i386_pe_type_dllimport_p, i386_pe_type_dllexport_p,
4750         i386_pe_adjust_class_at_definition.
4751         (i386_pe_valid_dllimport_attribute_p): Declare.
4752         * config/i386/cygming.h (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Define.
4753         (TARGET_CXX_ADJUST_CLASS_AT_DEFINITION): Define.
4754         * config/i386/t-cygming: Add rules for winnt-cxx.o, winnt-stubs.o.
4755
4756         PR target/19704
4757         * config/i386/i386.c (ix86_function_ok_for_sibcall): Replace test for
4758         dllimport attribute with test of DECL_DLLIMPORT_P.
4759
4760 2005-10-12  Adrian Straetling <straetling@de.ibm.com>
4761
4762         * combine.c (make_extraction): Correct offset computation.
4763
4764 2005-10-12  Hans-Peter Nilsson  <hp@axis.com>
4765
4766         * config/cris/t-linux (LIMITS_H_TEST): Define.
4767
4768 2005-10-12  Richard Henderson  <rth@redhat.com>
4769
4770         PR rtl-opt/23324
4771         * cfgexpand.c (add_alias_set_conflicts): Use objects_must_conflict_p.
4772
4773 2005-10-12  Richard Guenther  <rguenther@suse.de>
4774
4775         * Makefile.in (CGRAPH_H): Depend on $(TREE_H).
4776
4777 2005-10-12  Nathan Sidwell  <nathan@codesourcery.com>
4778
4779         PR c++/19964
4780         * stor-layout.c (place_field): Set DECL_FIELD_OFFSET and
4781         DECL_FIELD_BIT_OFFSET of FIELD_DECLs, even if they have an invalid
4782         type.
4783
4784 2005-10-12  Richard Guenther  <rguenther@suse.de>
4785
4786         PR c++/23799
4787         * varasm.c (output_constant): Correct typo from previous
4788         patch by DJ.
4789
4790 2005-10-11  Ian Lance Taylor  <ian@airs.com>
4791
4792         PR rtl-optimization/13931
4793         * combine.c: Revert patch of 2003-05-14, and:
4794         (try_combine): Only set elim_i1 and elim_i2 if the destination is
4795         completely killed in the appropriate insn.
4796         (distribute_notes): Don't skip multiple hard register test for
4797         elim_i1 and elim_i2.
4798
4799 2005-10-11  Richard Henderson  <rth@redhat.com>
4800
4801         PR c/24255
4802         * c-typeck.c (convert_for_assignment): Use build_constructor_single
4803         to initialize a transparent union instead of a nop_expr.
4804
4805 2005-10-11  Richard Henderson  <rth@redhat.com>
4806
4807         * Makefile.in (tree-ssa-dce.o): Depend on SCEV_H.
4808         * tree-ssa-dce.c: Include tree-scalar-evolution.h.
4809         (tree_ssa_dce_loop): Call scev_reset.
4810
4811         PR tree-opt/24300
4812         * Makefile.in (tree-ssa-dce.o): Depend on CFGLOOP_H.
4813         * tree-ssa-dce.c: Include cfgloop.h.
4814         (tree_ssa_dce_loop, pass_dce_loop): New.
4815         * tree-pass.h (pass_dce_loop): Declare it.
4816         * passes.c (init_optimization_passes): Use it.
4817
4818 2005-10-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
4819
4820         PR middle-end/24263
4821         * convert.c (convert_to_real): Revert 2005-10-05 patch.
4822         Only apply the optimization for rounding builtins if the inner
4823         cast is also an extension.
4824
4825 2005-10-11  Andrew Pinski  <pinskia@physics.uc.edu>
4826
4827         PR tree-opt/23946
4828         * tree-ssa-ccp.c (execute_fold_all_builtins): Call
4829         mark_new_vars_to_rename instead of update_stmt.
4830
4831 2005-10-11  Bernd Schmidt  <bernd.schmidt@analog.com>
4832
4833         * config/bfin/crti.s (__init, __fini): Renamed from _init, _fini.
4834
4835 2005-10-11  Jakub Jelinek  <jakub@redhat.com>
4836
4837         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use mmxadd type
4838         for setting MMX register to 0 rather than mmx.
4839
4840 2005-10-10  Steve Ellcey  <sje@cup.hp.com>
4841
4842         PR target/12098
4843         * configure.ac: Move gas check from mips specific case to common case.
4844         Do check for GNU as for mips*-*-* and *-*-hpux* targets.
4845         * configure: Regenerate
4846         * doc/install.texi: Update.
4847
4848 2005-10-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
4849
4850         PR target/24284
4851         * config/sparc/sparc.c (sparc_expand_prologue): Remove bogus PATTERN.
4852
4853 2005-10-10  Maciej W. Rozycki  <macro@linux-mips.org>
4854
4855         * gcc.c (do_spec_1): Accept numeric characters in file name
4856         suffixes.
4857
4858 2005-10-10  Nick Clifton  <nickc@redhat.com>
4859
4860         * config/arm/arm.c: Remove extraneous whitespace.  Remove comment
4861         describing the deleted arm_gen_rotated_half_load function.
4862
4863 2005-10-09  Kaz Kojima  <kkojima@gcc.gnu.org>
4864
4865         * config/sh/sh.c (emit_fpu_switch): Set TREE_PUBLIC for
4866         __fpscr_values.
4867
4868 2005-10-09  Daniel Jacobowitz  <dan@codesourcery.com>
4869
4870         * config.gcc (arm*-*-linux*): Remove redundant extra_parts and
4871         gnu_ld assignments.
4872         * config/arm/t-linux-eabi (LIB1ASMFUNCS)
4873         (EXTRA_MULTILIB_PARTS): Define.
4874         * config/arm/linux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
4875         (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
4876         (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): Move to...
4877         * config/arm/uclinux-elf.h (NO_IMPLICIT_EXTERN_C, CPLUSPLUS_CPP_SPEC)
4878         (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC)
4879         (LINK_GCC_C_SEQUENCE_SPEC, USE_LD_AS_NEEDED): ... here.
4880
4881 2005-10-09  Zdenek Dvorak  <dvorakz@suse.cz>
4882
4883         PR tree-optimization/24226
4884         * tree-cfg.c (remove_bb): Clean up unreachable loops.
4885         * tree-flow.h (free_numbers_of_iterations_estimates_loop): Declare.
4886         * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates_loop):
4887         Export.
4888
4889 2005-10-09  Eric Botcazou  <ebotcazou@libertysurf.fr>
4890
4891         * config/sparc/gmon-sol2.c (internal_mcount): Mark as used.
4892
4893 2005-10-08  Andrew Pinski  <pinskia@physics.uc.edu>
4894
4895         PR target/24136
4896         * config/rs6000/darwin.md (movdf_low_si): Remove early clobber.
4897         Rewrite for no need for the early clobber.
4898
4899 2005-10-08  Kazu Hirata  <kazu@codesourcery.com>
4900
4901         Merge from csl-arm-branch:
4902         2005-09-07  Paul Brook  <paul@codesourcery.com>
4903         * config/arm/linux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Prepend a
4904         space to string.
4905
4906         2005-04-30  Paul Brook  <paul@codesourcery.com>
4907         * config/arm/bpabi.h (TARGET_DEFAULT): Define.
4908         * config/arm/linux-eabi.h (SUBTARGET_CPU_DEFAULT): Define.
4909
4910         2005-03-07  Daniel Jacobowitz  <dan@codesourcery.com>
4911         * config/arm/arm.c (arm_all_abis): Add aapcs-linux.
4912         (arm_override_options): Use TARGET_AAPCS_BASED.
4913         * config/arm/arm.h (enum arm_abi_type): Add ARM_ABI_AAPCS_LINUX.
4914         (PTRDIFF_TYPE): Use int for AAPCS.
4915         (DEFAULT_SHORT_ENUMS): Use false for aapcs-linux.
4916         * config/arm/linux-eabi.h (ARM_DEFAULT_ABI, WCHAR_TYPE): Define.
4917         (DEFAULT_SHORT_ENUMS): Delete.
4918         * doc/invoke.texi (ARM Options): Document -mabi=aapcs-linux.
4919
4920         2004-12-15  Daniel Jacobowitz  <dan@codesourcery.com>
4921         * config/arm/arm.h (DEFAULT_SHORT_ENUMS): Wrap in #ifndef.
4922         * config/arm/linux-eabi.h (DEFAULT_SHORT_ENUMS): Define to 0.
4923         * config/arm/t-linux-eabi (TARGET_LIBGCC2_CFLAGS): Set to -fPIC.
4924
4925         2004-12-03  Mark Mitchell  <mark@codesourcery.com>
4926         * config/arm/linux-eabi.h (LIBGCC_SPEC): Do not define.
4927
4928         2004-11-22  Mark Mitchell  <mark@codesourcery.com>
4929         * config.gcc (arm*-*-linux-gnueabi): Use __cxa_atexit.
4930
4931         2004-11-19  Mark Mitchell  <mark@codesourcery.com>
4932         * config.gcc (arm*-*-linux-gnueabi): Add it.
4933         * config/arm/bpabi.h (FPUTYPE_DEFAULT): Undefine it before
4934         redefining it.
4935         (TARGET_OS_CPP_BUILTINS): Likeiwse.
4936         * config/arm/linux-eabi.h: New file.
4937         * config/arm/linux-elf.h (LINUX_TARGET_INTERPRETER): New macro.
4938         (LINUX_TARET_LINK_SPEC): Likewise.
4939         (LINK_SPEC): Use it.
4940         * config/arm/t-linux-eabi: New file.
4941
4942 2005-10-08  Steven Bosscher  <stevenb@suse.de>
4943
4944         PR other/22202
4945         * params.def (PARAM_MAX_VARIABLE_EXPANSIONS): Remove superfluous
4946         spaces.
4947         (PARAM_SMS_DFA_HISTORY): Likewise.
4948
4949 2005-10-08  Kazu Hirata  <kazu@codesourcery.com>
4950
4951         PR middle-end/23150
4952         * calls.c (mem_overlaps_already_clobbered_arg_p): New.
4953         (load_register_parameters): Call it.
4954         (check_sibcall_argument_overlap_1): Likewise.
4955         (store_one_arg): Likewise.
4956
4957 2005-10-07  James E. Wilson  <wilson@specifix.com>
4958
4959         * config/ia64/vect.md (ashl<mode>3, ashr<mode>3, lshr<mode>3): Use
4960         DImode not VECINT24 for operand 2.
4961
4962         PR target/23644
4963         * doc/invoke.texi (IA-64 Options, item -mtune): Renamed from
4964         -mtune-arch.
4965
4966         PR target/24193
4967         * config/ia64/ia64.md (movbi, movti_internal, gr_spill_internal,
4968         fr_spill): Use destination_operand for operand 0.
4969
4970 2005-10-07  DJ Delorie  <dj@redhat.com>
4971
4972         * varasm.c (output_constant): Limit error to expanding
4973         conversions.
4974
4975 2005-10-07  Richard Guenther  <rguenther@suse.de>
4976
4977         PR middle-end/24227
4978         * fold-const.c (fold_binary): Fix operand types during folding
4979         of X op (A, Y).  Evaluation order of the side-effects of
4980         X and A are frontend-defined, so ensure we honour that even for
4981         tcc_comparison class operands; eased by removing duplicate code.
4982
4983 2005-10-07  Steve Ellcey  <sje@cup.hp.com>
4984
4985         * stor-layout.c (layout_type): Do not allow alignment of array
4986         elements to be greater than their size.
4987
4988 2005-10-07  Steve Ellcey  <sje@cup.hp.com>
4989
4990         * config.host (hppa*-*-hpux*): Change out_host_hook_obj and
4991         host_xmake_file.
4992         (hppa*-*-linux*): Ditto.
4993         (ia64-*-hpux*): Add out_host_hook_obj and host_xmake_file.
4994         * config/host-hpux.c: New.
4995         * config/x-hpux: New.
4996         * config/pa/x-hpux: Remove.
4997         * config/pa/x-linux: Remove.
4998         * config/pa/pa-host.c: Remove.
4999
5000 2005-10-07  Jeff Law  <law@redhat.com>
5001
5002         * tree-ssa-dom.c (dom_opt_finalize_block): Fix conditions to
5003         determine whether or not to try and thread outgoing edges.
5004
5005 2005-10-07  David Edelsohn  <edelsohn@gnu.org>
5006
5007         * config/rs6000/rs6000.md (eqsi_power): New.
5008         (neg_eq0si): Add TARGET_POWER to final condition.
5009         (neg_eqsi): Same.
5010
5011 2005-10-06  Richard Henderson  <rth@redhat.com>
5012
5013         * config/rs6000/rs6000.c: Revert last change.
5014
5015 2005-10-06  Richard Henderson  <rth@redhat.com>
5016
5017         * config/rs6000/rs6000.c (rs6000_cannot_force_const_mem): New.
5018         (TARGET_CANNOT_FORCE_CONST_MEM): Use it.
5019
5020 2005-10-06  Andrew Pinski  <pinskia@physics.uc.edu>
5021
5022         PR middle-end/22216
5023         PR middle-end/23651
5024         * cfgexpand.c (tree_expand_cfg): After expanding the functions, clear
5025         out return_label and naked_return_label.
5026
5027 2005-10-06  Daniel Berlin  <dberlin@dberlin.org>
5028
5029         * tree-ssa-structalias.c (check_for_overlaps): Fix bug in last
5030         change.
5031
5032 2005-10-06  Richard Henderson  <rth@redhat.com>
5033
5034         PR tree-opt/22237
5035         * tree-inline.c (declare_return_variable): Handle modify_dest not
5036         being a DECL.
5037
5038 2005-10-06  Daniel Berlin  <dberlin@dberlin.org>
5039
5040         Fix PR tree-optimization/22488
5041         * tree-ssa-structalias.c (check_for_overlaps): New function.
5042         (create_variable_info_for): Use it.
5043
5044 2005-10-06  Richard Henderson  <rth@redhat.com>
5045
5046         PR debug/24070
5047         * dwarf2out.c (lookup_filename): Return the result of maybe_emit_file.
5048         (dwarf2out_start_source_file): Print it.
5049
5050 2005-10-06  Geoffrey Keating  <geoffk@apple.com>
5051
5052         * config/t-slibgcc-darwin (SHLIB_MAPFILES): Use '+='.
5053
5054 2005-10-06  Richard Henderson  <rth@redhat.com>
5055
5056         PR 23706
5057         * mode-switching.c (optimize_mode_switching): Clear transp bit
5058         for block with incomming abnormal edges.
5059
5060         * config/sh/sh.c (fpscr_values, emit_fpu_switch): New.
5061         (fpscr_set_from_mem): Use them.
5062         * config/sh/sh.md (fpu_switch0, fpu_switch1): Remove.
5063         (fpscr postinc splitters): Rewrite as peephole2+split.
5064
5065 2005-10-06  David Edelsohn  <edelsohn@gnu.org>
5066
5067         * config/rs6000/rs6000.md (eq<mode>): Add !TARGET_POWER.
5068         (eq<mode>_compare): Same.
5069
5070 2005-10-06  Richard Guenther  <rguenther@suse.de>
5071
5072         PR tree-optimization/24238
5073         * tree-ssa-alias.c (find_used_portions): Handle RESULT_DECL.
5074
5075 2005-10-06  Daniel Jacobowitz  <dan@codesourcery.com>
5076
5077         * acinclude.m4 (gcc_AC_CHECK_TOOL): Handle environment variables
5078         here.  Use AC_PATH_PROG for environment variables instead of
5079         test -x.
5080         * configure.ac: Update calls to gcc_AC_CHECK_TOOL.  Use it for
5081         objdump also.
5082         * configure: Regenerated.
5083
5084 2005-10-06  Richard Earnshaw  <richard.earnshaw@arm.com>
5085
5086         PR target/23783
5087         * arm.md (call): If the address isn't a SYMBOL_REF or a register,
5088         then force it into a register.
5089         (call_value): Likewise.
5090
5091 2005-10-06  Richard Henderson  <rth@redhat.com>
5092
5093         PR 24049
5094         * passes.c (init_optimization_passes): Move pass_lower_vector_ssa
5095         under pass_vectorize.  Clear TODO_ggc_collect from the dce pass
5096         under pass_vectorize.
5097
5098 2005-10-05  Devang Patel  <dpatel@apple.com>
5099
5100         PR Debug/23205
5101         * dbxout.c (dbxout_symbol): Check DECL_RTL_SET_P, after
5102         handling constants. Check NAMESPACE_DECL context for constants.
5103
5104 2005-10-05  Eric Christopher  <echristo@apple.com>
5105
5106         * doc/md.texi (Standard Names): Fix name of pushm1 pattern.
5107
5108 2005-10-05  Richard Henderson  <rth@redhat.com>
5109
5110         PR 23714
5111         * tree-cfg.c (mark_array_ref_addressable_1): New.
5112         (mark_array_ref_addressable): New.
5113         * tree-flow.h (mark_array_ref_addressable): Declare.
5114         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Use it.
5115
5116 2005-10-05  Andrew Pinski  <pinskia@physics.uc.edu>
5117
5118         PR middle-end/20606
5119         PR middle-end/24069
5120         * reload.c (subst_reloads): When adding a REG_LABEL to a
5121         jump instruction, also update JUMP_LABEL.
5122
5123 2005-10-05  David Edelsohn  <edelsohn@gnu.org>
5124
5125         * params.def (PARAM_MAX_GROW_COPY_BB_INSNS): New.
5126         * bb-reorder.c (copy_bb_p): Use it.
5127         * doc/invoke.texi (param table): Add max-grow-copy-bb-insn.
5128
5129 2005-10-05  Richard Henderson  <rth@redhat.com>
5130
5131         PR target/23602
5132         * toplev.c (process_options): Warn about unsupported combinations
5133         of unwind tables and omit-frame-pointer.
5134         * config/i386/i386.c (override_options): Similarly.  Enable
5135         accumulate-outgoing-args if not explicitly disabled.
5136
5137 2005-10-05  Steve Ellcey  <sje@cup.hp.com>
5138
5139         * vect.md (vec_initv2si): Fix typo of V2SF to V2SI.
5140         Handle big endian vs. small endian.
5141         (vec_initv2sf): Handle big endian vs. small endian.
5142         (*vec_extractv2sf_1): Ditto.
5143
5144 2005-10-05  Dale Johannesen  <dalej@apple.com>
5145
5146         * convert.c (convert_to_real):  Don't convert
5147         (float)floor(double d) to floorf((float)d).
5148
5149 2005-10-05  Daniel Jacobowitz  <dan@codesourcery.com>
5150
5151         * config/arm/arm.md (insv): Use gen_int_mode in more places.
5152
5153 2005-10-05  Andrew MacLeod  <amacleod@redhat.com>
5154
5155         PR tree-optimization/18587
5156         * tree-ssa-operands.c (struct opbuild_list_d, OPBUILD_LAST): Delete.
5157         (build_defs, build_uses, build_v_may_defs, build_v_must_defs,
5158         build_vuses): Change to VEC type.
5159         (opbuild_initialize_virtual, opbuild_initialize_real, opbuild_free,
5160         opbuild_num_elems, opbuild_append_real, opbuild_append_virtual,
5161         opbuild_first, opbuild_next, opbuild_elem_real, opbuild_elem_virtual,
5162         opbuild_elem_uid, opbuild_clear, opbuild_remove_elem): Delete.
5163         (get_name_decl): New.  Return DECL_UID of base variable.
5164         (operand_build_cmp): New.  qsort comparison routine.
5165         (operand_build_sort_virtual): New.  Sort virtual build vector.
5166         (init_ssa_operands, fini_ssa_operands): Use VEC routines.
5167         (FINALIZE_OPBUILD_BASE, FINALIZE_OPBUILD_ELEM): Use VEC_Index.
5168         (FINALIZE_BASE): Use get_name_decl.
5169         (finalize_ssa_defs, finalize_ssa_uses, cleanup_v_may_defs,
5170         finalize_ssa_v_may_defs, finalize_ssa_vuses, finalize_ssa_v_must_defs,
5171         (start_ssa_stmt_operands, append_def, append_use, append_vuse,
5172         append_v_may_def, append_v_must_def): Replace opbuild_* routines with
5173         direct VEC_* manipulations.
5174         (build_ssa_operands): Call operand_build_sort_virtual.
5175         (copy_virtual_operand, create_ssa_artficial_load_stmt,
5176         add_call_clobber_ops, add_call_read_ops): Replace opbuild_* routines
5177         with direct VEC_* manipulations.
5178         * tree-ssa-opfinalize.h (FINALIZE_FUNC): Replace opbuild_* routines
5179         with direct VEC manipulations.
5180
5181 2005-10-05  Paolo Bonzini  <bonzini@gnu.org>
5182
5183         PR tree-optimization/21419
5184         PR tree-optimization/24146
5185         PR tree-optimization/24151
5186
5187         * c-typeck.c (readonly_error): Handle USE being lv_asm.
5188         (build_asm_expr): Call it if outputs are read-only.
5189         * gimplify.c (gimplify_asm_expr): Remove former fix to PR 21419.
5190
5191 2005-10-05  Billy Biggs  <billy.biggs@gmail.com>
5192             Paolo Bonzini  <bonzini@gnu.org>
5193
5194         PR target/23809
5195
5196         * doc/extend.texi (x86 Built-ins): Document that -msse and friends
5197         enable the instructions and not just the built-ins.
5198         * doc/invoke.texi (x86 Options): Likewise.
5199
5200 2005-10-04  Geoffrey Keating  <geoffk@apple.com>
5201
5202         * config/i386/t-darwin (SHLIB_VERPFX): Fix typo.
5203
5204         * doc/invoke.texi (Option Summary): Correct spelling
5205         of -mmacosx-version-min.
5206
5207 2005-10-04  Devang Patel  <dpatel@apple.com>
5208
5209         * c-common.c (vector_types_convertible_p): Check TYPE_PRECISION for
5210         real types.
5211
5212 2005-10-04  Steve Ellcey  <sje@cup.hp.com>
5213
5214         * tree-vect-transform.c (vect_create_epilog_for_reduction):
5215         Use BYTES_BIG_ENDIAN instead of BITS_BIG_ENDIAN.
5216
5217 2005-10-04  Adrian Straetling  <straetling@de.ibm.com>
5218
5219         * config/s390/s390.md ("TDSI","DP"): New mode macros.
5220         ("TE","tg"): New mode attributes.
5221         ("sync_compare_and_swap<mode>"): Replace with a define_expand.
5222         ("sync_compare_and_swap<mode>_cc"): Replace GPR with TDSI.
5223         ("*sync_compare_and_swap<mode>_cc"): Replace with one pattern for
5224         dword_mode and one for GPRmode.
5225
5226 2005-10-04  Ian Lance Taylor  <ian@airs.com>
5227
5228         PR preprocessor/13726
5229         * c-ppoutput.c (cb_include): Add comments parameter, and print out
5230         any comments passed in.
5231
5232 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
5233
5234         * tree.c (annotate_with_file_line): Fix typo.
5235
5236 2005-10-04  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
5237
5238         PR ada/19382
5239         * builtins.c (fold_builtin_memcmp): When constructing the pointer
5240         type used to access data in the inlined length == 1 case, use
5241         build_pointer_type_for_mode with CAN_ALIAS_ALL set to true.
5242         (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
5243
5244 2005-10-04  Uros Bizjak  <uros@kss-loka.si>
5245
5246         * config/i386/i386.h (TARGET_FISTTP): Enable also for
5247         TARGET_SSE3 and only for TARGET_80387.
5248         * config/i386/i386.md (fix_trunc<mode>_fisttp_i387_1,
5249         (fix_trunc<mode>_i387_fisttp, fix_trunc<mode>_i387_fisttp_with_temp):
5250         Do not depend on TARGET_80387.
5251
5252 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
5253
5254         * tree.c (last_annotated_node): Change type to location_t*.
5255         (annotate_with_file_line): Reflect the change of
5256         last_annotated_node type.
5257
5258 2005-10-04  Richard Guenther  <rguenther@suse.de>
5259
5260         PR c/23576
5261         * c-decl.c (grokdeclarator): Don't write to fields
5262         of error_mark_node.
5263
5264 2005-10-04  Andrew Pinski  <pinskia@physics.uc.edu>
5265
5266         PR middle-end/23125
5267         * c-decl.c (finish_decl): Use set_user_assembler_name even for
5268         register variables.
5269         * varasm.c (make_decl_rtl): If a register variable does not
5270         have a set user assmbler name, error out.
5271         Decode the asmspec is now name+1 bypassing '*'.
5272
5273 2005-10-04  Steven Bosscher  <stevenb@suse.de>
5274
5275         PR tree-optimization/23049
5276         * tree-ssa-dom.c (thread_across_edge): Make sure that the condition
5277         of a COND_EXPR is folded before calling fold on the whole rhs of a
5278         conditional assignment.
5279         * doc/tree-ssa.texi: Update the GIMPLE grammar for a valid rhs to
5280         document that a COND_EXPR may appear there.
5281
5282 2005-10-03  Diego Novillo  <dnovillo@redhat.com>
5283
5284         PR 23445
5285         * tree-vrp.c (extract_range_from_assert): If the new numeric
5286         range created out of the assertion contradicts the existing
5287         numeric range of the ASSERT_EXPR variable, make the new range
5288         varying.
5289
5290 2005-10-03  Kaz Kojima  <kkojima@gcc.gnu.org>
5291
5292         * config/sh/sh.c (sh_register_move_cost): Add case for moving
5293         from T_REGS to FP register class.
5294
5295 2005-10-03  Richard Henderson  <rth@redhat.com>
5296
5297         PR 24135
5298         * tree-nested.c (convert_nl_goto_reference): Lookup a translation
5299         before creating a new one.
5300
5301 2005-10-03  David Edelsohn  <edelsohn@gnu.org>
5302
5303         * config/rs6000/t-aix43 (LDFLAGS): New.
5304         * config/rs6000/t-aix52 (LDFLAGS): New.
5305
5306 2005-10-03  Ian Lance Taylor  <ian@airs.com>
5307
5308         * gimplify.c (find_single_pointer_decl_1): New static function.
5309         (find_single_pointer_decl): New static function.
5310         (internal_get_tmp_var): For a formal variable, set restrict base
5311         information if appropriate.
5312         * alias.c (find_base_decl): If a VAR_DECL has a restrict base,
5313         return it.
5314         * tree.h (DECL_BASED_ON_RESTRICT_P): Define.
5315         (DECL_GET_RESTRICT_BASE): Define.
5316         (SET_DECL_RESTRICT_BASE): Define.
5317         (decl_restrict_base_lookup): Declare.
5318         (decl_restrict_base_insert): Declare.
5319         (struct tree_decl_with_vis): Add based_on_restrict_p field.
5320         * tree.c (restrict_base_for_decl): New static variable.
5321         (init_ttree): Initialize restrict_base_for_decl.
5322         (copy_node_stat): Copy restrict base information.
5323         (decl_restrict_base_lookup): New function.
5324         (decl_restrict_base_insert): New function.
5325         (print_restrict_base_statistics): New static function.
5326         (dump_tree_statistics): Call print_restrict_base_statistics.
5327
5328 2005-10-02  Diego Novillo  <dnovillo@redhat.com>
5329
5330         PR 24142
5331         * tree-vrp.c (vrp_meet): Fix call to range_includes_zero_p in
5332         case of anti-ranges.
5333
5334 2005-10-02  Andrew Pinski  <pinskia@physics.uc.edu>
5335
5336         PR c/18851
5337         * c-typeck.c (tagged_tu_seen): Rename to ...
5338         (tagged_tu_seen_cache): this and add val field.
5339         (comptypes): Move functional to comptypes_internal
5340         and free tagged_tu_seen.
5341         (comptypes_internal): New function and call comptypes_internal
5342         instead of comptypes. Speed up by sibcalling
5343         tagged_types_tu_compatible_p.
5344         (alloc_tagged_tu_seen): New function
5345         (free_all_tagged_tu_seen_up_to): New function.
5346         (tagged_types_tu_compatible_p): Return the val of the seen two
5347         types.
5348         Add that the two types are the same to tagged_tu_seen_base
5349         if they are and call comptypes_internal instead of comptypes.
5350         <case UNION_TYPE>: Speed up common type where the fields are
5351         in the same order.
5352         (function_types_compatible_p): Call comptypes_internal instead of
5353         comptypes.
5354         (type_lists_compatible_p): Likewise.
5355         (all functions): s/tagged_tu_seen/tagged_tu_seen_cache/.
5356
5357 2005-10-02  Matthias Klose  <doko@debian.org>
5358
5359         * doc/invoke.texi: Fix typo and speling error.
5360
5361 2005-10-01  Richard Henderson  <rth@redhat.com>
5362
5363         * tree-stdarg.c (execute_optimize_stdarg): Process PHI nodes too.
5364
5365 2005-10-01  Mark Mitchell  <mark@codesourcery.com>
5366
5367         * config/arm/unknown-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define
5368         using --start-group and --end-group.
5369
5370 2005-10-01  Diego Novillo  <dnovillo@redhat.com>
5371
5372         * tree-vrp.c (value_inside_range, range_includes_zero_p): Add
5373         FIXME note regarding quirky semantics.
5374
5375 2005-10-01  Diego Novillo  <dnovillo@redhat.com>
5376
5377         PR 24141
5378         * tree-vrp.c (vrp_meet): Clear VR0->EQUIV when building a
5379         non-null range as a last resort.
5380
5381 2005-10-01  James A. Morrison  <phython@gcc.gnu.org>
5382             Diego Novillo  <dnovillo@redhat.com>
5383
5384         PR 23604
5385         * tree-vrp.c (extract_range_from_assert): For !=
5386         assertions, only build an anti-range if LIMIT is a
5387         single-valued range.
5388
5389 2005-09-30  Richard Earnshaw  <richard.earnshaw@arm.com>
5390
5391         * arm.md (movqi): On thumb when optimizing, handle loading from
5392         memory by describing this as taking a subreg of a zero-extended load
5393         into an SImode register.
5394         (movhi): Likewise.
5395
5396 2005-09-30  Daniel Jacobowitz  <dan@codesourcery.com>
5397
5398         * reload1.c (merge_assigned_reloads): Do not change any
5399         RELOAD_FOR_OUTPUT_ADDRESS reloads.
5400
5401 2005-09-30  Geoffrey Keating  <geoffk@apple.com>
5402
5403         * Makefile.in (LIPO_FOR_TARGET): Define.
5404         (STRIP_FOR_TARGET): Define.
5405
5406         * config/t-slibgcc-darwin (libgcc_s_%.dylib): Remove old symlinks
5407         before creating new ones.  Do symlinks before creating the actual
5408         targets.
5409
5410         * config/t-slibgcc-darwin (libgcc_s_%.dylib): Use --print-multi-lib
5411         to work out which multilibs are actually being built.
5412
5413 2005-09-30  Kazu Hirata  <kazu@codesourcery.com>
5414
5415         * tree-vect-transform.c, config/ms1/ms1.md,
5416         config/s390/s390.c, config/v850/v850.md: Fix comment typos.
5417         Follow spelling conventions.
5418         * doc/invoke.texi, doc/md.texi: Fix typos.
5419
5420 2005-09-30  Andrew Macleod  <amacleod@redat.com>
5421
5422         PR tree-optimization/21430
5423         * tree-ssa-operands.c (set_virtual_use_link): New. Link new virtual
5424         use operands, and set stmt pointer if need be.
5425         (FINALIZE_CORRECT_USE: New. Macro to call appropriate use fixup routine.
5426         tree-ssa-opfinalize.h (FINALIZE_FUNC): Call FINALIZE_CORRECT_USE if
5427         present.
5428
5429 2005-09-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5430
5431         PR middle-end/24053
5432         * stor-layout.c (set_sizetype): Set TYPE_MAIN_VARIANT of bitsizetype.
5433
5434 2005-09-29  Mark Mitchell  <mark@codesourcery.com>
5435
5436         * optabs.c (expand_binop): Initialize first_pass_p.
5437
5438 2005-09-29  Jakub Jelinek  <jakub@redhat.com>
5439
5440         PR middle-end/24109
5441         * c-decl.c (c_write_global_declarations_1): If any
5442         wrapup_global_declaration_2 call returned true, restart the loop.
5443
5444 2005-09-29  Daniel Berlin  <dberlin@dberlin.org>
5445
5446         Fix PR tree-optimization/24117
5447         * tree-ssa-structalias.c (find_func_aliases): Strip nops
5448         before considering whether to use anyoffset.
5449
5450 2005-09-29  Paolo Bonzini  <bonzini@gnu.org>
5451
5452         Revert this patch:
5453
5454         2005-09-15  Paolo Bonzini  <bonzini@gnu.org>
5455
5456         * optabs.c (expand_binop): Use swap_commutative_operands_with_target
5457         to order operands.
5458         (swap_commutative_operands_with_target): New.
5459
5460 2005-09-29  Paolo Bonzini  <bonzini@gnu.org>
5461
5462         PR c/21419
5463         * gimplify.c (gimplify_asm_expr): Raise an error if an output is
5464         read-only.
5465
5466 2005-09-29  Steven Bosscher  <stevenb@suse.de>
5467
5468         PR tree-optimization/23911
5469         * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle REALPART_EXPR
5470         and IMAGPART_EXPR too.
5471
5472 2005-09-28  Mark Mitchell  <mark@codesourcery.com>
5473
5474         PR 17886
5475         * expmed.c (expand_shift): Move logic to reverse rotation
5476         direction when  rotating by constants ...
5477         * optabs.c (expand_binop): ... here.
5478         * config/i386/i386.md (rotrdi3): Handle 32-bit mode.
5479         (ix86_rotrdi3): New pattern.
5480         (rotldi3): Handle 32-bit mode.
5481         (ix86_rotldi3): New pattern.
5482
5483 2005-09-29  Alan Modra  <amodra@bigpond.net.au>
5484
5485         PR target/24102
5486         * config/rs6000/rs6000.md (floatdisf2_internal2): Correct range
5487         check for numbers that need no bit twiddle.
5488
5489 2005-09-28  Geoffrey Keating  <geoffk@apple.com>
5490
5491         * config/rs6000/t-darwin8: Uncomment contents, allow -m64
5492         multilib to be built.
5493
5494         * Makefile.in: Export LIPO_FOR_TARGET, STRIP_FOR_TARGET.
5495         (stage1-start): Delete old libgcc and libunwind before moving
5496         anything into the stage directory.
5497         (stage2-start): Likewise.
5498         (stage3-start): Likewise.
5499         (stage4-start): Likewise.
5500         (stageprofile-start): Likewise.
5501         (stagefeedback-start): Likewise.
5502         * config.gcc (*-*-darwin*): Automatically use CPU-specific darwin.h
5503         header in tm_file and CPU-specific t-darwin in tmake_file.
5504         (i[34567]86-*-darwin*): Don't change tm_file.
5505         (powerpc-*-darwin*): Don't change tm_file or tmake_file.
5506         * config/darwin.h (REAL_LIBGCC_SPEC): Rewrite to use proper libgcc
5507         shared library stub for target OS version.
5508         * config/t-slibgcc-darwin (SHLIB_SOLINK): Delete.
5509         (SHLIB_LINK): Don't make SHLIB_SOLINK.
5510         (SHLIB_INSTALL): Don't install SHLIB_SOLINK.
5511         (libgcc_s.%.dylib): New.
5512         (LIBGCC): Define.
5513         (install-darwin-libgcc-stubs): New.
5514         (INSTALL_LIBGCC): New append.
5515         * config/i386/darwin-libgcc.10.4.ver: New.
5516         * config/i386/darwin-libgcc.10.5.ver: New.
5517         * config/i386/t-darwin: New.
5518         * config/rs6000/darwin-libgcc.10.4.ver: New.
5519         * config/rs6000/darwin-libgcc.10.5.ver: New.
5520         * config/rs6000/darwin.h (REAL_LIBGCC_SPEC): Delete.
5521         * config/rs6000/t-darwin (SHLIB_VERPFX): Define.
5522
5523 2005-09-28  Paul Brook  <paul@codesourcery.com>
5524
5525         * config/m68k/fpgnulib.c (__extendsfdf2, __truncdfsf2): Handle
5526         denormals.
5527
5528 2005-09-28  Richard Guenther  <rguenther@suse.de>
5529
5530         PR tree-optimization/23853
5531         * tree-vect-analyze.c (vect_compute_data_ref_alignment): Use
5532         host_integerp to verify misalignment value.
5533
5534 2005-09-28  Richard Henderson  <rth@redhat.com>
5535
5536         * builtins.c (get_builtin_sync_mode): New.
5537         (expand_builtin_sync_operation): Pass in mode argument.
5538         (expand_builtin_compare_and_swap): Likewise.
5539         (expand_builtin_lock_test_and_set): Likewise.
5540         (expand_builtin_lock_release): Likewise.
5541         (expand_builtin): Update to match.
5542
5543 2005-09-28  Nick Clifton  <nickc@redhat.com>
5544
5545         * config/v850/v850.h (GO_IF_LEGITIMATE_ADDRESS): Tidy up
5546         formatting.  Add check to PLUS case to ensure that the offset is
5547         within an acceptable range.
5548
5549         * config/v850/v850.md (casesi): Disable the generation of the
5550         switch pattern as it is not being handled properly at the moment.
5551
5552         * config/v850/lib1funcs.asm (___ucmpdi2): Correct jump instruction
5553         for when the high words are identical.
5554
5555 2005-09-27  Richard Henderson  <rth@redhat.com>
5556
5557         * pretty-print.c (pp_base_format): Fix typo for %>.
5558
5559 2005-09-27  Daniel Berlin  <dberlin@dberlin.org>
5560             Devang Patel  <dpatel@apple.com>
5561
5562         PR tree-optimization/23625
5563         * tree-flow-inline.h (bsi_after_labels): Remove, first statement is
5564         LABEL_EXPR, assertion check.
5565
5566 2005-09-27  J"orn Rennecke <joern.rennecke@st.com>
5567
5568         * optabs.c (no_conflict_move_test): Check if a result of a
5569         to-be-moved insn would be clobbered by an originally
5570         preceding insn.
5571
5572 2005-09-27  Jeff Law  <law@redhat.com>
5573
5574         * passes.c (init_optimization_passes): Replace copy propagation
5575         passes immediately after DOM with phi-only copy propagation
5576         pases.  Add phi-only copy propagation pass after first DOM pass.
5577         * tree-pass.h (pass_phi_only_copy_prop): Declare.
5578         * tree-ssa-copy.c (init_copy_prop): Accept new PHI_ONLY argument.
5579         If true, then mark all non-control statements with DONT_SIMULATE_AGAIN.
5580         (execute_copy_prop): Accept new PHI_ONLY argument.  Pass it along
5581         to init_copy_prop.  Callers updated.
5582         (do_phi_only_copy_prop): New function.
5583         (pass_phi_only_copy_prop): New pass descriptor.
5584
5585 2005-09-27  Nick Clifton  <nickc@redhat.com>
5586
5587         * libgcc2.c (__popcount_tab): Remove redundant prototype.
5588
5589 2005-09-26  Jason Merrill  <jason@redhat.com>
5590
5591         PR c++/13764
5592         * c-common.c (finish_fname_decls): Use append_to_statement_list_force.
5593
5594         * doc/invoke.texi: Clarify documentation of -fno-enforce-eh-specs.
5595
5596 2005-09-26  James E Wilson  <wilson@specifix.com>
5597
5598         * config/ia64/crtbegin.asm, config/ia64/crtend.asm: Remove glibc
5599         copyright.  Add gcc copyright plus libgcc exception.
5600         * config/ia64/crtfastmath.asm: Remove glibc copyright.  Add gcc
5601         copyright.
5602         * config/ia64/lib1funcs.asm: Add gcc copyright plus libgcc exception.
5603
5604 2005-09-26  Jeff Law  <law@redhat.com>
5605
5606         * tree-ssa-dom.c (tree_ssa_dominator_optimize): Be more selective
5607         about when to iterate.
5608
5609 2005-09-23  Fariborz Jahanian <fjahanian@apple.com>
5610
5611         PR target/23847
5612         * config/rs6000/rs6000.c (rs6000_function_value): Parallel pattern
5613         for __complex__ double in -mcpu=G5 mode.
5614
5615 2005-09-26  Sebastian Pop  <pop@cri.ensmp.fr>
5616
5617         PR tree-optimization/23942
5618         * Makefile.in (SCEV_H): Depends on PARAMS_H.
5619         * tree-scalar-evolution.c: Include params.h.
5620         (t_bool): New enum.
5621         (follow_ssa_edge, follow_ssa_edge_in_rhs,
5622         follow_ssa_edge_in_condition_phi_branch,
5623         follow_ssa_edge_in_condition_phi, follow_ssa_edge_inner_loop_phi):
5624         Change return type to t_bool.  Use a parameter to limit the size of
5625         trees that are walked before stopping
5626         (analyze_evolution_in_loop): Initialize the limit to 0.
5627         (follow_ssa_edge): Give up by returning t_dont_know if the limit
5628         exceeds PARAM_SCEV_MAX_EXPR_SIZE.
5629
5630 2005-09-26  Uros Bizjak  <uros@kss-loka.si>
5631
5632         PR middle-end/23831
5633         * simplify-rtx.c (simplify_immed_subreg) [MODE_INT]: Skip
5634         simplification if elem_bitsize > 2 * HOST_BITS_PER_WIDE_INT.
5635
5636 2005-09-26    Fariborz Jahanian <fjahanian@apple.com>
5637
5638         * combine.c (make_extraction): Check for valid use of subreg.
5639
5640 2005-09-26  Uros Bizjak  <uros@kss-loka.si>
5641
5642         PR target/24055
5643         * config/i386/i386.md ("*fistdi2_1"): New pattern.
5644         ("*fist<mode>2_1"): Use only HImode and SImode register operands.
5645         ("fist<mode>2_with_temp"): Use only register operands.
5646
5647 2005-09-26  J"orn Rennecke <joern.rennecke@st.com>
5648
5649         * rtlanal.c (reg_used_between_p): Don't check for CLOBBERs in
5650         CALL_INSN_FUNCTION_USAGE.
5651
5652 2005-09-26  Richard Guenther  <rguenther@suse.de>
5653
5654         PR middle-end/15855
5655         * gcse.c: Include hashtab.h, define ldst entry hashtable.
5656         (pre_ldst_expr_hash, pre_ldst_expr_eq): New functions.
5657         (ldst_entry): Use the hashtable instead of list-walking.
5658         (find_rtx_in_ldst): Likewise.
5659         (free_ldst_entry): Free the hashtable.
5660         (compute_ld_motion_mems): Create the hashtable.
5661         (trim_ld_motion_mems): Remove entry from hashtable if
5662         removing it from list.
5663         (compute_store_table): Likewise^2.
5664         (store_motion): Free hashtable in case we did not see
5665         any stores.
5666
5667 2005-09-25  Kazu Hirata  <kazu@codesourcery.com>
5668
5669         * fold-const.c (fold_binary): Use op0 and op1 instead of arg0
5670         and arg1 if we are passing them to fold_build2.
5671
5672 2005-09-25  Dan Nicolaescu  <dann@ics.uci.edu>
5673
5674         PR 23828
5675         * config/i386/i386.c (ix86_function_regparm): Fix the test for
5676         a nested function.
5677
5678 2005-09-25  Richard Henderson  <rth@redhat.com>
5679
5680         * config/alpha/alpha.c (tls_symbolic_operand_1): Trust
5681         SYMBOL_REF_TLS_MODEL to be correct.
5682
5683 2005-09-24  Richard Henderson  <rth@redhat.com>
5684
5685         * ipa-type-escape.c (discover_unique_type): Remove dead code at
5686         end of function.  Reindent.
5687
5688 2005-09-24  Ian Lance Taylor  <ian@airs.com>
5689
5690         * convert.c (convert_to_integer): Don't test for ENUMERAL_TYPE in
5691         NEGATE_EXPR/BIT_NOT_EXPR case.
5692
5693 2005-09-24  Richard Henderson  <rth@redhat.com>
5694
5695         * c-common.c (handle_mode_attribute): When not modifying in place,
5696         create subtypes for enumerations.
5697         (sync_resolve_return): Use TYPE_MAIN_VARIANT.
5698         * gimplify.c (create_tmp_from_val): Likewise.
5699
5700 2005-09-24  Alexandre Oliva  <aoliva@redhat.com>
5701
5702         * config/i386/i386.md (*tls_global_dynamic_64,
5703         *tls_local_dynamic_base_64): Add missing mode to call.
5704         (tls_global_dynamic_64, tls_local_dynamic_base_64): Likewise.
5705
5706 2005-09-24  Jan Hubicka  <jh@suse.cz>
5707
5708         * cgraph.c (cgraph_clone_edge): Make the scale gcov_type.
5709         (cgraph_clone_node): Likewise.
5710         * cgraph.h (cgraph_clone_edge): Update prototype.
5711         (cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Remove
5712         duplicated prototypes; add updating argument.
5713         * cgraphunit.c (verify_cgraph_node): Verify that counts are non-negative.
5714         * ipa-inline.c (cgraph_clone_inlined_nodes): Allow clonning without
5715         updating profile.
5716         (cgraph_mark_inline_edge): Likewise.
5717         (cgraph_mark_inline): Update use of cgraph_mark_inline_edge.
5718         (cgraph_flatten_node): Likewise.
5719         (cgraph_decide_recursive_inlining): Likewise.
5720         (cgraph_decide_inlining_of_small_function): Likewise.
5721         * tree-optimize.c (tree_rest_of_compilation): Likewise.
5722
5723 2005-09-23  David Edelsohn  <edelsohn@gnu.org>
5724             Pete Steinmetz <steinmtz@us.ibm.com>
5725
5726         * config/rs6000/rs6000.md (neg-minus-mult): Set type to dmul.
5727         (rldic.): Set type to "compare".
5728         (rldicr.): Same.
5729         (movsf_hardfloat): Set type to mtjmpr for MTCTR/MTLR.  Set type to
5730         mfjmpr for MFCTR/MFLR.
5731         (movdf_hardfloat64): Same.
5732         (movdf_softfloat64): Same.  Correct order of store and move types.
5733         (movti_string): Set type to store_ux/load_ux.
5734         (load_multiple): Set type to load_ux.
5735         (store_multiple): Set type to store_ux.
5736         (movmemsi): Set type to store_ux.
5737         (output_cbranch direct_return): Set type to jmpreg.
5738         (stmw): Set type to store_ux.
5739         (lmw): Set type to load_ux.
5740         * config/rs6000/40x.md (ppc403-store): Increase latency to 2.
5741         * config/rs6000/440.md (ppc440-store): Increase latency to 6.
5742         * config/rs6000/603.md (ppc603-store): Occupy LSU for 2 cycles.
5743         * config/rs6000/6xx.md (ppc604-store): Increase latency to 3.
5744         * config/rs6000/mpc.md (mpccore-store): Increase latency to 2.
5745         * config/rs6000/rios1.md (rios1-store): Increase latency to 2.
5746         (rios1-fpstore): Increase latency to 3.
5747         * config/rs6000/rios2.md (rios2-store): Increase latency to 2.
5748         * config/rs6000/rs64.md (rs64a-store): Increase latency to 2.
5749
5750 2005-09-23  David Edelsohn  <edelsohn@gnu.org>
5751             Andrew Pinski  <pinskia@physics.uc.edu>
5752
5753         * config/rs6000/sync.md (sync_<fetchop_name>si_internal): Change
5754         operand2 constraint to "b".
5755         (sync_<fetchop_name>di_internal): Same.
5756         (sync_old_<fetchop_name>si_internal): Change operand3 constraint
5757         to "b".
5758         (sync_old_<fetchop_name>di_internal): Same.
5759         (sync_new_<fetchop_name>si_internal): Same.
5760         (sync_new_<fetchop_name>di_internal): Same.
5761
5762 2005-09-23  J"orn Rennecke <joern.rennecke@st.com>
5763
5764         PR middle-end/23991
5765         * final.c (insn_default_length, insn_min_length): In !HAVE_ATTR_length
5766         case, define as macros.
5767
5768         PR rtl-optimization/23837
5769         *  optabs.c (no_conflict_move_test): Don't set must_stay for a
5770         clobber / clobber match between dest and p->first.
5771
5772         * optabs.c (emit_libcall_block): Use no_conflict_move_test.
5773         (no_conflict_move_test): Update comments.
5774
5775 2005-09-22  Ranjit Mathew  <rmathew@gcc.gnu.org>
5776
5777         * doc/install.texi: Update URL for Jacks.
5778         * doc/sourcebuild.texi: Likewise.
5779
5780 2005-09-22  David Edelsohn  <edelsohn@gnu.org>
5781
5782         PR target/24007
5783         * config/rs6000/rs6000.md (movsf_hardfloat): Ignore special
5784         registers when choosing register preferences.
5785         (movdf_hardfloat64): Same.
5786
5787 2005-09-22  Andreas Krebbel  <krebbel1@de.ibm.com>
5788
5789         * expmed.c (expand_shift): Don't use the target of the rotate as
5790         target for the first expanded shift insn.
5791         * testsuite/gcc.dg/20050922-1.c: Testcase added.
5792
5793 2005-09-21  Zdenek Dvorak  <dvorakz@suse.cz>
5794
5795         PR tree-optimization/22438
5796         * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Handle all
5797         preserved iv rhs rewriting specially.
5798
5799 2005-09-21  Daniel Berlin  <dberlin@dberlin.org>
5800
5801         * tree-data-ref.c (analyze_array_indexes): Only estimate when
5802         estimate_only  is true.
5803         * tree-flow.h (ref_contains_indirect_ref): New prototype.
5804         * tree-flow-inline.h (ref_contains_indirect_ref): Moved from
5805         tree-ssa-structalias.c
5806         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Use
5807         ref_contains_indirect_ref.
5808         * tree-ssa-structalias.c (ref_contains_indirect_ref): Moved.
5809
5810 2005-09-21  DJ Delorie  <dj@redhat.com>
5811
5812         * config/mn10300/mn10300.c (TARGET_DEFAULT_TARGET_FLAGS): Add
5813         MASK_PTR_A0D0.
5814         (mn10300_return_in_memory): Support variable size types also.
5815         (mn10300_pass_by_reference): Likewise.
5816         (mn10300_function_value): New.
5817         * config/mn10300/mn10300.h (FUNCTION_VALUE): Call the above.
5818         (FUNCTION_OUTGOING_VALUE): Likewise.
5819         * config/mn10300/mn10300.opt: Add -mreturn-pointer-on-d0.
5820         * doc/invoke.texi: Document it.
5821
5822 2005-09-21  Uros Bizjak  <uros@kss-loka.si>
5823
5824         PR target/22585
5825         * config/i386/i386.c (ix86_prepare_fp_compare_args): Do not
5826         force integer op1 into register for XFmode compares.
5827
5828 2005-09-21  Kazu Hirata  <kazu@codesourcery.com>
5829
5830         PR middle-end/23971
5831         * expmed.c (alg_code): Add alg_impossible.
5832         (alg_hash_entry): Add cost.
5833         (synth_mult): Record alg_impossible in the hash table if
5834         multiplication by a given integer is impossble within the
5835         limit.  Speed up using alg_impossible.
5836
5837 2005-09-20  Daniel Berlin  <dberlin@dberlin.org>
5838
5839         * tree-ssa-structalias.c (get_constraint_for_component_ref): Add
5840         argument.  Allow and set any offset if needs_anyoffset is passed
5841         in.
5842         (get_constraint_for): Add argument here too.
5843         Pass it down.
5844         (do_structure_copy): Pass NULL to get_constraint_for.
5845         (handle_ptr_arith): Ditto.
5846         (find_func_aliases): Ditto.
5847
5848 2005-09-20  J"orn Rennecke <joern.rennecke@st.com>
5849
5850         PR rtl-optimization/23898
5851         * output.h (get_attr_min_length): Declare.
5852         * final.c (get_attr_length_1): New function, broken out of:
5853         (get_attr_length).
5854         (get_attr_min_length): New function.
5855         * bb-reorder.c (copy_bb_p, get_uncond_jump_length): Use it.
5856         (duplicate_computed_gotos): Likewise.
5857         * genattr.c (insn_min_length): Generate declaration.
5858         * genattrtab.c (min_fn, min_attr_value): New functions.
5859         (make_length_attrs): Generate insn_min_length.
5860
5861 2005-09-20  Steve Ellcey  <sje@cup.hp.com>
5862
5863         * config/pa/pa.c (output_cbranch): Check for zero in operands[2].
5864
5865 2005-09-20  Richard Henderson  <rth@redhat.com>
5866
5867         PR tree-optimization/24059
5868         * expr.c (expand_expr_real_1) <INDIRECT_REF>: Allow modifier
5869         EXPAND_STACK_PARM.
5870
5871 2005-09-20  Joseph S. Myers  <joseph@codesourcery.com>
5872
5873         * c.opt (fextended-identifiers): New.
5874         * c-opts.c (c_common_handle_option): Handle
5875         -fextended-identifiers.
5876         * doc/cpp.texi: Update documentation of extended identifiers.
5877         * doc/cppopts.texi (-fextended-identifiers): Document.
5878
5879 2005-09-20  Jakub Jelinek  <jakub@redhat.com>
5880
5881         PR tree-optimization/23929
5882         * tree-ssa-loop-niter.c (expand_simple_operations): Return immediately
5883         if expr is NULL.
5884
5885         PR tree-optimization/23818
5886         * tree-stdarg.c (execute_optimize_stdarg): Call
5887         calculate_dominance_info.
5888
5889 2005-09-20  Daniel Berlin  <dberlin@dberlin.org>
5890
5891         * tree-data-ref.c (get_number_of_iters_for_loop): New function.
5892         (analyze_siv_subscript_cst_affine): Add weak SIV test.
5893         (compute_overlap_steps_for_affine_1_2): Use
5894         get_number_of_iters_for_loop.
5895         (analyze_subscript_affine_affine): Check whether difference is
5896         zero first.
5897         Use get_number_of_iters_for_loop.
5898         Check whether overlap occurs outside of bounds.
5899         (analyze_miv_subscript): Use get_number_of_iters_for_loop.
5900
5901 2005-09-20  Andreas Krebbel  <krebbel1@de.ibm.com>
5902
5903         * tree-ssa-address.c (create_mem_ref): Put the symbol reference into the
5904         base register if possible.
5905
5906 2005-09-20  Zdenek Dvorak  <dvorakz@suse.cz>
5907
5908         PR tree-optimization/18463
5909         * tree-chrec.c (chrec_convert): Return fold_converted chrec if
5910         converting it directly is not possible.
5911         (chrec_convert_aggressive): New function.
5912         * tree-chrec.h (chrec_convert_aggressive): Declare.
5913         * tree-scalar-evolution.c (instantiate_parameters_1, resolve_mixers):
5914         Fold chrec conversions aggressively if asked to.
5915         (instantiate_parameters): Modified because of changes in
5916         instantiate_parameters_1.
5917
5918 2005-09-19  Richard Henderson  <rth@redhat.com>
5919
5920         * config/i386/sse.md (reduc_splus_v4sf): Rename from reduc_plus_v4sf.
5921         (reduc_splus_v2df): New.
5922
5923 2005-09-19  Richard Sandiford  <richard@codesourcery.com>
5924
5925         * config/arm/aof.h (REGISTER_NAMES): Add missing backslash.
5926         (ADDITIONAL_REGISTER_NAMES): Add missing comma.  Remove final comma.
5927
5928 2005-09-19  Richard Henderson  <rth@redhat.com>
5929
5930         * config/i386/sse.md (vcondu<SSEMODE124>): Rename from
5931         vcondu<SSEMODE12>.
5932
5933 2005-09-19  Richard Henderson  <rth@redhat.com>
5934
5935         * config/ia64/ia64.c (ia64_expand_widen_sum): New.
5936         (ia64_expand_dot_prod_v8qi): New.
5937         * config/ia64/ia64-protos.h: Update.
5938         * config/ia64/vect.md (pmpy2_r, pmpy2_l, widen_usumv8qi3,
5939         widen_usumv4hi3, widen_ssumv8qi3, widen_ssumv4hi3, udot_prodv8qi,
5940         sdot_prodv8qi, sdot_prodv4hi): New.
5941         (reduc_splus_v2sf): Rename from reduc_plus_v2sf.
5942
5943 2005-09-19  Richard Henderson  <rth@redhat.com>
5944
5945         PR 23941
5946         * real.c (exact_real_truncate): Return false if the format cannot
5947         represent the number as a normal.
5948
5949         * config/alpha/alpha.c (alpha_rtx_costs) <FLOAT_EXTEND>: Cost 0
5950         for a memory source.
5951
5952 2005-09-19  Dorit Nuzman  <dorit@il.ibm.com>
5953
5954         * tree-ssa-operands.c (swap_tree_operands): Export.
5955         * tree.h (swap_tree_operands): Declare.
5956         * tree-vectorizer.c (vect_is_simple_reduction): Remove ATTRIBUTE_UNUSED.
5957         Call swap_tree_operands.
5958
5959 2005-09-19  Richard Henderson  <rth@redhat.com>
5960
5961         * tree-flow.h (merge_alias_info): Declare.
5962         * tree-ssa-copy.c (merge_alias_info): Export.
5963         * tree-vect-transform.c (vect_create_index_for_vector_ref): Remove.
5964         (vect_create_data_ref_ptr): Use create_iv directly.
5965         (vectorizable_load): Use correct types for integer constants.
5966         (vect_generate_tmps_on_preheader): Likewise.
5967         (vect_gen_niters_for_prolog_loop): Likewise.
5968
5969 2005-09-19  Steven Bosscher  <stevenb@suse.de>
5970
5971         PR rtl-optimization/23943
5972         * cse.c (find_best_addr): Never propagate an EXPR_LIST rtx.
5973
5974 2005-09-18  Jan Hubicka  <jh@suse.cz>
5975
5976         * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK.
5977
5978 2005-09-18  Eric Botcazou  <ebotcazou@adacore.com>
5979
5980         * varasm.c (output_constant): Do not abort on conversions to union
5981         types between different sizes.
5982
5983 2005-09-18  Richard Guenther  <rguenther@suse.de>
5984
5985         PR middle-end/23944
5986         * gimplify.c (fold_indirect_ref_rhs): Fix thinko in
5987         fallback.
5988
5989 2005-09-18  Paul Brook  <paul@codesourcery.com>
5990
5991         * config/m68k/fpgnuib.c (__floatsidf): Don't rely on signed overflow.
5992
5993 2005-09-17  Richard Henderson  <rth@redhat.com>
5994
5995         * tree-pass.h, tree-flow.h, tree-ssa-dce.c: Revert last change.
5996         * tree-ssa-loop.c (pass_vect_dce): Remove.
5997         * passes.c (init_optimization_passes): Add pass_dce as a sub-pass
5998         of pass_vectorize.
5999
6000 2005-09-17  Richard Henderson  <rth@redhat.com>
6001
6002         * tree-pass.h (pass_vect_dce): Declare.
6003         * passes.c (init_optimization_passes): Add it.
6004         * tree-flow.h (tree_ssa_dce): Declare.
6005         * tree-ssa-dce.c (tree_ssa_dce): Export.
6006         * tree-ssa-loop.c (tree_vectorize): Move current_loops check ...
6007         (gate_tree_vectorize): ... here.
6008         (pass_vect_dce): New.
6009
6010 2005-09-17  Jan Hubicka  <jh@suse.cz>
6011
6012         * except.c (struct eh_status): Turn region_array into vec.
6013         (expand_resx_expr, collect_eh_region_array, remove_unreachable_regions,
6014         convert_from_eh_region_ranges, find_exception_handler_labels,
6015         current_function_has_exception_handlers, assign_filter_values,
6016         build_post_landing_pads, dw2_build_landing_pads,
6017         sjlj_find_directly_reachable_regions, sjlj_mark_call_sites,
6018         sjlj_emit_dispatch_table, remove_eh_handler, for_each_eh_region,
6019         foreach_reachable_handler, can_throw_internal_1,
6020         convert_to_eh_region_ranges, verify_eh_tree): Update uses of
6021         region_array.
6022         (duplicate_eh_region_1): Update region_array.
6023         (duplicate_eh_regions): Resize region_array and avoid recomputing.
6024
6025 2005-09-17  David Edelsohn  <edelsohn@gnu.org>
6026
6027         PR middle-end/22067
6028         * expmed.c (expand_mult): Substitute simple register for op0 when
6029         computing max_cost.
6030
6031 2005-09-17  Richard Henderson  <rth@redhat.com>
6032
6033         * expr.c (emit_move_via_integer): Add force argument, pass it on
6034         to emit_move_change_mode.  Update callers.
6035         (emit_move_complex): Pass true to new force argument.
6036         * function.c (expand_function_end): Move expand_eh_return call
6037         earlier.  Merge sub-word complex values into a pseudo before
6038         copying to the return hard register.
6039
6040 2005-09-17  Eric Botcazou  <ebotcazou@adacore.com>
6041
6042         * varasm.c (output_constant): Do not abort on VIEW_CONVERT_EXPRs
6043         between different sizes.
6044
6045 2005-09-16  Paolo Bonzini  <bonzini@gnu.org>
6046
6047         PR 23903
6048
6049         * passes.c (init_optimization_passes): Register dump files for
6050         IPA passes first.
6051
6052 2005-09-16  Andreas Krebbel  <krebbel1@de.ibm.com>
6053
6054         * config/s390/s390-protos.h (s390_overlap_p): Prototype added.
6055         * config/s390/s390.c (s390_overlap_p): New function.
6056         * config/s390/s390.md ("*mvc" peephole2, "*nc" peephole2, "*oc"
6057         peephole2, "*xc" peephole2): Added overlap check to the peephole2
6058         condition.
6059
6060 2005-09-16  Richard Guenther  <rguenther@suse.de>
6061
6062         * ipa-pure-const.c (static_execute): Free auxiliar information.
6063         * ipa-type-escape.c (discover_unique_type): Free temporary key.
6064         * tree-vrp.c (remove_range_assertions): Free blocks_visited sbitmap.
6065
6066 2005-09-15  DJ Delorie  <dj@redhat.com>
6067
6068         * config/m32c/m32c-lib1.S (__m32c_eh_return): Fix typo.
6069
6070 2005-09-15  Paolo Bonzini  <bonzini@gnu.org>
6071
6072         * optabs.c (expand_binop): Use swap_commutative_operands_with_target
6073         to order operands.
6074         (swap_commutative_operands_with_target): New.
6075
6076 2005-09-15  Daniel Berlin  <dberlin@dberlin.org>
6077
6078         * tree-data-ref.c (analyze_array_indexes): Add estimate_only
6079         parameter.
6080         Update callers.
6081         (estimate_iters_using_array): New function.
6082         * tree-data-ref.h (estimate_iters_using_array): Prototype
6083         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined):
6084         Use estimate_iters_using_array instead of analyze_array.
6085
6086 2005-09-15  Eric Botcazou  <ebotcazou@adacore.com>
6087
6088         * tree-nested.c (get_frame_type): Mark the "non-local frame structure"
6089         as addressable.
6090
6091 2005-09-15  Michael Matz  <matz@suse.de>
6092
6093         * tree-vrp.c (vrp_int_const_binop <MINUS_EXPR>): Handle 0 - -INF.
6094
6095 2005-09-14  Daniel Berlin  <dberlin@dberlin.org>
6096
6097         PR tree-optimization/23835
6098         * tree-ssa-alias.c (sort_pointers_by_pt_vars): New function.
6099         (create_name_tags): Rewrite to be not O(num_ssa_names^2).
6100
6101 2005-09-14  Richard Henderson  <rth@redhat.com>
6102
6103         * config/ia64/vect.md (addv2sf3, subv2sf3): Rewrite as expand.
6104         (addv2sf3_1, addv2sf3_2, subv2sf3_1, subv2sf3_2): New.
6105
6106 2005-09-14  Andrew Pinski  <pinskia@physics.uc.edu>
6107
6108         * config/i386/i386.c (contains_128bit_aligned_vector_p): Add break
6109         in the ARRAY_TYPE case.
6110
6111 2005-09-14  Eric Botcazou  <ebotcazou@adacore.com>
6112
6113         * tree.c (substitute_in_expr, case 4): New case, for ARRAY_REF.
6114
6115 2005-09-14  Uros Bizjak  <uros@kss-loka.si>
6116
6117         PR middle-end/22480
6118         * tree-vect-transform.c (vectorizable_operation): Return false for
6119         scalar shift operations and for vector shift operations with
6120         non-invariant shift arguments.  Use scalar tree operand op1 as
6121         a shift operand when vector shift insn pattern uses scalar shift
6122         operand.
6123         * Makefile.in (tree-vect-transform.o): Depend on recog.h.
6124
6125 2005-09-14  Olivier Hainque  <hainque@adacore.com>
6126
6127         * gimplify.c (gimplify_init_ctor_eval): Don't discard a zero-sized
6128         value if it has side-effects.
6129
6130 2005-09-14  David Edelsohn  <edelsohn@gnu.org>
6131
6132         PR target/22068
6133         * config/rs6000/rs6000.md (muldi3): Add mulli alternative.
6134
6135 2005-09-14  Alan Modra  <amodra@bigpond.net.au>
6136
6137         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Treat function name
6138         passed as NAME as if it were label at start of function code.
6139
6140 2005-09-13  Kaz Kojima  <kkojima@gcc.gnu.org>
6141
6142         * config/sh/sh.md (*movv4sf_i): Add general register cases to
6143         the constraints.
6144
6145 2005-09-13  Andrew Pinski  <pinskia@physics.uc.edu>
6146
6147         * config/rs6000/darwin.md (movdf_low_si): Mark the outgoing r constraint
6148         as early clobber.  Rewrite so the PIC register is not implicitly used.
6149
6150 2005-09-13  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
6151
6152         * tree.c (annotate_with_file_line): Compare line numbers before
6153         file names.
6154
6155 2005-09-13  Uros Bizjak  <uros@kss-loka.si>
6156
6157         PR target/23816
6158         * config/i386/sse.md (*ieee_sminv4sf3, *ieee_smaxv4sf3)
6159         (*ieee_sminv2df3, *ieee_smaxv2df3): New insn patterns.
6160
6161 2005-09-13  Ian Lance Taylor  <ian@airs.com>
6162
6163         * loop-doloop.c (doloop_modify): Use GEN_INT to pass an rtx rather
6164         than a HOST_WIDEST_INT to gen_doloop_begin.
6165
6166 2005-09-13  Diego Novillo  <dnovillo@redhat.com>
6167
6168         * tree-dfa.c (dump_variable): Guard against NULL annotations.
6169
6170 2005-09-13  Zdenek Dvorak  <dvorakz@suse.cz>
6171
6172         PR tree-optimize/23817
6173         * tree-cfg.c (tree_merge_blocks): Preserve loop closed ssa.
6174
6175 2005-09-13  Alan Modra  <amodra@bigpond.net.au>
6176
6177         PR target/23774
6178         * config/rs6000/rs6000.md (restore_stack_block): Write the backchain
6179         word before changing the stack pointer.  Use gen_frame_mem for MEMs.
6180         Use UNSPEC_TIE to prevent insn scheduling reordering the insns.
6181         (restore_stack_nonlocal): Likewise.
6182         (save_stack_nonlocal): Use template to emit insns, and gen_frame_mem.
6183
6184 2005-09-12  Ian Lance Taylor  <ian@airs.com>
6185
6186         PR g++/7874
6187         * c.opt (ffriend-injection): New C++ option.
6188         * doc/invoke.texi (Option Summary): Mention -ffriend-injection.
6189         (C++ Dialect Options): Document -ffriend-injection.
6190
6191 2005-09-12  Josh Conner  <jconner@apple.com>
6192
6193         PR middle-end/23237
6194         * ipa-reference.c (static_execute): Don't mark variables in
6195         named sections TREE_READONLY.
6196
6197 2005-09-12  Alan Modra  <amodra@bigpond.net.au>
6198
6199         * config/rs6000/rs6000.c (get_next_active_insn): Simplify test for
6200         stack_tie.
6201
6202 2005-09-12  Andrew Pinski  <pinskia@physics.uc.edu>
6203
6204         * tree-ssa-dse.c (dse_optimize_stmt): Fix up all of V_MAY_DEF and
6205         V_MUST_DEF instead of just the first_use_p.
6206         Don't mark the virtual variables for renaming on the statement which
6207         is being removed.
6208         (pass_dse): Remove TODO_update_ssa.
6209
6210 2005-09-12  J"orn Rennecke <joern.rennecke@st.com>
6211
6212         PR middle-end/23290
6213         * stor-layout.c (compute_record_mode): For records with a single
6214         field, actually check the field's mode size against the type size.
6215
6216         * sh.h (HARD_REGNO_MODE_OK): Allow V4SFmode in general purpose
6217         registers for TARGET_SHMEDIA.
6218         (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Rename
6219         GENERAL_FP_REGS to GENERAL_DF_REGS.  Add GENERAL_FP_REGS as union
6220         of GENERAL_REGS and FP_REGS.
6221
6222 2005-09-12  Bernd Schmidt  <bernd.schmidt@analog.com>
6223
6224         * config/bfin/bfin.c (legimitize_pic_address): Use gen_const_mem.
6225
6226 2005-09-12  Alan Modra  <amodra@bigpond.net.au>
6227
6228         * config/rs6000/rs6000.c (get_next_active_insn): Rewrite using
6229         CALL_P, JUMP_P and NONJUMP_INSN_P, so that barriers and labels
6230         are omitted.  Exclude stack_tie insn too.
6231
6232 2005-09-11  David Edelsohn  <edelsohn@gnu.org>
6233
6234         PR rtl-optimization/23098
6235         * config/rs6000/predicates.md (easy_fp_constant): SFmode constant
6236         0.0f is easy.
6237         * config/rs6000/rs6000.md (movdf splitter): Use
6238         const_double_operand predicate for TARGET_POWERPC64.
6239         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Expand
6240         SYMBOL_REF method to ABI_V4.
6241
6242         * config/rs6000/altivec.md (build_vector_mask_for_load): Use
6243         replace_equiv_address.
6244         * config/rs6000/rs6000.c (rs6000_emit_eh_reg_restore): Mark MEM as
6245         rs6000_sr_alias_set and MEM_NOTRAP.
6246         (rs6000_aix_emit_builtin_unwind_init): Use gen_frame_mem().
6247
6248 2005-09-11  Eric Botcazou  <ebotcazou@adacore.com>
6249
6250         * tree.c (contains_placeholder_p) <tcc_expression>: Properly
6251         handle CALL_EXPR again.
6252
6253 2005-09-11  Richard Earnshaw  <richard.earnshaw@arm.com>
6254
6255         * arm/predicates.md (alignable_memory_operand): Delete.
6256
6257 2005-09-10  Richard Henderson  <rth@redhat.com>
6258
6259         PR debug/23806
6260         * dbxout.c (dbxout_expand_expr): New.
6261         (dbxout_symbol): Use it.
6262
6263 2005-09-10  Richard Earnshaw  <richard.earnshaw@arm.com>
6264
6265         * arm.c (arm_gen_rotated_half_load): Delete.
6266         (vfp_emit_fstmx, arm_set_return_address): Use gen_frame_mem.
6267         (emit_multi_reg_push, emit_sfm, arm_expand_prologue)
6268         (thumb_set_return_address): Likewise.
6269         (thumb_load_double_from_address): Use adjust_address.
6270         * arm.md (splits calling arm_gen_rotated_half_load): Delete.
6271         (extendhsisi2_mem, movhi_bytes): Use change_address.
6272         (movhi): Use widen_memory_access.
6273         (reload_out_df): Use replace_equiv_address.
6274         * arm-protos.h (arm_gen_rotated_half_load): Delete prototype.
6275
6276 2005-09-09  Richard Henderson  <rth@redhat.com>
6277
6278         PR debug/20998
6279         * dbxout.c: Include expr.h.
6280         (dbxout_global_decl): Don't suppress for DECL_RTL unset.
6281         (dbxout_symbol): Handle DECL_VALUE_EXPR.
6282         * Makefile.in (dbxout.o): Add EXPR_H.
6283
6284 2005-09-09  Zdenek Dvorak  <dvorakz@suse.cz>
6285
6286         PR tree-optimization/23509
6287         * tree-cfg.c (replace_uses_by): Use replace_exp.
6288         * tree-ssa-loop-ivopts.c (get_ref_tag): Assert that dereferenced
6289         pointers have name_mem_tag or type_mem_tag set.
6290
6291 2005-09-09  Sebastian Pop  <pop@cri.ensmp.fr>
6292
6293         * tree-chrec.c (evolution_function_is_invariant_rec_p): Use
6294         CHREC_LEFT and CHREC_RIGHT for accessing chrec components instead
6295         of wrongly accessing operands.
6296
6297 2005-09-09  Sebastian Pop  <pop@cri.ensmp.fr>
6298
6299         * Makefile.in (tree-chrec.o): Depends on SCEV_H.
6300         * tree-chrec.c: Include tree-scalar-evolution.h.
6301         (chrec_convert): Instantiate the base and step before calling
6302         scev_probably_wraps_p that would fail on parametric evolutions.
6303         Collect all the fails into a single section failed_to_convert,
6304         print a diagnostic, and return chrec_dont_know instead of calling
6305         fold_convert.
6306         * tree-scalar-evolution.c (loop_closed_phi_def): New.
6307         (instantiate_parameters_1): Avoid instantiation of loop closed ssa
6308         phi nodes.
6309         (scev_const_prop): Don't replace the definition of a loop closed ssa
6310         phi node by itself, or by another loop closed ssa phi node.
6311         * tree-ssa-loop-niter.c (scev_probably_wraps_p, convert_step): Check
6312         that base and step are defined.
6313
6314 2005-09-09  Richard Guenther  <rguenther@suse.de>
6315
6316         PR c++/23624
6317         * fold-const.c (fold_ternary): Check truth_value_p before
6318         calling invert_truthvalue.
6319
6320 2005-09-09  Nick Clifton  <nickc@redhat.com>
6321
6322         * Makefile.in (LIBGCC_DEPS): Add libgcc2.h.
6323         * libgcc2.c (__clz_tab[], __popcount_tab[]): Set the fixed
6324         dimension of these arrays.
6325         * libgcc2.h (__clz_tab[], __popcount_tab[]): Add exports of
6326         these arrays.
6327         * longlong.h: Only provide a prototype for the __clz_tab[] array
6328         if this header has not been included from libgcc2.h.
6329         * config/stormy16/stormy16-lib2.c: Include libgcc2.h rather than
6330         defining own types.
6331         Provide prototypes for exported functions.
6332         Use the __clz_tab[] and __popcount_tab[] arrays provided by
6333         libgcc2.c.
6334
6335 2005-09-08  Josh Conner  <jconner@apple.com>
6336
6337         PR c++/21135
6338         PR c++/23180
6339         * expr.c (expand_expr_addr_expr_1): Don't invoke
6340         expand_simple_binop for EXPAND_INITIALIZER.
6341
6342 2005-09-08  Richard Henderson  <rth@redhat.com>
6343
6344         PR debug/23190
6345         * toplev.c (wrapup_global_declaration_1): Split out ...
6346         (wrapup_global_declaration_2): ... from ...
6347         (wrapup_global_declarations): ... here.  Return bool.
6348         (check_global_declaration_1): Split out ...
6349         (check_global_declarations): from here.
6350         (emit_debug_global_declarations): New.
6351         * toplev.h (wrapup_global_declaration_1, wrapup_global_declaration_2,
6352         check_global_declaration_1, emit_debug_global_declarations): Declare.
6353         * c-decl.c (c_write_global_declarations_1): Don't create a vector
6354         of decls.  Call wrapup_global_declaration_1,
6355         wrapup_global_declaration_2, check_global_declaration_1 directly.
6356         (c_write_global_declarations_2): New.
6357         (ext_block): New.
6358         (c_write_global_declarations): Call c_write_global_declarations_2.
6359         * langhooks.c (write_global_declarations): Call
6360         emit_debug_global_declarations.
6361
6362         * cgraphunit.c (cgraph_varpool_remove_unreferenced_decls): Don't
6363         remove decls that have DECL_RTL_SET_P.
6364         * passes.c (rest_of_decl_compilation): Invoke
6365         cgraph_varpool_finalize_decl for all but functions.
6366
6367 2005-09-08  Eric Botcazou  <ebotcazou@libertysurf.fr>
6368
6369         * tree-vrp.c (extract_range_from_unary_expr): Do not set the range for
6370         the result of a conversion if the new min and max cannot be compared.
6371
6372 2005-09-08  Andreas Krebbel  <krebbel1@de.ibm.com>
6373
6374         * config/s390/s390.c (s390_sr_alias_set): Variable removed.
6375         (override_options): Setting s390_sr_alias_set removed.
6376         (save_fpr, save_gprs): Set alias set to vararg or frame.
6377         (restore_fpr, restore_gprs, s390_emit_prologue): Replace
6378         s390_sr_alias_set with get_frame_alias_set ().
6379         (s390_gimplify_va_arg): Replace s390_sr_alias_set with
6380         get_varargs_alias_set ().
6381
6382 2005-09-08  Andrew Pinski  <pinskia@physics.uc.edu>
6383
6384         PR objc/20574
6385         PR objc/19324
6386         * c-parser.c (c_parser_objc_method_definition): If the next
6387         token is not "{", error out and don't start the function.
6388
6389 2005-09-08  Andrew Pinski  <pinskia@physics.uc.edu>
6390
6391         * tree-vrp.c (extract_range_from_expr): Move the check for non
6392         nullness after the check for gimple invariant.
6393
6394 2005-09-08  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6395
6396         * tree.c (host_integerp, tree_low_cst): Correct function comment.
6397
6398 2005-09-08  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
6399
6400         PR target/23747
6401         * config/m32r.md (movmemsi_internal): Canonicalize order of
6402         operands in PLUS component of template.
6403
6404 2005-09-07  Andreas Krebbel  <krebbel1@de.ibm.com>
6405
6406         * reload1.c (fixup_eh_region_note): Remove assertion.
6407         (fixup_abnormal_edges): Reverted removal of call to
6408         find_many_sub_basic_blocks made on 2005-08-31.
6409
6410 2005-09-07  Richard Henderson  <rth@redhat.com>
6411
6412         * function.c (ARG_POINTER_CFA_OFFSET): Move ...
6413         * defaults.h (ARG_POINTER_CFA_OFFSET): ... here.
6414         (INCOMING_FRAME_SP_OFFSET): Move from dwarf2out.c.
6415         * dwarf2out.c (struct cfa_loc): Change reg to unsigned int,
6416         rearrange for better packing.
6417         (INCOMING_FRAME_SP_OFFSET): Move to defaults.h.
6418         (lookup_cfa_1): Remove inline marker.
6419         (cfa_equal_p): Split out of ...
6420         (def_cfa_1): ... here.  Use INVALID_REGNUM.
6421         (build_cfa_loc): Handle !cfa->indirect.
6422         (frame_pointer_cfa_offset): New.
6423         (dbx_reg_number): Assert register elimination performed; do
6424         leaf register remapping.
6425         (reg_loc_descriptor): Avoid calling dbx_reg_number when unused.
6426         (eliminate_reg_to_offset): New.
6427         (based_loc_descr): Remove can_use_fbreg argument.  Use fbreg only
6428         for verifiably local stack frame addresses; re-base to CFA.
6429         (mem_loc_descriptor): Remove can_use_fbreg argument.
6430         (concat_loc_descriptor, loc_descriptor): Likewise.
6431         (containing_function_has_frame_base): Remove.
6432         (rtl_for_decl_location): Don't do register elimination or
6433         leaf register remapping here.
6434         (secname_for_decl): Split out from ..
6435         (add_location_or_const_value_attribute): ... here.
6436         (convert_cfa_to_loc_list): New.
6437         (compute_frame_pointer_to_cfa_displacement): New.
6438         (gen_subprogram_die): Use them.
6439         * tree.h (frame_base_decl): Remove.
6440         * var-tracking.c (frame_base_decl, frame_stack_adjust): Remove.
6441         (prologue_stack_adjust): Remove.
6442         (vt_stack_adjustments): Use INCOMING_FRAME_SP_OFFSET.
6443         (adjust_stack_reference): Re-base memories to arg_pointer_rtx.
6444         (set_frame_base_location): Remove.
6445         (compute_bb_dataflow, emit_notes_in_bb): Don't call it.
6446         (dump_attrs_list, dump_dataflow_set): Use string concatenation.
6447         (vt_add_function_parameters): Don't eliminate_regs.
6448         (vt_initialize): Don't create frame_base_decl.
6449
6450 2005-09-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
6451
6452         * doc/install.texi (*-*-solaris2*): Clarify wording on the recommended
6453         version of GNU binutils for 4.x and later.
6454
6455 2005-09-06  Mark Mitchell  <mark@codesourcery.com>
6456
6457         * ggc-page.c (ggc_push_context): Remove.
6458         (ggc_pop_context): Likewise.
6459         * ggc.h (ggc_push_context): Remove.
6460         (ggc_pop_context): Likewise.
6461
6462 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
6463
6464         PR target/8973
6465         * config/arc/arc.c (arc_output_function_epilogue): Update flags while
6466         returning from an interrupt handler.
6467
6468 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
6469
6470         PR target/8972
6471         * config/arc/arc.c (output_shift): Add check for loop count when
6472         optimizing.
6473
6474 2005-09-06  Steven Bosscher  <stevenb@suse.de>
6475
6476         * tree-ssa-phiopt.c (conditional_replacement): Construct proper SSA
6477         form manually.
6478         (abs_replacement): Likewise.
6479         (pass_phiopt): Remove TODO_update_ssa.
6480
6481 2005-09-06  Jakub Jelinek  <jakub@redhat.com>
6482
6483         PR c/23075
6484         * c-typeck.c (c_finish_return): Set TREE_NO_WARNING on RETURN_EXPR
6485         if "return with no value, in function returning non-void" warning
6486         has been issued.
6487         * tree-cfg.c (execute_warn_function_return): Don't look at
6488         RETURN_EXPRs with TREE_NO_WARNING set.
6489
6490         PR target/22362
6491         * config/i386/i386.c (ix86_function_regparm): Make sure automatic regparm
6492         for internal functions doesn't use registers used by global registers
6493         variables.  Use fewer register parameters if there are global register
6494         variables.
6495
6496 2005-09-06  Olivier Hainque  <hainque@adacore.com>
6497             Eric Botcazou  <ebotcazou@adacore.com>
6498
6499         PR middle-end/14997
6500         * expr.c (expand_expr_real) <normal_inner_ref>: Force op0 to mem
6501         when we would be extracting outside its bit span (bitpos+bitsize
6502         larger than its mode), possible with some VIEW_CONVERT_EXPRs from
6503         Ada unchecked conversions.
6504
6505 2005-09-06  Steven Bosscher  <stevenb@suse.de>
6506
6507         * tree-ssa-pre.c (try_look_through_load): New function.
6508         (compute_avail): Use it to try to look through loads for some
6509         more useful expressions.
6510
6511 2005-09-06  Saurabh Verma  <saurabh.verma@codito.com>
6512
6513         * simplify-rtx.c (simplify_binary_operation_1): Correct the
6514         condition for detecting cases like (a&a) and (a^a).
6515
6516 2005-09-06  Keith Besaw  <kbesaw@us.ibm.com>
6517
6518         * common.opt: Add option ftree-vect-loop-version.
6519         * params.def: Add --param vect-max-version-checks.
6520         * doc/invoke.texi: Document ftree-vect-loop-version and
6521         --param vect-max-version-checks.
6522         * tree-vectorizer.h (_loop_vec_info): Add ptr_mask and
6523         may_misalign_stmts and defines for accessors.
6524         * tree-vectorizer.c : (new_loop_vec_info): VEC_alloc for
6525         LOOP_VINFO_MAY_MISALIGN_STMTS.
6526         (destroy_loop_vec_info): VEC_free for
6527         LOOP_VINFO_MAY_MISALIGN_STMTS.
6528         * tree-vect-analyze.c (vect_compute_data_ref_alignment):
6529         Update documentation.
6530         (vect_update_misalignment_for_peel): New.
6531         (vect_enhance_data_refs_alignment): Update to choose loop
6532         peeling or loop versioning if appropriate for the (potentially)
6533         unaligned data references in the loop.
6534         (vect_analyze_data_refs_alignment): Remove call to
6535         vect_enhance_data_refs_alignment so the checks can be done
6536         earlier.
6537         (vect_analyze_loop): Add call to vect_enhance_data_refs_alignment
6538         and move up call to vect_analyze_data_refs_alignment.
6539         * tree-vect-transform.c (vect_create_cond_for_align_checks): New.
6540         (vect_transform_loop): Add call to loop_version.
6541
6542 2005-09-06  Jakub Jelinek  <jakub@redhat.com>
6543
6544         PR rtl-optimization/23098
6545         * cse.c (fold_rtx_mem): Call delegitimize_address target hook.
6546         * simplify-rtx.c (constant_pool_reference_p): New function.
6547         * rtl.h (constant_pool_reference_p): New prototype.
6548         * config/i386/i386.md (pushf split, mov[sdx]f split): Use
6549         constant_pool_reference_p in condition and
6550         avoid_constant_pool_reference in preparation statements.
6551
6552 2005-09-06  Andreas Krebbel  <krebbel1@de.ibm.com>
6553
6554         * gcse.c (try_replace_reg): Disallow REG_EQUAL notes for
6555         STRICT_LOW_PART SETs.
6556
6557 2005-09-06  Alan Modra  <amodra@bigpond.net.au>
6558
6559         PR middle-end/21460
6560         * except.c (sjlj_emit_function_enter): Find the function begin
6561         note even when it's not in first basic block.
6562
6563 2005-09-06  Kelley Cook  <kcook@gcc.gnu.org>
6564
6565         * acinclude.m4: Renamed from aclocal.m4.  Delete AM_LANGINFO_CODESET,
6566         AM_PROG_CC_C_O, and AM_AUX_DIR_EXPAND.
6567         * aclocal.m4: Regenerate.
6568
6569 2005-09-05  DJ Delorie  <dj@redhat.com>
6570
6571         * config/m32c/m32c.h (TRAMPOLINE_ALIGNMENT): Correct misspelling
6572         of macro.
6573
6574 2005-09-06  Kazu Hirata  <kazu@codesourcery.com>
6575
6576         * gimplify.c, ipa-prop.h, varasm.c, config/vxlib.c,
6577         config/vxworks.h, config/crx/crx.c, config/ms1/ms1.c,
6578         config/ms1/ms1.md, config/rs6000/rs6000.c: Fix comment typos.
6579         Follow spelling conventions.
6580         * doc/invoke.texi: Follow spelling conventions.
6581
6582 2005-09-05  J"orn Rennecke <joern.rennecke@st.com>
6583
6584         * rtl.h (gen_frame_mem, gen_tmp_stack_mem): Declare.
6585         * emit-rtl.c (gen_frame_mem, gen_tmp_stack_mem): New functions.
6586         * builtins.c (expand_builtin_return_addr): Use gen_frame_mem.
6587
6588 2005-09-05  J"orn Rennecke <joern.rennecke@st.com>
6589
6590         PR target/23683
6591         * sh.c (sh_reorg, emit_load_ptr): Use gen_const_mem.
6592         (output_stack_adjust): Use gen_tmp_stack_mem.
6593         (sh_expand_prologue, sh_expand_epilogue): Use gen_frame_mem.
6594         (sh_set_return_address, sh_allocate_initial_value): Likewise.
6595         (sh_get_pr_initial_val): Likewise.
6596         (sh_builtin_saveregs): Use gen_frame_mem and change_address.
6597         (sh_initialize_trampoline): Likewise.  Also use adjust_address.
6598         * sh.md (divsi_inv_m0): Use gen_const_mem.
6599         (push_fpscr, pop_fpscr, load_ra): Use gen_frame_mem.
6600         (movdf_i4+1): Use gen_tmp_stack_mem.
6601         (reload_outdf+3, reload_outdf+4, fpu_switch+1): Use change_address.
6602         (fpu_switch+2): Likewise.
6603         (movv4sf_i, movv16sf_i): Use adjust_address.
6604         (symGOT_load): Set MEM_NOTRAP_P bit.
6605
6606 2005-09-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6607
6608         PR target/23721
6609         * pa.c (emit_move_sequence): Fix typo in last change.
6610
6611 2005-09-03  Jakub Jelinek  <jakub@redhat.com>
6612
6613         PR rtl-optimization/23454
6614         * reorg.c (relax_delay_slots): Only call invert_jump if any_condjump_p
6615         is true.
6616
6617 2005-09-03  Richard Henderson  <rth@redhat.com>
6618             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6619
6620         PR middle-end/23671
6621         * pa.c (emit_move_sequence): Use replace_equiv_address instead of
6622         gen_rtx_MEM.
6623
6624 2005-09-02  Nicolas Pitre <nico@cam.org>
6625
6626         * config/arm/arm.c (arm_legitimize_address): Limit the value passed
6627         to bit_count to 32 bits.
6628
6629 2005-08-31  Mark Mitchell  <mark@codesourcery.com>
6630
6631         PR c++/23167
6632         * gimplify.c (gimplify_expr): Handle TREE_ADDRESSABLE types when
6633         generating synthetic loads from volatile lvalues.
6634
6635 005-09-02  Nick Clifton  <nickc@redhat.com>
6636
6637         * config/stormy16/stormy16-lib2.c (__popcounthi2, __parityhi2,
6638         __ctzhi2, __clzhi2): New functions.
6639
6640 2005-09-02  Andrew Pinski  <pinskia@physics.uc.edu>
6641
6642         PR middle-end/23547
6643         * tree-nested.c (struct var_map_elt): Mark with GTY.
6644         (struct nesting_info): Mark with GTY.  Mark var_map's param is struct
6645         var_map_elt.
6646         (lookup_field_for_decl): Allocate new element in GC memory.
6647         (lookup_tramp_for_decl): Likewise.
6648         (convert_nl_goto_reference): Likewise
6649         (create_nesting_tree): Allocate info in GC memory. Likewise for
6650         info->var_map.
6651         (free_nesting_tree): Free with ggc_free instead of free.
6652         (root): New static variable.
6653         (lower_nested_functions): Remove root as local variable.  And zero out
6654         root at the end of the function.
6655
6656 2005-09-02  J"orn Rennecke <joern.rennecke@st.com>
6657
6658         PR rtl-optimization/20365
6659         * simplify-rtx.c (simplify_plus_minus_op_data): Change type of neg
6660         to short.  New member ix.
6661         (simplify_plus_minus_op_data_cmp): Break ties using ix member.
6662         (simplify_plus_minus): Initialize ix members before calling qsort.
6663
6664 2005-09-02  Zdenek Dvorak  <dvorakz@suse.cz>
6665
6666         PR tree-optimization/23626
6667         * tree-cfg.c (replace_uses_by): Clean up eh info.
6668
6669 2005-09-01  DJ Delorie  <dj@redhat.com>
6670
6671         * config/m32c/m32c.c (m32c_valid_pointer_mode): Remove stray debug
6672         fprintf.
6673
6674 2005-09-01  David Edelsohn  <edelsohn@gnu.org>
6675
6676         * config/rs6000/rs6000.c (setup_incoming_varargs): Set MEM_NOTRAP_P.
6677         (rs6000_split_multireg_move): Use replace_equiv_address instead of
6678         gen_rtx_MEM.
6679
6680 2005-09-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
6681
6682         * c-decl.c (diagnose_mismatched_decls):  With -Wredundant-decls,
6683         do not issue warning for a variable definition following
6684         a declaration.
6685
6686 2005-09-01  Richard Henderson  <rth@redhat.com>
6687
6688         PR 23668
6689         * config/i386/i386.c (ix86_expand_vector_init_one_var): Restore
6690         conversion to CONST_VECTOR.
6691
6692 2005-09-01  Richard Henderson  <rth@redhat.com>
6693
6694         PR 23676
6695         * reload1.c (reload_as_needed): Check !CALL_P before calling
6696         fixup_eh_region_note.
6697         * rtlanal.c (may_trap_p): SUBREG by itself cannot trap.
6698
6699 2005-09-01  DJ Delorie  <dj@redhat.com>
6700
6701         * varasm.c (output_constant): Let the target resolve
6702         conversions of addresses to non-default pointer sizes.
6703
6704 2005-09-01  Nicolas Pitre <nico@cam.org>
6705
6706         * config/arm/arm.c (arm_legitimize_address): Split absolute addresses
6707         to alow matching ARM pre-indexed addressing mode.
6708         (arm_override_options): Remove now irrelevant comment.
6709
6710 2005-09-01  Phil Edwards  <phil@codesourcery.com>
6711
6712         * config.gcc (i*86-wrs-vxworks):  Update.  Split out vxworksae target.
6713         * config/i386/t-vxworks:  Update multilibs for VxWorks 6 and RTP mode.
6714         * config/i386/vxworks.h:  Likewise.
6715         * config/i386/t-vxworksae:  New file, for VxWorks AE.
6716         * config/i386/vxworksae.h:  Likewise.
6717
6718 2005-09-01  Sebastian Pop  <pop@cri.ensmp.fr>
6719
6720         PR tree-optimization/23410
6721         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Check that the
6722         sequence is not wrapping during the first step.
6723
6724 2005-09-01  Jakub Jelinek  <jakub@redhat.com>
6725
6726         PR debug/7241
6727         * dwarf2out.c (base_type_die): Compare char_type_node with
6728         TYPE_MAIN_VARIANT (type), not type.
6729
6730 2005-09-01  Richard Guenther  <rguenther@suse.de>
6731
6732         PR tree-optimization/15366
6733         * common.opt: Add -finline-functions-called-once.
6734         Put -fearly-inlining in alphabetically ordered place.
6735         * doc/invoke.texi: Document new option.
6736         * ipa-inline.c (cgraph_decide_inlining): Honour
6737         flag_inline_functions_called_once.
6738
6739 2005-09-01  Jakub Jelinek  <jakub@redhat.com>
6740
6741         PR rtl-optimization/23478
6742         * local-alloc.c (struct qty): Add n_throwing_calls_crossed field.
6743         (alloc_qty): Initialize it.
6744         (update_equiv_regs): Clear REG_N_THROWING_CALLS_CROSSED.
6745         (combine_regs): Combine also n_throwing_calls_crossed fields.
6746         (find_free_reg): Don't attempt to caller-save pseudos crossing
6747         calls that might throw.
6748         * global.c (struct allocno): Add throwing_calls_crossed field.
6749         (global_alloc): Revert 2005-08-22 change.  Initialize
6750         throwing_calls_crossed.
6751         (find_reg): Don't attempt to caller-save pseudos crossing calls that
6752         might throw.
6753
6754 2005-09-01  Alan Modra  <amodra@bigpond.net.au>
6755
6756         PR target/23649
6757         * config/rs6000/predicates.md (mask_operand): Only handle rlwinm masks.
6758         (mask64_operand): Reinstate code prior to 2005-06-11 change.
6759         (mask64_2_operand): Reinstate code prior to 2004-11-11 change.
6760         (and64_2_operand): Tweak to use predicate.
6761         (and_operand): Adjust for mask_operand changes.
6762         * config/rs6000/rs6000.c (num_insns_constant): Revert 2005-06-11.
6763         (print_operand): Likewise.
6764         (rs6000_rtx_costs): Pass mode to mask_operand and use mask64_operand.
6765         (mask64_1or2_operand): Delete.
6766         * rs6000/rs6000-protos.h (mask64_1or2_operand): Delete.
6767         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT <S>): Revert 2005-06-11.
6768         (EXTRA_CONSTRAINT <T>): Pass operand mode to predicate.
6769         (EXTRA_CONSTRAINT <t>): Disallow mask64_operand matches.
6770         * config/rs6000/rs6000.md (andsi3_internal3 split): Revert 2005-06-11.
6771         (rotldi3_internal4): Likewise.
6772         (rotldi3_internal5, rotldi3_internal5 split): Likewise.
6773         (rotldi3_internal6, rotldi3_internal6 split): Likewise.
6774         (ashldi3_internal7): Likewise.
6775         (ashldi3_internal8, ashldi3_internal8 split): Likewise.
6776         (ashldi3_internal, ashldi3_internal9 split): Likewise.
6777         (anddi3 split): Don't match mask64_operand.
6778         (anddi3_internal2): Add rlwinm.  Modify 't' splitter predicate.
6779         (anddi3_internal3): Add rlwinm.  Use and64_2_operand in non-cr0
6780         splitter and match TARGET_64BIT not TARGET_POWERPC64.  Modify
6781         't' splitter predicate.
6782         (movdi_internal64 + 2): Revert 2005-06-11 change.
6783
6784 2005-08-31  DJ Delorie  <dj@redhat.com>
6785
6786         * config/m32c/m32c.c (m32c_valid_pointer_mode): New.
6787         (m32c_asm_integer): Add support for 32 bit pointers.
6788
6789 2005-08-31  Richard Henderson  <rth@redhat.com>
6790
6791         * emit-rtl.c (set_mem_attributes_minus_bitpos): Look through
6792         component-like references for setting MEM_NOTRAP_P.
6793
6794         * config/i386/i386.c (ix86_setup_incoming_varargs): Set MEM_NOTRAP_P.
6795         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
6796
6797 2005-08-31  Richard Henderson  <rth@redhat.com>
6798
6799         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Force subregs
6800         into a pseudo before applying gen_lowpart.
6801
6802 2005-08-31  Geoffrey Keating  <geoffk@apple.com>
6803
6804         * doc/install.texi (Specific): Update cctools version required
6805         for full functionality.
6806         * config/darwin.h (LINK_SPEC): Pass -mmacosx-version-min to the
6807         linkers as -macosx_version_min.
6808
6809 2005-08-31  J"orn Rennecke <joern.rennecke@st.com>
6810
6811         PR target/21255
6812         * sh.c (print_operand, %R and %S): Add handling of floating point
6813         registers, memory, constants and invalid operands.
6814
6815 2005-08-31  Daniel Berlin  <dberlin@dberlin.org>
6816
6817         * ipa-pure-const.c: Change dump name.
6818
6819 2005-08-31 Uros Bizjak <uros@kss-loka.si>
6820
6821         PR target/23570
6822         * config/i386/sse.md (*sse_concatv2sf): Change operand 2 constraint
6823         to "reg_or_0_operand".
6824         (sse2_loadld): Change operand 1 constraint to "reg_or_0_operand".
6825
6826 2005-08-31  Dale Johannesen  <dalej@apple.com>
6827
6828         * loop-iv.c (iv_number_of_iterations):  Fix overflow check for
6829         loops that count down.
6830
6831 2005-08-31  Richard Henderson  <rth@redhat.com>
6832
6833         PR rtl-opt/23601
6834         * reload1.c (reload): Set MEM_NOTRAP_P in spill slots.
6835         (fixup_eh_region_note): New.
6836         (reload_as_needed): Call it.
6837         (fixup_abnormal_edges): Allow all throwing insns to be deleted;
6838         don't call find_many_sub_basic_blocks; call verify_flow_info.
6839         * function.c (assign_stack_local_1): Set MEM_NOTRAP_P.
6840         (keep_stack_depressed): Likewise.
6841         (assign_stack_temp_for_type): Likewise; use adjust_address_nv.
6842
6843 2005-08-31  Richard Henderson  <rth@redhat.com>
6844
6845         * config/i386/i386.c (ix86_function_ok_for_sibcall): Fix test for
6846         fp return matching.
6847
6848 2005-08-31  Fariborz Jahanian <fjahanian@apple.com>
6849
6850         * expr.c (expand_expr_real_1): Compare size of address
6851         mode to target's address mode size in deciding expansion of
6852         the constant address.
6853
6854 2005-08-31  Richard Guenther  <rguenther@suse.de>
6855
6856         PR middle-end/23477
6857         * expr.c (all_zeros_p): New function.
6858         (expand_expr_real_1): Handle the case of an all-zero
6859         non-addressable constructor separately.
6860
6861 2005-08-31  Adrian Straetling  <straetling@de.ibm.com>
6862
6863         * builtins.c: (expand_builtin_strcpy, expand_builtin_strcat): Change
6864         arguments, adjust all callers.
6865         (expand_builtin_strcat): Rewrite to call strcpy instead of mempcpy.
6866
6867 2005-08-30  Richard Henderson  <rth@redhat.com>
6868
6869         PR target/23630
6870         * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Use gen_lowpart
6871         whenever the mode sizes match.
6872
6873 2005-08-31  Alan Modra  <amodra@bigpond.net.au>
6874
6875         * calls.c (load_register_parameters): Fix comment typo.
6876         * expr.c (emit_push_insn): Comment formatting.
6877
6878 2005-08-30  Ian Lance Taylor  <ian@airs.com>
6879
6880         * config/i386/x-cygwin (host-cygwin): Change dependency from
6881         hosthooks-def.h to $(HOSTHOOKS_DEF_H).
6882
6883 2005-08-29  Geoffrey Keating  <geoffk@apple.com>
6884
6885         * config/i386/i386.c (ix86_expand_vector_init_one_var): Don't modify
6886         parts of 'vals'.
6887
6888 2005-08-29  Andrew Pinski  <pinskia@physics.uc.edu>
6889
6890         PR middle-end/23408
6891         * ipa-inline.c (cgraph_decide_inlining_incrementally): Remove the
6892         call to ggc_collect.
6893
6894 2005-08-29  Paolo Bonzini  <bonzini@gnu.org>
6895
6896         PR bootstrap/21268
6897         * Makefile.in (ALL_CPPFLAGS): Include $(INCLUDES) at the
6898         beginning.  Remove $(INCLUDES) from all the rules, if following
6899         $(ALL_CPPFLAGS) or $(BUILD_CPPFLAGS).
6900
6901 2005-08-29  Jakub Jelinek  <jakub@redhat.com>
6902
6903         PR middle-end/23484
6904         * builtins.c (fold_builtin_memory_chk, fold_builtin_stxcpy_chk,
6905         fold_builtin_strncpy_chk, fold_builtin_snprintf_chk): If len is
6906         not constant, but maxlen is, don't set len to maxlen, rather
6907         set maxlen to len if len is a constant.
6908
6909 2005-08-29  Zdenek Dvorak  <dvorakz@suse.cz>
6910
6911         PR tree-optimization/23475
6912         * tree-ssa-loop-ivcanon.c (remove_empty_loop): Update frequencies
6913         and counts.
6914
6915 2005-08-28  Daniel Berlin  <dberlin@dberlin.org>
6916
6917         Fix PR middle-end/22455
6918
6919         * fold-const.c (fold_checksum_tree): Adjust for now-largest tree size.
6920         Checksum only the parts of the tree that exist for the tree code.
6921
6922 2005-08-28  Dale Johannesen  <dalej@apple.com>
6923
6924         * config/i386/i386.c (nocona_cost):  Increase MOVE_RATIO.
6925
6926 2005-08-28  Andrew Pinski  <pinskia@physics.uc.edu>
6927
6928         * tree-vrp.c: Remove obsolete comment in front of vrp_initialize.
6929
6930 2005-08-28  Richard Henderson  <rth@redhat.com>
6931
6932         * stor-layout.c (finalize_type_size): Revert workaround from 08-26.
6933         * tree.c (make_node_stat): Use BITS_PER_UNIT instead of alignment
6934         of char_type_node.
6935
6936 2005-08-28  Jakub Jelinek  <jakub@redhat.com>
6937
6938         PR ada/23593
6939         * builtins.c (get_memory_rtx): Don't strip nops
6940         in between COMPONENT_REFs.
6941
6942 2005-08-27  Andrew Pinski  <pinskia@physics.uc.edu>
6943
6944         PR middle-end/23463
6945         * gimplify.c (gimplify_modify_expr_rhs): Remove check for zero sized
6946         types.
6947         (gimplify_modify_expr): Check for zero sized types and gimplify the
6948         rhs and lhs as statements.
6949
6950 2005-08-27  John David Anglin  <dave.anflin@nrc-cnrc.gc.ca>
6951
6952         PR libgcj/23508
6953         * pa/linux-unwind.h (pa32_fallback_frame_state): Use r0 slot in frame
6954         state for return address column of signal frames.
6955
6956 2005-08-27  David Edelsohn  <edelsohn@gnu.org>
6957
6958         PR target/23539
6959         * config/rs6000/rs6000.c (expand_block_clear): Use HImode when
6960         bytes >= 2 not bytes == 2.
6961         (expand_block_move): Same.
6962
6963 2005-08-27  Richard Guenther  <rguenther@suse.de>
6964
6965         PR target/23575
6966         * config/i386/sse.md (sse2_movsd): Add missing closing
6967         braces.
6968
6969 2005-08-27  Paul Brook  <paul@codesourcery.com>
6970
6971         * genrecog.c (enum decision_type): Add DT_num_insns.
6972         (struct decision_test): Add u.num_insns.
6973         (add_to_sequence): Add DT_num_insns test.
6974         (maybe_both_true_2, nodes_identical_1): Handle DT_num_insns.
6975         (write_cond, debug_decision_2): Ditto.
6976         (change_state): Assume peep2_next_insn never fails.
6977         Remove "afterward" argument.
6978         (write afterward, write_tree): Update to match.
6979         * recog.c (peep2_current_count): New variable.
6980         (peep2_next_insn): Check it.
6981         (peephole2_optimize): Set peep2_current_count.
6982         * recog.h (peep2_current_count): Declare.
6983
6984 2005-08-26  Josh Conner  <jconner@apple.com>
6985
6986         PR middle-end/23584
6987         * ipa-pure-const.c (check_tree): Check for volatile-ness
6988         when considering a dereference.
6989
6990 2005-08-27  Jakub Jelinek  <jakub@redhat.com>
6991
6992         * rtl.h (MEM_IN_STRUCT_P): Fix comment typo.
6993
6994 2005-08-26  Jakub Jelinek  <jakub@redhat.com>
6995
6996         PR rtl-optimization/23561
6997         * builtins.c (get_memory_rtx): Add LEN argument.  If MEM_EXPR is
6998         a COMPONENT_REF, remove all COMPONENT_REF from MEM_EXPR unless
6999         at most LEN bytes long memory fits into the field.
7000         (expand_builtin_memcpy, expand_builtin_mempcpy, expand_movstr,
7001         expand_builtin_strncpy, expand_builtin_memset, expand_builtin_memcmp,
7002         expand_builtin_strcmp, expand_builtin_strncmp): Adjust callers.
7003
7004 2005-08-26  Richard Henderson  <rth@redhat.com>
7005
7006         PR rtl-opt/23560
7007         * loop.c (biased_biv_may_wrap_p): New.
7008         (maybe_eliminate_biv_1): Use it to suppress non-equality
7009         comparison transformations.  Delete disabled code.
7010
7011 2005-08-26  Ian Lance Taylor  <ian@airs.com>
7012
7013         * combine.c (make_extraction): Avoid reference outside object.
7014
7015 2005-08-26  J"orn Rennecke <joern.rennecke@st.com>
7016
7017         * stor-layout.c (finalize_type_size): Restore behaviour for
7018         non-aggregate types to the status quo ante of the patch for
7019         pr 23467.  Document why it matters.
7020
7021 2005-08-26  Jakub Jelinek  <jakub@redhat.com>
7022
7023         PR c/23506
7024         * c-common.c (c_common_nodes_and_builtins): Increase builtin_types
7025         array by one element, initialize the BT_LAST element with NULL.
7026
7027 2005-08-26  David Edelsohn  <edelsohn@gnu.org>
7028
7029         * config/rs6000/rs6000.md (eq<mode>_compare): Only enable when
7030         optimizing for size.
7031         (plus_eqsi): Same.
7032         (compare_plus_eqsi): Same.
7033         (plus_eqsi_compare): Same.
7034         (neg_eq0<mode>): Same.
7035         (neg_eq<mode>): Same.
7036
7037         * config/rs6000/aix52.h (PROCESSOR_DEFAULT): Change to
7038         PROCESSOR_POWER4.
7039
7040 2005-08-26  Nick Clifton  <nickc@redhat.com>
7041
7042         * config/v850/v850.c (ep_memory_operand): Return FALSE if
7043         TARGET_EP is not defined.
7044         * config/v850/c850.h (TARGET_CPU_CPP_BUILTINS): Define __EP__ if
7045         TARGET_EP is enabled.
7046         (OPTIMIZATION_OPTIONS): Do not define MASK_EP when optimizing.
7047         * config/v850/v850.md (save_all_interrupt): Only use the EP
7048         register if TARGET_EP is defined.
7049         (restore_all_interrupt): Likewise.
7050         * config/v850/lib1funcs.asm: Update functions so that the EP
7051         register is only used if __EP__ is defined.
7052
7053 2005-08-26  David Ung  <davidu@mips.com>
7054
7055         * config/mips/mips.c (mips_expand_prologue): Handle case when
7056         generating for MIPS16 and the outgoing argument area is more than
7057         SMALL_OPERAND. Use the frame pointer as temporary to generate the
7058         add instruction.
7059
7060 2005-08-26  Paul Woegerer  <paul.woegerer@nsc.com>
7061
7062         * config/crx/crx.md: Make doloop_end pattern usage controllable
7063         via mloop-nesting=<max-nesting> command line switch. Make sure
7064         the combiner cannot use doloop_end_<mode> in an illegal way.
7065         * config/crx/crx.c: Use regs up to r6 for argument passing.
7066         Refine crx_address_cost (non cst4 displacements are expensive).
7067         * config/crx/crx.opt: Add switch for mloop-nesting=.
7068
7069 2005-08-26  Adrian Straetling  <straetling@de.ibm.com>
7070
7071         * config/s390/s390.md: ("movstr", "*movstr"): Add patterns.
7072         (UNSPEC_MVST): New constant.
7073
7074 2005-08-26  Andreas Krebbel  <krebbel1@de.ibm.com>
7075
7076         * config/s390/predicates.md ("shift_count_operand", "setmem_operand"):
7077         Reject operands containing eliminable registers.
7078         * testsuite/gcc.dg/20050825-1.c: New testcase.
7079
7080 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
7081             Jan Hubicka  <jh@suse.cz>
7082
7083         * regmove.c (reg_is_remote_constant_p): Reorganize to not use log links.
7084
7085 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
7086
7087         PR tree-optimization/23546
7088         * tree-ssa-loop-im.c (for_each_index): Handle INTEGER_CST
7089         and REAL_CST nodes.
7090
7091 2005-08-24  Pete Steinmetz  <steinmtz@us.ibm.com>
7092
7093         * params.def (PARAM_MIN_SPEC_PROB): New.
7094         * sched-rgn.c (MIN_PROBABILITY): Delete.
7095         (compute_trg_info): Convert to PARAM_VALUE.
7096         * doc/invoke.texi (param): Document min-spec-prob.
7097
7098 2005-08-24  Fariborz Jahanian <fjahanian@apple.com>
7099
7100         * config/darwin.h: define __PIC__
7101         * config/rs6000/darwin.h: Add SUBTARGET_OS_CPP_BUILTINS to
7102         TARGET_OS_CPP_BUILTINS macro.
7103
7104 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
7105
7106         * config/rs6000/rs6000.md: Fix thinko in the peephole2 I added
7107         yesterday.
7108
7109 2005-08-24  Zdenek Dvorak  <dvorakz@suse.cz>
7110
7111         * bb-reorder.c (copy_bb, duplicate_computed_gotos): Add argument
7112         to duplicate_block.
7113         * cfghooks.c (duplicate_block): Added position where to place
7114         new block as argument.
7115         * cfghooks.h (duplicate_block): Declaration changed.
7116         * cfglayout.c (copy_bbs): Add argument after.  Pass it to
7117         duplicate_block.
7118         * cfglayout.h (copy_bbs): Declaration changed.
7119         * cfgloop.h (loop_version): Declaration changed.
7120         * cfgloopmanip.c (duplicate_loop_to_header_edge): Pass
7121         position to copy_bbs.
7122         (loop_version): Pass position to duplicate_loop_to_header_edge.
7123         Add place_after argument and position new blocks according to
7124         it.
7125         * modulo-sched.c (sms_schedule): Pass place_after argument
7126         to loop_version.
7127         * tracer.c (tail_duplicate): Pass argument to duplicate_block.
7128         * tree-cfg.c (split_edge_bb_loc): New function.
7129         (tree_split_edge, tree_duplicate_sese_region): Use split_edge_bb_loc
7130         to determine position of new blocks.
7131         * tree-ssa-loop-unswitch.c (tree_unswitch_loop): Pass argument
7132         to loop_version.
7133         * tree-ssa-threadupdate.c (create_block_for_threading): Pass
7134         argument to duplicate_block.
7135         * tree-vectorizer.c (slpeel_tree_duplicate_loop_to_edge_cfg):
7136         Pass position to copy_bbs.
7137
7138 2005-08-24  Zdenek Dvorak  <dvorakz@suse.cz>
7139
7140         * fold-const.c (ptr_difference_const): Use
7141         cst_and_fits_in_hwi instead of host_integerp.
7142
7143 2005-08-24  Paolo Bonzini  <bonzini@gnu.org>
7144
7145         * config/darwin.c (gen_pic_offset): New.
7146         (machopic_indirect_data_reference,  machopic_legitimize_pic_address):
7147         Use it.
7148
7149 2005-08-23  Zdenek Dvorak  <dvorakz@suse.cz>
7150
7151         PR tree-optimization/23486
7152         * tree-ssa-loop.c (pass_scev_cprop): Add TODO_update_ssa_only_virtuals.
7153
7154 2005-08-23  Phil Edwards  <phil@codesourcery.com>
7155
7156         * config.gcc (*-*-vxworks*):  Update tm_file, add extra_options,
7157         remove use_collect2.
7158         (powerpc-wrs-vxworks):  Update, split out *-*-vxworksae target.
7159
7160         * target-def.h (TARGET_HAVE_CTORS_DTORS):  Allow target
7161         configuration files to override the default value.
7162
7163         * config/t-vxworks:  Remove INSTALL_ASSERT_H.  Define STMP_FIXPROTO,
7164         EXTRA_HEADERS, and EXTRA_MULTILIB_PARTS.
7165         * config/vx-common.h:  New file, split out from...
7166         * config/vxworks.h:  here.  Update for VxWorks 6.x and RTP mode.
7167         * config/vxworksae.h:  New file, for VxWorks AE.
7168         * config/vxworks.opt:  New file.
7169         * config/vxlib.c:  Update for VxWorks 6.
7170
7171         * config/rs6000/t-vxworks (MULTILIB_OPTIONS):  New list.  Adjust
7172         other MULTILIB_* variables appropriately.
7173         (LIB2FUNCS_EXTRA, EXTRA_MULTILIB_PARTS):  Correct from t-ppccomm.
7174         * config/rs6000/t-vxworksae:  New file, adjust multilibs for AE.
7175         * config/rs6000/vxworks.h:  Update for VxWorks 6.
7176         * config/rs6000/vxworksae.h:  New file, mostly placeholder for now.
7177
7178 2005-08-23  Andrew Pinski  <pinskia@physics.uc.edu>
7179
7180         PR target/20799
7181         * config/darwin.c (machopic_select_section): Remove the hack to
7182         mark "::operator new" and "::operator delete" for coalescing
7183         even though they are not weak.
7184
7185 2005-08-24  Alan Modra  <amodra@bigpond.net.au>
7186
7187         * configure.ac (HAVE_LD_NO_DOT_SYMS): Set for powerpc-linux biarch.
7188         * configure: Regenerate.
7189
7190 2005-08-23  Paolo Bonzini  <bonzini@gnu.org>
7191
7192         PR middle-end/23517
7193         * fold-const.c (fold_convert): Use VIEW_CONVERT_EXPR to convert
7194         between vectors.
7195         * convert.c (convert_to_integer, convert_to_vector): Likewise.
7196         * tree-vect-generic.c (tree_vec_extract, expand_vector_operations_1):
7197         Likewise.
7198
7199 2005-08-23  Paolo Bonzini  <bonzini@gnu.org>
7200
7201         * config/rs6000/predicates.md (equality_operator): New.
7202         * config/rs6000/rs6000.md: Rewrite as a peephole2 the split for
7203         comparison with a large constant.
7204
7205 2005-08-23  Mark Mitchell  <mark@codesourcery.com>
7206
7207         * hwint.h (HOST_WIDE_INT_PRINT): Use HOST_LONG_LONG_FORMAT.
7208
7209 2005-08-23  J"orn Rennecke <joern.rennecke@st.com>
7210
7211         * sh.c (sh_builtin_saveregs): If the number of to-be-saved fp
7212         registers is even, and we have a hardware double precision fp,
7213         align the buffer.
7214         (sh_gimplify_va_arg_expr): For floating point arguments, consider
7215         size of current argument when checking if argument was passed in
7216         registers.
7217
7218         * sh.c (sh_attr_renesas_p): Handle error_mark_node.
7219
7220         PR middle-end/23467
7221         * stor-layout.c (finalize_type_size): Dont override
7222         existing alignment with a smaller alignment from the mode.
7223
7224 2005-08-23  Sebastian Pop  <pop@cri.ensmp.fr>
7225
7226         * lambda-code.c (lambda_vector_lexico_pos): Moved...
7227         * lambda.h (lambda_vector_lexico_pos): ... here.
7228         * tree-data-ref.c (build_classic_dist_vector): Return false when
7229         the distance vector is lexicographically negative.
7230
7231 2005-08-23  Sebastian Pop  <pop@cri.ensmp.fr>
7232
7233         PR tree-optimization/23511
7234         * tree-ssa-loop-niter.c (infer_loop_bounds_from_undefined): Don't
7235         handle cases where TYPE_MIN_VALUE or TYPE_MAX_VALUE are NULL_TREE.
7236
7237 2005-08-23  Jakub Jelinek  <jakub@redhat.com>
7238
7239         PR tree-optimization/22043
7240         * tree.h (count_type_elements): Add ALLOW_FLEXARR argument.
7241         * expr.c (count_type_elements): Add ALLOW_FLEXARR argument.
7242         If ALLOW_FLEXARR, handle types ending with flexible array member.
7243         Pass false as second argument to recursive count_type_elements calls.
7244         (categorize_ctor_elements_1, mostly_zeros_p): Pass false as second
7245         argument to count_type_elements call.
7246         * tree-sra.c (decide_block_copy): Likewise.
7247         * gimplify.c (gimplify_init_constructor): If num_type_elements < 0
7248         for a constant-sized object, set cleared as well.  Pass true as
7249         second argument to count_type_elements call.
7250
7251 2005-08-23  Alan Modra  <amodra@bigpond.net.au>
7252
7253         PR target/21571
7254         * config/rs6000/rs6000.c (rs6000_legitimate_small_data_p): Rename
7255         from legitimate_small_data_p, and make global.  Update use.
7256         Remove forward declaration.
7257         * config/rs6000/rs6000-protos.h (rs6000_legitimate_small_data_p):
7258         Declare.
7259         * config/rs6000/rs6000.md (movdf_hardfloat32): Allow small data mems.
7260
7261 2005-08-23  David Edelsohn  <edelsohn@gnu.org>
7262
7263         * config/rs6000/rs6000.md (eq<mode>): Use output operand instead
7264         of scratch intermediates.
7265         (eq<mode>_compare): Same.
7266         (neg_eq0<mode>): New.
7267         (neg_eq<mode>): Convert to define_insn_and_split.
7268
7269 2005-08-23  Alan Modra  <amodra@bigpond.net.au>
7270
7271         PR target/23070
7272         * config/rs6000/rs6000.c (function_arg): For ABI_V4 calls to
7273         stdarg functions, set/clear the fp marker even when no variable
7274         args are passed.
7275         * config/rs6000/sysv4.opt (mprototype): Describe.
7276
7277 2005-08-22  Jakub Jelinek  <jakub@redhat.com>
7278
7279         PR rtl-optimization/23478
7280         * regs.h (reg_info): Add throw_calls_crossed.
7281         (REG_N_THROWING_CALLS_CROSSED): Define.
7282         * flow.c (allocate_reg_life_data): Initialize
7283         REG_N_THROWING_CALLS_CROSSED.
7284         (propagate_one_insn, attempt_auto_inc): Update
7285         REG_N_THROWING_CALLS_CROSSED.
7286         * global.c (global_alloc): Don't allocate pseudos across
7287         calls that may throw.
7288
7289 2005-08-22  Andrew Pinski  <pinskia@physics.uc.edu>
7290
7291         PR c/18715
7292         * c-common.c (c_do_switch_warnings): Look for a node where the enum's
7293         value is inbetween the range if we did not find an exact match.
7294
7295 2005-08-22  Aldy Hernandez  <aldyh@redhat.com>
7296
7297         * doc/invoke.texi (Option Summary): Add ms1 options.
7298         * doc/extend.texi: Document interrupt handler attribute for ms1.
7299         * doc/md.texi: Document ms1 constraints.
7300         * config.gcc: Add ms1-*-elf.
7301         * config/ms1/ms1.h: New.
7302         * config/ms1/ms1.c: New.
7303         * config/ms1/ms1.md: New.
7304         * config/ms1/ms1-protos.h: New.
7305         * config/ms1/ABI.txt: New.
7306         * config/ms1/crti.asm: New.
7307         * config/ms1/crtn.asm: New.
7308         * config/ms1/lib2extra-funcs.c: New.
7309         * config/ms1/t-ms1: New.
7310         * config/ms1/ms1.opt: New.
7311
7312 2005-08-22 Ira Rosen <irar@il.ibm.com>
7313
7314         * config/rs6000/altivec.md (xorv4sf3): New.
7315         (negv4sf2, neg<mode>2): Likewise.
7316
7317 2005-08-21  H.J. Lu  <hongjiu.lu@intel.com>
7318
7319         PR target/23485
7320         * config/ia64/ia64.md (divsi3): Check divide by zero.
7321         (udivsi3): Likewise.
7322         (divdi3): Likewise.
7323         (udivdi3): Likewise.
7324
7325 2005-08-21  Jakub Jelinek  <jakub@redhat.com>
7326
7327         * simplify-rtx.c (simplify_immed_subreg) <case CONST_DOUBLE>: Only clear
7328         up to elem_bitsize bits, not max_bitsize.
7329
7330 2005-08-21  Sebastian Pop  <pop@cri.ensmp.fr>
7331
7332         PR tree-optimization/23433
7333         * tree-chrec.c (chrec_apply): Translate INTEGER_CST to a
7334         REAL_CST when the type is SCALAR_FLOAT_TYPE_P.
7335
7336 2005-08-21  Sebastian Pop  <pop@cri.ensmp.fr>
7337
7338         PR tree-optimization/23434
7339         * tree-ssa-loop-niter.c (proved_non_wrapping_p): Give up when
7340         the iteration bound is not an INTEGER_CST.
7341
7342 2005-08-21  Dorit Nuzman  <dorit@il.ibm.com>
7343
7344         * tree-vect-transform.c (get_initial_def_for_reduction): Set
7345         need_epilog_adjust back to false for MIN/MAX case. Set *scalar_def to
7346         NULL if need_epilog_adjust is false.
7347         (vect_create_epilog_for_reduction): Variable adjust_in_epilog removed.
7348         Case 3 always peels first itration, not just for PLUS case, and no need
7349         to use scalar_initial_def here. Create an epilog adjustment only if
7350         scalar_initial_def is not NULL.
7351
7352         (vectorizable_reduction): Remove assert.
7353
7354 2005-08-20  H.J. Lu  <hongjiu.lu@intel.com>
7355
7356         PR target/23485
7357         * config/ia64/lib1funcs.asm (__divdi3): Check divide by zero.
7358         (__moddi3): Likewise.
7359         (__udivdi3): Likewise.
7360         (__umoddi3): Likewise.
7361         (__divsi3): Likewise.
7362         (__modsi3): Likewise.
7363         (__udivsi3): Likewise.
7364         (__umodsi3): Likewise.
7365
7366 2005-08-20  Jakub Jelinek  <jakub@redhat.com>
7367
7368         * tree-pass.h (TDF_GRAPH): Define.
7369         * tree-dump.c (dump_options): Don't set TDF_GRAPH in "all".
7370         * passes.c (finish_optimization_passes): Only call
7371         finish_graph_dump_file if TDF_GRAPH is set.
7372         (execute_one_pass): Only call clean_graph_dump_file if dump_file !=
7373         NULL.  Set TDF_GRAPH bit.
7374         (execute_todo): Call print_rtl_graph_with_bb if TDF_GRAPH is set.
7375
7376 2005-08-20  Richard Earnshaw  <richard.earnshaw@arm.com>
7377
7378         * arm.h (arm_stack_offsets): Add locals_base field.
7379         * arm.c (arm_get_frame_offsets): Compute it.
7380         (thumb_compute_initial_elimination offset): Make the Thumb frame
7381         pointer point to the base of the local variables.
7382         (thumb_expand_prologue): Update accordingly.
7383         (thumb_expand_epilogue): Likewise.
7384
7385         * arm.md (thumb_movhi_clobber): Make this insn a define_expand.  Change
7386         mode of clobbered scratch to DImode.  Handle a case that's known to
7387         need this.
7388
7389 2005-08-19  David Edelsohn  <edelsohn@gnu.org>
7390
7391         * config/rs6000/rs6000.md (gt0<mode>): Delete.
7392         (gt0<mode>_compare): Delete.
7393         (neg_gt0<mode>): Delete.
7394
7395 2005-08-19  Eric Christopher  <echristo@apple.com>
7396
7397         * optabs.h: Change CTI_ to COI_.
7398         * optabs.c: Ditto.
7399
7400 2005-08-19  James E Wilson  <wilson@specifix.com>
7401
7402         * builtins.c (expand_builtin_return_addr): Set
7403         current_function_accesses_prior_frames when count != 0.  Use
7404         frame_pointer_rtx when count == 0.
7405         * function.h (struct function): Add accesses_prior_frames field.
7406         (current_function_accesses_prior_frames): Define.
7407         * reload1.c (init_elim_table): Check
7408         current_function_accesses_prior_frames.
7409         * doc/tm.texi (INITIAL_FRAME_ADDRESS_RTX): Update docs.
7410
7411 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
7412
7413         * tree-cfgcleanup.c (cleanup_tree_cfg): Fix flowgraph change
7414         indicator.  Return true if the flowgraph changed during
7415         cleanup.
7416
7417 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
7418
7419         PR 23476
7420         * tree-cfgcleanup.c (cleanup_control_expr_graph): Fold the
7421         conditional expression before testing its value.
7422
7423 2005-08-19  Diego Novillo  <dnovillo@redhat.com>
7424
7425         * doc/invoke.texi: Fix documentation for -ftree-dominator-opts.
7426
7427 2005-08-19  Devang Patel  <dpatel@apple.com>
7428
7429         PR tree-optimization/23048
7430         * tree-if-conv.c (if_convertible_bb_p): Supply basic_block as
7431         third parameter. Check whether latch is dominated by exit
7432         block or not.
7433         (if_convertible_loop_p): Supply exit block itself to
7434         if_convertible_bb_p.
7435
7436 2005-08-19  Richard Earnshaw  <richard.earnshaw@arm.com>
7437
7438         PR target/23473
7439         * arm.md (arm_load_pic_register): Change argument to the mask of
7440         saved registers.  Call thumb_find_work_register if we need a
7441         scratch register on Thumb.
7442         (arm_expand_prologue): Pass empty register set to
7443         arm_load_pic_register.
7444         (thumb_expand_prologue): Pass live_regs_mask directly to
7445         arm_load_pic_register.
7446         * arm-protos.h (arm_load_pic_register): Update prototype.
7447
7448 2005-08-19  J"orn Rennecke <joern.rennecke@st.com>
7449
7450         * sh.c (find_sole_member): New function.
7451         (sh_gimplify_va_arg_expr): Use it. Allow RECORD_TYPE mode mismatch
7452         if the record's alignment is larger than the size of its only member.
7453
7454 2005-08-19  Richard Earnshaw  <richard.earnshaw@arm.com>
7455
7456         PR target/23436
7457         * arm.c (thumb_legitimize_reload_address): New function.
7458         * arm-protos.h (thumb_legitimize_reload_address): Add prototype.
7459         * arm.h (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Call it.
7460
7461 2005-08-19  Paul Woegerer  <paul.woegerer@nsc.com>
7462
7463         * config/crx/crx.c: Implement crx_decompose_address. Reject
7464         symbolic displacements since CRX register relative adressing
7465         mode can't handle unsigned 32-bit values as displacements.
7466         * config/crx/crx.h: Simplify definitions, remove redundant
7467         parenthesis and obsolete macros.
7468         * config/crx/crx.opt: Add new switch for debugging addresses.
7469         * config/crx/crx-protos.h: Add new declarations for above.
7470
7471 2005-08-19  Andrew Pinski  <pinskia@physics.uc.edu>
7472
7473         PR middle-end/20624
7474         * gimple-low.c (block_may_fallthru): Handle CLEANUP_POINT_EXPR by
7475         looking past it.
7476
7477 2005-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7478
7479         * collect2.c (dup2): Delete.
7480         * configure.ac: Don't check for dup2.
7481
7482         * config.in, configure: Regenerate.
7483
7484 2005-08-18  J"orn Rennecke <joern.rennecke@st.com>
7485
7486         * sh.c (sh_gimplify_va_arg_expr): Loop to substitute a RECORD_TYPE
7487         record with the type of its only member.
7488
7489 2005-08-18  David Edelsohn  <edelsohn@gnu.org>
7490
7491         * config/rs6000/rs6000.md (ltu<mode>_compare): Convert to
7492         define_insn_and_split.
7493         (plus_ltu<mode>_compare): Same.
7494         (gtu<mode>_compare): Same.
7495         (plus_gtu<mode>_compare): Same.
7496
7497 2005-08-18  Dorit Nuzman  <dorit@il.ibm.com>
7498
7499         PR tree-optimization/22228
7500         * tree-ssa-loop (pass_vectorize): Add TODO_verify_loops to
7501         todo_flags_start.
7502         * tree-vect-transform.c (vect_transform_loop): Mark the variables that
7503         are recorded in vect_vnames_to_rename for renaming.
7504         * tree-vectorizer.c (vect_vnames_to_rename): New global bitmap.
7505         (slpeel_update_phi_nodes_for_guard1): Record virtual vars for renaming
7506         in vect_vnames_to_rename.
7507         (vectorize_loops): Allocate and free the vect_vnames_to_rename bitmap.
7508         * tree-vectorizer.h (vect_vnames_to_rename): New extern variable.
7509
7510 2005-08-18  Jan Hubicka  <jh@suse.cz>
7511
7512         PR c++/22034
7513         * cgraphunit.c (cgraph_varpool_assemble_pending_decls): Emit debug
7514         info only for local statics, not for member variables.
7515
7516 2005-08-18  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
7517
7518         * tree-data-ref.c (analyze_siv_subscript_cst_affine): Fix comment typo.
7519
7520 2005-08-18  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
7521
7522         * c-typeck.c (designator_errorneous): Rename to designator_erroneous.
7523
7524 2005-08-18  Andrew Pinski  <pinskia@physics.uc.edu>
7525
7526         PR middle-end/16045
7527         * builtins.c (fold_builtin): Create a new NOP_EXPR all the time.
7528
7529 2005-08-17  James E Wilson  <wilson@specifix.com>
7530
7531         * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
7532         array size check.
7533
7534 2005-08-17  David Edelsohn  <edelsohn@gnu.org>
7535
7536         * config/rs6000/rs6000.md (leu<mode>): Convert to mode macro.
7537         (leu<mode>_compare): Same.
7538         (plus_leu<mode>): Same.
7539         (neg_leu<mode>): Same.
7540         (and_neg_leu<mode): Same.
7541         (ltu<mode>_compare): Same.
7542         (plus_ltu<mode>): Same.
7543         (geu<mode>): Same.
7544         (geu<mode>_compare): Same.
7545         (plus_geu<mode>): Same.
7546         (neg_geu<mode>): Same.
7547         (and_neg_geu<mode>): Same.
7548         (plus_gt<mode>): Same.
7549         (gtu<mode>_compare): Same.
7550         (plus_gtu<mode>): Same.
7551
7552 2005-08-17  Erik Christiansen  <erik@dd.nec.com.au>
7553
7554         * config/v850/lib1funcs.asm (callt_save_interrupt): Fix comment typos.
7555         Move call_table_data to end.  Delete spurious .text.
7556         (callt_save_all_interrupt): Fix comment typo.
7557
7558 2005-08-17  James E Wilson  <wilson@specifix.com>
7559             Kevin Winchester  <winchester@amirix.com>
7560
7561         PR target/21684
7562         * config/mcore/mcore.h (SHIFT_COUNT_TRUNCATED): Define to 0.
7563
7564 2005-08-17  Uros Bizjak  <uros@kss-loka.si>
7565
7566         PR target/23268
7567         * config/i386/i386.md ("*fist<mode>2_1"): New pattern.
7568         ("lrint<mode>2"): Change expander to use "*fist<mode>2_1" pattern.
7569
7570 2005-08-17  J"orn Rennecke <joern.rennecke@st.com>
7571
7572         * sh.c (sh_gimplify_va_arg_expr): Don't substitute a RECORD_TYPE
7573         record with the type of its only member if the modes don't match.
7574
7575         * varasm.c (decode_reg_name): Skip empty additional register names.
7576
7577 2005-08-16  Zdenek Dvorak  <dvorakz@suse.cz>
7578
7579         * tree-ssa-loop-im.c (MAX_LSM_NAME_LENGTH, lsm_tmp_name,
7580         lsm_tmp_name_length): New.
7581         (lsm_tmp_name_add, gen_lsm_tmp_name, get_lsm_tmp_name): New functions.
7582         (schedule_sm): Use get_lsm_tmp_name instead of "lsm_tmp".
7583
7584 2005-08-16  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
7585             Andreas Krebbel  <krebbel1@de.ibm.com>
7586
7587         * config.gcc: Added z9-109 switch.
7588         * config/s390/2084.md ("x_int", "x_agen", "x_lr", "x_la", "x_larl",
7589         "x_load", "x_store", "x_branch", "x_call", "x_mul_hi", "x_mul_sidi",
7590         "x_div", "x_sem", "x_cs", "x_vs", "x_stm", "x_lm", "x_other",
7591         "x_fsimpdf", "x_fsimpsf", "x_fdivdf", "x_fdivsf", "x_floaddf",
7592         "x_floadsf", "x_fstore_df", "x_fstoresf", "x_ftoi", "x_itof"): Enable
7593         for "z9_109" cpu attribute.
7594         * config/s390/s390.c (z9_109_cost): New processor cost structure.
7595         (CONST_OK_FOR_Os, CONST_OK_FOR_Op, CONST_OK_FOR_On): New macros.
7596         (s390_handle_arch_option): Added z9-109 switch.
7597         (override_options): Set respective cost function for z9-109.
7598         (s390_const_ok_for_constraint_p): New constraints Os, Op, On.
7599         (legitimate_reload_constant_p): Accept extended immediates.
7600         (print_operand): Three new output modifiers added: k, m and o.
7601         (s390_adjust_priority, s390_issue_rate): Handle Z9_109 like Z990.
7602         (s390_output_mi_thunk): Use extended immediate when possible.
7603         * config/s390/s390.h (processor_flags): Added PF_EXTIMM.
7604         (TARGET_CPU_EXTIMM, TARGET_EXTIMM): New macros.
7605         (CONSTRAINT_LEN): Added length of O constraint.
7606         (CLZ_DEFINED_VALUE_AT_ZERO): Definition added.
7607         * config/s390/s390.md ("cpu"): New value z9_109 added.
7608         ("*tstdi_extimm", "*tstdi_ccconly_extimm", "*tstsi_extimm",
7609         "*tstsi_cconly_extimm", "*movdi_64extimm", "*extendhidi2_extimm",
7610         "*extendqidi2_extimm", "*extendhisi2_extimm", "*extendqisi2_extimm",
7611         "*zero_extend<mode>si2_extimm", "*anddi3_extimm", "*iordi3_extimm",
7612         "*xordi3_extimm", "clzdi2", "clztidi2"): New patterns.
7613         ("*tstdi", "*tstsi", "*movdi_64", "*extendhisi2", "*extendqisi2",
7614         "*zero_extend<mode>si2_64", "zero_extendqihi2", "*zero_extendqihi2_64",
7615         "*anddi3", "*iordi3", "*xordi3"): Disable for TARGET_EXTIMM.
7616         ("*cmpdi_cct", "*cmpsi_cct", "*cmpdi_ccs", "*cmpsi_ccs", "*cmpdi_ccu",
7617         "*cmpsi_ccu", "*movsi_zarch", "*adddi3_imm_cc", "*adddi3_carry1_cc",
7618         "*adddi3_carry2_cc", "*adddi3_cc", "*adddi3_64", "*addsi3_imm_cc",
7619         "*addsi3_carry1_cc", "*addsi3_carry2_cc", "*addsi3_cc", "addsi3",
7620         "*andsi3_cc", "*andsi3_cconly", "*andsi3_zarch", "*iorsi3_cc",
7621         "*iorsi3_cconly", "*iorsi3_zarch", "*xorsi3_cc", "*xorsi3_cconly",
7622         "*xorsi3", "*xorhi3", "*xorqi3"): Added instruction using extended
7623         immediates.
7624         ("extend<mode>di2", "extend<mode>si2", "zero_extend<mode>di2",
7625         "zero_extend<mode>si2"): Allow memory operands and don't manually emit
7626         insns for TARGET_EXTIMM.
7627
7628 2005-08-17  Andreas Krebbel  <krebbel1@de.ibm.com>
7629
7630         * testsuite/gcc.dg/20020926-1.c: Added "-mesa" to dg-options.
7631
7632 2005-08-17  Nick Clifton  <nickc@redhat.com>
7633
7634         * config/stormy16/stormy16.c (xstormy16_encode_section_info):
7635         Call default_encode_section_info.
7636
7637 2005-08-17  Steven Bosscher  <stevenb@suse.de>
7638
7639         PR tree-optimization/21574
7640         * tree-ssa-ccp.c (likely_value): If the right hand side is a
7641         constant, return CONSTANT.
7642         (ccp_lattice_meet): Use operand_equal_p instead of simple_cst_equal.
7643         (ccp_fold, visit_assignment): Likewise.
7644         (evaluate_stmt): Handle UNDEFINED and UNKNOWN_VAL the same way.
7645
7646 2005-08-16  James A. Morrison  <phython@gcc.gnu.org>
7647
7648         * c-typeck.c (build_function_call): Call fold_buildN_initializer or
7649         fold_buildN instead of buildN then fold_initializer or fold.
7650         (build_unary_op): Likewise.
7651         (build_binary_op): Likewise.
7652         * fold-const.c (fold_initializer): Remove.
7653         (fold_build1_initializer): New function.
7654         (fold_build2_initializer): New function.
7655         (fold_build3_initializer): New function.
7656         * tree.h (fold_initializer): Remove.
7657         (fold_build1_initializer): New function.
7658         (fold_build2_initializer): New function.
7659         (fold_build3_initializer): New function.
7660
7661 2005-08-16  James A. Morrison  <phython@gcc.gnu.org>
7662
7663         * fold-const.c (optimize_bit_field_compare): Remove extra fold call.
7664         (try_move_mult_to_index): Call fold_build2 instead of build2.
7665         (fold_binary): Don't call fold after calls to try_move_mult_to_index.
7666         * tree-ssa-loop-niter.c (inverse): Call int_const_binop instead of
7667         fold_binary_to_constant.
7668         (infer_loop_bounds_from_undefined): Call fold_build2 instead of
7669         fold (build.
7670         * tree-data-ref.c (tree_fold_divides_p): Use tree_int_cst_equal to
7671         check if A == gcd (A, B).  Remove TYPE argument.
7672         (analyze_offset) Use fold_build2 instead of fold (build.
7673         (create_data_ref): Likewise.
7674         (analyze_siv_subscript_cst_affine): Update calls to tree_fold_divides_p.
7675         * tree-ssa-ccp.c (widen_bitfield): Call fold_build2 instead of build2
7676         then fold.
7677
7678 2005-08-17  Kelley Cook  <kcook@gcc.gnu.org>
7679
7680         * config/arm/unaligned-funcs.c,config/i386/crtfastmath.c,
7681         ipa-cp.c,ipa-prop.c,ipa-prop.h: Update FSF address.
7682
7683 2005-08-16  Andrew Pinski  <pinskia@physics.uc.edu>
7684
7685         PR tree-opt/23402
7686         * gimplify.c (zero_sized_type): New function.
7687         (gimplify_modify_expr_rhs): If we have a zero sized type,
7688         replace the statement with an empty statement.
7689
7690 2005-08-16  H.J. Lu  <hongjiu.lu@intel.com>
7691
7692         * config/i386/crtfastmath.c (set_fast_math): Add "=m" for
7693         fxsave.
7694
7695 2005-08-16  Ian Lance Taylor  <ian@airs.com>
7696
7697         * doc/tm.texi (Label Output): Correct typo.
7698
7699 2005-08-16  Steven Bosscher  <stevenb@suse.de>
7700
7701         PR target/23376
7702         * loop-unroll.c (analyze_insn_to_expand_var): Make sure that
7703         force_operand will work later on using have_insn_for.
7704
7705 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
7706
7707         * fold-const.c (tree_expr_nonnegative_p): Regroup cases.
7708
7709 2005-08-16  Ian Lance Taylor  <ian@airs.com>
7710
7711         PR c++/23337
7712         * gimplify.c (gimplify_init_ctor_eval): If we see an element of
7713         vector type, don't try to construct it element by element.  Add an
7714         assertion that we use a FIELD_DECL when building a COMPONENT_REF.
7715
7716 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
7717
7718         * fold-const.c (fold_ternary): Simplify folding of a CALL_EXPR.
7719
7720 2005-08-16  Geoffrey Keating  <geoffk@apple.com>
7721
7722         * doc/invoke.texi (Precompiled Headers): Document some more options
7723         which are known to be safe.
7724
7725 2005-08-16  James E Wilson  <wilson@specifix.com>
7726
7727         PR tree-optimization/21105
7728         * c-decl.c (grokdeclarator): Use TYPE_SIZE_UNIT not TYPE_SIZE in
7729         TREE_OVERFLOW check.
7730
7731 2005-08-16  David Edelsohn  <edelsohn@gnu.org>
7732
7733         * config/rs6000/rs6000.md (ltu<mode>): Convert to mode macro.
7734         (neg_ltu<mode>): Same.
7735         (gtu<mode>): Same.
7736         (neg_gtu<mode>): Same.
7737
7738 2005-08-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
7739
7740         * builtins.c (expand_builtin_strcat): Remove superfluous call to fold.
7741         (fold_builtin_isdigit): Use fold_buildN.
7742         (build_function_call_expr): Likewise.
7743         * c-typeck.c (c_finish_loop): Likewise.
7744
7745 2005-08-16  J"orn Rennecke <joern.rennecke@st.com>
7746             Richard Shann <rshann@superh.com>
7747
7748         PR middle-end/20396:
7749         * optabs.c (expand_binop): Take TRULY_NOOP_TRUNCATION into account.
7750
7751 2005-08-16  Sebastian Pop  <pop@cri.ensmp.fr>
7752
7753         * tree-ssa-loop-niter.c (scev_probably_wraps_p): Reword a comment.
7754
7755 2005-08-15  Richard Earnshaw  <richard.earnshaw@arm.com>
7756
7757         PR target/23355
7758         * arm.c (thumb_compute_save_reg_mask): Use similar logic to
7759         arm_compure_save_reg0_reg12_mask to determine when the PIC register
7760         must be saved.
7761
7762 2005-08-15  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7763
7764         PR middle-end/23369
7765         * fold-const.c (build_range_check): Disable optimization for function
7766         pointer expressions on targets that require function pointer
7767         canonicalization.
7768
7769 2005-08-15  Ulrich Weigand  <uweigand@de.ibm.com>
7770
7771         * simplify-rtx.c (simplify_const_relational_operation): When
7772         extracting arguments of a COMPARE, recompute the mode as well.
7773
7774 2005-08-15  Ian Lance Taylor  <ian@airs.com>
7775
7776         * tree.c (build_string): Mark tree CONSTANT and INVARIANT.
7777
7778 2005-08-15  DJ Delorie  <dj@redhat.com>
7779
7780         * config/m32c/mov.md (movqi_op): Immediates can't be moved to
7781         the stack.
7782         (movsi_splittable): Allow, but split, moves to the stack.
7783         * config/m32c/m32c.c (m32c_split_move): Always split moves to the
7784         stack.
7785
7786 2005-08-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7787
7788         * aclocal.m4 (gcc_AC_FUNC_PRINTF_PTR): Delete.
7789         * configure.ac: Don't call gcc_AC_FUNC_PRINTF_PTR.
7790         * system.h (HOST_PTR_PRINTF): Don't define, poison it.
7791
7792         * bitmap.c, c-decl.c, config/i386/i386-interix.h,
7793         config/iq2000/iq2000.c, mips-tfile.c, print-rtl.c, print-tree.c:
7794         Delete HOST_PTR_PRINTF.
7795
7796         * configure, config.in: Regenerate.
7797
7798 2005-08-15  David Edelsohn  <edelsohn@gnu.org>
7799
7800         * config/rs6000/rs6000.md (QHSI): New mode macro.
7801         (wd): Extend mode attr for QImode and HImode
7802         (dbits): New mode attr.
7803         (zero_extend<mode>di2): Convert to mode macro.
7804
7805 2005-08-15  Steve Ellcey  <sje@cup.hp.com>
7806
7807         PR target/21841
7808         * doc/invoke.texi (-mgnu-ld): Update description.
7809         (-mhp-ld): Ditto.
7810
7811 2005-08-15  Sebastian Pop  <pop@cri.ensmp.fr>
7812
7813         PR 23391
7814         * Makefile.in (tree-chrec.o): Depends on real.h.
7815         * tree-chrec.c: Include real.h.
7816         (chrec_fold_plus_poly_poly, chrec_fold_multiply_poly_poly,
7817         chrec_fold_plus_1): Use build_real for SCALAR_FLOAT_TYPE_P.
7818         * tree-scalar-evolution.c (add_to_evolution_1,
7819         interpret_rhs_modify_expr): Ditto.
7820
7821 2005-08-15  Sebastian Pop  <pop@cri.ensmp.fr>
7822
7823         PR 23386
7824         * tree-data-ref.c (estimate_niter_from_size_of_data): When
7825         step is negative compute the estimation from init downwards to zero.
7826
7827 2005-08-14  James A. Morrison  <phython@gcc.gnu.org>
7828
7829         * fold-const (fold_binary): Call fold_build2 instead of fold (build.
7830
7831 2005-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
7832
7833         * config/s390/s390.c (s390_const_ok_for_constraint_p): Add 'P'
7834         constraint.
7835         (legitimate_reload_constant_p): Fix handling of lliXX operands.
7836         Accept double-word constants that can be split.
7837         * config/s390/s390.md ("movti"): Use 'P' constraint.
7838         ("*movdi_31", "*movdf_31"): Likewise.
7839
7840 2005-08-14  Daniel Berlin  <dberlin@dberlin.org>
7841
7842         Fix PR tree-optimization/22615
7843
7844         * tree-ssa-structalias.c (solution_set_add): Handle
7845         first_vi_for_offset returning NULL.
7846         (do_da_constraint): Ditto.
7847         (do_sd_constraint): Ditto.
7848         (do_ds_constraint): Ditto
7849         (find_func_aliases): Ditto.
7850         (build_constraint_graph): RHS is allowed be ANYTHING.
7851         (first_vi_for_offset): Return NULL if we couldn't find anything at
7852         the offset.
7853
7854 2005-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
7855
7856         * config/s390/s390.c (s390_canonicalize_comparison): Prefer register
7857         over memory as first operand.
7858
7859 2005-08-14  H.J. Lu  <hongjiu.lu@intel.com>
7860
7861         PR target/23360
7862         * config/i386/crtfastmath.c (set_fast_math): Check if DAZ is
7863         available for setting it.
7864
7865 2005-08-14  Ira Rosen  <irar@il.ibm.com>
7866
7867         PR tree-optimization/23320
7868         * tree-data-ref.c (base_addr_differ_p): Add comment. Check
7869         data-refs' types instead of base object nullness. Add check for
7870         pointer type data-refs before first location comparison. Remove
7871         assert.
7872
7873 2005-08-14  Andreas Schwab  <schwab@suse.de>
7874
7875         * doc/md.texi (Machine Constraints): Fix misplaced @end table.
7876
7877 2005-08-13  James E Wilson  <wilson@specifix.com>
7878
7879         * doc/cpp.texi (__SSP__, __SSP_ALL__): Document.
7880         * doc/invoke.texi (-Wstack-protector, -fstack-protector,
7881         -fstack-protector-all, --param ssp-buffer-size): Document.
7882         (-Wvariadic-macros): Alphabetize.
7883         (-fsched-stalled-insns-dep): Add missing 'f'.
7884
7885         * c-cppbuiltin.c (c_cpp_builtins): Add comment for flag_stack_protect
7886         macros.
7887
7888 2005-08-13  David Edelsohn  <edelsohn@gnu.org>
7889
7890         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 'a' for indexed
7891         or indirect address operand.
7892         (EXTRA_ADDRESS_CONSTRAINT): New.
7893         * config/rs6000/rs6000.md (prefetch): Change constraint "p" to "a".
7894
7895 2005-08-13  Sebastian Pop  <pop@cri.ensmp.fr>
7896
7897         PR tree-optimization/22236
7898         * tree-cfg.c (print_pred_bbs, print_succ_bbs): Correctly print
7899         successors and predecessors.
7900         * tree-chrec.c (chrec_convert): Before converting, check that
7901         sequences don't wrap.
7902         * tree-data-ref.c (compute_estimated_nb_iterations): Moved ...
7903         (analyze_array): Extern.
7904         (find_data_references_in_loop): Remove call to
7905         compute_estimated_nb_iterations.
7906         * tree-data-ref.h (analyze_array): Declared.
7907         * tree-flow-inline.h (single_ssa_tree_operand, single_ssa_use_operand,
7908         single_ssa_def_operand, zero_ssa_operands): Fix documentation.
7909         * tree-flow.h (scev_probably_wraps_p): Declare with an extra parameter.
7910         * tree-scalar-evolution.c (instantiate_parameters_1): Factor entry
7911         condition.
7912         * tree-ssa-loop-ivcanon.c: Fix documentation.
7913         * tree-ssa-loop-ivopts.c (idx_find_step): Add a fixme note.
7914         * tree-ssa-loop-niter.c (compute_estimated_nb_iterations): ... here.
7915         (infer_loop_bounds_from_undefined): New.
7916         (estimate_numbers_of_iterations_loop): Use
7917         infer_loop_bounds_from_undefined.
7918         (used_in_pointer_arithmetic_p): New.
7919         (scev_probably_wraps_p): Pass an extra parameter.  Call
7920         used_in_pointer_arithmetic_p.  Check that AT_STMT is not null.
7921         (convert_step): Fix documentation.
7922         * tree-vrp.c (adjust_range_with_scev): Call instantiate_parameters.
7923         Use initial_condition_in_loop_num and evolution_part_in_loop_num
7924         instead of CHREC_LEFT and CHREC_RIGHT.  Adjust the call to
7925         scev_probably_wraps_p.
7926
7927 2005-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
7928
7929         * config/s390/s390.c (s390_split_branches): Revert 2005-08-12 change.
7930         (s390_register_info): Ignore clobbered_regs information for fixed
7931         registers, and only fixed registers.
7932         (s390_init_frame_layout): Remove redundant call.
7933
7934 2005-08-12  Gerald Pfeifer  <gerald@pfeifer.com>
7935
7936         * doc/invoke.texi (C++ Dialect Options): Add dynamic_cast to
7937         description of -Wold-style-casts.
7938
7939 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
7940             Jakub Jelinek  <jakub@redhat.com>
7941
7942         * config/s390/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
7943         * config/s390/s390-protos.h (s390_get_thread_pointer): Prototype added.
7944         * config/s390/s390.c (print_operand): New output modifier 'G' added.
7945         (get_thread_pointer): Renamed to s390_get_thread_pointer.
7946         * config/s390/s390.md (stack_protect_set, stack_protect_test): If
7947         TARGET_THREAD_SSP_OFFSET is defined, change operands[1] to
7948         (MEM:P (PLUS:P (tp, TARGET_THREAD_SSP_OFFSET))).
7949         (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
7950         ("stack_protect_set", "stack_protect_test"): New expanders.
7951         ("stack_protect_setsi", "stack_protect_setdi", "stack_protect_testsi",
7952         "stack_protect_testdi"): New insn definitions.
7953
7954 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
7955
7956         * config/s390/s390.md ("*movdf_31"): Changed constraint from P to K.
7957
7958 2005-08-12  Paul Brook  <paul@codesourcery.com>
7959
7960         * config/arm/lib1funcs.asm: Error if __ARM_ARCH__ not set.
7961
7962 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
7963
7964         * config/s390/predicates.md (setmem_operand): New predicate.
7965         (shift_count_operand): Accept ANDs with special constants as
7966         operand.
7967         * config/s390/s390.c (print_shift_count_operand): Skip ANDs
7968         with special constants.
7969         * config/s390/s390.md ("setmem_long", "*setmem_long"): Replaced
7970         shift_count_operand with setmem_operand.
7971
7972 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
7973
7974         * config/s390/s390.c (s390_extract_part, s390_single_part):
7975         Type cast added.
7976         (s390_const_ok_for_constraint_p): Added SImode to the N constraint.
7977         (s390_output_mi_thunk): Don't use lg on 31 bit.
7978         * config/s390/s390.md ("*movdi_31", "*movdf_31"): Added lmy and stmy.
7979         ("*llgt_sisi" and splitter): Replaced TARGET_64BIT with TARGET_ZARCH.
7980
7981 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
7982
7983         * config/s390/s390.c (CONST_OK_FOR_J, CONST_OK_FOR_K): New macros.
7984         (s390_select_ccmode, s390_rtx_costs, legitimate_reload_constant_p,
7985         s390_init_frame_layout, s390_emit_prologue, s390_emit_epilogue,
7986         s390_output_mi_thunk): Replaced uses of CONST_OK_FOR_CONSTRAINT_P
7987         with one of the new macros.
7988
7989 2005-08-12  Andreas Krebbel  <krebbel1@de.ibm.com>
7990
7991         * config/s390/s390.c (s390_split_branches, s390_init_frame_layout):
7992         Don't set save_return_addr_p.
7993         (s390_register_info): Make clobbered_regs not depending on
7994         save_return_addr_p.
7995
7996 2005-08-12  Kaz Kojima  <kkojima@gcc.gnu.org>
7997
7998         * gcc.c (LINK_SSP_SPEC): Remove space before a trailing }.
7999         (LINK_COMMAND_SPEC): Add space after %(link_ssp).
8000
8001 2005-08-11  James E. Wilson  <wilson@specifix.com>
8002
8003         * config/ia64/ia64.h (EXTRA_MEMORY_CONSTRAINT): New.
8004
8005 2005-08-11  Jakub Jelinek  <jakub@redhat.com>
8006
8007         * dwarf2out.c (add_location_or_const_value_attribute): Prefer
8008         locations gathered by var-tracking in single entry loc_list
8009         over loc_descriptor_from_tree.
8010
8011         * dwarf2out.c (concat_loc_descriptor): Add can_use_fbreg argument,
8012         pass it down to loc_descriptor.
8013         (loc_descriptor): Pass can_use_fbreg to concat_loc_descriptor.
8014         (containing_function_has_frame_base): Move earlier in the file.
8015         (loc_descriptor_from_tree_1): Use containing_function_has_frame_base
8016         instead of always assuming fbreg can't be used.
8017
8018 2005-08-11  David Edelsohn  <edelsohn@gnu.org>
8019
8020         * config/rs6000/altivec.md: Change constraint "m" to "Z".
8021         * config/rs6000/predicates.md (indexed_or_indirect_operand):
8022         Accept address wrapped in AND for Altivec.
8023         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address):
8024         Strip AND wrapping offset address for Altivec.
8025
8026 2005-08-11  Richard Henderson  <rth@redhat.com>
8027
8028         PR middle-end/23312
8029         * gimplify.c (gimplify_one_sizepos): Check for INTEGER_TYPE
8030         before using TYPE_IS_SIZETYPE.
8031
8032 2005-08-11  Richard Henderson  <rth@redhat.com>
8033
8034         PR target/22225
8035         * config/alpha/alpha.c (alphaev4_insn_pipe): Add take pipes for
8036         insn types not present on ev4.
8037         (alphaev5_insn_pipe): Similarly.
8038
8039 2005-08-11  Richard Earnshaw  <richard.earnshaw@arm.com>
8040
8041         PR target/23250
8042         * arm.c (arm_override_options): If the user has selected callee-super-
8043         interworking, then enable normal interworking.
8044
8045 2005-08-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8046
8047         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Undef before
8048         redefinition.
8049
8050 2005-08-11  Wu Zhou  <woodzltc@cn.ibm.com>
8051
8052         * doc/rtl.texi: Fix two typos.
8053
8054 2005-08-11  Richard Guenther  <rguenther@suse.de>
8055
8056         PR target/23289
8057         * config/i386/i386.c (ix86_function_ok_for_sibcall): Handle
8058         cases where we call to/from functions returning void.
8059
8060 2005-08-10  James A. Morrison  <phython@gcc.gnu.org>
8061
8062         PR c++/23225
8063         * tree.c (build_pointer_type_for_mode): Robustify.
8064
8065 2005-08-10  James E Wilson  <wilson@specifix.com>
8066
8067         * defaults.h, config/alpha/alpha.h, config/ia64/ia64.h
8068         (ASM_OUTPUT_ADDR_VEC_ELT): Delete.
8069
8070         * config/alpha/alpha.c (alpha_arg_partial_bytes): Change "(CUM)." to
8071         "cum->".
8072
8073 2005-08-10  Eric Christopher  <echristo@apple.com>
8074
8075         * config/rs6000/rs6000.c (mems_ok_for_quad_peep): Rewrite.
8076         * config/rs6000/rs6000.md (*lfq_power2, *stfq_power2): Use
8077         V2DFmode.
8078
8079 2005-08-10  Andrew Pinski  <pinskia@physics.uc.edu>
8080
8081         PR target/21887
8082         * config/darwin.c (machopic_indirect_data_reference): Use a new register
8083         for the high part when generating dynamic-no-pic code.
8084
8085 2005-08-10  H.J. Lu  <hongjiu.lu@intel.com>
8086
8087         * config.gcc (i[34567]86-*-linux*): Add i386/t-crtfm to tm-file.
8088         (x86_64-*-linux*): Likewise.
8089
8090         * config/i386/crtfastmath.c: New file.
8091         * config/i386/t-crtfm: Likewise.
8092
8093         * config/i386/linux.h (ENDFILE_SPEC): New.
8094         * config/i386/linux64.h (ENDFILE_SPEC): Likewise.
8095
8096         * config/i386/t-linux64 (EXTRA_MULTILIB_PARTS): Add
8097         crtfastmath.o.
8098
8099 2005-08-10  Dorit Nuzman  <dorit@il.ibm.com>
8100
8101         * doc/md.texi: (reduc_smin, reduc_umin, reduc_splus, reduc_uplus):
8102         (vec_shl, vec_shr): Document new operations.
8103         * tree.def (VEC_RSHIFT_EXPR, VEC_LSHIFT_EXPR): Fix comment.
8104
8105 2005-08-10  David Edelsohn  <edelsohn@gnu.org>
8106
8107         * config/rs6000/predicates.md (indexed_or_indirect_address): New.
8108         * config/rs6000/rs6000.md (prefetch): Remove operand 0 mode and
8109         change predicate to indexed_or_indirect_address.
8110
8111 2005-08-10  Richard Sandiford  <richard@codesourcery.com>
8112
8113         * config/arm/lib1funcs.asm (__aeabi_uidiv, __aeabi_idiv): New aliases.
8114         * config/arm/libgcc-bpabi.ver (GCC_3.5): Add __aeabi_idiv,
8115         __aeabi_uidiv, __aeabi_uread4, __aeabi_uread8, __aeabi_uwrite4
8116         and __aeabi_uwrite8.
8117         * config/arm/unaligned-funcs.c: New file.
8118         * config/arm/t-bpabi (LIB2FUNCS_EXTRA): Add unaligned-funcs.c.
8119
8120 2005-08-09  Paolo Bonzini  <bonzini@gnu.org>
8121
8122         * bb-reorder.c (pass_duplicate_computed_gotos, pass_partition_blocks):
8123         Add dump.
8124         * cfglayout.c (pass_insn_locators_initialize): Add dump.
8125         * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes):
8126         Add dump.
8127         * except.c (pass_convert_to_eh_region_ranges): Add dump.
8128         * final.c (pass_shorten_branches): Add dump.
8129         * flow.c (pass_recompute_reg_usage, pass_remove_death_notes): Add dump.
8130         (pass_life): Rename dump.
8131         (rest_of_handle_flow2): Remove initial verify_flow_info.
8132         * function.c (pass_instantiate_virtual_regs): Add dump.
8133         * integrate.c (pass_initial_value_sets): Add dump.
8134         * jump.c (pass_cleanup_barriers, pass_purge_lineno_notes): Add dump.
8135         * loop-init.c (pass_rtl_loop_init, pass_rtl_loop_done): Rename dump.
8136         (pass_rtl_move_loop_invariants, pass_rtl_unswitch, pass_rtl_doloop,
8137         pass_rtl_unroll_and_peel_loops): Rename dump and add gate.
8138         (gate_rtl_move_loop_invariants, gate_rtl_unswitch, gate_rtl_doloop,
8139         gate_rtl_unrool_and_peel_loops): New.
8140         (rtl_move_loop_invariants, rtl_unswitch, rtl_unrool_and_peel_loops,
8141         rtl_doloop): Do not look at flags.
8142         * mode-switching.c (pass_mode_switching): Add dump.
8143         * recog.c (pass_split_all_insns, pass_split_for_shorten_branches,
8144         pass_split_before_regstack): Add dump.
8145         * regmove.c (pass_stack_adjustments): Add dump.
8146         * tree-optimize.c (pass_fixup_cfg): Add dump.
8147
8148 2005-08-10  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
8149
8150         PR 23309
8151         * config/m32r/m32r.c (m32r_reload_lr): Fix off by one error when
8152         deciding which instruction sequence to use.
8153
8154 2005-08-09  Dorit Nuzman  <dorit@il.ibm.com>
8155
8156         * tree-vect-transform.c (vect_create_epilog_for_reduction): Set
8157         BIT_FIELD_REF_UNSIGNED for newly created BIT_FIELD_REFs.
8158
8159 2005-08-09  Richard Guenther  <rguenther@suse.de>
8160
8161         * c-common.c (builtin_function_2): Remove.
8162         (def_builtin_1): New function.
8163         (c_common_nodes_and_builtins): Use def_builtin_1 to
8164         build builtin functions.
8165
8166 2005-08-09  Jie Zhang  <jie.zhang@analog.com>
8167
8168         * config/bfin/uclinux.h (NO_IMPLICIT_EXTERN_C): Define.
8169         * config/bfin/elf.h (NO_IMPLICIT_EXTERN_C): Define.
8170         * config/bfin/bfin.c (bfin_return_in_memory): Update to really match
8171         Visual DSP.
8172
8173 2005-08-09  James A. Morrison  <phython@gcc.gnu.org>
8174
8175         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Use
8176         fold_binary instead of fold_build2 since we don't care about the
8177         resulting tree.
8178         (loop_niter_by_eval): Likewise.
8179         (compare_trees): Likewise.
8180         (proved_non_wrapping_p): Likewise.
8181
8182 2005-08-09  James A. Morrison  <phython@gcc.gnu.org>
8183
8184         PR c/23161
8185         PR c/23165
8186         * c-typeck.c (c_finish_if_stmt): Look into STATEMENT_LISTs to see
8187         if the if is really empty.
8188
8189 2005-08-09  Steven Bosscher  <stevenb@suse.de>
8190
8191         PR tree-optimization/23234
8192         * tree-ssa-math-opts.c (place_reciprocal): New enum.
8193         (execute_cse_reciprocals_1): Replace the 'phi' argument with an
8194         argument of the new enum.
8195         (execute_cse_reciprocals): Add reciprocals for function arguments
8196         on the unique successor edge of the entry block.  Update other calls
8197         to execute_cse_reciprocals_1.
8198
8199 2005-08-08  Richard Henderson  <rth@redhat.com>
8200
8201         PR 22439
8202         * gimplify.c (gimplify_one_sizepos): Preserve the original type.
8203
8204 2005-08-08  Bob Wilson  <bob.wilson@acm.org>
8205
8206         * expr.c (write_complex_part): Return after handling MEM.
8207
8208 2005-08-08  Josh Conner  <jconner@apple.com>
8209
8210         PR rtl-optimization/23241
8211         * combine.c (simplify_comparison): Fix error in determining
8212         whether to lift a subreg from comparison.
8213
8214 2005-08-08  David Edelsohn  <edelsohn@gnu.org>
8215
8216         PR target/18506
8217         * config/rs6000/altivec.md (vec_init<mode>): New.
8218         (vec_set<mode>): New.
8219         (vec_extract<mode>): New.
8220         * config/rs6000/rs6000.c (rs6000_expand_vector_init): New.
8221         (rs6000_expand_vector_set): New.
8222         (rs6000_expand_vector_extract): New.
8223         (rs6000_legitimate_offset_address_p): Offset addresses are valid
8224         for Altivec modes before reload.
8225         (altivec_expand_vec_init_builtin): New.
8226         (get_element_number): New.
8227         (altivec_expand_vec_set_builtin): New.
8228         (altivec_expand_vec_ext_builtin): New.
8229         (altivec_expand_builtin): Expand vec_init, vec_set, and vec_ext
8230         builtins.
8231         (altivec_init_builtins): Init vec_init, vec_set, and vec_ext
8232         builtins.
8233         * config/rs6000/rs6000.h (rs6000_builtins): Add
8234         ALTIVEC_BUILTIN_VEC_INIT_<mode>, ALTIVEC_BUILTIN_VEC_SET_<mode>,
8235         ALTIVEC_BUILTIN_VEC_EXT_<mode>.
8236         * config/rs6000/rs6000-protos.h: Declare new functions.
8237
8238 2005-08-08  Jan Hubicka  <jh@suse.cz>
8239
8240         * i386.c (legitimate_pic_address_disp_p): Refuse GOTOFF in 64bit mode.
8241         (legitimate_address_p): Refuse GOT and GOTOFF in 64bit mode.
8242         * i386.md (movdi*): Use pic_32bit_operand.
8243         * predicates.md (pic_32bit_operand): New.
8244
8245 2005-08-08  Nathan Sidwell  <nathan@codesourcery.com>
8246
8247         PR c++/21166
8248         * stor-layout.c (finalize_type_size): Undo DECL_PACKED when possible.
8249
8250 2005-08-07  James A. Morrison  <phython@gcc.gnu.org>
8251
8252         * tree-vrp.c (simplify_div_or_mod_using_range): Use build2.
8253         (test_for_singularity): Use fold_build2.
8254
8255 2005-08-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
8256
8257         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Fix loop upper bound.
8258
8259 2005-08-07  Danny Smith  <dannysmith@users.sourceforge.net>
8260
8261         * config/i386/cygming.h (SUBTARGET_ENCODE_SECTION_INFO): Define.
8262         (COMMON_ASM_OP) Define.
8263         * config/i386/i386.c (ix86_in_large_data_p): Add ATTRIBUTE_UNUSED
8264         (ix86_encode_section_info): Likewise.
8265         (TARGET_ENCODE_SECTION_INFO): Conditionally define as
8266         SUBTARGET_ENCODE_SECTION_INFO.
8267
8268 2005-08-06  Richard Henderson  <rth@redhat.com>
8269
8270         PR 21894
8271         * tree-nested.c (convert_local_reference): Save and restore val_only
8272         around component_ref and friends.  Clear walk_subtrees by default.
8273
8274 2005-08-06  Peter O'Gorman  <peter@pogma.com>
8275
8276         PR 21366
8277         * gcc.c (process_command): Check the argument to -b has a dash.
8278         * doc/invoke.texi: Update -b and -V docs.
8279
8280 2005-08-06  James E Wilson  <wilson@specifix.com>
8281
8282         * config/mips/cross64.h, config/mips/t-cross64: Delete.
8283
8284 2005-08-06  Michael Matz  <matz@suse.de>
8285
8286         * genattrtab.c (write_attr_get, write_attr_case): Use insn_code
8287         member only if only one insn is associated with the value.
8288
8289 2005-08-06  Nick Clifton  <nickc@redhat.com>
8290
8291         * config/stormy16/stormy16.h (SYMBOL_FLAG_XSTORMY16_BELOW100):
8292         New define.
8293         (ASM_OUTPUT_LABELREF): Delete - it is no longer needed.
8294         * config/stormy16/stormy16.c (xstormy16_below100_symbol):
8295         Check symbol flags instead of symbol name mangling.
8296         (xstormy16_asm_output_aligned_common): Likewise.  Also
8297         simplify code since the bss100_section cass is the only case
8298         where the below100 code will be triggered.
8299         (xstormy16_encode_section_info): Encode below100 attribute
8300         using the SYMBOL_FLAG_XSTORMY16_BELOW100 instead of mangling
8301         the name.
8302         (xstormy16_strip_name_encoding): Delete - this function is no
8303         longer needed.
8304         (TARGET_STRIP_NAME_ENCODING): Undefine.
8305         * config/stormy16/stormy16-protos.h: Delete prototype for
8306         xstormy16_strip_name_encoding.
8307
8308 2005-08-06  Kazu Hirata  <kazu@codesourcery.com>
8309
8310         * Makefile.in, cfgexpand.c, cfgloop.h, cfgloopmanip.c,
8311         config.gcc, ipa-cp.c, ipa-prop.c, ipa-prop.h, reg-stack.c,
8312         tree-ssa-structalias.c, tree-vrp.c, value-prof.c, vec.h,
8313         config/linux.h, config/alpha/alpha.h, config/alpha/linux.h,
8314         config/alpha/predicates.md, config/arc/arc.h,
8315         config/arm/arm.h, config/arm/ieee754-df.S,
8316         config/arm/ieee754-sf.S, config/bfin/bfin.c,
8317         config/bfin/bfin.h, config/c4x/c4x.h, config/crx/crx.c,
8318         config/fr30/fr30.h, config/frv/frv.h, config/h8300/h8300.h,
8319         config/i386/i386.h, config/ia64/ia64.c, config/ia64/ia64.h,
8320         config/m68hc11/m68hc11.h, config/mips/mips.c,
8321         config/mips/mips.h, config/mips/openbsd.h,
8322         config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.h,
8323         config/pdp11/pdp11.h, config/rs6000/linux-unwind.h,
8324         config/rs6000/rs6000.c, config/rs6000/rs6000.h,
8325         config/s390/s390.c, config/sh/sh.c, config/sh/sh.h,
8326         config/sparc/linux.h, config/sparc/linux64.h,
8327         config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h,
8328         doc/extend.texi, doc/gcov.texi, doc/install.texi,
8329         doc/invoke.texi, doc/rtl.texi, doc/tm.texi: Fix comment/doc
8330         typos.  Follow spelling conventions.
8331
8332 2005-08-06  Joseph S. Myers  <joseph@codesourcery.com>
8333
8334         PR c/23113
8335         * stmt.c (warn_if_unused_value): Check TREE_NO_WARNING at start.
8336         Don't handle NOP_EXPR, CONVERT_EXPR and NON_LVALUE_EXPR
8337         specially.  Check for side effects only for COND_EXPR.
8338         * c-typeck.c (c_finish_stmt_expr): Mark statement expression
8339         return with TREE_NO_WARNING.
8340
8341 2005-08-06  Richard Sandiford  <richard@codesourcery.com>
8342
8343         PR rtl-optimization/23233
8344         * loop.c (combine_movables): Require the modes to be the same.
8345         (move_movables): Remove handling of cases where the replacement
8346         had a different mode to the original.
8347
8348 2005-08-05  James A. Morrison  <phython@gcc.gnu.org>
8349
8350         PR tree-optimization/23128
8351         * tree-vrp.c (vrp_int_const_binop): Check if unsigned addition or
8352         subtraction wrap, and set TREE_OVERFLOW if they do.
8353
8354 2005-08-05  Richard Henderson  <rth@redhat.com>
8355
8356         PR 21728
8357         * tree-cfg.c (remove_bb): Transmute DECL_NONLOCAL labels into
8358         FORCED_LABEL labels.
8359
8360 2005-08-05  J"orn Rennecke <joern.rennecke@st.com>
8361
8362         PR middle-end/23135
8363         * reload.c (find_reloads_subreg_address): Pass down TYPE
8364         unchanged.  Change all callers except find_reloads_toplev.
8365
8366 2005-08-05  Michael Matz  <matz@suse.de>
8367
8368         * genattrtab.c (current_alternative_string): Remove.
8369         (SIMPLIFY_ALTERNATIVE): Ditto.
8370         (attr_alt_bit_p): Ditto.
8371         (alternative_name): Make const char *.
8372         (evaluate_eq_attr): Remove use of above things.
8373         (simplify_test_exp): Ditto.
8374         (simplify_test_exp <EQ_ATTR>): Guard for insn_code < 0 .
8375         (simplify_test_exp <AND>): Correct typo (test 'right' not 'left').
8376
8377 2005-08-04  James E Wilson  <wilson@specifix.com>
8378
8379         * config/ptx4.h, config/sol2.h, config/arm/freebsd.h,
8380         config/arm/linux-elf.h, config/frv/frv.h, config/i386/freebsd.h,
8381         config/i386/freebsd64.h, config/i386/netware.h, config/i386/sco5.h,
8382         config/ia64/freebsd.h, config/rs6000/sysv4.h, config/sparc/freebsd.h
8383         (LINK_SPEC): Delete useless %{Wl,*:%*} item.
8384
8385 2005-08-04  Richard Henderson  <rth@redhat.com>
8386
8387         PR 21529
8388         * params.def (PARAM_SRA_MAX_STRUCTURE_COUNT): New.
8389         * params.h (SRA_MAX_STRUCTURE_COUNT): New.
8390         * tree-sra.c (decide_block_copy): Use it.  Disable element copy
8391         if we'd have to instantiate too many members.
8392
8393 2005-08-04  Richard Henderson  <rth@redhat.com>
8394
8395         PR 21291
8396         * tree-outof-ssa.c (coalesce_asm_operands): New.
8397         (coalesce_ssa_name): Use it.  Split out ...
8398         (coalesce_phi_operands, coalesce_result_decls): ... these.
8399
8400 2005-08-04  Paul Brook  <paul@codesourcery.com>
8401
8402         * read-rtl.c (read_quoted_string): Break if EOF.
8403
8404 2005-08-04  Andrew Pinski  <pinskia@physics.uc.edu>
8405
8406         * tree.h (fold_build1): Change to macro and call fold_build1_stat.
8407         (fold_build2): Likewise.
8408         (fold_build3): Likewise.
8409         (fold_build1_stat): New function prototype.
8410         (fold_build2_stat): Likewise.
8411         (fold_build3_stat): Likewise.
8412         * fold-const.c (fold_build1): Rename to ..
8413         (fold_build1_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
8414         through to build1_stat.
8415         (fold_build2): Rename to ..
8416         (fold_build2_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
8417         through to build2_stat.
8418         (fold_build3): Rename to ..
8419         (fold_build3_stat): this.  Add MEM_STAT_DECL.  Pass the mem stats
8420         through to build3_stat.
8421
8422 2005-08-04  David Edelsohn  <edelsohn@gnu.org>
8423             Ian Lance Taylor  <ian@airs.com>
8424
8425         * function.c (assign_stack_local_1): Do not correct stack slot
8426         address if allocation size is smaller than mode size.
8427
8428 2005-08-04  Diego Novillo  <dnovillo@redhat.com>
8429
8430         PR 22037
8431         * tree-cfg.c (replace_uses_by): Call mark_new_vars_to_rename.
8432         (tree_merge_blocks): Propagate anything allowed by
8433         may_propagate_copy.
8434         Clarify documentation.
8435         * passes.c (execute_todo): If cleanup_tree_cfg invalidated the
8436         SSA form, schedule an update if necessary.
8437
8438 2005-08-04  Gerald Pfeifer  <gerald@pfeifer.com>
8439
8440         * doc/install.texi (Binaries): Remove broken link to
8441         Sinix/Reliant Unix binaries.
8442
8443 2005-08-03  Richard Henderson  <rth@redhat.com>
8444
8445         PR 23221
8446         * function.c (stack_protect_epilogue): Export.
8447         * tree.h (stack_protect_epilogue): Declare.
8448         * calls.c (expand_call): Call it.
8449
8450 2005-08-03  Eric Christopher  <echristo@apple.com>
8451
8452         * gcc.c (LINK_SSP_SPEC): Add fstack-protector-all.
8453         * config/darwin.h (LINK_COMMAND_SPEC): Add link_ssp
8454         spec.
8455
8456 2005-08-04  Jan Hubicka  <jh@suse.cz>
8457
8458         * profile.c (branch_prob): Split edges with goto locus on them
8459         to get proper line counts.
8460         * tree-cfg.c (make_cond_expr_edges): Record user goto locuses, if any.
8461
8462 2005-08-03  Paul Brook  <paul@codesourcery.com>
8463
8464         * function.c (assign_parms): Round current_function_args_size
8465         to PARM_BOUNDARY, not STACK_BOUNDARY.
8466
8467 2005-08-03  Geoffrey Keating  <geoffk@apple.com>
8468
8469         * config/i386/i386.c (x86_elf_aligned_common)
8470         (x86_output_aligned_bss): Don't try to use symbols that aren't defined.
8471
8472 2005-08-03  Zdenek Dvorak  <dvorakz@suse.cz>
8473
8474         PR tree-optimization/23157
8475         * tree-scalar-evolution.c (scev_const_prop): Unshare trees
8476         before emitting them.
8477
8478 2005-08-03  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
8479
8480         PR tree-optimization/19899
8481         * Makefile.in (tree-scalar-evolution.o): Add real.h.
8482         * tree-scalar-evolution.c: Include real.h.
8483         (add_to_evolution): Build constant -1 of correct type.
8484
8485 2005-08-03  Jan Hubicka  <jh@suse.cz>
8486
8487         * cfgloop.h (DLTHE_FLAG_COMPLETTE_PEEL): New flag.
8488         * cfgloopmanip.c (duplicate_loop_to_header_edge): Special case
8489         profile updating for complette unrolling.
8490         * loop-unroll.c (peel_loop_completely): Use it.
8491         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Likewise.
8492         (tree_unroll_loops_completely): Disable code growing unrolling of cold
8493         loops.
8494
8495 2005-08-03  Paul Brook  <paul@codesourcery.com>
8496
8497         * combine.c (can_change_dest_mode): New function.
8498         (try_combine, simplify_set): Use it.
8499
8500 2005-08-03  Eric Botcazou  <ebotcazou@adacore.com>
8501
8502         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Only force
8503         TFmode to BLKmode.
8504
8505 2005-08-03  Gerald Pfeifer  <gerald@pfeifer.com>
8506
8507         * doc/install.texi (Specific): Adjust link to openavr.org.
8508         (Specific): Remove broken reference to GCC 2.8.1 for OS/2.
8509         (Binaries): Adjust HP-UX Porting Center link.
8510         (Binaries): Adjust Free Software Foundation ordering link.
8511
8512 2005-08-03  Andrew Pinski  <pinskia@physics.uc.edu>
8513
8514         * convert.c (convert_to_integer): Use fold_build1 instead of
8515         build1 when converting an integer to an integer.
8516
8517 2005-08-02  Richard Henderson  <rth@redhat.com>
8518
8519         * combine.c (combine_instructions): Don't use reg_equal/equiv
8520         results if the mode doesn't match.
8521
8522 2005-08-02  Mark Mitchell  <mark@codesourcery.com>
8523
8524         * config/i386/t-mingw32 (NATIVE_SYSTEM_HEADER_DIR): Set it.
8525         * doc/fragments.texi (NATIVE_SYSTEM_HEADER_DIR): Document it.
8526
8527 2005-08-02  Richard Henderson  <rth@redhat.com>
8528
8529         PR 23196
8530         * explow.c (memory_address): Remove special-case for
8531         virtual_stack_vars_rtx and virtual_incoming_args_rtx.
8532
8533 2005-08-02  Diego Novillo  <dnovillo@redhat.com>
8534
8535         PR 23164
8536         * tree-cfgcleanup.c (cleanup_tree_cfg): Do not limit the
8537         number of calls to cleanup_tree_cfg_1.
8538
8539 2005-08-02  Martin Reinecke  <martin@mpa-garching.mpg.de>
8540
8541         * doc/invoke.texi: document file extensions .F90 and .F95
8542
8543 2005-08-02  Richard Guenther  <rguenther@suse.de>
8544
8545         * fold-const.c (tree_expr_nonnegative_p): frexp(x, &e) is
8546         positive if its first argument is positive.
8547
8548 2005-08-02  Richard Guenther  <rguenther@suse.de>
8549
8550         PR tree-optimization/23177
8551         * tree-ssa-operands.c (get_tmr_operands): Use get_expr_operands
8552         on TMR_TAG.
8553
8554 2005-08-02  James A. Morrison  <phython@gcc.gnu.org>
8555
8556         PR tree-optimization/23129
8557         * tree-vrp.c (extract_range_from_binary_expr): Set value range to
8558         varying for divisions with anti-ranges.
8559
8560 2005-08-02  Jan Hubicka  <jh@suse.cz>
8561
8562         * tree-ssa-dom.c (thread_across_edge): Remove updating here.
8563         * tree-ssa-threadupdate.c (thread_block): Add it here.
8564
8565 2005-08-01  James E Wilson  <wilson@specifix.com>
8566
8567         * config/mips/mips.c (mips_encode_section_info, mips_attribute_table,
8568         TARGET_ENCODE_SECTION_INFO, TARGET_ATTRIBUTE_TABLE): New.
8569         * config/mips/mips.h (SYMBOL_FLAG_LONG_CALL, SYMBOL_REF_LONG_CALL_P):
8570         New.
8571         * config/mips/predicates.md (const_call_insn_operand): Add check for
8572         SYMBOL_REF_LONG_CALL_P.
8573         * doc/extend.texi (long_call): Document the new attribute.
8574
8575 2005-08-01  Ian Lance Taylor  <ian@airs.com>
8576             Richard Henderson  <rth@redhat.com>
8577
8578         * Makefile.in (RTL_BASE_H): Add real.h.
8579         * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Use structure copy
8580         instead of memcpy.
8581         * emit-rtl.c (const_double_from_real_value): Likewise; use rtx.u.rv
8582         directly.
8583         * rtl.c (rtl_check_failed_code_mode): New.
8584         * rtl.h (struct rtx_def): Add u.rv.
8585         (XCMWINT, XCNMPRV): New.
8586         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Use XCMWINT.
8587         (CONST_DOUBLE_REAL_VALUE): Use XCNMPRV; constify.
8588
8589 2005-08-01  Richard Henderson  <rth@redhat.com>
8590
8591         * dwarf2out.c (mem_loc_descriptor): Use XEXP, not SUBREG_REG,
8592         with auto-inc codes.
8593
8594         * config/alpha/predicates.md (and_operand): Test mode of CONST_DOUBLE.
8595
8596 2005-08-01  Jan Hubicka  <jh@suse.cz>
8597
8598         * i386-protos.h (asm_preferred_eh_data_format): Declare.
8599         * i386.c: Include dwarf2.h
8600         (asm_preferred_eh_data_format): New.
8601         * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Move offline.
8602
8603 2005-08-01  Ian Lance Taylor  <ian@airs.com>
8604
8605         * config/host-linux.c (linux_gt_pch_get_address): Add new name
8606         randomize_va_space for virtual address randomization control.
8607
8608 2005-08-01  Steven Bosscher  <stevenb@suse.de>
8609
8610         * common.opt (flag_ipa_cp): Put in right place to maintain
8611         alphabetic sort.
8612
8613 2005-08-01  Jan Hubicka  <jh@suse.cz>
8614
8615         * profile.c (compute_value_histograms): Fix thinko.
8616         * value-prof.c: Include toplev.h
8617         (check_counter): New function.
8618         (tree_divmod_fixed_value_transform, tree_mod_pow2_value_transform,
8619         tree_mod_subtract_transform): Add sanity check.
8620
8621 2005-08-01  Richard Guenther  <rguenther@suse.de>
8622
8623         PR tree-optimization/23133
8624         * tree-ssa-math-opts.c (execute_cse_reciprocals): Walk
8625         current functions parameter decls to find defs to cse
8626         reciprocals of.
8627
8628 2005-08-01  Richard Guenther  <rguenther@suse.de>
8629
8630         PR tree-optimization/23109
8631         * tree-ssa-math-opts.c (execute_cse_reciprocals_1):
8632         If trapping math is in effect, use post-dominator information
8633         to check if we'd in any case reach a trapping point before
8634         doing the reciprocal insertion.
8635         (execute_cse_reciprocals): Compute post-dominators, if necessary.
8636         * tree-ssa-loop-im.c (determine_invariantness_stmt): RDIV
8637         expressions are invariant only if trapping math is not in effect.
8638
8639 2005-08-01  Razya Ladelsky  <razya@il.ibm.com>
8640
8641         * cgraph.h (update_call_expr, cgraph_copy_node_for_versioning,
8642         cgraph_function_versioning): New declarations.
8643         * cgraphunit.c: Add include to ipa-prop.h.
8644         (update_call_expr, cgraph_copy_node_for_versioning,
8645         cgraph_function_versioning): New functions.
8646         * integrate.c (copy_decl_for_inlining): Remove.
8647         * ipa-prop.h (ipa_replace_map): New struct.
8648         (struct ipa_node): Add ipcp_orig_node, count_scale, new fields.
8649         * ipa-cp.c (ipcp_method_orig_node, ipcp_method_is_cloned,
8650         ipcp_method_set_orig_node, ipcp_cloned_create, ipcp_method_get_scale,
8651         ipcp_method_set_scale, ipcp_method_compute_scale, ipcp_after_propagate,
8652         ipcp_iterate_stage, ipcp_method_scale_print,
8653         ipcp_profile_mt_count_print, ipcp_profile_cs_count_print,
8654         ipcp_profile_edge_print, ipcp_profile_bb_print , ipcp_profile_print,
8655         ipcp_replace_map_create, ipcp_redirect, ipcp_update_callgraph,
8656         ipcp_update_bb_counts, ipcp_update_profiling,
8657         ipcp_update_edges_counts): New functions.
8658         (ipcp_method_cval_init): Remove restriction regarding local methods.
8659         (ipcp_init_stage): Add ipcp_method_compute_scale.
8660         (ipcp_insert_stage): Add versioning.
8661         (ipcp_structures_print): Add ipcp_method_scale_print.
8662         (ipcp_driver): Dump profiling info.
8663         * Makefile.in: Remove integrate.h dependency from tree-inline.o.
8664         Add ipa-prop.h dependency to tree-inline.o and cgraphunit.o.
8665         * tree-inline.c: Remove include to integrate.h, Add include ipa-prop.h.
8666         (struct inline_data): Add versioning_p, ipa_info, new fields.
8667         (remap_decl, mark_local_for_remap_r, setup_one_parameter,
8668         declare_return_variable): Replace calls to copy_decl_for_inlining with
8669         copy_decl_for_dup.
8670         (copy_body_r, copy_bb, copy_cfg_body, copy_tree_r, inlining_p): Add
8671         versioning support.
8672         (copy_decl_for_dup): Rename from copy_decl_for_inlining.
8673         Add argument VERSIONING.
8674         (copy_arguments_for_versioning, copy_static_chain,
8675         function_versionable_p, tree_versionable_function_p,
8676         tree_function_versioning, replace_ref_tree): New functions.
8677         * tree-inline.h: Include varray.h.
8678         (tree_versionable_function_p,  tree_function_versioning,
8679         tree copy_decl_for_dup): New declarations.
8680
8681 2005-08-01  Razya Ladelsky  <razya@il.ibm.com>
8682
8683         * ipa-cp.c: New file. Contains IPCP specific functionality.
8684         * ipa-prop.h: New file. Contains structures/definitions that can be
8685         used by several interprocedural data flow optimizations (and also IPCP).
8686         * ipa-prop.c: New file.
8687         * Makefile.in: Add ipa-cp.c, ipa-prop.h, ipa-prop.c.
8688         * common.opt: Add ipa-cp flag.
8689         * timevar.def: Add IPCP optimization.
8690         * tree-optimize.c (init_tree_optimization_passes): Schedule
8691         pass_ipa_cp.
8692         * tree-pass.h (pass_ipa_cp): Declare.
8693
8694 2005-08-01  Kazu Hirata  <kazu@codesourcery.com>
8695
8696         * dwarf2out.c, fold-const.c, ipa-type-escape.c,
8697         loop-invariant.c, predict.c, predict.def, reload1.c, reorg.c,
8698         tree-sra.c, config/arm/arm.c, config/crx/crx.c,
8699         config/i386/i386.c, config/mips/mips.h,
8700         config/rs6000/rs6000.h, config/sh/sh.c,
8701         config/stormy16/stormy16.c: Fix comment typos.
8702
8703 2005-08-01  Joseph S. Myers  <joseph@codesourcery.com>
8704
8705         PR c/22311
8706         * c-typeck.c (build_binary_op): Use common_type wrapper on
8707         shortened types.
8708         (common_type): Update comment.
8709
8710 2005-07-31  Steven Bosscher  <stevenb@suse.de>
8711
8712         PR target/23095
8713         * common.opt (flag_gcse_after_reload): Don't initialize to 2.
8714         (flag_rerun_cse_after_loop): Initialize this to 2 instead.
8715         * postreload-gcse.c (hash_scan_set): Do not consider stack regs.
8716
8717 2005-07-31  Jan Hubicka  <jh@suse.cz>
8718
8719         * pretty-print.h (pp_widest_integer): New macro.
8720         * tree-pretty-print.c (dump_bb_header): Print BB frequencies and
8721         counts.
8722
8723 2005-07-31  Jan Hubicka  <jh@suse.cz>
8724
8725         * output.h (enum section_category): Export from varasm.c
8726         (categorize_decl_for_section): Likewise.
8727         * varasm.c (enum section_category): Kill.
8728         (categorize_decl_for_section): Make global.
8729         * i386-protos.h (x86_output_aligned_bss, x86_elf_aligned_common):
8730         Declare.
8731         * i386.c (ix86_section_threshold): New static variable.
8732         (ix86_in_large_data_p, ix86_encode_section_info,
8733         x86_64_elf_unique_section,
8734         x86_64_elf_select_section): New functions.
8735         (TARGET_ENCODE_SECTION_INFO): Define
8736         (override_options): Enable medium model for PIC.
8737         (ix86_expand_prologue): Expand gen_set_got_rex64.
8738         (legitimate_constant_p): Handle new UNSPECs.
8739         (legitimate_pic_address_disp_p): Likewise.
8740         (legitimize_pic_address): Lower MEDIUM model addressing.
8741         * i386.h (PIC_OFFSET_TABLE_REGNUM): Set for medium model PIC.
8742         (enum cmodel): Add MEDIUM_PIC.
8743         (SYMBOL_REF_FAR_ADDR_P): New macro.
8744         (SYMBOL_FLAG_FAR_ADDR): New flag.
8745         * i386.md (movdi): Support medium model.
8746         (set_got_rex64): New pattern.
8747         * i386.opt (mlarge-data-threshold): New flag.
8748         * predicates.md (zext_operand/sext_operand): Deal with medium model.
8749         * x86-64.h (ASM_OUTPUT_ALIGNED_BSS): Use x86_output_aligned_bss.
8750         (ASM_OUTPUT_ALIGNED_COMMON, TARGET_ASM_SELECT_SECTION,
8751         TARGET_ASM_UNIQUE_SECTION): New.
8752
8753         * invoke.texi (-mlarge_data_threshold): Document
8754
8755 2005-07-31  Jan Hubicka  <jh@suse.cz>
8756
8757         * tree-outof-ssa.c (coalesce_ssa_name): Use coalesce_cost.
8758         (coalesce_vars): Likewise.
8759         * tree-ssa-live.c (coalesce_cost): New.
8760         (build_tree_conflict_graph): Use coalesce_cost.
8761         * tree-ssa-live.h (coalesce_cost): Declare.
8762
8763 2005-07-30  Richard Earnshaw  <richard.earnshaw@arm.com>
8764
8765         * arm.md (all peepholes for post-increment operations): Delete.
8766         (strqi_preinc, strqi_predec, loadqi_preinc, loadqi_predec)
8767         (loadqisi_preinc, loadqisi_predec, strsi_preinc, strsi_predec)
8768         (loadsi_preinc, loadsi_predec, strqi_shiftpreinc, strqi_shiftpredec)
8769         (loadqi_shiftpreinc, loadqi_shiftpredec, strsi_shiftpreinc)
8770         (strsishift_predec, loadsi_shiftpreinc, loadsi_shiftpredec): Delete.
8771
8772 2005-07-30  James A. Morrison  <phython@gcc.gnu.org>
8773
8774         * fold-const.c (tree_expr_nonnegative_p): Always return true for
8775         non-integral types.
8776
8777 2005-07-29  Wolfgang Bangerth <bangerth@dealii.org>
8778
8779         PR target/22582
8780         * doc/invoke.texi: Document -rdynamic.
8781
8782 2005-07-30  Joseph S. Myers  <joseph@codesourcery.com>
8783
8784         PR c/23143
8785         * c-parser.c (c_parser_parms_list_declarator): Call
8786         mark_forward_parm_decls.
8787         * c-decl.c (merge_decls): Only check DECL_IN_SYSTEM_HEADER for
8788         decls with visibility structure.
8789
8790 2005-07-30  Paul Brook  <paul@codesourcery.com>
8791
8792         * config/arm/arm.c (arm_coproc_mem_operand): Fix inaccurate comment.
8793
8794 2005-07-30  Paul Brook  <paul@codesourcery.com>
8795
8796         * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
8797         prototype.
8798         * config/arm/arm.c (arm_canonicalize_comparison): Use correct limit
8799         value for mode.
8800         * config/arm/arm.h (CANONICALIZE_COMPARISON): Pass mode argument.
8801
8802 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
8803
8804         PR c/529
8805         * c-decl.c (warn_if_shadowing): Don't check for PARM_DECL in
8806         nested function declarators.
8807         (pushdecl): Don't call warn_if_shadowing for PARM_DECL.
8808         (grokparms): Call warn_if_shadowing for parameters used within the
8809         parameter list.
8810         (store_parm_decls_newstyle): Call warn_if_shadowing for parameters
8811         not used within the parameter list.
8812         (store_parm_decls_oldstyle): Call warn_if_shadowing for parameters.
8813
8814 2005-07-30  Jan Hubicka  <jh@suse.cz>
8815
8816         * expr.c (expand_expr_real_1): Do not load mem targets into register.
8817         * i386.c (ix86_fixup_binary_operands): Likewise.
8818         (ix86_expand_unary_operator): Likewise.
8819         (ix86_expand_fp_absneg_operator): Likewise.
8820         * optabs.c (expand_vec_cond_expr): Validate dest.
8821
8822 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
8823
8824         PR c/21720
8825         * real.c (real_from_string): Also set last bit if there is a
8826         nonzero hex digit beyond GCC's internal precision after ".".
8827
8828 2005-07-29  David Edelsohn  <edelsohn@gnu.org>
8829
8830         * config/rs6000/altivec.md: Convert UNSPEC numerical values to
8831         define_constants.  Change duplicate values to unassigned numbers.
8832         Change UNSPEC_SUBS to UNSPEC_VSUBS.
8833         (*altivec_vspltsf): New.
8834         (altivec_vperm_v4sf): Delete.
8835         (altivec_vperm_<mode>): Use mode macro V.
8836         (altivec_vsldoi_<mode>): Convert to mode macro pattern.
8837         (altivec_predicate_v4sf): Delete.
8838         (altivec_predicate_<mode>): Use mode macro V.
8839         (*altivec_lvesfx): New.
8840         (*altivec_stvesfx): New.
8841         (vec_realign_load_v4sf): Delete.
8842         (vec_realign_load_<mode>): Use mode macro V.
8843         * config/rs6000/rs6000.c (generate_set_vrsave): Use
8844         UNSPECV_SET_VRSAVE.
8845
8846 2005-07-29  Mark Mitchell  <mark@codesourcery.com>
8847
8848         PR bootstrap/23131
8849         * configure.ac (SYSTEM_HEADER_DIR): Avoid setting to empty
8850         string.
8851         * configure: Regenerated.
8852
8853 2005-07-29  Paul Brook  <paul@codesourcery.com>
8854
8855         * doc/install.texi: Add link to GFortran binaries wiki page.
8856
8857 2005-07-29  David Ung  <davidu@mips.com>
8858
8859         * config/mips/mips.c (mips_cpu_info_table): Add 5kf to the table.
8860         (mips_rtx_cost_data): Add costs for 5kc and 5kf.
8861         * config/mips/mips.h (processor_type): Add PROCESSOR_5KF.
8862         * config/mips/mips.md (cpu): Add 5kf name.
8863         (includes): Includes 5k.md.
8864         * config/mips/5k.md: New DFA pipeline for the 5kc/5kf.
8865         * doc/invoke.texi (MIPS Options): Updated cpu name supported with
8866         -march flag.
8867
8868 2005-07-29  Diego Novillo  <dnovillo@redhat.com>
8869
8870         PR 22550
8871         * tree-cfgcleanup.c (cleanup_tree_cfg_1): Extract from ...
8872         (cleanup_tree_cfg): ... here.
8873         Call cleanup_tree_cfg_1 until there are no more cleanups to
8874         do.
8875
8876 2005-07-29  James A. Morrison  <phython@gcc.gnu.org>
8877
8878         * tree-vrp.c (compare_range_with_value): Return true or false
8879         for ~[VAL_1, VAL_2] OP VAL if VAL_1 <= VAL <= VAL_2 for NE_EXPR and
8880         EQ_EXPR respectively.
8881
8882 2005-07-29  Kazu Hirata  <kazu@codesourcery.com>
8883
8884         * cfg.c, tree-complex.c, config/frv/frv.c, config/i386/i386.c:
8885         Fix comment typos.
8886
8887 2005-07-29  Diego Novillo  <dnovillo@redhat.com>
8888
8889         * tree-ssa-dom.c (struct opt_stats_d): Add field num_iterations.
8890         (tree_ssa_dominator_optimize): Increment it.
8891         (dump_dominator_optimization_stats): Print it.
8892
8893 2005-07-29  Richard Earnshaw  <richard.earnshaw@arm.com>
8894             Steven Bosscher  <stevenb@suse.de>
8895
8896         PR rtl-optimization/23117
8897         * sched-rgn.c (add_branch_dependences): Handle COND_EXEC correctly
8898         when head == tail.  Tidy comment.
8899
8900 2005-07-28  Richard Henderson  <rth@redhat.com>
8901
8902         * cse.c (exp_equiv_p): Special case CONST_DOUBLE.
8903         * cselib.c (rtx_equal_for_cselib_p): Likewise.
8904         * jump.c (rtx_renumbered_equal_p): Likewise.
8905         * loop.c (rtx_equal_for_loop_p): Tidy and special case PC, CC0,
8906         CONST_INT and CONST_DOUBLE.
8907         (rtx_equal_for_prefetch_p): Likewise, plus LABEL_REF.
8908         * reload.c (operands_match_p): Special case CONST_INT and
8909         CONST_DOUBLE; check mode earlier.
8910
8911 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
8912
8913         PR c/22240
8914         * c-typeck.c (convert_for_assignment): Do not check
8915         DECL_IN_SYSTEM_HEADER on NULL fundecl.
8916
8917 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
8918
8919         PR c/22192
8920         * c-typeck.c (composite_type): Prefer constant size arrays to
8921         VLAs.
8922
8923 2005-07-29  Joseph S. Myers  <joseph@codesourcery.com>
8924
8925         PR c/21720
8926         * real.c (real_from_string): Set last bit if there is a nonzero
8927         hex digit beyond GCC's internal precision.
8928
8929 2005-07-28  Richard Henderson  <rth@redhat.com>
8930
8931         PR rtl-opt/22619
8932         * cfgcleanup.c (try_forward_edges): Watch out for end of
8933         insn chain.
8934
8935 2005-07-28  James E Wilson  <wilson@specifixinc.com>
8936
8937         PR c/23106
8938         * doc/invoke.texi (Wstrict-aliasing=2): Fix misleading wording.
8939
8940 2005-07-28  Jan Hubicka  <jh@suse.cz>
8941
8942         * Makefile.in (rtl-profile.o): Kill all traces of it.
8943         * common.opt (fspeculative-prefetching, ftree-based-profiling): Kill.
8944         * coverage.h (rtl_coverage_counter_ref): Kill.
8945         * opts.c (flag_speculative_prefetching_set): Kill.
8946         (flag_loop_optimize_set): New.
8947         (common_handle_option): Disable loop optimizer when profiling;
8948         do not handle speculative prefetching.
8949         * passes.c (init_optimization_passes): Replace pass_profiling combo
8950         by branch_prob pass.
8951         * profile.c (compute_value_histograms): Update for simplified value
8952         profiles.
8953         (rtl_register_profile_hooks): Kill.
8954         (pass_profiling): Kill.
8955         (rest_of_handle_branch_prob): Do not profile.
8956         * toplev.c (process_options): Remove speculative prefetching.
8957         * toplev.h (flag_tree_based_profiling): Kill.
8958         * tree-profile.c (prepare_instrumented_value,
8959         tree_gen_interval_profiler, tree_gen_pow2_profiler,
8960         tree_gen_one_value_profiler, do_tree_profiling): Update for
8961         simplified datastructures.
8962         * value-prof.c: Add comment that speculative prefetching was dropped;
8963         update rest of file for simplified datastructures.
8964         (NOPREFETCH_RANGE_MIN, NOPREFETCH_RANGE_MAX,
8965         rtl_divmod_values_to_profile, insn_prefetch_values_to_profile,
8966         find_mem_reference_1, find_mem_reference_2, find_mem_reference,
8967         rtl_values_to_profile, rtl_divmod_fixed_value, rtl_mod_pow2,
8968         rtl_mod_subtract, gen_speculative_prefetch,
8969         rtl_divmod_fixed_value_transform, rtl_mod_pow2_value_transform,
8970         rtl_mod_subtract_transform, speculative_prefetching_transform): Kill.
8971         (gate_handle_value_profile_transformations,
8972         rest_of_handle_value_profile_transformations,
8973         pass_value_profile_transformations): Kill.
8974         * value-prof.h (histogram_value_t): Remove IL based unions.
8975         (rtl_register_value_prof_hooks, rtl_register_profile_hooks,
8976         rtl_profile_hooks): Remove hooks.
8977
8978         * invoke.texi (-ftree-based-profiling, -fspeculative-prefetching): Kill.
8979
8980         * cgraph.c (cgraph_clone_edge): New UPDATE_ORIGINAL argument.
8981         (cgraph_clone_node): Likewise.
8982         * cgraph.h (cgraph_clone_edge): Update prototype.
8983         (cgraph_clone_node): Likewise.
8984         * ipa-inline.c (cgraph_clone_inlined_nodes): Update call of
8985         cgraph_clone_node.
8986         (lookup_recursive_calls): Consider profile.
8987         (cgraph_decide_recursive_inlining): Fix updating; use new
8988         probability argument; use profile.
8989         * params.def (PARAM_MIN_INLINE_RECURSIVE_PROBABILITY): New.
8990         * tree-inline.c (copy_bb): Update clal of clone_edge.
8991         * tree-optimize.c (tree_rest_of_compilation): UPdate cal of clone_node.
8992
8993         * invoke.texi (min-inline-recursive-probability): Document.
8994
8995 2005-07-28  Gerald Pfeifer  <gerald@pfeifer.com>
8996
8997         * doc/install.texi (Configuration): Update Valgrind homepage.
8998
8999 2005-07-28  Richard Henderson  <rth@redhat.com>
9000
9001         PR middle-end/21362
9002         * cfgrtl.c (rtl_merge_blocks): Call maybe_remove_eh_handler on
9003         labels we want to delete.
9004         (cfg_layout_merge_blocks): Likewise.
9005
9006 2005-07-28  Richard Henderson  <rth@redhat.com>
9007
9008         PR target/17692
9009         * config/i386/i386.c (ix86_split_sse_movcc): Emit DELETED note
9010         when expanding to nothing.
9011
9012 2005-07-28  Josh Conner  <jconner@apple.com>
9013
9014         * ipa-inline.c (update_caller_keys): Fix estimated_growth caching.
9015         (cgraph_decide_inlining_of_small_functions): Likewise.
9016
9017 2005-07-28  Josh Conner  <jconner@apple.com>
9018
9019         * ipa-inline.c (cgraph_edge_badness): Update comments.  Invert shift
9020         direction of badness if negative.
9021         (cgraph_default_inline_p): Add reason to parameters, and assign it
9022         a value.
9023         (cgraph_decide_inlining_of_small_functions): New parameter in call
9024         to cgraph_default_inline_p.
9025         (cgraph_decide_inlining_incrementally): Likewise.
9026         * cgraphunit.c (decide_is_function_needed): Likewise.
9027         * cgraph.h (cgraph_default_inline_p): Likewise.
9028
9029 2005-07-28  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
9030
9031         * builtins.c: Fix comment typo(s).
9032         * genautomata.c: Likewise.
9033         * gimplify.c: Likewise.
9034         * tree-dfa.c: Likewise.
9035         * tree-flow-inline.h: Likewise.
9036         * tree-into-ssa.c: Likewise.
9037         * tree-ssa-alias.c: Likewise.
9038         * tree-ssa-ccp.c: Likewise.
9039         * tree-ssa-copy.c: Likewise.
9040         * tree-ssa-dce.c: Likewise.
9041         * tree-ssa-dom.c: Likewise.
9042         * tree-ssa-operands.c: Likewise.
9043         * tree-tailcall.c: Likewise.
9044         * tree-vectorizer.c: Likewise.
9045         * tree-vrp.c: Likewise.
9046         * tree.c: Likewise.
9047
9048 2005-07-28  Jeff Law  <law@redhat.com>
9049
9050         * tree-vrp.c (test_for_singularity): Extracted from  ...
9051         (simplify_cond_using_ranges): Attempt to simplify a relational
9052         test to NE_EXPR.  Dump information when a COND_EXPR is simplified.
9053
9054 2005-07-28  Dorit Nuzman  <dorit@il.ibm.com>
9055
9056         PR tree-optimization/22506
9057         * tree-vectorizer.c (update_phi_nodes_for_guard2): Skip loop-closed
9058         phis whose argument is constant.
9059
9060 2005-07-28  J"orn Rennecke <joern.rennecke@st.com>
9061
9062         PR rtl-optimization/18992
9063         Back out this patch:
9064           2003-10-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9065           PR optimization/12142
9066           * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
9067           uses of the register in the SET_SRC.  Remove unnecessary argument.
9068
9069         Replace it with this:
9070         * cse.c (count_reg_usage): In INSN, JUMP_INSN and CALL_INSN cases,
9071         if flag_non_call_exceptions is set and the insn may trap, pass
9072         pc_rtx as dest for recursion.
9073         In SET_SRC part of SET case, if dest is already set, pass it down
9074         unchanged.
9075
9076 2005-07-28  Jan Hubicka  <jh@suse.cz>
9077
9078         * cfg.c (update_bb_profile_for_threading): Use RDIV.
9079         (scale_bbs_frequencies_int): Likewise, assert for possible overflow.
9080         (scale_bbs_frequencies_gcov_type): Be more curefull about overflows and
9081         roundoff errors.
9082         * tree-cfg.c (tree_duplicate_sese_region): Use counts for updating
9083         profile when available.
9084
9085 2005-07-28  Jan Beulich <jbeulich@novell.com>
9086
9087         * config/ia64/ia64.c (ia64_load_pair_ok): New.
9088         (ia64_print_operand): Describe and handle 'X'.
9089         (ia64_register_move_cost): Also handle FP_REGS.
9090         (ia64_preferred_reload_class): Likewise.
9091         (ia64_secondary_reload_class): Likewise.
9092         (ia64_dependencies_evaluation_hook): New local variable c. Initialize
9093         it. Also check for ITANIUM_CLASS_FLDP.
9094         * config/ia64/ia64.h (FP_REGNO_P): New.
9095         (HARD_REGNO_MODE_OK): Remove explusion of TImode.
9096         (reg_class): Add FP_REGS.
9097         (REG_CLASS_NAMES): Adjust for it.
9098         (REG_CLASS_CONTENTS): Likewise.
9099         (REGNO_REG_CLASS): Use FP_REGS where appropriate.
9100         (REG_CLASS_FROM_LETTER): Handle 'x'.
9101         (CLASS_MAX_NREGS): Handle FP_REGS.
9102         (MEMORY_MOVE_COST): Likewise.
9103         * config/ia64/ia64.md (itanium_class): Add fldp.
9104         (type): Handle fldp.
9105         (movti_internal): More allowable operand combinations. Use ldfp8 when
9106         splitting unnecessary. Remove predicable attribute. Adjust
9107         itanium_class attribute.
9108         (smuldi3_highpart): Remove outdated comment.
9109         (mulditi3, umulditi3, rotlti3): New expanders.
9110         (addti3, subti3, mulditi3_internal, umulditi3_internal, negti2, rotlti3_internal): New insns.
9111         (absti2): Disabled new insn for future reference.
9112         Respective new splitters.
9113         * config/ia64/itanium1.md (1_fldp, 1b_fldp): New insn reservations.
9114         * config/ia64/itanium2.md (2_fldp, 2b_fldp): Likewise.
9115         * config/ia64/ia64-protos.h (ia64_load_pair_ok): New.
9116
9117 2005-07-25  James A. Morrison  <phython@gcc.gnu.org>
9118
9119         PR rtl-optimization/23047
9120         * simplify-rtx.c (simplify_const_relational_operation): Respect
9121         flag_wrapv for comparisons with ABS.
9122
9123 2005-07-27  James A. Morrison  <phython@gcc.gnu.org>
9124
9125         PR tree-optimization/22493
9126         * tree-vrp.c (extract_range_from_unary_expr): Deal with -fwrapv and
9127         VR_ANTI_RANGEs properly for NEGATE_EXPRs and ABS_EXPRs.
9128
9129 2005-07-27  Aldy Hernandez  <aldyh@redhat.com>
9130
9131         * config/frv/frv.opt (moptimize-membar): New.
9132
9133         * doc/invoke.texi: Document -moptimize-membar and its inverse.
9134
9135         * config/frv/frv.h: Remove machine_function definition.
9136
9137         * config/frv/frv.c (struct frv_io): New.
9138         (struct machine_function): Moved from frv.h.  Add has_membar_p.
9139         (frv_same_doubleword_p, frv_io_fixed_order_p, frv_io_union)
9140         (frv_extract_membar, frv_io_check_address, frv_io_handle_set)
9141         (frv_io_handle_use_1, frv_io_handle_use, frv_optimize_membar_local)
9142         (frv_optimize_membar_global, frv_optimize_membar): New functions.
9143         (frv_reorg): Call frv_optimize_membar when appropriate.
9144         (bdesc_loads, bdesc_stores): Use the membar code as the icode field.
9145         (frv_expand_builtin): Adjust calls accordingly.
9146         (frv_io_address_cookie): New function.
9147         (frv_expand_load_builtin, frv_expand_store_builtin): Emit a normal
9148         load or store rather than a special insn.  Add ccnstant address and
9149         io-type operands to the membar.
9150         (frv_ifcvt_modify_tests): Unsign regno.
9151         (frv_ifcvt_modify_tests): Same.
9152
9153         * config/frv/frv.md: Remove UNSPEC_BUILTIN_{LOAD,STORE}.  Change
9154         UNSPEC_OPTIONAL_MEMBAR constant.
9155         (builtin_read_<mode>): Delete.
9156         (builtin_write_<mode>): Delete.
9157         ("optional_membar_<mode>"): Add operand.
9158
9159         * testsuite/gcc.target/frv/all-builtin-read8.c: Delete.
9160         * testsuite/gcc.target/frv/all-builtin-read16.c: Delete.
9161         * testsuite/gcc.target/frv/all-builtin-read32.c: Delete.
9162         * testsuite/gcc.target/frv/all-builtin-read64.c: Delete.
9163         * testsuite/gcc.target/frv/all-builtin-write8.c: Delete.
9164         * testsuite/gcc.target/frv/all-builtin-write16.c: Delete.
9165         * testsuite/gcc.target/frv/all-builtin-write32.c: Delete.
9166         * testsuite/gcc.target/frv/all-builtin-write64.c: Delete.
9167         * testsuite/gcc.target/frv/all-read-write-1.c: New.
9168
9169 2005-07-28  Kaz Kojima  <kkojima@gcc.gnu.org>
9170
9171         * df.c (df_uses_record): Handle SCRATCH.
9172
9173 2005-07-28  Steven Bosscher  <stevenb@suse.de>
9174
9175         PR debug/20161
9176         * passes.c (rest_of_decl_compilation): If decl is a type and
9177         we have encountered errors, don't emit debug information.
9178
9179 2005-07-27  Kenneth Zadeck <zadeck@naturalbridge.com>
9180
9181         * params.def: Fixed comment.
9182
9183 2005-07-27  Bjoern Haase  <bjoern.m.haase@web.de>
9184
9185         PR target/19885
9186         * config/avr/avr.c (TARGET_ASM_ALIGNED_SI_OP): Add.
9187         (TARGET_ASM_UNALIGNED_HI_OP): Add.
9188         (TARGET_ASM_UNALIGNED_SI_OP): Add.
9189
9190 2005-07-27  Steven Bosscher  <stevenb@suse.de>
9191
9192         PR c++/22003
9193         * varasm.c (assemble_start_function): Don't do anything that may
9194         require a CFG if the current function is a thunk.
9195
9196 2005-07-25  Geoffrey Keating  <geoffk@apple.com>
9197
9198         * doc/install.texi (Prerequisites): Mention that perl is needed
9199         to do export control in libstdc++ targetting Darwin.
9200
9201 2005-07-27  Steven Bosscher  <stevenb@suse.de>
9202
9203         PR rtl-optimization/17808
9204         * sched-deps.c (sched_get_condition): Enable #if 0'ed code.
9205         (sched_insns_conditions_mutex_p): Split out from...
9206         (add_dependence): ...here.  But don't call it from here.
9207         (add_dependence_list): Check sched_insns_conditions_mutex_p
9208         before calling add_dependence.
9209         (add_dependence_list_and_free): Likewise.
9210         (fixup_sched_groups): Likewise.
9211         (sched_analyze_1): Likewise.
9212         (sched_analyze_2): Likewise (and replace a "0" with REG_DEP_TRUE).
9213         (sched_analyze): Likewise.
9214         (sched_analyze_insn): Likewise.
9215         * sched-ebb.c (add_deps_for_risky_insns): Likewise.
9216         * sched-rgn.c (add_branch_dependences): Likewise.  Also, add
9217         dependencies on all COND_EXEC insns to jumps ending basic blocks
9218         when doing intrablock scheduling.
9219         * sched-int.h (sched_insns_conditions_mutex_p): Add prototype.
9220
9221 2005-07-27  Jeff Law  <law@redhat.com>
9222
9223         * tree-vrp.c (vrp_meet): Intersect the equivalency sets when
9224         meeting a VR_ANTI_RANGE with a VR_RANGE.  When intersecting
9225         equivalency sets, correctly handle the case were vr0 has an
9226         equivalency set, but vr1 does not.
9227
9228 2005-07-27  Dorit Nuzman  <dorit@il.ibm.com>
9229
9230         PR tree-optimization/23073
9231         * tree-vect-analyze.c (vect_analyze_data_refs_alignment): Call
9232         vect_print_dump_info before fprintf.
9233
9234 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
9235
9236         PR tree-optimize/22348
9237         * tree-ssa-loop-niter.c (number_of_iterations_cond):
9238         Fold the partial computation.
9239
9240 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
9241
9242         PR tree-optimization/22325
9243         * tree-flow.h (compute_phi_arg_on_exit, force_expr_to_var_cost):
9244         Declare.
9245         * tree-scalar-evolution.c (scev_const_prop): Add generic final
9246         value replacement.
9247         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Split from ...
9248         (force_var_cost): ... this function.
9249         (compute_phi_arg_on_exit): Export.
9250
9251 2005-07-27  Zdenek Dvorak  <dvorakz@suse.cz>
9252
9253         PR tree-optimization/20773
9254         * tree-ssa-loop-ch.c (copy_loop_headers): Select the correct latch
9255         edge.
9256
9257 2005-07-27  Richard Guenther  <rguenther@suse.de>
9258
9259         * tree-ssa-structalias.c (push_fields_onto_fieldstack):
9260         Avoid pushing again if current struct contains only
9261         fields we decomposed.
9262
9263 2005-07-27  Jan Hubicka  <jh@suse.cz>
9264
9265         PR tree-optimization/22574
9266         * cgraph.c (cgraph_function_body_availability): Unanalyzed bodies are
9267         not available.
9268
9269         * tree-tailcall.c (decrease_profile): New function.
9270         (eliminate_tail_call): Use it.
9271
9272         * cgraphunit.c (cgraph_function_and_variable_visibility): Set
9273         visibility flags correctly in whole program mode.
9274
9275 2005-07-26  Steve Ellcey  <sje@cup.hp.com>
9276
9277         PR rtl-optimization/22472
9278         * config/pa/pa.h (HARD_REGNO_RENAME_OK): Define.
9279
9280 2005-07-26  Steven Bosscher  <stevenb@suse.de>
9281
9282         PR tree-optimization/22504
9283         * tree-complex.c (expand_complex_addition): Use 'code' instead
9284         of MINUS_EXPR for (VARYING, ONLY_IMAG) and (ONLY_IMAG, VARYING).
9285
9286 2005-07-26  Aldy Hernandez  <aldyh@redhat.com>
9287
9288         * config.gcc (cpu_type): Add frv case.
9289         (with_cpu): Add frv400-*-*linux* and frv550-*-*linux* cases.
9290         (supported_defaults): Add fr550 case.
9291
9292 2005-07-26  Diego Novillo  <dnovillo@redhat.com>
9293
9294         PR 22591
9295         * tree-ssa-alias.c (may_alias_p): Remove shortcut that tests
9296         whether a pointer of type T * may point to objects of type T *.
9297
9298 2005-07-26  DJ Delorie  <dj@redhat.com>
9299
9300         * configure: Regenerate.
9301
9302 2005-07-26  Dale Johannesen  <dalej@apple.com>
9303
9304         * postreload-gcse.c (alloc_mem):  Start CUID numbering at 1.
9305
9306 2005-07-26  Mark Mitchell  <mark@codesourcery.com>
9307
9308         * doc/install.texi (--with-build-sysroot): Fix grammatical error.
9309         Clarify use of "build" in name.
9310
9311 2005-07-26  Aldy Hernandez  <aldyh@redhat.com>
9312
9313         * doc/extend.texi (Raw read/write Functions): New section.
9314         * testsuite/gcc.target/frv/all-builtin-read8.c: New.
9315         * testsuite/gcc.target/frv/all-builtin-read16.c: New.
9316         * testsuite/gcc.target/frv/all-builtin-read32.c: New.
9317         * testsuite/gcc.target/frv/all-builtin-read64.c: New.
9318         * testsuite/gcc.target/frv/all-builtin-write8.c: New.
9319         * testsuite/gcc.target/frv/all-builtin-write16.c: New.
9320         * testsuite/gcc.target/frv/all-builtin-write32.c: New.
9321         * testsuite/gcc.target/frv/all-builtin-write64.c: New.
9322         * config/frv/frv.c: Add bdesc_loads global.
9323         Add bdesc_stores global.
9324         (frv_init_builtins): Add support for __builtin_{read/write}*.
9325         (frv_volatile_memref): New.
9326         (frv_expand_load_builtin): New.
9327         (frv_expand_store_builtin): New.
9328         * config/frv/frv.h (frv_builtins): Add FRV_BUILTIN_SCAN,
9329         FRV_BUILTIN_READ8, FRV_BUILTIN_READ16, FRV_BUILTIN_READ32,
9330         FRV_BUILTIN_READ64, FRV_BUILTIN_WRITE8, FRV_BUILTIN_WRITE16,
9331         FRV_BUILTIN_WRITE32, FRV_BUILTIN_WRITE64.
9332         * config/frv/frv.md (unspecs): Add UNSPEC_BUILTIN_LOAD,
9333         UNSPEC_BUILTIN_STORE, UNSPEC_OPTIONAL_MEMBAR.
9334         (builtin_read_<mode>): New.
9335         (builtin_write_<mode>): New.
9336         (builtin_write64): New.
9337         (optional_membar_<mode>): New.
9338
9339 2005-07-26  J"orn Rennecke <joern.rennecke@st.com>
9340
9341         * emit-rtl.c (gen_lowpart_common): Compare size of MODE in bits
9342         (rather than units) against HOST_BITS_PER_WIDE_INT.
9343
9344 2005-07-26  Kazu Hirata  <kazu@codesourcery.com>
9345
9346         * ipa-pure-const.c, ipa-reference.c, ipa-reference.h,
9347         ipa-type-escape.c, ipa-type-escape.h, ipa-utils.c,
9348         ipa-utils.h, treestruct.def, config/crx/crx-protos.h,
9349         config/crx/crx.c, config/crx/crx.h, config/crx/crx.md: Update
9350         FSF address.
9351
9352         * calls.c, fold-const.c, ipa-reference.c, ipa-type-escape.c,
9353         tree-ssa-reassoc.c, tree-ssa-structalias.c, vec.h,
9354         config/crx/crx.c, config/m32c/m32c.c, config/m32c/m32c.h: Fix
9355         comment typos.
9356         * doc/c-tree.texi, doc/tree-ssa.texi: Fix typos.
9357
9358 2005-07-26  Richard Guenther  <rguenther@suse.de>
9359
9360         PR tree-optimization/22486
9361         * fold-const.c (fold_unary): Fold away useless component
9362         references of the form (T *)&T.x, if the address
9363         doesn't change.
9364
9365 2005-07-25  James E Wilson  <wilson@specifixinc.com>
9366
9367         * dwarf2out.c (add_call_src_coords_attributes): New.
9368         (gen_inlined_subroutine_die): Call it.
9369         (maybe_emit_file, init_file_table): Add comments.
9370         (prune_unused_types_walk_attribs): Pass DW_AT_call_file through
9371         maybe_emit_file.
9372         * tree-inline.c (remap_block): Copy BLOCK_SOURCE_LOCATION.
9373         (expand_call_inline): Set BLOCK_SOURCE_LOCATION.
9374         * tree.h (BLOCK_SOURCE_LOCATION): New.
9375         (struct tree_block): New field locus.
9376
9377 2005-07-26  Andreas Schwab  <schwab@suse.de>
9378
9379         PR rtl-optimization/23043
9380         * postreload-gcse.c (eliminate_partially_redundant_load): Fix typo
9381         when allocating a struct unoccr.
9382
9383 2005-07-25  Richard Henderson  <rth@redhat.com>
9384
9385         PR 22626
9386         * tree-complex.c (gate_no_optimization): True if errors.
9387         * Makefile.in (tree-complex.o): Update dependencies.
9388
9389 2005-07-25  Aldy Hernandez  <aldyh@redhat.com>
9390
9391         * config/frv/predicates.md (integer_register_operand): Use
9392         GPR_AP_OR_PSEUDO_P.
9393
9394 2005-07-25  Andrew Pinski  <pinskia@physics.uc.edu>
9395
9396         PR tree-opt/22484
9397         * tree-ssa-ccp.c (fold_stmt_inplace): Strip useless type conversions
9398         after fold.
9399         * tree-ssa-propagate.c (set_rhs): Reject invalid conditional operands.
9400
9401 2005-07-25  Andrew Pinski  <pinskia@physics.uc.edu>
9402
9403         * tree-ssa-reassoc.c (reassociate_expr): Allow scaler floating point
9404         types when flag_unsafe_math_optimizations is true.
9405
9406 2005-07-25  Mark Mitchell  <mark@codesourcery.com>
9407
9408         * gcc.c (option_map): Add --sysroot.
9409         (process_command): Handle --sysroot.
9410         (display_help): Document it.
9411         * doc/cppopts.tex (-isysroot): Document.
9412         * doc/invoke.texi (--sysroot): Document.
9413         * doc/install.texi (--with-build-sysroot): Document.
9414
9415         * Makefile.in (inhibit_libc): New variable.
9416         (INHIBIT_LIBC_CFLAGS): Likewise.
9417         (LIBGCC2_CFLAGS): Include
9418         $(INHIBIT_LIBC_CFLAGS).
9419         (CRTSTUFF_CFLAGS): Include $(INHIBIT_LIBC_CFLAGS).
9420         ($(T)crtbegin.o): Do not use @inhibit_libc@.
9421         ($(T)crtend.o): Likewise.
9422         ($(T)crtbeginS.o): Do not use @inhibit_libc@.
9423         ($(T)crtendS.o): Likewise.
9424         ($(T)crtbeginT.o): Do not use @inhibit_libc@.
9425         ($(T)crtendT.o): Likewise.
9426         (stmp-fixinc): Do not complain about missing headers if
9427         inhibit_libc.
9428         * configure.ac (inhibit_libc): Set it to true/false.
9429         (--with-build-sysroot): New option.  Use it to set
9430         SYSTEM_HEADER_DIR.
9431         * configure: Regenerated.
9432
9433 2005-07-25  Manfred Hollstein  <mh@suse.com>
9434
9435         * calls.c (store_one_arg): Fix unsigned comparison warning.
9436
9437 2005-07-25  Serge Belyshev  <belyshev@depni.sinp.msu.ru>
9438
9439         PR other/22337
9440         * ggc-zone.c (ggc_alloc_zone_stat): Do not use CHUNK_OVERHEAD.
9441         (ggc_print_statistics): Initialize variable before use.
9442
9443 2005-07-25  Richard Guenther  <rguenther@suse.de>
9444
9445         * tree-dfa.c (mark_new_vars_to_rename): Protect against
9446         calling with a PHI_NODE argument.
9447
9448         * tree-flow-inline.h (overlap_subvar): Protect against
9449         possible overflow.
9450
9451 2005-07-25  Paolo Bonzini  <bonzini@gnu.org>
9452
9453         * aclocal.m4 (gcc_AC_CHECK_TOOL): Add /bin to default directory.
9454         * configure: Regenerate.
9455
9456 2005-07-25  Ira Rosen  <irar@il.ibm.com>
9457
9458         * expr.c (highest_pow2_factor): Make extern.
9459         * tree-data-ref.c (ptr_decl_may_alias_p): New function.
9460         (ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
9461         record_array_differ_p, array_ptr_differ_p): Likewise.
9462         (base_object_differ_p): Rename (from array_base_name_differ_p). Support
9463         additional cases. Call the above functions.
9464         (base_addr_differ_p): Moved from tree-vect-analyze.c. Call
9465         base_object_differ_p when there are two base objects. Otherwise, compare
9466         base address and offset. Call may_alias_p.
9467         (dump_data_reference): Use a correct field name.
9468         (analyze_array): Make static. Initialize new data-ref fields.
9469         (analyze_indirect_ref): New function.
9470         (init_data_ref): Initialize new data-ref fields.
9471         (strip_conversion): Moved from tree-vect-analyze.c.
9472         (analyze_offset_expr, get_ptr_offset, address_analysis,
9473         object_analysis): Likewise.
9474         (analyze_offset): New function.
9475         (create_data_ref): Likewise.
9476         (initialize_data_dependence_relation): Call base_addr_differ_p. Compare
9477         dimensions for ARRAY_REFs only.
9478         (build_classic_dist_vector): Make static.
9479         (access_functions_are_affine_or_constant_p): Call macro to get the
9480         address of access functions.
9481         (compute_all_dependences): Add new parameter
9482         compute_self_and_read_read_dependences. Compute self and read-read
9483         dependences if it is true.
9484         (find_data_references_in_loop): Call create_data_ref. Initialize new
9485         data-ref fields.
9486         (compute_data_dependences_for_loop): Add new parameter
9487         compute_self_and_read_read_dependences. Remove parameter nb_loops,
9488         compute nb_loops. Call compute_all_dependences,
9489         build_classic_dist_vector and build_classic_dir_vector with correct
9490         parameters.
9491         (analyze_all_data_dependences): Call compute_data_dependences_for_loop
9492         with correct parameters. Compare dimensions for ARRAY_REFs only.
9493         (free_data_refs): Call macro to free access functions.
9494         * tree-data-ref.h (struct first_location_in_loop): New structure. Move
9495         fields from stmt_vinfo.
9496         (struct base_object_info): New structure.
9497         (struct data_reference): Move fields to base_object_info. Add fields
9498         first_location and object_info for above structures. Move fields from
9499         stmt_info: memtag, ptr_info, subvars, misalignment. Add new field
9500         aligned_to.  Add macros to access the new fields.
9501         Update functions declarations.
9502         * tree-flow.h (is_aliased_with): Declare.
9503         * tree-loop-linear.c (linear_transform_loops): Call
9504         compute_data_dependences_for_loop with correct parameters.
9505         * tree-ssa-alias.c (is_aliased_with): New function.
9506         * tree-vect-analyze.c (vect_get_ptr_offset): Remove.
9507         (vect_analyze_offset_expr, vect_base_addr_differ_p): Likewise.
9508         (vect_analyze_data_ref_dependence): Get ddr. Remove call to
9509         vect_base_addr_differ_p, compute_subscript_distance and
9510         build_classic_dist_vector. Add printings. Check absolute value of
9511         distance.
9512         (vect_analyze_data_ref_dependences): Go through ddrs instead of
9513         data-refs.
9514         (vect_compute_data_ref_alignment): Get the fields of data-ref instead of
9515         stmt. Check aligned_to. Check if the base is aligned. Remove conversion
9516         to bytes. Add printing.
9517         (vect_compute_data_refs_alignment): Go through loads and stores in one
9518         loop.
9519         (vect_enhance_data_refs_alignment, vect_analyze_data_refs_alignment,
9520         vect_analyze_data_ref_access): Likewise.
9521         (vect_analyze_pointer_ref_access): Remove.
9522         (vect_address_analysis, vect_object_analysis): Likewise.
9523         (vect_analyze_data_refs): Call compute_data_dependences_for_loop to find
9524         and analyze data-refs in the loop.
9525         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Get the
9526         fields of data-ref instead of stmt. Add init to the offset from the
9527         base.
9528         (vect_create_data_ref_ptr): Get the fields of data-ref instead of stmt.
9529         (vect_update_init_of_dr): Likewise.
9530         (vect_update_inits_of_drs): Go through loads and stores in one loop.
9531         * tree-vectorizer.c (new_stmt_vec_info): Remove initialization of
9532         removed fields.
9533         (new_loop_vec_info): Initialize new fields.
9534         (destroy_loop_vec_info): Free new fields.
9535         (vect_strip_conversion): Remove.
9536         * tree-vectorizer.h (enum verbosity_levels): Add new verbosity level.
9537         (struct _loop_vec_info): Unify data_ref_writes and data_ref_reads into
9538         datarefs. Add new field ddrs.
9539         Add macros for the new fields access.
9540         (struct _stmt_vec_info): Remove: base_address, initial_offset, step,
9541         base_aligned_p, misalignment, memtag, ptr_info and subvars.
9542         Remove their macros.
9543         * tree.h (highest_pow2_factor): Declare.
9544
9545 2005-07-25  Jakub Jelinek  <jakub@redhat.com>
9546
9547         * calls.c (store_one_arg): Check for sibling call MEM arguments
9548         from already clobbered incoming argument area.
9549
9550 2005-07-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9551
9552         * c-common.c (check_missing_format_attribute): New.
9553         * c-common.h (check_missing_format_attribute): Likewise.
9554         * c-typeck.c (convert_for_assignment): Use it.
9555
9556 2005-07-24  Andreas Schwab  <schwab@suse.de>
9557
9558         * config/m68k/m68k.md ("extendqidi2"): When source is an address
9559         register use a word move.  Correct operand of ext.w in 68000 code.
9560
9561 2005-07-23  Mark Mitchell  <mark@codesourcery.com>
9562
9563         * dwarf2out.c (gen_variable_die): Treat un-emitted COMDAT
9564         variables as declarations, rather than definitions.
9565
9566 2005-07-24  Ira Rosen  <irar@il.ibm.com>
9567
9568         PR tree-optimization/22526
9569         * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Match the type
9570         of the zero node.
9571
9572 2005-07-24  Francois-Xavier Coudert  <coudert@clipper.ens.fr>
9573
9574         * builtins.def: Add DEF_EXT_C99RES_BUILTIN to define builtins
9575         that C99 reserve for future use. Use it to define clog10,
9576         clog10f and clog10l.
9577
9578 2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9579
9580         * Makefile.in (STRICT2_WARN): Add -Wmissing-format-attribute.
9581         * configure.ac: Check for -Wmissing-format-attribute.
9582
9583         * configure: Regenerate.
9584
9585 2005-07-23  Richard Henderson  <rth@redhat.com>
9586
9587         PR tree-optimization/22623
9588         * tree-complex.c (set_component_ssa_name): Use replace_ssa_name_symbol.
9589
9590 2005-07-23  Giovanni Bajo  <giovannibajo@libero.it>
9591
9592         PR target/22577
9593         * config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR.
9594
9595 2005-07-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9596
9597         * Makefile.in (C_TREE_H): Update dependencies.
9598         * c-tree.h: Include toplev.h.
9599         * diagnostic.h (diagnostic_set_info): Add format attribute.
9600         * rtl-error.c (diagnostic_for_asm): Likewise.
9601
9602 2005-07-23  Chao-ying Fu  <fu@mips.com>
9603
9604         * config/mips/mips-dsp.md: New file.
9605         * config/mips/mips-modes.def (V4QI, V2HI, CCDSP): New modes.
9606         * config/mips/mips.c (mips_function_type): Add types for DSP builtin
9607         functions.
9608         (mips_builtin_type): Add MIPS_BUILTIN_DIRECT_NO_TARGET and
9609         MIPS_BUILTIN_BPOSGE32.
9610         (mips_expand_builtin_direct): Add one parameter to indicate that
9611         builtin functions need to return a value.
9612         (mips_expand_builtin_bposge): New for expanding "bposge" builtin
9613         functions.
9614         (mips_regno_to_class): Add classes for 12 new DSP registers.
9615         (mips_subword): Change to check four HI registers.
9616         (mips_output_move): Output move to and from 6 new DSP accumulators.
9617         (override_options): Make sure -mdsp and -mips16 are not used together.
9618         Map 'A' to DSP_ACC_REGS and 'a' to ACC_REGS.  Enable DSP accumulators
9619         for machine modes.
9620         (mips_conditional_register_usage): Disable 6 new DSP accumulators
9621         when !TARGET_DSP.
9622         (print_operand): Add 'q' for printing DSP accumulators.
9623         (mips_cannot_change_mode_class): Check ACC_REGS.
9624         (mips_secondary_reload_class): Check ACC_REGS.
9625         (mips_vector_mode_supported_p): Enable V2HI and V4QI when TARGET_DSP.
9626         (mips_register_move_cost): Check ACC_REGS.
9627         (CODE_FOR_mips_addq_ph, CODE_FOR_mips_addu_qb, CODE_FOR_mips_subq_ph)
9628         (CODE_FOR_mips_subu_qb): New code-aliasing macros.
9629         (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): New macros.
9630         (dsp_bdesc): New array.
9631         (bdesc_arrays): Add DSP builtin function table.
9632         (mips_prepare_builtin_arg): Check predicate again after
9633         copy_to_mode_reg.
9634         (mips_expand_builtin): Add one more parameter to
9635         mips_expand_builtin_direct. Expand MIPS_BUILTIN_DIRECT_NO_TARGET and
9636         MIPS_BUILTIN_BPOSGE32.
9637         (mips_init_builtins): Initialize new function types.
9638         (mips_expand_builtin_direct): Check if builtin functions need to
9639         return a value and pass operands properly.
9640         (mips_expand_builtin_bposge): New function.
9641         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips_dsp.
9642         (ASM_SPEC): Map -mdsp to -mdsp in GAS.
9643         (FIRST_PSEUDO_REGISTER): Increase to 188.
9644         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
9645         Update for 12 new DSP registers.
9646         (DSP_ACC_REG_FIRST, DSP_ACC_REG_LAST, DSP_ACC_REG_NUM, AC1HI_REGNUM)
9647         (AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM, AC3HI_REGNUM, AC3LO_REGNUM):
9648         (DSP_ACC_REG_P, ACC_REG_P, ACC_HI_REG_P): New macros.
9649         (reg_class): Add DSP_ACC_REGS and ACC_REGS.
9650         (REG_CLASS_NAMES): Add names for DSP_ACC_REGS and ACC_REGS.
9651         (REG_CLASS_CONTENTS): Update for DSP_ACC_REGS, ACC_REGS and ALL_REGS.
9652         (REG_ALLOC_ORDER): Update for 12 new DSP registers.
9653         (mips_char_to_class): Add 'A' for DSP_ACC_REGS and 'a' for ACC_REGS.
9654         (UIMM6_OPERAND, IMM10_OPERAND): New macros.
9655         (EXTRA_CONSTRAINT_Y): Add YA and YB extra constraints.
9656         (REGISTER_NAMES): Add names for 12 new DSP registers.
9657         * config/mips/mips.md: Include mips-dsp.md.
9658         (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
9659         (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
9660         (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
9661         (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
9662         (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
9663         (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
9664         (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
9665         (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
9666         (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
9667         (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
9668         (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
9669         (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
9670         (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
9671         (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
9672         (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
9673         (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
9674         (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
9675         (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
9676         (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
9677         (UNSPEC_RDDSP): New constants.
9678         (*movdi_32bit): Change 'x' to 'a' for ACC_REGS.
9679         (*movsi_internal): Change 'x' to 'a' for ACC_REGS.  Add an
9680         A<-d alternative.
9681         * config/mips/mips.opt (-mdsp): New option.
9682         * config/mips/predicates.md (const_uimm6_operand, const_imm10_operand)
9683         (reg_imm10_operand): New predicates.
9684         * doc/extend.texi (MIPS DSP Built-in Functions): New section.
9685         * doc/invoke.texi (-mdsp): Document new option.
9686
9687 2005-07-22  DJ Delorie  <dj@redhat.com>
9688
9689         * c-objc-common.c (c_cannot_inline_tree_fn): Add warning control
9690         to warning calls.
9691         * tree-inline.c (inlinable_function_p): Likewise.
9692
9693 2005-07-22  Mark Mitchell  <mark@codesourcery.com>
9694
9695         PR debug/21828
9696         * toplev.c (check_global_declarations): Do not mark undefined
9697         variables as DECL_IGNORED_P.
9698         * varasm.c (first_global_object_name): GTY it.
9699         (weak_global_object_name): Likewise.
9700         (notice_global_symbol): Use ggc_strdup, not xstrdup, when creating
9701         a string to go into {weak,first}_global_object_name.
9702
9703 2005-07-22  DJ Delorie  <dj@redhat.com>
9704
9705         * c-format.c (check_function_format): Change warning control
9706         option from OPT_Wattribute to OPT_Wmissing_format_attribute.
9707
9708 2005-07-22  Diego Novillo  <dnovillo@redhat.com>
9709
9710         * tree-ssa-alias.c (count_ptr_derefs): Do not consider
9711         &PTR->FLD a dereference of PTR.
9712         * tree-ssa-structalias.c (update_alias_info): Consider &PTR->FLD
9713         a potential dereference of PTR.
9714
9715 2005-07-22  J"orn Rennecke <joern.rennecke@st.com>
9716
9717         PR rtl-optimization/20370
9718         * ifcvt.c (dead_or_predicable): Before calling propagate_block,
9719         call allocate_reg_info if necessary.
9720
9721         PR rtl-optimization/21848
9722         * calls.c (emit_library_call_value_1): For const functions, add
9723         USEs of the stack slots to CALL_INSN_FUNCTION_USAGE.
9724
9725         PR rtl-optimization/22445
9726         * cselib.c (target.h): Include.
9727         (rtx_equal_for_cselib_p): Allow commutative matches.
9728         (cselib_hash_rtx): Don't use MODE for CONST_INT hashing.
9729         Remove MODE parameter.  Changed all callers.
9730
9731         PR rtl-optimization/22258
9732         * combine.c (likely_spilled_retval_1, likely_spilled_retval_p):
9733         New functions.
9734         (try_combine): Use likely_spilled_retval_p.
9735
9736 2005-07-22  Paul Woegerer  <paul.woegerer@nsc.com>
9737
9738         * config.gcc: Add crx-elf support.
9739
9740         * doc/contrib.texi: Mention crx.
9741         * doc/extend.texi: Document crx extensions.
9742         * doc/install.texi: Document crx install.
9743         * doc/invoke.texi: Document crx options.
9744         * doc/md.texi: Document crx constraints.
9745
9746         * config/crx/crx-protos.h: New file.
9747         * config/crx/crx.c: New file.
9748         * config/crx/crx.h: New file.
9749         * config/crx/crx.md: New file.
9750         * config/crx/crx.opt: New file.
9751         * config/crx/t-crx: New file.
9752
9753 2005-07-22  Manfred Hollstein  <mh@suse.com>
9754
9755         * tree-ssa-structalias.c (merge_graph_nodes): Fix uninitialised
9756         warnings.
9757         (int_add_graph_edge): Likewise.
9758         (collapse_nodes): Likewise.
9759         (process_unification_queue): Likewise.
9760
9761 2005-07-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9762             Laurent GUERBY  <laurent@guerby.net>
9763
9764         PR tree-optimization/22336
9765         * function.c (record_block_change): Check for
9766         cfun->ib_boundaries_block.
9767
9768 2005-07-21  James A. Morrison  <phython@gcc.gnu.org>
9769
9770         * fold-const.c (fold_unary): Don't strip signed nops from ABS_EXPRs.
9771         (tree_expr_nonnegative_p): Return try for TYPE_UNSIGNED.
9772
9773 2005-07-21  DJ Delorie  <dj@redhat.com>
9774
9775         * toplev.c (warn_deprecated_use): Add warning control to warning
9776         call.
9777         * c-typeck.c (parser_build_binary_op): Likewise.
9778         (c_finish_if_stmt): Likewise.
9779         * c-common.c (check_function_sentinel): Likewise.
9780         (check_nonnull_arg): Likewise.
9781
9782 2005-07-21  Richard Henderson  <rth@redhat.com>
9783
9784         PR tree-opt/22504
9785         * tree-complex.c (complex_ssa_name_components): New.
9786         (cvc_lookup): Allow entry not found.
9787         (create_components): Remove.
9788         (create_one_component_var, get_component_var): New.
9789         (get_component_ssa_name, set_component_ssa_name): New.
9790         (extract_component): Use get_component_ssa_name.
9791         (update_complex_components): Use set_component_ssa_name.
9792         (update_complex_components_on_edge): Likewise.
9793         (update_phi_components): Create new PHI nodes directly, instead
9794         of adding insns to edges.
9795         (tree_lower_complex): Allocate and free complex_variable_components
9796         and complex_ssa_name_components here.
9797
9798 2005-07-20  Daniel Berlin  <dberlin@dberlin.org>
9799
9800         * alias.c (nonoverlapping_component_refs_p): Use TYPE_MAIN_VARIANT,
9801         revert to returning false.
9802
9803 2005-07-21  Uros Bizjak  <uros@kss-loka.si>
9804
9805         PR target/21149
9806         * config/i386/i386.md (sse_movhlps): Fix vec_select values.
9807
9808 2005-07-21  Uros Bizjak  <uros@kss-loka.si>
9809
9810         PR target/22576
9811         * config/i386/i386.md (cmpxf): Change operand constraints
9812         to "nonmemory_operand".
9813
9814 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
9815
9816         * config/i386/i386.md (trap): Use "".word/t0x0b0f" instead of ud2.
9817
9818 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
9819
9820         PR middle-end/21180
9821         * fold-const.c (fold_build1): Add checksum for the operands.
9822         (fold_build2): Likewise.
9823         (fold_build3): Likewise.
9824
9825 2005-07-21  Andrew Pinski  <pinskia@physics.uc.edu>
9826
9827         PR middle-end/19055
9828         * fold-const.c (fold_binary): Transform "(X | Y) ^ X" to "Y & ~ X".
9829
9830 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
9831
9832         * common.opt (-fforward-propagate): Committed by mistake,
9833         removed.
9834
9835 2005-07-21  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
9836
9837         * reg-stack.c: Fix comment typo(s).
9838         * tree-ssa-operands.c: Likewise.
9839         * tree-vectorizer: Likewise.
9840
9841 2005-07-21  Nick Clifton  <nickc@redhat.com>
9842
9843         * config/sh/symbian.c: Replace C++ style line comments with C
9844         style line comments.
9845         (symbian_add_attribute): Do not use a ? operator on the LHS of
9846         an assignment.
9847         (sh_symbian_handle_dll_attribute): Change the type of the
9848         method vector to "VEC(tree,gc)*" and use vector accessor
9849         macros to walk over the elements.
9850         (symbian_export_vtable_and_rtti_p): Likewise.
9851         (symbian_class_needs_attribute_p): Likewise.
9852
9853 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
9854
9855         PR target/22085
9856         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Do not
9857         initialize targetm.resolve_overloaded_builtin here.
9858         (altivec_expand_overloaded_builtin): Make it non-static.
9859         * config/rs6000/rs6000-protos.h
9860         (altivec_expand_overloaded_builtin): New prototype.
9861         * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Initialize
9862         targetm.resolve_overloaded_builtin here.
9863         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Likewise.
9864
9865 2005-07-21  Paolo Bonzini  <bonzini@gnu.org>
9866             Zdenek Dvorak  <dvorakz@suse.cz>
9867
9868         PR tree-optimization/19210
9869         * common.opt (Wunsafe-loop-optimizations, funsafe-loop-optimizations):
9870         New.
9871         * Makefile.in (tree-ssa-loop-niter.o): Depend intl.o.
9872         * loop-iv.c (get_simple_loop_desc): If -funsafe-loop-optimizations,
9873         rely on unproven assumptions.
9874         * predict.c (predict_loops): Adjust call to number_of_iterations_exit.
9875         * tree-flow.h (number_of_iterations_exit): Add final parameter.
9876         * tree-scalar-evolution.c (number_of_iterations_in_loop): Adjust call
9877         to number_of_iterations_exit.
9878         * tree-ssa-loop-ivcanon.c (empty_loop_p): Likewise.
9879         * tree-ssa-loop-ivopts.c (niter_for_exit): Likewise.
9880         * tree-ssa-loop-niter.c (find_loop_niter,
9881         estimate_numbers_of_iterations_loop): Likewise.
9882         (number_of_iterations_exit): Honor the new options.
9883         * doc/invoke.texi (Wunsafe-loop-optimizations,
9884         funsafe-loop-optimizations): Document them.
9885
9886 2005-07-21  Richard Sandiford  <richard@codesourcery.com>
9887
9888         PR rtl-optimization/22167
9889         * gcse.c (hoist_code): Fix hoist_exprs[] check.
9890
9891 2005-07-20  Adam Nemet  <anemet@lnxw.com>
9892
9893         * config/rs6000/lynx.h: Mark __do_global_ctors_aux and
9894         __do_global_dtors_aux longcall.
9895
9896 2005-07-20  Kazu Hirata  <kazu@cs.umass.edu>
9897
9898         * gensupport.c (old_preds): Don't reference PREDICATE_CODES.
9899         (old_special_pred_table): Don't reference
9900         SPECIAL_MODE_PREDICATES.
9901         * system.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Poison.
9902         * config/arc/arc.h: Don't mention PREDICATE_CODES.
9903         * config/sh/predicates.h: Don't mention
9904         SPECIAL_MODE_PREDICATES.
9905         * doc/tm.texi (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
9906         Remove.
9907
9908 2005-07-20  DJ Delorie  <dj@redhat.com>
9909
9910         * config.gcc: Add m32c-elf support.
9911
9912         * doc/contrib.texi: Mention m32c.
9913         * doc/extend.texi: Document m32c extensions.
9914         * doc/install.texi: Mention m32c.
9915         * doc/invoke.texi: Document m32c options.
9916         * doc/md.texi: Document m32c constraints.
9917
9918         * config/m32c/addsub.md: New file.
9919         * config/m32c/bitops.md: New file.
9920         * config/m32c/cond.md: New file.
9921         * config/m32c/jump.md: New file.
9922         * config/m32c/m32c-lib1.S: New file.
9923         * config/m32c/m32c-lib2.c: New file.
9924         * config/m32c/m32c-modes.def: New file.
9925         * config/m32c/m32c-pragma.c: New file.
9926         * config/m32c/m32c-protos.h: New file.
9927         * config/m32c/m32c.abi: New file.
9928         * config/m32c/m32c.c: New file.
9929         * config/m32c/m32c.h: New file.
9930         * config/m32c/m32c.md: New file.
9931         * config/m32c/m32c.opt: New file.
9932         * config/m32c/minmax.md: New file.
9933         * config/m32c/mov.md: New file.
9934         * config/m32c/muldiv.md: New file.
9935         * config/m32c/predicates.md: New file.
9936         * config/m32c/prologue.md: New file.
9937         * config/m32c/shift.md: New file.
9938         * config/m32c/t-m32c: New file.
9939
9940 2005-07-20  Kaz Kojima  <kkojima@gcc.gnu.org>
9941
9942         * config/sh/sh.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
9943         (stack_protect_set, stack_protect_test): New expanders.
9944         (stack_protect_set_si, stack_protect_set_si_media,
9945         stack_protect_set_di_media, stack_protect_test_si,
9946         stack_protect_test_si_media, stack_protect_test_di_media):
9947         New insns.
9948
9949 2005-07-20  Andrew Pinski  <pinskia@physics.uc.edu>
9950
9951         * c-typeck.c (output_init_element): Don't copy the INTEGER_CST.
9952
9953 2005-07-20  James A. Morrison  <phython@gcc.gnu.org>
9954
9955         * tree.h (tree_expr_nonzero_p): Export.
9956         * fold-const.c (tree_expr_nonzero_p): Likewise.
9957         Return true for CALL_EXPRs that are alloca calls.
9958         (fold_binary): Use omit_one_operand when checking EQ_EXPRs or NE_EXPRs
9959         against zero.
9960         * tree-flow.h (expr_computes_nonzero): Remove.
9961         * tree-vrp.c (expr_computes_nonzero): Remove.
9962         (vrp_expr_computes_nonzero): Use tree_expr_nonzero_p.
9963         (extract_range_from_unary_expr): Likewise.
9964         * tree-ssa-dom.c (record_equivalences_from_stmt): Use
9965         tree_expr_nonzero_p.
9966
9967 2005-07-20  Bernd Schmidt  <bernd.schmidt@analog.com>
9968
9969         * config/bfin/bfin-protos.h (legitimize_pic_address): Don't declare.
9970         * config/bfin/bfin.c (legitimize_pic_address): Now static.  Take
9971         extra arg "picreg" and use it instead of pic_offset_table_rtx.
9972         All callers changed.
9973         (frame_related_constant_load): New arg "related" which controls
9974         setting of RTX_FRAME_RELATED_P.  All callers changed.
9975         (bfin_load_pic_reg): New function, broken out of bfin_expand_prologue.
9976         (bfin_expand_prologue): Add stack limit checking.
9977         * config/bfin/bfin.md (trapifcc): New pattern.
9978
9979         * config/bfin/bfin.c: Include "langhooks.h".
9980         (def_builtin): Go through lang_hooks to call builtin_function.
9981
9982         * config/bfin/bfin-protos.h (bfin_longcall_p): Declare.
9983         * config/bfin/predicates.md (symbol_ref_operand): New.
9984         (call_insn_operand): Delete.  All callers changed to use
9985         register_no_elim_operand.
9986         * config/bfin/bfin.c (init_cumulative_args): Initialize the new
9987         call_cookie field.
9988         (function_arg): Use it to generate the call's operand 2.
9989         (bfin_longcall_p): New function.
9990         (bfin_expand_call): Extra arg "cookie".  All callers and declaration
9991         changed.  Emit extra USE in the pattern.  Use bfin_longcall_p to
9992         determine if the address needs to be in a REG.
9993         (bfin_handle_longcall_attribute): New function.
9994         (bfin_attribute_table): Add "longcall" and "shortcall".
9995         * config/bfin/bfin.h (CALL_NORMAL, CALL_LONG, CALL_SHORT): New macros.
9996         (CUMULATIVE_ARGS): New member call_cookie.
9997         (PREDICATE_CODES): Add symbol_ref_operand.
9998         * config/bfin/bfin.md (call, call_value, sibcall, sibcall_value): Add
9999         extra USE to the pattern.
10000         (call_symbol, sibcall_symbol, call_value_symbol, sibcall_value_symbol):
10001         New patterns, split off call_insn, sibcall_insn, call_value_insn and
10002         sibcall_value_insn; now the new patterns handle direct calls and the
10003         old ones indirect calls.
10004         * doc/extend.texi: Mention Blackfin in longcall/shortcall docs.
10005
10006 2005-07-20  Zdenek Dvorak  <dvorakz@suse.cz>
10007
10008         * doc/trouble.texi: Update section on handling of empty loops.
10009
10010 2005-07-20  Kazu Hirata  <kazu@codesourcery.com>
10011
10012         * config.gcc: Remove support for sparc-*-openbsd*,
10013         i860-*-sysv4*, ip2k-*-elf, ns32k-*-netbsdelf*,
10014         ns32k-*-netbsd*.
10015         * config.host: Remove support for i860-*-sysv4* as a host.
10016         * config/i860/*, config/ip2k/*, config/ns32k/*,
10017         config/sparc/openbsd.h, config/sparc/t-openbsd: Remove.
10018         * doc/install.texi, doc/invoke.texi, doc/md.texi: Don't
10019         mention obsolete ports.
10020
10021 2005-07-20  Kaz Kojima  <kkojima@gcc.gnu.org>
10022
10023         * config/sh/sh.c (regno_reg_class): Add GENERAL_REGS for
10024         soft frame pointer.
10025         (sh_expand_prologue): Use hard_frame_pointer_rtx instead
10026         of frame_pointer_rtx.
10027         (sh_expand_epilogue): Likewise.
10028         (sh_set_return_address): Likewise.
10029         (initial_elimination_offset): Use HARD_FRAME_POINTER_REGNUM
10030         instead of FRAME_POINTER_REGNUM if needed.  Add elimination
10031         offsets from FRAME_POINTER_REGNUM.
10032         * config/sh/sh.h (SH_REGISTER_NAMES_INITIALIZER): Add sfp.
10033         (sh_register_names): Add initializer for sfp.
10034         (GENERAL_OR_AP_REGISTER_P): Permit FRAME_POINTER_REGNUM.
10035         (VALID_REGISTER_P): Likewise.
10036         (FIRST_PSEUDO_REGISTER): Update.
10037         (DWARF_FRAME_REGISTERS): Define.
10038         (FIXED_REGISTERS, CALL_USED_REGISTERS): Add sfp.
10039         (HARD_FRAME_POINTER_REGNUM): Define.
10040         (FRAME_POINTER_REGNUM): Redefine.
10041         (ELIMINABLE_REGS): Never eliminate to FRAME_POINTER_REGNUM,
10042         but HARD_FRAME_POINTER_REGNUM instead.  Add eliminations
10043         from FRAME_POINTER_REGNUM.
10044         (CAN_ELIMINATE): Use HARD_FRAME_POINTER_REGNUM instead of
10045         FRAME_POINTER_REGNUM.
10046         (REG_CLASS_CONTENTS): Add sfp.
10047         (REG_ALLOC_ORDER): Likewise.
10048         (FRAME_GROWS_DOWNWARD): Set to 1.  Update comment.
10049         (GO_IF_LEGITIMATE_ADDRESS): Use hard_frame_pointer_rtx instead
10050         of frame_pointer_rtx.
10051         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
10052
10053 2005-07-19  James A. Morrison  <phython@gcc.gnu.org>
10054
10055         * fold-const.c (tree_expr_nonnegative_p): Only return true for
10056         ABS_EXPR when flag_wrapv is false because of INT_MIN.
10057         (tree_expr_nonzero_p): Always call tree_expr_nonzero_p on the argument
10058         of an ABS_EXPR.
10059         (fold_unary): Always fold ABS_EXPR<ABS_EXPR<x>> into
10060         ABS_EXPR<x>.
10061
10062 2005-07-20  Giovanni Bajo  <giovannibajo@libero.it>
10063
10064         Make CONSTRUCTOR use VEC to store initializers.
10065         * c-common.c (complete_array_type): Update to cope with VEC in
10066         CONSTRUCTOR_ELTS.
10067         * c-pretty-print.c (pp_c_initializer_list): Use pp_c_constructor_elts.
10068         (pp_c_constructor_elts): New function.
10069         * c-pretty-print.h (pp_c_constructor_elts): Declare.
10070         * c-typeck.c (build_function_call, build_c_cast, digest_init,
10071         struct constructor_stack, struct initializer_stack,
10072         constructor_elements, push_init_level, pop_init_level,
10073         add_pending_init, find_init_member, output_init_element): Update to
10074         cope with VEC in CONSTRUCTOR_ELTS.
10075         * coverage.c (build_fn_info_value, build_ctr_info_value,
10076         build_gcov_info): Likewise.
10077         * expr.c (categorize_ctor_elements_1, store_constructor,
10078         expand_expr_real_1): Likewise.
10079         * fold-const.c (fold_ternary): Likewise.
10080         * gimplify.c (gimplify_init_ctor_preeval, zero_sized_field_decl,
10081         gimplify_init_constructor, gimplify_expr): Likewise.
10082         * tree-dump.c (dequeue_and_dump): Likewise.
10083         * tree-inline.c (copy_tree_r): Add code to duplicate a CONSTRUCTOR
10084         node.
10085         * tree-pretty-print.c (dump_generic_node): Update to cope with VEC in
10086         CONSTRUCTOR_ELTS.
10087         * tree-sra.c (generate_element_init_1): Likewise.
10088         * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
10089         * tree-ssa-operands.c (get_expr_operands): Likewise.
10090         * tree-vect-generic.c (expand_vector_piecewise): Likewise.
10091         * tree-vect-transform.c (vect_get_vec_def_for_operand):
10092         (get_initial_def_for_reduction): Likewise.
10093         * tree-vn.c (set_value_handle, get_value_handle): CONSTURCTOR uses
10094         value handle in annotations.
10095         * tree.c (tree_node_kind, tree_code_size, make_node_stat,
10096         tree_node_structure): Add support for constr_kind.
10097         (build_vector_from_ctor, build_constructor_single,
10098         build_constructor_from_list): New functions.
10099         (build_constructor): Update to take a VEC instead of a TREE_LIST.
10100         (simple_cst_equal, iterative_hash_expr, initializer_zerop, walk_tree):
10101         Update to cope with VEC in CONSTRUCTOR_ELTS.
10102         * tree.def (CONSTRUCTOR): Make it a tcc_exceptional node.
10103         * tree.h (FOR_EACH_CONSTRUCTOR_VALUE, FOR_EACH_CONSTRUCTOR_ELT,
10104         CONSTRUCTOR_APPEND_ELT): New macros.
10105         (struct constructor_elt, struct tree_constructor): New data types.
10106         (union tree_node): Add tree_constructor field.
10107         * treestruct.def: Define TS_CONSTRUCTOR.
10108         * varasm.c (const_hash_1, compare_constant, copy_constant,
10109         compute_reloc_for_constant, output_addressed_constants,
10110         initializer_constant_valid_p, output_constant,
10111         array_size_for_constructor, output_constructor): Update to cope with
10112         VEC in CONSTRUCTOR_ELTS.
10113         * vec.h (VEC_empty, VEC_copy): New macros.
10114
10115 2005-07-19  Devang Patel  <dpatel@apple.com>
10116
10117         * dbxout.c (dbxout_type): Check Objective-C++ lang.
10118
10119 2005-07-19  Richard Henderson  <rth@redhat.com>
10120
10121         PR tree-opt/22278
10122         * gimplify.c (gimplify_expr): Use main variant type for the temp
10123         destination for a discarded volatile read.
10124         * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't elide
10125         casts between non-void types that change volatility.
10126
10127 2005-07-15  DJ Delorie  <dj@redhat.com>
10128
10129         * toplev.h: Add comment about the first parameter for warning().
10130         * errors.h: Likewise.
10131
10132         * c.opt (Wpragmas): New.
10133         * doc/invoke.texi: Document it.
10134
10135         * function.c (do_warn_unused_parameter): Add warning control to
10136         warning call.
10137         * c-decl.c (warn_if_shadowing): Likewise.
10138         * c-lex.c (cb_def_pragma): Likewise.
10139         * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
10140         (pop_alignment): Likewise.
10141         (handle_pragma_pack): Likewise.
10142         (apply_pragma_weak): Likewise.
10143         (handle_pragma_weak): Likewise.
10144         (handle_pragma_redefine_extname): Likewise.
10145         (add_to_renaming_pragma_list): Likewise.
10146         (handle_pragma_extern_prefix): Likewise.
10147         (maybe_apply_renaming_pragma): Likewise.
10148         (handle_pragma_visibility): Likewise.
10149
10150         * config/c4x/c4x-c.c (BAD): Likewise.
10151         (c4x_parse_pragma): Likewise.
10152         * config/ia64/ia64-c.c (ia64_hpux_handle_builtin_pragma): Likewise.
10153         * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
10154         (rs6000_pragma_longcall): Likewise.
10155         * config/v850/v850-c.c (pop_data_area): Likewise.
10156         (ghs_pragma_section): Likewise.
10157         (ghs_pragma_section): Likewise.
10158         (ghs_pragma_interrupt): Likewise.
10159         (ghs_pragma_starttda): Likewise.
10160         (ghs_pragma_startsda): Likewise.
10161         (ghs_pragma_startzda): Likewise.
10162         (ghs_pragma_endtda): Likewise.
10163         (ghs_pragma_endsda): Likewise.
10164         (ghs_pragma_endzda): Likewise.
10165
10166 2005-07-19  Danny Berlin <dberlin@dberlin.org>
10167             Kenneth Zadeck <zadeck@naturalbridge.com>
10168
10169         * Makefile.in: Removed tree-promote-statics.c
10170         * tree-promote-statics.c: Removed.
10171         * common.opt: Removed flag-promote-statics.
10172         * opts.c: Ditto.
10173         * passes.c: Removed tree-promote-statics pass.
10174         * tree-pass.h: Ditto.
10175         * timevar.def: Removed TV_PROMOTE_STATICS.
10176
10177
10178 2005-07-19  Gerald Pfeifer  <gerald@pfeifer.com>
10179
10180         * config.gcc: Add support for *-*-freebsd7, *-*-freebsd8,
10181         and *-*-freebsd9.
10182         * config/freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Ditto.
10183
10184 2005-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10185
10186         PR c/22476
10187         * c-common.c (check_function_arguments): Call
10188         'check_function_format' if either -Wformat or
10189         -Wmissing-format-attribute are specified.
10190         * c-format.c (check_function_format): Check -Wformat before
10191         calling 'check_format_info'.
10192         * c-opts.c (c_common_post_options): Don't warn for
10193         -Wmissing-format-attribute without -Wformat.
10194         * c-typeck.c (convert_for_assignment): Detect additional cases for
10195         -Wmissing-format-attribute.
10196         * doc/invoke.texi (-Wmissing-format-attribute): Document new
10197         behavior.
10198
10199 2005-07-19  Richard Guenther  <rguenther@suse.de>
10200
10201         * config/i386/i386.md (lrint<mode>2): Use temporary
10202         instead of clobbering non-existent memory.
10203
10204 2005-07-19  Nick Clifton  <nickc@redhat.com>
10205
10206         * config/avr/avr.c (legitimate_address_p): Fix debugging print
10207         statement to avoid displaying ASCII control characters.
10208
10209 2005-07-19  Ben Elliston  <bje@au.ibm.com>
10210
10211         * bt-load.c (link_btr_uses): Fix uninitialised warnings.
10212         * cfganal.c (find_edge_index): Ditto.
10213         * combine.c (combine_instructions): Ditto.
10214         * ddg.c (create_scc): Ditto.
10215         (find_successors): Ditto.
10216         (find_predecessors): Ditto.
10217         (find_nodes_on_paths): Ditto.
10218         (longest_simple_path): Ditto.
10219         * flow.c (update_life_info): Ditto.
10220         (count_or_remove_death_notes): Ditto.
10221         (clear_log_links): Ditto.
10222         * modulo-sched.c (generate_reg_moves): Ditto.
10223         (find_max_asap): Ditto.
10224         (find_max_hv_min_mob): Ditto.
10225         (find_max_dv_min_mob): Ditto.
10226         * sbitmap.c (sbitmap_first_set_bit): Ditto.
10227         * sched-rgn.c (extract_edgelst): Ditto.
10228         * tree-into-ssa.c (prepare_names_to_update): Ditto.
10229         (dump_update_ssa): Ditto.
10230         (ssa_names_to_replace) Ditto.
10231         (switch_virtuals_to_full_rewrite): Ditto.
10232         (update_ssa): Ditto.
10233         * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
10234
10235 2005-07-18  Daniel Berlin  <dberlin@dberlin.org>
10236
10237         Fix PR tree-optimization/22483
10238
10239         * tree-complex.c (create_components): Use
10240         safe_referenced_var_iterator and FOR_EACH_REFERENCED_VAR_SAFE.
10241         * tree-flow-inline.h (fill_referenced_var_vec): New function.
10242         * tree-flow.h (safe_referenced_var_iterator): New structure.
10243         (FOR_EACH_REFERENCED_VAR_SAFE): New macro.
10244         * tree-ssa-alias.c (setup_pointers_and_addressables): Use
10245         safe_referenced_var iterator.
10246         (add_type_alias): Ditto.
10247
10248 2005-07-19  Steven Bosscher  <stevenb@suse.de>
10249
10250         * loop-init.c (rest_of_handle_loop2): Remove.
10251         (rtl_loop_init, rtl_loop_done, rtl_move_loop_invariants,
10252         rtl_unswitch, rtl_unroll_and_peel_loops, rtl_doloop): New functions.
10253         (pass_rtl_loop_init, pass_rtl_loop_done,
10254         pass_rtl_move_loop_invariants, pass_rtl_unswitch,
10255         pass_rtl_unroll_and_peel_loops, pass_rtl_doloop): New passes.
10256         * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_loop_done,
10257         pass_unswitch): Rename to pass_tree_loop, pass_tree_loop_init,
10258         pass_tree_loop_done, and pass_tree_unswitch.
10259         (gate_loop): Rename to gate_tree_loop.
10260         * passes.c (init_optimization_passes): Update for renamed tree
10261         loop passes.  Add the new loop2 passes as subpasses of loop2.
10262         * tree-pass.h: Add extern declarations for the new loop2 subpasses.
10263         Update for the renamed tree loop passes.
10264
10265 2005-07-18  Ian Lance Taylor  <ian@airs.com>
10266
10267         PR middle-end/22057
10268         * tree-cfgcleanup.c (cleanup_tree_cfg): Only remove forwarder
10269         blocks when optimizing.
10270
10271 2005-07-18  Steve Ellcey  <sje@cup.hp.com>
10272
10273         * common.opt (frename-registers): Initialize to 2.
10274         (fweb): Ditto.
10275         (fgcse-after-reload): Ditto.
10276         * toplev.c (AUTODETECT_FLAG_VAR_TRACKING): Rename to AUTODETECT_VALUE.
10277         (process_options): Only change flag_web, flag_rename_registers,
10278         and flag_rerun_cse_after_loop if not explicitly set by user.
10279
10280 2005-07-18  Jan Beulich  <jbeulich@novell.com>
10281
10282         * config/i386/i386.c (ix86_expand_branch, ix86_expand_setcc,
10283         ix86_expand_carry_flag_compare, ix86_expand_int_movcc): Handle TImode
10284         in 64-bit mode the same as DImode in 32-bit mode.
10285         (ix86_expand_ashl_const, ix86_split_ashl, ix86_split_ashr,
10286         ix86_split_lshr): Likewise. Rename to no longer refer to a specific
10287         mode. Add new mode parameter.
10288         * config/i386/i386.h (CONST_OK_FOR_LETTER_P): Describe and handle 'O'.
10289         * config/i386/i386.md (cmpti, addti3, subti3, negti2, ashlti3, ashrti3,
10290         x86_64_shift_adj): New expanders.
10291         (*addti3_1, *subti3_1, *negti2_1, ashlti3_1, *ashlti3_2, ashrti3_1,
10292         *ashrti3_2, lshrti3_1, *lshrti3_2, x86_64_shld, x86_64_shrd): New
10293         insns.
10294         Respective new splitters. Use renamed shift splitter helpers in 32-bit
10295         DImode shift splitters.
10296         * config/i386/i386-protos.h (ix86_split_ashl, ix86_split_ashr,
10297         ix86_split_lshr): Renamed from ix86_split_[al]sh[rl]di. Added new
10298         mode parameter.
10299
10300 2005-07-18  Jan Beulich  <jbeulich@novell.com>
10301
10302         * i386.md (movdi_extzv_1): New.
10303         (zero_extendhidi2): Combine alternatives and never force use of
10304         REX64 prefix.
10305         (zero_extendqidi2): Likewise. Don't restrict input selection.
10306
10307 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
10308
10309         Fix PR tree-optimization/22531
10310         * tree-ssa-pre.c (do_eustores):  Make sure LHS is a decl for the
10311          moment.
10312
10313 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
10314
10315         * tree-promote-statics.c (pass_promote_statics): Change dump file
10316          name.
10317
10318 2005-07-17  Daniel Berlin  <dberlin@dberlin.org>
10319
10320         * tree-optimize.c (init_tree_optimization_passes): Add
10321         pass_eliminate_useless_stores pass.
10322         * tree-pass.h (pass_eliminate_useless_stores): New pass structure.
10323         * tree-ssa-pre.c (is_copy_stmt): New function.
10324         (follow_copies_till_vuse): Ditto.
10325         (do_eustores): Ditto.
10326         (gate_eustores): Ditto.
10327
10328 2005-07-16  Richard Henderson  <rth@redhat.com>
10329
10330         * gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit.
10331
10332 2005-07-16 Danny Berlin <dberlin@dberlin.org>
10333            Kenneth Zadeck <zadeck@naturalbridge.com>
10334
10335         * Makefile.in: Added rules for ipa-pure-const.c, ipa-reference.c,
10336         ipa-reference.h, ipa-utils.c, ipa-utils.h, ipa-type-escape.c,
10337         ipa-type-escape.h, tree-promote-statics.c
10338         * ipa-pure-const.c, ipa-reference.c, ipa-reference.h, ipa-utils.c,
10339         ipa-utils.h, ipa-type-escape.c, ipa-type-escape.h,
10340         tree-promote-statics.c: new files.
10341         * alias.c: (nonlocal_mentioned_p_1, nonlocal_mentioned_p,
10342         nonlocal_referenced_p_1, nonlocal_referenced_p, nonlocal_set_p_1,
10343         int nonlocal_set_p, mark_constant_function): Deleted.
10344         (rest_of_handle_cfg): Removed call to mark_constant_function.
10345         (nonoverlapping_component_refs_p): Added calls to support
10346         type based aliasing.
10347         * tree-ssa-alias.c (may_alias_p,
10348         compute_flow_insensitive_aliasing): Ditto.
10349         * calls.c (flags_from_decl_or_type): Removed reference to
10350         cgraph_rtl_info.
10351         * c-typeck.c (convert_arguments): Make builtins tolerant of having
10352         too many arguments.  This is necessary for Spec 2000.
10353         * cgraph.h (const_function, pure_function): Removed.
10354         * common.opt: Added "fipa-pure-const", "fipa-reference",
10355         "fipa-type-escape", and "ftree-promote-static".
10356         * opts.c: Ditto.
10357         * passes.c: Added ipa and tree-promote-statics passes.
10358         * timevar.def: Added TV_IPA_PURE_CONST, TV_IPA_REFERENCE,
10359         TV_IPA_TYPE_ESCAPE, and TV_PROMOTE_STATICS.
10360         * tree-dfa.c (referenced_var_lookup_if_exists): New function.
10361         * tree-flow.h: Added exposed sra calls and addition of
10362         reference_vars_info field for FUNCTION_DECLS.
10363         * tree-pass.h: Added passes.
10364         * tree-sra.c: (sra_init_cache): New function.
10365         (sra_insert_before, sra_insert_after) Made public.
10366         (type_can_be_decomposed_p): Renamed from type_can_be_decomposed_p
10367         and made public.
10368         * tree-ssa-alias.c (dump_alias_stats): Added stats for type based
10369         aliasing. (may_alias_p): Added code to use type escape analysis to
10370         improve alias sets.
10371         * tree-ssa-operands.c (add_call_clobber_ops): Added parameter and
10372         code to prune clobbers of static variables based on information
10373         produced in ipa-reference pass.  Changed call clobbering so that
10374         statics are not marked as clobbered if the call does not clobber
10375         them.
10376
10377 2005-07-16  Daniel Berlin  <dberlin@dberlin.org>
10378
10379         * tree-ssa-structalias.c (need_to_solve): Need to check for preds,
10380         too.
10381
10382 2005-07-16  Eric Botcazou  <ebotcazou@libertysurf.fr>
10383
10384         * doc/install.texi (*-*-solaris2*): Document recommended version
10385         of GNU binutils and mention GNU linker problem on Solaris 10.
10386
10387 2005-07-16  Joseph S. Myers  <joseph@codesourcery.com>
10388
10389         PR c/22421
10390         * c-decl.c (c_build_bitfield_integer_type): New function.
10391         (finish_struct): Call it.
10392         * c-pretty-print.c (pp_c_type_specifier): Handle bit-field types.
10393
10394 2005-07-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10395
10396         * c-typeck.c (digest_init): Call 'convert_for_assignment'
10397         before returning.
10398
10399 2005-07-16  Jan Hubicka  <jh@suse.cz>
10400
10401         * cfg.c (update_bb_profile_for_threading): Fix profile updating.
10402         (scale_bbs_frequencies_int): Watch roundoff errors.
10403         * predict.c (return_prediction): Initialize return_stmt.
10404
10405 2005-07-16  Jan Hubicka  <jh@suse.cz>
10406
10407         * profile.c (rest_of_handle_branch_prob): Fix handling of estimation
10408         after RTL profiling.
10409
10410 2005-07-11  Andrew Pinski  <pinskia@physics.uc.edu>
10411
10412         PR middle-end/22398
10413         * fold-const.c (build_range_check): Convert high/low to etype
10414         if we are only comparing against exp.
10415
10416 2005-07-13  Daniel Berlin  <dberlin@dberlin.org>
10417
10418         Fix PR tree-optimization/22376
10419         * tree-ssa-structalias.c (build_constraint_graph): We really meant
10420         special var here.
10421         (need_to_solve): New function.
10422         (compute_points_to_sets): Use it.
10423
10424 2005-07-15  Jan Hubicka  <jh@suse.cz>
10425
10426         * cfg.c (update_bb_profile_for_threading): More diagnostic.
10427         * tree-ssa-threadupdate.c (redirect_edges): Update profile of dup_block.
10428
10429 2005-07-15  Richard Guenther  <rguenther@suse.de>
10430
10431         * c-common.c (handle_flatten_attribute): New function.
10432         Add flatten function attribute.
10433         * doc/extend.texi: Document flatten function attribute.
10434         * Makefile.in (ipa-inline.o): Depend on hashtab.h.
10435         * ipa-inline.c (cgraph_find_cycles, cgraph_flatten_node):
10436         New functions.
10437         (cgraph_decide_inlining): Handle functions with flatten
10438         attribute.
10439
10440 2005-07-14  David Edelsohn  <edelsohn@gnu.org>
10441
10442         * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_LWSYNC,
10443         UNSPEC_ISYNC, UNSPEC_SYNC_OP, UNSPEC_ATOMIC, UNSPEC_CMPXCHG,
10444         UNSPEC_XCHG, UNSPEC_AND): New.
10445         (UNSPECV_ATOMIC, UNSPECV_SYNC, UNSPECV_SYNC_OP, UNSPECV_CMPXCHG,
10446         UNSPECV_LWSYNC, UNSPECV_ISYNC): Delete.
10447         * config/rs6000/sync.md (FETCHOP): New code macro.
10448         (fetchop_name, fetchop_pred, fetchopsi_constr, fetchopdi_constr):
10449         New code attrs.
10450         (memory_barrier, sync_internal): Use unspec instead of unspec_volatile.
10451         (sync_compare_and_swap<mode>): Same.
10452         (sync_lock_test_and_set<mode>): Same.
10453         (sync_<fetchop><mode>, sync_nand<mode>): Only use rs6000_emit_sync
10454         for QImode and HImode, and not PPC405.
10455         (sync_old_<fetchop><mode>, sync_old_nand<mode>): Same.
10456         (sync_new_<fetchop><mode>, sync_new_nand<mode>): Same.
10457         (sync_<fetchop>{si,di}_internal): New.
10458         (sync_nand{si,di}_internal): New.
10459         (sync_old_<fetchop>{si,di}_internal): New.
10460         (sync_old_nand{si,di}_internal): New
10461         (sync_new_<fetchop>{si,di}_internal): New.
10462         (sync_new_nand{si,di}_internal): New.
10463         (atomic_and{si,di}): New.
10464         (sync_new_nand{si,di}_internal): New.
10465         (atomic_and{si,di}): New.
10466         (sync_add<mode>_internal): Delete.
10467         (sync_addshort_internal): Use unspec instead of unspec_volatile.
10468         (sync_sub<mode>_internal): Delte.
10469         (sync_subshort_internal): New.
10470         (sync_andsi_internal): Use unspec instead of unspec_volatile.
10471         (sync_anddi_internal): Delete.
10472         (sync_boolsi_internal): Use unspec instead of unspec_volatile.
10473         (sync_booldi_internal): Delete.
10474         (sync_boolc<mode>_internal): Delete.
10475         (sync_boolcshort_internal): Use unspec instead of unspec_volatile.
10476         (sync_boolc<mode>_internal2): Delete.
10477         (sync_boolcc<mode>_internal): Delete.
10478         (isync, lwsync): Use unspec instead of unspec_volatile.
10479         * config/rs6000/rs6000.c (rs6000_emit_sync): Implement MINUS.
10480         Revert UNSPEC_VOLATILE.
10481         (rs6000_split_atomic_op): New.
10482         * config/rs6000/rs6000-protos.h (rs6000_split_atomic_op): Declare.
10483
10484 2005-07-14  Eric Christopher  <echristo@redhat.com>
10485
10486         * config/mips/mips.c (mips_canonicalize_comparison): Cast
10487         argument of trunc_int_for_mode to unsigned HOST_WIDE_INT.
10488
10489 2005-07-14  Eric Christopher  <echristo@redhat.com>
10490
10491         * config/s390/t-tpf (SHLIB_MAPFILES): Remove.
10492
10493 2005-07-14  Steven Bosscher  <stevenb@suse.de>
10494
10495         PR tree-optimization/22230
10496         * tree-vrp.c (extract_range_from_binary_expr): Fix logics thinko in
10497         the computation of the four cross productions for "range op range".
10498
10499 2005-07-14  Alexandre Oliva  <aoliva@redhat.com>
10500             Ulrich Weigand  <uweigand@de.ibm.com>
10501
10502         PR target/20126
10503         * loop.c (loop_givs_rescan): Do not ICE if unable to reduce an IV
10504         in some insn.
10505
10506 2005-07-14  Ulrich Weigand  <uweigand@de.ibm.com>
10507
10508         * config/s390/s390.h (TARGET_TPF_PROFILING): Add default definition.
10509
10510 2005-07-14  Steve Ellcey  <sje@cup.hp.com>
10511
10512         * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Support ILP32 mode.
10513
10514 2005-07-14  Richard Guenther  <rguenther@suse.de>
10515
10516         PR middle-end/22347
10517         * config/i386/i386-protos.h (ix86_function_value): Change
10518         prototype to match new target hook.
10519         * config/i386/i386.c (ix86_value_regno): Change prototype
10520         to take extra type argument.
10521         (TARGET_FUNCTION_VALUE): Define.
10522         (ix86_function_ok_for_sibcall): Pass extra argument to
10523         ix86_value_regno, check return slot rtx for exact match.
10524         (ix86_function_value): Take extra parameter.  Dispatch to
10525         ix86_value_regno with fndecl/fntype as provided.
10526         (ix86_value_regno): Handle extra type argument.
10527         * config/i386/i386.h (FUNCTION_VALUE): No longer define.
10528
10529         * testsuite/gcc.target/i386/sseregparm-3.c: New testcase.
10530         * testsuite/gcc.target/i386/sseregparm-4.c: New testcase.
10531         * testsuite/gcc.target/i386/sseregparm-5.c: New testcase.
10532         * testsuite/gcc.target/i386/sseregparm-6.c: New testcase.
10533         * testsuite/gcc.target/i386/sseregparm-7.c: New testcase.
10534
10535 2005-07-14  Richard Guenther  <rguenther@suse.de>
10536
10537         * Makefile.in (explow.o, reg-stack.o): Depend on target.h.
10538         * calls.c (expand_call): Pass fntype to hard_function_value.
10539         (emit_library_call_value_1): Likewise.
10540         * explow.c: Include target.h.
10541         (hard_function_value): Take extra argument, the fntype.
10542         Use new target hook for function_value.
10543         * expr.h (hard_function_value): Change prototype.
10544         * function.c (aggregate_value_p): Pass 0 as fntype to
10545         hard_function_value.
10546         (assign_parms): Use new target hook for function_value.
10547         Pass 0 as fntype to hard_function_value.
10548         (expand_function_end): Likewise.
10549         * reg-stack.c: Include target.h.
10550         (stack_result): Use new target hook for function_value.
10551         * target-def.h: New target hook function_value.
10552         * target.h: Likewise.
10553         * targhooks.c (default_function_value): New function.
10554         * targhooks.h (default_function_value): Declare.
10555
10556 2005-07-13  Ian Lance Taylor  <ian@airs.com>
10557
10558         * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
10559
10560 2005-07-14  Jan Hubicka  <jh@suse.cz>
10561
10562         * tree-dfa.c (dump_variable): Use default_def function.
10563         * tree-ssa-alias.c (dump_points_to_info): Likewise.
10564         * tree-ssa.c (verify_use): Likewise.
10565         * tree-ssanames.c (release_ssa_name): Likewise.
10566         * tree-tailcall.c (eliminate_tail_call): Likewise.
10567         (tree_optimize_tail_calls_1): Likewise.
10568         * tree-vrp.c (get_value_range): Likewise.
10569
10570 2005-07-14  Ben Elliston  <bje@au.ibm.com>
10571
10572         * gcc.c (main): Compare language[0] with '*' when iterating over
10573         the infiles.
10574
10575 2005-07-13  Adrian Strae½tling  <straetling@de.ibm.com>
10576
10577         * config/s390/s390.c: (s390_cc_modes_compatible): Move before
10578         "s390_emit_compare".  Add handling of CCZ1mode.
10579         (s390_canonicalize_comparison): Simplify cascaded EQ, NE.
10580         (390_emit_compare): Use "s390_cc_modes_compatible" for mode
10581         checking.
10582         (s390_branch_condition_mask): Add CCZ1mode handling.
10583         * config/s390/s390.md: ("seq", "*seq"): New pattern.
10584         ("sync_compare_and_swap_cc<mode>", "*sync_compare_and_swap_cc<mode>"):
10585         Use CCZ1mode instead of CCZmode.
10586         * config/s390/s390-modes.def: Add CCZ1mode.  Comment new mode.
10587
10588 2005-07-13  Adrian Strae½tling  <straetling@de.ibm.com>
10589
10590         * config/s390/s390.md: ("cmpstrsi", "*cmpstr<mode>"): New
10591         pattern.
10592         ("strlen<mode>", "*strlen<mode>"): Use hard reg 0 in SImode.
10593
10594 2005-07-13  Eric Christopher  <echristo@redhat.com>
10595
10596         * config/mips/mips.c (mips_canonicalize_comparison): New.
10597         (mips_emit_int_relational): Use.
10598
10599 2005-07-13  Eric Christopher  <echristo@redhat.com>
10600
10601         * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
10602         static extra parts.
10603         * config/s390/s390.md: Include tpf.md. Move tpf specific
10604         patterns...
10605         * config/s390/tpf.md: To here.
10606         * config/s390/s390.opt: Move tpf specific options...
10607         * config/s390/tpf.opt: to here. Add mmain option.
10608         * config/s390/tpf-unwind.h: Remove unnecessary defines.
10609         * config/s390/tpf.h: Rewrite.
10610
10611 2005-07-13  H.J. Lu  <hongjiu.lu@intel.com>
10612
10613         * doc/tm.texi: Remove @xref{Cross-profiling}.
10614
10615 2005-07-13  Jeff Law  <law@redhat.com>
10616
10617         * fold-const.c (fold_binary): When comparing two simple ADDR_EXPR
10618         expressions, test their _DECL operands for pointer equality rather
10619         than using operand_equal_p.
10620
10621 2005-07-13  H.J. Lu  <hongjiu.lu@intel.com>
10622
10623         * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Renamed to ...
10624         (TARGET_POSIX_IO): This.
10625         * config/darwin.h: Likewise.
10626         * config/freebsd.h: Likewise.
10627         * config/linux.h: Likewise.
10628         * config/lynx.h: Likewise.
10629         * config/netbsd.h: Likewise.
10630         * config/rs6000/linux64.h: Likewise.
10631         * config/rs6000/linux.h: Likewise.
10632         * config/s390/tpf.h: Likewise.
10633         * config/sh/embed-elf.h: Likewise.
10634         * config/sparc/linux64.h: Likewise.
10635         * config/sparc/linux.h: Likewise.
10636         * config/svr4.h: Likewise.
10637         * gcov-io.h: Likewise.
10638
10639         * doc/tm.texi: Updated.
10640
10641         * libgcov.c (create_file_directory): Defined only if
10642         TARGET_POSIX_IO is defined.
10643         (gcov_exit): Call create_file_directory only if TARGET_POSIX_IO
10644         is defined.
10645
10646 2005-07-13  Jan Hubicka  <jh@suse.cz>
10647
10648         * tree-ssa-operands.c (get_expr_operands): Fix typo in previous patch.
10649
10650 2005-07-13  David Edelsohn  <edelsohn@gnu.org>
10651
10652         * tree-ssa-dom.c (lookup_avail_expr): Do not pass member in freed
10653         structure as argument.
10654
10655 2005-07-13  Paolo Bonzini  <bonzini@gnu.org>
10656
10657         PR tree-optimization/21921
10658         * tree-iterator.c (tsi_link_before): Support the case when
10659         tsi_end_p (tsi) == true.
10660
10661 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
10662
10663         PR tree-optimization/22442
10664         * tree-chrec.c (chrec_fold_multiply_poly_poly): Associate chrecs
10665         correctly.
10666
10667 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
10668
10669         PR rtl-optimization/20376
10670         * toplev.c (process_options): Enable -fweb and -frename-registers when
10671         unrolling.
10672         * doc/invoke.texi: Update the information about when -fweb and
10673         -frename-registers are enabled.
10674
10675 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
10676
10677         PR tree-opt/21840
10678         * tree-ssa-pre.c (eliminate): Convert the sprime to the correct type
10679         if *rhs_p is not a SSA_NAME.
10680
10681 2005-07-12  Daniel Berlin  <dberlin@dberlin.org>
10682
10683         Fix PR tree-optimization/22422
10684         * tree-ssa-structalias.c (struct variable_info): Add flag for
10685         special vars.
10686         (get_varinfo): Now a static function.
10687         (new_varinfo): init has_union and is_special_var to false.
10688         (solution_set_add): Check has_union.
10689         (do_da_constraint): Move temporary variable so it gets reset
10690         properly.
10691         Also check for special variable.
10692         (do_ds_constraint): Ditto.
10693         (do_sd_constraint): Ditto.
10694         (do_structure_copy): Check for special variable.
10695         (find_func_aliases): Ditto.
10696         (init_base_vars): Set special vars properly.
10697
10698 2005-07-13  Jan Hubicka  <jh@suse.cz>
10699
10700         * cfgexpand.c (expand_one_stack_var): Do not expand variables when we
10701         do unit-at-a-time.
10702
10703         * tree-ssa-operands.c (parse_ssa_operands): Fix formatting.
10704         (get_expr_operands): Fix thinko wrt flags and subvars.
10705
10706         PR tree-optimize/22379
10707         * tree-inline.c (expand_call_inline): Do not output sorry in early
10708         inlining.
10709
10710 2005-07-12  Dale Johannesen  <dalej@apple.com>
10711
10712         * config/rs6000.c (rs6000_rtx_cost):  Move FLOAT_EXTEND.
10713
10714 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
10715
10716         PR bootstrap/21704
10717         * host-linux.h: Include limits.h.
10718
10719 2005-07-12  Dale Johannesen  <dalej@apple.com>
10720
10721         * expr.c (compress_float_constant):  Add cost check.
10722         * config/rs6000.c (rs6000_rtx_cost):  Adjust FLOAT_EXTEND cost.
10723
10724 2005-07-12  Dale Johannesen  <dalej@apple.com>
10725
10726         * gcc.target/i386/compress-float-sse.c:  New.
10727         * gcc.target/i386/compress-float-sse-pic.c:  New.
10728         * gcc.target/i386/compress-float-387.c:  New.
10729         * gcc.target/i386/compress-float-387-pic.c:  New.
10730         * gcc.dg/compress-float-ppc.c:  New.
10731         * gcc.dg/compress-float-ppc-pic.c:  New.
10732
10733 2005-07-12  Eric Christopher  <echristo@redhat.com>
10734
10735         * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
10736         static extra parts.
10737         * config/s390/s390.md: Include tpf.md. Move tpf specific
10738         patterns...
10739         * config/s390/tpf.md: To here.
10740         * config/s390/s390.opt: Move tpf specific options...
10741         * config/s390/tpf.opt: to here. Add mmain option.
10742         * config/s390/tpf-unwind.h: Remove unnecessary defines.
10743         * config/s390/tpf.h: Rewrite.
10744
10745 2005-07-12  Eric Christopher  <echristo@redhat.com>
10746
10747         * gcc.c (struct infile): Update comment for language.
10748         (main): Rewrite input file resetting code.
10749
10750 2005-07-12  Andrew Pinski  <pinskia@physics.uc.edu>
10751
10752         PR tree-opt/22335
10753         * tree-ssa-dom.c (eliminate_redundant_computations): Reject the prop if
10754         requiring a cast in a non RHS of modify_expr.  Add a cast when required.
10755         (lookup_avail_expr): Use constant_boolean_node instead
10756         of boolean_false_node/boolean_true_node.
10757
10758 2005-07-12  Ben Elliston  <bje@au.ibm.com>
10759
10760         * tree-cfg.c (dump_cfg_stats): Add a new fmt_str_2 format string
10761         and use it when printing num_edges.
10762
10763 2005-07-12  Bernd Schmidt  <bernd.schmidt@analog.com>
10764
10765         * doc/extend.texi (Blackfin Built-in Functions): New section.
10766         * doc/invoke.texi (mcsync-anomaly, mno-csync-anomaly): Fix the
10767         @opindex.
10768
10769 2005-07-12  Adrian Straetling  <straetling@de.ibm.com>
10770
10771         * builtins.c: (expand_builtin_memcmp, expand_builtin_strncmp):
10772         s/cmpstrsi/cmpstrnsi
10773         (expand_builtin_strcmp): Rewrite to support both 'cmpstrsi' and
10774         'cmpstrnsi'.
10775         * optabs.c: (prepare_cmp_insn): Add availability of 'cmpstrn'.
10776         (init_optabs): Initialize cmpstrn_optab.
10777         * optabs.h: (enum insn_code cmpstrn_optab): Declare.
10778         * genopinit.c: (optabs[]): Add 'cmpstrn' to initialisation.
10779         * expr.c: (enum insn_code cmpstrn_optab): Declare.
10780         * config/i386/i386.md: s/cmpstr/cmpstrn
10781         * config/c4x/c4x.md: s/cmpstr/cmpstrn
10782         * doc/md.texi: Update documentation.
10783
10784 2005-07-11  Richard Henderson  <rth@redhat.com>
10785
10786         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use
10787         build_va_arg_indirect_ref.
10788         (alpha_gimplify_va_arg): Likewise.
10789         * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
10790         * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
10791         * config/mips/mips.c (mips_gimplify_va_arg_expr): Likewise.
10792         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
10793         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
10794         * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg):
10795         Likewise.
10796         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
10797
10798 2005-07-12  Zdenek Dvorak  <dvorakz@suse.cz>
10799
10800         * tree-flow.h (remove_empty_loops, single_dom_exit): Declare.
10801         * passes.c (init_optimization_passes): Add pass_empty_loop.
10802         * tree-pass.h (pass_empty_loop): Declare.
10803         * tree-ssa-loop-ivcanon.c (empty_loop_p, remove_empty_loop,
10804         try_remove_empty_loop, remove_empty_loops): New functions.
10805         * tree-ssa-loop-ivopts.c (single_dom_exit): Export.
10806         * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): New.
10807
10808 2005-07-12  Peter Barada  <peter@the-baradas.com>
10809
10810         PR middle-end/16719
10811         PR middle-end/18421
10812         * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Disallow bytes
10813         in address registers.
10814         * config/m68k/m68k.c (hard_regno_mode_ok): Likewise.
10815         * config/m68k/m68k.md: Replace 's' with 'i' in 4th
10816         alternative of addsi3_5200.
10817
10818 2005-07-11  Ian Lance Taylor  <ian@airs.com>
10819
10820         * config/mips/mips.md (ffs<mode>2): Remove.
10821
10822 2005-07-11  Ian Lance Taylor  <ian@airs.com>
10823
10824         * doc/tree-ssa.texi (Cleanups): Improve description of
10825         TRY_FINALLY_EXPR.
10826         (GIMPLE Exception Handling): Clarify TRY_CATCH_EXPR cases.
10827
10828 2005-07-11  Daniel Berlin  <dberlin@dberlin.org>
10829
10830         * print-tree.c (print_node): Use DECL_ARGUMENT_FLD.
10831         * tree.h (DECL_ARGUMENT_FLD): New macro.
10832
10833 2005-07-11  Daniel Berlin  <dberlin@dberlin.org>
10834
10835         Fix PR tree-optimization/22404
10836
10837         * tree-ssa-structalias.c (create_variable_info_for): Use
10838         correct offset.
10839
10840 2005-07-11  Bernd Schmidt  <bernd.schmidt@analog.com>
10841
10842         * config/bfin/bfin.md (cmpsi, compare_eq, compare_ne, compare_lt,
10843         compare_le, compare_leu, compare_ltu): Use reg_or_const_int_operand
10844         for second comparison operand.
10845         * config/bfin/predicates.md (reg_or_const_int_operand): New.
10846
10847         * config/bfin/bfin.md (define_attr "type"): Add "sync".
10848         (define_insn_reservation "alu"): Likewise.
10849         (csync, ssync): Now of type sync.
10850         * config/bfin/bfin.h (TARGET_DEFAULT): Defaults to
10851         -mcsync-anomaly -mspecld-anomaly.
10852         * config/bfin/bfin.opt (mcsync): Remove.
10853         (mcsync-anomaly, mspecld-anomaly): Add.
10854         * config/bfin/bfin.c: Include "insn-codes.h".
10855         (bfin_reorg): Extend to handle the CSYNC anomaly as well.
10856         (TARGET_DEFAULT_TARGET_FLAGS): New.
10857         * doc/invoke.texi: Document -mcsync-anomaly, -mspecld-anomaly.
10858
10859 2005-07-11  Steven Bosscher  <stevenb@suse.de>
10860
10861         * basic-block.h: Give the BB flags enum a name, bb_flags.
10862         Add new flags BB_FORWARDER_BLOCK, and BB_NONTHREADABLE_BLOCK.
10863         * cfgcleanup.c (enum bb_flags): Remove here.
10864         (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG): Remove.
10865         (notice_new_block): Set/test bb->flags instead of aux via BB_FLAGS.
10866         (update_forwarder_flag): Likewise.
10867         (thread_jump): Likewise.
10868         (try_forward_edges): Likewise.
10869         (try_optimize_cfg): Likewise.  Clear bb->flags before updating the
10870         forwarder flags.  Don't clear bb->aux for all basic blocks.  Only
10871         reset the BB_FORWARDER_BLOCK and BB_NONTHREADABLE_BLOCK flags.
10872
10873 2005-07-11  Richard Guenther  <rguenther@suse.de>
10874
10875         * config/i386/i386.opt: New target option -msseregparm.
10876         * config/i386/i386.c (override_options): Error out for
10877         -msseregparm but no SSE support.
10878         (ix86_function_sseregparm): Check for global sseregparm.
10879         * doc/invoke.texi: Document -msseregparm.
10880
10881 2005-07-11  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
10882
10883         * config.gcc (m32r-*-linux*): Use the default extra_parts.
10884         (m32rle-*-linux*): Ditto.
10885
10886 2005-07-11  Jakub Jelinek  <jakub@redhat.com>
10887
10888         * cfgexpand.c (stack_protect_classify_type): Use TYPE_SIZE_UNIT (type)
10889         instead of TYPE_MAX_VALUE (TYPE_DOMAIN (type)) to get array size in
10890         bytes.
10891
10892 2005-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10893
10894         PR middle-end/22239
10895         PR target/20126
10896         * loop.c (loop_givs_rescan): Use expand_simple_binop instead of
10897         gen_rtx_MINUS to handle non-replaceable (plus ((x) (const)).
10898
10899 2005-07-07  Daniel Berlin  <dberlin@dberlin.org>
10900
10901         * tree-ssa-structalias.c (struct variable_info): Heapify complex.
10902         (varmap): Heapify varmap.
10903         (constraints): Heapify constraints.
10904         (struct constraint_graph): Heapify succs and preds.
10905         (constraint_vec_find): Update for heapification.
10906         (constraint_set_union): Ditto.
10907         (insert_into_complex): Ditto.
10908         (constraint_edge_vec_find): Ditto.
10909         (erase_graph_self_edge): Ditto.
10910         (add_graph_edge): Ditto.
10911         (get_graph_weights): Ditto.
10912         (merge_graph_nodes): Ditto.
10913         (build_constraint_graph): Ditto.
10914         (topo_visit): Ditto.
10915         (solve_graph): Ditto.
10916         (create_variable_info_for): Ditto.
10917         (init_base_vars): Ditto.
10918         (delete_points_to_sets): Free graph, varmap, and complex constraints.
10919         (condese_varmap_nodes): Free complex vector.
10920         (clear_edges_for_node): Clear succs and preds vector.
10921
10922 2005-07-10  Daniel Berlin  <dberlin@dberlin.org>
10923
10924         * tree-ssa-structalias.c (update_alias_info): Change counting of
10925         references to not include vdefs.
10926
10927 2005-07-10  Daniel Berlin  <dberlin@dberlin.org>
10928
10929         * tree-ssa-alias.c (free_used_part_map): Add missing free.
10930         (up_insert): Ditto.
10931
10932 2005-07-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10933
10934         * pa.c (pa_commutative_p): Make PLUS commutative when
10935         TARGET_NO_SPACE_REGS is true.
10936
10937 2005-07-09  Diego Novillo  <dnovillo@redhat.com>
10938
10939         * Makefile.in (tree-ssa-alias.o): Depend on tree-ssa-structalias.h
10940         * tree-cfg.c (CHECK_OP): Only test for is_gimple_val.
10941         * tree-dfa.c (dump_subvars_for): New.
10942         (debug_subvars_for): New.
10943         (dump_variable): Show subvariables if VAR has them.
10944         * tree-flow-inline.h (get_subvar_at): New.
10945         (overlap_subvar): Change offset and size to unsigned HOST_WIDE_INT.
10946         * tree-flow.h (struct ptr_info_def): Remove field pt_malloc.
10947         Update all users.
10948         (struct subvar): Change fields offset and size to unsigned
10949         HOST_WIDE_INT.
10950         (dump_subvars_for): Declare.
10951         (debug_subvars_for): Declare.
10952         (get_subvar_at): Declare.
10953         (okay_component_ref_for_subvars): Change 2nd and 3rd argument
10954         to unsigned HOST_WIDE_INT *.
10955         (overlap_subvar): Likewise.
10956         * tree-gimple.c (is_gimple_reg): Always return false for
10957         SFTs and memory tags.
10958         * tree-pass.h (pass_build_pta, pass_del_pta): Remove.
10959         Update all callers.
10960         * tree-ssa-alias.c: Include tree-ssa-structalias.h.
10961         (compute_may_aliases): Call compute_points_to_sets.
10962         (collect_points_to_info_for): Remove.
10963         (compute_points_to_and_addr_escape): Remove.
10964         (delete_alias_info): Call delete_points_to_sets.
10965         (compute_flow_sensitive_aliasing): If the call to
10966         find_what_p_points_to returns false, call set_pt_anything.
10967         (add_may_alias): Set TREE_ADDRESSABLE when adding a new alias.
10968         (set_pt_anything): Clear pi->pt_vars.
10969         (set_pt_malloc): Remove.
10970         (merge_pointed_to_info): Remove.
10971         (add_pointed_to_expr): Remove.
10972         (add_pointed_to_var): Remove.
10973         (collect_points_to_info_r): Remove.
10974         (is_escape_site): Make extern.
10975         (create_sft): New.
10976         (create_overlap_variables_for): Call it.
10977         * tree-ssa-copy.c (merge_alias_info): Never merge
10978         flow-sensitive alias information.
10979         * tree-ssa-operands.c (get_expr_operands): Adjust variables
10980         offset and size to be unsigned HOST_WIDE_INT.
10981         (add_to_addressable_set): Rename from note_addressable.
10982         Set TREE_ADDRESSABLE as the variables are added to the set.
10983         Update all users.
10984         (add_stmt_operand): Do not try to micro-optimize unmodifiable
10985         operands into VUSEs when adding V_MAY_DEFs for members in an
10986         alias set.
10987         * tree-ssa-operands.h (add_to_addressable_set): Declare.
10988         * tree-ssa-structalias.c: Include tree-ssa-structalias.h last.
10989         (struct variable_info): Add bitfield is_heap_var.
10990         (var_anyoffset, anyoffset_tree, anyoffset_id): Declare.
10991         (new_var_info): Initialize is_heap_var.
10992         (get_constraint_for): Add HEAP variables to the symbol table.
10993         Mark them with is_heap_var.
10994         (update_alias_info): New.  Taken mostly from the old
10995         compute_points_to_and_addr_escape.
10996         (handle_ptr_arith): New.
10997         (find_func_aliases): Call update_alias_info.
10998         Call handle_ptr_info for tcc_binary expressions.
10999         Call mark_stmt_modified.
11000         (create_variable_info_for): If DECL has subvars, do not create
11001         variables for its subvars.  Always add all the fields.
11002         (set_uids_in_ptset): If the solution includes ANYOFFSET and
11003         SFTs, then add all the SFTs of the structure.
11004         If VI->DECL is an aggregate with subvariables, add the SFT at
11005         VI->OFFSET.
11006         (find_what_p_points_to): If VI is an artificial variable,
11007         translate to bitfields in SSA_NAME_PTR_INFO.
11008         If the solution is empty, set pi->pt_vars to NULL
11009         (init_base_vars): Create ANYOFFSET.
11010         (compute_points_to_sets): Rename from create_alias_vars.
11011         Make extern.
11012         (pass_build_pta): Remove.
11013         (delete_points_to_sets): Rename from delete_alias_vars.
11014         (pass_del_pta): Remove.
11015         * tree-ssa-structalias.h (struct alias_info): Move from
11016         tree-ssa-alias.h.
11017         (NUM_REFERENCES, NUM_REFERENCES_CLEAR, NUM_REFERENCES_INC,
11018         NUM_REFERENCES_SET): Likewise.
11019         (compute_points_to_sets, delete_points_to_sets): Declare.
11020
11021 2005-07-09  Richard Henderson  <rth@redhat.com>
11022
11023         * config/alpha/alpha.c (emit_insxl, alpha_expand_compare_and_swap_12,
11024         alpha_split_compare_and_swap_12, alpha_expand_lock_test_and_set_12,
11025         alpha_split_lock_test_and_set_12): New functions.
11026         * config/alpha/alpha-protos.h: Update.
11027         * config/alpha/alpha.md (UNSPEC_MB, UNSPEC_ATOMIC,
11028         UNSPEC_CMPXCHG, UNSPEC_XCHG): Rename from UNSPECV_FOO.
11029         * config/alpha/sync.md (I12MODE): New.
11030         (memory_barrier, mb_internal): Use unspec instead of unspec_volatile.
11031         (sync_<fetchop_name><I48MODE>): Likewise.
11032         (sync_nand<I48MODE>): Likewise.
11033         (sync_old_<fetchop_name><I48MODE>): Likewise.
11034         (sync_new_<fetchop_name><I48MODE>): Likewise.
11035         (sync_old_nand<I48MODE>, sync_new_nand<I48MODE>): Likewise.
11036         (sync_compare_and_swap<I48MODE>): Likewise.
11037         (sync_lock_test_and_set<I48MODE>): Likewise.
11038         (sync_compare_and_swap<I12MODE>): New.
11039         (sync_compare_and_swap<I12MODE>_1): New.
11040         (sync_lock_test_and_set<I12MODE>): New.
11041         (sync_lock_test_and_set<I12MODE>_1): New.
11042
11043 2005-07-09  Diego Novillo  <dnovillo@redhat.com>
11044
11045         PR 21356
11046         PR 22332
11047         * passes.c (execute_todo): Cleanup the CFG before updating SSA.
11048
11049 2005-07-09  Jakub Jelinek  <jakub@redhat.com>
11050
11051         * config/i386/i386.c (output_set_got): Don't omit OFFSET FLAT:
11052         in Intel syntax add %reg, OFFSET FLAT:_GLOBAL_OFFSET_TABLE_+(.-.Lx).
11053
11054 2005-07-09  Richard SAndiford  <richard@codesourcery.com>
11055
11056         PR target/21656
11057         * config/mips/elf.h (NO_IMPLICIT_EXTERN_C): Define.
11058
11059 2005-07-08  David Edelsohn  <edelsohn@gnu.org>
11060
11061         * config/rs6000/sync.md (load_locked_<mode>): Use Z for
11062         memory_operand constraint.
11063         (store_conditional_<mode>): Same.
11064         (sync_compare_and_swap<mode>): Same.
11065         (sync_lock_test_and_set<mode>): Same.
11066
11067 2005-07-08  Hans-Peter Nilsson  <hp@axis.com>
11068
11069         Rewrite PIC support to more closely model actual instructions.
11070         * config/cris/cris-protos.h (cris_gotless_symbol, cris_got_symbol)
11071         (cris_symbol): Remove prototypes for removed functions.
11072         (cris_pic_symbol_type_of, cris_valid_pic_const)
11073         (cris_expand_pic_call_address): Prototypes for new functions.
11074         * config/cris/cris/cris.c (cris_pic_sympart_only): Remove unused
11075         variable.
11076         (cris_print_operand) <case 'v', 'P'>: Remove cases for unused
11077         modifiers.
11078         <case ':'>: Add case for new punctuation character.
11079         <case 'd'>: Temporarily set flag_pic = 2 instead of incorrectly
11080         emitting (extra) PIC modifier.
11081         <case UNSPEC>: Do not assert for PLT.
11082         (cris_initial_frame_pointer_offset, cris_simple_epilogue)
11083         (cris_expand_prologue, cris_expand_epilogue): Check
11084         for pic_offset_table_rtx usage instead of taking
11085         current_function_uses_pic_offset_table as the final word.
11086         (cris_rtx_costs, cris_address_cost, cris_side_effect_mode_ok):
11087         Remove flag_pic difference.
11088         (cris_valid_pic_const, cris_pic_symbol_type_of): New functions,
11089         the moral equivalents of...
11090         (cris_symbol, cris_gotless_symbol, cris_got_symbol): Remove
11091         functions.
11092         (cris_legitimate_pic_operand): Just call cris_valid_pic_const.
11093         (cris_handle_option): Mark ARG as unused.
11094         (cris_expand_pic_call_address): New worker function for "call",
11095         "call_value".
11096         (cris_asm_output_symbol_ref, cris_asm_output_label_ref): Do not
11097         output PIC constructs here.
11098         (cris_output_addr_const_extra): Changes for emitting PIC modifiers
11099         as symbol-specific modifers, not whole or part of operands.
11100         * config/cris/cris/cris.h (EXTRA_CONSTRAINT): Remove 'U' case.
11101         (EXTRA_CONSTRAINT_S): Changed semantics: allow only CONST-wrapped
11102         constants and flag_pic.
11103         (CONSTANT_INDEX_P): Adjust for new functions.
11104         (enum cris_pic_symbol_type): New helper type.
11105         (PRINT_OPERAND_PUNCT_VALID_P): Add ':'.
11106         * config/cris/cris/cris.md (CRIS_UNSPEC_GOTREL)
11107         (CRIS_UNSPEC_GOTREAD, CRIS_UNSPEC_PLTGOTREAD): New
11108         define_constants.
11109         ("movsi"): Emit actual instructions for GOT and relative access.
11110         ("*movsi_got_load"): New pattern to set up the register holding
11111         the GOT pointer.
11112         ("*movsi_internal"): Operand 1 is not a plain general_operand.
11113         Adjust FIXME for 'S'.
11114         <output for 'S' alternative>: Sanity-check UNSPEC types for PIC.
11115         Use "movs" for -fpic cases.
11116         ("addsi3"): Add alternative for 'S'; use adds.w when possible.
11117         ("uminsi3","*expanded_call_value"): Remove 'S' alternative.
11118         ("call", "call_value"): Just call cris_expand_pic_call_address for
11119         PIC addresses.
11120         ("*expanded_call_no_gotplt", "*expanded_call_value_no_gotplt"):
11121         Remove special pattern.
11122         ("*expanded_call_side", "*expanded_call_value_side"): New
11123         patterns.
11124         (gotplt-to-plt, gotplt-to-plt-side-call)
11125         (gotplt-to-plt-side-call-value, gotplt-to-plt-side): New
11126         peephole2:s.
11127         * config/cris/cris/predicates.md
11128         ("cris_general_operand_or_gotless_symbol"): Remove unused
11129         predicate.
11130         ("cris_general_operand_or_symbol"): Adjust for new functions.
11131
11132 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
11133
11134         * config/darwin.h (TARGET_C99_FUNCTIONS): Define to 1.
11135
11136 2005-07-08  Daniel Berlin  <dberlin@dberlin.org>
11137
11138         * Makefile.in (TREE_H): Add treestruct.def.
11139         (c-decl.o): Add pointer-set.h
11140         * c-decl.c (diagnose_mismatched_decls): Don't attempt to look at
11141         visibility on regular DECL's.
11142         (merge_decls): Fix the copying of decl nodes of various types for
11143         the new structures.  Don't update RTL, section name, weak status,
11144         etc, on DECL's without RTL.
11145         (grokdeclarator): DECL_ARG_TYPE_AS_WRITTEN is gone.
11146         Don't check volatile on non-variable types.
11147         (store_parm_decls_oldstyle): Use pointer_set instead of DECL_WEAK
11148         to check whether we have seen arguments.
11149         * c-objc-common.c (c_tree_printer): Reverse order of tests so that
11150         flag is checked before field (flag is common, field is not).
11151         * dwarf2out.c (decl_ultimate_origin):  Only DECL's with
11152         TS_DECL_COMMON could have an origin.
11153         (add_location_or_const_value_attribute): Don't check section name
11154         on non-var/function decls.
11155         (dwarf2out_var_location): Reverse order of tests.
11156         * emit-rtl.c (set_reg_attrs_for_parm): DECL_CHECK is dead, replace
11157         with DECL_WRTL_CHECK.
11158         * expmed.c (make_tree): rtl is now in decl_with_rtl.
11159         * fold-const.c (fold_binary): Don't check weakness on
11160         non-var/function decls.
11161         (tree_expr_nonzero_p): Ditto.
11162         (fold_checksum_tree): Use tree_decl_extra as sizeof
11163         buffer.
11164         * ggc-page.c (extra_order_size_table): Add sizes for
11165         tree_decl_non_common, tree_parm_decl,  tree_var_decl, and
11166         tree_field_decl.
11167         * gimplify.c (gimplify_bind_expr): Only set
11168         DECL_SEEN_IN_BIND_EXPR_P on VAR_DECL.
11169         * integrate.c (copy_decl_for_inlining): Don't set RTL on decl's
11170         without RTL.
11171         * langhooks-def.h (LANG_HOOK_INIT_TS): New.
11172         * langhooks.h (init_ts). New langhook.
11173         * passes.c (rest_of_decl_compilation): Reverse order of tests.
11174         * print-tree.c (print_node): Update to only print fields that
11175         exist in the structures the passed decl has.
11176         * toplev.c (wrapup_global_declarations): Don't reset
11177         DECL_DEFER_OUTPUT on DECL's that don't contain it.
11178         * tree-browser.c (browse_tree): DECL_ARG_TYPE_AS_WRITTEN removed.
11179         * tree-inline.c (remap_decl): Ditto.
11180         * tree-outof-ssa.c (create_temp): Reverse order of tests.
11181         * tree-pretty-print.c (print_declaration): Don't print
11182         DECL_REGISTER on things that don't contain it.
11183         * tree-vrp.c (expr_computes_nonzero): Don't check weakness on
11184         non-var/function decls.
11185         * tree.c (tree_contains_struct): New structure.
11186         (init_priority_for_decl): New hashtable.
11187         (tree_int_map): New structure.
11188         (tree_int_map_eq): New function.
11189         (tree_int_map_marked_p): Ditto.
11190         (tree_int_map_hash): Ditto.
11191         (tree_map): Move to tree.h.
11192         (tree_map_eq): Externalize.
11193         (tree_map_hash): Ditto.
11194         (tree_map_marked_p): Ditto.
11195         (init_ttree): Set up tree_contains_struct and call langhook.
11196         (decl_assembler_name): Use DECL_NON_COMMON_CHECK..
11197         (tree_code_size): Update for new structures.
11198         (tree_node_structure): Update for new structures.
11199         (make_node_stat): Don't try to set DECL_IN_SYSTEM_HEADER on decls
11200         without the field.
11201         (copy_node_stat):  Copy init priority.
11202         (build_decl_stat): Ditto for visibility.
11203         (ts_enum_names): New.
11204         (tree_contains_struct_check_failed): New function.
11205         (decl_init_priority_lookup): Ditto.
11206         (decl_init_priority_insert): Ditto.
11207         * treestruct.def: New file.
11208         * tree.h (CODE_CONTAINS_STRUCT): New macro.
11209         (CONTAINS_STRUCT_CHECK): Ditto.
11210         (tree_contains_struct_check_failed): New prototype.
11211         (DECL_CHECK): Removed.
11212         (DECL_MINIMAL_CHECK): New.
11213         (DECL_COMMON_CHECK): Ditto.
11214         (DECL_WRTL_CHECK): Ditto.
11215         (DECL_NON_COMMON_CHECK): Ditto.
11216         (DECL_WITH_VIS_CHECK): Ditto.
11217         (VAR_OR_FUNCTION_DECL_P): Ditto
11218         (struct tree_decl_minimal): New structure.
11219         (struct tree_decl_common): Ditto.
11220         (struct tree_decl_with_rtl): Ditto.
11221         (struct tree_decl_with_vis): Ditto.
11222         (struct tree_decl_non_common): Ditto.
11223         (struct tree_field_decl): Ditto.
11224         (struct tree_parm_decl): Ditto.
11225         (struct tree_var_decl): Ditto.
11226         (struct tree_function_decl): Ditto.
11227         (struct tree_const_decl): Ditto.
11228         (struct tree_result_decl): Ditto.
11229         (union tree_node): Add new structures.
11230         * var-tracking.c (track_expr_p): Reverse order of tests.
11231
11232         * doc/c-tree.texi: Add documentation on DECL node internal structure.
11233
11234 2005-07-08  Kazu Hirata  <kazu@codesourcery.com>
11235
11236         * cfgexpand.c (tree_expand_cfg): Don't use FINALIZE_PIC.
11237         * system.h: Poison FINALIZE_PIC.
11238         * doc/tm.texi (FINALIZE_PIC): Remove.
11239
11240 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
11241
11242         PR tree-opt/22329
11243         * tree-ssa-propagate.c (fold_predicate_in): Convert the value
11244         to the correct type if we have a MODIFY_EXPR.
11245
11246 2005-07-08  Kazu Hirata  <kazu@codesourcery.com>
11247
11248         PR tree-optimization/22360
11249         * tree.c (upper_bound_in_type): Fix calculations for casting
11250         to a non-wider signed type and casting a signed value to a
11251         wider unsigned type.
11252         (lower_bound_in_type): Fix calculations for casting to a
11253         non-wider signed type.
11254
11255         PR tree-optimization/20139
11256         * tree-cfg.c (remove_bb): Check in_ssa_p before calling
11257         release_defs.
11258         * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Call
11259         fold_cond_expr_cond.
11260         * tree-ssanames.c (release_defs): Assert in_ssa_p.
11261         * tree.c (upper_bound_in_type, lower_bound_in_type): Rewrite.
11262
11263 2005-07-08  Andrew Pinski  <pinskia@physics.uc.edu>
11264
11265         PR tree-opt/22356
11266         * tree-complex.c (expand_complex_libcall): Produce
11267         REALPART_EXPR/IMAGPART_EXPR with the correct type.
11268
11269 2005-07-08  Kenneth Zadeck <zadeck@naturalbridge.com>
11270
11271         * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
11272         bitmap_and_compl_into, bitmap_xor, bitmap_xor_into): Removed "a !=
11273         b" assert and inserted fastpath code for this case.
11274         (bitmap_ior): Removed "a != b" assert.
11275
11276 2005-07-08  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
11277
11278         * config/m32r/linux.h (STARTFILE_SPEC): Support PIE.
11279         (ENDFILE_SPEC): Likewise.
11280         * config/m32r/m32r.h (ASM_SPEC): Likewise.
11281
11282         * config/m32r/m32r.c (m32r_output_function_epilogue): Care for
11283         a large stack frame at epilogue.
11284
11285 2005-07-08  David Billinghurst  <David.Billinghurst@riotinto.com>
11286
11287         * final.c: Include sdbout.h when required.
11288
11289 2005-07-07  Geoffrey Keating  <geoffk@apple.com>
11290
11291         * config.gcc (*-*-darwin*): Only one target-specific header file
11292         for generic darwin.
11293         (powerpc-*-darwin*): Add version-specific header files.
11294         * configure.in (gcc_AC_CHECK_DECLS): Add strverscmp.
11295         * config.in: Regenerate.
11296         * configure: Regenerate.
11297         * gcc.c: Include xregex.h.
11298         (version_compare_spec_function): New.
11299         (spec_function): Add version-compare.
11300         (replace_outfile_spec_function): Reformat comment.
11301         (compare_version_strings): New.
11302         * config/darwin-c.c (version_as_macro): New.
11303         (builtin_define): New.
11304         (darwin_cpp_builtins): New.
11305         * config/darwin-protos.h (darwin_cpp_builtins): New.
11306         * config/darwin.h (CPP_SPEC): Don't define APPLE_CC here.
11307         (LIB_SPEC): Make unconditional, update comment.
11308         (TARGET_C99_FUNCTIONS): Define.
11309         * config/darwin.opt: Sort.
11310         (mmacosx-version-min=): New.
11311         * config/darwin7.h: Delete.
11312         * config/darwin8.h: Delete.
11313         * config/i386/darwin.h (): Call darwin_cpp_builtins.
11314         * config/rs6000/darwin.h (): Call darwin_cpp_builtins.
11315         (TARGET_C99_FUNCTIONS): Define.
11316         * config/rs6000/darwin7.h: New.
11317         * config/rs6000/darwin8.h: New.
11318         * doc/invoke.texi (Darwin Options): Add -mmacosx-version-min=
11319         (-mmacosx-version-min): Document.
11320
11321 2005-07-07  Ian Lance Taylor  <ian@airs.com>
11322
11323         * config/mips/mips.md (abs<mode>2) [GPR]: Remove.
11324
11325 2005-07-07  John David Anglin  <dave.anglin@nrc-crc.gc.ca>
11326
11327         PR middle-end/22239
11328         * loop.c (loop_givs_rescan): Check that v->new_reg is a REG.
11329
11330 2005-07-07  Khem Raj  <kraj@mvista.com>
11331
11332         * config/arm/arm.c (thumb_output_function_prologue): Calculate offset
11333         in bytes, not words.
11334
11335 2005-07-07  Paul Brook  <paul@codesourcery.com>
11336
11337         * config/arm/arm.c (arm_pad_arg_upward): Compare return value of
11338         DEFAULT_FUNCTION_ARG_PADDING to upward.
11339
11340 2005-07-07  Richard Henderson  <rth@redhat.com>
11341
11342         * function.c (locate_and_pad_parm): Record parameter alignment in
11343         stack_alignment_needed.
11344
11345 2005-07-07  David Edelsohn  <edelsohn@gnu.org>
11346
11347         * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_SYNC_OP,
11348         UNSPEC_SYNC_SWAP, UNSPEC_LWSYNC, UNSPEC_ISYNC): Delete.
11349         (UNSPECV_LL, UNSPECV_SC, UNSPECV_ATOMIC, UNSPECV_SYNC,
11350         UNSPECV_SYNC_OP, UNSPECV_CMPXCHG, UNSPECV_LWSYNC, UNSPECV_ISYNC): New.
11351         (define_attr "type"): Add isync, sync, load_l, store_c.
11352         * config/rs6000/sync.md (memory_barrier): Change to define_expand.
11353         Create scratch volatile MEM.
11354         (sync_internal): New.  POWER mnemonic is dcs, not ics.  Attribute
11355         sync.
11356         (load_locked_<mode>): New.
11357         (store_conditional_<mode>): New.
11358         (sync_compare_and_swap<mode>): Replace with splitter.
11359         (sync_lock_test_and_set<mode>): Replace with splitter.
11360         (sync_<fetchop><mode>): Change to unspec_volatile UNSPECV_SYNC_OP
11361         and UNSPECV_ISYNC.
11362         (isync): Change to unspec_volatile UNSPECV_ISYNC.  POWER mnemonic
11363         is ics.  Attribute isync.
11364         (lwsync): Change to unspec_volatile UNSPECV_LWSYNC.  Attribute
11365         lwsync.
11366         * config/rs6000/rs6000.c (rs6000_emit_sync): Use UNSPEC_VOLATILE
11367         and UNSPECV_SYNC_OP.
11368         (emit_unlikely_jump): New.
11369         (emit_load_locked): New.
11370         (emit_store_conditional): New.
11371         (rs6000_split_compare_and_swap): New.
11372         (rs6000_split_lock_test_and_set): New.
11373         (is_dispatch_slot_restricted): Return 4 for TYPE_LOAD_L,
11374         TYPE_STORE_C, TYPE_ISYNC, TYPE_SYNC.
11375         * config/rs6000/rs6000-protos.h (rs6000_split_compare_and_swap,
11376         rs6000_split_lock_test_and_set): Declare.
11377         * config/rs6000/{40x.md,440.md,603.md,6xx.md,7450.md,7xx.md,8540.md,
11378         mpc.md,power4.md,power5.md,rios1.md,rios2.md,rs64.md): Add load_l,
11379         store_c, isync, sync.
11380
11381 2005-07-07  Kelley Cook  <kcook@gcc.gnu.org>
11382
11383         * Makefile.in (echo_quoted_to_gtyp): New template for outputing
11384         filenames to gtyp-gen.h.
11385         (s-typ-gen): Use it in place of for loops.
11386
11387 2005-07-07  J"orn Rennecke <joern.rennecke@st.com>
11388
11389         * hooks.c (hook_bool_rtx_int_false): New function.
11390         * hooks.h (hook_bool_rtx_int_false): Declare.
11391         * target-def.h (TARGET_COMMUTATIVE_P): Define.
11392         (TARGET_INITIALIZER): Add TARGET_COMMUTATIVE_P.
11393         * target.h (struct gcc_target): Add commutative_p member.
11394         * targhooks.c (hook_bool_rtx_commutative_p): New function.
11395         * targhooks.h (hook_bool_rtx_commutative_p): Declare.
11396         * pa.c (TARGET_COMMUTATIVE_P): Redefine.
11397         (pa_commutative_p): New function.
11398         * jump.c (target.h): Include.
11399         (rtx_renumbered_equal_p): Use targetm.commutative_p.
11400         * doc/tm.texi: Document TARGET_COMMUTATIVE_P.
11401
11402 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
11403
11404         * config/s390/s390-protos.h (s390_expand_clrmem): Delete.
11405         (s390_expand_setmem): New.
11406         * config/s390/s390.c: Likewise.
11407         (print_shift_count_operand): Truncate to 12 bits instead of 6.
11408         Adapt comments.
11409         * config/s390/s390.md: ("setmem<mode>"): Accept character as
11410         general_operand.  Call new function "s390_expand_setmem".
11411         ("clrmem_long", "*clrmem_long"): Rewrite to ...
11412         ("setmem_long", "*setmem_long"): ... this.
11413
11414 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
11415
11416         * config/s390/s390.c: (optimization_options): Enable
11417         TARGET_MVCLE at -Os.
11418         * doc/invoke.texi: Document changes in default behaviour.
11419         * config/s390/s390.opt: ("mvcle"): Fix typo: is "mmvcle".
11420
11421 2005-07-07  Adrian Straetling  <straetling@de.ibm.com>
11422
11423         * expr.c: (set_storage_via_setmem): Convert opchar to mode
11424         defined by back-end.
11425
11426 2005-07-07  Jakub Jelinek  <jakub@redhat.com>
11427
11428         * config/sparc/sparc.md (stack_protect_testsi): Put clobbers after
11429         all sets in the pattern.
11430         * config/rs6000/rs6000.md (stack_protect_testsi,
11431         stack_protect_testdi): Likewise.
11432
11433 2005-07-06  Jeff Law  <law@redhat.com>
11434
11435         * tree-vrp.c (simplify_using_ranges): Kill.
11436         (vrp_finalize): Remove call to simplify_using_ranges.
11437         (simplify_stmt_using_ranges): New function extracted from
11438         simplify_using_ranges.
11439         (simplify_div_or_mod_using_ranges): Likewise.
11440         (simplify_abs_using_ranges): Likewise.
11441         (simplify_cond_using_ranges): New function.
11442         * tree-flow.h (simplify_stmt_using_ranges): Prototype.
11443         * tree-ssa-propagate.c (substitute_and_fold): Call
11444         simplify_stmt_using_ranges if we have range information.
11445
11446 2005-07-06  James E. Wilson  <wilson@specifixinc.com>
11447
11448         * config/ia64/ia64.c (ia64_reorg): Check optimize before
11449         ia64_flag_schedule_isns2.
11450
11451         * config/ia64/ia64.c (ia64_expand_movxf_movrf): Don't word swap when
11452         reading/writing general registers.
11453         (ia64_function_arg): Revert 2005-06-18 change.
11454
11455 2005-07-06  John David Anglin  <dave.anglin@nrc-crnc.gc.ca>
11456
11457         * pa.c (legitimize_pic_address): Use gcc_assert instead of abort.
11458         (legitimize_tls_address): Use gcc_unreachable instead of abort.
11459
11460 2005-07-06  Kaz Kojima  <kkojima@gcc.gnu.org>
11461
11462         * function.c (expand_function_end): Revert part of 2005-06-27
11463         patch.  Do sjlj_emit_function_exit_after after return_label.
11464
11465 2005-07-06  Kazu Hirata  <kazu@codesourcery.com>
11466
11467         * doc/install.texi (--disable-libssp): New.
11468
11469 2005-07-06  Fariborz Jahanian <fjahanian@apple.com>
11470
11471         * doc/invoke.texi: Update -fforce-mem documentation.
11472         * dojump.c (compare_from_rtx,do_compare_rtx_and_jump): Remove
11473         code for -fforce-mem.
11474         * expmed.c: (store_bit_field,store_fixed_bit_field,
11475         extract_bit_field): Ditto.
11476         * expr.c: (convert_move): Ditto.
11477         * optabs.c: (expand_binop,expand_twoval_unop,expand_twoval_binop,
11478         expand_unop,emit_unop_insn,prepare_cmp_insn,emit_conditional_move,
11479         emit_conditional_add,expand_float,expand_fix): Ditto.
11480         * opts.c: (decode_options): Remove setting of flag_force_mem flag.
11481         (common_handle_option): Issue warning when -fforce-mem specified.
11482
11483 2005-07-06  Paul Brook  <paul@codesourcery.com>
11484
11485         * aclocal.m4: Work around a bug in AC_PATH_PROGS when its last
11486         argument is empty.
11487         * configure: Regenerate.
11488
11489 2005-07-06  J"orn Rennecke <joern.rennecke@st.com>
11490
11491         * sh.c (final_prescan_insn): Undo bogus change from 2005-05-09.
11492
11493 2005-07-06  Daniel Berlin  <dberlin@dberlin.org>
11494
11495         Fix PR tree-optimization/22319
11496         Fix PR tree-optimization/22140
11497         Fix PR tree-optimization/22310
11498
11499         * tree-ssa-structalias.c (do_structure_copy): Give up earlier on
11500         variable sized types.
11501         Use correct type for intermediate structure on *a = *b structure
11502         copies.
11503
11504 2005-07-06  Jakub Jelinek  <jakub@redhat.com>
11505
11506         * config/rs6000/rs6000.h (RS6000_VARARGS_AREA, RS6000_VARARGS_SIZE):
11507         Remove.
11508         (STARTING_FRAME_OFFSET): Don't add RS6000_VARARGS_AREA.
11509         (machine_function): Move typedef to...
11510         * config/rs6000/rs6000.c (machine_function): ... here.  Add
11511         varargs_save_offset field.
11512         (rs6000_stack_t): Remove varargs_size field.
11513         (setup_incoming_varargs): Allocate varargs save area using
11514         assign_stack_local, try to make it as small as possible.
11515         Save offset from virtual_stack_vars_rtx to the save area
11516         in cfun->machine->varargs_save_offset.  Use UNITS_PER_FP_WORD
11517         instead of magic 8 when fp word byte size is used.
11518         (rs6000_va_start): Use cfun->machine->varargs_save_offset
11519         instead of -RS6000_VARARGS_SIZE.
11520         (rs6000_stack_info, debug_stack_info,
11521         rs6000_initial_elimination_offset): Remove all traces of
11522         varargs_size.
11523         * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Remove.
11524         * config/rs6000/darwin.h (STARTING_FRAME_OFFSET): Don't add
11525         RS6000_VARARGS_AREA.
11526
11527 2005-07-06  Zdenek Dvorak  <dvorakz@suse.cz>
11528
11529         PR tree-optimization/21963
11530         * tree-ssa-loop-ivopts.c (get_computation_aff): Use
11531         constant_multiple_of in the same way get_computation_cost_at does.
11532
11533 2005-07-06  Jakub Jelinek  <jakub@redhat.com>
11534
11535         * config/sparc/sparc.h (sparc_compare_emitted): New extern.
11536         * config/sparc/sparc.c (sparc_compare_emitted): New variable.
11537         (gen_compare_reg): If sparc_compare_emitted is set, clear it
11538         and return its previous value.
11539         (emit_v9_brxx_insn): Assert sparc_compare_emitted is NULL.
11540         * config/sparc/sparc.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New
11541         constants.
11542         (stack_protect_set, stack_protect_test): New expanders.
11543         (stack_protect_setsi, stack_protect_setdi, stack_protect_testsi,
11544         stack_protect_testdi): New insns.
11545         * config/sparc/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
11546         * config/sparc/linux64.h (TARGET_THREAD_SSP_OFFSET): Define.
11547
11548 2005-07-06  Jeff Law  <law@redhat.com>
11549
11550         * tree-ssa-dce.c (cfg_altered): New global.
11551         (tree_dce_init): Initialize cfg_altered.
11552         (remove_dead_stmt): If we remove an edge in the CFG, then set
11553         CFG_ALTERED.
11554         (perform_tree_ssa_dce): If we altered the CFG, then invalidate
11555         the dominators.
11556
11557 2005-07-06  Kazu Hirata  <kazu@codesourcery.com>
11558
11559         * Makefile.in (stamp-collect-ld): Use
11560         $(ORIGINAL_LD_FOR_TARGET) instead of $<.  Don't remove
11561         ./collect-ld if it already exists.
11562         (stamp-nm): Use $(ORIGINAL_NM_FOR_TARGET) instead of $<.
11563         Don't remove ./nm if it already exists.
11564
11565 2005-07-05  Devang Patel  <dpatel@apple.com>
11566
11567         * tree-vectorizer.h (struct _loop_vec_info): Remove loop_line_number.
11568         (LOOP_VINFO_LOC, LOOP_LOC): Remove.
11569         * tree-vectorizer.c (vect_loop_location): New.
11570         (vect_print_dump_info): Use vect_loop_location.
11571         (new_loop_vec_info): Do not set LOOP_VINFO_LOC.
11572         (vectorize_loops): Set vect_loop_location.
11573         * tree-vect-analyze.c (vect_analyze_offset_expr,
11574         vect_determin_vectorization_factor, vect_analyze_operations,
11575         vect_analyze_scalar_cycles, vect_analyze_data_ref_dependence,
11576         vect_analyze_data_ref_dependences, vect_compute_data_ref_alignment,
11577         vect_analyze_data_refs_alignment, vect_analyze_data_ref_access,
11578         vect_analyze_data_ref_accesses, vect_analyze_pointer_ref_access,
11579         vect_object_analysis, vect_analyze_data_refs, vect_mark_relevant,
11580         vect_stmt_relevant_p, vect_mark_stmts_to_be_vectorized,
11581         vect_can_advance_ivs_p, vect_get_loop_niters, vect_analyze_loop_form,
11582         vect_analyze_loop): Adjust vect_print_dump_info API.
11583         * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
11584         vect_create_data_ref_ptr, vect_init_vector, vect_get_vec_def_for_operand,
11585         vect_finish_stmt_generation, vectorizable_assignment,
11586         vectorizable_operation, vectorizable_store, vectorizable_load,
11587         vectorizable_live_operation, vectorizable_condition, vect_transform_stmt,
11588         vect_update_ivs_after_vectorizer, vect_do_peeling_for_loop_bound,
11589         vect_gen_ninters_for_prolog_loop, vect_do_peeling_for_alignment,
11590         vect_transform_loop): Same.
11591         * tree-vectorizer.c (get_vectype_for_scalar_type, vect_is_simple_use,
11592         vect_is_simple_reduction, vect_is_simple_iv_evolution, vectorize_loops):
11593         Same.
11594
11595 2005-07-05  Randolph Chung  <tausq@debian.org>
11596
11597         * configure.ac (hppa*-*-linux*: Check for a TLS capable gas.
11598         * configure: Regenerate.
11599         * config/pa/pa-protos.h (tls_symbolic_operand): Declare.
11600         (pa_tls_referenced_p): Declare.
11601         * config/pa/pa.c (legitimize_pic_address): Reject TLS operands.
11602         (gen_tls_tga, gen_tls_get_addr, hppa_tls_call): New.
11603         (legitimize_tls_address): New.
11604         (hppa_legitimize_address): Handle TLS addresses.
11605         (pa_tls_symbol_ref_1, pa_tls_referenced_p): New.
11606         (TARGET_CANNOT_FORCE_CONST_MEM): Define.
11607         (emit_move_sequence): Handle TLS addresses.
11608         (pa_encode_section_info): Call default handler to handle common
11609         sections.
11610         * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): New.
11611         (CONSTANT_ADDRESS_P): Reject TLS operands.
11612         (TARGET_HAVE_TLS) [HAVE_AS_TLS]: Define.
11613         * config/pa/pa.md (UNSPEC_TP, UNSPEC_TLSGD, UNSPEC_TLSLDM)
11614         (UNSPEC_TLSLDO, UNSPEC_TLSLDBASE, UNSPEC_TLSIE)
11615         (UNSPEC_TLSLE): Define new constants.
11616         (tgd_load, tld_load, tld_offset_load, tp_load, tie_load, tle_load): New.
11617         * config/pa/predicates.md (symbolic_operand): Reject TLS operands.
11618         (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand)
11619         (tie_symbolic_operand, tle_symbolic_operand): New
11620
11621 2005-07-06  Kelley Cook  <kcook@gcc.gnu.org>
11622
11623         * aclocal.m4: Update macros for autoconf 2.59 style.
11624         * configure.ac: Likewise.
11625
11626 2005-07-05  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11627
11628         * pa.c (function_value): Handle small aggregates on 32-bit targets.
11629         (function_arg): Pass small aggregates in general registers on 32-bit
11630         targets.
11631         * som.h (MEMBER_TYPE_FORCES_BLK): Delete define.
11632
11633 2005-07-05  Andrew Pinski  <pinskia@physics.uc.edu>
11634
11635         * Makefile.in (final.o): Fix dependencies.
11636
11637 2005-07-05  Joseph S. Myers  <joseph@codesourcery.com>
11638
11639         PR c/22013
11640         PR c/22098
11641         * langhooks.h (struct lang_hooks): Add expr_to_decl.
11642         * langhooks.c (lhd_expr_to_decl): New.
11643         * langhooks-def.h (lhd_expr_to_decl, LANG_HOOKS_EXPR_TO_DECL):
11644         New.
11645         (LANG_HOOKS_INITIALIZER): Update.
11646         * tree.c (recompute_tree_invarant_for_addr_expr): Call
11647         expr_to_decl langhook.
11648         * c-tree.h (c_expr_to_decl): Declare.
11649         * c-typeck.c (c_expr_to_decl): New.
11650         (build_unary_op): Do not handle ADDR_EXPR of COMPOUND_LITERAL_EXPR
11651         specially.
11652         * c-objc-common.h (LANG_HOOKS_EXPR_TO_DECL): Define.
11653
11654 2005-07-05  Joseph S. Myers  <joseph@codesourcery.com>
11655
11656         PR c/22308
11657         * c-decl.c (finish_struct): Also copy C_TYPE_FIELDS_READONLY,
11658         C_TYPE_FIELDS_VOLATILE and C_TYPE_VARIABLE_SIZE to type variants.
11659
11660 2005-07-05  Paolo Bonzini  <bonzini@gnu.org>
11661
11662         * Makefile.in: Adjust dependencies.
11663         * tree-pass.h: Add new passes and passes formerly in tree-optimize.c.
11664         * basic-block.h (duplicate_computed_gotos): Remove, it is now static.
11665         * alias.c (rest_of_handle_cfg, pass_cfg): New.
11666         * bb-reorder.c (duplicate_computed_gotos): Make it static.
11667         * cfgexpand.c (tree_expand_cfg): Add code formerly at the beginning of
11668         rest_of_compilation.
11669
11670         * bb-reorder.c (gate_duplicate_computed_gotos,
11671         pass_duplicate_computed_gotos, gate_handle_reorder_blocks,
11672         rest_of_handle_reorder_blocks, pass_reorder_blocks,
11673         gate_handle_partition_blocks, rest_of_handle_partition_blocks,
11674         pass_partition_blocks): New.
11675         * bt-load.c (gate_handle_branch_target_load_optimize,
11676         rest_of_handle_branch_target_load_optimize,
11677         pass_branch_target_load_optimize): New.
11678         * cfgcleanup.c (rest_of_handle_jump, pass_jump, rest_of_handle_jump2,
11679         pass_jump2): New.
11680         * cfglayout.c (pass_insn_locators_initialize): New.
11681         * cfgrtl.c (pass_free_cfg): New.
11682         * combine.c (gate_handle_combine, rest_of_handle_combine,
11683         pass_combine): New.
11684         * cse.c (gate_handle_cse, rest_of_handle_cse, pass_cse,
11685         gate_handle_cse2, rest_of_handle_cse2, pass_cse2): New.
11686         * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes): New.
11687         * except.c (pass_set_nothrow_function_flags,
11688         pass_convert_to_eh_region_ranges, gate_handle_eh, rest_of_handle_eh,
11689         pass_rtl_eh): New.
11690         * final.c (pass_compute_alignments, rest_of_handle_final, pass_final,
11691         rest_of_handle_shorten_branches, pass_shorten_branches,
11692         rest_of_clean_state, pass_clean_state): New.
11693         * flow.c (pass_recompute_reg_usage, gate_remove_death_notes,
11694         rest_of_handle_remove_death_notes, pass_remove_death_notes,
11695         rest_of_handle_life, pass_life, rest_of_handle_flow2,
11696         pass_flow2): New.
11697         * function.c (pass_instantiate_virtual_regs, pass_init_function,
11698         rest_of_handle_check_leaf_regs, pass_leaf_regs): New.
11699         * gcse.c (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
11700         pass_jump_bypass, gate_handle_gcse, rest_of_handle_gcse,
11701         pass_gcse): New.
11702         * global.c (rest_of_handle_global_alloc, pass_global_alloc): New.
11703         * ifcvt.c (gate_handle_if_conversion, rest_of_handle_if_conversion,
11704         pass_rtl_ifcvt, gate_handle_if_after_combine,
11705         rest_of_handle_if_after_combine, pass_if_after_combine,
11706         gate_handle_if_after_reload, rest_of_handle_if_after_reload,
11707         pass_if_after_reload): New.
11708         * integrate.c (pass_initial_value_sets): New.
11709         * jump.c (pass_cleanup_barriers, purge_line_number_notes,
11710         pass_purge_lineno_notes): New.
11711         * mode-switching.c (rest_of_handle_mode_switching,
11712         pass_mode_switching): New.
11713         * local-alloc.c (rest_of_handle_local_alloc, pass_local_alloc): New.
11714         * loop-init.c (gate_handle_loop2, rest_of_handle_loop2,
11715         pass_loop2): New.
11716         * loop.c (gate_handle_loop_optimize, rest_of_handle_loop_optimize,
11717         pass_loop_optimize): New.
11718         * modulo-sched.c (gate_handle_sms, rest_of_handle_sms,
11719         pass_sms): New.
11720         * postreload-gcse.c (gate_handle_gcse2, rest_of_handle_gcse2,
11721         pass_gcse2): New.
11722         * postreload.c (gate_handle_postreload, rest_of_handle_postreload,
11723         pass_postreload_cse): New.
11724         * profile.c (gate_handle_profiling, pass_profiling,
11725         rest_of_handle_branch_prob, pass_branch_prob): New.
11726         * recog.c (pass pass_split_for_shorten_branches, gate_do_final_split,
11727         pass_split_before_regstack, gate_handle_split_before_regstack,
11728         gate_handle_peephole2, rest_of_handle_peephole2, pass_peephole2,
11729         rest_of_handle_split_all_insns, pass_split_all_insns): New.
11730         * reg-stack.c (gate_handle_stack_regs, rest_of_handle_stack_regs,
11731         pass_stack_regs): New.
11732         * regmove.c (gate_handle_regmove, rest_of_handle_regmove, pass_regmove,
11733         gate_handle_stack_adjustments, rest_of_handle_stack_adjustments,
11734         pass_stack_adjustments): New.
11735         * regrename.c (gate_handle_regrename, rest_of_handle_regrename,
11736         pass_regrename): New.
11737         * reorg.c (gate_handle_delay_slots, rest_of_handle_delay_slots,
11738         pass_delay_slots, gate_handle_machine_reorg,
11739         rest_of_handle_machine_reorg, pass_machine_reorg): New.
11740         * rtl.h (extern void purge_line_number_notes): New.
11741         * sched-rgn.c (gate_handle_sched, rest_of_handle_sched,
11742         gate_handle_sched2, rest_of_handle_sched2, pass_sched,
11743         pass_sched2): New.
11744         * tracer.c (gate_handle_tracer, rest_of_handle_tracer,
11745         pass_tracer): New.
11746         * value-prof.c (gate_handle_value_profile_transformations,
11747         rest_of_handle_value_profile_transformations,
11748         pass_value_profile_transformations): New.
11749         * var-tracking.c (gate_handle_var_tracking,
11750         pass_variable_tracking): New.
11751         * web.c (gate_handle_web, rest_of_handle_web, pass_web): New.
11752
11753         * passes.c (open_dump_file, close_dump_file, rest_of_handle_final,
11754         rest_of_handle_delay_slots, rest_of_handle_stack_regs,
11755         rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
11756         rest_of_handle_old_regalloc, rest_of_handle_regrename,
11757         rest_of_handle_reorder_blocks, rest_of_handle_partition_blocks,
11758         rest_of_handle_sms, rest_of_handle_sched, rest_of_handle_sched2,
11759         rest_of_handle_gcse2, rest_of_handle_regmove,
11760         rest_of_handle_tracer, rest_of_handle_if_conversion,
11761         rest_of_handle_if_after_combine, rest_of_handle_if_after_reload,
11762         rest_of_handle_web, rest_of_handle_branch_prob,
11763         rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
11764         rest_of_handle_jump_bypass, rest_of_handle_combine,
11765         rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
11766         rest_of_handle_gcse, rest_of_handle_loop_optimize,
11767         rest_of_handle_loop2, rest_of_handle_branch_target_load_optimize,
11768         rest_of_handle_mode_switching, rest_of_handle_jump,
11769         rest_of_handle_eh, rest_of_handle_stack_adjustments,
11770         rest_of_handle_flow2, rest_of_handle_jump2,
11771         rest_of_handle_peephole2, rest_of_handle_postreload,
11772         rest_of_handle_shorten_branches, rest_of_clean_state,
11773         rest_of_compilation): Remove.
11774
11775         * cgraphunit.c (ipa_passes): Moved from tree-optimize.c.
11776         * passes.c (dump_flags, in_gimple_form, all_passes,
11777         all_ipa_passes, all_lowering_passes, register_one_dump_file,
11778         register_dump_files, next_pass_1, last_verified, execute_todo,
11779         execute_one_pass, execute_pass_list, execute_ipa_pass_list): Moved
11780         from tree-optimize.c.
11781         (init_optimization_passes): Moved from tree-optimize.c,
11782         adding the RTL optimizations.
11783         * tree-dump.h (dump_info_p, dump_flag): Moved from tree.h.
11784         * tree-optimize.c (dump_flags, in_gimple_form, all_passes,
11785         all_ipa_passes, all_lowering_passes, register_one_dump_file,
11786         register_dump_files, next_pass_1, last_verified, execute_todo,
11787         execute_one_pass, execute_pass_list, execute_ipa_pass_list,
11788         init_tree_optimization_passes, ipa_passes): Delete.
11789         * tree-pass.h (enum tree_dump_index): Moved from tree.h, removing
11790         the RTL dumps.
11791         (TDF_*, get_dump_file_name, dump_enabled_p, dump_initialized_p,
11792         dump_begin, dump_end, dump_node, dump_switch_p, dump_flag_name): Moved
11793         from tree.h.
11794         (ipa_passes): Remove.
11795         (all_passes, all_ipa_passes, all_lowering_passes): Now extern.
11796         * tree.h (enum tree_dump_index, TDF_*, get_dump_file_name,
11797         dump_enabled_p, dump_initialized_p, dump_begin, dump_end, dump_node,
11798         dump_switch_p, dump_flag_name): Moved to tree-pass.h.
11799         (dump_info_p, dump_flag): Moved to tree-dump.h.
11800
11801         * Makefile.in: Adjust dependencies for tree-pretty-print.c,
11802         cgraph.c, opts.c.
11803         * passes.c (finish_optimization_passes): Use dump_begin
11804         and dump_end, TDI_end.
11805         (gate_rest_of_compilation): New.
11806         (pass_rest_of_compilation): Use it.
11807         (gate_postreload, pass_postreload): New.
11808         * toplev.c (general_init): Rename init_tree_optimization_passes.
11809         * toplev.h (init_tree_optimization_passes): Rename to
11810         init_optimizations_passes.
11811         * tree-dump.c (dump_flag): Make static.
11812         (dump_files): Remove RTL dumps.
11813         * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
11814         pass_cleanup_cfg, pass_free_cfg_annotations,
11815         pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
11816         pass_init_datastructures, pass_fixup_cfg): Make non-static.
11817         * tree-pretty-print.c: Include tree-pass.h.
11818         * cgraph.c: Include tree-dump.h.
11819
11820 2005-07-04  Daniel Berlin  <dberlin@dberlin.org>
11821
11822         * tree-ssa-structalias.c (get_constraint_exp_from_ssa_var):
11823         Only fall back to saying it points to readonly memory if
11824         we can't do better.
11825
11826 2005-07-05  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
11827
11828         * config/m32r/m32r-protos.h: Remove m32r_finalize_pic.
11829         * config/m32r/m32r.c (m32r_compute_frame_size,
11830         m32r_expand_prologue): Take current_function_profile into
11831         account whenever we reference
11832         current_function_uses_pic_offset_table.
11833         (m32r_finalize_pic): Remove.
11834         * config/m32r/m32r.h (FINALIZE_PIC): Likewise.
11835
11836 2005-07-05  Kazu Hirata  <kazu@codesourcery.com>
11837
11838         * Makefile.in (stamp-as): Use $(ORIGINAL_AS_FOR_TARGET)
11839         instead of $<.  Don't remove ./as if it already exists.
11840
11841 2005-07-04  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11842
11843         PR target/21723
11844         * pa.md: Remove fcpy alternative from movhi and movqi patterns.
11845         * pa32-regs.h (HARD_REGNO_NREGS): Return two floating point registers
11846         for complex modes when generating code for PA 1.0.
11847         (VALID_FP_MODE_P): New macro.
11848         (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P.  Use non-overlapping register
11849         sets for all general and floating point modes.  Align wide floating
11850         point modes to even register boundaries to comply with architectural
11851         requirements.
11852         (CLASS_MAX_NREGS): Update to align with change to HARD_REGNO_NREGS.
11853         * pa64-regs.h (HARD_REGNO_NREGS): Update comment and formatting.
11854         (VALID_FP_MODE_P): New macro.
11855         (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P.  Use non-overlapping register
11856         sets for all general and floating point modes.  Align wide floating
11857         point modes to even register boundaries to comply with architectural
11858         requirements.
11859
11860 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
11861
11862         * tree-dump.c (dump_files): Initialize dump number for .cgraph
11863         to 0.
11864
11865 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
11866
11867         * tree-ssa-structalias.c: Don't include expr.h.
11868
11869 2005-07-04  Diego Novillo  <dnovillo@redhat.com>
11870
11871         * tree-iterator.h (TSI_NEW_STMT, TSI_SAME_STMT): Fix
11872         comments.
11873
11874 2005-07-04  Daniel Berlin  <dberlin@dberlin.org>
11875
11876         Fix PR tree-optimization/22279
11877
11878         * tree-ssa-structalias.c (offset_overlaps_with_access): Use
11879         correct operator.
11880
11881 2005-07-04  J"orn Rennecke <joern.rennecke@st.com>
11882
11883         * sh.c (output_ieee_ccmpeq): Replace "\\;" with "\n\t".
11884
11885 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
11886
11887         * bb-reorder.c, c-pch.c, c-pragma.c, c.opt, cfghooks.c, cfgloop.c,
11888         cfgrtl.c, cgraphunit.c, config/c4x/c4x.c, config/cris/cris.c,
11889         config/frv/frv.c, config/host-darwin.c, config/iq2000/iq2000.c,
11890         config/lynx.h, config/m68k/m68k.c, config/pa/pa.c, config/sh/sh.h,
11891         config/stormy16/stormy16.c, config/v850/v850.c,
11892         config/vax/netbsd-elf.h, coverage.c, dwarf2out.c, emit-rtl.c,
11893         except.c, gcc.c, tree-cfg.c, tree-eh.c, tree-ssa.c, xcoffout.c:
11894         Avoid "." or "\n" at end of diagnostics and capital letters at
11895         start of diagnostics.
11896         * combine.c, cse.c: Don't translate dump file output.
11897         * toplev.c (print_version): Only translate output if going to
11898         stderr.
11899
11900 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
11901
11902         * c-decl.c, tree-object-size.c, tree-vectorizer.c,
11903         config/arm/unwind-arm.c, config/arm/unwind-arm.h: Fix comment
11904         typos.
11905
11906 2005-07-03  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11907
11908         * pa.c (fix_range): Fix typo in comment.
11909
11910 2005-07-03  Kazu Hirata  <kazu@codesourcery.com>
11911
11912         * tree-vrp.c (extract_range_from_assert): Replace
11913         fold (build (...)) with fold_build2.
11914
11915 2005-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11916
11917         * c-format.c (gcc_gfc_format_type, gcc_gfc_flag_pairs,
11918         gcc_gfc_char_table, init_dynamic_gfc_info): New.
11919         (format_types_orig, handle_format_attribute): Add support for
11920         format "gcc_gfc".
11921
11922 2005-07-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11923
11924         * varasm.c (assemble_variable): Fix format specifier thinko.
11925
11926 2005-07-03  Ira Rosen  <irar@il.ibm.com>
11927
11928         PR tree-optimization/22029 (and 22135)
11929         * tree-pretty-print.c (dump_generic_node): Check that the node is not
11930         a phi node before calling dump_vops.
11931
11932 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11933
11934         * tree-dump.h (dump_string_field): Declare.
11935         * tree-dump.c: Use it instead of dump_string.
11936         (dump_string_field): Make non-static.
11937
11938 2005-07-03  Kaz Kojima  <kkojima@gcc.gnu.org>
11939
11940         * config/sh/sh.c (sh_output_mi_thunk): Initialize and clean
11941         up the minimal CFG stuff always when optimize > 0.  Call
11942         split_all_insns_noflow in PIC case if needed.
11943
11944 2005-07-02  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11945             Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
11946
11947         PR c++/18279
11948         * c-decl.c (c_write_global_declarations): Dump contents of
11949         external scope to.
11950         * tree-dump.c (dequeue_and_dump): Dump abstract origin of a decl.
11951         <TRY_FINALLY_EXPR>, <RETURN_EXPR>, <CASE_LABEL_EXPR>, <LABEL_EXPR>,
11952         <GOTO_EXPR>, <SWITCH_EXPR>: Add.
11953         (dump_enabled_p): Return TRUE if PHASE is TDI_all and any dump
11954         is enabled.
11955
11956 2005-07-03  Joseph S. Myers  <joseph@codesourcery.com>
11957
11958         * c-common.h (GCC_DIAG_STYLE): Define.
11959         * c-tree.h (GCC_DIAG_STYLE): Do not define.  Change minimum GCC
11960         version for format checking to 4.1.
11961         * c-format.c: Include toplev.h after c-common.h.
11962         (enum format_type): Add gcc_tdiag_format_type.
11963         (gcc_tdiag_length_specs, gcc_tdiag_flag_pairs,
11964         gcc_tdiag_flag_specs, gcc_tdiag_char_table): New.
11965         (format_types_orig): Add gcc_tdiag.
11966         (init_dynamic_diag_info): Support gcc_tdiag formats.
11967         (handle_format_attribute): Likewise.
11968         * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Remove.
11969         (GCC_DIAG_STYLE): Default to __gcc_tdiag__.  Change minimum GCC
11970         version for format checking to 4.1.
11971         (warning0, warning, error, pedwarn, sorry): Use
11972         ATTRIBUTE_GCC_DIAG.
11973         * config/rs6000/rs6000.c (altivec_expand_builtin), varasm.c
11974         (finish_aliases_1): Do not use %qE.
11975         * config/arm/arm.c, config/i386/i386.c, config/mmix/mmix.c,
11976         config/pdp11/pdp11.c, stor-layout.c, tree-eh.c, tree-ssa.c:
11977         Correct format bugs.
11978         * config/v850/v850-protos.h (v850_output_aligned_bss): Change size
11979         parameter to unsigned HOST_WIDE_INT.
11980         * config/v850/v850.c (v850_output_aligned_bss): Likewise.
11981
11982 2005-07-02  David Edelsohn  <edelsohn@gnu.org>
11983
11984         PR middle-end/21742
11985         * expr.c (write_complex_part): Use adjust_address for MEM.
11986         (read_complex_part): Same.
11987
11988 2005-07-02  Daniel Berlin  <dberlin@dberlin.org>
11989
11990         Fix PR tree-optimization/22280
11991
11992         * tree-sra.c (generate_element_init): Remove useless loop.
11993
11994 2005-07-02  Richard Henderson  <rth@redhat.com>
11995
11996         * config/alpha/alpha.c (alpha_legitimize_address): Check for
11997         TLS_MODEL_NONE.
11998         (alpha_stdarg_optimize_hook): Use DECL_UID with va_list_vars.
11999
12000 2005-07-02  Andrew Pinski  <pinskia@physics.uc.edu>
12001
12002         PR middle-end/14490
12003         * fold-const.c (fold_binary): Handle the return value of
12004         fold_to_nonsharp_ineq_using_bound if we get back the same operand back.
12005         Implement "X +- C1 CMP C2" folding to "X CMP C2 -+ C1".
12006
12007 2005-07-02  Jeff Law  <law@redhat.com>
12008
12009         * tree-ssa-dom.c (find_equivalent_equality_comparison): Do not
12010         a eliminate type conversion which feeds an equality comparison
12011         if the original type or either operand in the comparison is a
12012         function pointer.
12013
12014 2005-07-02  Joseph S. Myers  <joseph@codesourcery.com>
12015
12016         * c.opt, common.opt, config/bfin/bfin.opt, config/pa/pa.opt,
12017         config/rs6000/rs6000.opt, params.def: Remove "." from end of help
12018         texts.
12019         * config/avr/avr.c: Do not use '`' as left quote.
12020         * config/rs6000/rs6000.c, config/s390/s390.c, opts.c, tree.c:
12021         Remove "." from end of diagnostics.  Make diagnostics start with
12022         lowercase letter.
12023
12024 2005-07-02  Zack Weinberg  <zack@codesourcery.com>
12025             Joseph S. Myers  <joseph@codesourcery.com>
12026
12027         * toplev.c (default_tree_printer): Handle setting location with
12028         '+' flag.
12029         * c-objc.common.c (c_tree_printer): Likewise.
12030         * c-format.c (gcc_diag_flag_specs): Add '+'.
12031         (gcc_cdiag_char_table): Allow '+' flag for tree formats.
12032         (format_types_orig): Allow '+' flag for gcc_diag and gcc_cdiag
12033         formats.
12034         * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c,
12035         config/arm/pe.c, config/i386/winnt.c, config/ia64/ia64.c,
12036         config/mcore/mcore.c, config/sh/symbian.c, config/sol2.c,
12037         config/v850/v850.c, function.c, stor-layout.c, toplev.c,
12038         tree-inline.c, tree-optimize.c, tree.c, varasm.c: Use '+' flag
12039         instead of %J or %H.  Use 'q' flag for quoting.  Avoid '.' at end
12040         of diagnostics.  Use %q+D not %s for a decl.  Do not pass excess
12041         format arguments where %J is used without %D.
12042
12043 2005-07-02  Jakub Jelinek  <jakub@redhat.com>
12044
12045         * gcc.c (LINK_SSP_SPEC): Define.
12046         (link_ssp_spec): New variable.
12047         (LINK_COMMAND_SPEC): Add %(link_ssp).
12048         (static_specs): Add link_ssp_spec.
12049         * configure.ac (TARGET_LIBC_PROVIDES_SSP): New test.
12050         * configure: Rebuilt.
12051         * config.in: Rebuilt.
12052
12053         * config/rs6000/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
12054         * config/rs6000/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
12055         * config/i386/linux.h (TARGET_THREAD_SSP_OFFSET): Likewise.
12056         * config/i386/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
12057         * config/rs6000/rs6000.md (stack_protect_set, stack_protect_test):
12058         If TARGET_THREAD_SSP_OFFSET is defined, use -0x7010(13) resp.
12059         -0x7008(2) instead of reading __stack_chk_guard variable.
12060         * config/i386/i386.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): Change
12061         number.
12062         (UNSPEC_SP_TLS_SET, UNSPEC_SP_TLS_TEST): New constants.
12063         (stack_protect_set, stack_protect_test): Use *_tls* patterns
12064         if TARGET_THREAD_SSP_OFFSET is defined.
12065         (stack_tls_protect_set_si, stack_tls_protect_set_di,
12066         stack_tls_protect_test_si, stack_tls_protect_test_di): New insns.
12067
12068         Revert:
12069         2005-06-27  Richard Henderson  <rth@redhat.com>
12070         * libgcc-std.ver (GCC_4.1.0): New.
12071         * libgcc.h (__stack_chk_guard): Declare.
12072         (__stack_chk_fail, __stack_chk_fail_local): Declare.
12073         * libgcc2.c (L_stack_chk, L_stack_chk_local): New.
12074         * mklibgcc.in (lib2funcs): Add them.
12075
12076 2005-07-01  Richard Henderson  <rth@redhat.com>
12077
12078         * config/i386/linux-unwind.h (x86_64_fallback_frame_state): Cast to
12079         void * before struct sigcontext *.
12080         (x86_fallback_frame_state): Likewise.
12081
12082 2005-07-01  James E. Wilson  <wilson@specifixinc.com>
12083
12084         * doc/invoke.texi (-funit-at-a-time): Correct grammar in second bullet.
12085
12086 2005-07-01  Andrew Pinski  <pinskia@physics.uc.edu>
12087
12088         PR tree-opt/22269
12089         * tree-ssa-reassoc.c (should_transpose): Fix which operand
12090         we check for SSA_NAME for.
12091
12092 2005-07-01  Daniel Berlin  <dberlin@dberlin.org>
12093
12094         Fix PR tree-optimization/22071
12095
12096         * tree-ssa-structalias.c (offset_overlaps_with_access): New
12097         function.
12098         (get_constraint_for_component_ref): Use it.
12099
12100 2005-07-01  Andrew Pinski  <pinskia@physics.uc.edu>
12101
12102         PR other/22264
12103         * diagnostic.c (diagnostic_report_current_module): Use pp_newline to
12104         print out the last new line.
12105
12106 2005-07-01  Hans-Peter Nilsson  <hp@axis.se>
12107
12108         * config/cris/cris.md (CRIS_CC0_REGNUM): New constant.
12109         Swap numbers for CRIS_AP_REGNUM and CRIS_MOF_REGNUM.
12110         * config/cris/cris.c (cris_conditional_register_usage): Adjust
12111         reg_names[CRIS_CC0_REGNUM] for early CRIS versions.
12112         (cris_print_operand) <case REG>: Handle CRIS_CC0_REGNUM.
12113         (cris_md_asm_clobbers): Clobber CRIS_CC0_REGNUM for all asms.
12114         * config/cris/cris.h (CRIS_CANONICAL_CC0_REGNUM): New macro.
12115         (enum reg_class): New member CC0_REGS.
12116         (REG_CLASS_FROM_LETTER): Add 'c' for CC0_REGS.
12117         (FIRST_PSEUDO_REGISTER, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
12118         (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, REG_CLASS_NAMES)
12119         (CRIS_SPECIAL_REGS_CONTENTS, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
12120         (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
12121         Adjust for register now described.
12122
12123 2005-07-01  Jakub Jelinek  <jakub@redhat.com>
12124
12125         PR target/22262
12126         * config/i386/i386.md (stack_protect_test_si,
12127         stack_protect_test_di): Add earlyclobber for scratch 3.
12128         * config/rs6000/rs6000.md (stack_protect_testsi,
12129         stack_protect_testdi): Add earlyclobber for scratch 3,
12130         remove earlyclobber from scratch 4.
12131
12132 Older entries for 2005 can be found in ChangeLog-2005.