1 2008-03-13 Jakub Jelinek <jakub@redhat.com>
4 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
5 (lower_omp_2): New function.
6 (lower_omp_1, lower_omp): Rewritten.
8 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
11 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
12 with the phrase "Microsoft Windows compilers".
13 (Push/Pop Macro Pragmas): New subsection. Document
14 #pragma push_macro and pragma pop_macro.
16 2008-03-12 Paul Brook <paul@codesourcery.com>
18 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
20 2008-03-12 Paul Brook <paul@codesourcery.com>
22 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
23 (thumb2_alusi3_short): Exclude PLUS and MINUS.
24 (thumb2_addsi_shortim): Rename ...
25 (thumb2_addsi_short): ... to this. Allow register operands.
26 (thumb2_subsi_short): New pattern.
27 (thumb2_one_cmplsi2_short,
28 thumb2_negsi2_short): New patterns and peepholes.
30 2008-03-12 Paul Brook <paul@codesourcery.com>
32 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
34 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
36 * config/i386/i386.md (int_cond): New code iterator.
38 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
39 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
40 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
41 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
42 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
43 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
44 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
45 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
47 2008-03-12 Paul Brook <paul@codesourcery.com>
49 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
50 instead of {arm,thumb}_compute_save_reg_mask.
51 (output_return_instruction): Ditto.
52 (thumb_unexpanded_epilogue): Ditto.
53 (thumb1_expand_prologue): Ditto.
54 (thumb1_output_function_prologue): Ditto.
55 (arm_set_return_address): Ditto.
56 (thumb_set_return_address): Ditto.
57 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
58 regs to achieve stack alignment.
59 (thumb1_compute_save_reg_mask): Fix compiler warning.
60 (arm_output_epilogue): Use offsets->saved_regs_mask.
61 Adjust stack pointer by poping call clobered registers.
62 (arm_expand_prologue): Use offsets->saved_regs_mask.
63 Adjust stack pointer by pushing extra registers.
64 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
66 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
69 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
70 conversion to the operands of a multiplication.
72 2008-03-12 Richard Guenther <rguenther@suse.de>
74 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
75 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
76 * timevar.def (TV_TREE_PHIPROP): Add.
77 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
78 pass description. Use TV_TREE_PHIPROP.
79 * tree-ssa-forwprop.c: Remove phiprop code.
81 2008-03-12 Jakub Jelinek <jakub@redhat.com>
84 * omp-low.c (maybe_lookup_decl): Constify first argument.
85 (use_pointer_for_field): Change last argument from bool to
86 omp_context *. Disallow shared copy-in/out in nested
87 parallel if decl is shared in outer parallel too.
88 (build_outer_var_ref, scan_sharing_clauses,
89 lower_rec_input_clauses, lower_copyprivate_clauses,
90 lower_send_clauses, lower_send_shared_vars): Adjust callers.
92 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
93 Ira Rosen <irar@il.ibm.com>
95 * tree-vectorizer.c (free_stmt_vec_info): New function.
96 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
97 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
98 * tree-vectorizer.h (free_stmt_vec_info): Declare.
99 * tree-vect-transform.c (vectorizable_conversion): Free
100 vec_oprnds0 if it was allocated.
101 (vect_permute_store_chain): Remove unused VECs.
102 (vectorizable_store): Free VECs that are allocated in the..
104 (vect_transform_strided_load, vectorizable_load): Likewise.
105 (vect_remove_stores): Simplify the code.
106 (vect_transform_loop): Move code to vect_remove_stores().
107 Call vect_remove_stores() and free_stmt_vec_info().
109 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
111 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
112 TARGET_HPUX. Revise comment.
113 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
114 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
115 Use sr4 variant of `be' instruction when not generating PIC code.
116 (attr_length_call): Adjust for above change.
118 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
120 * ipa-reference.c (static_execute): Remove module_statics_const and
121 associated setting code.
123 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
126 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
127 constraint for operand 1.
128 (paritysi2_cmp): Use register_operand constraint for operand 2.
129 Use earlyclobber modifier for operand 1. Remove support for
131 (paritydi2_cmp): Use register_operand constraint for operand 3.
132 Use earlyclobber modifier for operand 1. Remove support for
135 2008-03-11 Paul Brook <paul@codesourcery.com>
136 Vladimir Prus <vladimir@codesourcery.com>
138 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
139 (arm_compute_save_reg0_reg12_mask): Always
140 check if register 11 must be saved. Always safe hard frame pointer
141 when frame_pointer_needeed.
142 (arm_compute_save_reg_mask): Save IP and PC
143 only with apcs frames.
144 (arm_output_epilogue): Adjust Thumb2 codepath to
145 be also invoked and work for ARM non-apcs frames.
146 (arm_expand_prologue): Don't bother saving IP
147 for non-apcs frame, since it's not clobbered by
148 prologue code. Implement non-apcs frame
151 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
153 PR rtl-optimization/35281
154 * expr.c (convert_move): Use a new pseudo for the intermediate
155 from_mode->word_mode result.
157 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
159 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
160 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
161 * toplev.c (compile_file): Don't call it.
163 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
166 * expr.c (store_expr): Call emit_block_move if the mode
167 of "temp" RTX is BLKmode.
169 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
170 Richard Guenther <rguenther@suse.de>
172 PR tree-optimization/31358
173 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
174 the step with a NULL_TREE.
175 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
176 to sizetype if type is a pointer type.
177 (add_candidate_1): Don't convert the base and step to
178 the generic type if the orginal type is a pointer type.
179 (add_iv_value_candidates): Use sizetype for the step
180 if type is a pointer type.
181 (cand_value_at): Likewise.
182 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
184 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
185 Don't convert the tem affine to the type.
186 (add_elt_to_tree): Use sizetype for the step if a pointer.
187 Use POINTER_PLUS_EXPR for pointers.
188 (aff_combination_to_tree): Use sizetype for the step if a
191 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
193 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
194 Remove commutativity hint.
196 2008-03-10 Jakub Jelinek <jakub@redhat.com>
200 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
201 errorneous type. Check that v is a VAR_DECL.
204 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
206 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
208 PR tree-optimization/35494
209 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
210 may be overriden at link and run time.
212 2008-03-10 Richard Guenther <rguenther@suse.de>
214 PR tree-optimization/34677
215 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
216 (poolify_tree): Likewise.
217 (modify_expr_template): Likewise.
218 (poolify_modify_stmt): Likewise.
219 (insert_fake_stores): Handle all component-ref style stores
220 in addition to INDIRECT_REF. Also handle complex types.
221 Do not poolify the inserted load.
222 (realify_fake_stores): Do not rebuild the tree but only
223 make it a SSA_NAME copy.
224 (init_pre): Remove initialzation of modify_expr_template.
225 Do not allocate modify_expr_node_pool.
226 (fini_pre): Do not free modify_expr_node_pool.
228 2008-03-10 Paul Brook <paul@codesourcery.com>
230 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
233 2008-03-10 Paul Brook <paul@codesourcery.com>
234 Mark Shinwell <shinwell@codesourcery.com>
236 * config/arm/cortex-r4.md: New.
237 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
239 * config/arm/arm.md: Include cortex-r4.md.
240 (insn): Add smmls, sdiv and udiv values.
241 (generic_sched): Don't use generic scheduling for Cortex-R4.
242 (arm_issue_rate): New function.
243 (TARGET_SCHED_ISSUE_RATE): Define.
245 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
247 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
249 2008-03-10 Richard Guenther <rguenther@suse.de>
251 * tree-ssa-pre.c (get_sccvn_value): Simplify.
252 (compute_avail): Do not add stmt uses to AVAIL_OUT.
254 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
256 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
259 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
261 * c.opt (Wsynth): Deprecate.
262 * doc/invoke.texi (Option Summary, Warning Options): Document
263 -Wno-format-contains-nul.
265 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
268 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
269 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
271 2008-03-09 Ira Rosen <irar@il.ibm.com>
273 * config/rs6000/rs6000.c (builtin_description): Rename vector
274 left shift operations.
275 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
276 (altivec_vsl<VI_char>): Rename to ...
277 (ashl<mode>3): ... new name.
278 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
280 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
282 2008-03-08 Richard Guenther <rguenther@suse.de>
284 * coverage.h (tree_coverage_counter_addr): Declare.
285 * coverage.c (tree_coverage_counter_addr): New function.
286 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
288 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
289 (tree_gen_one_value_profiler): Likewise.
290 (tree_gen_ic_profiler): Likewise.
291 (tree_gen_average_profiler): Likewise.
292 (tree_gen_ior_profiler): Likewise.
294 2008-03-08 Richard Guenther <rguenther@suse.de>
296 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
297 (vn_binary_op_insert): Likewise.
298 (vn_unary_op_lookup): Likewise.
299 (vn_unary_op_insert): Likewise.
300 (vn_nary_op_lookup): Declare.
301 (vn_nary_op_insert): Likewise.
302 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
303 and binary hashes, use a single obstack for unary_op_pool
305 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
306 a single struct vn_nary_op_s. Store tree code length and
307 a variable number of operands.
308 (struct vn_reference_op_struct): Remove unused op2.
309 (vn_reference_op_eq): Do not compare op2.
310 (vn_reference_op_compute_hash): Do not compute hash of op2.
311 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
312 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
313 with vn_nary_op_compute_hash.
314 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
315 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
317 (vn_unary_op_insert, vn_binary_op_insert): Replace with
319 (visit_unary_op): Call nary functions.
320 (visit_binary_op): Likewise.
321 (process_scc): Adjust for struct vn_tables_s changes.
322 (allocate_vn_table): Likewise.
323 (free_vn_table): Likewise.
324 * tree-vn.c (vn_add): Call nary functions.
325 (vn_lookup): Likewise.
327 2008-03-08 Jakub Jelinek <jakub@redhat.com>
330 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
331 wdst back after sync_compare_and_swapqhi_internal.
333 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
336 * config/i386/i386-modes.def (V1DI): New vector mode.
337 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
338 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
340 (MMXMODE): Add V1DI mode.
341 (mmxvecsize): Change DI mode to V1DI mode.
342 ("mov<mode>): Use MMXMODEI8 mode iterator.
343 ("*mov<mode>_internal_rex64"): Ditto.
344 ("*mov<mode>_internal"): Ditto.
345 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
346 ("mmx_sub<mode>3"): Ditto.
347 ("mmx_adddi3"): Remove insn pattern.
348 ("mmx_subdi3"): Ditto.
349 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
350 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
351 ("mmx_ashl<mode>3"): Ditto.
352 ("mmx_lshrdi3"): Remove insn pattern.
353 ("mmx_ashldi3"): Ditto.
354 * config/i386/i386.c (classify_argument): Handle V1DImode.
355 (function_arg_advance_32): Ditto.
356 (function_arg_32): Ditto.
357 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
358 mmx_addv1di3 insn pattern.
359 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
360 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
361 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
362 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
363 Remove definitions of built-in functions.
364 (V1DI_type_node): New node.
365 (v1di_ftype_v1di_int): Ditto.
366 (v1di_ftype_v1di_v1di): Ditto.
367 (v2si_ftype_v2si_si): Ditto.
368 (v4hi_ftype_v4hi_di): Remove node.
369 (v2si_ftype_v2si_di): Ditto.
370 (ix86_init_mmx_sse_builtins): Handle V1DImode.
371 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
372 Redefine builtins using def_builtin_const with *_ftype_*_int node.
373 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
374 Add new builtins using def_builtin_const.
375 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
376 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
377 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
378 * config/i386/mmintrin.h (__v1di): New typedef.
379 (_mm_add_si64): Cast arguments to __v1di type.
380 (_mm_sub_si64): Ditto.
381 (_mm_sll_pi16): Cast __count to __v4hi type.
382 (_mm_sll_pi32): Cast __count to __v2si type.
383 (_mm_sll_si64): Cast arguments to __v1di type.
384 (_mm_srl_pi16): Cast __count to __v4hi type.
385 (_mm_srl_pi32): Cast __count to __v2si type.
386 (_mm_srl_si64): Cast arguments to __v1di type.
387 (_mm_sra_pi16): Cast __count to __v4hi type.
388 (_mm_sra_pi32): Cast __count to __v2si type.
389 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
390 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
391 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
392 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
393 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
394 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
395 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
396 (_mm_srai_pi32): Use __builtin_ia32_psradi.
397 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
398 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
399 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
400 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
402 2008-03-07 Joseph Myers <joseph@codesourcery.com>
404 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
406 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
409 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
410 reg+const addressing for Altivec modes. Don't generate reg+reg
411 addressing for TFmode or TDmode quantities.
413 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
415 * c-common.c (vector_types_convertible_p): Call langhook
416 instead of comptypes.
418 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
421 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
422 integral and scalar float variables which have a
425 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
427 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
428 dwarf_register_span hook when emitting unwind information for
429 register-to-memory saves.
430 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
431 (rs6000_frame_related): Remove call to spe_synthesize_frame.
433 2008-03-06 Jakub Jelinek <jakub@redhat.com>
435 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
436 for the same VAR_DECL.
438 2008-03-06 Tom Tromey <tromey@redhat.com>
441 * doc/standards.texi (Standards): Don't mention treelang.
442 * doc/invoke.texi (Overall Options): Don't mention treelang.
443 * doc/install.texi (Prerequisites): Don't mention bison or
445 (Configuration): Don't mention treelang.
446 (Building): Likewise.
447 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
449 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
451 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
452 word-extractions out of a multi-word object.
454 2008-03-06 Richard Guenther <rguenther@suse.de>
456 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
457 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
458 result type and precision.
459 * expr.c (get_inner_reference): Set unsignedp based on the result
460 type of BIT_FIELD_REF.
461 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
462 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
463 (try_instantiate_multiple_fields): Likewise. Use the correct type
465 (sra_build_assignment): Likewise.
466 (sra_build_elt_assignment): Likewise.
467 (sra_explode_bitfield_assignment): Likewise.
468 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
469 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
470 set BIT_FIELD_REF_UNSIGNED.
471 (vectorizable_load): Likewise.
473 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
475 * cse.c (cse_extended_basic_block): Invalidate artificial defs
478 2008-03-06 Richard Guenther <rguenther@suse.de>
480 * alias.c (struct alias_set_entry): Move has_zero_child field
481 to pack with alias_set.
483 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
485 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
488 2008-03-05 Ian Lance Taylor <iant@google.com>
490 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
492 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
494 * fwprop.c (update_df): Support width and offset parameters of
496 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
497 global_conflicts): Change DF_REF_EXTRACT to either
498 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
499 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
500 * df-scan.c (df_ref_record, df_defs_record,
501 df_ref_create_structure, df_def_record_1, df_uses_record,
502 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
503 df_bb_refs_collect, df_entry_block_defs_collect,
504 df_exit_block_uses_collect): Support new width and offset fields.
505 (ref_extract_pool): New storage pool.
506 (df_free_ref): New function.
507 (df_reg_chain_unlink, df_free_collection_rec,
508 df_sort_and_compress_refs): Call df_free_ref.
509 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
511 (df_ref_create_structure): Allocate df_ref_extract if offset and
512 width fields are used.
513 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
514 (df_uses_record): Get offset and width from ZERO_EXTRACT
516 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
517 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
518 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
519 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
520 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
521 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
522 (df_ref_extract): New structure.
523 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
524 (df_ref_create): Add width and offset parameters.
526 2008-03-05 Richard Guenther <rguenther@suse.de>
528 * tree-ssa-structalias.c (get_constraint_for_component_ref):
529 Use ranges_overlap_p.
530 (offset_overlaps_with_access): Rename
531 to ranges_overlap_p and move ...
532 * tree-flow-inline.h (ranges_overlap_p): ... here.
534 * tree.h (get_inner_reference, handled_component_p): Update
537 * tree.h (record_component_aliases, get_alias_set,
538 alias_sets_conflict_p, alias_sets_must_conflict_p,
539 objects_must_conflict_p): Move declarations ...
540 * alias.h (record_component_aliases, get_alias_set,
541 alias_sets_conflict_p, alias_sets_must_conflict_p,
542 objects_must_conflict_p): ... here.
544 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
546 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
548 * cfg.c: Include tree-flow.h.
549 (remove_edge_raw): Call redirect_edge_var_map_clear.
550 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
551 * tree-flow-inline.h (redirect_edge_var_map_def): New.
552 (redirect_edge_var_map_result): New.
553 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
554 PENDING_STMT use with redirect_edge_var_map_*.
555 * tree-ssa.c (edge_var_maps): New definition.
556 (redirect_edge_var_map_add): New.
557 (redirect_edge_var_map_clear): New.
558 (redirect_edge_var_map_dup): New.
559 (redirect_edge_var_map_vector): New.
560 (redirect_edge_var_map_destroy): New.
561 (ssa_redirect_edge): Replace PENDING_STMT use with
562 redirect_edge_var_map_*.
563 (flush_pending_stmts): Same.
564 (delete_tree_ssa): Destroy edge var map.
565 * tree-flow.h (struct _edge_var_map): New.
566 Define edge_var_map vector type.
567 Declare redirect_edge_var_map_* prototypes.
568 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
569 * tree-cfg.c (reinstall_phi_args): Replace
570 PENDING_STMT use with redirect_edge_var_map_*.
572 2008-03-05 Richard Guenther <rguenther@suse.de>
574 PR tree-optimization/35472
575 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
576 whose single use_stmt has a overlapping set of loaded and
577 stored symbols as that use_stmt might be a noop assignment then.
579 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
581 * gthr-rtems.h: Implement __gthread_mutex_destroy.
583 2008-03-05 Richard Guenther <rguenther@suse.de>
586 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
588 * tree-cfg.c (verify_expr): Verify it.
589 * fold-const.c (fold_truthop): Remove code generating
590 BIT_FIELD_REFs of structure bases.
591 (fold_binary): Likewise.
592 (fold_ternary): Position and size of BIT_FIELD_REFs are
593 always host integers.
594 (make_bit_field_ref): Remove.
595 (optimize_bit_field_compare): Remove.
596 (all_ones_mask_p): Remove.
598 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
601 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
602 (split_block_and_df_analyze): New. Split basic block and rebuild
604 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
606 (split_pattern_seq): Likewise.
607 (erase_matching_seqs): Likewise.
608 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
610 2008-03-04 Geoff Keating <geoffk@apple.com>
612 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
613 declaration and code.
614 (tree_invalid_nonnegative_warnv_p): Likewise.
616 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
618 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
619 examples. Truncate option-names then causing overfull hbox.
621 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
624 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
626 * configure: Rebuilt.
628 2008-03-04 Rafael Espindola <espindola@google.com>
630 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
631 (tree_unary_nonnegative_warnv_p): New.
632 (tree_binary_nonnegative_warnv_p): New.
633 (tree_single_nonnegative_warnv_p): New.
634 (tree_invalid_nonnegative_warnv_p): New.
635 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
637 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
640 * opts.c (handle_option): Postpone 'unknown option' errors only for
643 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
646 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
649 2008-03-04 Rafael Espindola <espindola@google.com>
651 * fold-const.c (tree_unary_nonzero_warnv_p): New.
652 (tree_binary_nonzero_warnv_p): New.
653 (tree_single_nonzero_warnv_p): New.
654 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
656 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
659 * fold-const.c (fold_cond_expr_with_comparison): Prevent
660 transformations for modes that have signed zeros.
661 * ifcvt.c (noce_try_abs): Ditto.
663 2008-03-04 Joseph Myers <joseph@codesourcery.com>
665 * config/i386/i386.c (override_options): Force
666 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
668 2008-03-04 Jan Hubicka <jh@suse.cz>
671 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
674 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
676 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
677 label to probe the stack.
679 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
681 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
682 (__gthr_win32_mutex_destroy): Declare.
683 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
684 __gthr_win32_mutex_destroy.
685 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
687 2008-03-03 Jan Hubicka <jh@suse.cz>
690 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
691 aggressive on inlining cold calls.
693 2008-03-03 Richard Guenther <rguenther@suse.de>
695 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
696 struct copies into the expression table.
697 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
698 (try_to_simplify): Likewise.
699 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
700 integral and pointer arguments which do not change the
701 precision to NOP_EXPRs.
702 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
703 VIEW_CONVERT_EXPR case.
705 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
707 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
708 defined in a loop at depth 0 is invariant.
709 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
710 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
711 be called at loop depth 0.
713 2008-03-02 Jakub Jelinek <jakub@redhat.com>
716 * gcc.c (process_command): Update copyright notice dates.
717 * gcov.c (print_version): Likewise.
718 * gcov-dump.c (print_version): Likewise.
719 * mips-tfile.c (main): Likewise.
720 * mips-tdump.c (main): Likewise.
722 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
725 * c-common.c (flag_permissive): Delete.
726 (constant_expression_warnings): Check flags first.
727 (constant_expression_error): New.
728 * c-common.h (flag_permissive): Delete.
729 (constant_expression_error): Declare.
730 * flags.h (flag_permissive): Declare. Update description.
731 * diagnostic.c (pedwarn): Update.
733 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
734 (permissive_error_kind): New.
735 * toplev.c (flag_permissive): Define. Update description.
736 * toplev.h (permissive_error_kind): Declare.
737 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
738 (pedwarn_c90): Use pedantic_warning_kind.
739 * c-opts.c (c_common_post_options): flag_permissive does not affect
740 flag_pedantic_errors.
742 2008-03-02 Joseph Myers <joseph@codesourcery.com>
744 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
745 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
746 __absvsi2, __absvDI2): Use unsigned arithmetic.
748 2008-03-02 Andi Kleen <ak@suse.de>
749 Richard Guenther <rguenther@suse.de>
751 * struct-equiv.c: Remove file.
752 * cfg_cleanup.c (condjump_equiv_p): Remove.
753 * Makefile.in (OBJS-common): Remove struct-equiv.o.
754 (struct-equiv.o): Remove rule.
755 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
756 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
757 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
759 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
761 * ifcvt.c (noce_process_if_block): Try to handle only the then
762 block if the else block exists but isn't suitable.
764 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
767 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
768 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
769 regression from previous patch.
771 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
774 * gthr.h: Add __gthread_mutex_destroy as a function that must be
776 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
777 * gthr-single.h (__gthread_mutex_destroy): Likewise.
778 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
779 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
780 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
781 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
782 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
783 (__gthread_mutex_destroy_function): Rename to
784 __gthread_mutex_destroy.
785 * gthr-dce.h (__gthread_mutex_destroy): Call
786 pthread_mutex_destroy.
787 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
788 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
789 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
791 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
793 * df-scan.c (df_ref_chain_change_bb): Simplify.
794 (df_insn_change_bb): Add new_bb argument. Simplify. Call
795 set_block_for_insn if there's any change.
796 * df.h ((df_insn_change_bb): Fix prototype.
797 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
798 df_insn_change_bb, don't call set_block_for_insn.
799 * emit-rtl.c (reorder_insns): Likewise.
800 * haifa-sched.c (move_insn): Likewise.
802 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
804 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
806 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
808 * tree-flow-inline.h (next_readonly_imm_use): Return
809 NULL_USE_OPERAND_P after the end.
811 2008-03-01 Richard Guenther <rguenther@suse.de>
813 PR tree-optimization/35411
814 * tree-sra.c (sra_build_assignment): Split conversion to
815 final type to a separate statement if we are not assigning
818 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
820 * fold-const.c (fold_convertible_p): Correct the logic to follow
821 that in fold_convert().
823 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
826 * tree-inline.c (build_duplicate_type): When we make a
827 duplicate type, make it unique in the canonical types system.
829 2008-02-29 Tom Tromey <tromey@redhat.com>
831 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
832 input_file_stack_history, input_file_stack_restored): Remove.
833 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
834 * input.h (struct file_stack): Remove.
835 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
836 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
838 * diagnostic.h (struct diagnostic_context) <last_module>: Change
840 (diagnostic_last_module_changed): Add 'map' argument.
841 (diagnostic_set_last_function): Likewise.
842 * diagnostic.c (undiagnostic_report_current_module): Iterate using
843 line map, not input_file_stack.
844 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
846 2008-02-29 Paul Brook <paul@codesourcery.com>
848 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
850 2008-02-29 Paul Brook <paul@codesourcery.com>
852 * config/arm/ieee754-df.S (muldf3): Use RET macros.
854 2008-02-29 Richard Guenther <rguenther@suse.de>
856 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
858 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
859 value for comparing for a store match.
860 (simplify_unary_expression): Do nothing for SSA_NAMEs.
861 (try_to_simplify): Do not do a full-blown reference lookup.
863 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
865 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
866 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
868 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
870 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
872 * tree-loop-linear.c (try_interchange_loops): Compare memory access
873 strides against cache sizes.
875 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
877 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
880 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
882 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
883 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
884 is smaller than the original promoted value.
885 (simplify_subreg): If OP is a SUBREG, try to preserve its
886 SUBREG_PROMOTED_VAR_P information.
888 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
890 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
891 (VN_INFO_GET): Allocate new objects on the obstack.
892 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
893 for rpo_numbers_temp, for consistency.
894 (free_scc_vn): Free the obstack.
896 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
898 * doc/invoke.texi: Document -ftree-loop-distribution.
899 * tree-loop-distribution.c: New.
900 * tree-pass.h (pass_loop_distribution): New.
901 * graphds.h (struct graph): Add htab_t indices.
902 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
903 * tree-vectorizer.c (rename_variables_in_loop): Extern.
904 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
905 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
906 * tree-data-ref.c (debug_data_dependence_relations): New.
907 (dump_data_dependence_relation): Also print data references.
908 (free_data_ref): Extern.
909 (same_access_functions): Moved...
910 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
911 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
912 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
913 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
914 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
915 (stmts_from_loop): Skip LABEL_EXPR.
916 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
918 (build_rdg): Initialize rdg->indices htab.
919 (free_rdg, stores_from_loop, ref_base_address,
920 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
921 have_similar_memory_accesses_1, ref_base_address_1,
922 remove_similar_memory_refs): New.
923 * tree-data-ref.h: Depend on tree-chrec.h.
924 (debug_data_dependence_relations, free_data_ref): Declared.
925 (same_access_functions): ... here.
926 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
928 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
929 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
930 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
931 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
932 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
933 rdg_vertex_for_stmt): Declared.
934 (struct rdg_edge): Add level.
936 (free_rdg, stores_from_loop, remove_similar_memory_refs,
937 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
939 (rdg_has_similar_memory_accesses): New.
940 * tree-vect-analyze.c: Remove unused static decls.
941 * lambda.h (dependence_level): New.
942 * common.opt (ftree-loop-distribution): New.
943 * tree-flow.h (mark_virtual_ops_in_bb,
944 slpeel_tree_duplicate_loop_to_edge_cfg,
945 rename_variables_in_loop): Declared.
946 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
947 (OBJS-common): Add tree-loop-distribution.o.
948 (tree-loop-distribution.o): New rule.
949 * tree-cfg.c (mark_virtual_ops_in_bb): New.
950 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
951 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
953 2008-02-28 Joseph Myers <joseph@codesourcery.com>
956 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
957 other than structures and unions.
959 2008-02-28 Richard Guenther <rguenther@suse.de>
962 2008-02-26 Richard Guenther <rguenther@suse.de>
964 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
965 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
966 (lookup_decl_from_uid): Declare.
967 (remove_decl_from_map): Likewise.
968 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
969 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
970 (decl_for_uid_map): New global hashtable mapping DECL_UID
972 (init_ttree): Allocate it.
973 (insert_decl_to_uid_decl_map): New helper function.
974 (make_node_stat): Insert new decls into the map.
975 (copy_node_stat): Likewise.
976 (lookup_decl_from_uid): New function.
977 (remove_decl_from_map): Likewise.
978 (print_decl_for_uid_map_statistics): New helper.
979 (dump_tree_statistics): Call it.
981 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
982 (referenced_var_iterator): Adjust.
983 (FOR_EACH_REFERENCED_VAR): Adjust.
984 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
985 (num_referenced_vars): Adjust.
986 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
987 (first_referenced_var): Remove.
988 (end_referenced_vars_p): Likewise.
989 (next_referenced_var): Likewise.
990 (referenced_var_iterator_set): New helper function.
991 * tree-dfa.c (referenced_var_lookup): Adjust.
992 (referenced_var_check_and_insert): Likewise.
993 (remove_referenced_var): Likewise.
994 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
995 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
996 (verify_call_clobbering): Likewise.
997 (verify_memory_partitions): Likewise.
998 (init_tree_ssa): Allocate bitmap instead of hashtable for
1000 (delete_tree_ssa): Adjust.
1001 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
1002 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
1003 (compute_tag_properties): Likewise.
1004 (set_initial_properties): Likewise.
1005 (find_partition_for): Likewise.
1006 (update_reference_counts): Likewise.
1007 (dump_may_aliases_for): Likewise.
1008 * tree-ssa-operands.c (add_virtual_operand): Likewise.
1009 (add_call_clobber_ops): Likewise.
1010 (add_call_read_ops): Likewise.
1011 (get_asm_expr_operands): Likewise.
1012 * tree-into-ssa.c (dump_decl_set): Likewise.
1013 (update_ssa): Likewise.
1014 * tree-sra.c (scan_function): Likewise.
1015 (decide_instantiations): Likewise.
1016 (scalarize_parms): Likewise.
1017 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
1018 (dsa_named_for): Likewise.
1019 * tree-ssa-structalias.c (update_alias_info): Likewise.
1020 (merge_smts_into): Likewise.
1022 2008-02-27 David Daney <ddaney@avtrex.com>
1025 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
1026 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
1027 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
1028 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
1029 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
1031 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
1034 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
1035 (BUILT_IN_NEXTTOWARD): Remove.
1036 (BUILT_IN_NEXTTOWARDF): Ditto.
1037 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
1038 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
1040 2008-02-27 Tom Tromey <tromey@redhat.com>
1042 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
1043 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
1045 2008-02-27 Jan Beulich <jbeulich@novell.com>
1047 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
1048 update the respective field on newdecl.
1050 2008-02-27 Revital Eres <eres@il.ibm.com>
1052 PR rtl-optimization/34999
1053 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
1054 crossing edges that ends with a call insn.
1055 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
1056 call insn and clear the EDGE_CROSSING flag of the crossing edge
1057 when fixing fallthru edges.
1059 2008-02-27 Richard Guenther <rguenther@suse.de>
1062 * fold-const.c (fold_unary): Return the correct argument,
1063 converted to the result type.
1065 2008-02-27 Richard Guenther <rguenther@suse.de>
1068 * expr.c (expand_expr_real_1): Assert on rotates that operate
1070 * fold-const.c (fold_binary): Use the types precision, not the
1071 bitsize of the mode if folding rotate expressions. Build rotates
1072 only for full modes.
1074 2008-02-27 Jakub Jelinek <jakub@redhat.com>
1076 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
1078 * c-pragma.c (pragma_ns_name): New typedef.
1079 (registered_pp_pragmas): New variable.
1080 (c_pp_lookup_pragma): New function.
1081 (c_register_pragma_1): If flag_preprocess_only, do nothing
1082 for non-expanded pragmas, for expanded ones push pragma's
1083 namespace and name into registered_pp_pragmas vector.
1084 (c_invoke_pragma_handler): Register OpenMP pragmas even when
1085 flag_preprocess_only, don't register GCC pch_preprocess
1086 pragma if flag_preprocess_only.
1087 * c-opts.c (c_common_init): Call init_pragma even if
1088 flag_preprocess_only.
1089 * c-pragma.c (c_pp_lookup_pragma): New prototype.
1090 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
1091 cpp_register_pragma if flag_preprocess_only.
1093 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1096 * c-parser.c (c_parser_translation_unit): Warn for empty
1097 translation unit, not empty source file.
1099 2008-02-26 Paul Brook <paul@codesourcery.com>
1101 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
1102 operand for Thumb-2.
1103 * config/arm/arm.h (reg_class): Add CORE_REGS.
1104 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
1105 (BASE_REG_CLASS): Use CORE_REGS.
1106 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
1107 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
1108 (REGNO_OK_FOR_INDEX_P): Exclude SP.
1109 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
1110 ARM_REGNO_OK_FOR_INDEX_P.
1111 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
1112 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
1113 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
1114 (ldm/stm peepholes): Ditto.
1115 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
1116 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
1117 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
1118 * config/arm/constraints.md: Enable "k" constraint on ARM.
1120 2008-02-27 Ben Elliston <bje@au.ibm.com>
1122 * config/rs6000/rs6000.c: Annotate cache line size field in all
1123 instances of struct processor_costs.
1125 2008-02-26 David Edelsohn <edelsohn@gnu.org>
1127 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
1128 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
1129 jump_bypass): New counters.
1130 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
1131 * dce.c (gate_ud_dce): Same.
1132 (gate_fast_dce): Same.
1133 * dse.c (gate_dse1): New function.
1134 (gate_dse2): New function.
1135 (gate_dse): Merge results of new gate functions.
1136 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
1137 (gate_handle_jump_bypass): Add dbg_cnt.
1138 (gate_handle_gcse): Add dbg_cnt.
1139 * ifcvt.c (gate_handle_if_conversion): Same.
1140 (gate_handle_if_after_combine): Same.
1141 (gate_handle_if_after_reload): Same.
1142 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
1144 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
1146 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
1148 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
1150 2008-02-26 Jason Merrill <jason@redhat.com>
1153 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
1154 alone if it's the naming decl for the type's main variant.
1156 2008-02-26 Tom Tromey <tromey@redhat.com>
1158 * system.h (USE_MAPPED_LOCATION): Poison.
1159 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
1160 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
1161 (make_goto_expr_edges): Likewise.
1162 (remove_bb): Likewise.
1163 (execute_warn_function_return): Likewise.
1164 * basic-block.h (struct edge_def) <goto_locus>: Change type to
1166 * c-common.c (fname_decl): Remove old location code.
1167 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
1169 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
1171 (ASM_INPUT_SOURCE_LOCATION): Likewise.
1172 (gen_rtx_ASM_INPUT): Likewise.
1173 (gen_rtx_ASM_INPUT_loc): Likewise.
1174 (get_rtx_asm_OPERANDS): Remove.
1175 * cfglayout.c (insn_locators_alloc): Remove old location code.
1176 (set_curr_insn_source_location): Likewise.
1177 (curr_insn_locator): Likewise.
1178 * print-tree.c (print_node): Remove old location code.
1179 * tree-mudflap.c (mf_varname_tree): Remove old location code.
1180 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
1181 * cfgexpand.c (expand_gimple_cond_expr): Don't use
1182 location_from_locus.
1183 (construct_exit_block): Remove old location code.
1184 * emit-rtl.c (force_next_line_note): Remove old location code.
1185 * profile.c (branch_prob): Remove old location code.
1186 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
1187 LOC_LINE): Remove old-location variants.
1188 * langhooks.c (lhd_print_error_function): Remove old location
1190 * configure, config.in: Rebuilt.
1191 * configure.ac (--enable-mapped-location): Remove.
1192 * c-decl.c (c_init_decl_processing): Remove old location code.
1193 (finish_function): Likewise.
1194 * recog.c (decode_asm_operands): Remove old location code.
1195 * c-pch.c (c_common_read_pch): Remove old location code.
1196 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
1198 * gimple-low.c (lower_function_body): Remove old location code.
1199 * toplev.c (unknown_location): Remove.
1200 (push_srcloc): Remove old-location variant.
1201 (process_options): Remove old location code.
1202 (lang_dependent_init): Likewise.
1203 * input.h (UNKNOWN_LOCATION): Move definition.
1204 (location_t): Undeprecate.
1205 (source_locus): Remove.
1206 (location_from_locus): Remove.
1207 (struct location_s): Remove.
1208 Remove all old-location code.
1209 (input_line, input_filename): Remove.
1210 * final.c (final_scan_insn): Remove old location code.
1211 * diagnostic.c (diagnostic_build_prefix): Remove
1212 USE_MAPPED_LOCATION test.
1213 * tree.h (gimple_stmt) <locus>: Now a location_t.
1214 (tree_exp) <locus>: Likewise.
1215 (DECL_IS_BUILTIN): Remove old-location variant.
1216 (annotate_with_file_line, annotate_with_locus): Likewise.
1217 (expr_locus, set_expr_locus): Update.
1218 * tree.c (build1_stat): Remove old location code.
1219 (last_annotated_node): Remove.
1220 (annotate_with_file_line): Remove old-location variant.
1221 (annotate_with_locus): Likewise.
1222 (expr_location): Remove old location code.
1223 (set_expr_location): Likewise.
1224 (expr_has_location): Likewise.
1225 (expr_locus): Likewise.
1226 (set_expr_locus): Likewise.
1227 (expr_filename): Don't use location_from_locus.
1228 (expr_lineno): Likewise.
1229 * rtl-error.c (location_for_asm): Remove old location code.
1230 * c-lex.c (cb_line_change): Remove old location code.
1231 (fe_file_change): Likewise.
1232 (cb_def_pragma): Likewise.
1233 (c_lex_with_flags): Likewise.
1234 * gengtype.c (do_typedef): Don't special-case location types.
1235 (define_location_structures): Remove.
1236 (main): Don't call define_location_structures.
1237 * tree-pretty-print.c (dump_implicit_edges): Remove old location
1240 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1243 * builtins.def (BUILT_IN_STDARG_START): Remove.
1244 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
1245 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
1246 * tree-inline.c (inline_forbidden_p_1): Likewise.
1248 2008-02-26 Richard Guenther <rguenther@suse.de>
1250 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
1251 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
1252 (lookup_decl_from_uid): Declare.
1253 (remove_decl_from_map): Likewise.
1254 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
1255 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
1256 (decl_for_uid_map): New global hashtable mapping DECL_UID
1258 (init_ttree): Allocate it.
1259 (insert_decl_to_uid_decl_map): New helper function.
1260 (make_node_stat): Insert new decls into the map.
1261 (copy_node_stat): Likewise.
1262 (lookup_decl_from_uid): New function.
1263 (remove_decl_from_map): Likewise.
1264 (print_decl_for_uid_map_statistics): New helper.
1265 (dump_tree_statistics): Call it.
1267 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
1268 (referenced_var_iterator): Adjust.
1269 (FOR_EACH_REFERENCED_VAR): Adjust.
1270 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
1271 (num_referenced_vars): Adjust.
1272 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
1273 (first_referenced_var): Remove.
1274 (end_referenced_vars_p): Likewise.
1275 (next_referenced_var): Likewise.
1276 (referenced_var_iterator_set): New helper function.
1277 * tree-dfa.c (referenced_var_lookup): Adjust.
1278 (referenced_var_check_and_insert): Likewise.
1279 (remove_referenced_var): Likewise.
1280 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
1281 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
1282 (verify_call_clobbering): Likewise.
1283 (verify_memory_partitions): Likewise.
1284 (init_tree_ssa): Allocate bitmap instead of hashtable for
1286 (delete_tree_ssa): Adjust.
1287 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
1288 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
1289 (compute_tag_properties): Likewise.
1290 (set_initial_properties): Likewise.
1291 (find_partition_for): Likewise.
1292 (update_reference_counts): Likewise.
1293 (dump_may_aliases_for): Likewise.
1294 * tree-ssa-operands.c (add_virtual_operand): Likewise.
1295 (add_call_clobber_ops): Likewise.
1296 (add_call_read_ops): Likewise.
1297 (get_asm_expr_operands): Likewise.
1298 * tree-into-ssa.c (dump_decl_set): Likewise.
1299 (update_ssa): Likewise.
1300 * tree-sra.c (scan_function): Likewise.
1301 (decide_instantiations): Likewise.
1302 (scalarize_parms): Likewise.
1303 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
1304 (dsa_named_for): Likewise.
1305 * tree-ssa-structalias.c (update_alias_info): Likewise.
1306 (merge_smts_into): Likewise.
1308 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1311 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
1312 * c-opts.c (c_common_handle_option): Wall enables
1313 Wvolatile-register-var.
1314 * common.opt: Move Wvolatile-register-var to...
1317 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1319 * common.opt (Wlarger-than=): New.
1320 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
1322 * opts.c (common_handle_option): Handle -Wlarger-than=.
1323 * optc-gen.awk: Likewise.
1324 * opth-gen.awk: Likewise.
1325 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
1326 * tree-optimize.c (tree_rest_of_compilation): Likewise.
1328 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1330 * c-common.c (match_case_to_enum_1): Add appropriate
1331 OPT_W* parameter to warning.
1332 (c_do_switch_warnings): Likewise.
1333 * c-typeck.c (warning_init): Add one more parameter following
1335 (push_init_level): Update call to warning_init.
1336 (pop_init_level): Likewise.
1337 (add_pending_init): Likewise.
1338 (output_init_element: Likewise.
1340 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1343 * toplev.c (toplev_main): If there are warnings or error, print
1344 errors for ignored options.
1345 * opts.c (ignored_options): New static variable.
1346 (postpone_unknown_option_error): New.
1347 (print_ignored_options): New.
1348 (handle_option): Postpone errors for unknown -Wno-* options.
1349 * opts.h (print_ignored_options): Declare.
1351 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
1353 * config/mips/mips.md (loadgp_blockage, blockage): Change type
1356 2008-02-25 Richard Guenther <rguenther@suse.de>
1359 2008-02-25 Richard Guenther <rguenther@suse.de>
1361 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
1362 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
1363 (lookup_decl_from_uid): Declare.
1364 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
1365 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
1366 (decl_for_uid_map): New global hashtable mapping DECL_UID
1368 (init_ttree): Allocate it.
1369 (insert_decl_to_uid_decl_map): New helper function.
1370 (make_node_stat): Insert new decls into the map.
1371 (copy_node_stat): Likewise.
1372 (lookup_decl_from_uid): New function.
1373 (print_decl_for_uid_map_statistics): New helper.
1374 (dump_tree_statistics): Call it.
1376 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
1377 (referenced_var_iterator): Adjust.
1378 (FOR_EACH_REFERENCED_VAR): Adjust.
1379 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
1380 (num_referenced_vars): Adjust.
1381 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
1382 (first_referenced_var): Remove.
1383 (end_referenced_vars_p): Likewise.
1384 (next_referenced_var): Likewise.
1385 (referenced_var_iterator_set): New helper function.
1386 * tree-dfa.c (referenced_var_lookup): Adjust.
1387 (referenced_var_check_and_insert): Likewise.
1388 (remove_referenced_var): Likewise.
1389 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
1390 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
1391 (verify_call_clobbering): Likewise.
1392 (verify_memory_partitions): Likewise.
1393 (init_tree_ssa): Allocate bitmap instead of hashtable for
1395 (delete_tree_ssa): Adjust.
1396 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
1397 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
1398 (compute_tag_properties): Likewise.
1399 (set_initial_properties): Likewise.
1400 (find_partition_for): Likewise.
1401 (update_reference_counts): Likewise.
1402 (dump_may_aliases_for): Likewise.
1403 * tree-ssa-operands.c (add_virtual_operand): Likewise.
1404 (add_call_clobber_ops): Likewise.
1405 (add_call_read_ops): Likewise.
1406 (get_asm_expr_operands): Likewise.
1407 * tree-into-ssa.c (dump_decl_set): Likewise.
1408 (update_ssa): Likewise.
1409 * tree-sra.c (scan_function): Likewise.
1410 (decide_instantiations): Likewise.
1411 (scalarize_parms): Likewise.
1412 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
1413 (dsa_named_for): Likewise.
1414 * tree-ssa-structalias.c (update_alias_info): Likewise.
1415 (merge_smts_into): Likewise.
1417 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
1420 * doc/invoke.texi (-fcx-limited-range): Document new option.
1421 * toplev.c (process_options): Handle -fcx-fortran-rules.
1422 * common.opt: Add documentation for -fcx-fortran-rules.
1424 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
1427 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
1428 actual behaviour and C99.
1430 2008-02-26 Ben Elliston <bje@au.ibm.com>
1432 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
1433 (ASM_CPU_POWER6_SPEC): Likewise.
1434 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
1435 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
1436 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
1438 2008-02-25 Richard Guenther <rguenther@suse.de>
1440 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
1441 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
1442 (lookup_decl_from_uid): Declare.
1443 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
1444 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
1445 (decl_for_uid_map): New global hashtable mapping DECL_UID
1447 (init_ttree): Allocate it.
1448 (insert_decl_to_uid_decl_map): New helper function.
1449 (make_node_stat): Insert new decls into the map.
1450 (copy_node_stat): Likewise.
1451 (lookup_decl_from_uid): New function.
1452 (print_decl_for_uid_map_statistics): New helper.
1453 (dump_tree_statistics): Call it.
1455 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
1456 (referenced_var_iterator): Adjust.
1457 (FOR_EACH_REFERENCED_VAR): Adjust.
1458 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
1459 (num_referenced_vars): Adjust.
1460 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
1461 (first_referenced_var): Remove.
1462 (end_referenced_vars_p): Likewise.
1463 (next_referenced_var): Likewise.
1464 (referenced_var_iterator_set): New helper function.
1465 * tree-dfa.c (referenced_var_lookup): Adjust.
1466 (referenced_var_check_and_insert): Likewise.
1467 (remove_referenced_var): Likewise.
1468 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
1469 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
1470 (verify_call_clobbering): Likewise.
1471 (verify_memory_partitions): Likewise.
1472 (init_tree_ssa): Allocate bitmap instead of hashtable for
1474 (delete_tree_ssa): Adjust.
1475 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
1476 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
1477 (compute_tag_properties): Likewise.
1478 (set_initial_properties): Likewise.
1479 (find_partition_for): Likewise.
1480 (update_reference_counts): Likewise.
1481 (dump_may_aliases_for): Likewise.
1482 * tree-ssa-operands.c (add_virtual_operand): Likewise.
1483 (add_call_clobber_ops): Likewise.
1484 (add_call_read_ops): Likewise.
1485 (get_asm_expr_operands): Likewise.
1486 * tree-into-ssa.c (dump_decl_set): Likewise.
1487 (update_ssa): Likewise.
1488 * tree-sra.c (scan_function): Likewise.
1489 (decide_instantiations): Likewise.
1490 (scalarize_parms): Likewise.
1491 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
1492 (dsa_named_for): Likewise.
1493 * tree-ssa-structalias.c (update_alias_info): Likewise.
1494 (merge_smts_into): Likewise.
1496 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
1499 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
1500 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
1501 * alias.h (nonoverlapping_memrefs_p): Likewise.
1503 2008-02-25 Jan Beulich <jbeulich@novell.com>
1505 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
1506 * config/i386/netware-libgcc.exp: Add __bswap?i2,
1507 __emultls_get_address, __emultls_register_common,
1508 __floatundi?f, and _Unwind_GetIPInfo.
1509 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
1510 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
1511 (gen_regparm_prefix): Likewise.
1512 (i386_nlm_encode_section_info): Sync with
1513 config/i386/winnt.c:i386_pe_encode_section_info().
1514 (i386_nlm_maybe_mangle_decl_assembler_name): New.
1515 i386_nlm_mangle_decl_assembler_name): New.
1516 (netware_override_options): New.
1517 * config/i386/netware.h (netware_override_options): Declare.
1518 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
1519 (i386_nlm_mangle_decl_assembler_name): Declare.
1520 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
1522 2008-02-25 Ben Elliston <bje@au.ibm.com>
1525 * c-decl.c (grokdeclarator): Remove unused local variables
1526 `typedef_type' and `type_as_written'.
1528 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
1529 unused local variable `has_hot_blocks'.
1530 (fix_crossing_conditional_branches): Remove unused local variable
1533 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
1536 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
1537 using DEF_C99_BUILTIN.
1538 (BUILT_IN_NANF): Ditto.
1539 (BUILT_IN_NANL): Ditto.
1541 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
1542 Revital Eres <eres@il.ibm.com>
1544 * modulo-sched.c (calculate_must_precede_follow): Address TODO
1545 regarding the order of two dependent insns in the same row.
1547 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
1549 * stor-layout.c (layout_decl): Do not bump the alignment of a
1550 bit-field to more than byte alignment if it is packed.
1552 2008-02-24 David Edelsohn <edelsohn@gnu.org>
1554 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
1557 2008-02-24 Diego Novillo <dnovillo@google.com>
1559 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
1562 * tree-vrp.c (vrp_evaluate_conditional): With
1563 -Wtype-limits, emit a warning when comparing against a
1564 constant outside the natural range of OP0's type.
1565 * c.opt (Wtype-limits): Move ...
1566 * common.opt (Wtype-limits): ... here.
1568 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
1570 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
1571 * config/rs6000/e300c2c3.md: New file.
1572 * config/rs6000/rs6000.c (processor_costs): Add new costs for
1574 (rs6000_override_options): Add e300c2 and e300c3 cases to
1575 processor_target_table. Do not allow usage of Altivec or Spe
1576 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
1577 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
1578 * config/rs6000/rs6000.h (processor_type): Add
1579 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
1580 (ASM_CPU_SPEC): Add e300c2 and e300c3.
1581 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
1582 and ppce300c3. Include e300c2c3.md.
1584 2008-02-23 David Edelsohn <edelsohn@gnu.org>
1586 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
1587 instead of TARGET_STRICT_ALIGN.
1589 2008-02-23 Joseph Myers <joseph@codesourcery.com>
1591 * explow.c (memory_address): Assert that the generated address is
1594 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
1597 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
1598 * config/darwin-ppc-ldouble-patch.def: New file.
1599 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
1600 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
1601 SUBTARGET_INIT_BUILTINS if defined.
1602 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
1605 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
1608 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
1609 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
1611 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
1614 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
1615 file" warning condtional on -Winvalid-PCH.
1617 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
1619 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
1621 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
1625 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
1626 prevent reload from using MMX registers.
1627 (*mov<mode>_internal): Ditto.
1628 (*movv2sf_internal_rex64): Ditto.
1629 (*movv2sf_internal): Ditto.
1631 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1633 PR documentation/31569
1634 * doc/install.texi2html: Use makeinfo --no-number-sections.
1636 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
1638 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
1639 ensure that we can address an entire entity > 8 bytes. Don't
1640 generate reg+reg addressing for such data.
1642 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
1644 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
1645 strings when optimizing for size, unless the target cares about
1648 2008-02-22 Tom Tromey <tromey@redhat.com>
1650 * regclass.c (current_pass): Remove declaration.
1652 2008-02-22 Anatoly Sokolov <aesok@post.ru>
1654 * config/avr/libgcc.S (__RAMPZ__): Define.
1655 (__do_copy_data): Add for devices with 128KB code memory.
1657 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
1659 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
1661 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
1663 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
1665 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
1668 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1671 * c-typeck.c (build_binary_op): Warn about floating point
1672 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
1674 2008-02-21 Janis Johnson <janis187@us.ibm.com>
1677 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
1678 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
1680 (rs6000_override_options): Set altivec_abi as default, not override,
1681 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
1682 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
1683 is used; use new member spe_abi.
1684 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
1685 spe_abi and altivec_abi.
1687 2008-02-22 Tomas Bily <tbily@suse.cz>
1689 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
1691 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1694 * config.build (build_file_translate): Set to `CMD //c' only if
1696 * Makefile.in (build_file_translate): Improve comment.
1698 2008-02-21 Jan Hubicka <jh@suse.cz>
1700 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
1701 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
1702 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
1704 2008-02-21 Michael Matz <matz@suse.de>
1707 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
1709 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
1711 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
1712 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
1714 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
1715 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
1716 SSE_VEC_FLOAT_MODE_P as insn constraint.
1717 (<sse>_movmskp<ssemodesuffixf2c>): Ditto from similar patterns.
1718 (sse4a_movnt<mode>): Macroize insn from sse4a_movntsf and
1719 sse4a_movntdf using MODEF mode iterator.
1720 (sse4a_vmmovnt<mode>): Macroize insn form sse4a_vmmovntv2df and
1721 sse4a_vmmovntv4sf using SSEMODEF2P mode iterator.
1722 (sse4_1_blendp<ssemodesuffixf2c>): Ditto from similar patterns.
1723 (sse4_1_blendvp<ssemodesuffixf2c>): Ditto.
1724 (sse4_1_dpp<ssemodesuffixf2c>): Ditto.
1725 (sse4_1_roundp<ssemodesuffixf2c>): Ditto.
1726 (sse4_1_rounds<ssemodesuffixf2c>): Ditto.
1728 2008-02-21 Richard Guenther <rguenther@suse.de>
1730 * tree.def (PAREN_EXPR): New tree code.
1731 * fold-const.c (fold_unary): Remove PAREN_EXPR around constants
1733 * tree-pretty-print.c (dump_generic_node): Handle PAREN_EXPR.
1734 * expr.c (expand_expr_real_1): Likewise.
1735 * tree-inline.c (estimate_num_insns_1): Likewise.
1736 * tree-complex.c (expand_complex_move): Likewise.
1737 * tree-vectorizer.c (vect_is_simple_use): Treat PAREN_EXPR (x)
1740 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
1743 * config/sh/sh.c (find_barrier): Don't go past 'from' argument.
1745 2008-02-20 Kaz Kojima <kkojima@gcc.gnu.org>
1748 * config/sh/sh.md (jump_compact): Disable for crossing jumps.
1750 * config/sh/sh.c (find_barrier): Don't go past
1751 NOTE_INSN_SWITCH_TEXT_SECTIONS note.
1753 2008-02-20 DJ Delorie <dj@redhat.com>
1755 * config/h8300/h8300.md (insv): Force source operand to be a register.
1757 * config/h8300/h8300.c (h8300_expand_epilogue): Emit return insn
1758 as a jump, not as a plain insn.
1760 2008-02-20 Seongbae Park <seongbae.park@gmail.com>
1762 * doc/invoke.texi (Warning Options): Add new option
1763 -Wframe-larger-than=.
1764 (-Wframe-larger-than): Document.
1766 * flags.h (warn_frame_larger_than, frame_larger_than_size):
1767 Add declarations for new option variables.
1769 * final.c (final_start_function): Check the frame size
1770 before emission and issue a Wframe-larger-than warning.
1772 * opts.c (warn_frame_larger_than, frame_larger_than_size):
1773 Add definitions for new option variables.
1774 (common_handle_option): Handle new option OPT_Wframe_larger_than_.
1776 * common.opt (Wframe-larger-than=): New option.
1778 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
1780 * config/i386/sse.md (<sse>_vmmul<mode>3): Fix typo in asm template.
1781 (<sse>_div<mode>3): Ditto.
1782 (<sse>_vmdiv<mode>3): Ditto.
1783 (<sse>_vmsqrt<mode>2): Ditto.
1784 (*smax<mode>3): Ditto.
1785 (sse5_frcz<mode>2): Ditto.
1786 (sse5_vmfrcz<mode>2): Ditto. Use TARGET_SSE5 instead of TARGET_ROUND
1789 2008-02-20 Richard Guenther <rguenther@suse.de>
1792 * builtins.c (validate_arg): If we want an INTEGER_TYPE,
1793 be happy with INTEGRAL_TYPE_P.
1795 2008-02-20 Richard Guenther <rguenther@suse.de>
1797 * fold-const.c (split_tree): Associate floatig-point expressions
1798 if flag_associative_math is set.
1800 2008-02-20 Richard Guenther <rguenther@suse.de>
1802 * tree.h (fold_real_zero_addition_p): Declare.
1803 * fold-const.c (fold_real_zero_addition_p): Export.
1804 * tree-ssa-reassoc.c (eliminate_using_constants): Also handle
1805 floating-point operations with zero and one.
1807 2008-02-20 Paolo Bonzini <bonzini@gnu.org>
1809 * doc/install.texi: Correct references to CFLAGS, replacing them
1810 with BOOT_CFLAGS. Document flags used during bootstrap for
1813 2008-02-20 Uros Bizjak <ubizjak@gmail.com>
1815 * config/i386/i386.h (SSE_VEC_FLOAT_MODE_P): New define.
1816 * config/i386/i386.md (*sse_setcc<mode>): Macroize from *sse_setccsf
1817 and *sse_setccdf using MODEF mode iterator and SSE_FLOAT_MODE_P as
1819 (smin<mode>3): Ditto from similar patterns.
1820 (smax<mode>3): Ditto.
1821 (*ieee_smin<mode>3): Ditto.
1822 (*ieee_smax<mode>3): Ditto.
1823 * config/i386/sse.md (sse): New mode attribute.
1824 (mov<mode>): Macroize expander from movv4sf and movv2df using
1825 SSEMODEF2P mode iterator.
1826 (<sse>_movnt<mode>): Ditto from similar patterns. Use
1827 SSE_VEC_FLOAT_MODE_P as insn constraint.
1828 (storent<mode>): Ditto.
1829 (storent<mode>): Macroize expander from storentsf and storentdf using
1830 MODEF mode iterator.
1831 (neg<mode>2): Macroize from negv4sf2 and negv2df2 using SSEMODEF2P
1832 mode iterator and SSE_VEC_FLOAT_MODE_P as insn constraint.
1833 (abs<mode>2): Ditto from similar patterns.
1834 (add<mode>3, *add<mode>3, <sse>_vmadd<mode>3): Ditto.
1835 (sub<mode>3, *sub<mode>3, <sse>_vmsub<mode>3): Ditto.
1836 (<sse>_div<mode>3, <sse>_vmdiv<mode>3): Ditto.
1837 (<sse>_vmsqrt<mode>2): Ditto.
1838 (smin<mode>3, *smin<mode>3_finite, *smin<mode>3)
1839 (<sse>_vmsmin<mode>3, *ieee_smin<mode>3): Ditto.
1840 (smax<mode>3, *smax<mode>3_finite, *smax<mode>3)
1841 (<sse>_vmsmax<mode>3, *ieee_smax<mode>3): Ditto.
1842 (<sse>_maskcmp<mode>3): Macroize from sse_maskcmpv4sf3,
1843 sse_maskcmpsf3, sse2_maskcmpv2df3 and sse2_maskcmpdf3 using SSEMODEF4
1844 mode iterator. Use SSE_FLOAT_MODE_P with SSE_VEC_FLOAT_MODE_P as
1846 (<sse>_comi): Macroize from sse_comi and sse2_comi using MODEF mode
1847 iterator and SSE_FLOAT_MODE_P as insn constraint.
1848 (<sse>_ucomi): Ditto from similar patterns.
1849 (<sse>_vmmaskcmp<mode>3): Macroize from sse_vmmaskcmpv4sf3 and
1850 sse2_vmmaskcmpv2df3 using SSEMODEF2P mode iterator and
1851 SSE_VEC_FLOAT_MODE_P as insn constraint.
1852 (vcond<mode>): Ditto from similar patterns.
1853 (and<mode>3, *and<mode>3): Ditto.
1854 (<sse>_nand<mode>3): Ditto.
1855 (ior<mode>3, *ior<mode>3): Ditto.
1856 (xor<mode>3, *xor<mode>3): Ditto.
1857 (*and<mode>3): Macroize from *andsf3 and *anddf3 using MODEF mode
1858 iterator and SSE_FLOAT_MODE_P as insn constraint.
1859 (*nand<mode>3): Ditto from similar patterns.
1860 (*ior<mode>3): Ditto.
1861 (*xor<mode>3): Ditto.
1863 2008-02-20 Ira Rosen <irar@il.ibm.com>
1865 * config/spu/spu.md (vec_unpacku_hi_v8hi, vec_unpacku_lo_v8hi,
1866 vec_unpacks_hi_v8hi, vec_unpacks_lo_v8hi, vec_unpacku_hi_v16qi,
1867 vec_unpacku_lo_v16qi, vec_unpacks_lo_v16qi): Implement.
1869 2008-02-19 Jan Hubicka <jh@suse.cz>
1871 * predict.c (tree_bb_level_predictions): Remove variable next
1872 mistakely introduced by previous commit.
1874 2008-02-19 Jan Hubicka <jh@suse.cz>
1876 * predict.c (predict_paths_leading_to): Rewrite.
1877 (predict_paths_for_bb): New.
1878 (tree_bb_level_predictions): Update call of predict_paths_leading_to.
1880 2008-02-19 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1883 * Makefile.in (build_file_translate): New.
1884 (gcc-vers.texi): Use it for translating $(abs_srcdir).
1885 * config.build (build_file_translate): Set to `CMD //c' on MinGW.
1886 * configure.ac (build_file_translate): Substitute it.
1887 * configure: Regenerate.
1889 2008-02-19 Jan Hubicka <jh@suse.cz>
1891 PR rtl-optimization/34408
1892 * see.c (see_def_extension_not_merged): Copy subreg so we don't have
1895 2008-02-19 Jan Hubicka <jh@suse.cz>
1898 * tree-inline.c (estimate_num_insns_1): Fix counting of cost of
1901 2008-02-19 H.J. Lu <hongjiu.lu@intel.com>
1904 * config/i386/i386-modes.def: Revert the last DI alignment
1905 change until Ada people can look into it.
1907 2008-02-19 Nick Clifton <nickc@redhat.com>
1909 * opts.c (print_specific_help): Fix typo in --help text.
1911 2008-02-19 Jakub Jelinek <jakub@redhat.com>
1914 * config/i386/cpuid.h (__cpuid, __get_cpuid_max): Use special
1915 32-bit inline asm without asm alternatives for host GCC < 3.0.
1917 2008-02-19 Richard Guenther <rguenther@suse.de>
1919 PR tree-optimization/34989
1920 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Re-structure.
1921 Allow propagation to INDIRECT_REF if we can simplify only.
1923 2008-02-19 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1925 * c-common.c (warn_for_collisions_1): Use appropriate option when
1928 2008-02-19 Nick Clifton <nickc@redhat.com>
1931 * opts.c (undocumented_msg): Leave blank unless checking is enabled.
1932 (handle_options): Fix indentation.
1933 (print_filtered_help): If no language-specific options were
1934 displayed tell the user how to list all the options supported by
1935 the language's front-end.
1936 (print_specific_help): Fix indentation and remove duplicate line.
1937 (common_handle_option): Handle the -v option.
1938 For --help enable the display of undocumented options if the -v
1939 switch has been included on the command line.
1940 For --help= check for overlaps in the arguments between the option
1941 classes and the language names and issue a warning when they
1942 cannot be disambiguated.
1943 * c.opt (v): Pass on to the common option handler.
1945 2008-02-19 Revital Eres <eres@il.ibm.com>
1947 * modulo-sched.c (sms_schedule): Change dump message when
1948 create_ddg function fails.
1949 (try_scheduling_node_in_cycle): Rename row to cycle.
1950 (print_partial_schedule): Rename CYCLE to ROW.
1952 2008-02-19 Christian Bruel <christian.bruel@st.com>
1953 Zdenek Dvorak <ook@ucw.cz>
1955 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check step alignment.
1957 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
1960 * config/i386/i386.md (*x86_movsicc_0_m1_se): New insn pattern.
1961 (*x86_movdicc_0_m1_se): Ditto.
1963 2008-02-19 Uros Bizjak <ubizjak@gmail.com>
1965 * config/i386/sfp-machine.h (__gcc_CMPtype): New typedef.
1966 (CMPtype): Define as __gcc_CMPtype.
1967 * config/rs6000/sfp-machine.h (__gcc_CMPtype): New typedef.
1968 (CMPtype): Define as __gcc_CMPtype.
1970 2008-02-19 Hans-Peter Nilsson <hp@axis.com>
1972 Support valgrind 3.3 for --enable-checking=valgrind.
1973 * system.h: Consolidate ENABLE_VALGRIND_CHECKING-dependent defines
1975 [!VALGRIND_MAKE_MEM_NOACCESS]: Define as VALGRIND_MAKE_NOACCESS.
1976 [!VALGRIND_MAKE_MEM_DEFINED]: Define as VALGRIND_MAKE_READABLE.
1977 [!VALGRIND_MAKE_MEM_UNDEFINED]: Define as VALGRIND_MAKE_WRITABLE.
1978 * ggc-common.c: Remove ENABLE_VALGRIND_CHECKING-dependent defines.
1979 Replace use of VALGRIND_MAKE_READABLE, VALGRIND_MAKE_WRITABLE, and
1980 VALGRIND_MAKE_NOACCESS with VALGRIND_MAKE_MEM_DEFINED,
1981 VALGRIND_MAKE_MEM_UNDEFINED, and VALGRIND_MAKE_MEM_NOACCESS
1983 * ggc-zone.c: Similar.
1984 * ggc-page.c: Similar.
1986 2008-02-19 Paul Brook <paul@codesourcery.com>
1989 * config/arm/ieee754-df.S: Fix do_it typo.
1990 * config/arm/ieee754-sf.S: Fix do_it typo.
1992 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
1995 * config/i386/i386.c (OPTION_MASK_ISA_MMX_SET): New.
1996 (OPTION_MASK_ISA_3DNOW_SET): Likewise.
1997 (OPTION_MASK_ISA_SSE_SET): Likewise.
1998 (OPTION_MASK_ISA_SSE2_SET): Likewise.
1999 (OPTION_MASK_ISA_SSE3_SET): Likewise.
2000 (OPTION_MASK_ISA_SSSE3_SET): Likewise.
2001 (OPTION_MASK_ISA_SSE4_1_SET): Likewise.
2002 (OPTION_MASK_ISA_SSE4_2_SET): Likewise.
2003 (OPTION_MASK_ISA_SSE4_SET): Likewise.
2004 (OPTION_MASK_ISA_SSE4A_SET): Likewise.
2005 (OPTION_MASK_ISA_SSE5_SET): Likewise.
2006 (OPTION_MASK_ISA_3DNOW_A_UNSET): Likewise.
2007 (OPTION_MASK_ISA_MMX_UNSET): Updated.
2008 (OPTION_MASK_ISA_3DNOW_UNSET): Updated.
2009 (OPTION_MASK_ISA_SSE_UNSET): Likewise.
2010 (OPTION_MASK_ISA_SSE3_UNSET): Likewise.
2011 (OPTION_MASK_ISA_SSSE3_UNSET): Likewise.
2012 (OPTION_MASK_ISA_SSE4_1_UNSET): Likewise.
2013 (OPTION_MASK_ISA_SSE4_2_UNSET): Likewise.
2014 (OPTION_MASK_ISA_SSE4A_UNSET): Likewise.
2015 (OPTION_MASK_ISA_SSE5_UNSET): Likewise.
2016 (OPTION_MASK_ISA_SSE4): Removed.
2017 (ix86_handle_option): Turn on bits in ix86_isa_flags and
2018 ix86_isa_flags_explicit with OPTION_MASK_ISA_XXX_SET for -mXXX.
2019 (override_options): Don't turn on implied SSE/MMX bits in
2022 2008-02-18 H.J. Lu <hongjiu.lu@intel.com>
2024 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
2027 2008-02-18 Joey Ye <joey.ye@intel.com>
2030 * tree-nested.c (insert_field_into_struct): Set type alignment
2031 to field alignment if the former is less than the latter.
2033 2008-02-18 Jakub Jelinek <jakub@redhat.com>
2035 * BASE-VER: Set to 4.4.0.
2037 2008-02-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2039 * doc/c-tree.texi: Use @dots{} and @enddots{} where appropriate.
2040 * doc/cfg.texi: Likewise.
2041 * doc/extend.texi: Likewise.
2042 * doc/gty.texi: Likewise.
2043 * doc/invoke.texi: Likewise.
2044 * doc/loop.texi: Likewise.
2045 * doc/md.texi: Likewise.
2046 * doc/passes.texi: Likewise.
2047 * doc/rtl.texi: Likewise.
2048 * doc/sourcebuild.texi: Likewise.
2049 * doc/tm.texi: Likewise.
2050 * doc/tree-ssa.texi: Likewise.
2052 2008-02-17 Richard Guenther <rguenther@suse.de>
2055 * tree-complex.c (init_parameter_lattice_values): Handle parameters
2056 without default definition.
2058 2008-02-17 Richard Guenther <rguenther@suse.de>
2060 PR tree-optimization/35231
2061 * tree-vrp.c (register_edge_assert_for): Do not assume A == 0
2064 2008-02-17 Uros Bizjak <ubizjak@gmail.com>
2068 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
2069 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
2070 libgcc_cmp_return mode.
2072 2008-02-16 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2075 * doc/invoke.texi (-std): Clarify description of -std= and -ansi.
2077 2008-02-16 Ralf Corsepius <ralf.corsepius@rtems.org>
2079 * config/m68k/t-rtems (M68K_MLIB_CPU): Add 5208, 5307, 5407, 5475
2082 2008-02-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2084 * doc/c-tree.texi: Use `@.' where appropriate.
2085 * doc/extend.texi: Likewise.
2086 * doc/install.texi: Likewise.
2087 * doc/invoke.texi: Likewise.
2088 * doc/loop.texi: Likewise.
2089 * doc/makefile.texi: Likewise.
2090 * doc/md.texi: Likewise.
2091 * doc/passes.texi: Likewise.
2092 * doc/standards.texi: Likewise.
2093 * doc/tm.texi: Likewise.
2095 2008-02-15 Jakub Jelinek <jakub@redhat.com>
2098 * omp-low.c (expand_omp_for_generic): Don't initialize fd->v
2100 (expand_omp_for_static_nochunk): Initialize fd->v in seq_start_bb
2101 rather than in entry_bb.
2103 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
2105 * config/i386/sfp-machine.h (CMPtype): Define as typedef using
2106 libgcc_cmp_return mode.
2108 2008-02-15 Jakub Jelinek <jakub@redhat.com>
2111 * tree-nested.c (convert_call_expr): Put FRAME.* vars into
2112 OMP_CLAUSE_SHARED rather than OMP_CLAUSE_FIRSTPRIVATE clause.
2114 2008-02-15 Richard Guenther <rguenther@suse.de>
2115 Zdenek Dvorak <ook@ucw.cz>
2117 PR tree-optimization/35164
2118 * tree-flow.h (stmt_references_abnormal_ssa_name): Declare.
2119 * tree-dfa.c (stmt_references_abnormal_ssa_name): New function.
2120 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
2121 Only propagate addresses which do not have abnormal SSA_NAMEs
2124 2008-02-15 Joseph Myers <joseph@codesourcery.com>
2127 * config/m68k/m68k.h (DWARF_CIE_DATA_ALIGNMENT): Define.
2129 2008-02-15 Jan Hubicka <jh@suse.cz>
2132 * ipa.c (cgraph_remove_unreachable_nodes): Clear local.inlinable flag.
2134 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
2137 * function.c (pad_to_arg_alignment): Remove test for STACK_BOUNDARY
2138 when calculating alignment_pad.
2140 2008-02-15 Uros Bizjak <ubizjak@gmail.com>
2142 * config/i386/i386.h (CLEAR_RATIO): Use MIN macro.
2143 (WIDEST_HARDWARE_FP_SIZE): Use LONG_DOUBLE_TYPE_SIZE define.
2144 * config/i386/darwin.h (PREFERRED_STACK_BOUNDARY): Use MAX macro
2145 and STACK_BOUNDARY define.
2147 2008-02-14 Danny Smith <dannysmith@users.sourceforge.net>
2149 PR preprocessor/35061
2150 * c-pragma.c (handle_pragma_pop_macro): Check that
2151 pushed_macro_table has been allocated.
2153 2008-02-14 Eric Botcazou <ebotcazou@adacore.com>
2156 * gimplify.c (force_gimple_operand_bsi): Revert 2008-02-12 change.
2157 (force_gimple_operand): Likewise.
2158 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Add new cases
2159 for TARGET_MEM_REF and CONVERT_EXPR/NON_LVALUE_EXPR/NOP_EXPR.
2160 Also recurse on the operand for regular VIEW_CONVERT_EXPRs.
2161 (find_interesting_uses_address): Check addressability and alignment
2162 of the base expression only after substituting bases of IVs into it.
2164 2008-02-14 Michael Matz <matz@suse.de>
2167 * function.c (instantiate_virtual_regs_in_insn): Reload address
2168 before falling back to reloading the whole operand.
2170 2008-02-14 Andreas Krebbel <krebbel1@de.ibm.com>
2172 * config/s390/s390.c (s390_mainpool_start): Emit the pool
2173 before the first section switch note.
2175 2008-02-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2177 * doc/bugreport.texi: Update copyright years.
2178 * doc/c-tree.texi: Likewise.
2179 * doc/cfg.texi: Likewise.
2180 * doc/cpp.texi: Likewise.
2181 * doc/cppinternals.texi: Likewise.
2182 * doc/fragments.texi: Likewise.
2183 * doc/frontends.texi: Likewise.
2184 * doc/gcc.texi: Likewise.
2185 * doc/gty.texi: Likewise.
2186 * doc/hostconfig.texi: Likewise.
2187 * doc/implement-c.texi: Likewise.
2188 * doc/libgcc.texi: Likewise.
2189 * doc/loop.texi: Likewise.
2190 * doc/makefile.texi: Likewise.
2191 * doc/options.texi: Likewise.
2192 * doc/passes.texi: Likewise.
2193 * doc/rtl.texi: Likewise.
2194 * doc/sourcebuild.texi: Likewise.
2195 * doc/standards.texi: Likewise.
2196 * doc/tree-ssa.texi: Likewise.
2197 * doc/trouble.texi: Likewise.
2199 * doc/extend.texi: Use @: or add comma where appropriate.
2200 * doc/invoke.texi: Likewise.
2201 * doc/tm.texi: Likewise.
2203 2008-02-14 Alan Modra <amodra@bigpond.net.au>
2206 * config/rs6000/rs6000.md (restore_stack_block): Force operands[1]
2209 2008-02-14 Jesper Nilsson <jesper.nilsson@axis.com>
2211 * doc/md.texi (clz, ctz): Add reference.
2212 * doc/rtl.texi (clz, ctz): Likewise.
2214 2008-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2217 * Makefile.in (gcc-vers.texi): Use abs_srcdir for the value of
2220 2008-02-13 Andreas Krebbel <krebbel1@de.ibm.com>
2222 * config/s390/s390.c (struct constant_pool): New field
2223 emit_pool_after added.
2224 (s390_mainpool_start): Set the emit_pool_after flag according
2225 to the section switch notes.
2226 (s390_mainpool_finish): Consider emit_pool_after when emitting
2227 the literal pool at the end of the function.
2228 (s390_chunkify_start): Force literal pool splits at section
2231 2008-02-13 Michael Matz <matz@suse.de>
2234 * var-tracking.c (clobber_variable_part): Correctly traverse the
2237 2008-02-13 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2240 * doc/invoke.texi (Debugging Options): Remove -fdump-tree-inlined.
2241 Add -fdump-ipa-inline.
2242 * tree-dump.c (dump_files): Remove tree-inlined dump.
2243 * tree-pass.h (tree_dump_index): Remove TDI_inlined.
2245 2008-02-12 Richard Guenther <rguenther@suse.de>
2247 PR tree-optimization/35171
2248 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Deal with
2251 2008-02-12 Richard Guenther <rguenther@suse.de>
2254 * fold-const.c (fold_widened_comparison): Use get_unwidened in
2255 value-preserving mode. Disallow final truncation.
2257 2008-02-12 Eric Botcazou <ebotcazou@adacore.com>
2260 * gimplify.c (force_gimple_operand_bsi): Move SSA renaming
2261 code from here to...
2262 (force_gimple_operand): ...here.
2264 2008-02-12 Jakub Jelinek <jakub@redhat.com>
2267 * tree-sra.c (sra_build_assignment): fold_convert SRC if copying
2268 non-compatible pointers.
2269 (generate_element_copy): If SRC and DST are RECORD_TYPEs with
2270 different FIELD_DECLs, try harder by comparing field offsets, sizes
2274 * function.c (match_asm_constraints_1): Don't replace the same input
2277 2008-02-12 Anatoly Sokolov <aesok@post.ru>
2279 * config/avr/avr.h (AVR_HAVE_RAMPZ): Define.
2280 * config/avr/avr.c (expand_prologue): Save RAMPZ register.
2281 (expand_epilogue): Restore RAMPZ register.
2282 * config/avr/avr.md (RAMPZ_ADDR): New constant.
2284 2008-02-11 Kai Tietz <kai.tietz@onevision.com>
2286 * config/i386/cygwin.asm: (__alloca): Correct calling
2287 convention and alignment.
2288 (__chkstk): Force 8 byte stack alignment.
2290 2008-02-11 Uros Bizjak <ubizjak@gmail.com>
2291 Richard Guenther <rguenther@suse.de>
2293 PR tree-optimization/33992
2294 * tree-ssa-loop-im.c (rewrite_bittest): Fixup the type of
2295 the zero we compare against.
2297 2008-02-10 Danny Smith <dannysmith@users.sourceforge.net>
2300 * gthr-win32.h (__gthread_mutex_destroy_function): New function
2301 to CloseHandle after unlocking to prevent accumulation of handle
2304 2008-02-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2307 * pa.c (legitimize_pic_address): Add REG_EQUAL note on sets with a
2308 pic_label_operand source. Similarly, add a REG_LABEL_OPERAND note
2309 and update LABEL_NUSES during and after reload.
2311 2008-02-08 Steven Bosscher <stevenb.gcc@gmail.com>
2314 * combine.c (simplify_if_then_else): Make sure the comparison is
2315 against const0_rtx when simplifying to (abs x) or (neg (abs X)).
2317 2008-02-08 Richard Sandiford <rsandifo@nildram.co.uk>
2320 * double-int.h: Don't include gmp.h for GENERATOR_FILEs.
2321 (mpz_set_double_int, mpz_get_double_int): Hide from GENERATOR_FILEs.
2322 * real.h: Don't include gmp.h or mpfr.h for GENERATOR_FILEs.
2323 (real_from_mpfr, mpfr_from_real): Hide from GENERATOR_FILEs.
2324 * tree.h (get_type_static_bounds): Likewise.
2326 2008-02-08 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2328 * doc/invoke.texi (Option Summary, C++ Dialect Options)
2329 (Objective-C and Objective-C++ Dialect Options, Warning Options):
2330 Make -Wfoo language annotations match what the compiler outputs.
2332 2008-02-08 Sa Liu <saliu@de.ibm.com>
2334 * config/spu/spu-builtins.def: Fixed wrong parameter type in spu
2335 intrinsics spu_convts, spu_convtu, spu_convtf.
2336 * testsuite/gcc.target/spu/intrinsics-3.c: New. Test error messages.
2338 2008-02-08 Hans-Peter Nilsson <hp@axis.com>
2340 * doc/extend.texi (Function Attributes) <noinline>: Mention
2341 asm ("") as method to keep calls.
2343 2008-02-07 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2346 * doc/options.texi (Options): Replace references to opts.sh with
2348 * opts-common.c: Likewise.
2349 * optc-gen.awk: Likewise.
2351 2008-02-07 Andreas Krebbel <krebbel1@de.ibm.com>
2353 * config/s390/s390.h (FUNCTION_ARG_REGNO_P): Fix fprs for 64 bit.
2355 2008-02-07 Richard Henderson <rth@redhat.com>
2358 * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use an
2359 EXPR_LIST for the REG_EQUAL instead of a comparison with a
2362 2008-02-07 Uros Bizjak <ubizjak@gmail.com>
2364 PR tree-optimization/35085
2365 * tree-ssa-reassoc.c (rewrite_expr_tree): Enable destructive update
2366 for operand entry oe2 in addition to operand entry oe3 in order to
2367 expose more opportunities for vectorizer sum reduction.
2369 2008-02-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2372 * Makefile.in (LIBS): Remove $(GMPLIBS).
2373 (cc1-dummy, cc1): Add $(GMPLIBS).
2375 2008-02-06 Jan Hubicka <jh@suse.cz>
2378 * i386.md (moddf_integer): Do not produce partial memory stalls for
2379 targets where it hurts.
2381 2008-02-06 Uros Bizjak <ubizjak@gmail.com>
2384 * optabs.c (expand_float): Do not check for decimal modes when
2385 expanding unsigned integer through signed conversion.
2387 2008-02-06 Nick Clifton <nickc@redhat.com>
2389 * config/stormy16/stormy16.md (eqbranchsi): Replace a match_dup
2390 inside the clobber with a match_operand and duplicated operand
2391 number in the constraint.
2392 (ineqbranchsi): Delete redundant comment.
2394 2008-02-06 Ralf Corsepius <ralf.corsepius@rtems.org>
2396 * config/arm/rtems-elf.h (TARGET_OS_CPP_BUILTINS): Add
2397 builtin_define ("__USE_INIT_FINI__").
2398 * config/h8300/t-rtems (MULTILIB_OPTION,MULTILIB_DIRNAMES): Add
2400 * gthr-rtems.h: Remove __GTHREAD_MUTEX_INIT.
2402 2008-02-06 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2404 PR documentation/30330
2405 * doc/invoke.texi (C++ Dialect Options)
2406 (Objective-C and Objective-C++ Dialect Options, Warning Options):
2407 For each warning option -Wfoo that allows -Wno-foo, ensure both
2408 -Wfoo and -Wno-foo are listed in the option index. Fix index
2409 entry of -Wswitch-default, index -Wnormalized= including the
2410 `=', and -Wlarger-than-@var{len} including @var{len}.
2412 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
2414 * config/i386/i386.md (floatunssisf2): Use
2415 ix86_expand_convert_uns_sisf_sse also for TARGET_SSE.
2416 (floatunssi<mode>2): Rename from floatunssisf2 and floatunssidf2.
2417 Macroize expander using MODEF mode iterator.
2419 2008-02-05 Diego Novillo <dnovillo@google.com>
2421 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00140.html
2424 * tree-vrp.c (vrp_evaluate_conditional): Revert fix for PR 33738.
2426 2008-02-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2429 * toplev.c (print_version): Honor `indent' for GMP/MPFR warnings.
2431 2008-02-05 H.J. Lu <hongjiu.lu@intel.com>
2434 * config/i386/i386.c (ix86_function_sseregparm): Add an arg
2435 to indicate if a message should be generated.
2436 (init_cumulative_args): Updated.
2437 (function_value_32): Likewise.
2439 2008-02-05 Joseph Myers <joseph@codesourcery.com>
2441 * doc/include/texinfo.tex: Update to version 2008-02-04.16.
2443 2008-02-05 Uros Bizjak <ubizjak@gmail.com>
2446 * config/i386/i386.md (floatunsisf2): Enable for TARGET_SSE_MATH only.
2447 Call ix86_expand_convert_uns_sisf_sse for TARGET_SSE2.
2449 2008-02-04 Diego Novillo <dnovillo@google.com>
2451 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg00110.html
2454 * tree-vrp.c (vrp_evaluate_conditional): With
2455 -Wtype-limits, emit a warning when comparing against a
2456 constant outside the natural range of OP0's type.
2458 2008-02-04 Richard Guenther <rguenther@suse.de>
2461 * expr.c (count_type_elements): Give for unions instead of
2464 2008-02-04 Richard Guenther <rguenther@suse.de>
2467 * gimplify.c (gimplify_init_ctor_eval): Convert array indices
2468 to TYPE_DOMAINs base type instead of using bitsizetype here.
2470 2008-02-03 Jason Merrill <jason@redhat.com>
2472 * print-tree.c (print_node) [CONSTRUCTOR]: Print elements.
2474 2008-02-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2477 * doc/invoke.texi (C++ Dialect Options, Optimize Options)
2478 (HPPA Options, i386 and x86-64 Options, IA-64 Options)
2479 (RS/6000 and PowerPC Options): Fix typos and markup.
2480 * doc/passes.texi (Tree-SSA passes): Likewise.
2482 2008-02-02 Michael Matz <matz@suse.de>
2485 * postreload-gcse.c (record_last_reg_set_info_regno): Renamed
2486 from record_last_reg_set_info.
2487 (record_last_reg_set_info): Take an RTX argument, iterate over all
2488 constituent hardregs.
2489 (record_last_set_info, record_opr_changes): Change calls to
2490 new signature or to record_last_reg_set_info_regno.
2492 2008-02-02 Gerald Pfeifer <gerald@pfeifer.com>
2494 * doc/extend.texi (X86 Built-in Functions): Fix grammar.
2496 2008-02-01 Hans-Peter Nilsson <hp@axis.com>
2498 PR rtl-optimization/34773
2499 * reg-notes.def (EQUAL): Mention significance of combination of
2500 REG_EQUAL and REG_RETVAL.
2501 * fwprop.c (try_fwprop_subst): Don't add REG_EQUAL to an
2502 insn that has a REG_RETVAL.
2504 2008-02-01 Roger Sayle <roger@eyesopen.com>
2507 * configure.ac (--enable-fixed-point): Disable unless explicitly
2509 * configure: Regenerate.
2511 2008-02-01 Richard Guenther <rguenther@suse.de>
2514 * invoke.texi (-finline-limit): Remove no longer true parts
2515 of the documentation. Note that there is no default value.
2517 2008-02-01 Andrew Pinski <pinskia@gmail.com>
2518 Mark Mitchell <mark@codesourcery.com>
2519 Ben Elliston <bje@au.ibm.com>
2522 * doc/extend.texi (Other Builtins): Document.
2524 2008-01-31 Tom Browder <tom.browder@gmail.com>
2526 * doc/c-tree.texi (Types): Fix grammar.
2527 (Expression trees): Ditto.
2528 * doc/passes.texi (Tree-SSA passes): Ditto.
2530 * doc/configterms.texi (Configure Terms): Fix typo.
2531 * doc/cpp.texi (Common Predefined Macros): Ditto.
2532 * doc/md.texi (Machine Constraints): Ditto.
2534 * doc/makefile.texi (Makefile): Add comma.
2536 2008-01-31 Tom Browder <tom.browder@gmail.com>
2537 Gerald Pfeifer <gerald@pfeifer.com>
2539 * doc/sourcebuild.texi (Front End): Remove references to CVS
2540 and CVSROOT/modules.
2541 (Texinfo Manuals): Replace reference to CVS by one to SVN.
2542 (Back End): Remove reference to CVS.
2544 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
2547 * config/mips/mips.c (gen_load_const_gp): New function, taking a
2549 (mips16_gp_pseudo_reg): ...here.
2550 * config/mips/mips.md (load_const_gp): Replace with...
2551 (load_const_gp_<mode>): ...this :P-based insn.
2553 2008-01-31 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2555 * doc/invoke.texi (-ansi): Mention explicitly corresponding -std=
2556 options. Minor fixes.
2557 (-std): Move reference to standards closer to where language
2558 standards are first mentioned.
2560 2008-01-31 Richard Sandiford <rsandifo@nildram.co.uk>
2562 PR rtl-optimization/34995
2563 * reload.c (alternative_allows_const_pool_ref): Take an rtx
2564 parameter and return a bool. If the rtx parameter is nonnull,
2565 check that it satisfies an EXTRA_MEMORY_CONSTRAINT.
2566 (find_reloads): Update call accordingly. Pass the new operand
2567 if it needed no address reloads, otherwise pass null.
2569 2008-01-30 Richard Henderson <rth@redhat.com>
2572 * tree.c (build_type_attribute_qual_variant): Skip TYPE_DOMAIN
2573 for unbounded arrays.
2575 2008-01-30 Silvius Rus <rus@google.com>
2577 * config/i386/xmmintrin.h (_mm_prefetch): Add const to first arg.
2579 2008-01-30 Jan Hubicka <jh@suse.cz>
2582 * i386.c (init_cumulative_args): Use real function declaration when
2585 2008-01-30 Richard Sandiford <rsandifo@nildram.co.uk>
2587 PR rtl-optimization/34998
2588 * global.c (build_insn_chain): Treat non-subreg_lowpart
2589 SUBREGs of pseudos as clobbering all the words covered by the
2590 SUBREG, not just all the bytes.
2591 * ra-conflict.c (clear_reg_in_live): Likewise. Take the
2592 original df_ref rather than an extract parameter.
2593 (global_conflicts): Update call accordingly.
2595 2008-01-30 Andreas Krebbel <krebbel1@de.ibm.com>
2597 * config/s390/fixdfdi.h (__fixunstfdi, __fixtfdi): Rearrange
2598 the overflow check to make it easier to read.
2599 (__fixtfdi): Change the type of the ll member in union
2600 long_double to UDItype_x.
2602 2008-01-30 Jakub Jelinek <jakub@redhat.com>
2605 * cgraph.h (cgraph_update_edges_for_call_stmt): New prototype.
2606 * cgraph.c (cgraph_update_edges_for_call_stmt): New function.
2607 * tree-inline.c (fold_marked_statements): Call
2608 cgraph_update_edges_for_call_stmt if folding a call statement.
2609 * cgraphunit.c (verify_cgraph_node): Set cfun to this_cfun for
2610 debug_generic_stmt calls, reset it back afterwards.
2613 * c-decl.c (start_decl): Don't pedwarn about TREE_READONLY
2615 * c-typeck.c (build_external_ref): Don't pedwarn about
2616 static vars in current function's scope.
2618 2008-01-29 Joseph Myers <joseph@codesourcery.com>
2620 * config.gcc (i[34567]86-*-nto-qnx*): Remove deprecation.
2622 2008-01-29 Bernhard Fischer <aldot@gcc.gnu.org>
2625 * ipa-struct-reorg.c: Fix spelling.
2626 * params.def: Ditto.
2628 2008-01-29 Richard Guenther <rguenther@suse.de>
2631 * tree-inline.h (struct copy_body_data): Add remapping_type_depth
2633 * tree-inline.c (remap_type): Increment remapping_type_depth
2634 around remapping types.
2635 (copy_body_r): Only add referenced variables if they are referenced
2636 from code, not types.
2638 2008-01-29 Douglas Gregor <doug.gregor@gmail.com>
2649 * c-pretty-print.c (pp_c_type_qualifier_list): Don't try to print
2650 qualifiers for an ERROR_MARK_NODE or a NULL_TREE.
2652 2008-01-28 Andy Hutchinson <hutchinsonandy@netscape.net>
2655 * config/avr/avr.c (expand_prologue): Use correct QI mode frame
2656 pointer for tiny stack.
2658 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
2660 * doc/tree-ssa.texi: Add cindex PHI nodes and improve wording.
2662 2008-01-28 Bernhard Fischer <aldot@gcc.gnu.org>
2664 * config/vx-common.h: Fix typo in comment.
2666 2008-01-28 Ian Lance Taylor <iant@google.com>
2670 * tree-ssa-copyrename.c (copy_rename_partition_coalesce): Don't
2671 coalesce pointers if they have different DECL_NO_TBAA_P values.
2672 * tree-ssa-copy.c (may_propagate_copy): Don't propagate copies
2673 between variables with different DECL_NO_TBAA_P values.
2675 2008-01-28 Nathan Froyd <froydnj@codesourcery.com>
2678 * config/rs6000/rs6000.c (small_data_operand): Vectors and floats
2679 are not legitimate small data references on SPE targets.
2681 2008-01-28 David Daney <ddaney@avtrex.com>
2683 * doc/install.texi (mips-*-*): Recommend binutils 2.18.
2685 2008-01-28 David Daney <ddaney@avtrex.com>
2687 * doc/install.texi (--disable-libgcj-bc): Reword documentation.
2689 2008-01-27 Joseph Myers <joseph@codesourcery.com>
2691 * config.gcc (strongarm*-*, ep9312*-*, xscale*-*, parisc*-*,
2692 m680[012]0-*, *-*-beos*, *-*-kaos*, *-*-linux*aout*,
2693 *-*-linux*libc1*, *-*-solaris2.[0-6], *-*-solaris2.[0-6].*,
2694 *-*-sysv*, *-*-windiss*, alpha*-*-unicosmk*, cris-*-aout,
2695 hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-bsd*,
2696 i[34567]86-sequent-ptx4*, i[34567]86-*-nto-qnx*,
2697 i[34567]86-*-sco3.2v5*, i[34567]86-*-uwin*, powerpc-*-chorusos*,
2698 vax-*-bsd*, vax-*-ultrix*): Mark obsolete.
2700 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
2702 * basic-block.h (condjump_equiv_p): Fix comment.
2704 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
2706 * tree-pretty-print.c (print_generic_decl, print_generic_stmt,
2707 print_generic_stmt_indented): Fix comment.
2709 2008-01-27 Bernhard Fischer <aldot@gcc.gnu.org>
2711 * configure.ac (__stack_chk_fail): Add detecion for availability
2712 of SSP in uClibc by checking if __UCLIBC_HAS_SSP__ is defined.
2713 * configure: Regenerate.
2715 2008-01-26 Maxim Kuvyrkov <maxim@codesourcery.com>
2718 * final.c (output_addr_const): Handle TRUNCATE.
2720 2008-01-26 Zdenek Dvorak <ook@ucw.cz>
2723 * tree-ssa-loop-ivopts.c (comp_cost): New type.
2724 (zero_cost, infinite_cost): New constants.
2725 (struct cost_pair): Change type of cost to comp_cost.
2726 (struct iv_ca): Change type of cand_use_cost and cost to comp_cost.
2727 (new_cost, add_costs, sub_costs, compare_costs, infinite_cost_p):
2729 (set_use_iv_cost, force_expr_to_var_cost, force_var_cost,
2730 split_address_cost, ptr_difference_cost, difference_cost,
2731 get_computation_cost_at, get_computation_cost,
2732 determine_use_iv_cost_generic, determine_use_iv_cost_address,
2733 determine_use_iv_cost_condition, determine_use_iv_costs,
2734 cheaper_cost_pair, iv_ca_recount_cost, iv_ca_set_no_cp,
2735 iv_ca_set_cp, iv_ca_cost, iv_ca_new, iv_ca_dump, iv_ca_extend,
2736 iv_ca_narrow, iv_ca_prune, try_improve_iv_set, find_optimal_iv_set):
2737 Change type of cost to comp_cost.
2738 (determine_iv_cost): Increase cost of non-original ivs, instead
2739 of decreasing the cost of original ones.
2740 (get_address_cost): Indicate the complexity of the addressing mode
2742 (try_add_cand_for): Prefer using ivs not specific to some object.
2743 * tree-flow.h (force_expr_to_var_cost): Declaration removed.
2745 2008-01-26 Peter Bergner <bergner@vnet.ibm.com>
2746 Janis Johnson <janis187@us.ibm.com>
2749 * doc/tm.texi (TARGET_EXPAND_TO_RTL_HOOK): Document.
2750 (TARGET_INSTANTIATE_DECLS): Likewise.
2751 * target.h (expand_to_rtl_hook): New target hook.
2752 (instantiate_decls): Likewise.
2753 * function.c (instantiate_decl): Make non-static. Rename to...
2754 (instantiate_decl_rtl): ... this.
2755 (instantiate_expr): Use instantiate_decl_rtl.
2756 (instantiate_decls_1): Likewise.
2757 (instantiate_decls): Likewise.
2758 (instantiate_virtual_regs: Call new instantiate_decls taget hook.
2759 * function.h (instantiate_decl_rtl): Add prototype.
2760 * cfgexpand.c (target.h): New include.
2761 (tree_expand_cfg): Call new expand_to_rtl_hook target hook.
2762 * target-def.h (TARGET_EXPAND_TO_RTL_HOOK): New define.
2763 (TARGET_INSTANTIATE_DECLS): Likewise.
2764 (TARGET_INITIALIZER): New target hooks added.
2765 * config/rs6000/rs6000-protos.h (rs6000_secondary_memory_needed_rtx):
2767 * config/rs6000/rs6000.c (tree-flow.h): New include.
2768 (machine_function): Add sdmode_stack_slot field.
2769 (rs6000_alloc_sdmode_stack_slot): New function.
2770 (rs6000_instantiate_decls): Likewise.
2771 (rs6000_secondary_memory_needed_rtx): Likewise.
2772 (rs6000_check_sdmode): Likewise.
2773 (TARGET_EXPAND_TO_RTL_HOOK): Target macro defined.
2774 (TARGET_INSTANTIATE_DECLS): Likewise.
2775 (rs6000_hard_regno_mode_ok): Allow SDmode.
2776 (num_insns_constant): Likewise. Handle _Decimal32 constants.
2777 (rs6000_emit_move): Handle SDmode.
2778 (function_arg_advance): Likewise.
2779 (function_arg): Likewise.
2780 (rs6000_gimplify_va_arg): Likewise. Add special handling of
2781 SDmode var args for 32-bit compiles.
2782 (rs6000_secondary_reload_class): Handle SDmode.
2783 (rs6000_output_function_epilogue): Likewise.
2784 (rs6000_function_value): Simplify if statement.
2785 (rs6000_libcall_value): Likewise.
2786 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Handle SDmode.
2787 (SECONDARY_MEMORY_NEEDED_RTX): Add define.
2788 * config/rs6000/dfp.md (movsd): New define_expand and splitter.
2789 (movsd_hardfloat): New define_insn.
2790 (movsd_softfloat): Likewise.
2791 (movsd_store): Likewise.
2792 (movsd_load): Likewise.
2793 (extendsddd2): Likewise.
2794 (extendsdtd2): Likewise.
2795 (truncddsd2): Likewise.
2796 (movdd_hardfloat64): Fixup comment.
2797 (UNSPEC_MOVSD_LOAD): New constant.
2798 (UNSPEC_MOVSD_STORE): Likewise.
2800 2008-01-26 Jakub Jelinek <jakub@redhat.com>
2803 * c-pretty-print.c (pp_c_exclusive_or_expression): Handle
2805 (pp_c_logical_and_expression): Handle TRUTH_AND_EXPR.
2806 (pp_c_logical_or_expression): Handle TRUTH_OR_EXPR.
2807 (pp_c_expression): Handle TRUTH_AND_EXPR, TRUTH_OR_EXPR
2810 2008-01-26 David Edelsohn <edelsohn@gnu.org>
2813 * config.gcc: Separate AIX 5.3 from AIX 6.1.
2814 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
2815 __LONGDOUBLE128 too.
2816 * config/rs6000/aix61.h: New file.
2818 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
2820 PR rtl-optimization/34959
2821 * optabs.c (expand_unop): In libcall notes, give ffs, clz, ctz,
2822 popcount and parity rtxes the same mode as their operand.
2823 Truncate or extend the result to the return value's mode
2826 2008-01-26 Richard Sandiford <rsandifo@nildram.co.uk>
2829 * config/mips/mips-protos.h (mips_expand_call): Return an rtx.
2830 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Rename FAKE_CALL_REGNO
2831 to GOT_VERSION_REGNUM.
2832 (CALL_REALLY_USED_REGISTERS): Set the GOT_VERSION_REGNUM entry to 0.
2833 (EPILOGUE_USES): Include GOT_VERSION_REGNUM if TARGET_USE_GOT.
2834 * config/mips/mips.c (mips_emit_call_insn): New function.
2835 (mips_call_tls_get_addr): Call mips_expand_call directly.
2836 (mips16_copy_fpr_return_value): Use mips_emit_call_insn rather than
2838 (mips16_build_call_stub): Likewise. Return the call insn or null.
2839 (mips_expand_call): Update the call to mips16_build_call_stub
2840 accordingly and a remove redundant condition. Assert that MIPS16
2841 stubs do not use lazy binding. Use mips_emit_call_insn and return
2843 (mips_extra_live_on_entry): Include GOT_VERSION_REGNUM if
2845 (mips_hard_regno_mode_ok_p): Allow SImode for GOT_VERSION_REGNUM.
2846 (mips_avoid_hazard): Remove hazard_set handling.
2847 * config/mips/mips.md (UNSPEC_EH_RECEIVER): Rename to...
2848 (UNSPEC_RESTORE_GP): ...this.
2849 (UNSPEC_SET_GOT_VERSION, UNSPEC_UPDATE_GOT_VERSION): New constants.
2850 (FAKE_CALL_REGNO): Rename to...
2851 (GOT_VERSION_REGNUM): ...this.
2852 (type): Add "ghost" value. Add an associated insn reservation.
2853 (hazard_set): Remove.
2854 (exception_receiver): Rename to...
2855 (restore_gp): ...this and update the unspec identifier accordingly.
2856 (exception_receiver, nonlocal_got_receiver): New expanders.
2857 (load_call<mode>): Use GOT_VERSION_REGNUM. Don't set
2858 FAKE_CALL_REGNO. Remove hazard_set attribute.
2859 (set_got_version, update_got_version): New patterns.
2861 2008-01-26 Danny Smith <dannysmith@users.sourceforge.net>
2864 * config/i386/cygming.h (ASM_OUTPUT_LABELREF): Define.
2866 2008-01-25 Joseph Myers <joseph@codesourcery.com>
2869 * doc/install.texi2html: Generate gcc-vers.texi.
2871 2008-01-25 DJ Delorie <dj@redhat.com>
2873 * config/m32c/m32c.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
2875 2008-01-25 Joseph Myers <joseph@codesourcery.com>
2877 * config/c4x: Remove directory.
2878 * config.gcc (crx-*, mt-*): Mark obsolete.
2879 (c4x-*, tic4x-*, c4x-*-rtems*, tic4x-*-rtems*, c4x-*, tic4x-*,
2880 h8300-*-rtemscoff*, ns32k-*-netbsdelf*, ns32k-*-netbsd*,
2881 sh-*-rtemscoff*): Remove cases.
2882 * defaults.h (C4X_FLOAT_FORMAT): Remove.
2883 * real.c (encode_c4x_single, decode_c4x_single,
2884 encode_c4x_extended, decode_c4x_extended, c4x_single_format,
2885 c4x_extended_format): Remove.
2886 * real.h (c4x_single_format, c4x_extended_format): Remove.
2887 * doc/extend.texi (interrupt, naked): Remove mention of attributes
2889 (Pragmas): Remove comment about c4x pragmas.
2890 * doc/install.texi (c4x): Remove target-specific instructions.
2891 * doc/invoke.texi (TMS320C3x/C4x Options): Remove.
2892 * doc/md.texi (Machine Constraints): Remove C4x documentation.
2893 * doc/tm.texi (MEMBER_TYPE_FORCES_BLK, c_register_pragma): Do not
2894 refer to C4x source files as examples.
2895 (C4X_FLOAT_FORMAT): Remove documentation.
2897 2008-01-25 Bernd Schmidt <bernd.schmidt@analog.com>
2899 * config/bfin/bfin.c (override_options): Reorder tests so that
2900 flag_pic gets enabled for -msep-data.
2902 2008-01-25 Richard Guenther <rguenther@suse.de>
2905 * expr.c (expand_expr_real_1): Reduce result of LSHIFT_EXPR
2906 to its bitfield precision if required.
2908 2008-01-25 Jakub Jelinek <jakub@redhat.com>
2911 * tree-nested.c (walk_omp_for): New function.
2912 (convert_nonlocal_reference, convert_local_reference): Call
2913 walk_omp_for on OMP_FOR.
2914 (convert_call_expr): Call walk_body on OMP_FOR's
2915 OMP_FOR_PRE_INIT_BODY.
2917 2008-01-25 Richard Guenther <rguenther@suse.de>
2919 PR tree-optimization/34966
2920 * tree-ssa-math-opts.c (execute_cse_sincos_1): For all but
2921 default defs and PHI_NODEs we have to insert after the
2924 2008-01-24 Nick Clifton <nickc@redhat.com>
2926 * config/stormy16/stormy16-lib2.c (MIN_UNITS_PER_WORD):
2927 Provide a default definition.
2928 (LIBGCC2_UNITS_PER_WORD): Likewise.
2930 * config/stormy16/stormy16.c: Include df.h for the prototype
2931 for df_regs_ever_live_p.
2932 (xstormy16_expand_builtin_va_start): Convert the stack offset
2933 into a component_ref and then use POINTER_PLUS_EXPR to add it
2934 to the incoming_virtual_args_rtx.
2935 (xstormy16_gimplify_va_arg_expr): Rename to
2936 xstormy16_gimplify_va_arg_expr.
2937 Use POINTER_PLUS_EXPR when performing pointer arithmetic.
2938 (TARGET_GIMPLIFY_VA_ARG_EXPR): Use renamed
2939 xstormy16_gimplify_va_arg_expr.
2940 Fix up some formatting issues.
2942 * config/stormy16/stormy16.c: (xstormy16_carry_plus_operand):
2943 Move to predicates.md.
2944 (xs_hi_general_operand): Likewise.
2945 (xs_hi_nonmemory_operand): Likewise.
2946 * config/stormy16/predicates.md:
2947 (xstormy16_carry_plus_operand): New predicate.
2948 (xs_hi_general_operand): New predicate.
2949 (xs_hi_nonmemory_operand): New predicate.
2950 * config/stormy16/stormy16-protos.h:
2951 (xstormy16_carry_plus_operand): Delete prototype.
2952 (xs_hi_general_operand): Likewise.
2953 (xs_hi_nonmemory_operand): Likewise.
2955 * config/storm16/stormy16.md (addhi3): Remove earlyclobber
2956 modifiers as they are no longer needed and they can trigger
2957 reload spill failures.
2959 * config/storm16/stormy16.md (ineqbranchsi): Replace match_dup
2960 with a match_operand in order to help reload.
2962 * config/storm16/stormy16.md (movhi_internal): Replace 'r'
2963 constraint with 'e' for the 8th alternative as this version of
2964 the mov.w instruction only accepts the lower 8 registers.
2966 2008-01-25 Uros Bizjak <ubizjak@gmail.com>
2969 * simplifx-rtx.c (simplify_const_binary_operation) [VEC_CONCAT]:
2970 Consider only CONST_INT, CONST_DOUBLE and CONST_FIXED as constant
2973 2008-01-25 Jakub Jelinek <jakub@redhat.com>
2976 * gimplify.c (gimplify_omp_for): Gimplify OMP_FOR_PRE_BODY.
2978 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
2980 * ipa-struct-reorg.c (remove_str_allocs_in_func, remove_str_allocs):
2982 (remove_structure): Update allocations list before removing structure.
2984 2008-01-25 Golovanevsky Olga <olga@il.ibm.com>
2986 * ipa-struct-reorg.c (is_safe_cond_expr,
2987 create_new_stmts_for_cond_expr): Use integer_zerop function,
2988 that recognize not only zero-pointer, but zero-integer too.
2990 2008-01-25 Ben Elliston <bje@au.ibm.com>
2993 * fixproto: Escape "." in sed expression that strips leading "./".
2995 2008-01-24 H.J. Lu <hongjiu.lu@intel.com>
2998 * gcc.c (SWITCH_OK): Removed.
2999 (SWITCH_LIVE): Changed to bit.
3000 (SWITCH_FALSE): Likewise.
3001 (SWITCH_IGNORE): Likewise.
3002 (switchstr): Change live_cond to unsigned int.
3003 (process_command): Replace SWITCH_OK with 0.
3004 (do_self_spec): Likewise.
3005 (set_collect_gcc_options): Check the SWITCH_IGNORE bit.
3006 (give_switch): Likewise.
3007 (used_arg): Likewise.
3008 (do_spec_1): Set the SWITCH_IGNORE bit.
3009 (check_live_switch): Check both SWITCH_LIVE and SWITCH_FALSE
3010 bits. Set the SWITCH_LIVE bit.
3012 2008-01-24 Andreas Krebbel <krebbel1@de.ibm.com>
3014 * config/s390/s390.h (MOVE_RATIO): Define new target macro.
3016 2008-01-24 Richard Sandiford <rsandifo@nildram.co.uk>
3018 PR tree-optimization/34472
3019 * ipa-struct-reorg.c (safe_cond_expr_check): Change the DATA
3020 parameter to a "bool *" and set *DATA to false if there is
3021 an unsafe access. Do not delete the structure here.
3022 (check_cond_exprs): Delete it here instead.
3023 (check_cond_exprs, exclude_cold_structs): Do not increase
3024 I when removing a structure.
3026 2008-01-24 Uros Bizjak <ubizjak@gmail.com>
3029 * config/i386/i386.c (ix86_expand_vector_init): Consider only
3030 CONST_INT, CONST_DOUBLE and CONST_FIXED as constant vector elements.
3032 2008-01-24 Jakub Jakub Jelinek <jakub@redhat.com>
3035 * tree-stdarg.c (reachable_at_most_once): Use VEC vector instead of
3036 a fixed vector for stack.
3038 2008-01-24 Ben Elliston <bje@au.ibm.com>
3041 * doc/gcc.texi (Software development): Add a direntry for g++.
3043 2008-01-23 Hans-Peter Nilsson <hp@axis.com>
3045 * config/cris/cris.h (CC1PLUS_SPEC, OPTIMIZATION_OPTIONS): Drop
3046 stale and straggling -fforce-addr comments above.
3048 * config/cris/cris.h (CRIS_SUBTARGET_VERSION, TARGET_VERSION): Don't
3050 * config/cris/linux.h (CRIS_SUBTARGET_VERSION): Don't define.
3051 * config/cris/aout.h (CRIS_SUBTARGET_VERSION): Don't define.
3053 2008-01-23 Michael Matz <matz@suse.de>
3056 * dwarf2out.c (force_type_die): Use modified_type_die instead of
3059 2008-01-23 Andreas Krebbel <krebbel1@de.ibm.com>
3061 * ipa-struct-reorg.c (create_new_malloc): Use pointer type as
3064 2008-01-23 Anatoly Sokolov <aesok@post.ru>
3066 * config/avr/avr.c (avr_current_arch): New variable.
3067 (avr_arch_types): Add 'avr31' and 'avr51' entries.
3068 (avr_arch): Add 'ARCH_AVR31' and 'ARCH_AVR51'.
3069 (avr_mcu_types): Add 'avr31' and 'avr51' architectures.
3070 (avr_override_options): Init 'avr_current_arch'.
3071 (base_arch_s): Move from here...
3072 * config/avr/avr.h (base_arch_s): ... here. Add new members
3073 'have_elpm', 'have_elpmx', 'have_eijmp_eicall', 'reserved'. Rename
3074 'mega' to 'have_jmp_call'.
3075 (TARGET_CPU_CPP_BUILTINS): Define "__AVR_HAVE_JMP_CALL__",
3076 "__AVR_HAVE_RAMPZ__", "__AVR_HAVE_ELPM__" and "__AVR_HAVE_ELPMX__"
3078 (LINK_SPEC, CRT_BINUTILS_SPECS, ASM_SPEC): Add 'avr31' and 'avr51'
3080 * config/avr/t-avr (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
3081 MULTILIB_MATCHES): (Ditto.).
3083 2008-01-23 Richard Guenther <rguenther@suse.de>
3086 * cgraphunit.c (cgraph_reset_node): Always mark the node
3087 not reachable if it is not queued already.
3089 2008-01-23 Bernd Schmidt <bernd.schmidt@analog.com>
3091 * config/bfin/bfin-protos.h (WA_RETS, ENABLE_WA_RETS): New macros.
3092 * config/bfin/bfin.c (bfin_cpus): Add WA_RETS everywhere.
3093 (cputype_selected): New static variable.
3094 (bfin_handle_option): Set it if -mcpu is used.
3095 (override_option): Select default set of workarounds if no cpu type
3096 selected on the command line.
3097 (workaround_rts_anomaly): Only run if ENABLE_WA_RETS.
3099 From Michael Frysinger <michael.frysinger@analog.com>
3100 * config/bfin/bfin-protos.h (enum bfin_cpu_type): Add
3101 BFIN_CPU_BF547, BFIN_CPU_BF523, BFIN_CPU_BF524, and BFIN_CPU_BF526.
3103 * config/bfin/elf.h (LIB_SPEC): Use proper linker script
3104 for bf547, bf523, bf524, and bf526.
3105 * config/bfin/bfin.c (bfin_cpus[]): Add bf547, bf523, bf524, and
3107 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Define
3108 __ADSPBF523__ for bf523, __ADSPBF524__ for bf524,
3109 __ADSPBF526__ for bf526, __ADSPBF52x__ for all three, as well as
3110 __ADSPBF547__ and __ADSPBF54x__ for bf547.
3111 * doc/invoke.texi (Blackfin Options): Document that
3112 -mcpu now accept bf547, bf523, bf524, and bf526.
3114 2008-01-22 Eric Botcazou <ebotcazou@adacore.com>
3116 PR rtl-optimization/34628
3117 * combine.c (try_combine): Stop and undo after the first combination
3118 if an autoincrement side-effect on the first insn has effectively
3121 2008-01-22 David Edelsohn <edelsohn@gnu.org>
3124 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
3125 Offset addresses are not valid for Altivec or paired float modes.
3127 2008-01-22 Jakub Jelinek <jakub@redhat.com>
3130 * c-parser.c (c_parser_omp_for_loop): Don't call c_finish_omp_for
3131 if DECL_INITIAL (decl) is error_mark_node.
3134 * c-common.c (handle_vector_size_attribute): Only allow
3135 integral, scalar float and fixed point types. Handle OFFSET_TYPE
3136 the same way as pointer, array etc. types.
3137 * tree.c (reconstruct_complex_type): Handle OFFSET_TYPE.
3140 * tree.c (build_type_attribute_qual_variant): Call
3141 build_qualified_type if attributes are equal, but quals are not.
3143 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3146 * doc/invoke.texi (-Wall): -Wall enables -Wstrict-overflow=1.
3147 * flags.h (warn_strict_aliasing): Remove.
3148 (warn_strict_overflow): Remove.
3149 * opts.c (warn_strict_aliasing): Remove.
3150 (warn_strict_overflow): Remove.
3151 * c-opts.c (c_common_handle_option): -Wall only sets
3152 -Wstrict-aliasing or -Wstrict-overflow if they are uninitialized.
3153 (c_common_post_options): Give default values to -Wstrict-aliasing
3154 and -Wstrict-overflow if they are uninitialized.
3155 * common.opt (Wstrict-aliasing): Specify Var and Init.
3156 (Wstrict-overflow): Likewise.
3158 2008-01-22 Kenneth Zadeck <zadeck@naturalbridge.com>
3160 PR rtl-optimization/26854
3161 PR rtl-optimization/34400
3162 PR rtl-optimization/34884
3163 * ddg.c (create_ddg_dep_from_intra_loop_link): Use
3165 * df.h (df_changeable_flags.DF_RD_NO_TRIM): Deleted
3166 (df_rd_bb_info.expanded_lr_out): Deleted
3167 * loop_invariant.c (find_defs): Deleted DF_RD_NO_TRIM flag.
3168 * loop_iv.c (iv_analysis_loop_init): Ditto. * df-problems.c
3169 (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
3170 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
3171 Removed code to allocate, initialize or free expanded_lr_out.
3172 (df_rd_bb_local_compute_process_def): Restructured to make more
3174 (df_rd_confluence_n): Removed code to no apply invalidate_by_call
3175 sets if the sets are being trimmed.
3177 2008-01-22 H.J. Lu <hongjiu.lu@intel.com>
3180 * configure.ac (ld_vers): Support GNU linker version xx.xx.*
3181 (as_vers): Likewise.
3182 * configure: Regenerated.
3184 2008-01-22 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3187 * tree-pass.h (pass_build_alias): New pass.
3188 * tree-ssa-alias.c (gate_build_alias): New.
3189 (pass_build_alias): New.
3190 * passes.c (init_optimization_passes): Add pass_build_alias after
3191 pass_create_structure_vars.
3193 2008-01-22 Wolfgang Gellerich <gellerich@de.ibm.com>
3195 * config/s390/s390.h (S390_TDC_POSITIVE_NORMALIZED_NUMBER):
3196 Renamed to S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER.
3197 (S390_TDC_NEGATIVE_NORMALIZED_NUMBER): Renamed to
3198 S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER.
3199 (S390_TDC_POSITIVE_DENORMALIZED_NUMBER): Renamed to
3200 S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER.
3201 (S390_TDC_NEGATIVE_DENORMALIZED_NUMBER): Renamed to
3202 S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER.
3203 (S390_TDC_POSITIVE_NORMALIZED_BFP_NUMBER): New constant.
3204 (S390_TDC_NEGATIVE_NORMALIZED_BFP_NUMBER): New constant.
3205 (S390_TDC_POSITIVE_DENORMALIZED_BFP_NUMBER): New constant.
3206 (S390_TDC_NEGATIVE_DENORMALIZED_BFP_NUMBER): New constant.
3207 * config/s390/s390.md (FP_ALL): New mode iterator.
3208 (_d): New mode attribute.
3209 ("*signbit<mode>2>"): Changed mode of first operand.
3210 ("isinf<mode>2"): Changed mode of first operand.
3211 ("*TDC_insn"): Adaptation for DFP modes.
3213 2008-01-22 Ben Elliston <bje@au.ibm.com>
3215 * tree.c (check_qualified_type): Improve function description.
3217 2008-01-21 Jason Merrill <jason@redhat.com>
3220 * tree.h (TRY_CATCH_IS_CLEANUP): New macro.
3221 * tree-eh.c (honor_protect_cleanup_actions): Strip TRY_CATCH_EXPR
3224 2008-01-21 DJ Delorie <dj@redhat.com>
3226 * doc/tm.texi (HARD_REGNO_NREGS): Note that this macro must not
3229 2008-01-21 Richard Guenther <rguenther@suse.de>
3232 * tree-cfg.c (verify_expr): Allow all invariant expressions
3233 instead of just constant class ones as reference argument.
3234 * tree-ssa-loop-im.c (for_each_index): Handle CONSTRUCTOR
3235 like any other constant.
3236 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
3238 2008-01-21 H.J. Lu <hongjiu.lu@intel.com>
3240 * regmove.c (fixup_match_1): Update call crossed frequencies.
3242 2008-01-21 Richard Guenther <rguenther@suse.de>
3245 * tree-inline.c (setup_one_parameter): Deal with mismatched
3246 types using a VIEW_CONVERT_EXPR.
3248 2008-01-21 Alon Dayan <alond@il.ibm.com>
3249 Olga Golovanevsky <olga@il.ibm.com>
3251 PR tree-optimization/34701
3252 * ipa-struct-reorg.c (gen_size): Fix the malloc parameter calculation
3253 when the structure size is not a power of 2.
3255 2008-01-20 Kenneth Zadeck <zadeck@naturalbridge.com>
3257 * doc/install.texi: Add doc for --enable-checking=df.
3259 2008-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
3261 PR rtl-optimization/34808
3262 * emit-rtl.c (try_split): Handle REG_RETVAL notes.
3264 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
3266 * global.c (find_reg): Only compute EH_RETURN_DATA_REGNO once per
3269 2008-01-19 Kenneth Zadeck <zadeck@naturalbridge.com>
3271 PR rtl-optimization/26854
3272 PR rtl-optimization/34400
3273 * ddg.c (create_ddg_dep_from_intra_loop_link): Do not use
3275 * df.h (df_changeable_flags.DF_RD_NO_TRIM): New.
3276 (df_rd_bb_info.expanded_lr_out): New.
3277 * loop_invariant.c (find_defs): Added DF_RD_NO_TRIM flag.
3278 * loop_iv.c (iv_analysis_loop_init): Ditto.
3279 * df-problems.c (df_rd_free_bb_info, df_rd_alloc, df_rd_confluence_n,
3280 df_rd_bb_local_compute, df_rd_transfer_function, df_rd_free):
3281 Added code to allocate, initialize or free expanded_lr_out.
3282 (df_rd_bb_local_compute_process_def): Restructured to make
3283 more understandable.
3284 (df_rd_confluence_n): Add code to do nothing with fake edges and
3285 code to no apply invalidate_by_call sets if the sets are being trimmed.
3286 (df_lr_local_finalize): Renamed to df_lr_finalize.
3287 (df_live_local_finalize): Renamed to df_live_finalize.
3289 2008-01-20 Richard Sandiford <rsandifo@nildram.co.uk>
3292 * config/mips/mips.md (div<mode>3): Use <recip_condition> when
3293 deciding whether to use reciprocal instructions.
3295 2008-01-19 Uros Bizjak <ubizjak@gmail.com>
3297 * dwarf2out.c (dwarf2out_switch_text_section): Do not call
3298 dwarf2out_note_section_used if cold_text_section is NULL.
3300 2008-01-19 Jakub Jelinek <jakub@redhat.com>
3302 PR gcov-profile/34610
3303 * tree-cfg.c (make_edges): Mark both outgoing edges from
3304 OMP_CONTINUE and from OMP_FOR as EDGE_ABNORMAL.
3305 * omp-low.c (expand_omp_for): Clear EDGE_ABNORMAL bits
3306 from OMP_FOR and OMP_CONTINUE outgoing edges.
3308 * tree-profile.c (tree_profiling): Return early if
3309 cfun->after_tree_profile != 0. Set cfun->after_tree_profile
3311 * omp-low.c (expand_omp_parallel): Copy after_tree_profile
3312 from cfun to child_cfun.
3313 * function.h (struct function): Add after_tree_profile bit.
3315 2008-01-19 Anatoly Sokolov <aesok@post.ru>
3317 * config/avr/avr.S (_exit): Disable interrupt.
3319 2008-01-18 Kenneth Zadeck <zadeck@naturalbridge.com>
3320 Steven Bosscher <stevenb.gcc@gmail.com>
3322 PR rtl-optimization/26854
3323 PR rtl-optimization/34400
3324 * df-problems.c (df_live_scratch): New scratch bitmap.
3325 (df_live_alloc): Allocate df_live_scratch when doing df_live.
3326 (df_live_reset): Clear the proper bitmaps.
3327 (df_live_bb_local_compute): Only process the artificial defs once
3328 since the order is not important.
3329 (df_live_init): Init the df_live sets only with the variables
3330 found live by df_lr.
3331 (df_live_transfer_function): Use the df_lr sets to prune the
3332 df_live sets as they are being computed.
3333 (df_live_free): Free df_live_scratch.
3335 2008-01-18 Ian Lance Taylor <iant@google.com>
3337 * common.opt: Add fmerge-debug-strings.
3338 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test
3339 flag_merge_debug_strings rather than flag_merge_constants.
3340 * doc/invoke.texi (Option Summary): Mention
3341 -fmerge-debug-strings.
3342 (Debugging Options): Document -fmerge-debug-strings.
3344 2008-01-18 Ian Lance Taylor <iant@google.com>
3347 * tree.h (DECL_IS_OPERATOR_NEW): Define.
3348 (struct tree_function_decl): Add new field operator_new_flag.
3349 * tree-inline.c (expand_call_inline): When inlining a call to
3350 operator new, force the return value to go into a variable, and
3351 set DECL_NO_TBAA_P on that variable.
3352 * c-decl.c (merge_decls): Merge DECL_IS_OPERATOR_NEW flag.
3354 2008-01-18 Uros Bizjak <ubizjak@gmail.com>
3357 * dwarf2out.c (dwarf2out_switch_text_section): Do not guard with
3358 DWARF2_DEBUGGING_INFO.
3359 (dwarf2out_note_section_used): Ditto. Add prototype.
3360 (have_multiple_function_sections, text_section_used,
3361 cold_text_section_used, *cold_text_sections): Move declarations
3364 2008-01-17 Bob Wilson <bob.wilson@acm.org>
3366 * config/xtensa/unwind-dw2-xtensa.h (_Unwind_FrameState): Remove pc
3367 field and add signal_ra.
3368 * config/xtensa/unwind-dw2-xtensa.c (uw_frame_state_for): Remove
3369 assignments to frame state pc. Move end of stack check after
3370 MD_FALLBACK_FRAME_STATE_FOR.
3371 (uw_update_context_1): Use frame state signal_regs if set, instead
3372 of checking signal_frame flag.
3373 (uw_update_context): Use frame state signal_ra if set.
3374 * config/xtensa/linux.h (MD_UNWIND_SUPPORT): Define.
3375 * config/xtensa/linux-unwind.h: New file.
3377 2008-01-18 Bernhard Fischer <aldot@gcc.gnu.org>
3379 * modulo-sched.c (get_sched_window): Fix comment typo.
3381 2008-01-17 Andrew MacLeod <amacleod@redhat.com>
3383 PR tree-optimization/34648
3384 * tree-ssa-sccvn.c (visit_use): Expressions which can throw are varying.
3386 2008-01-17 Anatoly Sokolov <aesok@post.ru>
3388 * config/avr/avr.h (LINK_SPEC): Support -mrelax and -mpmem-wrap-around.
3389 * config/avr/avr.opt (mrelax, mpmem-wrap-around): Add.
3391 2008-01-17 Seongbae Park <seongbae.park@gmail.com>
3393 PR rtl-optimization/34400
3394 * df-core.c (df_worklist_dataflow_overeager,
3395 df_worklist_dataflow_doublequeue): New functions.
3396 (df_worklist_dataflow): Two different worklist solvers.
3397 * params.def (PARAM_DF_DOUBLE_QUEUE_THRESHOLD_FACTOR):
3400 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
3403 * doc/invoke.texi: Document the dependence on pthread for fopenmp
3404 and ftree-parallelize-loops.
3406 2008-01-17 Mircea Namolaru <namolaru@il.ibm.com>
3408 PR rtl-optimization/34826
3409 * loop-doloop (doloop_modify): Update the REG_BR_PROB note.
3411 2008-01-17 Andreas Krebbel <krebbel1@de.ibm.com>
3413 * global.c (find_reg): Mark the eh regs as used if necessary.
3414 * ra-conflict.c (global_conflicts): Set no_eh_reg flag.
3415 * ra.h (struct allocno): no_eh_reg field added. Changed
3416 no_stack_reg type to bitfield.
3418 2008-01-17 Eric Botcazou <ebotcazou@adacore.com>
3420 * tree.c (substitute_in_expr): Add missing 'break'.
3422 2008-01-17 Richard Guenther <rguenther@suse.de>
3424 PR tree-optimization/34825
3425 * tree-ssa-math-opts.c (is_division_by): Do not recognize
3426 x / x as division to handle.
3428 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3430 * pa64-hpux.h (LIB_SPEC): Add "-lpthread" in shared links if "-mt" or
3431 "-pthread" is specified.
3432 * pa-hpux11.h (LIB_SPEC): Likewise.
3434 2008-01-16 Janis Johnson <janis187@us.ibm.com>
3435 Peter Bergner <bergner@vnet.ibm.com>
3437 PR rtl-optimization/33796
3438 * sparseset.c (sparseset_alloc): Use xcalloc rather than xmalloc.
3440 2008-01-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3442 PR libgfortran/34699
3443 * pa-hpux.h (LINK_SPEC): Only search /lib/pa1.1 and /usr/lib/pa1.1 on
3445 * pa-hpux10.h (LINK_SPEC): Likewise.
3446 * pa-hpux11.h (LINK_SPEC): Don't search /lib/pa1.1 and /usr/lib/pa1.1.
3448 2008-01-16 Richard Guenther <rguenther@suse.de>
3451 * fold-const.c (fold_convert_const_int_from_int): Do not
3452 set overflow if that occured only because of a sign extension
3453 change when converting from/to a sizetype with the same
3454 precision and signedness.
3456 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
3459 * dwarf2out.c (output_call_frame_info): Move output of FDE initial
3460 location address to the correct place. Update copyright year.
3462 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
3464 * lambda-code.c (lambda_transform_legal_p): Handle the case of
3465 no dependences in the dependence_relations vector.
3467 2008-01-16 Jan Hubicka <jh@suse.cz>
3469 PR rtl-optimization/31396
3470 * regstat.c (regstat_bb_compute_ri): Compute FREQ_CALLS_CROSSED.
3471 * cfg.c (dump_reg_info): Print it.
3472 * regs.h (struct reg_info_t): add freq_calls_crossed.
3473 (REG_FREQ_CALLS_CROSSED): New macro.
3474 * global.c (global_alloc): Compute freq_calls_crossed for allocno.
3475 (find_reg): Update call of CALLER_SAVE_PROFITABLE.
3476 * regmove.c (optimize_reg_copy_1, optimize_reg_copy_2, fixup_match_2,
3477 regmove_optimize): Update call crossed frequencies.
3478 * local-alloc.c (struct qty): Add freq_calls_crossed.
3479 (alloc_qty): Copute freq_calls_crossed.
3480 (update_equiv_regs, combine_regs): Update REG_FREQ_CALLS_CROSSED.
3481 (find_free_reg): Update call of CALLER_SAVE_PROFITABLE.
3482 * ra.h (struct allocno): Add freq_calls_crossed.
3484 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
3486 * gcc.c (LINK_COMMAND_SPEC): Add includes and link options for
3487 libgomp when compiling with ftree-parallelize-loops.
3488 (GOMP_SELF_SPECS): Add -pthread for ftree-parallelize-loops.
3490 2008-01-16 Richard Guenther <rguenther@suse.de>
3492 PR tree-optimization/34769
3493 * tree-data-ref.c (initialize_matrix_A): Revert fix for PR34458.
3494 * tree.c (int_cst_value): Instead make this function more
3495 permissive in what it accepts as valid input. Document this
3496 function always sign-extends the value.
3498 2008-01-16 Jakub Jelinek <jakub@redhat.com>
3499 Richard Guenther <rguenther@suse.de>
3502 * gimplify.c (fold_indirect_ref_rhs): Rename to ...
3503 (gimple_fold_indirect_ref_rhs): ... this.
3504 (gimple_fold_indirect_ref): New function with foldings
3505 that preserve lvalueness.
3506 (gimplify_modify_expr_rhs): Call gimple_fold_indirect_ref_rhs.
3507 * tree-flow.h (gimple_fold_indirect_ref): Declare.
3508 * tree-inline.c (copy_body_r): Use gimple_fold_indirect_ref
3509 to fold an INDIRECT_REF, fall back to the old use of
3510 fold_indirect_ref_1.
3512 2008-01-16 Sebastian Pop <sebastian.pop@amd.com>
3514 * tree-data-ref.c (subscript_dependence_tester_1): Call
3515 free_conflict_function.
3516 (compute_self_dependence): Same.
3518 2008-01-16 Uros Bizjak <ubizjak@gmail.com>
3521 * debug.h (dwarf2out_switch_text_section): Move declaration from ...
3522 * dwarf2out.c (dwarf2out_switch_text_section): ... here. Make
3524 * final.c (final_scan_insn) [NOTE_INSN_SWITCH_TEXT_SECTIONS]:
3525 Depending on dwarf2out_do_frame, call dwarf2out_switch_text_section
3526 for DWARF2_UNWIND_INFO targets.
3528 2008-01-16 Richard Guenther <rguenther@suse.de>
3531 * c-typeck.c (common_pointer_type): Do not merge inconsistent
3532 type qualifiers for function types.
3534 2008-01-15 Jerry DeLisle <jvdelisle@gcc.gnu.org>
3536 * tree-parloops.c (gen_parallel_loop): Fix ommision of declaration for
3537 loop_iterator li from previous commit.
3539 2008-01-15 Sebastian Pop <sebastian.pop@amd.com>
3541 * tree-parloops.c (gen_parallel_loop): Free loop bound estimations.
3543 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
3545 * tree-parloops.c (loop_has_blocks_with_irreducible_flag): New.
3546 (parallelize_loops): Don't parallelize irreducible components.
3548 2008-01-14 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3551 * c-opts (c_common_post_options): Do not enable CPP
3552 flag_pedantic_errors by default.
3554 2008-01-14 Eric Botcazou <ebotcazou@adacore.com>
3556 PR rtl-optimization/31944
3557 * cse.c (remove_pseudo_from_table): New function.
3558 (merge_equiv_classes): Use above function to remove pseudo-registers.
3559 (invalidate): Likewise.
3561 2008-01-13 Richard Guenther <rguenther@suse.de>
3564 * emit-rtl.c (set_reg_attrs_for_decl_rtl): Use DECL_MODE
3565 instead of TYPE_MODE to deal with calls from expand_one_error_var.
3567 2008-01-13 Uros Bizjak <ubizjak@gmail.com>
3569 * gcse.c (cprop_jump): Call validate_unshare_change instead of
3570 validate_change to unshare the source of the PC set.
3572 2008-01-12 Jan Hubicka <jh@suse.cz>
3575 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Do not construct
3576 references above array bounds. This might trigger bounds checks for
3579 2008-01-12 Sebastian Pop <sebastian.pop@amd.com>
3581 * tree-ssa-ter.c (free_temp_expr_table): Free num_in_part and
3582 new_replaceable_dependencies.
3584 2008-01-12 Doug Kwan <dougkwan@google.com>
3586 * c-decl.c: (grokdeclarator): Use OPT_Wignored_qualifiers
3587 instead of OPT_Wreturn_type in warning due to ignored return type
3589 * c-opt.c (c_common_post_option): Add -Wignored-qualifiers to
3590 options included in -Wextra.
3591 * c.opt: New option -Wignored_qualifiers.
3592 * doc/invoke.texi (Warning Options, -Wextra): Add new option
3593 -Wignore_qualifiers.
3594 (-Wignored-qualifiers): Document.
3595 (-Wreturn-type): Remove description of functionality now handled
3596 by -Wignored-qualifiers.
3598 2008-01-12 Eric Botcazou <ebotcazou@adacore.com>
3601 * fold-const.c (fold_unary) <VIEW_CONVERT_EXPR>: Fold an existing
3602 NOP_EXPR if it is between integral types with the same precision.
3604 2008-01-12 Jan Hubicka <jh@suse.cz>
3607 * invoke.texi (max-inline-recursive-depth): Fix default value.
3609 2008-01-12 Zdenek Dvorak <ook@ucw.cz>
3611 * tree-parloops.c (transform_to_exit_first_loop): Cast nit to the
3614 2008-01-11 Bob Wilson <bob.wilson@acm.org>
3616 * config/xtensa/xtensa.c (override_options): Set flag_shlib.
3618 2008-01-11 James E. Wilson <wilson@specifix.com>
3621 * config/vax/elf.h (FRAME_POINTER_CFA_OFFSET): Define.
3623 2008-01-11 Anatoly Sokolov <aesok@post.ru>
3625 * config/avr/avr.c (expand_prologue, expand_epilogue): Don't
3626 save/restore frame pointer register and don't use 'call-prologues'
3627 optimization in function with "OS_task" attribute.
3629 2008-01-11 Eric Botcazou <ebotcazou@adacore.com>
3632 * expr.c (copy_blkmode_from_reg): Use a mode suited to the size
3633 when copying to memory.
3635 2008-01-11 Steven Bosscher <stevenb.gcc@gmail.com>
3637 PR rtl-optimization/30905
3638 * cfgcleanup.c: Include dce.h
3639 (crossjumps_occured): New global variable.
3640 (try_crossjump_bb): Exit loop after finding a fallthru edge.
3641 If something changed, set crossjumps_occured to true.
3642 (try_optimize_cfg): Clear crossjumps_occured at the beginning.
3643 Don't add/remove fake edges to exit here...
3644 (cleanup_cfg): ...but do it here, when crossjumping.
3645 Run a fast DCE when successful crossjumps occured in the latest
3646 iteration of try_optimize_cfg.
3648 2008-01-11 Richard Guenther <rguenther@suse.de>
3650 * tree-ssa-sccvn.c (struct vn_binary_op_s): Move hashcode near opcode.
3651 (struct vn_unary_op_s): Likewise.
3652 (vn_reference_insert): Free old reference on hash collision.
3654 2008-01-10 Raksit Ashok <raksit@google.com>
3656 PR rtl-optimization/27971
3657 * combine.c (find_split_point): Split PLUS expressions which are
3658 inside a MEM rtx, and whose first operand is complex.
3660 2008-01-10 DJ Delorie <dj@redhat.com>
3662 * config/m32c/m32c.c (m32c_hard_regno_nregs_1): Renamed from...
3663 (m32c_hard_regno_nregs): ...this, which is now a wrapper.
3664 (m32c_hard_regno_ok): Call the underlying function.
3666 2008-01-10 Richard Guenther <rguenther@suse.de>
3669 * tree-cfg.c (tree_merge_blocks): Do not go through the
3670 full-blown folding and stmt updating path if we just deal
3671 with virtual operands.
3672 * tree-ssa-copy.c (may_propagate_copy): Do not short-cut
3673 test for abnormal SSA_NAMEs.
3675 2008-01-10 Andreas Krebbel <krebbel1@de.ibm.com>
3678 * reload.c (push_reload): Add assertions. All constants from
3679 reg_equiv_constant should have been used for replacing the respective
3681 (find_reloads_address): Invoke find_reloads_address_part for
3682 constant taken from the reg_equiv_constant array.
3684 2008-01-10 Steven Bosscher <stevenb.gcc@gmail.com>
3686 * tree-ssa-sccvn.h (struct vn_ssa_aux): Make the most accessed
3687 field (valnum) the first in the struct. Replace bools with
3690 2008-01-10 Richard Guenther <rguenther@suse.de>
3692 PR tree-optimization/34651
3693 * tree-sra.c (sra_build_assignment): Sanitize. Use the correct
3694 types and ordering for masking and converting.
3696 2008-01-09 Sebastian Pop <sebastian.pop@amd.com>
3698 PR tree-optimization/34017
3699 * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Generate code
3700 also for PHI_NODE expressions.
3702 2008-01-09 Jan Hubicka <jh@suse.cz>
3704 PR tree-optimization/34708
3705 * tree-inline.c (estimate_num_insns_1): Compute cost of SWITCH_EXPR
3706 based on number of case labels.
3707 (init_inline_once): Remove switch_cost.
3708 * tree-inline.h (eni_weights_d): Remove switch_cost.
3710 2008-01-09 Richard Guenther <rguenther@suse.de>
3711 Andrew Pinski <andrew_pinski@playstation.sony.com>
3714 * gimplify.c (gimplify_cond_expr): Do not create an addressable
3715 temporary if an rvalue is ok or an lvalue is not required.
3717 2008-01-09 Richard Guenther <rguenther@suse.de>
3720 * tree-data-ref.c (initialize_matrix_A): Use tree_low_cst,
3723 2008-01-09 Richard Guenther <rguenther@suse.de>
3726 * tree.c (host_integerp): Check for sizetype only if the
3727 type is an integer type.
3729 2008-01-09 Steven Bosscher <stevenb.gcc@gmail.com>
3732 * opts.c (decode_options): Disable inlining of functions called
3733 once if not in unit-at-a-time mode.
3735 2008-01-09 Alexandre Oliva <aoliva@redhat.com>
3737 * Makefile.in (dse.o): Remove duplicate $(RECOG_H) dependency.
3739 2008-01-08 Richard Guenther <rguenther@suse.de>
3742 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Bail
3743 out early if the result will be unused.
3745 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
3750 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
3751 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
3754 2008-01-08 Jan Sjodin <jan.sjodin@amd.com>
3756 * config/i386/i386.c (k8_cost, amdfam10_cost): Branch costs
3757 for vectorization tuned.
3759 2008-01-08 Richard Guenther <rguenther@suse.de>
3761 PR tree-optimization/34683
3762 * tree-ssa-operands.c (operand_build_cmp): Export.
3763 * tree-ssa-operands.h (operand_build_cmp): Declare.
3764 * tree-vn.c (vuses_compare): Remove.
3765 (sort_vuses): Use operand_build_cmp.
3766 (sort_vuses_heap): Likewise.
3767 * tree-ssa-sccvn.c (vuses_to_vec): Use VEC_reserve, not VEC_alloc
3768 to re-use old VEC if available. Do not sort already sorted VUSEs.
3769 (vdefs_to_vec): Do not sort already sorted VDEFs.
3771 2008-01-08 Jakub Jelinek <jakub@redhat.com>
3774 * omp-low.c (copy_var_decl): Copy also DECL_SOURCE_LOCATION.
3776 2008-01-08 Uros Bizjak <ubizjak@gmail.com>
3779 * doc/invoke.texi (i386 and x86-64 Options) [mrecip]: Document
3780 limitations of reciprocal sequences on x86 targets.
3782 2008-01-08 Richard Guenther <rguenther@suse.de>
3784 PR tree-optimization/34683
3785 * tree-flow-inline.h (var_ann): Remove overzealous asserts.
3787 2008-01-07 Jakub Jelinek <jakub@redhat.com>
3790 * config/darwin.c (darwin_mergeable_string_section): Don't use
3791 .cstring if int_size_in_bytes != TREE_STRING_LENGTH.
3793 2008-01-07 Uros Bizjak <ubizjak@gmail.com>
3796 * config/i386/i386.md (neg<mode>2): Rename from negsf2, negdf2 and
3797 negxf2. Macroize expander using X87MODEF mode iterator. Change
3798 predicates of op0 and op1 to register_operand.
3799 (abs<mode>2): Rename from abssf2, absdf2 and negxf2. Macroize
3800 expander using X87MODEF mode iterator. Change predicates of
3801 op0 and op1 to register_operand.
3802 ("*absneg<mode>2_mixed", "*absneg<mode>2_sse"): Rename from
3803 corresponding patterns and macroize using MODEF macro. Change
3804 predicates of op0 and op1 to register_operand and remove
3805 "m" constraint. Disparage "r" alternative with "!".
3806 ("*absneg<mode>2_i387"): Rename from corresponding patterns and
3807 macroize using X87MODEF macro. Change predicates of op0 and op1
3808 to register_operand and remove "m" constraint. Disparage "r"
3809 alternative with "!".
3810 (absneg splitter with memory operands): Remove.
3811 ("*neg<mode>2_1", "*abs<mode>2_1"): Rename from corresponding
3812 patterns and macroize using X87MODEF mode iterator.
3813 * config/i386/sse.md (negv4sf2, absv4sf2, neg2vdf2, absv2df2):
3814 Change predicate of op1 to register_operand.
3815 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Remove support
3816 for memory operands.
3818 2008-01-07 Nathan Froyd <froydnj@codesourcery.com>
3820 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add clause for mcpu=8548.
3822 2008-01-07 Richard Guenther <rguenther@suse.de>
3824 * basic-block.h (struct edge_def): Pair dest_idx with goto_locus
3827 2008-01-07 Richard Guenther <rguenther@suse.de>
3829 PR tree-optimization/34683
3830 * tree-ssa-sccvn.c (vuses_to_vec): Pre-allocate the vector of
3831 VOPs of the needed size to save memory. Use VEC_quick_push
3832 to save compile-time.
3833 (vdefs_to_vec): Likewise.
3835 2008-01-07 Sa Liu <saliu@de.ibm.com>
3837 * config/spu/spu.md (divdf3): Genetate inline code for double
3838 division. The implementation doesn't handle INF or NAN, therefore it
3839 only applies when -ffinite-math-only is given.
3841 2008-01-06 Paolo Carlini <pcarlini@suse.de>
3844 * c-cppbuiltin.c (c_cpp_builtins): Define __GXX_RTTI, if appropriate.
3845 * doc/cpp.texi ([Common Predefined Macros]): Document.
3847 2008-01-06 Uros Bizjak <ubizjak@gmail.com>
3849 * config/i386/i386.c (ix86_emit_swsqrtsf): Use negative constants in
3850 order to use commutative addition instead of subtraction.
3852 2008-01-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
3853 Mircea Namolaru <namolaru@il.ibm.com>
3854 Vladimir Yanovsky <yanov@il.ibm.com>
3855 Revital Eres <eres@il.ibm.com>
3857 PR tree-optimization/34263
3858 * tree-outof-ssa.c (process_single_block_loop_latch,
3859 contains_tree_r): New functions.
3860 (analyze_edges_for_bb): Call process_single_block_loop_latch
3861 function to empty single-basic-block latch block if possible.
3863 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
3865 * config/i386/i386.c (ix86_builtin_reciprocal): Remove check
3867 (ix86_emit_swsqrtsf): Do not filter out infinity for rsqrt expansion.
3869 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
3871 * c-omp.c (check_omp_for_incr_expr): Handle CONVERT_EXPR.
3873 2008-01-05 Richard Sandiford <rsandifo@nildram.co.uk>
3875 * config/mips/mips.c (mips_in_small_data_p): Reinstate size > 0 check.
3877 2008-01-05 Jakub Jelinek <jakub@redhat.com>
3879 PR tree-optimization/34618
3880 * tree-outof-ssa.c (create_temp): Copy over DECL_GIMPLE_REG_P
3883 2008-01-05 Uros Bizjak <ubizjak@gmail.com>
3886 * config/i386/i386.c (ix86_emit_swsqrtsf): Swap input operands
3887 in the call to gen_rtx_NE. Remove unneeded VECTOR_MODE_P check.
3888 Update copyright year.
3890 * config/i386/i386.md (rsqrtsf2): Enable for TARGET_SSE_MATH.
3891 Update copyright year.
3892 * config/i386/sse.md (rsqrtv4sf2): Ditto. Unconditionally expand
3895 2008-01-05 Zhouyi Zhou <zhouzhouyi@FreeBSD.org>
3897 * tree-vrp.c (find_conditional_asserts): Remove redundant check that
3898 edge does not point to current bb before changing need_assert.
3900 2008-01-04 Richard Guenther <rguenther@suse.de>
3903 * tree-cfg.c (verify_expr): Do not look inside ADDR_EXPRs
3904 for verifying purposes if they are is_gimple_min_invariant.
3906 2008-01-04 Aldy Hernandez <aldyh@redhat.com>
3908 PR tree-optimization/34448
3909 PR tree-optimization/34465
3910 * gimplify.c (gimplify_init_constructor): Add new parameter
3911 notify_temp_creation. Use it.
3912 (gimplify_modify_expr_rhs): Take volatiles into account when
3913 optimizing constructors.
3914 Do not optimize constructors if gimplify_init_constructor will dump to
3916 * gcc.dg/tree-ssa/pr32901.c: Tests const volatiles.
3917 * gcc.c-torture/compile/pr34448.c: New.
3919 2008-01-04 Jakub Jelinek <jakub@redhat.com>
3921 PR gcov-profile/34609
3922 * tree-inline.c (declare_return_variable): Set TREE_ADDRESSABLE on
3923 return_slot if result is TREE_ADDRESSABLE.
3925 2008-01-04 Richard Sandiford <rsandifo@nildram.co.uk>
3927 * config/mips/mips.md (sqrt_condition): Tweak comment.
3928 (recip_condition): Likewise. Require TARGET_FLOAT64 for DFmode.
3930 2008-01-03 Tom Tromey <tromey@redhat.com>
3933 * c-common.c (c_type_hash): Handle VLAs.
3935 2008-01-03 Jan Hubicka <jh@suse.cz>
3937 PR tree-optimization/31081
3938 * tree-inline.c (remap_ssa_name): Initialize uninitialized SSA vars to
3939 0 when inlining and not inlining to first basic block.
3940 (remap_decl): When var is initialized to 0, don't set default_def.
3941 (expand_call_inline): Set entry_bb.
3942 * tree-inline.h (copy_body_data): Add entry_bb.
3944 2008-01-03 Jakub Jelinek <jakub@redhat.com>
3947 * cgraphunit.c (cgraph_build_static_cdtor): set_cfun back to NULL
3950 PR tree-optimization/29484
3951 * tree-inline.c (inline_forbidden_p_2): New function.
3952 (inline_forbidden_p): Disallow inlining if some static var
3953 has an address of a local LABEL_DECL in its initializer.
3954 * doc/extend.texi (Labels as Values): Document &&foo behaviour
3957 2008-01-03 Sebastian Pop <sebastian.pop@amd.com>
3959 PR tree-optimization/34635
3960 * tree-data-ref.c (add_other_self_distances): Make sure that the
3961 evolution step is constant.
3963 2008-01-03 Jakub Jelinek <jakub@redhat.com>
3966 * omp-low.c (expand_omp_parallel): Purge dead EH edges in the child fn.
3968 2008-01-02 Richard Sandiford <rsandifo@nildram.co.uk>
3970 * tree-sra.c (scalarize_init): Insert the generate_element_init
3971 statements after the generate_element_zero statements.
3973 2008-01-02 Richard Guenther <rguenther@suse.de>
3977 * tree-ssa-operands.c (ssa_operand_alloc): Also allocate a buffer
3978 for very large number of operands instead of ICEing.
3980 2008-01-02 Arthur Norman <acn1@cam.ac.uk>
3983 * config/i386/i386.c (ix86_expand_prologue): Save red-zone
3984 while stack probing.
3986 2008-01-01 Douglas Gregor <doug.gregor@gmail.com>
3988 * c-opts.c (sanitize_cpp_opts): Don't warn about "long long" when
3991 2008-01-01 Volker Reichelt <v.reichelt@netcologne.de>
3994 * tree-mudflap.c (mx_register_decls): Guard warning by
3995 !DECL_ARTIFICIAL check.
3997 2008-01-01 Jakub Jelinek <jakub@redhat.com>
3999 * config/i386/sse.md (sse5_pperm, sse5_pperm_pack_v2di_v4si,
4000 sse5_pperm_pack_v4si_v8hi, sse5_pperm_pack_v8hi_v16qi,
4001 sse5_perm<mode>): Fix constraints.