1 2005-07-26 Mark Mitchell <mark@codesourcery.com>
3 * doc/install.texi (--with-build-sysroot): Fix grammatical error.
4 Clarify use of "build" in name.
6 2005-07-26 Aldy Hernandez <aldyh@redhat.com>
8 * doc/extend.texi (Raw read/write Functions): New section.
9 * testsuite/gcc.target/frv/all-builtin-read8.c: New.
10 * testsuite/gcc.target/frv/all-builtin-read16.c: New.
11 * testsuite/gcc.target/frv/all-builtin-read32.c: New.
12 * testsuite/gcc.target/frv/all-builtin-read64.c: New.
13 * testsuite/gcc.target/frv/all-builtin-write8.c: New.
14 * testsuite/gcc.target/frv/all-builtin-write16.c: New.
15 * testsuite/gcc.target/frv/all-builtin-write32.c: New.
16 * testsuite/gcc.target/frv/all-builtin-write64.c: New.
17 * config/frv/frv.c: Add bdesc_loads global.
18 Add bdesc_stores global.
19 (frv_init_builtins): Add support for __builtin_{read/write}*.
20 (frv_volatile_memref): New.
21 (frv_expand_load_builtin): New.
22 (frv_expand_store_builtin): New.
23 * config/frv/frv.h (frv_builtins): Add FRV_BUILTIN_SCAN,
24 FRV_BUILTIN_READ8, FRV_BUILTIN_READ16, FRV_BUILTIN_READ32,
25 FRV_BUILTIN_READ64, FRV_BUILTIN_WRITE8, FRV_BUILTIN_WRITE16,
26 FRV_BUILTIN_WRITE32, FRV_BUILTIN_WRITE64.
27 * config/frv/frv.md (unspecs): Add UNSPEC_BUILTIN_LOAD,
28 UNSPEC_BUILTIN_STORE, UNSPEC_OPTIONAL_MEMBAR.
29 (builtin_read_<mode>): New.
30 (builtin_write_<mode>): New.
31 (builtin_write64): New.
32 (optional_membar_<mode>): New.
34 2005-07-26 J"orn Rennecke <joern.rennecke@st.com>
36 * emit-rtl.c (gen_lowpart_common): Compare size of MODE in bits
37 (rather than units) against HOST_BITS_PER_WIDE_INT.
39 2005-07-26 Kazu Hirata <kazu@codesourcery.com>
41 * ipa-pure-const.c, ipa-reference.c, ipa-reference.h,
42 ipa-type-escape.c, ipa-type-escape.h, ipa-utils.c,
43 ipa-utils.h, treestruct.def, config/crx/crx-protos.h,
44 config/crx/crx.c, config/crx/crx.h, config/crx/crx.md: Update
47 * calls.c, fold-const.c, ipa-reference.c, ipa-type-escape.c,
48 tree-ssa-reassoc.c, tree-ssa-structalias.c, vec.h,
49 config/crx/crx.c, config/m32c/m32c.c, config/m32c/m32c.h: Fix
51 * doc/c-tree.texi, doc/tree-ssa.texi: Fix typos.
53 2005-07-26 Richard Guenther <rguenther@suse.de>
55 PR tree-optimization/22486
56 * fold-const.c (fold_unary): Fold away useless component
57 references of the form (T *)&T.x, if the address
60 2005-07-25 James E Wilson <wilson@specifixinc.com>
62 * dwarf2out.c (add_call_src_coords_attributes): New.
63 (gen_inlined_subroutine_die): Call it.
64 (maybe_emit_file, init_file_table): Add comments.
65 (prune_unused_types_walk_attribs): Pass DW_AT_call_file through
67 * tree-inline.c (remap_block): Copy BLOCK_SOURCE_LOCATION.
68 (expand_call_inline): Set BLOCK_SOURCE_LOCATION.
69 * tree.h (BLOCK_SOURCE_LOCATION): New.
70 (struct tree_block): New field locus.
72 2005-07-26 Andreas Schwab <schwab@suse.de>
74 PR rtl-optimization/23043
75 * postreload-gcse.c (eliminate_partially_redundant_load): Fix typo
76 when allocating a struct unoccr.
78 2005-07-25 Richard Henderson <rth@redhat.com>
81 * tree-complex.c (gate_no_optimization): True if errors.
82 * Makefile.in (tree-complex.o): Update dependencies.
84 2005-07-25 Aldy Hernandez <aldyh@redhat.com>
86 * config/frv/predicates.md (integer_register_operand): Use
89 2005-07-25 Andrew Pinski <pinskia@physics.uc.edu>
92 * tree-ssa-ccp.c (fold_stmt_inplace): Strip useless type conversions
94 * tree-ssa-propagate.c (set_rhs): Reject invalid conditional operands.
96 2005-07-25 Andrew Pinski <pinskia@physics.uc.edu>
98 * tree-ssa-reassoc.c (reassociate_expr): Allow scaler floating point
99 types when flag_unsafe_math_optimizations is true.
101 2005-07-25 Mark Mitchell <mark@codesourcery.com>
103 * gcc.c (option_map): Add --sysroot.
104 (process_command): Handle --sysroot.
105 (display_help): Document it.
106 * doc/cppopts.tex (-isysroot): Document.
107 * doc/invoke.texi (--sysroot): Document.
108 * doc/install.texi (--with-build-sysroot): Document.
110 * Makefile.in (inhibit_libc): New variable.
111 (INHIBIT_LIBC_CFLAGS): Likewise.
112 (LIBGCC2_CFLAGS): Include
113 $(INHIBIT_LIBC_CFLAGS).
114 (CRTSTUFF_CFLAGS): Include $(INHIBIT_LIBC_CFLAGS).
115 ($(T)crtbegin.o): Do not use @inhibit_libc@.
116 ($(T)crtend.o): Likewise.
117 ($(T)crtbeginS.o): Do not use @inhibit_libc@.
118 ($(T)crtendS.o): Likewise.
119 ($(T)crtbeginT.o): Do not use @inhibit_libc@.
120 ($(T)crtendT.o): Likewise.
121 (stmp-fixinc): Do not complain about missing headers if
123 * configure.ac (inhibit_libc): Set it to true/false.
124 (--with-build-sysroot): New option. Use it to set
126 * configure: Regenerated.
128 2005-07-25 Manfred Hollstein <mh@suse.com>
130 * calls.c (store_one_arg): Fix unsigned comparison warning.
132 2005-07-25 Serge Belyshev <belyshev@depni.sinp.msu.ru>
135 * ggc-zone.c (ggc_alloc_zone_stat): Do not use CHUNK_OVERHEAD.
136 (ggc_print_statistics): Initialize variable before use.
138 2005-07-25 Richard Guenther <rguenther@suse.de>
140 * tree-dfa.c (mark_new_vars_to_rename): Protect against
141 calling with a PHI_NODE argument.
143 * tree-flow-inline.h (overlap_subvar): Protect against
146 2005-07-25 Paolo Bonzini <bonzini@gnu.org>
148 * aclocal.m4 (gcc_AC_CHECK_TOOL): Add /bin to default directory.
149 * configure: Regenerate.
151 2005-07-25 Ira Rosen <irar@il.ibm.com>
153 * expr.c (highest_pow2_factor): Make extern.
154 * tree-data-ref.c (ptr_decl_may_alias_p): New function.
155 (ptr_ptr_may_alias_p, may_alias_p, record_ptr_differ_p,
156 record_array_differ_p, array_ptr_differ_p): Likewise.
157 (base_object_differ_p): Rename (from array_base_name_differ_p). Support
158 additional cases. Call the above functions.
159 (base_addr_differ_p): Moved from tree-vect-analyze.c. Call
160 base_object_differ_p when there are two base objects. Otherwise, compare
161 base address and offset. Call may_alias_p.
162 (dump_data_reference): Use a correct field name.
163 (analyze_array): Make static. Initialize new data-ref fields.
164 (analyze_indirect_ref): New function.
165 (init_data_ref): Initialize new data-ref fields.
166 (strip_conversion): Moved from tree-vect-analyze.c.
167 (analyze_offset_expr, get_ptr_offset, address_analysis,
168 object_analysis): Likewise.
169 (analyze_offset): New function.
170 (create_data_ref): Likewise.
171 (initialize_data_dependence_relation): Call base_addr_differ_p. Compare
172 dimensions for ARRAY_REFs only.
173 (build_classic_dist_vector): Make static.
174 (access_functions_are_affine_or_constant_p): Call macro to get the
175 address of access functions.
176 (compute_all_dependences): Add new parameter
177 compute_self_and_read_read_dependences. Compute self and read-read
178 dependences if it is true.
179 (find_data_references_in_loop): Call create_data_ref. Initialize new
181 (compute_data_dependences_for_loop): Add new parameter
182 compute_self_and_read_read_dependences. Remove parameter nb_loops,
183 compute nb_loops. Call compute_all_dependences,
184 build_classic_dist_vector and build_classic_dir_vector with correct
186 (analyze_all_data_dependences): Call compute_data_dependences_for_loop
187 with correct parameters. Compare dimensions for ARRAY_REFs only.
188 (free_data_refs): Call macro to free access functions.
189 * tree-data-ref.h (struct first_location_in_loop): New structure. Move
190 fields from stmt_vinfo.
191 (struct base_object_info): New structure.
192 (struct data_reference): Move fields to base_object_info. Add fields
193 first_location and object_info for above structures. Move fields from
194 stmt_info: memtag, ptr_info, subvars, misalignment. Add new field
195 aligned_to. Add macros to access the new fields.
196 Update functions declarations.
197 * tree-flow.h (is_aliased_with): Declare.
198 * tree-loop-linear.c (linear_transform_loops): Call
199 compute_data_dependences_for_loop with correct parameters.
200 * tree-ssa-alias.c (is_aliased_with): New function.
201 * tree-vect-analyze.c (vect_get_ptr_offset): Remove.
202 (vect_analyze_offset_expr, vect_base_addr_differ_p): Likewise.
203 (vect_analyze_data_ref_dependence): Get ddr. Remove call to
204 vect_base_addr_differ_p, compute_subscript_distance and
205 build_classic_dist_vector. Add printings. Check absolute value of
207 (vect_analyze_data_ref_dependences): Go through ddrs instead of
209 (vect_compute_data_ref_alignment): Get the fields of data-ref instead of
210 stmt. Check aligned_to. Check if the base is aligned. Remove conversion
211 to bytes. Add printing.
212 (vect_compute_data_refs_alignment): Go through loads and stores in one
214 (vect_enhance_data_refs_alignment, vect_analyze_data_refs_alignment,
215 vect_analyze_data_ref_access): Likewise.
216 (vect_analyze_pointer_ref_access): Remove.
217 (vect_address_analysis, vect_object_analysis): Likewise.
218 (vect_analyze_data_refs): Call compute_data_dependences_for_loop to find
219 and analyze data-refs in the loop.
220 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref): Get the
221 fields of data-ref instead of stmt. Add init to the offset from the
223 (vect_create_data_ref_ptr): Get the fields of data-ref instead of stmt.
224 (vect_update_init_of_dr): Likewise.
225 (vect_update_inits_of_drs): Go through loads and stores in one loop.
226 * tree-vectorizer.c (new_stmt_vec_info): Remove initialization of
228 (new_loop_vec_info): Initialize new fields.
229 (destroy_loop_vec_info): Free new fields.
230 (vect_strip_conversion): Remove.
231 * tree-vectorizer.h (enum verbosity_levels): Add new verbosity level.
232 (struct _loop_vec_info): Unify data_ref_writes and data_ref_reads into
233 datarefs. Add new field ddrs.
234 Add macros for the new fields access.
235 (struct _stmt_vec_info): Remove: base_address, initial_offset, step,
236 base_aligned_p, misalignment, memtag, ptr_info and subvars.
238 * tree.h (highest_pow2_factor): Declare.
240 2005-07-25 Jakub Jelinek <jakub@redhat.com>
242 * calls.c (store_one_arg): Check for sibling call MEM arguments
243 from already clobbered incoming argument area.
245 2005-07-24 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
247 * c-common.c (check_missing_format_attribute): New.
248 * c-common.h (check_missing_format_attribute): Likewise.
249 * c-typeck.c (convert_for_assignment): Use it.
251 2005-07-24 Andreas Schwab <schwab@suse.de>
253 * config/m68k/m68k.md ("extendqidi2"): When source is an address
254 register use a word move. Correct operand of ext.w in 68000 code.
256 2005-07-23 Mark Mitchell <mark@codesourcery.com>
258 * dwarf2out.c (gen_variable_die): Treat un-emitted COMDAT
259 variables as declarations, rather than definitions.
261 2005-07-24 Ira Rosen <irar@il.ibm.com>
263 PR tree-optimization/22526
264 * tree-vectorizer.c (slpeel_tree_peel_loop_to_edge): Match the type
267 2005-07-24 Francois-Xavier Coudert <coudert@clipper.ens.fr>
269 * builtins.def: Add DEF_EXT_C99RES_BUILTIN to define builtins
270 that C99 reserve for future use. Use it to define clog10,
273 2005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
275 * Makefile.in (STRICT2_WARN): Add -Wmissing-format-attribute.
276 * configure.ac: Check for -Wmissing-format-attribute.
278 * configure: Regenerate.
280 2005-07-23 Richard Henderson <rth@redhat.com>
282 PR tree-optimization/22623
283 * tree-complex.c (set_component_ssa_name): Use replace_ssa_name_symbol.
285 2005-07-23 Giovanni Bajo <giovannibajo@libero.it>
288 * config/pa/pa.c (reloc_needed): Updated for VECs inside CONSTRUCTOR.
290 2005-07-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
292 * Makefile.in (C_TREE_H): Update dependencies.
293 * c-tree.h: Include toplev.h.
294 * diagnostic.h (diagnostic_set_info): Add format attribute.
295 * rtl-error.c (diagnostic_for_asm): Likewise.
297 2005-07-23 Chao-ying Fu <fu@mips.com>
299 * config/mips/mips-dsp.md: New file.
300 * config/mips/mips-modes.def (V4QI, V2HI, CCDSP): New modes.
301 * config/mips/mips.c (mips_function_type): Add types for DSP builtin
303 (mips_builtin_type): Add MIPS_BUILTIN_DIRECT_NO_TARGET and
304 MIPS_BUILTIN_BPOSGE32.
305 (mips_expand_builtin_direct): Add one parameter to indicate that
306 builtin functions need to return a value.
307 (mips_expand_builtin_bposge): New for expanding "bposge" builtin
309 (mips_regno_to_class): Add classes for 12 new DSP registers.
310 (mips_subword): Change to check four HI registers.
311 (mips_output_move): Output move to and from 6 new DSP accumulators.
312 (override_options): Make sure -mdsp and -mips16 are not used together.
313 Map 'A' to DSP_ACC_REGS and 'a' to ACC_REGS. Enable DSP accumulators
315 (mips_conditional_register_usage): Disable 6 new DSP accumulators
317 (print_operand): Add 'q' for printing DSP accumulators.
318 (mips_cannot_change_mode_class): Check ACC_REGS.
319 (mips_secondary_reload_class): Check ACC_REGS.
320 (mips_vector_mode_supported_p): Enable V2HI and V4QI when TARGET_DSP.
321 (mips_register_move_cost): Check ACC_REGS.
322 (CODE_FOR_mips_addq_ph, CODE_FOR_mips_addu_qb, CODE_FOR_mips_subq_ph)
323 (CODE_FOR_mips_subu_qb): New code-aliasing macros.
324 (DIRECT_NO_TARGET_BUILTIN, BPOSGE_BUILTIN): New macros.
325 (dsp_bdesc): New array.
326 (bdesc_arrays): Add DSP builtin function table.
327 (mips_prepare_builtin_arg): Check predicate again after
329 (mips_expand_builtin): Add one more parameter to
330 mips_expand_builtin_direct. Expand MIPS_BUILTIN_DIRECT_NO_TARGET and
331 MIPS_BUILTIN_BPOSGE32.
332 (mips_init_builtins): Initialize new function types.
333 (mips_expand_builtin_direct): Check if builtin functions need to
334 return a value and pass operands properly.
335 (mips_expand_builtin_bposge): New function.
336 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Add __mips_dsp.
337 (ASM_SPEC): Map -mdsp to -mdsp in GAS.
338 (FIRST_PSEUDO_REGISTER): Increase to 188.
339 (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
340 Update for 12 new DSP registers.
341 (DSP_ACC_REG_FIRST, DSP_ACC_REG_LAST, DSP_ACC_REG_NUM, AC1HI_REGNUM)
342 (AC1LO_REGNUM, AC2HI_REGNUM, AC2LO_REGNUM, AC3HI_REGNUM, AC3LO_REGNUM):
343 (DSP_ACC_REG_P, ACC_REG_P, ACC_HI_REG_P): New macros.
344 (reg_class): Add DSP_ACC_REGS and ACC_REGS.
345 (REG_CLASS_NAMES): Add names for DSP_ACC_REGS and ACC_REGS.
346 (REG_CLASS_CONTENTS): Update for DSP_ACC_REGS, ACC_REGS and ALL_REGS.
347 (REG_ALLOC_ORDER): Update for 12 new DSP registers.
348 (mips_char_to_class): Add 'A' for DSP_ACC_REGS and 'a' for ACC_REGS.
349 (UIMM6_OPERAND, IMM10_OPERAND): New macros.
350 (EXTRA_CONSTRAINT_Y): Add YA and YB extra constraints.
351 (REGISTER_NAMES): Add names for 12 new DSP registers.
352 * config/mips/mips.md: Include mips-dsp.md.
353 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
354 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
355 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
356 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
357 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
358 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
359 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
360 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
361 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
362 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
363 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
364 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
365 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
366 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
367 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
368 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
369 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
370 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
371 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
372 (UNSPEC_RDDSP): New constants.
373 (*movdi_32bit): Change 'x' to 'a' for ACC_REGS.
374 (*movsi_internal): Change 'x' to 'a' for ACC_REGS. Add an
376 * config/mips/mips.opt (-mdsp): New option.
377 * config/mips/predicates.md (const_uimm6_operand, const_imm10_operand)
378 (reg_imm10_operand): New predicates.
379 * doc/extend.texi (MIPS DSP Built-in Functions): New section.
380 * doc/invoke.texi (-mdsp): Document new option.
382 2005-07-22 DJ Delorie <dj@redhat.com>
384 * c-objc-common.c (c_cannot_inline_tree_fn): Add warning control
386 * tree-inline.c (inlinable_function_p): Likewise.
388 2005-07-22 Mark Mitchell <mark@codesourcery.com>
391 * toplev.c (check_global_declarations): Do not mark undefined
392 variables as DECL_IGNORED_P.
393 * varasm.c (first_global_object_name): GTY it.
394 (weak_global_object_name): Likewise.
395 (notice_global_symbol): Use ggc_strdup, not xstrdup, when creating
396 a string to go into {weak,first}_global_object_name.
398 2005-07-22 DJ Delorie <dj@redhat.com>
400 * c-format.c (check_function_format): Change warning control
401 option from OPT_Wattribute to OPT_Wmissing_format_attribute.
403 2005-07-22 Diego Novillo <dnovillo@redhat.com>
405 * tree-ssa-alias.c (count_ptr_derefs): Do not consider
406 &PTR->FLD a dereference of PTR.
407 * tree-ssa-structalias.c (update_alias_info): Consider &PTR->FLD
408 a potential dereference of PTR.
410 2005-07-22 J"orn Rennecke <joern.rennecke@st.com>
412 PR rtl-optimization/20370
413 * ifcvt.c (dead_or_predicable): Before calling propagate_block,
414 call allocate_reg_info if necessary.
416 PR rtl-optimization/21848
417 * calls.c (emit_library_call_value_1): For const functions, add
418 USEs of the stack slots to CALL_INSN_FUNCTION_USAGE.
420 PR rtl-optimization/22445
421 * cselib.c (target.h): Include.
422 (rtx_equal_for_cselib_p): Allow commutative matches.
423 (cselib_hash_rtx): Don't use MODE for CONST_INT hashing.
424 Remove MODE parameter. Changed all callers.
426 PR rtl-optimization/22258
427 * combine.c (likely_spilled_retval_1, likely_spilled_retval_p):
429 (try_combine): Use likely_spilled_retval_p.
431 2005-07-22 Paul Woegerer <paul.woegerer@nsc.com>
433 * config.gcc: Add crx-elf support.
435 * doc/contrib.texi: Mention crx.
436 * doc/extend.texi: Document crx extensions.
437 * doc/install.texi: Document crx install.
438 * doc/invoke.texi: Document crx options.
439 * doc/md.texi: Document crx constraints.
441 * config/crx/crx-protos.h: New file.
442 * config/crx/crx.c: New file.
443 * config/crx/crx.h: New file.
444 * config/crx/crx.md: New file.
445 * config/crx/crx.opt: New file.
446 * config/crx/t-crx: New file.
448 2005-07-22 Manfred Hollstein <mh@suse.com>
450 * tree-ssa-structalias.c (merge_graph_nodes): Fix uninitialised
452 (int_add_graph_edge): Likewise.
453 (collapse_nodes): Likewise.
454 (process_unification_queue): Likewise.
456 2005-07-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
457 Laurent GUERBY <laurent@guerby.net>
459 PR tree-optimization/22336
460 * function.c (record_block_change): Check for
461 cfun->ib_boundaries_block.
463 2005-07-21 James A. Morrison <phython@gcc.gnu.org>
465 * fold-const.c (fold_unary): Don't strip signed nops from ABS_EXPRs.
466 (tree_expr_nonnegative_p): Return try for TYPE_UNSIGNED.
468 2005-07-21 DJ Delorie <dj@redhat.com>
470 * toplev.c (warn_deprecated_use): Add warning control to warning
472 * c-typeck.c (parser_build_binary_op): Likewise.
473 (c_finish_if_stmt): Likewise.
474 * c-common.c (check_function_sentinel): Likewise.
475 (check_nonnull_arg): Likewise.
477 2005-07-21 Richard Henderson <rth@redhat.com>
480 * tree-complex.c (complex_ssa_name_components): New.
481 (cvc_lookup): Allow entry not found.
482 (create_components): Remove.
483 (create_one_component_var, get_component_var): New.
484 (get_component_ssa_name, set_component_ssa_name): New.
485 (extract_component): Use get_component_ssa_name.
486 (update_complex_components): Use set_component_ssa_name.
487 (update_complex_components_on_edge): Likewise.
488 (update_phi_components): Create new PHI nodes directly, instead
489 of adding insns to edges.
490 (tree_lower_complex): Allocate and free complex_variable_components
491 and complex_ssa_name_components here.
493 2005-07-20 Daniel Berlin <dberlin@dberlin.org>
495 * alias.c (nonoverlapping_component_refs_p): Use TYPE_MAIN_VARIANT,
496 revert to returning false.
498 2005-07-21 Uros Bizjak <uros@kss-loka.si>
501 * config/i386/i386.md (sse_movhlps): Fix vec_select values.
503 2005-07-21 Uros Bizjak <uros@kss-loka.si>
506 * config/i386/i386.md (cmpxf): Change operand constraints
507 to "nonmemory_operand".
509 2005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
511 * config/i386/i386.md (trap): Use "".word/t0x0b0f" instead of ud2.
513 2005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
516 * fold-const.c (fold_build1): Add checksum for the operands.
517 (fold_build2): Likewise.
518 (fold_build3): Likewise.
520 2005-07-21 Andrew Pinski <pinskia@physics.uc.edu>
523 * fold-const.c (fold_binary): Transform "(X | Y) ^ X" to "Y & ~ X".
525 2005-07-21 Paolo Bonzini <bonzini@gnu.org>
527 * common.opt (-fforward-propagate): Committed by mistake,
530 2005-07-21 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
532 * reg-stack.c: Fix comment typo(s).
533 * tree-ssa-operands.c: Likewise.
534 * tree-vectorizer: Likewise.
536 2005-07-21 Nick Clifton <nickc@redhat.com>
538 * config/sh/symbian.c: Replace C++ style line comments with C
540 (symbian_add_attribute): Do not use a ? operator on the LHS of
542 (sh_symbian_handle_dll_attribute): Change the type of the
543 method vector to "VEC(tree,gc)*" and use vector accessor
544 macros to walk over the elements.
545 (symbian_export_vtable_and_rtti_p): Likewise.
546 (symbian_class_needs_attribute_p): Likewise.
548 2005-07-21 Paolo Bonzini <bonzini@gnu.org>
551 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Do not
552 initialize targetm.resolve_overloaded_builtin here.
553 (altivec_expand_overloaded_builtin): Make it non-static.
554 * config/rs6000/rs6000-protos.h
555 (altivec_expand_overloaded_builtin): New prototype.
556 * config/rs6000/rs6000.h (REGISTER_TARGET_PRAGMAS): Initialize
557 targetm.resolve_overloaded_builtin here.
558 * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Likewise.
560 2005-07-21 Paolo Bonzini <bonzini@gnu.org>
561 Zdenek Dvorak <dvorakz@suse.cz>
563 PR tree-optimization/19210
564 * common.opt (Wunsafe-loop-optimizations, funsafe-loop-optimizations):
566 * Makefile.in (tree-ssa-loop-niter.o): Depend intl.o.
567 * loop-iv.c (get_simple_loop_desc): If -funsafe-loop-optimizations,
568 rely on unproven assumptions.
569 * predict.c (predict_loops): Adjust call to number_of_iterations_exit.
570 * tree-flow.h (number_of_iterations_exit): Add final parameter.
571 * tree-scalar-evolution.c (number_of_iterations_in_loop): Adjust call
572 to number_of_iterations_exit.
573 * tree-ssa-loop-ivcanon.c (empty_loop_p): Likewise.
574 * tree-ssa-loop-ivopts.c (niter_for_exit): Likewise.
575 * tree-ssa-loop-niter.c (find_loop_niter,
576 estimate_numbers_of_iterations_loop): Likewise.
577 (number_of_iterations_exit): Honor the new options.
578 * doc/invoke.texi (Wunsafe-loop-optimizations,
579 funsafe-loop-optimizations): Document them.
581 2005-07-21 Richard Sandiford <richard@codesourcery.com>
583 PR rtl-optimization/22167
584 * gcse.c (hoist_code): Fix hoist_exprs[] check.
586 2005-07-20 Adam Nemet <anemet@lnxw.com>
588 * config/rs6000/lynx.h: Mark __do_global_ctors_aux and
589 __do_global_dtors_aux longcall.
591 2005-07-20 Kazu Hirata <kazu@cs.umass.edu>
593 * gensupport.c (old_preds): Don't reference PREDICATE_CODES.
594 (old_special_pred_table): Don't reference
595 SPECIAL_MODE_PREDICATES.
596 * system.h (PREDICATE_CODES, SPECIAL_MODE_PREDICATES): Poison.
597 * config/arc/arc.h: Don't mention PREDICATE_CODES.
598 * config/sh/predicates.h: Don't mention
599 SPECIAL_MODE_PREDICATES.
600 * doc/tm.texi (PREDICATE_CODES, SPECIAL_MODE_PREDICATES):
603 2005-07-20 DJ Delorie <dj@redhat.com>
605 * config.gcc: Add m32c-elf support.
607 * doc/contrib.texi: Mention m32c.
608 * doc/extend.texi: Document m32c extensions.
609 * doc/install.texi: Mention m32c.
610 * doc/invoke.texi: Document m32c options.
611 * doc/md.texi: Document m32c constraints.
613 * config/m32c/addsub.md: New file.
614 * config/m32c/bitops.md: New file.
615 * config/m32c/cond.md: New file.
616 * config/m32c/jump.md: New file.
617 * config/m32c/m32c-lib1.S: New file.
618 * config/m32c/m32c-lib2.c: New file.
619 * config/m32c/m32c-modes.def: New file.
620 * config/m32c/m32c-pragma.c: New file.
621 * config/m32c/m32c-protos.h: New file.
622 * config/m32c/m32c.abi: New file.
623 * config/m32c/m32c.c: New file.
624 * config/m32c/m32c.h: New file.
625 * config/m32c/m32c.md: New file.
626 * config/m32c/m32c.opt: New file.
627 * config/m32c/minmax.md: New file.
628 * config/m32c/mov.md: New file.
629 * config/m32c/muldiv.md: New file.
630 * config/m32c/predicates.md: New file.
631 * config/m32c/prologue.md: New file.
632 * config/m32c/shift.md: New file.
633 * config/m32c/t-m32c: New file.
635 2005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
637 * config/sh/sh.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New constants.
638 (stack_protect_set, stack_protect_test): New expanders.
639 (stack_protect_set_si, stack_protect_set_si_media,
640 stack_protect_set_di_media, stack_protect_test_si,
641 stack_protect_test_si_media, stack_protect_test_di_media):
644 2005-07-20 Andrew Pinski <pinskia@physics.uc.edu>
646 * c-typeck.c (output_init_element): Don't copy the INTEGER_CST.
648 2005-07-20 James A. Morrison <phython@gcc.gnu.org>
650 * tree.h (tree_expr_nonzero_p): Export.
651 * fold-const.c (tree_expr_nonzero_p): Likewise.
652 Return true for CALL_EXPRs that are alloca calls.
653 (fold_binary): Use omit_one_operand when checking EQ_EXPRs or NE_EXPRs
655 * tree-flow.h (expr_computes_nonzero): Remove.
656 * tree-vrp.c (expr_computes_nonzero): Remove.
657 (vrp_expr_computes_nonzero): Use tree_expr_nonzero_p.
658 (extract_range_from_unary_expr): Likewise.
659 * tree-ssa-dom.c (record_equivalences_from_stmt): Use
662 2005-07-20 Bernd Schmidt <bernd.schmidt@analog.com>
664 * config/bfin/bfin-protos.h (legitimize_pic_address): Don't declare.
665 * config/bfin/bfin.c (legitimize_pic_address): Now static. Take
666 extra arg "picreg" and use it instead of pic_offset_table_rtx.
668 (frame_related_constant_load): New arg "related" which controls
669 setting of RTX_FRAME_RELATED_P. All callers changed.
670 (bfin_load_pic_reg): New function, broken out of bfin_expand_prologue.
671 (bfin_expand_prologue): Add stack limit checking.
672 * config/bfin/bfin.md (trapifcc): New pattern.
674 * config/bfin/bfin.c: Include "langhooks.h".
675 (def_builtin): Go through lang_hooks to call builtin_function.
677 * config/bfin/bfin-protos.h (bfin_longcall_p): Declare.
678 * config/bfin/predicates.md (symbol_ref_operand): New.
679 (call_insn_operand): Delete. All callers changed to use
680 register_no_elim_operand.
681 * config/bfin/bfin.c (init_cumulative_args): Initialize the new
683 (function_arg): Use it to generate the call's operand 2.
684 (bfin_longcall_p): New function.
685 (bfin_expand_call): Extra arg "cookie". All callers and declaration
686 changed. Emit extra USE in the pattern. Use bfin_longcall_p to
687 determine if the address needs to be in a REG.
688 (bfin_handle_longcall_attribute): New function.
689 (bfin_attribute_table): Add "longcall" and "shortcall".
690 * config/bfin/bfin.h (CALL_NORMAL, CALL_LONG, CALL_SHORT): New macros.
691 (CUMULATIVE_ARGS): New member call_cookie.
692 (PREDICATE_CODES): Add symbol_ref_operand.
693 * config/bfin/bfin.md (call, call_value, sibcall, sibcall_value): Add
694 extra USE to the pattern.
695 (call_symbol, sibcall_symbol, call_value_symbol, sibcall_value_symbol):
696 New patterns, split off call_insn, sibcall_insn, call_value_insn and
697 sibcall_value_insn; now the new patterns handle direct calls and the
698 old ones indirect calls.
699 * doc/extend.texi: Mention Blackfin in longcall/shortcall docs.
701 2005-07-20 Zdenek Dvorak <dvorakz@suse.cz>
703 * doc/trouble.texi: Update section on handling of empty loops.
705 2005-07-20 Kazu Hirata <kazu@codesourcery.com>
707 * config.gcc: Remove support for sparc-*-openbsd*,
708 i860-*-sysv4*, ip2k-*-elf, ns32k-*-netbsdelf*,
710 * config.host: Remove support for i860-*-sysv4* as a host.
711 * config/i860/*, config/ip2k/*, config/ns32k/*,
712 config/sparc/openbsd.h, config/sparc/t-openbsd: Remove.
713 * doc/install.texi, doc/invoke.texi, doc/md.texi: Don't
714 mention obsolete ports.
716 2005-07-20 Kaz Kojima <kkojima@gcc.gnu.org>
718 * config/sh/sh.c (regno_reg_class): Add GENERAL_REGS for
720 (sh_expand_prologue): Use hard_frame_pointer_rtx instead
721 of frame_pointer_rtx.
722 (sh_expand_epilogue): Likewise.
723 (sh_set_return_address): Likewise.
724 (initial_elimination_offset): Use HARD_FRAME_POINTER_REGNUM
725 instead of FRAME_POINTER_REGNUM if needed. Add elimination
726 offsets from FRAME_POINTER_REGNUM.
727 * config/sh/sh.h (SH_REGISTER_NAMES_INITIALIZER): Add sfp.
728 (sh_register_names): Add initializer for sfp.
729 (GENERAL_OR_AP_REGISTER_P): Permit FRAME_POINTER_REGNUM.
730 (VALID_REGISTER_P): Likewise.
731 (FIRST_PSEUDO_REGISTER): Update.
732 (DWARF_FRAME_REGISTERS): Define.
733 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add sfp.
734 (HARD_FRAME_POINTER_REGNUM): Define.
735 (FRAME_POINTER_REGNUM): Redefine.
736 (ELIMINABLE_REGS): Never eliminate to FRAME_POINTER_REGNUM,
737 but HARD_FRAME_POINTER_REGNUM instead. Add eliminations
738 from FRAME_POINTER_REGNUM.
739 (CAN_ELIMINATE): Use HARD_FRAME_POINTER_REGNUM instead of
740 FRAME_POINTER_REGNUM.
741 (REG_CLASS_CONTENTS): Add sfp.
742 (REG_ALLOC_ORDER): Likewise.
743 (FRAME_GROWS_DOWNWARD): Set to 1. Update comment.
744 (GO_IF_LEGITIMATE_ADDRESS): Use hard_frame_pointer_rtx instead
745 of frame_pointer_rtx.
746 (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
748 2005-07-19 James A. Morrison <phython@gcc.gnu.org>
750 * fold-const.c (tree_expr_nonnegative_p): Only return true for
751 ABS_EXPR when flag_wrapv is false because of INT_MIN.
752 (tree_expr_nonzero_p): Always call tree_expr_nonzero_p on the argument
754 (fold_unary): Always fold ABS_EXPR<ABS_EXPR<x>> into
757 2005-07-20 Giovanni Bajo <giovannibajo@libero.it>
759 Make CONSTRUCTOR use VEC to store initializers.
760 * c-common.c (complete_array_type): Update to cope with VEC in
762 * c-pretty-print.c (pp_c_initializer_list): Use pp_c_constructor_elts.
763 (pp_c_constructor_elts): New function.
764 * c-pretty-print.h (pp_c_constructor_elts): Declare.
765 * c-typeck.c (build_function_call, build_c_cast, digest_init,
766 struct constructor_stack, struct initializer_stack,
767 constructor_elements, push_init_level, pop_init_level,
768 add_pending_init, find_init_member, output_init_element): Update to
769 cope with VEC in CONSTRUCTOR_ELTS.
770 * coverage.c (build_fn_info_value, build_ctr_info_value,
771 build_gcov_info): Likewise.
772 * expr.c (categorize_ctor_elements_1, store_constructor,
773 expand_expr_real_1): Likewise.
774 * fold-const.c (fold_ternary): Likewise.
775 * gimplify.c (gimplify_init_ctor_preeval, zero_sized_field_decl,
776 gimplify_init_constructor, gimplify_expr): Likewise.
777 * tree-dump.c (dequeue_and_dump): Likewise.
778 * tree-inline.c (copy_tree_r): Add code to duplicate a CONSTRUCTOR
780 * tree-pretty-print.c (dump_generic_node): Update to cope with VEC in
782 * tree-sra.c (generate_element_init_1): Likewise.
783 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
784 * tree-ssa-operands.c (get_expr_operands): Likewise.
785 * tree-vect-generic.c (expand_vector_piecewise): Likewise.
786 * tree-vect-transform.c (vect_get_vec_def_for_operand):
787 (get_initial_def_for_reduction): Likewise.
788 * tree-vn.c (set_value_handle, get_value_handle): CONSTURCTOR uses
789 value handle in annotations.
790 * tree.c (tree_node_kind, tree_code_size, make_node_stat,
791 tree_node_structure): Add support for constr_kind.
792 (build_vector_from_ctor, build_constructor_single,
793 build_constructor_from_list): New functions.
794 (build_constructor): Update to take a VEC instead of a TREE_LIST.
795 (simple_cst_equal, iterative_hash_expr, initializer_zerop, walk_tree):
796 Update to cope with VEC in CONSTRUCTOR_ELTS.
797 * tree.def (CONSTRUCTOR): Make it a tcc_exceptional node.
798 * tree.h (FOR_EACH_CONSTRUCTOR_VALUE, FOR_EACH_CONSTRUCTOR_ELT,
799 CONSTRUCTOR_APPEND_ELT): New macros.
800 (struct constructor_elt, struct tree_constructor): New data types.
801 (union tree_node): Add tree_constructor field.
802 * treestruct.def: Define TS_CONSTRUCTOR.
803 * varasm.c (const_hash_1, compare_constant, copy_constant,
804 compute_reloc_for_constant, output_addressed_constants,
805 initializer_constant_valid_p, output_constant,
806 array_size_for_constructor, output_constructor): Update to cope with
807 VEC in CONSTRUCTOR_ELTS.
808 * vec.h (VEC_empty, VEC_copy): New macros.
810 2005-07-19 Devang Patel <dpatel@apple.com>
812 * dbxout.c (dbxout_type): Check Objective-C++ lang.
814 2005-07-19 Richard Henderson <rth@redhat.com>
817 * gimplify.c (gimplify_expr): Use main variant type for the temp
818 destination for a discarded volatile read.
819 * tree-ssa.c (tree_ssa_useless_type_conversion_1): Don't elide
820 casts between non-void types that change volatility.
822 2005-07-15 DJ Delorie <dj@redhat.com>
824 * toplev.h: Add comment about the first parameter for warning().
825 * errors.h: Likewise.
827 * c.opt (Wpragmas): New.
828 * doc/invoke.texi: Document it.
830 * function.c (do_warn_unused_parameter): Add warning control to
832 * c-decl.c (warn_if_shadowing): Likewise.
833 * c-lex.c (cb_def_pragma): Likewise.
834 * c-pragma.c (GCC_BAD, GCC_BAD2): Likewise.
835 (pop_alignment): Likewise.
836 (handle_pragma_pack): Likewise.
837 (apply_pragma_weak): Likewise.
838 (handle_pragma_weak): Likewise.
839 (handle_pragma_redefine_extname): Likewise.
840 (add_to_renaming_pragma_list): Likewise.
841 (handle_pragma_extern_prefix): Likewise.
842 (maybe_apply_renaming_pragma): Likewise.
843 (handle_pragma_visibility): Likewise.
845 * config/c4x/c4x-c.c (BAD): Likewise.
846 (c4x_parse_pragma): Likewise.
847 * config/ia64/ia64-c.c (ia64_hpux_handle_builtin_pragma): Likewise.
848 * config/rs6000/rs6000-c.c (SYNTAX_ERROR): Likewise.
849 (rs6000_pragma_longcall): Likewise.
850 * config/v850/v850-c.c (pop_data_area): Likewise.
851 (ghs_pragma_section): Likewise.
852 (ghs_pragma_section): Likewise.
853 (ghs_pragma_interrupt): Likewise.
854 (ghs_pragma_starttda): Likewise.
855 (ghs_pragma_startsda): Likewise.
856 (ghs_pragma_startzda): Likewise.
857 (ghs_pragma_endtda): Likewise.
858 (ghs_pragma_endsda): Likewise.
859 (ghs_pragma_endzda): Likewise.
861 2005-07-19 Danny Berlin <dberlin@dberlin.org>
862 Kenneth Zadeck <zadeck@naturalbridge.com>
864 * Makefile.in: Removed tree-promote-statics.c
865 * tree-promote-statics.c: Removed.
866 * common.opt: Removed flag-promote-statics.
868 * passes.c: Removed tree-promote-statics pass.
869 * tree-pass.h: Ditto.
870 * timevar.def: Removed TV_PROMOTE_STATICS.
873 2005-07-19 Gerald Pfeifer <gerald@pfeifer.com>
875 * config.gcc: Add support for *-*-freebsd7, *-*-freebsd8,
877 * config/freebsd-spec.h (FBSD_TARGET_OS_CPP_BUILTINS): Ditto.
879 2005-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
882 * c-common.c (check_function_arguments): Call
883 'check_function_format' if either -Wformat or
884 -Wmissing-format-attribute are specified.
885 * c-format.c (check_function_format): Check -Wformat before
886 calling 'check_format_info'.
887 * c-opts.c (c_common_post_options): Don't warn for
888 -Wmissing-format-attribute without -Wformat.
889 * c-typeck.c (convert_for_assignment): Detect additional cases for
890 -Wmissing-format-attribute.
891 * doc/invoke.texi (-Wmissing-format-attribute): Document new
894 2005-07-19 Richard Guenther <rguenther@suse.de>
896 * config/i386/i386.md (lrint<mode>2): Use temporary
897 instead of clobbering non-existent memory.
899 2005-07-19 Nick Clifton <nickc@redhat.com>
901 * config/avr/avr.c (legitimate_address_p): Fix debugging print
902 statement to avoid displaying ASCII control characters.
904 2005-07-19 Ben Elliston <bje@au.ibm.com>
906 * bt-load.c (link_btr_uses): Fix uninitialised warnings.
907 * cfganal.c (find_edge_index): Ditto.
908 * combine.c (combine_instructions): Ditto.
909 * ddg.c (create_scc): Ditto.
910 (find_successors): Ditto.
911 (find_predecessors): Ditto.
912 (find_nodes_on_paths): Ditto.
913 (longest_simple_path): Ditto.
914 * flow.c (update_life_info): Ditto.
915 (count_or_remove_death_notes): Ditto.
916 (clear_log_links): Ditto.
917 * modulo-sched.c (generate_reg_moves): Ditto.
918 (find_max_asap): Ditto.
919 (find_max_hv_min_mob): Ditto.
920 (find_max_dv_min_mob): Ditto.
921 * sbitmap.c (sbitmap_first_set_bit): Ditto.
922 * sched-rgn.c (extract_edgelst): Ditto.
923 * tree-into-ssa.c (prepare_names_to_update): Ditto.
924 (dump_update_ssa): Ditto.
925 (ssa_names_to_replace) Ditto.
926 (switch_virtuals_to_full_rewrite): Ditto.
928 * tree-vect-transform.c (vect_create_epilog_for_reduction): Ditto.
930 2005-07-18 Daniel Berlin <dberlin@dberlin.org>
932 Fix PR tree-optimization/22483
934 * tree-complex.c (create_components): Use
935 safe_referenced_var_iterator and FOR_EACH_REFERENCED_VAR_SAFE.
936 * tree-flow-inline.h (fill_referenced_var_vec): New function.
937 * tree-flow.h (safe_referenced_var_iterator): New structure.
938 (FOR_EACH_REFERENCED_VAR_SAFE): New macro.
939 * tree-ssa-alias.c (setup_pointers_and_addressables): Use
940 safe_referenced_var iterator.
941 (add_type_alias): Ditto.
943 2005-07-19 Steven Bosscher <stevenb@suse.de>
945 * loop-init.c (rest_of_handle_loop2): Remove.
946 (rtl_loop_init, rtl_loop_done, rtl_move_loop_invariants,
947 rtl_unswitch, rtl_unroll_and_peel_loops, rtl_doloop): New functions.
948 (pass_rtl_loop_init, pass_rtl_loop_done,
949 pass_rtl_move_loop_invariants, pass_rtl_unswitch,
950 pass_rtl_unroll_and_peel_loops, pass_rtl_doloop): New passes.
951 * tree-ssa-loop.c (pass_loop, pass_loop_init, pass_loop_done,
952 pass_unswitch): Rename to pass_tree_loop, pass_tree_loop_init,
953 pass_tree_loop_done, and pass_tree_unswitch.
954 (gate_loop): Rename to gate_tree_loop.
955 * passes.c (init_optimization_passes): Update for renamed tree
956 loop passes. Add the new loop2 passes as subpasses of loop2.
957 * tree-pass.h: Add extern declarations for the new loop2 subpasses.
958 Update for the renamed tree loop passes.
960 2005-07-18 Ian Lance Taylor <ian@airs.com>
963 * tree-cfgcleanup.c (cleanup_tree_cfg): Only remove forwarder
964 blocks when optimizing.
966 2005-07-18 Steve Ellcey <sje@cup.hp.com>
968 * common.opt (frename-registers): Initialize to 2.
970 (fgcse-after-reload): Ditto.
971 * toplev.c (AUTODETECT_FLAG_VAR_TRACKING): Rename to AUTODETECT_VALUE.
972 (process_options): Only change flag_web, flag_rename_registers,
973 and flag_rerun_cse_after_loop if not explicitly set by user.
975 2005-07-18 Jan Beulich <jbeulich@novell.com>
977 * config/i386/i386.c (ix86_expand_branch, ix86_expand_setcc,
978 ix86_expand_carry_flag_compare, ix86_expand_int_movcc): Handle TImode
979 in 64-bit mode the same as DImode in 32-bit mode.
980 (ix86_expand_ashl_const, ix86_split_ashl, ix86_split_ashr,
981 ix86_split_lshr): Likewise. Rename to no longer refer to a specific
982 mode. Add new mode parameter.
983 * config/i386/i386.h (CONST_OK_FOR_LETTER_P): Describe and handle 'O'.
984 * config/i386/i386.md (cmpti, addti3, subti3, negti2, ashlti3, ashrti3,
985 x86_64_shift_adj): New expanders.
986 (*addti3_1, *subti3_1, *negti2_1, ashlti3_1, *ashlti3_2, ashrti3_1,
987 *ashrti3_2, lshrti3_1, *lshrti3_2, x86_64_shld, x86_64_shrd): New
989 Respective new splitters. Use renamed shift splitter helpers in 32-bit
990 DImode shift splitters.
991 * config/i386/i386-protos.h (ix86_split_ashl, ix86_split_ashr,
992 ix86_split_lshr): Renamed from ix86_split_[al]sh[rl]di. Added new
995 2005-07-18 Jan Beulich <jbeulich@novell.com>
997 * i386.md (movdi_extzv_1): New.
998 (zero_extendhidi2): Combine alternatives and never force use of
1000 (zero_extendqidi2): Likewise. Don't restrict input selection.
1002 2005-07-17 Daniel Berlin <dberlin@dberlin.org>
1004 Fix PR tree-optimization/22531
1005 * tree-ssa-pre.c (do_eustores): Make sure LHS is a decl for the
1008 2005-07-17 Daniel Berlin <dberlin@dberlin.org>
1010 * tree-promote-statics.c (pass_promote_statics): Change dump file
1013 2005-07-17 Daniel Berlin <dberlin@dberlin.org>
1015 * tree-optimize.c (init_tree_optimization_passes): Add
1016 pass_eliminate_useless_stores pass.
1017 * tree-pass.h (pass_eliminate_useless_stores): New pass structure.
1018 * tree-ssa-pre.c (is_copy_stmt): New function.
1019 (follow_copies_till_vuse): Ditto.
1020 (do_eustores): Ditto.
1021 (gate_eustores): Ditto.
1023 2005-07-16 Richard Henderson <rth@redhat.com>
1025 * gcc.c (MFWRAP_SPEC): Don't wrap pthread_join or pthread_exit.
1027 2005-07-16 Danny Berlin <dberlin@dberlin.org>
1028 Kenneth Zadeck <zadeck@naturalbridge.com>
1030 * Makefile.in: Added rules for ipa-pure-const.c, ipa-reference.c,
1031 ipa-reference.h, ipa-utils.c, ipa-utils.h, ipa-type-escape.c,
1032 ipa-type-escape.h, tree-promote-statics.c
1033 * ipa-pure-const.c, ipa-reference.c, ipa-reference.h, ipa-utils.c,
1034 ipa-utils.h, ipa-type-escape.c, ipa-type-escape.h,
1035 tree-promote-statics.c: new files.
1036 * alias.c: (nonlocal_mentioned_p_1, nonlocal_mentioned_p,
1037 nonlocal_referenced_p_1, nonlocal_referenced_p, nonlocal_set_p_1,
1038 int nonlocal_set_p, mark_constant_function): Deleted.
1039 (rest_of_handle_cfg): Removed call to mark_constant_function.
1040 (nonoverlapping_component_refs_p): Added calls to support
1041 type based aliasing.
1042 * tree-ssa-alias.c (may_alias_p,
1043 compute_flow_insensitive_aliasing): Ditto.
1044 * calls.c (flags_from_decl_or_type): Removed reference to
1046 * c-typeck.c (convert_arguments): Make builtins tolerant of having
1047 too many arguments. This is necessary for Spec 2000.
1048 * cgraph.h (const_function, pure_function): Removed.
1049 * common.opt: Added "fipa-pure-const", "fipa-reference",
1050 "fipa-type-escape", and "ftree-promote-static".
1052 * passes.c: Added ipa and tree-promote-statics passes.
1053 * timevar.def: Added TV_IPA_PURE_CONST, TV_IPA_REFERENCE,
1054 TV_IPA_TYPE_ESCAPE, and TV_PROMOTE_STATICS.
1055 * tree-dfa.c (referenced_var_lookup_if_exists): New function.
1056 * tree-flow.h: Added exposed sra calls and addition of
1057 reference_vars_info field for FUNCTION_DECLS.
1058 * tree-pass.h: Added passes.
1059 * tree-sra.c: (sra_init_cache): New function.
1060 (sra_insert_before, sra_insert_after) Made public.
1061 (type_can_be_decomposed_p): Renamed from type_can_be_decomposed_p
1063 * tree-ssa-alias.c (dump_alias_stats): Added stats for type based
1064 aliasing. (may_alias_p): Added code to use type escape analysis to
1066 * tree-ssa-operands.c (add_call_clobber_ops): Added parameter and
1067 code to prune clobbers of static variables based on information
1068 produced in ipa-reference pass. Changed call clobbering so that
1069 statics are not marked as clobbered if the call does not clobber
1072 2005-07-16 Daniel Berlin <dberlin@dberlin.org>
1074 * tree-ssa-structalias.c (need_to_solve): Need to check for preds,
1077 2005-07-16 Eric Botcazou <ebotcazou@libertysurf.fr>
1079 * doc/install.texi (*-*-solaris2*): Document recommended version
1080 of GNU binutils and mention GNU linker problem on Solaris 10.
1082 2005-07-16 Joseph S. Myers <joseph@codesourcery.com>
1085 * c-decl.c (c_build_bitfield_integer_type): New function.
1086 (finish_struct): Call it.
1087 * c-pretty-print.c (pp_c_type_specifier): Handle bit-field types.
1089 2005-07-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1091 * c-typeck.c (digest_init): Call 'convert_for_assignment'
1094 2005-07-16 Jan Hubicka <jh@suse.cz>
1096 * cfg.c (update_bb_profile_for_threading): Fix profile updating.
1097 (scale_bbs_frequencies_int): Watch roundoff errors.
1098 * predict.c (return_prediction): Initialize return_stmt.
1100 2005-07-16 Jan Hubicka <jh@suse.cz>
1102 * profile.c (rest_of_handle_branch_prob): Fix handling of estimation
1103 after RTL profiling.
1105 2005-07-11 Andrew Pinski <pinskia@physics.uc.edu>
1108 * fold-const.c (build_range_check): Convert high/low to etype
1109 if we are only comparing against exp.
1111 2005-07-13 Daniel Berlin <dberlin@dberlin.org>
1113 Fix PR tree-optimization/22376
1114 * tree-ssa-structalias.c (build_constraint_graph): We really meant
1116 (need_to_solve): New function.
1117 (compute_points_to_sets): Use it.
1119 2005-07-15 Jan Hubicka <jh@suse.cz>
1121 * cfg.c (update_bb_profile_for_threading): More diagnostic.
1122 * tree-ssa-threadupdate.c (redirect_edges): Update profile of dup_block.
1124 2005-07-15 Richard Guenther <rguenther@suse.de>
1126 * c-common.c (handle_flatten_attribute): New function.
1127 Add flatten function attribute.
1128 * doc/extend.texi: Document flatten function attribute.
1129 * Makefile.in (ipa-inline.o): Depend on hashtab.h.
1130 * ipa-inline.c (cgraph_find_cycles, cgraph_flatten_node):
1132 (cgraph_decide_inlining): Handle functions with flatten
1135 2005-07-14 David Edelsohn <edelsohn@gnu.org>
1137 * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_LWSYNC,
1138 UNSPEC_ISYNC, UNSPEC_SYNC_OP, UNSPEC_ATOMIC, UNSPEC_CMPXCHG,
1139 UNSPEC_XCHG, UNSPEC_AND): New.
1140 (UNSPECV_ATOMIC, UNSPECV_SYNC, UNSPECV_SYNC_OP, UNSPECV_CMPXCHG,
1141 UNSPECV_LWSYNC, UNSPECV_ISYNC): Delete.
1142 * config/rs6000/sync.md (FETCHOP): New code macro.
1143 (fetchop_name, fetchop_pred, fetchopsi_constr, fetchopdi_constr):
1145 (memory_barrier, sync_internal): Use unspec instead of unspec_volatile.
1146 (sync_compare_and_swap<mode>): Same.
1147 (sync_lock_test_and_set<mode>): Same.
1148 (sync_<fetchop><mode>, sync_nand<mode>): Only use rs6000_emit_sync
1149 for QImode and HImode, and not PPC405.
1150 (sync_old_<fetchop><mode>, sync_old_nand<mode>): Same.
1151 (sync_new_<fetchop><mode>, sync_new_nand<mode>): Same.
1152 (sync_<fetchop>{si,di}_internal): New.
1153 (sync_nand{si,di}_internal): New.
1154 (sync_old_<fetchop>{si,di}_internal): New.
1155 (sync_old_nand{si,di}_internal): New
1156 (sync_new_<fetchop>{si,di}_internal): New.
1157 (sync_new_nand{si,di}_internal): New.
1158 (atomic_and{si,di}): New.
1159 (sync_new_nand{si,di}_internal): New.
1160 (atomic_and{si,di}): New.
1161 (sync_add<mode>_internal): Delete.
1162 (sync_addshort_internal): Use unspec instead of unspec_volatile.
1163 (sync_sub<mode>_internal): Delte.
1164 (sync_subshort_internal): New.
1165 (sync_andsi_internal): Use unspec instead of unspec_volatile.
1166 (sync_anddi_internal): Delete.
1167 (sync_boolsi_internal): Use unspec instead of unspec_volatile.
1168 (sync_booldi_internal): Delete.
1169 (sync_boolc<mode>_internal): Delete.
1170 (sync_boolcshort_internal): Use unspec instead of unspec_volatile.
1171 (sync_boolc<mode>_internal2): Delete.
1172 (sync_boolcc<mode>_internal): Delete.
1173 (isync, lwsync): Use unspec instead of unspec_volatile.
1174 * config/rs6000/rs6000.c (rs6000_emit_sync): Implement MINUS.
1175 Revert UNSPEC_VOLATILE.
1176 (rs6000_split_atomic_op): New.
1177 * config/rs6000/rs6000-protos.h (rs6000_split_atomic_op): Declare.
1179 2005-07-14 Eric Christopher <echristo@redhat.com>
1181 * config/mips/mips.c (mips_canonicalize_comparison): Cast
1182 argument of trunc_int_for_mode to unsigned HOST_WIDE_INT.
1184 2005-07-14 Eric Christopher <echristo@redhat.com>
1186 * config/s390/t-tpf (SHLIB_MAPFILES): Remove.
1188 2005-07-14 Steven Bosscher <stevenb@suse.de>
1190 PR tree-optimization/22230
1191 * tree-vrp.c (extract_range_from_binary_expr): Fix logics thinko in
1192 the computation of the four cross productions for "range op range".
1194 2005-07-14 Alexandre Oliva <aoliva@redhat.com>
1195 Ulrich Weigand <uweigand@de.ibm.com>
1198 * loop.c (loop_givs_rescan): Do not ICE if unable to reduce an IV
1201 2005-07-14 Ulrich Weigand <uweigand@de.ibm.com>
1203 * config/s390/s390.h (TARGET_TPF_PROFILING): Add default definition.
1205 2005-07-14 Steve Ellcey <sje@cup.hp.com>
1207 * config/ia64/ia64.c (ia64_output_dwarf_dtprel): Support ILP32 mode.
1209 2005-07-14 Richard Guenther <rguenther@suse.de>
1212 * config/i386/i386-protos.h (ix86_function_value): Change
1213 prototype to match new target hook.
1214 * config/i386/i386.c (ix86_value_regno): Change prototype
1215 to take extra type argument.
1216 (TARGET_FUNCTION_VALUE): Define.
1217 (ix86_function_ok_for_sibcall): Pass extra argument to
1218 ix86_value_regno, check return slot rtx for exact match.
1219 (ix86_function_value): Take extra parameter. Dispatch to
1220 ix86_value_regno with fndecl/fntype as provided.
1221 (ix86_value_regno): Handle extra type argument.
1222 * config/i386/i386.h (FUNCTION_VALUE): No longer define.
1224 * testsuite/gcc.target/i386/sseregparm-3.c: New testcase.
1225 * testsuite/gcc.target/i386/sseregparm-4.c: New testcase.
1226 * testsuite/gcc.target/i386/sseregparm-5.c: New testcase.
1227 * testsuite/gcc.target/i386/sseregparm-6.c: New testcase.
1228 * testsuite/gcc.target/i386/sseregparm-7.c: New testcase.
1230 2005-07-14 Richard Guenther <rguenther@suse.de>
1232 * Makefile.in (explow.o, reg-stack.o): Depend on target.h.
1233 * calls.c (expand_call): Pass fntype to hard_function_value.
1234 (emit_library_call_value_1): Likewise.
1235 * explow.c: Include target.h.
1236 (hard_function_value): Take extra argument, the fntype.
1237 Use new target hook for function_value.
1238 * expr.h (hard_function_value): Change prototype.
1239 * function.c (aggregate_value_p): Pass 0 as fntype to
1240 hard_function_value.
1241 (assign_parms): Use new target hook for function_value.
1242 Pass 0 as fntype to hard_function_value.
1243 (expand_function_end): Likewise.
1244 * reg-stack.c: Include target.h.
1245 (stack_result): Use new target hook for function_value.
1246 * target-def.h: New target hook function_value.
1247 * target.h: Likewise.
1248 * targhooks.c (default_function_value): New function.
1249 * targhooks.h (default_function_value): Declare.
1251 2005-07-13 Ian Lance Taylor <ian@airs.com>
1253 * config/mips/mips.h (CLZ_DEFINED_VALUE_AT_ZERO): Define.
1255 2005-07-14 Jan Hubicka <jh@suse.cz>
1257 * tree-dfa.c (dump_variable): Use default_def function.
1258 * tree-ssa-alias.c (dump_points_to_info): Likewise.
1259 * tree-ssa.c (verify_use): Likewise.
1260 * tree-ssanames.c (release_ssa_name): Likewise.
1261 * tree-tailcall.c (eliminate_tail_call): Likewise.
1262 (tree_optimize_tail_calls_1): Likewise.
1263 * tree-vrp.c (get_value_range): Likewise.
1265 2005-07-14 Ben Elliston <bje@au.ibm.com>
1267 * gcc.c (main): Compare language[0] with '*' when iterating over
1270 2005-07-13 Adrian Strae½tling <straetling@de.ibm.com>
1272 * config/s390/s390.c: (s390_cc_modes_compatible): Move before
1273 "s390_emit_compare". Add handling of CCZ1mode.
1274 (s390_canonicalize_comparison): Simplify cascaded EQ, NE.
1275 (390_emit_compare): Use "s390_cc_modes_compatible" for mode
1277 (s390_branch_condition_mask): Add CCZ1mode handling.
1278 * config/s390/s390.md: ("seq", "*seq"): New pattern.
1279 ("sync_compare_and_swap_cc<mode>", "*sync_compare_and_swap_cc<mode>"):
1280 Use CCZ1mode instead of CCZmode.
1281 * config/s390/s390-modes.def: Add CCZ1mode. Comment new mode.
1283 2006-07-13 Adrian Strae½tling <straetling@de.ibm.com>
1285 * config/s390/s390.md: ("cmpstrsi", "*cmpstr<mode>"): New
1287 ("strlen<mode>", "*strlen<mode>"): Use hard reg 0 in SImode.
1289 2005-07-13 Eric Christopher <echristo@redhat.com>
1291 * config/mips/mips.c (mips_canonicalize_comparison): New.
1292 (mips_emit_int_relational): Use.
1294 2005-07-13 Eric Christopher <echristo@redhat.com>
1296 * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
1298 * config/s390/s390.md: Include tpf.md. Move tpf specific
1300 * config/s390/tpf.md: To here.
1301 * config/s390/s390.opt: Move tpf specific options...
1302 * config/s390/tpf.opt: to here. Add mmain option.
1303 * config/s390/tpf-unwind.h: Remove unnecessary defines.
1304 * config/s390/tpf.h: Rewrite.
1306 2005-07-13 H.J. Lu <hongjiu.lu@intel.com>
1308 * doc/tm.texi: Remove @xref{Cross-profiling}.
1310 2005-07-13 Jeff Law <law@redhat.com>
1312 * fold-const.c (fold_binary): When comparing two simple ADDR_EXPR
1313 expressions, test their _DECL operands for pointer equality rather
1314 than using operand_equal_p.
1316 2005-07-13 H.J. Lu <hongjiu.lu@intel.com>
1318 * config/alpha/linux.h (TARGET_HAS_F_SETLKW): Renamed to ...
1319 (TARGET_POSIX_IO): This.
1320 * config/darwin.h: Likewise.
1321 * config/freebsd.h: Likewise.
1322 * config/linux.h: Likewise.
1323 * config/lynx.h: Likewise.
1324 * config/netbsd.h: Likewise.
1325 * config/rs6000/linux64.h: Likewise.
1326 * config/rs6000/linux.h: Likewise.
1327 * config/s390/tpf.h: Likewise.
1328 * config/sh/embed-elf.h: Likewise.
1329 * config/sparc/linux64.h: Likewise.
1330 * config/sparc/linux.h: Likewise.
1331 * config/svr4.h: Likewise.
1332 * gcov-io.h: Likewise.
1334 * doc/tm.texi: Updated.
1336 * libgcov.c (create_file_directory): Defined only if
1337 TARGET_POSIX_IO is defined.
1338 (gcov_exit): Call create_file_directory only if TARGET_POSIX_IO
1341 2005-07-13 Jan Hubicka <jh@suse.cz>
1343 * tree-ssa-operands.c (get_expr_operands): Fix typo in previous patch.
1345 2005-07-13 David Edelsohn <edelsohn@gnu.org>
1347 * tree-ssa-dom.c (lookup_avail_expr): Do not pass member in freed
1348 structure as argument.
1350 2005-07-13 Paolo Bonzini <bonzini@gnu.org>
1352 PR tree-optimization/21921
1353 * tree-iterator.c (tsi_link_before): Support the case when
1354 tsi_end_p (tsi) == true.
1356 2005-07-12 Zdenek Dvorak <dvorakz@suse.cz>
1358 PR tree-optimization/22442
1359 * tree-chrec.c (chrec_fold_multiply_poly_poly): Associate chrecs
1362 2005-07-12 Zdenek Dvorak <dvorakz@suse.cz>
1364 PR rtl-optimization/20376
1365 * toplev.c (process_options): Enable -fweb and -frename-registers when
1367 * doc/invoke.texi: Update the information about when -fweb and
1368 -frename-registers are enabled.
1370 2005-07-12 Andrew Pinski <pinskia@physics.uc.edu>
1373 * tree-ssa-pre.c (eliminate): Convert the sprime to the correct type
1374 if *rhs_p is not a SSA_NAME.
1376 2005-07-12 Daniel Berlin <dberlin@dberlin.org>
1378 Fix PR tree-optimization/22422
1379 * tree-ssa-structalias.c (struct variable_info): Add flag for
1381 (get_varinfo): Now a static function.
1382 (new_varinfo): init has_union and is_special_var to false.
1383 (solution_set_add): Check has_union.
1384 (do_da_constraint): Move temporary variable so it gets reset
1386 Also check for special variable.
1387 (do_ds_constraint): Ditto.
1388 (do_sd_constraint): Ditto.
1389 (do_structure_copy): Check for special variable.
1390 (find_func_aliases): Ditto.
1391 (init_base_vars): Set special vars properly.
1393 2005-07-13 Jan Hubicka <jh@suse.cz>
1395 * cfgexpand.c (expand_one_stack_var): Do not expand variables when we
1398 * tree-ssa-operands.c (parse_ssa_operands): Fix formatting.
1399 (get_expr_operands): Fix thinko wrt flags and subvars.
1401 PR tree-optimize/22379
1402 * tree-inline.c (expand_call_inline): Do not output sorry in early
1405 2005-07-12 Dale Johannesen <dalej@apple.com>
1407 * config/rs6000.c (rs6000_rtx_cost): Move FLOAT_EXTEND.
1409 2005-07-12 Andrew Pinski <pinskia@physics.uc.edu>
1412 * host-linux.h: Include limits.h.
1414 2005-07-12 Dale Johannesen <dalej@apple.com>
1416 * expr.c (compress_float_constant): Add cost check.
1417 * config/rs6000.c (rs6000_rtx_cost): Adjust FLOAT_EXTEND cost.
1419 2005-07-12 Dale Johannesen <dalej@apple.com>
1421 * gcc.target/i386/compress-float-sse.c: New.
1422 * gcc.target/i386/compress-float-sse-pic.c: New.
1423 * gcc.target/i386/compress-float-387.c: New.
1424 * gcc.target/i386/compress-float-387-pic.c: New.
1425 * gcc.dg/compress-float-ppc.c: New.
1426 * gcc.dg/compress-float-ppc-pic.c: New.
1428 2005-07-12 Eric Christopher <echristo@redhat.com>
1430 * config.gcc (s390x-ibm-tpf*): Add extra_options. Remove
1432 * config/s390/s390.md: Include tpf.md. Move tpf specific
1434 * config/s390/tpf.md: To here.
1435 * config/s390/s390.opt: Move tpf specific options...
1436 * config/s390/tpf.opt: to here. Add mmain option.
1437 * config/s390/tpf-unwind.h: Remove unnecessary defines.
1438 * config/s390/tpf.h: Rewrite.
1440 2005-07-12 Eric Christopher <echristo@redhat.com>
1442 * gcc.c (struct infile): Update comment for language.
1443 (main): Rewrite input file resetting code.
1445 2005-07-12 Andrew Pinski <pinskia@physics.uc.edu>
1448 * tree-ssa-dom.c (eliminate_redundant_computations): Reject the prop if
1449 requiring a cast in a non RHS of modify_expr. Add a cast when required.
1450 (lookup_avail_expr): Use constant_boolean_node instead
1451 of boolean_false_node/boolean_true_node.
1453 2005-07-12 Ben Elliston <bje@au.ibm.com>
1455 * tree-cfg.c (dump_cfg_stats): Add a new fmt_str_2 format string
1456 and use it when printing num_edges.
1458 2005-07-12 Bernd Schmidt <bernd.schmidt@analog.com>
1460 * doc/extend.texi (Blackfin Built-in Functions): New section.
1461 * doc/invoke.texi (mcsync-anomaly, mno-csync-anomaly): Fix the
1464 2005-07-12 Adrian Straetling <straetling@de.ibm.com>
1466 * builtins.c: (expand_builtin_memcmp, expand_builtin_strncmp):
1467 s/cmpstrsi/cmpstrnsi
1468 (expand_builtin_strcmp): Rewrite to support both 'cmpstrsi' and
1470 * optabs.c: (prepare_cmp_insn): Add availability of 'cmpstrn'.
1471 (init_optabs): Initialize cmpstrn_optab.
1472 * optabs.h: (enum insn_code cmpstrn_optab): Declare.
1473 * genopinit.c: (optabs[]): Add 'cmpstrn' to initialisation.
1474 * expr.c: (enum insn_code cmpstrn_optab): Declare.
1475 * config/i386/i386.md: s/cmpstr/cmpstrn
1476 * config/c4x/c4x.md: s/cmpstr/cmpstrn
1477 * doc/md.texi: Update documentation.
1479 2005-07-11 Richard Henderson <rth@redhat.com>
1481 * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use
1482 build_va_arg_indirect_ref.
1483 (alpha_gimplify_va_arg): Likewise.
1484 * config/c4x/c4x.c (c4x_gimplify_va_arg_expr): Likewise.
1485 * config/i860/i860.c (i860_gimplify_va_arg_expr): Likewise.
1486 * config/mips/mips.c (mips_gimplify_va_arg_expr): Likewise.
1487 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
1488 * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
1489 * config/stormy16/stormy16.c (xstormy16_expand_builtin_va_arg):
1491 * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
1493 2005-07-12 Zdenek Dvorak <dvorakz@suse.cz>
1495 * tree-flow.h (remove_empty_loops, single_dom_exit): Declare.
1496 * passes.c (init_optimization_passes): Add pass_empty_loop.
1497 * tree-pass.h (pass_empty_loop): Declare.
1498 * tree-ssa-loop-ivcanon.c (empty_loop_p, remove_empty_loop,
1499 try_remove_empty_loop, remove_empty_loops): New functions.
1500 * tree-ssa-loop-ivopts.c (single_dom_exit): Export.
1501 * tree-ssa-loop.c (tree_ssa_empty_loop, pass_empty_loop): New.
1503 2005-07-12 Peter Barada <peter@the-baradas.com>
1507 * config/m68k/m68k.h (HARD_REGNO_MODE_OK): Disallow bytes
1508 in address registers.
1509 * config/m68k/m68k.c (hard_regno_mode_ok): Likewise.
1510 * config/m68k/m68k.md: Replace 's' with 'i' in 4th
1511 alternative of addsi3_5200.
1513 2005-07-11 Ian Lance Taylor <ian@airs.com>
1515 * config/mips/mips.md (ffs<mode>2): Remove.
1517 2005-07-11 Ian Lance Taylor <ian@airs.com>
1519 * doc/tree-ssa.texi (Cleanups): Improve description of
1521 (GIMPLE Exception Handling): Clarify TRY_CATCH_EXPR cases.
1523 2005-07-11 Daniel Berlin <dberlin@dberlin.org>
1525 * print-tree.c (print_node): Use DECL_ARGUMENT_FLD.
1526 * tree.h (DECL_ARGUMENT_FLD): New macro.
1528 2005-07-11 Daniel Berlin <dberlin@dberlin.org>
1530 Fix PR tree-optimization/22404
1532 * tree-ssa-structalias.c (create_variable_info_for): Use
1535 2005-07-11 Bernd Schmidt <bernd.schmidt@analog.com>
1537 * config/bfin/bfin.md (cmpsi, compare_eq, compare_ne, compare_lt,
1538 compare_le, compare_leu, compare_ltu): Use reg_or_const_int_operand
1539 for second comparison operand.
1540 * config/bfin/predicates.md (reg_or_const_int_operand): New.
1542 * config/bfin/bfin.md (define_attr "type"): Add "sync".
1543 (define_insn_reservation "alu"): Likewise.
1544 (csync, ssync): Now of type sync.
1545 * config/bfin/bfin.h (TARGET_DEFAULT): Defaults to
1546 -mcsync-anomaly -mspecld-anomaly.
1547 * config/bfin/bfin.opt (mcsync): Remove.
1548 (mcsync-anomaly, mspecld-anomaly): Add.
1549 * config/bfin/bfin.c: Include "insn-codes.h".
1550 (bfin_reorg): Extend to handle the CSYNC anomaly as well.
1551 (TARGET_DEFAULT_TARGET_FLAGS): New.
1552 * doc/invoke.texi: Document -mcsync-anomaly, -mspecld-anomaly.
1554 2005-07-11 Steven Bosscher <stevenb@suse.de>
1556 * basic-block.h: Give the BB flags enum a name, bb_flags.
1557 Add new flags BB_FORWARDER_BLOCK, and BB_NONTHREADABLE_BLOCK.
1558 * cfgcleanup.c (enum bb_flags): Remove here.
1559 (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG): Remove.
1560 (notice_new_block): Set/test bb->flags instead of aux via BB_FLAGS.
1561 (update_forwarder_flag): Likewise.
1562 (thread_jump): Likewise.
1563 (try_forward_edges): Likewise.
1564 (try_optimize_cfg): Likewise. Clear bb->flags before updating the
1565 forwarder flags. Don't clear bb->aux for all basic blocks. Only
1566 reset the BB_FORWARDER_BLOCK and BB_NONTHREADABLE_BLOCK flags.
1568 2005-07-11 Richard Guenther <rguenther@suse.de>
1570 * config/i386/i386.opt: New target option -msseregparm.
1571 * config/i386/i386.c (override_options): Error out for
1572 -msseregparm but no SSE support.
1573 (ix86_function_sseregparm): Check for global sseregparm.
1574 * doc/invoke.texi: Document -msseregparm.
1576 2005-07-11 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1578 * config.gcc (m32r-*-linux*): Use the default extra_parts.
1579 (m32rle-*-linux*): Ditto.
1581 2005-07-11 Jakub Jelinek <jakub@redhat.com>
1583 * cfgexpand.c (stack_protect_classify_type): Use TYPE_SIZE_UNIT (type)
1584 instead of TYPE_MAX_VALUE (TYPE_DOMAIN (type)) to get array size in
1587 2005-07-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1591 * loop.c (loop_givs_rescan): Use expand_simple_binop instead of
1592 gen_rtx_MINUS to handle non-replaceable (plus ((x) (const)).
1594 2005-07-07 Daniel Berlin <dberlin@dberlin.org>
1596 * tree-ssa-structalias.c (struct variable_info): Heapify complex.
1597 (varmap): Heapify varmap.
1598 (constraints): Heapify constraints.
1599 (struct constraint_graph): Heapify succs and preds.
1600 (constraint_vec_find): Update for heapification.
1601 (constraint_set_union): Ditto.
1602 (insert_into_complex): Ditto.
1603 (constraint_edge_vec_find): Ditto.
1604 (erase_graph_self_edge): Ditto.
1605 (add_graph_edge): Ditto.
1606 (get_graph_weights): Ditto.
1607 (merge_graph_nodes): Ditto.
1608 (build_constraint_graph): Ditto.
1609 (topo_visit): Ditto.
1610 (solve_graph): Ditto.
1611 (create_variable_info_for): Ditto.
1612 (init_base_vars): Ditto.
1613 (delete_points_to_sets): Free graph, varmap, and complex constraints.
1614 (condese_varmap_nodes): Free complex vector.
1615 (clear_edges_for_node): Clear succs and preds vector.
1617 2005-07-10 Daniel Berlin <dberlin@dberlin.org>
1619 * tree-ssa-structalias.c (update_alias_info): Change counting of
1620 references to not include vdefs.
1622 2005-07-10 Daniel Berlin <dberlin@dberlin.org>
1624 * tree-ssa-alias.c (free_used_part_map): Add missing free.
1627 2005-07-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1629 * pa.c (pa_commutative_p): Make PLUS commutative when
1630 TARGET_NO_SPACE_REGS is true.
1632 2005-07-09 Diego Novillo <dnovillo@redhat.com>
1634 * Makefile.in (tree-ssa-alias.o): Depend on tree-ssa-structalias.h
1635 * tree-cfg.c (CHECK_OP): Only test for is_gimple_val.
1636 * tree-dfa.c (dump_subvars_for): New.
1637 (debug_subvars_for): New.
1638 (dump_variable): Show subvariables if VAR has them.
1639 * tree-flow-inline.h (get_subvar_at): New.
1640 (overlap_subvar): Change offset and size to unsigned HOST_WIDE_INT.
1641 * tree-flow.h (struct ptr_info_def): Remove field pt_malloc.
1643 (struct subvar): Change fields offset and size to unsigned
1645 (dump_subvars_for): Declare.
1646 (debug_subvars_for): Declare.
1647 (get_subvar_at): Declare.
1648 (okay_component_ref_for_subvars): Change 2nd and 3rd argument
1649 to unsigned HOST_WIDE_INT *.
1650 (overlap_subvar): Likewise.
1651 * tree-gimple.c (is_gimple_reg): Always return false for
1652 SFTs and memory tags.
1653 * tree-pass.h (pass_build_pta, pass_del_pta): Remove.
1655 * tree-ssa-alias.c: Include tree-ssa-structalias.h.
1656 (compute_may_aliases): Call compute_points_to_sets.
1657 (collect_points_to_info_for): Remove.
1658 (compute_points_to_and_addr_escape): Remove.
1659 (delete_alias_info): Call delete_points_to_sets.
1660 (compute_flow_sensitive_aliasing): If the call to
1661 find_what_p_points_to returns false, call set_pt_anything.
1662 (add_may_alias): Set TREE_ADDRESSABLE when adding a new alias.
1663 (set_pt_anything): Clear pi->pt_vars.
1664 (set_pt_malloc): Remove.
1665 (merge_pointed_to_info): Remove.
1666 (add_pointed_to_expr): Remove.
1667 (add_pointed_to_var): Remove.
1668 (collect_points_to_info_r): Remove.
1669 (is_escape_site): Make extern.
1671 (create_overlap_variables_for): Call it.
1672 * tree-ssa-copy.c (merge_alias_info): Never merge
1673 flow-sensitive alias information.
1674 * tree-ssa-operands.c (get_expr_operands): Adjust variables
1675 offset and size to be unsigned HOST_WIDE_INT.
1676 (add_to_addressable_set): Rename from note_addressable.
1677 Set TREE_ADDRESSABLE as the variables are added to the set.
1679 (add_stmt_operand): Do not try to micro-optimize unmodifiable
1680 operands into VUSEs when adding V_MAY_DEFs for members in an
1682 * tree-ssa-operands.h (add_to_addressable_set): Declare.
1683 * tree-ssa-structalias.c: Include tree-ssa-structalias.h last.
1684 (struct variable_info): Add bitfield is_heap_var.
1685 (var_anyoffset, anyoffset_tree, anyoffset_id): Declare.
1686 (new_var_info): Initialize is_heap_var.
1687 (get_constraint_for): Add HEAP variables to the symbol table.
1688 Mark them with is_heap_var.
1689 (update_alias_info): New. Taken mostly from the old
1690 compute_points_to_and_addr_escape.
1691 (handle_ptr_arith): New.
1692 (find_func_aliases): Call update_alias_info.
1693 Call handle_ptr_info for tcc_binary expressions.
1694 Call mark_stmt_modified.
1695 (create_variable_info_for): If DECL has subvars, do not create
1696 variables for its subvars. Always add all the fields.
1697 (set_uids_in_ptset): If the solution includes ANYOFFSET and
1698 SFTs, then add all the SFTs of the structure.
1699 If VI->DECL is an aggregate with subvariables, add the SFT at
1701 (find_what_p_points_to): If VI is an artificial variable,
1702 translate to bitfields in SSA_NAME_PTR_INFO.
1703 If the solution is empty, set pi->pt_vars to NULL
1704 (init_base_vars): Create ANYOFFSET.
1705 (compute_points_to_sets): Rename from create_alias_vars.
1707 (pass_build_pta): Remove.
1708 (delete_points_to_sets): Rename from delete_alias_vars.
1709 (pass_del_pta): Remove.
1710 * tree-ssa-structalias.h (struct alias_info): Move from
1712 (NUM_REFERENCES, NUM_REFERENCES_CLEAR, NUM_REFERENCES_INC,
1713 NUM_REFERENCES_SET): Likewise.
1714 (compute_points_to_sets, delete_points_to_sets): Declare.
1716 2005-07-09 Richard Henderson <rth@redhat.com>
1718 * config/alpha/alpha.c (emit_insxl, alpha_expand_compare_and_swap_12,
1719 alpha_split_compare_and_swap_12, alpha_expand_lock_test_and_set_12,
1720 alpha_split_lock_test_and_set_12): New functions.
1721 * config/alpha/alpha-protos.h: Update.
1722 * config/alpha/alpha.md (UNSPEC_MB, UNSPEC_ATOMIC,
1723 UNSPEC_CMPXCHG, UNSPEC_XCHG): Rename from UNSPECV_FOO.
1724 * config/alpha/sync.md (I12MODE): New.
1725 (memory_barrier, mb_internal): Use unspec instead of unspec_volatile.
1726 (sync_<fetchop_name><I48MODE>): Likewise.
1727 (sync_nand<I48MODE>): Likewise.
1728 (sync_old_<fetchop_name><I48MODE>): Likewise.
1729 (sync_new_<fetchop_name><I48MODE>): Likewise.
1730 (sync_old_nand<I48MODE>, sync_new_nand<I48MODE>): Likewise.
1731 (sync_compare_and_swap<I48MODE>): Likewise.
1732 (sync_lock_test_and_set<I48MODE>): Likewise.
1733 (sync_compare_and_swap<I12MODE>): New.
1734 (sync_compare_and_swap<I12MODE>_1): New.
1735 (sync_lock_test_and_set<I12MODE>): New.
1736 (sync_lock_test_and_set<I12MODE>_1): New.
1738 2005-07-09 Diego Novillo <dnovillo@redhat.com>
1742 * passes.c (execute_todo): Cleanup the CFG before updating SSA.
1744 2005-07-09 Jakub Jelinek <jakub@redhat.com>
1746 * config/i386/i386.c (output_set_got): Don't omit OFFSET FLAT:
1747 in Intel syntax add %reg, OFFSET FLAT:_GLOBAL_OFFSET_TABLE_+(.-.Lx).
1749 2005-07-09 Richard SAndiford <richard@codesourcery.com>
1752 * config/mips/elf.h (NO_IMPLICIT_EXTERN_C): Define.
1754 2005-07-08 David Edelsohn <edelsohn@gnu.org>
1756 * config/rs6000/sync.md (load_locked_<mode>): Use Z for
1757 memory_operand constraint.
1758 (store_conditional_<mode>): Same.
1759 (sync_compare_and_swap<mode>): Same.
1760 (sync_lock_test_and_set<mode>): Same.
1762 2005-07-08 Hans-Peter Nilsson <hp@axis.com>
1764 Rewrite PIC support to more closely model actual instructions.
1765 * config/cris/cris-protos.h (cris_gotless_symbol, cris_got_symbol)
1766 (cris_symbol): Remove prototypes for removed functions.
1767 (cris_pic_symbol_type_of, cris_valid_pic_const)
1768 (cris_expand_pic_call_address): Prototypes for new functions.
1769 * config/cris/cris/cris.c (cris_pic_sympart_only): Remove unused
1771 (cris_print_operand) <case 'v', 'P'>: Remove cases for unused
1773 <case ':'>: Add case for new punctuation character.
1774 <case 'd'>: Temporarily set flag_pic = 2 instead of incorrectly
1775 emitting (extra) PIC modifier.
1776 <case UNSPEC>: Do not assert for PLT.
1777 (cris_initial_frame_pointer_offset, cris_simple_epilogue)
1778 (cris_expand_prologue, cris_expand_epilogue): Check
1779 for pic_offset_table_rtx usage instead of taking
1780 current_function_uses_pic_offset_table as the final word.
1781 (cris_rtx_costs, cris_address_cost, cris_side_effect_mode_ok):
1782 Remove flag_pic difference.
1783 (cris_valid_pic_const, cris_pic_symbol_type_of): New functions,
1784 the moral equivalents of...
1785 (cris_symbol, cris_gotless_symbol, cris_got_symbol): Remove
1787 (cris_legitimate_pic_operand): Just call cris_valid_pic_const.
1788 (cris_handle_option): Mark ARG as unused.
1789 (cris_expand_pic_call_address): New worker function for "call",
1791 (cris_asm_output_symbol_ref, cris_asm_output_label_ref): Do not
1792 output PIC constructs here.
1793 (cris_output_addr_const_extra): Changes for emitting PIC modifiers
1794 as symbol-specific modifers, not whole or part of operands.
1795 * config/cris/cris/cris.h (EXTRA_CONSTRAINT): Remove 'U' case.
1796 (EXTRA_CONSTRAINT_S): Changed semantics: allow only CONST-wrapped
1797 constants and flag_pic.
1798 (CONSTANT_INDEX_P): Adjust for new functions.
1799 (enum cris_pic_symbol_type): New helper type.
1800 (PRINT_OPERAND_PUNCT_VALID_P): Add ':'.
1801 * config/cris/cris/cris.md (CRIS_UNSPEC_GOTREL)
1802 (CRIS_UNSPEC_GOTREAD, CRIS_UNSPEC_PLTGOTREAD): New
1804 ("movsi"): Emit actual instructions for GOT and relative access.
1805 ("*movsi_got_load"): New pattern to set up the register holding
1807 ("*movsi_internal"): Operand 1 is not a plain general_operand.
1808 Adjust FIXME for 'S'.
1809 <output for 'S' alternative>: Sanity-check UNSPEC types for PIC.
1810 Use "movs" for -fpic cases.
1811 ("addsi3"): Add alternative for 'S'; use adds.w when possible.
1812 ("uminsi3","*expanded_call_value"): Remove 'S' alternative.
1813 ("call", "call_value"): Just call cris_expand_pic_call_address for
1815 ("*expanded_call_no_gotplt", "*expanded_call_value_no_gotplt"):
1816 Remove special pattern.
1817 ("*expanded_call_side", "*expanded_call_value_side"): New
1819 (gotplt-to-plt, gotplt-to-plt-side-call)
1820 (gotplt-to-plt-side-call-value, gotplt-to-plt-side): New
1822 * config/cris/cris/predicates.md
1823 ("cris_general_operand_or_gotless_symbol"): Remove unused
1825 ("cris_general_operand_or_symbol"): Adjust for new functions.
1827 2005-07-08 Andrew Pinski <pinskia@physics.uc.edu>
1829 * config/darwin.h (TARGET_C99_FUNCTIONS): Define to 1.
1831 2005-07-08 Daniel Berlin <dberlin@dberlin.org>
1833 * Makefile.in (TREE_H): Add treestruct.def.
1834 (c-decl.o): Add pointer-set.h
1835 * c-decl.c (diagnose_mismatched_decls): Don't attempt to look at
1836 visibility on regular DECL's.
1837 (merge_decls): Fix the copying of decl nodes of various types for
1838 the new structures. Don't update RTL, section name, weak status,
1839 etc, on DECL's without RTL.
1840 (grokdeclarator): DECL_ARG_TYPE_AS_WRITTEN is gone.
1841 Don't check volatile on non-variable types.
1842 (store_parm_decls_oldstyle): Use pointer_set instead of DECL_WEAK
1843 to check whether we have seen arguments.
1844 * c-objc-common.c (c_tree_printer): Reverse order of tests so that
1845 flag is checked before field (flag is common, field is not).
1846 * dwarf2out.c (decl_ultimate_origin): Only DECL's with
1847 TS_DECL_COMMON could have an origin.
1848 (add_location_or_const_value_attribute): Don't check section name
1849 on non-var/function decls.
1850 (dwarf2out_var_location): Reverse order of tests.
1851 * emit-rtl.c (set_reg_attrs_for_parm): DECL_CHECK is dead, replace
1852 with DECL_WRTL_CHECK.
1853 * expmed.c (make_tree): rtl is now in decl_with_rtl.
1854 * fold-const.c (fold_binary): Don't check weakness on
1855 non-var/function decls.
1856 (tree_expr_nonzero_p): Ditto.
1857 (fold_checksum_tree): Use tree_decl_extra as sizeof
1859 * ggc-page.c (extra_order_size_table): Add sizes for
1860 tree_decl_non_common, tree_parm_decl, tree_var_decl, and
1862 * gimplify.c (gimplify_bind_expr): Only set
1863 DECL_SEEN_IN_BIND_EXPR_P on VAR_DECL.
1864 * integrate.c (copy_decl_for_inlining): Don't set RTL on decl's
1866 * langhooks-def.h (LANG_HOOK_INIT_TS): New.
1867 * langhooks.h (init_ts). New langhook.
1868 * passes.c (rest_of_decl_compilation): Reverse order of tests.
1869 * print-tree.c (print_node): Update to only print fields that
1870 exist in the structures the passed decl has.
1871 * toplev.c (wrapup_global_declarations): Don't reset
1872 DECL_DEFER_OUTPUT on DECL's that don't contain it.
1873 * tree-browser.c (browse_tree): DECL_ARG_TYPE_AS_WRITTEN removed.
1874 * tree-inline.c (remap_decl): Ditto.
1875 * tree-outof-ssa.c (create_temp): Reverse order of tests.
1876 * tree-pretty-print.c (print_declaration): Don't print
1877 DECL_REGISTER on things that don't contain it.
1878 * tree-vrp.c (expr_computes_nonzero): Don't check weakness on
1879 non-var/function decls.
1880 * tree.c (tree_contains_struct): New structure.
1881 (init_priority_for_decl): New hashtable.
1882 (tree_int_map): New structure.
1883 (tree_int_map_eq): New function.
1884 (tree_int_map_marked_p): Ditto.
1885 (tree_int_map_hash): Ditto.
1886 (tree_map): Move to tree.h.
1887 (tree_map_eq): Externalize.
1888 (tree_map_hash): Ditto.
1889 (tree_map_marked_p): Ditto.
1890 (init_ttree): Set up tree_contains_struct and call langhook.
1891 (decl_assembler_name): Use DECL_NON_COMMON_CHECK..
1892 (tree_code_size): Update for new structures.
1893 (tree_node_structure): Update for new structures.
1894 (make_node_stat): Don't try to set DECL_IN_SYSTEM_HEADER on decls
1896 (copy_node_stat): Copy init priority.
1897 (build_decl_stat): Ditto for visibility.
1898 (ts_enum_names): New.
1899 (tree_contains_struct_check_failed): New function.
1900 (decl_init_priority_lookup): Ditto.
1901 (decl_init_priority_insert): Ditto.
1902 * treestruct.def: New file.
1903 * tree.h (CODE_CONTAINS_STRUCT): New macro.
1904 (CONTAINS_STRUCT_CHECK): Ditto.
1905 (tree_contains_struct_check_failed): New prototype.
1906 (DECL_CHECK): Removed.
1907 (DECL_MINIMAL_CHECK): New.
1908 (DECL_COMMON_CHECK): Ditto.
1909 (DECL_WRTL_CHECK): Ditto.
1910 (DECL_NON_COMMON_CHECK): Ditto.
1911 (DECL_WITH_VIS_CHECK): Ditto.
1912 (VAR_OR_FUNCTION_DECL_P): Ditto
1913 (struct tree_decl_minimal): New structure.
1914 (struct tree_decl_common): Ditto.
1915 (struct tree_decl_with_rtl): Ditto.
1916 (struct tree_decl_with_vis): Ditto.
1917 (struct tree_decl_non_common): Ditto.
1918 (struct tree_field_decl): Ditto.
1919 (struct tree_parm_decl): Ditto.
1920 (struct tree_var_decl): Ditto.
1921 (struct tree_function_decl): Ditto.
1922 (struct tree_const_decl): Ditto.
1923 (struct tree_result_decl): Ditto.
1924 (union tree_node): Add new structures.
1925 * var-tracking.c (track_expr_p): Reverse order of tests.
1927 * doc/c-tree.texi: Add documentation on DECL node internal structure.
1929 2005-07-08 Kazu Hirata <kazu@codesourcery.com>
1931 * cfgexpand.c (tree_expand_cfg): Don't use FINALIZE_PIC.
1932 * system.h: Poison FINALIZE_PIC.
1933 * doc/tm.texi (FINALIZE_PIC): Remove.
1935 2005-07-08 Andrew Pinski <pinskia@physics.uc.edu>
1938 * tree-ssa-propagate.c (fold_predicate_in): Convert the value
1939 to the correct type if we have a MODIFY_EXPR.
1941 2005-07-08 Kazu Hirata <kazu@codesourcery.com>
1943 PR tree-optimization/22360
1944 * tree.c (upper_bound_in_type): Fix calculations for casting
1945 to a non-wider signed type and casting a signed value to a
1946 wider unsigned type.
1947 (lower_bound_in_type): Fix calculations for casting to a
1948 non-wider signed type.
1950 PR tree-optimization/20139
1951 * tree-cfg.c (remove_bb): Check in_ssa_p before calling
1953 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Call
1954 fold_cond_expr_cond.
1955 * tree-ssanames.c (release_defs): Assert in_ssa_p.
1956 * tree.c (upper_bound_in_type, lower_bound_in_type): Rewrite.
1958 2005-07-08 Andrew Pinski <pinskia@physics.uc.edu>
1961 * tree-complex.c (expand_complex_libcall): Produce
1962 REALPART_EXPR/IMAGPART_EXPR with the correct type.
1964 2005-07-08 Kenneth Zadeck <zadeck@naturalbridge.com>
1966 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
1967 bitmap_and_compl_into, bitmap_xor, bitmap_xor_into): Removed "a !=
1968 b" assert and inserted fastpath code for this case.
1969 (bitmap_ior): Removed "a != b" assert.
1971 2005-07-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1973 * config/m32r/linux.h (STARTFILE_SPEC): Support PIE.
1974 (ENDFILE_SPEC): Likewise.
1975 * config/m32r/m32r.h (ASM_SPEC): Likewise.
1977 * config/m32r/m32r.c (m32r_output_function_epilogue): Care for
1978 a large stack frame at epilogue.
1980 2005-07-08 David Billinghurst <David.Billinghurst@riotinto.com>
1982 * final.c: Include sdbout.h when required.
1984 2005-07-07 Geoffrey Keating <geoffk@apple.com>
1986 * config.gcc (*-*-darwin*): Only one target-specific header file
1988 (powerpc-*-darwin*): Add version-specific header files.
1989 * configure.in (gcc_AC_CHECK_DECLS): Add strverscmp.
1990 * config.in: Regenerate.
1991 * configure: Regenerate.
1992 * gcc.c: Include xregex.h.
1993 (version_compare_spec_function): New.
1994 (spec_function): Add version-compare.
1995 (replace_outfile_spec_function): Reformat comment.
1996 (compare_version_strings): New.
1997 * config/darwin-c.c (version_as_macro): New.
1998 (builtin_define): New.
1999 (darwin_cpp_builtins): New.
2000 * config/darwin-protos.h (darwin_cpp_builtins): New.
2001 * config/darwin.h (CPP_SPEC): Don't define APPLE_CC here.
2002 (LIB_SPEC): Make unconditional, update comment.
2003 (TARGET_C99_FUNCTIONS): Define.
2004 * config/darwin.opt: Sort.
2005 (mmacosx-version-min=): New.
2006 * config/darwin7.h: Delete.
2007 * config/darwin8.h: Delete.
2008 * config/i386/darwin.h (): Call darwin_cpp_builtins.
2009 * config/rs6000/darwin.h (): Call darwin_cpp_builtins.
2010 (TARGET_C99_FUNCTIONS): Define.
2011 * config/rs6000/darwin7.h: New.
2012 * config/rs6000/darwin8.h: New.
2013 * doc/invoke.texi (Darwin Options): Add -mmacosx-version-min=
2014 (-mmacosx-version-min): Document.
2016 2005-07-07 Ian Lance Taylor <ian@airs.com>
2018 * config/mips/mips.md (abs<mode>2) [GPR]: Remove.
2020 2005-07-07 John David Anglin <dave.anglin@nrc-crc.gc.ca>
2023 * loop.c (loop_givs_rescan): Check that v->new_reg is a REG.
2025 2005-07-07 Khem Raj <kraj@mvista.com>
2027 * config/arm/arm.c (thumb_output_function_prologue): Calculate offset
2028 in bytes, not words.
2030 2005-07-07 Paul Brook <paul@codesourcery.com>
2032 * config/arm/arm.c (arm_pad_arg_upward): Compare return value of
2033 DEFAULT_FUNCTION_ARG_PADDING to upward.
2035 2005-07-07 Richard Henderson <rth@redhat.com>
2037 * function.c (locate_and_pad_parm): Record parameter alignment in
2038 stack_alignment_needed.
2040 2005-07-07 David Edelsohn <edelsohn@gnu.org>
2042 * config/rs6000/rs6000.md (UNSPEC_SYNC, UNSPEC_SYNC_OP,
2043 UNSPEC_SYNC_SWAP, UNSPEC_LWSYNC, UNSPEC_ISYNC): Delete.
2044 (UNSPECV_LL, UNSPECV_SC, UNSPECV_ATOMIC, UNSPECV_SYNC,
2045 UNSPECV_SYNC_OP, UNSPECV_CMPXCHG, UNSPECV_LWSYNC, UNSPECV_ISYNC): New.
2046 (define_attr "type"): Add isync, sync, load_l, store_c.
2047 * config/rs6000/sync.md (memory_barrier): Change to define_expand.
2048 Create scratch volatile MEM.
2049 (sync_internal): New. POWER mnemonic is dcs, not ics. Attribute
2051 (load_locked_<mode>): New.
2052 (store_conditional_<mode>): New.
2053 (sync_compare_and_swap<mode>): Replace with splitter.
2054 (sync_lock_test_and_set<mode>): Replace with splitter.
2055 (sync_<fetchop><mode>): Change to unspec_volatile UNSPECV_SYNC_OP
2057 (isync): Change to unspec_volatile UNSPECV_ISYNC. POWER mnemonic
2058 is ics. Attribute isync.
2059 (lwsync): Change to unspec_volatile UNSPECV_LWSYNC. Attribute
2061 * config/rs6000/rs6000.c (rs6000_emit_sync): Use UNSPEC_VOLATILE
2062 and UNSPECV_SYNC_OP.
2063 (emit_unlikely_jump): New.
2064 (emit_load_locked): New.
2065 (emit_store_conditional): New.
2066 (rs6000_split_compare_and_swap): New.
2067 (rs6000_split_lock_test_and_set): New.
2068 (is_dispatch_slot_restricted): Return 4 for TYPE_LOAD_L,
2069 TYPE_STORE_C, TYPE_ISYNC, TYPE_SYNC.
2070 * config/rs6000/rs6000-protos.h (rs6000_split_compare_and_swap,
2071 rs6000_split_lock_test_and_set): Declare.
2072 * config/rs6000/{40x.md,440.md,603.md,6xx.md,7450.md,7xx.md,8540.md,
2073 mpc.md,power4.md,power5.md,rios1.md,rios2.md,rs64.md): Add load_l,
2074 store_c, isync, sync.
2076 2005-07-07 Kelley Cook <kcook@gcc.gnu.org>
2078 * Makefile.in (echo_quoted_to_gtyp): New template for outputing
2079 filenames to gtyp-gen.h.
2080 (s-typ-gen): Use it in place of for loops.
2082 2005-07-07 J"orn Rennecke <joern.rennecke@st.com>
2084 * hooks.c (hook_bool_rtx_int_false): New function.
2085 * hooks.h (hook_bool_rtx_int_false): Declare.
2086 * target-def.h (TARGET_COMMUTATIVE_P): Define.
2087 (TARGET_INITIALIZER): Add TARGET_COMMUTATIVE_P.
2088 * target.h (struct gcc_target): Add commutative_p member.
2089 * targhooks.c (hook_bool_rtx_commutative_p): New function.
2090 * targhooks.h (hook_bool_rtx_commutative_p): Declare.
2091 * pa.c (TARGET_COMMUTATIVE_P): Redefine.
2092 (pa_commutative_p): New function.
2093 * jump.c (target.h): Include.
2094 (rtx_renumbered_equal_p): Use targetm.commutative_p.
2095 * doc/tm.texi: Document TARGET_COMMUTATIVE_P.
2097 2005-07-07 Adrian Straetling <straetling@de.ibm.com>
2099 * config/s390/s390-protos.h (s390_expand_clrmem): Delete.
2100 (s390_expand_setmem): New.
2101 * config/s390/s390.c: Likewise.
2102 (print_shift_count_operand): Truncate to 12 bits instead of 6.
2104 * config/s390/s390.md: ("setmem<mode>"): Accept character as
2105 general_operand. Call new function "s390_expand_setmem".
2106 ("clrmem_long", "*clrmem_long"): Rewrite to ...
2107 ("setmem_long", "*setmem_long"): ... this.
2109 2005-07-07 Adrian Straetling <straetling@de.ibm.com>
2111 * config/s390/s390.c: (optimization_options): Enable
2112 TARGET_MVCLE at -Os.
2113 * doc/invoke.texi: Document changes in default behaviour.
2114 * config/s390/s390.opt: ("mvcle"): Fix typo: is "mmvcle".
2116 2005-07-07 Adrian Straetling <straetling@de.ibm.com>
2118 * expr.c: (set_storage_via_setmem): Convert opchar to mode
2119 defined by back-end.
2121 2005-07-07 Jakub Jelinek <jakub@redhat.com>
2123 * config/sparc/sparc.md (stack_protect_testsi): Put clobbers after
2124 all sets in the pattern.
2125 * config/rs6000/rs6000.md (stack_protect_testsi,
2126 stack_protect_testdi): Likewise.
2128 2005-07-06 Jeff Law <law@redhat.com>
2130 * tree-vrp.c (simplify_using_ranges): Kill.
2131 (vrp_finalize): Remove call to simplify_using_ranges.
2132 (simplify_stmt_using_ranges): New function extracted from
2133 simplify_using_ranges.
2134 (simplify_div_or_mod_using_ranges): Likewise.
2135 (simplify_abs_using_ranges): Likewise.
2136 (simplify_cond_using_ranges): New function.
2137 * tree-flow.h (simplify_stmt_using_ranges): Prototype.
2138 * tree-ssa-propagate.c (substitute_and_fold): Call
2139 simplify_stmt_using_ranges if we have range information.
2141 2005-07-06 James E. Wilson <wilson@specifixinc.com>
2143 * config/ia64/ia64.c (ia64_reorg): Check optimize before
2144 ia64_flag_schedule_isns2.
2146 * config/ia64/ia64.c (ia64_expand_movxf_movrf): Don't word swap when
2147 reading/writing general registers.
2148 (ia64_function_arg): Revert 2005-06-18 change.
2150 2005-07-06 John David Anglin <dave.anglin@nrc-crnc.gc.ca>
2152 * pa.c (legitimize_pic_address): Use gcc_assert instead of abort.
2153 (legitimize_tls_address): Use gcc_unreachable instead of abort.
2155 2005-07-06 Kaz Kojima <kkojima@gcc.gnu.org>
2157 * function.c (expand_function_end): Revert part of 2005-06-27
2158 patch. Do sjlj_emit_function_exit_after after return_label.
2160 2005-07-06 Kazu Hirata <kazu@codesourcery.com>
2162 * doc/install.texi (--disable-libssp): New.
2164 2005-07-06 Fariborz Jahanian <fjahanian@apple.com>
2166 * doc/invoke.texi: Update -fforce-mem documentation.
2167 * dojump.c (compare_from_rtx,do_compare_rtx_and_jump): Remove
2168 code for -fforce-mem.
2169 * expmed.c: (store_bit_field,store_fixed_bit_field,
2170 extract_bit_field): Ditto.
2171 * expr.c: (convert_move): Ditto.
2172 * optabs.c: (expand_binop,expand_twoval_unop,expand_twoval_binop,
2173 expand_unop,emit_unop_insn,prepare_cmp_insn,emit_conditional_move,
2174 emit_conditional_add,expand_float,expand_fix): Ditto.
2175 * opts.c: (decode_options): Remove setting of flag_force_mem flag.
2176 (common_handle_option): Issue warning when -fforce-mem specified.
2178 2005-07-06 Paul Brook <paul@codesourcery.com>
2180 * aclocal.m4: Work around a bug in AC_PATH_PROGS when its last
2182 * configure: Regenerate.
2184 2005-07-06 J"orn Rennecke <joern.rennecke@st.com>
2186 * sh.c (final_prescan_insn): Undo bogus change from 2005-05-09.
2188 2005-07-06 Daniel Berlin <dberlin@dberlin.org>
2190 Fix PR tree-optimization/22319
2191 Fix PR tree-optimization/22140
2192 Fix PR tree-optimization/22310
2194 * tree-ssa-structalias.c (do_structure_copy): Give up earlier on
2195 variable sized types.
2196 Use correct type for intermediate structure on *a = *b structure
2199 2005-07-06 Jakub Jelinek <jakub@redhat.com>
2201 * config/rs6000/rs6000.h (RS6000_VARARGS_AREA, RS6000_VARARGS_SIZE):
2203 (STARTING_FRAME_OFFSET): Don't add RS6000_VARARGS_AREA.
2204 (machine_function): Move typedef to...
2205 * config/rs6000/rs6000.c (machine_function): ... here. Add
2206 varargs_save_offset field.
2207 (rs6000_stack_t): Remove varargs_size field.
2208 (setup_incoming_varargs): Allocate varargs save area using
2209 assign_stack_local, try to make it as small as possible.
2210 Save offset from virtual_stack_vars_rtx to the save area
2211 in cfun->machine->varargs_save_offset. Use UNITS_PER_FP_WORD
2212 instead of magic 8 when fp word byte size is used.
2213 (rs6000_va_start): Use cfun->machine->varargs_save_offset
2214 instead of -RS6000_VARARGS_SIZE.
2215 (rs6000_stack_info, debug_stack_info,
2216 rs6000_initial_elimination_offset): Remove all traces of
2218 * config/rs6000/sysv4.h (RS6000_VARARGS_AREA): Remove.
2219 * config/rs6000/darwin.h (STARTING_FRAME_OFFSET): Don't add
2220 RS6000_VARARGS_AREA.
2222 2005-07-06 Zdenek Dvorak <dvorakz@suse.cz>
2224 PR tree-optimization/21963
2225 * tree-ssa-loop-ivopts.c (get_computation_aff): Use
2226 constant_multiple_of in the same way get_computation_cost_at does.
2228 2005-07-06 Jakub Jelinek <jakub@redhat.com>
2230 * config/sparc/sparc.h (sparc_compare_emitted): New extern.
2231 * config/sparc/sparc.c (sparc_compare_emitted): New variable.
2232 (gen_compare_reg): If sparc_compare_emitted is set, clear it
2233 and return its previous value.
2234 (emit_v9_brxx_insn): Assert sparc_compare_emitted is NULL.
2235 * config/sparc/sparc.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): New
2237 (stack_protect_set, stack_protect_test): New expanders.
2238 (stack_protect_setsi, stack_protect_setdi, stack_protect_testsi,
2239 stack_protect_testdi): New insns.
2240 * config/sparc/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
2241 * config/sparc/linux64.h (TARGET_THREAD_SSP_OFFSET): Define.
2243 2005-07-06 Jeff Law <law@redhat.com>
2245 * tree-ssa-dce.c (cfg_altered): New global.
2246 (tree_dce_init): Initialize cfg_altered.
2247 (remove_dead_stmt): If we remove an edge in the CFG, then set
2249 (perform_tree_ssa_dce): If we altered the CFG, then invalidate
2252 2005-07-06 Kazu Hirata <kazu@codesourcery.com>
2254 * Makefile.in (stamp-collect-ld): Use
2255 $(ORIGINAL_LD_FOR_TARGET) instead of $<. Don't remove
2256 ./collect-ld if it already exists.
2257 (stamp-nm): Use $(ORIGINAL_NM_FOR_TARGET) instead of $<.
2258 Don't remove ./nm if it already exists.
2260 2005-07-05 Devang Patel <dpatel@apple.com>
2262 * tree-vectorizer.h (struct _loop_vec_info): Remove loop_line_number.
2263 (LOOP_VINFO_LOC, LOOP_LOC): Remove.
2264 * tree-vectorizer.c (vect_loop_location): New.
2265 (vect_print_dump_info): Use vect_loop_location.
2266 (new_loop_vec_info): Do not set LOOP_VINFO_LOC.
2267 (vectorize_loops): Set vect_loop_location.
2268 * tree-vect-analyze.c (vect_analyze_offset_expr,
2269 vect_determin_vectorization_factor, vect_analyze_operations,
2270 vect_analyze_scalar_cycles, vect_analyze_data_ref_dependence,
2271 vect_analyze_data_ref_dependences, vect_compute_data_ref_alignment,
2272 vect_analyze_data_refs_alignment, vect_analyze_data_ref_access,
2273 vect_analyze_data_ref_accesses, vect_analyze_pointer_ref_access,
2274 vect_object_analysis, vect_analyze_data_refs, vect_mark_relevant,
2275 vect_stmt_relevant_p, vect_mark_stmts_to_be_vectorized,
2276 vect_can_advance_ivs_p, vect_get_loop_niters, vect_analyze_loop_form,
2277 vect_analyze_loop): Adjust vect_print_dump_info API.
2278 * tree-vect-transform.c (vect_create_addr_base_for_vector_ref,
2279 vect_create_data_ref_ptr, vect_init_vector, vect_get_vec_def_for_operand,
2280 vect_finish_stmt_generation, vectorizable_assignment,
2281 vectorizable_operation, vectorizable_store, vectorizable_load,
2282 vectorizable_live_operation, vectorizable_condition, vect_transform_stmt,
2283 vect_update_ivs_after_vectorizer, vect_do_peeling_for_loop_bound,
2284 vect_gen_ninters_for_prolog_loop, vect_do_peeling_for_alignment,
2285 vect_transform_loop): Same.
2286 * tree-vectorizer.c (get_vectype_for_scalar_type, vect_is_simple_use,
2287 vect_is_simple_reduction, vect_is_simple_iv_evolution, vectorize_loops):
2290 2005-07-05 Randolph Chung <tausq@debian.org>
2292 * configure.ac (hppa*-*-linux*: Check for a TLS capable gas.
2293 * configure: Regenerate.
2294 * config/pa/pa-protos.h (tls_symbolic_operand): Declare.
2295 (pa_tls_referenced_p): Declare.
2296 * config/pa/pa.c (legitimize_pic_address): Reject TLS operands.
2297 (gen_tls_tga, gen_tls_get_addr, hppa_tls_call): New.
2298 (legitimize_tls_address): New.
2299 (hppa_legitimize_address): Handle TLS addresses.
2300 (pa_tls_symbol_ref_1, pa_tls_referenced_p): New.
2301 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
2302 (emit_move_sequence): Handle TLS addresses.
2303 (pa_encode_section_info): Call default handler to handle common
2305 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): New.
2306 (CONSTANT_ADDRESS_P): Reject TLS operands.
2307 (TARGET_HAVE_TLS) [HAVE_AS_TLS]: Define.
2308 * config/pa/pa.md (UNSPEC_TP, UNSPEC_TLSGD, UNSPEC_TLSLDM)
2309 (UNSPEC_TLSLDO, UNSPEC_TLSLDBASE, UNSPEC_TLSIE)
2310 (UNSPEC_TLSLE): Define new constants.
2311 (tgd_load, tld_load, tld_offset_load, tp_load, tie_load, tle_load): New.
2312 * config/pa/predicates.md (symbolic_operand): Reject TLS operands.
2313 (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand)
2314 (tie_symbolic_operand, tle_symbolic_operand): New
2316 2005-07-06 Kelley Cook <kcook@gcc.gnu.org>
2318 * aclocal.m4: Update macros for autoconf 2.59 style.
2319 * configure.ac: Likewise.
2321 2005-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2323 * pa.c (function_value): Handle small aggregates on 32-bit targets.
2324 (function_arg): Pass small aggregates in general registers on 32-bit
2326 * som.h (MEMBER_TYPE_FORCES_BLK): Delete define.
2328 2005-07-05 Andrew Pinski <pinskia@physics.uc.edu>
2330 * Makefile.in (final.o): Fix dependencies.
2332 2005-07-05 Joseph S. Myers <joseph@codesourcery.com>
2336 * langhooks.h (struct lang_hooks): Add expr_to_decl.
2337 * langhooks.c (lhd_expr_to_decl): New.
2338 * langhooks-def.h (lhd_expr_to_decl, LANG_HOOKS_EXPR_TO_DECL):
2340 (LANG_HOOKS_INITIALIZER): Update.
2341 * tree.c (recompute_tree_invarant_for_addr_expr): Call
2342 expr_to_decl langhook.
2343 * c-tree.h (c_expr_to_decl): Declare.
2344 * c-typeck.c (c_expr_to_decl): New.
2345 (build_unary_op): Do not handle ADDR_EXPR of COMPOUND_LITERAL_EXPR
2347 * c-objc-common.h (LANG_HOOKS_EXPR_TO_DECL): Define.
2349 2005-07-05 Joseph S. Myers <joseph@codesourcery.com>
2352 * c-decl.c (finish_struct): Also copy C_TYPE_FIELDS_READONLY,
2353 C_TYPE_FIELDS_VOLATILE and C_TYPE_VARIABLE_SIZE to type variants.
2355 2005-07-05 Paolo Bonzini <bonzini@gnu.org>
2357 * Makefile.in: Adjust dependencies.
2358 * tree-pass.h: Add new passes and passes formerly in tree-optimize.c.
2359 * basic-block.h (duplicate_computed_gotos): Remove, it is now static.
2360 * alias.c (rest_of_handle_cfg, pass_cfg): New.
2361 * bb-reorder.c (duplicate_computed_gotos): Make it static.
2362 * cfgexpand.c (tree_expand_cfg): Add code formerly at the beginning of
2363 rest_of_compilation.
2365 * bb-reorder.c (gate_duplicate_computed_gotos,
2366 pass_duplicate_computed_gotos, gate_handle_reorder_blocks,
2367 rest_of_handle_reorder_blocks, pass_reorder_blocks,
2368 gate_handle_partition_blocks, rest_of_handle_partition_blocks,
2369 pass_partition_blocks): New.
2370 * bt-load.c (gate_handle_branch_target_load_optimize,
2371 rest_of_handle_branch_target_load_optimize,
2372 pass_branch_target_load_optimize): New.
2373 * cfgcleanup.c (rest_of_handle_jump, pass_jump, rest_of_handle_jump2,
2375 * cfglayout.c (pass_insn_locators_initialize): New.
2376 * cfgrtl.c (pass_free_cfg): New.
2377 * combine.c (gate_handle_combine, rest_of_handle_combine,
2379 * cse.c (gate_handle_cse, rest_of_handle_cse, pass_cse,
2380 gate_handle_cse2, rest_of_handle_cse2, pass_cse2): New.
2381 * emit-rtl.c (pass_unshare_all_rtl, pass_remove_unnecessary_notes): New.
2382 * except.c (pass_set_nothrow_function_flags,
2383 pass_convert_to_eh_region_ranges, gate_handle_eh, rest_of_handle_eh,
2385 * final.c (pass_compute_alignments, rest_of_handle_final, pass_final,
2386 rest_of_handle_shorten_branches, pass_shorten_branches,
2387 rest_of_clean_state, pass_clean_state): New.
2388 * flow.c (pass_recompute_reg_usage, gate_remove_death_notes,
2389 rest_of_handle_remove_death_notes, pass_remove_death_notes,
2390 rest_of_handle_life, pass_life, rest_of_handle_flow2,
2392 * function.c (pass_instantiate_virtual_regs, pass_init_function,
2393 rest_of_handle_check_leaf_regs, pass_leaf_regs): New.
2394 * gcse.c (gate_handle_jump_bypass, rest_of_handle_jump_bypass,
2395 pass_jump_bypass, gate_handle_gcse, rest_of_handle_gcse,
2397 * global.c (rest_of_handle_global_alloc, pass_global_alloc): New.
2398 * ifcvt.c (gate_handle_if_conversion, rest_of_handle_if_conversion,
2399 pass_rtl_ifcvt, gate_handle_if_after_combine,
2400 rest_of_handle_if_after_combine, pass_if_after_combine,
2401 gate_handle_if_after_reload, rest_of_handle_if_after_reload,
2402 pass_if_after_reload): New.
2403 * integrate.c (pass_initial_value_sets): New.
2404 * jump.c (pass_cleanup_barriers, purge_line_number_notes,
2405 pass_purge_lineno_notes): New.
2406 * mode-switching.c (rest_of_handle_mode_switching,
2407 pass_mode_switching): New.
2408 * local-alloc.c (rest_of_handle_local_alloc, pass_local_alloc): New.
2409 * loop-init.c (gate_handle_loop2, rest_of_handle_loop2,
2411 * loop.c (gate_handle_loop_optimize, rest_of_handle_loop_optimize,
2412 pass_loop_optimize): New.
2413 * modulo-sched.c (gate_handle_sms, rest_of_handle_sms,
2415 * postreload-gcse.c (gate_handle_gcse2, rest_of_handle_gcse2,
2417 * postreload.c (gate_handle_postreload, rest_of_handle_postreload,
2418 pass_postreload_cse): New.
2419 * profile.c (gate_handle_profiling, pass_profiling,
2420 rest_of_handle_branch_prob, pass_branch_prob): New.
2421 * recog.c (pass pass_split_for_shorten_branches, gate_do_final_split,
2422 pass_split_before_regstack, gate_handle_split_before_regstack,
2423 gate_handle_peephole2, rest_of_handle_peephole2, pass_peephole2,
2424 rest_of_handle_split_all_insns, pass_split_all_insns): New.
2425 * reg-stack.c (gate_handle_stack_regs, rest_of_handle_stack_regs,
2426 pass_stack_regs): New.
2427 * regmove.c (gate_handle_regmove, rest_of_handle_regmove, pass_regmove,
2428 gate_handle_stack_adjustments, rest_of_handle_stack_adjustments,
2429 pass_stack_adjustments): New.
2430 * regrename.c (gate_handle_regrename, rest_of_handle_regrename,
2431 pass_regrename): New.
2432 * reorg.c (gate_handle_delay_slots, rest_of_handle_delay_slots,
2433 pass_delay_slots, gate_handle_machine_reorg,
2434 rest_of_handle_machine_reorg, pass_machine_reorg): New.
2435 * rtl.h (extern void purge_line_number_notes): New.
2436 * sched-rgn.c (gate_handle_sched, rest_of_handle_sched,
2437 gate_handle_sched2, rest_of_handle_sched2, pass_sched,
2439 * tracer.c (gate_handle_tracer, rest_of_handle_tracer,
2441 * value-prof.c (gate_handle_value_profile_transformations,
2442 rest_of_handle_value_profile_transformations,
2443 pass_value_profile_transformations): New.
2444 * var-tracking.c (gate_handle_var_tracking,
2445 pass_variable_tracking): New.
2446 * web.c (gate_handle_web, rest_of_handle_web, pass_web): New.
2448 * passes.c (open_dump_file, close_dump_file, rest_of_handle_final,
2449 rest_of_handle_delay_slots, rest_of_handle_stack_regs,
2450 rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
2451 rest_of_handle_old_regalloc, rest_of_handle_regrename,
2452 rest_of_handle_reorder_blocks, rest_of_handle_partition_blocks,
2453 rest_of_handle_sms, rest_of_handle_sched, rest_of_handle_sched2,
2454 rest_of_handle_gcse2, rest_of_handle_regmove,
2455 rest_of_handle_tracer, rest_of_handle_if_conversion,
2456 rest_of_handle_if_after_combine, rest_of_handle_if_after_reload,
2457 rest_of_handle_web, rest_of_handle_branch_prob,
2458 rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
2459 rest_of_handle_jump_bypass, rest_of_handle_combine,
2460 rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
2461 rest_of_handle_gcse, rest_of_handle_loop_optimize,
2462 rest_of_handle_loop2, rest_of_handle_branch_target_load_optimize,
2463 rest_of_handle_mode_switching, rest_of_handle_jump,
2464 rest_of_handle_eh, rest_of_handle_stack_adjustments,
2465 rest_of_handle_flow2, rest_of_handle_jump2,
2466 rest_of_handle_peephole2, rest_of_handle_postreload,
2467 rest_of_handle_shorten_branches, rest_of_clean_state,
2468 rest_of_compilation): Remove.
2470 * cgraphunit.c (ipa_passes): Moved from tree-optimize.c.
2471 * passes.c (dump_flags, in_gimple_form, all_passes,
2472 all_ipa_passes, all_lowering_passes, register_one_dump_file,
2473 register_dump_files, next_pass_1, last_verified, execute_todo,
2474 execute_one_pass, execute_pass_list, execute_ipa_pass_list): Moved
2475 from tree-optimize.c.
2476 (init_optimization_passes): Moved from tree-optimize.c,
2477 adding the RTL optimizations.
2478 * tree-dump.h (dump_info_p, dump_flag): Moved from tree.h.
2479 * tree-optimize.c (dump_flags, in_gimple_form, all_passes,
2480 all_ipa_passes, all_lowering_passes, register_one_dump_file,
2481 register_dump_files, next_pass_1, last_verified, execute_todo,
2482 execute_one_pass, execute_pass_list, execute_ipa_pass_list,
2483 init_tree_optimization_passes, ipa_passes): Delete.
2484 * tree-pass.h (enum tree_dump_index): Moved from tree.h, removing
2486 (TDF_*, get_dump_file_name, dump_enabled_p, dump_initialized_p,
2487 dump_begin, dump_end, dump_node, dump_switch_p, dump_flag_name): Moved
2489 (ipa_passes): Remove.
2490 (all_passes, all_ipa_passes, all_lowering_passes): Now extern.
2491 * tree.h (enum tree_dump_index, TDF_*, get_dump_file_name,
2492 dump_enabled_p, dump_initialized_p, dump_begin, dump_end, dump_node,
2493 dump_switch_p, dump_flag_name): Moved to tree-pass.h.
2494 (dump_info_p, dump_flag): Moved to tree-dump.h.
2496 * Makefile.in: Adjust dependencies for tree-pretty-print.c,
2498 * passes.c (finish_optimization_passes): Use dump_begin
2499 and dump_end, TDI_end.
2500 (gate_rest_of_compilation): New.
2501 (pass_rest_of_compilation): Use it.
2502 (gate_postreload, pass_postreload): New.
2503 * toplev.c (general_init): Rename init_tree_optimization_passes.
2504 * toplev.h (init_tree_optimization_passes): Rename to
2505 init_optimizations_passes.
2506 * tree-dump.c (dump_flag): Make static.
2507 (dump_files): Remove RTL dumps.
2508 * tree-optimize.c (pass_all_optimizations, pass_early_local_passes,
2509 pass_cleanup_cfg, pass_free_cfg_annotations,
2510 pass_cleanup_cfg_post_optimizing, pass_free_datastructures,
2511 pass_init_datastructures, pass_fixup_cfg): Make non-static.
2512 * tree-pretty-print.c: Include tree-pass.h.
2513 * cgraph.c: Include tree-dump.h.
2515 2005-07-04 Daniel Berlin <dberlin@dberlin.org>
2517 * tree-ssa-structalias.c (get_constraint_exp_from_ssa_var):
2518 Only fall back to saying it points to readonly memory if
2521 2005-07-05 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
2523 * config/m32r/m32r-protos.h: Remove m32r_finalize_pic.
2524 * config/m32r/m32r.c (m32r_compute_frame_size,
2525 m32r_expand_prologue): Take current_function_profile into
2526 account whenever we reference
2527 current_function_uses_pic_offset_table.
2528 (m32r_finalize_pic): Remove.
2529 * config/m32r/m32r.h (FINALIZE_PIC): Likewise.
2531 2005-07-05 Kazu Hirata <kazu@codesourcery.com>
2533 * Makefile.in (stamp-as): Use $(ORIGINAL_AS_FOR_TARGET)
2534 instead of $<. Don't remove ./as if it already exists.
2536 2005-07-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2539 * pa.md: Remove fcpy alternative from movhi and movqi patterns.
2540 * pa32-regs.h (HARD_REGNO_NREGS): Return two floating point registers
2541 for complex modes when generating code for PA 1.0.
2542 (VALID_FP_MODE_P): New macro.
2543 (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P. Use non-overlapping register
2544 sets for all general and floating point modes. Align wide floating
2545 point modes to even register boundaries to comply with architectural
2547 (CLASS_MAX_NREGS): Update to align with change to HARD_REGNO_NREGS.
2548 * pa64-regs.h (HARD_REGNO_NREGS): Update comment and formatting.
2549 (VALID_FP_MODE_P): New macro.
2550 (HARD_REGNO_MODE_OK): Use VALID_FP_MODE_P. Use non-overlapping register
2551 sets for all general and floating point modes. Align wide floating
2552 point modes to even register boundaries to comply with architectural
2555 2005-07-04 Diego Novillo <dnovillo@redhat.com>
2557 * tree-dump.c (dump_files): Initialize dump number for .cgraph
2560 2005-07-04 Diego Novillo <dnovillo@redhat.com>
2562 * tree-ssa-structalias.c: Don't include expr.h.
2564 2005-07-04 Diego Novillo <dnovillo@redhat.com>
2566 * tree-iterator.h (TSI_NEW_STMT, TSI_SAME_STMT): Fix
2569 2005-07-04 Daniel Berlin <dberlin@dberlin.org>
2571 Fix PR tree-optimization/22279
2573 * tree-ssa-structalias.c (offset_overlaps_with_access): Use
2576 2005-07-04 J"orn Rennecke <joern.rennecke@st.com>
2578 * sh.c (output_ieee_ccmpeq): Replace "\\;" with "\n\t".
2580 2005-07-03 Joseph S. Myers <joseph@codesourcery.com>
2582 * bb-reorder.c, c-pch.c, c-pragma.c, c.opt, cfghooks.c, cfgloop.c,
2583 cfgrtl.c, cgraphunit.c, config/c4x/c4x.c, config/cris/cris.c,
2584 config/frv/frv.c, config/host-darwin.c, config/iq2000/iq2000.c,
2585 config/lynx.h, config/m68k/m68k.c, config/pa/pa.c, config/sh/sh.h,
2586 config/stormy16/stormy16.c, config/v850/v850.c,
2587 config/vax/netbsd-elf.h, coverage.c, dwarf2out.c, emit-rtl.c,
2588 except.c, gcc.c, tree-cfg.c, tree-eh.c, tree-ssa.c, xcoffout.c:
2589 Avoid "." or "\n" at end of diagnostics and capital letters at
2590 start of diagnostics.
2591 * combine.c, cse.c: Don't translate dump file output.
2592 * toplev.c (print_version): Only translate output if going to
2595 2005-07-03 Kazu Hirata <kazu@codesourcery.com>
2597 * c-decl.c, tree-object-size.c, tree-vectorizer.c,
2598 config/arm/unwind-arm.c, config/arm/unwind-arm.h: Fix comment
2601 2005-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2603 * pa.c (fix_range): Fix typo in comment.
2605 2005-07-03 Kazu Hirata <kazu@codesourcery.com>
2607 * tree-vrp.c (extract_range_from_assert): Replace
2608 fold (build (...)) with fold_build2.
2610 2005-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2612 * c-format.c (gcc_gfc_format_type, gcc_gfc_flag_pairs,
2613 gcc_gfc_char_table, init_dynamic_gfc_info): New.
2614 (format_types_orig, handle_format_attribute): Add support for
2617 2005-07-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
2619 * varasm.c (assemble_variable): Fix format specifier thinko.
2621 2005-07-03 Ira Rosen <irar@il.ibm.com>
2623 PR tree-optimization/22029 (and 22135)
2624 * tree-pretty-print.c (dump_generic_node): Check that the node is not
2625 a phi node before calling dump_vops.
2627 2005-07-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
2629 * tree-dump.h (dump_string_field): Declare.
2630 * tree-dump.c: Use it instead of dump_string.
2631 (dump_string_field): Make non-static.
2633 2005-07-03 Kaz Kojima <kkojima@gcc.gnu.org>
2635 * config/sh/sh.c (sh_output_mi_thunk): Initialize and clean
2636 up the minimal CFG stuff always when optimize > 0. Call
2637 split_all_insns_noflow in PIC case if needed.
2639 2005-07-02 Gabriel Dos Reis <gdr@integrable-solutions.net>
2640 Christian Ehrhardt <ehrhardt@mathematik.uni-ulm.de>
2643 * c-decl.c (c_write_global_declarations): Dump contents of
2645 * tree-dump.c (dequeue_and_dump): Dump abstract origin of a decl.
2646 <TRY_FINALLY_EXPR>, <RETURN_EXPR>, <CASE_LABEL_EXPR>, <LABEL_EXPR>,
2647 <GOTO_EXPR>, <SWITCH_EXPR>: Add.
2648 (dump_enabled_p): Return TRUE if PHASE is TDI_all and any dump
2651 2005-07-03 Joseph S. Myers <joseph@codesourcery.com>
2653 * c-common.h (GCC_DIAG_STYLE): Define.
2654 * c-tree.h (GCC_DIAG_STYLE): Do not define. Change minimum GCC
2655 version for format checking to 4.1.
2656 * c-format.c: Include toplev.h after c-common.h.
2657 (enum format_type): Add gcc_tdiag_format_type.
2658 (gcc_tdiag_length_specs, gcc_tdiag_flag_pairs,
2659 gcc_tdiag_flag_specs, gcc_tdiag_char_table): New.
2660 (format_types_orig): Add gcc_tdiag.
2661 (init_dynamic_diag_info): Support gcc_tdiag formats.
2662 (handle_format_attribute): Likewise.
2663 * toplev.h (NO_FRONT_END_DIAG, ATTRIBUTE_GCC_FE_DIAG): Remove.
2664 (GCC_DIAG_STYLE): Default to __gcc_tdiag__. Change minimum GCC
2665 version for format checking to 4.1.
2666 (warning0, warning, error, pedwarn, sorry): Use
2668 * config/rs6000/rs6000.c (altivec_expand_builtin), varasm.c
2669 (finish_aliases_1): Do not use %qE.
2670 * config/arm/arm.c, config/i386/i386.c, config/mmix/mmix.c,
2671 config/pdp11/pdp11.c, stor-layout.c, tree-eh.c, tree-ssa.c:
2672 Correct format bugs.
2673 * config/v850/v850-protos.h (v850_output_aligned_bss): Change size
2674 parameter to unsigned HOST_WIDE_INT.
2675 * config/v850/v850.c (v850_output_aligned_bss): Likewise.
2677 2005-07-02 David Edelsohn <edelsohn@gnu.org>
2680 * expr.c (write_complex_part): Use adjust_address for MEM.
2681 (read_complex_part): Same.
2683 2005-07-02 Daniel Berlin <dberlin@dberlin.org>
2685 Fix PR tree-optimization/22280
2687 * tree-sra.c (generate_element_init): Remove useless loop.
2689 2005-07-02 Richard Henderson <rth@redhat.com>
2691 * config/alpha/alpha.c (alpha_legitimize_address): Check for
2693 (alpha_stdarg_optimize_hook): Use DECL_UID with va_list_vars.
2695 2005-07-02 Andrew Pinski <pinskia@physics.uc.edu>
2698 * fold-const.c (fold_binary): Handle the return value of
2699 fold_to_nonsharp_ineq_using_bound if we get back the same operand back.
2700 Implement "X +- C1 CMP C2" folding to "X CMP C2 -+ C1".
2702 2005-07-02 Jeff Law <law@redhat.com>
2704 * tree-ssa-dom.c (find_equivalent_equality_comparison): Do not
2705 a eliminate type conversion which feeds an equality comparison
2706 if the original type or either operand in the comparison is a
2709 2005-07-02 Joseph S. Myers <joseph@codesourcery.com>
2711 * c.opt, common.opt, config/bfin/bfin.opt, config/pa/pa.opt,
2712 config/rs6000/rs6000.opt, params.def: Remove "." from end of help
2714 * config/avr/avr.c: Do not use '`' as left quote.
2715 * config/rs6000/rs6000.c, config/s390/s390.c, opts.c, tree.c:
2716 Remove "." from end of diagnostics. Make diagnostics start with
2719 2005-07-02 Zack Weinberg <zack@codesourcery.com>
2720 Joseph S. Myers <joseph@codesourcery.com>
2722 * toplev.c (default_tree_printer): Handle setting location with
2724 * c-objc.common.c (c_tree_printer): Likewise.
2725 * c-format.c (gcc_diag_flag_specs): Add '+'.
2726 (gcc_cdiag_char_table): Allow '+' flag for tree formats.
2727 (format_types_orig): Allow '+' flag for gcc_diag and gcc_cdiag
2729 * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c,
2730 config/arm/pe.c, config/i386/winnt.c, config/ia64/ia64.c,
2731 config/mcore/mcore.c, config/sh/symbian.c, config/sol2.c,
2732 config/v850/v850.c, function.c, stor-layout.c, toplev.c,
2733 tree-inline.c, tree-optimize.c, tree.c, varasm.c: Use '+' flag
2734 instead of %J or %H. Use 'q' flag for quoting. Avoid '.' at end
2735 of diagnostics. Use %q+D not %s for a decl. Do not pass excess
2736 format arguments where %J is used without %D.
2738 2005-07-02 Jakub Jelinek <jakub@redhat.com>
2740 * gcc.c (LINK_SSP_SPEC): Define.
2741 (link_ssp_spec): New variable.
2742 (LINK_COMMAND_SPEC): Add %(link_ssp).
2743 (static_specs): Add link_ssp_spec.
2744 * configure.ac (TARGET_LIBC_PROVIDES_SSP): New test.
2745 * configure: Rebuilt.
2746 * config.in: Rebuilt.
2748 * config/rs6000/linux.h (TARGET_THREAD_SSP_OFFSET): Define.
2749 * config/rs6000/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
2750 * config/i386/linux.h (TARGET_THREAD_SSP_OFFSET): Likewise.
2751 * config/i386/linux64.h (TARGET_THREAD_SSP_OFFSET): Likewise.
2752 * config/rs6000/rs6000.md (stack_protect_set, stack_protect_test):
2753 If TARGET_THREAD_SSP_OFFSET is defined, use -0x7010(13) resp.
2754 -0x7008(2) instead of reading __stack_chk_guard variable.
2755 * config/i386/i386.md (UNSPEC_SP_SET, UNSPEC_SP_TEST): Change
2757 (UNSPEC_SP_TLS_SET, UNSPEC_SP_TLS_TEST): New constants.
2758 (stack_protect_set, stack_protect_test): Use *_tls* patterns
2759 if TARGET_THREAD_SSP_OFFSET is defined.
2760 (stack_tls_protect_set_si, stack_tls_protect_set_di,
2761 stack_tls_protect_test_si, stack_tls_protect_test_di): New insns.
2764 2005-06-27 Richard Henderson <rth@redhat.com>
2765 * libgcc-std.ver (GCC_4.1.0): New.
2766 * libgcc.h (__stack_chk_guard): Declare.
2767 (__stack_chk_fail, __stack_chk_fail_local): Declare.
2768 * libgcc2.c (L_stack_chk, L_stack_chk_local): New.
2769 * mklibgcc.in (lib2funcs): Add them.
2771 2005-07-01 Richard Henderson <rth@redhat.com>
2773 * config/i386/linux-unwind.h (x86_64_fallback_frame_state): Cast to
2774 void * before struct sigcontext *.
2775 (x86_fallback_frame_state): Likewise.
2777 2005-07-01 James E. Wilson <wilson@specifixinc.com>
2779 * doc/invoke.texi (-funit-at-a-time): Correct grammar in second bullet.
2781 2005-07-01 Andrew Pinski <pinskia@physics.uc.edu>
2784 * tree-ssa-reassoc.c (should_transpose): Fix which operand
2785 we check for SSA_NAME for.
2787 2005-07-01 Daniel Berlin <dberlin@dberlin.org>
2789 Fix PR tree-optimization/22071
2791 * tree-ssa-structalias.c (offset_overlaps_with_access): New
2793 (get_constraint_for_component_ref): Use it.
2795 2005-07-01 Andrew Pinski <pinskia@physics.uc.edu>
2798 * diagnostic.c (diagnostic_report_current_module): Use pp_newline to
2799 print out the last new line.
2801 2005-07-01 Hans-Peter Nilsson <hp@axis.se>
2803 * config/cris/cris.md (CRIS_CC0_REGNUM): New constant.
2804 Swap numbers for CRIS_AP_REGNUM and CRIS_MOF_REGNUM.
2805 * config/cris/cris.c (cris_conditional_register_usage): Adjust
2806 reg_names[CRIS_CC0_REGNUM] for early CRIS versions.
2807 (cris_print_operand) <case REG>: Handle CRIS_CC0_REGNUM.
2808 (cris_md_asm_clobbers): Clobber CRIS_CC0_REGNUM for all asms.
2809 * config/cris/cris.h (CRIS_CANONICAL_CC0_REGNUM): New macro.
2810 (enum reg_class): New member CC0_REGS.
2811 (REG_CLASS_FROM_LETTER): Add 'c' for CC0_REGS.
2812 (FIRST_PSEUDO_REGISTER, CALL_USED_REGISTERS, REG_ALLOC_ORDER)
2813 (HARD_REGNO_MODE_OK, MODES_TIEABLE_P, REG_CLASS_NAMES)
2814 (CRIS_SPECIAL_REGS_CONTENTS, REG_CLASS_CONTENTS, REGNO_REG_CLASS)
2815 (PREFERRED_RELOAD_CLASS, REGISTER_NAMES, DBX_REGISTER_NUMBER):
2816 Adjust for register now described.
2818 2005-07-01 Jakub Jelinek <jakub@redhat.com>
2821 * config/i386/i386.md (stack_protect_test_si,
2822 stack_protect_test_di): Add earlyclobber for scratch 3.
2823 * config/rs6000/rs6000.md (stack_protect_testsi,
2824 stack_protect_testdi): Add earlyclobber for scratch 3,
2825 remove earlyclobber from scratch 4.
2827 Older entries for 2005 can be found in ChangeLog-2005.