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