1 2008-04-02 Uros Bizjak <ubizjak@gmail.com>
3 * config/i386/i386.md (*float<SSEMODEI24:mode><X87MODEF:mode>2_1):
4 Emit gen_floatdi<X87MODEF:mode>2_i387_with_xmm for DImode values
5 in 32bit mode when XMM registers are available to avoid store
7 (floatdi<X87MODEF:mode>2_i387_with_xmm): New insn pattern and
8 corresponding post-reload splitters.
10 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
12 * config/i386/i386.c (bdesc_sse_3arg): Add __builtin_ia32_shufps
13 and __builtin_ia32_shufpd. Provide __builtin_ia32_roundsd and
14 __builtin_ia32_roundss.
15 (ix86_init_mmx_sse_builtins): Remove __builtin_ia32_shufps,
16 __builtin_ia32_shufpd, __builtin_ia32_roundsd and
17 __builtin_ia32_roundss.
18 (ix86_expand_builtin): Don't handle IX86_BUILTIN_SHUFPS and
19 IX86_BUILTIN_SHUFPD here.
21 2008-04-02 H.J. Lu <hongjiu.lu@intel.com>
23 * config/i386/i386.md (plogic): New.
24 (plogicprefix): Likewise.
26 * config/i386/mmx.md (mmx_<code><mode>3): New.
27 (mmx_and<mode>3): Removed.
28 (mmx_ior<mode>3): Likewise.
29 (mmx_xor<mode>3): Likewise.
31 * config/i386/sse.md (<code><mode>3): New.
32 (*<code><mode>3): Likewise.
33 (*<code><mode>3): Likewise.
34 (<code><mode>3): Likewise.
35 (*sse_<code><mode>3): Likewise.
36 (*sse2_<code><mode>3): Likewise.
37 (<code>tf3): Likewise.
38 (*<code>tf3): Likewise.
39 (and<mode>3): Likewise.
40 (*and<mode>3): Likewise.
41 (ior<mode>3): Removed.
42 (*ior<mode>3): Likewise.
43 (xor<mode>3): Likewise.
44 (*xor<mode>3): Likewise.
45 (*and<mode>3): Likewise.
46 (*ior<mode>3): Likewise.
47 (*xor<mode>3): Likewise.
48 (and<mode>3): Likewise.
49 (*sse_and<mode>3): Likewise.
50 (*sse2_and<mode>3): Likewise.
53 (ior<mode>3): Likewise.
54 (*sse_ior<mode>3): Likewise.
55 (*sse2_ior<mode>3): Likewise.
58 (xor<mode>3): Likewise.
59 (*sse_xor<mode>3): Likewise.
60 (*sse2_xor<mode>3): Likewise.
64 2008-04-02 Richard Guenther <rguenther@suse.de>
66 PR tree-optimization/14495
67 PR tree-optimization/34793
68 * tree-vrp.c (struct switch_update): New structure.
69 (to_remove_edges, to_update_switch_stmts): New VECs.
70 (simplify_switch_using_ranges): New function. Remove not taken
71 case labels and edges.
72 (simplify_stmt_using_ranges): Call it.
73 (identify_jump_threads): Mark edges we have queued for removal
74 so we don't thread them.
75 (execute_vrp): Remove edges queued for removal, update SWITCH_STMT
77 * tree-cfg.c (group_case_labels): Deal with missing default label.
78 (tree_verify_flow_info): Allow missing default label.
79 * stmt.c (emit_case_bit_tests): Deal with NULL default_label.
80 (emit_case_nodes): Likewise.
81 (expand_case): Do not rely on the default label to be present.
82 * expr.c (try_casesi): Deal with NULL default_label.
83 (do_tablejump): Likewise.
85 2008-04-02 Richard Guenther <rguenther@suse.de>
87 PR tree-optimization/14495
88 * tree-vrp.c (vrp_visit_cond_stmt): Do not handle
90 (vrp_visit_switch_stmt): ... but here (new function).
91 (find_case_label_index): New helper function.
92 (vrp_visit_stmt): Dispatch to vrp_visit_switch_stmt.
94 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
96 * fwprop.c: Fix ISO-C99ism.
98 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
101 * Makefile.in (objdir): Set it here.
102 * configure.ac: Not here. Find dynamic linker characteristics.
103 * exec-tool.in: Use them.
104 * aclocal.m4: Regenerate.
105 * configure: Regenerate.
107 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
109 * expr.c (expand_var): Delete it.
110 * expr.h (expand_var): Delete prototype.
111 * function.c (expand_function_start): Use expand_decl instead.
112 * cfgexpand.c (expand_one_static_var, expand_one_var): Don't call
115 2008-04-02 Andy Hutchinson <hutchinsonamdy@aim.com>
117 PR rtl-optimization/35542
118 * fwprop.c (forward_propagate_and_simplify): Replace
119 loc_reg_mentioned_in_p with reg_mentioned_p.
121 2008-04-02 Paolo Bonzini <bonzini@gnu.org>
123 PR rtl-optimization/35281
124 * fwprop.c (PR_CAN_APPEAR, PR_HANDLE_MEM): New.
125 (propagate_rtx_1): Handle PR_HANDLE_MEM.
126 (propagate_rtx): Pass PR_HANDLE_MEM if appropriate.
127 (varying_mem_p): Move above propagate_rtx.
128 (all_uses_available_at): Do not check MEMs.
130 2008-04-02 Rafael Espindola <espindola@google.com>
132 * tree-vrp.c (extract_code_and_val_from_cond): Remove.
133 (register_edge_assert_for_2): Split the cond argument.
134 (register_edge_assert_for_1): Adjust for the change in
135 register_edge_assert_for_2.
136 (register_edge_assert_for): Split the cond argument.
137 (find_switch_asserts): Adjust for the change in
138 register_edge_assert_for.
140 2008-04-02 Kai Tietz <kai.tietz@onevision.com>
142 * config.gcc: Add for x86_64-*-mingw* the t-crtfm to tbuild.
143 * gcc/config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Add 8 byte
144 offsets for 64-bit mingw.
145 * gcc/config/i386/i386.c (ix86_pass_by_reference): Correct calling
146 abi for x86_64-pc-mingw.
148 2008-04-02 Richard Guenther <rguenther@suse.de>
150 * tree-vrp.c (extract_range_from_assert): Make sure to not
151 produce range min/max with TREE_OVERFOW set.
152 If merging a anti-range and a range keep the anti-range if
153 the range covers all values of the type.
154 (register_edge_assert_for_2): Only allow sign-changing
155 conversions in detecting canonical range checks. Also
156 register an assert for the unsigned name if useful.
158 PR tree-optimization/35787
159 * tree-vrp.c (vrp_val_max): New function.
160 (vrp_val_min): Likewise.
161 (vrp_val_is_max): Move earlier, use vrp_val_{min,max}.
162 (vrp_val_is_min): Likewise.
163 (supports_overflow_infinity): Use vrp_val_{min,max}.
164 (negative_overflow_infinity): Likewise.
165 (positive_overflow_infinity): Likewise.
166 (is_negative_overflow_infinity): Use vrp_val_is_{min,max}.
167 (is_positive_overflow_infinity): Likewise.
168 (is_overflow_infinity): Likewise.
169 (avoid_overflow_infinity): Use vrp_val_{min,max} and
170 vrp_val_is_{min,max}.
171 (set_and_canonicalize_value_range): Canonicalize anti-ranges
172 to ranges if possible. Avoid empty ranges.
174 2008-04-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
177 * fold-const.c (get_pointer_modulus_and_residue): Return modulus 1 if
178 the expression is a function address.
180 2008-04-01 George Helffrich <george@gcc.gnu.org>
182 PR fortran/PR35154, fortran/PR23057
183 * fortran/trans-common.c (create_common): Add decl to function
184 chain to preserve identifier scope in debug output.
186 * dbxout.c: Emit .stabs debug info for Fortran COMMON block
187 variables as base symbol name + offset using N_BCOMM/N_ECOMM.
188 (is_fortran, dbxout_common_name, dbxout_common_check): New functions.
189 (dbxout_symbol_location): Transform N_LCSYM to N_GSYM for storage
191 (dbxout_syms): Check for COMMON-based symbol and wrap in
192 N_BCOMM/N_ECOMM stab bracket, including as many symbols as possible
193 in bracket for efficiency.
195 * dwarf2out.c: Emit DWARF debug info for Fortran COMMON block
196 using DW_TAG_common_block + member offset.
197 (add_pubname_string): New function.
198 (dw_expand_expr): New function to find block name and offset for
200 (common_check): New function to check whether symbol in Fortran COMMON.
201 (gen_variable_die): If COMMON, use DW_TAG_common_block.
203 * testsuite/gcc.dg/debug/pr35154.c: New test to check that non-Fortran
204 use of common is unchanged.
206 * testsuite/lib/gfortran-dg.exp: New harness to compile Fortran progs
207 with all combinations of debug options available on target.
208 * testsuite/gfortran.dg/debug/debug.exp: Ditto.
209 * testsuite/gfortran.dg/debug/trivial.f: Ditto.
210 * testsuite/gfortran.dg/debug/pr35154-stabs.f: New test case for
211 .stabs functionality.
212 * testsuite/gfortran.dg/debug/pr35154-dwarf2.f: New test case for
215 2008-04-01 Volker Reichelt <v.reichelt@netcologne.de>
218 * c-format.c (init_dynamic_gfc_info): Ignore invalid locus type.
220 2008-04-02 Ben Elliston <bje@au.ibm.com>
222 * config/v850/v850.md (casesi): Remove if (0) code.
223 * config/i386/uwin.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
224 * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
226 2008-04-01 Uros Bizjak <ubizjak@gmail.com>
228 * config/i386/i386.md (rex64suffix): New mode attribute.
229 (floathi<mode>2): Disable expander for SSE math.
230 (*floathi<mode>2_1): New insn insn_and_split pattern.
231 (*floathi<mode>2_i387_with_temp): New macroized instruction pattern and
232 corresponding post-reload splitters.
233 (*floathi<mode>2_i387): New macroized insn pattern.
234 (float<SSEMODEI24:mode><X87MODEF:mode>2): New macroized expander.
235 (*float<SSEMODEI24:mode><X87MODEF:mode>2_1): New macroized
236 insn_and_split pattern.
237 (*floatsi<mode>2_vector_mixed_with_temp, *floatsi<mode>2_vector_mixed):
238 New macroized instruction patterns and corresponding post-reload
240 (*floatsi<mode>2_mixed_with_temp): New macroized instruction pattern
241 and corresponding post-reload splitters.
242 (*floatsi<mode>2_mixed_interunit, *floatsi<mode>2_mixed_nointerunit):
243 New macroized instruction patterns.
244 (*floatsi<mode>2_vector_sse_with_temp, *floatsi<mode>2_vector_sse): New
245 macroized instruction patterns and corresponding post-reload splitters.
246 (*floatsi<mode>2_sse_with_temp): New macroized instruction pattern and
247 corresponding post-reload splitters.
248 (*floatsi<mode>2_sse_interunit, *floatsi<mode>2_mixed_nointerunit):
249 New macroized instruction patterns.
250 (*floatsi<mode>2_i387_with_temp): New macroized instruction pattern and
251 corresponding post-reload splitters.
252 (*floatsi<mode>2_i387): New macroized instruction patterns.
254 2008-04-01 H.J. Lu <hongjiu.lu@intel.com>
256 * config/i386/i386.md (smaxmin): New.
258 (maxminiprefix): Likewise.
259 (maxminfprefix): Likewise.
260 (<code><mode>3): Likewise.
261 (smin<mode>3): Removed.
262 (smax<mode>3): Likewise.
264 * config/i386/mmx.md (mmx_<code>v2sf3): New.
265 (mmx_<code>v4hi3): Likewise.
266 (mmx_<code>v8qi3): Likewise.
267 (mmx_smaxv2sf3): Removed.
268 (mmx_sminv2sf3): Likewise.
269 (mmx_umaxv8qi3): Likewise.
270 (mmx_smaxv4hi3): Likewise.
271 (mmx_uminv8qi3): Likewise.
272 (mmx_sminv4hi3): Likewise.
274 * config/i386/sse.md (<addsub><mode>3): New.
275 (*<addsub><mode>3): Likewise.
276 (<sse>_vm<addsub><mode>3): Likewise.
277 (<maxmin><mode>3): Likewise.
278 (*<maxmin><mode>3_finite): Likewise.
279 (*<maxmin><mode>3): Likewise.
280 (<sse>_vm<maxmin><mode>3): Likewise.
281 (sse3_h<addsub>v4sf3): Likewise.
282 (sse3_h<addsub>v2df3): Likewise.
283 (<maxmin>v16qi3): Likewise.
284 (*<maxmin>v16qi3): Likewise.
285 (<maxmin>v8hi3): Likewise.
286 (*<maxmin>v8hi3): Likewise.
287 (*sse4_1_<maxmin><mode>3): Likewise.
288 (*sse4_1_<maxmin><mode>3): Likewise.
289 (add<mode>3): Removed.
290 (*add<mode>3): Likewise.
291 (<sse>_vmadd<mode>3): Likewise.
292 (sub<mode>3): Likewise.
293 (*sub<mode>3): Likewise.
294 (<sse>_vmsub<mode>3): Likewise.
295 (smin<mode>3): Likewise.
296 (*smin<mode>3_finite): Likewise.
297 (*smin<mode>3): Likewise.
298 (<sse>_vmsmin<mode>3): Likewise.
299 (smax<mode>3): Likewise.
300 (*smax<mode>3_finite): Likewise.
301 (*smax<mode>3): Likewise.
302 (<sse>_vmsmax<mode>3): Likewise.
303 (sse3_haddv4sf3): Likewise.
304 (sse3_haddv2df3): Likewise.
305 (sse3_hsubv4sf3): Likewise.
306 (sse3_hsubv2df3): Likewise.
307 (umaxv16qi3): Likewise.
308 (*umaxv16qi3): Likewise.
309 (smaxv8hi3): Likewise.
310 (*smaxv8hi3): Likewise.
311 (*sse4_1_smax<mode>3): Likewise.
312 (*sse4_1_umax<mode>3): Likewise.
313 (uminv16qi3): Likewise.
314 (*uminv16qi3): Likewise.
315 (sminv8hi3): Likewise.
316 (*sminv8hi3): Likewise.
317 (*sse4_1_smin<mode>3): Likewise.
318 (*sse4_1_umin<mode>3): Likewise.
320 2008-04-01 Rafael Espindola <espindola@google.com>
322 * tree-cfg.c (verify_expr): remove in_phi.
323 (verify_stmt): Don't call walk_tree with verify_expr. Use
324 is_gimple_min_invariant instead of is_gimple_val.
326 2008-04-01 Joseph Myers <joseph@codesourcery.com>
328 * doc/include/gpl_v3.texi: Update for manpage generation.
329 * doc/gcc.texi, doc/gccint.texi: Include gpl_v3.texi instead of
331 * doc/sourcebuild.texi: Document gpl_v3.texi as well as gpl.texi.
332 * Makefile.in (TEXI_GCC_FILES, TEXI_GCCINT_FILES): Include
333 gpl_v3.texi instead of gpl.texi.
336 2008-04-01 Jakub Jelinek <jakub@redhat.com>
339 * c-pch.c (c_common_read_pch): On error close (fd) resp. fclose (f).
341 2008-04-01 Rafael Espindola <espindola@google.com>
343 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): New.
344 (extract_code_and_val_from_cond): Use
345 extract_code_and_val_from_cond_with_ops.
347 2008-04-01 Jan Hubicka <jh@suse.cz>
349 * function.c (free_after_compilation): Free epilogue_delay_list.
350 (prepare_function_start): Assert that previous compilation was freed.
352 2008-04-01 Jan Hubicka <jh@suse.cz>
353 Jim Wilson <wilson@tuliptree.org>
354 Andreas Tobler <andreast@gcc.gnu.org>
357 * m32c/m32.c (m32c_leaf_function_p, m32c_function_needs_enter): Use
358 rtl.emit instead cfun->emit.
359 * sparc/sparc.h (INIT_EXPANDERS): Likewise.
360 * ia64/ia64.h (INIT_EXPANDERS): Likewise.
362 2008-04-01 Ben Elliston <bje@au.ibm.com>
364 * doc/c-tree.texi (Function Basics): Fix grammatical error.
366 2008-03-31 Seongbae Park <seongbae.park@gmail.com>
368 * common.opt (fprofile-dir=, fprofile-use=, fprofile-generate=):
370 (fprofile-use): Add var flag_profile_use
371 * coverage.c (coverage_begin_output): Do not open a gcno file for
372 output only if -ftest-coverage is set.
373 Do not add getpwd() to gcda file path.
374 (build_gcov_info): Check the new flag
375 flag_profile_datafile_relative_path.
376 (coverage_init): Use profile_data_prefix.
377 Read profile counter only if flag_profile_use is set.
378 * opts.c (common_handle_option): New option fprofile-use=,
379 fprofile-dir=, fprofile-generate=.
380 * toplev.c (profile_data_prefix): New variable definition.
381 * toplev.h (profile_data_prefix): New declaration.
382 * doc/invoke.tex (Option Summary, Optimization Options):
385 2008-03-31 James E. Wilson <wilson@tuliptree.org>
387 * varasm.c (output_constant_pool_1): In LABEL_REF check,
388 use tmp consistently.
391 * config/ia64/div.md (recip_approx_rf): Use UNSPEC not DIV.
392 * config/ia64/ia64.c (rtx_needs_barrier): Handle
393 UNSPEC_FR_RECIP_APPROX_RES.
394 * config/ia64/ia64.md (UNSPEC_FR_RECIP_APPROX_RES): Define.
396 2008-03-31 Volker Reichelt <v.reichelt@netcologne.de>
399 * c-decl.c (store_parm_decls_oldstyle): Skip invalid parameters.
401 2008-03-31 Andrew Pinski <andrew_pinski@playstation.sony.com>
404 * fold-const.c (fold_indirect_ref_1): Support accessing non first
405 element of the vector via a pointer.
407 2008-03-31 Ian Lance Taylor <iant@google.com>
409 * tlink.c (scan_linker_output): Look for symbol name in single quotes.
411 2008-03-31 Jan Hubicka <jh@suse.cz>
413 * builtins.c (expand_builtin_setjmp_receiver): Update call of
414 get_arg_pointer_save_area.
415 * expr.c (init_expr): Just clear out rtl.expr.
416 * function.c (free_after_compilation): Clear out whole RTL structure.
417 (get_func_frame_size): Merge into ...
418 (get_frame_size): ... this one.
419 (assign_stack_local_1): Merge into ...
420 (assign_stack_local): ... this one.
421 (expand_function_end): Update call of get_arg_pointer_save_area.
422 (get_art_pointer_save_area): Remove cfun argument.
423 * function.h (emit_status): regno_pointer_align does not need length
424 attribute. Move x_regno_reg_rtx to ...
425 (regno_reg_rtx): ... new global array.
426 (reg_rtx_no, seq_stack, REGNO_POINTER_ALIGN): Update accestors.
427 (pending_stack_adjust, inhibit_defer_pop, saveregs_value,
428 apply_args_value, forced_labels, stack_pointer_delta):
430 (struct varasm_status): Move here from varasm.c
431 (struct rtl_data): New. Move here some fields from struct function.
432 (return_label, naked_return_label, stack_slot_list, parm_birth_insn,
433 frame_offset, stack_check_probe_note, arg_pointer_save_area,
434 used_temp_slots avail_temp_slots, temp_slot_level,
435 nonlocal_goto_handler_labels): Update accesstors.
436 (rtl): New global variable.
437 (struct function): Move some fileds to rtl_data.
438 (get_arg_pointer_save_area): Update prototype.
439 * emit-rtl.c (rtl): Declare.
440 (regno_reg_rtx): Declare.
441 (first_insn, last_insn, cur_insn_uid, last_location, first_label_num):
443 (gen_reg_rtx): Update.
444 (init_virtual_regs): Do not tate emit_status argument.
445 (init_emit): Do not allocate emit.
446 * varasm.c (varasm_statuc): Move to function.h.
447 (n_deferred_constatns): Update accestor.
448 (init_varasm_status): Do not allocate varasm_status.
449 (force_const_mem, get_pool_size, output_constant_pool): Update.
450 * stmt.c (force_label_rtx): Do not use x_ prefixes.
451 (expand_nl_goto_receiver): Update get_arg_pointer_save_area.
453 2008-03-31 Zdenek Dvorak <ook@ucw.cz>
455 PR rtl-optimization/35729
456 * loop-invariant.c (check_maybe_invariant): Disallow volatile memory
459 2008-03-31 H.J. Lu <hongjiu.lu@intel.com>
462 * config/i386/i386.md (*movti_internal): Emit unaligned SSE
463 load/store if memory is unaligned.
464 (*movti_rex64): Likewise.
466 * config/i386/predicates.md (misaligned_operand): New.
468 2008-03-31 Andrew Pinski <pinskia@gmail.com>
471 * tree-ssa-phiopt.c (conditional_replacement): Return early for
474 2008-03-31 Jan Beulich <jbeulich@novell.com>
476 * config/ia64/constraints.md: Add 'j' constraint.
477 * config/ia64/ia64.md (movsi_internal): Add addp4 case.
478 (movdi_internal): Likewise.
480 2008-03-30 Volker Reichelt <v.reichelt@netcologne.de>
483 * c-typeck.c (build_c_cast): Skip invalid fields in unions.
485 2008-03-30 H.J. Lu <hongjiu.lu@intel.com>
488 * config/i386/i386.c (ix86_expand_sse_4_operands_builtin): Issue
489 proper error message for the third argument on blendpd and
492 * config/i386/sse.md (blendbits): New.
493 (sse4_1_blendp<ssemodesuffixf2c>): Use it.
495 2008-03-30 Eric Botcazou <ebotcazou@adacore.com>
497 * fold-const.c (fold_binary) <BIT_IOR_EXPR>: Add missing conversions.
499 2008-03-30 Richard Guenther <rguenther@suse.de>
502 * fold-const.c (fold_sign_changed_comparison): Do leave
503 conversions to base-types alone.
505 2008-03-29 Andrew Pinski <andrew_pinski@playstation.sony.com>
507 * config/rs6000/rs6000.c (rs6000_stack_info): Don't force saving of
508 the link register if one altivec register is be saved.
510 2008-03-30 Ben Elliston <bje@au.ibm.com>
512 * final.c (final_scan_insn): Remove if (0) code.
514 2008-03-28 Volker Reichelt <v.reichelt@netcologne.de>
516 * c-parser.c (c_parser_next_token_is_keyword): Simplify.
518 2008-03-28 H.J. Lu <hongjiu.lu@intel.com>
520 * config/i386/sse.md (*and<mode>3): Pass <MODE>mode instead
521 of V4SFmode to ix86_binary_operator_ok.
523 2008-03-28 Uros Bizjak <ubizjak@gmail.com>
525 * config/i386/i386.c (override_options): Initialize
526 ix86_veclib_handler to ix86_veclibabi_svml when
527 -mveclibabi=svml is used.
528 (ix86_veclibabi_svml): New function for SVML ABI style
529 vectorization support.
530 * doc/invoke.texi (-mveclibabi) [svml]: Document new target option.
532 2008-03-28 Rafael Espindola <espindola@google.com>
534 * fold-const.c (tree_unary_nonnegative_warnv_p): Make it public.
535 (tree_binary_nonnegative_warnv_p): Make it public.
536 (tree_single_nonnegative_warnv_p): Make it public.
537 (tree_invalid_nonnegative_warnv_p): Make it public.
538 (tree_unary_nonzero_warnv_p): Make it public.
539 (tree_binary_nonzero_warnv_p): Make it public
540 (tree_single_nonzero_warnv_p): Make it public.
541 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops): New function.
542 (extract_range_from_binary_expr): Split the expr argument.
543 (extract_range_from_unary_expr): Split the expr argument.
544 (extract_range_from_comparison): Split the expr argument.
545 (extract_range_from_expr): Use the new aux functions.
546 (vrp_evaluate_conditional_warnv): Use
547 vrp_evaluate_conditional_warnv_with_ops.
548 * tree.h (tree_unary_nonzero_warnv_p): Declare.
549 (tree_binary_nonzero_warnv_p): Declare.
550 (tree_single_nonzero_warnv_p): Declare.
551 (tree_expr_nonzero_warnv_p): Declare.
552 (tree_unary_nonnegative_warnv_p): Declare.
553 (tree_binary_nonnegative_warnv_p): Declare.
554 (tree_single_nonnegative_warnv_p): Declare.
555 (tree_invalid_nonnegative_warnv_p): Declare.
557 2008-03-28 Richard Guenther <rguenther@suse.de>
559 PR tree-optimization/30317
560 PR tree-optimization/30911
561 PR tree-optimization/34793
562 * tree-vrp.c (set_and_canonicalize_value_range): New function.
563 (struct assert_locus_d): New member EXPR.
564 (register_new_assert_for): Add EXPR parameter to support
565 ASSERT_EXPR <name, expr OP limit>.
566 (register_edge_assert_for_1): Adjust callers.
567 (find_assert_locations): Likewise.
568 (process_assert_insertions_for): Build condition from expression.
569 (extract_range_from_assert): Handle ASSERT_EXPRs
570 of the form ASSERT_EXPR <name, expr OP limit>.
571 (register_edge_assert_for_2): New helper registering
572 asserts for comparisons. Recognize range tests of the form
573 (unsigned)i - CST1 OP CST2.
574 (register_edge_assert_for_1): Use it.
575 (register_edge_assert_for): Likewise.
576 (needs_overflow_infinity): Integer sub-types
577 do not need overflow infinities.
578 (vrp_val_is_max): The extreme values of integer sub-types
579 are those of the base type.
580 (vrp_val_is_min): Likewise.
581 * tree.def (ASSERT_EXPR): Document extra allowed conditional
584 2008-03-28 Nick Clifton <nickc@redhat.com>
586 * config/mn10300/mn10300.c (mn10300_secondary_reload_class):
587 Return GENERAL_REGS for stack adjustment reloads.
589 2008-03-28 Andrew Pinski <andrew_pinski@playstation.sony.com>
592 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Create a
593 const_vector when all the vectors are constant.
595 2008-03-27 Bob Wilson <bob.wilson@acm.org>
597 * config/xtensa/xtensa.c (gen_float_relational): Handle unordered
599 * config/xtensa/xtensa.md (any_cond): Add unordered comparisons.
600 (any_scc_sf): Add uneq, unlt, unle and unordered operators.
602 (s<code>_sf): Use new scc_sf attribute for opcode names.
604 2008-03-27 Tom Tromey <tromey@redhat.com>
606 * doc/sourcebuild.texi, doc/install.texi, configure, aclocal.m4,
607 configure.ac, Makefile.in, config/t-darwin, config/m32c/t-m32c,
608 config/spu/t-spu-elf, config/i386/t-interix,
609 config/i386/t-cygming, config/i386/x-i386, config/i386/t-cygwin,
610 config/i386/x-darwin, config/i386/x-mingw32,
611 config/i386/t-netware, config/i386/x-cygwin, config/i386/t-nwld,
612 config/sh/t-sh, config/sh/t-symbian, config/x-linux,
613 config/t-sol2, config/x-hpux, config/x-darwin, config/ia64/t-ia64,
614 config/x-solaris, config/t-vxworks, config/m68k/t-uclinux,
615 config/rs6000/x-rs6000, config/rs6000/x-darwin64,
616 config/rs6000/x-darwin, config/rs6000/t-rs6000,
617 config/score/t-score-elf, config/arm/t-strongarm-pe,
618 config/arm/t-pe, config/arm/t-arm, config/arm/t-wince-pe,
619 config/v850/t-v850, config/v850/t-v850e, config/bfin/t-bfin-linux:
620 Revert automatic dependency patch.
622 2008-03-27 H.J. Lu <hongjiu.lu@intel.com>
625 * config/i386/i386.c (ix86_function_arg_boundary): Align
626 decimal floating point to its natural boundary.
628 2008-03-27 Richard Guenther <rguenther@suse.de>
631 * fold-const.c (fold_comparison): Restrict distinct decl
632 comparison folding to VAR_DECLs and PARM_DECLs. Do not
633 solely rely on operand_equal_p.
635 2008-03-27 Richard Guenther <rguenther@suse.de>
638 * c-common.c (handle_weak_attribute): Reject combination of
641 2008-03-27 Richard Guenther <rguenther@suse.de>
643 PR tree-optimization/32810
644 * tree-ssa-ccp.c (get_symbol_constant_value): Strip useless
645 conversions from DECL_INITIAL.
646 (fold_const_aggregate_ref): Likewise from constructor elements.
648 2008-03-27 Zdenek Dvorak <ook@ucw.cz>
650 * tree-affine.h (aff_combination_expand): Declare.
651 (get_inner_reference_aff): Likewise.
652 * tree-affine.c (aff_combination_expand): Split out from
653 tree_to_aff_combination_expand.
654 (get_inner_reference_aff): New function.
655 * tree-parloops.c (loop_parallel_p): Free vectorizer info.
656 * tree-ssa-loop-im.c: Include tree-affine.h and pointer-set.h.
657 (struct lim_aux_data): sm_done field removed.
658 (mem_ref_loc_p, mem_ref_locs_p): New types.
659 (struct mem_ref): Added id, stored, accesses_in_loop,
660 indep_loop, dep_loop, indep_ref, dep_ref fields.
661 Removed is_stored, locs and next fields.
662 (memory_accesses): New variable.
663 (movement_possibility): Do not allow moving statements
664 that store to memory.
665 (outermost_indep_loop, simple_mem_ref_in_stmt, mem_ref_in_stmt):
667 (determine_max_movement): For statements with memory references,
668 find the outermost loop in that the reference is independent.
669 (move_computations_stmt): Mark the virtual operands for renaming.
670 (memref_free, mem_ref_alloc, mem_ref_locs_alloc, mark_ref_stored,
671 gather_mem_refs_stmt, gather_mem_refs_in_loops, vtoe_hash, vtoe_eq,
672 vtoe_free, record_vop_access, get_vop_accesses, get_vop_stores,
673 add_vop_ref_mapping, create_vop_ref_mapping_loop,
674 create_vop_ref_mapping, analyze_memory_references,
675 cannot_overlap_p, mem_refs_may_alias_p, rewrite_mem_ref_loc,
676 get_all_locs_in_loop, ref_always_accessed_p,
677 refs_independent_p, record_indep_loop, ref_indep_loop_p_1,
678 ref_indep_loop_p, can_sm_ref_p, find_refs_for_sm,
679 store_motion_loop, store_motion): New functions.
680 (struct vop_to_refs_elt): New type.
681 (record_mem_ref_loc, free_mem_ref_locs, rewrite_mem_refs,
682 memref_hash, memref_eq, hoist_memory_references): Rewritten.
683 (schedule_sm): Replaced by...
684 (execute_sm): ... this.
685 (determine_lsm_ref, hoist_memory_references,
686 loop_suitable_for_sm, gather_mem_refs_stmt, gather_mem_refs,
687 find_more_ref_vops, free_mem_ref, free_mem_refs,
688 determine_lsm_loop, determine_lsm): Removed.
689 (tree_ssa_lim_finalize): Free data structures used by store motion.
690 (tree_ssa_lim): Call analyze_memory_references. Use
691 store_motion instead of determine_lsm.
693 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
695 * config.cc (m68hc11, m6811, m68hc12, m6812): Add usegas.h,
696 rename tmake_file to m68hc11/t-m68hc11.
697 (mcore): Set inhibit_libc to true.
698 * config.host (alpha*-dec-*vms*): Set extra_programs.
699 (interix3*): Don't use host_xmake_file.
700 * configure.ac: Let config.gcc override inhibit_libc.
701 * configure: Regenerate.
703 * config/alpha/x-vms (EXTRA_PROGRAMS): Remove.
704 * config/t-openbsd-thread: Remove commented out lines.
706 * config/x-interix: Remove.
708 * config/m68hc11/t-m68hc11-gas: Rename to...
709 * config/m68hc11/t-m68hc11: ... this. Remove T_CPPFLAGS.
711 * config/mcore/t-mcore: Remove T_CFLAGS.
712 * config/mcore/t-mcore-pe: Likewise.
714 2008-03-27 Paolo Bonzini <bonzini@gnu.org>
716 * configure.ac: Replace custom __GNU_SOURCE test with
717 AC_USE_SYSTEM_EXTENSIONS. Move it earlier.
718 * aclocal.m4: Regenerate.
719 * configure: Regenerate.
720 * config.in: Regenerate.
722 2008-03-27 Richard Guenther <rguenther@suse.de>
724 * fold-const.c (target.h): Include.
725 (fold_comparison): Fold comparison of addresses of decls
726 that bind locally or of constants. Consolidate address folding code.
727 * tree-vrp.c (operand_less_p): Deal with non-INTEGER_CST
728 results from fold_binary_to_constant.
729 (compare_values_warnv): Likewise.
731 2008-03-27 Andrew Pinski <pinskia@gmail.com>
734 * fold-const.c (fold_truthop): Check for integeral types when folding
735 a == 0 && b == 0 and a != 0 || b != 0 .
737 2008-03-26 Eric Botcazou <ebotcazou@adacore.com>
739 * tree.c (get_unwidened): Remove code fiddling with COMPONENT_REF.
741 2008-03-26 Andreas Schwab <schwab@suse.de>
743 * doc/invoke.texi: Fix use of @item vs. @itemx.
745 2008-03-26 Tom Tromey <tromey@redhat.com>
747 * Makefile.in (build/gensupport.o, build/print-rtl.o,
748 build/read-rtl.o, build/rtl.o, build/gencondmd.o, build/genattr.o,
749 build/genattrtab.o, build/genautomata.o, build/gencheck.o,
750 build/gencodes.o, build/genconditions.o, build/genconfig.o,
751 build/genconstants.o, build/genemit.o, build/genextract.o,
752 build/genflags.o, build/genmddeps.o, build/genopinit.o,
753 build/genoutput.o, build/genpeep.o, build/genrecog.o): Depend on
756 2008-03-26 Richard Guenther <rguenther@suse.de>
759 2008-03-26 Richard Guenther <rguenther@suse.de>
761 * fold-const.c (target.h): Include.
762 (fold_comparison): Fold comparison of addresses of two decls
763 that bind locally. Consolidate address folding code.
765 2008-03-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
767 * builtins.c (expand_builtin_pow, fold_builtin_cabs,
768 fold_builtin_sqrt, fold_builtin_cbrt, fold_builtin_logarithm,
769 fold_builtin_hypot, fold_builtin_pow): Remove uses of dconst3,
770 dconstsqrt2, dconstthird, dconste and/or dconst10.
771 * config/i386/i386.c (ix86_emit_swsqrtsf): Likewise.
772 * emit-rtl.c (dconst3, dconst10, dconstm2, dconstthird,
773 dconstsqrt2, dconste): Delete.
774 (init_emit_once): Likewise. Simplify initializing dconstm1.
776 * real.c (get_real_const): New.
777 * real.h (dconst3, dconst10, dconstm2, dconstthird,
778 dconstsqrt2, dconste): Delete.
779 (real_value_const, get_real_const): New.
781 2008-03-26 H.J. Lu <hongjiu.lu@intel.com>
783 * config/i386/cygming.h (BIGGEST_ALIGNMENT): Removed.
785 * config/i386/i386.c (ix86_function_arg_boundary): Check
786 BIGGEST_ALIGNMENT instead of 128.
787 (setup_incoming_varargs_64): Likewise.
789 2008-03-26 Tom Tromey <tromey@redhat.com>
791 * Makefile.in (DEPFILES): Add missing '/'.
793 2008-03-26 Richard Guenther <rguenther@suse.de>
795 * fold-const.c (target.h): Include.
796 (fold_comparison): Fold comparison of addresses of two decls
797 that bind locally. Consolidate address folding code.
799 2008-03-26 Nick Clifton <nickc@redhat.com>
802 * config/stormy16/stormy16.c (xstormy16_legitimate_address_p): Do
803 not allow INT+INT as a legitimate addressing mode.
805 2008-03-26 Richard Guenther <rguenther@suse.de>
807 * tree-flow.h (widen_bitfield): Remove declaration.
808 * tree-ssa-ccp.c (visit_assignment): Remove unneeded code.
809 (widen_bitfield): Remove function.
810 * tree-ssa-dom.c (record_equivalences_from_stmt): Remove unneeded
813 2008-03-25 Andrew Pinski <andrew_pinski@playstation.sony.com>
816 * config/rs6000/rs6000-c.c (rs6000_builtin_type_compatible): Handle
819 2008-03-25 Richard Sandiford <rsandifo@nildram.co.uk>
821 PR rtl-optimization/35232
822 * reload1.c (reg_reloaded_call_part_clobbered): Clarify comment.
823 (forget_old_reloads_1, forget_marked_reloads): Don't clear
824 reg_reloaded_call_part_clobbered here.
825 (reload_regs_reach_end_p): New function.
826 (reload_reg_rtx_for_input): New variable.
827 (reload_reg_rtx_for_output): Likewise.
828 (emit_input_reload_insns): Use reloadreg rather than rl->reg_rtx
829 when reassigning a pseudo register. Load reloadreg from
830 reload_reg_rtx_for_input, moving the mode and register
832 (do_input_reload): ...here. Use the mode-adjusted reg_rtx
833 instead of the original when deciding whether an input reload
834 would be a no-op or whether an output reload can be deleted.
835 (emit_output_reload_insns): Use the mode-adjusted reg_rtx
836 when setting up new_spill_reg_store. Load it from
837 reload_reg_rtx_for_output, moving the mode and register
839 (do_output_reload): ...here. Use the mode-adjusted reg_rtx
840 instead of the original when deciding whether an output reload
841 would be a no-op. Do the same when modifying insn notes.
842 Use rtx_equal_p instead of == to compare the registers.
843 (inherit_piecemeal_p): Take a mode and two register numbers
845 (emit_reload_insns): Clear new_spill_reg_store for every hard
846 register in the reload register. Remove spill registers
847 from reg_reloaded_valid before considering whether to record
848 inheritance information for them. Use reload_reg_rtx_for_output
849 instead of reg_rtx when recording output reloads. Use
850 reload_reg_rtx_for_input instead of reg_rtx when recording
851 input reloads. Set or clear reg_reloaded_call_part_clobbered
852 at the same time as setting reg_reloaded_valid.
853 (delete_output_reload): Add a new_reload_reg parameter and use it
854 instead of rld[j].reg_rtx.
855 (emit_input_reload_insns, do_input_reload, do_output_reload): Adjust
858 2008-03-25 Tom Tromey <tromey@redhat.com>
860 * Makefile.in (build/gensupport.o): Depend on insn-modes.h.
861 (build/genattr.o): Likewise.
862 (build/genattrtab.o): Likewise.
863 (build/gencodes.o): Likewise.
864 (build/genconfig.o): Likewise.
865 (build/genconstants.o): Likewise.
866 (build/genemit.o): Likewise.
867 (build/genextract.o): Likewise.
868 (build/genflags.o): Likewise.
870 2008-03-25 Bob Wilson <bob.wilson@acm.org>
872 * config/xtensa/xtensa.c (xtensa_va_start): Use build_int_cst
873 instead of size_int for integer types.
874 (xtensa_gimplify_va_arg_expr): Likewise. Convert index to sizetype
875 to match type of MINUS_EXPR.
877 2008-03-25 Tom Tromey <tromey@redhat.com>
879 * configure: Rebuilt.
880 * configure.ac (BUILD_DEPMODE): Extract CCDEPMODE from temporary
883 2008-03-25 Tom Tromey <tromey@redhat.com>
885 * config/x-solaris (host-solaris.o): Update.
886 * config/x-linux (host-linux.o): Update.
887 * config/x-hpux (host-hpux.o): Update.
888 * config/x-darwin (host-darwin.o): Update.
889 * config/v850/t-v850e (v850-c.o): Update.
890 * config/v850/t-v850 (v850-c.o): Update.
891 * config/t-vxworks (vxworks.o): Update.
892 * config/t-sol2 (sol2-c.o, sol2.o): Update.
893 * config/t-darwin (darwin.o, darwin-c.o, darwin-driver.o): Update.
894 * config/spu/t-spu-elf (spu-c.o): Update.
896 * config/sh/t-symbian (sh-c.o): Update.
898 * config/sh/t-sh (sh-c.o): Update.
899 * config/score/t-score-elf (score7.o, score3.o): Update.
900 * config/rs6000/x-rs6000 (driver-rs6000.o): Update.
901 * config/rs6000/x-darwin64 (host-ppc64-darwin.o): Update.
902 * config/rs6000/x-darwin (host-ppc-darwin.o): Update.
903 * config/rs6000/t-rs6000 (rs6000-c.o): Update.
905 * config/m68k/t-uclinux (generated_files): Add sysroot-suffix.h.
906 * config/m32c/t-m32c (m32c-pragma.o): Update.
907 * config/ia64/t-ia64 (ia64-c.o): Update.
908 * config/i386/x-mingw32 (host-mingw32.o): Update.
909 * config/i386/x-i386 (driver-i386.o): Update.
910 * config/i386/x-darwin (host-i386-darwin.o): Update.
911 * config/i386/x-cygwin (host-cygwin.o): Update.
912 * config/i386/t-nwld (nwld.o): Update.
913 * config/i386/t-netware (netware.o): Update.
914 * config/i386/t-interix (winnt.o): Update.
915 * config/i386/t-cygwin (cygwin1.o, cygwin2.o): Update.
916 * config/i386/t-cygming (winnt.o, winnt-cxx.o, winnt-stubs.o,
917 msformat-c.o): Update.
918 * config/bfin/t-bfin-linux (generated_files): Add
919 linux-sysroot-suffix.h.
920 * config/arm/t-wince-pe (pe.o): Update.
921 * config/arm/t-strongarm-pe (pe.o): Update.
922 * config/arm/t-pe (pe.o): Update.
923 * config/arm/t-arm (arm-c.o): Update.
924 * doc/install.texi (Prerequisites): Require make 3.80.
925 * Makefile.in: Remove .o targets.
926 (CCDEPMODE, DEPDIR, depcomp, BUILD_DEPMODE): New variables.
927 (OBSTACK_H, FIBHEAP_H, PARTITION_H, MD5_H, BCONFIG_H): Remove.
928 (simple_generated_h, simple_generated_c): Move earlier.
929 (generated_files): New variable.
930 (TARGET_H, MACHMODE_H, HOOKS_H, HOSTHOOKS_DEF_H, LANGHOOKS_DEF_H,
931 TARGET_DEF_H, RTL_BASE_H, RTL_H, PARAMS_H, BUILTINS_DEF, TREE_H,
932 BASIC_BLOCK_H, GCOV_IO_H, COVERAGE_H, DEMANGLE_H, RECOG_H,
933 ALIAS_H, EMIT_RTL_H, FLAGS_H, FUNCTION_H, EXPR_H, OPTABS_H,
934 REGS_H, RA_H, RESOURCE_H, SCHED_INT_H, INTEGRATE_H, CFGLAYOUT_H,
935 CFGLOOP_H, IPA_UTILS_H, IPA_REFERENCE_H, IPA_TYPE_ESCAPE_H,
936 CGRAPH_H, DF_H, RESOURCE_H, DDG_H, GCC_H, GGC_H, TIMEVAR_H,
937 INSN_ATTR_H, C_COMMON_H, C_PRAGMA_H, C_TREE_H, SYSTEM_H,
938 PREDICT_H, DECNUM_H, MKDEPS_H, SYMTAB_H, TREE_DUMP_H,
939 TREE_GIMPLE_H, TREE_FLOW_H, TREE_SSA_LIVE_H, PRETTY_PRINT_H,
940 DIAGNOSTIC_H, C_PRETTY_PRINT_H, SCEV_H, LAMBDA_H, TREE_DATA_REF_H,
941 VARRAY_H, TREE_INLINE_H, REAL_H, DBGCNT_H, EBIMAP_H): Remove.
943 (COMPILE.base, COMPILE): New variables.
944 (%.o): New pattern rule.
945 (ALL_HOST_OBJS): New variable.
946 (xgcc$(exeext), cpp$(exeext)): Remove extra version.o.
947 (dummy-checksum.o, cc1-checksum.o): Remove.
948 (DRIVER_SHLIB): New variable.
949 (DRIVER_DEFINES): Use it.
950 (gencondmd.c): Move out of build/.
951 (s-conditions): Update.
952 (BUILDCOMPILE.base, BUILDCOMPILE): New variables.
953 (ALL_BUILD_OBJS): Likewise.
954 (build/%.o): Use BUILDCOMPILE.
955 (build/ggc-none.o, build/ggc-none.o, build/min-insn-modes.o,
956 build/print-rtl.o, build/read-rtl.o, build/rtl.o, build/vec.o,
957 build/gencondmd.o, build/genattrtab.o, build/genautomata.o,
958 build/gencheck.o, build/gencodes.o, build/genconditions.o,
959 build/genconfig.o, build/genconstants.o, build/genemit.o,
960 build/genextract.o, build/genflags.o, build/genmddeps.o,
961 build/genopinit.o, build/genoutput.o, build/genpeep.o,
962 build/genpreds.o, build/genrecog.o, build/gcov-iov.o,
963 build/gen-protos.o, build/scan.o, build/fix-header.o,
964 build/scan-decls.o): Simplify.
965 (collect2.o, c-opts.o, gcc.o, gccspec.o, gcc-options.o,
966 cppdefault.o, protoize.o, unprotoize.o, intl.o, version.o,
967 prefix.o, toplev.o): Reduce to variable setting.
968 (libbackend.o): Use COMPILE. Remove most dependencies. Move later.
969 ($(out_object_file), gcc-options.o): New targets.
970 ($(ALL_HOST_OBJS)): New target. Include dependency files.
971 * configure: Rebuilt.
972 * configure.ac: Call ZW_CREATE_DEPDIR, ZW_PROG_COMPILER_DEPENDENCIES.
973 * doc/sourcebuild.texi (Front End Directory): Document new variable.
975 2008-03-25 Douglas Gregor <doug.gregor@gmail.com>
977 * c-common.c (c_sizeof_or_alignof_type): If we're not allowed to
978 complain when we hit an error, return ERROR_MARK_NODE.
980 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
982 * config/sh/constraints.md (Pso, Psz): New constraints.
983 * config/sh/sh.c (print_operand): Add %V and %W operand codes.
984 * config/sh/sh.md (*andsi3_bclr, *iorsi3_bset): New insns.
986 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
988 * config/sh/sh.c (sh_expand_t_scc): Emit movrt for SH2A if possible.
989 * config/sh/sh.md (xorsi3_movrt, movrt): New insns.
991 2008-03-25 Naveen.H.S <naveen.hs@kpitcummins.com>
993 * config/sh/sh.md (prefetch): Add condition for SH2A target.
994 (prefetch_sh2a): New.
996 2008-03-25 Jayant Sonar <Jayant.sonar@kpitcummins.com>
997 Naveen.H.S <naveen.hs@kpitcummins.com>
999 * config/sh/constraints.md (I28): New constraint.
1000 * config/sh/sh.c (broken_move): Add support for movi20s.
1001 * config/sh/sh.md (movsi_ie): Add the alternative for movi20s.
1003 2008-03-25 Anil Paranjape <anil.paranjape@kpitcummins.com>
1004 Jayant Sonar <Jayant.sonar@kpitcummins.com>
1005 Naveen.H.S <naveen.hs@kpitcummins.com>
1007 * config/sh/sh.c (SH_ATTRIBUTES): Define.
1008 (SYMBOL_FLAG_FUNCVEC_FUNCTION): Define.
1009 (print_operand): Handle resbank in %@ operand code.
1010 (sh_encode_section_info): New.
1011 (push_regs): Add conditions for resbank.
1012 (sh_expand_epilogue): Likewise.
1013 (sh_insert_attributes): Likewise.
1014 (sh_attribute_table): Likewise.
1015 (sh_handle_resbank_handler_attribute): New.
1016 (sh2a_handle_function_vector_handler_attribute): New.
1017 (sh2a_is_function_vector_call): New.
1018 (sh2a_get_function_vector_number): New.
1019 (sh2a_function_vector_p): New.
1020 (sh_cfun_resbank_handler_p): New.
1021 * config/sh/sh.md (calli): Emit jsr/n if possible.
1022 (calli_tbr_rel): New.
1023 (calli_pcrel): Emit jsr/n if possible.
1024 (return_i): Emit rts/n if possible.
1025 (call_valuei_tbr_rel): New.
1026 (call_valuei_pcrel): Add condition for SH2A target.
1027 (call_value): Likewise.
1028 * config/sh/sh-protos.h (sh_cfun_resbank_handler_p): Declare.
1029 (sh2a_get_function_vector_number): Likewise.
1030 (sh2a_is_function_vector_call): Likewise.
1031 * doc/extend.texi: Document TBR relative addressing of SH2A.
1032 (resbank): Add description for SH2A.
1034 2008-03-24 Richard Guenther <rguenther@suse.de>
1037 * gimplify.c (gimplify_modify_expr): For frontend type-correct
1038 pointer assignments change conversions according to middle-end rules.
1039 (gimplify_modify_expr_rhs): Deal with NULL TARGET_EXPR_INITIAL.
1040 * configure.ac: Include type checking in yes.
1041 * configure: Regenerate.
1043 2008-03-24 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
1045 * diagnostic.c (diagnostic_count_diagnostic): Delete.
1046 (diagnostic_report_diagnostic): Update. Handle ICEs here.
1048 2008-03-24 Nathan Sidwell <nathan@codesourcery.com>
1050 * gthr-vxworks.h (UNUSED): Define.
1052 2008-03-23 H.J. Lu <hongjiu.lu@intel.com>
1054 * config/i386/i386.h (STATIC_CHAIN_REGNUM): Use R10_REG and CX_REG.
1056 2008-03-23 Zuxy Meng <zuxy.meng@gmail.com>
1058 * doc/extend.texi (Function Attributes): Add missing comma in the
1059 example of the "alloc_size" attribute.
1061 2008-03-23 Uros Bizjak <ubizjak@gmail.com>
1064 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
1066 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
1069 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
1072 * stor-layout.c (update_alignment_for_field): Set minimum alignment
1073 of the underlying type of a MS bitfield layout to the natural
1074 alignment of the type.
1076 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
1078 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
1079 to their natural alignment to avoid store forwarding stalls.
1081 2008-03-22 Richard Guenther <rguenther@suse.de>
1083 * tree-cfg.c (verify_expr): Recurse again for invariant addresses.
1084 For PHI nodes verify the address is invariant.
1085 * tree-ssa-ccp.c (ccp_decl_initial_min_invariant): Remove.
1086 (get_symbol_constant_value): Use is_gimple_min_invariant.
1087 (maybe_fold_stmt_indirect): Likewise.
1089 2008-03-22 Richard Sandiford <rsandifo@nildram.co.uk>
1091 PR rtl-optimization/33927
1092 * Makefile.in (dse.o): Depend on $(TM_P_H).
1093 * expr.h (extract_low_bits): Declare.
1094 * expmed.c (extract_low_bits): New function.
1095 * rtlhooks.c (gen_lowpart_general): Generalize SUBREG handling.
1096 * dse.c: Include tm_p.h.
1097 (find_shift_sequence): Remove the read_reg argument and return the
1098 read value. Emit the instructions instead of returning them.
1099 Iterate on new_mode rather than calculating it each time.
1100 Check MODES_TIEABLE_P. Use simplify_gen_subreg to convert the
1101 source to NEW_MODE and extract_low_bits to convert the shifted
1103 (replace_read): Allow the load and store to have different mode
1104 classes. Use extract_low_bits when SHIFT == 0. Create the shift
1105 or extraction instructions before trying the replacement. Update
1106 dump-file code accordingly, avoiding use of REGNO (store_info->rhs).
1108 2008-03-22 Uros Bizjak <ubizjak@gmail.com>
1110 * config/i386/i386.c (assign_386_stack_local): Align DImode slots
1111 to their natural alignment to avoid store forwarding stalls.
1113 2008-03-21 Andrew Pinski <andrew_pinski@playstation.sony.com>
1116 * config/rs6000/rs6000.md (floatdidf2): Discouraging fprs and
1117 encouraging but not allowing gprs for input;
1118 change the input constraint to !f#r.
1119 (fix_truncdfdi2): Discouraging fprs and encouraging but not allowing
1121 change the output constraint to !f#r.
1123 2008-03-21 Uros Bizjak <ubizjak@gmail.com>
1126 * config/i386/i386.md ("*floatunssi<mode2>_1"): New pattern with
1127 corresponding post-reload splitters.
1128 ("floatunssi<mode>2"): Expand to unsigned_float x87 insn pattern
1129 when x87 FP math is selected.
1130 * config/i386/i386-protos.h (ix86_expand_convert_uns_sixf_sse):
1131 New function prototype.
1132 * config/i386/i386.c (ix86_expand_convert_uns_sixf_sse): New
1133 unreachable function to ease macroization of insn patterns.
1135 2008-03-21 Martin Jambor <mjambor@suse.cz>
1137 * tree-data-ref.c (dump_data_dependence_relation): Avoid data
1138 reference dumps if ddr is NULL or dependence is unknown.
1140 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
1142 * config/sh/linux-atomic.asm (ATOMIC_TEST_AND_SET): Take
1143 unsigned extension into account.
1144 (ATOMIC_COMPARE_AND_SWAP): Likewise.
1145 (ATOMIC_FETCH_AND_OP, ATOMIC_FETCH_AND_COMBOP): Likewise.
1146 Do computations on a scratch register.
1148 2008-03-21 Richard Guenther <rguenther@suse.de>
1150 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
1151 Use is_gimple_min_invariant instead of TREE_INVARIANT.
1152 * tree-ssa-loop-ivopts.c (force_expr_to_var_cost): Likewise.
1153 * tree-ssa-dom.c (record_equality): Likewise.
1154 * tree-inline.c (copy_body_r): Likewise.
1155 * tree-ssa-pre.c (make_values_for_stmt): Remove test for
1158 2008-03-20 Kaz Kojima <kkojima@gcc.gnu.org>
1160 * config/sh/sh.c (split_branches): Pass zero to redirect_jump
1161 as 'delete_unused' argument.
1163 2008-03-20 Richard Guenther <rguenther@suse.de>
1165 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Remove
1166 special casing of constant qualifiers.
1167 * tree-ssa.c (useless_type_conversion_p_1): Instead do not
1168 care about them in general.
1169 * tree-ssa-ccp.c (ccp_fold): Addresses are constant or not
1170 regardless of their type.
1171 (fold_stmt_r): Forcefully fold *& if we end up with that.
1173 2008-03-20 Paul Brook <paul@codesourcery.com>
1175 * config.gcc (arm*-*-uclinux*): Remove duplicate arm/uclinux-elf.h.
1176 * config/arm/uclinux-eabi.h (SUBTARGET_EXTRA_LINK_SPEC): Add extra
1178 * config/arm/bpabi.h (SUBTARGET_EXTRA_LINK_SPEC): Provide default
1180 (LINK_SPEC): Use SUBTARGET_EXTRA_LINK_SPEC.
1181 * config/arm/unwind-arm.h (_Unwind_decode_target2): Add uClinux.
1183 2008-03-20 Volker Reichelt <v.reichelt@netcologne.de>
1185 * common.opt (Wmudflap): New option.
1186 * tree-mudflap.c (mf_xform_derefs_1): Guard warning by OPT_Wmudflap.
1187 (mx_register_decls): Likewise.
1188 (mudflap_finish_file): Likewise.
1189 * doc/invoke.texi: Document -Wno-mudflap.
1191 2008-03-20 Kai Tietz <kai.tietz@onevision.com>
1193 * c-format.c (replace_format_name_to_system_name): New.
1195 (convert_format_name_to_system_name): New.
1196 (decode_format_attr): Add use of convert_format_name_to_system_name.
1197 (format_types_orig): Add gnu_ prefix to names.
1198 (check_format_info_main): Special treating of \0 escaped names for
1199 supporting multi-character format specifiers as I32, I64.
1200 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): Use of user defined attributes.
1201 (gnu_target_overrides_format_attributes): New.
1202 * c-format.h: Add structure target_ovr_attr to hold
1203 system specific formatter names.
1204 * config.gcc: Add for x86&x86_64 cygwin and mingw32 targets the
1205 msformat-c.o file to c_target_objs and cxx_target_objs.
1206 * config/i386/mingw32.h (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
1207 (TARGET_OVERRIDES_FORMAT_ATTRIBUTES_COUNT): New.
1208 (TARGET_N_FORMAT_TYPES): New.
1209 * config/i386/msformat-c.c: New.
1210 * config/i386/t-cygming: Add build rule for msformat-c.o.
1211 * doc/extend.texi: Add new format names gnu_* and ms_* and
1213 * doc/tm.texi: (TARGET_OVERRIDES_FORMAT_ATTRIBUTES): New.
1215 2008-03-20 Ira Rosen <irar@il.ibm.com>
1217 * doc/invoke.texi (-O3): Add -ftree-vectorize to the list of
1218 optimizations turned on under -O3.
1219 (ftree-vectorize): Add that the flag is turned on with -O3.
1221 2008-03-20 Ben Elliston <bje@au.ibm.com>
1223 * regmove.c (try_auto_increment): Fix spelling error in comment.
1224 * final.c (final_scan_insn): Likewise.
1226 2008-03-20 Uros Bizjak <ubizjak@gmail.com>
1229 * config/i386/mmx.md (*mov<mode>_internal_rex64"): Adjust register
1230 allocator preferences for "y" and "r" class registers.
1231 ("*mov<mode>_internal"): Ditto.
1232 ("*movv2sf_internal_rex64"): Ditto.
1233 ("*movv2sf_internal"): Ditto.
1235 2008-03-19 Michael Matz <matz@suse.de>
1238 * calls.c (expand_call): Check overlap of arguments with call
1239 address for sibcalls.
1241 2008-03-19 Uros Bizjak <ubizjak@gmail.com>
1244 * stor-layout.c (update_alignment_for_field): Set minimum alignment
1245 of the underlying type of a MS bitfield layout to the natural
1246 alignment of the type.
1248 2008-03-19 Jan Hubicka <jh@suse.cz>
1251 * toplev.c (decode_d_option): Handle all CPP flags.
1252 * tree-vrp.c: Update tree_pass descriptors.
1253 * regrename.c: Update tree_pass descriptors.
1254 * fwprop.c: Update tree_pass descriptors.
1255 * doc/invoke.texi: Remove documentation of dropped -d? flags.
1256 * tree-into-ssa.c: Update tree_pass descriptors.
1257 * tree-dump.c: Update tree_pass descriptors.
1258 * tree-complex.c: Update tree_pass descriptors.
1259 * tree-dump.h: Update tree_pass descriptors.
1260 * see.c: Update tree_pass descriptors.
1261 * cgraphbuild.c: Update tree_pass descriptors.
1262 * tracer.c: Update tree_pass descriptors.
1263 * tree-loop-distribution.c: Update tree_pass descriptors.
1264 * cgraph.c: Update tree_pass descriptors.
1265 * postreload-gcse.c: Update tree_pass descriptors.
1266 * postreload.c: Update tree_pass descriptors.
1267 * tree-ssa-loop-ch.c: Update tree_pass descriptors.
1268 * tree-tailcall.c: Update tree_pass descriptors.
1269 * tree-pass.h (tree_opt_pass): Rename to ...
1270 (opt_pass) ... this one; add "type" field and remove letter field.
1271 (gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
1272 (execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
1273 all_lowering_passes): Update declaration.
1274 * ipa-cp.c: Update tree_pass descriptors.
1275 * final.c: Update tree_pass descriptors.
1276 * omp-low.c: Update tree_pass descriptors.
1277 * tree-ssa-dse.c: Update tree_pass descriptors.
1278 * ipa-reference.c: Update tree_pass descriptors.
1279 * tree-ssa-uncprop.c: Update tree_pass descriptors.
1280 * auto-inc-dec.c: Update tree_pass descriptors.
1281 * reorg.c: Update tree_pass descriptors.
1282 * cgraphunit.c: Update tree_pass descriptors.
1283 * tree-ssa-copyrename.c: Update tree_pass descriptors.
1284 * tree-ssa-ccp.c: Update tree_pass descriptors.
1285 * df-core.c: Update tree_pass descriptors.
1286 * mode-switching.c: Update tree_pass descriptors.
1287 * tree-nomudflap.c: Update tree_pass descriptors.
1288 * modulo-sched.c: Update tree_pass descriptors.
1289 * ipa-pure-const.c: Update tree_pass descriptors.
1290 * cse.c: Update tree_pass descriptors.
1291 * web.c: Update tree_pass descriptors.
1292 * tree-stdarg.c: Update tree_pass descriptors.
1293 * tree-ssa-math-opts.c: Update tree_pass descriptors.
1294 * tree-ssa-dom.c: Update tree_pass descriptors.
1295 * tree-nrv.c: Update tree_pass descriptors.
1296 * tree-ssa-alias.c: Update tree_pass descriptors.
1297 * loop-init.c: Update tree_pass descriptors.
1298 * gimple-low.c: Update tree_pass descriptors.
1299 * ipa-inline.c: Update tree_pass descriptors.
1300 * tree-ssa-sink.c: Update tree_pass descriptors.
1301 * global.c: Update tree_pass descriptors.
1302 * ifcvt.c: Update tree_pass descriptors.
1303 * jump.c: Update tree_pass descriptors.
1304 * predict.c: Update tree_pass descriptors.
1305 * tree-ssa-loop.c: Update tree_pass descriptors.
1306 * recog.c: Update tree_pass descriptors.
1307 * dse.c: Update tree_pass descriptors.
1308 * tree-ssa-ifcombine.c: Update tree_pass descriptors.
1309 * tree-eh.c: Update tree_pass descriptors.
1310 * regmove.c: Update tree_pass descriptors.
1312 * function.c: Update tree_pass descriptors.
1313 * tree-vectorizer.c: Update tree_pass descriptors.
1314 * gcse.c: Update tree_pass descriptors.
1315 * ipa-type-escape.c: Update tree_pass descriptors.
1316 * tree-if-conv.c: Update tree_pass descriptors.
1317 * init-regs.c: Update tree_pass descriptors.
1318 * ipa.c: Update tree_pass descriptors.
1319 * tree-ssa-phiopt.c: Update tree_pass descriptors.
1320 * rtl-factoring.c: Update tree_pass descriptors.
1321 * lower-subreg.c: Update tree_pass descriptors.
1322 * bt-load.c: Update tree_pass descriptors.
1323 * tree-dfa.c: Update tree_pass descriptors.
1324 * except.c: Update tree_pass descriptors.
1325 * emit-rtl.c: Update tree_pass descriptors.
1326 * cfgexpand.c: Update tree_pass descriptors.
1327 * tree-cfgcleanup.c: Update tree_pass descriptors.
1328 * cfgcleanup.c: Update tree_pass descriptors.
1329 * tree-ssa-pre.c: Update tree_pass descriptors.
1330 * tree-sra.c: Update tree_pass descriptors.
1331 * tree-mudflap.c: Update tree_pass descriptors.
1332 * tree-ssa-copy.c: Update tree_pass descriptors.
1333 * cfglayout.c: Update tree_pass descriptors.
1334 * tree-ssa-forwprop.c: Update tree_pass descriptors.
1335 * tree-ssa-dce.c: Update tree_pass descriptors.
1336 * tree-ssa.c: Update tree_pass descriptors.
1337 * regclass.c: Update tree_pass descriptors.
1338 * integrate.c: Update tree_pass descriptors.
1339 * tree-optimize.c: Update tree_pass descriptors.
1340 * tree-ssa-phiprop.c: Update tree_pass descriptors.
1341 * tree-object-size.c: Update tree_pass descriptors.
1342 * combine.c: Update tree_pass descriptors.
1343 * tree-outof-ssa.c: Update tree_pass descriptors.
1344 * bb-reorder.c: Update tree_pass descriptors.
1345 * stack-ptr-mod.c: Update tree_pass descriptors.
1346 * var-tracking.c: Update tree_pass descriptors.
1347 * tree-profile.c: Update tree_pass descriptors.
1348 * tree-vect-generic.c: Update tree_pass descriptors.
1349 * reg-stack.c: Update tree_pass descriptors.
1350 * sched-rgn.c: Update tree_pass descriptors.
1351 * tree-ssa-structalias.c: Update tree_pass descriptors.
1352 * tree-cfg.c: Update tree_pass descriptors.
1353 * passes.c (current_pass): Update declaration.
1354 (finish_optimization_passes): Update.
1355 (all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
1356 (register_one_dump_file, register_dump_files_1, next_pass_1):
1358 (init_optimization_passes): Update handling of new types.
1359 (execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
1360 * ipa-struct-reorg.c: Update tree_pass descriptors.
1361 * tree-ssa-reassoc.c: Update tree_pass descriptors.
1362 * combine-stack-adj.c: Update tree_pass descriptors.
1363 * cfgrtl.c: Update tree_pass descriptors.
1364 * dce.c: Update tree_pass descriptors.
1365 * tree-ssanames.c: Update tree_pass descriptors.
1367 2008-03-19 Richard Guenther <rguenther@suse.de>
1370 * tree-ssa.c (walk_data): New structure.
1371 (warn_uninitialized_var): If not always_executed warn with "maybe"
1373 (execute_early_warn_uninitialized): Compute post-dominators.
1374 Initialize always_executed before processing each basic block.
1376 2008-03-18 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
1379 * config/i386/i386.c (x86_this_parameter): Calculate correct location
1380 of "this" pointer when "regparm = N" or "fastcall" is in effect.
1382 2008-03-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1384 * doc/include/texinfo.tex: Update to version 2008-03-17.10.
1386 2008-03-18 Paolo Bonzini <bonzini@gnu.org>
1388 * expr.c (store_expr): Assume lang_hooks.reduce_bit_field_operations
1390 (expand_expr_real_1) <REDUCE_BIT_FIELD>: Don't look at ignore.
1391 (expand_expr_real_1): Assume lang_hooks.reduce_bit_field_operations
1392 is true. Add "&& !ignore" condition to reduce_bit_field. Modify
1393 target after ignore has been set, and move there also the commputation
1394 of subtarget and original_target.
1395 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS): Delete.
1396 (LANG_HOOKS_INITIALIZER): Remove it.
1397 * langhooks.h (struct lang_hooks): Remove reduce_bit_field_operations.
1399 2008-03-18 Richard Guenther <rguenther@suse.de>
1401 * tree-ssa-sccvn.c (visit_reference_op_load): If the lookup
1402 found an expression with constants, note that in the VN for the lhs.
1403 * tree-ssa-pre.c (eliminate): Visit COND_EXPR statements and
1404 fold them to constants if possible. Run cleanup_cfg if done so.
1405 (execute_pre): Return todo.
1407 (execute_fre): Likewise.
1408 * tree-ssa-forwprop.c (can_propagate_from): Allow propagation
1410 (get_prop_source_stmt): Look through pointer conversions.
1412 2008-03-18 Jan Hubicka <jh@suse.cz>
1414 * tree-pretty-print.c: Include predict.h.
1415 (dump_generic_node): Dump predictor.
1416 * tree.h (PREDICT_EXPR_OUTCOME, PREDICT_EXPR_PREDICTION): Update.
1417 * tree-gimple.c (is_gimple_stmt): Add PREDICT_EXPR.
1418 * gimple-low.c (lower_stmt): Likewise.
1419 * expr.c (expand_expr_real): Likewise.
1420 * predict.c (tree_bb_level_predictions): Use PREDICT_EXPRs and remove
1422 (build_predict_expr, build_predict_expr): New.
1423 * predict.h (predictor_name, build_predict_expr): Update.
1424 * c-typeck.c (c_finish_bc_stmt): Add prediction.
1425 * gimplify.c (gimplify_expr): Add PREDICT_EXPR.
1426 * predict.def (PRED_CONTINUE): Update hitrate.
1427 * tree.def (PREDICT_EXPR): Define.
1428 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark PREDICT_EXPR;
1429 do not handle BIND_EXPR.
1430 * tree-inline.c (estimate_num_insns_1): PREDICT_EXPR is free.
1431 * tree-cfg.c (verify_gimple_stmt): PREDICT_EXPR is valid.
1432 * tree-ssa-operands.c (get_expr_operands): PREDICT_EXPR takes no
1435 2008-03-18 Michael Matz <matz@suse.de>
1437 * gcov-io.h (__gcov_merge_ior, __gcov_fork): Mark hidden.
1439 2008-03-18 Richard Guenther <rguenther@suse.de>
1441 * tree-gimple.h (is_gimple_invariant_address): Declare.
1442 (is_gimple_constant): Likewise.
1443 * tree-gimple.c (is_gimple_constant): New function.
1444 (is_gimple_invariant_address): Likewise.
1445 (is_gimple_min_invariant): Implement in terms of is_gimple_constant
1446 and is_gimple_invariant_address.
1447 * tree-ssa-loop-niter.c (expand_simple_operations): Revert
1449 * tree-data-ref.c (get_references_in_stmt): A SSA_NAME is not
1450 an addressable base.
1452 2008-03-18 Jakub Jelinek <jakub@redhat.com>
1455 * gimplify.c (gimplify_expr): Gimplify second operand of
1458 2008-03-17 Richard Guenther <rguenther@suse.de>
1460 PR tree-optimization/19637
1461 * fold-const.c (fold_unary): Remove restrictions of removing
1462 intermediate pointer-conversions (P2)(P1)P0.
1463 * tree-ssa-ccp.c (maybe_fold_stmt_addition): Recover from
1464 conversion to void pointer.
1465 (get_maxval_strlen): Handle addresses of the form &(*p)[0].
1467 2008-03-16 James E. Wilson <wilson@tuliptree.org>
1470 * dbxout.c (dbxout_expand_expr, case VAR_DECL): Return NULL for
1471 emulated thread local variables.
1473 2008-03-16 Richard Guenther <rguenther@suse.de>
1476 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
1477 expand TREE_INVARIANT operations that are not gimple invariant.
1479 2008-03-16 Hans-Peter Nilsson <hp@axis.com>
1481 * doc/extend.texi (Alignment): Say that the ABI controls
1482 the __alignof__ for non-strict-alignment targets rather
1483 than being a recommendation.
1485 2008-03-15 Paul Brook <paul@codesourcery.com>
1487 * config/arm/arm.c (arm_unwind_emit): Suppress unused unwinding
1489 (arm_output_fn_unwind): Mark functions that can not be unwound.
1491 2008-03-15 Paul Brook <paul@codesourcery.com>
1493 * config/arm/arm.c (arm_rtx_costs_1): Add costs for ARMv6 value
1494 extension instructions.
1496 2008-03-15 Richard Guenther <rguenther@suse.de>
1498 * tree-ssa-ccp.c (ccp_fold): Also read from constant values
1499 and fold constant aggregate refs.
1500 (fold_const_aggregate_ref): Handle string constants
1501 and constructors in ARRAY_REFs. Handle INDIRECT_REF.
1502 (evaluate_stmt): Simplify now that ccp_fold folds constant
1505 2008-03-15 Paul Brook <paul@codesourcery.com>
1507 * config/arm/arm.md (insv): Use gen_insv_t2 and gen_insv_zero.
1508 (extzv): Use gen_extzv_t2.
1509 (insv_t2, insv_zero, extv, extzv_t2): New patterns.
1511 2008-03-15 Richard Guenther <rguenther@suse.de>
1513 * tree-ssa-ccp.c (get_symbol_constant_value): Export.
1514 (fold_const_aggregate_ref): Likewise.
1515 (get_value): Return NULL if we don't have any values.
1516 (ccp_finalize): Set const_val to NULL after freeing it.
1517 * tree-flow.h (get_symbol_constant_value): Declare.
1518 (fold_const_aggregate_ref): Likewise.
1519 * tree-ssa-sccvn.c (try_to_simplify): Use them.
1521 2008-03-15 Richard Guenther <rguenther@suse.de>
1524 * tree-ssa-ccp.c (maybe_fold_offset_to_array_ref): Make sure
1525 to not produce negative array indices if not allowed. Add
1526 parameter to indicate that.
1527 (maybe_fold_offset_to_component_ref): Allow negative array
1528 indices only for the first member of a structure.
1529 (maybe_fold_offset_to_reference): Allow negative array indices.
1530 (maybe_fold_stmt_addition): Likewise.
1532 2008-03-15 Bjoern Haase <bjoern.m.haase@web.de>
1533 Anatoly Sokolov <aesok@post.ru>
1535 * gcc/gcc/config/avr/avr.c (avr_arch_types): Add avr6 entry.
1536 (avr_arch): Add ARCH_AVR6.
1537 (avr_mcu_types): Add 'atmega2560' and 'atmega2561' entry.
1538 (initial_elimination_offset): Initialize and use 'avr_pc_size'
1539 instead of fixed value 2.
1540 (print_operand_address): Use gs() asm specifier instead of pm().
1541 (avr_assemble_integer): (Ditto.).
1542 (avr_output_addr_vec_elt): (Ditto.).
1543 (print_operand): Handle "!" code.
1544 * gcc/gcc/config/avr/avr.h (TARGET_CPU_CPP_BUILTINS): Add
1545 __AVR_3_BYTE_PC__, __AVR_2_BYTE_PC__ and __AVR_HAVE_JMP_CALL__.
1546 (AVR_HAVE_EIJMP_EICALL): Define.
1547 (AVR_3_BYTE_PC): Redefine.
1548 (AVR_2_BYTE_PC): (Ditto.).
1549 (PRINT_OPERAND_PUNCT_VALID_P): Add '!' code.
1550 (LINK_SPEC): Add atmega2560 and atmega2561.
1551 (CRT_BINUTILS_SPEC): Add atmega2560 (crtm2560.o) and atmega2561
1553 * gcc/gcc/config/avr/avr.md (call_insn): Use eicall instead of icall
1554 for 3 byte PC devices.
1555 (call_value_insn): (Ditto.).
1556 (*tablejump_enh): Use eijmp instead of ijmp for 3 byte PC devices.
1557 (indirect_jump): Use only for for 2 byte PC devices.
1558 (*tablejump): (Ditto.).
1559 (*indirect_jump_avr6): Add insn.
1560 (*tablejump_rjmp): Don't use for 3 byte PC devices.
1561 * gcc/gcc/config/avr/libgcc.S (__prologue_saves__): Use eijmp
1562 instead of ijmp for 3 byte PC devices.
1563 (__tablejump2__): (Ditto.).
1564 * gcc/gcc/config/avr/t-avr (MULITLIB_OPTIONS): Add avr6 architecture.
1565 (MULITLIB_DIRNAMES): (Ditto.).
1566 (MULTILIB_MATCHES): Add atmega2560 and atmega2561 to list.
1568 2008-03-15 Uros Bizjak <ubizjak@gmail.com>
1570 * config/i386/mmx.md ("sse2_umulv1siv2di3"): Rename from
1571 "sse2_umulsidi3". Use V1DI mode for operand 0.
1572 ("mmx_psadbw"): Use V1DI mode for operand 0.
1573 * config/i386/i386-modes.def (V1SI): New vector mode.
1574 * config/i386/i386.c (struct builtin_description)
1575 [IX86_BUILTIN_PMULUDQ]: Use CODE_FOR_sse2_umulv1siv1di3.
1576 (v1di_ftype_v8qi_v8qi): Rename from di_ftype_v8qi_v8qi.
1577 (v1di_ftype_v2si_v2si): Rename from di_ftype_v2si_v2si.
1578 (ix86_init_mmx_sse_builtins) [__builtin_ia32_psadbw]: Use
1579 v1di_ftype_v8qi_v8qi type.
1580 [__builtin_ia32_pmuludq]: Use v1di_ftype_v2si_v2si type.
1582 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psadbw,
1583 __builtin_ia32_pmuludq]: Fix the mode of return value.
1585 2008-03-15 Richard Guenther <rguenther@suse.de>
1588 * tree-ssa-pre.c (bitmap_find_leader): Handle expression
1591 2008-03-14 Bob Wilson <bob.wilson@acm.org>
1593 * doc/invoke.texi (Option Summary, Xtensa Options): Document
1594 -mserialize-volatile and -mno-serialize-volatile Xtensa options.
1595 * config/xtensa/xtensa.c (print_operand): Do not emit MEMW instructions
1596 unless TARGET_SERIALIZE_VOLATILE is enabled.
1597 * config/xtensa/xtensa.md (*lsiu, *ssiu): Likewise.
1598 * config/xtensa/xtensa.h (TARGET_DEFAULT): Add MASK_SERIALIZE_VOLATILE.
1599 * config/xtensa/xtensa.opt (mserialize_volatile): New option.
1601 2008-03-14 Richard Guenther <rguenther@suse.de>
1603 PR tree-optimization/34172
1604 * tree-flow.h (refs_may_alias_p): Declare.
1605 (get_single_def_stmt): Likewise.
1606 (get_single_def_stmt_from_phi): Likewise.
1607 (get_single_def_stmt_with_phi): Likewise.
1608 * tree-dfa.c (refs_may_alias_p): New function.
1609 (get_single_def_stmt): Likewise.
1610 (get_single_def_stmt_from_phi): Likewise.
1611 (get_single_def_stmt_with_phi): Likewise.
1612 * tree-ssa-sccvn.c (get_def_ref_stmt_vuses): New function.
1613 (vn_reference_lookup_1): New helper function.
1614 (vn_reference_lookup): Walk the virtual use-def chain to
1615 continue searching for a match if the def does not alias the
1616 reference we are looking for.
1618 2008-03-14 David Edelsohn <edelsohn@gnu.org>
1620 * doc/install.texi (Binaries): Remove UCLA archive. Add HVCC
1621 archive and Perzl. Update The Written Word listing.
1623 2008-03-14 Richard Guenther <rguenther@suse.de>
1625 PR tree-optimization/34043
1626 PR tree-optimization/33989
1627 * tree-ssa-pre.c (execute_pre): Allow SCCVN to do insertion
1629 (bitmap_find_leader): Use extra argument to verify dominance
1630 relationship inside a basic-block.
1631 (can_PRE_operation): Add VIEW_CONVERT_EXPR.
1632 (find_leader_in_sets): Adjust.
1633 (create_component_ref_by_pieces): Take extra argument for
1634 dominance check, handle lookup failures.
1635 (find_or_generate_expression): Likewise.
1636 (create_expression_by_pieces): Likewise.
1637 (insert_into_preds_of_block): Adjust.
1638 (create_value_expr_from): If asked for, verify all operands
1639 are in the blocks AVAIL_OUT set.
1640 (make_values_for_stmt): Check for SSA_NAMEs that are life
1641 over an abnormal edge.
1642 (compute_avail): Remove such check.
1643 (do_SCCVN_insertion): New function.
1644 (eliminate): If we do not find a leader suitable for replacement
1645 insert a replacement expression from SCCVN if available.
1646 * tree-ssa-sccvn.h (run_scc_vn): Update prototype.
1647 (struct vn_ssa_aux): Add needs_insertion flag.
1648 * tree-ssa-sccvn.c (may_insert): New global flag.
1649 (copy_reference_ops_from_ref): Value-number union member access
1650 based on its size, not type and member if insertion is allowed.
1651 (visit_reference_op_load): For a weak match from union type
1652 punning lookup a view-converted value and insert a SSA_NAME
1653 for that value if that is not found.
1654 (visit_use): Make dumps shorter. Do not disallow value numbering
1655 SSA_NAMEs that are life over an abnormal edge to constants.
1656 (free_scc_vn): Release inserted SSA_NAMEs.
1657 (run_scc_vn): New flag to specify whether insertion is allowed.
1658 Process SSA_NAMEs in forward order.
1659 * tree-ssa-loop-im.c (for_each_index): Handle invariant
1660 ADDR_EXPRs inside VIEW_CONVERT_EXPR.
1661 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPRs from/to
1662 pointer type to/from integral types that do not change the
1663 precision to regular conversions.
1665 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
1667 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
1668 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
1669 __builtin_ia32_psrl?i, __builtin_ia32_psra?i, __builtin_ia32_psll?128,
1670 __builtin_ia32_psrl?128, __builtin_ia32_psra?128]: Fix the mode of
1671 input arguments and the mode of return value. Built-in functions
1672 that operate on whole 64-bit MMX register now use V1DI mode.
1674 2008-03-13 Alon Dayan <alond@il.ibm.com>
1675 Olga Golovanevsky <olga@il.ibm.com>
1677 PR tree-optimization/35041
1678 * ipa-struct-reorg.c (find_pos_in_stmt_1): Add another option
1679 to locate the right position in a statement.
1681 2008-03-13 Uros Bizjak <ubizjak@gmail.com>
1685 * config/i386/xmmintrin.h: Change all static inline functions to
1686 extern inline and add __gnu_inline__ attribute.
1687 * config/i386/bmintrin.h: Ditto.
1688 * config/i386/smmintrin.h: Ditto.
1689 * config/i386/tmmintrin.h: Ditto.
1690 * config/i386/mmintrin-common.h: Ditto.
1691 * config/i386/ammintrin.h: Ditto.
1692 * config/i386/emmintrin.h: Ditto.
1693 * config/i386/pmmintrin.h: Ditto.
1694 * config/i386/mmintrin.h: Ditto.
1695 * config/i386/mm3dnow.h: Ditto.
1697 2008-03-13 Jakub Jelinek <jakub@redhat.com>
1700 * omp-low.c (lower_regimplify, init_tmp_var, save_tmp_var): Removed.
1701 (lower_omp_2): New function.
1702 (lower_omp_1, lower_omp): Rewritten.
1704 2008-03-13 Danny Smith <dannysmith@users.sourceforge.net>
1707 * doc/extend.texi (Structure-Packing Pragmas): Replace "Win32"
1708 with the phrase "Microsoft Windows compilers".
1709 (Push/Pop Macro Pragmas): New subsection. Document
1710 #pragma push_macro and pragma pop_macro.
1712 2008-03-12 Paul Brook <paul@codesourcery.com>
1714 * config/arm/arm.c (output_move_double): Prefer LDRD to LDM.
1716 2008-03-12 Paul Brook <paul@codesourcery.com>
1718 * config/arm/thumb2.md: Extend peephole to cover 3-arg subs.
1719 (thumb2_alusi3_short): Exclude PLUS and MINUS.
1720 (thumb2_addsi_shortim): Rename ...
1721 (thumb2_addsi_short): ... to this. Allow register operands.
1722 (thumb2_subsi_short): New pattern.
1723 (thumb2_one_cmplsi2_short,
1724 thumb2_negsi2_short): New patterns and peepholes.
1726 2008-03-12 Paul Brook <paul@codesourcery.com>
1728 * config/arm/arm.c (arm_size_rtx_costs): Use ARM costs for Thumb-2.
1730 2008-03-12 Uros Bizjak <ubizjak@gmail.com>
1732 * config/i386/i386.md (int_cond): New code iterator.
1734 ("s<code>"): Macroize expander from seq, sne, sgt, sgtu, slt, sltu,
1735 sge, sgeu, sle and sleu expanders usign int_cond code iterator.
1736 ("s<code>"): Macroize expander from sunordered, sordered, suneq, sunge,
1737 sungt, sunle, sunlt and sltgt expanders usign fp_cond code iterator.
1738 ("b<code>"): Macroize expander from beq, bne, bgt, bgtu, blt, bltu,
1739 bge, bgeu, ble and bleu expanders usign int_cond code iterator.
1740 ("b<code>"): Macroize expander from bunordered, bordered, buneq, bunge,
1741 bungt, bunle, bunlt and bltgt expanders usign fp_cond code iterator.
1743 2008-03-12 Paul Brook <paul@codesourcery.com>
1745 * config/arm/arm.c (use_return_insn): Use offsets->saved_regs_mask
1746 instead of {arm,thumb}_compute_save_reg_mask.
1747 (output_return_instruction): Ditto.
1748 (thumb_unexpanded_epilogue): Ditto.
1749 (thumb1_expand_prologue): Ditto.
1750 (thumb1_output_function_prologue): Ditto.
1751 (arm_set_return_address): Ditto.
1752 (thumb_set_return_address): Ditto.
1753 (arm_get_frame_offsets): Set offsets->saved_regs_mask. Push extra
1754 regs to achieve stack alignment.
1755 (thumb1_compute_save_reg_mask): Fix compiler warning.
1756 (arm_output_epilogue): Use offsets->saved_regs_mask.
1757 Adjust stack pointer by poping call clobered registers.
1758 (arm_expand_prologue): Use offsets->saved_regs_mask.
1759 Adjust stack pointer by pushing extra registers.
1760 * config/arm.h (arm_stack_offsets): Add saved_regs_mask.
1762 2008-03-12 Paolo Bonzini <bonzini@gnu.org>
1765 * fold-const.c (fold_unary) <NOP_EXPR>: Distribute a narrowing
1766 conversion to the operands of a multiplication.
1768 2008-03-12 Richard Guenther <rguenther@suse.de>
1770 * Makefile.in (OBJS-common): Add tree-ssa-phiprop.o
1771 (tree-ssa-phiprop.o): Copy dependencies from tree-ssa-forwprop.o.
1772 * timevar.def (TV_TREE_PHIPROP): Add.
1773 * tree-ssa-phiprop.c: Split from tree-ssa-forwprop.c, added
1774 pass description. Use TV_TREE_PHIPROP.
1775 * tree-ssa-forwprop.c: Remove phiprop code.
1777 2008-03-12 Jakub Jelinek <jakub@redhat.com>
1780 * omp-low.c (maybe_lookup_decl): Constify first argument.
1781 (use_pointer_for_field): Change last argument from bool to
1782 omp_context *. Disallow shared copy-in/out in nested
1783 parallel if decl is shared in outer parallel too.
1784 (build_outer_var_ref, scan_sharing_clauses,
1785 lower_rec_input_clauses, lower_copyprivate_clauses,
1786 lower_send_clauses, lower_send_shared_vars): Adjust callers.
1788 2008-03-12 Victor Kaplansky <victork@il.ibm.com>
1789 Ira Rosen <irar@il.ibm.com>
1791 * tree-vectorizer.c (free_stmt_vec_info): New function.
1792 (destroy_loop_vec_info): Move code to free_stmt_vec_info().
1793 Call free_stmt_vec_info(). Free LOOP_VINFO_STRIDED_STORES..
1794 * tree-vectorizer.h (free_stmt_vec_info): Declare.
1795 * tree-vect-transform.c (vectorizable_conversion): Free
1796 vec_oprnds0 if it was allocated.
1797 (vect_permute_store_chain): Remove unused VECs.
1798 (vectorizable_store): Free VECs that are allocated in the..
1800 (vect_transform_strided_load, vectorizable_load): Likewise.
1801 (vect_remove_stores): Simplify the code.
1802 (vect_transform_loop): Move code to vect_remove_stores().
1803 Call vect_remove_stores() and free_stmt_vec_info().
1805 2008-03-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1807 * pa.h (TARGET_LONG_PIC_SDIFF_CALL): Conditionalize define on
1808 TARGET_HPUX. Revise comment.
1809 (TARGET_LONG_PIC_PCREL_CALL): Revise comment.
1810 * pa.c (output_call): Update for revised TARGET_LONG_PIC_SDIFF_CALL.
1811 Use sr4 variant of `be' instruction when not generating PIC code.
1812 (attr_length_call): Adjust for above change.
1814 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
1816 * ipa-reference.c (static_execute): Remove module_statics_const and
1817 associated setting code.
1819 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
1822 * config/i386/i386.md (paritysi2, paritydi2): Use register_operand
1823 predicate for operand 1.
1824 (paritysi2_cmp): Use register_operand predicate for operand 2.
1825 Use earlyclobber modifier for operand 1. Remove support for
1827 (paritydi2_cmp): Use register_operand predicate for operand 3.
1828 Use earlyclobber modifier for operand 1. Remove support for
1831 2008-03-11 Paul Brook <paul@codesourcery.com>
1832 Vladimir Prus <vladimir@codesourcery.com>
1834 * config/arm/arm.c (use_return_insn): Check TARGET_APCS_FRAME.
1835 (arm_compute_save_reg0_reg12_mask): Always
1836 check if register 11 must be saved. Always safe hard frame pointer
1837 when frame_pointer_needeed.
1838 (arm_compute_save_reg_mask): Save IP and PC
1839 only with apcs frames.
1840 (arm_output_epilogue): Adjust Thumb2 codepath to
1841 be also invoked and work for ARM non-apcs frames.
1842 (arm_expand_prologue): Don't bother saving IP
1843 for non-apcs frame, since it's not clobbered by
1844 prologue code. Implement non-apcs frame
1847 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
1849 PR rtl-optimization/35281
1850 * expr.c (convert_move): Use a new pseudo for the intermediate
1851 from_mode->word_mode result.
1853 2008-03-11 Paolo Bonzini <bonzini@gnu.org>
1855 * langhooks-def.h (LANG_HOOKS_CLEAR_BINDING_STACK): Delete.
1856 * langhooks.h (struct lang_hooks): Delete clear_binding_stack member.
1857 * toplev.c (compile_file): Don't call it.
1859 2008-03-11 Uros Bizjak <ubizjak@gmail.com>
1862 * expr.c (store_expr): Call emit_block_move if the mode
1863 of "temp" RTX is BLKmode.
1865 2008-03-11 Andrew Pinski <andrew_pinski@playstation.sony.com>
1866 Richard Guenther <rguenther@suse.de>
1868 PR tree-optimization/31358
1869 * tree-ssa-loop-manip.c (create_iv): Call force_gimple_operand for
1870 the step with a NULL_TREE.
1871 * tree-ssa-loop-ivopts.c (find_bivs): Convert the step
1872 to sizetype if type is a pointer type.
1873 (add_candidate_1): Don't convert the base and step to
1874 the generic type if the orginal type is a pointer type.
1875 (add_iv_value_candidates): Use sizetype for the step
1876 if type is a pointer type.
1877 (cand_value_at): Likewise.
1878 * tree-ssa-address.c (add_to_parts): Use POINTER_PLUS_EXPR
1880 * tree-affine.c (tree_to_aff_combination <POINTER_PLUS_EXPR>):
1881 Don't convert the tem affine to the type.
1882 (add_elt_to_tree): Use sizetype for the step if a pointer.
1883 Use POINTER_PLUS_EXPR for pointers.
1884 (aff_combination_to_tree): Use sizetype for the step if a
1887 2008-03-10 Vladimir Makarov <vmakarov@redhat.com>
1889 * config/i386/sse.md (ssse3_pmaddubswv8hi3, ssse3_pmaddubswv4hi3):
1890 Remove commutativity hint.
1892 2008-03-10 Jakub Jelinek <jakub@redhat.com>
1896 * c-parser.c (c_parser_omp_threadprivate): Don't add vars with
1897 errorneous type. Check that v is a VAR_DECL.
1900 * tree-cfg.c (new_label_mapper): Update cfun->last_label_uid.
1902 2008-03-10 H.J. Lu <hongjiu.lu@intel.com>
1904 PR tree-optimization/35494
1905 * tree-ssa-ccp.c (get_symbol_constant_value): Check if value
1906 may be overriden at link and run time.
1908 2008-03-10 Richard Guenther <rguenther@suse.de>
1910 PR tree-optimization/34677
1911 * tree-ssa-pre.c (modify_expr_node_pool): Remove.
1912 (poolify_tree): Likewise.
1913 (modify_expr_template): Likewise.
1914 (poolify_modify_stmt): Likewise.
1915 (insert_fake_stores): Handle all component-ref style stores
1916 in addition to INDIRECT_REF. Also handle complex types.
1917 Do not poolify the inserted load.
1918 (realify_fake_stores): Do not rebuild the tree but only
1919 make it a SSA_NAME copy.
1920 (init_pre): Remove initialzation of modify_expr_template.
1921 Do not allocate modify_expr_node_pool.
1922 (fini_pre): Do not free modify_expr_node_pool.
1924 2008-03-10 Paul Brook <paul@codesourcery.com>
1926 * config/arm/arm.md (UNSPEC_STACK_ALIGN, UNSPEC_PIC_OFFSET): Renumber
1929 2008-03-10 Paul Brook <paul@codesourcery.com>
1930 Mark Shinwell <shinwell@codesourcery.com>
1932 * config/arm/cortex-r4.md: New.
1933 * config/arm/thumb2.md (divsi3, udivsi3): Annotate with
1935 * config/arm/arm.md: Include cortex-r4.md.
1936 (insn): Add smmls, sdiv and udiv values.
1937 (generic_sched): Don't use generic scheduling for Cortex-R4.
1938 (arm_issue_rate): New function.
1939 (TARGET_SCHED_ISSUE_RATE): Define.
1941 2008-03-10 Sebastian Pop <sebastian.pop@amd.com>
1943 * doc/invoke.texi (-ftree-loop-distribution): Add an example.
1945 2008-03-10 Richard Guenther <rguenther@suse.de>
1947 * tree-ssa-pre.c (get_sccvn_value): Simplify.
1948 (compute_avail): Do not add stmt uses to AVAIL_OUT.
1950 2008-03-10 Paolo Bonzini <bonzini@gnu.org>
1952 * langhooks-def.h (LANG_HOOKS_REDUCE_BIT_FIELD_OPERATIONS):
1953 Set default to true.
1955 2008-03-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1957 * c.opt (Wsynth): Deprecate.
1958 * doc/invoke.texi (Option Summary, Warning Options): Document
1959 -Wno-format-contains-nul.
1961 2008-03-09 Uros Bizjak <ubizjak@gmail.com>
1964 * config/i386/i386.c (ix86_constant_alignment): Compute alignment using
1965 ALIGN_MODE_128 for VECTOR_CST and INTEGER_CST in addition to REAL_CST.
1967 2008-03-09 Ira Rosen <irar@il.ibm.com>
1969 * config/rs6000/rs6000.c (builtin_description): Rename vector
1970 left shift operations.
1971 * config/rs6000/altivec.md (UNSPEC_VSL): Remove.
1972 (altivec_vsl<VI_char>): Rename to ...
1973 (ashl<mode>3): ... new name.
1974 (mulv4sf3, mulv4si3, negv4sf2): Replace gen_altivec_vslw with
1976 (absv4sf2): Convert to use ashift:V4SI instead of UNSPEC_VSL.
1978 2008-03-08 Richard Guenther <rguenther@suse.de>
1980 * coverage.h (tree_coverage_counter_addr): Declare.
1981 * coverage.c (tree_coverage_counter_addr): New function.
1982 * tree-profile.c (tree_gen_edge_profiler): Unshare counter
1984 (tree_gen_pow2_profiler): Use tree_coverage_counter_addr.
1985 (tree_gen_one_value_profiler): Likewise.
1986 (tree_gen_ic_profiler): Likewise.
1987 (tree_gen_average_profiler): Likewise.
1988 (tree_gen_ior_profiler): Likewise.
1990 2008-03-08 Richard Guenther <rguenther@suse.de>
1992 * tree-ssa-sccvn.h (vn_binary_op_lookup): Remove.
1993 (vn_binary_op_insert): Likewise.
1994 (vn_unary_op_lookup): Likewise.
1995 (vn_unary_op_insert): Likewise.
1996 (vn_nary_op_lookup): Declare.
1997 (vn_nary_op_insert): Likewise.
1998 * tree-ssa-sccvn.c (struct vn_tables_s): Merge unary
1999 and binary hashes, use a single obstack for unary_op_pool
2001 (struct vn_binary_op_s, struct vn_unary_op_s): Replace with
2002 a single struct vn_nary_op_s. Store tree code length and
2003 a variable number of operands.
2004 (struct vn_reference_op_struct): Remove unused op2.
2005 (vn_reference_op_eq): Do not compare op2.
2006 (vn_reference_op_compute_hash): Do not compute hash of op2.
2007 (vn_unary_op_hash, vn_binary_op_hash): Replace with vn_nary_op_hash.
2008 (vn_unary_op_compute_hash, vn_binary_op_compute_hash): Replace
2009 with vn_nary_op_compute_hash.
2010 (vn_unary_op_eq, vn_binary_op_eq): Replace with vn_nary_op_eq.
2011 (vn_unary_op_lookup, vn_binary_op_lookup): Replace with
2013 (vn_unary_op_insert, vn_binary_op_insert): Replace with
2015 (visit_unary_op): Call nary functions.
2016 (visit_binary_op): Likewise.
2017 (process_scc): Adjust for struct vn_tables_s changes.
2018 (allocate_vn_table): Likewise.
2019 (free_vn_table): Likewise.
2020 * tree-vn.c (vn_add): Call nary functions.
2021 (vn_lookup): Likewise.
2023 2008-03-08 Jakub Jelinek <jakub@redhat.com>
2026 * config/rs6000/rs6000.c (rs6000_expand_compare_and_swapqhi): Shift
2027 wdst back after sync_compare_and_swapqhi_internal.
2029 2008-03-08 Uros Bizjak <ubizjak@gmail.com>
2032 * config/i386/i386-modes.def (V1DI): New vector mode.
2033 * config/i386/i386.h (VALID_MMX_REG_MODE): Add V1DImode.
2034 * config/i386/mmx.md (MMXMODEI8): New mode iterator.
2035 (MMXMODE248): Ditto.
2036 (MMXMODE): Add V1DI mode.
2037 (mmxvecsize): Change DI mode to V1DI mode.
2038 ("mov<mode>): Use MMXMODEI8 mode iterator.
2039 ("*mov<mode>_internal_rex64"): Ditto.
2040 ("*mov<mode>_internal"): Ditto.
2041 ("mmx_add<mode>3"): Ditto. Handle V1DImode for TARGET_SSE2.
2042 ("mmx_sub<mode>3"): Ditto.
2043 ("mmx_adddi3"): Remove insn pattern.
2044 ("mmx_subdi3"): Ditto.
2045 ("mmx_ashr<mode>3"): Use SImode and "yN" constraint for operand 2.
2046 ("mmx_lshr<mode>3"): Ditto. Use MMXMODE248 mode iterator.
2047 ("mmx_ashl<mode>3"): Ditto.
2048 ("mmx_lshrdi3"): Remove insn pattern.
2049 ("mmx_ashldi3"): Ditto.
2050 * config/i386/i386.c (classify_argument): Handle V1DImode.
2051 (function_arg_advance_32): Ditto.
2052 (function_arg_32): Ditto.
2053 (struct builtin_description) [IX86_BUILTIN_PADDQ]: Use
2054 mmx_addv1di3 insn pattern.
2055 [IX86_BUILTIN_PSUBQ]: Use mmx_subv1di3 insn pattern.
2056 [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?, IX86_BUILTIN_PSRA?,
2057 IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I, IX86_BUILTIN_PSRA?I,
2058 IX86_BUILTIN_PSLL?I128, IX86_BUILTIN_PSRL?I128, IX86_BUILTIN_PSRA?I128]:
2059 Remove definitions of built-in functions.
2060 (V1DI_type_node): New node.
2061 (v1di_ftype_v1di_int): Ditto.
2062 (v1di_ftype_v1di_v1di): Ditto.
2063 (v2si_ftype_v2si_si): Ditto.
2064 (v4hi_ftype_v4hi_di): Remove node.
2065 (v2si_ftype_v2si_di): Ditto.
2066 (ix86_init_mmx_sse_builtins): Handle V1DImode.
2067 (__builtin_ia32_psll?, __builtin_ia32_psrl?, __builtin_ia32_psra?):
2068 Redefine builtins using def_builtin_const with *_ftype_*_int node.
2069 (__builtin_ia32_psll?i, __builtin_ia32_psrl?i, __builtin_ia32_psra?i):
2070 Add new builtins using def_builtin_const.
2071 (ix86_expand_builtin) [IX86_BUILTIN_PSLL?, IX86_BUILTIN_PSRL?,
2072 IX86_BUILTIN_PSRA?, IX86_BUILTIN_PSLL?I, IX86_BUILTIN_PSRL?I,
2073 IX86_BUILTIN_PSRA?I]: Handle builtin definitions.
2074 * config/i386/mmintrin.h (__v1di): New typedef.
2075 (_mm_add_si64): Cast arguments to __v1di type.
2076 (_mm_sub_si64): Ditto.
2077 (_mm_sll_pi16): Cast __count to __v4hi type.
2078 (_mm_sll_pi32): Cast __count to __v2si type.
2079 (_mm_sll_si64): Cast arguments to __v1di type.
2080 (_mm_srl_pi16): Cast __count to __v4hi type.
2081 (_mm_srl_pi32): Cast __count to __v2si type.
2082 (_mm_srl_si64): Cast arguments to __v1di type.
2083 (_mm_sra_pi16): Cast __count to __v4hi type.
2084 (_mm_sra_pi32): Cast __count to __v2si type.
2085 (_mm_slli_pi16): Use __builtin_ia32_psllwi.
2086 (_mm_slli_pi32): Use __builtin_ia32_pslldi.
2087 (_mm_slli_si64): Use __builtin_ia32_psllqi. Cast __m to __v1di type.
2088 (_mm_srli_pi16): Use __builtin_ia32_psrlwi.
2089 (_mm_srli_pi32): Use __builtin_ia32_psrldi.
2090 (_mm_srli_si64): Use __builtin_ia32_psrlqi. Cast __m to __v1di type.
2091 (_mm_srai_pi16): Use __builtin_ia32_psrawi.
2092 (_mm_srai_pi32): Use __builtin_ia32_psradi.
2093 * config/i386/i386.md (UNSPEC_NOP): Remove unspec definition.
2094 * doc/extend.texi (X86 Built-in Functions) [__builtin_ia32_psll?,
2095 __builtin_ia32_psrl?, __builtin_ia32_psra?, __builtin_ia32_psll?i,
2096 __builtin_ia32_psrl?i, __builtin_ia32_psra?i]: Add new builtins.
2098 2008-03-07 Joseph Myers <joseph@codesourcery.com>
2100 * doc/include/texinfo.tex: Update to version 2008-03-07.10.
2102 2008-03-07 Peter Bergner <bergner@vnet.ibm.com>
2105 * config/rs6000/rs6000.c (rs6000_legitimize_address): Don't generate
2106 reg+const addressing for Altivec modes. Don't generate reg+reg
2107 addressing for TFmode or TDmode quantities.
2109 2008-03-07 Paolo Bonzini <bonzini@gnu.org>
2111 * c-common.c (vector_types_convertible_p): Call langhook
2112 instead of comptypes.
2114 2008-03-06 Andrew Pinski <andrew_pinski@playstation.sony.com>
2117 * tree-ssa-ccp.c (get_symbol_constant_value): Handle
2118 integral and scalar float variables which have a
2121 2008-03-06 Nathan Froyd <froydnj@codesourcery.com>
2123 * dwarf2out.c (dwarf2out_frame_debug_expr): Consult the
2124 dwarf_register_span hook when emitting unwind information for
2125 register-to-memory saves.
2126 * config/rs6000/rs6000.c (spe_synthesize_frame): Delete.
2127 (rs6000_frame_related): Remove call to spe_synthesize_frame.
2129 2008-03-06 Jakub Jelinek <jakub@redhat.com>
2131 * gimplify.c (goa_lhs_expr_p): Allow different ADDR_EXPR nodes
2132 for the same VAR_DECL.
2134 2008-03-06 Tom Tromey <tromey@redhat.com>
2137 * doc/standards.texi (Standards): Don't mention treelang.
2138 * doc/invoke.texi (Overall Options): Don't mention treelang.
2139 * doc/install.texi (Prerequisites): Don't mention bison or
2141 (Configuration): Don't mention treelang.
2142 (Building): Likewise.
2143 * doc/frontends.texi (G++ and GCC): Don't mention treelang.
2145 2008-03-06 Paolo Bonzini <bonzini@gnu.org>
2147 * simplify-rtx.c (simplify_subreg): Remove useless shifts from
2148 word-extractions out of a multi-word object.
2150 2008-03-06 Richard Guenther <rguenther@suse.de>
2152 * tree.def (BIT_FIELD_REF): Constrain result type and its precision.
2153 * tree-cfg.c (verify_expr): Verify BIT_FIELD_REF constraints on
2154 result type and precision.
2155 * expr.c (get_inner_reference): Set unsignedp based on the result
2156 type of BIT_FIELD_REF.
2157 * tree.h (BIT_FIELD_REF_UNSIGNED): Remove.
2158 * tree-sra.c (instantiate_element): Do not set BIT_FIELD_REF_UNSIGNED.
2159 (try_instantiate_multiple_fields): Likewise. Use the correct type
2161 (sra_build_assignment): Likewise.
2162 (sra_build_elt_assignment): Likewise.
2163 (sra_explode_bitfield_assignment): Likewise.
2164 * print-tree.c (print_node): Do not check BIT_FIELD_REF_UNSIGNED.
2165 * tree-vect-transform.c (vect_create_epilog_for_reduction): Do not
2166 set BIT_FIELD_REF_UNSIGNED.
2167 (vectorizable_load): Likewise.
2169 2008-03-06 Andreas Krebbel <krebbel1@de.ibm.com>
2171 * cse.c (cse_extended_basic_block): Invalidate artificial defs
2174 2008-03-06 Richard Guenther <rguenther@suse.de>
2176 * alias.c (struct alias_set_entry): Move has_zero_child field
2177 to pack with alias_set.
2179 2008-03-05 H.J. Lu <hongjiu.lu@intel.com>
2181 * config/i386/i386-modes.def: Use 4 byte alignment on DI for
2184 2008-03-05 Ian Lance Taylor <iant@google.com>
2186 * alias.h (alias_set_type): Change from HOST_WIDE_INT to int.
2188 2008-03-05 Kenneth Zadeck <zadeck@naturalbridge.com>
2190 * fwprop.c (update_df): Support width and offset parameters of
2192 * ra-conflict.c (mark_reg_store, clear_reg_in_live,
2193 global_conflicts): Change DF_REF_EXTRACT to either
2194 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
2195 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
2196 * df-scan.c (df_ref_record, df_defs_record,
2197 df_ref_create_structure, df_def_record_1, df_uses_record,
2198 df_get_conditional_uses, df_get_call_refs, df_insn_refs_collect,
2199 df_bb_refs_collect, df_entry_block_defs_collect,
2200 df_exit_block_uses_collect): Support new width and offset fields.
2201 (ref_extract_pool): New storage pool.
2202 (df_free_ref): New function.
2203 (df_reg_chain_unlink, df_free_collection_rec,
2204 df_sort_and_compress_refs): Call df_free_ref.
2205 (df_ref_equal_p, df_ref_compare): Compare offset and width fields
2207 (df_ref_create_structure): Allocate df_ref_extract if offset and
2208 width fields are used.
2209 (df_def_record_1): Get offset and width from ZERO_EXTRACT.
2210 (df_uses_record): Get offset and width from ZERO_EXTRACT
2212 * global.c (build_insn_chain): Change DF_REF_EXTRACT to either
2213 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
2214 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
2215 * df.h (df_ref_flags): Change DF_REF_EXTRACT to either
2216 DF_REF_ZERO_EXTRACT or DF_REF_SIGN_EXTRACT. Change
2217 DF_REF_STRICT_LOWER_PART to DF_REF_STRICT_LOW_PART.
2218 (df_ref_extract): New structure.
2219 (DF_REF_WIDTH, DF_REF_OFFSET): New macros.
2220 (df_ref_create): Add width and offset parameters.
2222 2008-03-05 Richard Guenther <rguenther@suse.de>
2224 * tree-ssa-structalias.c (get_constraint_for_component_ref):
2225 Use ranges_overlap_p.
2226 (offset_overlaps_with_access): Rename
2227 to ranges_overlap_p and move ...
2228 * tree-flow-inline.h (ranges_overlap_p): ... here.
2230 * tree.h (get_inner_reference, handled_component_p): Update
2233 * tree.h (record_component_aliases, get_alias_set,
2234 alias_sets_conflict_p, alias_sets_must_conflict_p,
2235 objects_must_conflict_p): Move declarations ...
2236 * alias.h (record_component_aliases, get_alias_set,
2237 alias_sets_conflict_p, alias_sets_must_conflict_p,
2238 objects_must_conflict_p): ... here.
2239 Include coretypes.h.
2240 * Makefile.in (ALIAS_H): Add coretypes.h dependency.
2242 2008-03-05 Aldy Hernandez <aldyh@redhat.com>
2244 * cfg.c: Include tree-flow.h.
2245 (remove_edge_raw): Call redirect_edge_var_map_clear.
2246 (redirect_edge_succ_nodup): Call redirect_edge_var_map_dup.
2247 * tree-flow-inline.h (redirect_edge_var_map_def): New.
2248 (redirect_edge_var_map_result): New.
2249 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Replace
2250 PENDING_STMT use with redirect_edge_var_map_*.
2251 * tree-ssa.c (edge_var_maps): New definition.
2252 (redirect_edge_var_map_add): New.
2253 (redirect_edge_var_map_clear): New.
2254 (redirect_edge_var_map_dup): New.
2255 (redirect_edge_var_map_vector): New.
2256 (redirect_edge_var_map_destroy): New.
2257 (ssa_redirect_edge): Replace PENDING_STMT use with
2258 redirect_edge_var_map_*.
2259 (flush_pending_stmts): Same.
2260 (delete_tree_ssa): Destroy edge var map.
2261 * tree-flow.h (struct _edge_var_map): New.
2262 Define edge_var_map vector type.
2263 Declare redirect_edge_var_map_* prototypes.
2264 * Makefile.in (cfg.o): Depend on TREE_FLOW_H.
2265 * tree-cfg.c (reinstall_phi_args): Replace
2266 PENDING_STMT use with redirect_edge_var_map_*.
2268 2008-03-05 Richard Guenther <rguenther@suse.de>
2270 PR tree-optimization/35472
2271 * tree-ssa-dse.c (dse_optimize_stmt): Do not delete a store
2272 whose single use_stmt has a overlapping set of loaded and
2273 stored symbols as that use_stmt might be a noop assignment then.
2275 2008-03-05 Joel Sherrill <joel.sherrill@oarcorp.com>
2277 * gthr-rtems.h: Implement __gthread_mutex_destroy.
2279 2008-03-05 Richard Guenther <rguenther@suse.de>
2282 * tree.def (BIT_FIELD_REF): Document that operands 1 and 2
2283 should be constants.
2284 * tree-cfg.c (verify_expr): Verify it.
2285 * fold-const.c (fold_truthop): Remove code generating
2286 BIT_FIELD_REFs of structure bases.
2287 (fold_binary): Likewise.
2288 (fold_ternary): Position and size of BIT_FIELD_REFs are
2289 always host integers.
2290 (make_bit_field_ref): Remove.
2291 (optimize_bit_field_compare): Remove.
2292 (all_ones_mask_p): Remove.
2294 2008-03-05 Gabor Loki <loki@gcc.gnu.org>
2297 * rtl-factoring.c (clear_regs_live_in_seq): Fix backward steps.
2298 (split_block_and_df_analyze): New. Split basic block and rebuild
2300 (block_label_after): Use SPLIT_BLOCK_AND_DF_ANALYZE instead of
2302 (split_pattern_seq): Likewise.
2303 (erase_matching_seqs): Likewise.
2304 (split_pattern_seq): Skip return insn in case of REG_NORETURN note.
2306 2008-03-04 Geoff Keating <geoffk@apple.com>
2308 * fold-const.c (tree_single_nonnegative_warnv_p): Fix mixed
2309 declaration and code.
2310 (tree_invalid_nonnegative_warnv_p): Likewise.
2312 2008-03-05 Serge Belyshev <belyshev@depni.sinp.msu.ru>
2314 * doc/install.texi (Testing): Correct quoting for the RUNTESTFLAGS
2315 examples. Truncate option-names then causing overfull hbox.
2317 2008-03-04 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2320 * configure.ac (CONFIG_SJLJ_EXCEPTIONS): Force SJLJ exceptions
2322 * configure: Rebuilt.
2324 2008-03-04 Rafael Espindola <espindola@google.com>
2326 * fold-const.c (tree_simple_nonnegative_warnv_p): New.
2327 (tree_unary_nonnegative_warnv_p): New.
2328 (tree_binary_nonnegative_warnv_p): New.
2329 (tree_single_nonnegative_warnv_p): New.
2330 (tree_invalid_nonnegative_warnv_p): New.
2331 (tree_expr_nonnegative_warnv_p): Redefine in term of the new functions.
2333 2008-03-04 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2336 * opts.c (handle_option): Postpone 'unknown option' errors only for
2339 2008-03-04 H.J. Lu <hongjiu.lu@intel.com>
2342 * config/i386/smmintrin.h (SIDD_XXX): Renamed to ...
2345 2008-03-04 Rafael Espindola <espindola@google.com>
2347 * fold-const.c (tree_unary_nonzero_warnv_p): New.
2348 (tree_binary_nonzero_warnv_p): New.
2349 (tree_single_nonzero_warnv_p): New.
2350 (tree_expr_nonzero_warnv_p): Redefine using the new functions.
2352 2008-03-04 Uros Bizjak <ubizjak@gmail.com>
2355 * fold-const.c (fold_cond_expr_with_comparison): Prevent
2356 transformations for modes that have signed zeros.
2357 * ifcvt.c (noce_try_abs): Ditto.
2359 2008-03-04 Joseph Myers <joseph@codesourcery.com>
2361 * config/i386/i386.c (override_options): Force
2362 -maccumulate-outgoing-args on if TARGET_STACK_PROBE.
2364 2008-03-04 Jan Hubicka <jh@suse.cz>
2367 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Fix typo
2370 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
2372 * config/i386/i386.md (allocate_stack_worker_32): Use __chkstk
2373 label to probe the stack.
2375 2008-03-04 Danny Smith <dannysmith@users.sourceforge.net>
2377 * gthr-win32.h [__GTHREAD_HIDE_WIN32API]
2378 (__gthr_win32_mutex_destroy): Declare.
2379 [__GTHREAD_HIDE_WIN32API] (__gthread_mutex_destroy): Use
2380 __gthr_win32_mutex_destroy.
2381 * config/i386/gthr-win32.c (__gthr_win32_mutex_destroy): Define.
2383 2008-03-03 Jan Hubicka <jh@suse.cz>
2386 * ipa-inline.c (cgraph_decide_inlining_of_small_function): Be more
2387 aggressive on inlining cold calls.
2389 2008-03-03 Richard Guenther <rguenther@suse.de>
2391 * tree-ssa-sccvn.c (visit_reference_op_store): Do not insert
2392 struct copies into the expression table.
2393 (simplify_unary_expression): Handle VIEW_CONVERT_EXPR.
2394 (try_to_simplify): Likewise.
2395 * fold-const.c (fold_unary): Fold VIEW_CONVERT_EXPR of
2396 integral and pointer arguments which do not change the
2397 precision to NOP_EXPRs.
2398 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Adjust
2399 VIEW_CONVERT_EXPR case.
2401 2008-03-02 Sebastian Pop <sebastian.pop@amd.com>
2403 * tree-scalar-evolution.c (instantiate_parameters_1): An SSA_NAME
2404 defined in a loop at depth 0 is invariant.
2405 * tree-chrec.c (evolution_function_is_invariant_rec_p): Ditto.
2406 * tree-ssa-loop-ivopts.c (expr_invariant_in_loop_p): Should never
2407 be called at loop depth 0.
2409 2008-03-02 Jakub Jelinek <jakub@redhat.com>
2412 * gcc.c (process_command): Update copyright notice dates.
2413 * gcov.c (print_version): Likewise.
2414 * gcov-dump.c (print_version): Likewise.
2415 * mips-tfile.c (main): Likewise.
2416 * mips-tdump.c (main): Likewise.
2418 2008-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2421 * c-common.c (flag_permissive): Delete.
2422 (constant_expression_warnings): Check flags first.
2423 (constant_expression_error): New.
2424 * c-common.h (flag_permissive): Delete.
2425 (constant_expression_error): Declare.
2426 * flags.h (flag_permissive): Declare. Update description.
2427 * diagnostic.c (pedwarn): Update.
2429 * diagnostic.h: (pedantic_error_kind): Rename as pedantic_warning_kind.
2430 (permissive_error_kind): New.
2431 * toplev.c (flag_permissive): Define. Update description.
2432 * toplev.h (permissive_error_kind): Declare.
2433 * c-errors.c (pedwarn_c99): Use pedantic_warning_kind.
2434 (pedwarn_c90): Use pedantic_warning_kind.
2435 * c-opts.c (c_common_post_options): flag_permissive does not affect
2436 flag_pedantic_errors.
2438 2008-03-02 Joseph Myers <joseph@codesourcery.com>
2440 * libgcc2.c (__addvSI3, __addvsi3, __addvDI3, __subvSI3,
2441 __subvsi3, __subvDI3, __negvSI2, __negvsi2, __negvDI2, __absvSI2,
2442 __absvsi2, __absvDI2): Use unsigned arithmetic.
2444 2008-03-02 Andi Kleen <ak@suse.de>
2445 Richard Guenther <rguenther@suse.de>
2447 * struct-equiv.c: Remove file.
2448 * cfg_cleanup.c (condjump_equiv_p): Remove.
2449 * Makefile.in (OBJS-common): Remove struct-equiv.o.
2450 (struct-equiv.o): Remove rule.
2451 * basic-block.h (struct_equiv_checkpoint, STRUCT_EQUIV_*,
2452 insns_match_p, struct_equiv_block_eq, struct_equiv_init,
2453 rtx_equiv_p, condjump_equiv_p): Remove prototypes.
2455 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
2457 * ifcvt.c (noce_process_if_block): Try to handle only the then
2458 block if the else block exists but isn't suitable.
2460 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
2463 * gthr-posix.h (__gthread_mutex_destroy): Remove extra declarations.
2464 * gthr-posix95.h (__gthread_mutex_destroy): Likewise. Note this fixes
2465 regression from previous patch.
2467 2008-03-01 Janne Blomqvist <jb@gcc.gnu.org>
2470 * gthr.h: Add __gthread_mutex_destroy as a function that must be
2472 * gthr-vxworks.h (__gthread_mutex_destroy): Null implementation.
2473 * gthr-single.h (__gthread_mutex_destroy): Likewise.
2474 * gthr-rtems.h (__gthread_mutex_destroy): Likewise.
2475 * gthr-mipssde.h (__gthread_mutex_destroy): Likewise.
2476 * gthr-nks.h (__gthread_mutex_destroy): Likewise.
2477 * gthr-solaris.h (__gthread_mutex_destroy): Call mutex_destroy.
2478 * gthr-win32.h (__GTHREAD_MUTEX_DESTROY_FUNCTION): Remove.
2479 (__gthread_mutex_destroy_function): Rename to
2480 __gthread_mutex_destroy.
2481 * gthr-dce.h (__gthread_mutex_destroy): Call
2482 pthread_mutex_destroy.
2483 * gthr-tpf.h (__gthread_mutex_destroy): Likewise.
2484 * gthr-posix.h (__gthread_mutex_destroy): Likewise.
2485 * gthr-posix95.h (__gthread_mutex_destroy): Likewise.
2487 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
2489 * df-scan.c (df_ref_chain_change_bb): Simplify.
2490 (df_insn_change_bb): Add new_bb argument. Simplify. Call
2491 set_block_for_insn if there's any change.
2492 * df.h ((df_insn_change_bb): Fix prototype.
2493 * cfgrtl.c (update_bb_for_insn_chain): Pass bb to
2494 df_insn_change_bb, don't call set_block_for_insn.
2495 * emit-rtl.c (reorder_insns): Likewise.
2496 * haifa-sched.c (move_insn): Likewise.
2498 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
2500 * rtlanal.c (loc_mentioned_in_p): Test XVECEXPs correctly.
2502 2008-03-01 Alexandre Oliva <aoliva@redhat.com>
2504 * tree-flow-inline.h (next_readonly_imm_use): Return
2505 NULL_USE_OPERAND_P after the end.
2507 2008-03-01 Richard Guenther <rguenther@suse.de>
2509 PR tree-optimization/35411
2510 * tree-sra.c (sra_build_assignment): Split conversion to
2511 final type to a separate statement if we are not assigning
2514 2008-02-29 Francois-Xavier Coudert <coudert@clipper.ens.fr>
2516 * fold-const.c (fold_convertible_p): Correct the logic to follow
2517 that in fold_convert().
2519 2008-02-29 Douglas Gregor <doug.gregor@gmail.com>
2522 * tree-inline.c (build_duplicate_type): When we make a
2523 duplicate type, make it unique in the canonical types system.
2525 2008-02-29 Tom Tromey <tromey@redhat.com>
2527 * toplev.c (input_file_stack, input_file_stack_tick, fs_p,
2528 input_file_stack_history, input_file_stack_restored): Remove.
2529 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
2530 * input.h (struct file_stack): Remove.
2531 (push_srcloc, pop_srcloc, restore_input_file_stack): Likewise.
2532 (input_file_stack, input_file_stack_tick, INPUT_FILE_STACK_BITS):
2534 * diagnostic.h (struct diagnostic_context) <last_module>: Change
2536 (diagnostic_last_module_changed): Add 'map' argument.
2537 (diagnostic_set_last_function): Likewise.
2538 * diagnostic.c (undiagnostic_report_current_module): Iterate using
2539 line map, not input_file_stack.
2540 * c-lex.c (fe_file_change): Don't use push_srcloc or pop_srcloc.
2542 2008-02-29 Paul Brook <paul@codesourcery.com>
2544 * config/arm/arm.md (arm_addsi3): Add r/k/n alternative.
2546 2008-02-29 Paul Brook <paul@codesourcery.com>
2548 * config/arm/ieee754-df.S (muldf3): Use RET macros.
2550 2008-02-29 Richard Guenther <rguenther@suse.de>
2552 * tree-ssa-pre.c (get_sccvn_value): Create missing VNs via
2554 * tree-ssa-sccnv.c (visit_reference_op_store): Use the rhs
2555 value for comparing for a store match.
2556 (simplify_unary_expression): Do nothing for SSA_NAMEs.
2557 (try_to_simplify): Do not do a full-blown reference lookup.
2559 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
2561 * config/sh/sh.c (sh_scalar_mode_supported_p): New function.
2562 (TARGET_SCALAR_MODE_SUPPORTED_P): Define.
2564 * config/sh/sh.h (OVERRIDE_OPTIONS): Don't warn for profiling.
2566 2008-02-29 Sebastian Pop <sebastian.pop@amd.com>
2568 * tree-loop-linear.c (try_interchange_loops): Compare memory access
2569 strides against cache sizes.
2571 2008-02-29 Kaz Kojima <kkojima@gcc.gnu.org>
2573 * config/sh/sh.c (sh_secondary_reload): Handle loading a float
2576 2008-02-28 Richard Sandiford <rsandifo@nildram.co.uk>
2578 * simplify-rtx.c (simplify_unary_operation_1): Extend the handling
2579 of SUBREG_PROMOTED_VAR_P to cope with cases where the extended value
2580 is smaller than the original promoted value.
2581 (simplify_subreg): If OP is a SUBREG, try to preserve its
2582 SUBREG_PROMOTED_VAR_P information.
2584 2008-02-28 Steven Bosscher <stevenb.gcc@gmail.com>
2586 * tree-ssa-sccvn (vn_ssa_aux_obstack): New obstack.
2587 (VN_INFO_GET): Allocate new objects on the obstack.
2588 (init_scc_vn): Initialize the obstack. Use XDELETE instead of free
2589 for rpo_numbers_temp, for consistency.
2590 (free_scc_vn): Free the obstack.
2592 2008-02-28 Sebastian Pop <sebastian.pop@amd.com>
2594 * doc/invoke.texi: Document -ftree-loop-distribution.
2595 * tree-loop-distribution.c: New.
2596 * tree-pass.h (pass_loop_distribution): New.
2597 * graphds.h (struct graph): Add htab_t indices.
2598 * timevar.def (TV_TREE_LOOP_DISTRIBUTION): New.
2599 * tree-vectorizer.c (rename_variables_in_loop): Extern.
2600 (slpeel_tree_duplicate_loop_to_edge_cfg): Init PENDING_STMT to NULL.
2601 * tree-vectorizer.h (tree_duplicate_loop_on_edge): Declared.
2602 * tree-data-ref.c (debug_data_dependence_relations): New.
2603 (dump_data_dependence_relation): Also print data references.
2604 (free_data_ref): Extern.
2605 (same_access_functions): Moved...
2606 (find_vertex_for_stmt): Renamed rdg_vertex_for_stmt.
2607 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
2608 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg_1, dot_rdg,
2609 struct rdg_vertex_info, rdg_vertex_for_stmt): New.
2610 (create_rdg_edge_for_ddr, create_rdg_vertices): Cleaned up.
2611 (stmts_from_loop): Skip LABEL_EXPR.
2612 (hash_stmt_vertex_info, eq_stmt_vertex_info, hash_stmt_vertex_del):
2614 (build_rdg): Initialize rdg->indices htab.
2615 (free_rdg, stores_from_loop, ref_base_address,
2616 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses,
2617 have_similar_memory_accesses_1, ref_base_address_1,
2618 remove_similar_memory_refs): New.
2619 * tree-data-ref.h: Depend on tree-chrec.h.
2620 (debug_data_dependence_relations, free_data_ref): Declared.
2621 (same_access_functions): ... here.
2622 (ddr_is_anti_dependent, ddrs_have_anti_deps, ddr_dependence_level):
2624 (struct rdg_vertex): Add has_mem_write and has_mem_reads.
2625 (RDGV_HAS_MEM_WRITE, RDGV_HAS_MEM_READS, RDG_STMT,
2626 RDG_MEM_WRITE_STMT, RDG_MEM_READS_STMT): New.
2627 (dump_rdg_vertex, debug_rdg_vertex, dump_rdg_component,
2628 debug_rdg_component, dump_rdg, debug_rdg, dot_rdg,
2629 rdg_vertex_for_stmt): Declared.
2630 (struct rdg_edge): Add level.
2632 (free_rdg, stores_from_loop, remove_similar_memory_refs,
2633 rdg_defs_used_in_other_loops_p, have_similar_memory_accesses):
2635 (rdg_has_similar_memory_accesses): New.
2636 * tree-vect-analyze.c: Remove unused static decls.
2637 * lambda.h (dependence_level): New.
2638 * common.opt (ftree-loop-distribution): New.
2639 * tree-flow.h (mark_virtual_ops_in_bb,
2640 slpeel_tree_duplicate_loop_to_edge_cfg,
2641 rename_variables_in_loop): Declared.
2642 * Makefile.in (TREE_DATA_REF_H): Depend on tree-chrec.h.
2643 (OBJS-common): Add tree-loop-distribution.o.
2644 (tree-loop-distribution.o): New rule.
2645 * tree-cfg.c (mark_virtual_ops_in_bb): New.
2646 (mark_virtual_ops_in_region): Use mark_virtual_ops_in_bb.
2647 * passes.c (init_optimization_passes): Schedule pass_loop_distribution.
2649 2008-02-28 Joseph Myers <joseph@codesourcery.com>
2652 * tree.c (handle_dll_attribute): Disallow TYPE_DECLs for types
2653 other than structures and unions.
2655 2008-02-28 Richard Guenther <rguenther@suse.de>
2658 2008-02-26 Richard Guenther <rguenther@suse.de>
2660 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
2661 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
2662 (lookup_decl_from_uid): Declare.
2663 (remove_decl_from_map): Likewise.
2664 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
2665 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
2666 (decl_for_uid_map): New global hashtable mapping DECL_UID
2668 (init_ttree): Allocate it.
2669 (insert_decl_to_uid_decl_map): New helper function.
2670 (make_node_stat): Insert new decls into the map.
2671 (copy_node_stat): Likewise.
2672 (lookup_decl_from_uid): New function.
2673 (remove_decl_from_map): Likewise.
2674 (print_decl_for_uid_map_statistics): New helper.
2675 (dump_tree_statistics): Call it.
2677 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
2678 (referenced_var_iterator): Adjust.
2679 (FOR_EACH_REFERENCED_VAR): Adjust.
2680 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
2681 (num_referenced_vars): Adjust.
2682 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
2683 (first_referenced_var): Remove.
2684 (end_referenced_vars_p): Likewise.
2685 (next_referenced_var): Likewise.
2686 (referenced_var_iterator_set): New helper function.
2687 * tree-dfa.c (referenced_var_lookup): Adjust.
2688 (referenced_var_check_and_insert): Likewise.
2689 (remove_referenced_var): Likewise.
2690 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
2691 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
2692 (verify_call_clobbering): Likewise.
2693 (verify_memory_partitions): Likewise.
2694 (init_tree_ssa): Allocate bitmap instead of hashtable for
2696 (delete_tree_ssa): Adjust.
2697 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
2698 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
2699 (compute_tag_properties): Likewise.
2700 (set_initial_properties): Likewise.
2701 (find_partition_for): Likewise.
2702 (update_reference_counts): Likewise.
2703 (dump_may_aliases_for): Likewise.
2704 * tree-ssa-operands.c (add_virtual_operand): Likewise.
2705 (add_call_clobber_ops): Likewise.
2706 (add_call_read_ops): Likewise.
2707 (get_asm_expr_operands): Likewise.
2708 * tree-into-ssa.c (dump_decl_set): Likewise.
2709 (update_ssa): Likewise.
2710 * tree-sra.c (scan_function): Likewise.
2711 (decide_instantiations): Likewise.
2712 (scalarize_parms): Likewise.
2713 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
2714 (dsa_named_for): Likewise.
2715 * tree-ssa-structalias.c (update_alias_info): Likewise.
2716 (merge_smts_into): Likewise.
2718 2008-02-27 David Daney <ddaney@avtrex.com>
2721 * config/mips/iris.h (MIPS_DEBUGGING_INFO): Define.
2722 * config/mips/openbsd.h (MIPS_DEBUGGING_INFO): Same.
2723 * config/mips/sde.h (MIPS_DEBUGGING_INFO): Remove undef.
2724 * config/mips/vxworks.h (MIPS_DEBUGGING_INFO): Same.
2725 * config/mips/mips.h (MIPS_DEBUGGING_INFO): Remove define.
2727 2008-02-27 Uros Bizjak <ubizjak@gmail.com>
2730 * config/darwin-ppc-ldouble-patch.def (BUILT_IN_NANL): Add.
2731 (BUILT_IN_NEXTTOWARD): Remove.
2732 (BUILT_IN_NEXTTOWARDF): Ditto.
2733 * config/darwin.c (darwin_patch_builtin): Use ACONCAT instead of
2734 alloca/strcpy/strcat. Remove commented-out code. Fix whitespace.
2736 2008-02-27 Tom Tromey <tromey@redhat.com>
2738 * tree-dump.c (dequeue_and_dump) <FUNCTION_DECL>: Check
2739 DECL_SAVED_TREE, not DECL_LANG_SPECIFIC, when dumping body.
2741 2008-02-27 Jan Beulich <jbeulich@novell.com>
2743 * c-decl.c (merge_decls): Use DECL_USER_ALIGN() on olddecl to
2744 update the respective field on newdecl.
2746 2008-02-27 Revital Eres <eres@il.ibm.com>
2748 PR rtl-optimization/34999
2749 * bb-reorder.c (add_labels_and_missing_jumps): Do not handle
2750 crossing edges that ends with a call insn.
2751 (fix_up_fall_thru_edges): Handle crossing edges that ends with a
2752 call insn and clear the EDGE_CROSSING flag of the crossing edge
2753 when fixing fallthru edges.
2755 2008-02-27 Richard Guenther <rguenther@suse.de>
2758 * fold-const.c (fold_unary): Return the correct argument,
2759 converted to the result type.
2761 2008-02-27 Richard Guenther <rguenther@suse.de>
2764 * expr.c (expand_expr_real_1): Assert on rotates that operate
2766 * fold-const.c (fold_binary): Use the types precision, not the
2767 bitsize of the mode if folding rotate expressions. Build rotates
2768 only for full modes.
2770 2008-02-27 Jakub Jelinek <jakub@redhat.com>
2772 * c-ppoutput.c (scan_translation_unit): Handle CPP_PRAGMA
2774 * c-pragma.c (pragma_ns_name): New typedef.
2775 (registered_pp_pragmas): New variable.
2776 (c_pp_lookup_pragma): New function.
2777 (c_register_pragma_1): If flag_preprocess_only, do nothing
2778 for non-expanded pragmas, for expanded ones push pragma's
2779 namespace and name into registered_pp_pragmas vector.
2780 (c_invoke_pragma_handler): Register OpenMP pragmas even when
2781 flag_preprocess_only, don't register GCC pch_preprocess
2782 pragma if flag_preprocess_only.
2783 * c-opts.c (c_common_init): Call init_pragma even if
2784 flag_preprocess_only.
2785 * c-pragma.c (c_pp_lookup_pragma): New prototype.
2786 * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Don't call
2787 cpp_register_pragma if flag_preprocess_only.
2789 2008-02-26 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
2792 * c-parser.c (c_parser_translation_unit): Warn for empty
2793 translation unit, not empty source file.
2795 2008-02-26 Paul Brook <paul@codesourcery.com>
2797 * config/arm/arm.c (thumb_set_frame_pointer): Ensure SP is first
2798 operand for Thumb-2.
2799 * config/arm/arm.h (reg_class): Add CORE_REGS.
2800 (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Ditto.
2801 (BASE_REG_CLASS): Use CORE_REGS.
2802 (PREFERRED_RELOAD_CLASS): Add STACK_REG.
2803 (REGNO_MODE_OK_FOR_REG_BASE_P): Use REGNO_MODE_OK_FOR_BASE_P.
2804 (REGNO_OK_FOR_INDEX_P): Exclude SP.
2805 (ARM_REG_OK_FOR_INDEX_P): Always define. Use
2806 ARM_REGNO_OK_FOR_INDEX_P.
2807 (ARM_PRINT_OPERAND_ADDRESS): Swap operands for [reg, sp].
2808 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn,
2809 arm_movsi_insn, thumb1_movsi_insni, stack_tie): Add "k" alternatives.
2810 (ldm/stm peepholes): Ditto.
2811 * config/arm/thumb2.md (thumb2_movdi): Add "k" alternatives.
2812 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp): Ditto.
2813 * config/arm/iwmmxt.md (iwmmxt_movsi_insn): Ditto.
2814 * config/arm/constraints.md: Enable "k" constraint on ARM.
2816 2008-02-27 Ben Elliston <bje@au.ibm.com>
2818 * config/rs6000/rs6000.c: Annotate cache line size field in all
2819 instances of struct processor_costs.
2821 2008-02-26 David Edelsohn <edelsohn@gnu.org>
2823 * dbgcnt.def (cfg_cleanup, cprop1, cprop2, dce_fast, dce_ud, dse1,
2824 dse2, gcse, if_conversion, if_after_combine, if_after_reload,
2825 jump_bypass): New counters.
2826 * cfgcleanup.c (cleanup_cfg): Add dbg_cnt.
2827 * dce.c (gate_ud_dce): Same.
2828 (gate_fast_dce): Same.
2829 * dse.c (gate_dse1): New function.
2830 (gate_dse2): New function.
2831 (gate_dse): Merge results of new gate functions.
2832 * gcse.c (gcse_main): Bracket cprop1 and cprop2 with dbg_cnt.
2833 (gate_handle_jump_bypass): Add dbg_cnt.
2834 (gate_handle_gcse): Add dbg_cnt.
2835 * ifcvt.c (gate_handle_if_conversion): Same.
2836 (gate_handle_if_after_combine): Same.
2837 (gate_handle_if_after_reload): Same.
2838 * Makefile.in: Add DBGCNT_H to cfgcleanup.o and ifcvt.o.
2840 2008-02-26 Edmar Wienskoski <edmar@freescale.com>
2842 * config/rs6000/rs6000.c (processor_costs): Update e300 cache
2844 * doc/invoke.texi: Add e300c2 and e300c3 to list of cpus.
2846 2008-02-26 Jason Merrill <jason@redhat.com>
2849 * attribs.c (decl_attributes): Leave ATTR_FLAG_TYPE_IN_PLACE
2850 alone if it's the naming decl for the type's main variant.
2852 2008-02-26 Tom Tromey <tromey@redhat.com>
2854 * system.h (USE_MAPPED_LOCATION): Poison.
2855 * Makefile.in (GTFILES): Put CPP_ID_DATA_H first.
2856 * tree-cfg.c (make_cond_expr_edges): Remove old location code.
2857 (make_goto_expr_edges): Likewise.
2858 (remove_bb): Likewise.
2859 (execute_warn_function_return): Likewise.
2860 * basic-block.h (struct edge_def) <goto_locus>: Change type to
2862 * c-common.c (fname_decl): Remove old location code.
2863 * tree-vect-transform.c (vect_finish_stmt_generation): Remove old
2865 * rtl.h (ASM_OPERANDS_SOURCE_LOCATION): Remove old-location
2867 (ASM_INPUT_SOURCE_LOCATION): Likewise.
2868 (gen_rtx_ASM_INPUT): Likewise.
2869 (gen_rtx_ASM_INPUT_loc): Likewise.
2870 (get_rtx_asm_OPERANDS): Remove.
2871 * cfglayout.c (insn_locators_alloc): Remove old location code.
2872 (set_curr_insn_source_location): Likewise.
2873 (curr_insn_locator): Likewise.
2874 * print-tree.c (print_node): Remove old location code.
2875 * tree-mudflap.c (mf_varname_tree): Remove old location code.
2876 (mf_file_function_line_tree): Remove test of USE_MAPPED_LOCATION.
2877 * cfgexpand.c (expand_gimple_cond_expr): Don't use
2878 location_from_locus.
2879 (construct_exit_block): Remove old location code.
2880 * emit-rtl.c (force_next_line_note): Remove old location code.
2881 * profile.c (branch_prob): Remove old location code.
2882 * tree-vectorizer.h (LOC, UNKNOWN_LOC, EXPR_LOC, LOC_FILE,
2883 LOC_LINE): Remove old-location variants.
2884 * langhooks.c (lhd_print_error_function): Remove old location
2886 * configure, config.in: Rebuilt.
2887 * configure.ac (--enable-mapped-location): Remove.
2888 * c-decl.c (c_init_decl_processing): Remove old location code.
2889 (finish_function): Likewise.
2890 * recog.c (decode_asm_operands): Remove old location code.
2891 * c-pch.c (c_common_read_pch): Remove old location code.
2892 * rtl.def (ASM_INPUT, ASM_OPERANDS): Remove old location
2894 * gimple-low.c (lower_function_body): Remove old location code.
2895 * toplev.c (unknown_location): Remove.
2896 (push_srcloc): Remove old-location variant.
2897 (process_options): Remove old location code.
2898 (lang_dependent_init): Likewise.
2899 * input.h (UNKNOWN_LOCATION): Move definition.
2900 (location_t): Undeprecate.
2901 (source_locus): Remove.
2902 (location_from_locus): Remove.
2903 (struct location_s): Remove.
2904 Remove all old-location code.
2905 (input_line, input_filename): Remove.
2906 * final.c (final_scan_insn): Remove old location code.
2907 * diagnostic.c (diagnostic_build_prefix): Remove
2908 USE_MAPPED_LOCATION test.
2909 * tree.h (gimple_stmt) <locus>: Now a location_t.
2910 (tree_exp) <locus>: Likewise.
2911 (DECL_IS_BUILTIN): Remove old-location variant.
2912 (annotate_with_file_line, annotate_with_locus): Likewise.
2913 (expr_locus, set_expr_locus): Update.
2914 * tree.c (build1_stat): Remove old location code.
2915 (last_annotated_node): Remove.
2916 (annotate_with_file_line): Remove old-location variant.
2917 (annotate_with_locus): Likewise.
2918 (expr_location): Remove old location code.
2919 (set_expr_location): Likewise.
2920 (expr_has_location): Likewise.
2921 (expr_locus): Likewise.
2922 (set_expr_locus): Likewise.
2923 (expr_filename): Don't use location_from_locus.
2924 (expr_lineno): Likewise.
2925 * rtl-error.c (location_for_asm): Remove old location code.
2926 * c-lex.c (cb_line_change): Remove old location code.
2927 (fe_file_change): Likewise.
2928 (cb_def_pragma): Likewise.
2929 (c_lex_with_flags): Likewise.
2930 * gengtype.c (do_typedef): Don't special-case location types.
2931 (define_location_structures): Remove.
2932 (main): Don't call define_location_structures.
2933 * tree-pretty-print.c (dump_implicit_edges): Remove old location
2936 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
2939 * builtins.def (BUILT_IN_STDARG_START): Remove.
2940 * builtins.c (expand_builtin): Remove BUILT_IN_STDARG_START.
2941 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
2942 * tree-inline.c (inline_forbidden_p_1): Likewise.
2944 2008-02-26 Richard Guenther <rguenther@suse.de>
2946 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
2947 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
2948 (lookup_decl_from_uid): Declare.
2949 (remove_decl_from_map): Likewise.
2950 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
2951 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
2952 (decl_for_uid_map): New global hashtable mapping DECL_UID
2954 (init_ttree): Allocate it.
2955 (insert_decl_to_uid_decl_map): New helper function.
2956 (make_node_stat): Insert new decls into the map.
2957 (copy_node_stat): Likewise.
2958 (lookup_decl_from_uid): New function.
2959 (remove_decl_from_map): Likewise.
2960 (print_decl_for_uid_map_statistics): New helper.
2961 (dump_tree_statistics): Call it.
2963 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
2964 (referenced_var_iterator): Adjust.
2965 (FOR_EACH_REFERENCED_VAR): Adjust.
2966 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
2967 (num_referenced_vars): Adjust.
2968 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
2969 (first_referenced_var): Remove.
2970 (end_referenced_vars_p): Likewise.
2971 (next_referenced_var): Likewise.
2972 (referenced_var_iterator_set): New helper function.
2973 * tree-dfa.c (referenced_var_lookup): Adjust.
2974 (referenced_var_check_and_insert): Likewise.
2975 (remove_referenced_var): Likewise.
2976 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
2977 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
2978 (verify_call_clobbering): Likewise.
2979 (verify_memory_partitions): Likewise.
2980 (init_tree_ssa): Allocate bitmap instead of hashtable for
2982 (delete_tree_ssa): Adjust.
2983 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
2984 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
2985 (compute_tag_properties): Likewise.
2986 (set_initial_properties): Likewise.
2987 (find_partition_for): Likewise.
2988 (update_reference_counts): Likewise.
2989 (dump_may_aliases_for): Likewise.
2990 * tree-ssa-operands.c (add_virtual_operand): Likewise.
2991 (add_call_clobber_ops): Likewise.
2992 (add_call_read_ops): Likewise.
2993 (get_asm_expr_operands): Likewise.
2994 * tree-into-ssa.c (dump_decl_set): Likewise.
2995 (update_ssa): Likewise.
2996 * tree-sra.c (scan_function): Likewise.
2997 (decide_instantiations): Likewise.
2998 (scalarize_parms): Likewise.
2999 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
3000 (dsa_named_for): Likewise.
3001 * tree-ssa-structalias.c (update_alias_info): Likewise.
3002 (merge_smts_into): Likewise.
3004 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3007 * doc/invoke.texi (-Wall): Add -Wvolatile-register-var.
3008 * c-opts.c (c_common_handle_option): Wall enables
3009 Wvolatile-register-var.
3010 * common.opt: Move Wvolatile-register-var to...
3013 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3015 * common.opt (Wlarger-than=): New.
3016 * doc/invoke.texi (Warning Options): Replace -Wlarger-than- with
3018 * opts.c (common_handle_option): Handle -Wlarger-than=.
3019 * optc-gen.awk: Likewise.
3020 * opth-gen.awk: Likewise.
3021 * stor-layout.c (layout_decl): Use -Wlarger-than= for warning.
3022 * tree-optimize.c (tree_rest_of_compilation): Likewise.
3024 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3026 * c-common.c (match_case_to_enum_1): Add appropriate
3027 OPT_W* parameter to warning.
3028 (c_do_switch_warnings): Likewise.
3029 * c-typeck.c (warning_init): Add one more parameter following
3031 (push_init_level): Update call to warning_init.
3032 (pop_init_level): Likewise.
3033 (add_pending_init): Likewise.
3034 (output_init_element: Likewise.
3036 2008-02-26 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
3039 * toplev.c (toplev_main): If there are warnings or error, print
3040 errors for ignored options.
3041 * opts.c (ignored_options): New static variable.
3042 (postpone_unknown_option_error): New.
3043 (print_ignored_options): New.
3044 (handle_option): Postpone errors for unknown -Wno-* options.
3045 * opts.h (print_ignored_options): Declare.
3047 2008-02-25 Richard Sandiford <rsandifo@nildram.co.uk>
3049 * config/mips/mips.md (loadgp_blockage, blockage): Change type
3052 2008-02-25 Richard Guenther <rguenther@suse.de>
3055 2008-02-25 Richard Guenther <rguenther@suse.de>
3057 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
3058 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
3059 (lookup_decl_from_uid): Declare.
3060 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
3061 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
3062 (decl_for_uid_map): New global hashtable mapping DECL_UID
3064 (init_ttree): Allocate it.
3065 (insert_decl_to_uid_decl_map): New helper function.
3066 (make_node_stat): Insert new decls into the map.
3067 (copy_node_stat): Likewise.
3068 (lookup_decl_from_uid): New function.
3069 (print_decl_for_uid_map_statistics): New helper.
3070 (dump_tree_statistics): Call it.
3072 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
3073 (referenced_var_iterator): Adjust.
3074 (FOR_EACH_REFERENCED_VAR): Adjust.
3075 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
3076 (num_referenced_vars): Adjust.
3077 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
3078 (first_referenced_var): Remove.
3079 (end_referenced_vars_p): Likewise.
3080 (next_referenced_var): Likewise.
3081 (referenced_var_iterator_set): New helper function.
3082 * tree-dfa.c (referenced_var_lookup): Adjust.
3083 (referenced_var_check_and_insert): Likewise.
3084 (remove_referenced_var): Likewise.
3085 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
3086 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3087 (verify_call_clobbering): Likewise.
3088 (verify_memory_partitions): Likewise.
3089 (init_tree_ssa): Allocate bitmap instead of hashtable for
3091 (delete_tree_ssa): Adjust.
3092 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
3093 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3094 (compute_tag_properties): Likewise.
3095 (set_initial_properties): Likewise.
3096 (find_partition_for): Likewise.
3097 (update_reference_counts): Likewise.
3098 (dump_may_aliases_for): Likewise.
3099 * tree-ssa-operands.c (add_virtual_operand): Likewise.
3100 (add_call_clobber_ops): Likewise.
3101 (add_call_read_ops): Likewise.
3102 (get_asm_expr_operands): Likewise.
3103 * tree-into-ssa.c (dump_decl_set): Likewise.
3104 (update_ssa): Likewise.
3105 * tree-sra.c (scan_function): Likewise.
3106 (decide_instantiations): Likewise.
3107 (scalarize_parms): Likewise.
3108 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
3109 (dsa_named_for): Likewise.
3110 * tree-ssa-structalias.c (update_alias_info): Likewise.
3111 (merge_smts_into): Likewise.
3113 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
3116 * doc/invoke.texi (-fcx-limited-range): Document new option.
3117 * toplev.c (process_options): Handle -fcx-fortran-rules.
3118 * common.opt: Add documentation for -fcx-fortran-rules.
3120 2008-02-25 Janne Blomqvist <jb@gcc.gnu.org>
3123 * doc/invoke.texi (-fcx-limited-range): Correct to be in line with
3124 actual behaviour and C99.
3126 2008-02-26 Ben Elliston <bje@au.ibm.com>
3128 * config/rs6000/rs6000.h (ASM_CPU_POWER5_SPEC): Define.
3129 (ASM_CPU_POWER6_SPEC): Likewise.
3130 (ASM_CPU_SPEC): Pass %(asm_cpu_power5) for -mcpu=power5.
3131 Likewise, pass %(asm_cpu_power6) for -mcpu=power6.
3132 (EXTRA_SPECS): Add asm_cpu_power5, asm_cpu_power6 spec strings.
3134 2008-02-25 Richard Guenther <rguenther@suse.de>
3136 * tree-flow.h (uid_decl_map_hash, uid_decl_map_eq): Move ...
3137 * tree.h (uid_decl_map_hash, uid_decl_map_eq): ... here.
3138 (lookup_decl_from_uid): Declare.
3139 * tree-ssa.c (uid_decl_map_eq, uid_decl_map_hash): Move ...
3140 * tree.c (uid_decl_map_eq, uid_decl_map_hash): ... here.
3141 (decl_for_uid_map): New global hashtable mapping DECL_UID
3143 (init_ttree): Allocate it.
3144 (insert_decl_to_uid_decl_map): New helper function.
3145 (make_node_stat): Insert new decls into the map.
3146 (copy_node_stat): Likewise.
3147 (lookup_decl_from_uid): New function.
3148 (print_decl_for_uid_map_statistics): New helper.
3149 (dump_tree_statistics): Call it.
3151 * tree-flow.h (struct gimple_df): Make referenced_vars a bitmap.
3152 (referenced_var_iterator): Adjust.
3153 (FOR_EACH_REFERENCED_VAR): Adjust.
3154 (FOR_EACH_REFERENCED_VAR_IN_BITMAP): New iterator.
3155 (num_referenced_vars): Adjust.
3156 * tree-flow-inline.h (gimple_referenced_vars): Adjust.
3157 (first_referenced_var): Remove.
3158 (end_referenced_vars_p): Likewise.
3159 (next_referenced_var): Likewise.
3160 (referenced_var_iterator_set): New helper function.
3161 * tree-dfa.c (referenced_var_lookup): Adjust.
3162 (referenced_var_check_and_insert): Likewise.
3163 (remove_referenced_var): Likewise.
3164 * tree-ssa.c (verify_flow_insensitive_alias_info): Use
3165 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3166 (verify_call_clobbering): Likewise.
3167 (verify_memory_partitions): Likewise.
3168 (init_tree_ssa): Allocate bitmap instead of hashtable for
3170 (delete_tree_ssa): Adjust.
3171 * tree-ssa-alias.c (mark_aliases_call_clobbered): Use
3172 FOR_EACH_REFERENCED_VAR_IN_BITMAP.
3173 (compute_tag_properties): Likewise.
3174 (set_initial_properties): Likewise.
3175 (find_partition_for): Likewise.
3176 (update_reference_counts): Likewise.
3177 (dump_may_aliases_for): Likewise.
3178 * tree-ssa-operands.c (add_virtual_operand): Likewise.
3179 (add_call_clobber_ops): Likewise.
3180 (add_call_read_ops): Likewise.
3181 (get_asm_expr_operands): Likewise.
3182 * tree-into-ssa.c (dump_decl_set): Likewise.
3183 (update_ssa): Likewise.
3184 * tree-sra.c (scan_function): Likewise.
3185 (decide_instantiations): Likewise.
3186 (scalarize_parms): Likewise.
3187 * tree-ssa-alias-warnings.c (build_reference_table): Likewise.
3188 (dsa_named_for): Likewise.
3189 * tree-ssa-structalias.c (update_alias_info): Likewise.
3190 (merge_smts_into): Likewise.
3192 2008-02-25 Andreas Krebbel <krebbel1@de.ibm.com>
3195 * cse.c (cse_insn): Avoid creation of overlapping MEMs.
3196 * alias.c (nonoverlapping_memrefs_p): Export for use in other modules.
3197 * alias.h (nonoverlapping_memrefs_p): Likewise.
3199 2008-02-25 Jan Beulich <jbeulich@novell.com>
3201 * Makefile.in: Also prefix uses of crt0.o and mcrt0.o with $(T).
3202 * config/i386/netware-libgcc.exp: Add __bswap?i2,
3203 __emultls_get_address, __emultls_register_common,
3204 __floatundi?f, and _Unwind_GetIPInfo.
3205 * config/i386/netware.c (gen_stdcall_or_fastcall_decoration):
3206 Sync with config/i386/winnt.c:gen_stdcall_or_fastcall_suffix().
3207 (gen_regparm_prefix): Likewise.
3208 (i386_nlm_encode_section_info): Sync with
3209 config/i386/winnt.c:i386_pe_encode_section_info().
3210 (i386_nlm_maybe_mangle_decl_assembler_name): New.
3211 i386_nlm_mangle_decl_assembler_name): New.
3212 (netware_override_options): New.
3213 * config/i386/netware.h (netware_override_options): Declare.
3214 (OVERRIDE_OPTIONS): Re-define to netware_override_options.
3215 (i386_nlm_mangle_decl_assembler_name): Declare.
3216 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Define.
3218 2008-02-25 Ben Elliston <bje@au.ibm.com>
3221 * c-decl.c (grokdeclarator): Remove unused local variables
3222 `typedef_type' and `type_as_written'.
3224 (find_rarely_executed_basic_blocks_and_crossing_edges): Remove
3225 unused local variable `has_hot_blocks'.
3226 (fix_crossing_conditional_branches): Remove unused local variable
3229 2008-02-25 Uros Bizjak <ubizjak@gmail.com>
3232 * builtins.def (BUILT_IN_NAN): Define as c99 builtin
3233 using DEF_C99_BUILTIN.
3234 (BUILT_IN_NANF): Ditto.
3235 (BUILT_IN_NANL): Ditto.
3237 2008-02-25 Ayal Zaks <zaks@il.ibm.com>
3238 Revital Eres <eres@il.ibm.com>
3240 * modulo-sched.c (calculate_must_precede_follow): Address TODO
3241 regarding the order of two dependent insns in the same row.
3243 2008-02-25 Eric Botcazou <ebotcazou@adacore.com>
3245 * stor-layout.c (layout_decl): Do not bump the alignment of a
3246 bit-field to more than byte alignment if it is packed.
3248 2008-02-24 David Edelsohn <edelsohn@gnu.org>
3250 * config/rs6000/rs6000.c (processor_costs): Add cache costs for
3253 2008-02-24 Diego Novillo <dnovillo@google.com>
3255 http://gcc.gnu.org/ml/gcc-patches/2008-02/msg01094.html
3258 * tree-vrp.c (vrp_evaluate_conditional): With
3259 -Wtype-limits, emit a warning when comparing against a
3260 constant outside the natural range of OP0's type.
3261 * c.opt (Wtype-limits): Move ...
3262 * common.opt (Wtype-limits): ... here.
3264 2008-02-24 Edmar Wienskoski <edmar@freescale.com>
3266 * config.gcc (powerpc*-*-*): Add new cores e300c2 and e300c3.
3267 * config/rs6000/e300c2c3.md: New file.
3268 * config/rs6000/rs6000.c (processor_costs): Add new costs for
3270 (rs6000_override_options): Add e300c2 and e300c3 cases to
3271 processor_target_table. Do not allow usage of Altivec or Spe
3272 with e300 cores. Initialize rs6000_cost for e300c2 and e300c3.
3273 (rs6000_issue_rate): Set issue rate for e300c2 and e300c3.
3274 * config/rs6000/rs6000.h (processor_type): Add
3275 PROCESSOR_PPCE300C2 and PROCESSOR_PPCE300C3.
3276 (ASM_CPU_SPEC): Add e300c2 and e300c3.
3277 * config/rs6000/rs6000.md (define_attr "cpu"): Add ppce300c2
3278 and ppce300c3. Include e300c2c3.md.
3280 2008-02-23 David Edelsohn <edelsohn@gnu.org>
3282 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Use STRICT_ALIGNMENT
3283 instead of TARGET_STRICT_ALIGN.
3285 2008-02-23 Joseph Myers <joseph@codesourcery.com>
3287 * explow.c (memory_address): Assert that the generated address is
3290 2008-02-23 Francois-Xavier Coudert <coudert@clipper.ens.fr>
3293 * config/darwin-protos.h: Add darwin_patch_builtins prototype.
3294 * config/darwin-ppc-ldouble-patch.def: New file.
3295 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS): New macro.
3296 * config/rs6000/rs6000.c (rs6000_init_builtins): Call
3297 SUBTARGET_INIT_BUILTINS if defined.
3298 * config/darwin.c (darwin_patch_builtin, darwin_patch_builtins):
3301 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
3304 * simplify-rtx.c (simplify_binary_operation_1): Add simplification
3305 of (and X (ior (not X) Y) and (and (ior (not X) Y) X).
3307 2008-02-23 Andrew Pinski <andrew_pinski@playstation.sony.com>
3310 * c-pch.c (c_common_valid_pch): Make the "too short to be a PCH
3311 file" warning condtional on -Winvalid-PCH.
3313 2008-02-23 Daniel Jacobowitz <dan@codesourcery.com>
3315 * expmed.c (extract_bit_field): Always use adjust_address for MEM.
3317 2008-02-23 Uros Bizjak <ubizjak@gmail.com>
3321 * config/i386/mmx.md (*mov<mode>_internal_rex64): Use "!y" to
3322 prevent reload from using MMX registers.
3323 (*mov<mode>_internal): Ditto.
3324 (*movv2sf_internal_rex64): Ditto.
3325 (*movv2sf_internal): Ditto.
3327 2008-02-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3329 PR documentation/31569
3330 * doc/install.texi2html: Use makeinfo --no-number-sections.
3332 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
3334 * config/rs6000/rs6000.c (rs6000_legitimize_address): Check to
3335 ensure that we can address an entire entity > 8 bytes. Don't
3336 generate reg+reg addressing for such data.
3338 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
3340 * config/rs6000/rs6000.h (CONSTANT_ALIGNMENT): Don't overalign
3341 strings when optimizing for size, unless the target cares about
3344 2008-02-22 Tom Tromey <tromey@redhat.com>
3346 * regclass.c (current_pass): Remove declaration.
3348 2008-02-22 Anatoly Sokolov <aesok@post.ru>
3350 * config/avr/libgcc.S (__RAMPZ__): Define.
3351 (__do_copy_data): Add for devices with 128KB code memory.
3353 2008-02-22 Nathan Froyd <froydnj@codesourcery.com>
3355 * config/rs6000/linuxspe.h (SUBSUBTARGET_OVERRIDE_OPTIONS):
3357 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Likewise.
3359 2008-02-22 Hans-Peter Nilsson <hp@axis.com>
3361 * config/cris/cris.h (REG_CLASS_FROM_LETTER): Recognize 'b' for
3364 2008-02-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3367 * c-typeck.c (build_binary_op): Warn about floating point
3368 comparisons if FLOAT_TYPE_P, not only for REAL_TYPE.
3370 2008-02-21 Janis Johnson <janis187@us.ibm.com>
3373 * config/rs6000/rs6000.c (rs6000_altivec_abi): Clarify comment.
3374 (rs6000_explicit_options): Split abi into spe_abi and altivec_abi,
3376 (rs6000_override_options): Set altivec_abi as default, not override,
3377 for 64-bit GNU/Linux; for 32-bit GNU/Linux default to altivec_abi for
3378 TARGET_ALTIVEC; default to TARGET_ALTIVEC_VRSAVE when AltiVec ABI
3379 is used; use new member spe_abi.
3380 (rs6000_handle_option): Set rs6000_explicit_options.vrsave; use
3381 spe_abi and altivec_abi.
3383 2008-02-22 Tomas Bily <tbily@suse.cz>
3385 * tree-vectorizer.c (vect_is_simple_reduction): Fix comment typo.
3387 2008-02-21 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3390 * config.build (build_file_translate): Set to `CMD //c' only if
3392 * Makefile.in (build_file_translate): Improve comment.
3394 2008-02-21 Jan Hubicka <jh@suse.cz>
3396 * predict.def (PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL,
3397 PRED_TREE_OPCODE_POSITIVE, PRED_TREE_OPCODE_NONEQUAL, PRED_CALL,
3398 PRED_TREE_EARLY_RETURN, PRED_NULL_RETURN): Update.
3400 2008-02-21 Michael Matz <matz@suse.de>
3403 * config/i386/i386.c (ix86_expand_branch): Add missing breaks.
3405 2008-02-21 Uros Bizjak <ubizjak@gmail.com>
3407 * config/i386/i386.md (mov<mode>cc): Macroize expander from movsfcc,
3408 movdfcc and movxfcc using X87MODEF mode iterator and SSE_FLOAT_MODE_P
3410 * config/i386/sse.md (<sse>_movup<ssemodesuffixf2c>): Macroize insn
3411 from sse_movups adn sse2_movupd using SSEMODEF2P mode iterator and
3412 SSE_VEC_FLOAT_MODE_P as insn constraint.