re PR target/44754 (m32c_pragma_memregs / m32c_pragma_address warnings)
[gcc.git] / gcc / ChangeLog
1 2010-11-05 Uros Bizjak <ubizjak@gmail.com>
2
3 * config.gcc: Support --with-fpmath=avx for x86.
4 * config/i386/avxmath.h: New.
5 * doc/install.texi (--with-fpmath=): Document --with-fpmath=avx.
6
7 2010-11-05 Ian Lance Taylor <iant@google.com>
8
9 * tree.h (struct tree_type): Don't use descbits in GTY annotation.
10 * gengtype.c (walk_type): Don't recognize descbits option.
11
12 2010-11-05 Joseph Myers <joseph@codesourcery.com>
13
14 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG,
15 WORD_SWITCH_TAKES_ARG): Remove.
16 * doc/options.texi (Args): Document.
17 * doc/tm.texi.in (WORD_SWITCH_TAKES_ARG): Remove.
18 * doc/tm.texi: Regenerate.
19 * opt-functions.awk (switch_flags): Handle Args.
20 * opts-common.c: Update comment on tm.h include.
21 (decode_cmdline_option): Handle options with multiple arguments.
22 Don't check WORD_SWITCH_TAKES_ARG for unknown options.
23 * opts.h (CL_SEPARATE_NARGS_SHIFT, CL_SEPARATE_NARGS_MASK): Define.
24 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
25 CL_COMMON): Update values.
26 * system.h (WORD_SWITCH_TAKES_ARG): Poison.
27 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove.
28 * config/darwin.opt (Zsegaddr, sectalign, sectcreate,
29 sectobjectsymbols, sectorder, segcreate, segprot): New.
30
31 2010-11-05 H.J. Lu <hongjiu.lu@intel.com>
32 Uros Bizjak <ubizjak@gmail.com>
33
34 * config/i386/i386.c (ix86_expand_move): Set use_avx256_p if
35 256bit AVX register is used.
36 (ix86_expand_vector_move_misalign): Likewise.
37 (ix86_expand_vector_move): Replace use_avx256_p with
38 VALID_AVX256_REG_MODE.
39
40 2010-11-05 Joern Rennecke <amylaar@spamcop.net>
41
42 PR target/44750
43 * config/pdp11/t-pdp11 (dwarf2out.o, java/constants.o): Undo last
44 change. Set $@-warn.o to -Wno-error.
45
46 PR bootstrap/44756
47 * expr.c (emit_push_insn): Cast value of PUSH_ROUNDING before
48 comparing it to a signed value.
49
50 PR bootstrap/44756
51 * expr.c (can_store_by_pieces): Add ATTRIBUTE_UNUSED to cst.
52 * haifa-sched.c (initiate_bb_reg_pressure_info): Add ATTRIBUTE_UNUSED
53 to i.
54
55 PR target/44754
56 * config/m32c/m32c.c (m32_function_arg): Rename declaration to...
57 (m32c_function_arg). Add comma between arguments two and three.
58 (m32c_promote_prototypes): Remove declaration.
59 (current_function_special_page_vector): Likewise.
60 (m32c_regno_reg_class): Change return type to enum reg_class.
61 (m32c_pushm_popm): Use add_reg_note.
62 (m32c_push_rounding): Change return type to unsigned int.
63 (m32c_legitimize_reload_address): Cast argument 11 to push_reload to
64 enum reload_type.
65 (m32c_insert_attributes): Constify variable name.
66 (m32c_output_aligned_common): Add ATTRIBUTE_UNUSED to argument decl.
67 (m32c_prepare_shift): Remove variable lref.
68 (m32c_expand_movcc): Remove variable cmp.
69 (m32c_expand_insv): Fix check of op0 rtx_code to use GET_CODE.
70 (m32c_compare_redundant): Remove variable op2.
71 * config/m32c/m32c-pragma.c ("c-family/c-common.h"): Include.
72 (m32c_pragma_memregs): Assign the number to target_memregs.
73 (m32c_pragma_address): Remove variable var_str.
74 * config/m32c/m32c.h (REG_CLASS_FROM_CONSTRAINT): Case value to
75 enum reg_class.
76 (LIMIT_RELOAD_CLASS, SECONDARY_RELOAD_CLASS): Likewise.
77 * config/m32c/bitops.md (andsi3): Add default case to switch.
78 (iorsi3, xorsi3): Likewise.
79 * config/m32c/addsub.md (addsi3_1, subsi3_1): Likewise.
80 * config/m32c/jump.md (call, call_value): Likewise.
81 * config/m32c/m32c-protos.h (m32c_push_rounding): Update prototype.
82 (m32c_regno_reg_class): Likewise.
83 (current_function_special_page_vector): Declare.
84
85 2010-11-05 Jakub Jelinek <jakub@redhat.com>
86
87 * cfgexpand.c (expand_debug_expr): Handle MEM_REF
88 with non-zero offset.
89
90 PR tree-optimization/46099
91 * tree-parloops.c (take_address_of): Add GSI argument. Return NULL
92 if it is NULL and uid wasn't found in the hash table. Just fold the
93 result if it is NULL otherwise. Insert other potentially needed
94 stmts right before current stmt instead of on the entry edge.
95 (struct elv_data): Add gsi and reset fields.
96 (eliminate_local_variables_1): Adjust caller. If take_address_of
97 failed for debug stmt, set dta->reset and return.
98 (eliminate_local_variables_stmt): Change STMT argument for GSI,
99 pass GSI through to the callback, handle resetting of debug stmts.
100 (eliminate_local_variables): Adjust caller. Process debug stmts
101 in second phase.
102
103 PR middle-end/43690
104 * gimplify.c (gimplify_asm_expr): If a "m" input is a
105 {pre,post}{in,de}crement, fail.
106
107 PR debug/46307
108 * tree-ssa-operands.c (get_expr_operands): Handle FMA_EXPR.
109 * tree-pretty-print.c (dump_generic_node): Likewise.
110 (op_code_prio): Likewise.
111 * cfgexpand.c (expand_debug_expr): Likewise.
112
113 2010-11-04 Paul Koning <ni1d@arrl.net>
114
115 * doc/md.texi (Machine Constraints): Correct formatting in PDP-11
116 constraints.
117
118 2010-11-04 Chao-ying Fu <fu@mips.com>
119
120 * configure.ac: Test assembler support for DSP Rev1 mult.
121 * configure: Regenerate.
122 * config.in: Regenerate.
123 * config/mips/mips.h (ISA_HAS_DSP_MULT): New define.
124 * config/mips/mips.c (CODE_FOR_mips_mult): New define.
125 (CODE_FOR_mips_multu): New define.
126 (mips_builtins): Move madd, maddu, msub, msubu, mult, multu from
127 dspr2_32 to dsp_32.
128 (mips_mulsidi3_gen_fn): Test (TARGET_FIX_R4000 && !ISA_HAS_DSP).
129 Delete returns when ISA_HAS_DSPR2 because the old patterns are deleted.
130 * config/mips/mips-dsp.md (mips_madd<u>, mips_msub<u>):
131 New define_expand patterns.
132 * config/mips/constraints.md (ka): Update the constraint to test
133 ISA_HAS_DSP_MULT instead of ISA_HAS_DSPR2.
134 * config/mips/mips-dspr2.md (mips_madd<u>, mips_msub<u>, mips_mult,
135 mips_multu): Delete.
136 * config/mips/mips.md (<u>mulsidi3_32bit): Add comments.
137 Change target constraint to "ka".
138 Use (!TARGET_FIX_R4000 || ISA_HAS_DSP), instead of
139 (!TARGET_FIX_R4000 && !ISA_HAS_DSPR2).
140 Emit the accumulator destination when ISA_HAS_DSP_MULT.
141 (<u>msubsidi4): Add comments. Test ISA_HAS_DSP.
142 Emit the accumulator destination when ISA_HAS_DSP_MULT.
143 (<u>maddsidi4): Likewise.
144 * doc/extend.texi (MIPS DSP Built-in Functions): Move madd, maddu,
145 msub, msubu, mult, multu built-in functions from DSP r2 to DSP r1.
146
147 2010-11-04 Paul Koning <ni1d@arrl.net>
148
149 * doc/md.texi (Machine Constraints): Add PDP-11 constraints.
150
151 2010-11-04 Paul Koning <ni1d@arrl.net>
152
153 * doc/invoke.texi (PDP-11 Options): Delete -msplit, -mno-split.
154
155 2010-11-04 Nicola Pero <nicola.pero@meta-innovation.com>
156
157 Fixed using the Objective-C 2.0 dot-syntax with class names.
158 * c-parser.c (c_parser_next_token_starts_declspecs): In
159 Objective-C, detect Objective-C 2.0 dot-syntax with a class name.
160 (c_parser_next_token_starts_declaration): Same.
161 (c_parser_postfix_expression): Parse the Objective-C 2.0
162 dot-syntax with a class name.
163
164 2010-11-04 Pat Haugen <pthaugen@us.ibm.com>
165
166 * final.c (compute_alignments): Compute/free loop info all the time.
167 * config/rs6000/rs6000.h (LOOP_ALIGN): Define.
168 * config/rs6000/rs6000-protos.h (rs6000_loop_align): Declare.
169 * config/rs6000/t-rs6000 (rs6000.o): Add cfgloop.h.
170 * config/rs6000/rs6000.c (cfgloop.h): Include.
171 (can_override_loop_align): New.
172 (rs6000_option_override_internal): Set it.
173 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Define target hook.
174 (rs6000_loop_align): New function.
175 (rs6000_loop_align_max_skip): Likewise.
176
177 2010-11-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
178
179 PR driver/45703
180 * collect2.c (main): Print --help output to stdout. Do not
181 exit right away, so ld --help is appended. Add empty lines
182 to separate output suitably.
183
184 2010-11-04 Jakub Jelinek <jakub@redhat.com>
185
186 PR tree-optimization/46233
187 * ipa-pure-const.c (local_pure_const): Do noreturn discovery
188 after calling analyze_function, not before.
189
190 PR target/46234
191 * config/rs6000/rs6000.c (rs6000_va_start): Use build_simple_mem_ref
192 instead of build_va_arg_indirect_ref.
193 * config/spu/spu.c (spu_va_start): Likewise.
194 * config/s390/s390.c (s390_va_start): Likewise.
195
196 2010-11-03 Uros Bizjak <ubizjak@gmail.com>
197
198 PR middle-end/46292
199 * lower-subreg.c (simplify_subreg_concatn): For VOIDmode elements,
200 if the innermode is not vector mode, determine the mode of a subreg
201 by using mode_for_size of inner_size.
202
203 2010-11-04 Richard Guenther <rguenther@suse.de>
204
205 PR rtl-optimization/46183
206 * gcse.c (execute_rtl_cprop): Cleanup the CFG if something changed.
207 (execute_rtl_pre): Likewise.
208 (execute_rtl_hoist): Likewise.
209
210 2010-11-04 Richard Guenther <rguenther@suse.de>
211
212 PR tree-optimization/46068
213 * ipa-split.c (consider_split): Remove gcc_unreachable.
214
215 2010-11-04 Richard Guenther <rguenther@suse.de>
216
217 * tree-nested.c (build_addr): Use build_fold_addr_expr.
218
219 2010-11-04 Richard Guenther <rguenther@suse.de>
220
221 PR tree-optimization/45991
222 * gimplify.c (force_gimple_operand_1): Use the provded test
223 function in the initial test.
224
225 2010-11-04 Jeff Law <law@redhat.com>
226
227 * ira.c (validate_equiv_mem): Remove code to avoid invalidation
228 of readonly memory equivalances for const/pure calls.
229
230 2010-11-04 Richard Guenther <rguenther@suse.de>
231
232 PR tree-optimization/45733
233 * tree-vect-stmts.c (reverse_vec_elements): Honor the
234 permute builtins function return type.
235
236 2010-11-04 Joern Rennecke <amylaar@spamcop.net>
237
238 PR middle-end/44765
239 * emit-rtl.c (gen_rtx_REG): Before using PIC_OFFSET_TABLE_REGNUM
240 as an index, check it is not INVALID_REGNUM.
241
242 PR bootstrap/44756
243 * ifcvt.c (noce_emit_cmove): Add ATTRIBUTE_UNUSED to target and
244 unsignedp.
245 * reload1.c (set_reload_reg): Add ATTRIBUTE_UNUSED to regno.
246
247 PR bootstrap/44756
248 * function.c (thread_prologue_and_epilogue_insns): Add
249 ATTRIBUTE_UNUSED to seq, epilogue_end and entry_edge.
250
251 PR bootstrap/44756
252 * varasm.c (asm_output_bss): Add ATTRIBUTE_UNUSED to function.
253
254 PR target/44750
255 * config/pdp11/pdp11.c: (pdp11_secondary_reload): Now static.
256 (pdp11_preferred_reload_class): Rename class to rclass.
257 (pdp11_preferred_output_reload_class): Likewise.
258 * config/pdp11/t-pdp11 (dwarf2out.o): Add -Wno-error=type-limits to
259 ALL_COMPILERFLAGS .
260 (java/constants.o): Add -Wno-error to ALL_COMPILERFLAGS.
261
262 PR bootstrap/44756
263 * genopinit.c (main) [FIXUNS_TRUNC_LIKE_FIX_TRUNC]: Cast
264 iteration variables to enum machine_mode.
265
266 PR target/44751
267 * config/h8300/h8300.c: Include df.h.
268 (push, pop): Use add_reg_note.
269 (compute_plussi_cc, compute_logical_op_cc): Return enum attr_c.
270 (compute_a_shift_cc): Likewise.
271 (expand_a_shift): Argument code has type enum rtx_code.
272 (struct shift_insn): Member cc_valid has type enum attr_cc.
273 (struct shift_info) <cc_inline, cc_special>: Likewise.
274 enum attr_cc.
275 * config/h8300/h8300-protos.h (compute_plussi_cc): Update prototype.
276 (compute_a_shift_cc, compute_logical_op_cc, expand_a_shift): Likewise.
277
278 2010-11-04 Ira Rosen <irar@il.ibm.com>
279
280 PR tree-optimization/46213
281 * tree-vect-loop.c (vect_is_simple_reduction_1): Handle
282 MINUS_EXPR only if the first operand is reduction operand.
283
284 2010-11-04 Richard Guenther <rguenther@suse.de>
285 Richard Henderson <rth@redhat.com>
286
287 * tree.def (FMA_EXPR): New tree code.
288 * expr.c (expand_expr_real_2): Add FMA_EXPR expansion code.
289 * gimple.c (gimple_rhs_class_table): FMA_EXPR is a GIMPLE_TERNARY_RHS.
290 * tree-cfg.c (verify_gimple_assign_ternary): Verify FMA_EXPR types.
291 * tree-inline.c (estimate_operator_cost): Handle FMA_EXPR.
292 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
293 * tree-ssa-math-opts.c (convert_mult_to_fma): New function.
294 (execute_optimize_widening_mul): Call it. Reorganize to allow
295 dead stmt removal. Move TODO flags ...
296 (pass_optimize_widening_mul): ... here.
297 * flag-types.h (enum fp_contract_mode): New enum.
298 * common.opt (flag_fp_contract_mode): New variable.
299 (-ffp-contract): New option.
300 * opts.c (common_handle_option): Handle it.
301 * doc/invoke.texi (-ffp-contract): Document.
302 * tree.h (fold_fma): Declare.
303 * builtins.c (fold_fma): New function.
304 (fold_builtin_fma): Likewise.
305 (fold_builtin_3): Call it for fma.
306 * fold-const.c (fold_ternary_loc): Fold FMA_EXPR.
307 * optabs.c (optab_for_tree_code): Handle FMA_EXPR.
308 * config/i386/sse.md (fms<mode>4, fnma<mode>, fnms<mode>4):
309 New expanders.
310 * doc/md.texi (fms<mode>4, fnma<mode>, fnms<mode>4): Document new
311 named patterns.
312 * genopinit.c (optabs): Initialize fms_optab, fnma_optab and fnms_optab.
313 * optabs.h (enum optab_index): Add OTI_fms, OTI_fnma and OTI_fnms.
314 (fms_optab, fnma_optab, fnms_optab): New defines.
315 * gimplify.c (gimplify_expr): Handle binary truth expressions
316 explicitly. Handle FMA_EXPR.
317 * tree-vect-stmts.c (vectorizable_operation): Handle ternary
318 operations.
319
320 2010-11-04 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
321 Richard Guenther <rguenther@suse.de>
322
323 * passes.c (init_optimization_passes): Move veclower after SSA.
324 * tree-vect-generic.c (uniform_vector_p): New function.
325 (expand_vector_operations_1): Handle conversion.
326 (pass_lower_vector): Update SSA form.
327
328 2010-11-04 Iain Sandoe <iains@gcc.gnu.org>
329
330 * configure.ac: Filter -mdynamic-no-pic from CFLAGS when testing for
331 plugin capabilities.
332 * configure: Regenerate.
333
334 2010-11-03 Xinliang David Li <davidxl@google.com>
335
336 PR target/46200
337 * tree-ssa-loop-ivopts.c (get_computation_cost_at):
338 Adjust cbase if the use stmt is after iv update.
339
340 2010-11-03 Kaz Kojima <kkojima@gcc.gnu.org>
341
342 * config.gcc (sh64*) <tm_file>: Add newlib-stdint.h for newlib targets.
343
344 2010-11-03 Kaz Kojima <kkojima@gcc.gnu.org>
345
346 * config/sh/sh.c (sh_expand_prologue): Remove unnecessary
347 comment. Pass true to the last argument of output_stack_adjust.
348
349 2010-11-03 H.J. Lu <hongjiu.lu@intel.com>
350
351 PR target/46295
352 * config/i386/i386.c (ix86_expand_vector_move): Set use_avx256_p
353 if 256bit AVX register is used.
354
355 2010-11-03 Michael Meissner <meissner@linux.vnet.ibm.com>
356
357 * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support to use
358 xsmindp/xsmaxdp on VSX for single precision min/max.
359 * config/rs6000/vsx.md (vsx_smaxsf3): Ditto.
360 (vsx_sminsf3): Ditto.
361
362 2010-11-03 Eric Botcazou <ebotcazou@adacore.com>
363
364 * combine.c (try_combine): Fix formatting issues, improve comments and
365 fix a pasto.
366
367 2010-11-03 Eric Botcazou <ebotcazou@adacore.com>
368
369 * tree-tailcall.c (find_tail_calls): Convert the operands to the type
370 of the result before building binary expressions.
371
372 2010-11-03 H.J. Lu <hongjiu.lu@intel.com>
373
374 PR rtl-optimization/45865
375 * Makefile.in (df-problems.o): Revert revision 164552.
376 * basic-block.h (enum bb_flags): Likewise.
377 * cfgcleanup.c (block_was_dirty): Likewise.
378 (try_forward_edges): Likewise.
379 (try_crossjump_bb): Likewise.
380 (try_head_merge_bb): Likewise.
381 (try_optimize_cfg): Likewise.
382 (cleanup_cfg): Likewise.
383 * df-core.c (df_set_bb_dirty): Likewise.
384 * df-problems.c: Likewise.
385 (df_simulate_find_uses): Likewise.
386 (MEMREF_NORMAL, MEMREF_VOLATILE): Likewise.
387 (find_memory, find_memory_store): Likewise.
388 (can_move_insns_across): Likewise.
389 * df.h (can_move_insns_across): Likewise.
390 * ifcvt.c (find_memory): Likewise.
391 (dead_or_predicable): Likewise.
392
393 2010-11-03 Richard Guenther <rguenther@suse.de>
394
395 PR middle-end/46288
396 * predict.c (strip_predict_hints): Simply DCE builtin expect if
397 the result is unused.
398
399 2010-11-03 Jakub Jelinek <jakub@redhat.com>
400
401 PR tree-optimization/46009
402 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
403 cond_if_else_store_replacement if bb1 and bb2 have the same
404 single successor.
405 (cond_store_replacement): Use gimple_assign_single_p, don't
406 check if rhs is SSA_NAME or invariant. Call release_defs for
407 assign.
408 (cond_if_else_store_replacement): New function.
409
410 2010-11-03 Richard Guenther <rguenther@suse.de>
411
412 * opts.c (finish_options): Properly check for all WHOPR
413 flags before complaining about -flto-partition.
414
415 2010-11-04 Alan Modra <amodra@gmail.com>
416
417 * config/rs6000/rs6000.c (rs6000_pic_labelno): Make static.
418 (rs6000_emit_load_toc_table): Don't use rs6000_pic_labelno when
419 TARGET_SECURE_PLT.
420 * config/rs6000/sysv4.h (rs6000_pic_labelno): Don't declare.
421 * config/rs6000/rs6000.md (load_toc_v4_PIC_3b): Use "b" constraint
422 on input, "r" on output.
423
424 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
425
426 Implemented -fobjc-std=objc1 flag.
427 * doc/invoke.texi (Option Summary): Document -fobjc-std=objc1
428 option.
429 * doc/standards.texi (Standards): Updated the section on
430 Objective-C; mention support for Objective-C 2.0 features and the
431 new -fstd-objc=objc1 flag to disable them.
432
433 2010-11-03 Richard Guenther <rguenther@suse.de>
434
435 PR middle-end/46241
436 * dwarf2out.c (scope_die_for): Properly detect global scope.
437
438 2010-11-03 Richard Guenther <rguenther@suse.de>
439
440 PR tree-optimization/46190
441 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
442 Properly compute peel iterations.
443
444 2010-11-03 Richard Guenther <rguenther@suse.de>
445
446 PR tree-optimization/46286
447 * tree-ssa-structalias.c (get_constraint_for_1): Avoid referencing
448 re-allocated vector data.
449
450 2010-11-03 H.J. Lu <hongjiu.lu@intel.com>
451
452 PR target/46285
453 * config/i386/i386.c (ix86_expand_call): Conditionally decorate
454 calls with UNSPEC_CALL_NEEDS_VZEROUPPER unspec before reload
455 is completed.
456
457 2010-11-03 Richard Guenther <rguenther@suse.de>
458
459 PR tree-optimization/46217
460 * tree-ssa.c (non_rewritable_mem_ref_base): Check if volatile
461 flag matches.
462 (execute_update_addresses_taken): Likewise.
463
464 2010-11-03 Joern Rennecke <joern.rennecke@embecosm.com>
465
466 PR bootstrap/44335
467 * targhooks.c (targhook_words_big_endian): New function.
468 (targhook_float_words_big_endian): Likewise.
469 * targhooks.h (targhook_words_big_endian): Declare.
470 (targhook_float_words_big_endian): Likewise.
471 * target.def (words_big_endian, float_words_big_endian): New hooks.
472
473 2010-11-03 Jakub Jelinek <jakub@redhat.com>
474
475 PR tree-optimization/46165
476 * tree-ssa-pre.c (eliminate): Return TODO_cleanup_cfg if changing
477 a normal call into noreturn call.
478
479 2010-11-03 Richard Guenther <rguenther@suse.de>
480
481 PR middle-end/46251
482 * builtins.c (expand_builtin_sincos): Properly build MEM_REFs,
483 not INDIRECT_REFs.
484
485 2010-11-03 Jakub Jelinek <jakub@redhat.com>
486
487 PR tree-optimization/46107
488 * cfgloopmanip.c (loop_version): Set irred_flag back into entry->flags
489 if cfg_hook_duplicate_loop_to_header_edge failed.
490
491 2010-11-03 Ian Lance Taylor <iant@google.com>
492
493 PR lto/46273
494 * config.gcc: Don't set lto_binary_reader.
495 * doc/install.texi (Prerequisites): Remove libelf paragraphs.
496 (Configuration): Mention --disable-lto. Remove --with-libelf
497 paragraph.
498
499 2010-11-03 Jakub Jelinek <jakub@redhat.com>
500
501 PR debug/46252
502 * reload1.c (delete_dead_insn): Use prev_active_insn instead of
503 prev_real_insn.
504 * gcse.c (insert_insn_end_basic_block): Likewise.
505
506 PR rtl-optimization/46034
507 PR rtl-optimization/46212
508 PR rtl-optimization/46248
509 * combine.c (try_combine): If added_sets_2 where i0dest_in_i0src
510 and i0 feeds i1 and i1 feeds i2 or i0 feeds i2, make a copy of i1src
511 before i0dest -> i0src substitution and pass 1 instead of 0 as last
512 argument to subst on i2pat.
513
514 2010-11-02 Ian Lance Taylor <iant@google.com>
515
516 * configure.ac: Use AC_SYS_LARGEFILE.
517 * configure: Rebuild.
518 * config.in: Rebuild.
519
520 2010-11-02 Nathan Froyd <froydnj@codesourcery.com>
521
522 * builtins.c (fold_builtin_signbit): Use build_zero_cst instead of
523 fold_convert.
524 * c-typeck.c (build_function_call_vec): Likewise.
525 * cfgexpand.c (expand_debug_expr): Likewise.
526 * cgraphunit.c (assemble_thunk): Likewise.
527 * config/sparc/sparc.c (sparc_fold_builtin): Likewise.
528 * fold-const.c (fold_unary_loc, fold_mult_zconjz): Likewise.
529 (fold_binary_loc, fold_ternary_loc): Likewise.
530 * gimple-fold.c (get_symbol_constant_value): Likewise.
531 * gimple-low.c (lower_builtin_setjmp): Likewise.
532 * gimple.c (gimple_cond_get_ops_from_tree): Likewise.
533 * gimplify.c (gimplify_init_constructor): Likewise.
534 * lambda.h (build_linear_expr): Likewise.
535 * omp-low.c (omp_reduction_init): Likewise.
536 * tree-inline.c (remap_ssa_name): Likewise.
537 * tree-object-size.c (compute_object_sizes): Likewise.
538 * tree-sra.c (init_subtree_with_zero): Likewise.
539 (sra_ipa_modify_assign): Likewise.
540 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Likewise.
541 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Likewise.
542 (eliminate_plus_minus_pair, eliminate_not_pairs): Likewise.
543 (undistribute_ops_list): Likewise.
544 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
545 * tree-vect-stmts.c (vectorizable_call): Likewise.
546 * tree.c (build_vector_from_ctor, build_one_cst): Likewise.
547 (build_zero_cst): Handle more cases directly. Update comment.
548
549 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
550
551 * config/i386/i386-protos.h (ix86_split_call_pop_vzeroupper): Removed.
552 * config/i386/i386.c (ix86_split_call_pop_vzeroupper): Likewise.
553
554 * config/i386/i386.md (*call_pop_0_vzeroupper): Use parallel
555 and call ix86_split_call_vzeroupper instead of
556 ix86_split_call_pop_vzeroupper.
557 (*call_pop_1_vzeroupper): Likewise.
558 (*sibcall_pop_1_vzeroupper): Likewise.
559 (*call_value_pop_0_vzeroupper): Likewise.
560 (*call_value_pop_1_vzeroupper): Likewise.
561 (*sibcall_value_pop_1_vzeroupper): Likewise.
562
563 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
564
565 * config/i386/i386.md (*sibcall_1_rex64_vzeroupper): Fix a typo.
566
567 2010-11-02 Eric Botcazou <ebotcazou@adacore.com>
568
569 * basic-block.h (insert_insn_end_bb_new): Delete.
570 * cfgrtl.c (insert_insn_end_bb_new): Likewise.
571
572 2010-11-02 Uros Bizjak <ubizjak@gmail.com>
573 H.J. Lu <hongjiu.lu@intel.com>
574
575 * config/i386/i386-protos.h (ix86_split_call_vzeroupper): New.
576 (ix86_split_call_pop_vzeroupper): Likewise.
577
578 * config/i386/i386.c (move_or_delete_vzeroupper_2): Rewrite the loop.
579 (ix86_expand_call): Conditionally decorate calls with
580 UNSPEC_CALL_NEEDS_VZEROUPPER unspec.
581 (ix86_split_call_vzeroupper): New.
582 (ix86_split_call_pop_vzeroupper): Likewise.
583
584 * config/i386/i386.md (UNSPEC_CALL_NEEDS_VZEROUPPER): New.
585 (*call_pop_0_vzeroupper): New insn_and_split pattern.
586 (*call_pop_1_vzeroupper): Likewise.
587 (*sibcall_pop_1_vzeroupper): Likewise.
588 (*call_0_vzeroupper): Likewise.
589 (*call_1_vzeroupper): Likewise.
590 (*sibcall_1_vzeroupper): Likewise.
591 (*call_1_rex64_vzeroupper): Likewise.
592 (*call_1_rex64_ms_sysv_vzeroupper): Likewise.
593 (*call_1_rex64_large_vzeroupper): Likewise.
594 (*sibcall_1_rex64_vzeroupper): Likewise.
595 (*call_value_pop_0_vzeroupper): Likewise.
596 (*call_value_pop_1_vzeroupper): Likewise.
597 (*sibcall_value_pop_1_vzeroupper): Likewise.
598 (*call_value_0_vzeroupper): Likewise.
599 (*call_value_0_rex64_vzeroupper): Likewise.
600 (*call_value_0_rex64_ms_sysv_vzeroupper): Likewise.
601 (*call_value_1_vzeroupper): Likewise.
602 (*sibcall_value_1_vzeroupper): Likewise.
603 (*call_value_1_rex64_vzeroupper): Likewise.
604 (*call_value_1_rex64_ms_sysv_vzeroupper): Likewise.
605 (*call_value_1_rex64_large_vzeroupper): Likewise.
606 (*sibcall_value_1_rex64_vzeroupper): Likewise.
607
608 2010-11-02 Ian Lance Taylor <iant@google.com>
609
610 PR lto/46273
611 * config.gcc: Revert last patch: set lto_binary_reader.
612
613 2010-11-02 Richard Guenther <rguenther@suse.de>
614
615 PR tree-optimization/46149
616 * tree-ssa-structalias.c (get_constraint_for_1): Properly handle
617 non-indirect MEM_REF variants.
618
619 2010-11-02 Richard Guenther <rguenther@suse.de>
620
621 PR tree-optimization/46216
622 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
623 Check if we can propagate from a POINTER_PLUS_EXPR before doing so.
624
625 2010-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
626
627 * configure.ac (*-*-irix6*): Disable set_have_as_tls.
628 (*-*-osf*): Likewise.
629 * configure: Regenerate.
630
631 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
632
633 * config/i386/driver-i386.c (host_detect_local_cpu): Updated
634 for Intel Core 2 and Core i7.
635
636 2010-11-02 Maxim Kuvyrkov <maxim@codesourcery.com>
637
638 Model decoder of Core 2/i7 for multipass scheduling.
639
640 * config/i386/i386-protos.h (struct ix86_first_cycle_multipass_data_):
641 New type to hold target-specific data for multipass scheduling.
642 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
643 * config/i386/i386.c (ia32_multipass_dfa_lookahead): Update for
644 Core 2/i7.
645 (core2i7_secondary_decoder_max_insn_size,)
646 (core2i7_secondary_ifetch_block_size, core2i7_ifetch_block_max_insns):
647 New static variables.
648 ([const_]ix86_first_cycle_multipass_data_t): New typedefs.
649 ([_]ix86_first_cycle_multipass_data): New static variable.
650 (core2i7_first_cycle_multipass_init, core2i7_dfa_poast_advance_cycle):
651 Implement targetm.sched hooks.
652 (core2i7_first_cycle_multipass_filter_ready_try): New static subroutine
653 of ...
654 (core2i7_first_cycle_multipass_{begin, issue, backtrack, end, fini}):
655 Implement new targetm.sched hooks.
656 (ix86_sched_init_global, TARGET_SCHED_INIT_GLOBAL): Define
657 targetm.sched hook to install multipass scheduling hooks on demand.
658
659 * doc/tm.texi.in: Document new targetm.sched hooks.
660 * doc/tm.texi: Regenerate.
661
662 * haifa-sched.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
663 (first_cycle_multipass_data_t): New typedef.
664 (struct choice_entry: target_data): New field.
665 (max_issue): Add first_cycle_insn_p parameter. Call new target hooks
666 to allow target model restrictions not represented in DFA.
667 (choose_ready, schedule_block): Update.
668 (sched_extend_ready_list, sched_finish_ready_list): Call new target
669 hooks to initialize target-specific data for multipass scheduling.
670 * sched-int.h (max_issue): Update declaration.
671 * sel-sched.c (choose_best_insn): Update.
672 * target.def (first_cycle_multipass_{begin, issue, backtrack},)
673 (first_cycle_multipass_{init, fini}): Define and document new
674 targetm.sched hooks.
675
676 2010-11-02 Richard Guenther <rguenther@suse.de>
677
678 PR tree-optimization/46184
679 * tree-vect-loop.c (vectorizable_reduction): Try to obtain the
680 input vector type from the reduction operand as well.
681
682 2010-11-02 Richard Guenther <rguenther@suse.de>
683
684 PR tree-optimization/46177
685 * tree-loop-distribution.c (prop_phis): Use
686 mark_virtual_phi_result_for_renaming.
687
688 2010-11-02 Martin Jambor <mjambor@suse.cz>
689
690 PR middle-end/46120
691 * tree.c (get_binfo_at_offset): Bail out on artificial
692 fields. Identify primary bases according to their offsets.
693
694 2010-11-02 Martin Jambor <mjambor@suse.cz>
695
696 PR tree-optimization/45875
697 * gimple-fold.c (get_first_base_binfo_with_virtuals): Removed.
698 (gimple_get_relevant_ref_binfo): Detect primary bases according to
699 their field offset.
700
701 2010-11-02 Ian Lance Taylor <iant@google.com>
702
703 * doc/install.texi (Configuration): Note in two places that Java
704 is not enabled by default.
705
706 2010-11-02 Ian Lance Taylor <iant@google.com>
707
708 * doc/install.texi (Prerequisites): Remove libelf paragraphs.
709 (Configuration): Mention --disable-lto. Remove --with-libelf
710 paragraph.
711
712 2010-11-02 Ian Lance Taylor <iant@google.com>
713
714 * configure.ac: Remove elf_getshdrstrndx test. Don't substitute
715 LTO_BINARY_READER or LTO_USE_LIBELF. Remove LIBELFLIBS and
716 LIBELFINC. Remove HAVE_libelf.
717 * config.gcc: Don't set lto_binary_reader.
718 * Makefile.in (LIBELFLIBS, LIBELFINC): Remove variables.
719 (LTO_BINARY_READER, LTO_USE_LIBELF): Remove variables.
720 (LIBS): Remove $(LIBELFLIBS).
721 (INCLUDES): Remove $(LIBELFINC).
722 * configure: Rebuild.
723 * config.in: Rebuild.
724
725 2010-11-02 Nathan Froyd <froydnj@codesourcery.com>
726
727 * config/microblaze/microblaze-protos.h (function_arg): Delete.
728 (function_arg_advance): Delete.
729 * config/microblaze/microblaze.h (FUNCTION_ARG_ADVANCE): Delete.
730 (FUNCTION_ARG): Delete.
731 * config/microblaze/microblaze.c (function_arg_advance): Rename to...
732 (microblaze_function_arg_advance): ...this. Make static. Take a
733 const_tree and a bool.
734 (function-arg): Rename to...
735 (microblaze_function_arg): ...this. Make static. Take a const_tree
736 and a bool.
737 (microblaze_expand_prologue): Call targetm.calls.function_arg and
738 targetm.calls.function_arg_advance.
739 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
740
741 2010-11-02 Iain Sandoe <iains@gcc.gnu.org>
742
743 Merge from FSF "apple/trunk" branch.
744
745 * config/rs6000/darwin.opt (mdynamic-no-pic): move from here ...
746 * config/darwin.opt: .. to here.
747 (matt-stubs): New option.
748 * config/i386/darwin.opt: Delete.
749 * config/i386/i386.h (MACHOPIC_ATT_STUB): New.
750 (MACHO_DYNAMIC_NO_PIC_P): New.
751 (MACHOPIC_INDIRECT): New.
752 (MACHOPIC_PURE): New.
753 * config/i386/darwin.h (DARWIN_X86) Define to 1.
754 (MACHOPIC_ATT_STUB): New.
755 (CC1_SPEC): Do not remove mdynamic-no-pic.
756 Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
757 UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
758 (FUNCTION_PROFILER): Correct over-length line.
759 (SUBTARGET_OVERRIDE_OPTIONS): New.
760 (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
761 * config/i386/i386.c (config/i386/i386.c): Darwin has no PLT.
762 (legitimate_constant_p): Handle mdynamic-no-pic.
763 (ix86_legitimate_address_p): Likewise.
764 (ix86_legitimize_address): Likewise.
765 (ix86_expand_move): Likewise.
766 (machopic_output_stub): Update for ATT-style stubs and
767 mdynamic-no-pic.
768 * config/darwin-protos.h (machopic_symbol_defined_p): New.
769 * config/rs6000/darwin.h (DARWIN_PPC): Define to 1.
770 TARGET_DYNAMIC_NO_PIC: Remove.
771 Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
772 UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
773 * config/rs6000/rs6000.c (darwin_rs6000_override_options):
774 Remove handling of mdynamic-no-pic.
775 * config/darwin.c (HAVE_lo_sum, gen_macho_high, gen_macho_low):
776 Define if required.
777 (machopic_symbol_defined_p): Do not try to use current_function_decl
778 when generating _get_pc thunks within stubs.
779 (machopic_indirect_data_reference): Rework for direct conditionals
780 rather than #ifdefs, add x86 mdynamic-no-pic
781 (machopic_legitimize_pic_address): Update to use HAVE_lo_sum with a
782 defined value.
783 (darwin_override_options): Handle mdynamic-no-pic here.
784 * config/darwin-sections.def (machopic_lazy_symbol_ptr2_section): New.
785 (machopic_lazy_symbol_ptr3_section): New.
786 (machopic_picsymbol_stub2_section): New.
787 (machopic_picsymbol_stub3_section): New.
788 * config/darwin.h (DARWIN_X86, DARWIN_PPC): Define to 0.
789 (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
790 (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
791 Moved common definition from x86 and rs6000.
792 (MACHO_DYNAMIC_NO_PIC_P): Override value.
793 (MACHOPIC_INDIRECT): Likewise.
794 (MACHOPIC_PURE): Likewise.
795 * config.gcc (x86-darwin-*): Remove darwin.opt.
796
797 2010-11-02 Jakub Jelinek <jakub@redhat.com>
798
799 PR debug/46255
800 * tree-cfg.c (gimple_flow_call_edges_add): Use gsi_last_nondebug_bb
801 instead of gsi_last_bb.
802
803 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
804 Maxim Kuvyrkov <maxim@codesourcery.com>
805
806 * config/i386/i386.c (cpu_names): Add "corei7".
807 * config/i386/i386.h (enum target_cpu_default): Add entry for Core i7.
808
809 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
810 Maxim Kuvyrkov <maxim@codesourcery.com>
811
812 Tune alignment for Intel Core i7
813
814 * config/i386.h (TARGET_COREI7{_32,_64,}): New macros.
815 (enum processor_type): Update comment. Add entries for Core i7.
816 * config/i386-c.c (ix86_target_macros_internal): Update.
817 * config/i386.c (m_COREI7{_32,_64}): New macros.
818 (m_GENERIC32, m_GENERIC64): Use generic tuning for Core i7.
819 (processor_target_table): Tune alignment for Core i7.
820 (ix86_option_override_internal): Use PROCESSOR_COREI7_*.
821
822 * doc/invoke.texi: Document "corei7" option value.
823
824 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
825 Maxim Kuvyrkov <maxim@codesourcery.com>
826 H.J. Lu <hjl.tools@gmail.com>
827
828 Basic support for Intel Core i7
829
830 * i386.c (ix86_option_override_internal): Add entry for corei7, use
831 generic tuning. Use generic32 when compiling for 32-bit ABI.
832
833 2010-11-02 Iain Sandoe <iains@gcc.gnu.org>
834
835 * config/darwin.c (darwin_asm_named_section): Check for __DWARF
836 sections and call darwin_asm_dwarf_section() to handle them.
837 (darwin_asm_dwarf_section): New.
838 (darwin_file_start): Remove code emitting dwarf section symbols.
839
840 2010-11-02 Chung-Lin Tang <cltang@codesourcery.com>
841
842 * Makefile.in (LIBGCC2_CFLAGS): Add -fno-stack-protector, to
843 explicitly disable stack protection when building libgcc.
844 (CRTSTUFF_CFLAGS): Same, for crtbegin/end.
845
846 2010-11-01 Jason Merrill <jason@redhat.com>
847
848 * fold-const.c (fold_indirect_ref_1): Handle folding
849 POINTER_PLUS_EXPR to ARRAY_REF.
850
851 2010-11-01 Kaz Kojima <kkojima@gcc.gnu.org>
852
853 * config/sh/sh.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
854 (sh_delegitimize_address): New function.
855
856 2010-11-01 Joseph Myers <joseph@codesourcery.com>
857
858 * config/alpha/alpha.h (WORD_SWITCH_TAKES_ARG): Remove.
859 * config/cris/cris.h (WORD_SWITCH_TAKES_ARG): Remove.
860 (CC1_SPEC): Don't handle -target.
861 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove single-argument
862 options.
863 * config/darwin.opt (Zallowable_client, Zbundle_loader,
864 Zdylib_file, Zexported_symbols_list, Zfn_seg_addr_table_filename,
865 Zimage_base, Zinit, Zinstall_name, Zmultiply_defined,
866 Zmultiplydefinedunused, Zseg_addr_table, Zsegs_read_only_addr,
867 Zsegs_read_write_addr, Zumbrella, Zunexported_symbols_list,
868 Zweak_reference_mismatches, client_name, compatibility_version,
869 current_version, dylinker_install_name, pagezero_size,
870 read_only_relocs, seg1addr, segs_read_only_addr,
871 segs_read_write_addr, sub_library, sub_umbrella): New.
872 * config/freebsd-spec.h (BSD_WORD_SWITCH_TAKES_ARG): Remove.
873 * config/freebsd.h (WORD_SWITCH_TAKES_ARG): Remove.
874 * config/freebsd.opt: New.
875 * config/interix.h (WORD_SWITCH_TAKES_ARG): Remove.
876 * config/mips/iris6.h (WORD_SWITCH_TAKES_ARG): Remove.
877 * config/rpath.opt: New.
878 * config.gcc (*-*-freebsd*): Use rpath.opt and freebsd.opt.
879 (alpha*-dec-osf5.1*, i[34567]86-*-interix3*, mips-sgi-irix6.5*):
880 Use rpath.opt.
881
882 2010-11-01 Joseph Myers <joseph@codesourcery.com>
883
884 * common.opt (R, T, Tbss, Tdata, Ttext, h, z): New.
885 * defaults.h (DEFAULT_SWITCH_TAKES_ARG, SWITCH_TAKES_ARG): Remove.
886 (DEFAULT_WORD_SWITCH_TAKES_ARG): Define to 0.
887 * doc/tm.texi.in (SWITCH_TAKES_ARG): Remove.
888 (WORD_SWITCH_TAKES_ARG): Don't refer to SWITCH_TAKES_ARG.
889 Document that options in .opt files do not need to be included.
890 * doc/tm.texi: Regenerate.
891 * gcc.c (LINK_COMMAND_SPEC): Don't include %{x}.
892 * opts-common.c: Update comment on tm.h include.
893 (decode_cmdline_option): Don't use SWITCH_TAKES_ARG.
894 * system.h (SWITCH_TAKES_ARG): Poison.
895 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Remove.
896 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove options included
897 in darwin.opt.
898 (LINK_COMMAND_SPEC_A): Don't include %{x}.
899 * config/fr30/fr30.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
900 * config/freebsd-spec.h (FBSD_SWITCH_TAKES_ARG): Remove.
901 * config/freebsd.h (SWITCH_TAKES_ARG): Remove.
902 * config/frv/frv.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
903 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Don't include %{x}.
904 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Remove.
905 * config/interix.h (WORD_SWITCH_TAKES_ARG): Don't handle -T options.
906 * config/lm32/lm32.h (SWITCH_TAKES_ARG): Remove.
907 * config/m32r/m32r.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
908 * config/microblaze/microblaze.h (SWITCH_TAKES_ARG): Remove.
909 * config/mips/mips.h (SWITCH_TAKES_ARG): Remove.
910 * config/mips/netbsd.h (SWITCH_TAKES_ARG): Remove.
911 * config/mips/vxworks.h (SWITCH_TAKES_ARG): Remove.
912 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove.
913 * config/netbsd-elf.h (SWITCH_TAKES_ARG): Remove.
914 * config/openbsd.h (SWITCH_TAKES_ARG): Remove.
915 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Remove.
916 * config/score/score.h (SWITCH_TAKES_ARG): Remove.
917 * config/sol2.h (SWITCH_TAKES_ARG): Remove.
918 * config/sparc/sp-elf.h (SWITCH_TAKES_ARG): Remove.
919 * config/sparc/sp64-elf.h (SWITCH_TAKES_ARG): Remove.
920 * config/sparc/sparc.h (ASM_SPEC): Don't include %{R}.
921 * config/svr4.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
922
923 2010-11-01 Paul Koning <ni1d@arrl.net>
924
925 * config/pdp11/pdp11.md: Use iterators.
926 (addqi3, subqi3, iorsi3, xorsi3): Delete.
927
928 2010-11-01 Steve Ellcey <sje@cup.hp.com>
929
930 * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): Move under ifdef
931 GCC_INSN_FLAGS_H.
932 * libgcov.c (__gcov_indirect_call_profiler): Set
933 VTABLE_USES_DESCRIPTORS if TARGET_VTABLE_USES_DESCRIPTORS is
934 defined and use in place of TARGET_VTABLE_USES_DESCRIPTORS.
935
936 2010-11-01 Nathan Froyd <froydnj@codesourcery.com>
937
938 PR tree-optimization/46259
939
940 Revert:
941 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
942
943 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
944 build_vector_from_val.
945
946 2010-11-01 DJ Delorie <dj@redhat.com>
947
948 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add define for RX610
949 as well as an assertion.
950
951 2010-11-01 Paul Koning <ni1d@arrl.net>
952
953 * config/pdp11/pdp11.c (pdp11_return_in_memory): Return vector and
954 complex modes in memory.
955
956 2010-11-01 Nathan Froyd <froydnj@codesourcery.com>
957
958 * tree.c (build_vector_from_val): Use useless_type_conversion_p.
959
960 2010-11-01 Jakub Jelinek <jakub@redhat.com>
961
962 PR target/45250
963 * var-tracking.c (cfa_base_rtx): Move definition earlier in the file.
964 (cfa_base_offset): New variable.
965 (compute_cfa_pointer): Use cfa_base_rtx and cfa_base_offset.
966 (adjust_mems): Don't do any sp or hfp replacements if cfa_base_rtx
967 is NULL.
968 (vt_init_cfa_base): Initialize cfa_base_offset.
969
970 2010-11-01 Alan Modra <amodra@gmail.com>
971
972 PR target/46030
973 * config/rs6000/rs6000.c (struct rs6000_stack): Add reload_completed
974 and savres_strategy.
975 (stack_info): New file scope var.
976 (rs6000_init_machine_status): Init stack_info.
977 (SAVRES_INLINE_FPRS, SAVRES_INLINE_GPRS,
978 SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
979 SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): Replace with..
980 (SAVE_INLINE_FPRS, SAVE_INLINE_GPRS, REST_INLINE_FPRS, REST_INLINE_GPRS,
981 SAVE_NOINLINE_GPRS_SAVES_LR, SAVE_NOINLINE_FPRS_SAVES_LR
982 REST_NOINLINE_FPRS_DOESNT_RESTORE_LR): ..this. Update all refs.
983 (rs6000_savres_strategy): Rewrite.
984 (rs6000_stack_info): Use "stack_info" in place of local "info".
985 Return cached stack info when reload_completed unless ENABLE_CHECKING
986 in which case confirm newly calculated stack info matches old info.
987 Delay calculation of lr_save_p, set it for out of line gp save/restore
988 as well as fp. Call rs6000_savres_strategy from here..
989 (rs6000_emit_prologue, rs6000_emit_epilogue): ..rather than here.
990 (rs6000_output_function_prologue): Use info->savres_strategy to
991 determine whether fp save/restore externs need to be emitted.
992
993 2010-10-31 Jason Merrill <jason@redhat.com>
994
995 * tree.h (EXPR_LOC_OR_HERE): New macro.
996 * builtins.c (c_strlen): Use it.
997 * c-decl.c (build_enumerator): Likewise.
998 * gimplify.c (internal_get_tmp_var): Likewise.
999 (shortcut_cond_expr): Likewise.
1000 (gimplify_one_sizepos): Likewise.
1001
1002 2010-10-31 Richard Henderson <rth@redhat.com>
1003
1004 * config/i386/cygming.h (TARGET_SEH): New.
1005 (MAX_STACK_ALIGNMENT): New. Disable alignment for SEH.
1006 (TARGET_ASM_UNWIND_EMIT, TARGET_ASM_UNWIND_EMIT_BEFORE_INSN,
1007 TARGET_ASM_FUNCTION_END_PROLOGUE, SUBTARGET_ASM_UNWIND_INIT): New.
1008 (TARGET_OS_CPP_BUILTINS): Define __SEH__ as needed.
1009 (ASM_DECLARE_FUNCTION_NAME): Use i386_pe_start_function.
1010 (ASM_DECLARE_FUNCTION_SIZE): New.
1011 * config/i386/i386-protos.h: Update.
1012 * config/i386/i386.c (ix86_option_override_internal): Enable
1013 flag_unwind_tables with flag_asynchronous_unwind_tables immediately;
1014 restrict -mpreferred-stack-boundary for SEH; enable flag_fentry.
1015 (ix86_asm_output_function_label): Use SUBTARGET_ASM_UNWIND_INIT.
1016 (ix86_compute_frame_layout): For SEH, disable
1017 use_fast_prologue_epilogue, move frame pointer to the end of
1018 the frame. Initialize hfp_save_offset.
1019 (ix86_expand_prologue): Honor hfp_save_offset. Emit blockage
1020 at end of prologue for SEH.
1021 (ix86_expand_epilogue): For SEH, use pops, emit a nop if needed,
1022 emit blockage at beginning of epilogue.
1023 (ix86_expand_binary_operator): After reload, emit LEA if needed.
1024 (ix86_output_call_insn): New.
1025 * config/i386/i386.h (TARGET_SEH): New.
1026 (struct machine_function): Add member seh.
1027 * config/i386/i386.md (all call patterns): Use ix86_output_call_insn.
1028 * config/i386/winnt.c (struct seh_frame_state): New.
1029 (i386_pe_seh_init, i386_pe_seh_end_prologue, i386_pe_seh_fini,
1030 seh_emit_push, seh_emit_save, seh_emit_stackalloc, seh_cfa_adjust_cfa,
1031 seh_cfa_offset, seh_frame_related_expr, i386_pe_seh_unwind_emit,
1032 i386_pe_start_function, i386_pe_end_function): New.
1033
1034 * dwarf2out.c (dwarf2out_frame_debug_expr): Accept CFA as well
1035 as CFA_STORE in rules 12 and 13.
1036
1037 2010-10-31 Uros Bizjak <ubizjak@gmail.com>
1038
1039 PR tree-optimization/46142
1040 * tree-vect-stmts.c (vectorizable_call): Enlarge dt array to
1041 accommodate third function argument.
1042
1043 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
1044
1045 * tree-ssa-loop-im.c (rewrite_reciprocal): Use build_one_cst.
1046
1047 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
1048
1049 * fold-const.c (build_zero_vector): Use build_vector_from_val.
1050 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
1051 (get_initial_def_for_reduction): Likewise.
1052 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
1053 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
1054 * tree.c (build_one_cst): Likewise.
1055 (build_vector_from_val): Use types_compatible_p for assert.
1056
1057 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
1058
1059 * emit-rtl.c (mark_used_flags): New function.
1060 (set_used_flags, reset_used_flags): Call it.
1061
1062 2010-10-30 Uros Bizjak <ubizjak@gmail.com>
1063
1064 PR middle-end/44569
1065 * lower-suberg.c (simplify_subreg_concatn): For VOIDmode elements,
1066 determine the mode of a subreg by GET_MODE_INNER of CONCATN RTX.
1067
1068 2010-10-30 H.J. Lu <hongjiu.lu@intel.com>
1069
1070 PR target/46195
1071 * config/i386/i386.c (contains_aligned_value_p): Renamed to ...
1072 (ix86_compat_aligned_value_p): This.
1073 (ix86_old_function_arg_boundary): Renamed to ...
1074 (ix86_compat_function_arg_boundary): This. Updated.
1075 (ix86_contains_aligned_value_p): New.
1076 (ix86_function_arg_boundary): Align long double parameters on
1077 stack to 4byte in 32bit.
1078
1079 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
1080
1081 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
1082 * c-parser.c (c_parser_objc_at_property_declaration): Removed
1083 parsing of RID_COPIES and RID_IVAR. Updated call to
1084 objc_add_property_declaration.
1085 * c-typecheck.c (build_component_ref): Call
1086 objc_maybe_build_component_ref instead of objc_build_setter_call.
1087 Use objc_is_property_ref to improve Objective-C checks.
1088 (cp_build_modify_expr): Call objc_maybe_build_modify_expr instead
1089 of objc_build_getter_call.
1090
1091 2010-10-29 Paul Koning <ni1d@arrl.net>
1092
1093 * doc/tm.texi.in (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
1094 REGNO_MODE_OK_FOR_REG_BASE, REGNO_MODE_CODE_OK_FOR_BASE_P,
1095 REGNO_OK_FOR_INDEX_P): Delete non-strict variant.
1096 (REG_OK_STRICT): Move description.
1097
1098 2010-10-29 Paul Koning <ni1d@arrl.net>
1099
1100 * config/pdp11/pdp11.md (*and<mode>): Rename to *bic<mode>.
1101
1102 2010-10-29 Paul Koning <ni1d@arrl.net>
1103
1104 * config/pdp11/pdp11.md (divhi3, modhi3, divmodhi3): Fix ICE.
1105
1106 2010-10-29 Paul Koning <ni1d@arrl.net>
1107
1108 PR/41822
1109 * config/pdp11/pdp11.md (andhi3, andqi3): Fix wrong code error.
1110
1111 2010-10-29 Richard Henderson <rth@redhat.com>
1112
1113 PR rtl-opt/46226
1114 * stmt.c (expand_asm_operands): Call do_pending_stack_adjust
1115 for asm goto.
1116
1117 2010-10-29 Paul Koning <ni1d@arrl.net>
1118
1119 * config/pdp11/pdp11.c (output_move_quad): Fix ICE for CPU
1120 register to register move.
1121
1122 2010-10-29 Paul Koning <ni1d@arrl.net>
1123
1124 * config/pdp11/pdp11.c (print_operand_address): Correct handling
1125 of integer constant addresses, delete vax-only logic.
1126
1127 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
1128
1129 * config/picochip/picochip.c (picochip_is_short_branch): Simplify
1130 a conditional expression.
1131
1132 2010-10-29 Paul Koning <ni1d@arrl.net>
1133
1134 * config/pdp11/pdp11.c (pdp11_trampoline_init): Correct
1135 instruction encoding.
1136
1137 2010-10-29 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1138 Andrew Pinski <pinskia@gmail.com>
1139
1140 * tree.h (build_vector_from_val): Declare.
1141 * tree.c (build_vector_from_val): New function.
1142 * c-typeck.c (build_binary_op): Handle vector shifting.
1143 * doc/extend.texi: Description of the vector shifting operation.
1144
1145 2010-10-29 Paul Koning <pkoning@equallogic.com>
1146
1147 * config/pdp11/pdp11-protos.h (pdp11_cannot_change_mode_class,
1148 pdp11_secondary_memory_needed): Declare.
1149 * config/pdp11/predicates.md (float_operand): New predicate.
1150 * config/pdp11/pdp11.md (RETVAL_REGNUM): New constant.
1151 (cbranchdf4, movdf): Change predicate.
1152 (movsf): Handle FPU register case.
1153 (truncdfsf2, extendsfdf2): Add FPU register case.
1154 * config/pdp11/pdp11.c (TARGET_SECONDARY_RELOAD,
1155 TARGET_REGISTER_MOVE_COST, TARGET_PREFERRED_RELOAD_CLASS,
1156 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
1157 (pdp11_register_move_cost): Update cost matrix.
1158 (pdp11_cannot_change_mode_class, pdp11_preferred_reload_class,
1159 pdp11_preferred_output_reload_class, pdp11_secondary_reload,
1160 pdp11_secondary_memory_needed): New function.
1161 (pdp11_return_in_memory): Add other float types.
1162 * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Add other float types.
1163 (SECONDARY_MEMORY_NEEDED, CANNOT_CHANGE_MODE_CLASS): Define.
1164 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS,
1165 REGISTER_MOVE_COST): Delete.
1166 (BASE_RETURN_VALUE_REG): Add other float types.
1167
1168 2010-10-29 Nick Clifton<nickc@redhat.com>
1169
1170 * doc/invoke.texi: Document -mam34 and -mtune options.
1171 * config/mn10300/mn10300.c (mn10300_tune_string): New variable.
1172 (mn10300_tune_cpu): New variable.
1173 (mn10300_handle_option): Handle -mam34 and -mtune options.
1174 (mn10300_option_override): Convert tune string into tune cpu variable.
1175 (mn10300_legitimate_constant_p): Delete unused local variable.
1176 (is_load_insn): New function.
1177 (is_store_insn): New function.
1178 (mn10300_adjust_schedule_cost): New function.
1179 (TARGET_SCHED_ADJUST_COST): Define.
1180 * config/mn10300/mn10300.opt (mam34): New option.
1181 (mtune): New option.
1182 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add AM34 support.
1183 (enum processor_type): Add AM34.
1184 (TARGET_AM34): Define.
1185 * config/mn10300/mn10300.md (attr cpu): Add am34.
1186 Add pipeline description.
1187 (movqi, movhi, movsi, movsf, movdf, movdi): Fix predicates.
1188 Remove unneeded alternatives. Add timing attribute.
1189 (pop_pic_reg, am33_addsi3, mn10300_addsi3, am33_subsi3,
1190 mn10300_subsi3, mulsidi3, umulsidi3, am33_mulsi3,
1191 mn10300_mulsi3, udivmodsi4_am33, divmodsi4, am33_andsi3,
1192 mn10300_andsi3, am33_iorsi3, mn10300_iorsi3, am33_xorsi3,
1193 mn10300_xorsi3, byte_clear, byte_set, bit_clear1, bit_clear2,
1194 bit_set, am33_iorqi3, mn10300_iorqi3, test_byte_bitfield,
1195 bit_test, subreg_bit_test, cmpsi, am33_cmpsf, am33_subsi3,
1196 float_conditional_branch, jump, indirect_jump, tablejump,
1197 call_internal, call_value_internal, zero_extendqisi2_am33,
1198 zero_extendqisi2_mn10300, zero_extendhisi2_am33,
1199 zero_extendhisi2_mn10300, extendqisi2_am33, extendqisi2_mn10300,
1200 extendhisi2_am33, extendhisi2_mn10300, am33_ashlsi3,
1201 mn10300_ashlsi3, am33_lshrsi3, mn10300_lshrsi3, am33_ashrisi3,
1202 mn10300_ashrsi3, abssf2_am33_2, negsf2_am33_2, rsqrtsf2,
1203 addsf3_internal, subsf3_internal, mulsf3_internal, divsf3,
1204 fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4, return_internal,
1205 return_internal_regs, store_movm, return, call_next_insn):
1206 Add timing attribute.
1207 (am33_subsi3): Add missing clobber of CC_REG.
1208 (am33_andsi3, mn10300_andsi3): Fix compile time warnings.
1209 (udivmodsi4, udivmodsi4_insn, divmodsi4, test_byte_bitfield,
1210 subreg_bit_test, zero_extendqisi2, zero_extendhisi2,
1211 extendqisi2): Fix predicates.
1212 (call_internal, call_internal_value): Separate alternatives.
1213 * config/mn10300/t-mn10300: Add AM34 multilib.
1214
1215 2010-10-29 Paolo Bonzini <bonzini@gnu.org>
1216
1217 * config/sh/sh.c (sh_promote_function_mode): Use
1218 default_promote_function_mode if !sh_promote_prototypes.
1219
1220 2010-10-28 Paolo Bonzini <bonzini@gnu.org>
1221
1222 * recog.c (split_all_insns): Remove dead code.
1223
1224 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1225
1226 * score.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1227
1228 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1229
1230 * config/cris/cris.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
1231 (FUNCTION_ARG_ADVANCE): Delete.
1232 * config/cris/cris.c (cris_function_arg_1, cris_function_arg): New
1233 functions.
1234 (cris_function_incoming_arg, cris_function_arg_advance): New functions.
1235 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
1236 (TARGET_FUNCTION_ARG_ADVANCE): Define.
1237
1238 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1239
1240 * config/lm32/lm32-protos.h (lm32_function_arg): Delete.
1241 * config/lm32/lm32.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1242 * config/mcore/mcore.c (mcore_function_arg): Declare. Make static.
1243 Take a const_tree and a bool.
1244 (mcore_function_arg_advance): New function.
1245 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1246
1247 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1248
1249 * config/mcore/mcore-protos.h (mcore_function_arg): Delete.
1250 * config/mcore/mcore.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1251 * config/mcore/mcore.c (mcore_function_arg): Declare. Make static.
1252 Take a const_tree and a bool.
1253 (mcore_function_arg_advance): New function.
1254 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1255
1256 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1257
1258 * config/h8300/h8300-protos.h (function_arg): Delete.
1259 * config/h8300/h8300.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1260 * config/h8300/h8300.c (function_arg): Rename to...
1261 (h8300_function_arg): ...this. Make static. Take a const_tree and
1262 a bool.
1263 (h8300_function_arg_advance): New function.
1264 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1265
1266 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1267
1268 * config/arc/arc.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move code
1269 to...
1270 * config/arc/arc.c (arc_function_arg): ...here and...
1271 (arc_function_arg_advance): ...here. New functions.
1272 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1273
1274 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1275
1276 * config/crx/crx-protos.h (crx_function_arg): Delete.
1277 (crx_function_arg_advance): Delete.
1278 * config/crx/crx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1279 * config/crx/crx.c (crx_function_arg): Make static. Take a
1280 const_tree and a bool.
1281 (crx_function_arg_advance): Make static. Take a const_tree and a bool.
1282 (enough_regs_for_param): Take a const_tree.
1283 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1284
1285 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1286
1287 * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg): Delete.
1288 (m68hc11_function_arg_advance): Delete.
1289 * config/m68hc11/m68hc11.h (FUNCTION_ARG): Delete.
1290 (FUNCTION_ARG_ADVANCE): Delete.
1291 * config/m68hc11/m68hc11.c (m68hc11_function_arg): Make static.
1292 Take a const_tree and a bool.
1293 (m68hc11_function_arg_advance): Likewise.
1294 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1295
1296 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1297
1298 * config/stormy16/stormy16-protos.h (xstormy16_function_arg): Delete.
1299 (xstormy16_function_arg_advance): Delete.
1300 * config/stormy16/stormy16.h (FUNCTION_ARG): Delete.
1301 (FUNCTION_ARG_ADVANCE): Delete.
1302 * config/stormy16/stormy16.c (xstormy16_function_arg): Make static.
1303 Take a const_tree and a bool.
1304 (xstormy16_function_arg_advance): Likewise. Return void, updating
1305 the CUM parameter instead.
1306 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1307
1308 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1309
1310 * config/moxie/moxie-protos.h (moxie_function_arg): Delete.
1311 * config/moxie/moxie.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1312 (MOXIE_FUNCTION_ARG_SIZE): Move to...
1313 * config/moxie/moxie.c (MOXIE_FUNCTION_ARG_SIZE): ...here.
1314 (moxie_function_arg): Make static. Take a const_tree and a bool.
1315 (moxie_function_arg_advance): New function.
1316 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1317
1318 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1319
1320 * config/mn10300/mn10300-protos.h (function_arg): Delete.
1321 * config/mn10300/mn10300.h (FUNCTION_ARG): Delete.
1322 (FUNCTION_ARG_ADVANCE): Delete.
1323 * config/mn10300/mn10300.c (function_arg): Rename to...
1324 (mn10300_function_arg): ...this. Make static. Take a const_tree
1325 and a bool.
1326 (mn10300_function_arg_advance): New function.
1327 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1328
1329 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1330
1331 * config/iq2000/iq2000-protos.h (function_arg): Delete.
1332 (function_arg_advance): Delete.
1333 * config/iq2000/iq2000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1334 * config/iq2000/iq2000.c (function_arg): Rename to...
1335 (iq2000_function_arg): ...this. Make static. Take a const_tree and
1336 a bool.
1337 (function_arg_advance): Rename to...
1338 (iq2000_function_arg_advance): ...this. Make static. Take a
1339 const_tree and a bool.
1340 (iq2000_expand_prologue): Call iq2000_function_arg_advance and
1341 iq2000_function_arg.
1342 (iq2000_pass_by_reference): Call iq2000_function_arg).
1343 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1344
1345 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1346
1347 * config/fr30/fr30-protos.h (fr30_num_arg_regs): Delete.
1348 * config/fr30/fr30.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1349 * config/fr30/fr30.c (fr30_num_arg_regs): Make static. Take a
1350 const_tree.
1351 (fr30_function_arg): New function.
1352 (fr30_function_arg_advance): New function.
1353 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1354
1355 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1356
1357 * config/frv/frv-protos.h (frv_function_arg): Delete.
1358 (frv_function_arg_advance): Delete.
1359 * config/frv/frv.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1360 * config/frv/frv.c (frv_function_arg): Rename to...
1361 (frv_function_arg_1): Make static. Take const_tree and bool arguments.
1362 (frv_function_arg, frv_function_incoming_arg): New functions.
1363 (frv_function_arg_advance): Make static. Take a const_tree and a bool.
1364 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
1365 (TARGET_FUNCTION_ARG_ADVANCE): Define.
1366
1367 2010-10-28 Uros Bizjak <ubizjak@gmail.com>
1368
1369 PR target/46153
1370 * config/i386/sse.md (sse_movhlps_exp): Use destination
1371 returned from ix86_fixup_binary_operands to expand insn.
1372 (sse_movlhps_exp): Ditto.
1373 (sse_loadhps_exp): Ditto.
1374 (sse_loadlps_exp): Ditto.
1375 (sse2_loadhpd_exp): Ditto.
1376 (sse2_loadlpd_exp): Ditto.
1377
1378 2010-10-28 Andrew Stubbs <ams@codesourcery.com>
1379
1380 * config/arm/arm.c (const_ok_for_arm): Support 0xXY00XY00 pattern
1381 constants in thumb2.
1382
1383 2010-10-28 Eric Botcazou <ebotcazou@adacore.com>
1384
1385 * combine.c (set_nonzero_bits_and_sign_copies): Use unsigned
1386 arithmetics in masking operations.
1387 (contains_muldiv): Likewise.
1388 (try_combine): Likewise.
1389 (find_split_point): Likewise.
1390 (combine_simplify_rtx): Likewise.
1391 (simplify_if_then_else): Likewise.
1392 (simplify_set): Likewise.
1393 (expand_compound_operation): Likewise.
1394 (expand_field_assignment): Likewise.
1395 (make_extraction): Likewise.
1396 (extract_left_shift): Likewise.
1397 (make_compound_operation): Likewise.
1398 (force_to_mode): Likewise.
1399 (make_field_assignment): Likewise.
1400 (reg_nonzero_bits_for_combine): Likewise.
1401 (simplify_shift_const_1): Likewise.
1402 (simplify_comparison): Likewise.
1403
1404 2010-10-27 Nathan Froyd <froydnj@codesourcery.com>
1405
1406 * config/ia64/ia64-protos.h (ia64_function_arg): Delete.
1407 (ia64_function_arg_advance): Delete.
1408 * config/ia64/ia64.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
1409 (FUNCTION_ARG_ADVANCE): Delete.
1410 * config/ia64/ia64.c (ia64_function_arg): Rename to...
1411 (ia64_function_arg_1): ...this. Make static. Take const_tree and
1412 bool arguments.
1413 (ia64_function_arg, ia64_function_incoming_arg): New functions.
1414 (ia64_function_arg_advance): Make static. Take a const_tree and
1415 a bool.
1416 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
1417 (TARGET_FUNCTION_ARG_ADVANCE): Define.
1418
1419 2010-10-27 Steve Ellcey <sje@cup.hp.com>
1420
1421 * doc/tm.texi.in (TARGET_GET_RAW_RESULT_MODE): New.
1422 (TARGET_GET_RAW_ARG_MODE): New.
1423 * doc/tm.texi: Regenerate.
1424 * target.def (get_raw_result_mode): New.
1425 (get_raw_arg_mode): New.
1426 * targhooks.c (default_get_reg_raw_mode): New.
1427 * targhooks.h (default_get_reg_raw_mode): New.
1428 * builtins.c (apply_args_size): Use targetm.calls.get_raw_arg_mode.
1429 (apply_result_size): Ditto.
1430 * config/ia64/ia64.c (ia64_get_reg_raw_mode): New.
1431 (TARGET_GET_RAW_RESULT_MODE): Define.
1432 (TARGET_GET_RAW_ARG_MODE): Ditto.
1433
1434 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
1435
1436 * config/sparc/sol2-unwind.h (sparc64_fallback_frame_state): Adjust
1437 for newer Solaris 10 release.
1438 (sparc_fallback_frame_state): Likewise.
1439
1440 2010-10-27 Jason Merrill <jason@redhat.com>
1441
1442 * gimplify.c (gimplify_decl_expr): Handle anonymous artificial
1443 variables sooner.
1444
1445 2010-10-27 Jie Zhang <jie@codesourcery.com>
1446 Maxim Kuvyrkov <maxim@codesourcery.com>
1447
1448 * haifa-sched.c (ISSUE_POINTS): Remove.
1449 (max_issue): Don't issue more than issue_rate instructions.
1450
1451 2010-10-27 Ian Lance Taylor <iant@google.com>
1452
1453 PR target/46197
1454 * config/i386/i386.md (UNSPECV_SPLIT_STACK_RETURN): New.
1455 (split_stack_return): Replace UNSPEC_STACK_CHECK with
1456 UNSPECV_SPLIT_STACK_RETURN.
1457
1458 2010-10-27 H.J. Lu <hongjiu.lu@intel.com>
1459
1460 * config/i386/i386-protos.h (init_cumulative_args): Add an int.
1461
1462 * config/i386/i386.c (block_info): New.
1463 (BLOCK_INFO): Likewise.
1464 (call_avx256_state): Likewise.
1465 (check_avx256_stores): Likewise.
1466 (move_or_delete_vzeroupper_2): Likewise.
1467 (move_or_delete_vzeroupper_1): Likewise.
1468 (move_or_delete_vzeroupper): Likewise.
1469 (use_avx256_p): Likewise.
1470 (function_pass_avx256_p): Likewise.
1471 (flag_opts): Add -mvzeroupper.
1472 (ix86_option_override_internal): Turn on MASK_VZEROUPPER by
1473 default for TARGET_AVX. Turn off MASK_VZEROUPPER if TARGET_AVX
1474 is disabled.
1475 (ix86_function_ok_for_sibcall): Disable sibcall if we need to
1476 generate vzeroupper.
1477 (init_cumulative_args): Add an int to indicate caller. Set
1478 use_avx256_p, callee_return_avx256_p and caller_use_avx256_p
1479 based on return type.
1480 (ix86_function_arg): Set use_avx256_p, callee_pass_avx256_p and
1481 caller_pass_avx256_p based on argument type.
1482 (ix86_expand_epilogue): Emit vzeroupper if 256bit AVX register
1483 is used, but not returned by caller.
1484 (ix86_expand_call): Emit vzeroupper if 256bit AVX register is used.
1485 (ix86_local_alignment): Set use_avx256_p if 256bit AVX register
1486 is used.
1487 (ix86_minimum_alignment): Likewise.
1488 (ix86_expand_special_args_builtin): Set target to
1489 GEN_INT (vzeroupper_intrinsic) for CODE_FOR_avx_vzeroupper.
1490 (ix86_reorg): Run the vzeroupper optimization if needed.
1491
1492 * config/i386/i386.h (ix86_args): Add caller.
1493 (INIT_CUMULATIVE_ARGS): Updated.
1494 (machine_function): Add use_vzeroupper_p, use_avx256_p,
1495 caller_pass_avx256_p, caller_return_avx256_p,
1496 callee_pass_avx256_p and callee_return_avx256_p.
1497
1498 * config/i386/i386.opt (-mvzeroupper): New.
1499
1500 * config/i386/predicates.md (vzeroupper_operation): Removed.
1501
1502 * config/i386/sse.md (avx_vzeroupper): Removed.
1503 (*avx_vzeroupper): Removed.
1504 (avx_vzeroupper): New.
1505
1506 * doc/invoke.texi: Document -mvzeroupper.
1507
1508 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
1509
1510 * config/i386/t-mingw32 (SHLIB_LC): Add -lmingwthrd.
1511 * config/i386/t-mingw-w32 (SHLIB_LC): Likewise.
1512 * config/i386/t-mingw-w64 (SHLIB_LC): Likewise.
1513
1514 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
1515 Olivier Hainque <hainque@adacore.com>
1516
1517 * config/i386/w32-unwind.h (i386_w32_fallback_frame_state): Fix regnum
1518 of EBP. Do not restore reg #9. Remove +1 adjustment to EIP and set
1519 fs->signal_frame instead.
1520
1521 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1522
1523 * c-parser.c (cp_parser_objc_at_property_declaration): Removed
1524 parsing of RID_COPIES and RID_IVAR.
1525
1526 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1527
1528 * c-parser.c (c_parser_objc_at_property_declaration): Recognize
1529 RID_ASSIGN, RID_COPY, RID_RETAIN, RID_READWRITE and RID_NONATOMIC.
1530 Do not use objc_set_property_attr, but use local variables
1531 instead. Detect repeated usage of setter, getter and ivar
1532 attributes. Improved error processing when a setter name does not
1533 end in ':'. Do not check for CPP_CLOSE_PAREN after we determined
1534 that the token is a keyword. Updated call to
1535 objc_add_property_declaration.
1536
1537 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1538
1539 * c-parser.c (c_parser_objc_at_property): Renamed to
1540 c_parser_objc_at_property_declaration. Updated calls to
1541 objc_add_property_variable, now objc_add_property_declaration.
1542 Code rewritten to be much more robust in recovering from syntax
1543 errors. Added comments.
1544 (c_parser_objc_property_attrlist): Removed.
1545 (c_parser_external_declaration): Updated calls to
1546 c_parser_objc_at_property, now
1547 c_parser_objc_at_property_declaration.
1548 (c_parser_objc_methodprotolist): Same change.
1549
1550 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
1551
1552 * config/i386/i386.md (split_stack_return): Put back unspec_volatile.
1553
1554 2010-10-26 Jan Hubicka <jh@suse.cz>
1555
1556 * ipa.c (process_references): Enqueue all referenced nodes;
1557 mark as reachable only non-external nodes.
1558 (cgraph_remove_unreachable_nodes): All referenced nodes should
1559 be enqueued; remove bogues node->needed check.
1560
1561 2010-10-26 Jan Hubicka <jh@suse.cz>
1562
1563 * cgraphbuild.c (build_cgraph_edges): Use ipa-reference
1564 to represent OMP.
1565
1566 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
1567
1568 * config/i386/i386.md (split_stack_return): Replace
1569 unspec_volatile with unspec.
1570
1571 2010-10-26 Jonathan Wakely <jwakely.gcc@gmail.com>
1572
1573 * doc/install.texi: Fix typo in --with-sysroot description.
1574
1575 2010-10-26 Jan Hubicka <jh@suse.cz>
1576
1577 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
1578 Use info provided by linker plugin.
1579
1580 2010-10-26 Jason Merrill <jason@redhat.com>
1581
1582 * varasm.c (constructor_static_from_elts_p): Don't require a
1583 CONSTRUCTOR to have elements to be suitable for static
1584 initialization. Allow ARRAY_TYPE as well.
1585
1586 2010-10-26 Jan Hubicka <jh@suse.cz>
1587
1588 PR middle-end/45736
1589 * cgraph.c (cgraph_set_readonly_flag): Rename to...
1590 (cgraph_set_const_flags) ... this one; get also looping argument;
1591 clear constructor/destructor flags.
1592 (cgraph_set_pure_flag): Likewise.
1593 (cgraph_set_looping_const_or_pure_flag): Remove.
1594 (cgraph_can_remove_if_no_direct_calls_and_refs): Do not try
1595 to optimize away static ctors/dtors; it does not work on inline clones;
1596 external functions can always be rmeoved.
1597 (cgraph_will_be_removed_from_program_if_no_direct_calls): Assert on
1598 inline clones; in LTO external functions always can go.
1599 (cgraph_used_from_object_file_p): Handle EXTERNAL functions correctly.
1600 (cgraph_mark_address_taken_node): Assert that we are not taking
1601 address of inline clone.
1602 (cgraph_can_remove_if_no_direct_calls_p): We always eventually remove
1603 external functions.
1604 * ipa-cp.c (ipcp_cloning_candidate_p): Do not clone functions with
1605 address taken.
1606 (ipcp_initialize_node_lattices): Only local functions can be
1607 handled without cloning.
1608 * cgraph.h (cgraph_set_readonly_flag,
1609 cgraph_set_looping_const_or_pure_flag): Remove.
1610 (cgraph_set_const_flag): Declare.
1611 (cgraph_set_pure_flag): Update.
1612 * ipa-pure-const (propagate_pure_const, local_pure_const): Update
1613 flags setting code.
1614 * ipa.c (cgraph_remove_unreachable_nodes): Fix formating; do not
1615 look at inline clones; fix handling of external definitions.
1616 (cgraph_postorder): Do not look at inline clones in the first pass.
1617 (function_and_variable_visibility): Drop constructors/destructor
1618 flags at pure and const functions.
1619 * tree-profile.c (tree_profiling): Update.
1620 * ipa-inline.c (cgraph_clone_inlined_nodes): Always clone functions with
1621 address taken; external functions do not account to whole program size.
1622 (cgraph_decide_inlining): Likewise; do not try to inline
1623 functions already inlined.
1624
1625 2010-10-26 Jie Zhang <jie@codesourcery.com>
1626
1627 * doc/invoke.texi: Improve documentation of
1628 -fstrict-volatile-bitfields.
1629
1630 2010-10-26 Ira Rosen <irar@il.ibm.com>
1631
1632 PR tree-optimization/46167
1633 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check that there
1634 is basic block for the statement.
1635
1636 2010-10-26 Paul Koning <ni1d@arrl.net>
1637
1638 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Update to
1639 current definition of struct_real_format.
1640
1641 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
1642
1643 PR target/44948
1644 * config/i386/i386.c (ix86_old_function_arg_boundary): New.
1645 (ix86_function_arg_boundary): Always align parameters on stack
1646 in 64bit and align parameters with alignment >= 16byte on stack
1647 in 32bit. Warn alignment change.
1648
1649 2010-10-26 Ian Lance Taylor <iant@google.com>
1650
1651 PR middle-end/45687
1652 * ipa-prop.c (ipa_modify_call_arguments): Correct type of MEM_REF
1653 offset.
1654
1655 2010-10-25 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
1656
1657 Implement opaque-enum-specifiesr for C++0x
1658 * tree.h (ENUM_IS_OPAQUE): New.
1659 * dwarf2out.c (gen_enumeration_type_die): Use ENUM_IS_OPAQUE.
1660
1661 2010-10-26 Jie Zhang <jie@codesourcery.com>
1662
1663 * stor-layout.c (layout_decl): Use the field's type to
1664 determine the mode and keep DECL_BIT_FIELD for a volatile bit-field.
1665 * config/arm/arm.c (arm_override_options): Default to
1666 -fstrict-volatile-bitfields.
1667
1668 2010-10-25 Paul Koning <ni1d@arrl.net>
1669
1670 * config/pdp11/pdp11.md: Add define_constants for register
1671 numbers, branch offset limits.
1672 * config/pdp11/pdp11.c: Use named constants instead of numbers.
1673 * config/pdp11.pdp11.h: Ditto.
1674
1675 2010-10-25 Eric Botcazou <ebotcazou@adacore.com>
1676
1677 * configure.ac: Use $cpu_type instead of $target to define the nop.
1678 * configure: Regenerate.
1679
1680 2010-10-25 Jie Zhang <jie@codesourcery.com>
1681
1682 * combine.c (try_combine): If insns need to be kept around, check that
1683 they can be copied in the merged instruction.
1684
1685 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
1686
1687 * reg-stack.c (convert_regs_1): Return boolean value, true if the CFG
1688 has been modified.
1689 (convert_regs_2): Likewise. Adjust calls to convert_regs_1.
1690 (convert_regs): Adjust calls to convert_regs_2. Clean up the CFG if
1691 it has been modified.
1692
1693 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
1694
1695 * config/sparc/sparc.c (sparc_type_code) <NULLPTR_TYPE>: New case.
1696
1697 2010-10-24 Paul Koning <ni1d@arrl.net>
1698
1699 * config/pdp11/pdp11.md: Change length attribute to be in bytes.
1700 * config/pdp11/pdp11.c (output_jump): Ditto.
1701
1702 2010-10-24 Ian Lance Taylor <iant@google.com>
1703
1704 * config/i386/i386.c (ix86_va_start): Remove extraneous blank line.
1705
1706 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
1707
1708 * cfglayout.c (fixup_reorder_chain): When ensuring that there is at
1709 least one insn with a locus corresponding to an edge's goto_locus,
1710 disregard non-fallthru edges to the exit block and merge the blocks
1711 created for the same goto_locus.
1712
1713 2010-10-23 Joseph Myers <joseph@codesourcery.com>
1714
1715 * gcc.c (n_switches_alloc_debug_check): New.
1716 (set_option_handlers): New.
1717 (process_command): Use set_option_handlers.
1718 (do_self_spec): Pass spec-generated options through option handlers.
1719 (main): Also save and restore n_switches_alloc when swapping
1720 switch arrays.
1721
1722 2010-10-23 Richard Henderson <rth@redhat.com>
1723
1724 PR target/46144
1725 * config/i386/sse.md (*avx_absneg<AVXMODEF2P>2): New.
1726 (*sse_absneg<SSEMODEF2P>2): Rename from *absneg<VEC_FLOAT_MODE>2.
1727 Honor matching operands when splitting to XOR.
1728
1729 2010-10-23 Ian Lance Taylor <iant@google.com>
1730
1731 * tree-vrp.c (extract_range_from_binary_expr): If
1732 flag_non_call_exceptions don't eliminate division by zero.
1733 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
1734
1735 2010-10-23 Nathan Froyd <froydnj@codesourcery.com>
1736
1737 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
1738 __BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__, and
1739 __ORDER_PDP_ENDIAN__.
1740 * libgcc2.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1741 (struct DWstruct): Define based on __BYTE_ORDER__.
1742 * config/fixed-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1743 (struct INTstruct): Define based on __BYTE_ORDER__.
1744 * config/dfp-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1745 (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Test __BYTE_ORDER__.
1746 * system.h (LIBGCC2_WORDS_BIG_ENDIAN): Poison identifier.
1747 * config/arc/arc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1748 * config/arm/arm.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1749 * config/ia64/ia64.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1750 * config/iq2000/iq2000.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1751 * config/lm32/lm32.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1752 * config/m32r/m32r.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1753 * config/mcore/mcore.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1754 * config/mep/mep.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1755 * config/mips/mips.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1756 * config/rs6000/sysv4.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1757 * config/rx/rx.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1758 * config/score/score.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1759 * config/sh/sh.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1760 * config/sparc/sparc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1761 * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1762 * doc/tm.texi.in (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1763 * doc/tm.texi: Regenerate.
1764 * doc/cpp.texi (__BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__): Document.
1765 (__ORDER_BIG_ENDIAN__, __ORDER_PDP_ENDIAN__): Likewise.
1766
1767 2010-10-23 Jie Zhang <jie@codesourcery.com>
1768
1769 PR rtl-optimization/37360
1770 * config/mips/mips.c (cached_can_issue_more): New local variable.
1771 (mips_sched_reorder_1): New.
1772 (mips_sched_reorder): Use mips_sched_reorder_1.
1773 (mips_sched_reorder2): New.
1774 (mips_variable_issue): Set cached_can_issue_more.
1775 (TARGET_SCHED_REORDER2): Define to mips_sched_reorder2
1776 instead of mips_sched_reorder.
1777
1778 Revert:
1779 2008-09-09 Andrey Belevantsev <abel@ispras.ru>
1780 PR rtl-optimization/37360
1781 * haifa-sched.c (max_issue): Do not assert that we never issue more
1782 insns than issue_rate. Add comment.
1783
1784 2010-10-22 Eric Botcazou <ebotcazou@adacore.com>
1785
1786 * gimplify.c (gimplify_variable_sized_compare): Preserve the source
1787 location info of the expression.
1788
1789 2010-10-22 DJ Delorie <dj@redhat.com>
1790
1791 * doc/extend.texi (Named Address Spaces): Document the M32C named
1792 address space.
1793
1794 * config/m32c/m32c-pragma.c (m32c_register_pragmas): Register the
1795 __far address space.
1796 * config/m32c/m32c.h (ADDR_SPACE_FAR): New. Add support for
1797 "__far" address space for R8C and M16C processor variants.
1798 * config/m32c/m32c.c (m32c_addr_space_legitimate_address_p): New.
1799 (far_addr_space_p): New.
1800 (encode_pattern_1): Add sign and zero extend support.
1801 (m32c_hard_regno_nregs_1): Large pointers in A16 mode are SImode.
1802 (m32c_extra_constraint_p2): Add SF constraint.
1803 (m32c_legitimate_address_p): Support __far addresses.
1804 (m32c_addr_space_pointer_mode): New.
1805 (m32c_addr_space_address_mode): New.
1806 (m32c_addr_space_legitimate_address_p): New.
1807 (m32c_addr_space_legitimize_address): New.
1808 (m32c_addr_space_subset_p): New.
1809 (m32c_addr_space_convert): New.
1810 (conversions): Add __far operand patterns.
1811 (m32c_prepare_move): Force constants into registers for __far moves.
1812 (m32c_split_move): __far moves are always split.
1813 * config/m32c/addsub.md (addsi3_1): Support SImode symbols.
1814 * config/m32c/mov.md (mov<mode>_far_op1): New.
1815 (mov<mode>_far_op2): New.
1816 (movqi_op): Add __far (SF) support.
1817 (movhi_op): Likewise.
1818 (movsi_splittable): Split A1A0 also.
1819
1820 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1821 Andrew Pinski <pinskia@gmail.com>
1822
1823 * c-typeck.c (build_array_ref): Handle subscripting of vectors.
1824 * doc/extend.texi: New paragraph
1825
1826 2010-10-22 Paul Koning <ni1d@arrl.net>
1827
1828 * config.pdp11/pdp11.h (DBX_DEBUGGING_INFO): Define.
1829
1830 2010-10-22 DJ Delorie <dj@redhat.com>
1831
1832 * config/m32c/m32c-lib1.S (m32c_jsri16): Make reentrant.
1833
1834 2010-10-22 Paul Koning <ni1d@arrl.net>
1835
1836 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Define.
1837
1838 2010-10-22 Richard Henderson <rth@redhat.com>
1839
1840 * config/i386/i386.c (ix86_builtin_vectorized_function): Add
1841 cases for __builtin_fma and __builtin_fmaf.
1842
1843 2010-10-22 Richard Henderson <rth@redhat.com>
1844
1845 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Produce
1846 NEG+USE for vectors as well.
1847 * config/i386/i386.md (*absneg<VEC_FLOAT_MODE>2): New pattern
1848 and splitter.
1849
1850 2010-10-22 Joseph Myers <joseph@codesourcery.com>
1851
1852 * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION,
1853 SWITCH_CURTAILS_COMPILATION): Remove.
1854 * doc/tm.texi.in (SWITCH_CURTAILS_COMPILATION): Remove documentation.
1855 * doc/tm.texi: Regenerate.
1856 * system.h (SWITCH_CURTAILS_COMPILATION): Poison.
1857
1858 2010-10-22 Changpeng Fang <changpeng.fang@amd.com>
1859
1860 * config/i386/bdver1.md: New file.
1861 * config/i386/i386.md (include "bdver1.md"): Invoke the
1862 pipeline description for bdver1.
1863 (x86_sahf_1): Add "bdver1_decode" attribute.
1864 (*cmpfp_i_mixed): Likewise.
1865 (*cmpfp_i_sse): Likewise.
1866 (*cmpfp_i_i387): Likewise.
1867 (*cmpfp_iu_mixed): Likewise.
1868 (*cmpfp_iu_sse): Likewise.
1869 (*cmpfp_iu_387): Likewise.
1870 (*swap<mode>,*swap<mode>_1): Likewise.
1871 (fixuns_trunc<mode>hi2): Likewise.
1872 (fix_trunc<mode>si_sse): Likewise.
1873 (x86_fnstcw_1): Likewise.
1874 (x86_fldcw_1): Likewise.
1875 (*floatsi<mode>2_vector_mixed_with_temp): Likewise.
1876 (*floatsi<mode>2_vector_mixed): Likewise.
1877 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Likewise.
1878 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
1879 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
1880 (*floatsi<mode>2_vector_sse_with_temp): Likewise.
1881 (*floatsi<mode>2_vector_sse): Likewise.
1882 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Likewise.
1883 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
1884 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
1885 (*mul<mode>3_1): Likewise.
1886 (*mulsi3_1_zext): Likewise.
1887 (*mulhi3_1): Likewise.
1888 (*mulqi3_1): Likewise.
1889 (*<u>mul<mode><dwi>3_1): Likewise.
1890 (*<u>mulqihi3_1): Likewise.
1891 (*<s>muldi3_highpart_1): Likewise.
1892 (*<s>mulsi3_highpart_1): Likewise.
1893 (*<s>mulsi3_highpart_zext): Likewise.
1894 (x86_64_shld): Likewise.
1895 (x86_shld): Likewise.
1896 (x86_64_shrd): Likewise.
1897 (x86_shrd): Likewise.
1898 (sqrtxf2): Likewise.
1899 (sqrt_extend<mode>xf2_i387): Likewise.
1900 (*sqrt<mode>2_sse): Likewise.
1901 * config/i386/sse.md (sse_cvtsi2ss): Add "bdver1_decode" attribute.
1902 (sse_cvtsi2ssq): Likewise.
1903 (sse_cvtss2si): Likewise.
1904 (sse_cvtss2si_2): Likewise.
1905 (sse_cvtss2siq): Likewise.
1906 (sse_cvtss2siq_2): Likewise.
1907 (sse_cvttss2si): Likewise.
1908 (sse_cvttss2siq): Likewise.
1909 (sse2_cvtpi2pd): Likewise.
1910 (sse2_cvttpd2pi): Likewise.
1911 (sse2_cvtsi2sd): Likewise.
1912 (sse2_cvtsi2sdq): Likewise.
1913 (sse2_cvtsd2si): Likewise.
1914 (sse2_cvtsd2si_2): Likewise.
1915 (sse2_cvtsd2siq): Likewise.
1916 (sse2_cvtsd2siq_2): Likewise.
1917 (sse2_cvttsd2si): Likewise.
1918 (sse2_cvttsd2siq): Likewise.
1919 (*sse2_cvtpd2dq): Likewise.
1920 (*sse2_cvttpd2dq): Likewise.
1921 (sse2_cvtsd2ss): Likewise.
1922 (sse2_cvtss2sd): Likewise.
1923 (*sse2_cvtpd2ps): Likewise.
1924 (sse2_cvtps2pd): Likewise.
1925
1926 2010-10-22 Richard Guenther <rguenther@suse.de>
1927
1928 PR middle-end/46137
1929 * gimple-fold.c (gimplify_and_update_call_from_tree): Properly
1930 remove the virtual operands if they are not needed.
1931
1932 2010-10-22 Changpeng Fang <changpeng.fang@amd.com>
1933
1934 * config/i386/i386.c (processor_costs bdver1_cost): Update
1935 insn costs and architectural parameters for bdver1.
1936
1937 2010-10-22 Richard Guenther <rguenther@suse.de>
1938
1939 * gimple.h (gimple_register_canonical_type): Declare.
1940 * gimple.c (gimple_canonical_types): New global hashtable.
1941 (struct gimple_type_leader_entry_s): New type.
1942 (gimple_type_leader): New global cache.
1943 (gimple_lookup_type_leader): New function.
1944 (gtc_visit): Query the proper cache.
1945 (gimple_types_compatible_p): Likewise.
1946 (gimple_register_type): Use the new cache instead of TYPE_CANONICAL.
1947 (gimple_canonical_type_eq): New function.
1948 (gimple_register_canonical_type): Likewise.
1949 (print_gimple_types_stats): Adjust for gimple_canonical_types.
1950 (free_gimple_type_tables): Likewise. Free gimple_type_leader.
1951 * tree-ssa.c (useless_type_conversion_p): Do not dispatch to
1952 gimple_types_compatible_p for LTO.
1953
1954 2010-10-22 Uros Bizjak <ubizjak@gmail.com>
1955
1956 PR target/46098
1957 * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
1958 Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
1959 (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
1960 (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
1961 (<sse>_movu<ssemodesuffix>): New expander.
1962 (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
1963 (avx_movdqu<avxmodesuffix>): New expander.
1964 (*sse2_movdqu): Rename from sse2_movdqu.
1965 (sse2_movdqu): New expander.
1966
1967 2010-10-22 Richard Guenther <rguenther@suse.de>
1968
1969 PR tree-optimization/45720
1970 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
1971 Handle negative step.
1972 (vect_enhance_data_refs_alignment): Likewise.
1973 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Likewise.
1974 (vect_create_cond_for_align_checks): Likewise.
1975 (vect_create_cond_for_alias_checks): Likewise.
1976
1977 2010-10-22 Ira Rosen <irar@il.ibm.com>
1978
1979 PR tree-optimization/46126
1980 * tree-vect-stmts.c (vect_analyze_stmt): Pass NODE to
1981 vectorizable_shift in case of basic block vectorization.
1982
1983 2010-10-22 Joseph Myers <joseph@codesourcery.com>
1984
1985 * target.h (enum opt_levels, struct default_options): New.
1986 * target.def (handle_ofast): Remove hook.
1987 (target_option.optimization): Change to
1988 target_option.optimization_table.
1989 * doc/tm.texi.in (TARGET_OPTION_OPTIMIZATION): Change to
1990 TARGET_OPTION_OPTIMIZATION_TABLE.
1991 (CAN_DEBUG_WITHOUT_FP): Remove.
1992 * doc/tm.texi: Regenerate.
1993 * opts.c (maybe_default_option, maybe_default_options,
1994 default_options_table): New.
1995 (default_options_optimization): Take extra parameters. Don't
1996 assert that global_options and global_options_set are in use. Use
1997 maybe_default_options.
1998 (decode_options): Pass extra parameters to
1999 default_options_optimization.
2000 * common.opt (falign-loops): Use value 0 with Var.
2001 (frerun-cse-after-loop, ftree-ter): Remove Init.
2002 * system.h (CAN_DEBUG_WITHOUT_FP, TARGET_HANDLE_OFAST,
2003 TARGET_OPTION_OPTIMIZATION): Remove.
2004 * targhooks.c (empty_optimization_table): New.
2005 * targhooks.h (empty_optimization_table): Declare.
2006 * toplev.c (process_options): Don't set flag_rerun_cse_after_loop.
2007 * config/alpha/alpha.c (alpha_option_optimization_table,
2008 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2009 * config/alpha/alpha.h (CAN_DEBUG_WITHOUT_FP): Remove.
2010 * config/arm/arm.c (arm_option_optimization: Change to
2011 arm_option_optimization_table.
2012 (TARGET_OPTION_OPTIMIZATION): Change to
2013 TARGET_OPTION_OPTIMIZATION_TABLE.
2014 * config/arm/arm.h (CAN_DEBUG_WITHOUT_FP): Remove.
2015 * config/avr/avr.c (avr_option_optimization_table,
2016 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2017 * config/avr/avr.h (CAN_DEBUG_WITHOUT_FP): Remove.
2018 * config/cris/cris.c (cris_option_optimization): Change to
2019 cris_option_optimization_table.
2020 (TARGET_OPTION_OPTIMIZATION): Change to
2021 TARGET_OPTION_OPTIMIZATION_TABLE.
2022 * config/crx/crx.c (crx_option_optimization): Change to
2023 crx_option_optimization_table.
2024 (TARGET_OPTION_OPTIMIZATION): Change to
2025 TARGET_OPTION_OPTIMIZATION_TABLE.
2026 * config/crx/crx.h (CAN_DEBUG_WITHOUT_FP): Remove.
2027 * config/fr30/fr30.c (fr30_option_optimization_table,
2028 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2029 * config/fr30/fr30.h (CAN_DEBUG_WITHOUT_FP): Remove.
2030 * config/frv/frv.c (frv_option_optimization_table,
2031 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2032 * config/frv/frv.h (CAN_DEBUG_WITHOUT_FP): Remove.
2033 * config/h8300/h8300.c (h8300_option_optimization): Change to
2034 h8300_option_optimization_table.
2035 (TARGET_OPTION_OPTIMIZATION): Change to
2036 TARGET_OPTION_OPTIMIZATION_TABLE.
2037 * config/h8300/h8300.h (CAN_DEBUG_WITHOUT_FP): Remove.
2038 * config/i386/i386.c (ix86_option_optimization): Change to
2039 ix86_option_optimization_table.
2040 (TARGET_OPTION_OPTIMIZATION): Change to
2041 TARGET_OPTION_OPTIMIZATION_TABLE.
2042 * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
2043 as initializer.
2044 * config/ia64/ia64.c (ia64_option_optimization): Change to
2045 ia64_option_optimization_table.
2046 (TARGET_OPTION_OPTIMIZATION): Change to
2047 TARGET_OPTION_OPTIMIZATION_TABLE.
2048 * config/ia64/ia64.h (CAN_DEBUG_WITHOUT_FP): Remove.
2049 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define as
2050 initializer.
2051 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
2052 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2053 * config/iq2000/iq2000.h (CAN_DEBUG_WITHOUT_FP): Remove.
2054 * config/lm32/lm32.c (lm32_option_optimization_table,
2055 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2056 * config/lm32/lm32.h (CAN_DEBUG_WITHOUT_FP): Remove.
2057 * config/m32r/m32r.c (m32r_option_optimization): Change to
2058 m32r_option_optimization_table.
2059 (TARGET_OPTION_OPTIMIZATION): Change to
2060 TARGET_OPTION_OPTIMIZATION_TABLE.
2061 * config/m32r/m32r.h (SUBTARGET_OPTIMIZATION_OPTIONS,
2062 CAN_DEBUG_WITHOUT_FP): Remove.
2063 * config/mcore/mcore.c (mcore_option_optimization): Change to
2064 mcore_option_optimization_table.
2065 (TARGET_OPTION_OPTIMIZATION): Change to
2066 TARGET_OPTION_OPTIMIZATION_TABLE.
2067 * config/mep/mep.c (mep_option_optimization): Change to
2068 mep_option_optimization_table.
2069 (TARGET_OPTION_OPTIMIZATION): Change to
2070 TARGET_OPTION_OPTIMIZATION_TABLE.
2071 * config/mep/mep.h (CAN_DEBUG_WITHOUT_FP): Remove.
2072 * config/microblaze/microblaze.c
2073 (microblaze_option_optimization_table,
2074 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2075 * config/microblaze/microblaze.h (CAN_DEBUG_WITHOUT_FP): Remove.
2076 * config/mips/mips.c (mips_option_optimization_table,
2077 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2078 * config/mips/mips.h (CAN_DEBUG_WITHOUT_FP): Remove.
2079 * config/mmix/mmix.c (mmix_option_optimization): Change to
2080 mmix_option_optimization_table.
2081 (TARGET_OPTION_OPTIMIZATION): Change to
2082 TARGET_OPTION_OPTIMIZATION_TABLE.
2083 * config/mmix/mmix.h (CAN_DEBUG_WITHOUT_FP): Remove.
2084 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
2085 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2086 * config/mn10300/mn10300.h (CAN_DEBUG_WITHOUT_FP): Remove.
2087 * config/pa/pa.c (pa_option_optimization_table,
2088 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2089 * config/pa/pa.h (CAN_DEBUG_WITHOUT_FP): Remove.
2090 * config/pdp11/pdp11.c (pdp11_option_optimization): Change to
2091 pdp11_option_optimization_table.
2092 (TARGET_OPTION_OPTIMIZATION): Change to
2093 TARGET_OPTION_OPTIMIZATION_TABLE.
2094 * config/picochip/picochip.c (picochip_option_optimization_table,
2095 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2096 * config/picochip/picochip.h (CAN_DEBUG_WITHOUT_FP): Remove.
2097 * config/rs6000/rs6000.c (rs6000_option_optimization_table,
2098 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2099 * config/rs6000/rs6000.h (CAN_DEBUG_WITHOUT_FP): Remove.
2100 * config/rx/rx.c (rx_option_optimization_table,
2101 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2102 * config/rx/rx.h (CAN_DEBUG_WITHOUT_FP): Remove.
2103 * config/s390/s390.c (s390_option_optimization): Change to
2104 s390_option_optimization_table.
2105 (s390_option_override): Update comment.
2106 (TARGET_OPTION_OPTIMIZATION): Change to
2107 TARGET_OPTION_OPTIMIZATION_TABLE.
2108 * config/s390/s390.h (CAN_DEBUG_WITHOUT_FP): Remove.
2109 * config/score/score.c (score_option_optimization_table,
2110 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2111 * config/score/score.h (CAN_DEBUG_WITHOUT_FP): Remove.
2112 * config/sh/sh.c (sh_option_optimization): Change to
2113 sh_option_optimization_table.
2114 (TARGET_OPTION_OPTIMIZATION): Change to
2115 TARGET_OPTION_OPTIMIZATION_TABLE.
2116 (sh_option_override): Set MASK_SAVE_ALL_TARGET_REGS here.
2117 (sh_option_override, expand_block_move, multcosts, find_barrier,
2118 barrier_align): Use optimize_size instead of TARGET_SMALLCODE.
2119 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Remove.
2120 (LOOP_ALIGN, TRAMPOLINE_ALIGNMENT, MOVE_BY_PIECES_P,
2121 STORE_BY_PIECES_P, SH_DYNAMIC_SHIFT_COST): Use optimize_size
2122 instead of TARGET_SMALLCODE.
2123 * config/sh/sh.opt (mspace): Make into an alias for -Os.
2124 * config/sparc/sparc.c (sparc_option_optimization_table,
2125 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2126 * config/sparc/sparc.h (CAN_DEBUG_WITHOUT_FP): Remove.
2127 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
2128 TARGET_OPTION_OPTIMIZATION_TABLE): New.
2129 * config/stormy16/stormy16.h (CAN_DEBUG_WITHOUT_FP): Remove.
2130 * config/v850/v850.c (v850_option_optimization): Change to
2131 v850_option_optimization_table.
2132 (TARGET_OPTION_OPTIMIZATION): Change to
2133 TARGET_OPTION_OPTIMIZATION_TABLE.
2134 * config/v850/v850.h (CAN_DEBUG_WITHOUT_FP): Remove.
2135 * config/xtensa/xtensa.c (xtensa_option_optimization): Change to
2136 xtensa_option_optimization_table.
2137 (TARGET_OPTION_OPTIMIZATION): Change to
2138 TARGET_OPTION_OPTIMIZATION_TABLE.
2139 * config/xtensa/xtensa.h (CAN_DEBUG_WITHOUT_FP): Remove.
2140
2141 2010-10-21 Iain Sandoe <iains@gcc.gnu.org>
2142
2143 Based on the CFString implementation in FSF apple/trunk branch.
2144
2145 * target.def (objc_construct_string): New Hook.
2146 * doc/tm.texi (objc_construct_string): Document.
2147 * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING): New.
2148 * config/t-darwin: Amend build rules for darwin.o.
2149 * config/darwin.opt: Add cfstrings flags.
2150 * config/darwin-c.c: Define __CONSTANT_CFSTRINGS__.
2151 (darwin_objc_construct_string): New.
2152 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Define.
2153 * config/i386/i386.c (ix86_init_builtins): Add SUBTARGET_INIT_BUILTINS.
2154 * config/darwin-protos.h (darwin_init_cfstring_builtins): New prototype.
2155 (darwin_fold_builtin): Likewise.
2156 (darwin_build_constant_cfstring): Likewise.
2157 (darwin_objc_construct_string): Likewise.
2158 (darwin_cfstring_p): Likewise.
2159 (darwin_enter_string_into_cfstring_table): Likewise.
2160 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS) Update for CFString.
2161 * config/darwin.c (darwin_running_cxx): New var.
2162 (machopic_select_section): Return cfstring_constant_object_section.
2163 (darwin_override_options): Set darwin_running_cxx.
2164 (add_builtin_field_decl): New.
2165 (darwin_init_cfstring_builtins): New.
2166 (darwin_build_constant_cfstring): New.
2167 (darwin_fold_builtin): New.
2168 (cfstring_hash): New.
2169 (cfstring_eq): New.
2170 (darwin_enter_string_into_cfstring_table): New.
2171 * config/darwin-sections.def (cfstring_constant_object_section): New.
2172 * config/darwin.h (TARGET_FOLD_BUILTIN): Define.
2173 (TARGET_OBJC_CONSTRUCT_STRING): Define.
2174
2175 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
2176
2177 * config/alpha/alpha.c (alpha_build_builtin_va_list): Use
2178 TYPE_STUB_DECL instead of TREE_CHAIN.
2179 * config/i386/i386.c (ix86_build_builtin_va_list_abi): Likewise.
2180 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Likewise.
2181 * config/s390/s390.c (s390_build_builtin_va_list): Likewise.
2182 * config/sh/sh.c (sh_build_builtin_va_list): Likewise.
2183 * config/spu/spu.c (spu_build_builtin_va_list): Likewise.
2184 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list):
2185 Likewise.
2186 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Likewise.
2187
2188 2010-10-22 Jie Zhang <jie@codesourcery.com>
2189
2190 * expr.c (emit_group_load_1): Update calls to extract_bit_field.
2191 (copy_blkmode_from_reg): Likewise.
2192 (read_complex_part): Likewise.
2193 (expand_expr_real_1): Calculate packedp and pass it to
2194 extract_bit_field.
2195 * expr.h (extract_bit_field): Update declaration.
2196 * calls.c (store_unaligned_arguments_into_pseudos): Update call
2197 to extract_bit_field.
2198 * expmed.c (extract_fixed_bit_field): Update calls to
2199 extract_fixed_bit_field.
2200 (store_split_bit_field): Likewise.
2201 (extract_bit_field_1): Add new argument packedp.
2202 (extract_bit_field): Add new argument packedp.
2203 (extract_fixed_bit_field): Add new argument packedp and let
2204 packed attribute override volatile.
2205 * stmt.c (expand_return): Update call to extract_bit_field.
2206
2207 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
2208
2209 * config/spu/spu.c (spu_function_arg): Dereference CUM parameter.
2210
2211 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
2212
2213 * ddg.c (add_cross_iteration_register_deps): Call gcc_assert instead
2214 of gcc_checking_assert.
2215 * sel-sched.c (code_motion_process_successors): Likewise.
2216
2217 2010-10-21 Eric Botcazou <ebotcazou@adacore.com>
2218
2219 * cfgcleanup.c (try_forward_edges): Do not throw away previous steps
2220 when stopping because of a different locus on edge or insn.
2221 (try_optimize_cfg): Add comment.
2222 * cfgrtl.c (rtl_merge_blocks): Tweak log message. If the destination
2223 block is a forwarder block, propagate locus on the edge.
2224 (cfg_layout_merge_blocks): Likewise.
2225
2226 2010-10-21 Uros Bizjak <ubizjak@gmail.com>
2227
2228 PR target/45946
2229 * config/i386/i386.md (*pushti2): New insn pattern.
2230 (pushti2 splitter): New insn splitter.
2231 (*push<mode>2): Macroize insn pattern from *push{di,ti}2 using
2232 DWI mode iterator.
2233
2234 2010-10-21 Paul Koning <ni1d@arrl.net>
2235
2236 * config/pdp11/pdp11-protos.md (arith_operand,
2237 const_immediate_operand, expand_shift_operand,
2238 immediate15_operand): Delete
2239 * config/pdp11/pdp11.c: Ditto.
2240 * config/pdp11/pdp11.h (REG_CLASS_FROM_LETTER,
2241 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
2242 EXTRA_CONSTRAINT): Delete.
2243 * config/pdp11/pdp11.md (various): Use standard constraints
2244 instead of removed ones.
2245 * config/pdp11/constraints.md: New file.
2246 * config/pdp11/predicates.md: New file.
2247
2248 2010-10-21 Bingfeng Mei <bmei@broadcom.com>
2249
2250 PR c/45834
2251 * alias.c (true_dependence_1): Remove obsolete check for QImode.
2252 (may_alias_p): Ditto.
2253
2254 2010-10-21 Martin Jambor <mjambor@suse.cz>
2255
2256 PR tree-optimization/45875
2257 * tree.c (get_binfo_at_offset): Remove initial zero offset test.
2258
2259 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
2260
2261 * tree-into-ssa.c (rewrite_update_enter_block): Remove unused
2262 variables.
2263 (create_new_def_for): Likewise.
2264
2265 2010-10-21 Nick Clifton <nickc@redhat.com>
2266
2267 * config/mn10300/mn10300.c: Fold code to 80-character width.
2268 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
2269 MEM, CONST_INT and CONST_DOUBLE.
2270 (targetm): Move initialization to end of file.
2271 (print_operand): Rename to mn10300_print_operand.
2272 (print_operand_address): Rename to mn10300_print_operand_address.
2273 (can_use_return_insn): Rename to mn10300_can_use_return_insn.
2274 (expand_prologue): Rename to mn10300_expand_prologue.
2275 (expand_epilogue): Rename to mn10300_expand_epilogue.
2276 (initial_offset): Rename to mn10300_initial_offset.
2277 (function_arg): Rename to mn10300_function_arg.
2278 (mask_ok_for_mem_btst): Rename to mn10300_mask_ok_for_mem_btst.
2279 (symbolic_operand): Rename to mn10300_symbolic_operand.
2280 (legitimize_pic_address): Rename to mn10300_legitimize_pic_address.
2281 (legitimate_pic_operand_p): Rename to mn10300_legitimate_pic_operand_p.
2282 * config/mn10300/mn10300-protos.h: Update prototypes.
2283 * config/mn10300/mn10300.h: Fold code to 80-character width.
2284 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
2285 MEM, CONST_INT and CONST_DOUBLE.
2286 (CPP_SPEC): Move to...
2287 (TARGET_CPU_CPP_BUILTINS): ... here.
2288 * config/mn10300/mn10300.md: Fold code to 80-character width.
2289 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
2290 MEM, CONST_INT and CONST_DOUBLE.
2291
2292 2010-10-21 Ira Rosen <irar@il.ibm.com>
2293
2294 PR tree-optimization/46049
2295 PR tree-optimization/46052
2296 * tree-vectorizer.h (enum stmt_vec_info_type): Add new value for shift.
2297 (vect_get_slp_defs): Add arguments.
2298 * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass scalar
2299 operands to vect_get_slp_defs.
2300 (vectorizable_reduction): Fix comment, pass scalar operands to
2301 vect_get_slp_defs.
2302 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use operand's
2303 type to determine number of units in the created vector.
2304 (vect_get_vec_defs): Pass scalar operands to vect_get_slp_defs.
2305 (vectorizable_conversion): Fix comment.
2306 (vectorizable_shift): New function.
2307 (vectorizable_operation): Move code that handles shifts to
2308 vectorizable_shift.
2309 (vectorizable_type_demotion): Fix comment, pass scalar operands to
2310 vect_get_slp_defs.
2311 (vectorizable_type_promotion, vectorizable_store): Likewise.
2312 (vectorizable_condition): Fix comment.
2313 (vect_analyze_stmt): Call vectorizable_shift.
2314 (vect_transform_stmt): Likewise.
2315 * tree-vect-slp.c (vect_get_constant_vectors): Add new argument.
2316 Use it as the operand to create vectors for, except reduction
2317 initial definition and store. Use operands type.
2318 (vect_get_slp_defs): Add new arguments. Pass them to
2319 vect_get_constant_vectors.
2320
2321 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
2322
2323 * basic-block.h (single_succ_edge): Use gcc_checking_assert.
2324 (single_pred_edge, ei_container, ei_next, ei_prev): Likewise.
2325 * cfghooks.c (fixup_reorder_chain): Likewise.
2326 * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
2327 * cgraph.c (cgraph_add_thunk): Likewise.
2328 (cgraph_create_edge_1): Likewise.
2329 (cgraph_create_virtual_clone): Likewise.
2330 * ddg.c (add_cross_iteration_register_deps): Likewise.
2331 * dwarf2out.c (modified_type_die): Likewise.
2332 * emit-rtl.c (set_mem_alias_set): Likewise.
2333 * ggc-zone.c (zone_allocate_marks): Likewise.
2334 * gimple-iterator.c (gsi_move_to_bb_end): Likewise.
2335 * gimple.c (iterative_hash_gimple_type): Likewise.
2336 * graphite-scop-detection.c (create_single_entry_edge): Likewise.
2337 (create_single_exit_edge): Likewise.
2338 * haifa-sched.c (choose_ready): Likewise.
2339 * lto-streamer-in.c (input_gimple_stmt): Likewise.
2340 * passes.c (execute_todo): Likewise.
2341 * sched-ebb.c (begin_schedule_ready): Likewise.
2342 * sel-sched.c (code_motion_process_successors): Likewise.
2343 * tree-call-cdce.c (gen_conditions_for_pow): Likewise.
2344 * tree-cfg-cleanup.c (tree_forwarder_block_p): Likewise.
2345 * tree-flow-inline.h (link_imm_use, move_use_after_head): Likewise.
2346 (phi_arg_index_from_use, phi_ssa_name_p): Likewise.
2347 * tree-into-ssa.c (insert_updated_phi_nodes_for): Likewise.
2348 * tree-ssa-coalesce.c (ssa_conflicts_test_p): Likewise.
2349 (ssa_conflicts_add): Likewise.
2350 * tree-ssa-copy.c (replace_exp): Likewise.
2351 * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
2352 * tree-ssa-forwprop.c (simple_gimple_switch): Likewise.
2353 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
2354 * tree-ssa-pre.c (bitmap_value_insert_into_set): Likewise.
2355 (compute_antic): Likewise.
2356 * tree-ssa-ter.c (add_to_partition_kill_list): Likewise.
2357 (add_dependence): Likewise.
2358 (process_replaceable, kill_expr, find_replaceable_exprs): Likewise.
2359 * tree-vrp.c (supports_overflow_infinity): Likewise.
2360 (make_overflow_infinity, negative_overflow_infinity): Likewise.
2361 (avoid_overflow_infinity, register_new_assert_for): Likewise.
2362 (process_assert_insertions_for): Likewise.
2363 * var-tracking.c (dv_is_value_p, dv_as_decl, dv_from_decl): Likewise.
2364 (dv_from_value, variable_union, find_loc_in_1pdv): Likewise.
2365 (intersect_loc_chains, variable_merge_over_cur): Likewise.
2366
2367 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
2368
2369 * cfgloop.c (flow_loops_find): Call bb_has_abnormal_pred.
2370 * reload1.c (has_nonexceptional_receiver): Likewise.
2371 * tree-into-ssa.c (rewrite_update_enter_block): Likewise.
2372 (create_new_def_for): Likewise.
2373 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
2374 (merge_phi_nodes): Likewise.
2375 (has_abnormal_incoming_edge_p): Delete.
2376
2377 2010-10-21 H.J. Lu <hongjiu.lu@intel.com>
2378
2379 * config/i386/sse.md (ssescalarmodesuffix): Add V8SI and V4DI.
2380
2381 2010-10-21 Richard Guenther <rguenther@suse.de>
2382 Michael Matz <matz@suse.de>
2383
2384 PR tree-optimization/45764
2385 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
2386 Adjust initial misalignment for negative DR_STEP.
2387 (vect_find_same_alignment_drs): Two DRs with different DR_STEP
2388 do not have the same alignment over the whole iteration domain.
2389
2390 2010-10-21 Richard Guenther <rguenther@suse.de>
2391
2392 PR tree-optimization/46111
2393 * tree-parloops.c (take_address_of): Re-organize for MEM_REF.
2394
2395 2010-10-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2396
2397 * config/s390/s390.md (*xordi3_cc): Mark xgrk as z196 only.
2398
2399 2010-10-21 Tristan Gingold <gingold@adacore.com>
2400
2401 * config/vms/vms-crtl.h (CRTL_NAMES): Add new translations.
2402 * config/vms/vms-crtl-64.h (CRTL_NAMES): Ditto.
2403
2404 2010-10-21 Tristan Gingold <gingold@adacore.com>
2405
2406 * config/alpha/vms-unwind.h (alpha_vms_fallback_frame_state): Set
2407 signal_frame.
2408 * config/alpha/alpha.c (alpha_function_arg): Adjust call.
2409
2410 2010-10-21 Tristan Gingold <gingold@adacore.com>
2411
2412 * config/ia64/vms64.h (TARGET_DEFAULT): Add MASK_FUSED_MADD.
2413 * config/ia64/vms.h (TARGET_DEFAULT): Ditto.
2414
2415 2010-10-20 Nathan Froyd <froydnj@codesourcery.com>
2416
2417 * basic-block.h (find_fallthru_edge): Define.
2418 * cfgcleanup.c (merge_blocks_move): Use it.
2419 (try_crossjump_bb): Likewise.
2420 * cfglayout.c (fixup_reorder_chains): Likewise.
2421 (fixup_fallthru_exit_predecessor): Likewise.
2422 * cfgrtl.c (rtl_split_edge): Likewise.
2423 (rtl_verify_flow_info): Likewise.
2424 * function.c (thread_prologue_and_epilogue_insns): Likewise.
2425 * gimple-pretty-print.c (dump_implicit_edges): Likewise.
2426 * ifcvt.c (block_fallthru): Likewise.
2427 * reload1.c (fixup_abnormal_edges): Likewise.
2428 * sched-ebb.c (being_schedule_ready): Likewise.
2429 (schedule_ebb): Likwise.
2430 * sched-rgn.c (find_single_block_region): Likewise.
2431 * sel-sched-ir.c (bb_ends_ebb_p): Likewise.
2432 * tree-complex.c (expand_complex_move): Likewise.
2433 * sched-int.h (find_fallthru_edge): Rename to...
2434 (find_fallthru_edge_from): ...this.
2435 * haifa-sched.c (find_fallthru_edge): Rename to...
2436 (find_fallthru_edge_from): ...this. Use new find_fallthru_edge.
2437 (init_before_recovery): Call find_fallthru_edge_from.
2438 * sel-sched-ir.c (merge_fences): Likewise.
2439 * sel-sched.c (in_fallthru_bb_p): Likewise.
2440 (move_cond_jump): Likewise.
2441
2442 2010-10-20 Paul Koning <ni1d@arrl.net>
2443
2444 * config/pdp11/pdp11.md (various): Fix conditions on a number of
2445 insn to check for target 11/40 or higher.
2446
2447 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2448
2449 * parser.c (c_parser_objc_method_type): Mark inline. Return a
2450 bool instead of a tree.
2451 (c_parser_objc_method_decl): Added bool argument. Updated call to
2452 objc_build_method_signature.
2453 (c_parser_objc_method_definition): Do not call
2454 objc_set_method_type. Updated calls to c_parser_objc_method_type,
2455 c_parser_objc_method_decl and objc_start_method_definition.
2456 (c_parser_objc_methodproto): Do not call objc_set_method_type.
2457 Updated calls to c_parser_objc_method_type,
2458 c_parser_objc_method_decl and objc_add_method_declaration.
2459
2460 2010-10-20 Jakub Jelinek <jakub@redhat.com>
2461
2462 PR tree-optimization/45919
2463 * tree-ssa-ccp.c (fold_nonarray_ctor_reference): Handle flexible
2464 array members.
2465
2466 PR tree-optimization/46066
2467 * tree-parloops.c (create_parallel_loop): Use gsi_last_nondebug_bb
2468 instead of gsi_last_bb.
2469
2470 2010-10-20 DJ Delorie <dj@redhat.com>
2471
2472 * config/m32c/m32c.c (m32c_option_override): Always disable
2473 function-cse in 16-bit mode. Indirect calls are always worse than
2474 direct calls as there is no 16-bit indirect call opcode.
2475 (m32c_override_options_after_change): New, likewise.
2476
2477 2010-10-20 Nathan Froyd <froydnj@codesourcery.com>
2478
2479 * ifcvt.c (noce_emit_cmove): If both of the values are SUBREGs, try
2480 emitting the conditional move in the inner mode of the SUBREG.
2481
2482 2010-10-20 Anatoly Sokolov <aesok@post.ru>
2483
2484 * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS): Remove macros.
2485 * config/ia64/ia64-protos.h (ia64_preferred_reload_class): Remove.
2486 * config/ia64/ia64.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
2487 (ia64_preferred_reload_class): Make static. Change rclass argument
2488 and result types from enum reg_class to reg_class_t.
2489
2490 2010-10-20 Pat Haugen <pthaugen@us.ibm.com>
2491
2492 * tree-ssa-ter.c (find_replaceable_in_bb): Allow replacement over
2493 call for single operand expression.
2494
2495 2010-10-20 Eric Botcazou <ebotcazou@adacore.com>
2496
2497 * tree-optimize.c (execute_fixup_cfg): Purge dead abnormal call edges
2498 if there is a call statement to pure or const function in the block.
2499
2500 2010-10-20 Paul Koning <pkoning@equallogic.com>
2501
2502 Fix several build errors for pdp11 target.
2503 * config/pdp11/pdp11.md (*cmpdf): Fix tstd operands.
2504 (cbranchdf4): Conditional on TARGET_FPU.
2505 (movdf): Ditto; correct alternatives check.
2506 (movmemhi): Fix predicate and constraint.
2507 * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Handle 64 bit mode.
2508
2509 2010-10-20 Richard Guenther <rguenther@suse.de>
2510
2511 PR lto/45667
2512 * lto-streamer-out.c (output_gimple_stmt): Fix typo.
2513 * tree-cfg.c (verify_gimple_call): Properly get the call fndecl.
2514 (verify_gimple_assign_single): Disable ADDR_EXPR type check
2515 when in LTO.
2516
2517 2010-10-20 Vladimir Makarov <vmakarov@redhat.com>
2518
2519 PR fortran/42169
2520 * ira-emit.c (store_can_be_removed_p): Return false instead of
2521 gcc_unreachable.
2522
2523 2010-10-20 Dmitry Melnik <dm@ispras.ru>
2524
2525 * fold-const.c (fold_binary_loc): New transformation.
2526
2527 2010-10-20 H.J. Lu <hongjiu.lu@intel.com>
2528
2529 PR target/46085
2530 * config/i386/sse.md (reduc_splus_v8sf): Updated.
2531 (reduc_splus_v4df): Likewise.
2532
2533 2010-10-20 Richard Guenther <rguenther@suse.de>
2534
2535 PR tree-optimization/45860
2536 * tree-ssa-phiopt.c (cond_store_replacement): Do not do
2537 conditional store replacement for non-register type stores.
2538
2539 2010-10-20 Eric Botcazou <ebotcazou@adacore.com>
2540
2541 * stor-layout.c (skip_simple_constant_arithmetic): New function.
2542 (self_referential_size): Use it instead of skip_simple_arithmetic.
2543
2544 2010-10-20 Olivier Hainque <hainque@adacore.com>
2545
2546 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p):
2547 If the current function calls eh_return, claim live all registers
2548 that we need to check for liveness otherwise.
2549
2550 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2551
2552 * c-decl.c (c_write_global_declarations): Call
2553 objc_write_global_declarations when compiling Objective-C.
2554 * c-lang.c (finish_file): Removed.
2555
2556 2010-10-19 DJ Delorie <dj@redhat.com>
2557
2558 * doc/tm.texi.in (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): New.
2559 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Change to hook.
2560 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
2561 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
2562 * doc/tm.texi: Regenerate.
2563 * targhooks.h (default_label_align_after_barrier_max_skip,
2564 default_loop_align_max_skip, default_label_align_max_skip,
2565 default_jump_align_max_skip): Declare.
2566 * target.def (label_align_after_barrier_max_skip): New.
2567 (loop_align_max_skip): New.
2568 (label_align_max_skip): New.
2569 (jump_align_max_skip): New.
2570 * system.h (poison): Add those macros to the list.
2571 * final.c (LABEL_ALIGN_MAX_SKIP): Remove.
2572 (LOOP_ALIGN_MAX_SKIP): Remove.
2573 (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Remove.
2574 (JUMP_ALIGN_MAX_SKIP): Remove.
2575 (default_label_align_after_barrier_max_skip): New.
2576 (default_loop_align_max_skip): New.
2577 (default_label_align_max_skip): New.
2578 (default_jump_align_max_skip): New.
2579 (compute_alignments): Use the new hooks.
2580 (shorten_branches): Likewise.
2581
2582 2010-10-19 Richard Henderson <rth@redhat.com>
2583
2584 * config/i386/i386.c (bdesc_multi_arg): Use fma4i_fmadd_<mode>.
2585 * config/i386/sse.md (fma<mode>4): Enable for FMA & SSE_MATH.
2586 (fma4i_fmadd_<mode>): New.
2587 (*split_fma, *split_fms, *split_fnma, *split_fnms): Rename from
2588 fma4_fm*_<mode> and adjust to be pre-reload splitters to the
2589 standard fma patterns.
2590 (fmaddsub_<mode>): Rename from fma4i_fmaddsub_<mode> and
2591 enable for FMA.
2592 (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
2593 (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
2594 (*fma_fmaddsub_<mode>, *fma_fmsubadd_<mode>): New.
2595
2596 2010-10-19 Paul Koning <pkoning@equallogic.com>
2597
2598 * lower-subreg.c (resolve_shift_zext): Delete conditional code for
2599 WORDS_BIG_ENDIAN != BYTES_BIG_ENDIAN.
2600
2601 2010-10-19 Richard Henderson <rth@redhat.com>
2602
2603 * config/ia64/ia64.md (fmasf4, *fmssf4, *nfmasf4): New.
2604 (fmadf4, *fmsdf4, *nfmadf4): New.
2605 (fmaxf4, *fmsxf4, *nfmaxf4): New.
2606
2607 2010-10-19 Michael Eager <eager@eagercon.com>
2608
2609 * config/microblaze/microblaze.c (TARGET_EXCEPT_UNWIND_INFO):
2610 Use sjlj unwind info for exceptions.
2611
2612 2010-10-19 Francois-Xavier Coudert<fxcoudert@gcc.gnu.org>
2613
2614 PR fortran/43414
2615 * dwarf2out.c (add_calling_convention_attribute): Flag main
2616 Fortran subroutine with DW_AT_main_subprogram.
2617
2618 2010-10-19 Nick Clifton <nickc@redhat.com>
2619
2620 * config/rx/rx.c (rx_function_value): Small integer types are
2621 promoted to SImode.
2622 (rx_promote_function_mode): New function.
2623 (TARGET_PROMOTE_FUNCTION_MODE): Define.
2624
2625 2010-10-19 Nick Clifton <nickc@redhat.com>
2626
2627 * config/mep/mep.c (mep_print_operand): Use
2628 targetm.strip_name_encoding.
2629 (mep_output_aligned_common): Likewise.
2630
2631 2010-10-19 Basile Starynkevitch <basile@starynkevitch.net>
2632
2633 * gengtype.c (new_structure): Remove ad-hoc "location_s" processing.
2634
2635 2010-10-18 Richard Henderson <rth@redhat.com>
2636
2637 * simplify-rtx.c (simplify_ternary_operation) [FMA]: Simplify
2638 (fma (neg a) (neg b) c) and (fma a (neg b) c).
2639
2640 2010-10-18 Richard Henderson <rth@redhat.com>
2641
2642 * config/i386/i386.c (IX86_BUILTIN_VFMSUBSS, IX86_BUILTIN_VFMSUBSD,
2643 IX86_BUILTIN_VFMSUBPS, IX86_BUILTIN_VFMSUBPD,
2644 IX86_BUILTIN_VFMSUBADDPS, IX86_BUILTIN_VFMSUBADDPD,
2645 IX86_BUILTIN_VFNMADDSS, IX86_BUILTIN_VFNMADDSD,
2646 IX86_BUILTIN_VFNMADDPS, IX86_BUILTIN_VFNMADDPD,
2647 IX86_BUILTIN_VFNMSUBSS, IX86_BUILTIN_VFNMSUBSD,
2648 IX86_BUILTIN_VFNMSUBPS, IX86_BUILTIN_VFNMSUBPD,
2649 IX86_BUILTIN_VFMSUBADDPS256, IX86_BUILTIN_VFMSUBADDPD256,
2650 IX86_BUILTIN_VFNMADDPS256, IX86_BUILTIN_VFNMADDPD256,
2651 IX86_BUILTIN_VFNMSUBPS256, IX86_BUILTIN_VFNMSUBPD256): Remove.
2652 (bdesc_multi_arg): Remove the corresponding builtins.
2653 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Remove.
2654 (UNSPEC_FMA4_FMSUBADD): Remove.
2655 (UNSPEC_FMADDSUB): Rename from UNSPEC_FMA4_FMADDSUB.
2656 * config/i386/sse.md (FMA4MODEF4): Remove.
2657 (FMAMODE): Add.
2658 (fma<mode>4): New expander.
2659 (*fma4i_fmadd_<mode>): Macroize from fma4i_fmadd<mode>4 patterns,
2660 and use FMA rtx code instead of UNSPEC_FMA4_INTRINSIC.
2661 (*fma4i_fmsub_<mode>): Similarly.
2662 (*fma4i_fnmadd_<mode>): Similarly.
2663 (*fma4i_fnmsub_<mode>): Similarly.
2664 (fma4i_vmfmadd_<mode>): Scalar patterns zero-extend, not merge
2665 with the first operand.
2666 (fma4i_fmaddsub_<mode>): Represent with UNSPEC_FMADDSUB instead
2667 of explicit arithmetic. Macroize with AVXMODEF2P.
2668 (*fma4i_fmsubadd_<mode>): Represent with UNSPEC_FMADDSUB + NEG.
2669 (xop_frcz<mode>2): Macroize with FMAMODE.
2670 (xop_vmfrcz<mode>2): Scalar patterns zero-extend, not merge with
2671 the first operand.
2672 * config/i386/fma4intrin.h (_mm_msub_ps): Use vfmadd intrinsic with
2673 extra negations.
2674 (_mm_msub_pd, _mm_msub_ss, _mm_msub_sd): Likewise.
2675 (_mm_nmacc_ps, _mm_nmacc_pd, _mm_nmacc_ss, _mm_nmacc_sd): Likewise.
2676 (_mm_nmsub_ps, _mm_nmsub_pd, _mm_nmsub_ss, _mm_nmsub_sd): Likewise.
2677 (_mm256_msub_ps, _mm256_msub_pd): Likewise.
2678 (_mm256_nmacc_ps, _mm256_nmacc_pd): Likewise.
2679 (_mm256_nmsub_ps, _mm256_nmsub_pd): Likewise.
2680 (_mm_msubadd_ps): Use vfmaddsub intrinsic with extra negation.
2681 (_mm_msubadd_pd, _mm256_msubadd_ps, _mm256_msubadd_pd): Likewise.
2682
2683 2010-10-18 Bernd Schmidt <bernds@codesourcery.com>
2684
2685 PR rtl-optimization/45966
2686 * combine.c (try_combine): If added_sets_2, deal with the case
2687 where i0 feeds i1 and i1 feeds i2.
2688
2689 2010-10-18 Jan Hubicka <jh@suse.cz>
2690
2691 * ipa.c (cgraph_externally_visible_p): Handle externally visible and
2692 preserve flags before trying to guess on visibility.
2693 (varpool_externally_visible_p): New function.
2694 (function_and_variable_visibility): Use it.
2695
2696 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2697
2698 Implemented parsing @synthesize and @dynamic for Objective-C.
2699 * c-parser.c (c_parser_external_declaration): Recognize
2700 RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
2701 (c_parser_objc_at_synthesize_declaration): New.
2702 (c_parser_objc_at_dynamic_declaration): New.
2703
2704 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2705
2706 * c-parser.c (c_parser_objc_class_declaration): After finding an
2707 error, parse the whole declaration then reset parser->error.
2708
2709 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2710
2711 PR target/46041
2712 * tree.h (mode_has_fma): Delete, move to c-cppbuiltins.c.
2713 * builtins.c (mode_has_fma): Ditto.
2714
2715 2010-10-18 Steve Ellcey <sje@cup.hp.com>
2716
2717 PR target/36898
2718 PR middle-end/43760
2719 * config/ia64/ia64.c (rws_access_regno): Remove predicate check.
2720
2721 2010-10-18 Joseph Myers <joseph@codesourcery.com>
2722
2723 * config/i386/i386.c (ix86_option_override_internal): Define and
2724 use USE_X86_64_FRAME_POINTER for 64-bit flag_omit_frame_pointer
2725 default.
2726 * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
2727 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Define.
2728
2729 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2730
2731 Merge from 'apple/trunk' branch on FSF servers.
2732 * c-parser.c (c_parser_objc_type_name): Adapted to new parser the
2733 following Objective-C change:
2734
2735 2005-10-10 Fariborz Jahanian <fjahanian@apple.com>
2736
2737 Radar 4301047
2738 * c-parse.in (objc_quals): Build objc qualifier list same way
2739 as gcc-3.3
2740
2741 2010-10-18 Jan Hubicka <jh@suse.cz>
2742
2743 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p,
2744 function_and_variable_visibility): Revert accidental commit.
2745
2746 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2747
2748 Merge from 'apple/trunk' branch on FSF servers.
2749 * c-parser.c (c_parser_typeof_specifier): Adapted to new parser
2750 the following Objective-C change:
2751
2752 2005-10-07 Fariborz Jahanian <fjahanian@apple.com>
2753
2754 Radar 4204796
2755 * c-parse.in (typespec_nonreserved_nonattr): Remove volatile from
2756 'volatilized' type used in a typeof operator.
2757
2758 2010-10-18 Eric Botcazou <ebotcazou@adacore.com>
2759
2760 * tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare.
2761 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): Move around and
2762 rewrite modelled on gimple_purge_dead_eh_edges.
2763 (gimple_purge_all_dead_abnormal_call_edges): New function.
2764 * tree-inline.c (expand_call_inline): Call gimple_purge_dead_eh_edges
2765 directly instead of through gimple_purge_dead_abnormal_call_edges.
2766 * tree-ssa-pre.c (need_ab_cleanup): New static variable.
2767 (eliminate): Set bit in need_ab_cleanup for the basic block if we have
2768 removed AB side-effects from one of its statements.
2769 (init_pre): Initialize need_ab_cleanup.
2770 (fini_pre): Purge dead abnormal call edges and clean up the CFG if bits
2771 are set in need_ab_cleanup. Free need_ab_cleanup afterward.
2772
2773 2010-10-18 Jakub Jelinek <jakub@redhat.com>
2774
2775 PR c/46015
2776 * c-parser.c (c_parser_statement_after_labels): Call mark_exp_read
2777 on computed goto argument.
2778
2779 2010-10-18 Richard Guenther <rguenther@suse.de>
2780
2781 PR tree-optimization/45967
2782 * tree-ssa-structalias.c (type_could_have_pointers): Remove.
2783 (could_have_pointers): Likewise.
2784 (handle_rhs_call, handle_const_call, handle_pure_call,
2785 find_func_aliases, intra_create_variable_infos): Remove calls to them.
2786 (struct fieldoff): Add must_have_pointers field.
2787 (type_must_have_pointers): New function.
2788 (field_must_have_pointers): Likewise.
2789 (push_fields_onto_fieldstack): Remove must_have_pointers_p argument.
2790 Adjust field merging.
2791 (create_function_info_for): May-have-pointers of varinfo is
2792 almost always true.
2793 (create_variable_info_for_1): Likewise.
2794
2795 2010-10-18 Tejas Belagod <tejas.belagod@arm.com>
2796
2797 * config/arm/neon.md (neon_move_hi_quad_<mode>): Fix the order
2798 of operands to vec_concat.
2799
2800 2010-10-18 Richard Guenther <rguenther@suse.de>
2801
2802 PR lto/44950
2803 * tree.c (free_lang_data_in_decl): As we clear TYPE_METHODS
2804 also clear references to entries of it.
2805
2806 2010-10-18 Andi Kleen <ak@linux.intel.com>
2807
2808 PR other/43448
2809 * gccbug.in: Remove.
2810 * Makefile.in (GCCBUG_INSTALL_NAME, gccbug): Remove
2811 (doc, distclean, install-common): Remove reference to gccbug.
2812 * configure: Regenerate.
2813 * configure.ac (all_outputs): Remove gccbug.
2814 * doc/configfiles.texi: Remove references to gccbug.
2815 * doc/sourcebuild.texi: Dito.
2816
2817 2010-10-18 Jakub Jelinek <jakub@redhat.com>
2818
2819 PR middle-end/46019
2820 * fold-const.c (fold_binary_loc): If integer_pow2p has
2821 TREE_INT_CST_LOW zero, look at TREE_INT_CST_HIGH.
2822
2823 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net>
2824 Jeremie Salvucci <jeremie.salvucci@free.fr>
2825
2826 * gengtype.c (verbosity_level): Add variable.
2827 (set_gc_used): Count variables for verbosity.
2828 (close_output_files): Backing up files, counting written ones
2829 verbosily.
2830 (write_types): Count emitted functions for verbosity. Added
2831 debug messages.
2832 (write_enum_defn): Count structures for verbosity. Added debug
2833 messages.
2834 (gengtype_long_options): Add "verbose" & "backupdir".
2835 (print_usage): Ditto.
2836 (main): Verbose display of parsed files.
2837
2838 * gengtype.h (verbosity_level): Add declaration.
2839
2840 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net>
2841
2842 * gengtype.c (parse_program_options): Add allocation of
2843 plugin_files, and correct test on nb_plugin_files.
2844
2845 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2846
2847 Merge from 'apple/trunk' branch on FSF servers.
2848
2849 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
2850
2851 Radar 4133425
2852 * c-decl.c (undeclared_variable): Issue diagnostic on
2853 private 'ivar' access.
2854
2855 2010-10-17 Uros Bizjak <ubizjak@gmail.com>
2856
2857 PR target/46051
2858 * config/i386/sse.md (vec_interleave_highv4df): Fix third RTX of
2859 generated sequence to match *avx_vperm2f128<mode>_nozero.
2860 (vec_interleave_lowv4df): Ditto.
2861 (vec_interleave_highv8sf): Ditto.
2862 (vec_interleave_lowv8sf): Ditto.
2863
2864 2010-10-17 Kai Tietz <kai.tietz@onevision.com>
2865
2866 * libgcov.c (create_file_directory): Enable it for win32 case.
2867 (gcov_exit): De-couple GCOV_PREFIX and GCOV_PREFIX_STRIP.
2868 * doc/gcov.texi (GCOV_PREFIX): Adjusted.
2869 (GCOV_PREFIX_SKIP): Likewise.
2870
2871 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2872
2873 * doc/objc.texi (GNU Objective-C runtime API): New section.
2874 (Modern GNU Objective-C runtime API): New section.
2875 (Traditional GNU Objective-C runtime API): New section.
2876 (Executing code before main): Mention that this section is
2877 specific to the GNU Objective-C runtime.
2878 (Garbage Collection): Same.
2879
2880 2010-10-17 Uros Bizjak <ubizjak@gmail.com>
2881
2882 * c-parser.c (c_parser_for_statement): Move initialization of
2883 cond and incr before if.
2884
2885 2010-10-17 Anatoly Sokolov <aesok@post.ru>
2886
2887 * target.def (preferred_output_reload_class): New hook.
2888 * doc/tm.texi.in (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Document.
2889 * doc/tm.texi: Regenerate.
2890 * targhooks.c (default_preferred_output_reload_class): New function.
2891 * targhooks.h (default_preferred_output_reload_class): Declare.
2892 * reload.c (find_dummy_reload): Change rclass argument type from
2893 enum reg_class to reg_class_t. Change this_alternative array type
2894 from enum reg_class to reg_class_t.
2895 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
2896 (push_reload): Change preferred_class variable type to reg_class_t.
2897 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
2898 * recog.c (reg_fits_class_p): Change result type to bool. Change cl
2899 argument type from enum reg_class to reg_class_t. Use
2900 HARD_REGISTER_NUM_P predicate.
2901 * recog.h (reg_fits_class_p): Update prototype.
2902
2903 * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
2904 * config/i386/i386-protos.h (ix86_preferred_output_reload_class):
2905 Remove.
2906 * config/i386/i386.c (ix86_preferred_output_reload_class): Make
2907 static. Change regclass argument and result types from enum reg_class
2908 to reg_class_t.
2909 (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
2910
2911 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
2912
2913 * c-parser.c (c_parser_objc_class_instance_variables): Update to use
2914 visibility enum, and handle @package.
2915
2916 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2917
2918 * doc/objc.texi (What you can and what you cannot do in +load):
2919 Document that sending messages to constant string objects in +load
2920 is not guaranteed to work.
2921
2922 2010-10-16 Jan Hubicka <jh@suse.cz>
2923
2924 PR middle-end/44206
2925 * ipa.c (cgraph_remove_unreachable_nodes): Cleanup; check
2926 existence of refrences before removing the function.
2927
2928 2010-10-16 Jan Hubicka <jh@suse.cz>
2929
2930 * cgraph.c (dump_cgraph_node): Dump same_comdat_group,
2931 only_called_at_startup and only_called_at_exit.
2932 (cgraph_propagate_frequency): Compute only_called_at_startup and
2933 only_called_at_exit.
2934 * cgraph.h (struct cgraph_node): New fileds only_called_at_startup and
2935 only_called_at_exit.
2936 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream the new
2937 flags.
2938 * predict.c (compute_function_frequency): Initialize the new flags.
2939
2940 2010-10-16 Eric Botcazou <ebotcazou@adacore.com>
2941
2942 * gimplify.c (gimplify_type_sizes) <ARRAY_TYPE>: If the type is to be
2943 ignored for debug info purposes, do not clear the DECL_IGNORED_P flag
2944 on the bounds of its domain.
2945 * tree.h (DECL_IGNORED_P): Document effect on TYPE_DECL specifically.
2946
2947 2010-10-16 Anatoly Sokolov <aesok@post.ru>
2948
2949 * config/avr/avr.h (PREFERRED_RELOAD_CLASS): Remove.
2950 * config/avr/avr-protos.h (preferred_reload_class): Remove.
2951 * config/avr/avr.c (preferred_reload_class): Remove.
2952 * config/pa/pa.h (PREFERRED_RELOAD_CLASS): Remove.
2953 * config/pa/pa.c (emit_move_sequence): Update comment
2954 * config/arc/arc.h (PREFERRED_RELOAD_CLASS): Remove.
2955 * config/crx/crx.h (PREFERRED_RELOAD_CLASS): Remove.
2956 * config/fr30/fr30.h (PREFERRED_RELOAD_CLASS): Remove.
2957 * config/frv/frv.h (PREFERRED_RELOAD_CLASS): Remove.
2958 * config/h8300/h8300.h (PREFERRED_RELOAD_CLASS): Remove.
2959 * config/lm32/lm32.h (PREFERRED_RELOAD_CLASS): Remove.
2960 * config/m32r/m32r.h (PREFERRED_RELOAD_CLASS): Remove.
2961 * config/moxie/moxie.h (PREFERRED_RELOAD_CLASS): Remove.
2962 * config/picochip/picochip.h (PREFERRED_RELOAD_CLASS): Remove.
2963 * config/rx/rx.h (PREFERRED_RELOAD_CLASS): Remove.
2964 * config/spu/spu.h (PREFERRED_RELOAD_CLASS): Remove.
2965 * config/v850/v850.h (PREFERRED_RELOAD_CLASS): Remove.
2966 * config/vax/vax.h (PREFERRED_RELOAD_CLASS): Remove.
2967
2968 2010-10-16 Joseph Myers <joseph@codesourcery.com>
2969
2970 * opts.c (set_fast_math_flags,
2971 set_unsafe_math_optimizations_flags): Make static.
2972 * toplev.h (set_fast_math_flags,
2973 set_unsafe_math_optimizations_flags): Remove prototypes.
2974
2975 2010-10-16 Joseph Myers <joseph@codesourcery.com>
2976
2977 * config/arm/arm.c (arm_option_optimization): Set
2978 flag_section_anchors to 1 not 2.
2979 * config/i386/i386.c (ix86_option_override_internal): Check
2980 global_options_set.x_flag_zee and
2981 global_options_set.x_flag_omit_frame_pointer.
2982 (ix86_option_optimization): Don't set flag_omit_frame_pointer and
2983 flag_zee to 2.
2984 * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Check
2985 global_options_set.x_flag_omit_frame_pointer.
2986 * config/rs6000/rs6000.c (rs6000_option_init_struct): Set
2987 opts->x_flag_section_anchors to 1 not 2.
2988 * config/sh/sh.c (sh_option_optimization): Don't set
2989 flag_schedule_insns to 2.
2990 (sh_option_override): Check
2991 global_options_set.x_flag_schedule_insns.
2992 * opts.c (finish_options): Check opts_set->x_flag_section_anchors.
2993
2994 2010-10-16 Kai Tietz <kai.tietz@onevision.com>
2995
2996 * configure.ac: Make sure inhibit_libc remains false for mingw targets
2997 as cross.
2998 * configure: Regenerated.
2999
3000 2010-10-15 Xinliang David Li <davidxl@google.com>
3001
3002 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths): New
3003 function.
3004 (use_pred_not_overlap_with_undef_path_pred): Outline phi arg pruning
3005 into a recursive function.
3006
3007 2010-10-15 Uros Bizjak <ubizjak@gmail.com>
3008
3009 * config/i386/i386.md (*movdfcc_1_rex64): Correct mode attribute.
3010 (*movdfcc_1): ditto.
3011
3012 2010-10-15 Joseph Myers <joseph@codesourcery.com>
3013
3014 * target.def (target_option.init_struct): New hook.
3015 * doc/tm.texi.in (TARGET_OPTION_INIT_STRUCT): New @hook.
3016 * doc/tm.texi: Regenerate.
3017 * hooks.c (hook_void_gcc_optionsp): New.
3018 * hooks.h (hook_void_gcc_optionsp): Declare.
3019 * langhooks-def.h (lhd_init_options_struct): Remove.
3020 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define to hook_void_gcc_optionsp.
3021 * langhooks.c (lhd_init_options_struct): Remove.
3022 * opts.c (init_options_struct): Also call
3023 targetm.target_option.init_struct.
3024 * config/i386/i386.c (ix86_option_init_struct,
3025 TARGET_OPTION_INIT_STRUCT): New.
3026 (ix86_option_optimization): Move some settings to
3027 ix86_option_init_struct.
3028 * config/pdp11/pdp11.c (pdp11_option_init_struct,
3029 TARGET_OPTION_INIT_STRUCT): New.
3030 (pdp11_option_optimization): Move some settings to
3031 pdp11_option_init_struct.
3032 * config/rs6000/rs6000.c (rs6000_option_optimization): Replace by
3033 rs6000_option_init_struct. Use options structure pointer.
3034 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
3035 * config/s390/s390.c (s390_option_init_struct,
3036 TARGET_OPTION_INIT_STRUCT): New.
3037 (s390_option_optimization): Don't set
3038 flag_asynchronous_unwind_tables here.
3039 * config/sh/sh.c (sh_option_init_struct,
3040 TARGET_OPTION_INIT_STRUCT): New.
3041 (sh_option_optimization): Don't set flag_finite_math_only here.
3042 * config/spu/spu.c (spu_option_optimization): Replace by
3043 spu_option_optimization. Use options structure pointer.
3044 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
3045
3046 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3047
3048 * doc/md.texi (Standard Names): Add fma@var{m}4 documentation.
3049
3050 * doc/rtl.texi (RTX_TERNARY): Document FMA is ternary. Add
3051 SIGN_EXTRACT and ZERO_EXTRACT which were missing.
3052 (Standard names): Document fma.
3053
3054 * doc/cpp.texi (Common Predefined Macros): Document __FP_FAST_FMA,
3055 __FP_FAST_FMAF, __FP_FAST_FMAL.
3056
3057 * builitns.c (expand_builtin_mathfn_ternary): New function for
3058 expanding ternary math functions, like fma.
3059 (expand_builtin): Call it for the fma builtins.
3060
3061 * simplify-rtx.c (simplify_ternary_operation): Don't simplify FMA
3062 ops at present.
3063
3064 * tree-vect-stmts.c (vectorizable_call): Allow 3 argument
3065 vectorizable functions to support vectorizing fma.
3066
3067 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
3068 Handle fma builtins.
3069
3070 * config/rs6000/vsx.md (UNSPEC_VSX_MADD): Delete.
3071 (UNSPEC_VSX_MSUB): Ditto.
3072 (UNSPEC_VSX_NMADD): Ditto.
3073 (UNSPEC_VSX_NMSUB): Ditto.
3074 (vsx_fmadd<mode>4*): Rewrite to use FMA rtl in some cases instead
3075 of UNSPEC. Renumber combiner patterns.
3076 (vsx_fmsub<mode>4*): Ditto.
3077 (vsx_fnmadd<mode>4*): Ditto.
3078 (vsx_fnmsub<mode>4*): Ditto.
3079
3080 * config/rs6000/altivec.md (UNSPEC_VNMSUBFP): Delete.
3081 (altivec_vmaddfp): Rewrite to use FMA rtl if no fused
3082 multiply/add. Rename combiner pattern, and add TARGET_FUSED_MADD test.
3083 (altivec_vmaddfp_1): Ditto.
3084 (altivec_vmaddfp_2): Ditto.
3085 (atlivec_mulv4sf3): Ditto.
3086 (altivec_vnmsubfp): Ditto.
3087 (altivec_vnmsubfp_1): Ditto.
3088 (altivec_vnmsubfp_2): Ditto.
3089 (altivec_vnmsubfp_3): Delete.
3090
3091 * config/rs6000/rs6000.md (fmasf4): New insns for fma builtin support.
3092 (fmasf4_fpr): Ditto.
3093 (fmssf4_fpr): Ditto.
3094 (fnmasf4_fpr): Ditto.
3095 (fnmssf4_fpr): Ditto.
3096 (fmadf4): Ditto.
3097 (fmadf4_fpr): Ditto.
3098 (fmsdf4_fpr): Ditto.
3099 (fnmadf4_fpr): Ditto.
3100 (fnmsdf4_fpr): Ditto.
3101
3102 * optabs.h (OTI_fma): Add fma optab.
3103 (fma_optab): Ditto.
3104
3105 * genopinit.c (optabs): Set fma optab.
3106
3107 * rtl.def (FMA): Add FMA rtl.
3108
3109 * tree.h (mode_has_fma): New function to return if MODE supports a
3110 fast multiply and add instruction.
3111 * builtins.c (mode_has_fma): Ditto.
3112
3113 2010-10-15 Jan Hubicka <jh@suse.cz>
3114
3115 * lto-streamer-out.c (write_symbol): Use pointer set of seen
3116 objects instead of bitmap.
3117 (produce_symtab): Likewise; output defined symbols first.
3118
3119 2010-10-15 Jie Zhang <jie@codesourcery.com>
3120
3121 * doc/invoke.texi: Add -fstrict-volatile-bitfields to
3122 Option Summary and Index.
3123
3124 2010-10-15 Richard Guenther <rguenther@suse.de>
3125
3126 * tree.c (free_lang_data_in_decl): Clear DECL_INITIAL
3127 for automatic variables again.
3128
3129 2010-10-15 Joseph Myers <joseph@codesourcery.com>
3130
3131 * doc/extend.texi (Variable Length): Don't refer to VLAs not
3132 conforming to C99.
3133
3134 2010-10-15 Joseph Myers <joseph@codesourcery.com>
3135
3136 * config/rx/rx.c (rx_option_optimization): Change to
3137 rx_override_options_after_change. Don't change
3138 flag_lto_compression_level. Don't check for changes to whether
3139 FPU instructions can be used. Check and set only
3140 flag_finite_math_only, not other fast-math flags.
3141 (rx_option_override): Call rx_override_options_after_change.
3142 (TARGET_OPTION_OPTIMIZATION): Remove.
3143 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
3144
3145 2010-10-15 Joseph Myers <joseph@codesourcery.com>
3146
3147 * config/rs6000/rs6000.c (rs6000_option_optimization): Don't
3148 disable section anchors for lang_hooks.name[4] != 'O'.
3149
3150 2010-10-15 Joseph Myers <joseph@codesourcery.com>
3151
3152 * config/frv/frv.c (frv_option_optimization,
3153 TARGET_OPTION_OPTIMIZATION): Remove.
3154 * config/frv/frv.h (RCSP_SOFTWARE_PIPELINING): Remove.
3155
3156 2010-10-15 Michael Matz <matz@suse.de>
3157
3158 * cgraphunit.c (clone_of_p): Define unconditionally.
3159
3160 2010-10-15 Richard Guenther <rguenther@suse.de>
3161
3162 PR lto/45957
3163 * tree.c (free_lang_data_in_decl): Do not clear DECL_INITIAL of vars.
3164
3165 2010-10-15 Chung-Lin Tang <cltang@codesourcery.com>
3166
3167 * ifcvt.c (find_active_insn_before): New function.
3168 (find_active_insn_after): New function.
3169 (cond_exec_process_if_block): Use new functions to replace
3170 prev_active_insn() and next_active_insn().
3171
3172 2010-10-14 Yao Qi <yao@codesourcery.com>
3173
3174 PR target/45447
3175 * config/arm/arm.c (arm_build_builtin_va_list): Assign
3176 va_list_name to TYPE_STUB_DECL (va_list_type).
3177
3178 2010-10-14 Jan Hubicka <jh@suse.cz>
3179
3180 PR middle-end/45621
3181 * cgraph.c (cgraph_update_edges_for_call_stmt_node): When new call is
3182 redirected to clone, be happy.
3183 * cgraph.h (cgraph node): Enable former_clone_of unconditinally.
3184 * cgraphunit.c (verify_cgraph_node, cgraph_materialize_clone): Handle
3185 former_clone_of unconditionally.
3186
3187 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
3188
3189 Merge from FSF apple 'trunk' branch.
3190 2006 Fariborz Jahanian <fjahanian@apple.com>
3191
3192 Radars 4436866, 4505126, 4506903, 4517826
3193 * c-parser.c (c_parser, objc_property_attr_context) New flag.
3194 (c_lex_one_token): Handle property attributes.
3195 (c_parser_external_declaration): Handle @property.
3196 (c_parser_declaration_or_fndef): Warn on invalid attributes before
3197 @alias, @class, @end and @property objc keywords.
3198 (c_parser_objc_methodprotolist): Handle @property.
3199 (c_parser_objc_property_attrlist): New.
3200 (c_parser_objc_at_property): New.
3201 * c-typeck.c (build_component_ref): Handle CLASS.property syntax.
3202 (build_modify_expr): Likewise.
3203
3204 2010-10-14 Jakub Jelinek <jakub@redhat.com>
3205
3206 PR tree-optimization/46008
3207 * tree-if-conv.c (predicate_bbs): Try to canonicalize c2 if possible.
3208
3209 2010-10-14 Richard Guenther <rguenther@suse.de>
3210
3211 PR tree-optimization/44913
3212 * tree-data-ref.c (disjoint_objects_p): Remove.
3213 (dr_may_alias_p): Simplify. Only hand the base object to
3214 the alias-oracle.
3215 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
3216 some more trees, bail out instead of asserting.
3217 (ptr_derefs_may_alias_p): Likewise. Export.
3218 (refs_may_alias_p_1): Handle STRING_CSTs.
3219 * tree-ssa-alias.h (ptr_derefs_may_alias_p): Declare.
3220
3221 2010-10-14 Joseph Myers <joseph@codesourcery.com>
3222
3223 PR c/45969
3224 * c-typeck.c (build_binary_op): Don't try to compute a semantic
3225 type with excess precision for boolean operations.
3226
3227 2010-10-14 Jeremie Salvucci <jeremie.salvucci@free.fr>
3228 Basile Starynkevitch <basile@starynkevitch.net>
3229
3230 * gengtype.c: Include getopt.h and version.h.
3231
3232 (lang_bitmap, struct outf, outf_p)
3233 (get_output_file_with_visibility, oprintf): Definitions moved to
3234 gengtype.h
3235 (output_files, header_file, srcdir, srcdir_len, this_file)
3236 (do_dump): No more static variables.
3237 (do_debug): New.
3238 (dbgprint_count_type_at): Added new function.
3239 (gengtype_long_options): New.
3240 (print_usage, print_version, parse_program_options): New.
3241 (main): Call parse_program_options, and removed old option
3242 handling code. Added some debug output.
3243
3244 * gengtype.h: Updated copyright year.
3245 (lang_bitmap, struct outf, outf_p, header_file, oprintf)
3246 (get_output_file_with_visibility, srcdir, srcdir_len, do_dump):
3247 Moved from gengtype.c to here.
3248 (do_debug, read_state_filename, write_state_filename): New variables.
3249 (DBGPRINTF, DBGPRINT_COUNT_TYPE): New macros.
3250
3251 * Makefile.in:
3252 (REVISION): Always defined.
3253 (version.o): Removed ifdef REVISION_c.
3254 (s-gtype): Pass arguments to build/gengtype program.
3255 (build/version.o): Added building rule.
3256 (build/gengtype$(build_exeext)): Added build/version.o.
3257
3258 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
3259
3260 Partial merge of 'ObjC GC' from FSF apple 'trunk' branch.
3261 * config/darwin-c.c (darwin_cpp_builtins): Define __weak and
3262 __strong macros.
3263
3264 2010-10-14 Eric Botcazou <ebotcazou@adacore.com>
3265
3266 * sched-deps.c (sched_insn_is_legitimate_for_speculation): Invoke
3267 may_trap_or_fault_p instead of may_trap_p predicate.
3268 * tree.c (substitute_in_expr): Propagate the TREE_THIS_NOTRAP flag.
3269 (substitute_placeholder_in_expr): Likewise.
3270 * tree-inline.c (remap_gimple_op_r): Propagate the TREE_THIS_NOTRAP
3271 flag on MEM_REF nodes.
3272 (copy_tree_body_r): Propagate the TREE_READONLY and TREE_THIS_NOTRAP
3273 flags on INDIRECT_REF nodes.
3274
3275 2010-10-14 Nathan Froyd <froydnj@codesourcery.com>
3276
3277 * config.gcc (arm*-*-linux-*eabi) <tm_file>: Add bpabi.h from libgcc.
3278 (arm*-*-uclinux*eabi) <tm_file>: Likewise.
3279 (arm*-*-eabi*) <tm_file>: Likewise.
3280 (frv-*-elf) <tm_file>: Add frv-abi.h from libgcc.
3281 (frv-*-*linux*) <tm_file>: Likewise.
3282 * config/arm/bpabi.h: Delete DECLARE_LIBRARY_RENAMES stanzas
3283 and associated helper macros.
3284 * config/frv/frv-abi.h: Delete.
3285
3286 2010-10-14 Richard Guenther <rguenther@suse.de>
3287
3288 PR lto/44561
3289 * tree.def (NULLPTR_TYPE): New tree code.
3290 * dbxout.c (dbxout_type): Handle NULLPTR_TYPE.
3291 * dwarf2out.c (is_base_type): Likewise.
3292 (gen_type_die_with_usage): Likewise.
3293 * sdbout.c (plain_type_1): Likewise.
3294 * tree.c (build_int_cst_wide): Likewise.
3295 * gimple.c (gimple_types_compatible_p_1): NULLPTR_TYPE types are equal.
3296
3297 2010-10-14 Joseph Myers <joseph@codesourcery.com>
3298
3299 * params.c (params_finished): New.
3300 (add_params): Assert !params_finished.
3301 (finish_params): New.
3302 (set_param_value_internal): Take params and params_set
3303 parameters. Assert params_finished.
3304 (set_param_value, maybe_set_param_value): Take params and
3305 params_set parameters. Update calls to set_param_value_internal.
3306 (set_default_param_value): Assert !params_finished. Don't use
3307 set_param_value_internal.
3308 (default_param_value, init_param_values): New.
3309 * params.h (struct param_info): Change value to default_value.
3310 Remove set.
3311 (set_param_value, maybe_set_param_value): Add params and
3312 params_set parameters.
3313 (PARAM_VALUE): Get parameters from global_options.
3314 (PARAM_SET_P): Remove.
3315 (finish_params, default_param_value, init_param_values): New.
3316 * common.opt (param_values): New Variable.
3317 * config/arm/arm.c (arm_option_override): Pass extra arguments to
3318 maybe_set_param_value.
3319 * config/i386/i386.c (ix86_option_override_internal): Pass extra
3320 arguments to maybe_set_param_value.
3321 * config/picochip/picochip.c (picochip_option_override): Pass
3322 extra arguments to maybe_set_param_value.
3323 * config/rs6000/rs6000.c (rs6000_option_override_internal): Pass
3324 extra arguments to maybe_set_param_value.
3325 * config/s390/s390.c (s390_option_override): Use
3326 maybe_set_param_value instead of set_param_value. Pass extra
3327 arguments to maybe_set_param_value.
3328 * config/sparc/sparc.c (sparc_option_override): Pass extra
3329 arguments to maybe_set_param_value.
3330 * config/spu/spu.c (spu_option_override): Pass extra arguments to
3331 maybe_set_param_value.
3332 * opts.c (handle_param): Take opts and opts_set parameters.
3333 Update call to set_param_value.
3334 (initial_min_crossjump_insns, initial_max_fields_for_field_sensitive,
3335 initial_loop_invariant_max_bbs_in_loop): Remove.
3336 (init_options_once): Don't set them.
3337 (init_options_struct): Initialize parameters structures.
3338 (default_options_optimization): Use default_param_value when
3339 restoring defaults. Update calls to maybe_set_param_value.
3340 (finish_options): Update calls to maybe_set_param_value.
3341 (common_handle_option): Update calls to handle_param and
3342 set_param_value.
3343 * toplev.c (DEFPARAM): Update definition for changes to param_info.
3344 (general_init): Call finish_params.
3345
3346 2010-10-14 Nick Clifton <nickc@redhat.com>
3347
3348 * config/mn10300/mn10300.h (CONSTANT_ALIGNMENT): Define.
3349 (DATA_ALIGNMENT, LOCAL_ALIGNMENT): Define.
3350 (FIRST_PSEUDO_REGISTER): Increase by one.
3351 (FIXED_REGISTERS, CALL_USED_REGISTERS): Update with CC_REG.
3352 (HARD_REGNO_MODE_OK): Call mn10300_hard_regno_mode_ok.
3353 (MODES_TIEABLE): Call mn10300_modes_tieable.
3354 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add CC_REGS.
3355 (LEGITIMATE_CONSTANT_P): Call mn10300_legitimate_constant_p.
3356 (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, NOTICE_UPDATE_CC)
3357 (SELECT_CC_MODE, REVERSIBLE_CC_MODE): Delete.
3358 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Add CC register.
3359 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
3360 (mn10300_cc_status_mdep): Delete.
3361 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Delete.
3362 * config/mn10300/mn10300 (mn10300_option_override): Stop disabling
3363 the combine-stack-adjust pass.
3364 (print_operand): Use the mode of the comparison operation to
3365 select the comparison suffix.
3366 (notice_update_cc): Delete.
3367 (mn10300_secondary_reload_class): Remove test for stack pointer
3368 based arithmetic.
3369 (output_tst): Rename to mn10300_output_cmp.
3370 (impossible_plus_operand): Move into predicates.md.
3371 (mn10300_legitimize_address): Make static.
3372 (mn10300_legitimate_address_p): Make static. Only allow SI sized
3373 constant pic operands.
3374 (mn10300_legitimate_constant_p): New function.
3375 (mn10300_case_values_threshold): Make static.
3376 (mn10300_hard_regno_mode_ok): New function.
3377 (mn10300_modes_tieable): New function.
3378 (mn10300_select_cc_mode): New function.
3379 * config/mn10300/predicates.md (impossible_plus_operand): Define.
3380 * config/mn10300/mn10300-protos.h: Tidy.
3381 (mn10300_legitimate_constant_p, mn10300_modes_tieable)
3382 (mn10300_hard_regno_mode_ok, mn10300_select_cc_mode): Prototype.
3383 * config/mn10300/mn10300.md (cc attribute): Delete. Replace
3384 with clobbers or sets of CC_REG.
3385 (CC_REG): Define.
3386 (mov*): Remove use of CLR instruction.
3387 (cbranch_si4_<code>): New pattern/split.
3388 (integer_conditional_branch): New pattern.
3389 (cbranch_sf4_<code>): New pattern/split.
3390 (float_conditional_branch): New pattern.
3391 (casesi): Use addsi3 pattern instead of movsi pattern to add and
3392 move a value at the same time.
3393 (cc0 peepholes): Remove.
3394
3395 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
3396
3397 * sel-sched-ir.c (init_global_and_expr_for_insn): Set CANT_MOVE
3398 on RTX_FRAME_RELATED_P insns and the insn to which
3399 NOTE_INSN_EPILOGUE_BEG is attached.
3400 * sched-vis.c (print_value): Allow NULL value.
3401
3402 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
3403
3404 PR rtl-optimization/45570
3405 * sel-sched-ir.c (cfg_preds_1): When walking out of the region,
3406 assert that we are pipelining outer loops. Allow returning
3407 zero predecessors.
3408
3409 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
3410
3411 * sel-sched-ir.c (maybe_tidy_empty_bb): Simplify comment.
3412 (tidy_control_flow): Tidy vertical space.
3413 (sel_remove_bb): New variable idx. Use it to remember the basic
3414 block index before deleting the block.
3415 (sel_remove_empty_bb): Remove dead code, simplify and insert to ...
3416 (sel_merge_blocks): ... here.
3417 * sel-sched-ir.h (sel_remove_empty_bb): Remove prototype.
3418
3419 2010-10-14 Jakub Jelinek <jakub@redhat.com>
3420
3421 * cse.c (is_dead_reg): Change into inline function that is not
3422 called through for_each_rtx.
3423 (set_live_p): Adjust caller.
3424 (insn_live_p): Don't reset DEBUG_INSNs here.
3425 (struct dead_debug_insn_data): New data.
3426 (count_stores, is_dead_debug_insn, replace_dead_reg): New functions.
3427 (delete_trivially_dead_insns): If there is just one setter for the
3428 dead reg that is referenced by some DEBUG_INSNs, create a DEBUG_EXPR
3429 and add DEBUG_INSN for it right before the removed setter and
3430 use the DEBUG_EXPR instead of the dead pseudo.
3431
3432 2010-10-14 Zdenek Dvorak <rakdver@kam.uniff.cz>
3433
3434 * et-forest.c (et_nca): Return NULL immediately when
3435 the dominance forest has disjoint components.
3436
3437 2010-10-13 Vladimir Makarov <vmakarov@redhat.com>
3438
3439 * ira.c (setup_class_hard_regs): Fix typo in indexing
3440 ira_non_ordered_class_hard_regs and ira_class_hard_reg_index.
3441
3442 2010-10-14 Tijs Wiebe Lefering <twlevo@gmail.com>
3443
3444 * graph.c (inbb): New variable.
3445 (start_bb): Set inbb to 1 if output is inside of a building block.
3446 (end_bb): Check if output is inside of a building block.
3447
3448 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
3449
3450 PR rtl-optimization/45912
3451 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Test the
3452 regno of registers instead of their index to compute the alignment.
3453
3454 2010-10-13 H.J. Lu <hongjiu.lu@intel.com>
3455
3456 * config/i386/i386.c (ix86_build_const_vector): Check vector
3457 mode instead of scalar mode.
3458 (ix86_build_signbit_mask): Likewise.
3459 (ix86_expand_fp_absneg_operator): Updated.
3460 (ix86_expand_copysign): Likewise.
3461 (ix86_expand_int_vcond): Likewise.
3462 (ix86_emit_swdivsf): Likewise.
3463 (ix86_sse_copysign_to_positive): Likewise.
3464 (ix86_expand_sse_fabs): Likewise.
3465 * config/i386/i386.md (fixuns_trunc<mode>si2): Likewise.
3466 * config/i386/sse.md (copysign<mode>3): Likewise.
3467 (sse2_cvtudq2ps): Likewise.
3468 (vec_unpacku_float_hi_v4si): Likewise.
3469 (vec_unpacku_float_lo_v4si): Likewise.
3470
3471 * config/i386/i386.c (ix86_builtins): Add
3472 IX86_BUILTIN_CPYSGNPS256 and IX86_BUILTIN_CPYSGNPD256.
3473 (bdesc_args): Likewise.
3474 (ix86_builtin_vectorized_function): Support
3475 IX86_BUILTIN_CPYSGNPS256, IX86_BUILTIN_CPYSGNPD256,
3476 IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS_NR256,
3477 and IX86_BUILTIN_CVTPS2DQ256.
3478 (ix86_builtin_reciprocal): Support IX86_BUILTIN_SQRTPS_NR256.
3479
3480 * config/i386/sse.md (STORENT_MODE): New.
3481 (VEC_FLOAT_MODE): Likewise.
3482 (VEC_EXTRACT_MODE): Likewise.
3483 (*avx_cvtdq2pd256_2): Likewise.
3484 (vec_pack_trunc_v4df): Likewise.
3485 (vec_interleave_highv8sf): Likewise.
3486 (vec_interleave_lowv8sf): Likewise.
3487 (storent<mode>): Macroized.
3488 (<code><mode>2: absneg): Likewise.
3489 (copysign<mode>3): Likewise.
3490 (vec_extract<mode>): Likewise.
3491
3492 PR target/44180
3493 * config/i386/i386.c (expand_vec_perm_even_odd_1): Rewritten
3494 for V8SFmode.
3495
3496 2010-10-13 Richard Guenther <rguenther@suse.de>
3497 H.J. Lu <hongjiu.lu@intel.com>
3498
3499 * config/i386/sse.md (reduc_splus_v8sf): Add.
3500 (reduc_splus_v4df): Likewise.
3501 (vec_unpacks_hi_v8sf): Likewise.
3502 (vec_unpacks_lo_v8sf): Likewise.
3503 (*avx_cvtps2pd256_2): Likewise.
3504 (vec_unpacks_float_hi_v8si): Likewise.
3505 (vec_unpacks_float_lo_v8si): Likewise.
3506 (vec_interleave_highv4df): Likewise.
3507 (vec_interleave_lowv4df): Likewise.
3508
3509 2010-10-13 Richard Guenther <rguenther@suse.de>
3510
3511 PR objc/45878
3512 * gimple-fold.c (gimple_fold_obj_type_ref): Leave OBJ_TYPE_REFs
3513 alone if there are no virtual methods.
3514
3515 2010-10-13 Richard Henderson <rth@redhat.com>
3516
3517 * expr.c (build_personality_function): Take parameter LANG instead
3518 of parameter NAME. Build the name based on the lang prefix and the
3519 unwind method in use.
3520 * tree.c (lhd_gcc_personality): Update call to
3521 build_personality_function.
3522
3523 2010-10-13 Richard Guenther <rguenther@suse.de>
3524
3525 PR objc/45878
3526 * tree-ssa-ccpc (ccp_fold_stmt): Use gimple_fold_obj_type_ref.
3527
3528 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
3529
3530 * cse.c (cse_insn): Fix thinko in the canonicalization of USE insns.
3531 Canonicalize input operands of ASM_OPERANDS insns.
3532
3533 2010-10-13 Richard Guenther <rguenther@suse.de>
3534
3535 PR tree-optimization/45788
3536 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Delay
3537 EH update until fixup-cfg.
3538
3539 2010-10-13 Julian Brown <julian@codesourcery.com>
3540
3541 * config/arm/arm.h (REG_CLASS_CONTENTS): Remove soft frame pointer
3542 from CORE_REGS and GENERAL_REGS classes.
3543 * config/arm/arm.md (*thumb1_movsi_insn): Ignore all parts of
3544 final constraint for register preferencing.
3545
3546 2010-10-13 Richard Guenther <rguenther@suse.de>
3547
3548 PR tree-optimization/45970
3549 * tree-ssa-alias.h (stmt_kills_ref_p): Declare.
3550 * tree-ssa-alias.c (stmt_kills_ref_p_1): New function.
3551 (stmt_kills_ref_p): Likewise.
3552 * tree-ssa-dse.c (dse_optimize_stmt): Use it.
3553
3554 2010-10-13 Richard Guenther <rguenther@suse.de>
3555
3556 PR tree-optimization/45982
3557 * tree-ssa-structalias.c (make_constraints_to): New function.
3558 (make_constraint_to): Implement in terms of make_constraints_to.
3559 (find_func_aliases): Properly make return values of pure/const
3560 functions escape if they assign to sth that is not a pointer.
3561
3562 2010-10-13 Richard Guenther <rguenther@suse.de>
3563
3564 PR middle-end/45874
3565 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
3566 Fixup the CFG when EH was fixed up.
3567
3568 2010-10-13 Ira Rosen <irar@il.ibm.com>
3569
3570 * tree-vect-slp.c (vect_get_constant_vectors): Fix comment.
3571 Use operand's type for POINTER_PLUS_EXPR.
3572
3573 2010-10-13 Alexandre Oliva <aoliva@redhat.com>
3574
3575 * c-parser.c (c_parser_for_statement): Initialize incr.
3576
3577 2010-10-12 Xinliang David Li <davidxl@google.com>
3578
3579 PR tree-optimization/45972
3580 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Skip phis
3581 with too many arguments.
3582
3583 2010-10-12 Jakub Jelinek <jakub@redhat.com>
3584
3585 PR fortran/45636
3586 * tree-ssa-forwprop.c: Include expr.h.
3587 (constant_pointer_difference, simplify_builtin_call): New functions.
3588 (tree_ssa_forward_propagate_single_use_vars): Call
3589 simplify_builtin_call on builtin calls.
3590
3591 2010-10-12 Eric Botcazou <ebotcazou@adacore.com>
3592
3593 * config/sparc/sparc.md (*adddi3_insn_sp32): Rename.
3594 (*adddi3_extend_sp32): Likewise.
3595 (*subdi3_insn_sp32): Likewise.
3596 (*subdi3_extend_sp32): Likewise.
3597 (*negdi2_sp32): Use negative test for consistency.
3598
3599 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
3600
3601 * libgcc2.h: Use __SIZEOF_DOUBLE__ instead of LIBGCC2_DOUBLE_TYPE_SIZE.
3602 (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
3603 * config/fixed-bit.h: Likewise.
3604 * config/rx/rx.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
3605 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
3606 * system.h (LIBGCC2_DOUBLE_TYPE_SIZE): Poison.
3607 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE): Use DOUBLE_TYPE_SIZE.
3608 (DF_SIZE): Likewise.
3609 * doc/tm.texi: Regenerate.
3610
3611 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
3612
3613 * config/rs6000/predicates.md (scc_rev_comparison_operator): New.
3614 * config/rs6000/rs6000.md (*isel_reversed_signed_<mode>): New.
3615 (*isel_reversed_unsigned_<mode>): New.
3616 * config/rs6000/rs6000.c (output_isel): Accept GE/GEU/LE/LEU/NE
3617 as valid comparisons and adjust operands and output appropriately.
3618 (rs6000_rtx_costs) <CONST_INT>: Accept NE as a cost-0 outer_code.
3619
3620 2010-10-12 Chung-Lin Tang <cltang@codesourcery.com>
3621
3622 * config/arm/arm.h (ARM_EXPAND_ALIGNMENT): Rename from
3623 DATA_ALIGNMENT and add COND parameter. Update comments above.
3624 (DATA_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !optimize_size.
3625 (LOCAL_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !flag_conserve_stack.
3626
3627 2010-10-12 H.J. Lu <hongjiu.lu@intel.com>
3628
3629 PR bootstrap/45958
3630 * exec-tool.in: Support '-plugin' as the second option to the linker.
3631
3632 2010-10-12 Richard Henderson <rth@redhat.com>
3633
3634 PR middle-end/45962
3635 * cfgexpand.c (add_stack_var): Ensure every variable has 1 byte.
3636 (expand_stack_vars): Assert large base allocated when used.
3637
3638 2010-10-12 Richard Guenther <rguenther@suse.de>
3639
3640 * tree-ssa-structalias.c (get_constraint_for_1): Constants
3641 only point to nonlocal, not anything.
3642
3643 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
3644
3645 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Use sjlj
3646 unwind info for exceptions.
3647
3648 2010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3649
3650 PR testsuite/45851
3651 * doc/sourcebuild.texi (LTO Testing, dg-extra-ld-options):
3652 Document optional target selector.
3653
3654 2010-10-12 Joseph Myers <joseph@codesourcery.com>
3655
3656 * flag-types.h: New.
3657 * Makefile.in (TH_H): Include $(OPTIONS_H) instead of $(FLAGS_H).
3658 (FLAGS_H): Include flag-types.h. Include $(OPTIONS_H) instead of
3659 options.h.
3660 (OPTIONS_H): Define.
3661 (c-family/c-opts.o, lto-opts.o, opts.o): Use $(OPTIONS_H) instead
3662 of options.h.
3663 * configure.ac (tm_include_list): Include options.h not flags.h.
3664 * configure: Regenerate.
3665 * flags.h: Include flag-types.h. Include options.h at top of file
3666 again.
3667 (enum debug_info_type, enum debug_info_level, enum
3668 debug_info_usage, enum symbol_visibility, struct visibility_flags,
3669 enum ira_algorithm, enum ira_region, enum excess_precision, enum
3670 graph_dump_types, enum stack_check_type,
3671 enum warn_strict_overflow_code): Move to flag-types.h
3672 * opth-gen.awk: Include flag-types.h in options.h.
3673
3674 2010-10-12 Jakub Jelinek <jakub@redhat.com>
3675
3676 * expr.c (store_expr): Share code for STRING_CST and
3677 MEM_REF of &STRING_CST cases. Don't require BLKmode, instead
3678 check if target is a MEM.
3679
3680 * rtl.h: Include hashtab.h.
3681 (iterative_hash_rtx): New prototype.
3682 * rtl.c (iterative_hash_rtx): New function.
3683 * dwarf2out.c (dw_loc_list_node): Add hash and emitted fields.
3684 (output_loc_list): Return immediately if emitted is set, set it.
3685 (hash_loc_operands, hash_locs, hash_loc_list,
3686 compare_loc_operands, compare_locs, loc_list_hash, loc_list_eq,
3687 optimize_location_lists_1, optimize_location_lists): New function.
3688 (dwarf2out_finish): Call optimize_location_lists.
3689 * Makefile.in (RTL_BASE_H): Depend on $(HASHTAB_H).
3690
3691 2010-10-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3692
3693 PR testsuite/45974
3694 Revert:
3695 * Makefile.in ($(lang_checks_parallel))
3696 ($(lang_checks_parallelized)): Use single quotes for
3697 $(RUNTESTFLAGS), to allow passing quoted content.
3698
3699 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3700
3701 * config/pa/linux-atomic.c (__sync_val_compare_and_swap_4): Return
3702 actual_oldval. Use __builtin_expect.
3703 (SUBWORD_VAL_CAS): Likewise.
3704
3705 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
3706
3707 * recog.c (nonmemory_operand): Call immediate_operand for
3708 CONSTANT_P operands.
3709
3710 2010-10-11 Uros Bizjak <ubizjak@gmail.com>
3711
3712 * config/i386/i386.md (movmem<mode>): Macroize expander from
3713 movmem{si,di} using SWI48 mode iterator.
3714 (*strmovsi_1): Macroize insn pattern from *strmovsi_1 and
3715 *strmovsi_rex_1 using P mode iterator.
3716 (*strmovhi_1): Ditto from *strmovhi_1 and *strmovhi_rex_1.
3717 (*strmovqi_1): Ditto from *strmovqi_1 and *strmovqi_rex_1.
3718 (*rep_movsi): Ditto from *rep_movsi and *rep_movsi_rex64.
3719 (*rep_movqi): Ditto from *rep_movqi and *rep_movqi_rex64.
3720 (setmem<mode>): Macroize expander from setmem{si,di} using
3721 SWI48 mode iterator.
3722 (*strsetsi_1): Macroize insn pattern from *strsetsi_1 and
3723 *strsetsi_rex_1 using P mode iterator.
3724 (*strsethi_1): Ditto from *strsethi_1 and *strsethi_rex_1.
3725 (*strsetqi_1): Ditto from *strsetqi_1 and *strsetqi_rex_1.
3726 (*rep_stossi): Ditto from *rep_stossi and *rep_stossi_rex64.
3727 (*rep_stosqi): Ditto from *rep_stosqi and *rep_stosqi_rex64.
3728 (*cmpstrnqi_nz_1): Ditto from *cmpstrnqi_nz_1 and *cmpstrnqi_nz_rex_1.
3729 (*cmpstrnqi_1): Ditto from *cmpstrnqi_1 and *cmpstrnqi_rex_1.
3730 (strlen<mode>): Macroize expander from strlen{si,di} using SWI48x
3731 mode iterator.
3732 (*strlenqi_1): Macroize insn pattern from *strlenqi_1 and
3733 *strlenqi_rex_1 using P mode iterator.
3734
3735 2010-10-11 Bernd Schmidt <bernds@codesourcery.com>
3736
3737 PR bootstrap/45445
3738 * ira-lives.c (mark_pseudo_reg_live, mark_pseudo_reg_dead): New
3739 static functions.
3740 (mark_ref_live, mark_ref_dead): Use them.
3741 (make_pseudo_conflict): New arg ORIG_DREG. All callers changed.
3742 Save the original reg, and use the new functions.
3743 (check_and_make_def_use_conflict): New arg ORIG_DREG. All callers
3744 changed.
3745 (check_and_make_def_conflict): Save the original reg.
3746
3747 2010-10-11 Martin Jambor <mjambor@suse.cz>
3748
3749 PR middle-end/45699
3750 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Choose among
3751 thunks.
3752
3753 2010-10-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3754
3755 * Makefile.in ($(lang_checks_parallel))
3756 ($(lang_checks_parallelized)): Use single quotes for
3757 $(RUNTESTFLAGS), to allow passing quoted content.
3758
3759 PR bootstrap/35855
3760 * opt-functions.awk (BEGIN): New section.
3761 (lower, upper, digit, alnum): New variables.
3762 (static_var, opt_sanitized_name): Use alnum instead of character
3763 classes, for non-C locale.
3764 * optc-gen.awk: Likewise.
3765 * opth-gen.awk: Likewise.
3766
3767 2010-10-11 Anatoly Sokolov <aesok@post.ru>
3768
3769 * target.def (preferred_reload_class): New hook.
3770 * doc/tm.texi.in (TARGET_PREFERRED_RELOAD_CLASS): Document.
3771 * doc/tm.texi: Regenerate.
3772 * targhooks.c (default_preferred_reload_class): New function.
3773 * targhooks.h (default_preferred_reload_class): Declare.
3774 * reload.c (find_dummy_reload): Change preferred_class variable type
3775 from enum reg_class to reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS
3776 target hook.
3777 (find_reloads): Change goal_alternative array type from int to
3778 reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS target hook.
3779 (push_reload, find_reloads_address_part): Use
3780 TARGET_PREFERRED_RELOAD_CLASS target hook.
3781 * reload1.c (emit_input_reload_insns): Ditto.
3782 * ira-costs.c (copy_cost): Use TARGET_PREFERRED_RELOAD_CLASS target
3783 hook. Change rclass argument and secondary_class variable types from
3784 'enum reg_class' to reg_class_t.
3785
3786 * config/i386/i386.h (PREFERRED_RELOAD_CLASS): Remove.
3787 * config/i386/i386-protos (ix86_preferred_reload_class): Remove.
3788 * config/i386/i386.c (ix86_preferred_reload_class): Make static.
3789 Change regclass argument and result types from enum reg_class to
3790 reg_class_t.
3791 (TARGET_PREFERRED_RELOAD_CLASS): Define.
3792
3793 2010-10-11 Eric Botcazou <ebotcazou@adacore.com>
3794
3795 * simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
3796 in masking operations.
3797 (simplify_const_unary_operation): Likewise.
3798 (simplify_binary_operation_1): Likewise.
3799 (simplify_const_binary_operation): Likewise.
3800 (simplify_const_relational_operation): Likewise.
3801 (simplify_ternary_operation): Likewise.
3802 (simplify_immed_subreg): Likewise.
3803
3804 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3805
3806 PR middle-end/45862
3807 * doc/tm.texi.in (SUPPORTS_WEAK): Update.
3808 (TARGET_SUPPORTS_WEAK): New.
3809 * doc/tm.texi: Regenerate.
3810 * defaults.h (SUPPORTS_WEAK): Update comment.
3811 (TARGET_SUPPORTS_WEAK): New.
3812 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Update define.
3813 * varasm.c (assemble_external): Use TARGET_SUPPORTS_WEAK instead of
3814 SUPPORTS_WEAK.
3815 (merge_weak, declare_weak, do_assemble_alias, supports_one_only,
3816 make_decl_one_only): Likewise.
3817 * config/pa/som.h (SUPPORTS_WEAK): Rename defines to
3818 TARGET_SUPPORTS_WEAK.
3819 (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Use TARGET_SUPPORTS_WEAK
3820 instead of SUPPORTS_WEAK.
3821
3822 2010-10-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3823
3824 * config/sparc/gmon-sol2.c: Don't include coretypes.h, tm.h.
3825
3826 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
3827
3828 * vec.h (VEC_qsort): Define.
3829 * dbxout.c (output_used_types): Use it.
3830 * df-scan.c (df_sort_and_compress_refs): Likewise.
3831 (df_sort_and_compress_mws): Likewise.
3832 * genautomata.c (uniq_sort_alt_states): Likewise.
3833 (evaluate_equiv_classes): Likewise.
3834 (output_trans_table): Likewise.
3835 (output_state): Likewise.
3836 * gimplify.c (compare_case_labels): Likewise.
3837 * graphite-sese-to-poly.c (graphite_sort_dominated_info): Likewise.
3838 * ipa.c (build_cdtor_fns): Likewise.
3839 * lto.c (lto_wpa_write_files): Likewise.
3840 * sel-sched.c (fill_vec_av_set): Likewise.
3841 * tree-predcom.c (determine_roots_comp): Likewise.
3842 * tree-sra.c (sort_and_spliace_var_accesses): Likewise.
3843 (splice_param_accesses): Likewise.
3844 * tree-ssa-live.c (dump_enumerated_decls): Likewise.
3845 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
3846 (reassociate_bb): Likewise.
3847 * tree-ssa-sccvn.c (sort_scc): Likewise.
3848 * tree-ssa-structalias.c (sort_fieldstack): Likewise.
3849
3850 2010-10-11 Ian Lance Taylor <iant@google.com>
3851
3852 * tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
3853 * emit-rtl.c (set_mem_attributes_minus_bitpos): Only check
3854 TREE_THIS_NOTRAP when appropriate.
3855 (get_spill_slot_decl): Don't set TREE_THIS_NOTRAP on the new VAR_DECL.
3856 * gimplify.c (gimplify_expr): Copy NOTRAP from INDIRECT_REF to
3857 newly created MEM_REF.
3858
3859 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
3860
3861 Nathan Froyds patch to hooks FUNCTION_ARG etc.
3862 * config/picochip/picochip-protos.h (picochip_function_arg): Delete.
3863 (picochip_incoming_function_arg): Delete.
3864 (picochip_arg_advance): Delete.
3865 * config/picochip/picochip.h (FUNCTION_ARG): Delete.
3866 (FUNCTION_INCOMING_ARG): Delete.
3867 (FUNCTION_ARG_ADVANCE): Delete.
3868 * config/picochip/picochip.c (picochip_function_arg): Take a
3869 const_tree and a bool.
3870 (picochip_incoming_function_arg): Likewise.
3871 (picochip_arg_advance): Likewise.
3872 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
3873 (TARGET_FUNCTION_ARG_ADVANCE): Define.
3874
3875 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3876
3877 PR middle-end/45955
3878 * ipa.c (build_cdtor): Delete endless loop.
3879
3880 2010-10-07 Andi Kleen <ak@linux.intel.com>
3881
3882 * Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
3883 checksum-options.
3884 (checksum-options): Add.
3885 (cc1-dummy): Remove.
3886 (cc1-checksum): Change to run checksum over object files
3887 and options only.
3888 * dummy-checksum.c: Remove.
3889 * genchecksum.c: Update copyright.
3890 (usage): Allow multiple arguments.
3891 (BLOCKSIZE): Add.
3892 (dosum): Change for incremental checksum. Remove C output.
3893 (main): Iterate over all argument files. Add C output.
3894
3895 2010-10-11 Joseph Myers <joseph@codesourcery.com>
3896
3897 * params.c (set_param_value_internal): New.
3898 (set_param_value): Use set_param_value_internal.
3899 (maybe_set_param_value, set_default_param_value): New.
3900 * params.h (PARAM_VALUE, PARAM_SET_P): Make into rvalues.
3901 (maybe_set_param_value, set_default_param_value): Declare.
3902 * config/arm/arm.c (arm_option_override): Use maybe_set_param_value.
3903 * config/i386/i386.c (ix86_option_override_internal): Use
3904 maybe_set_param_value.
3905 * config/ia64/ia64.c (ia64_option_default_params,
3906 TARGET_OPTION_DEFAULT_PARAMS): New.
3907 (ia64_option_optimization): Move some code to
3908 ia64_option_default_params.
3909 * config/picochip/picochip.c (picochip_option_override): Use
3910 maybe_set_param_value.
3911 * config/rs6000/rs6000.c (rs6000_option_default_params,
3912 TARGET_OPTION_DEFAULT_PARAMS): New.
3913 (rs6000_option_override_internal): Use maybe_set_param_value.
3914 (rs6000_option_optimization): Move some code to
3915 rs6000_option_default_params.
3916 * config/s390/s390.c (s390_option_override): Use maybe_set_param_value.
3917 * config/sh/sh.c (sh_option_default_params,
3918 TARGET_OPTION_DEFAULT_PARAMS): New.
3919 (sh_option_optimization): Move some code to sh_option_default_params.
3920 * config/sparc/sparc.c (sparc_option_override): Use
3921 maybe_set_param_value.
3922 * config/spu/spu.c (spu_option_default_params,
3923 TARGET_OPTION_DEFAULT_PARAMS): New.
3924 (spu_option_optimization): Move some code to spu_option_default_params.
3925 (spu_option_override): Use maybe_set_param_value.
3926 * doc/tm.texi.in (TARGET_OPTION_DEFAULT_PARAMS): New @hook.
3927 * doc/tm.texi: Regenerate.
3928 * ggc-common.c (init_ggc_heuristics): Use set_default_param_value.
3929 * opts.c (init_options_once): Use PARAM_VALUE not direct access to
3930 compiler_params.
3931 (default_options_optimization): Use maybe_set_param_value.
3932 (finish_options): Use maybe_set_param_value.
3933 * target.def (target_option.default_params): New hook.
3934 * toplev.c (general_init): Call targetm.target_option.default_params.
3935
3936 2010-10-11 Ira Rosen <irar@il.ibm.com>
3937
3938 PR tree-optimization/45902
3939 * tree-vect-slp.c (vect_get_constant_vectors): Use statement's
3940 vector type for constants, unless it's a pointer.
3941
3942 2010-10-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3943
3944 * config/s390/s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg.
3945
3946 2010-10-11 Jakub Jelinek <jakub@redhat.com>
3947
3948 PR target/45870
3949 * config/i386/i386.c (ix86_delegitimize_tls_address): New function.
3950 (ix86_delegitimize_address): Use it.
3951
3952 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
3953
3954 * opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.
3955
3956 2010-10-10 Uros Bizjak <ubizjak@gmail.com>
3957
3958 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
3959 to cum struct in the call to function_arg_advance.
3960 (alpha_function_arg_advance): Mark named as unused.
3961
3962 2010-10-10 Richard Sandiford <rdsandiford@googlemail.com>
3963
3964 * config/mips/mips.c (mips_handle_option): Make "value" with
3965 ATTRIBUTE_UNUSED.
3966
3967 2010-10-09 Richard Henderson <rth@redhat.com>
3968
3969 PR rtl-opt/33721
3970 * explow.c (allocate_dynamic_stack_space): Add REQUIRED_ALIGN parm,
3971 remove TARGET parm, convert KNOWN_ALIGN parm to SIZE_ALIGN. Honor
3972 required_align, tidy the code a bit. Emit split_stack code in the
3973 right place. Mark the return value with the alignment properly.
3974 * expr.h (allocate_dynamic_stack_space): Update decl.
3975 * builtins.c (expand_builtin_apply): Update call to
3976 allocate_dynamic_stack_space.
3977 (expand_builtin_alloca): Likewise. Remove TARGET parameter.
3978 * calls.c (initialize_argument_information): Update call to
3979 allocate_dynamic_stack_space.
3980 (expand_call): Likewise.
3981
3982 * cfgexpand.c (get_decl_align_unit): Don't limit alignment.
3983 Don't update_stack_alignment here.
3984 (alloc_stack_frame_space): Make ALIGN unsigned.
3985 (stack_var_cmp): Sort by alignment too.
3986 (partition_stack_vars): Don't merge large and small alignment vars.
3987 (expand_one_stack_var_at): Add BASE and BASE_ALIGN parameters.
3988 Take care when BASE is not virtual_stack_vars_rtx.
3989 (expand_stack_vars): Allocate dynamic stack space for large
3990 alignment variables.
3991 (expand_one_stack_var): Update all to expand_one_stack_var_at.
3992 (defer_stack_allocation): True for large alignment vars.
3993 (update_stack_alignment): Merge into ...
3994 (expand_one_var): ... here.
3995 (gimple_expand_cfg): Place code from expand_stack_vars.
3996
3997 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3998
3999 * config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4000 * config/pdp11/pdp11.c (pdp11_function_arg): New function.
4001 (pdp11_function_arg_advance): New function.
4002 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4003
4004 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
4005
4006 * libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
4007 * libgcc2.c: Likewise.
4008
4009 2010-10-09 Richard Guenther <rguenther@suse.de>
4010
4011 PR lto/45956
4012 * lto-streamer-in.c (lto_register_var_decl_in_symtab):
4013 Properly check if a decl is an automatic var.
4014
4015 2010-10-09 Richard Guenther <rguenther@suse.de>
4016
4017 PR lto/45947
4018 * tree.c (free_lang_data_in_cgraph): Properly walk the varpool.
4019
4020 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
4021
4022 * config/mmix/mmix-protos.h (mmix_function_arg): Delete.
4023 * config/mmix/mmix.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4024 * config/mmix/mmix.c (mmix_function_arg): Rename to...
4025 (mmix_function_arg_1): ...this. Make static. Take a const_tree and
4026 bool arguments.
4027 (mmix_function_arg): New function.
4028 (mmix_function_incoming_arg): New function.
4029 (mmix_function_arg_advance): New function.
4030 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
4031 (TARGET_FUNCTION_ARG_ADVANCE): Define.
4032
4033 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
4034
4035 * config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4036 * config/vax/vax.c (vax_function_arg): New function.
4037 (vax_function_arg_advance): New function.
4038 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4039
4040 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
4041
4042 * config/pa/pa-protos.h (function_arg): Delete.
4043 * config/pa/pa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4044 * config/pa/pa.c (function_arg): Rename to...
4045 (pa_function_arg): ...this. Make static. Take a const_tree and
4046 a bool.
4047 (pa_function_arg_advance): New function.
4048 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4049
4050 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
4051
4052 * config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4053 * config/m68k/m68k.c (m68k_function_arg): New function.
4054 (m68k_function_arg_advance): New function.
4055 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4056
4057 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
4058
4059 * config/avr/avr-protos.h (function_arg): Delete.
4060 (function_arg_advance): Delete.
4061 * config/avr/avr.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4062 * config/avr/avr.c (function_arg): Rename to...
4063 (avr_function_arg): ...this. Make static. Take a const_tree and
4064 a bool.
4065 (function_arg_advance): Rename to...
4066 (avr_function_arg_advance): ...this. Make static. Take a
4067 const_tree and a bool.
4068 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4069
4070 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
4071
4072 * config/alpha/alpha-protos.h (function_arg): Delete.
4073 * config/alpha/alpha.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4074 * config/alpha/vms.h (FUNCTION_ARG_ADVANCE): Delete.
4075 * config/alpha/alpha.c (function_arg): Rename to...
4076 (alpha_function_arg): ...this. Make static. Take a const_tree and
4077 a bool. Delete TARGET_ABI_UNICOSMK code.
4078 (alpha_function_arg_advance): New function.
4079 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4080
4081 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
4082
4083 * config/mep/mep-protos.h (mep_function_arg): Delete.
4084 (mep_function_arg_advance): Delete.
4085 * config/mep/mep.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4086 * config/mep/mep.c (mep_function_arg): Make static. Take a
4087 const_tree and a bool.
4088 (mep_function_arg_advance): Likewise.
4089 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4090
4091 2010-10-09 Richard Guenther <rguenther@suse.de>
4092
4093 PR tree-optimization/45945
4094 * tree-ssa.c (execute_update_addresses_taken): Fixup LHS scanning.
4095
4096 2010-10-09 Eric Botcazou <ebotcazou@adacore.com>
4097
4098 PR tree-optimization/45612
4099 * ipa-split.c (test_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.
4100 Test LABEL_DECLs as well. Fix formatting issues.
4101 (verify_non_ssa_vars): Return false for a GIMPLE_LABEL statement
4102 whose label is present in NON_SSA_VARS.
4103 (mark_nonssa_use): Remove bogus ATTRIBUTE_UNUSED. Handle LABEL_DECLs
4104 as well. Fix formatting issues.
4105 (visit_bb): Fix typos and formatting issue.
4106
4107 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
4108
4109 PR tree-optimization/45950
4110 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): Consult length
4111 before initializing vno->op.
4112
4113 2010-10-09 Ralf Corsépius <ralf.corsepius@rtems.org>
4114
4115 * config.gcc (bfin*-rtems*): Add newlib-stdint.h.
4116 * config.gcc (lm32*-rtems*): Add newlib-stdint.h.
4117
4118 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
4119
4120 PR target/45913
4121 * config/i386/i386.c (ix86_binary_operator_ok): Support
4122 "andhi/andsi/anddi" as a zero-extending move.
4123
4124 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
4125
4126 * builtins.c (fold_call_stmt): Don't copy gimple call arguments
4127 into a temporary array.
4128
4129 2010-10-08 Jakub Jelinek <jakub@redhat.com>
4130
4131 PR tree-optimization/45903
4132 * simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
4133 of {A,L}SHIFTRT of MEM.
4134
4135 2010-10-08 Richard Guenther <rguenther@suse.de>
4136
4137 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
4138 Re-construct BLOCK_VARS.
4139 (lto_input_ts_block_tree_pointers): Do not stream BLOCK_VARS.
4140 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
4141 * tree.c (free_lang_data_in_block): Remove.
4142 (free_lang_data_in_decl): Do not touch DECL_CONTEXT of non-PARM_DECLs.
4143 Do not touch the BLOCK tree.
4144 * expr.c (expand_expr_real_1): Allow externals.
4145
4146 2010-10-08 Richard Guenther <rguenther@suse.de>
4147
4148 * lto-streamer-out.c (lto_output_ts_block_tree_pointers):
4149 Do not output BLOCK_SUBBLOCKS.
4150 * lto-streamer-in.c (lto_input_ts_block_tree_pointers):
4151 Reserve exact space needed for BLOCK_NONLOCALIZED_VARS.
4152 Re-construct BLOCK_SUBBLOCKS of parent block.
4153 (lto_input_ts_binfo_tree_pointers): Reserve exact space needed
4154 for BINFO_BASE_ACCESSES.
4155
4156 2010-10-08 Joseph Myers <joseph@codesourcery.com>
4157
4158 * Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
4159 (TREE_H): Include $(FLAGS_H) instead of options.h.
4160 (opts-common.o): Depend on $(FLAGS_H) instead of options.h.
4161 * c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
4162 * common.opt (flag_complex_method, flag_evaluation_order,
4163 flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New
4164 Variable declarations.
4165 * configure.ac (tm_include_list): Include flags.h instead of options.h.
4166 * configure: Regenerate.
4167 * flags.h: Condition out contents for target libraries. Include
4168 options.h at end of file.
4169 (flag_complex_method, flag_ira_algorithm, flag_ira_region,
4170 flag_evaluation_order, flag_warn_unused_result): Remove.
4171 * gcc.c (main): Intialize global_options with global_options_init.
4172 * langhooks-def.h (lhd_init_options_struct): Declare.
4173 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
4174 (LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT.
4175 * langhooks.c (lhd_init_options_struct): New.
4176 * langhooks.h (struct lang_hooks): Add init_options_struct.
4177 Update comment on init_options.
4178 * optc-gen.awk: Generate initializer for global_options_init, not
4179 global_options.
4180 * opth-gen.awk: Condition out structure declarations for target
4181 libraries. Declare global_options_init.
4182 * opts-common.c: Include flags.h instead of options.h.
4183 * opts.c (flag_warn_unused_result): Remove.
4184 (read_cmdline_options): Take gcc_options parameters. Pass them to
4185 read_cmdline_option.
4186 (initial_lang_mask, initial_min_crossjump_insns,
4187 initial_max_fields_for_field_sensitive,
4188 initial_loop_invariant_max_bbs_in_loop): Define at file scope.
4189 (init_options_once): New. Split out of decode_options.
4190 (init_options_struct): New. Split out of decode_options.
4191 (decode_cmdline_options_to_array_default_mask): New.
4192 (default_options_optimization): New. Split out of decode_options.
4193 (decode_options): Move most code to other functions. Update call
4194 to read_cmdline_options.
4195 (finish_options): New. Split out of decode_options.
4196 * opts.h (decode_options): Add gcc_options parameters.
4197 (init_options_once, init_options_struct,
4198 decode_cmdline_options_to_array_default_mask): New.
4199 * toplev.c (flag_complex_method, flag_ira_algorithm,
4200 flag_ira_region, flag_evaluation_order): Remove.
4201 (general_init): Use global_options_init for initial flag values
4202 for global_dc.
4203 (toplev_main): Call init_options_once, init_options_struct,
4204 lang_hooks.init_options_struct,
4205 decode_cmdline_options_to_array_default_mask and
4206 lang_hooks.init_option before decode_options. Update arguments to
4207 decode_options.
4208 * tree.h: Include flags.h instead of options.h.
4209
4210 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
4211
4212 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
4213
4214 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
4215
4216 * config/sparc/sparc-protos.h (function_arg_advance, function-arg):
4217 Delete.
4218 * config/sparc/sparc.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
4219 (FUNCTION_INCOMING_ARG): Delete.
4220 * config/sparc/sparc.c (scan_record_type): Const-ify tree argument.
4221 (function_arg_slotno): Likewise. Take bool arguments.
4222 (sparc_arg_partial_bytes): Update call to it.
4223 (function_arg): Rename to...
4224 (sparc_function_arg_1): ...this. Take bool arguments.
4225 (sparc_function_arg, sparc_function_incoming_arg): New functions.
4226 (function_arg_advance): Rename to...
4227 (sparc_function_arg_advance): ...this. Take bool argument.
4228 (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG): Define.
4229 (TARGET_FUNCTION_INCOMING_ARG): Define.
4230
4231 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
4232
4233 * config/bfin/bfin-protos.h (function_arg, function_arg_advance):
4234 Delete.
4235 * config/bfin/bfin.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4236 * config/bfin/bfin.c (function_arg_advance): Rename to...
4237 (bfin_function_arg_advance): ...this. Make static. Take const_tree
4238 and bool arguments.
4239 (function_arg): Rename to...
4240 (bfin_function_arg): ...this. Make static. Take const_tree and bool
4241 arguments.
4242 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4243
4244 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
4245
4246 * config/score/score-protos.h (score_function_arg): Delete.
4247 (score_function_arg_advance): Delete.
4248 * config/score/score3.h (score3_function_arg_advance): Take a
4249 const_tree and a bool.
4250 (score3_function_arg): Likewise.
4251 * config/score/score7.h (score7_function_arg_advance): Likewise.
4252 (score7_function_arg): Likewise.
4253 * config/score/score3.c (score3_classify_arg): Likewise.
4254 (score3_function_arg_advance, score3_function_arg): Likewise.
4255 * config/score/score7.c (score7_classify_arg): Likewise.
4256 (score7_function_arg_advance, score7_function_arg): Likewise.
4257 * config/score/score.c (score_function_arg_advance): Likewise.
4258 (score_function_arg): Likewise. De-const-ify `cum' argument.
4259 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4260
4261 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
4262
4263 * config/s390/s390-protos.h (s390_function_arg_advance): Delete.
4264 (s390_function_arg): Delete.
4265 * config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
4266 * config/s390/s390.c (s390_function_arg_float): Take a const_tree.
4267 (s390_function_arg_integer): Likewise.
4268 (s390_function_arg_advance): Make static. Take a const_tree and
4269 a bool.
4270 (s390_function_arg): Likewise.
4271 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4272
4273 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
4274
4275 * config/spu/spu-protos.h (spu_function_arg): Delete.
4276 * config/spu/spu.h (FUNCTION_ARG): Delete.
4277 (FUNCTION_ARG_ADVANCE): Move code to ...
4278 * config/spu/spu.c (spu_function_arg_advance): New function.
4279 (spu_function_arg): Make static. Take a const_tree and a bool.
4280 (spu_setup_incoming_varargs): Call spu_function_arg_advance.
4281 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
4282
4283 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
4284
4285 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
4286
4287 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
4288
4289 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
4290 (init_vn_nary_op_from_op): New function.
4291 (init_vn_nary_op_from_stmt): New function.
4292 (vn_nary_op_lookup_1): New function.
4293 (sizeof_vn_nary_op): New function.
4294 (alloc_vn_nary_op_noinit): New function.
4295 (alloc_vn_nary_op): New function.
4296 (vn_nary_op_insert_into): New function.
4297 (vn_nary_op_lookup_pieces): Rewrite to use new helper functions.
4298 (vn_nary_op_lookup): Likewise.
4299 (vn_nary_op_lookup_stmt): Likewise.
4300 (vn_nary_op_insert_pieces): Likewise.
4301 (vn_nary_op_insert): Likewise.
4302 (vn_nary_op_insert_stmt): Likewise.
4303 (copy_nary): Likewise.
4304 (set_value_id_for_result): New function.
4305 (set_hashtable_value_ids): Call it.
4306
4307 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
4308
4309 * config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
4310 * config/fr30/fr30.md (leave_func): Rewrite without post_inc.
4311
4312 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
4313
4314 * config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
4315 * config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define.
4316
4317 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
4318
4319 PR debug/45656
4320 * cse.c (cse_extended_basic_block): Preserve cc0 info across
4321 debug isnsn. Skip them when searching for cc0 setter.
4322 (set_live_p): Skip debug insns when searching for cc0 user.
4323
4324 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
4325
4326 PR debug/45673
4327 PR debug/45604
4328 PR debug/45419
4329 PR debug/45408
4330 * tree-pretty-print.c (dump_generic_node): Explicitly dump the
4331 type of MEM_REFs to INTEGER_CSTs.
4332
4333 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
4334
4335 * config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
4336 m68hc11_print_operand_address.
4337
4338 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
4339
4340 * builtins.c (rewrite_call_expr): Move code to...
4341 (rewrite_call_expr_valist): ...here. Call build_call_expr_loc_array.
4342 (rewrite_call_expr_array): New function.
4343 (fold_builtin_sprintf_chk_1): New function.
4344 (fold_builtin_sprintf_chk): Call it.
4345 (gimple_fold_builtin_sprintf_chk): Likewise.
4346 (fold_builtin_snprintf_chk_1): New function.
4347 (fold_builtin_snprintf_chk): Call it.
4348 (gimple_fold_builtin_snprintf_chk): Likewise.
4349 (gimple_rewrite_call_expr): Delete.
4350
4351 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
4352
4353 * config.host: Update copyright year.
4354
4355 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
4356
4357 * config.host (host_lto_plugin_soname): New shell variable.
4358 * configure.ac (LTOPLUGINSONAME): Add an AC_DEFINE for the above.
4359 * config.in: Regenerate.
4360 * configure: Regenerate.
4361 * gcc.c (main): Use LTOPLUGINSONAME instead of hard-coding name of
4362 LTO plugin shared library.
4363
4364 2010-10-07 Richard Henderson <rth@redhat.com>
4365
4366 * target.h (enum unwind_info_type): Move ...
4367 * coretypes.h: ... here.
4368
4369 2010-10-07 Nicola Pero <nicola.pero@meta-innovation.com>
4370
4371 * doc/objc.texi (Fast enumeration protocol): Mention that
4372 'unsigned int' can also be used instead of 'unsigned long' in
4373 countByEnumeratingWithState:objects:count:.
4374
4375 2010-10-07 Martin Jambor <mjambor@suse.cz>
4376
4377 * tree-sra.c (struct access): New field grp_assignment_write.
4378 (dump_access): Dump grp_assignment_write.
4379 (build_accesses_from_assign): Set grp_assignment_write.
4380 (sort_and_splice_var_accesses): Aggregate grp_assignment_write.
4381 (mark_read_status): Renamed to mark_rw_status, individual values
4382 renamed too.
4383 (analyze_access_subtree): Changed type of mark_write to
4384 mark_read_status. Fixed propagating of mark_read and
4385 mark_write. Changed benefit estimate. Updated comment.
4386
4387 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
4388
4389 PR Tree-Vect/45847
4390 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL
4391 check for vectype_out returned by get_vectype_for_scalar_type().
4392
4393 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
4394
4395 PR target/45805
4396 * config/arm/neon.md (neon_unpack<US>_<mode>): Add 'w' to
4397 constraint, add register specifier in instruction template.
4398 (neon_vec_pack_trunc_<mode>): Likewise.
4399 (neon_vec_<US>mult_<mode>): Add register specifier to
4400 instruction template.
4401
4402 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
4403
4404 * config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
4405 cygwin2.o.
4406 (cxx_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Likewise.
4407 (extra_gcc_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add cygwin1.o.
4408 * config/i386/t-cygwin (cygwin1.o): Delete build rule.
4409 (cygwin2.o): Likewise.
4410 * config/i386/cygwin1.c: Delete file.
4411 * config/i386/cygwin2.c: Likewise.
4412 * config/i386/cygwin.h (CPP_SPEC): Remove all %{mno-cygwin} specs and
4413 make all {%!mno-cygwin} ones unconditional.
4414 (STARTFILE_SPEC): Likewise.
4415 (REAL_LIBGCC_SPEC): Likewise.
4416 (LIB_SPEC): Likewise.
4417 (CXX_WRAP_SPEC): Likewise.
4418 (LINK_SPEC): Likewise.
4419 (CYGWIN_MINGW_SUBDIR): Delete now-unused macro definition.
4420 (CYGWIN_MINGW_SUBDIR_LEN): Likewise.
4421 (cygwin_gplusplus_include_dir): Delete now-unused array.
4422 (GPLUSPLUS_INCLUDE_DIR): Don't redefine to point to it.
4423 (cygwin_gplusplus_tool_include_dir): Delete now-unused array.
4424 (GPLUSPLUS_TOOL_INCLUDE_DIR): Don't redefine to point to it.
4425 (cygwin_gplusplus_backward_include_dir): Delete now-unused array.
4426 (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Don't redefine to point to it.
4427 (cygwin_local_include_dir): Delete now-unused array.
4428 (LOCAL_INCLUDE_DIR): Don't redefine to point to it.
4429 (cygwin_cross_include_dir): Delete now-unused array.
4430 (CROSS_INCLUDE_DIR): Don't redefine to point to it.
4431 (cygwin_tool_include_dir): Delete now-unused array.
4432 (TOOL_INCLUDE_DIR): Don't redefine to point to it.
4433 (cygwin_standard_include_dir): Delete now-unused array.
4434 (STANDARD_INCLUDE_DIR): Don't redefine to point to it.
4435 (GEN_CVT_ARRAY): Delete now-unused macro definition.
4436 (cvt_to_mingw): Delete now-unused array.
4437 (mingw_scan): Remove prototype of deleted function.
4438 (GCC_DRIVER_HOST_INITIALIZATION): Don't define now-unused target macro.
4439 * config/i386/cygming.opt (mcygwin): Delete target-specific option.
4440 * doc/invoke.texi (-mcygwin): Don't document removed option.
4441 (-mno-cygwin): Likewise.
4442
4443 2010-10-07 Richard Guenther <rguenther@suse.de>
4444
4445 * machmode.h (mode_for_vector): Declare.
4446 * stor-layout.c (mode_for_vector): New function, split out from ...
4447 (layout_type): ... here.
4448 * tree-vectorizer.h (current_vector_size): Declare.
4449 * tree-vect-stmts.c (perm_mask_for_reverse): Check if the
4450 mask vector type is available.
4451 (get_vectype_for_scalar_type): Rename to ...
4452 (get_vectype_for_scalar_type_and_size): ... this. Get a vector
4453 size argument.
4454 (get_vectype_for_scalar_type): New wrapper around
4455 get_vectype_for_scalar_type_and_size using current_vector_size.
4456 (get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size.
4457 * tree-vect-loop.c (vect_analyze_loop_2): Split out core part
4458 of vect_analyze_loop here.
4459 (vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3.
4460 * tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size
4461 to autodetect.
4462 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix
4463 V8SF to V8SI conversion builtin.
4464
4465 2010-10-07 Richard Guenther <rguenther@suse.de>
4466
4467 * target.def (autovectorize_vector_sizes): New target hook.
4468 * targhooks.c (default_autovectorize_vector_sizes): New function.
4469 * targhooks.h (default_autovectorize_vector_sizes): Declare.
4470 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
4471 Document.
4472 * doc/tm.texi: Update.
4473 * config/i386/i386.c (ix86_autovectorize_vector_sizes): New function.
4474 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
4475
4476 2010-10-07 Richard Guenther <rguenther@suse.de>
4477
4478 * target.def (units_per_simd_word): Rename to ...
4479 (preferred_simd_mode): ... this. Return mode instead of size.
4480 * targhooks.c (default_units_per_simd_word): Rename to ...
4481 (default_preferred_simd_mode): ... this. Return word_mode.
4482 * targhooks.h (default_preferred_simd_mode): Declare.
4483 * config/arm/arm.c (arm_units_per_simd_word): Rename to ...
4484 (arm_preferred_simd_mode): ... this. Re-implement.
4485 * config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
4486 (ix86_preferred_simd_mode): ... this. Re-implement.
4487 * config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
4488 (sparc_preferred_simd_mode): ... this. Re-implement.
4489 * config/mips/mips.c (mips_units_per_simd_word): Rename to ...
4490 (mips_preferred_simd_mode): ... this. Re-implement.
4491 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
4492 (rs6000_preferred_simd_mode): ... this. Re-implement.
4493 * tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
4494 * doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
4495 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
4496 * doc/tm.texi: Update.
4497
4498 2010-10-07 Richard Guenther <rguenther@suse.de>
4499
4500 PR middle-end/45869
4501 * tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
4502 of pointers.
4503
4504 2010-10-07 Alan Modra <amodra@gmail.com>
4505
4506 * config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
4507 rather than sign extension by hand.
4508
4509 2010-10-07 Jan Hubicka <jh@suse.cz>
4510
4511 PR middle-end/45926
4512 * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
4513
4514 2010-10-07 Richard Guenther <rguenther@suse.de>
4515
4516 PR bootstrap/45914
4517 * configure.ac: Fix typo.
4518 * configure: Regenerated.
4519
4520 2010-10-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4521
4522 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
4523 define_builtin_std where it's unnecessary.
4524 * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
4525
4526 2010-10-06 Anatoly Sokolov <aesok@post.ru>
4527
4528 * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
4529 * doc/tm.texi.in: Regenerate.
4530 * system.h (CLASS_LIKELY_SPILLED_P): Poison.
4531 * targhooks.c (default_class_likely_spilled_p): Don't use the
4532 CLASS_LIKELY_SPILLED_P macro.
4533
4534 * config/arm/arm.md: Update comment.
4535
4536 2010-10-06 Jan Hubicka <jh@suse.cz>
4537
4538 * ipa.c (cgraph_remove_unreachable_nodes): External references can
4539 always be removed.
4540 (cgraph_externally_visible_p): We can not bring local comdats that
4541 are known to linker; fix handling of internal visibility.
4542 (function_and_variable_visibility): Likewise.
4543
4544 2010-10-06 Eric Botcazou <ebotcazou@adacore.com>
4545
4546 PR rtl-optimization/45394
4547 * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
4548 (struct rtx_subst_pair): Remove AFTER field.
4549 (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
4550 (propagate_for_debug): Remove MOVE parameter and adjust.
4551 (try_combine): In the special case where I2 is a PARALLEL, combine only
4552 destinations of SETs and set I2SRC to the I2 source.
4553 Adjust calls to propagate_for_debug throughout.
4554 * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
4555 insns.
4556
4557 2010-10-06 Olivier Hainque <hainque@adacore.com>
4558
4559 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
4560 switch on insn codes as sequence of ifs.
4561
4562 2010-10-06 Hariharan Sandanagobalane <hariharan@picochip.com>
4563
4564 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
4565 be UI_NONE for picochip.
4566 (picochip_option_override): Do not disable exception flags.
4567 * config/picochip/picochip-protos.h (picochip_except_unwind_info):
4568 Declare.
4569
4570 2010-10-06 Richard Guenther <rguenther@suse.de>
4571
4572 * Makefile.in (regmove.o): Depend on $(TARGET_H).
4573
4574 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
4575
4576 Implemented fast enumeration for Objective-C.
4577 * c-parser.c (objc_could_be_foreach_context): New.
4578 (c_lex_one_token): Recognize RID_IN keyword in a potential
4579 Objective-C foreach context.
4580 (c_parser_declaration_or_fndef): Added parameter. Accept
4581 Objective-C RID_IN keyword as terminating a declaration; in that
4582 case, return the declaration in the new parameter.
4583 (c_parser_extenral_declaration): Updated calls to
4584 c_parser_declaration_or_fndef.
4585 (c_parser_declaration_or_fndef): Same change.
4586 (c_parser_compound_statement_nostart): Same change.
4587 (c_parser_label): Same change.
4588 (c_parser_objc_methodprotolist): Same change.
4589 (c_parser_omp_for_loop): Same change.
4590 (c_parser_for_statement): Detect and parse Objective-C foreach
4591 statements.
4592 (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
4593 * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
4594 fast enumeration parsing code to turn off the c99 error but still
4595 perform checks on the loop declarations.
4596 * c-tree.h (check_for_loop_decls): Updated declaration.
4597 * doc/objc.texi: Document fast enumeration.
4598
4599 2010-10-06 Nick Clifton <nickc@redhat.com>
4600
4601 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by one.
4602 (MDR_REGNUM): Define.
4603 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed register.
4604 (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
4605 (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
4606 (REGISTER_NAMES): Add MDR.
4607 (DWARF2_DEBUGGING_INFO): Define to 1.
4608 * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
4609 (F): New function. Sets RTX_FRAME_RELATED_P.
4610 (mn10300_gen_multiple_store): Use F.
4611 (expand_prologue): Use F. Use gen_movsf() to push floating
4612 point registers.
4613 (expand_epilogue): Use gen_movsf() to pop floating point registers.
4614 (mn10300_option_override): Disable combine stack adjust pass.
4615
4616 2010-10-06 Thomas Schwinge <thomas@schwinge.name>
4617
4618 PR target/45901
4619 * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
4620 LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
4621
4622 2010-10-06 Jakub Jelinek <jakub@redhat.com>
4623
4624 * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
4625 BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
4626 BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
4627 BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
4628 BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
4629 BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
4630 BUILT_IN_TOUPPER): Mark as leaf.
4631
4632 PR middle-end/45838
4633 * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
4634 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
4635 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
4636 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
4637 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
4638 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
4639 Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
4640
4641 2010-10-05 Anatoly Sokolov <aesok@post.ru>
4642
4643 * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
4644 * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
4645 (m68hc11_class_likely_spilled_p): New function.
4646
4647 2010-10-05 Nicola Pero <nicola.pero@meta-innovation.com>
4648
4649 * c-parser.c (c_parser_objc_method_definition): Updated comment.
4650
4651 2010-10-05 Jan Hubicka <jh@suse.cz>
4652
4653 * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
4654 Document.
4655 * opts.c (decode_options): Handle lto partitions.
4656 * common.opt (flto-partition=1to1, flto-partition=balanced): New.
4657 * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
4658
4659 2010-10-05 Jan Hubicka <jh@suse.cz>
4660
4661 * cgraphunit.c (assemble_function): Output thunks and aliases before
4662 the function itself.
4663
4664 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
4665
4666 * config/picochip/picochip.c (picochip_option_override): Disable
4667 exception flags for picochip.
4668
4669 2010-10-05 Joseph Myers <joseph@codesourcery.com>
4670
4671 * opts-common.c (handle_option, handle_generated_option,
4672 read_cmdline_option, set_option): Add diagnostic_context
4673 parameter. Update calls among these functions.
4674 (set_option): Don't use global_dc.
4675 * opts.c (read_cmdline_options): Pass global_dc to read_cmdline_option.
4676 (decode_options): Pass global_dc to enable_warning_as_error.
4677 (common_handle_option): Pass global_dc to enable_warning_as_error.
4678 (enable_warning_as_error): Add diagnostic_context parameter.
4679 Document parameters. Don't use global_dc. Pass
4680 diagnostic_context parameter to handle_generated_option.
4681 * opts.h (set_option, handle_option, handle_generated_option,
4682 read_cmdline_option, enable_warning_as_error): Add
4683 diagnostic_context parameter.
4684 * Makefile.in (lto-opts.o): Update dependencies.
4685 * coretypes.h (struct diagnostic_context, diagnostic_context):
4686 Declare here.
4687 * diagnostic.h (diagnostic_context): Don't declare typedef here.
4688 * gcc.c (process_command): Pass global_dc to read_cmdline_option.
4689 * langhooks-def.h (struct diagnostic_context): Don't declare here.
4690 (lhd_print_error_function, lhd_initialize_diagnostics): Declare
4691 using diagnostic_context typedef.
4692 * langhooks.c (lhd_initialize_diagnostics): Declare using
4693 diagnostic_context typedef.
4694 * langhooks.h (struct diagnostic_context): Don't declare here.
4695 (initialize_diagnostics, print_error_function): Declare using
4696 diagnostic_context typedef.
4697 * lto-opts.c: Include diagnostic.h.
4698 (lto_reissue_options): Pass global_dc to set_option. Pass
4699 DK_UNSPECIFIED not 0.
4700 * plugin.c (plugins_internal_error_function): Declare using
4701 diagnostic_context typedef.
4702 * plugin.h (struct diagnostic_context): Don't declare here.
4703 (plugins_internal_error_function): Declare using
4704 diagnostic_context typedef.
4705
4706 2010-10-05 Olivier Hainque <hainque@adacore.com>
4707 Nicolas Roche <roche@adacore.com>
4708
4709 * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
4710 * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
4711
4712 2010-10-05 Ira Rosen <irar@il.ibm.com>
4713
4714 PR tree-optimization/45752
4715 * tree-vect-slp.c (vect_get_mask_element): Remove static
4716 variables, make them function arguments.
4717 (vect_transform_slp_perm_load): Pass new arguments to
4718 vect_get_mask_element.
4719
4720 2010-10-05 Richard Guenther <rguenther@suse.de>
4721
4722 * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
4723 (gimple_mod_pow2): Likewise.
4724 (gimple_mod_subtract): Likewise.
4725 (gimple_ic): Likewise.
4726 (gimple_stringop_fixed_value): Likewise.
4727 * tree-profile.c (tree_init_edge_profiler): Mark profile
4728 functions nothrow and leaf.
4729 (add_abnormal_goto_call_edges): Remove.
4730 (tree_gen_edge_profiler): Work on SSA form.
4731 (tree_gen_ic_profiler): Likewise. Simplify.
4732 (do_tree_profiling): Update SSA form.
4733 (pass_tree_profile): Remove.
4734 (do_tree_profiling): Likewise.
4735 (gate_tree_profile_ipa): New function.
4736 (pass_ipa_tree_profile): New.
4737 (tree_profiling): Re-write as IPA pass. Properly drop const/pure
4738 state of instrumented functions.
4739 * passes.c (init_optimization_passes): Remove early non-SSA
4740 inlining. Move profiling after early optimizations.
4741 * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
4742 (pass_ipa_early_inline): Likewise.
4743 * tree-pass.h (pass_ipa_early_inline): Remove.
4744 (pass_tree_profile): Likewise.
4745 (pass_ipa_tree_profile): Declare.
4746
4747 2010-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4748 Christian Borntraeger <Christian.Borntraeger@de.ibm.com>
4749
4750 * config/s390/s390.c (z196_cost): New.
4751 (s390_handle_arch_option): Add -march=z196.
4752 (s390_option_override): Use the new cost function and use the z10
4753 defaults also for z196.
4754 (legitimate_reload_constant_p): Adjust comment.
4755 (legitimate_reload_fp_constant_p): New function.
4756 (s390_preferred_reload_class): Distingiush between FP and Int constants.
4757 (preferred_la_operand_p): Avoid la with index on z196.
4758 (s390_adjust_priority): Trigger also for z196.
4759 (s390_issue_rate): Issue rate for z196 is 3.
4760 (s390_z10_fix_long_loop_prediction): Rename to ...
4761 (s390_fix_long_loop_prediction): ... this.
4762 (s390_reorg): Apply the z10 adjustments also for z196.
4763 (s390_loop_unroll_adjust): Do this also for z196.
4764 * config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
4765 (enum processor_flags): Add PF_Z196.
4766 (TARGET_AVOID_CMP_AND_BRANCH): New macro.
4767 (TARGET_CPU_Z196, TARGET_Z196): New macros.
4768 * config.gcc: Enable z196 for --with-arch.
4769 * config/s390/2817.md: New file.
4770 * config/s390/2084.md: New type for multiply and add.
4771 * config/s390/2097.md: Likewise.
4772 * config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
4773 (UNSPECV_ATOMIC_OP): New constants.
4774 (fmadddf, fmaddsf): New values for type attribute.
4775 (z196prop): New insn attribute.
4776 (cpu, cpu_facility): Add z196.
4777 (ATOMIC_Z196): New code iterator.
4778 (noxa): New code attribute.
4779 (gk): New mode attribute.
4780 (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
4781 Support load zero for fp constants.
4782 (fixuns_truncdddi2, fixuns_trunctddi2)
4783 (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
4784 for z196.
4785 (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
4786 (popcounthi2, popcountqi2): New expander.
4787 (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
4788 (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
4789 (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
4790 insn definition.
4791 (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
4792 (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
4793 (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc)
4794 (*sub<mode>3, *sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly)
4795 (*sub<mode>3_cc, *sub<mode>3_cc2, *sub<mode>3_cconly)
4796 (*sub<mode>3_cconly2, *anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc)
4797 (*andsi3_cconly, *andsi3_zarch, *andsi3_esa, *andhi3_zarch
4798 (*andqi3_zarch, *iordi3_cc, *iordi3_cconly, *iordi3, *iorsi3_cc)
4799 (*iorsi3_cconly, *iorsi3_zarch, *iorhi3_zarch, *iorqi3_zarch)
4800 (*xordi3_cc, *xordi3_cconly, *xordi3, *xorsi3_cc, *xorsi3_cconly)
4801 (*xorsi3, *xorhi3, *xorqi3, *<shift><mode>3, *<shift><mode>3_and)
4802 (*ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
4803 (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
4804 Support new z196 instructions.
4805
4806 2010-10-05 Richard Guenther <rguenther@suse.de>
4807
4808 PR middle-end/45877
4809 * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
4810 case where gimplification optimizes away the stmt.
4811
4812 2010-10-04 Jakub Jelinek <jakub@redhat.com>
4813
4814 PR debug/45849
4815 * var-tracking.c (strip_pointer_flags): New function.
4816 (emit_note_insn_var_location): If rtx_equal_p check failed,
4817 retry on locations simplified with simplify_replace_fn_rtx
4818 and strip_pointer_flags as its callback.
4819
4820 2010-10-04 Jan Hubicka <jh@suse.cz>
4821
4822 * gimple-fold.c (static_object_in_other_unit_p): Rename to...
4823 (can_refer_decl_in_current_unit_p): ... this one; reverse return
4824 value; handle comdats too.
4825 (canonicalize_constructor_val): Use it; handle function_decls
4826 correctly.
4827 (gimple_fold_obj_type_ref_known_binfo): Likewise.
4828 * gimple.c (get_base_address): Accept all kinds of decls.
4829
4830 2010-10-04 Joseph Myers <joseph@codesourcery.com>
4831
4832 * flags.h (g_switch_value, g_switch_set): Remove.
4833 * opts.c (g_switch_value, g_switch_set): Remove.
4834 * config/g.opt (G): Add Var(g_switch_value).
4835 * config/alpha/alpha.c (alpha_handle_option): Don't handle -G here.
4836 (alpha_option_override): Check global_options_set.x_g_switch_value
4837 instead of g_switch_set.
4838 (alpha_in_small_data_p): Remove cast in comparison with
4839 g_switch_value.
4840 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
4841 g_switch_value to unsigned HOST_WIDE_INT.
4842 * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
4843 with g_switch_value.
4844 (frv_handle_option): Don't handle -G here.
4845 (frv_option_override): Check global_options_set.x_g_switch_value
4846 instead of g_switch_set. Don't modify g_switch_set.
4847 (frv_in_small_data_p): Remove cast in comparison with g_switch_value.
4848 * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
4849 g_switch_value to unsigned HOST_WIDE_INT.
4850 * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
4851 (ia64_option_override): Check global_options_set.x_g_switch_value
4852 instead of g_switch_set.
4853 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
4854 Remove.
4855 (lm32_in_small_data_p): Remove cast in comparison with
4856 g_switch_value.
4857 * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
4858 ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
4859 HOST_WIDE_INT.
4860 * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
4861 (m32r_init): Check global_options_set.x_g_switch_value instead of
4862 g_switch_set.
4863 (m32r_in_small_data_p): Remove cast in comparison with
4864 g_switch_value.
4865 (m32r_file_start): Format g_switch_value with %d.
4866 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
4867 ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned HOST_WIDE_INT.
4868 * config/microblaze/microblaze.c (microblaze_handle_option): Don't
4869 handle -G here.
4870 (microblaze_option_override): Check
4871 global_options_set.x_g_switch_value instead of g_switch_set.
4872 * config/mips/mips.c (mips_handle_option): Don't handle -G here.
4873 (mips_option_override): Check global_options_set.x_g_switch_value
4874 instead of g_switch_set.
4875 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G here.
4876 (rs6000_file_start): Format g_switch_value with %d.
4877 (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
4878 comparisons with g_switch_value.
4879 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
4880 global_options_set.x_g_switch_value instead of g_switch_set.
4881 * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
4882 global_options_set.x_g_switch_value instead of g_switch_set.
4883 * config/score/score.c (score_handle_option): Don't handle -G here.
4884 * config/score/score3.c (score3_option_override): Check
4885 global_options_set.x_g_switch_value instead of g_switch_set.
4886 * config/score/score7.c (score7_option_override): Check
4887 global_options_set.x_g_switch_value instead of g_switch_set.
4888
4889 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
4890
4891 * common.opt (fira-coalesce): Remove.
4892
4893 * doc/invoke.texi (flag_ira_coalesce): Remove.
4894
4895 * ira-color.c (allocno_coalesced_p): Move before
4896 copy_freq_compare_func.
4897 processed_coalesced_allocno_bitmap): Ditto.
4898 (update_conflict_hard_regno_costs): Don't use
4899 ALLOCNO_FIRST_COALESCED_ALLOCNO.
4900 (allocno_cost_compare_func, print_coalesced_allocno): Remove.
4901 (assign_hard_reg): Assume no coalesced allocnos.
4902 (get_coalesced_allocnos_attributes): Remove.
4903 (bucket_allocno_compare_func): Assume no coalesced allocnos.
4904 (push_allocno_to_stack): Ditto.
4905 (remove_allocno_from_bucket_and_push): Use
4906 ira_print_expanded_allocno instead of print_coalesced_allocno.
4907 (push_allocnos_to_stack): Assume uncoalesced allocnos.
4908 (all_conflicting_hard_regs_coalesced): Ditto. Rename to
4909 all_conflicting_hard_regs.
4910 (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
4911 (setup_allocno_left_conflicts_size): Ditto.
4912 (put_allocno_into_bucket): Ditto.
4913 (copy_freq_compare_func): Remove.
4914 (copy_freq_compare_func, merge_allocnos): Move before
4915 coalesced_pseudo_reg_freq_compare.
4916 coalesced_allocno_conflict_p): Ditto.
4917 (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto. Remove
4918 parameter. Assume it true.
4919 (color_allocnos): Assume uncoalesced allocnos. Use
4920 ira_print_expanded_allocno instead of print_coalesced_allocno.
4921 (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
4922 parameter.
4923
4924 * ira.c: Remove comment about coalescing.
4925
4926 2010-10-04 Joseph Myers <joseph@codesourcery.com>
4927
4928 * config/mips/mips.h (target_flags_explicit): Declare for
4929 GENERATOR_FILE.
4930
4931 2010-10-04 Andi Kleen <ak@linux.intel.com>
4932
4933 * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
4934 gcov-dump, cc1-dummy, genprog, build/gcov-iov): Add + to build rule.
4935
4936 2010-10-04 Matthias Klose <doko@ubuntu.com>
4937
4938 * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
4939 multilib osdirname if it exists.
4940 * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
4941
4942 2010-10-04 Jakub Jelinek <jakub@redhat.com>
4943
4944 PR middle-end/45876
4945 * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
4946 arg0's type or its unsigned counterpart as utype. Convert
4947 arg1 to utype unconditionally.
4948
4949 2010-10-04 Julian Brown <julian@codesourcery.com>
4950
4951 * expr.c (expand_assignment): Add assertion to prevent emitting
4952 null rtx for movmisalign pattern.
4953 (expand_expr_real_1): Likewise.
4954 * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
4955 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
4956 (arm_vector_alignment_reachable): New.
4957 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
4958 (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
4959 (arm_print_operand): Include alignment qualifier in %A.
4960 * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
4961 (movmisalign<mode>): New expander.
4962 (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
4963 insn patterns.
4964
4965 2010-10-04 Joseph Myers <joseph@codesourcery.com>
4966
4967 * optc-gen.awk: Define global_options_set. Don't define
4968 target_flags_explicit.
4969 * opth-gen.awk: Declare global_options_set. Define
4970 target_flags_explicit as macro.
4971 * opts-common.c (handle_option): Take opts_set and generated_p
4972 parameters.
4973 (handle_generated_option, read_cmdline_option, set_option): Take
4974 opts_set parameter.
4975 (set_option): Use opts_set instead of hardcoding target_flags and
4976 target_flags_explicit.
4977 * opts.c (sel_sched_switch_set, profile_arc_flag_set,
4978 flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
4979 flag_value_profile_transformations_set, flag_peel_loops_set,
4980 flag_branch_probabilities_set, flag_inline_functions_set,
4981 flag_ipa_cp_set, flag_ipa_cp_clone_set,
4982 flag_predictive_commoning_set, flag_unswitch_loops_set,
4983 flag_gcse_after_reload_set): Remove.
4984 (common_handle_option, lang_handle_option, target_handle_option):
4985 Take opts_set parameter. Assert that it is &global_options_set.
4986 (common_handle_option): Don't set _set variables. Check opts_set
4987 instead of such variables.
4988 (enable_warning_as_error): Pass &global_options_set to
4989 handle_generated_option.
4990 * opts.h (cl_option_handler_func.handler, set_option,
4991 handle_option, handle_generated_option, read_cmdline_option): Add
4992 opts_set parameters.
4993 (handle_option): Add generated_p parameter.
4994 * config/i386/i386.c (ix86_function_specific_save,
4995 ix86_function_specific_restore): Updat for renaming of
4996 target_flags_explicit field.
4997 * config/i386/i386.opt (target_flags_explicit): Rename to
4998 ix86_target_flags_explicit.
4999 * config/ia64/ia64.c (ia64_override_options_after_change): Check
5000 global_options_set.x_flag_selective_scheduling and
5001 global_options_set.x_flag_selective_scheduling2, not
5002 sel_sched_switch_set.
5003 * flags.h (sel_sched_switch_set,
5004 flag_speculative_prefetching_set): Remove.
5005 * gcc.c (driver_handle_option): Take opts_set parameter. Assert
5006 that it is &global_options_set.
5007 (process_command): Pass &global_options_set to read_cmdline_option.
5008 * lto-opts.c (lto_reissue_options): Pass &global_options_set to
5009 set_option.
5010 * toplev.c (target_flags_explicit): Remove.
5011
5012 2010-10-04 Jan Hubicka <jh@suse.cz>
5013
5014 PR middle-end/45871
5015 * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
5016 use get_ref_base_and_offset to handle references.
5017 (fold_const_aggregate_ref): Update.
5018
5019 2010-10-04 Martin Jambor <mjambor@suse.cz>
5020
5021 PR tree-optimization/45572
5022 * ipa-prop.c (ipa_make_edge_direct_to_target): Call
5023 ipa_check_create_node_params.
5024 * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
5025
5026 2010-10-04 Yao Qi <yao@codesourcery.com>
5027
5028 * doc/passes.texi: Clean up.
5029
5030 2010-10-03 Ian Lance Taylor <iant@google.com>
5031
5032 * c-typeck.c (lookup_field): If -fplan9-extensions, permit
5033 referring to a field using a typedef name.
5034 (find_anonymous_field_with_type): New static function.
5035 (convert_to_anonymous_field): New static function.
5036 (convert_for_assignment): If -fplan9-extensions, permit converting
5037 pointer to struct to pointer to anonymous field.
5038 * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous fields.
5039 (is_duplicate_field): New static function.
5040 (detect_field_duplicates_hash): If -fplan9-extensions, check for
5041 typedef names duplicating field names.
5042 (detect_field_duplicates): Likewise.
5043 * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
5044 (C Dialect Options): Document -fplan9-extensions.
5045 * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
5046
5047 2010-10-03 H.J. Lu <hongjiu.lu@intel.com>
5048
5049 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
5050 revision 164914.
5051 (vect_create_data_ref_ptr): Likewise.
5052 * tree-vect-stmts.c (vectorizable_store): Likewise.
5053 (perm_mask_for_reverse): Likewise.
5054 (reverse_vec_elements): Likewise.
5055 (vectorizable_load): Likewise.
5056
5057 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
5058
5059 * cppbuiltin.c: New file.
5060 * cppbuiltin.h: New file.
5061 * Makefile.in: Take into account cppbuiltin.{h,c}.
5062
5063 2010-10-03 Andi Kleen <ak@linux.intel.com>
5064
5065 * lto-cgraph.c (input_cgraph): Check for missing sections.
5066
5067 2010-10-03 Uros Bizjak <ubizjak@gmail.com>
5068
5069 * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 predicate
5070 to nonimmediate_operand. Force operand 2 to register when allowed.
5071 (*<shiftrt_insn><mode>3_mask): Ditto.
5072 (*<rotate_insn><mode>3_mask): Ditto.
5073
5074 2010-10-02 H.J. Lu <hongjiu.lu@intel.com>
5075
5076 PR tree-optimization/45720
5077 PR tree-optimization/45764
5078 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
5079 Don't accept backwards consecutive accesses.
5080 (vect_create_data_ref_ptr): Disallow negative steps.
5081
5082 * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
5083 (perm_mask_for_reverse): Removed.
5084 (reverse_vec_elements): Likewise.
5085 (vectorizable_load): Don't handle negative steps.
5086
5087 2010-10-02 Jan Hubicka <jh@suse.cz>
5088
5089 * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
5090 call destination is known.
5091
5092 2010-10-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5093
5094 PR target/45820
5095 * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
5096 earlier.
5097
5098 2010-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5099
5100 * doc/install.texi (Configuration): Document build_configargs,
5101 host_configargs, target_configargs.
5102
5103 2010-10-01 Uros Bizjak <ubizjak@gmail.com>
5104
5105 * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
5106 (*<shiftrt_insn><mode>3_mask): Ditto.
5107 (*<rotate_insn><mode>3_mask): Ditto.
5108
5109 2010-10-01 Steve Ellcey <sje@cup.hp.com>
5110
5111 PR tree-optimization/44716
5112 * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
5113 (HOT_TEXT_SECTION_NAME): Define.
5114
5115 2010-10-01 Nick Clifton <nickc@redhat.com>
5116
5117 * common.opt: Add -fcombine-stack-adjustments.
5118 * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
5119 * combine-stack-adj.c (gate_handle_stack_adjustments): Check
5120 flag_combine_stack_adjustments.
5121 * doc/invoke.texi: Document the new option.
5122
5123 2010-10-01 Richard Guenther <rguenther@suse.de>
5124
5125 PR tree-optimization/45854
5126 * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
5127
5128 2010-10-01 Anthony Green <green@moxielogic.com>
5129
5130 * config.gcc: Fix moxie-*-rtems* configuration.
5131
5132 2010-10-01 Richard Guenther <rguenther@suse.de>
5133
5134 * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
5135 (gen_decl_die): Likewise.
5136
5137 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5138
5139 * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
5140 to the function code for SPU MD builtins.
5141 (spu_expand_builtin): Update.
5142 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
5143
5144 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
5145
5146 * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
5147 sjlj_except_unwind_info.
5148
5149 2010-10-01 Tristan Gingold <gingold@adacore.com>
5150
5151 * configure.ac: Define the nop insn for avr*-*-*
5152 * configure: Regenerate.
5153
5154 2010-10-01 Alan Modra <amodra@gmail.com>
5155
5156 PR target/45807
5157 * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
5158 extend toc_restore_insn.
5159
5160 2010-09-30 Richard Guenther <rguenther@suse.de>
5161
5162 PR tree-optimization/43959
5163 * function.c (gimplify_parameters): Use create_tmp_reg instead of
5164 create_tmp_var.
5165
5166 2010-09-30 Kaz Kojima <kkojima@gcc.gnu.org>
5167
5168 * config/sh/sh.c (sh_expand_prologue): Set
5169 current_function_static_stack_size.
5170
5171 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5172
5173 * configure.ac: Check for Solaris 8 ld with .hidden support.
5174 * configure: Regenerate.
5175
5176 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5177
5178 PR middle-end/45758
5179 * graphite.c (graphite_initialize): Call scev_reset.
5180
5181 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5182
5183 * sese.h (scev_analyzable_p): Return false for real or floating
5184 point. Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
5185
5186 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5187
5188 * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
5189 and ps.
5190 * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
5191 domain.
5192 * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
5193 Do not allocate ub_expr, it is passed in initialized.
5194
5195 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
5196
5197 * graphite-clast-to-gimple.c (init_cloog_input_file): New.
5198 (build_cloog_prog): Dump CLooG input file when
5199 flag_graphite_dump_cloog is set. This is disabled on trunk.
5200 * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
5201
5202 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5203
5204 * graphite-clast-to-gimple.c (graphite_verify): Remove call to
5205 verify_dominators for CDI_POST_DOMINATORS.
5206 * sese.h: Remove comment about CDI_POST_DOMINATORS.
5207 (recompute_all_dominators): Remove call to free_dominance_info
5208 for CDI_POST_DOMINATORS. Remove call to calculate_dominance_info
5209 for CDI_POST_DOMINATORS.
5210
5211 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5212
5213 * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
5214 over pbb_dim_iter_domain.
5215
5216 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5217
5218 * graphite-flattening.c: Fix comments.
5219
5220 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5221
5222 * Makefile.in (OBJS-common): Add graphite-flattening.o.
5223 (graphite-flattening.o): New rule.
5224 * common.opt (floop-flatten): New flag.
5225 * doc/invoke.texi (-floop-flatten): Documented.
5226 * graphite-flattening.c: New.
5227 * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
5228 * graphite-poly.h (flatten_all_loops): Declared.
5229 (lst_remove_loop_and_inline_stmts_in_loop_father): New.
5230 * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
5231 is set, also set flag_graphite.
5232
5233 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5234
5235 * graphite-poly.c (cloog_checksum): New.
5236 * graphite-poly.h (cloog_checksum): Declared.
5237
5238 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5239
5240 * graphite-poly.c (pbb_number_of_iterations): Removed.
5241 (pbb_number_of_iterations_at_time): Correctly compute the number
5242 of iterations in the transformed loop.
5243 * graphite-poly.h (pbb_number_of_iterations): Removed.
5244
5245 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5246
5247 * graphite-poly.h (lst_update_scattering_seq): Removed.
5248 (lst_update_scattering): Correctly handle outermost loop dewey
5249 renumbering.
5250
5251 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5252
5253 * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
5254 lst_strip_mine_profitable_p. Call lst_niter_for_loop.
5255 * graphite-poly.h (lst_niter_for_loop): New.
5256
5257 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5258
5259 * graphite-poly.c (apply_poly_transforms): Do not abort when the
5260 transform read from disk is not legal. Call fatal_error instead.
5261
5262 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5263
5264 * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
5265 (print_scop_header): Removed. Inlined in the only call place...
5266 (print_scop): ... here.
5267
5268 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5269
5270 * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
5271
5272 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5273
5274 * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
5275
5276 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5277
5278 * graphite-dependences.c (dot_deps): Avoid set but not used warning.
5279 (dot_deps_stmt): Same.
5280 * graphite-poly.c (dot_lst): Same.
5281
5282 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5283
5284 * graphite-blocking.c (scop_do_strip_mine): Do not call
5285 graphite_legal_transform.
5286 (scop_do_block): Same.
5287
5288 2010-09-30 Vladimir Kargov <kargov@gmail.com>
5289
5290 * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
5291 description.
5292
5293 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5294
5295 * tree-scalar-evolution.c (instantiate_array_ref): New.
5296 (instantiate_scev_r): Also handle ARRAY_REFs.
5297
5298 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5299
5300 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
5301 Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
5302 RESULT_DECL, and FIELD_DECL. Return false for an
5303 SSA_NAME_IS_DEFAULT_DEF.
5304 (compute_scalar_evolution_in_loop): Do not further analyze the
5305 scalar evolution when no_evolution_in_loop_p returns true.
5306
5307 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5308
5309 * tree-chrec.h (evolution_function_is_affine_p): Do not check
5310 whether CHREC_LEFT is invariant. A function is affine when
5311 CHREC_RIGHT is invariant.
5312
5313 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5314
5315 * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
5316 is_gimple_reg.
5317 (rewrite_degenerate_phi): Same.
5318 (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
5319
5320 2010-09-30 Vladimir Kargov <kargov@gmail.com>
5321
5322 * graphite-scop-detection.c (graphite_can_represent_scev,
5323 graphite_can_represent_expr, stmt_has_simple_data_refs_p,
5324 graphite_can_represent_loop): Remove outermost_loop.
5325
5326 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5327
5328 PR middle-end/45229
5329 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
5330 handle GIMPLE_CALLs with no LHS.
5331
5332 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
5333
5334 * graphite-poly.c (init_graphite_out_file): New.
5335 (init_graphite_in_file): New.
5336 (apply_poly_transforms): Updated to enable reading and writing of
5337 multiple scop files.
5338
5339 2010-09-30 Tobias Grosser <grosser@fim.uni-passau.de>
5340
5341 * graphite-scop-detection.c (graphite_can_represent_scev): Remove
5342 redundant checks.
5343
5344 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5345
5346 * graphite-clast-to-gimple.c (precision_for_value): Adjust
5347 computation of precision by 1.
5348
5349 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
5350
5351 * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
5352 (openscop_read_polyhedron_matrix): New.
5353 * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
5354 (openscop_read_N_int): Same.
5355 * graphite-poly.c (openscop_read_N_int): New.
5356 (openscop_read_one_int): New.
5357 (openscop_read_N_string): New.
5358 (openscop_read_one_string): New.
5359 (openscop_read_powerset_matrix): New.
5360 (graphite_read_transforms): Remove.
5361 (graphite_read_scatt): New.
5362 (graphite_read_scop_file): New.
5363 (apply_poly_transforms): Updated to call graphite_read_scop_file.
5364
5365 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
5366
5367 * graphite-poly.c: Change include order.
5368
5369 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
5370
5371 * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
5372 (cloog_matrix_nrows): New.
5373
5374 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
5375
5376 * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
5377 from matrix lines.
5378 * graphite-poly.c (openscop_print_scattering_function_1): Same.
5379 (print_scattering_function_1): Same.
5380 (openscop_print_pbb_domain): Same.
5381 (openscop_print_scop_context): Same.
5382 (print_scop_context): Same.
5383
5384 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
5385
5386 * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
5387 (openscop_print_pdr_polyhedron): Print pph.
5388
5389 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5390
5391 * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
5392 priority signed types.
5393
5394 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5395
5396 * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
5397 the call to lang_hooks.types.type_for_size. Call
5398 build_nonstandard_integer_type.
5399
5400 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
5401
5402 * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
5403 (openscop_print_polyhedron_matrix): New.
5404 * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
5405 * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
5406 (openscop_print_pdr_powerset): New.
5407 (openscop_print_powerset_matrix): New.
5408 (openscop_print_scattering_function_1): New.
5409 (print_scattering_function): Add support for scattering names and
5410 OpenScop format.
5411 (graphite_write_transforms): Remove.
5412 (print_pdr_access_layout): Updated to support OpenScop format.
5413 (print_pdr): Same.
5414 (openscop_print_pbb_domain): New.
5415 (print_pbb_body): Added a parameter to allow indicating that pbb_body
5416 is not provided.
5417 (print_pbb): Updated to call the new print_pbb_body.
5418 (openscop_print_scop_context): New.
5419 (print_scop_header): New.
5420 (print_scop): Updated to call print_scop_header.
5421 * graphite-poly.h: Document OpenScop format.
5422
5423 2010-09-30 Anatoly Sokolov <aesok@post.ru>
5424
5425 * config/cris/m32c.c (cris_memory_move_cost): New.
5426 (cris_register_move_cost): Make static. Change arguments type from
5427 enum reg_class to reg_class_t.
5428 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
5429 * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
5430 * config/cris/cris-protos.h (cris_register_move_cost): Remove.
5431
5432 2010-09-30 Jakub Jelinek <jakub@redhat.com>
5433
5434 PR target/45843
5435 * config/i386/i386.c (ix86_gimplify_va_arg): Use
5436 INTVAL (XEXP (slot, 1)) as prev_size.
5437
5438 2010-09-30 Michael Meissner <meissner@linux.vnet.ibm.com>
5439
5440 PR target/45837
5441 * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
5442 * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
5443 defined.
5444 * config/rs6000/option-defaults.h (toplevel): Change #if
5445 TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
5446 global option changes.
5447
5448 2010-09-30 Jakub Jelinek <jakub@redhat.com>
5449
5450 * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
5451
5452 PR tree-optimization/31261
5453 * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
5454 for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
5455
5456 2010-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5457
5458 PR bootstrap/45796
5459 * Makefile.in (build/gen%$(build_exeext)): Move rule after all
5460 special-casing for generators and turn into ...
5461 ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
5462 rule, for better error messages in case of toplevel dependency errors.
5463 (genprog): Add hooks, rename to ...
5464 (genprogerr): ... this, and let genprog also contain check,
5465 checksum, condmd.
5466 ((genprog:%=build/gen%$(build_exeext))): Rename to ...
5467 ((genprogerr:%=build/gen%$(build_exeext))): ... this.
5468 (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
5469
5470 2010-09-30 Jonathan Wakely <jwakely.gcc@gmail.com>
5471 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5472
5473 * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
5474 for GMP, MPFR and MPC.
5475
5476 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5477
5478 * config/sparc/sparc.opt (mimpure-text): Move ...
5479 * config/sol2.opt: ... here. Correct description.
5480 * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
5481 * doc/invoke.texi (Option Summary, SPARC Options): Move
5482 -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
5483 (Option Summary, Solaris 2 Options): ... here.
5484 (Submodel Options, Solaris 2 Options): New menu entry.
5485 (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
5486 (Solaris 2 Options): ... here.
5487
5488 2010-09-30 Michael Eager <eager@eagercon.com>
5489
5490 * extend.texi (interrupt_handler): Add MicroBlaze to list.
5491 (save_volatiles): Describe option for MicroBlaze.
5492 * invoke.texi: Add MicroBlaze Options.
5493 * contrib.texi: Add acknowledgment.
5494 * md.texi: Add MicroBlaze d and z constraints.
5495 * install.texi: Add microblaze-*-elf.
5496 * configure.ac: Add microblaze-*-* to target list.
5497 * configure: Regenerate.
5498 * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
5499 * config/microblaze/microblaze-protos.h: New.
5500 * config/microblaze/crti.s: New.
5501 * config/microblaze/predicates.md: New.
5502 * config/microblaze/linux.h: New.
5503 * config/microblaze/microblaze.md: New.
5504 * config/microblaze/constraints.md: New.
5505 * config/microblaze/crtn.s: New.
5506 * config/microblaze/microblaze.opt: New.
5507 * config/microblaze/microblaze-c.c: New.
5508 * config/microblaze/t-microblaze: New.
5509 * config/microblaze/microblaze.c: New.
5510 * config/microblaze/microblaze.h: New.
5511
5512 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
5513
5514 * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
5515 parse @optional/@required and set the flags as appropriate.
5516
5517 2010-09-30 Nathan Froyd <froydnj@codesourcery.com>
5518
5519 * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
5520
5521 2010-09-30 Joseph Myers <joseph@codesourcery.com>
5522
5523 * opt-functions.awk (static_var): Update comment.
5524 (var_ref): Return offsetof expression or -1, not variable address.
5525 * optc-gen.awk: Generate structure field initializers instead of
5526 static variables. Expect -1 for missing variables instead of null
5527 pointer. Add gcc_options parameters to generated functions.
5528 * opth-gen.awk: Generate structure fields for static variables.
5529 Add gcc_options parameters to generated functions.
5530 * common.opt (optimize, optimize_size): Add variables.
5531 * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
5532 &global_options to cl_target_option_restore.
5533 * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
5534 &global_options to cl_optimization_restore, cl_target_option_save
5535 and cl_target_option_restore.
5536 (ix86_set_current_function): Pass &global_options to
5537 cl_target_option_restore.
5538 * config/pdp11/pdp11.h (optimize): Remove.
5539 * config/rs6000/rs6000.h (optimize): Remove.
5540 * config/sh/sh.h (optimize): Remove.
5541 * config/xtensa/xtensa.h (optimize): Remove.
5542 * coretypes.h (struct gcc_options): Declare.
5543 * diagnostic.c (diagnostic_initialize): Initialize
5544 context->option_state.
5545 (diagnostic_report_diagnostic): Pass option_state to
5546 option_enabled hook.
5547 * diagnostic.h (diagnostic_context.option_enabled): Add void *
5548 parameter.
5549 (diagnostic_context.option_state): New field.
5550 * final.c (final_start_function, final, final_scan_insn): Rename
5551 optimize parameter to optimize_p.
5552 * flags.h (optimize, optimize_size): Remove.
5553 * function.c (invoke_set_current_function_hook): Pass
5554 &global_options to cl_optimization_restore.
5555 * gcc.c (driver_handle_option): Take gcc_options parameter.
5556 Assert that it is &global_options.
5557 (process_command): Pass &global_options to read_cmdline_option.
5558 * ipa-pure-const.c (suggest_attribute): Pass &global_options to
5559 option_enabled.
5560 * lto-opts.c (lto_reissue_options): Use option_flag_var. Pass
5561 &global_options to set_option.
5562 * opts-common.c (handle_option, handle_generated_option,
5563 read_cmdline_option, set_option): Take explicit gcc_options
5564 parameters. Use option_flag_var.
5565 (option_flag_var): New.
5566 * opts.c (common_handle_option, lang_handle_option,
5567 target_handle_option): Take gcc_options parameter. Assert that it
5568 is &global_options.
5569 (read_cmdline_options): Pass &global_options to read_cmdline_option.
5570 (print_filtered_help): Use option_flag_var. Pass &global_options
5571 to option_enabled.
5572 (common_handle_option): Use option_flag_var.
5573 (option_enabled): Take opts parameter. Use option_flag_var.
5574 (get_option_state): Take gcc_options parameter. Use
5575 option_flag_var. Pass gcc_options parameter to option_enabled.
5576 (enable_warning_as_error): Pass &global_options to
5577 handle_generated_option.
5578 * opts.h (struct cl_option): Change flag_var to flag_var_offset.
5579 (cl_option_handler_func.handler): Take gcc_options parameter.
5580 (option_enabled, get_option_state, set_option, handle_option,
5581 handle_generated_option, read_cmdline_option): Take gcc_options
5582 parameters.
5583 * toplev.c (optimize, optimize_size): Remove.
5584 (print_switch_values): Pass &global_options to option_enabled.
5585 (option_affects_pch_p): Use option_flag_var. Pass &global_options
5586 to get_option_state.
5587 (general_init): Initialize global_dc->option_state.
5588 * tree.c (build_optimization_node): Pass &global_options to
5589 cl_optimization_save.
5590 (build_target_option_node): Pass &global_options to
5591 cl_target_option_save.
5592
5593 2010-09-30 Martin Jambor <mjambor@suse.cz>
5594
5595 * tree-sra.c (type_consists_of_records_p): Do not check for trailing
5596 zero sized bit-fields.
5597
5598 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
5599
5600 * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
5601 Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
5602 (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
5603 (c_parser_objc_class_declaration): Same change.
5604 (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
5605 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
5606 (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
5607 instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
5608 and RID_AT_PUBLIC instead of RID_PUBLIC.
5609 (c_parser_statement_after_labels): Use RID_AT_TRY instead of
5610 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
5611
5612 2010-09-30 Tom G. Christensen <tgc@jupiterrise.com>
5613
5614 * doc/install.texi (Binaries): Update link to HP-UX porting centre.
5615 Add links to current providers of packages for Solaris and IRIX.
5616
5617 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5618
5619 Merge from 'apple/trunk' branch on FSF servers.
5620 * c-parser.c: Applied change originally in c-parse.in.
5621
5622 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
5623
5624 Radar 4281748
5625 * c-decl.c (start_decl): Check for redeclaration of class name.
5626 * c-parse.in (after_type_declarator): Recognize CLASSNAME.
5627
5628 2010-09-29 Steve Ellcey <sje@cup.hp.com>
5629
5630 * config/ia64/ia64.c (ia64_builtin_decl): New.
5631 (TARGET_BUILTIN_DECL): Define.
5632 (ia64_builtins): New.
5633 (ia64_init_builtins): Save decls in ia64_builtins.
5634
5635 2010-09-29 Bernd Schmidt <bernds@codesourcery.com>
5636
5637 PR target/40457
5638 * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
5639 (move2add_use_add3_insn): Likewise.
5640 (reload_cse_move2add): Likewise.
5641 * rtlanal.c (get_full_rtx_cost): New function.
5642 * rtl.h (struct full_rtx_costs): New.
5643 (init_costs_to_max, init_costs_to_zero, costs_lt_p,
5644 costs_add_n_insns): New inline functions.
5645 (get_full_rtx_cost): Declare.
5646
5647 PR c/45054
5648 * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
5649 invariants. Check for reg_equiv_invariant.
5650 (reload): Assert that spilled_pseudos is empty when returning.
5651
5652 2010-09-29 Kai Tietz <kai.tietz@onevision.com>
5653
5654 * config/i386/mingw32.h (TARGET_64BIT): replaced by
5655 TARGET_64BIT_DEFAULT in #if check.
5656
5657 2010-09-29 Jack Howarth <howarth@bromo.med.uc.edu>
5658
5659 * varasm.c (assemble_alias): Add error message for unsupported ifunc.
5660
5661 2010-09-29 Mike Stump <mikestump@comcast.net>
5662
5663 * config/darwin.h (flag_mkernel): Remove.
5664 (flag_apple_kext): Likewise.
5665
5666 2010-09-29 Joseph Myers <joseph@codesourcery.com>
5667 Jack Howarth <howarth@bromo.med.uc.edu>
5668
5669 * config/darwin.opt (undefined): Add.
5670
5671 2010-09-29 Nathan Sidwell <nathan@codesourcery.com>
5672
5673 PR testsuite/45664
5674 * configure.ac: Add --enable-indirect-function option.
5675 * config.gcc: Add default_gnu_indirect_function.
5676 * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
5677 (HAVE_GNU_INDIRECT_FUNCTION): ... this.
5678 * varasm.c (do_assemble_alias): Adjust for macro name change.
5679 * configure: Rebuilt.
5680 * doc/install.texi: Document --enable-indirect-function.
5681
5682 2010-09-29 Joseph Myers <joseph@codesourcery.com>
5683
5684 * doc/options.texi (Variable, Var, Init): Update documentation
5685 without reference to VarExists.
5686 (VarExists): Remove.
5687 * common.opt, config/i386/i386.opt, config/linux.opt,
5688 config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
5689 Don't use VarExists.
5690
5691 2010-09-29 Joseph Myers <joseph@codesourcery.com>
5692
5693 * optc-gen.awk: Generate global_options initializer instead of
5694 individual variables. Add x_ prefix to names of structure members.
5695 * opth-gen.awk: Generate gcc_options structure. Add x_ prefix to
5696 names of structure members.
5697 * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
5698 HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
5699 * doc/tm.texi: Regenerate.
5700 * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
5701 * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
5702 * c-parser.c (disable_extension_diagnostics,
5703 restore_extension_diagnostics): Update names of cpp_options members.
5704 * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
5705 * common.opt (fcompare-debug-second): Don't use Var.
5706 * config/alpha/alpha.h (target_flags): Remove.
5707 * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
5708 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
5709 * config/bfin/bfin.h (target_flags): Remove.
5710 * config/cris/cris.h (target_flags): Remove.
5711 * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
5712 cl_target_option members.
5713 * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
5714 (ix86_function_specific_print, ix86_valid_target_attribute_tree,
5715 ix86_can_inline_p): Update names of cl_target_option members.
5716 * config/i386/i386.h (ix86_isa_flags): Remove.
5717 * config/lm32/lm32.h (target_flags): Remove.
5718 * config/mcore/mcore.h (mcore_stack_increment): Remove.
5719 * config/mcore/mcore.md (addsi3): Remove extern declaration of
5720 flag_omit_frame_pointer.
5721 * config/mep/mep.h (target_flags): Remove.
5722 * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
5723 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
5724 * config/mmix/mmix.h (target_flags): Remove.
5725 * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
5726 flag_expensive_optimizations): Remove.
5727 * config/s390/s390.h (flag_pic): Remove.
5728 * config/score/score-conv.h (target_flags): Remove.
5729 * config/sh/sh.h (sh_fixed_range_str): Remove.
5730 * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
5731 * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
5732 * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5733 * diagnostic.c (diagnostic_initialize): Update names of
5734 diagnostic_context members.
5735 * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
5736 warn_system_headers.
5737 (diagnostic_report_warnings_p): Update for new names.
5738 * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
5739 * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
5740 HARD_FRAME_POINTER_IS_ARG_POINTER.
5741 * flags.h (flag_compare_debug): Declare.
5742 * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
5743 * opts.c (flag_compare_debug): Define.
5744 (common_handle_option): Update names of diagnostic_context
5745 members. Handle -fcompare-debug-second.
5746 (fast_math_flags_struct_set_p): Update names of cl_optimization
5747 members.
5748 * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5749 * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5750 * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5751 * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5752 * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5753 * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
5754 HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
5755 * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
5756 * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
5757
5758 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
5759
5760 * config/picochip/picochip.c (picochip_output_internal_label):
5761 This function can now be called for debug CFI labels, which can come
5762 in the middle of a vliw instruction. Postpone until end of vliw.
5763
5764 2010-09-29 Richard Guenther <rguenther@suse.de>
5765
5766 * tree.h (SCOPE_FILE_SCOPE_P): New macro.
5767 (DECL_FILE_SCOPE_P): Use it.
5768 (TYPE_FILE_SCOPE_P): New macro.
5769
5770 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5771
5772 * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
5773 a CPP_NAME which is a reserved word, clearly separate cases for
5774 OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
5775
5776 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5777
5778 * c-parser.c (c_lex_one_token): In Objective-C, do not replace
5779 token->value with the canonical spelling. Do exactly like C and
5780 C++ and leave it as it is.
5781
5782 2010-09-28 Richard Henderson <rth@redhat.com>
5783
5784 * config/alpha/alpha.c (alpha_builtins): New.
5785 (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
5786 (alpha_builtin_function): New.
5787 (alpha_add_builtins, alpha_init_builtins): Use it.
5788
5789 2010-09-28 Nicola Pero <nicola.pero@meta-innovation.com>
5790
5791 * doc/standards.texi (Standards): Expanded the section on
5792 Objective-C and Objective-C++.
5793
5794 2010-09-28 DJ Delorie <dj@redhat.com>
5795
5796 PR target/45800
5797 * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
5798 volatile MEMs.
5799
5800 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5801
5802 * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
5803 attributes on methods.
5804 (c_parser_objc_method_definition): Handle attributes.
5805 (c_parser_objc_methodproto): Likewise.
5806 (c_parser_objc_maybe_method_attributes): New.
5807 (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
5808 missing definition, similar to that in ObjC++.
5809
5810 2010-09-28 Richard Henderson <rth@redhat.com>
5811
5812 * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
5813 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
5814 (CONFIG_SJLJ_EXCEPTIONS): Remove.
5815 (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
5816 (STACK_CHECK_PROTECT): Likewise.
5817 * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
5818 (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
5819 (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
5820 (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
5821 (dwarf2out_assembly_start): Likewise.
5822 * except.c (init_eh): Use targetm.except_unwind_info.
5823 (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
5824 (output_one_function_exception_table): Likewise.
5825 * final.c: Unconditionally include dwarf2out.h.
5826 (final_start_function): Unconditionally call dwarf2out routines.
5827 (final_end_function, final_scan_insn): Likewise.
5828 * function.c (expand_function_end): Use targetm.except_unwind_info.
5829 * opts.c (decode_options): Use targetm.except_unwind_info.
5830 * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
5831 * target.def (debug_unwind_info, except_unwind_info): New.
5832 * target.h (enum unwind_info_type): New.
5833 * targhooks.c (default_debug_unwind_info): New.
5834 (default_except_unwind_info): New.
5835 (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
5836 * targhooks.h: Declare them.
5837 * tree-tailcall.c: Include "target.h"
5838 (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
5839 * Makefile.in (tree-tailcall.o): Update.
5840 * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
5841 (lhd_gcc_personality): Likewise.
5842
5843 * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
5844 (TARGET_EXCEPT_UNWIND_INFO): New.
5845 (DWARF2_UNWIND_INFO): Update.
5846 (TARGET_DEBUG_UNWIND_INFO): New.
5847 * doc/tm.texi: Rebuild.
5848
5849 * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
5850 targetm.except_unwind_info.
5851
5852 * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
5853 (arm_except_unwind_info): New.
5854 (arm_compute_func_type): Use it.
5855 (arm_expand_prologue, thumb_pushpop): Likewise.
5856 (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
5857 (arm_unwind_emit, arm_output_fn_unwind): Likewise.
5858 * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
5859 * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
5860 (DWARF2_UNWIND_INFO): Remove.
5861 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
5862 (ARM_EABI_UNWIND_TABLES): Remove.
5863
5864 * config/ia64/ia64.c (ia64_debug_unwind_info): New.
5865 (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
5866 (ia64_except_unwind_info): New.
5867 (ia64_output_function_prologue): Use it.
5868 (ia64_add_bundle_selector_before): Likewise.
5869 (ia64_reorg, ia64_asm_unwind_emit): Likewise.
5870 * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
5871 (TARGET_UNWIND_INFO): Remove.
5872
5873 * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
5874
5875 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5876
5877 * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
5878 (c_parser_objc_protocol_definition): Likewise.
5879 (c_parser_external_declaration): Provide dummy attribute arguments.
5880 (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
5881 (c_parser_objc_class_definition): Handle attributes.
5882 (c_parser_objc_protocol_definition): Likewise.
5883
5884 2010-09-28 Tobias Burnus <burnus@net-b.de>
5885
5886 PR fortran/40569
5887 PR fortran/40568
5888 * toplev.h (save_decoded_options, save_decoded_options_count):
5889 New global variables.
5890 * toplev.c (save_decoded_options, save_decoded_options_count):
5891 Export variables.
5892
5893 2010-09-28 Ian Lance Taylor <iant@google.com>
5894
5895 * config/i386/i386.c (ix86_supports_split_stack): Test
5896 HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
5897
5898 2010-09-28 Ian Lance Taylor <iant@google.com>
5899
5900 PR target/45815
5901 * opts.c (decode_options): Don't test whether the target supports
5902 split stack if flag_split_stack == 0.
5903
5904 2010-09-28 Jan Hubicka <jh@suse.cz>
5905
5906 * builtin-attrs.def (ATTR_LEAF): New attribute.
5907 (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
5908 ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
5909 ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
5910 ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
5911 ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
5912 ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
5913 ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
5914 * sync-builtins.def: Annotate all builtins by leaf.
5915 * omp-builtins.def: Annotate all builtins by leaf.
5916 * builtins.def: Annotate relevant builtins with leaf attribute.
5917 (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
5918 ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
5919 leaf.
5920
5921 2010-09-28 Jan Hubicka <jh@suse.cz>
5922
5923 * tree-ssa-ccp.c (fold_ctor_reference): New function.
5924 (fold_const_aggregate_ref): Use it.
5925 * fold-const.c (canonicalize_constructor_val): Check that we don't fold
5926 into external static.
5927
5928 2010-09-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5929
5930 PR target/44452
5931 * config/i386/i386.opt (mvect8-ret-in-mem): Define.
5932 * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
5933 (ix86_solaris_return_in_memory): Remove.
5934 * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
5935 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
5936 (TARGET_SUBTARGET_DEFAULT): Redefine.
5937 * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
5938 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
5939 (TARGET_SUBTARGET_DEFAULT): Redefine.
5940 * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
5941 -mvect8-ret-in-mem.
5942 (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
5943
5944 2010-09-29 Alan Modra <amodra@gmail.com>
5945
5946 PR target/45807
5947 * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
5948 * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
5949 * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
5950 Delete.
5951 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
5952 (rs6000_emit_prologue): Don't just create frame save info for r2,
5953 actually save r2.
5954
5955 2010-09-28 Richard Henderson <rth@redhat.com>
5956
5957 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
5958 when 8 bytes are requested.
5959
5960 2010-09-28 Tristan Gingold <gingold@adacore.com>
5961
5962 * config/avr/avr.c (expand_prologue): Set
5963 current_function_static_stack_size.
5964
5965 2010-09-28 Tristan Gingold <gingold@adacore.com>
5966
5967 * config/alpha/alpha.md: Change the initial condition of the
5968 probing loop.
5969
5970 2010-09-28 Uros Bizjak <ubizjak@gmail.com>
5971
5972 * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
5973 Split from *avx_<maxmin:code><mode>3.
5974 (*avx_<smaxmin:code><mode>3): Ditto.
5975 * config/i386/i386.md (maxmin): Remove code iterator.
5976
5977 2010-09-27 Ian Lance Taylor <iant@google.com>
5978
5979 * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
5980 requires assembler support for CFI directives.
5981
5982 2010-09-27 Richard Henderson <rth@redhat.com>
5983
5984 * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
5985
5986 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
5987
5988 * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
5989 that AFTER is not in the range FROM..TO, inclusive.
5990
5991 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
5992 Bernd Schmidt <bernds@codesourcery.com>
5993
5994 PR rtl-optimization/45792
5995 * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
5996 If not all insns are to be merged, for each edge, stash the
5997 next candidate after the to-be-merged insns before doing the
5998 merge, and use them for the retry at the new insertion point.
5999 Handle CC0 targets when retrying.
6000
6001 2010-09-27 Ian Lance Taylor <iant@google.com>
6002
6003 * common.opt (fsplit-stack): New option.
6004 * opts.c (decode_options): Set flag_split_stack to final value.
6005 * target.def (supports_split_stack): New hook.
6006 * gcc.c (STACK_SPLIT_SPEC): Define.
6007 (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
6008 * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
6009 (Code Gen Options): Document -fsplit-stack.
6010 * doc/extend.texi (Function Attributes): Mention no_split_stack.
6011 (Function Attributes): Document no_split_stack.
6012 * doc/tm.texi.in (Stack Smashing Protection): Add @hook
6013 TARGET_SUPPORTS_SPLIT_STACK.
6014 * doc/tm.texi: Rebuild.
6015 * function.c (thread_prologue_and_epilogue_insns): If
6016 flag_split_stack, add split stack prologue.
6017 * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
6018 * varasm.c (saw_no_split_stack): New static variable.
6019 (assemble_start_function): Set saw_no_split_stack if the function
6020 has the no_split_stack attribute.
6021 (file_end_indicate_split_stack): New function.
6022 * output.h (file_end_indicate_split_stack): Declare.
6023 * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
6024 and function.
6025 * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
6026 routines.
6027 * config/i386/i386.c (ix86_option_override_internal): Don't set
6028 expand_builtin_va_start to NULL if -fsplit-stack.
6029 (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
6030 -fsplit-stack.
6031 (ix86_va_start): If -fsplit-stack, get overflow pointer from
6032 scratch register set by prologue.
6033 (ix86_code_end): If -fsplit-stack, call
6034 file_end_indicate_split_stack.
6035 (ix86_supports_split_stack): New static function.
6036 (SPLIT_STACK_AVAILABLE): Define.
6037 (split_stack_prologue_scratch_regno): New static function.
6038 (split_stack_fn): New static variable.
6039 (ix86_expand_split_stack_prologue): New function.
6040 (ix86_live_on_entry): New static function.
6041 (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
6042 (output_pic_addr_const): Likewise.
6043 (i386_asm_output_addr_const_extra): Likewise.
6044 (ix86_expand_call): Change return type to rtx. Return the new
6045 call instruction.
6046 (TARGET_SUPPORTS_SPLIT_STACK): Define.
6047 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
6048 * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
6049 (split_stack_prologue, split_stack_return): New insns.
6050 (split_stack_space_check): New insn.
6051 * config/i386/i386.h (struct machine_function): Add
6052 split_stack_varargs_pointer field.
6053 * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
6054 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
6055 * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
6056 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
6057 * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
6058 Declare.
6059 (ix86_expand_call): Update declaration.
6060
6061 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
6062
6063 * doc/objc.texi (Type encoding): Added the new 'long double' (D)
6064 code. Added byref, which was missing in the list of codes.
6065 Explain that enumeration values are encoded as the integer type
6066 that the compiler uses to store them. Explain and make examples
6067 of how 'const' interacts with pointers, and the complication of
6068 the encoding of 'const char *'.
6069 (Legacy type encoding): New subsection, explaining that GCC emits
6070 incorrect type encodings for the NeXT runtime for compatibility
6071 reasons.
6072 (@@encode): New subsection, explaining @encode and particularly
6073 that protocol qualifiers are not recognized inside an @encode()
6074 expression.
6075 (Method signatures): New subsection, explaining how method
6076 signatures are encoded.
6077
6078 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
6079
6080 Merge from 'apple/trunk' branch on FSF servers. Removed small
6081 change in build_conditional_expr that had been added when fixing
6082 PR objc/27377 and which did the same check in a less complete way.
6083
6084 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
6085
6086 Radar 4229905
6087 * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
6088 looking for objective-c common pointer types.
6089
6090 2005-06-22 Ziemowit Laski <zlaski@apple.com>
6091
6092 Radar 4154928
6093 * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
6094 use their ObjC common type.
6095
6096 2010-09-27 Richard Guenther <rguenther@suse.de>
6097
6098 * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
6099
6100 2010-09-27 Jie Zhang <jie@codesourcery.com>
6101
6102 * print-tree.c (print_node): Print in-constant-pool.
6103
6104 2010-09-27 Uros Bizjak <ubizjak@gmail.com>
6105
6106 * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
6107 (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
6108 (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
6109 (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
6110
6111 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
6112
6113 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
6114 from pro_epilogue_adjust_stack_<mode>_{1,2}.
6115 (pro_epilogue_adjust_stack_<mode>_add): Rename from
6116 pro_epilogue_adjust_stack_<mode>_3.
6117 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
6118 renamed pro_epilogue_adjust_stack_{si,di}_add.
6119 (ix86_expand_prologue): Use indirect functions. Update for renamed
6120 pro_epilogue_adjust_stack_{si,di}_sub.
6121
6122 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
6123
6124 * config/i386/i386.md (movmsk_df): New insn.
6125 (signbitdf): Split out of signbit<mode>2. Generate movmsk_df
6126 sequence for TARGET_SSE_MATH.
6127
6128 2010-09-26 Richard Sandiford <rdsandiford@googlemail.com>
6129
6130 * config/mips/mips.c (mips_builtin_decls): Declare.
6131 (mips_init_builtins): Store function declarations in
6132 mips_builtin_decls.
6133 (mips_builtin_decl): New function.
6134 (TARGET_BUILTIN_DECL): Define.
6135
6136 2010-09-25 Kai Tietz <kai.tietz@onevision.com>
6137 Richard Henderson <rth@redhat.com>
6138
6139 * config/i386/cygwin.asm: Include auto-host.h.
6140 (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
6141 cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
6142 (__chkstk, __alloca): Annotate for dwarf2 unwind info. Drop
6143 alignment code from the 64-bit path. Use gas local labels.
6144 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
6145 from _di_2. Remove the useless constant integer argument.
6146 (pro_epilogue_adjust_stack_<mode>_3): New.
6147 (allocate_stack_worker_probe_<mode>): Macroize from
6148 allocate_stack_worker_{32,64}. Use __chkstk_ms. Update all users.
6149 * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
6150 use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
6151 (__chkstk_ms): New function.
6152 * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
6153 * config/i386/t-interix: Likewise.
6154 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
6155 (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
6156 (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
6157 * configure, config.in: Rebuild.
6158
6159 2010-09-25 Eric Botcazou <ebotcazou@adacore.com>
6160
6161 * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
6162 statements because of the return slot optimization.
6163
6164 2010-09-25 Anatoly Sokolov <aesok@post.ru>
6165
6166 * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
6167 * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
6168 * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
6169 (class_likely_spilled_p): Rename to...
6170 (avr_class_likely_spilled_p): ...this. Make static. Change argument
6171 type to reg_class_t.
6172
6173 2010-09-24 Jan Hubicka <jh@suse.cz>
6174
6175 * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
6176 (lto_symtab_resolve_symbols): Set it.
6177 (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
6178 store resolution field in cgraph/varpool.
6179 * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
6180 (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
6181 (cgraph_dump_node): Drop used_from_object_file.
6182 (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
6183 (cgraph_function_body_availability): Use decl_replaceable_p.
6184 (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
6185 (cgraph_can_remove_if_no_direct_calls_and_refs): Use
6186 cgraph_used_from_object_file_p.
6187 (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
6188 cgraph_used_from_object_file_p.
6189 (resolution_used_from_other_file_p): New functoin.
6190 (cgraph_used_from_object_file_p): New predicate.
6191 * cgraph.h: Include plugin-api.h
6192 (struct cgraph_local_info): Remove used_from_object_file.
6193 (struct cgraph_node): Add resolution field.
6194 (struct varpool_node): Likewise; remove used_from_object_file;
6195 reove const_value_known.
6196 (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
6197 cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
6198 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
6199 varpool_used_from_object_file_p): Declare.
6200 (varpool_get_node, varpool_extra_name_alias): Update prototype.
6201 * tree.h (DECL_REPLACEABLE_P): Remove.
6202 (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
6203 * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
6204 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
6205 input_overwrite_node, input_node, input_varpool_node): Stream
6206 resolution.
6207 * expr.c (expand_expr_real_1): Use const_value_known_p
6208 * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
6209 const_value_known.
6210 (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
6211 (function_and_variable_visibility): Set resolution for local vars
6212 and functions; use varpool_used_from_object_file_p.
6213 * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
6214 static functions.
6215 (default_binds_local_p_1): Use resolutoin info.
6216 (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
6217 * varpool.c (varpool_get_node): Constify.
6218 (const_value_known_p): Do not use vnode->const_value_known;
6219 use decl_replaceable_p.
6220 (varpool_finalize_decl): Do not set const_value_known.
6221 (cgraph_variable_initializer_availability): Use decl_replaceable_p
6222 (varpool_extra_name_alias): Return new node.
6223 (varpool_used_from_object_file_p): New function.
6224
6225 2010-09-24 Richard Henderson <rth@redhat.com>
6226
6227 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
6228 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
6229 (do_spill): Use REG_CFA_OFFSET.
6230 (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
6231 as appropriate.
6232 (ia64_expand_epilogue): Likewise.
6233 (process_set): Split into ...
6234 (process_cfa_adjust_cfa): this,
6235 (process_cfa_register): this,
6236 (process_cfa_offset): and this new function.
6237 (ia64_asm_unwind_emit): Use them. Expect REG_CFA_* notes
6238 instead of REG_FRAME_RELATED_EXPR.
6239
6240 2010-09-24 Olivier Hainque <hainque@adacore.com>
6241
6242 * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
6243
6244 2010-09-24 Jan Hubicka <jh@suse.cz>
6245
6246 * doc/extend.texi: (attribute leaf): Document.
6247 * tree.c (local_define_builtin): Handle ECF_LEAF.
6248 (build_common_builtin_nodes): Set ECF_LEAF where needed.
6249 * tree.h (ECF_LEAF): New.
6250 * ipa-reference.c (propagate_bits): For leaf calls propagate ever
6251 overwrittable and unavailable functions.
6252 (ipa_init): Put all_module_statics into optimization_summary_obstack.
6253 (copy_global_bitmap): Do not copy all_module_statics.
6254 (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
6255 (propagate): Handle overwritable and unavailable leaf functions;
6256 initialize global info for overwritable and unavailable leaf functions;
6257 do not free all module statics.
6258 (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
6259 local statics.
6260 * calls.c (flags_from_decl_or_type): Handle leaf.
6261 * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
6262 abnormal gotos.
6263
6264 2010-09-24 Basile Starynkevitch <basile@starynkevitch.net>
6265
6266 * gengtype.c: Reindented.
6267 * gengtype.h: Reindented.
6268 * gengtype-parse.c: Reindented.
6269
6270 2010-09-24 Jan Hubicka <jh@suse.cz>
6271
6272 PR tree-optimization/45738
6273 PR tree-optimization/45741
6274 * expr.c (string_constant): Allow CONST_DECL too;
6275 check that DECL_INITIAL is set.
6276 * varpool.c (const_value_known_p): Only look into VAR_DECL
6277 and CONST_DECL.
6278
6279 2010-09-24 Joseph Myers <joseph@codesourcery.com>
6280
6281 * common.opt (undef): New.
6282
6283 2010-09-24 Jakub Jelinek <jakub@redhat.com>
6284
6285 PR middle-end/45234
6286 * rtl.h (enum global_rtl_index): Add
6287 GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
6288 (LAST_VIRTUAL_POINTER_REGISTER): Define.
6289 (virtual_preferred_stack_boundary_rtx,
6290 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
6291 (LAST_VIRTUAL_REGISTER): Increase by one.
6292 (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
6293 instead of LAST_VIRTUAL_REGISTER.
6294 * function.c (instantiate_new_reg): Handle
6295 virtual_preferred_stack_boundary_rtx.
6296 * emit-rtl.c (init_virtual_regs): Handle
6297 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
6298 (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
6299 * explow.c (round_push): If crtl->preferred_stack_boundary
6300 is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
6301 virtual_preferred_stack_boundary_rtx alignment instead of
6302 crtl->preferred_stack_boundary alignment.
6303 (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
6304 macros. Never decrease crtl->preferred_stack_boundary,
6305 use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
6306 instead of PREFERRED_STACK_BOUNDARY. Don't modify
6307 stack_pointer_delta in dynamic allocation, even when size
6308 is constant.
6309 (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
6310 macro.
6311 * print-rtl.c (print_rtx): Handle
6312 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
6313 * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
6314 LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
6315 * config/frv/frv.c (frv_emit_movsi): Likewise.
6316 * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
6317 * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
6318 Likewise.
6319
6320 Revert:
6321 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
6322
6323 PR middle-end/45234
6324 * calls.c (expand_call): Make sure that all variable sized
6325 adjustments are multiple of preferred stack boundary after
6326 stack alignment.
6327
6328 2010-09-24 Iain Sandoe <iains@gcc.gnu.org>
6329 Dominique Dhumieres <dominiq@lps.ens.fr>
6330
6331 PR bootstrap/45751
6332 * config/darwin-driver.c (darwin_default_min_version):
6333 Adjust size passed to memcpy in two places.
6334
6335 2010-09-24 Richard Guenther <rguenther@suse.de>
6336
6337 * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
6338 Make sure to not call set_type_context with error_mark_node.
6339 * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
6340
6341 2010-09-24 Richard Guenther <rguenther@suse.de>
6342
6343 * Makefile.in (OBJS-onestep): Remove.
6344 (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
6345 (libbackend.a): Remove onestep support.
6346 (libbackend.o): Remove.
6347 * configure.ac (--enable-intermodule): Remove.
6348 * configure: Regenerate.
6349
6350 2010-09-24 Bernd Schmidt <bernds@codesourcery.com>
6351
6352 * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
6353 reaching the end of a block if it occurs at a DEBUG_INSN.
6354
6355 2010-09-09 Tristan Gingold <gingold@adacore.com>
6356
6357 PR target/44242
6358 * config/vms/vms-crt0-64.c: Removed.
6359 * config/vms/vms-crt0.c: Removed.
6360 * config/vms/vms-psxcrt0-64.c: Removed.
6361 * config/vms/vms-psxcrt0.c: Removed.
6362 * config/vms/vms-ucrt0.c: New file.
6363 * config/vms/t-vms64: Removed.
6364 * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it. Remove DECC.
6365 Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
6366 * config.gcc (alpha-dec-vms): Use t-vms.
6367
6368 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
6369
6370 * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
6371 underfull hbox in DVI output.
6372 (-fobjc-class-cxx-cdtors): Same change.
6373 (-fobjc-exceptions): Tidied up documentation. Explain what the
6374 option does, but moved the (lenghty) description of the exception
6375 syntax into objc.texi.
6376 (-fobjc-gc): Explain that the option is not useful with the GNU
6377 runtime.
6378 (-fzero-link): Explain that the GNU runtime always works in
6379 "zero-link" mode.
6380 * doc/objc.texi: All sections: simplified @node declarations
6381 removing specification of next, previous, up node.
6382 (Objective-C): Updated introduction.
6383 (Garbage Collection): Updated. The bohem-gc library is now
6384 included in gcc itself. Mention that this section only applies to
6385 the GNU Objective-C runtime.
6386 (compatibility_alias): Small tidy up.
6387 (Exceptions): New section mostly containing text previously in the
6388 description of the -fobjc-exception command-line option.
6389 (Synchronization): Same.
6390
6391 2010-09-24 Uros Bizjak <ubizjak@gmail.com>
6392
6393 * config/i386/i386.md (ix86_code_end): Move the initialization of
6394 xops array near the consumer. Use AX_REG and SP_REG instead of
6395 numerical constants.
6396
6397 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
6398
6399 * c-typeck.c (convert_arguments): Use warning 'too many arguments to
6400 method [methodname]' for an Objective-C method instead of the less
6401 satisfactory 'too many arguments to function' (with no method name).
6402
6403 2010-09-23 Eric Botcazou <ebotcazou@adacore.com>
6404
6405 * tree-flow.h (execute_update_addresses_taken): Remove parameter.
6406 * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
6407 (execute_update_addresses_taken): Remove parameter. Execute the
6408 optimization unconditionally.
6409 * passes.c (execute_function_todo): Call execute_update_addresses_taken
6410 unconditionally if TODO_rebuild_alias is set, else only when optimizing
6411 if TODO_update_address_taken is set.
6412
6413 2010-09-23 Anatoly Sokolov <aesok@post.ru>
6414
6415 * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6416 * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
6417 * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6418 (arm_output_addr_const_extra): Make static.
6419
6420 2010-09-23 Uros Bizjak <ubizjak@gmail.com>
6421
6422 * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
6423 define as unspec_volatile.
6424 ("nops"): Define as unspec_volatile. Use fputs to write to
6425 asm_out_file directly. Output NOPs on separate lines using while loop.
6426 * config/i386/i386.c (ix86_code_end): Use fputs to write to
6427 asm_out_file directly. Output NOPs on separate lines using while loop.
6428
6429 2010-09-23 Richard Guenther <rguenther@suse.de>
6430
6431 PR tree-optimization/45565
6432 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
6433 Make sure to adjust the fndecl before replacing the stmt.
6434
6435 2010-09-23 Richard Guenther <rguenther@suse.de>
6436
6437 PR middle-end/45750
6438 * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
6439 gimplifying MEM_REF.
6440
6441 2010-09-23 Alan Modra <amodra@gmail.com>
6442
6443 * config/rs6000/rs6000.c (toc_relative_ok): Delete.
6444 (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
6445
6446 2010-09-23 Bernd Schmidt <bernds@codesourcery.com>
6447
6448 PR rtl-optimization/44374
6449 * basic-block.h (enum bb_flags): Add BB_MODIFIED.
6450 * df-core.c (df_set_bb_dirty): Set it.
6451 * ifcvt.c (find_memory): Remove function.
6452 (dead_or_predicable): Use can_move_insns_across.
6453 * df.h (can_move_insns_across): Declare function.
6454 * cfgcleanup.c (block_was_dirty): New static variable.
6455 (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
6456 than df_get_bb_dirty.
6457 (try_head_merge_bb): New static function.
6458 (try_optimize_cfg): Call it. Call df_analyze if block_was_dirty
6459 is set.
6460 * df-problems.c: Include "target.h"
6461 (df_simulate_find_uses): New static function.
6462 (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
6463 (find_memory, find_memory_store): New static functions.
6464 (can_move_insns_across): New function.
6465 * Makefile.in (df-problems.o): Update dependencies.
6466
6467 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
6468
6469 PR java/44095
6470 * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
6471 is specified and the suffix of the file isn't ".c".
6472 * config/sparc/linux64.h (ASM_SPEC): Likewise.
6473
6474 2010-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6475
6476 * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
6477 * doc/cppopts.texi: Fix markup of index entry.
6478 * doc/extend.texi (Constructing Calls): Fix markup of
6479 __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
6480 (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
6481 (Vague Linkage, C++ Attributes): Fix markup of index entries and
6482 keywords.
6483 * doc/invoke.texi (Option Summary): Fix spacing. Rewrap to
6484 avoid long lines.
6485 (C Dialect Options, C++ Dialect Options, Warning Options)
6486 (Debugging Options, Spec Files, Darwin Options)
6487 (i386 and x86-64 Options, MIPS Options)
6488 (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
6489 index entries, avoid abbreviations, allow URLs to wrap, avoid
6490 long lines, avoid overlong pages from long @itemx lists.
6491 * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
6492 * doc/standards.texi (Standards): Likewise.
6493 * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
6494
6495 2010-09-22 Joseph Myers <joseph@codesourcery.com>
6496
6497 * opts-common.c (prune_options): Make static. Work with decoded
6498 options.
6499 (decode_cmdline_options_to_array): Call prune_options. Don't
6500 resize option array here.
6501 * opts.h (prune_options): Remove prototype.
6502 * gcc.c (process_command): Take decoded options; don't call
6503 decode_cmdline_options_to_array here. Use decoded options for argv[0].
6504 (main): Call decode_cmdline_options_to_array here instead of
6505 prune_options. Update call to process_command.
6506 * config/darwin-driver.c: Include opts.h.
6507 (darwin_default_min_version): Work with decoded options. Don't
6508 handle -b or -V here.
6509 * config/darwin.h (darwin_default_min_version): Update prototype.
6510 (GCC_DRIVER_HOST_INITIALIZATION): Update call to
6511 darwin_default_min_version.
6512 * config/i386/cygwin.h (mingw_scan): Update prototype.
6513 (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
6514 * config/i386/cygwin1.c: Include opts.h.
6515 (mingw_scan): Work with decoded options.
6516 * config/i386/t-cygwin (cygwin1.o): Update dependencies.
6517 * config/t-darwin (darwin-driver.o): Update dependencies.
6518
6519 2010-09-22 Joseph Myers <joseph@codesourcery.com>
6520
6521 * common.opt (-assemble, -compile, -coverage, -debug, -dump,
6522 -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
6523 -for-assembler, -for-assembler=, -for-linker, -for-linker=,
6524 -force-link, -force-link=, -language, -language=,
6525 -library-directory, -library-directory=, -no-canonical-prefixes,
6526 -no-standard-libraries, -no-warnings, -optimize, -output,
6527 -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
6528 -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
6529 -print-file-name=, -print-libgcc-file-name,
6530 -print-multi-directory, -print-multi-lib,
6531 -print-multi-os-directory, -print-prog-name, -print-prog-name=,
6532 -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
6533 -profile, -save-temps, -shared, -specs, -specs=, -static,
6534 -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
6535 symbolic): New.
6536 (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
6537 * gcc.c (A Short Introduction to Adding a Command-Line Option):
6538 Remove comment.
6539 (cc1_options): Correct specs for passing down --help,
6540 --target-help and --help=*. Add spec for passing down --version.
6541 (struct option_map, option_map, target_option_translations,
6542 translate_options): Remove.
6543 (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
6544 and OPT__target_help instead of OPT_fversion, OPT_fhelp,
6545 OPT_fhelp_ and OPT_ftarget_help.
6546 (process_command): Don't call translate_options. Call
6547 decode_cmdline_options_to_array before checking for
6548 -no-canonical-prefixes using decoded options.
6549 * opts-common.c (tm.h): Update comment on #include.
6550 (find_opt): Allow abbreviations of long options.
6551 (struct option_map, option_map): New.
6552 (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
6553 and -mno handling.
6554 (target_option_translations): New.
6555 (decode_cmdline_options_to_array): Handle
6556 TARGET_OPTION_TRANSLATE_TABLE in driver.
6557 * opts.c (common_handle_option): Don't handle OPT_fhelp,
6558 OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
6559
6560 2010-09-22 Richard Guenther <rguenther@suse.de>
6561
6562 * tree-inline.c (optimize_inline_calls): Schedule cleanups
6563 only if we inlined something. Block compaction and conditional
6564 folding are done by cfg cleanup. Schedule update-address-taken.
6565 (tree_function_versioning): Remove redundant call to number_blocks.
6566 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
6567 folding is done by cfg cleanup.
6568 * passes.c (init_optimization_passes): Remove update-address-taken
6569 pass after IPA inlining.
6570
6571 2010-09-22 Chung-Lin Tang <cltang@codesourcery.com>
6572
6573 * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
6574 to update conditions. Fix reg_mode[] check.
6575
6576 2010-09-22 Hariharan Sandanagobalane <hariharan@picochip.com>
6577
6578 * config/picochip/picochip.md (movhicc): Use expand to check whether
6579 movhicc is available and split it after reload.
6580
6581 2010-09-22 Richard Guenther <rguenther@suse.de>
6582
6583 * tree-ssanames.c (release_dead_ssa_names): Do not remove
6584 callee edges here.
6585 * passes.c (init_optimization_passes): Remove early CFG cleanup.
6586 * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
6587 (pass_cleanup_cfg): Likewise.
6588 (execute_fixup_cfg): Cleanup.
6589 * tree-pass.h (pass_cleanup_cfg): Remove.
6590
6591 2010-09-22 Martin Jambor <mjambor@suse.cz>
6592
6593 * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
6594 builtins if it is true.
6595 (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
6596 parameter.
6597
6598 2010-09-22 Martin Jambor <mjambor@suse.cz>
6599
6600 * tree-sra.c (struct access): New field grp_no_warning.
6601 (create_access_replacement): Set TREE_NO_WARNING according to
6602 grp_no_warning.
6603 (create_artificial_child_access): Use build_ref_for_model and set
6604 grp_no_warning if build_user_friendly_ref_for_offset fails.
6605 (propagate_subaccesses_across_link): Likewise.
6606
6607 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
6608
6609 PR target/35664
6610 * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
6611 ('f'): Likewise.
6612
6613 2010-09-22 Tristan Gingold <gingold@adacore.com>
6614
6615 * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
6616
6617 2010-09-22 Uros Bizjak <ubizjak@gmail.com>
6618
6619 * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
6620 * config/i386/i386.c (decide_alg): Update for rename.
6621
6622 2010-09-22 Jakub Jelinek <jakub@redhat.com>
6623
6624 PR rtl-optimization/45739
6625 * simplify-rtx.c (simplify_binary_operation_1): Optimize even
6626 vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
6627
6628 2010-09-21 Anatoly Sokolov <aesok@post.ru>
6629
6630 * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
6631 * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
6632 Remove.
6633 * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
6634 (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6635
6636 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6637
6638 PR objc/23710
6639 * c-parser.c (c_parser_objc_method_definition): Check the return
6640 value of objc_start_method_definition and if false is returned,
6641 parse the method definition but emit no code.
6642
6643 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6644
6645 PR objc/25965
6646 * c-decl.c (detect_field_duplicates): If compiling Objective-C,
6647 call objc_get_interface_ivars ().
6648
6649 2010-09-21 Kai Tietz <kai.tietz@onevision.com>
6650
6651 PR target/45694
6652 * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
6653 static chain-register is used for 64-bit.
6654
6655 2010-09-21 Richard Guenther <rguenther@suse.de>
6656
6657 * dwarf2out.c (is_cu_die): New function.
6658 (add_pubtype): Use it.
6659 (gen_subprogram_die): Likewise.
6660 (gen_struct_or_union_type_die): Likewise.
6661 (dwarf2out_finish): Likewise.
6662 (comp_unit_die): Rename to ...
6663 (single_comp_unit_die): ... this.
6664 (comp_unit_die): New function lazily constructing and
6665 returning single_comp_unit_die.
6666 (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
6667 base_type_die, subrange_type_die, modified_type_die,
6668 lower_bound_default, add_bound_info, add_prototyped_attribute,
6669 dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
6670 dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
6671 force_decl_die, gen_namespace_die, dwarf2out_decl,
6672 dwarf2out_start_source_file, dwarf2out_end_source_file,
6673 prune_unused_types, dwarf2out_finish): Use it.
6674 (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
6675 the global list of translation-unit decls.
6676 (dwarf2out_init): Do not create single_comp_unit_die here.
6677 (force_decl_die): Handle TRANSLATION_UNIT_DECL.
6678
6679 2010-09-21 Richard Guenther <rguenther@suse.de>
6680
6681 * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
6682 for bool for C++.
6683
6684 2010-09-21 Bernd Schmidt <bernds@codesourcery.com>
6685
6686 * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
6687 (qhs_extenddi_cstr): Likewise.
6688 * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
6689 them for the source operand.
6690
6691 2010-09-21 Uros Bizjak <ubizjak@gmail.com>
6692
6693 * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
6694 to half_width. Use GET_MODE_BITSIZE to calculate mode size.
6695 (ix86_split_ashr): Ditto.
6696 (ix86_split_lshr): Ditto.
6697
6698 2010-09-21 Richard Guenther <rguenther@suse.de>
6699
6700 PR tree-optimization/45580
6701 * tree-ssa-propagate.c (substitute_and_fold): Always replace
6702 regular uses.
6703 * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
6704 virtuals fold the call into a regular indirect one.
6705
6706 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
6707
6708 PR rtl-optimization/42775
6709 * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
6710 scheduling is enabled.
6711
6712 2010-09-20 Jakub Jelinek <jakub@redhat.com>
6713
6714 PR rtl-optimization/45728
6715 * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
6716 gen_lowpart_common first and if that fails, force_reg first
6717 before calling gen_lowpart.
6718
6719 PR middle-end/45678
6720 * cfgexpand.c (expand_one_stack_var_at): Use
6721 crtl->max_used_stack_slot_alignment as max_align, instead
6722 of maximum of that and PREFERRED_STACK_BOUNDARY.
6723 Don't call update_stack_alignment.
6724
6725 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
6726
6727 * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
6728 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
6729 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
6730 * system.h (LANG_HOOKS_HASH_TYPES): Poison.
6731 * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
6732 (build_nonstandard_integer_type): Likewise.
6733 (build_range_type_1): New function, built from...
6734 (build_range_type): ...this. Call build_range_type_1.
6735 (build_nonshared_range_type): New function.
6736 (build_array_type_1): New function, built from...
6737 (build_array_type: ...this. Call build_array_type_1.
6738 (build_nonshared_array_type): New function.
6739 * tree.h (build_nonshared_range_type): Declare.
6740 (build_nonshared_array_type): Likewise.
6741
6742 2010-09-20 Anatoly Sokolov <aesok@post.ru>
6743
6744 * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
6745 * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
6746 (arm_class_likely_spilled_p): New function.
6747
6748 2010-09-20 Uros Bizjak <ubizjak@gmail.com>
6749
6750 * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
6751 indirect functions.
6752 (ix86_split_ashl): Ditto.
6753 (ix86_split_ashr): Ditto.
6754 (ix86_split_lshr): Ditto.
6755 (ix86_adjust_counter): Ditto.
6756
6757 2010-09-20 Nicola Pero <nicola.pero@meta-innovation.com>
6758
6759 * c-family/c-common.h (constant_string_class): Documented with
6760 comment identical to the one already in c-common.c.
6761
6762 2010-09-20 Jakub Jelinek <jakub@redhat.com>
6763
6764 * dwarf2out.c (any_cfis_emitted): New static variable.
6765 (add_fde_cfi): Set it.
6766 (dwarf2out_frame_debug): Clear it before processing,
6767 if it is set afterwards, flush any queued reg saves.
6768
6769 PR debug/45124
6770 * dwarf2out.c (add_accessibility_attribute): Assume
6771 DW_ACCESS_private as the default for dwarf_version > 2
6772 and DW_TAG_class_type parent.
6773 (gen_inheritance_die): Assume DW_ACCESS_public as the default
6774 for dwarf_version > 2 and parent other than DW_TAG_class_type.
6775
6776 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
6777
6778 PR target/45726
6779 * arm.md (arm_movt): Only enable on machines with MOVT.
6780
6781 2010-09-20 Jie Zhang <jie@codesourcery.com>
6782
6783 * config/arm/arm.c (arm_address_offset_is_imm): New.
6784 (arm_early_store_addr_dep): New.
6785 (arm_early_load_addr_dep): New.
6786 * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
6787 (arm_early_load_addr_dep): Declare.
6788 (arm_address_offset_is_imm): Declare.
6789 * config/arm/cortex-m4.md: New file.
6790 * config/arm/cortex-m4-fpu.md: New file.
6791 * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
6792 (attr generic_sched): Exclude cortexm4.
6793 (attr generic_vfp): Exclude cortexm4.
6794
6795 2010-09-20 Richard Guenther <rguenther@suse.de>
6796
6797 PR middle-end/45704
6798 * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
6799
6800 2010-09-20 Jan Hubicka <jh@suse.cz>
6801
6802 PR tree-optimize/45605
6803 * cgraph.h (const_value_known_p): Declare.
6804 (varpool_decide_const_value_known): Remove.
6805 * tree-ssa-ccp.c (get_base_constructor): Use it.
6806 * lto-cgraph.c (compute_ltrans_boundary): Likewise.
6807 * expr.c (string_constant): Likewise.
6808 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
6809 * ipa.c (ipa_discover_readonly_nonaddressable_var,
6810 function_and_variable_visibility): Likewise.
6811 * gimplify.c (gimplify_call_expr): Likewise.
6812 * gimple-fold.c (get_symbol_constant_value): Likewise.
6813 * varpool.c (varpool_decide_const_value_known): Replace by...
6814 (const_value_known_p): ... this one; handle other kinds of DECLs
6815 too and work for automatic vars.
6816 (varpool_finalize_decl): Use const_value_known_p.
6817
6818 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
6819
6820 PR target/45726
6821 * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
6822
6823 2010-09-20 Richard Guenther <rguenther@suse.de>
6824
6825 PR tree-optimization/45705
6826 * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
6827
6828 2010-09-20 Jakub Jelinek <jakub@redhat.com>
6829
6830 PR rtl-optimization/45695
6831 * combine.c (try_combine): When splitting a two set pattern,
6832 make sure the pattern which will be put into i2 doesn't use REGs
6833 or MEMs set by insns in between i2 and i3.
6834
6835 2010-09-19 Jan Hubicka <jh@suse.cz>
6836
6837 PR lto/44246
6838 * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
6839 processing same node twice.
6840
6841 2010-09-19 Anatoly Sokolov <aesok@post.ru>
6842
6843 * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
6844 * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
6845 (bfin_class_likely_spilled_p): New function
6846
6847 2010-09-19 Ira Rosen <irar@il.ibm.com>
6848
6849 PR tree-optimization/45714
6850 * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
6851 created in vectorizable_call instead of the original statement in
6852 def stmt updates.
6853
6854 2010-09-19 Uros Bizjak <ubizjak@gmail.com>
6855
6856 * config/i386/i386-protos.h (split_double_mode): New prototype.
6857 (split_di, split_ti): Remove prototypes.
6858 * config/i386/i386.c (split_double_mode): New function.
6859 (split_di, split_ti): Remove.
6860 (ix86_expand_branch): Use split_double_mode.
6861 (ix86_split_to_parts): Ditto.
6862 (ix86_split_ashl): Ditto.
6863 (ix86_split_ashr): Ditto.
6864 (ix86_split_lshr): Ditto.
6865 (ix86_force_to_memory): Ditto.
6866 * config/i386/i386.md: Use split_double_mode in double-mode splitters.
6867
6868 2010-09-18 Jan Hubicka <jh@suse.cz>
6869
6870 PR tree-optimization/45453
6871 * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
6872 virtual functions are reachable.
6873 * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
6874 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
6875 * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
6876 when modifying function.
6877
6878 2010-09-18 Jan Hubicka <jh@suse.cz>
6879
6880 PR tree-optimization/45605
6881 * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
6882 * gimple-fold.c (static_object_in_other_unit_p): New function.
6883 (canonicalize_constructor_val): Use it.
6884 (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
6885 returning NULL.
6886 (gimple_fold_obj_type_ref_known_binfo): Use
6887 static_object_in_other_unit_p.
6888
6889 2010-09-18 Richard Guenther <rguenther@suse.de>
6890
6891 PR tree-optimization/45709
6892 * tree-inline.c (copy_phis_for_bb): Delay commit of edge
6893 insertions until after all PHI nodes of the block are processed.
6894
6895 2010-09-18 Tijl Coosemans <tijl@coosemans.org>
6896
6897 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
6898
6899 2010-09-18 Kai Tietz <kai.tietz@onevision.com>
6900
6901 * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
6902
6903 2010-09-18 Richard Guenther <rguenther@suse.de>
6904
6905 PR tree-optimization/45709
6906 * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
6907
6908 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
6909
6910 * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
6911 (dot_deps_stmt): Same.
6912 * graphite-poly.c (dot_lst): Same.
6913 * graphite-scop-detection.c (dot_all_scops): Same.
6914 (dot_scop): Same.
6915
6916 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
6917
6918 Revert:
6919 2009-12-16 Ben Elliston <bje@au.ibm.com>
6920
6921 * tree-data-ref.c (dot_rdg_1): Added back.
6922 (dot_rdg): Same. Added "#if 0" around system call.
6923
6924 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
6925 Richard Henderson <rth@redhat.com>
6926
6927 * config/i386/i386.c (initial_ix86_tune_features): Add
6928 X86_TUNE_PAD_SHORT_FUNCTION.
6929 (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
6930 (ix86_count_insn): New.
6931 (ix86_pad_short_function): Likewise.
6932 (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
6933
6934 * config/i386/i386.h (ix86_tune_indices): Add
6935 X86_TUNE_PAD_SHORT_FUNCTION.
6936 (TARGET_PAD_SHORT_FUNCTION): New.
6937
6938 * config/i386/i386.md (UNSPEC_NOPS): New.
6939 (nops): Likewise.
6940
6941 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
6942
6943 PR middle-end/45234
6944 * calls.c (expand_call): Make sure that all variable sized
6945 adjustments are multiple of preferred stack boundary after
6946 stack alignment.
6947
6948 2010-09-17 DJ Delorie <dj@redhat.com>
6949
6950 * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
6951 passed an invalid value, print an error instead of ICEing.
6952 (valid_psw_flag): New.
6953 (rx_expand_builtin): Call it for setpsw/clrpsw.
6954 (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
6955
6956 * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
6957 (bitclr_in_memory): Likewise.
6958 (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
6959
6960 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
6961
6962 PR middle-end/45678
6963 * cfgexpand.c (update_stack_alignment): New.
6964 (get_decl_align_unit): Use it.
6965 (expand_one_stack_var_at): Call update_stack_alignment.
6966
6967 2010-09-17 Richard Guenther <rguenther@suse.de>
6968
6969 * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
6970 Properly copy the read string.
6971
6972 2010-09-17 Joseph Myers <joseph@codesourcery.com>
6973
6974 * doc/options.texi (Variable): Document.
6975 * optc-gen.awk, opth-gen.awk: Handle Variable records. Don't
6976 generate target_flags declarations explicitly. Don't define
6977 VarExists variables for the driver.
6978 * common.opt (target_flags): New Variable record.
6979 (flag_dump_unnumbered, flag_dump_unnumbered_links,
6980 flag_var_tracking, flag_var_tracking_assignments,
6981 flag_var_tracking_assignments_toggle): Don't mark variables with
6982 VarExists.
6983 * config/i386/i386.c (ix86_isa_flags): Don't define here.
6984 * config/i386/i386.opt (ix86_isa_flags): Define here.
6985 * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
6986 * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
6987 VarExists.
6988 * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
6989 * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
6990 Only define for generator programs.
6991 * rtlanal.c (target_flags): Remove.
6992 * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
6993 flag_var_tracking_assignments_toggle): Remove.
6994
6995 2010-09-17 Michael Matz <matz@suse.de>
6996
6997 PR tree-optimization/43432
6998 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
6999 Accept backwards consecutive accesses.
7000 (vect_create_data_ref_ptr): If step is negative generate
7001 decreasing IVs.
7002 * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
7003 (perm_mask_for_reverse, reverse_vec_elements): New functions.
7004 (vectorizable_load): Handle loads with negative steps when easily
7005 possible.
7006
7007 2010-09-03 Jan Hubicka <jh@suse.cz>
7008
7009 * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
7010
7011 2010-09-03 Naveen H.S <naveen.S@kpitcummins.com>
7012
7013 * config/v850/v850.c (v850_function_value_regno_p): Make static.
7014 Adjust comments. Declare.
7015 (TARGET_FUNCTION_VALUE_REGNO_P): Define.
7016 * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
7017
7018 2010-09-17 Richard Guenther <rguenther@suse.de>
7019
7020 * common.opt (combine): Remove.
7021 * gcc.c (default_compilers): Remove specs testing combine.
7022 The C compilers no longer can combine.
7023 (option_map): Remove -combine.
7024 (display_help): Remove -combine.
7025 (driver_handle_option): Remove OPT_combine handling.
7026 (compile_input_file_p): Remove.
7027 (do_spec): Remove code concerning combine.
7028 (main): Likewise.
7029 * doc/invoke.texi: Remove traces of -combine.
7030 * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
7031
7032 2010-09-17 Richard Guenther <rguenther@suse.de>
7033
7034 PR middle-end/45678
7035 * builtins.c (fold_builtin_memory_op): Always properly adjust
7036 alignment of memory accesses.
7037
7038 2010-09-16 Jan Hubicka <jh@suse.cz>
7039
7040 * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
7041 processing clone.
7042
7043 2010-09-16 H.J. Lu <hongjiu.lu@intel.com>
7044
7045 * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
7046
7047 * config/i386/i386.c (predict_jump): Add prototype.
7048 (flag_opts): Add -m8bit-idiv.
7049 (ix86_split_idivmod): New.
7050
7051 * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
7052 Add 2 splitters for SI/DI mode divide.
7053 (divmod<mode>4_1): New pattern.
7054 (udivmod<mode>4_1): Likewise.
7055 (testdi_ccno_1): Likewise.
7056
7057 * config/i386/i386.opt (m8bit-idiv): New.
7058
7059 * doc/invoke.texi: Document -m8bit-idiv.
7060
7061 2010-09-16 Reza Yazdani <reza.yazdani@amd.com>
7062
7063 PR bootstrap/45680
7064 * config/i386/i386.c (min_insn_size): Moved out of the
7065 ASM_OUTPUT_MAX_SKIP_PAD ifdef.
7066
7067 2010-09-16 Jan Hubicka <jh@suse.cz>
7068
7069 * lto-cgraph.c (lto_output_node): Fix handling of clones.
7070 * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
7071 unreachable clones with reachable clones.
7072 * tree-inline.c (copy_bb): Fix sanity checking when producing
7073 unreachable clone.
7074
7075 2010-09-16 Anatoly Sokolov <aesok@post.ru>
7076
7077 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
7078 (TARGET_MEMORY_MOVE_COST): Define.
7079 (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
7080
7081 2010-09-16 Alexander Monakov <amonakov@ispras.ru>
7082
7083 * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
7084 maybe_tidy_empty_bb.
7085
7086 Revert:
7087 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
7088 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
7089
7090 2010-09-16 Joseph Myers <joseph@codesourcery.com>
7091
7092 * target.def (target_option.optimization): New hook.
7093 * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
7094 TARGET_OPTION_OPTIMIZATION hook.
7095 * doc/tm.texi: Regenerate.
7096 * hooks.c (hook_void_int_int): New.
7097 * hooks.h (hook_void_int_int): Declare.
7098 * opts.c: Don't include tm_p.h.
7099 (decode_options): Use targetm.target_option.optimization instead
7100 of OPTIMIZATION_OPTIONS.
7101 * system.h (OPTIMIZATION_OPTIONS): Poison.
7102 * config/arm/arm-protos.h (arm_optimization_options): Remove.
7103 * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
7104 (arm_optimization_options): Rename to arm_option_optimization.
7105 Make static.
7106 * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
7107 * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
7108 (cris_option_optimization): New.
7109 * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
7110 * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
7111 (crx_option_optimization): New.
7112 * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
7113 * config/frv/frv-protos.h (frv_optimization_options): Remove.
7114 * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
7115 (frv_optimization_options): Rename to frv_option_optimization.
7116 Make static.
7117 * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
7118 * config/h8300/h8300.c (h8300_option_optimization): New.
7119 (TARGET_OPTION_OPTIMIZATION): Define.
7120 * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
7121 * config/i386/i386-protos.h (optimization_options): Remove.
7122 * config/i386/i386.c (optimization_options): Rename to
7123 ix86_option_optimization. Make static.
7124 (TARGET_OPTION_OPTIMIZATION): Define.
7125 * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
7126 * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
7127 * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
7128 (ia64_optimization_options): Rename to ia64_option_optimization.
7129 Make static. Call SUBTARGET_OPTIMIZATION_OPTIONS.
7130 * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove. Remove
7131 commented-out definition.
7132 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
7133 instead of OPTIMIZATION_OPTIONS.
7134 * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
7135 (m32r_option_optimization): New.
7136 * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
7137 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
7138 Remove.
7139 * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
7140 (mcore_option_optimization): New.
7141 * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
7142 * config/mep/mep-protos.h (mep_optimization_options): Remove.
7143 * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
7144 (mep_optimization_options): Rename to mep_option_optimization.
7145 Make static. Take unused level and size parameters.
7146 * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
7147 * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
7148 (mmix_option_optimization): New.
7149 * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
7150 * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
7151 (pdp11_option_optimization): New.
7152 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
7153 * config/rs6000/rs6000-protos.h (optimization_options): Remove.
7154 * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
7155 (optimization_options): Rename to rs6000_option_optimization.
7156 Make static.
7157 * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
7158 * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
7159 * config/rx/rx.c (rx_set_optimization_options): Rename to
7160 rx_option_optimization. Make static. Take unused level and size
7161 parameters.
7162 (TARGET_OPTION_OPTIMIZATION): Define.
7163 * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
7164 * config/s390/s390-protos.h (optimization_options): Remove.
7165 * config/s390/s390.c (optimization_options): Rename to
7166 s390_option_optimization. Make static. Don't mark size parameter
7167 unused.
7168 (TARGET_OPTION_OPTIMIZATION): Define.
7169 * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
7170 * config/sh/sh-protos.h (sh_optimization_options): Remove.
7171 * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
7172 (sh_optimization_options): Rename to sh_option_optimization. Make
7173 static. Don't mark parameters unused.
7174 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
7175 * config/spu/spu-protos.h (spu_optimization_options): Remove.
7176 * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
7177 (spu_optimization_options): Rename to spu_option_optimization.
7178 Make static.
7179 * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
7180 * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
7181 (v850_option_optimization): New.
7182 * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
7183 * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
7184 (xtensa_option_optimization): New.
7185 * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
7186
7187 2010-09-16 Joseph Myers <joseph@codesourcery.com>
7188
7189 * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
7190 (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
7191 * doc/tm.texi: Regenerate.
7192 * system.h (OVERRIDE_OPTIONS): Poison.
7193 * target.def (override): Default to hook_void_void.
7194 * targhooks.c (default_target_option_override): Remove.
7195 * genmodes.c, machmode.def: Update comments mentioning
7196 OVERRIDE_OPTIONS.
7197 * config/alpha/alpha-modes.def: Update comment mentioning
7198 alpha_override_options.
7199 * config/alpha/alpha-protos.h (override_options): Remove.
7200 * config/alpha/alpha.c (override_options): Rename to
7201 alpha_option_override. Call SUBTARGET_OVERRIDE_OPTIONS. Make static.
7202 (TARGET_OPTION_OVERRIDE): Define.
7203 * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
7204 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
7205 of OVERRIDE_OPTIONS.
7206 * config/arc/arc-protos.h (arc_init): Remove.
7207 * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
7208 (arc_init): Rename to arc_option_override. Make static.
7209 * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
7210 (OVERRIDE_OPTIONS): Remove.
7211 * config/arm/arm-protos.h (arm_override_options): Remove.
7212 * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
7213 (arm_override_options): Rename to arm_option_override. Make
7214 static. Call SUBTARGET_OVERRIDE_OPTIONS.
7215 * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
7216 * config/arm/arm.md: Update comment referring to arm_override_options.
7217 * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
7218 instead of OVERRIDE_OPTIONS.
7219 * config/avr/avr-protos.h (avr_override_options): Remove.
7220 * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
7221 (avr_override_options): Rename to avr_option_override. Make static.
7222 * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
7223 * config/bfin/bfin-protos.h (override_options): Remove (twice).
7224 * config/bfin/bfin.c (override_options): Rename to
7225 bfin_option_override. Make static.
7226 (TARGET_OPTION_OVERRIDE): Define.
7227 * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
7228 * config/cris/cris-protos.h (cris_override_options): Remove.
7229 * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
7230 (cris_override_options): Rename to cris_option_override. Make static.
7231 * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
7232 * config/frv/frv-protos.h (frv_override_options): Remove.
7233 * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
7234 (frv_override_options): Rename to frv_option_override. Make static.
7235 * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
7236 * config/h8300/h8300-protos.h (h8300_init_once): Remove.
7237 * config/h8300/h8300.c (h8300_init_once): Rename to
7238 h8300_option_override. Make static.
7239 (TARGET_OPTION_OVERRIDE): Define.
7240 * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
7241 * config/i386/i386-protos.h (override_options): Remove.
7242 * config/i386/i386.c (override_options): Rename to
7243 ix86_option_override_internal. Make static. Comments referring
7244 to this function and callers changed.
7245 (ix86_option_override): New.
7246 (TARGET_OPTION_OVERRIDE): Define.
7247 * config/i386/i386.h (OVERRIDE_OPTION): Remove.
7248 * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
7249 * config/ia64/ia64.c (ia64_file_start): Update comment referring
7250 to ia64_override_options.
7251 * config/iq2000/iq2000-protos.h (override_options): Remove.
7252 * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
7253 (override_options): Rename to iq2000_option_override. Make static.
7254 * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
7255 * config/lm32/lm32-protos.h (lm32_override_options): Remove.
7256 * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
7257 (lm32_override_options): Rename to lm32_option_override. Make static.
7258 * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
7259 * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
7260 (m32r_option_override): New.
7261 (m32r_init): Update comment.
7262 * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
7263 * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
7264 * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
7265 (m68hc11_override_options): Rename to m68hc11_option_override.
7266 Make static. Return void.
7267 * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
7268 * config/m68k/m68k-protos.h (override_options): Remove.
7269 * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
7270 (override_options): Rename to m68k_option_override. Make static.
7271 * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
7272 * config/mcore/mcore-protos.h (mcore_override_options): Remove.
7273 * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
7274 (mcore_override_options): Rename to mcore_option_override. Make
7275 static.
7276 * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
7277 * config/mep/mep-protos.h (mep_override_options): Remove.
7278 * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
7279 (mep_override_options): Rename to mep_option_override. Make static.
7280 * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
7281 * config/mmix/mmix-protos.h (mmix_override_options): Remove.
7282 * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
7283 (mmix_override_options): Rename to mmix_option_override. Make static.
7284 * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
7285 * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
7286 * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
7287 (mn10300_override_options): Rename to mn10300_option_override.
7288 Make static.
7289 * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
7290 * config/moxie/moxie-protos.h (moxie_override_options): Remove.
7291 * config/moxie/moxie.c (moxie_override_options): Rename to
7292 moxie_option_override. Make static.
7293 (TARGET_OPTION_OVERRIDE): Define.
7294 * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
7295 * config/picochip/picochip-protos.h (picochip_override_options):
7296 Remove. Update comment referring to picochip_override_options.
7297 * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
7298 (picochip_override_options): Rename to picochip_option_override.
7299 Make static. Update comment and definition of
7300 TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
7301 * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
7302 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
7303 * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
7304 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
7305 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
7306 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
7307 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
7308 instead of OVERRIDE_OPTIONS.
7309 * config/rs6000/rs6000-modes.def: Update comment referring to
7310 rs6000_override_options.
7311 * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
7312 * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
7313 (rs6000_override_options): Rename to
7314 rs6000_option_override_internal. Make static. Commented
7315 referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
7316 (rs6000_option_override): New.
7317 * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
7318 instead of OVERRIDE_OPTIONS.
7319 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
7320 * config/s390/s390-protos.h (override_options): Remove.
7321 * config/s390/s390.c (override_options): Rename to
7322 s390_option_override. Make static.
7323 (TARGET_OPTION_OVERRIDE): Define.
7324 * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
7325 * config/score/score-protos.h (score_override_options): Remove.
7326 * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
7327 (score_override_options): Rename to score_option_override. Make
7328 static.
7329 * config/score/score.h (OVERRIDE_OPTIONS): Remove.
7330 Update comment referring to override_options.
7331 * config/score/score3.c (score3_override_options): Rename to
7332 score3_option_override.
7333 * config/score/score3.h (score3_override_options): Rename to
7334 score3_option_override.
7335 * config/score/score7.c (score7_override_options): Rename to
7336 score7_option_override.
7337 * config/score/score7.h (score7_override_options): Rename to
7338 score7_option_override.
7339 * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
7340 * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
7341 (sparc_override_options): Rename to sparc_option_override. Make
7342 static. Call SUBTARGET_OVERRIDE_OPTIONS.
7343 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
7344 * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
7345 instead of OVERRIDE_OPTIONS.
7346 * config/spu/spu-protos.h (spu_override_options): Remove.
7347 * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
7348 (spu_override_options): Rename to spu_option_override. Make
7349 static.
7350 * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
7351 * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
7352 OVERRIDE_OPTIONS.
7353 * config/vax/vax-protos.h (override_options): Remove.
7354 * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
7355 (override_options): Rename to vax_option_override. Make static.
7356 Call SUBTARGET_OVERRIDE_OPTIONS.
7357 * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
7358 * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
7359 * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
7360 * config/xtensa/xtensa-protos.h (override_options): Remove.
7361 * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
7362 (override_options): Rename to xtensa_option_override. Make static.
7363 * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
7364
7365 2010-09-16 Richard Guenther <rguenther@suse.de>
7366
7367 PR tree-optimization/45623
7368 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
7369 (get_constraint_for_component_ref): If computing a constraint
7370 for the rhs handle type punning through unions.
7371 (get_constraint_for_address_of): Adjust.
7372 (get_constraint_for_1): Likewise.
7373 (get_constraint_for): Likewise.
7374 (get_constraint_for_rhs): New function.
7375 (do_structure_copy): Adjust.
7376 (make_constraint_to): Likewise.
7377 (handle_const_call): Likewise.
7378 (find_func_aliases): Likewise.
7379 (process_ipa_clobber): Likewise.
7380 (create_variable_info_for): Likewise.
7381
7382 2010-09-16 Ira Rosen <irar@il.ibm.com>
7383
7384 * tree-vectorizer.c: Fix documentation.
7385 * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
7386 (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
7387 is_pattern_stmt_p, is_loop_header_bb_p,
7388 stmt_vinfo_set_inside_of_loop_cost,
7389 stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
7390 known_alignment_for_access_p): Likewise.
7391 * tree-vect-loop.c: Fix documentation.
7392 (vect_get_cost): Start function name from new line.
7393 * tree-vect-data-refs.c: Fix documentation.
7394 * tree-vect_stmts.c: Likewise.
7395 (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
7396 (vectorizable_store): Free vec_oprnds if allocated.
7397 (vectorizable_condition): Initialize several variables to avoid
7398 warnings.
7399 * tree-vect-slp.c: Fix documentation.
7400
7401 2010-09-16 Richard Guenther <rguenther@suse.de>
7402
7403 * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
7404 is TS_TRANSLATION_UNIT_DECL.
7405 (initialize_tree_contains_struct): Adjust.
7406 (all_translation_units): New global vector.
7407 (build_translation_unit_decl): New function.
7408 * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
7409 (struct tree_translation_unit_decl): New.
7410 (all_translation_units): Declare.
7411 (union tree_node): Add translation_unit_decl member.
7412 (build_translation_unit_decl): Declare.
7413 * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
7414 * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
7415 New function.
7416 (pack_value_fields): Call it.
7417 (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
7418 (lto_output_ts_translation_unit_decl_tree_pointers): New function.
7419 (lto_output_tree_pointers): Call it.
7420 * lto-streamer-in.c (lto_input_tree_ref): Handle references
7421 to TRANSLATION_UNIT_DECL.
7422 (unpack_ts_translation_unit_decl_value_fields): New function.
7423 (unpack_value_fields): Call it.
7424 (lto_input_ts_translation_unit_decl_tree_pointers): New function.
7425 (lto_input_tree_pointers): Call it.
7426 * lto-streamer.c (check_handled_ts_structures): Adjust.
7427 * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
7428 * c-decl.c (all_translation_units): Remove.
7429 (pop_scope): Use build_translation_unit_decl.
7430 (collect_all_refs): Adjust.
7431 (for_each_global_decl): Likewise.
7432 (c_write_global_declarations): Likewise.
7433
7434 2010-09-16 Jakub Jelinek <jakub@redhat.com>
7435
7436 PR bootstrap/45686
7437 * fold-const.c (fold_checksum_tree): Change slot from const void **
7438 to void **, use CONST_CAST_TREE to store into *slot.
7439
7440 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
7441
7442 * config/i386/i386.md: Remove unneeded empty conditions and
7443 preparation statements from expanders.
7444 * config/i386/mmx.md: Ditto.
7445 * config/i386/sse.md: Ditto.
7446
7447 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
7448
7449 * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
7450
7451 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
7452
7453 PR rtl-optimization/45593
7454 * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
7455 insns that were in delay slots as stand-alone insns.
7456
7457 2010-09-15 Ian Lance Taylor <iant@google.com>
7458
7459 * incpath.c (remove_duplicates): If name is not a directory, issue
7460 a warning rather than an error.
7461
7462 2010-09-15 Martin Jambor <mjambor@suse.cz>
7463
7464 PR middle-end/45644
7465 * tree-sra.c (create_access): Check for bit-fields directly.
7466
7467 2010-09-15 Jakub Jelinek <jakub@redhat.com>
7468
7469 PR tree-optimization/45633
7470 * tree-cfg.c (verify_gimple_assign_binary): Allow
7471 MINUS_EXPR with lhs and rhs1 pointer vector and
7472 rhs2 sizetype vector.
7473 * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
7474 or vector pointer use TER to optimize pointer subtraction.
7475
7476 2010-09-15 Jie Zhang <jie@codesourcery.com>
7477
7478 * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
7479 fcmpd to fcmps.
7480
7481 2010-09-15 Ian Lance Taylor <iant@google.com>
7482
7483 * config/i386/i386.md (truncxf<mode>2): Fix indentation.
7484
7485 2010-09-15 Ian Lance Taylor <iant@google.com>
7486
7487 * function.c (get_arg_pointer_save_area): Set
7488 arg_pointer_save_area_init to true.
7489
7490 2010-09-15 Martin Jambor <mjambor@suse.cz>
7491
7492 * tree-sra.c (generate_subtree_copies): Updated comment.
7493 (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
7494 obtained from the statement iterator instead.
7495 (load_assign_lhs_subreplacements): Removed parameters lhs and
7496 right_offset, which is obtained from top_racc instead. Parameter lacc
7497 is now expected to be the root of the processed tree rather than root's
7498 first child. Updated all callers.
7499
7500 2010-09-15 Joseph Myers <joseph@codesourcery.com>
7501
7502 * config/pdp11/pdp11.c (register_move_cost): Rename to
7503 pdp11_register_move_cost.
7504 * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
7505 pdp11_register_move_cost.
7506 * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
7507 pdp11_register_move_cost instead of register_move_cost.
7508
7509 2010-09-15 Tejas Belagod <tejas.belagod@arm.com>
7510
7511 * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
7512 pattern for vmovn. Expansion in case of non
7513 -mvectorize-with-neon-quad.
7514 (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
7515 non- -mvectorize-with-neon-quad case.
7516 (move_lo_quad_<mode>): New expansion to vmov into low part.
7517 (move_hi_quad_<mode>): New expansion to vmov into high part.
7518 (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
7519 (move_lo_quad_v4sf): Likewise.
7520 (move_lo_quad_v8hi): Likewise.
7521 (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
7522 low part.
7523 (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
7524 high part.
7525 * config/arm/iterators.md (ANY128): New mode iterator.
7526 (V_narrow_pack): New mode attribute.
7527 (V_HALF): Add attribute.
7528 (V_DOUBLE): Add attribute.
7529 (V_mode_nunits): Add attribute.
7530
7531 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
7532
7533 * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
7534 is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
7535
7536 2010-09-15 Olivier Hainque <hainque@adacore.com>
7537 Jose Ruiz <ruiz@adacore.com>
7538
7539 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
7540 * config/alpha/osf5-unwind.h: New file.
7541
7542 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
7543
7544 PR bootstrap/45672
7545 * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
7546 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
7547 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
7548
7549 2010-09-15 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7550
7551 * c-lang.h (struct lang_type): Add variable_size GTY option.
7552
7553 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
7554
7555 PR bootstrap/45672
7556 * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
7557
7558 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
7559
7560 * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
7561 result isn't used in memory address.
7562
7563 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
7564
7565 * defaults.h (UNITS_PER_SIMD_WORD): Removed.
7566 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
7567 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
7568 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
7569 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
7570 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
7571
7572 * target.def: Add units_per_simd_word to vectorize.
7573
7574 * targhooks.c (default_units_per_simd_word): New.
7575 * targhooks.h (default_units_per_simd_word): Likewise.
7576 * config/arm/arm.c (arm_units_per_simd_word): Likewise.
7577 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
7578 * config/mips/mips.c (mips_units_per_simd_word): Likewise.
7579 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
7580 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
7581 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
7582 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
7583 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
7584
7585 * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
7586 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
7587
7588 * tree-vect-stmts.c: Don't include "tm_p.h".
7589 (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
7590 with targetm.vectorize.units_per_simd_word.
7591
7592 * system.h (UNITS_PER_SIMD_WORD): Poisoned.
7593
7594 * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
7595
7596 * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
7597 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
7598
7599 * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD. Add
7600 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
7601
7602 * doc/tm.texi: Regenerated.
7603
7604 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
7605
7606 * tree-vect-stmts.c: Include "tm_p.h".
7607
7608 * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
7609 out of RTX_CODE.
7610
7611 2010-09-14 Martin Jambor <mjambor@suse.cz>
7612
7613 * tree-sra.c (build_ref_for_offset): Loc made a parameter. Set the
7614 location of generated statement. Changed all callers.
7615 (build_ref_for_model): New parameter loc which used to set location of
7616 all generated expressions. Changed all callers.
7617 (generate_subtree_copies): Likewise.
7618 (init_subtree_with_zero): Likewise.
7619 (sra_modify_expr): Set locations of all generated statements and
7620 expressions to the location the original statement.
7621 (handle_unscalarized_data_in_subtree): Likewise.
7622 (load_assign_lhs_subreplacements): Likewise.
7623 (sra_modify_constructor_assign): Likewise.
7624 (sra_modify_assign): Likewise.
7625
7626 2010-09-14 Eric Botcazou <ebotcazou@adacore.com>
7627
7628 PR target/45277
7629 PR target/45363
7630 PR target/45407
7631 * doc/install.texi (sparc*-*-*): New section.
7632 (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
7633
7634 2010-09-14 Jakub Jelinek <jakub@redhat.com>
7635
7636 PR middle-end/45567
7637 * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
7638 expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
7639 (expand_builtin): Adjust caller.
7640 (expand_builtin_unop): Only use subtarget if it has the right mode.
7641
7642 2010-09-14 Tristan Gingold <gingold@adacore.com>
7643
7644 * configure.ac (plugins): Fix typos.
7645 * configure: Regenerate.
7646
7647 2010-09-14 Jakub Jelinek <jakub@redhat.com>
7648
7649 PR debug/45660
7650 * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
7651 gen_type_die for function/method return type.
7652
7653 2010-09-14 Ira Rosen <irar@il.ibm.com>
7654
7655 PR tree-optimization/45470
7656 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
7657 can throw an exception.
7658 * tree-vect-stmts.c (vectorizable_call): Likewise.
7659
7660 2010-09-14 DJ Delorie <dj@redhat.com>
7661
7662 PR target/44749
7663 * config/mep/mep-protos.h (mep_save_register_info,
7664 mep_reinit_regs, mep_init_regs): Declare.
7665
7666 * config/mep/mep.c: Move all target definitions to the end of the
7667 file to avoid the need for duplicate declarations.
7668 (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
7669 (mep_reorg_erepeat): Remove unused variables.
7670 (mep_expand_builtin): Likewise.
7671
7672 * config/mep/mep-pragma.c: Don't include rtl.h.
7673 (INVALID_REGNUM): New.
7674 (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
7675 functions.
7676 (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
7677 Avoid enum/integer math.
7678
7679 2010-09-13 Joseph Myers <joseph@codesourcery.com>
7680
7681 PR target/44749
7682 * config/mep/t-mep (GTM_H): Add insn-constants.h.
7683 * config/mep/mep.c (mep_conditional_register_usage): Take no
7684 parameters.
7685 * config/mep/mep-protos.h (mep_conditional_register_usage): Update
7686 prototype.
7687 * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
7688 call to mep_conditional_register_usage.
7689
7690 2010-09-13 Eric Botcazou <ebotcazou@adacore.com>
7691
7692 PR debug/43937
7693 * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
7694 the DECL as well.
7695
7696 2010-09-13 Jakub Jelinek <jakub@redhat.com>
7697
7698 PR rtl-optimization/45617
7699 * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
7700 even if low N bits of X aren't known to be zero.
7701
7702 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
7703
7704 * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
7705
7706 * config/i386/i386.c (initial_ix86_tune_features): Add
7707 X86_TUNE_VECTORIZE_DOUBLE.
7708 (ix86_units_per_simd_word): New.
7709
7710 * config/i386/i386.h (ix86_tune_indices): Add
7711 X86_TUNE_VECTORIZE_DOUBLE.
7712 (TARGET_VECTORIZE_DOUBLE): New.
7713 (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
7714
7715 2010-09-13 Pat Haugen <pthaugen@us.ibm.com>
7716
7717 * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
7718 (new_temp_expr_table): Allocate call_cnt vector.
7719 (free_temp_expr_table): Free it.
7720 (process_replaceable): Add call_cnt parm and set in vector.
7721 (find_replaceable_in_bb): Skip replacement if def/use span a call.
7722 (debug_ter): Dump call_cnt value, remove stderr uses.
7723
7724 2010-09-13 Jan Hubicka <jh@suse.cz>
7725
7726 * tree.c (build_zero_cst): New.
7727 * tree.h (build_zero_cst): Declare.
7728 * tree-ssa-ccp.c (get_constant_value): Accept general operands.
7729 (get_base_constructor): Break out from ...
7730 (fold_const_aggregate_ref): Here; handle empty constructors.
7731
7732 2010-09-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
7733
7734 * config/arm/arm.md: (define_attr "conds"): Update comment.
7735 * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
7736 conds attribute to clob.
7737 (arm_sync_compare_and_swapsi): Likewise.
7738 (arm_sync_compare_and_swap<mode>): Likewise.
7739 (arm_sync_lock_test_and_setsi): Likewise.
7740 (arm_sync_lock_test_and_set<mode>): Likewise.
7741 (arm_sync_new_<sync_optab>si): Likewise.
7742 (arm_sync_new_nandsi): Likewise.
7743 (arm_sync_new_<sync_optab><mode>): Likewise.
7744 (arm_sync_new_nand<mode>): Likewise.
7745 (arm_sync_old_<sync_optab>si): Likewise.
7746 (arm_sync_old_nandsi): Likewise.
7747 (arm_sync_old_<sync_optab><mode>): Likewise.
7748 (arm_sync_old_nand<mode>): Likewise.
7749
7750 2010-09-13 Olivier Hainque <hainque@adacore.com>
7751
7752 * fwprop.c (forward_propagate_and_simplify): Only attach a
7753 REG_EQUAL note to an insn if the destination is a register.
7754 * gcse.c (try_replace_reg): Likewise.
7755
7756 2010-09-13 Richard Guenther <rguenther@suse.de>
7757
7758 PR tree-optimization/45611
7759 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
7760 (copy_ref_info): Likewise.
7761
7762 2010-09-13 Alexandre Oliva <aoliva@redhat.com>
7763
7764 PR debug/45604
7765 PR debug/45419
7766 PR debug/45408
7767 * tree-pretty-print.c (dump_generic_node): Disregard top-level
7768 types of MEM_REF pointer types to the same type.
7769
7770 2010-09-13 Hans-Peter Nilsson <hp@axis.com>
7771
7772 PR rtl-optimization/41087
7773 * ifcvt.c (noce_get_condition): Don't allow conditions with
7774 side-effects.
7775
7776 2010-09-12 Anatoly Sokolov <aesok@post.ru>
7777
7778 * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7779 * config/frv/frv-protos.h (frv_register_move_cost): Remove.
7780 * config/frv/frv.c (frv_register_move_cost): Make static. Change
7781 arguments type to reg_class_t. Add mode argument.
7782 (frv_memory_move_cost): New.
7783 (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
7784
7785 2010-09-12 Bernd Schmidt <bernds@codesourcery.com>
7786
7787 * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
7788 arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
7789
7790 2010-09-10 Jan Hubicka <jh@suse.cz>
7791
7792 * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
7793
7794 2010-09-10 Richard Guenther <rguenther@suse.de>
7795
7796 * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
7797 * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
7798 * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
7799 not stream TYPE_DEBUG_REPRESENTATION_TYPE.
7800 * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
7801
7802 2010-09-10 Richard Guenther <rguenther@suse.de>
7803
7804 * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
7805 for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
7806 * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
7807 using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
7808
7809 2010-09-10 H.J. Lu <hongjiu.lu@intel.com>
7810
7811 PR middle-end/45634
7812 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
7813 of string folding is of integral type.
7814
7815 2010-09-10 Ryan Mansfield <rmansfield@qnx.com>
7816
7817 * doc/invoke.texi (-x): Fix typo.
7818
7819 2010-09-10 Richard Guenther <rguenther@suse.de>
7820
7821 PR debug/44115
7822 * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
7823 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7824 Output DECL_DEBUG_EXPR.
7825 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7826 Input DECL_DEBUG_EXPR.
7827
7828 2010-09-10 Richard Guenther <rguenther@suse.de>
7829
7830 * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
7831 (build_index_type): Implement in terms of build_range_type.
7832 (build_range_type): Do not allow NULL_TREE type, improve
7833 hashing to cover more cases. Set TYPE_STRUCTURAL_EQUALITY_P
7834 if we didn't hash.
7835 * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
7836 create a distinct copy of the type.
7837
7838 2010-09-10 Kai Tietz <kai.tietz@onevision.com>
7839
7840 * configure: Regenerated.
7841 * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
7842
7843 2010-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7844
7845 * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
7846 * config/arm/cortex-a9-neon.md: New and partially generated.
7847 * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
7848
7849 2010-09-10 Richard Guenther <rguenther@suse.de>
7850
7851 * tree.h (build_index_2_type): Remove.
7852 * tree.c (build_index_2_type): Remove.
7853
7854 2010-09-10 Jakub Jelinek <jakub@redhat.com>
7855
7856 PR bootstrap/45630
7857 * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
7858 HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
7859 (implicit_ptr_descriptor): Return NULL if dwarf_strict.
7860
7861 2010-09-10 Martin Jambor <mjambor@suse.cz>
7862
7863 PR tree-optimization/44972
7864 * tree-sra.c: Include toplev.h.
7865 (build_ref_for_offset): Entirely reimplemented.
7866 (build_ref_for_model): New function.
7867 (build_user_friendly_ref_for_offset): New function.
7868 (analyze_access_subtree): Removed build_ref_for_offset check.
7869 (propagate_subaccesses_across_link): Likewise.
7870 (create_artificial_child_access): Use
7871 build_user_friendly_ref_for_offset.
7872 (propagate_subaccesses_across_link): Likewise.
7873 (ref_expr_for_all_replacements_p): Removed.
7874 (generate_subtree_copies): Updated comment. Use build_ref_for_model.
7875 (sra_modify_expr): Use build_ref_for_model.
7876 (load_assign_lhs_subreplacements): Likewise.
7877 (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
7878 checks for return values of build_ref_for_offset.
7879 * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
7880 build_ref_for_offset.
7881 * ipa-prop.h: Include gimple.h
7882 * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
7883 (ipa_analyze_indirect_call_uses): Update comment.
7884 * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
7885 (IPA_PROP_H): Likewise.
7886
7887 2010-09-10 Martin Jambor <mjambor@suse.cz>
7888
7889 PR tree-optimization/44972
7890 * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
7891 calling build_ref_for_offset.
7892
7893 2010-09-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7894
7895 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
7896 * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
7897 * config/arm/arm-tune.md: Regenerate.
7898 * doc/invoke.texi (ARM Options): Document it.
7899
7900 2010-09-09 Reza Yazdani <reza.yazdani@amd.com>
7901
7902 * config/i386/i386.c: Include sched-int.h.
7903 (TARGET_SCHED_DISPATCH): Defined.
7904 (TARGET_SCHED_DISPATCH_DO): Defined.
7905 (DISPATCH_WINDOW_SIZE): Defined.
7906 (MAX_DISPATCH_WINDOWS): Defined.
7907 (MAX_INSN): Defined.
7908 (MAX_IMM): Defined.
7909 (MAX_IMM_SIZE): Defined.
7910 (MAX_IMM_32): Defined.
7911 (MAX_IMM_64): Defined.
7912 (MAX_LOAD): Defined.
7913 (MAX_STORE): Defined.
7914 (BIG): Defined.
7915 (dispatch_group): New.
7916 (num_allowable_groups): New.
7917 (group_name): New.
7918 (sched_insn_info_s): New.
7919 (dispatch_windows_s): New.
7920 (imm_info_s): New.
7921 (dispatch_window_list): New.
7922 (dispatch_window_list1): New.
7923 (get_mem_group): New.
7924 (is_cmp): New.
7925 (dispatch_violation): New.
7926 (is_branch): New.
7927 (is_prefetch): New.
7928 (init_window): New.
7929 (allocate_window): New.
7930 (init_dispatch_sched): New.
7931 (is_end_basic_block): New.
7932 (process_end_window): New.
7933 (allocate_next_window): New.
7934 (find_constant_1): New.
7935 (find_constant): New.
7936 (get_num_immediates): New.
7937 (has_immediate): New.
7938 (get_insn_path): New.
7939 (get_insn_group): New.
7940 (count_num_restricted): New.
7941 (fits_dispatch_window): New.
7942 (add_insn_window): New.
7943 (add_to_dispatch_window): New.
7944 (debug_dispatch_window_file): New.
7945 (debug_dispatch_window): New.
7946 (debug_insn_dispatch_info_file): New.
7947 (debug_ready_dispatch): New.
7948 (do_dispatch): New.
7949 (has_dispatch): New.
7950 * config/i386/i386.h (debug_ready_dispatch): Declared.
7951 (debug_dispatch_window): Declared.
7952 * config/i386/i386.opt (mdispatch-scheduler): New flag.
7953 * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
7954 (TARGET_SCHED_DISPATCH_DO): New.
7955 * doc/tm.texi: Regererated.
7956 * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
7957 ready_remove_first_dispatch
7958 (schedule_block): Call targetm.sched.dispatch and
7959 targetm.sched.dispatch_do.
7960 (sched_init): Call targetm.sched.dispatch and
7961 targetm.sched.dispatch_do.
7962 (ready_remove_first_dispatch): New.
7963 (number_in_ready): New.
7964 (get_ready_element): New.
7965 * hooks.c (hook_bool_rtx_int_false): New.
7966 (hook_void_rtx_int): New.
7967 * hooks.h (hook_bool_rtx_int_false): Declared.
7968 (hook_void_rtx_int): Declared.
7969 * sched-int.h (IS_DISPATCH_ON): Defined.
7970 (IS_CMP): Defined.
7971 (DISPATCH_VIOLATION): Defined.
7972 (FITS_DISPATCH_WINDOW): Defined.
7973 (DISPATCH_INIT): Defined.
7974 (ADD_TO_DISPATCH_WINDOW): Defined.
7975 (get_ready_element): Declared.
7976 (number_in_ready): Declared.
7977 * target.def (dispatch): Defined.
7978 (dispatch_do): Defined.
7979
7980 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
7981
7982 PR middle-end/45312
7983 * reload1.c (merge_assigned_reloads): Remove.
7984 (reload_as_needed): Don't call it.
7985
7986 2010-09-09 Anatoly Sokolov <aesok@post.ru>
7987
7988 * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
7989 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7990 * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7991
7992 2010-09-09 Matthias Klose <doko@ubuntu.com>
7993
7994 PR bootstrap/43847
7995 * configure.ac (--enable-plugin): Enhance for cross builds.
7996 * configure: Regenerate.
7997
7998 2010-09-09 Jan Hubicka <jh@suse.cz>
7999
8000 PR tree-optimization/45598
8001 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
8002 string folding is of integral type.
8003
8004 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
8005
8006 * configure.ac (gnu_indirect_function): New test.
8007 * configure: Rebuilt.
8008 * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
8009 * defaults.h (IFUNC_ASM_TYPE): Provide default.
8010
8011 * doc/extend.texi (Function Attributes): Document ifunc.
8012 * varasm.c (do_assemble_alias): Deal with ifuncs too.
8013
8014 2010-09-09 Hariharan Sandanagobalane <hariharan@picochip.com>
8015
8016 * config/picochip/picochip.c (picochip_reorg): Check for note_p for
8017 epilogue instruction move.
8018
8019 2010-09-09 Jan Hubicka <jh@suse.cz>
8020
8021 * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
8022 command line to allow more partitions than input files.
8023
8024 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
8025
8026 PR middle-end/44554
8027 * ira.c (ira): Switch off sharing spill slots if setjmp is called.
8028
8029 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
8030
8031 PR middle-end/40386
8032 * ira.c (pseudo_for_reload_consideration_p): Don't use
8033 flag_ira_share_spill_slots.
8034
8035 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8036
8037 * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
8038 point zero operands that fit into a single GPR.
8039 (s390_preferred_reload_class): Ensure we only return general-purpose
8040 register classes.
8041 * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
8042 floating-point zero operands into GPRs.
8043 ("*mov<mode>_64"): Likewise.
8044 ("mov<mode>"): Likewise using lhi.
8045
8046 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8047
8048 * config/s390/s390.c (s390_symref_operand_p): Return false for
8049 literal pool references.
8050 (s390_check_qrst_address): Update caller.
8051
8052 2010-09-09 Uros Bizjak <ubizjak@gmail.com>
8053
8054 * config/i386/predicates.md (ext_register_operand): Check that
8055 SUBREG_REG is really a register before looking for REGNO.
8056 (reg_not_xmm0_operand): Handle SUBREGs correctly.
8057 (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
8058
8059 2010-09-09 Jakub Jelinek <jakub@redhat.com>
8060
8061 * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
8062 * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
8063 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
8064 * print-rtl.c (print_rtx): Likewise.
8065 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
8066 * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
8067 for ADDR_EXPR with non-addressable object.
8068 * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
8069 (struct dw_val_struct): Add v.val_decl_ref.
8070 (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
8071 Handle DW_OP_GNU_implicit_pointer.
8072 (size_of_loc_descr): Likewise. Fix up DW_OP_call_ref size.
8073 (get_ref_die_offset_label): New function.
8074 (implicit_ptr_descriptor): New function.
8075 (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
8076 (loc_descriptor): Likewise.
8077 (gen_variable_die): Put even definitions into decl_die_table.
8078 (resolve_addr_in_expr): Resolve still unresolved
8079 DW_OP_GNU_implicit_pointer operands, if it can't be resolved
8080 return false.
8081 (dwarf2out_finish): Call output_location_lists after outputting
8082 .debug_info and .debug_abbrev instead of before.
8083
8084 2010-09-09 Roland McGrath <roland@redhat.com>
8085
8086 * dwarf2out.c (DWARF_REF_SIZE): Define.
8087 (size_of_loc_descr): Use it for DW_OP_call_ref.
8088
8089 2010-09-09 Alan Modra <amodra@gmail.com>
8090
8091 * doc/invoke.text: Reinstate mcmodel=medium.
8092 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
8093 CMODEL_MEDIUM as default.
8094 * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
8095 * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
8096 (toc_relative_ok, offsettable_ok_by_alignment): New functions.
8097 (rs6000_emit_move): Reinstate mcmodel=medium optimization.
8098
8099 2010-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8100
8101 PR target/45250
8102 * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
8103 hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
8104 (builtin_longjmp): Likewise.
8105 (allocate_stack): Use hard_frame_pointer_rtx instead of
8106 frame_pointer_rtx.
8107 * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
8108 * config/pa/pa.c (pa_internal_arg_pointer): Declare.
8109 (pa_can_eliminate): Likewise.
8110 (TARGET_INTERNAL_ARG_POINTER): Define.
8111 (TARGET_CAN_ELIMINATE): Define.
8112 (hppa_expand_prologue): Use hard frame pointer instead of soft frame
8113 pointer.
8114 (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
8115 (pa_internal_arg_pointer, pa_can_eliminate,
8116 pa_initial_elimination_offset): New.
8117 * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
8118 (HARD_FRAME_POINTER_REGNUM): Set to register three.
8119 (INITIAL_FRAME_POINTER_OFFSET): Delete.
8120 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
8121 Define.
8122 (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
8123 REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
8124 * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
8125 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
8126 REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
8127 new soft frame pointer.
8128 * config/pa/pa64-regs.h: Likewise.
8129
8130 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
8131
8132 * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
8133 numerical constant.
8134 (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
8135
8136 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
8137
8138 PR debug/45531
8139 * cfglayout.c (fixup_reorder_chain): Skip debug insns.
8140
8141 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
8142
8143 PR debug/45419
8144 PR debug/45408
8145 * tree-pretty-print.c (dump_generic_node): Disregard top-level
8146 qualifiers in otherwise equal MEM_REF pointer types.
8147 * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
8148 * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
8149
8150 2010-09-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8151
8152 PR target/44392
8153 * config/arm/arm.md (bswapsi2): Handle condition correctly
8154 for armv6 and optimize_size.
8155
8156 2010-09-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8157
8158 PR other/18555
8159 * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
8160
8161 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
8162
8163 * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
8164 symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
8165 ix86_expand_strlen, legitimate_pic_address_disp_p,
8166 ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
8167 ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
8168 ix86_check_movabs, ix86_secondary_memory_needed): Change function
8169 prototype to bool.
8170 * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
8171 return_in_memory_ms_64, ix86_check_movabs,
8172 symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
8173 legitimate_pic_address_disp_p, ix86_binary_operator_ok,
8174 ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
8175 ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
8176 ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
8177 ix86_secondary_memory_needed): Change to bool. Return
8178 "true" and "false" values.
8179 * config/i386/i386.md: Return "true" and "false" values.
8180
8181 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8182
8183 * doc/sourcebuild.texi (Effective-Target Keywords): Document
8184 run_expensive_tests.
8185
8186 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8187
8188 * toplev.c (output_stack_usage): Use lbasename instead of basename.
8189
8190 2010-09-08 Martin Jambor <mjambor@suse.cz>
8191
8192 PR other/45443
8193 * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
8194 at -O3.
8195
8196 2010-09-08 Richard Guenther <rguenther@suse.de>
8197
8198 * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
8199 (visit): Adjust.
8200 (iterative_hash_gimple_type): Likewise.
8201 (gimple_type_hash): Likewise.
8202 (gimple_register_type): Likewise.
8203 (print_gimple_types_stats): Likewise.
8204 (free_gimple_type_tables): Likewise.
8205
8206 2010-09-08 Michael Matz <matz@suse.de>
8207
8208 PR tree-optimization/43430
8209 * tree-vect-stmts.c (vectorizable_condition): Support multiple
8210 copies for conditional statements if it's not part of a reduction.
8211
8212 2010-09-08 Michael Matz <matz@suse.de>
8213
8214 PR tree-optimization/33244
8215 * tree-ssa-sink.c (statement_sink_location): Don't sink into
8216 empty loop latches.
8217
8218 2010-09-08 Richard Guenther <rguenther@suse.de>
8219
8220 PR tree-optimization/45578
8221 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
8222 Be more careful when transfering alignment information to
8223 the new induction variable.
8224 (copy_ref_info): Likewise.
8225
8226 2010-09-08 Richard Guenther <rguenther@suse.de>
8227
8228 * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
8229 * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
8230
8231 2010-09-08 Arnaud Charlet <charlet@adacore.com>
8232
8233 * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
8234 * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
8235
8236 2010-09-08 Kenneth Zadeck <zadeck@naturalbridge.com>
8237
8238 PR doc/45587
8239 * doc/md.texi: Fixed modes on several standard pattern names.
8240
8241 2010-09-08 Mingjie Xing <mingjie.xing@gmail.com>
8242
8243 * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
8244 (ashl<mode>3): ...this.
8245 (loongson_psra<V_suffix>): Rename to...
8246 (ashr<mode>3): ...this.
8247 (loongson_psrl<V_suffix>): Rename to...
8248 (lshr<mode>3): ...this.
8249 * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
8250 (CODE_FOR_loongson_psllw): Define.
8251 (CODE_FOR_loongson_psrlh): Define.
8252 (CODE_FOR_loongson_psrlw): Define.
8253 (CODE_FOR_loongson_psrah): Define.
8254 (CODE_FOR_loongson_psraw): Define.
8255
8256 2010-09-07 Richard Henderson <rth@redhat.com>
8257
8258 * tree-vect-data-refs.c: Include tm_p.h.
8259 * Makefile.in (tree-vect-data-refs.o): Update deps.
8260 * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
8261 Move delarations outside #ifdef RTX_CODE.
8262
8263 2010-09-07 Richard Henderson <rth@redhat.com>
8264
8265 * final.c (rest_of_handle_final): Unconditionally do
8266 output_function_exception_table before assemble_end_function.
8267
8268 2010-09-07 Jan Hubicka <jh@suse.cz>
8269
8270 * tree-inline.c (tree_inlinable_function_p): Do not test
8271 DECL_REPLACEABLE_P.
8272 * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
8273 update_callee_keys, cgraph_decide_inlining): Test function availability.
8274 * cif-code.def (OVERWRITABLE): New code.
8275
8276 2010-09-07 H.J. Lu <hjl.tools@gmail.com>
8277 Jack Howarth <howarth@bromo.med.uc.edu>
8278
8279 PR target/36502
8280 PR target/42313
8281 PR target/44651
8282 * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
8283 profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
8284 (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
8285 MAX macro.
8286
8287 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
8288
8289 * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
8290 Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
8291
8292 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
8293
8294 * config.gcc: Don't append t-android for Android targets.
8295
8296 * config/t-android: Removed.
8297
8298 2010-09-07 Richard Henderson <rth@redhat.com>
8299
8300 * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
8301 * doc/tm.texi.in: Add doc marker.
8302 * doc/tm.texi: Rebuild.
8303 * except.c (switch_to_exception_section): Always build.
8304 (output_one_function_exception_table): Move section switch,
8305 personality output, and label output ...
8306 (output_function_exception_table): ... here. Use the new
8307 personality hook.
8308
8309 * config/ia64/ia64.c (ia64_asm_emit_except_personality,
8310 ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
8311 TARGET_ASM_INIT_SECTIONS): New.
8312 (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
8313 make static.
8314 (TARGET_ASM_UNWIND_EMIT): Update to match.
8315 * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
8316
8317 * config/arm/arm.c (arm_asm_emit_except_personality): New.
8318 (arm_asm_init_sections): New.
8319 (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
8320
8321 2010-09-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8322
8323 * config/arm/arm.md: Remove unused variable.
8324
8325 2010-09-07 Anatoly Sokolov <aesok@post.ru>
8326
8327 * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
8328 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
8329 (m32r_memory_move_cost): New function.
8330
8331 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
8332
8333 * config.gcc: Append t-android for Android targets.
8334
8335 * config/t-android: New.
8336
8337 2010-09-07 Richard Henderson <rth@redhat.com>
8338
8339 * target.def (unwind_emit_before_insn): New hook.
8340 * doc/tm.texi.in: Add @hook marker for it.
8341 * doc/tm.texi: Rebuild.
8342 * final.c (final_scan_insn): Respect unwind_emit_before_insn.
8343
8344 2010-09-07 Martin Jambor <mjambor@suse.cz>
8345
8346 PR fortran/43665
8347 * ipa-cp.c (ipcp_versionable_function_p): Return false if there
8348 are any type attributes.
8349
8350 2010-09-07 Jan Hubicka <jh@suse.cz>
8351
8352 * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
8353 array_ref_low_bound in string access folding.
8354
8355 2010-09-07 Uros Bizjak <ubizjak@gmail.com>
8356
8357 PR target/45206
8358 * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
8359 eh_return fixup sequence.
8360
8361 2010-09-07 Jan Hubicka <jh@suse.cz>
8362
8363 * gimple-fold.c (maybe_fold_reference): Verify that operand is
8364 gimple_min_invariant.
8365
8366 2010-09-07 Richard Guenther <rguenther@suse.de>
8367
8368 PR middle-end/45569
8369 * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
8370 nor CONSTRUCTOR can trap.
8371 * tree-complex.c (update_complex_assignment): Update EH info.
8372
8373 2010-09-07 Richard Guenther <rguenther@suse.de>
8374
8375 PR middle-end/45569
8376 * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
8377 * passes.c (execute_function_todo): Do not verify anything if
8378 we saw errors.
8379
8380 2010-09-07 Richard Guenther <rguenther@suse.de>
8381
8382 * tree-pretty-print.c (dump_generic_node): Dump void types as void.
8383
8384 2010-09-07 Bernd Schmidt <bernds@codesourcery.com>
8385
8386 PR target/43137
8387 * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
8388 New define_mode_attrs.
8389 * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
8390 arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
8391 (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
8392 (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
8393 Remove pool_range attribute.
8394 (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
8395 arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
8396 pool_range and neg_pool_range attributes.
8397 * config/arm/thumb2.md (thumb2_zero_extendsidi2,
8398 thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
8399 thumb2_extendhidi2, thumb2_extendqidi2): Delete.
8400
8401 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
8402
8403 * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
8404 check glibc.
8405
8406 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
8407
8408 PR target/22152
8409 * config/i386/mmx.md (*mov<mode>_internal_rex64,
8410 *mov<mode>_internal_avx, *mov<mode>_internal,
8411 *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
8412 *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
8413
8414 2010-09-06 Mark Mitchell <mark@codesourcery.com>
8415
8416 * c-typeck.c (do_warn_double_promotion): Remove.
8417 * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
8418 Objective-C++ too.
8419
8420 2010-09-06 Anatoly Sokolov <aesok@post.ru>
8421
8422 * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
8423 * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
8424 * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
8425 argument type to reg_class_t. Change result type to bool.
8426 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
8427
8428 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
8429
8430 PR libobjc/19850
8431 * gthr-posix.h (__gthread_objc_thread_detach): Use
8432 _objc_thread_attribs when detaching a thread.
8433 * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
8434
8435 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
8436
8437 PR target/45524
8438 * configure.ac (enable_decimal_float): Set to $default_decimal_float.
8439 * configure: Regenerated.
8440
8441 2010-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8442
8443 * combine.c (try_combine): Set subst_low_luid to i0.
8444
8445 2010-09-06 Richard Guenther <rguenther@suse.de>
8446
8447 * tree.def (MISALIGNED_INDIRECT_REF): Remove.
8448 * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
8449 (build_aligned_type): Declare.
8450 * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
8451 (check_aligned_type): New function.
8452 (build_aligned_type): Likewise.
8453 * expr.c (expand_assignment): Handle misaligned stores via
8454 TARGET_MEM_REF and MEM_REF using movmisalign_optab.
8455 (expand_expr_real_1): Likewise.
8456 (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
8457 * tree-vect-stmts.c (vectorizable_store): Do not build
8458 MISALIGNED_INDIRECT_REF but initialize alignment information.
8459 (vectorizable_load): Likewise.
8460 * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
8461 handling.
8462 * cfgexpand.c (expand_debug_expr): Likewise.
8463 * dwarf2out.c (loc_list_from_tree): Likewise.
8464 * fold-const.c (maybe_lvalue_p): Likewise.
8465 (operand_equal_p): Likewise.
8466 (build_fold_addr_expr_with_type_loc): Likewise.
8467 * gimplify.c (gimplify_addr_expr): Likewise.
8468 (gimplify_expr): Likewise.
8469 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
8470 (verify_gimple_assign_single): Likewise.
8471 * tree-dump.c (dequeue_and_dump): Likewise.
8472 (tree_could_trap_p): Likewise.
8473 * tree-predcom.c (ref_at_iteration): Likewise.
8474 * tree-pretty-print.c (dump_generic_node): Likewise.
8475 (op_code_prio): Likewise.
8476 (op_symbol_code): Likewise.
8477 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
8478 * tree-ssa-loop-im.c (for_each_index): Likewise.
8479 (gen_lsm_tmp_name): Likewise.
8480 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
8481 (find_interesting_uses_address): Likewise.
8482 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
8483 * tree-ssa-operands.c (get_expr_operands): Likewise.
8484 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
8485 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
8486 (ao_ref_init_from_vn_reference): Likewise.
8487 * tree.c (staticp): Likewise.
8488 (build1_stat): Likewise.
8489 (reference_alias_ptr_type): Likewise.
8490 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
8491 * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
8492 MISALIGNED_INDIRECT_REF handling.
8493
8494 2010-09-06 Richard Guenther <rguenther@suse.de>
8495
8496 PR tree-optimization/45534
8497 * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
8498 (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
8499 on the target.
8500 (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
8501 valid on the target.
8502
8503 2010-09-06 Andreas Schwab <schwab@redhat.com>
8504
8505 * configure.ac: Quote argument of AC_MSG_WARN.
8506 * configure: Regenerate.
8507
8508 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
8509
8510 * sel-sched.c (move_cond_jump): Correct arguments to
8511 maybe_tidy_empty_bb.
8512 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
8513
8514 2010-09-06 Andrey Belevantsev <abel@ispras.ru>
8515
8516 PR rtl-optimization/44919
8517 * sel-sched.c (move_cond_jump): Remove assert, check that
8518 the several blocks case can only happen with mutually exclusive
8519 insns instead. Rewrite the movement code to support moving through
8520 several basic blocks.
8521
8522 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
8523
8524 * config/i386/i386.md (iptrsize): New mode attribute.
8525 (tp_seg): Ditto.
8526 (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
8527 mode iterator.
8528 (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
8529 (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
8530 (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
8531 (stack_tls_protect_set_<mode>): Ditto from
8532 stack_tls_protect_set_{si,di}. Use %@ to output segment register
8533 of thread base pointer load.
8534 (stack_tls_protect_test_<mode>): Ditto from
8535 stack_tls_protect_test_{si,di}. Use %@ to output segment register
8536 of thread base pointer load.
8537 (stack_protect_set): Rewrite using indirect functions.
8538 (stack_protect_test): Ditto.
8539 * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
8540 (ix86_print_operand): Handle '@'.
8541
8542 2010-09-05 Giuseppe Scrivano <gscrivano@gnu.org>
8543
8544 * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
8545 MINUS_EXPR.
8546
8547 2010-09-05 Mark Mitchell <mark@codesourcery.com>
8548
8549 * doc/invoke.texi: Document -Wdouble-promotion.
8550 * c-typeck.c (convert_arguments): Check for implicit conversions
8551 from float to double.
8552 (do_warn_double_promotion): New function.
8553 (build_conditional_expr): Use it.
8554 (build_binary_op): Likewise.
8555
8556 2010-09-05 Richard Guenther <rguenther@suse.de>
8557
8558 PR tree-optimization/45535
8559 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
8560 handle TMR_INDEX2. Make sure TMR_INDEX is not NULL before
8561 dereferencing it.
8562 (indirect_refs_may_alias_p): Likewise.
8563
8564 2010-09-05 Naveen H.S <naveen.S@kpitcummins.com>
8565
8566 * config/sh/sh.c (sh_option_override): Make static.
8567 Adjust comments. Declare.
8568 (sh_function_value_regno_p): Likewise.
8569 (sh_register_move_cost): Modify the arguments, make static.
8570 Adjust comments. Declare.
8571 (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
8572 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8573 * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
8574 REGISTER_MOVE_COST): Delete.
8575 * config/sh/sh-protos.h (sh_override_options): Delete.
8576 (sh_register_move_cost): Delete.
8577 (sh_function_value_regno_p): Delete.
8578
8579 2010-09-04 Anatoly Sokolov <aesok@post.ru>
8580
8581 * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
8582 m32r_function_value_regno_p): New functions.
8583 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8584 TARGET_FUNCTION_VALUE_REGNO_P): Declare.
8585 * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
8586 FUNCTION_VALUE_REGNO_P): Remove.
8587
8588 2010-09-04 Jan Hubicka <jh@suse.cz>
8589
8590 * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
8591 * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
8592 fold_read_from_constant_string.
8593
8594 * gimple.h (canonicalize_constructor_val): Declare.
8595 * gimple-fold.c (canonicalize_constructor_val): New function.
8596 (get_symbol_constant_value):Use it.
8597 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
8598
8599 2010-09-04 Jan Hubicka <jh@suse.cz>
8600
8601 * tree-switch-conversion.c (build_one_array): Set constructor to be
8602 static.
8603 * varpool.c (varpool_finalize_decl): Compute const_value_known.
8604
8605 2010-09-04 Richard Guenther <rguenther@suse.de>
8606
8607 PR bootstrap/45519
8608 * tree-flow.h (force_gimple_operand_1): Declare.
8609 (force_gimple_operand_gsi_1): Likewise.
8610 * gimplify.c (force_gimple_operand_1): New worker taking a
8611 gimple predicate for ...
8612 (force_gimple_operand): ... which now wraps it.
8613 (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
8614 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
8615 last change.
8616 * tree-ssa-address.c (gimplify_mem_ref_parts): Use
8617 force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
8618 (create_mem_ref): Likewise.
8619
8620 2010-09-04 Uros Bizjak <ubizjak@gmail.com>
8621
8622 * config/i386/predicates.md (sse_reg_operand): New predicate.
8623 * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
8624 predicate for operand 1.
8625 (XFmode push splitter): Use fp_register_operand predicate
8626 for operand 1.
8627 (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
8628 (SF-DF float_extend push splitter): Add reload_completed insn
8629 predicate.
8630 ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
8631 MODEF mode macro. Add reload_completed insn predicate.
8632
8633 2010-09-04 Paolo Bonzini <bonzini@gnu.org>
8634
8635 * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
8636 (struct df_extract_ref): Remove.
8637 (union df_ref_d): Remove extract_ref member.
8638 (df_ref_create): Remove last three arguments.
8639 (DF_REF_LOC): Remove DF_REF_EXTRACT case.
8640 * df-scan.c (df_ref_record): Remove last three arguments, do not
8641 pass them to df_ref_create_structure.
8642 (df_uses_record): Remove first and last three arguments. Replace
8643 first argument with DF_REF_REGULAR, adjust calls to remove the
8644 width, offset and mode. Always call recursively on the second
8645 and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
8646 (df_ref_create_structure): Remove first argument.
8647 (struct df_scan_problem_data): Remove ref_extract_pool.
8648 (df_scan_free_internal): Do not free it.
8649 (df_scan_alloc): Do not allocate it.
8650 (df_ref_create): Remove last three arguments, do not pass them to
8651 df_ref_create_structure.
8652 (df_free_ref): Remove DF_REF_EXTRACT case.
8653 (df_notes_rescan): Adjust call to df_uses_record.
8654 (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
8655 Remove DF_REF_EXTRACT case.
8656 (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
8657 Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
8658 and SUBREG definitions.
8659 (df_get_conditional_uses): Remove references to width/offset/mode,
8660 adjust call to df_ref_create_structure.
8661 (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
8662 df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
8663 calls to df_uses_record and df_ref_record.
8664 * fwprop.c (update_df): Remove references to width/offset/mode,
8665 adjust call to df_ref_create.
8666
8667 2010-09-03 Jan Hubicka <jh@suse.cz>
8668
8669 * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
8670 (build_cdtor_fns): Update use of build_cdtor.
8671
8672 2010-09-03 Joseph Myers <joseph@codesourcery.com>
8673
8674 * doc/options.texi (SeparateAlias): Document.
8675 * opt-functions.awk (switch_flags): Handle SeparateAlias.
8676 * opth-gen.awk: Generate enumeration names for options marked
8677 SeparateAlias, but not for those marked Ignore.
8678 * opts-common.c (generate_canonical_option): Don't output separate
8679 argument for options marked CL_SEPARATE_ALIAS.
8680 (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
8681 * opts.h (CL_SEPARATE_ALIAS): New.
8682 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
8683 CL_COMMON): Adjust definitions.
8684 * config/i386/darwin.opt, config/mips/sde.opt: New.
8685 * common.opt (fdump-final-insns): New.
8686 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
8687 i386/darwin.opt.
8688 (mips*-sde-elf*): Add mips/sde.opt.
8689 * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
8690 -mno-data-in-code and -mcode-xonly here.
8691 * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
8692 * gcc.c (option_map): Add "j" to --dump entry.
8693 (translate_options): Don't translate -d to -foutput-class-dir= here.
8694
8695 2010-09-03 Sebastian Pop <sebastian.pop@amd.com>
8696
8697 * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
8698 DR_IS_WRITE.
8699 (compute_all_dependences): Same.
8700 (create_rdg_edge_for_ddr): Same.
8701 * tree-data-ref.h (DR_IS_WRITE): New.
8702 (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
8703 * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
8704 (write_memrefs_written_at_least_once): Same.
8705 * tree-predcom.c (suitable_component_p): Same.
8706 (determine_roots_comp): Same.
8707 (execute_load_motion): Same.
8708 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
8709 (vect_enhance_data_refs_alignment): Same.
8710 (vect_analyze_group_access): Same.
8711
8712 2010-09-03 Joern Rennecke <joern.rennecke@embecosm.com>
8713
8714 PR testsuite/42843
8715 * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
8716 (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
8717
8718 2010-09-03 Marcin Baczynski <marbacz@gmail.com>
8719
8720 * dwarf2out.c (file scope): Remove #if0'd code.
8721 (gen_subprogram_die): Same.
8722
8723 2010-09-03 Jakub Jelinek <jakub@redhat.com>
8724
8725 PR middle-end/45484
8726 * dwarf2out.c (flush_queued_reg_saves): Rename to...
8727 (dwarf2out_flush_queued_reg_saves): ... this. No longer static.
8728 (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
8729 * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
8730 * config/i386/i386.c (output_set_got): Call it.
8731
8732 2010-09-03 Michael Matz <matz@suse.de>
8733
8734 PR middle-end/45415
8735 * tree-sra.c (sra_modify_assign): If we modify the statement,
8736 say so.
8737
8738 * tree-ssa.c (verify_ssa): Check number of operands and links
8739 per statement to agree.
8740
8741 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
8742 Iain Sandoe <iains@gcc.gnu.org>
8743
8744 PR target/45476
8745 * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
8746 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
8747 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
8748
8749 2010-09-03 Richard Guenther <rguenther@suse.de>
8750
8751 * lto-streamer-out.c (output_function): Output function
8752 start and end loci.
8753 * lto-streamer-in.c (input_function): Input function start
8754 and end loci.
8755
8756 2010-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8757
8758 * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
8759 * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
8760 * configure: Regenerate.
8761 * aclocal.m4: Regenerate.
8762
8763 2010-09-03 Jan Hubicka <jh@suse.cz>
8764
8765 PR lto/44812
8766 * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
8767 on functions/variables in other partition.
8768
8769 2010-09-03 Jan Hubicka <jh@suse.cz>
8770
8771 * cgraph.h (struct varpool_node): Add const_value_known.
8772 (varpool_decide_const_value_known): Declare.
8773 * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
8774 * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
8775 (input_varpool_node): Restore const_value_known.
8776 * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
8777 initializer folding.
8778 * ipa.c (ipa_discover_readonly_nonaddressable_var,
8779 function_and_variable_visibility): Compute const_value_known.
8780 * gimple-fold.c (get_symbol_constant_value): Use varpool for
8781 initializer folding.
8782 * varpool.c (varpool_decide_const_value_known): New function.
8783
8784 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
8785
8786 * config/i386/i386.md: Remove empty preparation statements
8787 from splitters.
8788
8789 2010-09-03 Jan Hubicka <jh@suse.cz>
8790
8791 * passes.c (rest_of_decl_compilation): Do not add local vars into
8792 varpool.
8793 * varpool.c (varpool_get_node, varpool_node): Sanity check that only
8794 static or extern vars are in varpool.
8795 (varpool_finalize_decl): Sanity check that only static vars are
8796 finalized.
8797
8798 2010-09-03 Jakub Jelinek <jakub@redhat.com>
8799
8800 PR debug/45500
8801 * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
8802 not just generic vectors with BLKmode.
8803
8804 2010-09-03 Richard Guenther <rguenther@suse.de>
8805
8806 * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
8807 Move TMR_OFFSET to second operand. Add TMR_INDEX2.
8808 * tree.h (TMR_SYMBOL): Remove.
8809 (TMR_BASE, TMR_OFFSET): Adjust.
8810 (TMR_INDEX2): New.
8811 * alias.c (ao_ref_from_mem): Use TMR_BASE.
8812 * builtins.c (get_object_alignment): Merge TMR_BASE and
8813 TMR_SYMBOL handling.
8814 * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
8815 * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
8816 handling. Also allow TARGET_MEM_REF as base address.
8817 (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
8818 * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
8819 base. Gimplify TMR_INDEX2.
8820 * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
8821 * tree-dfa.c (get_ref_base_and_extent): Likewise.
8822 (get_addr_base_and_unit_offset): Likewise.
8823 * tree-eh.c (tree_could_trap_p): Likewise.
8824 * tree-pretty-print.c (dump_generic_node): Likewise.
8825 * tree-ssa-address.c (tree_mem_ref_addr): Simplify. Handle TMR_INDEX2.
8826 (create_mem_ref_raw): Merge symbol and base. Move 2ndary
8827 base to index2.
8828 (get_address_description): Reconstruct addres description
8829 from merged TMR_BASE and TMR_INDEX2.
8830 (maybe_fold_tmr): Fold propagated addresses.
8831 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
8832 MEM_REF and TARGET_MEM_REF paths.
8833 (indirect_refs_may_alias_p): Likewise.
8834 * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
8835 instead of TMR_SYMBOL.
8836 * tree-ssa-operands.c (get_tmr_operands): Simplify.
8837 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
8838 according to changes ...
8839 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
8840 Split TARGET_MEM_REF into two fields plus the base.
8841 * tree.c (mem_ref_offset): Simplify.
8842 * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
8843 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
8844 Strip NOPs when folding MEM_REF addresses.
8845 * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
8846 * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
8847 (fold_gimple_assign): ... not here.
8848
8849 2010-09-03 Mingjie Xing <mingjie.xing@gmail.com>
8850
8851 * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
8852 * config/mips/mips.c (mips_shift_truncation_mask): New function.
8853 (TARGET_SHIFT_TRUNCATION_MASK): Define.
8854
8855 2010-09-02 Richard Henderson <rth@redhat.com>
8856
8857 * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
8858 instead of readelf in the test.
8859 (gcc_cv_as_cfi_sections_directive): Check for correct relocation
8860 in the .debug_frame section for coff targets.
8861 * configure: Rebuild.
8862
8863 2010-09-02 Anatoly Sokolov <aesok@post.ru>
8864
8865 * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
8866 * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
8867 * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
8868 (m32c_class_likely_spilled_p): Make static. Change argument type to
8869 reg_class_t. Change result type to bool.
8870
8871 2010-09-02 Michael Meissner <meissner@linux.vnet.ibm.com>
8872
8873 * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
8874 to convert (double)(long) into a single FRIZ instruction or not
8875 when -ffast-math is used.
8876
8877 * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
8878 (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
8879 or FRIZ instruction if -ffast-math.
8880 * config/rs6000/rs6000.md (friz): Ditto.
8881
8882 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
8883
8884 2010-09-02 Joseph Myers <joseph@codesourcery.com>
8885
8886 * opth-gen.awk (quote, comma): Remove unused variables.
8887
8888 2010-09-02 Ryan Mansfield <rmansfield@qnx.com>
8889
8890 * arm.c (arm_override_options): Correct fall-back code to use
8891 SUBTARGET_CPU_DEFAULT.
8892
8893 2010-09-02 Julian Brown <julian@codesourcery.com>
8894
8895 * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
8896 unspecs.
8897 (vcond<mode>, vcondu<mode>): New expanders.
8898 (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
8899 comparisons with zero.
8900 (neon_vcle<mode>, neon_vclt<mode>): New patterns.
8901 * config/arm/constraints.md (Dz): New constraint.
8902
8903 2010-09-02 Anatoly Sokolov <aesok@post.ru>
8904
8905 * target.def (class_likely_spilled_p): New hook.
8906 * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
8907 * doc/tm.texi: Regenerate.
8908 * targhooks.c (default_class_likely_spilled_p): New function.
8909 * targhooks.h (default_class_likely_spilled_p): Declare.
8910 * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
8911 * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
8912 TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
8913 Use fixed_reg_set instead of fixed_regs.
8914 * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
8915 * calls.c (avoid_likely_spilled_reg): Ditto.
8916 * ira-conflicts.c (ira_build_conflicts): Ditto.
8917 * ira.c (update_equiv_regs): Ditto.
8918 * mode-switching.c (create_pre_exit): Ditto.
8919 * regmove.c (find_matches): Ditto.
8920 (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
8921 * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
8922 (small_register_class_p): New inline function.
8923 (push_secondary_reload, find_reusable_reload, find_reloads): Use
8924 small_register_class_p instead of SMALL_REGISTER_CLASS_P.
8925
8926 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
8927 * config/i386/i386.c (ix86_class_likely_spilled_p): New.
8928 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
8929
8930 2010-09-02 Richard Guenther <rguenther@suse.de>
8931
8932 PR tree-optimization/44937
8933 PR tree-optimization/45412
8934 * ipa-split.c (split_function): Properly remove PHI nodes.
8935
8936 2010-09-02 Joseph Myers <joseph@codesourcery.com>
8937
8938 * opts.h (struct cl_option): Add warn_message field.
8939 (struct cl_decoded_option): Add warn_message field.
8940 * doc/options.texi (Ignore, Warn): Document.
8941 * opt-functions.awk (needs_state_p): Don't consider aliases or
8942 ignored options to need state saved.
8943 * optc-gen.awk: Handle Warn and Ignore.
8944 * opth-gen.awk: Output OPT_SPECIAL_ignore.
8945 * opts-common.c (decode_cmdline_option): Set warn_message field.
8946 Handle ignored options.
8947 (decode_cmdline_options_to_array, generate_option,
8948 generate_option_input_file): Set warn_message field.
8949 (read_cmdline_option): Generate warnings from warn_message field.
8950 Handle ignored options.
8951 * common.opt (Wunreachable-code, fargument-alias,
8952 fargument-noalias, fargument-noalias-global,
8953 fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
8954 floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
8955 fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
8956 ftree-salias): Mark Ignore.
8957 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
8958 -mintel-syntax and -mno-intel-syntax here.
8959 * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
8960 using Warn.
8961 * opts.c (common_handle_option): Don't handle options marked as
8962 ignored.
8963 (enable_warning_as_error): Handle ignored options.
8964
8965 2010-09-02 Joseph Myers <joseph@codesourcery.com>
8966
8967 PR driver/44076
8968 * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
8969 alias_target fields.
8970 * opt-functions.awk (opt_sanitized_name): Don't handle
8971 finline-limit=, Wlarger-than= and ftemplate-depth= specially.
8972 * optc-gen.awk: Generate alias fields.
8973 * opth-gen.awk: Explicitly give values for OPT_* enum constants.
8974 Don't generate such constants for aliases.
8975 * opts-common.c (generate_canonical_option): New.
8976 (decode_cmdline_option): Handle aliases. Use
8977 generate_canonical_option for known options instead of copying the
8978 input option text.
8979 * doc/options.texi (Alias): Document.
8980 * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
8981 fstack-check, specs): Mark as aliases.
8982 * gcc.c (driver_handle_option): Canonicalize -L options to joined
8983 arguments.
8984 (driver_handle_option): Don't handle OPT_specs.
8985 * opts.c (common_handle_option): Don't handle options marked as
8986 aliases.
8987 (enable_warning_as_error): Handle aliases.
8988 * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
8989 OPT_Wlarger_than_eq.
8990 * tree-optimize.c (tree_rest_of_compilation): Use
8991 OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
8992
8993 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
8994
8995 * config/i386/i386.md (nonmemory_operand): New mode attribute.
8996 (push memory peephole2): Macroize peepholes using SWI mode iterator.
8997 (move immediate to memory peephole2): Macroize peepholes using
8998 SWI124 mode iterator.
8999 (non-pairable NOT peephole2): Macroize peepholes using SWI124
9000 mode iterator.
9001 (simple lea add peephole2): Macroize peepholes using SWI48
9002 mode iterator.
9003 (simple lea mult peephole2): Ditto.
9004 (imul by 3,5,9 to lea peephole2): Ditto.
9005 (mov $-1, reg peephole2): Macroize peepholes using SWI248
9006 mode iterator.
9007 (imul $32bit_imm,mem,reg peephole2): Ditto.
9008 (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
9009
9010 2010-09-02 Ian Bolton <ian.bolton@arm.com>
9011
9012 * tree-ssa-loop-prefetch.c: Fix comment at head of file.
9013
9014 2010-09-02 Olivier Hainque <hainque@adacore.com>
9015
9016 PR middle-end/44763
9017 * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
9018 (allocno_priority_compare_func): Use it instead of a straight
9019 difference computation over priorities.
9020
9021 2010-09-02 Andi Kleen <ak@linux.intel.com>
9022
9023 * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
9024
9025 2010-09-02 Ira Rosen <irar@il.ibm.com>
9026
9027 * tree-vectorizer.h (get_later_stmt): New function.
9028 (vect_analyze_data_ref_dependences): Add argument.
9029 * tree-vect-loop.c (vect_analyze_loop): Update call to
9030 vect_analyze_data_ref_dependences.
9031 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
9032 New function.
9033 (vect_analyze_data_ref_dependence): Add argument for basic block
9034 dependencies. Check dependencies in basic block vectorization.
9035 (vect_analyze_data_ref_dependences): Add argument and update call to
9036 vect_analyze_data_ref_dependences.
9037 * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
9038 (vect_bb_vectorizable_with_dependencies): New.
9039 (vect_slp_analyze_bb): Check dependencies in basic block.
9040 (vect_schedule_slp_instance): Insert stores before the last store in
9041 SLP instance.
9042
9043 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
9044
9045 PR target/45476
9046 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
9047 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
9048
9049 2010-09-01 Jakub Jelinek <jakub@redhat.com>
9050
9051 PR middle-end/45458
9052 * bb-reorder.c (add_labels_and_missing_jumps): Treat
9053 bbs ending with throwing insns like blocks ending with a call.
9054 (fix_up_fall_thru_edges): Likewise.
9055
9056 2010-09-01 Nathan Froyd <froydnj@codesourcery.com>
9057
9058 * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
9059 (m32c_function_arg_advance): Delete.
9060 * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9061 * config/m32c/m32c.c (m32c_function_arg): Make static. Adjust
9062 comments. Take a const_tree and a bool. Declare.
9063 (m32c_function_arg_advance): Likewise.
9064 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9065
9066 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
9067
9068 PR target/45476
9069 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
9070 LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
9071 * config/i386/mingw32.h: ... here.
9072
9073 2010-09-01 Andi Kleen <ak@linux.intel.com>
9074
9075 PR lto/45475
9076 * lto-streamer-in.c (lto_input_ts_target_option): Add.
9077 (lto_input_tree_pointers): Call lto_input_ts_target_option.
9078 * lto-streamer-out (lto_output_ts_target_option): Add.
9079 (lto_output_tree_pointers): Call lto_output_ts_target_option.
9080
9081 2010-09-01 Kai Tietz <kai.tietz@onevision.com>
9082
9083 PR/target 45452
9084 * config/i386/cygwin.h: Change order of specified import libraries.
9085 * config/i386/mingw32.h: Likewise.
9086 * config/i386/t-cygwin: Likewise.
9087 * config/i386/t-mingw32: Likewise.
9088 * config/i386/t-mingw-w32: Likewise.
9089 * config/i386/t-mingw-w64: Likewise.
9090
9091 2010-09-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9092
9093 * config/arm/neon-schedgen.ml (core): New type.
9094 (allCores): List of supported cores.
9095 (availability_table): Add supported cores.
9096 (collate_bypasses): Accept core as a parameter.
9097 (worst_case_latencies_and_bypasses): Accept core as a parameter.
9098 (emit_insn_reservations): Accept core as a parameter. Use tuneStr
9099 and coreStr to get tune attribute and prefix for functional units.
9100 (emit_bypasses): Accept core name and use it.
9101 (calculate_per_core_availability_table): New.
9102 (filter_core): New.
9103 (calculate_core_availability_table): New.
9104 (main): Use calculate_core_availablity_table.
9105 * config/arm/cortex-a8-neon.md: Update copyright year.
9106 Regenerated from ml file and merged in.
9107 (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
9108 cortex_a8_neon_mrc.
9109
9110 2010-09-01 Ian Bolton <ian.bolton@arm.com>
9111
9112 * Makefile.in (tree-switch-conversion.o): Update dependencies.
9113
9114 2010-09-01 Richard Guenther <rguenther@suse.de>
9115
9116 * alias.c (ao_ref_from_mem): Adjust.
9117 * builtins.c (get_object_alignment): Likewise.
9118 * cfgexpand.c (expand_debug_expr): Likewise.
9119 * gimple.c (get_base_address): Likewise.
9120 * tree-dfa.c (get_ref_base_and_extent): Likewise.
9121 (get_addr_base_and_unit_offset): Likewise. Fix for
9122 both TMR_SYMBOL and TMR_BASE being set.
9123 * tree-eh.c (tree_could_trap_p): Likewise.
9124 * gimplify.c (gimplify_expr): Do not attempt to gimplify
9125 TMR_SYMBOL. Always gimplify TMR_BASE.
9126 * tree-cfg.c (verify_types_in_gimple_reference): Verify
9127 TMR_BASE if there is a TMR_SYMBOL.
9128 * tree-pretty-print.c (dump_generic_node): Adjust.
9129 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
9130 (tree_mem_ref_addr): Likewise.
9131 (create_mem_ref_raw): Likewise.
9132 (move_fixed_address_to_symbol): Likewise.
9133 (create_mem_ref): Likewise.
9134 (dump_mem_address): Likewise.
9135 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
9136 Fix for both TMR_SYMBOL and TMR_BASE being set.
9137 (indirect_refs_may_alias_p): Likewise.
9138 * tree-ssa-operands.c (get_tmr_operands): Adjust.
9139 * tree.def (TARGET_MEM_REF): Adjust documentation.
9140
9141 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
9142
9143 * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
9144 Rename from X86_TUNE_ADD_ESP_4.
9145 <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
9146 <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
9147 <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
9148 (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
9149 (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
9150 (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
9151 (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
9152 * config/i386/i386.c (initial_ix86_tune_features)
9153 <X86_TUNE_SINGLE_POP>: Invert members.
9154 <X86_TUNE_DOUBLE_POP>: Ditto.
9155 <X86_TUNE_SINGLE_PUSH>: Ditto.
9156 <X86_TUNE_DOUBLE_PUSH>: Ditto.
9157 * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
9158 No longer exported.
9159 (push peephole2 patterns): Macroize peepholes using P mode iterator.
9160 Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
9161 (pop peephole2 patterns): Macroize peepholes using P mode iterator.
9162 Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
9163
9164 2010-09-01 Eric Botcazou <ebotcazou@adacore.com>
9165
9166 * gimplify.c (gimplify_init_constructor): Do not create a temporary for
9167 a volatile LHS if the constructor has only one element.
9168
9169 2010-09-01 Mikael Pettersson <mikpe@it.uu.se>
9170
9171 PR bootstrap/45321
9172 * tree.c (stdarg_p): Make fntype parameter const.
9173 * tree.h (stdarg_p): Likewise.
9174 (function_args_iterator): Remove unused fntype field.
9175 (function_args_iter_init): Do not initialize fntype
9176 field. Make fntype parameter const.
9177
9178 2010-09-01 Richard Guenther <rguenther@suse.de>
9179
9180 * tree-vrp.c (adjust_range_with_scev): Use number of iteration
9181 estimate.
9182 (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
9183 (execute_vrp): Compute number of iteration estimates.
9184 * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
9185 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
9186 * tree-data-ref.c (estimated_loop_iterations): Adjust.
9187 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
9188 Infer loop bounds from undefined behavior based on a new parameter.
9189 (estimate_numbers_of_iterations): Likewise.
9190 (scev_probably_wraps_p): Adjust.
9191 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
9192
9193 2010-09-01 Nick Clifton <nickc@redhat.com>
9194
9195 * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
9196 where appropriate.
9197 (xstormy16_legitimate_address_p): Use true and false instead of 1
9198 and 0.
9199 (xstormy16_expand_prologue): Delete unused local variable 'insn'.
9200 (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
9201 magic constant 2.
9202 (xstormy16_expand_call): Fix comment at start of function.
9203
9204 2010-09-01 Nick Clifton <nickc@redhat.com>
9205
9206 * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
9207 when pushing accumulator register.
9208 (rx_get_stack_layout): Always save call clobbered registers inside
9209 interrupt handlers.
9210 * config/rx/rx-modes.def: Fix descriptive comment at start of file.
9211
9212 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
9213
9214 * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
9215 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
9216
9217 * libgcc-std.ver (GCC_4.6.0): Define version.
9218
9219 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
9220
9221 * tree-nested.c (convert_all_function_calls): Iterate until after the
9222 sum of static chains in the nest doesn't change.
9223
9224 2010-08-31 Anatoly Sokolov <aesok@post.ru>
9225
9226 * config/m32c/m32c.c (classes_intersect): Remove.
9227 (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
9228 reg_classes_intersect_p instead of classes_intersect.
9229 (class_can_hold_mode): Change arguments type from enum reg_class to
9230 reg_class_t. Use reg_class_contents instead of class_contents.
9231 (m32c_register_move_cost): Make static. Change arguments type from
9232 enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
9233 classes_intersect. Use reg_class_contents instead of class_contents.
9234 (m32c_memory_move_cost): Make static. Change arguments type from
9235 enum reg_class to reg_class_t.
9236 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
9237 * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
9238 * config/m32c/m32c-protos.h (m32c_register_move_cost,
9239 m32c_memory_move_cost): Remove.
9240
9241 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
9242
9243 * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
9244 (arm_function_arg): Delete.
9245 (arm_needs_doubleword_align): Take a const_tree.
9246 * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9247 * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
9248 (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
9249 (arm_function_arg): Make static. Take a const_tree and a bool.
9250 (arm_function_arg_advance): Likewise.
9251 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9252
9253 2010-08-31 Andi Kleen <ak@linux.intel.com>
9254
9255 * common.opt (fwhopr=): Update for -fwhopr=jobserver
9256 * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
9257 * lto-wrapper.c (run_gcc): Add jobserver mode.
9258 * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
9259 argument.
9260
9261 2010-08-31 Uros Bizjak <ubizjak@gmail.com>
9262
9263 * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
9264 (popsi1): Ditto.
9265 (*popdi1_epilogue): Ditto.
9266 (*popsi1_epilogue): Ditto.
9267 (popsi, popdi peephole2 patterns): Update peepholes for changed
9268 pop{si,di}1 and *pop{si,di}1_epilogue patterns.
9269
9270 (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
9271 (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
9272
9273 * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
9274 (override_options): Do not initialize removed ix86_gen_pop1.
9275 (gen_pop): New static function.
9276 (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
9277 (release_scratch_register_on_entry): Ditto.
9278 (ix86_restore_reg_using_pop): Ditto.
9279 (ix86_expand_epilogue): Ditto.
9280
9281 2010-08-31 Jakub Jelinek <jakub@redhat.com>
9282
9283 PR middle-end/45461
9284 * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
9285
9286 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
9287
9288 * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
9289 semicolons.
9290
9291 2010-08-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
9292
9293 * doc/extend.texi: Fix documentation of the return value of
9294 __builtin_choose_expr.
9295
9296 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
9297
9298 * config/v850/v850-protos.h (function_arg): Delete.
9299 * config/v850/v850.h (FUNCTION_ARG): Delete.
9300 (FUNCTION_ARG_ADVANCE): Move code to...
9301 * config/v850/v850.c (v850_function_arg_advance): ...here.
9302 (v850_function_arg): Make static. Take a const_tree and a bool.
9303 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9304
9305 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
9306
9307 * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
9308 these...
9309 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
9310 ...and these...
9311 * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
9312 ..to here..
9313 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
9314 ...and here.
9315 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9316
9317 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
9318
9319 * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
9320 Delete.
9321 * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9322 * config/rx/rx.c (rx_function_arg_size): Make static.
9323 (rx_function_arg): Likewise.
9324 (rx_function_arg_advance): New function.
9325 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9326
9327 2010-08-31 John Tytgat <John.Tytgat@aaug.net>
9328
9329 * config/arm/arm.c (arm_override_options): Remove superfluous test.
9330 Fix indentation.
9331
9332 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
9333
9334 * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
9335 (dwarf2out_decl) <CONST_DECL>: Likewise.
9336
9337 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
9338
9339 Stack usage support
9340 * common.opt (-fstack-usage): New option.
9341 * doc/invoke.texi (Debugging options): Document it.
9342 * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
9343 allocate_dynamic_stack_space.
9344 (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
9345 and propagate it to allocate_dynamic_stack_space.
9346 (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
9347 * calls.c (initialize_argument_information): Pass TRUE as 4th
9348 argument to allocate_dynamic_stack_space.
9349 (expand_call): Set current_function_has_unbounded_dynamic_stack_size
9350 to 1 when pushing a variable-sized argument onto the stack. Pass
9351 TRUE as 4th argument to allocate_dynamic_stack_space.
9352 Update current_function_pushed_stack_size.
9353 (emit_library_call_value_1): Likewise.
9354 * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
9355 CANNOT_ACCUMULATE. If flag_stack_usage, look into the size and
9356 attempt to find an upper bound. Remove redundant code for the
9357 SETJMP_VIA_SAVE_AREA case.
9358 * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
9359 * function.h (struct stack_usage): New structure.
9360 (current_function_static_stack_size): New macro.
9361 (current_function_dynamic_stack_size): Likewise.
9362 (current_function_pushed_stack_size): Likewise.
9363 (current_function_dynamic_alloc_count): Likewise.
9364 (current_function_has_unbounded_dynamic_stack_size): Likewise.
9365 (current_function_allocates_dynamic_stack_space): Likewise.
9366 (struct function): Add new field 'su'.
9367 * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
9368 add the value of the dynamic offset to the dynamic stack usage.
9369 (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
9370 for variable-sized objects.
9371 (prepare_function_start): Allocate cfun->su if flag_stack_usage.
9372 (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
9373 * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
9374 BUILT_IN_ALLOCA for variable-sized objects.
9375 * output.h (output_stack_usage): Declare.
9376 * toplev.c (stack_usage_file): New file pointer.
9377 (output_stack_usage): New function.
9378 (open_auxiliary_file): Likewise.
9379 (lang_dependent_init): Open file if flag_stack_usage is set.
9380 (finalize): Close file if stack_usage_file is not null.
9381 * tree.h (ALLOCA_FOR_VAR_P): New macro.
9382 * config/alpha/alpha.c (compute_frame_size): New function.
9383 (alpha_expand_prologue): Use it.
9384 (alpha_start_function): Likewise.
9385 (alpha_expand_epilogue): Likewise. Set stack usage info.
9386 * config/i386/i386.c (ix86_expand_prologue): Likewise.
9387 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
9388 * config/mips/mips.c (mips_expand_prologue): Likewise.
9389 * config/pa/pa.c (hppa_expand_prologue): Likewise.
9390 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
9391 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
9392
9393 2010-08-30 Zdenek Dvorak <ook@ucw.cz>
9394
9395 PR tree-optimization/45427
9396 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
9397 Handle the case that the exit is never taken correctly.
9398 (number_of_iterations_ne): Pass exit_must_be_taken to
9399 number_of_iterations_ne_max.
9400
9401 2010-08-30 Catherine Moore <clm@codesourcery.com>
9402
9403 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
9404 Infer -mdspr2 for the the 74K.
9405
9406 2010-08-30 Jakub Jelinek <jakub@redhat.com>
9407
9408 PR debug/45419
9409 * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
9410
9411 PR middle-end/45423
9412 * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
9413 and TRUTH_{AND,OR,XOR}_EXPR.
9414 * c-parser.c (c_parser_omp_atomic): Handle boolean
9415 {PRE,POST}_{INC,DEC}REMENT.
9416
9417 2010-08-30 Nathan Froyd <froydnj@codesourcery.com>
9418
9419 * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
9420 (function_arg): Delete.
9421 * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9422 (FUNCTION_INCOMING_ARG): Delete.
9423 * config/xtensa/xtensa.c (function_arg_advance): Rename to...
9424 (xtensa_function_arg_advance): ...this. Make static. Take a const_tree
9425 and a bool.
9426 (function_arg): Rename to...
9427 (xtensa_function_arg_1): ...this. Make static. Take a const_tree and
9428 a bool.
9429 (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
9430 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9431 (TARGET_FUNCTION_INCOMING_ARG): Define.
9432
9433 2010-08-30 Richard Guenther <rguenther@suse.de>
9434
9435 PR tree-optimization/21602
9436 * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
9437 using points-to information.
9438
9439 2010-08-30 H.J. Lu <hongjiu.lu@intel.com>
9440
9441 * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
9442
9443 2010-08-30 Richard Guenther <rguenther@suse.de>
9444
9445 PR tree-optimization/45449
9446 * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
9447 variables.
9448
9449 2010-08-30 Joseph Myers <joseph@codesourcery.com>
9450
9451 * opts.h (CL_ERR_NEGATIVE): Define.
9452 * opts.c (unknown_option_callback): Don't postpone warnings for
9453 options marked with CL_ERR_NEGATIVE.
9454 * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
9455 for negative versions of CL_REJECT_NEGATIVE options.
9456
9457 2010-08-30 Uros Bizjak <ubizjak@gmail.com>
9458
9459 * config/i386/i386.md (zero_extendsidi2_1): Rename from
9460 zero_extendsidi2_32.
9461 (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
9462 using SWI12 mode iterator.
9463 (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
9464 to define_insn_and_split pattern.
9465 (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
9466 using SWI24 mode iterator.
9467 (*zero_extendqi<mode>2_and): Macroize insn from
9468 *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
9469 (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
9470 *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
9471 SWI24 mode iterator.
9472 (*zero_extendqi<mode>2_movzbl): Ditto from
9473 *zero_extendqi{hi,si}2_movzbl.
9474 (extendsidi2_1): Rename from extendsidi2_32.
9475 (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
9476 SWI12 mode iterator.
9477
9478 2010-08-29 Eric Botcazou <ebotcazou@adacore.com>
9479
9480 * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
9481 general purpose registers.
9482 (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
9483 * config/ia64/ia64.md (*movcci): Change to named pattern. Deal
9484 with general purpose registers and memory operands. Add associated
9485 CCImode post-reload splitter.
9486 * config/ia64/div.md: Change BImode to CCImode throughout.
9487
9488 2010-08-28 Eric Botcazou <ebotcazou@adacore.com>
9489
9490 * config/ia64/ia64.md (cstorebi4): Fix thinko.
9491
9492 2010-08-28 Hariharan Sandanagobalane <hariharan@picochip.com>
9493
9494 * config/picochip/picochip.c (reorder_var_tracking_notes): This
9495 function was dropping debug insns which caused PR45299.
9496
9497 2010-08-28 Uros Bizjak <ubizjak@gmail.com>
9498
9499 * config/i386/sse.md (extsuffix): New code attribute.
9500 (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
9501 and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
9502 (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
9503 and sse4_1_zero_extendv4qiv4si2.
9504 (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
9505 and sse4_1_zero_extendv2qiv2di2.
9506 (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
9507 and sse4_1_zero_extendv4hiv4si2.
9508 (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
9509 and sse4_1_zero_extendv2hiv2di2.
9510 (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
9511 and sse4_1_zero_extendv2siv2di2
9512
9513 (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
9514 using any_extend code iterator.
9515 (*avx_<s>mulv8hi3_highpart): Macroize insn from
9516 *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
9517 (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
9518
9519 * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
9520 gen_sse4_1_sign_extend* functions.
9521 (struct builtin_description bdesc_args): Ditto.
9522
9523 2010-08-27 Xinliang David Li <davidxl@google.com>
9524
9525 PR/45422
9526 * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
9527 (iv_ca_set_no_cp): Update used inv expr count.
9528 (iv_ca_set_cp): Ditto.
9529 (iv_ca_new): Initialize new member.
9530 (iv_ca_free): Free memory.
9531
9532 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
9533
9534 * config/sh/sh-protos.h (sh_function_arg): Delete.
9535 (sh_function_arg_advance): Delete.
9536 * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9537 (PASS_IN_REG_P): Eliminate cast.
9538 * config/sh/sh.c (sh_function_arg_advance): Make static. Take a
9539 const_tree and a bool.
9540 (sh_function_arg): Likewise.
9541 (sh_output_mi_thunk): Call sh_function_arg_advance) and
9542 sh_function_arg.
9543 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9544
9545 2010-08-27 Naveen H.S <naveen.S@kpitcummins.com>
9546 Kaz Kojima <kkojima@gcc.gnu.org>
9547
9548 * config/sh/sh.c (push_regs): Emit movml for interrupt handler
9549 when possible.
9550 (sh_expand_epilogue): Likewise.
9551 * config/sh/sh.md (movml_push_banked): New insn.
9552 (movml_pop_banked): Likewise.
9553
9554 2010-08-28 Bernd Schmidt <bernds@codesourcery.com>
9555
9556 * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
9557 gen_regexp_oneof, gen_regexp_sequence): Use the string found
9558 in vector element 0 rather than the original string when there's
9559 only one element.
9560 (gen_regexp): Remove extra semicolon.
9561
9562 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
9563 thumb2_movsf_vfp): Set attribute "insn".
9564 * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
9565 not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
9566 thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
9567 arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
9568 arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
9569 thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
9570 thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
9571 movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
9572 if_not_move, if_shift_move, if_move_shift, if_shift_shift,
9573 if_not_arith, if_arith_not, cond_move_not): Likewise.
9574
9575 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
9576
9577 * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
9578 New declaration.
9579 (rs6000_allocate_stack_temp): Ditto.
9580 (rs6000_expand_convert_si_to_sfdf): Ditto.
9581
9582 * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
9583 line. Update the options set if power6 or power7 server/embedded
9584 type options are used. If we give a warning for no vsx under
9585 -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
9586 (rs6000_allocate_stack_temp): New function to allocate a stack
9587 tempoary and adjust the address so it meets either REG+OFFSET or
9588 REG+REG addressing requirements.
9589 (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
9590 that they can be used with the LFIWAX/LFIWZX instrucitons.
9591 (rs6000_expand_convert_si_to_sfdf): New helper funciton for
9592 converting signed/unsigned SImode to either SFmode/DFmode.
9593
9594 * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
9595 whether certain instructions can be generated.
9596 (TARGET_FCTIDZ): Ditto.
9597 (TARGET_STFIWX): Ditto.
9598 (TARGET_LFIWAX): Ditto.
9599 (TARGET_LFIWZX): Ditto.
9600 (TARGET_FCFIDS): Ditto.
9601 (TARGET_FCFIDU): Ditto.
9602 (TARGET_FCFIDUS): Ditto.
9603 (TARGET_FCTIDUZ): Ditto.
9604 (TARGET_FCTIWUZ): Ditto.
9605
9606 * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
9607 (UNSPEC_FCTID): Ditto.
9608 (UNSPEC_LFIWAX): Ditto.
9609 (UNSPEC_LFIWZX): Ditto.
9610 (UNSPEC_FCTIWUZ): Ditto.
9611 (rreg): Use correct constraints.
9612 (SI_CONVERT_FP): New mode attribute for floating point conversion
9613 tests.
9614 (E500_CONVERT): Ditto.
9615 (lfiwax): New insns for converting from integer to floating point
9616 utilizing newer instructions. Attempt to optimize conversions
9617 that come from memory so that we don't load the value into a GPR,
9618 spill it to the stack and reload it into a FPR.
9619 (floatsi<mode>2_lfiwax): Ditto.
9620 (floatsi<mode>2_lfiwax_mem): Ditto.
9621 (floatsi<mode>2_lfiwax_mem2): Ditto.
9622 (lfiwzx): Ditto.
9623 (floatunssi<mode>2_lfiwzx): Ditto.
9624 (floatunssi<mode>2_lfiwzx_mem): Ditto.
9625 (floatunssi<mode>2_lfiwzx_mem2): Ditto.
9626 (floatdidf2_mem): Ditto.
9627 (floatunsdidf2_fcfidu): Ditto.
9628 (floatunsdidf2_mem): Ditto.
9629 (floatunsdisf2): Ditto.
9630 (floatunsdisf2_fcfidus): Ditto.
9631 (floatunsdisf2_mem): Ditto.
9632 (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
9633 Use FCFID on 32-bit hosts that support it.
9634 (floatsidf2_internal): Ditto.
9635 (floatunssisf2): Ditto.
9636 (floatunssidf2): Ditto.
9637 (floatunssidf2_internal): Ditto.
9638 (floatsisf2): Ditto.
9639 (floatdidf2): Ditto.
9640 (floatdidf2_fpr): Ditto.
9641 (floatunsdidf2): Ditto.
9642 (floatdisf2): Ditto.
9643 (floatdisf2_fcfids): Ditto.
9644 (floatdisf2_internal1): Ditto.
9645 (fixuns_truncsfsi2): Delete, merge into common pattern for both
9646 SF/DF. Add power7 support.
9647 (fix_truncsfsi2): Ditto.
9648 (fixuns_truncdfsi2): Ditto.
9649 (fixuns_truncdfdi2): Ditto.
9650 (fix_truncdfsi2): Ditto.
9651 (fix_truncdfsi2_internal): Ditto.
9652 (fix_truncdfsi2_internal_gfxopt): Ditto.
9653 (fix_truncdfsi2_mfpgpr): Ditto.
9654 (fctiwz): Ditto.
9655 (btruncdf2): Ditto.
9656 (btruncdf2_fpr): Ditto.
9657 (btructsf2): Ditto.
9658 (ceildf2): Ditto.
9659 (ceildf2_fpr): Ditto.
9660 (ceilsf2): Ditto.
9661 (floordf2): Ditto.
9662 (floordf2_fpr): Ditto.
9663 (floorsf2): Ditto.
9664 (rounddf2): Ditto.
9665 (rounddf2_fpr): Ditto.
9666 (roundsf2): Ditto.
9667 (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
9668 (fix_trunc<mode>di2): Ditto.
9669 (fixuns_trunc<mode>si2): Ditto.
9670 (fixuns_trunc<mode>di2): Ditto.
9671 (fctiwz_<mode>): Ditto.
9672 (btrunc<mode>2): Ditto.
9673 (btrunc<mode>2_fpr): Ditto.
9674 (ceil<mode>2): Ditto.
9675 (ceil<mode>2_fpr): Ditto.
9676 (floor<mode>2): Ditto.
9677 (float<mode>2_fpr): Ditto.
9678 (round<mode>2): Ditto.
9679 (round<mode>2_fpr): Ditto.
9680 (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
9681 (fixuns_trunc<mode>si2_stfiwx): Ditto.
9682 (fix_truncdfsi2_internal): Ditto.
9683 (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
9684 converted value on stack, loaded into GPR, and then stored into
9685 the final destination.
9686 (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
9687 FCTIDZ.
9688 (lrint<mode>di2): New insn, provide the lrint builtin functions.
9689 (ftruncdf2): Delete, unused.
9690 (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
9691
9692 * config/rs6000/vsx.md (toplevel): Update copyright year.
9693 (VSr2): Use "ws" contraint for DFmode, not "!r#r".
9694 (VSr3): Ditto.
9695
9696 2010-08-27 Basile Starynkevitch <basile@starynkevitch.net>
9697 Jeremie Salvucci <jeremie.salvucci@free.fr>
9698
9699 * gengtype.c (output_type_enum): Test the right union member.
9700
9701 2010-08-27 Uros Bizjak <ubizjak@gmail.com>
9702
9703 PR target/41484
9704 * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
9705 operands for operand 1.
9706 (sse4_1_extendv4qiv4si2): Ditto.
9707 (sse4_1_extendv2qiv2di2): Ditto.
9708 (sse4_1_extendv4hiv4si2): Ditto.
9709 (sse4_1_extendv2hiv2di2): Ditto.
9710 (sse4_1_extendv2siv2di2): Ditto.
9711 (sse4_1_zero_extendv8qiv8hi2): Ditto.
9712 (sse4_1_zero_extendv4qiv4si2): Ditto.
9713 (sse4_1_zero_extendv2qiv2di2): Ditto.
9714 (sse4_1_zero_extendv4hiv4si2): Ditto.
9715 (sse4_1_zero_extendv2hiv2di2): Ditto.
9716 (sse4_1_zero_extendv2siv2di2): Ditto.
9717 (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
9718 (*sse4_1_extendv4qiv4si2): Ditto.
9719 (*sse4_1_extendv2qiv2di2): Ditto.
9720 (*sse4_1_extendv4hiv4si2): Ditto.
9721 (*sse4_1_extendv2hiv2di2): Ditto.
9722 (*sse4_1_extendv2siv2di2): Ditto.
9723 (*sse4_1_zero_extendv8qiv8hi2): Ditto.
9724 (*sse4_1_zero_extendv4qiv4si2): Ditto.
9725 (*sse4_1_zero_extendv2qiv2di2): Ditto.
9726 (*sse4_1_zero_extendv4hiv4si2): Ditto.
9727 (*sse4_1_zero_extendv2hiv2di2): Ditto.
9728 (*sse4_1_zero_extendv2siv2di2): Ditto.
9729
9730 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
9731
9732 * config/mips/mips-protos.h (mips_function_arg_advance): Delete
9733 (mips_function_arg): Delete.
9734 (mips_function_arg_boundary): Take a const_tree.
9735 * config/mips/mips.c (mips_function_arg_boundary): Likewise.
9736 (mips_arg_info): Likewise.
9737 (mips_setup_incoming_varargs): Call mips_function_arg_advance
9738 instead of FUNCTION_ARG_ADVANCE.
9739 (mips_function_arg_advance): Adjust prototype. Make static.
9740 (mips_function_arg): Likewise.
9741 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9742 * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
9743
9744 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
9745
9746 * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9747 * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
9748 (function_arg): Delete.
9749 (function_arg_boundary): Take a const_tree.
9750 * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
9751 (rs6000_spe_function_arg): Likewise.
9752 (rs6000_parm_start): Likewise.
9753 (rs6000_arg_size): Likewise.
9754 (rs6000_darwin64_record_arg_advance_recurse): Likewise.
9755 (rs6000_darwin64_record_arg): Likewise. Take a bool instead of an int.
9756 (rs6000_mixed_function_arg): Likewise.
9757 (function_arg): Rename to...
9758 (rs6000_function_arg): ...this.
9759 (function_arg_advance): Rename to...
9760 (rs6000_function_arg_advance_1): ...this
9761 (rs6000_function_arg_advance): New function. Call it.
9762 (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
9763 (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
9764 (rs6000_function_value): Likewise.
9765 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9766
9767 2010-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9768
9769 * config/arm/arm.md (enabled): Test the value of arch_enabled
9770 rather than just using it.
9771
9772 2010-08-27 Olivier Hainque <hainque@adacore.com>
9773 Eric Botcazou <ebotcazou@adacore.com>
9774
9775 * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
9776 cover all the possible offsets from this base.
9777 (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
9778
9779 2010-08-26 Jakub Jelinek <jakub@redhat.com>
9780
9781 PR tree-optimization/44485
9782 * calls.c (flags_from_decl_or_type): For const or pure
9783 noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
9784 together with ECF_CONST resp. ECF_PURE.
9785 * builtins.c (expand_builtin): Use flags_from_decl_or_type
9786 instead of querying flags directly.
9787 * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
9788 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
9789
9790 2010-08-26 Richard Guenther <rguenther@suse.de>
9791
9792 PR tree-optimization/45255
9793 * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
9794 and externals are also invariant.
9795
9796 2010-08-25 Jakub Jelinek <jakub@redhat.com>
9797
9798 PR rtl-optimization/44858
9799 * combine.c (try_combine): If recog_for_combine added CLOBBERs to
9800 newi2pat, make sure they don't affect newpat.
9801
9802 PR rtl-optimization/45400
9803 * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
9804 SUBREG_REG if both modes are of MODE_INT class.
9805
9806 2010-08-25 Julian Brown <julian@codesourcery.com>
9807
9808 * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
9809 * config/arm/arm.md (generic_sched): No for Cortex-A5.
9810 (generic_vfp): Likewise.
9811 (cortex-a5.md): Include.
9812 * config/arm/cortex-a5.md: New.
9813
9814 2010-08-25 Richard Guenther <rguenther@suse.de>
9815
9816 * alias.c (get_alias_set): Assign a single alias-set to all pointers.
9817 * gimple.c (gimple_get_alias_set): Remove special handling
9818 for pointers.
9819
9820 2010-08-25 Bernd Schmidt <bernds@codesourcery.com>
9821
9822 PR middle-end/45355
9823 * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
9824 dead_or_set_p when computing i0_feeds_i2_n.
9825
9826 * combine.c (find_split_point): Undo canonicalization of multiply-add
9827 to (minus x (mult)) when it seems likely that this will increase the
9828 chances of a split.
9829
9830 2010-08-25 Richard Guenther <rguenther@suse.de>
9831
9832 PR lto/44562
9833 * lto-streamer.c (lto_record_common_node): Do not mess with
9834 TYPE_CANONICAL when not in lto.
9835 * gimple.c (gimple_register_type): Likewise.
9836
9837 2010-08-25 Richard Guenther <rguenther@suse.de>
9838
9839 PR tree-optimization/45316
9840 * tree-ssa-pre.c (eliminate): Properly clean EH info.
9841
9842 2010-08-25 Richard Guenther <rguenther@suse.de>
9843
9844 PR tree-optimization/45393
9845 * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
9846 and clean EH info. Avoid SSA update.
9847 (execute_cse_sincos): Cleanup the CFG if it has changed.
9848
9849 2010-08-25 Richard Guenther <rguenther@suse.de>
9850
9851 PR middle-end/45379
9852 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
9853 TARGET_MEM_REF in alignment computation.
9854
9855 2010-08-25 Jakub Jelinek <jakub@redhat.com>
9856
9857 PR tree-optimization/45059
9858 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
9859 type conversions from newop{1,2}. Assert t is a comparison and
9860 newop{1,2} after the stripping are gimple vals.
9861
9862 2010-08-25 Tejas Belagod <tejas.belagod@arm.com>
9863
9864 * config/arm/iterators.md (VU, SE, V_widen_l): New.
9865 (V_unpack, US): New.
9866 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
9867 (vec_unpack<US>_lo_<mode>): Likewise.
9868 (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
9869 (neon_vec_unpack<US>_lo_<mode>): Likewise.
9870 (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
9871 (vec_widen_<US>mult_hi_<mode>): Likewise.
9872 (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
9873 (neon_vec_<US>mult_hi_<mode>"): Likewise.
9874 (neon_unpack<US>_<mode>): Widening move intermediate step for
9875 vectorizing without -mvectorize-with-neon-quad.
9876 (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
9877 for vectorizing without -mvectorize-with-neon-quad.
9878 * config/arm/predicates.md (vect_par_constant_high): Check for
9879 high-half lanes of a vector.
9880 (vect_par_constant_low): Check for low-half lanes of a vector.
9881
9882 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
9883
9884 * tree-if-conv.c (struct ifc_dr): New.
9885 (IFC_DR): New.
9886 (DR_WRITTEN_AT_LEAST_ONCE): New.
9887 (DR_RW_UNCONDITIONALLY): New.
9888 (memref_read_or_written_unconditionally): Use the cached values
9889 when possible.
9890 (write_memref_written_at_least_once): Same.
9891 (if_convertible_loop_p): Initialize and free DR->aux fields.
9892
9893 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
9894
9895 * gimple.c (gimple_could_trap_p_1): Not static anymore.
9896 Pass an extra bool parameter include_mem.
9897 (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
9898 (gimple_assign_rhs_could_trap_p): Same.
9899 * gimple.h (gimple_could_trap_p_1): Declared.
9900 * tree-data-ref.h (same_data_refs_base_objects): New.
9901 (same_data_refs): New.
9902 * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
9903 (write_memrefs_written_at_least_once): New.
9904 (ifcvt_memrefs_wont_trap): New.
9905 (operations_could_trap): New.
9906 (ifcvt_could_trap_p): New.
9907 (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
9908 Gets a vector of data refs.
9909 (if_convertible_stmt_p): Same.
9910 (if_convertible_loop_p_1): New.
9911 (if_convertible_loop_p): Call if_convertible_loop_p_1.
9912
9913 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
9914
9915 * common.opt (ftree-loop-if-convert-stores): New flag.
9916 * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
9917 * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI. Insert
9918 the created statement before GSI.
9919 (if_convertible_phi_p): Allow virtual phi nodes when
9920 flag_loop_if_convert_stores is set.
9921 (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
9922 Do not handle types that do not match is_gimple_reg_type.
9923 Remove loop and bb parameters. Call gimple_could_trap_p instead of
9924 when flag_loop_if_convert_stores is set, as LHS can contain
9925 memory refs.
9926 (if_convertible_stmt_p): Remove loop and bb parameters. Update calls
9927 to if_convertible_gimple_assign_stmt_p.
9928 (if_convertible_loop_p): Update call to if_convertible_stmt_p.
9929 (replace_phi_with_cond_gimple_assign_stmt): Renamed
9930 predicate_scalar_phi. Do not handle virtual phi nodes.
9931 (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
9932 Call predicate_scalar_phi.
9933 (insert_gimplified_predicates): Insert the gimplified predicate of a BB
9934 just after the labels for flag_loop_if_convert_stores, otherwise
9935 insert the predicate in the end of the BB.
9936 (predicate_mem_writes): New.
9937 (combine_blocks): Call predicate_all_scalar_phis. When
9938 flag_loop_if_convert_stores is set, call predicate_mem_writes.
9939 (tree_if_conversion): Call mark_sym_for_renaming when
9940 flag_loop_if_convert_stores is set.
9941 (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
9942 flag_loop_if_convert_stores is set.
9943
9944 2010-08-24 Anatoly Sokolov <aesok@post.ru>
9945
9946 * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
9947 pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
9948 (pa_function_value): Make static.
9949 (override_options): Rename to...
9950 (pa_option_override): ...this. Make static.
9951 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
9952 TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
9953 TARGET_OPTION_OVERRIDE): Define.
9954 * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
9955 LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
9956 Remove.
9957 * config/pa/pa-protos.h (override_options): Remove.
9958
9959 2010-08-24 Richard Guenther <rguenther@suse.de>
9960
9961 PR middle-end/45379
9962 * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
9963 if addr->index is NULL or zero.
9964 * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
9965 TARGET_MEM_REF more properly.
9966 (indirect_ref_may_alias_decl_p): Likewise.
9967 * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
9968 * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
9969
9970 2010-08-23 Anatoly Sokolov <aesok@post.ru>
9971
9972 * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
9973 (m32c_override_options): Rename to...
9974 (m32c_option_override): ...this. Make static.
9975 (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
9976 * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
9977 Remove.
9978 * config/m32c/m32c-protos.h (m32c_override_options,
9979 m32c_function_value_regno_p): Remove.
9980
9981 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
9982
9983 * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
9984 Fix a typo in a previous commit.
9985
9986 2010-08-23 Kai Tietz <kai.tietz@onevision.com>
9987
9988 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
9989 Pre-initialize innerloop_iters to one.
9990
9991 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
9992
9993 * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
9994 existing static function global.
9995
9996 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
9997 is changed to global.
9998
9999 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
10000 may_be_nonaddressable_p on base, and don't collect this reference
10001 if the address of the base could not be taken.
10002
10003 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
10004
10005 * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
10006 enable the compiler to autovectorize mathmetical functions for
10007 power7 using the Mathematical Acceleration Subsystem library.
10008
10009 * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
10010 handle which vector math library we have.
10011 (rs6000_override_options): Add -mveclibabi=mass support.
10012 (rs6000_builtin_vectorized_libmass): New function to handle auto
10013 vectorizing math functions that are in the MASS library.
10014 (rs6000_builtin_vectorized_function): Call it.
10015
10016 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
10017 -mveclibabi=mass.
10018
10019 2010-08-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10020
10021 PR boehm-gc/34544
10022 * gthr-posix.h (__gthread_active_init): Delete.
10023 (__gthread_active_p): Do activity check here.
10024 Don't include errno.h on hppa-hpux. Update comment.
10025 * gthr-posix95.h (__gthread_active_init): Delete.
10026 (__gthread_active_p): Do activity check here.
10027 Don't include errno.h on hppa-hpux. Update comment.
10028 * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
10029 * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
10030 add -lpthread when -mt or -pthread is specified.
10031 * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
10032 (LINK_GCC_C_SEQUENCE_SPEC): Define.
10033 * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
10034 (stublib.c, pthread_default_stacksize_np-stub.o,
10035 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
10036 $(T)libgcc_stub.a): Add methods.
10037 * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
10038 (stublib.c, pthread_default_stacksize_np-stub.o,
10039 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
10040 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
10041 pthread_mutex_unlock): New stubs.
10042
10043 2010-08-22 Joseph Myers <joseph@codesourcery.com>
10044
10045 * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
10046 * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
10047 options.
10048 * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
10049 * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
10050 * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
10051 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
10052 * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
10053 "-l".
10054 * cppspec.c: Include opts.h.
10055 (lang_specific_driver): Use cl_decoded_option structures.
10056 * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
10057 * doc/tm.texi: Regenerate.
10058 * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
10059 (driver_handle_option): Allow driver options needing no special
10060 processing.
10061 (process_command): Decode options before call to
10062 lang_specific_driver. Pass decoded options to
10063 lang_specific_driver.
10064 * gcc.h (lang_specific_driver): Update prototype.
10065 * gccspec.c: Include opts.h.
10066 (lang_specific_driver): Use cl_decoded_option structures.
10067 * opts-common.c (option_ok_for_language, generate_option,
10068 generate_option_input_file): New.
10069 (decode_cmdline_option): Use option_ok_for_language.
10070 (decode_cmdline_options_to_array): Use generate_option_input_file.
10071 (handle_generated_option): Use generate_option.
10072 * opts.h (generate_option, generate_option_input_file): Declare.
10073
10074 2010-08-22 Anatoly Sokolov <aesok@post.ru>
10075
10076 * config/mips/mips.c (mips_override_options): Rename to...
10077 (mips_option_override): ...this. Make static.
10078 (TARGET_OPTION_OVERRIDE): Define.
10079 (mips_in_small_data_p): Update comment.
10080 * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
10081 (FIXED_REGISTERS): Update comment.
10082 * config/mips/mips-protos.h (mips_override_options): Remove.
10083
10084 2010-08-21 Olivier Hainque <hainque@adacore.com>
10085
10086 * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
10087
10088 2010-08-21 Olivier Hainque <hainque@adacore.com>
10089
10090 * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
10091 ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
10092
10093 2010-08-20 Jan Hubicka <jh@suse.cz>
10094
10095 * tree-pass.h (pass_ipa_cdtor_merge): New function.
10096 * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
10097 heap allocated.
10098 (record_cdtor_fn): Move to ipa.c; do not test for
10099 have_ctors_dtors.
10100 (build_cdtor): Move to ipa.c; add code avoiding construction
10101 when target have ctors/dtors and there is only one ctor/dtor at given
10102 priority.
10103 (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
10104 sort; reverse order of constructors.
10105 (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
10106 (cgraph_finalize_function): Do not call record_cdtor_fn.
10107 (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
10108 (cgraph_build_static_cdtor): Move to ipa.c.
10109 * ipa.c: Include target.h and tree-iterator.h.
10110 (cgraph_build_static_cdtor, static_ctors, static_dtors,
10111 record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
10112 build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
10113 pass_ipa_cdtor_merge): New.
10114 * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
10115 * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
10116 bounds access.
10117
10118 2010-08-20 Jan Hubicka <jh@suse.cz>
10119
10120 PR c++/45307
10121 PR c++/17736
10122 * cgraph.h (cgraph_only_called_directly_p,
10123 cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
10124 static cdtors.
10125 * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
10126 are not needed.
10127 (cgraph_finalize_function): Static cdtors are reachable.
10128 (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
10129
10130 2010-08-20 Jan Hubicka <jh@suse.cz>
10131
10132 * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
10133 flag_wpa.
10134 * lto-streamer-out.c (lto_output): Likewise.
10135 * passes.c (ipa_write_optimization_summaries): Initialize statement
10136 uids.
10137
10138 2010-08-20 Olivier Hainque <hainque@adacore.com>
10139
10140 * tree.h (alias_diag_flags): New enum.
10141 (alias_pair): Add an 'emitted_diags' field.
10142 * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
10143 (assemble_alias): Initialize emitted_diags of new pairs.
10144
10145 2010-08-20 Eric Botcazou <ebotcazou@adacore.com>
10146
10147 * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
10148 * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10149 * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
10150 (STACK_CHECK_PROTECT): Define.
10151 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
10152 (output_probe_stack_range): Likewise.
10153 (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
10154 builtin stack checking is enabled.
10155 * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
10156 * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
10157 (probe_stack_range): New insn.
10158
10159 2010-08-20 H.J. Lu <hongjiu.lu@intel.com>
10160
10161 PR target/45336
10162 * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
10163 short first.
10164
10165 * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
10166 char first.
10167
10168 2010-08-20 Jakub Jelinek <jakub@redhat.com>
10169
10170 PR target/45336
10171 * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
10172 to cover zero extension into 64-bit register.
10173 (*sse2_pextrw): Likewise.
10174 (*sse4_1_pextrd_zext): New insn.
10175
10176 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
10177
10178 revert r163410, partially revert r163267.
10179 * config/rs6000/darwin.h (LIB_SPEC): Remove.
10180 * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
10181 Darwin versions.
10182
10183 2010-08-20 Jakub Jelinek <jakub@redhat.com>
10184
10185 PR middle-end/44974
10186 * builtins.c (expand_builtin): Don't optimize away
10187 calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
10188
10189 2010-08-20 Uros Bizjak <ubizjak@gmail.com>
10190
10191 * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
10192 (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
10193 alternative 1 of operand 2.
10194
10195 2010-08-20 Jakub Jelinek <jakub@redhat.com>
10196 Paolo Bonzini <bonzini@gnu.org>
10197
10198 * simplify-rtx.c (simplify_unary_operation_1): Optimize
10199 (sign_extend (zero_extend (...)) and
10200 ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
10201
10202 2010-08-20 Jakub Jelinek <jakub@redhat.com>
10203
10204 PR rtl-optimization/45353
10205 * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
10206 after bb_note is a BARRIER.
10207
10208 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
10209
10210 * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
10211 linking libgcc.a.
10212
10213 2010-08-20 Jakub Jelinek <jakub@redhat.com>
10214 Michael Matz <matz@suse.de>
10215
10216 * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
10217
10218 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
10219
10220 * ggc-common.c (ggc_mark_root_tab): New function, split out from...
10221 (ggc_mark_roots): ...here.
10222
10223 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
10224
10225 * vec.h (FOR_EACH_VEC_ELT): Define.
10226 * c-decl.c: Use it.
10227 * cfgloop.c: Likewise.
10228 * cfgloopmanip.c: Likewise.
10229 * cgraph.c: Likewise.
10230 * cgraphunit.c: Likewise.
10231 * combine.c: Likewise.
10232 * config/bfin/bfin.c: Likewise.
10233 * config/mips/mips.c: Likewise.
10234 * config/rs6000/rs6000.c: Likewise.
10235 * dbxout.c: Likewise.
10236 * df-scan.c: Likewise.
10237 * dominance.c: Likewise.
10238 * dse.c: Likewise.
10239 * dwarf2out.c: Likewise.
10240 * except.c: Likewise.
10241 * expr.c: Likewise.
10242 * function.c: Likewise.
10243 * gcse.c: Likewise.
10244 * genattr.c: Likewise.
10245 * ggc-common.c: Likewise.
10246 * gimplify.c: Likewise.
10247 * graphite-blocking.c: Likewise.
10248 * graphite-clast-to-gimple.c: Likewise.
10249 * graphite-dependences.c: Likewise.
10250 * graphite-interchange.c: Likewise.
10251 * graphite-poly.c: Likewise.
10252 * graphite-scop-detection.c: Likewise.
10253 * graphite-sese-to-poly.c: Likewise.
10254 * graphite.c: Likewise.
10255 * haifa-sched.c: Likewise.
10256 * ifcvt.c: Likewise.
10257 * implicit-zee.c: Likewise.
10258 * ipa-prop.c: Likewise.
10259 * ipa-struct-reorg.c: Likewise.
10260 * ipa.c: Likewise.
10261 * ira-build.c: Likewise.
10262 * ira-color.c: Likewise.
10263 * ira-emit.c: Likewise.
10264 * lambda-code.c: Likewise.
10265 * loop-invariant.c: Likewise.
10266 * loop-unroll.c: Likewise.
10267 * lower-subreg.c: Likewise.
10268 * lto-cgraph.c: Likewise.
10269 * lto-opts.c: Likewise.
10270 * lto-streamer-in.c: Likewise.
10271 * lto-streamer-out.c: Likewise.
10272 * lto-streamer.c: Likewise.
10273 * lto-symtab.c: Likewise.
10274 * matrix-reorg.c: Likewise.
10275 * opts.c: Likewise.
10276 * predict.c: Likewise.
10277 * print-tree.c: Likewise.
10278 * sdbout.c: Likewise.
10279 * sel-sched-dump.c: Likewise.
10280 * sel-sched-ir.c: Likewise.
10281 * sel-sched.c: Likewise.
10282 * sese.c: Likewise.
10283 * stor-layout.c: Likewise.
10284 * tree-cfg.c: Likewise.
10285 * tree-cfgcleanup.c: Likewise.
10286 * tree-chrec.c: Likewise.
10287 * tree-data-ref.c: Likewise.
10288 * tree-emutls.c: Likewise.
10289 * tree-inline.c: Likewise.
10290 * tree-into-ssa.c: Likewise.
10291 * tree-loop-distribution.c: Likewise.
10292 * tree-loop-linear.c: Likewise.
10293 * tree-mudflap.c: Likewise.
10294 * tree-outof-ssa.c: Likewise.
10295 * tree-parloops.c: Likewise.
10296 * tree-predcom.c: Likewise.
10297 * tree-pretty-print.c: Likewise.
10298 * tree-scalar-evolution.c: Likewise.
10299 * tree-ssa-live.c: Likewise.
10300 * tree-ssa-loop-im.c: Likewise.
10301 * tree-ssa-loop-ivcanon.c: Likewise.
10302 * tree-ssa-loop-ivopts.c: Likewise.
10303 * tree-ssa-loop-manip.c: Likewise.
10304 * tree-ssa-loop-niter.c: Likewise.
10305 * tree-ssa-loop-prefetch.c: Likewise.
10306 * tree-ssa-phiprop.c: Likewise.
10307 * tree-ssa-pre.c: Likewise.
10308 * tree-ssa-reassoc.c: Likewise.
10309 * tree-ssa-sccvn.c: Likewise.
10310 * tree-ssa-structalias.c: Likewise.
10311 * tree-ssa.c: Likewise.
10312 * tree-vect-data-refs.c: Likewise.
10313 * tree-vect-loop-manip.c: Likewise.
10314 * tree-vect-loop.c: Likewise.
10315 * tree-vect-patterns.c: Likewise.
10316 * tree-vect-slp.c: Likewise.
10317 * tree-vect-stmts.c: Likewise.
10318 * tree-vrp.c: Likewise.
10319 * tree.c: Likewise.
10320 * value-prof.c: Likewise.
10321 * var-tracking.c: Likewise.
10322 * varasm.c: Likewise.
10323 * vmsdbgout.c: Likewise.
10324
10325 2010-08-19 Nathan Sidwell <nathan@codesourcery.com>
10326 Richard Guenther <richard.guenther@gmail.com>
10327
10328 * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
10329 copy the src value and return a copy.
10330 * doc/extend.texi (Volatiles): Move from C++ to C and expand.
10331 (C++ Volatiles): Adjust to describe C++ semantics only.
10332
10333 2010-08-20 Joseph Myers <joseph@codesourcery.com>
10334
10335 * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
10336 be zero or nonzero.
10337 * doc/tm.texi: Regenerate.
10338 * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
10339 * df-scan.c (df_get_exit_block_use_set), reginfo.c
10340 (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
10341 Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
10342 * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
10343 to 1.
10344
10345 2010-08-20 Olivier Hainque <hainque@adacore.com>
10346
10347 * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
10348 an extra nop past a sibling call at the very end.
10349
10350 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
10351
10352 PR bootstrap/45350
10353 * combine.c (try_combine): Initialize i1_is_used and i2_is_used. Fix
10354 a comment.
10355
10356 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
10357
10358 * target.def (function_arg, function_incoming_arg): Remove const
10359 qualifier on CUMULATIVE_ARGS parameter.
10360 * targhooks.h (default_function_arg, default_function_incoming_arg):
10361 Likewise.
10362 * targhooks.c (default_function_arg, default_function_incoming_arg):
10363 Likewise.
10364 * config/i386/i386.c (ix86_function_arg): Likewise.
10365
10366 2010-08-19 Jakub Jelinek <jakub@redhat.com>
10367
10368 PR target/45336
10369 * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
10370 SIGN_EXTENDs or ZERO_EXTENDs.
10371
10372 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
10373
10374 PR target/42172
10375 * combine.c (combine_validate_cost): New arg I0. All callers changed.
10376 Take its cost into account if nonnull.
10377 (insn_a_feeds_b): New static function.
10378 (combine_instructions): Look for four-insn combinations.
10379 (can_combine_p): New args PRED2, SUCC2. All callers changed. Take
10380 them into account when computing all_adjacent and looking for other
10381 uses.
10382 (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC. All callers
10383 changed. Treat them like I1DEST and I1_NOT_IN_SRC.
10384 (try_combine): New arg I0. Handle four-insn combinations.
10385 (distribute_notes): New arg ELIM_I0. All callers changed. Treat it
10386 like ELIM_I1.
10387
10388 2010-08-19 Jason Merrill <jason@redhat.com>
10389
10390 PR c++/45307
10391 * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
10392 if ctor is empty.
10393 (gimplify_modify_expr_rhs): Adjust.
10394
10395 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
10396
10397 * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
10398 bitmap_bit_p.
10399 * config/bfin/bifn.c (bfin_discover_loop): Likewise.
10400 * dominance.c (iterate_fix_dominators): Likewise.
10401 * dse.c (set_usage_bits): Likewise.
10402 (set_position_unneeded, record_store): Likewise.
10403 * gimple-fold.c (get_maxval_strlen): Likewise.
10404 * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
10405 * ipa-inline.c (update_caller_keys): Likewise.
10406 * ipa-split.c (verify_non_ssa_vars): Likewise.
10407 * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
10408 (close_type_exposed_parameter, close_type_full_escape): Likewise.
10409 (close_addressof_down): Likewise.
10410 * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
10411 (setup_allocno_left_conflicts_size): Likewise.
10412 (ira_reassign_conflict_allocnos): Likewise.
10413 (ira_reassign_pseudos): Likewise.
10414 * ira-emit.c (change_loop): Likewise.
10415 * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
10416 * lto-streamer-out.c (write_symbol): Likewise.
10417 * predict.c (expr_expected_value_1): Likewise.
10418 * regstat.c (regstat_bb_compute_ri): Likewise.
10419 * sel-sched.c (create_block_for_bookkeeping): Likewise.
10420 (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
10421 * stmt.c (expand_case): Likewise.
10422 * tree-eh.c (emit_eh_dispatch): Likewise.
10423 * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
10424 * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
10425 Likewise.
10426 (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
10427 (rdg_build_components): Likewise.
10428 * tree-object-size.c (collect_object_sizes_for): Likewise.
10429 * tree-sra.c (convert_callers): Likewise.
10430 * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
10431 * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
10432 * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
10433
10434 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
10435
10436 * config/i386/i386.md (*lea_1): Use P mode iterator.
10437 (lea add splitter): Also handle DImode operands.
10438 (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
10439 predicate. Do not use ix86_lea_for_add_ok.
10440 (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
10441 (lea ashift splitter): Also handle DImode operands.
10442 (DImode lea ashift splitter): Remove splitter.
10443
10444 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
10445
10446 * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
10447 ix86_binary_operator_ok.
10448
10449 2010-08-19 Andrey Belevantsev <abel@ispras.ru>
10450
10451 PR rtl-optimization/44691
10452 * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
10453 is not a register.
10454
10455 2010-08-19 Ian Bolton <ian.bolton@arm.com>
10456
10457 PR target/45070
10458 * config/arm/arm.c (arm_output_epilogue): Ensure that return
10459 value of size 1-3 is handled correctly.
10460
10461 2010-08-19 Ian Bolton <ian.bolton@arm.com>
10462
10463 * tree-switch-conversion.c (gen_inbound_check): Ensure that the
10464 type for the conditional has wide enough range.
10465
10466 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
10467
10468 PR target/45327
10469 * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
10470 ix86_binary_operator_ok.
10471
10472 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
10473
10474 * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
10475 <default>: Swap operands 1 and 2 for alternative 2 to use existing
10476 code to output insn mnemonic. Fix comment.
10477 (*addsi_1_zext): Add r-r-0 alternative 1.
10478 <TYPE_LEA>: Split insn to lea.
10479 <default>: Handle alternative 1.
10480 (*addhi_1_lea): Add r-r-0 alternative 2. Use cond RTX instead of
10481 multi-level if_then_else RTX to set "type" attribute.
10482 <default>: Handle alternative 2.
10483 (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
10484 Use cond RTX instead of multi-level if_then_else RTX to set
10485 "type" attribute.
10486 <default>: Handle alternatives 2 and 4.
10487 (lea splitters): Update calls to ix86_lea_for_add_ok.
10488
10489 * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
10490 argument.
10491 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
10492
10493 2010-08-18 Richard Guenther <rguenther@suse.de>
10494
10495 * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
10496 use operand helpers.
10497
10498 2010-08-18 Paolo Bonzini <bonzini@gnu.org>
10499
10500 PR middle-end/45292
10501 * optabs.c (expand_bool_compare_and_swap): Expand pending
10502 pops before trying the optab.
10503
10504 2010-08-18 Yao Qi <yao@codesourcery.com>
10505
10506 PR target/45094
10507 * config/arm/arm.c (output_move_double): Fix typo generating
10508 instructions ('ldr'->'str').
10509
10510 2010-08-18 Maxim Kuvyrkov <maxim@codesourcery.com>
10511
10512 PR rtl-optimization/42575
10513 * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
10514 live ranges.
10515
10516 2010-08-18 Marcus Shawcroft <marcus.shawcroft@arm.com>
10517
10518 * config/arm/arm-protos.h (arm_expand_sync): New.
10519 (arm_output_memory_barrier, arm_output_sync_insn): New.
10520 (arm_sync_loop_insns): New.
10521 * config/arm/arm.c (FL_ARCH7): New.
10522 (FL_FOR_ARCH7): Include FL_ARCH7.
10523 (arm_arch7): New.
10524 (arm_print_operand): Support %C markup.
10525 (arm_legitimize_sync_memory): New.
10526 (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
10527 (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
10528 (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
10529 (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
10530 (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
10531 (arm_process_output_sync_insn, arm_output_sync_insn): New.
10532 (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
10533 * config/arm/arm.h (struct arm_sync_generator): New.
10534 (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
10535 (TARGET_HAVE_MEMORY_BARRIER): New.
10536 (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
10537 * config/arm/arm.md: Include sync.md.
10538 (UNSPEC_MEMORY_BARRIER): New.
10539 (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
10540 (VUNSPEC_SYNC_OP):New.
10541 (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
10542 (sync_result, sync_memory, sync_required_value): New attributes.
10543 (sync_new_value, sync_t1, sync_t2): Likewise.
10544 (sync_release_barrier, sync_op): Likewise.
10545 (length): Add logic to length attribute defintion to call
10546 arm_sync_loop_insns when appropriate.
10547 * config/arm/sync.md: New file.
10548
10549 2010-08-17 Jakub Jelinek <jakub@redhat.com>
10550
10551 * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
10552 ENABLE_TREE_CHECKING.
10553 (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
10554 and GCC >= 4.3.
10555
10556 2010-08-17 H.J. Lu <hongjiu.lu@intel.com>
10557
10558 * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
10559 or optimizing for size, always avoid lea if possible.
10560
10561 * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
10562
10563 2010-08-17 Iain Sandoe <iains@gcc.gnu.org>
10564
10565 * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
10566 Dunmmy function with NULL return unless the target is
10567 OSX >= 10.6 (Darwin10).
10568
10569 2010-08-17 Jack Howarth <howarth@bromo.med.uc.edu>
10570
10571 * gcc.c (spec_function): Add remove-outfile.
10572 (remove_outfile_spec_function): New function.
10573 * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
10574 * invoke.texi (replace-outfile): Document.
10575
10576 2010-08-17 Uros Bizjak <ubizjak@gmail.com>
10577
10578 PR target/45296
10579 * reginfo.c (globalize_reg): Reject stack registers.
10580
10581 2010-08-17 Richard Guenther <rguenther@suse.de>
10582
10583 * tree-ssa-dom.c (struct edge_info): Use a VEC for the
10584 list of conditional equivalences.
10585 (free_all_edge_infos): Adjust.
10586 (record_equivalences_from_incoming_edge): Likewise.
10587 (record_cond): Likewise.
10588 (build_and_record_new_cond): Likewise.
10589 (record_conditions): Likewise.
10590 (dom_opt_leave_block): Likewise.
10591
10592 2010-08-17 Kai Tietz <kai.tietz@onevision.com>
10593
10594 * doc/invoke.texi (ms-extension): Add documentation.
10595
10596 2010-08-17 Richard Guenther <rguenther@suse.de>
10597
10598 * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
10599
10600 2010-08-17 Shujing Zhao <pearly.zhao@oracle.com>
10601
10602 PR c/40563
10603 * c-decl.c (diagnose_uninitialized_cst_member): New function.
10604 (finish_decl): Use it to issue a -Wc++-compat warning about
10605 uninitialized const field in struct or union.
10606
10607 (finish_struct): Use strip_array_types.
10608
10609 2010-08-17 Jakub Jelinek <jakub@redhat.com>
10610
10611 * function.c (block_fragments_nreverse, blocks_nreverse_all): New
10612 functions.
10613 (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
10614 (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL. Don't
10615 call block_nreverse here.
10616 (blocks_nreverse): Rename decl temporary to block.
10617
10618 2010-08-16 Bernd Schmidt <bernds@codesourcery.com>
10619
10620 * config/arm/thumb2.md (thumb2_notsi_shiftsi,
10621 thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
10622 thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
10623 thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
10624 thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
10625 thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
10626 thumb2_iorsi3): Delete.
10627 (orsi_notsi_si): No longer a named pattern.
10628 (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
10629 * config/arm/predicates.md (shift_amount_operand): New.
10630 (mult_operator): New.
10631 * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
10632 attr enabled): New.
10633 (iorsi3_insn): Renamed from arm_iorsi3. Handle a new alternative if
10634 arch matches t2.
10635 (not_shiftsi): Renamed from arm_notsi_shiftsi. Handle Thumb2 variant.
10636 (not_shiftsi_compare0): Likewise, renamed from
10637 arm_notsi_shiftsi_compare0.
10638 (not_shiftsi_compare0_scratch): Likweise, renamed from
10639 arm_notsi_shiftsi_compare0_scratch.
10640 (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
10641 (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
10642 (arith_shiftsi): Handle Thumb2 variant. Set insn_enabled attribute
10643 so that the register alternative is disabled when the shift_operator
10644 is MULT. Use "M" as the constraint for constants.
10645 (arith_shiftsi splitter): Enable for TARGET_32BIT.
10646 (arith_shiftsi_compare0): Handle Thumb2 variant. Use "M" as the
10647 constraint for constants.
10648 (arith_shiftsi_compare0_scratch): Likewise.
10649 (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
10650 Handle Thumb2 alternative.
10651
10652 2010-08-16 Joseph Myers <joseph@codesourcery.com>
10653
10654 * doc/options.texi (NoDriverArg): Document.
10655 * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
10656 -MDX and -MMDX.
10657 * opt-functions.awk (switch_flags): Handle NoDriverArg.
10658 * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
10659 marking for CL_NO_DRIVER_ARG options when in the driver.
10660 * opts.h (CL_NO_DRIVER_ARG): Define.
10661 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
10662 CL_COMMON): Update values.
10663
10664 2010-08-16 Joseph Myers <joseph@codesourcery.com>
10665
10666 * common.opt: Add driver options.
10667 (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
10668 * doc/options.texi (Driver, RejectDriver): Document.
10669 * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
10670 print_prog_name, print_multi_directory, print_sysroot,
10671 print_multi_os_directory, print_multi_lib,
10672 print_sysroot_headers_suffix, report_times, combine_flag,
10673 use_pipes, wrapper_string): Remove.
10674 (save_switch, driver_unknown_option_callback,
10675 driver_wrong_lang_callback, driver_post_handling_callback,
10676 driver_handle_option): New.
10677 (spec_lang, last_language_n_infiles): Make file-scope static
10678 instead of local to process_command.
10679 (process_command): Use decode_cmdline_options_to_array and
10680 read_cmdline_option for option processing. Compute have_c in
10681 prescan of decoded options.
10682 * opt-functions.awk (switch_flags): Handle Driver and
10683 RejectDriver.
10684 (var_type, var_type_struct): Handle Separate options as generating
10685 const char * variables.
10686 * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
10687 CL_TARGET to be passed by caller if required.
10688 (decode_cmdline_options_to_array): Update comment.
10689 * opts.c (complain_wrong_lang): Handle options only valid for the
10690 driver.
10691 (decode_options): Update call to decode_cmdline_options_to_array.
10692 (print_filtered_help): Ignore driver-only options.
10693 (print_specific_help): Ignore CL_DRIVER.
10694 (common_handle_option): Don't call print_specific_help for CL_DRIVER.
10695 * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
10696 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
10697 Update values.
10698
10699 2010-08-16 Richard Guenther <rguenther@suse.de>
10700
10701 * tree-cfg.c (verify_types_in_gimple_reference): Verify
10702 TARGET_MEM_REF a bit.
10703 * tree-ssa-address.c (addr_for_mem_ref): Adjust.
10704 (create_mem_ref_raw): Always create TMR_OFFSET, store the
10705 alias pointer type via it.
10706 (copy_mem_ref_info): Adjust.
10707 (maybe_fold_tmr): Likewise.
10708 * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
10709 (reference_alias_ptr_type): Likewise.
10710 * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
10711 adjust documentation of TMR_OFFSET operand.
10712 * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
10713 use the alias pointer type.
10714 * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
10715 initialize mem attrs but the TMR itself.
10716 * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
10717 similar to MEM_REF.
10718 * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
10719 * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
10720 (unshare_and_remove_ssa_names): Likewise.
10721 (copy_ref_info): Adjust.
10722 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
10723 TARGET_MEM_REF case.
10724 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
10725 at TMR_ORIGINAL.
10726 * tree.h (TMR_ORIGINAL): Remove.
10727 * gimple.c (get_base_address): For TARGET_MEM_REF with a
10728 symbol return that.
10729 * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
10730 with a symbol.
10731 (get_addr_base_and_unit_offset): Likewise.
10732 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
10733 TARGET_MEM_REFs.
10734 (indirect_ref_may_alias_decl_p): Likewise.
10735 (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
10736
10737 2010-08-15 Uros Bizjak <ubizjak@gmail.com>
10738
10739 * doc/invoke.texi (-fomit-frame-pointer): Document that starting
10740 with GCC version 4.6, the default setting (when not optimizing
10741 for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
10742 been changed to -fomit-frame-pointer.
10743
10744 2010-08-15 Iain Sandoe <iains@gcc.gnu.org>
10745
10746 * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
10747 Darwin10. Do not link libgcc.a for Darwin >= 9.
10748
10749 2010-08-15 Gerald Pfeifer <gerald@pfeifer.com>
10750
10751 * doc/invoke.texi (Warning Options): Fix terminology and markup
10752 in the description of how unknown warning options are handled.
10753
10754 2010-08-15 Ira Rosen <irar@il.ibm.com>
10755
10756 * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
10757 in basic blocks.
10758 (vect_supportable_dr_alignment): Check alignment for basic blocks.
10759 * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
10760 data references.
10761 (vect_bb_vectorization_profitable_p): New function.
10762 (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
10763 check if it's worthwhile to vectorize the basic block.
10764
10765 2010-08-14 Anatoly Sokolov <aesok@post.ru>
10766
10767 * reload.h (register_move_cost, memory_move_secondary_cost,
10768 secondary_reload_class): Adjust prototype.
10769 * rtl.h (reg_class_subset_p): Adjust prototype.
10770 * reload.c (secondary_reload_class): Change arguments type from
10771 enum reg_class to reg_class_t. Change result type to reg_class_t.
10772 * reginfo.c (register_move_cost, reg_class_subset_p): Change
10773 arguments type from enum reg_class to reg_class_t.
10774 (memory_move_secondary_cost): Change arguments type from
10775 enum reg_class to reg_class_t. Change type of saved_flags to
10776 reg_class_t.
10777
10778 * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10779 Remove macros.
10780 (mips_cost): Remove.
10781 (struct mips_rtx_cost_data): Moved to mips.c.
10782 * config/mips/mips-protos.h (mips_register_move_cost): Remove.
10783 * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
10784 (mips_cost): Make static.
10785 (mips_canonicalize_move_class): Change argument type to reg_class_t.
10786 Change result type to reg_class_t.
10787 (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
10788 type from enum reg_class to reg_class_t.
10789 (mips_register_move_cost): Make static. Change arguments
10790 type from enum reg_class to reg_class_t.
10791 (mips_memory_move_cost): New function.
10792 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
10793
10794 2010-08-14 Richard Sandiford <rdsandiford@googlemail.com>
10795
10796 PR rtl-optimization/43358
10797 * ira-lives.c (process_single_reg_class_operands): Adjust the costs
10798 of a single hard register, using simplify_subreg_regno to decide
10799 what that register should be.
10800
10801 2010-08-14 Mingjie Xing <mingjie.xing@gmail.com>
10802
10803 * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
10804 * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
10805 (loongson_pmull<V_suffix>): Rename to...
10806 (mul<mode>3): ...this and use MULT instead of an UNSPEC.
10807
10808 2010-08-13 Jack Howarth <howarth@bromo.med.uc.edu>
10809
10810 * configure.ac: Enable -fomit-frame-pointer on darwin
10811 which support dwarf2.
10812 * config/i386/i386.c (override_options): Same.
10813
10814 2010-08-13 Jie Zhang <jie@codesourcery.com>
10815
10816 * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
10817
10818 2010-08-12 Joseph Myers <joseph@codesourcery.com>
10819
10820 * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
10821 -MMD.
10822
10823 2010-08-12 Changpeng Fang <changpeng.fang@amd.com>
10824
10825 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
10826 up dot_prod pattern searching if a stmt is outside the loop.
10827
10828 2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
10829 Uros Bizjak <ubizjak@gmail.com>
10830
10831 * config.gcc: Handle --enable-frame-pointer.
10832
10833 * configure.ac: Add --enable-frame-pointer.
10834 * configure: Regenerated.
10835
10836 * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
10837 (override_options): If not configured with --enable-frame-pointer,
10838 enable -fomit-frame-pointer (but not for TARGET_MACHO or when
10839 optimizing for size), -fasynchronous-unwind-tables and
10840 -maccumulate-outgoing-args by default.
10841
10842 2010-08-12 Jakub Jelinek <jakub@redhat.com>
10843
10844 * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
10845
10846 PR middle-end/45262
10847 * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
10848 -a overflows. Normalize the range.
10849
10850 2010-08-12 Richard Guenther <rguenther@suse.de>
10851
10852 PR tree-optimization/45232
10853 * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
10854 for types with undefined overflow.
10855 (reassociate_bb): Allow re-associating of bit and min/max
10856 operations for types with undefined overflow.
10857 * tree-ssa-forwprop.c (associate_plusminus): New function.
10858 (tree_ssa_forward_propagate_single_use_vars): Call it.
10859
10860 2010-08-12 Richard Guenther <rguenther@suse.de>
10861
10862 * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
10863 * tree-ssa-alias.c (get_ptr_info): Move ...
10864 * tree-ssanames.c (get_ptr_info): ... here. Initialize
10865 align and misalign fields conservatively.
10866 * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
10867 derive alignment information.
10868 (evaluate_stmt): Derive alignment information from memory
10869 allocation functions.
10870 * tree.h (get_pointer_alignment): Make unsigned.
10871 * builtins.c (get_object_alignment): Use alignment information we
10872 have computed for pointers.
10873 (get_pointer_alignment): Likewise. Make conservative, return
10874 and unsigned value.
10875 (expand_builtin_strlen): Adjust.
10876 (expand_builtin_memcmp): Likewise.
10877 (expand_builtin_strcmp): Likewise.
10878 (expand_builtin_strncmp): Likewise.
10879 (get_builtin_sync_mem): Use at least mode alignment.
10880 (fold_builtin_memset): Adjust.
10881 (fold_builtin_memory_op): Likewise.
10882 * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
10883 information also dump pointer alignment knowledge.
10884 (dump_gimple_stmt): Likewise.
10885
10886 2010-08-12 Uros Bizjak <ubizjak@gmail.com>
10887
10888 * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
10889 (EMPTY_FIELD_BOUNDARY): Remove.
10890 * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
10891
10892 2010-08-12 Jakub Jelinek <jakub@redhat.com>
10893
10894 PR debug/45259
10895 * caller-save.c (save_call_clobbered_regs): Only swap notes with
10896 DEBUG_INSNs if n_regs_saved.
10897
10898 2010-08-12 Wei Guozhi <carrot@google.com>
10899
10900 PR target/44999
10901 * config/arm/arm.md (andsi3): Change to zero extension if possible.
10902 * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
10903
10904 2010-08-11 Vladimir Makarov <vmakarov@redhat.com>
10905
10906 * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
10907
10908 * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
10909
10910 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10911
10912 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
10913 the case removed in the previous patch, when the only phi argument
10914 is defined in the same loop as the phi node itself. Handle it
10915 separately from the invariant case by both propagating it outside
10916 the region and replacing the phi node with an assign.
10917
10918 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10919
10920 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
10921 constant phi nodes with one argument are is_gimple_min_invariant
10922 and SSA_NAME_IS_DEFAULT_DEF.
10923
10924 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10925
10926 * graphite-cloog-util.c (oppose_constraint):
10927 Extend loop counter's value range (CLOOG_ORG).
10928 (cloog_matrix_to_ppl_constraint): Same.
10929 (new_Constraint_System_from_Cloog_matrix): Same.
10930 * graphite-cloog-compat.h (matrix_num_type): New.
10931
10932 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10933
10934 * graphite.c (graphite_initialize): Do not initialize
10935 CLooG and initialize the Parma Polyhedra Library
10936 manually when using CLOOG_ORG.
10937 (graphite_finalize): Do not finalize CLooG and finalize
10938 the Parma Polyhedra Library manually when using CLOOG_ORG.
10939 * graphite-cloog-compat.h (cloog_initialize): Hide function
10940 when using CLOOG_ORG.
10941 (cloog_finalize): Same.
10942
10943 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10944
10945 * graphite-clast-to-gimple.c (free_scattering): Change
10946 CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
10947 (CLOOG_ORG).
10948 (build_cloog_prog): Same.
10949 * graphite-cloog-compat.h (cloog_domain): Removed.
10950 (cloog_scattering): New.
10951 (cloog_set_domain): Removed.
10952 (cloog_set_scattering): New.
10953 (cloog_next_domain): Removed.
10954 (cloog_next_scattering): New.
10955 (cloog_set_next_domain): Removed.
10956 (cloog_set_next_scattering): New.
10957 (CloogScatteringList): New.
10958 (CloogScattering): New.
10959 (cloog_scattering_free): New.
10960 (new_Cloog_Scattering_from_ppl_Polyhedron): New.
10961 * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
10962 New.
10963
10964 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10965
10966 * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
10967 CloogState.
10968 (set_cloog_options): Same.
10969 (print_clast_stmt): Same.
10970 (scop_to_clast): Same.
10971 (print_generated_program): Same.
10972 (gloog): Same.
10973 * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
10974 (scop_to_clast): Extend with CloogState.
10975 * graphite-cloog-util.c: Include graphite-cloog-compat.h
10976 (new_Cloog_Domain_from_ppl_Polyhedron):
10977 Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
10978 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
10979 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
10980 * graphite-cloog-util.h (build_cloog_prog): Same.
10981 * graphite-cloog-copat.h (build_cloog_prog): New.
10982 (CloogState): New.
10983 (cloog_state_malloc): New.
10984 (cloog_state_free): New.
10985 (cloog_loop_malloc): New.
10986 (cloog_options_malloc): New.
10987 (cloog_statement_alloc): New.
10988 (cloog_domain_from_cloog_matrix): New.
10989 (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
10990 (new_Cloog_Domain_from_ppl_Polyhedron): New.
10991
10992 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10993
10994 * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
10995 type of NAME now depends on used CLooG version.
10996 (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
10997 (gcc_type_for_clast_expr): Same.
10998 (print_clast_stmt): Replace pprint with clast_pprint.
10999 * graphite-cloog-compat.h: Provide compatibility macros for
11000 CLooG Legacy.
11001 (clast_name_p): New.
11002 (clast_expr_term): New.
11003 (clast_expr_red): New.
11004 (clast_expr_bin): New.
11005 (clast_pprint): New.
11006
11007 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
11008
11009 * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
11010 compatible to newer CLooG releases (CLOOG_ORG).
11011 (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
11012 (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
11013 * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
11014 (build_cloog_prog) : New.
11015 (cloog_program_extract_scalars): New.
11016 (cloog_program_scatter): New.
11017
11018 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
11019
11020 * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
11021 conditionally (CLOOG_ORG).
11022 * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h.
11023 (cloog_statement_usr): New.
11024 (cloog_domain): Same.
11025 (cloog_set_domain): Same.
11026 (cloog_next_domain): Same.
11027 (cloog_set_next_domain): Same.
11028 (cloog_program_nb_scattdims): Same.
11029 (cloog_program_set_nb_scattdims): Same.
11030 (cloog_program_names): Same.
11031 (cloog_program_set_names): Same.
11032 (cloog_program_set_context): Same.
11033 (cloog_program_set_loop): Same.
11034 (cloog_program_blocklist): Same.
11035 (cloog_program_set_blocklist): Same.
11036 (cloog_program_scaldims): Same.
11037 (cloog_program_set_scaldims): Same.
11038 (cloog_names_nb_parameters): Same.
11039 (cloog_names_set_nb_parameters): Same.
11040 (cloog_names_parameters): Same.
11041 (cloog_names_set_parameters): Same.
11042 (cloog_names_set_nb_iterators): Same.
11043 (cloog_names_set_iterators): Same.
11044 (cloog_names_set_nb_scattering): Same.
11045 (cloog_names_set_scattering): Same.
11046 (cloog_statement_set_usr): Same.
11047 (cloog_loop_set_next): Same.
11048 (cloog_loop_set_domain): Same.
11049 (cloog_loop_set_block): Same.
11050 (cloog_block_list_next): Same.
11051 (cloog_block_list_set_next):
11052 (cloog_block_list_set_block): Same.
11053
11054 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11055
11056 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
11057 a bool.
11058 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
11059 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
11060 (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
11061 when something has been changed.
11062 (rewrite_commutative_reductions_out_of_ssa): Same.
11063
11064 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11065
11066 * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
11067 handle the case when def is in the sese region.
11068 (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
11069 for invariant expressions.
11070 (rewrite_cross_bb_phi_deps): Removed.
11071 (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
11072 (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
11073 rewrite_cross_bb_phi_deps.
11074
11075 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11076
11077 * graphite-sese-to-poly.c
11078 (rewrite_commutative_reductions_out_of_ssa_loop): Call
11079 scev_analyzable_p only on is_gimple_reg
11080
11081 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11082
11083 * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
11084 (rewrite_close_phi_out_of_ssa): Propagate constant values or
11085 parametric expressions outside the scop region.
11086 (rewrite_cross_bb_scalar_deps): Same.
11087 * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
11088
11089 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11090
11091 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
11092 SSA_NAME_DEF_STMT only on SSA_NAMEs.
11093
11094 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11095
11096 * tree-scalar-evolution.c (instantiate_scev_name): Do not
11097 instantiate default definitions.
11098
11099 2010-08-11 Vladimir Kargov <kargov@gmail.com>
11100 Sebastian Pop <sebastian.pop@amd.com>
11101
11102 * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
11103 (loop_exits_from_bb_p): New.
11104 * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
11105 (loop_exits_from_bb_p): Declared.
11106 * graphite-scop-detection.c (scopdet_basic_block_info): Call
11107 loop_exits_to_bb_p.
11108
11109 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11110
11111 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
11112 extra parameter for the region. Call scev_analyzable_p.
11113 (rewrite_reductions_out_of_ssa): Update call to
11114 rewrite_close_phi_out_of_ssa.
11115 (rewrite_cross_bb_phi_deps): Same.
11116 (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
11117 parameter for the region. Call scev_analyzable_p.
11118 (rewrite_commutative_reductions_out_of_ssa): Update call to
11119 rewrite_commutative_reductions_out_of_ssa_loop.
11120
11121 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11122
11123 * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
11124
11125 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11126
11127 * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
11128 SSA scalar phi nodes that can be scev_analyzable_p.
11129
11130 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11131
11132 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
11133 handle SSA_NAME_IS_DEFAULT_DEF.
11134
11135 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11136
11137 * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
11138
11139 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11140
11141 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
11142 case non close-phi nodes with one argument.
11143
11144 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11145
11146 * sese.h (scev_analyzable_p): Scevs could be expressions without
11147 chrecs and still be scev_analyzable_p.
11148
11149 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11150
11151 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
11152
11153 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11154
11155 * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
11156 * cfgloop.h (struct loop): Remove single_iv field.
11157 * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
11158 (scop_canonicalize_loops): Removed.
11159 (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate
11160 over all the loop phi nodes in loop->header.
11161 (build_poly_scop): Remove use of scop_canonicalize_loops.
11162
11163 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11164
11165 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
11166 handle GIMPLE_CALL.
11167
11168 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11169
11170 * tree-chrec.c (chrec_apply): Should only apply to the specified
11171 variable. Also handle multivariate chains of recurrences that
11172 satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT.
11173
11174 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11175
11176 * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
11177 (debug_clast_name_indexes_1): Removed.
11178 (debug_clast_name_indexes): Removed.
11179 (pbb_to_depth_to_oldiv): Removed.
11180 (build_iv_mapping): Replace the use of rename_map with iv_map.
11181 (translate_clast_user): Remove uses of rename_map. Allocate and
11182 free iv_map.
11183 (translate_clast_for_loop): Remove uses of rename_map.
11184 (translate_clast_for): Same.
11185 (translate_clast_guard): Same.
11186 (translate_clast): Same.
11187 (gloog): Same.
11188 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
11189 * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
11190 * sese.c (set_rename): Now static.
11191 (rename_variables_in_stmt): Removed.
11192 (rename_uses): New.
11193 (is_parameter): Removed.
11194 (is_iv): Removed.
11195 (expand_scalar_variables_call): Removed.
11196 (expand_scalar_variables_ssa_name): Removed.
11197 (expand_scalar_variables_expr): Removed.
11198 (expand_scalar_variables_stmt): Removed.
11199 (expand_scalar_variables): Removed.
11200 (rename_variables): Removed.
11201 (remove_condition): Removed.
11202 (get_true_edge_from_guard_bb): Removed.
11203 (get_false_edge_from_guard_bb): Removed.
11204 (struct igp): Removed.
11205 (default_before_guard): Removed.
11206 (convert_for_phi_arg): Removed.
11207 (add_guard_exit_phis): Removed.
11208 (insert_guard_phis): Removed.
11209 (graphite_copy_stmts_from_block): Now also uses iv_map and a
11210 region. Do not copy conditions. Do not copy induction variables.
11211 Call rename_uses.
11212 (copy_bb_and_scalar_dependences): Allocate a local rename_map for
11213 the translated statement. Use the iv_map for the induction
11214 variable renaming.
11215 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
11216 (set_rename): Removed declaration.
11217 (scev_analyzable_p): ...here.
11218 * tree-chrec.c (chrec_apply_map): New.
11219 * tree-chrec.h (chrec_apply_map): Declared.
11220
11221 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11222
11223 * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
11224 insert_loop_close_phis.
11225 * sese.c (name_defined_in_loop_p): Removed.
11226 (expr_defined_in_loop_p): Removed.
11227 (alive_after_loop): Removed.
11228 (close_phi_not_yet_inserted_p): Removed.
11229 (struct alep): Removed.
11230 (add_loop_exit_phis): Removed.
11231 (insert_loop_close_phis): Removed.
11232
11233 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
11234
11235 * graphite-cloog-util.c
11236 (cloog_matrix_to_ppl_constraint): Fix flipped condition.
11237 * graphite-poly.c
11238 (psct_scattering_dim_for_loop_depth): Same.
11239
11240 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
11241
11242 * graphite-cloog-util.h: Added cloog.h.
11243 * graphite-blocking.c: Removed cloog.h.
11244 * graphite-dependences.c: Same.
11245 * graphite-interchange.c: Same.
11246 * graphite-poly.c: Same.
11247 * graphite-ppl.c: Same.
11248 * graphite-scop-detection.c: Same.
11249 * graphite-sese-to-poly.c:
11250 Removed cloog.h.
11251 Removed graphite-clast-to-gimple.h.
11252 (check_poly_representation): Removed (unused).
11253 * graphite-sese-to-poly.h
11254 (check_poly_representation): Removed (unused).
11255
11256 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
11257
11258 * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
11259 (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
11260 (graphite-cloog-util.o): New.
11261 (graphite-ppl.o): Added graphite-cloog-util.h.
11262 * graphite-clast-to-gimple.c:
11263 Added graphite-cloog-util.h to include statements.
11264 * graphite-cloog-util.c: New.
11265 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
11266 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
11267 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
11268 (new_C_Polyhedron_from_Cloog_Matrix): Same.
11269 (insert_constraint_into_matrix): Same.
11270 (ppl_Constrain_System_number_of_constraints): Same.
11271 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
11272 (oppose_constraint): Same.
11273 (cloog_matrix_to_ppl_constraint): Same.
11274 (new_Constraint_System_from_Cloog_Matrix): Same.
11275 * graphite-cloog-util.h: New.
11276 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
11277 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
11278 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
11279 (new_C_Polyhedron_from_Cloog_Matrix): Same.
11280 (insert_constraint_into_matrix): Same.
11281 * graphite-ppl.c:
11282 Added graphite-cloog-util.h to include statements.
11283 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
11284 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
11285 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
11286 (new_C_Polyhedron_from_Cloog_Matrix): Same.
11287 (insert_constraint_into_matrix): Same.
11288 (ppl_Constrain_System_number_of_constraints): Same.
11289 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
11290 (oppose_constraint): Same.
11291 (cloog_matrix_to_ppl_constraint): Same.
11292 (new_Constraint_System_from_Cloog_Matrix): Same.
11293 * graphite-ppl.h:
11294 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
11295 graphite-cloog-util.h.
11296 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
11297 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
11298 (new_C_Polyhedron_from_Cloog_Matrix): Same.
11299 (insert_constraint_into_matrix): Same.
11300
11301 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
11302
11303 * graphite-clast-to-gimple.c
11304 (precision_for_value): Resolve value_* calls to matching mpz_* calls.
11305 (precision_for_interval): Same.
11306 (gcc_type_for_interval): Same.
11307 (compute_type_for_level): Same.
11308 * graphite-interchange.c
11309 (lst_interchange_profitable_p): Same.
11310 * graphite-poly.c
11311 (psct_scattering_dim_for_loop_depth): Same.
11312 * graphite-ppl.c
11313 (ppl_max_for_le_pointset): Same.
11314 (ppl_min_for_le_pointset): Same.
11315
11316 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11317
11318 * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
11319 (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
11320
11321 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11322
11323 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
11324 rewrite_close_phi_out_of_ssa.
11325
11326 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11327
11328 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
11329
11330 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11331
11332 * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
11333 rename_map.
11334 * sese.c (debug_rename_map): Same.
11335 (get_rename): Same.
11336 (set_rename): Same.
11337 (rename_variables_in_stmt): Same.
11338 (expand_scalar_variables_call): Same.
11339 (expand_scalar_variables_ssa_name): Same.
11340 (expand_scalar_variables_expr): Same.
11341 (expand_scalar_variables_stmt): Same.
11342 (expand_scalar_variables): Same.
11343 (rename_variables): Same.
11344 (graphite_copy_stmts_from_block): Same.
11345 (copy_bb_and_scalar_dependences): Same.
11346
11347 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11348
11349 * graphite-clast-to-gimple.c (copy_renames): Removed.
11350 (translate_clast_for): Do not call copy_renames.
11351 (translate_clast_guard): Same.
11352
11353 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11354
11355 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
11356 (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
11357 (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
11358 before rewrite_cross_bb_scalar_deps.
11359
11360 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11361
11362 * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
11363 Early return in when flag_associative_math is not set.
11364
11365 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11366
11367 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
11368 of SSA copies on edges except for loop->latch.
11369
11370 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11371
11372 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
11373 Split out of rewrite_reductions_out_of_ssa.
11374 * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
11375 Declared.
11376 * graphite.c (graphite_transform_loops): Call it.
11377
11378 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11379
11380 * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
11381
11382 2010-08-11 Alexander Monakov <amonakov@ispras.ru>
11383
11384 * dbgcnt.def (graphite_scop): New counter.
11385 * graphite.c: Include dbgcnt.h.
11386 (graphite_transform_loops): Use new counter to limit transformations.
11387 * Makefile.in (graphite.o): Depend on DBGCNT_H.
11388
11389 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11390
11391 * passes.c (init_optimization_passes): Add pass_graphite.
11392 Schedule a pass_copy_prop before pass_graphite_transforms.
11393 * timevar.def (TV_GRAPHITE): Declared.
11394 * tree-pass.h (pass_graphite): Declared.
11395 * tree-ssa-loop.c (pass_graphite): New.
11396
11397 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11398
11399 * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
11400 Remove calls to rename_nb_iterations and rename_sese_parameters.
11401 * graphite-clast-to-gimple.h (gloog): Update declaration.
11402 * graphite.c (graphite_transform_loops): Update call to gloog.
11403 * sese.c (rename_variables_in_expr): Removed.
11404 (rename_nb_iterations): Removed.
11405 (rename_sese_parameters): Removed.
11406 * sese.h (rename_nb_iterations): Removed.
11407 (rename_sese_parameters): Removed.
11408
11409 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11410
11411 * graphite-clast-to-gimple.c (gloog): Remove call to
11412 sese_adjust_liveout_phis.
11413 * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
11414 SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
11415 (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
11416 rewrite_phi_out_of_ssa.
11417 * sese.c (get_vdef_before_sese): Removed.
11418 (sese_adjust_vphi): Removed.
11419 (sese_adjust_liveout_phis): Removed.
11420 * sese.h (sese_adjust_liveout_phis): Removed.
11421
11422 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11423
11424 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
11425 argument for the place after which to insert the out of SSA copy.
11426 (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
11427 (rewrite_phi_out_of_ssa): Same.
11428 (rewrite_cross_bb_scalar_deps): Same.
11429 (insert_copyout): Removed.
11430 (insert_copyin): Removed.
11431 (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
11432 insert_out_of_ssa_copy_on_edge instead of insert_copyout and
11433 insert_copyin.
11434
11435 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11436
11437 * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
11438 (rewrite_reductions_out_of_ssa): Same.
11439 (rewrite_commutative_reductions_out_of_ssa): Same.
11440 (build_poly_scop): Do not call these functions.
11441 * graphite-sese-to-poly.h (build_poly_scop): Declared.
11442 (rewrite_reductions_out_of_ssa): Declared.
11443 (rewrite_commutative_reductions_out_of_ssa): Declared.
11444 * graphite.c (graphite_transform_loops): Call on every scop
11445 rewrite_commutative_reductions_out_of_ssa before calling
11446 rewrite_reductions_out_of_ssa and build_scop_bbs.
11447
11448 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11449
11450 * graphite-dependences.c (dot_deps): Make system call to dotty run
11451 in background.
11452 (dot_deps_stmt): Same.
11453 * graphite-poly.c (dot_lst): Same.
11454
11455 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11456
11457 * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
11458 phi_arg_in_outermost_loop.
11459 (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
11460 (remove_invariant_phi): Same.
11461
11462 2010-08-11 Anatoly Sokolov <aesok@post.ru>
11463
11464 * target.def (output_addr_const_extra): New hook.
11465 * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
11466 * doc/tm.texi: Regenerate.
11467 * targhooks.c (default_asm_output_addr_const_extra): New function.
11468 * targhooks.h (default_asm_output_addr_const_extra): Declare.
11469 * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
11470 target hook.
11471
11472 * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11473 * config/i386/i386-protos.h (output_addr_const_extra): Remove.
11474 * config/i386/i386.h (output_addr_const_extra): Rename to...
11475 (i386_asm_output_addr_const_extra): ...this. Make static.
11476 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11477
11478 2010-08-11 Richard Henderson <rth@redhat.com>
11479
11480 * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
11481
11482 2010-08-11 Nick Clifton <nickc@redhat.com>
11483
11484 * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
11485 * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
11486 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
11487 stormy16-lib2-cmpsi.c.
11488
11489 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
11490 -O2.
11491
11492 2010-08-11 Joseph Myers <joseph@codesourcery.com>
11493
11494 * opts.h (struct cl_option_handler_func): Make handler take
11495 cl_decoded_option structure as parameter, not individual elements.
11496 (struct cl_option_handlers): Make callbacks take cl_decoded_option
11497 structure as parameter, not individual elements.
11498 (handle_option): Take cl_decoded_option structure as parameter,
11499 not individual elements.
11500 (handle_generated_option): Declare.
11501 * opts-common.c (handle_option): Take cl_decoded_option structure
11502 as parameter, not individual elements. Update calls to callback
11503 and handler functions.
11504 (handle_generated_option): New.
11505 (read_cmdline_option): Update calls to callback functions and
11506 handle_option.
11507 * opts.c (common_handle_option, complain_wrong_lang,
11508 unknown_option_callback, post_handling_callback,
11509 lang_handle_option, target_handle_option): Take cl_decoded_option
11510 structure as parameter, not individual elements.
11511 (lang_handle_option, target_handle_option, common_handle_option):
11512 Assert option has at most one argument.
11513 (enable_warning_as_error): Call handle_generated_option instead of
11514 handle_option. Do not pass -Werror argument as argument of
11515 generated option.
11516
11517 2010-08-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11518
11519 * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
11520 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
11521 (SUBWORD_BOOL_CAS): Likewise.
11522 (SUBWORD_SYNC_OP): Likewise.
11523 (SUBWORD_TEST_AND_SET): Likewise.
11524 (FETCH_AND_OP_WORD): Parenthesise INF_OP
11525 (SUBWORD_SYNC_OP): Likewise.
11526 (OP_AND_FETCH_WORD): Likewise.
11527
11528 2010-08-10 Xinliang David Li <davidxl@google.com>
11529
11530 * tree-ssa-loop-ivopts.c (get_address_cost): Properly
11531 compute max/min offset in address.
11532
11533 2010-08-10 Vladimir Makarov <vmakarov@redhat.com>
11534
11535 * ira-live.c: Include sbitmap.h.
11536 (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
11537 Compress live ranges even more.
11538
11539 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
11540
11541 * coverage.c (ctr_labels): Delete.
11542
11543 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
11544
11545 PR bootstrap/45177
11546 * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
11547 test here from arm_gen_load_multiple_1.
11548 (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
11549 multiple_operation_profitable_p.
11550
11551 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
11552
11553 * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
11554 (fini_pre): Call free_aux_for_blocks. Delete unused bb variable.
11555
11556 2010-08-10 Richard Henderson <rth@redhat.com>
11557
11558 * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
11559 after saving registers. Assert that SSE registers are only saved
11560 with a sufficiently aligned frame.
11561 (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
11562 remove stack_realign_fp handling.
11563 (ix86_expand_prologue): Save int registers before stack_realign_fp,
11564 and do not mark the stack alignment as frame related.
11565 (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
11566
11567 * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
11568 saves when re-aligning the stack.
11569
11570 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
11571
11572 * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
11573 * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
11574 (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
11575
11576 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
11577
11578 * dwarf2out.c (struct die_struct): Move die_tag to the end.
11579
11580 2010-08-09 Sofiane Naci <sofiane.naci@arm.com>
11581
11582 * config/arm/iterators.md: New file.
11583 * config/arm/arm.md: Include iterators.md.
11584 (QHSI): Move to new file.
11585 (LTUGEU, cnb, optab, ior_xor): Likewise.
11586 * config/arm/iwmmxt.md (VMMX): Move to new file.
11587 (VSHFT, MMX_char): Likewise.
11588 * config/arm/neon.md (VD): Move to new file.
11589 (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
11590 (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
11591 (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
11592 (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
11593 (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
11594 (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
11595 (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
11596 (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
11597 (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
11598 (Is_d_reg, V_mode_nunits): Likewise.
11599 * config/arm/vec-common.md (VALL): Move to new file.
11600 (VALLW, VINT, VINTW): Likewise.
11601
11602 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
11603
11604 PR middle-end/45182
11605 * combine.c (make_compound_operation): Don't try to convert
11606 shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
11607
11608 2010-08-10 Richard Guenther <rguenther@suse.de>
11609
11610 * tree.h (get_object_alignment): Adjust prototype.
11611 * builtins.c (get_object_alignment): Return unsigned int,
11612 drop the align parameter. Handle MEM_REF, MISALIGNED_INDIRECT_REF
11613 and TARGET_MEM_REF properly.
11614 (get_pointer_alignment): Adjust.
11615 * emit-rtl.c (get_mem_align_offset): Adjust comment.
11616 (set_mem_attributes_minus_bitpos): Adjust.
11617 * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
11618
11619 2010-08-10 Richard Guenther <rguenther@suse.de>
11620
11621 * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
11622 (copy_prop_visit_assignment): Simplify.
11623 (copy_prop_visit_stmt): Also visit assignments from
11624 constants.
11625 (copy_prop_visit_phi_node): Use operand_equal_p.
11626
11627 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
11628
11629 * ipa-split.c (find_split_points): Free stack.
11630
11631 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
11632
11633 * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
11634 * tree.c (tree_node_kind): Delete corresponding entries.
11635
11636 2010-08-09 H.J. Lu <hongjiu.lu@intel.com>
11637
11638 * alias.c (may_alias_p): Remove unused ret.
11639
11640 2010-08-09 Bingfeng Mei <bmei@broadcom.com>
11641
11642 * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
11643 alias_sets_conflict_p.
11644 (walk_mems_1): Moved from alias.c.
11645 (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
11646 in alias.c.
11647 (add_inter_loop_mem_dep): Use insns_may_alias_p now.
11648 * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
11649 * alias.c (walk_mems_2): Moved to ddg.c.
11650 (walk_mems_1): Ditto.
11651 (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
11652 to ddg.c.
11653 (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
11654 disambiguation.
11655 *(may_alias_p): New function to check whether two memory expression
11656 may alias or not. Currently used in buidling inter-iteration memory
11657 dependence.
11658 *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
11659 (insn_alias_sets_conflict_p): Removed
11660 *rtl.h (may_alias_p): New function prototype.
11661
11662 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
11663
11664 * tree.c (nreverse): Assert that we don't have a BLOCK.
11665
11666 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
11667
11668 * builtins.c (fold_builtin_next_arg): Use stdarg_p.
11669 * config/arm/arm.c (arm_get_pcs_model): Likewise.
11670 * config/avr/avr.c (init_cumulative_args): Likewise.
11671 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
11672 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
11673 * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
11674 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
11675 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
11676 * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11677 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
11678 * dwarf2out.c (gen_subprogram_die): Likewise.
11679 * function.c (allocate_struct_function): Likewise.
11680 * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
11681 (deserves_ellipsis): Delete.
11682
11683 2010-08-09 Richard Guenther <rguenther@suse.de>
11684
11685 * tree-ssa-copy.c (cached_last_copy_of): Remove.
11686 (valueize_val): New function.
11687 (get_last_copy_of): Remove.
11688 (set_copy_of_val): Simplify.
11689 (dump_copy_of): Likewise.
11690 (copy_prop_visit_cond_stmt): Use valueize_val.
11691 (copy_prop_visit_phi_node): Properly handle unvisited names.
11692 Drop code managing copy-of chains.
11693 (init_copy_prop): Adjust.
11694 (fini_copy_prop): Likewise.
11695 (execute_copy_prop): Remove obsolete comment.
11696
11697 2010-08-09 Richard Guenther <rguenther@suse.de>
11698
11699 PR middle-end/44632
11700 * function.c (gimplify_parameters): Do not clear addressable
11701 bit of the original parameter.
11702
11703 2010-08-09 Richard Guenther <rguenther@suse.de>
11704
11705 PR middle-end/45212
11706 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
11707 alignment from MEM_REF offset only if we took it from the
11708 base object.
11709
11710 2010-08-09 Eric Fisher <joefoxreal@gmail.com>
11711
11712 * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
11713
11714 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
11715
11716 * c-tree.h (build_arg_info): Declare.
11717 * c-decl.c (build_arg_info): Define.
11718 (get_parm_info): Call it. Delete initialization code.
11719 * c-parser.c (c_parser_parms_declarator): Likewise.
11720 (c_parser_parms_list_declaractor): Likewise.
11721
11722 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
11723
11724 * c-tree.h (c_arg_tag): Define. Define a VEC containing it.
11725 (struct c_arg_info): Change type of tags field.
11726 * c-decl.c (grokdeclarator): Update for changed type of tags field.
11727 (get_parm_info): Likewise.
11728 (store_parm_decls_newstyle): Likewise.
11729
11730 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
11731
11732 * config/rs6000/rs6000.c (branch_island): Define. Define a VEC of it.
11733 (branch_island_list): Delete.
11734 (branch_islands): Declare.
11735 (add_compiler_branch_island): Adjust for branch_islands instead of
11736 branch_island_list.
11737 (macho_branch_islands): Likewise.
11738 (no_previous_def): Likewise.
11739 (get_prev_label): Likewise.
11740
11741 2010-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11742
11743 PR boehm-gc/34544
11744 * gthr-posix.h (__gthread_start): Delete.
11745 (__gthread_active_init): Use pthread_default_stacksize_np instead of
11746 pthread_create to determine if hpux pthreads are active.
11747 * gthr-posix95.h (__gthread_start): Delete.
11748 (__gthread_active_init): Likewise use pthread_default_stacksize_np.
11749
11750 2010-08-08 Kai Tietz <kai.tietz@onevision.com>
11751
11752 * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
11753 _WIN64 not expanded.
11754
11755 2010-08-07 Uros Bizjak <ubizjak@gmail.com>
11756 H.J. Lu <hongjiu.lu@intel.com>
11757
11758 PR target/45213
11759 * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
11760 to output 32bit SFmode immediate as 8 byte sign extended value.
11761
11762 2010-08-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11763
11764 * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
11765 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
11766 (SUBWORD_BOOL_CAS): Likewise.
11767 (SUBWORD_SYNC_OP): Likewise.
11768 (SUBWORD_TEST_AND_SET): Likewise.
11769 (FETCH_AND_OP_WORD): Parenthesise INF_OP
11770 (SUBWORD_SYNC_OP): Likewise.
11771 (OP_AND_FETCH_WORD): Likewise.
11772
11773 2010-08-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11774
11775 * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
11776 * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
11777 (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
11778 (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
11779 generic part.
11780 (cortex_a9_sched_adjust_cost): New function.
11781 (xscale_sched_adjust_cost): New function.
11782 * config/arm/arm-protos.h (struct tune_params): New field
11783 sched_adjust_cost.
11784 * config/arm/arm-cores.def: Adjust costs for cortex-a9.
11785
11786 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
11787
11788 PR target/44942
11789 * config/sparc/sparc.c (function_arg_advance): Always take into account
11790 the padding, if any.
11791
11792 2010-08-06 Richard Guenther <rguenther@suse.de>
11793
11794 * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
11795 (dump_lattice_value): Dump it.
11796 (get_default_value): Adjust.
11797 (get_constant_value): Likewise.
11798 (set_value_varying): Likewise.
11799 (set_lattice_value): Make sure to not go up the lattice
11800 with bitwise constant values.
11801 (get_value_for_expr): Handle ADDR_EXPRs.
11802 (value_to_double_int): New function.
11803 (get_value_from_alignment): Likewise.
11804 (do_dbg_cnt): Adjust.
11805 (ccp_lattice_meet): Handle partially constant values.
11806 (bit_value_unop_1): New function.
11807 (bit_value_binop_1): Likewise.
11808 (bit_value_unop): Likewise.
11809 (bit_value_binop): Likewise.
11810 (evaluate_stmt): Track partially constant values if
11811 flag_tree_bit_ccp is set.
11812 (ccp_fold_stmt): Dump if we folded a predicate.
11813 (ccp_visit_stmt): Adjust.
11814 * common.opt (ftree-bit-ccp): New flag.
11815 * doc/invoke.texi (ftree-bit-ccp): Document.
11816 * opts.c (decode_options): Enable bit-CCP at -O1.
11817
11818 2010-08-06 Alan Modra <amodra@gmail.com>
11819
11820 * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
11821 and -mrelocatable-lib description.
11822
11823 2010-08-05 Bernd Schmidt <bernds@codesourcery.com>
11824
11825 From Martin Thuresson <martint@google.com>
11826 * postreload.c (reload_cse_simplify_operands): Use
11827 SET_REGNO_RAW instead of SET_REGNO.
11828 * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
11829 SET_REGNO.
11830 * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
11831 instead of SET_REGNO.
11832 * rtl.h (SET_REGNO_RAW): New macro.
11833
11834 2010-08-05 Eric Botcazou <ebotcazou@adacore.com>
11835
11836 * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
11837 computations. Fix formatting issues.
11838 (num_sign_bit_copies1): Likewise.
11839 (canonicalize_condition): Likewise.
11840
11841 2010-08-05 Richard Henderson <rth@redhat.com>
11842
11843 * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
11844 (floor_log2): Use clz_hwi.
11845 (exact_log2): Use ctz_hwi.
11846 * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
11847 * builtins.c (fold_builtin_bitop): Use them.
11848 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
11849 * combine.c (get_pos_from_mask): Use ctz_hwi.
11850 * double-int.c (double_int_ctz): Likewise.
11851 * explow.c (force_reg): Likewise.
11852 * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
11853
11854 2010-08-05 Richard Henderson <rth@redhat.com>
11855
11856 PR target/45189
11857 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
11858 the alignment constant is properly sign-extended.
11859
11860 2010-08-05 Richard Guenther <rguenther@suse.de>
11861
11862 * expr.c (store_expr): Use emit_block_move only if both
11863 source and target are MEMs. Use store_bit_field if only
11864 the target is a MEM.
11865
11866 2010-08-05 Richard Henderson <rth@redhat.com>
11867
11868 PR debug/45188
11869 * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
11870 (INCOMING_RETURN_ADDR_RTX): Likewise.
11871 (dwarf2out_do_frame): Remove conditional compilation.
11872 (dwarf2out_frame_init): Likewise.
11873
11874 2010-08-05 Nicolas Setton <setton@adacore.com>
11875
11876 * gcov.c (flag_display_progress): New static variable.
11877 (main): Display progress info on standard output if requested.
11878 (options): Add -d/--display-progress.
11879 (print_usage): Print them.
11880 (process_args): Handle them.
11881 * doc/gcov.texi: Document them.
11882
11883 2010-08-05 Martin Jambor <mjambor@suse.cz>
11884
11885 * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
11886 (ipcp_insert_stage): Redirect only edges not flagged with
11887 indirect_inlining_edge. Call ipcp_discover_new_direct_edges for all
11888 discovered constants.
11889
11890 2010-08-05 Martin Jambor <mjambor@suse.cz>
11891
11892 * ipa-prop.h (enum ipa_lattice_type): Changed comments.
11893 (struct ipa_param_descriptor): New fields types and
11894 cannot_devirtualize.
11895 (ipa_param_cannot_devirtualize_p): New function.
11896 (ipa_param_types_vec_empty): Likewise.
11897 (ipa_make_edge_direct_to_target): Declare.
11898 * ipa-cp.c: Fixed first stage driver name in initial comment,
11899 described devirtualization there too.
11900 (ipcp_analyze_node): Call ipa_analyze_params_uses.
11901 (ipcp_print_all_lattices): Print devirtualization info.
11902 (ipa_set_param_cannot_devirtualize): New function.
11903 (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
11904 lattice to BOTTOM.
11905 (ipcp_init_stage): Merged into...
11906 (ipcp_generate_summary): ...its caller.
11907 (ipcp_change_tops_to_bottom): Also process type lists.
11908 (ipcp_add_param_type): New function.
11909 (ipcp_copy_types): Likewise.
11910 (ipcp_propagate_types): Likewise.
11911 (ipcp_propagate_stage): Also propagate types.
11912 (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
11913 Also return true if propagated types require it.
11914 (ipcp_update_callgraph): Dump redirection info.
11915 (ipcp_process_devirtualization_opportunities): New function.
11916 (ipcp_const_param_count): Include known type information.
11917 (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
11918 on new node. Fixed formatting.
11919 * ipa-prop.c (make_edge_direct_to_target): Renamed to
11920 ipa_make_edge_direct_to_target and changed all callers. Made
11921 externally visible.
11922 (ipa_node_duplication_hook): Duplicate types vector.
11923 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
11924 redirect outgoing calls for which we can't get a decl from the
11925 statement. Check that we can get a decl from the call statement.
11926 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
11927 ipa_analyze_params_uses only when ipa-cp is disabled.
11928 * tree-inline.c (get_indirect_callee_fndecl): Removed.
11929 (expand_call_inline): Do not call get_indirect_callee_fndecl.
11930 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
11931 * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
11932
11933 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
11934
11935 * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
11936 temporary. Emit move from temporary to accum, so REG_EQUAL note will
11937 be attached to this insn in correct mode.
11938
11939 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
11940
11941 * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
11942 using REGNO of base_reg directly.
11943
11944 2010-08-05 Jie Zhang <jie@codesourcery.com>
11945
11946 PR tree-optimization/45144
11947 * tree-sra.c (type_consists_of_records_p): Return false
11948 if the record contains bit-field.
11949
11950 2010-08-04 Richard Henderson <rth@redhat.com>
11951
11952 * config/i386/i386.c (struct ix86_frame): Remove padding and
11953 to_allocate members.
11954 (ix86_compute_frame_layout): Don't store them.
11955 (ix86_can_use_return_insn_p): Use a more direct and more obviously
11956 correct condition for the position of the stack pointer.
11957 (ix86_expand_prologue): Compute remaining stack allocation based
11958 on the ultimate stack pointer offset.
11959 (ix86_expand_epilogue): Use more obvious expressions testing for
11960 the stack pointer already pointing to the saved registers.
11961
11962 * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
11963 duplication deconstructing the frame pointer. Simplify
11964 deallocation of the local stack frame.
11965
11966 * reg-notes.def (CFA_EXPRESSION): New.
11967 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
11968 (dwarf2out_frame_debug_cfa_expression): New.
11969 (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
11970
11971 * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
11972 * config/i386/i386.c (ix86_expand_prologue): Set it.
11973 (ix86_expand_epilogue): Clear it.
11974 (ix86_emit_save_reg_using_mov): For registers saved in a realigned
11975 context, add REG_CFA_EXPRESSION notes.
11976
11977 * config/i386/i386.h (struct machine_frame_state): Rename from
11978 machine_cfa_state. Add members tracking SP and FP regardless
11979 of the current CFA register.
11980 (ix86_cfa_state): Remove.
11981 * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
11982 and sse_reg_save_offset members.
11983 (ix86_compute_frame_layout): Set them.
11984 (gen_push): Increment sp_offset too.
11985 (choose_baseaddr_len, choose_baseaddr): New.
11986 (ix86_emit_save_reg_using_mov): New.
11987 (ix86_emit_save_regs_using_mov): Use it.
11988 (ix86_emit_save_sse_regs_using_mov): Likewise.
11989 (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
11990 compare vs the saved red_zone_offset.
11991 (pro_epilogue_adjust_stack): Adjust sp_offset.
11992 (ix86_adjust_stack_and_probe): Likewise.
11993 (ix86_expand_prologue): Set up, use, and validate the new
11994 frame_state_info members. Use gen_frame_mem.
11995 (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
11996 (ix86_emit_restore_reg_using_pop): Likewise. Use and update the
11997 new frame_state_info members.
11998 (ix86_emit_leave): Likewise.
11999 (ix86_emit_restore_regs_using_mov): Likewise. Don't check for
12000 out-of-range stack pointer offsets here.
12001 (ix86_emit_restore_sse_regs_using_mov): Likewise.
12002 (ix86_expand_epilogue): Use and validate the new frame_state_info
12003 members. Break up and simplify the logic selecting the
12004 restore_regs_via_mov code path. Ensure that there will be no
12005 out-of-range stack pointer offsets.
12006
12007 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
12008
12009 * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
12010 argument name to reflect the expected tree; fix indentation.
12011 (ix86_asm_output_function_label): Output the entire 32-bit
12012 ms_hook here as bytes ...
12013 (ix86_expand_prologue): ... not here as insns. Attach the
12014 unwind info for the ms_hook to a blockage insn.
12015 (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
12016 (ix86_ms_bitfield_layout_p): Fix indentation.
12017 * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
12018
12019 * config/i386/i386.c (ix86_using_red_zone): New.
12020 (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
12021 ix86_expand_prologue, ix86_force_to_memory): Use it.
12022
12023 * config/i386/i386.c (ix86_expand_prologue): Simplify logic
12024 saving the int registers.
12025
12026 * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
12027 and DWARF2_UNWIND_INFO conditional compilation.
12028
12029 2010-08-04 Richard Henderson <rth@redhat.com>
12030
12031 PR debug/45171
12032 * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
12033 an is_naming_typedef_decl.
12034
12035 2010-08-04 Bernd Schmidt <bernds@codesourcery.com>
12036
12037 PR rtl-optimization/45162
12038 * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
12039 * dce.c (word_dce_process_block): Likewise.
12040
12041 2010-08-04 Steve Ellcey <sje@cup.hp.com>
12042
12043 PR target/44583
12044 * config/ia64/constraints.md (Z): New.
12045 * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
12046 (xfreg_or_signed_fp01_operand): New.
12047 * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
12048 with fr_reg_or_signed_fp01_operand and constraint G with Z.
12049 (subsf3): Ditto.
12050 (*maddsf4): Ditto.
12051 (*msubsf4): Ditto.
12052 (adddf3): Ditto.
12053 (adddf3_trunc): Ditto.
12054 (subdf3): Ditto.
12055 (*subdf3_trunc): Ditto.
12056 (*madddf4): Ditto.
12057 (*madddf4_trunc): Ditto.
12058 (*msubdf4): Ditto.
12059 (*msubdf4_trunc): Ditto.
12060 (addxf3): Replace xfreg_or_fp01_operand with
12061 xfreg_or_signed_fp01_operand and constraint G with Z.
12062 (*addxf3_truncsf): Ditto.
12063 (*addxf3_truncdf): Ditto.
12064 (subxf3): Ditto.
12065 (*subxf3_truncsf): Ditto.
12066 (*subxf3_truncdf): Ditto.
12067 (*maddxf4): Ditto.
12068 (*maddxf4_truncsf): Ditto.
12069 (*maddxf4_truncdf): Ditto.
12070 (*msubxf4): Ditto.
12071 (*msubxf4_truncsf): Ditto.
12072 (*msubxf4_truncdf): Ditto.
12073
12074 2010-08-04 Richard Guenther <rguenther@suse.de>
12075
12076 * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
12077 if either alias-set is zero.
12078
12079 2010-08-04 Richard Guenther <rguenther@suse.de>
12080
12081 * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
12082 * tree-ssa-ccp.c: ... here.
12083 * tree-ssa-copy.c: ... and here.
12084 * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
12085 value_range_t): Move ...
12086 * tree-vrp.c: ... here.
12087 * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
12088 (substitute_and_fold): Adjust prototype.
12089 * tree-ssa-propagate.c (replace_uses_in): Adjust.
12090 (replace_phi_args_in): Likewise.
12091 (substitute_and_fold): Take callback to query lattice instead
12092 of pointer to lattice. Replace SSA name defs with lattice
12093 values first.
12094 * tree-ssa-ccp.c (ccp_finalize): Adjust.
12095 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
12096 (get_value): New function.
12097 (fini_copy_prop): Adjust.
12098 * tree-vrp.c (vrp_finalize): Adjust.
12099
12100 2010-08-04 Richard Guenther <rguenther@suse.de>
12101
12102 PR middle-end/45176
12103 * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
12104 points-to set for original MEM_REF.
12105
12106 2010-08-04 Richard Guenther <rguenther@suse.de>
12107
12108 * tree-ssa-ccp.c (get_constant_value): New function.
12109 (get_rhs_assign_op_for_ccp): Remove.
12110 (valueize_op): New function.
12111 (ccp_fold): Use get_constant_value and valueize_op.
12112 (fold_const_aggregate_ref): Likewise.
12113 (ccp_fold_stmt): Likewise.
12114 (visit_assignment): Simplify.
12115
12116 2010-08-04 Richard Guenther <rguenther@suse.de>
12117
12118 * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
12119 * double-int.h (double_int_ctz): Declare.
12120 * double-int.c (double_int_ctz): New function.
12121
12122 2010-08-04 Hariharan Sandanagobalane <hariharan@picochip.com>
12123
12124 * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
12125 Define.
12126 picochip_expand_movmemhi : Expand movmem pattern.
12127 * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
12128 Declare.
12129 * config/picochip/picochip.md (movmemhi) : New pattern.
12130
12131 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
12132
12133 * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
12134
12135 2010-08-03 Bernd Schmidt <bernds@codesourcery.com>
12136
12137 * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
12138 NEG as operand of a MULT by merging it with the other operand.
12139 * combine.c (make_compound_operation): Use trunc_int_for_mode when
12140 generating a MULT with constant. Canonicalize PLUS and MINUS involving
12141 MULT.
12142 * config/arm/constraints.md (M): Examine only 32 bits of a
12143 HOST_WIDE_INT.
12144 * config/arm/predicates.md (power_of_two_operand): Likewise.
12145
12146 2010-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12147
12148 * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
12149 non-NOTE insns.
12150
12151 2010-08-03 Jan Hubicka <jh@suse.cz>
12152
12153 * ipa-split.c (struct split_point): Add split_part_set_retval.
12154 (find_retval): Forward declare.
12155 (test_nonssa_use, mark_nonssa_use): Special case return by reference.
12156 (consider_split): Compute current->split_part_set_retval.
12157 (visit_bb): Do not look into return value.
12158 (split_function): Handle !split_part_set_retval
12159
12160 2010-08-03 Martin Jambor <mjambor@suse.cz>
12161
12162 * tree-sra.c (completely_scalarize_record): New parameter REF, create
12163 its own access->expr intead of using build_ref_for_offset.
12164
12165 2010-08-03 Joseph Myers <joseph@codesourcery.com>
12166
12167 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
12168 * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
12169 * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
12170 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
12171 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
12172 * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
12173 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
12174 DEFAULT_SWITCH_TAKES_ARG.
12175 * config/rx/rx.opt (-patch=): Remove option.
12176 * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
12177 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
12178 * doc/invoke.texi (RX Options): Remove -patch=.
12179 * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
12180 (option_map): Remove --profile-blocks, --quiet and --silent.
12181
12182 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
12183
12184 * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
12185 * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
12186 (ix86_expand_branch): Add op0 and op1 arguments. Do not access
12187 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
12188 Update calls to ix86_expand_compare and ix86_expand_branch.
12189 (ix86_expand_setcc): Add op0 and op1 arguments. Update calls to
12190 ix86_expand_compare.
12191 (ix86_expand_compare): Add op0 and op1 arguments. Do not access
12192 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
12193 Make static.
12194 (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
12195 and ix86_compare_op1. Update calls to ix86_expand_compare.
12196 (ix86_expand_int_movcc): Ditto.
12197 (ix86_expand_fp_movcc): Ditto. Update calls to ix86_expand_setcc.
12198 * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
12199 (ix86_expand_setcc): Ditto.
12200 (ix86_expand_compare): Remove prototype.
12201 * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
12202 ix86_compare_op0 and ix86_compare_op1. Update calls
12203 to ix86_expand_branch to directly pass operands[1] and operands[2].
12204 (cbranchxf4): Ditto.
12205 (cbranch<MODEF:mode>4): Ditto.
12206 (cbranchcc4): Ditto.
12207 (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
12208 Update calls to ix86_expand_setcc to directly pass operands[2] and
12209 operands[3].
12210 (cstorexf4): Ditto.
12211 (cstore<MODEF:mode>4): Ditto.
12212 (cstorecc4): Ditto.
12213
12214 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
12215
12216 PR target/45063
12217 * caller-save.c (save_call_clobbered_regs): Remove regs from
12218 hard_regs_saved when they are set.
12219
12220 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
12221
12222 PR target/41089
12223 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
12224 as volatile.
12225
12226 2010-08-02 Sebastian Pop <sebastian.pop@amd.com>
12227
12228 * common.opt (ftree-loop-distribute-patterns): New.
12229 * invoke.texi (-ftree-loop-distribute-patterns): Documented.
12230 * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
12231 at -O3.
12232 * tree-data-ref.c (stores_zero_from_loop): New.
12233 * tree-data-ref.h (stores_zero_from_loop): Declared.
12234 * tree-loop-distribution.c (tree_loop_distribution): Call
12235 stores_zero_from_loop.
12236 (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
12237
12238 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
12239
12240 * postreload.c (reload_cse_simplify_operands): Take attribute enabled
12241 into account.
12242
12243 * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
12244 * config/arm/arm.c (thumb1_code): New variable.
12245 (arm_override_options): Set it.
12246 (thumb1_final_prescan_insn): Keep track of condition code status.
12247 (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
12248 jumps that depend on them.
12249 * config/arm/arm.h (thumb1_code): Declare variable.
12250 (struct machine_function): Guard with #ifndef GENERATOR_FILE. Add
12251 members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
12252 thumb1_cc_mode.
12253 (CC_STATUS_INIT): New macro.
12254 * config/arm/constraints.md (Pd): New constraint.
12255 * config/arm/predicates.md (noov_comparison_operator): New predicate.
12256 * config/arm/arm.md (is_thumb1): New define_attr.
12257 (conds): Set default to "clob" when generating Thumb1 code.
12258 (thumb1_bicsi3): Renamed from bicsi3. All uses changed. Condition
12259 code are set. Use two-operand assembly syntax.
12260 (thumb1_subsi3_insn): Condition codes are set. Now a properly named
12261 pattern.
12262 (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
12263 codes are set. Use two-operand assembly syntax.
12264 (zero_extendhisi splitter): Remove constraints.
12265 (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
12266 thumb1_movsf_insn): Set conds attribute as appropriate.
12267 (cbranchsi4_insn): Use condition code status from struct
12268 machine_function to determine whether the comparison can be eliminated.
12269 Discourage the alternative using high registers.
12270 (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
12271 orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
12272 bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
12273 subsi3_cbranch): Delete.
12274 (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
12275 one subtract and one cbranch insn.
12276
12277 * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
12278 thumb2_movdf_soft_insn): Delete patterns.
12279 * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
12280 arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
12281 (pool_range, neg_pool_range): Use them to define defaults.
12282 (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
12283 and allow for TARGET_32BIT.
12284
12285 PR target/40457
12286 * config/arm/arm.h (arm_regs_in_sequence): Declare.
12287 * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
12288 load_multiple_sequence, store_multiple_sequence): Delete
12289 declarations.
12290 (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
12291 declarations.
12292 * config/arm/ldmstm.md: New file.
12293 * config/arm/arm.c (arm_regs_in_sequence): New array.
12294 (load_multiple_sequence): Now static. New args SAVED_ORDER,
12295 CHECK_REGS. All callers changed.
12296 If SAVED_ORDER is nonnull, copy the computed order into it.
12297 If CHECK_REGS is false, don't sort REGS. Handle Thumb mode.
12298 (store_multiple_sequence): Now static. New args NOPS_TOTAL,
12299 SAVED_ORDER, REG_RTXS and CHECK_REGS. All callers changed.
12300 If SAVED_ORDER is nonnull, copy the computed order into it.
12301 If CHECK_REGS is false, don't sort REGS. Set up REG_RTXS just
12302 like REGS. Handle Thumb mode.
12303 (arm_gen_load_multiple_1): New function, broken out of
12304 arm_gen_load_multiple.
12305 (arm_gen_store_multiple_1): New function, broken out of
12306 arm_gen_store_multiple.
12307 (arm_gen_multiple_op): New function, with code from
12308 arm_gen_load_multiple and arm_gen_store_multiple moved here.
12309 (arm_gen_load_multiple, arm_gen_store_multiple): Now just
12310 wrappers around arm_gen_multiple_op. Remove argument UP, all callers
12311 changed.
12312 (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
12313 * config/arm/predicates.md (commutative_binary_operator): New.
12314 (load_multiple_operation, store_multiple_operation): Handle more
12315 variants of these patterns with different starting offsets. Handle
12316 Thumb-1.
12317 * config/arm/arm.md: Include "ldmstm.md".
12318 (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
12319 ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
12320 stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
12321 peepholes): Delete.
12322 * config/arm/ldmstm.md: New file.
12323 * config/arm/arm-ldmstm.ml: New file.
12324
12325 * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
12326 if statement which adds extra costs to frame-related expressions.
12327
12328 2010-08-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12329
12330 * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
12331
12332 2010-08-01 Uros Bizjak <ubizjak@gmail.com>
12333
12334 PR target/45142
12335 * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
12336 alternative 2.
12337 (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
12338 split V4SI operands.
12339
12340 2010-08-01 Anatoly Sokolov <aesok@post.ru>
12341
12342 * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
12343 * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
12344 * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
12345 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
12346
12347 2010-07-31 Kai Tietz <kai.tietz@onevision.com>
12348
12349 * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
12350 LOCAL_INCLUDE_DIR.
12351
12352 2010-07-31 Richard Sandiford <rdsandiford@googlemail.com>
12353
12354 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
12355 used in the call to optab_for_tree_code. Fix the second
12356 is_widening_mult_p call. Check that both unwidened operands
12357 have the same sign.
12358
12359 2010-07-31 John Tytgat <John.Tytgat@aaug.net>
12360
12361 * config/arm/arm.c (arm_function_arg): Remove superfluous test.
12362
12363 2010-07-31 Anatoly Sokolov <aesok@post.ru>
12364
12365 * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
12366
12367 2010-07-30 DJ Delorie <dj@redhat.com>
12368
12369 * config/rx/predicates.md (rx_constshift_operand): New.
12370 * config/rx/rx.md (zs_cond): New.
12371 (cbranchsi4): Remove mode.
12372 (*cbranchsi4_<code>): Likewise.
12373 (*tstbranchsi4_<code>): New.
12374 (*tstbranchsi4r_<code>): New.
12375 (*tstbranchsi4m_eq): New.
12376 (*tstbranchsi4m_ne): New.
12377 (cbranchsf4): Remove mode.
12378 (*cbranchsf4_<code>): Likewise.
12379
12380 2010-07-30 Bernd Schmidt <bernds@codesourcery.com>
12381
12382 * rtlanal.c (simplify_subreg_regno): Don't treat
12383 HARD_FRAME_POINTER_REGNUM specially.
12384
12385 2010-07-30 Joseph Myers <joseph@codesourcery.com>
12386
12387 * common.opt (-G): Don't define option here.
12388 * config/g.opt: New.
12389 * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
12390 rs6000/powerpc and score targets.
12391 * opts.c (common_handle_option): Don't handle -G here.
12392 * config/alpha/alpha.c (alpha_handle_option): Handle -G.
12393 * config/frv/frv.c (frv_handle_option): Handle -G.
12394 * config/ia64/ia64.c (ia64_handle_option): Handle -G.
12395 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
12396 * config/m32r/m32r.c (m32r_handle_option): Handle -G.
12397 * config/mips/mips.c (mips_handle_option): Handle -G.
12398 * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
12399 * config/score/score.c (score_handle_option): Handle -G.
12400
12401 2010-07-30 Anatoly Sokolov <aesok@post.ru>
12402
12403 * config/mmix/mmix.c: Include basic-block.h.
12404
12405 2010-07-30 Jakub Jelinek <jakub@redhat.com>
12406
12407 PR debug/45055
12408 PR rtl-optimization/45137
12409 * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
12410 prototypes.
12411 * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
12412 New functions.
12413 * combine.c (next_nonnote_nondebug_insn): Removed.
12414 * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
12415 * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
12416 * sched-deps.c (sched_analyze_insn): Likewise.
12417 (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
12418 * rtlanal.c (canonicalize_condition): Likewise.
12419 * postreload.c (reload_combine_recognize_pattern): Likewise.
12420 (reload_cse_move2add): Use next_nonnote_nondebug_insn.
12421
12422 2010-07-29 Uros Bizjak <ubizjak@gmail.com>
12423
12424 * config/i386/i386.md (int_cond): Remove code iterator.
12425 (fp_cond): Ditto.
12426 (cbranch<mode>4): Use ordered_comparison_operator predicate
12427 for operator0.
12428 (cstore<mode>4): Ditto for operator1.
12429 (mov<SWIM:mode>cc and corresponding splitter): Ditto.
12430 (add<mode>cc): ditto.
12431
12432 2010-07-30 Richard Guenther <rguenther@suse.de>
12433
12434 PR middle-end/45141
12435 * expr.c (expand_expr_real_1): Check for not handled base address.
12436
12437 2010-07-30 Richard Guenther <rguenther@suse.de>
12438
12439 * ipa-prop.c (ipa_modify_formal_parameters): Use
12440 build_distinct_type_copy.
12441
12442 2010-07-30 Anthony Green <green@moxielogic.com>
12443
12444 * config/moxie/rtems.h: New file.
12445 * config.gcc: Add moxie-rtems support.
12446
12447 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
12448
12449 * dce.c (run_word_dce): Take flag_dce into account. Clear and restore
12450 df flags as in run_fast_df_dce.
12451
12452 2010-07-29 Jakub Jelinek <jakub@redhat.com>
12453
12454 Revert:
12455 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
12456
12457 * rtl.def (NOTE): Swap operands 4 and 5.
12458 * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
12459 NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
12460 Adjust accordingly.
12461 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
12462
12463 2010-07-29 Jakub Jelinek <jakub@redhat.com>
12464
12465 PR debug/45110
12466 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
12467 (gen_formal_types_die): Add DW_AT_object_pointer in methods.
12468 (gen_subprogram_die): Likewise. Remove it when removing declaration's
12469 formal parameters.
12470 (gen_decl_die): Change return type to dw_die_ref, return what
12471 gen_formal_parameter_die returned.
12472
12473 2010-07-29 Martin Jambor <mjambor@suse.cz>
12474
12475 * dbgcnt.def (eipa_sra): New counter.
12476 * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
12477
12478 2010-07-29 Xinliang David Li <davidxl@google.com>
12479
12480 PR bootstrap/45119
12481 * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
12482 in revision 162652.
12483
12484 2010-07-29 Richard Guenther <rguenther@suse.de>
12485
12486 * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
12487 (TV_TREE_STORE_CCP): Likewise.
12488 (TV_TREE_REDPHI): Likewise.
12489
12490 2010-07-29 Richard Guenther <rguenther@suse.de>
12491
12492 * double-int.h (double_int_and_not): New function.
12493 * combine.c (try_combine): Use it.
12494 * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
12495
12496 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
12497
12498 PR rtl-optimization/42575
12499 * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
12500 Argument AU removed. All callers changed. Ignore artificial refs.
12501 Use return value of df_word_lr_simulate_defs to decide whether an insn
12502 is necessary.
12503 (fast_dce): Rename arg to WORD_LEVEL.
12504 (run_word_dce): Renamed from rest_of_handle_fast_byte_dce. No longer
12505 static.
12506 (pass_fast_rtl_byte_dce): Delete.
12507 * dce.h (run_word_dce): Declare.
12508 * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
12509 All callers changed. Simplify code to only deal with two-word regs.
12510 * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
12511 (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
12512 (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
12513 (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
12514 (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
12515 (df_word_lr_mark_ref): Declare.
12516 (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
12517 df_word_lr_simulate_uses): Declare or rename from byte variants.
12518 (df_byte_lr_simulate_artificial_refs_at_top,
12519 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
12520 df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
12521 declarations.
12522 (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
12523 (enum df_mm): Delete.
12524 * df-byte-scan.c: Delete file.
12525 * df-problems.c (df_word_lr_problem_data): Renamed from
12526 df_byte_lr_problem_data, all members deleted except for
12527 WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS. Uses changed.
12528 (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
12529 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
12530 df_byte_lr_get_regno_len, df_byte_lr_check_regs,
12531 df_byte_lr_confluence_0): Delete functions.
12532 (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
12533 callers changed.
12534 (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
12535 Don't initialize members that were deleted, don't try to discover data
12536 about registers. Ignore hard regs.
12537 (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
12538 (df_word_lr_mark_ref): New function.
12539 (df_word_lr_bb_local_compute): Renamed from
12540 df_byte_bb_lr_local_compute; all callers changed. Use
12541 df_word_lr_mark_ref. Assert that artificial refs don't include
12542 pseudos. Ignore hard registers.
12543 (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
12544 Assert that exit block uses don't contain pseudos.
12545 (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
12546 (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
12547 callers changed. Ignore hard regs.
12548 (df_word_lr_transfer_function): Renamed from
12549 df_byte_lr_transfer_function; all callers changed.
12550 (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
12551 (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
12552 changed.
12553 (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
12554 callers changed.
12555 (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
12556 confluence operator 0 set to NULL.
12557 (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
12558 callers changed.
12559 (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
12560 Return bool, true if bitmap changed or insn otherwise necessary.
12561 All callers changed. Simplify using df_word_lr_mark_ref.
12562 (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
12563 all callers changed. Simplify using df_word_lr_mark_ref.
12564 * lower-subreg.c: Include "dce.h"
12565 (decompose_multiword_subregs): Call run_word_dce if df available.
12566 * Makefile.in (lower-subreg.o): Adjust dependencies.
12567 (df-byte-scan.o): Delete.
12568 * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
12569
12570 2010-07-29 Richard Guenther <rguenther@suse.de>
12571
12572 * tree.c (build_vector): Assert that the vector constant
12573 has enough elements.
12574 (build_vector_from_ctor): Pad with trailing zeros.
12575
12576 2010-07-29 Richard Guenther <rguenther@suse.de>
12577
12578 PR tree-optimization/45120
12579 * tree-ssa-structalias.c (get_constraint_for_component_ref):
12580 Handle offset in DEREFs properly.
12581 (get_constraint_for_1): Handle MEM_REF offset properly.
12582
12583 2010-07-29 Richard Guenther <rguenther@suse.de>
12584
12585 PR middle-end/45034
12586 * convert.c (convert_to_integer): Always use an unsigned
12587 type for narrowed negate and bitwise not.
12588
12589 2010-07-29 Ira Rosen <irar@il.ibm.com>
12590
12591 * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
12592 to outer loop when creating reduction epilogue for double reduction,
12593 and switch back to the inner loop when updating the phi nodes.
12594 Update uses of outer loop exit phi nodes in double reduction (instead
12595 of uses of reduction).
12596
12597 2010-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
12598
12599 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
12600 popcount on power7 and parity on power6 systems.
12601 (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
12602 (rs6000_emit_parity): Add support for power6 prtyd/prtyw
12603 instructions.
12604
12605 * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
12606 (UNSPEC_PARITY): Ditto.
12607 (SFDF): New iterator for SF/DF.
12608 (rreg2): New mode attribute for floating register constraint.
12609 (TARGET_FLOAT): New mode attribute for whether single/double float
12610 is supported.
12611 (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
12612 pattern.
12613 (parity<mode>2_cmpb): New insn for parity on power6 and newer
12614 machines.
12615 (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
12616 pattern. Add support for fcpsgn instruction added in power6.
12617 (copysignsf3): Delete.
12618 (copysigndf3): Delete.
12619 (copysign<mode>3_fcpsgn): New insn to generate fcpsgn. Use UNSPEC
12620 instead of if_then_else in RTL to avoid problems with -0.
12621
12622 * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
12623 of if_then_else to mirror scalar code.
12624 (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
12625 rs6000.md.
12626
12627 * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
12628 instead of if_then_else.
12629
12630 2010-07-28 Xinliang David Li <davidxl@google.com>
12631
12632 * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
12633 (dump_cand): Dump var_before/after.
12634 (htab_inv_expr_eq): New function.
12635 (htab_inv_expr_hash): New function.
12636 (tree_ssa_iv_optimize_init): Support pseudo invariants.
12637 (add_candidate_1): consider base type precision.
12638 (set_use_iv_cost): New parameter.
12639 (adjust_setup_cost): Use profile information.
12640 (get_address_cost): Do not hard code width in computing address
12641 offset limits.
12642 (compare_aff_trees): New function.
12643 (get_loop_invariant_expr_id): New function.
12644 (get_computation_cost_at): New parameter and use profile information.
12645 (get_computation_cost): New parameter.
12646 (determine_use_iv_cost_generic): Pass new parameter.
12647 (determine_use_iv_cost_address): Ditto.
12648 (determine_use_iv_cost_condition): Ditto.
12649 (autoinc_possible_for_pair): Ditto.
12650 (determine_use_iv_costs): More dumps.
12651 (iv_ca_get_num_inv_exprs): New function.
12652 (iv_ca_recount_cost): Consider loop invariants in register pressure
12653 cost.
12654 (iv_ca_add_use): New parameter.
12655 (iv_ca_dump): Better dumping.
12656 (iv_ca_extend): New parameter.
12657 (try_add_cand_for): Attempt to get better partial solution.
12658 (try_improve_iv_set): Pass new parameter to iv_ca_extend.
12659 (create_new-ivs): More dumps.
12660 (rewrite_use_compare): Ditto.
12661 (free_loop_data): More cleanup.
12662 (treee_ssa_iv_optimize_finalize): Ditto.
12663
12664 2010-07-28 Kai Tietz <kai.tietz@onevision.com>
12665
12666 * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
12667 * config/i386/i386.c (ix86_profile_before_prologue): New.
12668 (override_options): Add special handling for -mfentry.
12669 (ix86_function_regparm): Likewise.
12670 (ix86_function_sseregparm): Likewise.
12671 (ix86_frame_pointer_required): Likewise.
12672 (ix86_expand_prologue): Check for ms_hook_prologue.
12673 (x86_function_profiler): Adjust mcount output.
12674 (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
12675 * config/i386/i386.opt (mfentry): New.
12676 * doc/invoke.texi (mfentry): Add documentation.
12677 * doc/tm.texi: Regenerated..
12678 * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
12679 * final.c (final_start_function): Replace macro
12680 PROFILE_BEFORE_PROLOGUE by target hook.
12681 * function.c (thread_prologue_and_epilogue_insns): Likewise.
12682 * target.def (profile_before_prologue): New hook.
12683 * targhooks.c (default_profile_before_prologue): New.
12684 * targhooks.h (default_profile_before_prologue): New.
12685
12686 2010-07-28 Jakub Jelinek <jakub@redhat.com>
12687
12688 PR debug/45105
12689 * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
12690
12691 PR debug/45103
12692 * dwarf2out.c (dwarf2out_var_location): Always consider
12693 NOTE_DURING_CALL_P notes, even when not followed by real instructions.
12694
12695 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
12696
12697 PR rtl-optimization/45107
12698 * gcse.c (hash_scan_set): Use max_distance for gcse-las.
12699
12700 2010-07-28 Richard Guenther <rguenther@suse.de>
12701
12702 * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
12703 (set_lattice_value): Do not query an old default value.
12704 (get_value_for_expr): New function. Properly canonicalize
12705 float values.
12706 (ccp_visit_phi_node): Use it.
12707
12708 2010-07-28 Chung-Lin Tang <cltang@codesourcery.com>
12709
12710 * config/arm/arm.c (arm_pcs_default): Remove static.
12711 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
12712 __ARM_PCS_VFP to indicate soft/hard-float calling convention.
12713 (arm_pcs_default): Declare.
12714
12715 2010-07-28 Iain Sandoe <iains@gcc.gnu.org>
12716
12717 * config/rs6000/rs6000.c (rs6000_override_options):
12718 Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
12719 ... to darwin_rs6000_override_options.
12720 (rs6000_return_in_memory): Update preceding comment for darwin
12721 64 bit ABI. Use TARGET_MACHO inline.
12722 (rs6000_darwin64_struct_check_p): New.
12723 (function_arg_advance): Use rs6000_darwin64_struct_check_p.
12724 (function_arg): Likewise.
12725 (rs6000_arg_partial_bytes): Likewise.
12726 (rs6000_function_value): Likewise.
12727
12728 2010-07-28 Andi Kleen <ak@linux.intel.com>
12729
12730 * lto-opts.c (lto_file_read_options): Add loop over all inputs.
12731
12732 2010-07-28 Richard Guenther <rguenther@suse.de>
12733
12734 PR middle-end/44903
12735 * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
12736 targets try harder to not generate unaligned accesses.
12737
12738 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
12739
12740 PR rtl-optimization/45101
12741 * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
12742 for gcse-las.
12743
12744 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
12745
12746 PR tree-optimization/44885
12747 * tree-sra.c (find_param_candidates): Skip pointer types to arrays
12748 with non-aliased component.
12749
12750 2010-07-28 Joseph Myers <joseph@codesourcery.com>
12751
12752 * config/darwin-driver.c (SWITCH_TAKES_ARG,
12753 WORD_SWITCH_TAKES_ARG): Remove.
12754 * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
12755 * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
12756 DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
12757 (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
12758 definitions from gcc.c.
12759 * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
12760 defaults.h.
12761 * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
12762 Move to defaults.h.
12763 * opts-common.c: Include tm.h.
12764 (decode_cmdline_option): Use SWITCH_TAKES_ARG and
12765 WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
12766 Handle more than one argument. Set canonical_option_num_elements.
12767 (decode_cmdline_options_to_array): Set
12768 canonical_option_num_elements and trailing elements of
12769 canonical_option.
12770 * opts.h (struct cl_decoded_option): Allow four elements in
12771 canonical_option. Add field canonical_option_num_elements.
12772 * Makefile.in (opts-common.o): Update dependencies.
12773
12774 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
12775
12776 PR middle-end/44790
12777 PR middle-end/44993
12778 * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change. Make
12779 sure the base has address_mode before adding the offset.
12780
12781 2010-07-27 Xinliang David Li <davidxl@google.com>
12782
12783 * tree-flow.h (create_mem_ref): Add one new parameter.
12784 * tree-ssa-address.c (create_mem_ref): New parameter.
12785 (addr_to_parts): Ditto.
12786 (move_variant_to_index): New function.
12787 * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
12788
12789 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
12790
12791 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
12792 4 and 5.
12793 * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
12794 NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
12795 NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
12796 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
12797 CODE_LABELs and NOTEs.
12798 * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
12799 * combine.c (try_combine): Likewise.
12800 * ira.c (setup_prohibited_mode_move_regs): Likewise.
12801 * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
12802
12803 2010-07-27 Joseph Myers <joseph@codesourcery.com>
12804
12805 * coretypes.h (struct cl_option_handlers): Declare.
12806 * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
12807 * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
12808 * langhooks-def.h (lhd_handle_option): Declare.
12809 (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
12810 * langhooks.c (lhd_handle_option): New.
12811 * langhooks.h (struct lang_hooks): Update prototype and return
12812 value type of handle_option hook.
12813 * optc-gen.awk: Generate target_flags_explicit definition for the
12814 driver.
12815 * opts-common.c: Include diagnostic.h.
12816 (handle_option): Move from opts.c. Update prototype and return
12817 value type. Use handlers structure.
12818 (read_cmdline_option): Move from opts.c. Update prototype. Use
12819 handlers structure.
12820 (set_option): Move from opts.c.
12821 * opts.c (common_handle_option): Update prototype and return value
12822 type. Update calls to handle_option and enable_warning_as_error.
12823 (unknown_option_callback, post_handling_callback,
12824 lang_handle_option, target_handle_option): New.
12825 (handle_option, read_cmdline_option): Move to opts-common.c.
12826 (read_cmdline_options): Update prototype. Update call to
12827 read_cmdline_option.
12828 (decode_options): Initialize and use handlers structure.
12829 (set_option): Move to opts-common.c.
12830 (enable_warning_as_error): Update prototype. Update call to
12831 handle_option.
12832 * opts.h (struct cl_option_handler_func, struct
12833 cl_option_handlers): New.
12834 (handle_option, enable_warning_as_error): Update prototypes.
12835 (read_cmdline_option): Declare.
12836 * Makefile.in (opts-common.o): Update dependencies.
12837
12838 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12839
12840 * config/arm/arm.c (params.h): Include.
12841 (arm_override_options): Tune gcse-unrestricted-cost.
12842 * config/arm/t-arm (arm.o): Define dependencies.
12843
12844 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12845
12846 PR target/42495
12847 PR middle-end/42574
12848 * basic-block.h (get_dominated_to_depth): Declare.
12849 * dominance.c (get_dominated_to_depth): New function, use
12850 get_all_dominated_blocks as a base.
12851 (get_all_dominated_blocks): Use get_dominated_to_depth.
12852
12853 * gcse.c (occr_t, VEC (occr_t, heap)): Define.
12854 (hoist_exprs): Remove.
12855 (alloc_code_hoist_mem, free_code_hoist_mem): Update.
12856 (compute_code_hoist_vbeinout): Add debug print outs.
12857 (hoist_code): Partially rewrite, simplify. Use get_dominated_to_depth.
12858
12859 * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
12860 quadratic behavior.
12861 * params.h (MAX_HOIST_DEPTH): New macro.
12862 * doc/invoke.texi (max-hoist-depth): Document.
12863
12864 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12865
12866 PR rtl-optimization/40956
12867 * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
12868 constants.
12869
12870 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12871
12872 PR target/42495
12873 PR middle-end/42574
12874 * config/arm/arm.c (legitimize_pic_address): Use
12875 gen_calculate_pic_address pattern to emit calculation of PIC address.
12876 (will_be_in_index_register): New function.
12877 (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
12878 (thumb1_legitimate_address_p): Use it provided !strict_p.
12879 * config/arm/arm.md (calculate_pic_address): New expand and split.
12880
12881 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12882
12883 PR target/42495
12884 PR middle-end/42574
12885 * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
12886 * config/arm/arm.md (define_split "J", define_split "K"): Make
12887 IRA/reload friendly.
12888
12889 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12890
12891 * gcse.c (insert_insn_end_basic_block): Update signature, remove
12892 unused checks.
12893 (pre_edge_insert, hoist_code): Update.
12894
12895 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12896
12897 PR target/42495
12898 PR middle-end/42574
12899 * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
12900
12901 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12902
12903 * gcse.c (hoist_code): Generate new pseudo for every new set insn.
12904
12905 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12906
12907 PR rtl-optimization/40956
12908 PR target/42495
12909 PR middle-end/42574
12910 * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
12911 for hoisting.
12912 (hoist_code): Count occurences in current block too.
12913
12914 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12915
12916 * gcse.c (struct expr:max_distance): New field.
12917 (doing_code_hoisting_p): New static variable.
12918 (want_to_gcse_p): Change signature. Allow constrained hoisting of
12919 simple expressions, don't change behavior for PRE. Set max_distance.
12920 (insert_expr_in_table): Set new max_distance field.
12921 (hash_scan_set): Update.
12922 (hoist_expr_reaches_here_p): Stop search after max_distance
12923 instructions.
12924 (find_occr_in_bb): New static function. Use it in ...
12925 (hoist_code): Calculate sizes of basic block before any changes are
12926 done. Pass max_distance to hoist_expr_reaches_here_p.
12927 (one_code_hoisting_pass): Set doing_code_hoisting_p.
12928
12929 * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
12930 (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
12931 * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
12932 macros.
12933 * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
12934 Document.
12935
12936 2010-07-27 Jeff Law <law@redhat.com>
12937 Maxim Kuvyrkov <maxim@codesourcery.com>
12938
12939 * gcse.c (compute_transpout, transpout): Remove, move logic
12940 to prune_expressions.
12941 (compute_pre_data): Move pruning of trapping expressions ...
12942 (prune_expressions): ... here. New static function.
12943 (compute_code_hoist_data): Use it.
12944 (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
12945
12946 2010-07-27 Xinliang David Li <davidxl@google.com>
12947
12948 * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
12949 (rewrite_use_address): Adjust iv update position when needed.
12950
12951 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12952
12953 * dbgcnt.def (hoist_insn): New debug counter.
12954 * gcse.c (hoist_code): Use it.
12955
12956 2010-07-27 Xinliang David Li <davidxl@google.com>
12957
12958 * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
12959 (niter_for_single_dom_exit): Passes additional parameter.
12960 (iv_period): Fix comments.
12961 (may_eliminate_iv): Handles multiple exit loops properly.
12962 (free_tree_niter_desc): New function.
12963 (free_loop_data): Frees up loop iteration descriptors.
12964
12965 2010-07-27 Jakub Jelinek <jakub@redhat.com>
12966
12967 PR target/44542
12968 * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
12969 of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
12970 instead of MAX_SUPPORTED_STACK_ALIGNMENT.
12971 (expand_one_var): Don't consider DECL_ALIGN for variables for
12972 which expand_one_stack_var_at has been already called.
12973
12974 PR testsuite/44701
12975 * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
12976 constraints on IA-64.
12977
12978 2010-07-27 Jie Zhang <jie@codesourcery.com>
12979
12980 PR target/44290
12981 Revert:
12982 2010-07-23 Jie Zhang <jie@codesourcery.com>
12983
12984 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
12985 false if ! tree_versionable_function_p.
12986
12987 2010-07-27 Jakub Jelinek <jakub@redhat.com>
12988
12989 * dwarf2out.c (add_data_member_location_attribute): Use
12990 add_AT_unsigned instead of add_AT_int if offset is non-negative.
12991
12992 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
12993
12994 * postreload.c (try_replace_in_use): New static function.
12995 (reload_combine_recognize_const_pattern): Use it here. Allow
12996 substituting into a final add insn, and substituting into a memory
12997 reference in an insn that sets the reg.
12998
12999 2010-07-27 Joseph Myers <joseph@codesourcery.com>
13000
13001 * common.opt (o): Add MissingArgError.
13002 * doc/options.texi (MissingArgError): Document.
13003 * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
13004 * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
13005 * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
13006 (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
13007 * langhooks.h (struct lang_hooks): Remove missing_argument.
13008 * optc-gen.awk: Handle MissingArgError and output new structure
13009 field initializers.
13010 * opts.c (read_cmdline_option): Use missing_argument_error field
13011 instead of missing_argument langhook.
13012 * opts.h (struct cl_option): Add missing_argument_error field.
13013 * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
13014
13015 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
13016
13017 PR target/29090
13018 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
13019 Darwin64 ABI, for zero-sized objects.
13020
13021 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
13022
13023 PR target/35491
13024 PR target/29090
13025
13026 Merge from Apple local 4.2.1.
13027 2005-05-11 Stan Shebs <shebs@apple.com>
13028 Fix 64-bit varargs for Darwin (Radar 4028089).
13029 * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
13030 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
13031 Add argument, add case for 8-byte register half-filled with a float.
13032 (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
13033 single-precision floats specially.
13034
13035 2010-07-27 Ira Rosen <irar@il.ibm.com>
13036
13037 PR tree-optimization/44152
13038 * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
13039 complex numbers for further check.
13040 (vect_supported_load_permutation_p): Check nodes with
13041 complex numbers.
13042
13043 2010-07-27 Joseph Myers <joseph@codesourcery.com>
13044
13045 * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
13046 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
13047 (LANG_HOOKS_INIT_OPTIONS): Update default definition.
13048 (LANG_HOOKS_INITIALIZER): Add new hooks.
13049 * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
13050 * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
13051 and complain_wrong_lang_p. Update init_options prototype.
13052 * c-objc-common.c (c_initialize_diagnostics): First call
13053 c_common_initialize_diagnostics.
13054 * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
13055 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
13056 * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
13057 * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
13058 (hook_uint_void_0): New.
13059 * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
13060 (hook_uint_void_0): New.
13061 * opts-common.c (decode_cmdline_option,
13062 decode_cmdline_options_to_array): Also fill in canonical_option field.
13063 * opts.c (complain_wrong_lang): Use langhook to determine whether
13064 to complain instead of special-casing LTO.
13065 (decode_options): Separate lang_mask determination with
13066 option_lang_mask hook from call of init_options hook.
13067 * opts.h (struct cl_decoded_option): Add canonical_option.
13068
13069 2010-07-27 Jakub Jelinek <jakub@redhat.com>
13070
13071 PR tree-optimization/45083
13072 * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
13073
13074 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
13075
13076 * postreload.c (reload_combine_recognize_const_pattern): Move test
13077 for limiting the insn movement to the right scope.
13078
13079 PR rtl-optimization/45051
13080 * reload1.c (delete_output_reload): Use refers_to_regno_p rather
13081 than reg_mentioned_p.
13082
13083 2010-07-26 Richard Henderson <rth@redhat.com>
13084
13085 PR target/44132
13086 * tree-emutls.c: New file.
13087 * Makefile.in (OBJS-common): Add it.
13088 * tree-pass.h (pass_ipa_lower_emutls): Declare.
13089 * passes.c (init_optimization_passes): Add it.
13090
13091 * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
13092 pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
13093 * expr.c (emutls_var_address): Delete.
13094 (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
13095 * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
13096 (emutls_finish): Delete.
13097 * toplev.c (compile_file): Don't call it.
13098 * tree.h (emutls_decl): Delete.
13099 * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
13100 (emutls_finish, emutls_finalize_control_var): Delete.
13101 (emutls_object_type): Move to tree-emutls.c.
13102 (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
13103 default_emutls_var_fields, get_emutls_object_type,
13104 get_emutls_init_templ_addr, emutls_decl, emutls_common_1
13105 default_emutls_var_init): Likewise.
13106 (get_variable_section): Don't special case emutls.
13107 (assemble_variable, do_assemble_alias, categorize_decl_for_section,
13108 default_elf_select_section, default_unique_section,
13109 default_encode_section_info): Likewise.
13110 * varpool.c (decide_is_variable_needed): Likewise.
13111 * gimple-iterator.c (update_call_edge_frequencies): New
13112 (gsi_insert_on_edge_immediate): Use it.
13113 (gsi_insert_seq_on_edge_immediate): Likewise.
13114 (gsi_commit_one_edge_insert): Likewise.
13115
13116 * config/i386/i386.c (x86_64_elf_select_section): Don't handle
13117 SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
13118 (x86_64_elf_unique_section): Likewise.
13119
13120 2010-07-26 Jan Hubicka <jh@suse.cz>
13121
13122 * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
13123 GTY((skip)).
13124
13125 2010-07-26 Anatoly Sokolov <aesok@post.ru>
13126
13127 * target.def (output_source_filename): New hook.
13128 * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
13129 * doc/tm.texi: Regenerate.
13130 * toplev.c (output_file_directive) Remove function.
13131 * toplev.h (output_file_directive) Remove.
13132 * output.h (default_asm_output_source_filename,
13133 output_file_directive): Declare.
13134 * varasm.h (default_asm_output_source_filename,
13135 output_file_directive): New functions.
13136
13137 * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
13138 * config/mips/mips-protos.h (mips_output_filename): Remove.
13139 * config/mips/mips.c (mips_output_filename): Make Static.
13140 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
13141
13142 2010-07-26 Richard Guenther <rguenther@suse.de>
13143
13144 PR tree-optimization/43784
13145 * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
13146 if the destination is used by the call.
13147
13148 2010-07-26 Richard Guenther <rguenther@suse.de>
13149
13150 PR middle-end/45073
13151 * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
13152 SSA updating on being in SSA form.
13153
13154 2010-07-26 Richard Guenther <rguenther@suse.de>
13155
13156 PR middle-end/45056
13157 * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
13158
13159 2010-07-26 Richard Guenther <rguenther@suse.de>
13160
13161 PR tree-optimization/45071
13162 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
13163 adjust op->opcode.
13164
13165 2010-07-26 Naveen.H.S <naveen.S@kpitcummins.com>
13166
13167 * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
13168 save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
13169 save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
13170 save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
13171 save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
13172 save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
13173 save_r31, return_r31, save_interrupt, return_interrupt,
13174 save_all_interrupt, return_all_interrupt, L_save_r2_r31,
13175 L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
13176 L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
13177 new ABI requirements.
13178 (save_r6_r9, L_callt_save_r6_r9): Remove.
13179 * config/v850/predicates.md (even_reg_operand, disp23_operand,
13180 const_float_1_operand const_float_0_operand): New Predicates.
13181 (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
13182 pattern_is_ok_for_epilogue): Update as per the ABI requirements.
13183 * config/v850/t-v850: Update multilibs for new target variants.
13184 (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
13185 * config/v850/t-v850e: Likewise.
13186 * config/v850/v850.c (v850_issue_rate): New.
13187 (v850_strict_argument_naming): New.
13188 (function_arg): Modify to generate a different ABI.
13189 (print_operand): Update case 'z' to support float modes.
13190 (output_move_single): Modify to generate appropriate and better
13191 assembly.
13192 (v850_float_z_comparison_operator, v850_select_cc_mode,
13193 v850_float_nz_comparison_operator, v850_gen_float_compare,
13194 v850_gen_compare): New functions to support comparison of float values.
13195 (ep_memory_offset): Add support for V850E2 targets.
13196 (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
13197 (INTERRUPT_REGPARM_NUM): Remove.
13198 (compute_register_save_size): Add extra case to save/restore long call.
13199 (use_prolog_function): New function to support prologue.
13200 (expand_prologue): Add support for V850E2 targets and modified
13201 as per the current ABI requirements.
13202 (expand_epilogue): Likewise.
13203 (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
13204 (construct_save_jarl): Likewise.
13205 (construct_dispose_instruction): Update as per the current ABI
13206 requirements.
13207 (construct_prepare_instruction): Likewise.
13208 * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
13209 (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
13210 (CPP_SPEC): Updated to support v850e2 targets.
13211 (STRICT_ALIGNMENT): Modified.
13212 (FIRST_PSEUDO_REGISTER): Updated to add even registers.
13213 (FIXED_REGISTERS): Likewise.
13214 (CALL_USED_REGISTERS): Likewise.
13215 (CONDITIONAL_REGISTER_USAGE): Updated.
13216 (HARD_REGNO_MODE_OK): Updated.
13217 (reg_class): Updated to add even registers.
13218 (REG_CLASS_NAMES): Likewise.
13219 (REG_CLASS_CONTENTS): Likewise.
13220 (REGNO_REG_CLASS): Updated for CC registers.
13221 (REG_CLASS_FROM_LETTER): Added support for even registers.
13222 (REGNO_OK_FOR_BASE_P): Updated for CC registers.
13223 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
13224 ARG_POINTER_REGNUM): Updated.
13225 (FUNCTION_ARG_ADVANCE): Define.
13226 (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
13227 (OUTGOING_REG_PARM_STACK_SPACE): Remove.
13228 (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
13229 (GO_IF_LEGITIMATE_ADDRESS): Updated.
13230 (SELECT_CC_MODE): Define.
13231 (REGISTER_NAMES): Updated to add psw and fcc registers.
13232 (ADDITIONAL_REGISTER_NAMES): Updated.
13233 (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
13234 (JUMP_TABLES_IN_TEXT_SECTION): Updated.
13235 * config/v850/v850.md (define_constants): Define new constants.
13236 (type): Update store,bit1,macc,div,fpu and single attributes.
13237 (cpu): New attribute.
13238 (cc): Add set_z attribute.
13239 (unsign23byte_load, sign23byte_load, unsign23hword_load,
13240 sign23hword_load, 23word_load, 23byte_store, 23hword_store,
13241 23word_store): New instructions for 23-bit displacement load and store.
13242 (movqi_internal, movhi_internal): Update the attributes.
13243 (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
13244 (movsi_internal_v850e, movsi_internal, movsf_internal): Update
13245 the attributes.
13246 (v850_tst1): Modified using CC_REGNUM.
13247 (tstsi): Remove.
13248 (cmpsi): Modified as define_expand from define_insn.
13249 (cmpsi_insn, cmpsf, cmpdf): New instructions.
13250 (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
13251 udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
13252 v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
13253 one_cmplsi2): Clobber the CC_REGNUM register.
13254 (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
13255 v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
13256 v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
13257 (setf_insn, set_z_insn, set_nz_insn): New instructions for
13258 v850e2v3 target.
13259 (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
13260 (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
13261 targets.
13262 (sasf_1, sasf_2): Remove.
13263 (sasf): New instruction.
13264 (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
13265 targets. CC_REGNUM register is clobbered and attributes are
13266 updated.
13267 (branch_z_normal, branch_z_invert, branch_nz_normal,
13268 branch_nz_invert): New branch related instructions.
13269 (jump): Updated the attributes.
13270 (switch): Update to support new targets. CC_REGNUM register is
13271 clobbered and attributes are updated.
13272 (call_internal_short, call_internal_long, call_value_internal_short,
13273 call_value_internal_long): Updated the attributes.
13274 (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
13275 clobbered and attributes are updated.
13276 (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
13277 Update to support new targets. CC_REGNUM register is clobbered.
13278 (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
13279 instructions.
13280 (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
13281 are updated.
13282 (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
13283 divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
13284 negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
13285 floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
13286 rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
13287 cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
13288 cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
13289 cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
13290 movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
13291 movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
13292 point instructions defined for V850e2v3 target.
13293 (callt_save_interrupt, callt_return_interrupt, return_interrupt):
13294 Add support for V850E2 targets and CC_REGNUM register is clobbered.
13295 (callt_save_all_interrupt, callt_restore_all_interrupt): Add
13296 support for new targets.
13297 * config/v850/v850-modes.def: New file.
13298 * config/v850/v850.opt(mstrict-align): Remove.
13299 (mno-strict-align, mjump-tables-in-data-section, mv850e2,
13300 mv850e2v3): New command line options for V850.
13301 * config.gcc: Update the newly added files.
13302 * doc/invoke.texi: Update the newly added command line options for
13303 V850 target.
13304
13305 2010-07-26 Richard Guenther <rguenther@suse.de>
13306
13307 PR tree-optimization/45052
13308 * ipa-pure-const.c (check_stmt): Check volatileness.
13309
13310 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
13311
13312 PR target/44707
13313 * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
13314 * config/sparc/sparc.c: Include reload.h.
13315 (legitimize_tls_address): Rename into...
13316 (sparc_legitimize_tls_address): ...this.
13317 (legitimize_pic_address): Rename into...
13318 (sparc_legitimize_pic_address): ...this.
13319 (sparc_expand_move): Adjust to above renaming.
13320 (sparc_tls_referenced_p): Likewise.
13321 (sparc_legitimize_tls_address): Likewise.
13322 (sparc_legitimize_pic_address): Likewise.
13323 (sparc_legitimize_address): Likewise.
13324 (sparc_output_mi_thunk): Likewise.
13325 (sparc_legitimize_reload_address): New global function. Recognize
13326 (lo_sum (high ...) ...) patterns generated by earlier passes.
13327 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
13328
13329 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
13330
13331 PR target/44484
13332 * config/sparc/predicates.md (memory_reg_operand): Delete.
13333 * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
13334 (*sync_compare_and_swap): Encode the address form in the pattern.
13335 (*sync_compare_and_swapdi_v8plus): Likewise.
13336
13337 2010-07-24 Gerald Pfeifer <gerald@pfeifer.com>
13338
13339 * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
13340 Streamline paragraph on compatibility with the system compiler.
13341
13342 2010-07-24 Steven Bosscher <steven@gcc.gnu.org>
13343
13344 PR middle-end/45035
13345 * alias.c (true_dependence_1): Fix thinko in merge of old
13346 true_dependence and canon_true_dependence.
13347
13348 2010-07-23 Jan Hubicka <jh@suse.cz>
13349
13350 * lto-streamer-out.c (write_symbol): Fix visibilities of external
13351 references.
13352
13353 2010-07-23 Le-Chun Wu <lcwu@google.com>
13354
13355 * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
13356 * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
13357 and an unnecessary assignment.
13358 * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
13359 self-assign warning.
13360 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
13361 unnecessary self-init.
13362
13363 2010-07-23 Richard Guenther <rguenther@suse.de>
13364
13365 PR lto/43071
13366 * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
13367 for -flto and -fwhopr.
13368
13369 2010-07-23 Kai Tietz <kai.tietz@onevision.com>
13370
13371 PR target/41943
13372 * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
13373 (stmp-int-hdrs): Prefix/postfix headers by include_next.
13374 * config.gcc (user_headers_inc_next_pre): New.
13375 (user_headers_inc_next_post): Likewise.
13376 (*-w64-mingw*): Use for float.h post-fixing, and for
13377 stddef.h/stdarg.h pre-fixing by include_next.
13378 * configure.ac (user_headers_inc_next_post): New.
13379 (user_headers_inc_next_pre): New.
13380 * configure: Regenerated.
13381
13382 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13383
13384 * configure.ac: Don't disable TLS on Solaris 8/9 by default
13385 Set tga_func for Solaris 2/x86 resp. SPARC.
13386 Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
13387 (LIB_THREAD_LDFLAGS_SPEC): Define.
13388 (LIB_TLS_SPEC): Define. Check for required Sun ld version.
13389 * configure: Regenerate.
13390 * config.in: Regenerate.
13391 * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
13392 -pthread, -threads, LIB_TLS_SPEC with -pthread.
13393 * doc/install.texi (Specific, *-*-solaris2*): Document use of
13394 alternate thread libraries on Solaris 8.
13395 Document TLS patch requirements.
13396 * doc/sourcebuild.texi (Add Options): Sort alphabetically.
13397 Document tls.
13398
13399 PR target/18788
13400 * config/sol2.h (LIB_SPEC): Link with thread libraries even with
13401 -shared.
13402
13403 2010-07-23 Jakub Jelinek <jakub@redhat.com>
13404
13405 * tree.h (struct tree_base): Add nameless_flag bitfield.
13406 (TYPE_NAMELESS, DECL_NAMELESS): Define.
13407 * omp-low.c (create_omp_child_function, scan_omp_parallel,
13408 scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
13409 DECL_ARTIFICIAL where needed.
13410 * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
13411 (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
13412 has DECL_NAMELESS set.
13413
13414 2010-07-23 Martin Jambor <mjambor@suse.cz>
13415
13416 PR tree-optimization/44915
13417 * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
13418 * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
13419 (analyze_function): Likewise.
13420
13421 2010-07-23 Martin Jambor <mjambor@suse.cz>
13422
13423 PR tree-optimization/44914
13424 * tree-sra.c (sra_modify_function_body): Return true if CFG was
13425 changed, add purging dead eh edges.
13426 (ipa_sra_modify_function_body): Return true if CFG was changed,
13427 simplify purging dead eh edges.
13428 (modify_function): Return true if CFG was changed.
13429 (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
13430 was changed.
13431 (ipa_early_sra): Likewise.
13432
13433 2010-07-23 Jie Zhang <jie@codesourcery.com>
13434
13435 PR target/44290
13436 * attribs.c (decl_attributes): Insert "noinline" and "noclone"
13437 if "naked".
13438 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
13439 false if ! tree_versionable_function_p.
13440
13441 2010-07-23 Nathan Froyd <froydnj@codesourcery.com>
13442
13443 * builtins.def (BUILT_IN_ARGS_INFO): Remove.
13444 * ipa-pure-const.c (special_builtlin_state): Remove
13445 BUILT_IN_ARGS_INFO case.
13446 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
13447 * builtins.c (expand_builtin): Likewise.
13448 (expand_builtin_args_info): Remove.
13449 * doc/tm.texi (__builtin_args_info): Remove.
13450 (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
13451 * doc/tm.text.in: Likewise.
13452
13453 2010-07-23 Richard Guenther <rguenther@suse.de>
13454
13455 * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
13456 (lto_symtab_merge_decls_2): Likewise.
13457 * tree-ssa.c (useless_type_conversion_p): Likewise.
13458 * lto-streamer-in.c (input_gimple_stmt): Likewise.
13459 * gimple.c (gtc_visited2, gtc_ob2): Remove.
13460 (struct type_pair_d): Make same_p an array indexed by mode.
13461 Update comment.
13462 (lookup_type_pair): Update initialization.
13463 (struct sccs): Adjust same_p type.
13464 (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
13465 Adjust.
13466 (print_gimple_types_stats): Likewise.
13467 * gimple.h (enum gtc_mode): New.
13468 (gimple_types_compatible_p): Adjust prototype.
13469
13470 2010-07-23 Daniel Jacobowitz <dan@codesourcery.com>
13471
13472 * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
13473 again after processing insn.
13474
13475 2010-07-23 Jie Zhang <jie@codesourcery.com>
13476
13477 * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
13478 proper words when !tree_versionable_function_p.
13479
13480 2010-07-23 Richard Guenther <rguenther@suse.de>
13481
13482 PR tree-optimization/45037
13483 * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
13484
13485 2010-07-23 Jie Zhang <jie@codesourcery.com>
13486
13487 * doc/extend.texi: Remove IP2K from the description of naked attribute.
13488 Add MCORE instead.
13489
13490 2010-07-10 Andi Kleen <ak@linux.intel.com>
13491
13492 PR lto/44992
13493 * lto-opts.c (lto_write_options): Add NULL file_data argument to
13494 lto_get_section_name.
13495 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
13496 * lto-streamer-out.c (produce_asm): Likewise.
13497 (copy_function): Likewise.
13498 (produce_symtab): Likewise.
13499 (produce_asm_for_decls): Likewise.
13500 * lto-streamer.c (lto_get_section_name): Add file_data argument.
13501 Rewrite to add random postfix to LTO sections.
13502 * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
13503 (lto_get_section_name): Add file_data argument to prototype.
13504
13505 2010-07-10 Andi Kleen <ak@linux.intel.com>
13506
13507 * lto-section-in.c (lto_section_name): Synchronize names
13508 with lto_get_section_name.
13509
13510 2010-07-10 Andi Kleen <ak@linux.intel.com>
13511
13512 * lto-opts.c (lto_read_file_options): Check for missing section.
13513
13514 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
13515
13516 * ira.c (check_allocation): Correctly handle the case where an allocno
13517 with two objects was allocated to a single reg.
13518
13519 2010-07-22 Richard Sandiford <rdsandiford@googlemail.com>
13520
13521 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
13522 (is_widening_mult_p): Likewise.
13523 (convert_to_widen): Use them.
13524 (convert_plusminus_to_widen): Likewise. Handle fixed-point types as
13525 well as integer ones.
13526
13527 2010-07-22 Steven Bosscher <steven@gcc.gnu.org>
13528
13529 * alias.c (true_dependence_1): New function, merged version of
13530 true_dependence and canon_true_dependence.
13531 (true_dependence): Simplify.
13532 (canon_true_dependence): Simplify.
13533
13534 2010-07-22 Richard Henderson <rth@redhat.com>
13535
13536 PR target/45027
13537 * config/i386/i386.c (setup_incoming_varargs_64): Force the use
13538 of V4SFmode for the SSE saves; increase stack alignment if needed.
13539 (ix86_gimplify_va_arg): Don't increase stack alignment here.
13540
13541 2010-07-22 Jakub Jelinek <jakub@redhat.com>
13542
13543 PR bootstrap/45028
13544 * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
13545 call cprop_find_used_regs again via note_uses.
13546
13547 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
13548
13549 * alias.c (get_alias_set): Fix formatting issues.
13550
13551 2010-07-22 Steve Ellcey <sje@cup.hp.com>
13552
13553 PR middle-end/44878
13554 * stmt.c (expand_value_return): Call promote_function_mode with
13555 a for_return argument of 2 when returning by reference.
13556
13557 2010-07-22 Dodji Seketeli <dodji@redhat.com>
13558
13559 PR debug/45024
13560 * dwarf2out.c (scope_die_for): Don't fall back to the compilation
13561 unit DIE if we can find the scope DIE.
13562
13563 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
13564
13565 * ira-build.c (ira_create_object): New arg SUBWORD; all callers
13566 changed. Initialize OBJECT_SUBWORD.
13567 (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
13568 (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
13569 all callers changed.
13570 (merge_hard_reg_conflicts): Iterate over allocno subobjects.
13571 (finish_allocno): Likewise.
13572 (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
13573 (remove_low_level_allocnos): Likewise.
13574 (update_bad_spill_attribute): Likewise.
13575 (setup_min_max_allocno_live_range_point): Likewise.
13576 (sort_conflict_id_map): Likewise.
13577 (ira_flattening): Likewise. Use ior_hard_reg_conflicts.
13578 (ior_hard_reg_conflicts): New function.
13579 (ior_allocate_object_conflicts): Renamed first argument to OBJ.
13580 (compress_conflict_vecs): Iterate over objects, not allocnos.
13581 (ira_add_live_range_to_object): New function.
13582 (object_range_compare_func): Renamed from allocno_range_compare_func.
13583 All callers changed.
13584 (setup_min_max_conflict_allocno_ids): For allocnos with multiple
13585 subobjects, widen the min/max range of the lowest-order object to
13586 potentially include all other such low-order objects.
13587 * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
13588 (check_allocation): Likewise. Use more fine-grained tests for register
13589 conflicts.
13590 * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
13591 allocno subobjects.
13592 (assign_hard_reg): Keep multiple sets of conflicts. Make finer-grained
13593 choices about which bits to set in each set. Don't use
13594 ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
13595 using the multiple sets we computed.
13596 (push_allocno_to_stack): Iterate over allocno subobjects.
13597 (all_conflicting_hard_regs_coalesced): New static function.
13598 (setup_allocno_available_regs_num): Use it.
13599 (setup_allocno_left_conflicts_size): Likewise. Iterate over allocno
13600 subobjects.
13601 (coalesced_allocno_conflict): Test subobject 0 in each allocno.
13602 (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
13603 by ALLOCNO_NUM_OBJECTS.
13604 (calculate_spill_cost): Likewise.
13605 (color_pass): Express if statement in a more normal way.
13606 (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
13607 (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
13608 (setup_slot_coalesced_allocno_live_ranges): Likewise.
13609 (allocno_reload_assign): Likewise.
13610 (ira_reassign_pseudos): Likewise.
13611 (fast_allocation): Likewise.
13612 * ira-conflicts.c (build_conflict_bit_table): Likewise.
13613 (print_allocno_conflicts): Likewise.
13614 (ira_build_conflicts): Likewise.
13615 (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p. All
13616 callers changed. Test subword 0 of each allocno for conflicts.
13617 (build_object_conflicts): Renamed from build_allocno_conflicts. All
13618 callers changed. Iterate over allocno subobjects.
13619 * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
13620 * ira-int.h (struct ira_allocno): New member: num_objects.
13621 Rename object to objects and change it into an array.
13622 (ALLOCNO_OBJECT): Add new argument N.
13623 (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
13624 (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
13625 (ior_hard_reg_conflicts): Declare.
13626 (ira_add_live_range_to_object): Declare.
13627 (ira_allocno_object_iterator): New.
13628 (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
13629 (FOR_EACH_ALLOCNO_OBJECT): New macro.
13630 * ira-lives.c (objects_live): Renamed from allocnos_live; all
13631 uses changed.
13632 (allocnos_processed): New sparseset.
13633 (make_object_born): Renamed from make_allocno_born; take an
13634 ira_object_t argument. All callers changed.
13635 (make_object_dead): Renamed from make_allocno_dead; take an
13636 ira_object_t argument. All callers changed.
13637 (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
13638 All callers changed.
13639 (mark_pseudo_regno_live): Iterate over allocno subobjects.
13640 (mark_pseudo_regno_dead): Likewise.
13641 (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
13642 functions.
13643 (mark_ref_live): Detect subword accesses and call
13644 mark_pseudo_regno_subword_live as appropriate.
13645 (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
13646 (process_bb_nodes_live): Deal with object-related updates first; set
13647 and test bits in allocnos_processed to avoid computing allocno
13648 statistics more than once.
13649 (create_start_finish_chains): Iterate over objects, not allocnos.
13650 (print_object_live_ranges): New function.
13651 (print_allocno_live_ranges): Use it.
13652 (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
13653 and objects_live.
13654
13655 2010-07-22 Richard Guenther <rguenther@suse.de>
13656
13657 PR lto/42451
13658 * gimple.c (gtc_next_dfs_num): New global.
13659 (struct sccs): Make value a union, add integer same_p member.
13660 (gtc_visit): New function.
13661 (gimple_types_compatible_p_1): New function, split out from ...
13662 (gimple_types_compatible_p): ... here. Start a DFS walk here.
13663 (iterative_hash_gimple_type): Adjust for sccs change.
13664
13665 2010-07-22 Martin Jambor <mjambor@suse.cz>
13666
13667 PR tree-optimization/44891
13668 * tree-sra.c: Include gimple-pretty-print.h.
13669 (replace_uses_with_default_def_ssa_name): Renamed to
13670 get_repl_default_def_ssa_name, return the new SSA name instead of
13671 replacing the old one.
13672 (sra_modify_assign): Dump a message when removing a load, if the LHS
13673 is an SSA_NAME, do not do any propagation, just set the RHS to a
13674 default definition SSA NAME, type convert if necessary.
13675 * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
13676
13677 2010-07-22 Richard Guenther <rguenther@suse.de>
13678
13679 PR tree-optimization/45017
13680 * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
13681 TYPE_PRECISION of integral types in addition to size.
13682
13683 2010-07-22 Maxim Kuvyrkov <maxim@codesourcery.com>
13684
13685 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
13686 when no C library is specified.
13687
13688 2010-07-22 Martin Jambor <mjambor@suse.cz>
13689
13690 * ipa-prop.h (struct ipa_node_params): Updated comment.
13691 (struct ipa_edge_args): Likewise.
13692 * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
13693
13694 2010-07-22 Martin Jambor <mjambor@suse.cz>
13695
13696 * cgraphunit.c (verify_edge_count_and_frequency): New function.
13697 (verify_cgraph_node): Verify frequencies of indirect edges.
13698 * tree-inline.c (tree_function_versioning): Update frequencies of
13699 indirect edges.
13700
13701 2010-07-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13702
13703 PR target/43698
13704 * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
13705 Set *arm_rev to be predicable.
13706
13707 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
13708
13709 * config/darwin.h (LINK_COMMAND_SPEC): Split into...
13710 (LINK_COMMAND_SPEC_A): New.
13711 (DSYMUTIL): New.
13712 (DSYMUTIL_SPEC): New.
13713 * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
13714 (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
13715
13716 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
13717
13718 * calls.c (load_register_parameters): Move check for zero
13719 sized items so that only the call to
13720 mem_overlaps_already_clobbered_arg_p () is protected.
13721
13722 2010-07-22 Jan Hubicka <jh@suse.cz>
13723
13724 * ipa-pure-const.c (varying_state): Break out from ...
13725 (get_function_state): ... here; always return varying_state
13726 when state would be NULL otherwise.
13727 (remove_node_data): Do not free varying state.
13728
13729 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
13730
13731 PR bootstrap/44970
13732 PR middle-end/45009
13733 * postreload.c: Include "target.h".
13734 (reload_combine_closest_single_use): Don't take DEBUG_INSNs
13735 into account.
13736 (fixup_debug_insns): Don't copy the rtx.
13737 (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
13738 Don't copy when replacing. Call fixup_debug_insns in the case where
13739 we merged one add with another.
13740 (reload_combine_recognize_pattern): Fail if there aren't any uses.
13741 Try harder to determine whether we're picking a valid index register.
13742 Don't set store_ruid for an insn we're going to scan in the
13743 next iteration.
13744 (reload_combine): Remove unused code.
13745 (reload_combine_note_use): When updating use information for
13746 an old insn, ignore a use that occurs after store_ruid.
13747 * Makefile.in (postreload.o): Update dependencies.
13748
13749 * function.c (record_hard_reg_sets): Restrict the previous change
13750 to cases where the incoming nominal mode is the same as the
13751 incoming promoted mode and everything happens in MODE_INT.
13752
13753 2010-07-21 Jakub Jelinek <jakub@redhat.com>
13754
13755 PR debug/45015
13756 * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
13757 ASM_OPERANDS_OUTPUT_IDX.
13758 (adjust_insn): For inline asm with multiple sets ensure first
13759 ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
13760 the insn.
13761
13762 2010-07-21 Richard Henderson <rth@redhat.com>
13763
13764 * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
13765 comparison for avoiding xmm register saves. Emit the xmm register
13766 saves explicitly.
13767 * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
13768 (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
13769 (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
13770 Remove patterns and the associated splitters.
13771
13772 2010-07-21 Changpeng Fang <changpeng.fang@amd.com>
13773
13774 * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
13775 and imagine parts of a complex, so that they can have the same
13776 base and fall into the same group.
13777
13778 2010-07-21 Richard Guenther <rguenther@suse.de>
13779
13780 PR lto/45018
13781 * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
13782 of TYPE_DECLs. Do not follow TYPE_NEXT_VARIANT,
13783 TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
13784
13785 2010-07-21 Martin Jambor <mjambor@suse.cz>
13786
13787 PR tree-optimization/44900
13788 * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
13789 (sra_modify_assign): Move gsi to the next statmenent unconditionally.
13790
13791 2010-07-21 Bernd Schmidt <bernds@codesourcery.com>
13792
13793 PR middle-end/44738
13794 * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
13795
13796 2010-07-21 Richard Guenther <rguenther@suse.de>
13797
13798 PR middle-end/45013
13799 * tree-ssa.c (useless_type_conversion_p): Dispatch to
13800 gimple_types_compatible_p only when in lto.
13801 * gimple.c (gimple_types_compatible_p): Use canonical types
13802 to speed up comparison.
13803
13804 2010-07-21 Richard Guenther <rguenther@suse.de>
13805
13806 * tree-flow.h (referenced_var): Move define ...
13807 * tree-flow-inline.h (referenced_var): ... here as an inline
13808 function. Assert here ...
13809 * tree-dfa.c (referenced_var_lookup): ... instead of here.
13810 * tree-ssa.c (maybe_optimize_var): Check if the variable
13811 is in referenced vars.
13812 (execute_update_addresses_taken): Remove old broken check.
13813 * gimple-pretty-print.c (pp_points_to_solution): Use
13814 referenced_var_lookup.
13815 * tree-into-ssa.c (dump_decl_set): Likewise.
13816
13817 2010-07-21 Jakub Jelinek <jakub@redhat.com>
13818
13819 PR debug/45003
13820 * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
13821 * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
13822 ZERO_EXTEND here.
13823
13824 2010-07-20 Richard Henderson <rth@redhat.com>
13825
13826 * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
13827
13828 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
13829
13830 * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
13831 computing the sum of the stack pointer and a large constant.
13832 * config/arm/constraints.md (M): Remove superfluous parentheses.
13833 (Pc): New constraint.
13834
13835 2010-07-20 Jakub Jelinek <jakub@redhat.com>
13836
13837 PR debug/45006
13838 * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
13839 operand's type if exp is tcc_unary class tree.
13840
13841 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
13842
13843 * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
13844 Reverse sense of if_then_else condition.
13845
13846 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
13847
13848 * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
13849 * config/rs6000/rs6000.c (rs6000_override_options): Set
13850 rs6000_block_move_inline_limit appropriately.
13851 (expand_block_move): Use rs6000_block_move_inline_limit.
13852 * doc/invoke.texi (mblock-move-inline-limit): Document.
13853
13854 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
13855
13856 * postreload.c (fixup_debug_insns): Remove arg REGNO. New args
13857 FROM and TO. All callers changed. Don't look for tracked uses,
13858 just scan the RTL for DEBUG_INSNs and substitute.
13859 (reload_combine_recognize_pattern): Call fixup_debug_insns.
13860 (reload_combine): Ignore DEBUG_INSNs.
13861
13862 2010-07-20 Jakub Jelinek <jakub@redhat.com>
13863
13864 * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
13865 depth to 8 from 5.
13866
13867 PR debug/45003
13868 * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
13869 or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
13870 instead of the result's type.
13871
13872 2010-07-20 Richard Guenther <rguenther@suse.de>
13873
13874 PR tree-optimization/44977
13875 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
13876 SSA form.
13877
13878 2010-07-20 Richard Guenther <rguenther@suse.de>
13879
13880 * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
13881 (lto_symtab_merge_decls_2): Likewise.
13882 * gimple.h (gimple_types_compatible_p): Declare.
13883 * gimple.c (gimple_queue_type_fixup): Remove.
13884 (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
13885 (gimple_compatible_complete_and_incomplete_type_p): New function.
13886 (gimple_types_compatible_p): Adjust.
13887 (gimple_register_type): Remove type fixup code.
13888 (print_gimple_types_stats): Adjust.
13889 (free_gimple_type_tables): Likewise.
13890 * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
13891 * tree-ssa.c (useless_type_conversion_p): Likewise.
13892
13893 2010-07-20 Richard Guenther <rguenther@suse.de>
13894
13895 PR middle-end/44971
13896 PR middle-end/44988
13897 * tree-ssa.c (maybe_optimize_var): New function split out from ...
13898 (execute_update_addresses_taken): ... here.
13899 (non_rewritable_mem_ref_base): Likewise.
13900 (execute_update_addresses_taken): Do not iterate over all referenced
13901 vars but just all local decls and parms.
13902 Properly check call and asm arguments and rewrite call arguments.
13903
13904 2010-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
13905
13906 * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
13907 to top level.
13908 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
13909 definitions ...
13910 * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
13911 New macro.
13912 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
13913
13914 2010-07-19 Richard Sandiford <rdsandiford@googlemail.com>
13915
13916 * gengtype.c (start_root_entry): New function, split out from
13917 write_root. Check whether V is null and raise an error if so.
13918 (write_field_root): Check for V being null. Don't raise an error here;
13919 set V to null instead.
13920 (write_root): Update comment above function. Use start_root_entry.
13921
13922 2010-07-19 Xinliang David Li <davidxl@google.com>
13923
13924 PR testsuite/44932
13925 * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
13926 def edges.
13927 (find_uninit_use): Add dump.
13928 (is_use_properly_guarded): Ditto.
13929 (warn_uninitialized_phi): Ditto.
13930 (execute_late_warn_uninitialized): Ditto.
13931
13932 2010-07-19 Richard Guenther <rguenther@suse.de>
13933
13934 PR middle-end/44941
13935 * expr.c (emit_block_move_hints): Move zero size check first.
13936 Move asserts to more useful places.
13937 * calls.c (load_register_parameters): Check for zero size.
13938
13939 2010-07-19 Richard Henderson <rth@redhat.com>
13940
13941 * tree-optimize.c (execute_all_early_local_passes): New. Change
13942 cgraph_state here ...
13943 (execute_early_local_optimizations): ... not here. Remove.
13944 (pass_early_local_passes, pass_all_early_optimizations): Update.
13945
13946 2010-07-19 Bernd Schmidt <bernds@codesourcery.com>
13947
13948 * postreload.c (reload_combine_closest_single_use): Ignore the
13949 number of uses for DEBUG_INSNs.
13950 (fixup_debug_insns): New static function.
13951 (reload_combine_recognize_const_pattern): Use it. Don't let the
13952 main loop be affected by DEBUG_INSNs.
13953 Really disallow moving adds past a jump insn.
13954 (reload_combine_recognize_pattern): Don't update use_ruid here.
13955 (reload_combine_note_use): Do it here.
13956 (reload_combine): Use control_flow_insn_p rather than JUMP_P.
13957
13958 2010-07-19 Bingfeng Mei <bmei@broadcom.com>
13959
13960 * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
13961 of a loop.
13962 * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
13963
13964 2010-07-19 Iain Sandoe <iains@gcc.gnu.org>
13965
13966 * config/i386/darwin.h: Define darwin_emit_branch_islands.
13967 (TARGET_MACHO_BRANCH_ISLANDS): New.
13968 (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
13969 * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
13970 default value.
13971 * config/i386/i386.c (output_pic_addr_const): Do not emit
13972 branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
13973 (x86_output_mi_thunk): Adjust symbol creation.
13974 * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
13975 Remove out of date comment.
13976 * config/rs6000/rs6000.c (print_operand): Adjust symbol.
13977 (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
13978 (DARWIN_GENERATE_ISLANDS): Ditto.
13979 (output_call): Do not emit branch islands unless
13980 darwin_emit_branch_islands is set.
13981 * config/darwin.c: Declare darwin_emit_branch_islands.
13982 (machopic_indirect_data_reference): Do not emit unless
13983 darwin_emit_branch_islands is set.
13984 (darwin_override_options): Set darwin_emit_branch_islands
13985 where it is needed.
13986 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
13987
13988 2010-07-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13989
13990 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13991 sse_runtime, sse2_runtime.
13992
13993 2010-07-18 Richard Sandiford <rdsandiford@googlemail.com>
13994
13995 * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
13996 low half of a single-register SCmode return value before ORing
13997 it with the high half.
13998 * config/mips/mips16.S (MERGE_GPRf): Likewise.
13999
14000 2010-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
14001
14002 PR target/44805
14003 * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
14004 on all targets.
14005
14006 2010-07-17 Bernd Schmidt <bernds@codesourcery.com>
14007
14008 PR target/42235
14009 * postreload.c (reload_cse_move2add): Return bool, true if anything.
14010 changed. All callers changed.
14011 (move2add_use_add2_insn): Likewise.
14012 (move2add_use_add3_insn): Likewise.
14013 (reload_cse_regs): If reload_cse_move2add changed anything, rerun
14014 reload_combine.
14015 (RELOAD_COMBINE_MAX_USES): Bump to 16.
14016 (last_jump_ruid): New static variable.
14017 (struct reg_use): New members CONTAINING_MEM and RUID.
14018 (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
14019 (reload_combine_split_one_ruid, reload_combine_split_ruids,
14020 reload_combine_purge_insn_uses, reload_combine_closest_single_use
14021 reload_combine_purge_reg_uses_after_ruid,
14022 reload_combine_recognize_const_pattern): New static functions.
14023 (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
14024 is true for our reg and that we have available index regs.
14025 (reload_combine_note_use): New args RUID and CONTAINING_MEM. All
14026 callers changed. Use them to initialize fields in struct reg_use.
14027 (reload_combine): Initialize last_jump_ruid. Be careful when to
14028 take PREV_INSN of the scanned insn. Update REAL_STORE_RUID fields.
14029 Call reload_combine_recognize_const_pattern.
14030 (reload_combine_note_store): Update REAL_STORE_RUID field.
14031
14032 2010-07-16 Jason Merrill <jason@redhat.com>
14033
14034 * Makefile.in (opts-common.o): Depend on options.h.
14035
14036 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
14037
14038 * tree.c (build_common_builtin_nodes): Use build_function_type_list
14039 instead of build_function_type.
14040 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
14041 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
14042
14043 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
14044
14045 * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
14046 do all the work.
14047 (rs6000_emit_int_cmove): Use function pointers for insn generation.
14048 Don't force values into registers unnecessarily.
14049 (output_isel): Assert that we're not given conditions we can't handle.
14050 Delete corresponding code.
14051 * config/rs6000/rs6000.md (isel_signed_<mode>): Use
14052 scc_comparison_operator constraint. Permit 0 for the consequent
14053 operand. Permit any GPR for the alternative operand.
14054 (isel_unsigned_<mode>): Likewise.
14055
14056 2010-07-16 Jakub Jelinek <jakub@redhat.com>
14057
14058 PR target/44942
14059 * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
14060 argument to const_tree.
14061 * config/i386/i386.c (function_arg_advance): If padding needs to be
14062 inserted before argument, increment cum->words by number of padding
14063 words as well.
14064 (contains_aligned_value_p): Change argument to const_tree.
14065 (ix86_function_arg_boundary): Change second argument to const_tree.
14066
14067 2010-07-16 Bernd Schmidt <bernds@codesourcery.com>
14068
14069 PR target/42235
14070 * function.c (record_hard_reg_sets): New static function.
14071 (assign_parm_setup_reg): If an optab for extending exists and the
14072 generated code clobbbers no hard regs, emit the insn directly and
14073 create a REG_EQUIV note.
14074
14075 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
14076
14077 * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
14078 TREE_CHAIN.
14079 * c-typeck.c (push_init_level): Likewise.
14080 (process_init_element): Likewise.
14081
14082 2010-07-15 Anatoly Sokolov <aesok@post.ru>
14083
14084 * tree.h (enum tree_index): Add TI_INTEGER_THREE.
14085 (integer_three_node): Add.
14086 * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
14087 NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
14088 * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
14089 of call build_int_cst.
14090 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
14091 * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
14092 (find_interesting_uses_address): Ditto.
14093 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
14094 * tree-eh.c (lower_eh_constructs_2): Ditto.
14095 * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
14096 * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
14097 * expmed.c (expand_divmod): Ditto.
14098 * tree-mudflap.c (mx_register_decls): Ditto.
14099 * varasm.c (array_size_for_constructor): Ditto.
14100 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
14101 * c-parser.c (c_parser_postfix_expression): Ditto.
14102
14103 2010-07-15 Bernd Schmidt <bernds@codesourcery.com>
14104
14105 * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
14106 New static variables.
14107 (reload_combine_recognize_pattern): New static function, broken out
14108 of reload_combine.
14109 (reload_combine): Use it. Only initialize first_index_reg and
14110 last_index_reg once.
14111
14112 2010-07-15 Richard Henderson <rth@redhat.com>
14113
14114 * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
14115 when done.
14116
14117 2010-07-15 Jan Hubicka <jh@suse.cz>
14118
14119 * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
14120 comdats for broken gold.
14121 (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
14122
14123 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
14124
14125 * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
14126
14127 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
14128
14129 * tree.h (DECL_CHAIN): Define.
14130 * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
14131 * c-decl.c: Likewise.
14132 * c-parser.c: Likewise.
14133 * c-typeck.c: Likewise.
14134 * cfgexpand.c: Likewise.
14135 * cgraph.c: Likewise.
14136 * cgraphunit.c: Likewise.
14137 * combine.c: Likewise.
14138 * config/alpha/alpha.c: Likewise.
14139 * config/arm/arm.c: Likewise.
14140 * config/frv/frv.c: Likewise.
14141 * config/i386/i386.c: Likewise.
14142 * config/i386/winnt-cxx.c: Likewise.
14143 * config/ia64/ia64.c: Likewise.
14144 * config/iq2000/iq2000.c: Likewise.
14145 * config/mep/mep.c: Likewise.
14146 * config/mips/mips.c: Likewise.
14147 * config/pa/som.h: Likewise.
14148 * config/rs6000/rs6000.c: Likewise.
14149 * config/s390/s390.c: Likewise.
14150 * config/sh/sh.c: Likewise.
14151 * config/sh/symbian-cxx.c: Likewise.
14152 * config/sparc/sparc.c: Likewise.
14153 * config/spu/spu.c: Likewise.
14154 * config/stormy16/stormy16.c: Likewise.
14155 * config/vxworks.c: Likewise.
14156 * config/xtensa/xtensa.c: Likewise.
14157 * coverage.c: Likewise.
14158 * dbxout.c: Likewise.
14159 * dwarf2out.c: Likewise.
14160 * emit-rtl.c: Likewise.
14161 * expr.c: Likewise.
14162 * function.c: Likewise.
14163 * gimple-low.c: Likewise.
14164 * gimple-pretty-print.c: Likewise.
14165 * gimplify.c: Likewise.
14166 * integrate.c: Likewise.
14167 * ipa-inline.c: Likewise.
14168 * ipa-prop.c: Likewise.
14169 * ipa-split.c: Likewise.
14170 * ipa-struct-reorg.c: Likewise.
14171 * ipa-type-escape.c: Likewise.
14172 * langhooks.c: Likewise.
14173 * lto-cgraph.c: Likewise.
14174 * omp-low.c: Likewise.
14175 * stor-layout.c: Likewise.
14176 * tree-cfg.c: Likewise.
14177 * tree-complex.c: Likewise.
14178 * tree-dfa.c: Likewise.
14179 * tree-dump.c: Likewise.
14180 * tree-inline.c: Likewise.
14181 * tree-mudflap.c: Likewise.
14182 * tree-nested.c: Likewise.
14183 * tree-object-size.c: Likewise.
14184 * tree-pretty-print.c: Likewise.
14185 * tree-sra.c: Likewise.
14186 * tree-ssa-live.c: Likewise.
14187 * tree-ssa-loop-niter.c: Likewise.
14188 * tree-ssa-math-opts.c: Likewise.
14189 * tree-ssa-reassoc.c: Likewise.
14190 * tree-ssa-sccvn.c: Likewise.
14191 * tree-ssa-structalias.c: Likewise.
14192 * tree-tailcall.c: Likewise.
14193 * tree-vrp.c: Likewise.
14194 * tree.c: Likewise.
14195 * var-tracking.c: Likewise.
14196 * varasm.c: Likewise.
14197
14198 2010-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14199
14200 PR target/44877
14201 * config/spu/spu.c (spu_expand_builtin_1): Allow references
14202 (as well as pointers) as argument to mask_for_load builtins.
14203
14204 2010-07-15 Richard Guenther <rguenther@suse.de>
14205
14206 PR tree-optimization/44946
14207 * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
14208 with accessing only padding properly.
14209
14210 2010-07-15 Jan Hubicka <jh@suse.cz>
14211
14212 * ipa.c (function_and_variable_visibility): Variables marked as used
14213 should not be localized.
14214
14215 2010-07-15 Jan Hubicka <jh@suse.cz>
14216
14217 * cgraph.c: Include lto-streamer.h
14218 (change_decl_assembler_name): Work when assembler name hash is at place.
14219 (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
14220 be sure to rename it to avoid name clash.
14221 * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
14222 Localize hidden symbols only when locally defined.
14223
14224 2010-07-15 Uros Bizjak <ubizjak@gmail.com>
14225
14226 * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
14227
14228 2010-07-15 Magnus Granberg <zorry@gentoo.org>
14229 Kevin F. Quinn <kevquinn@gentoo.org>
14230
14231 * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
14232 * common.opt: Add -Wtrampolines.
14233 * doc/invoke.texi: Add -Wtrampolines.
14234
14235 2010-07-15 Jie Zhang <jie@codesourcery.com>
14236
14237 * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
14238 cortex_a8_issue_ls.
14239
14240 2010-07-15 Dave Korn <dave.korn.cygwin@gmail.com>
14241
14242 * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
14243 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
14244
14245 2010-07-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14246
14247 * config/spu/spu.c (reg_names): Remove prototype.
14248 (call_used_regs): Likewise.
14249
14250 2010-07-14 Dave Korn <dave.korn.cygwin@gmail.com>
14251
14252 * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
14253 "unused" with attribute "used".
14254 (__JCR_END__): Likewise.
14255 * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
14256 "used" attribute.
14257 (__JCR_LIST__): Replace attribute "unused" with attribute "used".
14258
14259 2010-07-14 Richard Guenther <rguenther@suse.de>
14260
14261 * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
14262 (maybe_fixup_decls): Likewise.
14263 (input_gimple_stmt): Do not fixup anything.
14264 * lto-streamer-out.c (output_gimple_stmt): Make sure all
14265 non-automatic variable uses are wrapped inside a MEM_REF.
14266
14267 2010-07-14 Richard Henderson <rth@redhat.com>
14268
14269 * passes.c (rest_of_decl_compilation): Do not call assemble_variable
14270 for functions.
14271 * varasm.c (assemble_variable): Remove early exit for functions;
14272 assert that we're given a variable.
14273
14274 2010-07-14 Jie Zhang <jie@codesourcery.com>
14275
14276 * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
14277 cortex_a8_default when neon_type is not none.
14278
14279 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
14280
14281 * lower-subreg.c (subreg_context): New static bitmap.
14282 (decompose_multiword_subregs): Allocate and free it.
14283 (find_decomposable_subregs): Set a bit in it for a register that
14284 occurs in a subreg that changes mode but not size.
14285 (can_decompose_p): Test it instead of non_decomposable_context.
14286
14287 2010-07-14 Richard Guenther <rguenther@suse.de>
14288
14289 PR tree-optimization/44824
14290 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
14291 is_gimple_mem_ref_addr.
14292 (tree_ssa_forward_propagate_single_use_vars): Do not propagate
14293 non-decl_address_invariant_p addresses.
14294
14295 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
14296
14297 * reload.c (find_reloads): Revert code to penalize small register
14298 classes that was brought in with the IRA merge.
14299
14300 2010-07-14 Richard Guenther <rguenther@suse.de>
14301
14302 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
14303 as base of ARRAY_REFs.
14304
14305 2010-07-14 Richard Guenther <rguenther@suse.de>
14306
14307 PR middle-end/44930
14308 * tree-pretty-print.c (do_niy): Do not print a newline.
14309
14310 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
14311
14312 * ira-int.h (struct ira_object): New.
14313 (ira_object_t): New typedef. Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
14314 (struct ira_allocno): Remove members min, max,
14315 conflict_allocno_array, conflict_id, conflict_allocno_array_size,
14316 conflict_allocnos_num and conflict_vec_p. Add new member object.
14317 (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
14318 OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
14319 OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
14320 OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
14321 ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
14322 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
14323 ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
14324 ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
14325 an ira_object_t rather than ira_allocno_t. All uses changed.
14326 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
14327 contains a vector of ira_object_t; all uses changed.
14328 (ira_objects_num): Declare variable.
14329 (ira_create_allocno_object): Declare function.
14330 (ira_conflict_vector_profitable_p): Adjust prototype.
14331 (ira_allocate_conflict_vec): Renamed from
14332 ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
14333 (ira_allocate_object_conflicts): Renamed from
14334 ira_allocate_allocno_conflicts; first arg now ira_object_t.
14335 (struct ira_object_iterator): New.
14336 (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
14337 (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
14338 to conflict_vec_p. All uses changed.
14339 (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
14340 Changed to take into account that conflicts are now tracked for
14341 objects.
14342 * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
14343 Args changed to accept ira_object_t. All uses changed.
14344 (allocnos_conflict_p): New static function.
14345 (collected_conflict_objects): Renamed from collected_allocno_objects;
14346 now a vector of ira_object_t. All uses changed.
14347 (build_conflict_bit_table): Changed to take into account that
14348 conflicts are now tracked for objects.
14349 (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
14350 (print_allocno_conflicts, ira_build_conflicts): Likewise.
14351 * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
14352 setup_allocno_left_conflicts_size, allocno_reload_assign,
14353 fast_allocation): Likewise.
14354 * ira-lives.c (make_hard_regno_born, make_allocno_born)
14355 process_single_reg_class_operands, process_bb_node_lives): Likewise.
14356 * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
14357 Likewise.
14358 * ira-build.c (ira_objects_num): New variable.
14359 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
14360 contains a vector of ira_object_t; all uses changed.
14361 (ira_object_id_map_vec): Corresponding change.
14362 (object_pool): New static variable.
14363 (initiate_allocnos): Initialize it.
14364 (finish_allocnos): Free it.
14365 (ira_create_object, ira_create_allocno_object, create_allocno_objects):
14366 New functions.
14367 (ira_create_allocno): Don't set members that were removed.
14368 (ira_set_allocno_cover_class): Don't change conflict hard regs.
14369 (merge_hard_reg_conflicts): Changed to take into account that
14370 conflicts are now tracked for objects.
14371 (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
14372 allocate_conflict_bit_vec, ira_allocate_object_conflicts,
14373 compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
14374 setup_min_max_allocno_live_range_point, allocno_range_compare_func,
14375 setup_min_max_conflict_allocno_ids, ): Likewise.
14376 (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
14377 to ira_object_t; all callers changed.
14378 (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
14379 to ira_object_t, all callers changed.
14380 (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
14381 to ira_object_t, all callers changed.
14382 (conflict_check, curr_conflict_check_tick): Renamed from
14383 allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
14384 changed.
14385 (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
14386 arg changed to ira_object_t, all callers changed.
14387 (create_cap_allocno): Call ira_create_allocno_object.
14388 (finish_allocno): Free the corresponding object.
14389 (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
14390 callers changed. Adjusted for dealing with objects.
14391 (ira_build): Call create_allocno_objects after ira_costs. Adjusted for
14392 dealing with objects.
14393 * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
14394
14395 * ira-int.h (struct live_range): Rename allocno member to object
14396 and change type to ira_object_t.
14397 (struct ira_object): New member live_ranges.
14398 (struct ira_allocno): Remove member live_ranges.
14399 (ALLOCNO_LIVE_RANGES): Remove.
14400 (OBJECT_LIVE_RANGES): New macro.
14401 (ira_create_live_range, ira_copy_live_range_list,
14402 ira_merge_live_range_list, ira_live_ranges_intersect_p,
14403 ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
14404 * ira-build.c (ira_create_object): Initialize live ranges here.
14405 (ira_create_allocno): Not here.
14406 (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
14407 changed to ira_object_t, all callers changed.
14408 (copy_live_range): Rename from copy_allocno_live_range, all callers
14409 changed.
14410 (ira_copy_live_range_list): Rename from
14411 ira_copy_allocno_live_range_list, all callers changed.
14412 (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
14413 all callers changed.
14414 (ira_live_ranges_intersect_p): Rename from
14415 ira_allocno_live_ranges_intersect_p, all callers changed.
14416 (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
14417 callers changed.
14418 (ira_finish_live_range_list): Rename from
14419 ira_finish_allocno_live_range_list, all callers changed.
14420 (change_object_in_range_list): Rename from change_allocno_in_range_list,
14421 last arg changed to ira_object_t, all callers changed.
14422 (finish_allocno): Changed to expect live ranges in the allocno's object.
14423 (move_allocno_live_ranges, copy_allocno_live_ranges,
14424 update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
14425 ira_flattening, ira_build): Likewise.
14426 * ira-color.c (allocnos_have_intersected_live_ranges_p,
14427 slot_coalesced_allocno_live_ranges_intersect,
14428 setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
14429 * ira-conflicts.c (build_conflict_bit_table): Likewise.
14430 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
14431 * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
14432 make_allocno_dead, create_start_finish_chains,
14433 remove_some_program_points_and_update_live_ranges,
14434 ira_debug_live_range_list): Likewise.
14435
14436 * ira-int.h (ira_object_conflict_iterator): Rename from
14437 ira_allocno_conflict_iterator.
14438 (ira_object_conflict_iter_init): Rename from
14439 ira_allocno_conflict_iter_init, second arg changed to
14440 * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
14441 FOR_EACH_ALLOCNO_CONFLICT.
14442 * ira-color.c (assign_hard_reg, push_allocno_to_stack)
14443 setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
14444 ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
14445 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14446
14447 2010-07-13 Joern Rennecke <joern.rennecke@embecosm.com>
14448
14449 PR other/44874
14450 * tree-dump.c (dump_options): Add enumerate_locals entry.
14451 Add TDF_NOID exclusion to all entry.
14452 * tree-dump.h (dump_enumerated_decls): Declare.
14453 * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
14454 Don't display type uid.
14455 (print_declaration): Don't crash on TREE_TYPE (t) == 0.
14456 * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
14457 * tree-ssa-live.c: Include gimple.h.
14458 (numbered_tree_d): New struct.
14459 (numbered_tree): New typedef.
14460 (DEF_VEC_O (numbered_tree): New.
14461 (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
14462 (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
14463 (dump_enumerated_decls): Likewise.
14464 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
14465 debug info and flag_dump_final_insns, call dump_enumerated_decls.
14466 * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
14467 * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
14468
14469 2010-07-13 Richard Sandiford <rdsandiford@googlemail.com>
14470
14471 * expmed.h (MAX_BITS_PER_WORD): Move to...
14472 * defaults.h (MAX_BITS_PER_WORD): ...here.
14473
14474 2010-07-13 DJ Delorie <dj@redhat.com>
14475
14476 * config/h8300/h8300.c (h8300_init_once): Default to
14477 -fstrict_volatile_bitfields.
14478
14479 * config/sh/sh.c (sh_override_options): Default to
14480 -fstrict_volatile_bitfields.
14481
14482 * config/rx/rx.c (rx_option_override): New.
14483
14484 * config/m32c/m32c.c (m32c_override_options): Default to
14485 -fstrict_volatile_bitfields.
14486
14487 2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
14488
14489 * tree.h (build_function_call_expr): Delete.
14490 (build_call_expr_loc_array): New function.
14491 (build_call_expr_loc_vec): New function.
14492 * tree-flow.h (struct omp_region): Change type of ws_args field
14493 to a VEC.
14494 * builtins.c (build_function_call_expr): Delete.
14495 (build_call_expr_loc_array): New function.
14496 (build_call_expr_loc): Call it. Use XALLOCAVEC.
14497 (build_call_expr): Likewise.
14498 (build_call_expr_loc_vec): New function.
14499 * cgraphunit.c (build_cdtor): Call build_call_expr instead of
14500 build_function_call_expr.
14501 * expr.c (emutls_var_address): Likewise.
14502 * varasm.c (emutls_common_1): Likewise.
14503 * omp-low.c (expand_omp_atomic_mutex): Likewise.
14504 (expand_omp_taskreg): Adjust for new type of region->ws_args.
14505 (get_ws_args_for): Return a VEC instead of a tree.
14506 (expand_parallel_call): Call build_call_expr_loc_vec instead of
14507 build_function_call_expr.
14508 * stor-layout.c (self_referential_size): Likewise.
14509
14510 2010-07-13 Jakub Jelinek <jakub@redhat.com>
14511
14512 PR testsuite/44701
14513 * recog.c (constrain_operands): Allow side-effects in memory
14514 operands if either < or > constraint is used, rather than if
14515 both < and > is used.
14516
14517 2010-07-13 Richard Guenther <rguenther@suse.de>
14518
14519 PR middle-end/44911
14520 * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
14521 MEM_REF pointer type dumping. Avoid recursing for TYPE_DECLs
14522 without name.
14523
14524 2010-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
14525
14526 PR target/44761
14527 * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
14528 to variable emited.
14529 * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
14530 * config/sh/sh.md (symGOT_load): Likewise.
14531 (symDTPOFF2reg): Likewise.
14532 (symTPOFF2reg): Likewise.
14533
14534 2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14535
14536 * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
14537 * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
14538
14539 2010-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14540
14541 * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
14542 explanation.
14543 Find ucontext_t * on Solaris 11.
14544 (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
14545 Handle new Solaris 11 __sighndlr patterns.
14546
14547 2010-07-13 Jakub Jelinek <jakub@redhat.com>
14548
14549 PR debug/44901
14550 * vec.h (VEC_block_remove): Fix comment.
14551 * tree-ssa-live.c (remove_unused_locals): Don't use
14552 VEC_unordered_remove on local_decls, instead replace a single
14553 vector element in each iteration if at least one element had
14554 to be removed and VEC_truncate at the end.
14555 * omp-low.c (expand_omp_taskreg): Likewise.
14556
14557 2010-07-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
14558
14559 * c-decl.c (finish_function): Fix typo in comment.
14560
14561 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
14562
14563 PR bootstrap/44921
14564 * postreload.c (move2add_use_add3_insn): Silence gcc warning
14565 on min_regno.
14566
14567 2010-07-12 Jakub Jelinek <jakub@redhat.com>
14568
14569 * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
14570 (simplify_stmt_using_ranges): Use it.
14571
14572 2010-07-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14573
14574 * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
14575 member. Do not mark as GTY(()).
14576 * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
14577 (spu_builtin_decls): New static variable.
14578 (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
14579 (spu_init_builtins): Likewise.
14580 (spu_builtin_mul_widen_even): Likewise.
14581 (spu_builtin_mul_widen_odd): Likewise.
14582 (spu_builtin_mask_for_load): Likewise.
14583 (spu_builtin_vec_perm): Likewise.
14584 * config/spu/spu-c.c: Include "target.h".
14585 (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
14586 of using spu_builtins[].fndecl.
14587
14588 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14589
14590 * config/mips/mips.c (mips_override_options): Make -mflip-mips16
14591 imply -minterlink-mips16.
14592
14593 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14594
14595 * config/mips/mips.h (mips16_globals): Declare.
14596 (SWITCHABLE_TARGET): Define.
14597 * config/mips/mips.c: Include target-globals.h.
14598 (mips16_globals): New variable.
14599 (mips_set_mips16_mode): Use save_target_globals and
14600 restore_target_globals instead of target_reinit.
14601
14602 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14603
14604 * reginfo.c (init_reg_sets): Don't zero globals here. Update comment
14605 to say that the function can be called more than once.
14606 * target-globals.c (save_target_globals): Call init_reg_sets.
14607
14608 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14609
14610 * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
14611 * bb-reorder.h: New file.
14612 * bb-reorder.c (default_target_bb_reorder): New variable.
14613 (this_target_bb_reorder): New conditional variable.
14614 (uncond_jump_length): Redefine as a macro.
14615 * target-globals.h (this_target_bb_reorder): Declare.
14616 (target_globals): Add a bb_reorder field.
14617 (restore_target_globals): Copy the bb_reorder field to
14618 this_target_bb-reorder.
14619 * target-globals.c: Include bb-reorder.h.
14620 (default_target_globals): Initialize the bb_reorder field.
14621 (save_target_globals): Likewise.
14622
14623 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14624
14625 * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
14626 * gcse.h: New file.
14627 * gcse.c: Include gcse.h.
14628 (default_target_gcse): New variable.
14629 (this_target_gcse): New conditional variable.
14630 (can_copy): Redefine as a macro.
14631 (can_copy_init_p): New macro.
14632 (can_copy_p): Remove can_copy_init_p.
14633 * target-globals.h (this_target_gcse): Declare.
14634 (target_globals): Add a gcse field.
14635 (restore_target_globals): Copy the gcse field to this_target_gcse.
14636 * target-globals.c: Include gcse.h.
14637 (default_target_globals): Initialize the gcse field.
14638 (save_target_globals): Likewise.
14639
14640 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14641
14642 * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
14643 and x_ira_prohibited_mode_move_regs_initialized_p.
14644 (ira_prohibited_mode_move_regs): Redefine as a macro.
14645 * ira.c (ira_prohibited_mode_move_regs): Delete.
14646 (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
14647
14648 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14649
14650 * reload.h (target_reload): Add x_cached_reg_save_code and
14651 x_cached_reg_restore_code.
14652 * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
14653 Redefine as macros.
14654
14655 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14656
14657 * Makefile.in (target-globals.o): Depend on builtins.h.
14658 * builtins.h: New file.
14659 * builtins.c: Include builtins.h.
14660 (default_target_builtins): New variable.
14661 (this_target_builtins): New conditional variable.
14662 (apply_args_mode, apply_result_mode): Redefine as macros.
14663 * target-globals.h (this_target_builtins): Declare.
14664 (target_globals): Add a builtins field.
14665 (restore_target_globals): Copy the builtins field to
14666 this_target_builtins.
14667 * target-globals.c: Include builtins.h.
14668 (default_target_globals): Initialize the builtins field.
14669 (save_target_globals): Likewise.
14670
14671 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14672
14673 * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
14674 (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
14675 from expmed.c.
14676 (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
14677 (alg_hash, alg_hash_used_p): New macros.
14678 * expmed.c (init_expmed): Clear alg_hash if reinitializing.
14679 (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
14680 (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
14681
14682 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14683
14684 * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
14685 x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
14686 * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
14687 (this_op_costs, costs_classes): Redefine as macros.
14688 (record_reg_classes): Don't take op_costs as a parameter.
14689 (record_operand_costs): Likewise. Update calls to record_reg_classes.
14690 (scan_one_insn): Update call to record_operand_costs.
14691
14692 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14693
14694 * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
14695 * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
14696 (target_ira_int): New structure.
14697 (default_target_ira_int): Declare.
14698 (this_target_ira_int): Declare as a variable or define as a macro.
14699 (ira_reg_mode_hard_regset, ira_register_move_cost)
14700 (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
14701 (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
14702 (prohibited_class_mode_regs, ira_important_classes_num)
14703 (ira_important_classes, ira_reg_class_intersect)
14704 (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
14705 (ira_reg_class_union): Redefine as macros.
14706 * ira.h (target_ira): New structure.
14707 (default_target_ira): Declare.
14708 (this_target_ira): Declare as a variable or define as a macro.
14709 (ira_available_class_regs, ira_hard_regno_cover_class)
14710 (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
14711 (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
14712 (ira_class_hard_regs_num): Redefine as macros.
14713 * ira.c (default_target_ira, default_target_ira_int): New variables.
14714 (this_target_ira, this_target_ira_int): New conditional variables.
14715 (ira_reg_mode_hard_regset, ira_memory_move_cost)
14716 (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
14717 (ira_class_subset_p): Delete.
14718 (no_unit_alloc_regs): Redefine as a macro.
14719 (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
14720 (ira_class_hard_regs_num, ira_class_hard_reg_index)
14721 (ira_available_class_regs): Delete.
14722 (alloc_reg_class_subclasses): Redefine as a macro.
14723 (ira_reg_class_cover_size, ira_reg_class_cover)
14724 (ira_important_classes_num, ira_important_classes)
14725 (ira_important_class_nums, ira_class_translate): Delete.
14726 (cover_class_order): Document the variable's lifetime.
14727 (reorder_important_classes): Don't set ira_important_class_nums.
14728 (ira_reg_class_intersect, ira_reg_classes_intersect_p)
14729 (ira_reg_class_super_classes, ira_reg_class_union)
14730 (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
14731 Delete.
14732 (setup_reg_class_nregs): Don't set ira_max_regs.
14733 (prohibited_class_mode_regs): Delete.
14734 * target-globals.h (this_target_ira, this_target_ira_int): Declare.
14735 (target_globals): Add ira and ira_int fields.
14736 (restore_target_globals): Copy the ira field to this_target_ira
14737 and the ira_int field to this_target_ira_int.
14738 * target-globals.c: Include ira-int.h.
14739 (default_target_globals): Initialize the ira and ira_int fields.
14740 (save_target_globals): Likewise.
14741
14742 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14743
14744 * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
14745 * cfgloop.h (target_cfgloop): New structure.
14746 (default_target_cfgloop): Declare.
14747 (this_target_cfgloop): Declare as a variable or define as a macro.
14748 (target_avail_regs, target_clobbered_regs, target_res_regs)
14749 (target_reg_cost, target_spill_cost): Redefine as macros.
14750 * cfgloopanal.c (default_target_cfgloop): New variable.
14751 (this_target_cfgloop): New conditional variable.
14752 (target_avail_regs, target_clobbered_regs, target_res_regs)
14753 (target_reg_cost, target_spill_cost): Delete.
14754 * target-globals.h (this_target_cfgloop): Declare.
14755 (target_globals): Add a cfgloop field.
14756 (restore_target_globals): Copy the cfgloop field to
14757 this_target_cfgloop.
14758 * target-globals.c: Include cfgloop.h.
14759 (default_target_globals): Initialize the cfgloop field.
14760 (save_target_globals): Likewise.
14761
14762 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14763
14764 * regs.h (target_regs): Add x_direct_load, x_direct_store and
14765 x_float_extend_from_mem.
14766 (direct_load, direct_store, float_extend_from_mem): New macros.
14767 * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
14768
14769 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14770
14771 * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
14772 (target-globals.o): Depend on $(LIBFUNCS_H).
14773 * libfuncs.h: Include hashtab.h.
14774 (libfunc_entry): Moved from optabs.c.
14775 (target_libfuncs): New structure.
14776 (default_target_libfuncs): Declare.
14777 (this_target_libfuncs): Declare as a variable or define as a macro.
14778 (libfunc_table): Redefine as a macro.
14779 * optabs.c (default_target_libfuncs): New variable.
14780 (this_target_libfuncs): New conditional variable.
14781 (libfunc_table): Delete.
14782 (libfunc_entry): Moved to optabs.h.
14783 (libfunc_hash): Redefine as a macro.
14784 (hash_libfunc, eq_libfunc): Fix comments.
14785 (init_optabs): Use libfunc_hash to detect cases where the function
14786 has already been called. Clear the hash table instead of
14787 recreating it.
14788 * target-globals.h (this_target_libfuncs): Declare.
14789 (target_globals): Add a libfuncs field.
14790 (restore_target_globals): Copy the libfuncs field to
14791 this_target_libfuncs.
14792 * target-globals.c: Include libfuncs.h.
14793 (default_target_globals): Initialize the libfuncs field.
14794 (save_target_globals): Likewise.
14795
14796 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14797
14798 * Makefile.in (LIBFUNCS_H): New variable. Use instead of libfuncs.h
14799 in all dependency lists.
14800
14801 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14802
14803 * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
14804 * optabs.h (target_optabs): New structure.
14805 (default_target_optabs): Declare.
14806 (this_target_optabs): Declare as a variable or define as a macro.
14807 (optab_table, convert_optab_table, direct_optab_table): Redefine
14808 as macros.
14809 * optabs.c (default_target_optabs): New variable.
14810 (this_target_optabs): New conditional variable.
14811 (optab_table, convert_optab_table, direct_optab_table): Delete.
14812 * target-globals.h (this_target_optabs): Declare.
14813 (target_globals): Add a optabs field.
14814 (restore_target_globals): Copy the optabs field to
14815 this_target_optabs.
14816 * target-globals.c: Include expr.h and optabs.h.
14817 (default_target_globals): Initialize the optabs field.
14818 (save_target_globals): Likewise.
14819
14820 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14821
14822 * flags.h (target_flagstate): Add x_flag_excess_precision.
14823 (flag_excess_precision): Redefine as a macro.
14824 * toplev.c (flag_excess_precision): Delete.
14825
14826 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14827
14828 * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
14829 * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
14830 * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
14831 (no_caller_save_reg_set): Redefine as a macro.
14832 * reload.h (target_reload): Add x_caller_save_initialized_p and
14833 x_regno_save_mode.
14834 (caller_save_initialized_p): Redefine as a macro.
14835 * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
14836 (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
14837 (regno_save_mode): Redefine as a macro.
14838
14839 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14840
14841 * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
14842 * expmed.h: New file.
14843 * expmed.c (default_target_costs): New variable.
14844 (this_target_costs): New conditional variable.
14845 (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
14846 (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
14847 (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
14848 * target-globals.h (this_target_expmed): Declare.
14849 (target_globals): Add a expmed field.
14850 (restore_target_globals): Copy the expmed field to
14851 this_target_expmed.
14852 * target-globals.c: Include expmed.h.
14853 (default_target_globals): Initialize the expmed field.
14854 (save_target_globals): Likewise.
14855
14856 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14857
14858 * Makefile.in (target-globals.o): Depend on reload.h.
14859 * reload.h (target_reload): New structure.
14860 (default_target_reload): Declare.
14861 (this_target_reload): Declare as a variable or define as a macro.
14862 (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
14863 * reload1.c (default_target_reload): New variable
14864 (this_target_reload): New conditional variable.
14865 (indirect_symref_ok, double_reg_address_ok): Delete.
14866 (spill_indirect_levels): Redefine as a macro.
14867 * target-globals.h (this_target_reload): Declare.
14868 (target_globals): Add a reload field.
14869 (restore_target_globals): Copy the reload field to
14870 this_target_reload.
14871 * target-globals.c: Include hard-reg-set.h.
14872 (default_target_globals): Initialize the reload field.
14873 (save_target_globals): Likewise.
14874
14875 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14876
14877 * rtl.h (target_rtl): Add x_static_reg_base_value.
14878 * alias.c (static_reg_base_value): Redefine as a macro.
14879
14880 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14881
14882 * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
14883 (GTFILES): Remove reginfo.c.
14884 * rtl.h (target_rtl): Add x_top_of_stack.
14885 (top_of_stack): New macro.
14886 * reginfo.c: Don't include ggc.h or gt-reginfo.h.
14887 (top_of_stack): Delete.
14888
14889 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14890
14891 * regs.h (target_regs): Add x_hard_regs_of_mode,
14892 x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
14893 x_may_move_out_cost and x_last_mode_for_init_move_cost.
14894 (have_regs_of_mode, contains_reg_of_mode, move_cost)
14895 (may_move_in_cost, may_move_out_cost): Redefine as macros.
14896 * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
14897 (may_move_in_cost, may_move_out_cost): Delete.
14898 (last_mode_for_init_move_cost): Redefine as a macro.
14899
14900 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14901
14902 * hard-reg-set.h (target_hard_regs): New structure.
14903 (default_target_hard_regs): Declare.
14904 (this_target_hard_regs): Declare as a variable or define as a macro.
14905 (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
14906 (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
14907 (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
14908 (reg_class_size, reg_class_subclasses, reg_class_subunion)
14909 (reg_class_superunion, reg_names): Redefine as macros.
14910 * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
14911 (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
14912 (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
14913 (reg_class_contents, reg_class_size, reg_class_subclasses)
14914 (reg_class_subunion, reg_class_superunion, reg_names): Delete.
14915 (default_target_hard_regs): New variable
14916 (this_target_hard_regs, initial_call_really_used_regs)
14917 (initial_reg_alloc_order): New conditional variables.
14918 (initial_reg_names): New variable.
14919 (init_reg_sets): Assert that initial_call_really_used_regs,
14920 initial_reg_alloc_order and initial_reg_names
14921 are all the same size as their variable counterparts. Use them to
14922 initialize those counterparts.
14923 * target-globals.h (this_target_hard_regs): Declare.
14924 (target_globals): Add a hard_regs field.
14925 (restore_target_globals): Copy the hard_regs field to
14926 this_target_hard_regs.
14927 * target-globals.c: Include hard-reg-set.h.
14928 (default_target_globals): Initialize the hard_regs field.
14929 (save_target_globals): Likewise.
14930
14931 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14932
14933 * Makefile.in (target-globals.o): Depend on $(RTL_H).
14934 * rtl.h (target_rtl): New structure.
14935 (default_target_rtl): Declare.
14936 (this_target_rtl): Declare as a variable or define as a macro.
14937 (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
14938 Redefine as macros.
14939 * emit-rtl.c (default_target_rtl): New variable.
14940 (this_target_rtl): New conditional variable.
14941 (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
14942 (return_address_pointer_rtx): Delete.
14943 (initial_regno_reg_rtx): New macro.
14944 (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
14945 (init_emit_regs): Likewise.
14946 * target-globals.h (this_target_rtl): Declare.
14947 (target_globals): Add a rtl field.
14948 (restore_target_globals): Copy the rtl field to this_target_rtl.
14949 * target-globals.c: Include rtl.h.
14950 (default_target_globals): Initialize the rtl field.
14951 (save_target_globals): Likewise.
14952
14953 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14954
14955 * Makefile.in (target-globals.o): Depend on $(REGS_H).
14956 * regs.h (target_reg_modes): New structure.
14957 (default_target_reg_modes): Declare.
14958 (this_target_reg_modes): Declare as a variable or define as a macro.
14959 (hard_regno_nregs, reg_raw_mode): Redefine as macros.
14960 * reginfo.c (default_target_reg_modes): New variable.
14961 (this_target_reg_modes): New conditional variable.
14962 (hard_regno_nregs, reg_raw_mode): Delete.
14963 * target-globals.h (this_target_regs): Declare.
14964 (target_globals): Add a regs field.
14965 (restore_target_globals): Copy the regs field to this_target_regs.
14966 * target-globals.c: Include regs.h.
14967 (default_target_globals): Initialize the regs field.
14968 (save_target_globals): Likewise.
14969
14970 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14971
14972 * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
14973 * doc/tm.texi: Regenerate.
14974 * Makefile.in (OBJS-common): Add target-globals.o.
14975 (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
14976 and target-globals.h.
14977 (target-globals.o): New rule.
14978 (GTFILES): Include $(srcdir)/target-globals.h.
14979 * defaults.h (SWITCHABLE_TARGET): Define.
14980 * gengtype.c (open_base_files): Add target-globals.h to the
14981 list of includes.
14982 * target-globals.h: New file.
14983 * target-globals.c: Likewise.
14984
14985 * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
14986 * flags.h (target_flag_state): New structure.
14987 (default_target_flag_state): Declare.
14988 (this_target_flag_state): Declare as a variable or define as a macro.
14989 (align_loops_log): Redefine as a macro.
14990 (align_loops_max_skip, align_jumps_log): Likewise.
14991 (align_jumps_max_skip, align_labels_log): Likewise.
14992 (align_labels_max_skip, align_functions_log): Likewise.
14993 * toplev.c (default_target_flag_state): New variable.
14994 (this_target_flag_state): New conditional variable.
14995 (align_loops_log): Delete.
14996 (align_loops_max_skip, align_jumps_log): Likewise.
14997 (align_jumps_max_skip, align_labels_log): Likewise.
14998 (align_labels_max_skip, align_functions_log): Likewise.
14999 * target-globals.h (this_target_flag_state): Declare.
15000 (target_globals): Add a flag_state field.
15001 (restore_target_globals): Copy the flag_state field to
15002 this_target_flag_state.
15003 * target-globals.c: Include flags.h.
15004 (default_target_globals): Initialize the flag_state field.
15005 (save_target_globals): Likewise.
15006
15007 2010-07-12 Jie Zhang <jie@codesourcery.com>
15008
15009 * postreload.c (reg_symbol_ref[]): New.
15010 (move2add_use_add2_insn): New.
15011 (move2add_use_add3_insn): New.
15012 (reload_cse_move2add): Handle SYMBOL + OFFSET case.
15013 (move2add_note_store): Likewise.
15014
15015 2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
15016
15017 PR rtl-optimization/44752
15018 * genautomata.c (main): Don't emit an empty file even if there
15019 is no automaton.
15020
15021 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15022
15023 * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
15024 ix86_solaris_return_in_memory.
15025 * config/i386-protos.h: Reflect this.
15026 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
15027 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
15028 Move ...
15029 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
15030
15031 2010-07-12 Jie Zhang <jie@codesourcery.com>
15032
15033 * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
15034 align the stack when it's going to be saved.
15035
15036 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15037
15038 PR pch/14940
15039 * config/host-solaris.c (mmap_fixed): New function.
15040 (sol_gt_pch_get_address): Use it.
15041 (sol_gt_pch_use_address): Likewise.
15042
15043 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15044
15045 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
15046 pentiumpro on Solaris 8 and 9/x86.
15047 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
15048 Document SSE/SSE2 support.
15049 * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
15050
15051 2010-07-12 Andi Kleen <ak@linux.intel.com>
15052
15053 * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
15054 instead of gcc_assert to print better error message for multiple
15055 prevailing defs.
15056
15057 2010-07-12 Uros Bizjak <ubizjak@gmail.com>
15058
15059 * config/i386/i386.c (ix86_asm_output_function_label): Change format
15060 string placeholder from 0x%x to %#x.
15061 (ix86_code_end): Use putc to output '\n'.
15062 (ix86_print_operand) <case ';'>: Use putc to output ';'.
15063
15064 2010-07-11 Kai Tietz <kai.tietz@onevision.com>
15065
15066 * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
15067 in directive -export.
15068
15069 2010-07-10 Anatoly Sokolov <aesok@post.ru>
15070
15071 * reginfo.h (reg_classes_intersect_p): Change arguments type to
15072 reg_class_t.
15073 * rtl.h (reg_classes_intersect_p): Adjust prototype.
15074
15075 * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
15076 Remove macros.
15077 * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
15078 rs6000_memory_move_cost): Remove
15079 * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
15080 TARGET_MEMORY_MOVE_COST): Define.
15081 (rs6000_register_move_cost): Make static. Change arguments type from
15082 enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
15083 (rs6000_memory_move_cost): Make static. Change arguments type from
15084 'enum reg_class' to reg_class_t.
15085
15086 2010-07-10 Sandra Loosemore <sandra@codesourcery.com>
15087
15088 PR middle-end/42505
15089 * tree-inline.c (estimate_num_insns): Refactor builtin complexity
15090 lookup code into....
15091 * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
15092 new functions.
15093 * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
15094 * cfgloopanal.c (target_clobbered_regs): Define.
15095 (init_set_costs): Initialize target_clobbered_regs.
15096 (estimate_reg_pressure_cost): Add call_p argument. When true,
15097 adjust the number of available registers to exclude the
15098 call-clobbered registers.
15099 * cfgloop.h (target_clobbered_regs): Declare.
15100 (estimate_reg_pressure_cost): Adjust declaration.
15101 * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
15102 (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
15103 (determine_set_costs): Dump target_clobbered_regs.
15104 (loop_body_includes_call): New function.
15105 (tree_ssa_iv_optimize_loop): Use it to initialize new field.
15106 * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
15107 call_p flag through.
15108 (best_gain_for_invariant): Likewise.
15109 (find_invariants_to_move): Likewise.
15110 (move_single_loop_invariants): Likewise, using already-computed
15111 has_call field.
15112
15113 2010-07-10 Richard Guenther <rguenther@suse.de>
15114 Joern Rennecke <joern.rennecke@embecosm.com>
15115
15116 PR debug/44832
15117 * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
15118 (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
15119 unless they have DECL_IGNORED_P set.
15120
15121 2010-07-10 Richard Guenther <rguenther@suse.de>
15122
15123 PR lto/44889
15124 * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
15125 helper function.
15126 (gimple_types_compatible_p): Similar to pointed-to
15127 types allow and merge a mix of complete and incomplete aggregate.
15128 Use gimple_fixup_complete_and_incomplete_subtype_p for that.
15129 (iterative_hash_gimple_type): Adjust for that.
15130
15131 2010-07-10 Richard Sandiford <r.sandiford@uk.ibm.com>
15132
15133 * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
15134
15135 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
15136
15137 PR objc/44140
15138 * config/darwin.c (output_objc_section_asm_op): Save and restore
15139 section when outputting ObjC section list.
15140
15141 2010-07-09 Jan Hubicka <jh@suse.cz>
15142
15143 * lto-streamer-out.c (produce_symtab): Do not write alias
15144 cgraph/varpool nodes.
15145
15146 2010-07-09 Jan Hubicka <jh@suse.cz>
15147
15148 * tree-inline.c (declare_return_variable): Fix ICE while
15149 inlining DECL_BY_VALUE function not in SSA form
15150
15151 2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
15152
15153 PR tree-optimization/44576
15154 * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
15155 New. Pull out from is_loop_prefetching_profitable to implement
15156 the trip count to ahead ratio heuristic.
15157 (mem_ref_count_reasonable_p): New. Pull out from
15158 is_loop_prefetching_profitable to implement the instruction to
15159 memory reference ratio heuristic. Also consider not reasonable if
15160 the memory reference count is above a threshold (to avoid
15161 explosive compilation time.
15162 (insn_to_prefetch_ratio_too_small_p): New. Pull out from
15163 is_loop_prefetching_profitable to implement the instruction to
15164 prefetch ratio heuristic.
15165 (is_loop_prefetching_profitable): Removed.
15166 (loop_prefetch_arrays): Distribute the cost analysis across the
15167 function to allow early exit of the prefetch analysis.
15168 is_loop_prefetching_profitable is splitted into three functions,
15169 with each one called as early as possible.
15170 (PREFETCH_MAX_MEM_REFS_PER_LOOP): New. Threshold above which the
15171 number of memory references in a loop is considered too many.
15172
15173 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
15174
15175 * reload.c (find_reloads): Don't clear badop if we have a winreg
15176 alternative, but not win, and the class only has fixed regs.
15177 * hard-reg-set.h (class_only_fixed_regs): Declare.
15178 * reginfo.c (class_only_fixed_regs): New array.
15179 (init_reg_sets_1): Initialize it.
15180 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
15181 discourage alternatives using the stack pointer.
15182
15183 * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
15184
15185 * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
15186
15187 * config/arm/arm.md (cbranchqi4): Fix array size.
15188 (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
15189 calculating length.
15190
15191 2010-07-09 Richard Guenther <rguenther@suse.de>
15192
15193 * gimple.c (struct type_fixup_s): New struct and VEC type.
15194 (gimple_register_type_fixups): New static global.
15195 (gimple_queue_type_fixup): New function.
15196 (gimple_types_compatible_p): Queue type fixups instead of
15197 applying them here.
15198 (gimple_register_type): Apply queued fixups for the
15199 canonical type. Empty the type fixup queue.
15200
15201 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
15202
15203 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
15204 * configure: Regenerate.
15205 * config.in: Ditto.
15206
15207 2010-07-09 Jakub Jelinek <jakub@redhat.com>
15208 Denys Vlasenko <dvlasenk@redhat.com>
15209 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15210
15211 PR tree-optimization/28632
15212 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
15213 (extract_range_from_binary_expr): Further optimize
15214 BIT_AND_EXPR and BIT_IOR_EXPR.
15215
15216 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
15217
15218 * tree-if-conv.c (fold_or_predicates): New.
15219 (add_to_predicate_list): Call it.
15220
15221 2010-07-09 Richard Guenther <rguenther@suse.de>
15222
15223 PR middle-end/44890
15224 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
15225 if base is a pointer.
15226 * tree-cfg.c (verify_expr): Update MEM_REF checking.
15227
15228 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
15229
15230 PR target/44877
15231 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
15232 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
15233 builtin mask for load/store builtins.
15234
15235 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
15236
15237 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
15238 for "lock addl".
15239 * configure: Regenerate.
15240 * config/i386/i386.c (ix86_print_operand) <case ';'>:
15241 Remove TARGET_MACHO.
15242
15243 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
15244
15245 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
15246 default ISA flags.
15247 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
15248
15249 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
15250
15251 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
15252
15253 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
15254
15255 * config/picochip/picochip.md (commsTestPort): Emit more
15256 efficient sequence for tstport instruction.
15257
15258 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
15259
15260 * config/i386/i386.c (ix86_veclib_handler): Make static.
15261
15262 2010-07-09 Richard Guenther <rguenther@suse.de>
15263
15264 PR tree-optimization/44852
15265 * tree-ssa-alias.c: Include toplev.h for exact_log2.
15266 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
15267 in MEM_REF.
15268 (indirect_refs_may_alias_p): Likewise.
15269 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
15270
15271 2010-07-09 Richard Guenther <rguenther@suse.de>
15272
15273 PR tree-optimization/44882
15274 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
15275 sets do conflict.
15276 (vectorizable_load): Likewise.
15277
15278 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
15279
15280 PR target/40657
15281 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
15282 All callers changed.
15283 Handle the case when we're called for the epilogue.
15284 (thumb_unexpanded_epilogue): Use it.
15285 (thumb1_expand_epilogue): Likewise.
15286
15287 2010-07-09 Jakub Jelinek <jakub@redhat.com>
15288
15289 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
15290 both ranges are range_int_cst_p with non-negative minimum,
15291 try harder to derive smaller range.
15292
15293 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
15294
15295 * genrecog.c: Include diagnostic-core.h before toplev.h.
15296 * genoutput.c: Likewise.
15297 * genextract.c: Likewise.
15298 * genautomata.c: Likewise.
15299 * genemit.c: Likewise.
15300 * genpeep.c: Likewise.
15301 * genattrtab.c: Likewise.
15302 * genconditions.c: Likewise.
15303 * genpreds.c: Likewise.
15304
15305 2010-07-08 Andi Kleen <ak@linux.intel.com>
15306
15307 * lto-section-in.c (lto_section_name): Add missing comma.
15308
15309 2010-07-08 Anatoly Sokolov <aesok@post.ru>
15310
15311 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
15312 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
15313 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
15314 (ia64_override_options): Rename to...
15315 (ia64_option_override): ... this one. Make static.
15316
15317 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
15318
15319 PR middle-end/44843
15320 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
15321 pointed-to type of the offset in a MEM_REF to compute the alignment.
15322
15323 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
15324
15325 * final.c (final_scan_insn): Replace
15326 TARGET_UNWIND_INFO macro check by unwind_emit
15327 hook NULL check.
15328 * targhooks.c (default_unwind_emit): Removed.
15329 * targhooks.h (default_unwind_emit): Likewise.
15330 * target.def (unwind_emit): Set default value to NULL.
15331
15332 * config/i386/i386-protos.h (ix86_asm_output_function_label):
15333 New prototype.
15334 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
15335 for NULL fntype argument and allow 64-bit targets.
15336 (ix86_asm_output_function_label): New function.
15337 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
15338 (ix86_handle_fndecl_attribute): Likewise.
15339 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
15340 * doc/doc/tm.texi: Regenerated.
15341 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
15342 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
15343 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
15344 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
15345 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
15346 * config/elfos.h: Likewise.
15347 * config/i386/cygming.h: Likewise.
15348 * config/netbsd-aout.h: Likewise.
15349 * config/openbsd.h: Likewise.
15350 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
15351 by ix86_asm_output_function_label function call.
15352 * varasm.c (assemble_start_function): Use
15353 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
15354
15355 2010-07-08 Jan Hubicka <jh@suse.cz>
15356
15357 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
15358 New function.
15359 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
15360 Declare.
15361 * ipa-cp.c (ipcp_estimate_growth): Use it.
15362 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
15363 Likewise.
15364
15365 2010-07-08 Jan Hubicka <jh@suse.cz>
15366
15367 * tree-inline.c (declare_return_variable): Allocate annotation for new
15368 temporary.
15369
15370 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
15371
15372 PR tree-optimization/44710
15373 * tree-if-conv.c (parse_predicate): New.
15374 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
15375 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
15376
15377 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
15378
15379 * common.opt (ftree-loop-if-convert): New flag.
15380 * doc/invoke.texi (ftree-loop-if-convert): Documented.
15381 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
15382 when flag_tree_loop_if_convert is set.
15383
15384 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
15385
15386 * config/i386/i386.c: Use short syntax for function calls
15387 through function pointers.
15388 * config/i386/i386.md: Ditto.
15389
15390 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
15391
15392 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
15393
15394 2010-07-08 Richard Guenther <rguenther@suse.de>
15395
15396 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
15397 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
15398
15399 2010-07-08 Jakub Jelinek <jakub@redhat.com>
15400
15401 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
15402 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
15403 (loc_list_from_tree): Likewise.
15404 (output_loc_operands): Handle outputting DW_OP_const[48]u
15405 with loc->dtprel set.
15406 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
15407
15408 2010-07-08 Jan Hubicka <jh@suse.cz>
15409
15410 * ipa.c: Include pointer-set.h
15411 (cgraph_externally_visible_p): New attribute ALIASED;
15412 when in LTO, hidden symbols are local unless they are aliased.
15413 (function_and_variable_visibility): Compute aliased nodes;
15414 handle LTO and hidden symbol on functions and vars.
15415 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
15416 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
15417
15418 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
15419
15420 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
15421 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15422 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15423 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15424 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15425 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
15426 (ix86_gen_probe_stack_range): Likewise.
15427 (override_options): Set them.
15428 (ix86_target_stack_probe): New function.
15429 (ix86_compute_frame_layout): Force use of push instructions to
15430 save registers if stack checking with probes is enabled.
15431 (get_scratch_register_on_entry): New function.
15432 (release_scratch_register_on_entry): Likewise.
15433 (ix86_adjust_stack_and_probe): Likewise.
15434 (output_adjust_stack_and_probe): Likewise.
15435 (ix86_emit_probe_stack_range): Likewise.
15436 (output_probe_stack_range): Likewise.
15437 (ix86_expand_prologue): Emit stack checking code if static built-in
15438 stack checking is enabled.
15439 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
15440 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
15441 (output_adjust_stack_and_probe): Likewise.
15442 (output_probe_stack_range): Likewise.
15443 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
15444 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
15445 TARGET_STACK_PROBE.
15446 (allocate_stack_worker_64): Likewise.
15447 (allocate_stack): Likewise.
15448 (adjust_stack_and_probe): New insn.
15449 (probe_stack_range): Likewise.
15450
15451 2010-07-08 Richard Guenther <rguenther@suse.de>
15452
15453 PR tree-optimization/44831
15454 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
15455 a MEM_REF preserving TBAA info of the original dereference.
15456 Dereference the original pointer if the address is not invariant.
15457 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
15458 at least one invariant address that we are going to dereference.
15459
15460 2010-07-08 Richard Guenther <rguenther@suse.de>
15461
15462 PR tree-optimization/44861
15463 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
15464 information when building MEM_REFs.
15465 (vectorizable_load): Likewise.
15466 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
15467
15468 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
15469
15470 * config/sol2-c.c: Do not include diagnostic-core.h.
15471
15472 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15473
15474 PR bootstrap/44768
15475 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
15476 with respect to current_function_decl. Pass decl of the function.
15477 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
15478 * ipa-inline.c (compute_inline_parameters): Pass decl to
15479 estimated_stack_frame_size.
15480
15481 2010-07-08 Richard Guenther <rguenther@suse.de>
15482
15483 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
15484 New function.
15485 (valueize_refs): Call it.
15486
15487 2010-07-08 Richard Guenther <rguenther@suse.de>
15488
15489 PR rtl-optimization/44838
15490 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
15491 SSA form do not use pointer equivalence.
15492
15493 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
15494
15495 * dwarf2out.c (AT_linkage_name): Delete.
15496 (add_linkage_attr): New function.
15497 (add_linkage_name): Call it to emit the linkage attribute.
15498 (dwarf2out_finish): Likewise.
15499 (move_linkage_attr): Explicitly accept both attribute variants.
15500
15501 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
15502
15503 * toplev.h: Do not include diagnostic-core.h.
15504 Include diagnostic-core.h in every file that includes toplev.h.
15505 * c-tree.h: Do not include toplev.h.
15506 * pretty-print.h: Update comment.
15507 * Makefile.in: Update dependencies.
15508 * alias.c: Include diagnostic-core.h in every file that includes
15509 toplev.h.
15510 * attribs.c: Likewise.
15511 * auto-inc-dec.c: Likewise.
15512 * bb-reorder.c: Likewise.
15513 * bt-load.c: Likewise.
15514 * caller-save.c: Likewise.
15515 * calls.c: Likewise.
15516 * cfg.c: Likewise.
15517 * cfganal.c: Likewise.
15518 * cfgbuild.c: Likewise.
15519 * cfgcleanup.c: Likewise.
15520 * cfghooks.c: Likewise.
15521 * cfgloop.c: Likewise.
15522 * combine.c: Likewise.
15523 * config/alpha/alpha.c: Likewise.
15524 * config/arc/arc.c: Likewise.
15525 * config/arm/arm.c: Likewise.
15526 * config/arm/pe.c: Likewise.
15527 * config/avr/avr.c: Likewise.
15528 * config/bfin/bfin.c: Likewise.
15529 * config/cris/cris.c: Likewise.
15530 * config/crx/crx.c: Likewise.
15531 * config/darwin-c.c: Likewise.
15532 * config/darwin.c: Likewise.
15533 * config/fr30/fr30.c: Likewise.
15534 * config/frv/frv.c: Likewise.
15535 * config/h8300/h8300.c: Likewise.
15536 * config/host-darwin.c: Likewise.
15537 * config/i386/i386.c: Likewise.
15538 * config/i386/netware.c: Likewise.
15539 * config/i386/nwld.c: Likewise.
15540 * config/i386/winnt-cxx.c: Likewise.
15541 * config/i386/winnt-stubs.c: Likewise.
15542 * config/i386/winnt.c: Likewise.
15543 * config/ia64/ia64-c.c: Likewise.
15544 * config/ia64/ia64.c: Likewise.
15545 * config/iq2000/iq2000.c: Likewise.
15546 * config/lm32/lm32.c: Likewise.
15547 * config/m32c/m32c-pragma.c: Likewise.
15548 * config/m32c/m32c.c: Likewise.
15549 * config/m32r/m32r.c: Likewise.
15550 * config/m68hc11/m68hc11.c: Likewise.
15551 * config/m68k/m68k.c: Likewise.
15552 * config/mcore/mcore.c: Likewise.
15553 * config/mep/mep-pragma.c: Likewise.
15554 * config/mep/mep.c: Likewise.
15555 * config/mmix/mmix.c: Likewise.
15556 * config/mn10300/mn10300.c: Likewise.
15557 * config/moxie/moxie.c: Likewise.
15558 * config/pa/pa.c: Likewise.
15559 * config/pdp11/pdp11.c: Likewise.
15560 * config/picochip/picochip.c: Likewise.
15561 * config/rs6000/rs6000-c.c: Likewise.
15562 * config/rs6000/rs6000.c: Likewise.
15563 * config/rx/rx.c: Likewise.
15564 * config/s390/s390.c: Likewise.
15565 * config/score/score.c: Likewise.
15566 * config/score/score3.c: Likewise.
15567 * config/score/score7.c: Likewise.
15568 * config/sh/sh.c: Likewise.
15569 * config/sh/symbian-base.c: Likewise.
15570 * config/sh/symbian-c.c: Likewise.
15571 * config/sh/symbian-cxx.c: Likewise.
15572 * config/sol2-c.c: Likewise.
15573 * config/sol2.c: Likewise.
15574 * config/sparc/sparc.c: Likewise.
15575 * config/spu/spu.c: Likewise.
15576 * config/stormy16/stormy16.c: Likewise.
15577 * config/v850/v850-c.c: Likewise.
15578 * config/v850/v850.c: Likewise.
15579 * config/vax/vax.c: Likewise.
15580 * config/vxworks.c: Likewise.
15581 * config/xtensa/xtensa.c: Likewise.
15582 * convert.c: Likewise.
15583 * cse.c: Likewise.
15584 * cselib.c: Likewise.
15585 * dbgcnt.c: Likewise.
15586 * dbxout.c: Likewise.
15587 * ddg.c: Likewise.
15588 * dominance.c: Likewise.
15589 * emit-rtl.c: Likewise.
15590 * explow.c: Likewise.
15591 * expmed.c: Likewise.
15592 * fixed-value.c: Likewise.
15593 * fold-const.c: Likewise.
15594 * fwprop.c: Likewise.
15595 * gcse.c: Likewise.
15596 * ggc-common.c: Likewise.
15597 * ggc-page.c: Likewise.
15598 * ggc-zone.c: Likewise.
15599 * gimple-low.c: Likewise.
15600 * gimplify.c: Likewise.
15601 * graph.c: Likewise.
15602 * haifa-sched.c: Likewise.
15603 * ifcvt.c: Likewise.
15604 * implicit-zee.c: Likewise.
15605 * integrate.c: Likewise.
15606 * ira-build.c: Likewise.
15607 * ira-color.c: Likewise.
15608 * ira-conflicts.c: Likewise.
15609 * ira-costs.c: Likewise.
15610 * ira-lives.c: Likewise.
15611 * ira.c: Likewise.
15612 * lists.c: Likewise.
15613 * loop-doloop.c: Likewise.
15614 * loop-iv.c: Likewise.
15615 * lto-opts.c: Likewise.
15616 * lto-symtab.c: Likewise.
15617 * main.c: Likewise.
15618 * modulo-sched.c: Likewise.
15619 * optabs.c: Likewise.
15620 * params.c: Likewise.
15621 * plugin.c: Likewise.
15622 * postreload-gcse.c: Likewise.
15623 * postreload.c: Likewise.
15624 * predict.c: Likewise.
15625 * profile.c: Likewise.
15626 * real.c: Likewise.
15627 * regcprop.c: Likewise.
15628 * reginfo.c: Likewise.
15629 * regmove.c: Likewise.
15630 * reorg.c: Likewise.
15631 * resource.c: Likewise.
15632 * rtl.c: Likewise.
15633 * rtlanal.c: Likewise.
15634 * sched-deps.c: Likewise.
15635 * sched-ebb.c: Likewise.
15636 * sched-rgn.c: Likewise.
15637 * sdbout.c: Likewise.
15638 * sel-sched-dump.c: Likewise.
15639 * sel-sched-ir.c: Likewise.
15640 * simplify-rtx.c: Likewise.
15641 * stmt.c: Likewise.
15642 * stor-layout.c: Likewise.
15643 * store-motion.c: Likewise.
15644 * targhooks.c: Likewise.
15645 * tree-cfg.c: Likewise.
15646 * tree-cfgcleanup.c: Likewise.
15647 * tree-dump.c: Likewise.
15648 * tree-eh.c: Likewise.
15649 * tree-inline.c: Likewise.
15650 * tree-nomudflap.c: Likewise.
15651 * tree-object-size.c: Likewise.
15652 * tree-optimize.c: Likewise.
15653 * tree-outof-ssa.c: Likewise.
15654 * tree-phinodes.c: Likewise.
15655 * tree-profile.c: Likewise.
15656 * tree-ssa-ccp.c: Likewise.
15657 * tree-ssa-coalesce.c: Likewise.
15658 * tree-ssa-live.c: Likewise.
15659 * tree-ssa-loop-niter.c: Likewise.
15660 * tree-ssa-loop-prefetch.c: Likewise.
15661 * tree-ssa-loop.c: Likewise.
15662 * tree-ssa-structalias.c: Likewise.
15663 * tree-ssa-uninit.c: Likewise.
15664 * tree-ssa.c: Likewise.
15665 * tree-vect-data-refs.c: Likewise.
15666 * tree-vect-loop-manip.c: Likewise.
15667 * tree-vect-loop.c: Likewise.
15668 * tree-vect-patterns.c: Likewise.
15669 * tree-vect-stmts.c: Likewise.
15670 * tree-vrp.c: Likewise.
15671 * varasm.c: Likewise.
15672 * vec.c: Likewise.
15673 * web.c: Likewise.
15674 * xcoffout.c: Likewise.
15675
15676 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
15677
15678 * gengtype.c (write_field_root): New function.
15679 (write_root): Use it.
15680
15681 2010-07-07 Wei Guozhi <carrot@google.com>
15682
15683 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
15684 of lowest bits to lshift/compare): Add a missing line.
15685
15686 2010-07-07 Wei Guozhi <carrot@google.com>
15687
15688 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
15689 of lowest bits to lshift/compare): New.
15690
15691 2010-07-07 Tom Tromey <tromey@redhat.com>
15692
15693 * doc/tm.texi: Update.
15694 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
15695 Add @hook.
15696 * target.def (want_debug_pub_sections): New hook.
15697 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
15698 * dwarf2out.c (add_pubname_string): Check
15699 targetm.want_debug_pub_sections.
15700 (add_pubname): Likewise.
15701 (add_pubtype): Likewise.
15702
15703 2010-07-07 Jie Zhang <jie@codesourcery.com>
15704
15705 * genautomata.c (output_automata_list_min_issue_delay_code):
15706 Correctly decompress min_issue_delay.
15707
15708 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
15709
15710 PR rtl-optimization/44404
15711 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
15712 possible, use reg_overlap_mentioned_p instead.
15713
15714 2010-07-07 Duncan Sands <baldrick@free.fr>
15715
15716 PR middle-end/41355
15717 * tree.c (build_function_type_skip_args): Copy the original type using
15718 build_distinct_type_copy rather than copy_node.
15719
15720 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
15721
15722 PR target/44850
15723 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
15724 revision 161876.
15725 (ix86_expand_prologue): Likewise.
15726 (ix86_handle_fndecl_attribute): Likewise.
15727 (ix86_asm_declare_function_name): Likewise.
15728 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
15729 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
15730 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
15731 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
15732 * doc/extend.texi: Likewise.
15733
15734 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
15735
15736 PR target/44844
15737 * config/i386/i386.md (rdrand<mode>): Changed to expand to
15738 retry if the carry flag isn't valid.
15739 (rdrand<mode>_1): New.
15740
15741 2010-07-07 Richard Guenther <rguenther@suse.de>
15742
15743 PR middle-end/44790
15744 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
15745 for expanding the constant offset for MEM_REFs.
15746
15747 2010-07-07 Richard Guenther <rguenther@suse.de>
15748
15749 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
15750 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
15751 * gimple.h (is_gimple_operand): Remove.
15752 * gimple.c (is_gimple_operand): Likewise.
15753 (walk_gimple_op): Fix wi->val_only setting for calls.
15754 * tree-cfg.c (verify_gimple_call): Fix argument validation.
15755 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
15756 invalid gimple calls.
15757
15758 2010-07-06 Jan Hubicka <jh@suse.cz>
15759
15760 * lto-cgraph.c (output_cgraph): Add missing declaration.
15761
15762 2010-07-06 Jan Hubicka <jh@suse.cz>
15763
15764 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
15765 partition.
15766
15767 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
15768
15769 * doc/gimple.texi (GIMPLE_DEBUG): Document.
15770 * doc/rtl.texi (Debug Information): New node.
15771 (NOTE_INSN_VAR_LOCATION): Document.
15772 (debug_insn): Likewise.
15773 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
15774
15775 2010-07-07 Jan Hubicka <jh@suse.cz>
15776
15777 With parts by Richard Guenther.
15778
15779 PR middle-end/44813
15780 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
15781 for functions passed by reference.
15782 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
15783 in memory when passed by reference.
15784 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
15785 beggining.
15786 * ipa-split.c (split_function): Cleanup way return value is passed;
15787 handle SSA DECL_BY_REFERENCE retvals.
15788 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
15789 DECL_BY_REFERENCE is set.
15790 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
15791 find_what_p_points_to): Handle RESULT_DECL.
15792 * tree-inline.c (declare_return_variable): Get new entry_block argument;
15793 when passing by reference ensure that RESULT_DECL is gimple_val.
15794 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
15795 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
15796
15797 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
15798
15799 PR rtl-optimization/44787
15800 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
15801 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
15802
15803 2010-07-06 Jan Hubicka <jh@suse.cz>
15804
15805 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
15806 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
15807 with body can prevail.
15808 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
15809 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
15810 * cgraph.c (cgraph_get_node_or_alias): New function.
15811 * cgraph.h (cgraph_get_node_or_alias): Declare.
15812
15813 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
15814
15815 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
15816 support.
15817 (ix86_expand_prologue): Likewise.
15818 (ix86_handle_fndecl_attribute): Likewise.
15819 (ix86_asm_declare_function_name): New function for
15820 ASM_DECLARE_FUNCTION_NAME.
15821 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
15822 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
15823 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
15824 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
15825 * doc/extend.texi: Adjust documentation about ms_hook_prologue
15826 attribute.
15827
15828 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
15829
15830 * config/i386/i386.md (immediate_operand): New mode attribute.
15831
15832 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
15833 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
15834 using P mode iterator.
15835 (pro_epilogue_adjust_stack_di_2): Rename from
15836 pro_epilogue_adjust_stack_rex64_2.
15837
15838 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
15839
15840 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
15841
15842 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
15843 through gen_mov_insv_1 function pointer.
15844 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
15845 gen_truncxf<mode>2 through gen_truncxf function pointer.
15846 (remainder<mode>3): Ditto.
15847 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
15848 (allocate_stack): Call gen_allocate_stack_worker_64 or
15849 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
15850 function pointer.
15851 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
15852 function pointer.
15853
15854 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
15855
15856 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
15857 operand constraint instead of <r><i>m.
15858
15859 2010-07-06 Richard Guenther <rguenther@suse.de>
15860
15861 PR middle-end/44828
15862 * convert.c (convert_to_integer): Watch out for overflowing
15863 MULT_EXPR as well.
15864
15865 2010-07-05 Jan Hubicka <jh@suse.cz>
15866
15867 * lto-streamer.c (write_symbol_vec): Rename to ...
15868 (write_symbol) ... this one; write only symbol given and when
15869 present in cache. Sanity check that what is defined is present
15870 in cgraph/varpool with body/finalized decl.
15871 (write_symbols_of_kind): Remove.
15872 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
15873 pairs to produce symtab.
15874 (produce_asm_for_decls): Update call of produce_symtab; don't do so
15875 when doing WPA streaming.
15876
15877 2010-07-05 Jan Hubicka <jh@suse.cz>
15878
15879 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
15880 function is still available to fold into.
15881
15882 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
15883
15884 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
15885 * function.h (struct_function): Change type of local_decls field
15886 to a VEC.
15887 (add_local_decl): New function.
15888 (FOR_EACH_LOCAL_DECL): New macro.
15889 * cfgexpand.c (init_vars_expansion): Adjust for new type of
15890 cfun->local_decls.
15891 (estimated_stack_frame_size): Likewise.
15892 (expand_used_vars): Likewise.
15893 * cgraphbuild.c (build_cgraph_edges): Likewise.
15894 * function.c (instantiate_decls_1): Likewise.
15895 * ipa-struct-reorg.c (build_data_structure): Likewise.
15896 * ipa-type-escape.c (analyze_function): Likewise.
15897 * lto-streamer-in.c (input_function): Likewise.
15898 * lto-streamer-out.c (output_function): Likewise.
15899 * tree-ssa-live.c (remove_unused_locals): Likewise.
15900 * tree.c (free_lang_data_in_decl): Likewise.
15901 (find_decls_types_in_node): Likewise.
15902 * omp-low.c (remove_exit_barrier): Likewise.
15903 (expand_omp_taskreg): Likewise.
15904 (list2chain): Rename to...
15905 (vec2chain): ...this. Adjust.
15906 * cgraphunit.c (assemble_thunk): Call add_local_decl.
15907 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
15908 * gimple-low.c (record_vars_into): Likewise.
15909 * tree-inline.c (remap_decls): Likewise.
15910 (declare_return_variable): Likewise.
15911 (declare_inline_vars): Likewise.
15912 (copy_forbidden): Adjust for new type of cfun->local_decls.
15913 (add_local_variables): New function.
15914 (expand_call_inline): Call it.
15915 (tree_function_versioning): Likewise.
15916
15917 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
15918
15919 AVX Programming Reference (June, 2010)
15920 * config/i386/cpuid.h (bit_F16C): New.
15921 (bit_RDRND): Likewise.
15922 (bit_FSGSBASE): Likewise.
15923
15924 * config/i386/i386-builtin-types.def: Add
15925 "DEF_FUNCTION_TYPE (UINT16)", function types for
15926 float16 <-> float conversions and
15927 "DEF_FUNCTION_TYPE (VOID, UINT64)".
15928
15929 * config/i386/i386-c.c (ix86_target_macros_internal): Support
15930 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
15931 OPTION_MASK_ISA_F16C.
15932
15933 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
15934 (OPTION_MASK_ISA_RDRND_SET): Likewise.
15935 (OPTION_MASK_ISA_F16C_SET): Likewise.
15936 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
15937 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
15938 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
15939 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
15940 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
15941 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
15942 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
15943 (override_options): Handle them.
15944 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
15945 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
15946 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
15947 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
15948 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
15949 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
15950 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
15951 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
15952 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
15953 (bdesc_args): Likewise.
15954 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
15955 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
15956 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
15957 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
15958 Handle non-memory store.
15959
15960 * config/i386/i386.h (TARGET_FSGSBASE): New.
15961 (TARGET_RDRND): Likewise.
15962 (TARGET_F12C): Likewise.
15963
15964 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
15965 (UNSPEC_VCVTPS2PH): Likewise.
15966 (UNSPECV_RDFSBASE): Likewise.
15967 (UNSPECV_RDGSBASE): Likewise.
15968 (UNSPECV_WRFSBASE): Likewise.
15969 (UNSPECV_WRGSBASE): Likewise.
15970 (UNSPECV_RDRAND): Likewise.
15971 (rdfsbase<mode>): Likewise.
15972 (rdgsbase<mode>): Likewise.
15973 (wrfsbase<mode>): Likewise.
15974 (wrgsbase<mode>): Likewise.
15975 (rdrand<mode>): Likewise.
15976
15977 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
15978
15979 * config/i386/immintrin.h (_rdrand_u16): New.
15980 (_rdrand_u32): Likewise.
15981 (_readfsbase_u32): Likewise.
15982 (_readfsbase_u64): Likewise.
15983 (_readgsbase_u32): Likewise.
15984 (_readgsbase_u64): Likewise.
15985 (_writefsbase_u32): Likewise.
15986 (_writefsbase_u64): Likewise.
15987 (_writegsbase_u32): Likewise.
15988 (_writegsbase_u64): Likewise.
15989 (_rdrand_u64): Likewise.
15990 (_cvtsh_ss): Likewise.
15991 (_mm_cvtph_ps): Likewise.
15992 (_mm256_cvtph_ps): Likewise.
15993 (_cvtss_sh): Likewise.
15994 (_mm_cvtps_ph): Likewise.
15995 (_mm256_cvtps_ph): Likewise.
15996
15997 * config/i386/sse.md (vcvtph2ps): New.
15998 (*vcvtph2ps_load): Likewise.
15999 (vcvtph2ps256): Likewise.
16000 (vcvtps2ph): Likewise.
16001 (*vcvtps2ph): Likewise.
16002 (*vcvtps2ph_store): Likewise.
16003 (vcvtps2ph256): Likewise.
16004
16005 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
16006
16007 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
16008
16009 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
16010
16011 PR bootstrap/44512
16012 * genenums.c (main): Output include of insn-constants.h
16013 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
16014
16015 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
16016
16017 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
16018 (override_options): Initialize it.
16019 (ix86_expand_prologue): Use it.
16020
16021 2010-07-05 Jakub Jelinek <jakub@redhat.com>
16022
16023 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
16024
16025 2010-07-05 Anatoly Sokolov <aesok@post.ru>
16026
16027 * double-int.h (fit_double_type): Remove declaration.
16028 * double-int.c (fit_double_type): Remove function.
16029 * tree.h (int_fits_type_p): Adjust prototype.
16030 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
16031 instead of fit_double_type.
16032 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
16033 instead of fit_double_type and build_int_cst_wide.
16034 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
16035 instead of fit_double_type and build_int_cst_wide.
16036 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
16037 of fit_double_type.
16038
16039 2010-07-05 Jan Hubicka <jh@suse.cz>
16040
16041 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
16042 in_other_partition.
16043 * lto-cgraph.c (referenced_from_other_partition_p,
16044 reachable_from_other_partition_p): Use in_other_partition flags.
16045 (output_node, output_varpool_node): COMDAT nodes always have private
16046 copies and thus are never used from other partition.
16047
16048 2010-07-05 Anatoly Sokolov <aesok@post.ru>
16049
16050 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
16051 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
16052 * config/ia64/ia64.c Include reload.h.
16053 (ia64_memory_move_cost): New function.
16054 (TARGET_MEMORY_MOVE_COST): Define.
16055 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
16056 memory_move_cost.
16057
16058 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
16059
16060 PR middle-end/42505
16061 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
16062 comments about cost model.
16063 (try_add_cand_for): Add second strategy for choosing initial set
16064 based on original IVs, controlled by ORIGINALP argument.
16065 (get_initial_solution): Add ORIGINALP argument.
16066 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
16067 (find_optimal_iv_set): Try two different strategies for choosing
16068 the IV set, and return the one with lower cost.
16069
16070 2010-07-05 Richard Guenther <rguenther@suse.de>
16071
16072 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
16073
16074 2010-07-05 Richard Guenther <rguenther@suse.de>
16075
16076 * tree.c (reference_alias_ptr_type): New function.
16077 * tree.h (reference_alias_ptr_type): Declare.
16078 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
16079 allow non-TARGET_MEM_REF new refs.
16080 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
16081 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
16082 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
16083 (create_mem_ref): Get alias pointer type. Adjust calls to
16084 create_mem_ref_raw.
16085 (maybe_fold_tmr): Likewise.
16086 * tree-flow.h (create_mem_ref): Adjust prototype.
16087
16088 2010-07-05 Jakub Jelinek <jakub@redhat.com>
16089
16090 PR c++/44808
16091 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
16092 *from_p is VAR_DECL.
16093
16094 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
16095
16096 * tree.h (build_call_list): Remove.
16097 * tree.c (build_call_list): Remove.
16098
16099 2010-07-05 Richard Guenther <rguenther@suse.de>
16100
16101 * double-int.h (double_int_sub): Declare.
16102 * double-int.c (double_int_sub): New function.
16103 * dwarf2out.c (field_byte_offset): Use it.
16104 * fixed-value.c (do_fixed_add): Likewise.
16105 (do_fixed_multiply): Likewise.
16106 (do_fixed_divide): Likewise.
16107 * tree-predcom.c (add_ref_to_chain): Likewise.
16108 (determine_roots_comp): Likewise.
16109 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
16110
16111 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
16112
16113 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
16114 implementations.
16115
16116 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
16117
16118 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
16119 * arm-modes.def (CC_NOTB): Don't define.
16120 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
16121 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
16122 (LTUGEU): New code_iterator.
16123 (cnb, optab): New corresponding code_attrs.
16124 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
16125 to canonical form. Operands 1 and 2 are commutative. Parametrize
16126 using LTUGEU.
16127 (addsi3_carryin_shift_<optab>): Likewise.
16128 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
16129 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
16130 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
16131 (subsi3_compare): Renamed from subsi3_compare0_c.
16132 Change CC_NOTB to CC.
16133 (arm_subsi3_insn): Allow constants for operand 0.
16134 (compare_scc peephole for eq case): New.
16135 (compare_scc splitters): Change CC_NOTB to CC.
16136
16137 2010-07-05 Richard Guenther <rguenther@suse.de>
16138
16139 * tree-ssa-loop-im.c (for_each_index): Do not handle
16140 ALIGN_INDIRECT_REF.
16141 (gen_lsm_tmp_name): Likewise.
16142 * tree-dump.c (dequeue_and_dump): Likewise.
16143 * tree-pretty-print.c (dump_generic_node): Likewise.
16144 (op_code_prio): Likewise.
16145 (op_symbol_code): Likewise.
16146 * tree.c (staticp): Likewise.
16147 (build1_stat): Likewise.
16148 * tree.h (INDIRECT_REF_P): Likewise.
16149 * fold-const.c (maybe_lvalue_p): Likewise.
16150 (operand_equal_p): Likewise.
16151 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
16152 (ao_ref_init_from_vn_reference): Likewise.
16153 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
16154 (find_interesting_uses_address): Likewise.
16155 * dwarf2out.c (loc_list_from_tree): Likewise.
16156 * gimplify.c (gimplify_expr): Likewise.
16157 * tree-eh.c (tree_could_trap_p): Likewise.
16158 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
16159 * cfgexpand.c (expand_debug_expr): Likewise.
16160 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
16161 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
16162 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
16163 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
16164 * tree-ssa-operands.c (get_expr_operands): Likewise.
16165 * expr.c (safe_from_p): Likewise.
16166 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
16167 * tree-vect-data-refs.c (vect_setup_realignment): Build
16168 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
16169 * tree-vect-stmts.c (vectorizable_load): Likewise.
16170 * tree.def (ALIGN_INDIRECT_REF): Remove.
16171
16172 2010-07-05 Richard Guenther <rguenther@suse.de>
16173
16174 PR tree-optimization/44784
16175 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
16176 for inserted stmts.
16177 (find_or_generate_expression): Fix SCCVN insertion check.
16178
16179 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
16180
16181 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
16182 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
16183 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
16184 directives.
16185
16186 2010-07-05 Ira Rosen <irar@il.ibm.com>
16187
16188 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
16189 statements that are not vectorized.
16190 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
16191 in INSIDE_COST.
16192
16193 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
16194
16195 PR bootstrap/44820
16196 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
16197
16198 2010-07-05 Richard Guenther <rguenther@suse.de>
16199
16200 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
16201 RESULT_DECLs properly.
16202
16203 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
16204
16205 PR rtl-optimization/44695
16206 * config/i386/i386.md (extract_code): Removed.
16207 (<u>divmodqi4): Likewise.
16208 (divmodqi4): New.
16209 (udivmodqi4): Likewise.
16210 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
16211 (udivmodhiqi3): Likewise.
16212
16213 2010-07-04 Jan Hubicka <jh@suse.cz>
16214
16215 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
16216
16217 2010-07-04 Jan Hubicka <jh@suse.cz>
16218
16219 * cgraphunit.c (init_cgraph): Only initialize dump file if it
16220 is not already initialized.
16221
16222 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
16223
16224 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
16225 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
16226 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
16227 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
16228 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
16229 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
16230 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
16231 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
16232 (sync_new_nand_optab): Redefine as macros.
16233 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
16234 Delete.
16235 (direct_optab_index): New enum.
16236 (direct_optab_d): New structure.
16237 (direct_optab): New typedef.
16238 (direct_optab_table): Declare.
16239 (direct_optab_handler, set_direct_optab_handler): New functions.
16240 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
16241 (sync_lock_release_optab): New macros.
16242 * optabs.c (direct_optab_table): New variable.
16243 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
16244 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
16245 cmpstr_optab and cmpstrn_optab.
16246 (emit_conditional_move): Likewise for movcc_optab.
16247 (can_conditionally_move_p): Likewise for movcc_gen_code.
16248 (init_insn_codes): Clear direct_optab_table.
16249 (init_optabs): Don't initialize the new "direct optabs" here.
16250 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
16251 vcond_gen_code.
16252 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
16253 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
16254 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
16255 (expand_sync_operation): Likewise other sync_*_optabs.
16256 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
16257 to sync_compare_and_swap_optab.
16258 (expand_sync_lock_test_and_set): Use direct_optab_handler for
16259 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
16260 to the names of both.
16261 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
16262 cmpstr_optab and cmpstrn_optab.
16263 (expand_builtin_lock_release): Likewise sync_lock_release.
16264 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
16265 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
16266 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
16267 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
16268 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
16269 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
16270 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
16271 (sync_lock_test_and_set, sync_lock_release): Delete.
16272 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
16273 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
16274 * genopinit.c (optabs): Use set_direct_optab_handler for the new
16275 macro optabs.
16276 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
16277 the "optab" local variable. Use direct_optab_handler for optab and
16278 sync_compare_and_swap_optab.
16279 * reload1.c (reload_in_optab, reload_out_optab): Delete.
16280 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
16281 reload_in_optab and reload_out_optab.
16282 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
16283 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
16284 * config/pa/pa.c (pa_secondary_reload): Likewise.
16285 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
16286 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
16287 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
16288 (VMSupportsCS8_builtin): Likewise.
16289
16290 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
16291
16292 * optabs.h (optab_handlers): Change type of insn_code to int.
16293 (optab_handler, set_optab_handler, convert_optab_handler)
16294 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
16295 CODE_FOR_nothing".
16296 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
16297 (init_insn_codes): Zero both the above arrays.
16298 (init_optabs): Never call init_insn_codes first time around.
16299
16300 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
16301
16302 * optabs.h (optab_handler, convert_optab_handler): Turn into
16303 inline functions that return an insn code.
16304 (set_optab_handler, set_convert_optab_handler): New functions.
16305 * builtins.c: Replace optab_handler(X)->insn_code with
16306 optab_handler or set_optab_handler thoughout. Likewise
16307 convert_optab_handler(X)->insn_code with convert_optab_handler
16308 and set_convert_optab_handler.
16309 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
16310 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
16311 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
16312 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
16313 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
16314 config/spu/spu.c: Likewise.
16315
16316 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
16317
16318 PR target/44531
16319 * config.gcc (sh*-*-*): Use regular expressions instead of
16320 the 'i' modifier for sed substitutions.
16321
16322 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
16323
16324 * gimple.c (gimple_body): Comments added.
16325
16326 2010-07-04 Richard Guenther <rguenther@suse.de>
16327
16328 PR middle-end/44809
16329 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
16330 of an INDIRECT_REF.
16331
16332 2010-07-04 Richard Guenther <rguenther@suse.de>
16333
16334 PR tree-optimization/44479
16335 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
16336 extra SSA name copy statements which preserves points-to
16337 information.
16338 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
16339 Copy points-to information for all pointers. Properly handle
16340 MEM_REFs.
16341 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
16342 copy statements.
16343 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
16344 dependency.
16345
16346 2010-07-04 Richard Guenther <rguenther@suse.de>
16347
16348 PR middle-end/44785
16349 * tree-inline.c (initialize_inlined_parameters): Do not
16350 re-use pointer-map slot over remap_type call.
16351
16352 2010-07-04 Richard Guenther <rguenther@suse.de>
16353
16354 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
16355
16356 2010-07-04 Richard Guenther <rguenther@suse.de>
16357
16358 PR tree-optimization/44656
16359 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
16360 again after value-replacing in the defintions lhs.
16361
16362 2010-07-04 Ira Rosen <irar@il.ibm.com>
16363 Revital Eres <eres@il.ibm.com>
16364
16365 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
16366 Document new arguments.
16367 * doc/tm.texi: Regenerate.
16368 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
16369 Handle unaligned store.
16370 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
16371 * target.def (builtin_vectorization_cost): Add new arguments.
16372 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
16373 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
16374 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
16375 (vect_vfa_segment_size): Fix indentation.
16376 * tree-vectorizer.h (struct _vect_peel_info): New.
16377 (struct _vect_peel_extended_info): New.
16378 (struct _loop_vec_info): Add new field for peeling hash table and a
16379 macro for its access.
16380 (VECT_MAX_COST): Define.
16381 (vect_get_load_cost): Declare.
16382 (vect_get_store_cost, vect_get_known_peeling_cost,
16383 vect_get_single_scalar_iteraion_cost): Likewise.
16384 (vect_supportable_dr_alignment): Add new argument.
16385 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
16386 field.
16387 (destroy_loop_vec_info): Free peeling hash table.
16388 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
16389 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
16390 vect_analyze_slp. Fix indentation.
16391 (vect_get_single_scalar_iteraion_cost): New function.
16392 (vect_get_known_peeling_cost): Likewise.
16393 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
16394 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
16395 statement. Move outside cost calculation inside unknown peeling case.
16396 Call vect_get_known_peeling_cost for known amount of peeling.
16397 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
16398 reference to the print message of forced alignment.
16399 (vect_verify_datarefs_alignment): Update call to
16400 vect_supportable_dr_alignment.
16401 (vect_get_data_access_cost): New function.
16402 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
16403 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
16404 vect_peeling_hash_choose_best_peeling): Likewise.
16405 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
16406 to store all the accesses in the loop and find best possible access to
16407 align using peeling for known alignment case. For unknown alignment
16408 check if stores are preferred or if peeling is worthy.
16409 (vect_find_same_alignment_drs): Analyze pairs of loads too.
16410 (vect_supportable_dr_alignment): Add new argument and check aligned
16411 accesses according to it.
16412 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
16413 (cost_for_stmt): Call vect_get_stmt_cost.
16414 (vect_model_simple_cost): Likewise.
16415 (vect_model_store_cost): Call vect_get_stmt_cost. Call
16416 vect_get_store_cost to calculate the cost of the statement.
16417 (vect_get_store_cost): New function.
16418 (vect_model_load_cost): Call vect_get_stmt_cost. Call
16419 vect_get_load_cost to calculate the cost of the statement.
16420 (vect_get_load_cost): New function.
16421 (vectorizable_store): Update call to vect_supportable_dr_alignment.
16422 (vectorizable_load): Likewise.
16423 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
16424 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
16425 arguments. Handle unaligned store.
16426 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
16427 (rs6000_builtin_support_vector_misalignment): Return true for word and
16428 double word alignments for VSX.
16429 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
16430 vect_supportable_dr_alignment and builtin_vectorization_cost.
16431
16432 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16433
16434 PR target/44597
16435 * config/pa/predicates.md (prefetch_cc_operand): Remove.
16436 (prefetch_nocc_operand): Likewise.
16437 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
16438 (prefetch_20): New insn.
16439 (prefetch_cc): Remove.
16440 (prefetch_nocc): Likewise.
16441
16442 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
16443
16444 * expr.c (vector_mode_valid_p): Move to c-common.c.
16445 * expr.h (vector_mode_valid_p): Do not declare here.
16446 * system.h: Poison GCC_EXPR_H in front-ends.
16447 * Makefile.in: Update dependencies.
16448
16449 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16450
16451 PR target/44705
16452 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
16453
16454 2010-07-03 Jan Hubicka <jh@suse.cz>
16455
16456 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
16457 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
16458 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
16459 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
16460 Likewise.
16461
16462 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
16463 Update timevars.V
16464 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
16465 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
16466 TV_IPA_LTO_DECL_OUT): New.
16467 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
16468
16469 2010-07-03 Jan Hubicka <jh@suse.cz>
16470
16471 * ipa-inline.c (update_edge_key): Break out from ...
16472 update_callers_keys): ... here;
16473 (update_callee_keys): Update only the edges from caller to callee.
16474 (update_all_calle_keys): Do what update_calle_keys did.
16475 (decide_inlining_of_small_functions): Avoid recomputing of all
16476 callees when badness increase.
16477
16478 2010-07-03 Jie Zhang <jie@codesourcery.com>
16479
16480 * config/arm/arm.c (arm_attr_length_move_neon): New.
16481 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
16482 * config/arm/neon.md (define_mode_attr V_slen): Remove.
16483 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
16484 to compute length attribute.
16485
16486 2010-07-03 Jie Zhang <jie@codesourcery.com>
16487
16488 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
16489 as predicate for operand 1 and remove its constraint.
16490 * config/arm/predicates.md (vfp_register_operand): New.
16491 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
16492 (*push_fp_multi): Likewise.
16493
16494 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
16495
16496 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
16497
16498 2010-07-03 Jan Hubicka <jh@suse.cz>
16499
16500 * config/i386/i386.c (override_options): Revert accidental commit.
16501
16502 2010-07-02 Le-Chun Wu <lcwu@google.com>
16503
16504 PR c++/44128
16505 * doc/invoke.texi: Update documentation of -Wshadow.
16506
16507 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
16508 Julian Brown <julian@codesourcery.com>
16509 Sandra Loosemore <sandra@codesourcery.com>
16510
16511 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
16512 comparisons. Adjust to take both operands.
16513 (arm_select_cc_mode): Handle DImode comparisons.
16514 (arm_gen_compare_reg): Generate a scratch register for DImode
16515 comparisons which require one. Use xor for Thumb equality checks.
16516 (arm_const_double_by_immediates): New.
16517 (arm_print_operand): Allow 'Q' and 'R' for constants.
16518 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
16519 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
16520 arm_canonicalize_comparison.
16521 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
16522 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
16523 prototype.
16524 (arm_const_double_by_immediates): Declare.
16525 * config/arm/constraints.md (Di): New constraint.
16526 * config/arm/predicates.md (arm_immediate_di_operand)
16527 (arm_di_operand, cmpdi_operand): New.
16528 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
16529 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
16530 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
16531 (cstoredi4): Handle non-Cirrus also.
16532
16533 2010-07-02 Julian Brown <julian@codesourcery.com>
16534 Sandra Loosemore <sandra@codesourcery.com>
16535
16536 PR target/43703
16537 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
16538 (smax<mode>3): Disable for NEON float modes when
16539 flag_unsafe_math_optimizations is false.
16540 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
16541 (*mul<mode>3_neon)
16542 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
16543 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
16544 for NEON float modes when flag_unsafe_math_optimizations is false.
16545 (quad_halves_<code>v4sf): Only enable if
16546 flag_unsafe_math_optimizations is true.
16547 * doc/invoke.texi (ARM Options): Add note about floating point
16548 vectorization requiring -funsafe-math-optimizations.
16549
16550 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
16551 Julian Brown <julian@codesourcery.com>
16552
16553 * config/arm/neon.md (UNSPEC_VABA): Delete.
16554 (UNSPEC_VABAL): Delete.
16555 (UNSPEC_VABS): Delete.
16556 (UNSPEC_VMUL_N): Delete.
16557 (adddi3_neon): New.
16558 (subdi3_neon): New.
16559 (mul<mode>3add<mode>_neon): Make the pattern named.
16560 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
16561 (neon_vadd<mode>): Replace with define_expand, and move the remaining
16562 unspec parts...
16563 (neon_vadd<mode>_unspec): ...to this.
16564 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
16565 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
16566 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
16567 (neon_vaba<mode>): Rewrite in terms of vabd.
16568 (neon_vabal<mode>): Rewrite in terms of vabdl.
16569 (neon_vabs<mode>): Rewrite without unspec.
16570 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
16571 (*arm_subdi3): Likewise.
16572 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
16573 No_op attribute to disable assembly output checks.
16574 * config/arm/arm_neon.h: Regenerated.
16575 * doc/arm-neon-intrinsics.texi: Regenerated.
16576
16577 2010-07-02 Jan Hubicka <jh@suse.cz>
16578
16579 * ipa-split.c (split_function): For aggregate values, set the return
16580 slot optimization bit. When passing DECL_BY_REFERENCE, produce
16581 *<retval> = fncall.part ().
16582 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
16583
16584 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
16585
16586 * config/arm/neon.md (UNSPEC_VAND): Delete.
16587 (UNSPEC_VBIC): Delete.
16588 (UNSPEC_VCLZ): Delete.
16589 (UNSPEC_VCNT): Delete.
16590 (UNSPEC_VEOR): Delete.
16591 (UNSPEC_VORN): Delete.
16592 (UNSPEC_VORR): Delete.
16593 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
16594 core registers too.
16595 (anddi3_neon): Likewise.
16596 (orndi3_neon): Likewise.
16597 (bicdi3_neon): Likewise.
16598 (xordi3_neon): Likewise.
16599 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
16600 rid of unspec and handle unused operand.
16601 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
16602 * config/arm/predicates.md (imm_for_neon_logic_operand):
16603 Require TARGET_NEON.
16604 (imm_for_neon_inv_logic_operand): Likewise.
16605 * config/arm/arm.md (define_split for logical_binary_operator):
16606 Disable for NEON registers.
16607 (anddi3): Add new define_expand, and rename the insn. Disable
16608 this insn for NEON, where anddi3_neon now applies.
16609 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
16610 (iordi3): As for anddi3.
16611 (xordi3): Likewise.
16612 * config/arm/neon.ml (Vand): Split DImode variants and mark them
16613 as No_op to disable testing for exact instruction match.
16614 (Vorr): Likewise.
16615 (Veor): Likewise.
16616 (Vbic): Likewise.
16617 (Vorn): Likewise.
16618 * config/arm/arm_neon.h: Regenerated.
16619 * doc/arm-neon-intrinsics.texi: Regenerated.
16620
16621 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
16622
16623 * expr.h (emit_stack_probe): Declare.
16624 * explow.c (emit_stack_probe): Make global.
16625 (anti_adjust_stack_and_probe): Fix comments.
16626 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
16627 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
16628 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
16629 * config/sparc/sparc.c: Include except.h.
16630 (sparc_emit_probe_stack_range): New function.
16631 (output_probe_stack_range): Likewise.
16632 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
16633 built-in stack checking is enabled.
16634 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
16635 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
16636 (probe_stack_range): New insn.
16637
16638 2010-07-02 Richard Guenther <rguenther@suse.de>
16639
16640 PR target/43958
16641 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
16642 for argument alignment.
16643
16644 2010-07-02 Jan Hubicka <jh@suse.cz>
16645
16646 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
16647 walk backwards from entry_bb to check only those basic block of header
16648 that might lead to execution of split part.
16649 (consider_split) ... here.
16650 (find_return_bb): Allow assignment in return BB.
16651 (find_retval): New.
16652 (split_function): Fix name of cloned function; take care of updating
16653 return value in return_bb containing move.
16654
16655 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
16656
16657 PR target/44771
16658 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
16659 used variable insn.
16660
16661 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
16662
16663 * implicit-zee.c (combine_reaching_defs): Fix long lines.
16664 (is_set_with_extension_DI): Delete.
16665 (struct zero_extend_info): New structure.
16666 (add_removable_zero_extend): New function.
16667 (find_removable_zero_extends): Use note_stores to find SETs.
16668 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
16669
16670 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
16671
16672 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
16673 is_miss_rate_acceptable. Pull total_positions computation
16674 out of the loops. Early return if miss_positions exceeds
16675 the acceptable threshold.
16676 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
16677 is_miss_rate_acceptable after renaming of compute_miss_rate.
16678
16679 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
16680
16681 PR middle-end/44576
16682 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
16683 of 1000) for miss rate if the address diference is greater than or
16684 equal to the cache line size (the two reference will never hit the
16685 same cache line).
16686
16687 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
16688
16689 PR target/42835
16690 * config/arm/arm-modes.def (CC_NOTB): New mode.
16691 * config/arm/arm.c (get_arm_condition_code): Handle it.
16692 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
16693 * config/arm/arm.md (subsi3_compare0_c): New pattern.
16694 (compare_scc): Now a define_and_split. Add a number of extra
16695 splitters before it.
16696
16697 PR target/42172
16698 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
16699 and ZERO_EXTEND.
16700 (arm_rtx_costs_1): Likewise.
16701 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
16702 * config/arm/arm.md (is_arch6): New attribute.
16703 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
16704 extendqisi2): Tighten the code somewhat, avoiding invalid
16705 RTL to occur in the expander patterns.
16706 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
16707 (thumb1_zero_extendhisi2_v6): Delete.
16708 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
16709 (thumb1_extendhisi2_v6): Delete.
16710 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
16711 (thumb1_extendqisi2_v6): Delete.
16712 (zero_extendhisi2 for register input splitter): New.
16713 (zero_extendqisi2 for register input splitter): New.
16714 (thumb1_extendhisi2 for register input splitter): New.
16715 (extendhisi2 for register input splitter): New.
16716 (extendqisi2 for register input splitter): New.
16717 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
16718 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
16719 and add support for a register alternative requiring a split.
16720 (thumb1_zero_extendqisi2): Likewise.
16721 (arm_zero_extendqisi2): Likewise.
16722 (arm_extendhisi2): Likewise.
16723 (arm_extendqisi2): Likewise.
16724
16725 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
16726
16727 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
16728 instead of an unspec.
16729 (neon_expand_vector_init): Likewise.
16730 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
16731 (UNSPEC_VDUP_LANE): Delete.
16732 (UNSPEC VDUP_N): Delete.
16733 (UNSPEC_VGET_HIGH): Delete.
16734 (UNSPEC_VGET_LANE): Delete.
16735 (UNSPEC_VGET_LOW): Delete.
16736 (UNSPEC_VMVN): Delete.
16737 (UNSPEC_VSET_LANE): Delete.
16738 (V_double_vector_mode): New.
16739 (vec_set<mode>_internal): Make code emitted match that for the
16740 corresponding intrinsics.
16741 (vec_setv2di_internal): Likewise.
16742 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
16743 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
16744 (neon_vset_lane<mode>): Combine double and quad patterns and
16745 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
16746 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
16747 (neon_vdup_n<mode>): Rewrite RTL without unspec.
16748 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
16749 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
16750 with neon_vdup_lanev2di, adjusting the pattern from the latter
16751 to be predicable for consistency.
16752 (neon_vdup_lane<mode>_internal): New.
16753 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
16754 to avoid using an unspec.
16755 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
16756 (neon_vdup_lanev2di): Turn into a define_expand.
16757 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
16758 (neon_vget_high<mode>): Replace with....
16759 (neon_vget_highv16qi): New pattern using canonical RTL.
16760 (neon_vget_highv8hi): Likewise.
16761 (neon_vget_highv4si): Likewise.
16762 (neon_vget_highv4sf): Likewise.
16763 (neon_vget_highv2di): Likewise.
16764 (neon_vget_low<mode>): Replace with....
16765 (neon_vget_lowv16qi): New pattern using canonical RTL.
16766 (neon_vget_lowv8hi): Likewise.
16767 (neon_vget_lowv4si): Likewise.
16768 (neon_vget_lowv4sf): Likewise.
16769 (neon_vget_lowv2di): Likewise.
16770
16771 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
16772 test for this emitting vmov.
16773 (Vset_lane): Likewise.
16774 (Vdup_n): Likewise.
16775 (Vmov_n): Likewise.
16776
16777 * doc/arm-neon-intrinsics.texi: Regenerated.
16778
16779 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
16780
16781 * config/arm/neon.md (vec_extractv2di): Correct error in register
16782 numbering to reconcile with neon_vget_lanev2di.
16783
16784 2010-07-02 Richard Guenther <rguenther@suse.de>
16785
16786 * tree-ssa-structalias.c (pt_solution_set_var): New function.
16787 * tree-ssa-alias.h (pt_solution_set_var): Declare.
16788 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
16789 points-to information.
16790
16791 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
16792
16793 * config/s390/s390.c (override_options): Adopt prefetching
16794 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
16795
16796 2010-07-02 Jan Hubicka <jh@suse.cz>
16797
16798 * df-problems.c (df_kill_notes): Do not collect dead notes.
16799 (df_set_note): Just call add_reg_note.
16800 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
16801 df_create_unused_note): Do not deal with lists of old notes.
16802 (df_note_bb_compute): Likewise.
16803
16804 2010-07-02 Richard Guenther <rguenther@suse.de>
16805
16806 * tree-ssa-structalias.c (find_func_aliases): Handle
16807 pointer alignment via BIT_AND_EXPR.
16808 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
16809
16810 2010-07-02 Richard Guenther <rguenther@suse.de>
16811
16812 * tree-data-ref.c (initialize_data_dependence_relation): Handle
16813 mismatching number of dimensions properly.
16814
16815 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16816
16817 PR target/44707
16818 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
16819 (lo_sum (high ...) ...) patterns generated by earlier passes.
16820
16821 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16822
16823 * doc/install.texi (Prerequisites): Document Perl requirement on
16824 Solaris 2.
16825 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
16826
16827 2010-07-02 Richard Guenther <rguenther@suse.de>
16828
16829 PR middle-end/44777
16830 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
16831
16832 2010-07-02 Jan Hubicka <jh@suse.cz>
16833
16834 PR middle-end/44706
16835 * predict.c (predict_paths_for_bb): Handle case when control dependence
16836 BB has only abnormal edges.
16837
16838 2010-07-02 Richard Guenther <rguenther@suse.de>
16839
16840 PR tree-optimization/44748
16841 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
16842 the embedded conversion in MEM_REFs.
16843
16844 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
16845
16846 * reload.c: Include toplev.h.
16847 * recog.c: Likewise.
16848 * Makefile.in: Adjust dependencies.
16849
16850 2010-07-01 Jakub Jelinek <jakub@redhat.com>
16851
16852 PR debug/44694
16853 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
16854 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
16855
16856 2010-07-01 Richard Guenther <rguenther@suse.de>
16857
16858 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
16859 types for offsets.
16860
16861 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
16862
16863 PR target/44732
16864 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
16865 Fix argument types.
16866
16867 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
16868
16869 PR target/44727
16870 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
16871 Make sure operand 0 dies.
16872
16873 2010-07-01 Richard Guenther <rguenther@suse.de>
16874
16875 PR middle-end/42834
16876 PR middle-end/44468
16877 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
16878 * doc/generic.texi (References to storage): Document MEM_REF.
16879 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
16880 (print_call_name): Likewise.
16881 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
16882 (build_simple_mem_ref_loc): New function.
16883 (mem_ref_offset): Likewise.
16884 * tree.h (build_simple_mem_ref_loc): Declare.
16885 (build_simple_mem_ref): Define.
16886 (mem_ref_offset): Declare.
16887 * fold-const.c: Include tree-flow.h.
16888 (operand_equal_p): Handle MEM_REF.
16889 (build_fold_addr_expr_with_type_loc): Likewise.
16890 (fold_comparison): Likewise.
16891 (fold_unary_loc): Fold
16892 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
16893 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
16894 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
16895 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
16896 (ptr_deref_may_alias_ref_p_1): Likewise.
16897 (ao_ref_base_alias_set): Properly differentiate base object for
16898 offset and TBAA.
16899 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
16900 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
16901 (indirect_refs_may_alias_p): Likewise.
16902 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
16903 chasing code.
16904 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
16905 (call_may_clobber_ref_p_1): Likewise.
16906 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
16907 * expr.c (expand_assignment): Handle MEM_REF.
16908 (store_expr): Handle MEM_REFs from STRING_CSTs.
16909 (store_field): If expanding a MEM_REF of a non-addressable
16910 decl use bitfield operations.
16911 (get_inner_reference): Handle MEM_REF.
16912 (expand_expr_addr_expr_1): Likewise.
16913 (expand_expr_real_1): Likewise.
16914 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
16915 * alias.c (ao_ref_from_mem): Handle MEM_REF.
16916 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
16917 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
16918 (dr_analyze_indices): Likewise.
16919 (dr_analyze_alias): Likewise.
16920 (object_address_invariant_in_loop_p): Likewise.
16921 * gimplify.c (mark_addressable): Handle MEM_REF.
16922 (gimplify_cond_expr): Build MEM_REFs.
16923 (gimplify_modify_expr_to_memcpy): Likewise.
16924 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
16925 (gimple_fold_indirect_ref): Adjust.
16926 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
16927 * tree.def (MEM_REF): New tree code.
16928 * tree-dfa.c: Include toplev.h.
16929 (get_ref_base_and_extent): Handle MEM_REF.
16930 (get_addr_base_and_unit_offset): New function.
16931 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
16932 * gimple-fold.c (may_propagate_address_into_dereference): Handle
16933 MEM_REF.
16934 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
16935 accesses if the array has just one dimension. Remove always true
16936 parameter. Do not require type compatibility here.
16937 (maybe_fold_offset_to_component_ref): Remove.
16938 (maybe_fold_stmt_indirect): Remove.
16939 (maybe_fold_reference): Remove INDIRECT_REF handling.
16940 Fold back to non-MEM_REF.
16941 (maybe_fold_offset_to_address): Simplify. Deal with type
16942 mismatches here.
16943 (maybe_fold_reference): Likewise.
16944 (maybe_fold_stmt_addition): Likewise. Also handle
16945 &ARRAY + I in addition to &ARRAY[0] + I.
16946 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
16947 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
16948 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
16949 * tree-ssa.c (useless_type_conversion_p): Make most pointer
16950 conversions useless.
16951 (warn_uninitialized_var): Handle MEM_REF.
16952 (maybe_rewrite_mem_ref_base): New function.
16953 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
16954 to SSA form.
16955 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
16956 INDIRECT_REF handling.
16957 (copy_tree_body_r): Handle MEM_REF.
16958 * gimple.c (is_gimple_addressable): Adjust.
16959 (is_gimple_address): Likewise.
16960 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
16961 invariant base are invariant.
16962 (is_gimple_min_lval): Adjust.
16963 (is_gimple_mem_ref_addr): New function.
16964 (get_base_address): Handle MEM_REF.
16965 (count_ptr_derefs): Likewise.
16966 (get_base_loadstore): Likewise.
16967 * gimple.h (is_gimple_mem_ref_addr): Declare.
16968 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
16969 * tree-cfg.c (verify_address): New function, split out from ...
16970 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
16971 the address operand of MEM_REFs. Verify MEM_REFs. Reject
16972 INDIRECT_REFs.
16973 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
16974 INDIRECT_REF. Allow conversions.
16975 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
16976 a register does not change its size.
16977 (verify_types_in_gimple_reference): Verify MEM_REF.
16978 (verify_gimple_assign_single): Disallow INDIRECT_REF.
16979 Handle MEM_REF.
16980 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
16981 New.
16982 (mark_address_taken): Handle MEM_REF.
16983 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
16984 (get_asm_expr_operands): Pass opf_not_non_addressable.
16985 (get_expr_operands): Handle opf_[not_]non_addressable.
16986 Handle MEM_REF. Remove INDIRECT_REF handling.
16987 * tree-vrp.c (check_array_ref): Handle MEM_REF.
16988 (search_for_addr_array): Likewise.
16989 (check_array_bounds): Likewise.
16990 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
16991 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
16992 (ref_always_accessed_p): Likewise.
16993 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
16994 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
16995 Handle MEM_REF.
16996 * cgraphbuild.c (mark_load): Properly check for NULL result
16997 from get_base_address.
16998 (mark_store): Likewise.
16999 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
17000 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
17001 handling for MEM_REF.
17002 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
17003 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
17004 * builtins.c (stabilize_va_list_loc): Use the function ABI
17005 valist type if we couldn't canonicalize the argument type.
17006 Always dereference with the canonical va-list type.
17007 (maybe_emit_free_warning): Handle MEM_REF.
17008 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
17009 memmove to memcpy.
17010 * builtins.c (fold_builtin_memory_op): Use ref-all types
17011 for all memcpy foldings.
17012 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
17013 (build_outer_var_ref): Likewise.
17014 (scan_omp_1_op): Likewise.
17015 (lower_rec_input_clauses): Likewise.
17016 (lower_lastprivate_clauses): Likewise.
17017 (lower_reduction_clauses): Likewise.
17018 (lower_copyprivate_clauses): Likewise.
17019 (expand_omp_atomic_pipeline): Likewise.
17020 (expand_omp_atomic_mutex): Likewise.
17021 (create_task_copyfn): Likewise.
17022 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
17023 Remove old union trick. Initialize constant offsets.
17024 (ao_ref_init_from_vn_reference): Likewise. Do not handle
17025 INDIRECT_REF. Init base_alias_set properly.
17026 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
17027 (vn_reference_fold_indirect): Adjust for MEM_REFs.
17028 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
17029 for ARRAY_REFs.
17030 (may_insert): Remove.
17031 (visit_reference_op_load): Do not test may_insert.
17032 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
17033 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
17034 a field to store the constant offset this op applies.
17035 (run_scc_vn): Adjust prototype.
17036 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
17037 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
17038 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
17039 bother about volatile qualifiers on pointers.
17040 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
17041 * tree-ssa-loop-ivopts.c
17042 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
17043 (strip_offset_1): Likewise.
17044 (find_interesting_uses_address): Replace INDIRECT_REF handling with
17045 MEM_REF handling.
17046 (get_computation_cost_at): Likewise.
17047 * ipa-pure-const.c (check_op): Handle MEM_REF.
17048 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
17049 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
17050 and constants.
17051 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
17052 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
17053 (eliminate_local_variables_1): Likewise.
17054 (create_call_for_reduction_1): Likewise.
17055 (create_loads_for_reductions): Likewise.
17056 (create_loads_and_stores_for_name): Likewise.
17057 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
17058 (ssa_accessed_in_tree): Handle MEM_REF.
17059 (ssa_accessed_in_assign_rhs): Likewise.
17060 (update_type_size): Likewise.
17061 (analyze_accesses_for_call_stmt): Likewise.
17062 (analyze_accesses_for_assign_stmt): Likewise.
17063 (transform_access_sites): Likewise.
17064 (transform_allocation_sites): Likewise.
17065 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
17066 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
17067 not handle INDIRECT_REF.
17068 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
17069 (cond_store_replacement): Likewise.
17070 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
17071 MEM_REF, no not handle INDIRECT_REFs.
17072 (insert_into_preds_of_block): Properly initialize avail.
17073 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
17074 for ARRAY_REFs. Properly handle reference lookups that
17075 require a bit re-interpretation.
17076 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
17077 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
17078 (build_ref_for_offset_1): Remove.
17079 (build_ref_for_offset): Build MEM_REFs.
17080 (gate_intra_sra): Disable for now.
17081 (sra_ipa_modify_expr): Handle MEM_REF.
17082 (ipa_early_sra_gate): Disable for now.
17083 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
17084 MEM_REF handling.
17085 (disqualify_base_of_expr): Likewise.
17086 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
17087 MEM_REF handling.
17088 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
17089 Use mem_ref_offset. Remove bogus folding.
17090 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
17091 (make_fancy_name_1): Add support for MEM_REF.
17092 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
17093 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
17094 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
17095 (compute_complex_ancestor_jump_func): Likewise.
17096 (ipa_analyze_virtual_call_uses): Likewise.
17097 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
17098 INDIRECT_REF folding with more generalized MEM_REF folding.
17099 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
17100 (forward_propagate_addr_into_variable_array_index): Also handle
17101 &ARRAY + I in addition to &ARRAY[0] + I.
17102 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
17103 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
17104 creates assignments with overlap.
17105 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
17106 (get_frame_field): Likewise.
17107 (get_nonlocal_debug_decl): Likewise.
17108 (convert_nonlocal_reference_op): Likewise.
17109 (struct nesting_info): Add mem_refs pointer-set.
17110 (create_nesting_tree): Allocate it.
17111 (convert_local_reference_op): Insert to be folded mem-refs.
17112 (fold_mem_refs): New function.
17113 (finalize_nesting_tree_1): Perform defered folding of mem-refs
17114 (free_nesting_tree): Free the pointer-set.
17115 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
17116 (vectorizable_load): Likewise.
17117 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
17118 (propagate_with_phi): Likewise.
17119 * tree-object-size.c (addr_object_size): Handle MEM_REFs
17120 instead of INDIRECT_REFs.
17121 (compute_object_offset): Handle MEM_REF.
17122 (plus_stmt_object_size): Handle MEM_REF.
17123 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
17124 for &MEM_REF.
17125 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
17126 (symbol_marked_for_renaming): Likewise.
17127 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
17128 (fold-const.o): Add $(TREE_FLOW_H).
17129 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
17130 (find_func_clobbers): Likewise.
17131 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
17132 (decompose_access): Likewise.
17133 (replace_field_acc): Likewise.
17134 (replace_field_access_stmt): Likewise.
17135 (insert_new_var_in_stmt): Likewise.
17136 (get_stmt_accesses): Likewise.
17137 (reorg_structs_drive): Disable.
17138 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
17139 (ix86_canonical_va_list_type): Likewise.
17140
17141 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
17142
17143 PR other/44566
17144 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
17145 * target.def (struct gcc_target): Replace enum reg_class with
17146 reg_class_t in hook argument / return types.
17147 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
17148 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
17149 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
17150 * targhooks.h (default_branch_target_register_class): Likewise.
17151 (default_ira_cover_classes, default_secondary_reload): Likewise.
17152 (default_memory_move_cost, default_register_move_cost): Likewise.
17153 * targhooks.c (default_branch_target_register_class): Likewise.
17154 (default_ira_cover_classes, default_secondary_reload): Likewise.
17155 (default_memory_move_cost, default_register_move_cost): Likewise.
17156 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
17157 * bt-load.c (branch_target_load_optimize): Likewise.
17158 * ira.c (setup_cover_and_important_classes): Likewise.
17159 * ira-costs.c (copy_cost): Likewise.
17160 * reload1.c (emit_input_reload_insns): Likewise.
17161 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
17162 * config/frv/frv.c (frv_secondary_reload): Likewise.
17163 * config/s390/s390.c (s390_secondary_reload): Likewise.
17164 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
17165 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
17166 (ix86_register_move_cost): Likewise.
17167 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
17168 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
17169 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
17170 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
17171 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
17172 (rs6000_ira_cover_classes): Likewise.
17173 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
17174 * config/picochip/picochip-protos.h (picochip_secondary_reload):
17175 Likewise.
17176 * config/pa/pa.c (pa_secondary_reload): Likewise.
17177 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
17178 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
17179 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
17180 * doc/tm.texi: Regenerate.
17181
17182 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
17183
17184 PR bootstrrap/44726
17185 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
17186 use.
17187 (build_alias_set_optimal_p): Likewise.
17188 (build_base_obj_set_for_drs): Likewise.
17189
17190 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
17191
17192 * target.def: Remove comment about licensing problems of function
17193 declarations.
17194
17195 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
17196 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
17197 * doc/tm.texi: Regenerate.
17198
17199 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
17200 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
17201
17202 * target.def (enum_va_list_p): Use DEFHOOK.
17203 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
17204 Rename ptype to ptree.
17205 * doc/tm.texi: Regenerate.
17206
17207 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
17208 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
17209 * doc/tm.texi: Regenerate.
17210
17211 * target.def (memory_move_cost): Use DEFHOOK.
17212 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
17213 Rename regclass AKA class to rclass.
17214 * doc/tm.texi: Regenerate.
17215
17216 * target.def (pragma_parse): Use DEFHOOK.
17217 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
17218 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
17219 * doc/tm.texi: Regenerate.
17220
17221 * target.def (pass_by_reference): Use DEFHOOK.
17222 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
17223 * doc/tm.texi: Regenerate.
17224
17225 * target.def (resolve_overloaded_builtin): Rename params to arglist.
17226 Use DEFHOOK.
17227 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
17228 * doc/tm.texi: Regenerate.
17229
17230 * target.def (return_pops_args): Use DEFHOOK.
17231 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
17232 Rename stack-size to size.
17233 * doc/tm.texi: Regenerate.
17234
17235 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
17236 last-sched_cycle to last_clock, cur_cycle to clock.
17237 * doc/tm.texi.in: Use @hook.
17238 * doc/tm.texi: Regenerate.
17239
17240 * target.def (print_operand, print_operand_address): Update comment.
17241 (print_operand_punct_valid_p): Likewise.
17242
17243 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
17244
17245 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
17246 to rtl.h.
17247 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
17248 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
17249 * rtl-error.h: New.
17250 * regrename.c: Do not include toplev.h. Include rtl-error.h.
17251 * rtl-error.c: Likewise.
17252 * reload.c: Likewise.
17253 * recog.c: Likewise.
17254 * sel-sched.c: Likewise.
17255 * function.c: Likewise.
17256 * reg-stack.c: Likewise.
17257 * cfgrtl.c: Likewise.
17258 * reload1.c: Likewise.
17259 * final.c: Include rtl-error.
17260 * Makefile.in: Adjust dependencies.
17261
17262 2010-06-30 Jan Hubicka <jh@suse.cz>
17263
17264 PR middle-end/PR44706
17265 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
17266 to return the value.
17267
17268 2010-06-30 Michael Matz <matz@suse.de>
17269
17270 PR bootstrap/44699
17271 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
17272 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
17273 a gimple reg, attach the original VDEF to the last store in the
17274 sequence.
17275
17276 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
17277
17278 PR other/44034
17279 * config/darwin.c (darwin_override_options): Use renamed
17280 targetm.asm_out.emit_unwind_label.
17281
17282 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
17283
17284 PR tree-optimization/39799
17285 * tree-inline.c (remap_ssa_name): Initialize variable only if
17286 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
17287
17288 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
17289
17290 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
17291
17292 2010-06-30 Richard Guenther <rguenther@suse.de>
17293
17294 PR target/44722
17295 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
17296 against oscillation with reverse peephole2.
17297
17298 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
17299
17300 PR target/44721
17301 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
17302 Fix last commit.
17303
17304 2010-06-30 Nick Clifton <nickc@redhat.com>
17305
17306 * config/rx/rx-modes.def: New file.
17307 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
17308 (CC_REGNUM): Define.
17309 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
17310 register.
17311 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
17312 (SELECT_CC_MODE): Define.
17313 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
17314 (reg:CC CC_REG) instead of (cc0).
17315 (attr "cc"): Delete.
17316 (cbranchsi4): Do not split compare and branch here. Instead move
17317 it to...
17318 (cbranchsi4_<code>): ... here. New patterns.
17319 (cmpsi): Call rx-compare_redundant to find out if it is necessary
17320 to emit the compare instruction.
17321 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
17322 cc_status flags.
17323 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
17324 FIRST_PSEUDO_REGNUM.
17325 (rx_expand_prologue, rx_expand_epilogue): Likewise.
17326 (rx_notice_update_cc): Delete.
17327 (rx_cc_modes_compatible): New function.
17328 (flags_needed_for_conditional): New function.
17329 (flags_from_mode): New function.
17330 (rx_compare_redundant): New function - scans backwards through
17331 insn list to find out if condition flags are already set correctly.
17332 (TARGET_CC_MODES_COMPATIBLE): Define.
17333 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
17334
17335 * config/rx/rx.h (BRANCH_COST): Define.
17336 (REGISTER_MOVE_COST): Define.
17337 * config/rx/predicates (rx_source_operand): Allow all constant types.
17338 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
17339 (tstsi4): New pattern.
17340 * config/rx/rx.c (rx_memory_move_cost): Define.
17341 (TARGET_MEMORY_MOVE_COST): Define.
17342
17343 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
17344
17345 * tree.h (block_may_fallthru): Declare here.
17346 * tree-flow.h (block_may_fallthru): Do not declare here.
17347 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
17348 bitmap.h
17349 * Makefile.in (c-typeck.o): Update dependencies.
17350
17351 2010-06-30 Jakub Jelinek <jakub@redhat.com>
17352
17353 PR debug/44694
17354 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
17355 * cselib.c (cfa_base_preserved_regno): New static variable.
17356 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
17357 of REGNO (cfa_base_preserved_val->locs->loc).
17358 (cselib_preserve_cfa_base_value): Add regno argument, set
17359 cfa_base_preserved_regno to it.
17360 (cselib_invalidate_regno): Allow removal of registers other than
17361 cfa_base_preserved_regno from cfa_base_preserved_val.
17362 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
17363 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
17364 of MEM addresses, if not on LHS.
17365 (reverse_op): Don't add reverse ops for cfa_base_rtx.
17366 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
17367
17368 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
17369
17370 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
17371 static variables.
17372 (peep2_buf_position): New static function.
17373 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
17374 peephole2_optimize): Use it.
17375 (peep2_attempt, peep2_update_life): New static functions, broken out
17376 of peephole2_optimize.
17377 (peep2_fill_buffer): New static function.
17378 (peephole2_optimize): Change the main loop to try to fill the buffer
17379 with the maximum number of insns before matching them against
17380 peepholes. Use a forward scan. Remove special case for targets with
17381 conditional execution.
17382 * genrecog.c (change_state): Delete dead code.
17383 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
17384 Rewrite so as not to expect the second insn to have had a peephole
17385 applied yet.
17386
17387 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
17388
17389 * genhooks.c (emit_findices): Cast field precision to int.
17390 (emit_documentation): Likewise.
17391
17392 2010-06-29 Jakub Jelinek <jakub@redhat.com>
17393
17394 PR tree-optimization/43801
17395 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
17396 if old_decl was DECL_ONE_ONLY.
17397
17398 PR debug/44668
17399 * dwarf2out.c (add_accessibility_attribute): New function.
17400 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
17401 instead of adding DW_AT_accessibility manually.
17402 (gen_enumeration_type_die, gen_struct_or_union_type_die,
17403 gen_typedef_die): Use it.
17404
17405 2010-06-29 Douglas B Rupp <rupp@gnat.com>
17406
17407 * vmsdbgout.c (full_name): Just output the file name if not native.
17408
17409 2010-06-29 Douglas B Rupp <rupp@gnat.com>
17410
17411 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
17412 (funcnam_table): New static table.
17413 (funcnum_table): New static table.
17414 (write_rtnbeg): Write value saved in funcnum_table.
17415 (write_rtnend): Write value saved in funcnum_table.
17416 (vmsdbgout_begin_function): Save current function info in
17417 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
17418 (vmsdbgout_finish): Iterate over funcnum_table.
17419
17420 2010-06-29 Douglas B Rupp <rupp@gnat.com>
17421
17422 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
17423 (vmsdbgout_type_decl): Declare
17424 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
17425 (FUNC_EPILOGUE_LABEL): New macro
17426 (vmsdbgout_begin_epilogue): New function.
17427 (vmsdbgout_type_decl): New function.
17428
17429 2010-06-29 Douglas B Rupp <rupp@gnat.com>
17430
17431 * vmsdbg.h: Update copyright.
17432
17433 2010-06-29 Douglas B Rupp <rupp@gnat.com>
17434
17435 * vmsdbg.h (DST_K_TBG): New DST constant.
17436 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
17437 (write_modbeg): Cast module_language to avoid warning.
17438 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
17439
17440 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
17441
17442 PR other/44034
17443 * target.def, doc/tm.texi.in, genhooks.c: New files.
17444 * target.h: Instead of defining individual hook members,
17445 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
17446 include target.def.
17447 * target-def.h: Instead of defining individual hook initializers,
17448 include target-hooks-def.h.
17449 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
17450 targetm.live_on_entry -> targetm.extra_live_on_entry
17451 targetm.sched.md_finish ->targetm.sched.finish
17452 targetm.sched.md_init -> targetm.sched.init
17453 targetm.sched.md_init_global -> targetm.sched.init_global
17454 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
17455 targetm.asm_out.except_table_label ->
17456 targetm.asm_out.emit_except_table_label
17457 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
17458 targetm.target_help -> targetm.help
17459 targetm.vectorize.builtin_support_vector_misalignment ->
17460 targetm.vectorize.support_vector_misalignment
17461 targetm.file_start_app_off -> targetm.asm_file_start_app_off
17462 targetm.file_start_file_directive ->
17463 targetm.asm_file_start_file_directive
17464 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
17465 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
17466 * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
17467 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
17468 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
17469 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
17470 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
17471 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
17472 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
17473 * Makefile.in (TARGET_H): Depend on target.def.
17474 (TARGET_DEF_H): Depend on target-hooks-def.h.
17475 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
17476 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
17477 * doc/tm.texi: Regenerate.
17478
17479 * Makefile.in (s-tm-texi): Remove stray tab / rule.
17480
17481 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
17482 (targetm.sched.init): Likewise.
17483
17484 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
17485
17486 PR bootstrap/44713
17487 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
17488 (function_arg_advance_32): Const-ify TYPE parameter.
17489 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
17490 (ix86_function_arg_advance): Change type of NAMED to bool.
17491 (function_arg_32): Const-ify CUM and TYPE parameters.
17492 (function_arg_64): Likewise. Change type of NAMED to bool.
17493 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
17494 to bool.
17495 (ix86_function_arg): Change type of NAMED to bool.
17496 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
17497 last argument as a bool.
17498
17499 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
17500
17501 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
17502 (OVERRIDE_OPTIONS): Add note of obsolescence.
17503 Replace references with references to TARGET_OPTION_OVERRIDE.
17504 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
17505 the macro).
17506 * targhooks.c (default_target_option_override): New function.
17507 * targhooks.h (default_target_option_override): Declare.
17508 * target.h (struct gcc_target): Add override member to
17509 target_option member.
17510 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
17511 targetm.target_option.override call.
17512 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
17513 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
17514
17515 2010-06-29 Jan Hubicka <jh@suse.cz>
17516
17517 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
17518
17519 2010-06-29 Jan Hubicka <jh@suse.cz>
17520
17521 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
17522 unreachable.
17523 (rebuild_frequencies): New function.
17524 * predict.h (rebuild_frequencies): Declare.
17525 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
17526 entry block and edge reaching new_entry.
17527 (tree_function_versioning): When doing partial cloning, rebuild
17528 frequencies when done.
17529 * passes.c (execute_function_todo): Use rebild_frequencies.
17530
17531 2010-06-29 Richard Guenther <rguenther@suse.de>
17532
17533 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
17534 * tree-flow.h (enum noalias_state): Remove.
17535 (struct var_ann_d): Remove noalias_state member.
17536
17537 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
17538
17539 PR target/43902
17540 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
17541 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
17542 (maddhidi4): Likewise.
17543
17544 Revert parts of the change for PR25130.
17545 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
17546 MEM_ALIAS_SET.
17547
17548 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
17549
17550 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
17551 targetm.calls.function_incoming_arg, and
17552 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
17553 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
17554 * target.h (struct gcc_target): Add function_arg_advance,
17555 function_arg, and function_incoming_arg fields.
17556 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
17557 (TARGET_FUNCTION_INCOMING_ARG): Define.
17558 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
17559 and TARGET_FUNCTION_INCOMING_ARG.
17560 * targhooks.h (default_function_arg_advance): Declare.
17561 (default_function_arg, default_function_incoming_arg): Declare.
17562 * targhooks.c (default_function_arg_advance): New function.
17563 (default_function_arg, default_function_incoming_arg): New function.
17564 * config/i386/i386.c (function_arg_advance): Rename to...
17565 (ix86_function_arg_advance): ...this. Make static.
17566 (function_arg): Rename to...
17567 (ix86_function_arg): ...this. Make static.
17568 (TARGET_FUNCTION_ARG_ADVANCE): Define.
17569 (TARGET_FUNCTION_ARG): Define.
17570 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
17571 (FUNCTION_ARG): Delete.
17572 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
17573 (function_arg): Delete prototype.
17574
17575 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
17576
17577 * reginfo.c (init_reg_sets_1): Adjust comments.
17578 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
17579 * calls.c (prepare_call_address): Likewise.
17580 (emit_call_1): Use targetm.calls.return_pops_args.
17581 (expand_call): Likewise.
17582 * function.c (assign_parms): Likewise.
17583 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
17584 * target.h (struct gcc_target) [struct calls]: Add
17585 return_pops_args field.
17586 * targhooks.h (default_return_pops_args): Declare.
17587 * targhooks.c (default_return_pops_args): Define.
17588 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
17589 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
17590 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
17591 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
17592 documentation.
17593 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
17594 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
17595 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
17596 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
17597 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
17598 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
17599 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
17600 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
17601 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
17602 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
17603 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
17604 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
17605 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
17606 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
17607 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
17608 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
17609 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
17610 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
17611 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
17612 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
17613 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
17614 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
17615 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
17616 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
17617 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
17618 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
17619 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
17620 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
17621 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
17622 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
17623 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
17624 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
17625 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
17626 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
17627 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
17628 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
17629 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
17630 * config/i386/i386.c (ix86_return_pops_args): Make static.
17631 Constify arguments.
17632 (TARGET_RETURN_POPS_ARGS): Define.
17633 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
17634 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
17635 (TARGET_RETURN_POPS_ARGS): Define.
17636 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
17637 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
17638 (TARGET_RETURN_POPS_ARGS): Define.
17639
17640 2010-06-29 Richard Guenther <rguenther@suse.de>
17641
17642 PR middle-end/44667
17643 * tree-inline.c (initialize_inlined_parameters): Make sure
17644 to remap the inlined parameter variable substitutions types.
17645
17646 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
17647
17648 PR rtl-optimization/44659
17649 * combine.c (make_compound_operation) <SUBREG>: Do not return the
17650 result of force_to_mode if it partially re-expanded the compound.
17651
17652 2010-06-28 Jan Hubicka <jh@suse.cz>
17653
17654 PR middle-end/44671
17655 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
17656 RESULT_DECL.
17657
17658 2010-06-28 Anatoly Sokolov <aesok@post.ru>
17659
17660 * double-int.h (force_fit_type_double): Remove declaration.
17661 * double-int.c (force_fit_type_double): Move to tree.c.
17662 * tree.h (force_fit_type_double): Declare.
17663 * tree.h (force_fit_type_double): Moved from double-int.c. Use
17664 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
17665 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
17666 * convert.c (convert_to_pointer): Adjust call to
17667 force_fit_type_double.
17668 * tree-vrp.c (extract_range_from_assert,
17669 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
17670 * fold-const.c: Update comment.
17671 (int_const_binop, fold_convert_const_int_from_int,
17672 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
17673 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
17674 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
17675 round_up_loc): Adjust call to force_fit_type_double.
17676
17677 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17678
17679 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
17680
17681 2010-06-28 Martin Jambor <mjambor@suse.cz>
17682
17683 * tree-sra.c (convert_callers): New parameter, change fndecls of
17684 recursive calls.
17685 (modify_function): Pass the old decl to convert_callers.
17686
17687 2010-06-28 Martin Jambor <mjambor@suse.cz>
17688
17689 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
17690 ipa_check_create_node_params and ipa_initialize_node_params with
17691 checking asserts they are not necessary.
17692
17693 2010-06-28 Jan Hubicka <jh@suse.cz>
17694
17695 PR tree-optimization/44687
17696 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
17697
17698 2010-06-28 Martin Jambor <mjambor@suse.cz>
17699
17700 PR c++/44535
17701 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
17702 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
17703 instead of BINFO_BASE_BINFO.
17704
17705 2010-06-28 Michael Matz <matz@suse.de>
17706
17707 PR middle-end/44592
17708 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
17709 proper VDEF chain for intermediate stores in the sequence.
17710
17711 2010-06-28 Jan Hubicka <jh@suse.cz>
17712
17713 PR tree-optimization/44357
17714 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
17715 uninlinable functions.
17716
17717 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17718
17719 * config.gcc (powerpc*-*-*): Handle titan.
17720 * config/rs6000/rs6000.c (titan_cost): New costs.
17721 (rs6000_override_options): Add "titan" to processor_target_table.
17722 Add Titan to branch alignment logic.
17723 Correctly set rs6000_cost for titan.
17724 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
17725 * config/rs6000/titan.md: New file.
17726 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
17727
17728 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
17729
17730 * tree-browser.c (TB_history_stack): Convert to a VEC.
17731 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
17732 (TB_history_prev): Likewise.
17733
17734 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
17735
17736 * vec.h (vec_heap_free): Add parentheses around free.
17737
17738 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
17739
17740 * system.h: Poison GCC_EXCEPT_H for front-end files.
17741
17742 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
17743 langhook.
17744 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
17745 Define to NULL by default.
17746 * except.h: Define GCC_EXCEPT_H.
17747 (doing_eh): Remove prototype.
17748 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
17749 (lang_protect_cleanup_actions): Remove.
17750 * except.c (lang_protect_cleanup_actions): Remove.
17751 (doing_eh): Remove.
17752 (gen_eh_region): Don't check doing_eh here.
17753 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
17754 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
17755 instead of lang_protect_cleanup_actions.
17756 * omp-low.c (maybe_catch_exception): Likewise.
17757 * Makefile.in: Update dependencies.
17758
17759 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
17760
17761 * cgraph.h (struct varpool_node): new used_from_object_file flag.
17762 (struct cgraph_local_info): new used_from_object_file flag.
17763 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
17764 (cgraph_clone_node): initialize used_from_object_file.
17765 (cgraph_create_virtual_clone): initialize used_from_object_file.
17766 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
17767 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
17768 when compiling with -fwhole-program.
17769 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
17770 internal resolver.
17771 * ipa.c (function_and_variable_visibility): Set externally_visible
17772 flag of varpool_node if used_from_object_file flag is set.
17773 (cgraph_externally_visible_p): check used_from_object_file flag.
17774 * doc/invoke.texi (-fwhole-program option): Change description of
17775 externally_visible attribute accordingly.
17776 * doc/extend.texi (externally_visible): Ditto.
17777
17778 2010-06-27 Jan Hubicka <jh@suse.cz>
17779
17780 * params.def (max-inline-insns-auto): Default to 40.
17781 * doc/invoke.texi (max-inline-insns-auto): Document the change.
17782
17783 2010-06-27 Jan Hubicka <jh@suse.cz>
17784
17785 PR middle-end/44671
17786 PR middle-end/44686
17787 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
17788 signature change.
17789 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
17790 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
17791
17792 2010-06-27 Anatoly Sokolov <aesok@post.ru>
17793
17794 * target.h (struct gcc_target): Add register_move_cost field.
17795 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
17796 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
17797 * targhooks.c (default_register_move_cost): New function.
17798 * targhooks.h (default_register_move_cost): Declare function.
17799 * defaults.h (REGISTER_MOVE_COST): Delete.
17800 * ira-int.h (ira_register_move_cost): Update comment.
17801 * ira.c (ira_register_move_cost): Update comment.
17802 * reload.h (register_move_cost): Declare.
17803 * reginfo.c (register_move_cost): New function.
17804 (move_cost): Update comment.
17805 (init_move_cost, memory_move_secondary_cost): Replace
17806 REGISTER_MOVE_COST with register_move_cost.
17807 * postreload.c (reload_cse_simplify_set): (Ditto.).
17808 * reload.c (find_valid_class, find_reloads): (Ditto.).
17809 * reload1.c (choose_reload_regs): (Ditto.).
17810 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
17811 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
17812 * doc/md.texi (can_create_pseudo_p): Update documentation.
17813
17814 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
17815 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
17816 * config/i386/i386.h (ix86_memory_move_cost): Make static.
17817 (TARGET_MEMORY_MOVE_COST): Define.
17818
17819 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
17820 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
17821 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
17822 (TARGET_MEMORY_MOVE_COST): Define.
17823
17824 2010-06-27 Richard Guenther <rguenther@suse.de>
17825
17826 PR tree-optimization/44683
17827 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
17828 false edge from the inverted condition.
17829
17830 2010-06-27 Richard Guenther <rguenther@suse.de>
17831
17832 PR middle-end/44684
17833 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
17834 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
17835 for register LHS. Or non-store assignments.
17836
17837 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
17838
17839 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
17840 (sparc_emit_set_const64): Likewise. Remove disabled code.
17841 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
17842 (sparc_emit_set_const64): Likewise.
17843
17844 2010-06-26 Catherine Moore <clm@codesourcery.com>
17845
17846 * config/mips/mips.md (alu_type): New attribute.
17847 (type): Infer type from alu_type.
17848 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
17849 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
17850 *subsi3_extended, negsi2, negdi2, *low<mode>,
17851 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
17852 xor<mode>3, *nor<mode>3,
17853 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
17854 *zero_extendhi_truncqi): Set alu_type instead of type.
17855
17856 2010-06-26 Douglas B Rupp <rupp@gnat.com>
17857
17858 * config/alpha/alpha.c (alpha_need_linkage): Adjust
17859 splay_tree_new_ggc call.
17860 (alpha_use_linkage): Likewise.
17861
17862 2010-06-26 Joseph Myers <joseph@codesourcery.com>
17863
17864 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
17865 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
17866 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
17867 (static_specs): Remove switches_need_spaces.
17868 (process_command, do_self_spec): Hardcode handling "-o" instead of
17869 checking switches_need_spaces.
17870 * system.h (SWITCHES_NEED_SPACES): Poison.
17871
17872 2010-06-26 Richard Guenther <rguenther@suse.de>
17873
17874 PR tree-optimization/44393
17875 * tree-loop-distribution.c (generate_loops_for_partition): Fix
17876 stmt removal and VOP renaming.
17877 (generate_memset_zero): Remove redundant stmt updating.
17878 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
17879 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
17880
17881 2010-06-26 Jan Hubicka <jh@suse.cz>
17882
17883 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
17884 edges comming from header are equivalent.
17885 (visit_bb): Handle PHIs correctly.
17886 * tree-inline.c (copy_phis_for_bb): Be able to copy
17887 PHI from entry edge.
17888 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
17889
17890 2010-06-26 Richard Guenther <rguenther@suse.de>
17891
17892 PR middle-end/44674
17893 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
17894 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
17895
17896 2010-06-26 Joseph Myers <joseph@codesourcery.com>
17897
17898 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
17899 add_infile, alloc_switch): New.
17900 (process_command): Remove variable lang_n_infiles. Process
17901 options in a single pass. Use new functions for allocating
17902 infiles and switches arrays. Properly skip operands of
17903 -Xpreprocessor and -Xassembler.
17904
17905 2010-06-26 Jan Hubicka <jh@suse.cz>
17906
17907 PR middle-end/44671
17908 * cgraphunit.c (cgraph_function_versioning): Remove wrong
17909 cgraph_make_decl_local call; fix typo copying RTL data.
17910
17911 2010-06-25 DJ Delorie <dj@redhat.com>
17912
17913 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
17914 (m32c_output_aligned_common): Likewise.
17915 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
17916 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
17917 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
17918 (m32c_register_pragmas): Register it.
17919 * config/m32c/m32c.c (m32c_get_pragma_address): New.
17920 (m32c_insert_attributes): Set #pragma address decls volatile.
17921 (pragma_entry_eq): New.
17922 (pragma_entry_hash): New.
17923 (m32c_note_pragma_address): New.
17924 (m32c_get_pragma_address): New.
17925 (m32c_output_aligned_common): New.
17926 * doc/extend.texi: Document the new pragma.
17927
17928 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
17929 also.
17930 * config/m32c/predicates.md (m32c_any_operand): Check the code
17931 instead of memory_operand so as to allow matching volatile MEMs.
17932 (m32c_nonimmediate_operand): Likewise.
17933 (mra_operand): Allow volatiles.
17934
17935 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
17936
17937 PR debug/44610
17938 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
17939 address if the offset is unknown.
17940
17941 2010-06-25 Douglas B Rupp <rupp@gnat.com>
17942
17943 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
17944 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
17945 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
17946 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
17947 to ia64_start_function. Invoke it.
17948 * config/ia64/ia64.c (ia64_start_function): Call new function
17949 dwarf2out_vms_debug_main_pointer.
17950
17951 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
17952
17953 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
17954 statements computing the true predicate.
17955
17956 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
17957
17958 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
17959 to boolean_true_node.
17960 (reset_bb_predicate): New.
17961 (predicate_bbs): Call reset_bb_predicate.
17962
17963 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
17964
17965 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
17966 (tree_if_conversion): Returns true when something has been changed.
17967 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
17968 changed something.
17969
17970 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
17971
17972 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
17973 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
17974 * tree-if-conv.c: Include dbgcnt.h.
17975 (tree_if_conversion): Use if_conversion_tree to count the number of
17976 if-convertible loops.
17977
17978 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
17979
17980 * common.opt (fprefetch-loop-arrays): Re-define
17981 -fprefetch-loop-arrays as a tri-state option with the initial
17982 value of -1.
17983 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
17984 pass only when flag_prefetch_loop_arrays > 0.
17985 * toplev.c (process_options): Note that, with tri-states,
17986 flag_prefetch_loop_arrays>0 means prefetching is enabled.
17987 * config/i386/i386.c (override_options): Enable prefetching at -O3
17988 for a set of CPUs that sw prefetching is helpful.
17989 (software_prefetching_beneficial_p): New. Return TRUE if software
17990 prefetching is beneficial for the given CPU.
17991
17992 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
17993
17994 PR rtl-optimization/44326
17995 * implicit-zee.c (find_removable_zero_extends): Replace
17996 INSN_P with NONDEBUG_INSN_P.
17997
17998 2010-06-25 Martin Jambor <mjambor@suse.cz>
17999
18000 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
18001 (struct ipa_node_params): Removed the modification_analysis_done flag.
18002 (ipa_is_param_modified): Removed.
18003 (ipa_analyze_node): Declare.
18004 (ipa_compute_jump_functions): Remove declaration.
18005 (ipa_count_arguments): Likewise.
18006 (ipa_detect_param_modifications): Likewise.
18007 (ipa_analyze_params_uses): Likewise.
18008 * ipa-prop.c (struct param_analysis_info): New type.
18009 (visit_store_addr_for_mod_analysis): Removed.
18010 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
18011 moved down in the file.
18012 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
18013 (ipa_count_arguments): Made static.
18014 (mark_modified): New function.
18015 (is_parm_modified_before_call): New function.
18016 (compute_pass_through_member_ptrs): New parameter parms_info, call
18017 is_parm_modified_before_call instead of ipa_is_param_modified.
18018 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
18019 it to compute_pass_through_member_ptrs.
18020 (ipa_compute_jump_functions): New parameter parms_info, pass it to
18021 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
18022 on the callee if it is analyzed. Made static.
18023 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
18024 is_parm_modified_before_call instead of ipa_is_param_modified.
18025 (ipa_analyze_call_uses): New parameter parms_info, pass it to
18026 ipa_analyze_indirect_call_uses.
18027 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
18028 ipa_analyze_call_uses.
18029 (ipa_analyze_params_uses): New parameter parms_info, pass it to
18030 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
18031 (ipa_analyze_node): New function.
18032 (ipa_print_node_params): Do not dump the modified flag.
18033 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
18034 it. Do not stream the modified parameter flag.
18035 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
18036 it. Do not stream the modified parameter flag.
18037 * ipa-cp.c (ipcp_analyze_node): Removed.
18038 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
18039 with only a call to ipa_analyze_node.
18040 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
18041 node with only a call to ipa_analyze_node.
18042
18043 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
18044
18045 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
18046
18047 2010-06-25 Jan Hubicka <jh@suse.cz>
18048
18049 * tree-pass.h (pass_split_functions): Declare.
18050 * opts.c (decode_options): Enable function splitting at -O2
18051 * timevar.def (TV_IPA_FNSPLIT): New macro.
18052 * ipa-split.c: New file.
18053 * common.opt (-fpartial-inlining): New flag.
18054 * Makefile.in (ipa-split.o): New object file.
18055 * passes.c (init_optimization_passes): Add ipa-split.
18056 * params.def (partial-inlining-entry-probability): New parameters.
18057 * doc/invoke.texi (-fpartial-inlining): New.
18058
18059 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
18060
18061 PR 44665
18062 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
18063 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
18064 (gimplify_expr): Likewise.
18065
18066 2010-06-25 Martin Jambor <mjambor@suse.cz>
18067
18068 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
18069 statements instead of bailing out on them.
18070 (ipa_analyze_indirect_call_uses): Do not require that loads from the
18071 parameter are in the same BB as the condition. Update comments.
18072
18073 2010-06-25 Jakub Jelinek <jakub@redhat.com>
18074
18075 PR middle-end/43866
18076 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
18077 true or always false, return NULL_TREE.
18078 (tree_unswitch_single_loop): Optimize conditions even when reaching
18079 max-unswitch-level parameter. If num > 0, optimize first all conditions
18080 using entry checks, then do still reachable block discovery and consider
18081 only conditions in still reachable basic blocks in the loop.
18082
18083 PR tree-optimization/44539
18084 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
18085 the call doesn't have LHS, but has VDEF.
18086
18087 2010-06-25 Joseph Myers <joseph@codesourcery.com>
18088
18089 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
18090 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
18091 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
18092 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
18093 * system.h (MODIFY_TARGET_NAME): Poison.
18094
18095 2010-06-25 Alan Modra <amodra@gmail.com>
18096
18097 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
18098 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
18099 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
18100 CMODEL_LARGE as default.
18101 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
18102 (offsettable_ok_by_alignment): Delete.
18103 (rs6000_emit_move): Remove mcmodel=medium optimization.
18104
18105 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
18106
18107 With large parts from Jim Wilson:
18108 PR target/43902
18109 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
18110 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
18111 * optabs.c (optab_for_tree_code): Likewise.
18112 (expand_widen_pattern_expr): Likewise.
18113 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
18114 out of execute_optimize_widening_mul.
18115 (convert_plusminus_to_widen): New function.
18116 (execute_optimize_widening_mul): Use the two new functions.
18117 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
18118 Remove code to generate widening multiply-accumulate. Add support
18119 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
18120 * gimple-pretty-print.c (dump_ternary_rhs): New function.
18121 (dump_gimple_assign): Call it when appropriate.
18122 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
18123 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
18124 (expand_gimple_stmt_1): Likewise.
18125 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
18126 WIDEN_MULT_MINUS_EXPR.
18127 * tree-ssa-operands.c (get_expr_operands): Likewise.
18128 * tree-inline.c (estimate_operator_cost): Likewise.
18129 * gimple.c (extract_ops_from_tree_1): Renamed from
18130 extract_ops_from_tree. Add new arg for a third operand; fill it.
18131 (gimple_build_assign_stat): Support operations with three operands.
18132 (gimple_build_assign_with_ops_stat): Likewise.
18133 (gimple_assign_set_rhs_from_tree): Likewise.
18134 (gimple_assign_set_rhs_with_ops_1): Renamed from
18135 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
18136 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
18137 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
18138 WIDEN_MULT_MINUS_EXPR.
18139 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
18140 (extract_ops_from_tree_1): Adjust declaration.
18141 (gimple_assign_set_rhs_with_ops_1): Likewise.
18142 (gimple_build_assign_with_ops): Pass NULL for last operand.
18143 (gimple_build_assign_with_ops3): New macro.
18144 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
18145 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
18146 functions.
18147 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
18148 (verify_gimple_assign): Call it.
18149 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
18150 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
18151 functions for dealing with three-operand statements.
18152 * tree.c (commutative_ternary_tree_code): New function.
18153 * tree.h (commutative_ternary_tree_code): Declare it.
18154 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
18155 ternary statements.
18156 (gimple_assign_nonzero_warnv_p): Likewise.
18157 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
18158 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
18159 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
18160 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
18161 (struct hashtable_expr): New member ternary in the union.
18162 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
18163 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
18164 (iterative_hash_hashable_expr): Likewise.
18165 (print_expr_hash_elt): Handle EXPR_TERNARY.
18166 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
18167 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
18168 statements. Handle GIMPLE_TERNARY_RHS.
18169
18170 2010-06-25 Jan Hubicka <jh@suse.cz>
18171
18172 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
18173
18174 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
18175
18176 PR c/44517
18177 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
18178 parameters are not good.
18179 (c_parser_parameter_declaration): Error unknown type name if the type
18180 name can't start declaration specifiers.
18181
18182 2010-06-25 Joseph Myers <joseph@codesourcery.com>
18183
18184 * gcc.c (translate_options): Don't mention +e in comment.
18185 (process_command): Don't handle +e specially.
18186
18187 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
18188
18189 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
18190
18191 * ira-build.c (merge_hard_reg_conflicts): New function.
18192 (create_cap_allocno, copy_info_to_removed_store_destinations,
18193 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
18194 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
18195 (remove_unnecessary_allocnos, remove_low_level_allocnos)
18196 copy_nifo_to_removed_store_destination): Use them.
18197 * ira-lives.c (make_hard_regno_born): New function, split out of
18198 make_regno_born.
18199 (make_allocno_born): Likewise.
18200 (make_hard_regno_dead): New function, split out of make_regno_dead.
18201 (make_allocno_dead): Likewise.
18202 (inc_register_pressure): New function, split out of set_allocno_live.
18203 (dec_register_pressure): New function, split out of clear_allocno_live.
18204 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
18205 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
18206 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
18207 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
18208 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
18209 mark_pseudo_regno_live.
18210 (process_bb_node_lives): Use mark_pseudo_regno_live,
18211 make_hard_regno_born and make_allocno_dead.
18212 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
18213 set_allocno_live, clear_allocno_live): Delete functions.
18214
18215 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
18216 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
18217 functions.
18218 (ira_flattening): Use ira_parent_allocno.
18219 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
18220 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
18221
18222 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
18223 statement.
18224
18225 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
18226 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
18227 minmax_set_iter_cond, minmax_set_iter_next,
18228 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
18229 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
18230 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
18231 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
18232 uses changed.
18233
18234 * ira-int.h (struct live_range, live_range_t): Renamed from struct
18235 ira_allocno_live_range and allocno_live_range_t; all uses changed.
18236 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
18237 All uses changed.
18238
18239 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
18240
18241 * thumb2.md (thumb2_tlobits_cbranch): Delete.
18242 (peephole2 to convert zero_extract/compare of single bit to
18243 lshift/compare): New.
18244
18245 2010-06-24 Anatoly Sokolov <aesok@post.ru>
18246
18247 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
18248 recursive call and call to 'int_const_binop'.
18249 (build_range_check, fold_cond_expr_with_comparison, unextend,
18250 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
18251 multiple_of_p): Adjust call to const_binop.
18252
18253 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
18254
18255 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
18256 determine size of XFmode operand.
18257 (XFmode extended DFmode push splitter): Ditto.
18258 (XFmode extended SFmode push splitter): Ditto.
18259
18260 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
18261
18262 PR target/44588
18263 * config/i386/i386.md (extract_code): New.
18264 (<u>divmodqi4): Likewise.
18265 (divmodhiqi3): Likewise.
18266 (udivmodhiqi3): Likewise.
18267 (<u>divqi3): Remvoved.
18268
18269 2010-06-24 Jakub Jelinek <jakub@redhat.com>
18270
18271 PR middle-end/44492
18272 * recog.h (struct recog_data): Add is_asm field.
18273 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
18274 present in constraints of inline-asm operand and memory operand
18275 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
18276 (extract_insn): Initialize recog_data.is_asm.
18277 * doc/md.texi (Constraints): Document operand side-effect rules.
18278
18279 2010-06-24 Andi Kleen <ak@linux.intel.com>
18280
18281 * c-parser.c (c_parser_conditional_expression): Call
18282 warn_for_omitted_condop.
18283 * doc/invoke.texi: Document omitted condop warning.
18284
18285 2010-06-24 Nick Clifton<nickc@redhat.com>
18286
18287 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
18288 insn in the sequence is a jump insn before setting its label.
18289
18290 2010-06-24 Alan Modra <amodra@gmail.com>
18291
18292 * collect2.c (main): Match exactly --version and --help.
18293
18294 2010-06-24 DJ Delorie <dj@redhat.com>
18295
18296 * config/m32c/m32c-pragma.c: Don't include rtl.h.
18297
18298 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
18299
18300 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
18301 using X87MODEF mode iterator.
18302 (pushsf splitter): Macroize splitter using P mode iterator.
18303 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
18304 mode iterator.
18305
18306 (*movxf_internal): Rename from *movxf_integer.
18307 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
18308 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
18309 (*movdf_internal): Rename from *movdf_integer.
18310 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
18311 (*movsf_internal): Rename from *movdf_1.
18312
18313 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
18314
18315 * coretypes.h (gimple_seq_node_d, gimple_seq_node)
18316 (const_gimple_seq_node): Removed typedefs.
18317
18318 * gimple.h (gimple_seq_node_d, gimple_seq_node)
18319 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
18320
18321 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
18322
18323 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
18324 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
18325 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
18326 and CODE_FOR_vec_extract_lo_v4df.
18327
18328 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
18329 Changed to define_insn_and_split.
18330 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
18331 (vec_extract_lo_v16hi): Likewise.
18332 (vec_extract_lo_v32qi): Likewise.
18333 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
18334 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
18335
18336 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
18337
18338 PR target/44640
18339 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
18340 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
18341 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
18342 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
18343 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
18344
18345 PR target/44640
18346 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
18347
18348 PR other/44644
18349 * df-core.c (struct df): Rename to df_d.
18350 * df.h (struct df): Likewise.
18351 * dse.h (struct df): Remove forward declaration.
18352 * recog.h (struct insn_data): Rename to:
18353 (struct_insn_data_d). Adjusted all users.
18354
18355 2010-06-23 Arnaud Charlet <charlet@adacore.com
18356
18357 PR ada/22220
18358 * doc/install.texi: Update requirements to build GNAT.
18359
18360 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
18361
18362 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
18363 enum type.
18364 (m68k_sched_attr_opx_type): Remove unreachable return.
18365 (m68k_sched_attr_opy_type): Likewise.
18366 (m68k_sched_attr_size): Likewise.
18367 (sched_get_opxy_mem_type): Likewise.
18368 (m68k_sched_attr_op_mem): Likewise.
18369
18370 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
18371
18372 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
18373 new statement and adjust VDEF only if necessary. Remove superfluous
18374 call to maybe_clean_or_replace_eh_stmt.
18375 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
18376 copy the flags.
18377 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
18378 * tree-inline.c (copy_bb): ...and not there.
18379
18380 2010-06-22 Cary Coutant <ccoutant@google.com>
18381
18382 * dwarf2out.c (is_nested_in_subprogram): New function.
18383 (should_move_die_to_comdat): Use it.
18384 (copy_ancestor_tree): Don't mark DIEs here.
18385 (copy_decls_walk): Start walk from root of newly-added tree;
18386 mark DIEs here instead.
18387
18388 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
18389
18390 * config/i386/i386.md (unit): Also check sseishft1.
18391
18392 2010-06-22 Jan Hubicka <jh@suse.cz>
18393
18394 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
18395 enabled.
18396
18397 2010-06-22 Jan Hubicka <jh@suse.cz>
18398
18399 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
18400 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
18401 Return true if something changed.
18402 * df.h (df_confluence_function_n): Return bool.
18403 * df-core.c (df_worklist_propagate_forward,
18404 df_worklist_propagate_backward): Track changes and ages.
18405 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
18406 track ages.
18407 * dse.c (dse_confluence_n): Return always true.
18408
18409 2010-06-22 Jan Hubicka <jh@suse.cz>
18410
18411 * bitmap.c (bitmap_clear_bit): Micro optimize.
18412
18413 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
18414
18415 * config/i386/i386.md (SWI1248x): New mode iterator.
18416 (SWI48x): Ditto.
18417 (SWI12): Ditto.
18418 (SWI24): Ditto.
18419
18420 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
18421 SWI1248x mode iterator.
18422 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
18423 using SWI124 mode iterator.
18424 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
18425 mode iterator.
18426 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
18427 *pushdi2_prologue_rex64 using P mode iterator.
18428 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
18429 using SWI48 mode iterator.
18430 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
18431 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
18432 using SWI1248x mode iterator.
18433 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
18434 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
18435 SWI48 mode iterator.
18436 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
18437 iterator.
18438 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
18439 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
18440 SWI12 mode iterator.
18441 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
18442 SWI12 mode iterator.
18443 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
18444 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
18445 SWI24 mode iterator.
18446 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
18447 SWI48 mode iterator.
18448 (mov<mode>_insn_1): New expander.
18449 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
18450 using SWI48x mode iterator.
18451
18452 (*movoi_internal_avx): Rename from *movoi_internal.
18453 (*movti_internal_rex64): Rename from *movti_rex64.
18454 (*movti_internal_sse): Rename from *movti_sse.
18455 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
18456 (*movdi_internal): Rename from *movdi_2.
18457 (*movsi_internal): Rename from *movsi_1.
18458 (*movhi_internal): Rename from *movhi_1.
18459 (*movqi_internal): Rename from *movqi_1.
18460
18461 (insv): Update the call to gen_movsi_insv_1 for rename.
18462 * config/i386/i386.c (promote_duplicated_reg): Ditto.
18463
18464 2010-06-22 Jan Hubicka <jh@suse.cz>
18465
18466 * passes.c (execute_function_todo): Move call of statistics_fini_pass
18467 to ...
18468 (execute_todo) ... this one.
18469
18470 2010-06-22 Alan Modra <amodra@gmail.com>
18471
18472 PR target/44364
18473 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
18474 * caller-save.c (insert_restore, insert_save): Use non-validate
18475 form of adjust_address.
18476
18477 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18478
18479 PR target/39690
18480 * config/pa/pa.c (override_options): Disable
18481 -freorder-blocks-and-partition.
18482
18483 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
18484
18485 PR target/44615
18486 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
18487
18488 * config/i386/i386.md (type): Add sseishft1
18489
18490 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
18491 (ppro_insn_load): Likewise.
18492 (ppro_insn_store): Likewise.
18493 (ppro_insn_both): Likewise.
18494
18495 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
18496 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
18497 for type.
18498 (*vec_extractv2di_1_avx): Likewise.
18499 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
18500 type. Remove atom_unit.
18501 (*vec_extractv2di_1_sse2): Likewise.
18502
18503 2010-06-21 DJ Delorie <dj@redhat.com>
18504
18505 * diagnostic.h (diagnostic_classification_change_t): New.
18506 (diagnostic_context): Add history and push/pop list.
18507 (diagnostic_push_diagnostics): Declare.
18508 (diagnostic_pop_diagnostics): Declare.
18509 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
18510 from pragmas in a history chain instead of the global table.
18511 (diagnostic_push_diagnostics): New.
18512 (diagnostic_pop_diagnostics): New.
18513 (diagnostic_report_diagnostic): Scan history chain to find state
18514 of diagnostics as of the diagnostic location.
18515 * opts.c (set_option): Pass UNKNOWN_LOCATION to
18516 diagnostic_classify_diagnostic.
18517 (enable_warning_as_error): Likewise.
18518 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
18519 use in the history chain.
18520 * doc/extend.texi: Document pragma GCC diagnostic changes.
18521
18522 2010-06-21 Jakub Jelinek <jakub@redhat.com>
18523
18524 * dwarf2out.c (add_linkage_name): New function. Don't add
18525 anything to DW_TAG_member DIEs.
18526 (add_name_and_src_coords_attributes): Use it.
18527 (gen_variable_die): Call it for C++ static data members if
18528 specification is DW_TAG_member.
18529
18530 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
18531 C++ char16_t and char32_t.
18532
18533 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
18534 * genattrtab.c: Include vecprim.h.
18535 (cached_attrs, cached_attr_count, attrs_seen_once,
18536 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
18537 attrs_cached_after): New variables.
18538 (find_attrs_to_cache): New function.
18539 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
18540 (write_test_expr): Add attrs_cached argument, return it too,
18541 attempt to cache non-const attributes used more than once in
18542 a single case handling.
18543 (write_attr_get): Use find_attrs_to_cache, for caching candidates
18544 emit cached_* variables. Adjust write_attr_set callers.
18545 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
18546 to find attributes that should be cached in this block. Adjust
18547 write_test_expr callers.
18548 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
18549 callers.
18550 (make_automaton_attrs): Adjust write_test_expr caller.
18551
18552 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
18553 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
18554 (make_automaton_attrs): If find_tune_attr returns non-NULL,
18555 write separate internal_dfa_insn_code_* and insn_default_latency_*
18556 functions for each attribute's value and emit init_sched_attrs
18557 function and function pointers.
18558 * genattr.c (const_attrs, reservations): New variables.
18559 (gen_attr): Add const attributes to const_attrs vector.
18560 (check_tune_attr, find_tune_attr): New functions.
18561 (main): Add reservations to reservations vector. If find_tune_attr
18562 returns true, add prototype for init_sched_attrs and make
18563 internal_dfa_insn_code and insn_default_latency function pointers,
18564 otherwise define init_sched_attrs as dummy macro.
18565 * cfgexpand.c: Include insn-attr.h.
18566 (gimple_expand_cfg): Call init_sched_attrs.
18567
18568 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
18569
18570 PR target/44575
18571 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
18572 va_arg from a set of register save slots into a temporary,
18573 if the container is bigger than type size, do the copying
18574 using smaller mode or using memcpy.
18575
18576 PR bootstrap/44426
18577 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
18578 prototype.
18579 (sel_print_to_dot): Remove macro.
18580 (sel_print): Likewise. New prototype.
18581 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
18582 (sel_print): New function.
18583
18584 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18585
18586 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
18587 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
18588
18589 2010-06-21 Nick Clifton <nickc@redhat.com>
18590
18591 * config/rx/rx.h (PTRDIFF_TYPE): Define.
18592 (SMALL_REGISTER_CLASS): Define (to zero).
18593 (PRINT_OPERAND): Delete.
18594 (PRINT_OPERAND_ADDRESS): Delete.
18595 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
18596 (rx_print_operand_address): Delete prototype.
18597 * config/rx/rx.c (rx_print_operand): Make static.
18598 Allow %H and %L to handle CONST_DOUBLEs.
18599 (rx_print_operand_address): Make static.
18600 (rx_gen_move_template): Rename local variable 'template' to
18601 out_template.
18602 (rx_function_arg): Do not pass unknown sized objects in registers.
18603 (TARGET_PRINT_OPERAND): Define.
18604 (TARGET_PRINT_OPERAND_ADDRESS): Define.
18605
18606 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18607
18608 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
18609
18610 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
18611
18612 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
18613 stack-alignment for simple leaf-functions.
18614
18615 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
18616
18617 * doc/install.texi: Document bootstrap-lto.
18618
18619 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
18620
18621 PR debug/44248
18622 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
18623 (input_function): Drop them here, if VTA is disabled.
18624
18625 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
18626
18627 PR target/44546
18628 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
18629 New predicate.
18630 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
18631 ix86_swapped_fp_comparsion_operator instead of
18632 ix86_fp_comparison_operator.
18633
18634 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
18635 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
18636 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
18637 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
18638 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
18639 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
18640
18641 2010-06-20 Joseph Myers <joseph@codesourcery.com>
18642
18643 PR other/32998
18644 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
18645 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
18646 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
18647 (decode_cmdline_option): Update for this return value. Set
18648 orig_option_with_args_text field. Set arg field for unknown
18649 options. Make static.
18650 (decode_cmdline_options_to_array): New.
18651 (prune_options): Update handling of find_opt return value.
18652 * opts.c (read_cmdline_option): Take decoded option. Return void.
18653 (read_cmdline_options): Take decoded options.
18654 (decode_options): Add parameters for decoded options. Use
18655 decode_cmdline_options_to_array. Use decoded options for -O
18656 scan. Use integral_argument for -O parameters. Update call to
18657 read_cmdline_options.
18658 (enable_warning_as_error): Update handling of find_opt return value.
18659 * opts.h: Update comment on unknown options.
18660 (struct cl_decoded_option): Update comments on opt_index and arg.
18661 Add orig_option_with_args_text.
18662 (decode_cmdline_option): Remove.
18663 (decode_cmdline_options_to_array): Declare.
18664 (decode_options): Update prototype.
18665 * toplev.c (save_argv): Remove.
18666 (save_decoded_options, save_decoded_options_count): New.
18667 (read_integral_parameter): Remove.
18668 (print_switch_values): Use decoded options.
18669 (toplev_main): Don't set save_argv. Update call to decode_options.
18670 * toplev.h (read_integral_parameter): Remove.
18671 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
18672
18673 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
18674
18675 PR target/44072
18676 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
18677 immediate.
18678 * constraints.md (Pw, Px): New constraints.
18679 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
18680
18681 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
18682
18683 * config/i386/sse.md (fma4modesuffixf4): Removed.
18684 (ssemodesuffixf2s): Likewise.
18685 (ssemodesuffixf4): Likewise.
18686 (ssemodesuffixf2c): Likewise.
18687 (ssescalarmodesuffix2s): Likewise.
18688 (avxmodesuffixf2c): Likewise.
18689 (ssemodesuffix): New.
18690 (ssescalarmodesuffix): Likewise.
18691 Update patterns with ssemodesuffix and ssescalarmodesuffix.
18692
18693 2010-06-19 Philip Herron <herron.philip@googlemail.com>
18694
18695 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
18696
18697 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
18698
18699 * stor-layout.c (debug_rli): Remove unused local variables.
18700
18701 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
18702
18703 PR rtl-optimization/40900
18704 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
18705 original expression for later reuse.
18706 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
18707 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
18708
18709 2010-06-18 Anatoly Sokolov <aesok@post.ru>
18710
18711 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
18712 double_int_fits_in_uhwi_p): Implement as static inline.
18713 (double_int_xor): New inline function.
18714 (double_int_lrotate, double_int_rrotate, double_int_max,
18715 double_int_umax, double_int_smax, double_int_min, double_int_umin,
18716 double_int_smin): Declare.
18717 (lrotate_double, rrotate_double): Remove declaration.
18718 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
18719 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
18720 (double_int_lrotate, double_int_rrotate, double_int_max,
18721 double_int_umax, double_int_smax, double_int_min, double_int_umin,
18722 double_int_smin): New function.
18723 * fold-const.c (int_const_binop): Clean up, use double_int_*
18724 functions.
18725 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
18726 double_int_* and immed_double_int_const functions.
18727
18728 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
18729
18730 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
18731 * function.c (types_used_by_cur_var_decl): Likewise.
18732 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
18733
18734 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
18735
18736 * tree.h (record_layout_info): Change type of pending_statics field
18737 to a VEC.
18738 * stor-layout.c (start_record_layout): Store NULL into
18739 pending_statics.
18740 (debug_rli): Call debug_vec_tree instead of debug_tree.
18741 (place_field): Likewise.
18742 (finish_record_layout): Likewise.
18743
18744 2010-06-18 Alan Modra <amodra@gmail.com>
18745
18746 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
18747
18748 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18749
18750 PR target/43740
18751 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
18752 for SET source operand from SET destination operand.
18753
18754 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
18755
18756 PR rtl-optimization/39871
18757 * reload1.c (init_eliminable_invariants): For flag_pic, disable
18758 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
18759 (function_invariant_p): Rule out a plus of frame or arg pointer with
18760 a SYMBOL_REF.
18761 * ira.c (find_reg_equiv_invariant_const): Likewise.
18762
18763 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
18764
18765 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
18766 print_operand_address and puts to output the operand for CONST.
18767
18768 2010-06-17 Jakub Jelinek <jakub@redhat.com>
18769
18770 PR debug/44572
18771 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
18772 hook.
18773
18774 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18775
18776 * v850-protos.h (print_operand): Delete.
18777 (print_operand_address): Delete.
18778 * v850.h (PRINT_OPERAND): Delete.
18779 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18780 (PRINT_OPERAND_ADDRESS): Delete.
18781 * v850.c (print_operand_address): Rename to...
18782 (v850_print_operand_address): ...this. Make static. Call
18783 v850_print_operand.
18784 (print_operand): Rename to...
18785 (v850_print_operand): ...this. Make static. Call
18786 v850_print_operand_address.
18787 (v850_print_operand_punct_valid_p): New function.
18788 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
18789 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
18790
18791 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18792
18793 * config/sh/sh-protos.h (print_operand): Delete.
18794 (print_operand_address): Delete.
18795 * config/sh/sh.h (PRINT_OPERAND): Delete.
18796 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18797 (PRINT_OPERAND_ADDRESS): Delete.
18798 * config/sh/sh.c (sh_print_operand_address): Make static.
18799 (sh_print_operand): Make static. Call sh_print_operand_address
18800 and sh_print_operand.
18801 (sh_print_operand_punct_valid_p): New function.
18802 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
18803 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
18804
18805 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18806
18807 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
18808 (mcore_print_operand_address): Delete.
18809 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
18810 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18811 (PRINT_OPERAND_ADDRESS): Delete.
18812 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
18813 (mcore_print_operand): Make static.
18814 (mcore_print_operand_punct_valid_p): New function.
18815 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
18816 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
18817
18818 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18819
18820 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
18821 (print_operand_address): Delete.
18822 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
18823 (PRINT_OPERAND_ADDRESS): Delete.
18824 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
18825 static.
18826 (m68hc11_print_operand): Make static.
18827 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
18828
18829 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18830
18831 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
18832 (m32r_print_operand_address): Delete.
18833 * config/m32r/m32r.h (m32r_punct_chars): Delete.
18834 (PRINT_OPERAND): Delete.
18835 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18836 (PRINT_OPERAND_ADDRESS): Delete.
18837 * config/m32r/m32r.c (m32r_punct_chars): Make static.
18838 (m32r_print_operand_address): Make static.
18839 (m32r_print_operand): Make static.
18840 (m32r_print_operand_punct_valid_p): New function.
18841 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
18842 (TARGET_PRINT_OPERAND_ADDRESS): Define.
18843
18844 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18845
18846 * config/iq2000/iq2000-protos.h (print_operand): Delete.
18847 (print_operand_address): Delete.
18848 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
18849 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18850 (PRINT_OPERAND_ADDRESS): Delete.
18851 (iq2000_print_operand_punct): Delete.
18852 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
18853 (iq2000_print_operand_address): Make static.
18854 (iq2000_print_operand): Make static.
18855 (iq2000_print_operand_punct_valid_p): New function.
18856 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
18857 (TARGET_PRINT_OPERAND_ADDRESS): Define.
18858
18859 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18860
18861 * config/frv/frv-protos.h (frv_print_operand): Delete.
18862 (frv_print_operand_address): Delete.
18863 * config/frv/frv.h (PRINT_OPERAND): Delete.
18864 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18865 (PRINT_OPERAND_ADDRESS): Delete.
18866 * config/frv/frv.c (frv_print_operand_address): Make static.
18867 (frv_print_operand): Make static.
18868 (frv_print_operand_punct_valid_p): New function.
18869 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
18870 (TARGET_PRINT_OPERAND_ADDRESS): Define.
18871
18872 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18873
18874 * tree.h (vec_member): Declare.
18875 * tree.c (vec_member): Define.
18876
18877 2010-06-17 Richard Guenther <rguenther@suse.de>
18878
18879 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
18880 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
18881
18882 2010-06-17 Richard Guenther <rguenther@suse.de>
18883
18884 * tree-inline.c (declare_return_variable): Remove bogus code.
18885
18886 2010-06-17 Richard Guenther <rguenther@suse.de>
18887
18888 * gimplify.c (gimplify_bind_expr): Always promote complex
18889 and vector variables to registers if possible.
18890
18891 2010-06-17 Richard Guenther <rguenther@suse.de>
18892
18893 * expr.c (get_inner_reference): Use double_int for bit_offset
18894 calculation.
18895
18896 2010-06-16 DJ Delorie <dj@redhat.com>
18897
18898 * common.opt (-fstrict-volatile-bitfields): new.
18899 * doc/invoke.texi: Document it.
18900 * fold-const.c (optimize_bit_field_compare): For volatile
18901 bitfields, use the field's type to determine the mode, not the
18902 field's size.
18903 * expr.c (expand_assignment): Likewise.
18904 (get_inner_reference): Likewise.
18905 (expand_expr_real_1): Likewise.
18906 * expmed.c (store_fixed_bit_field): Likewise.
18907 (extract_bit_field_1): Likewise.
18908 (extract_fixed_bit_field): Likewise.
18909
18910 2010-06-16 Richard Guenther <rguenther@suse.de>
18911
18912 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
18913
18914 2010-06-16 Douglas B Rupp <rupp@gnat.com>
18915
18916 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
18917 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
18918 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
18919 * debug.c: Likewise.
18920 * sdbout.c: Likewise.
18921 * vmsdbgout.c: Likewise.
18922 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
18923 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
18924 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
18925 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
18926 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
18927 * dwarf2out.c (dw_fde_struct): New fields
18928 dw_fde_vms_{end,begin}_prologue.
18929 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
18930 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
18931 (dwarf2out_vms_end_prologue): New function.
18932 (dwarf2out_vms_begin_epilogue): New function.
18933 (dw_val_struct): New value dw_val_class_vms_delta.
18934 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
18935 begin_epilogue for VMS.
18936 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
18937 new static functions.
18938 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
18939 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
18940 static functions.
18941 (print_die): New case dw_val_class_vms_delta.
18942 (attr_checksum): Likewise.
18943 (same_dw_val_p: Likewise.
18944 (size_of_die): Likewise.
18945 (value_format): Likewise.
18946 (output_die): Likewise.
18947 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
18948 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
18949 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
18950 dwarf2out_cfi_begin_epilogue
18951 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
18952
18953 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
18954
18955 * config/cris/cris-protos.h (cris_print_operand): Delete.
18956 (cris_print_operand_address): Delete.
18957 * config/cris/cris.h (PRINT_OPERAND): Delete.
18958 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18959 (PRINT_OPERAND_ADDRESS): Delete.
18960 * config/cris/cris.c (cris_print_operand_address): Make static.
18961 (cris_print_operand): Make static.
18962 (cris_print_operand_punct_valid_p): New function.
18963 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
18964 (TARGET_PRINT_OPERAND_ADDRESS): Define.
18965
18966 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
18967
18968 * config/arm/arm-protos.h (arm_print_operand): Delete.
18969 (arm_print_operand_address): Delete.
18970 * config/arm/arm.h (PRINT_OPERAND): Delete.
18971 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18972 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
18973 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
18974 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
18975 (arm_print_operand): Make static.
18976 (arm_print_operand_punct_valid_p): New function.
18977 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
18978 (TARGET_PRINT_OPERAND_ADDRESS): Define.
18979
18980 2010-06-16 Nick Clifton <nickc@redhat.com>
18981
18982 * config/rx/constraints.md (NEGint4): New constraint.
18983 * config/rx/rx.md (attr cc): Add set_zsc.
18984 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
18985 initialised.
18986 (cmpsf): Likewise.
18987 (call_internal): Clobber the cc0 register.
18988 (call_value_internal): Likewise.
18989 (cstoresi4): Likewise.
18990 (movsieq): Likewise.
18991 (movsine): Likewise.
18992 (addsi3): Add alternative to handle small negative constants.
18993 (sunsi3): Likewise.
18994 (addsi3): Do not set the O bit in the cc0 register.
18995 (adddi3): Likewise.
18996 (subsi3): Likewise.
18997 (subdi3): Likewise.
18998 (andsi3): Reorder alternatives to prefer shorter forms.
18999 (mulsi3): Likewise.
19000 (iorsi3): Likewise.
19001 (negsi2): Note that the cc0 flags are set.
19002 (rotlsi3): Note that only the Z and S bits are set in cc0.
19003 (lshrsi3): Likewise.
19004 (ashlsi3): Likewise.
19005 (subsf3): Use %Q for the MEM operand.
19006 (fix_truncsfsi2): Likewise.
19007 (floatsisf2): Likewise.
19008 (bitset): Remove early clobber from destination.
19009 (bitset_in_memory): Likewise.
19010 (lrintsf2): Clobber the cc0 register.
19011 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
19012 (rx_print_operand): Handle %N.
19013
19014 2010-06-16 Jan Hubicka <jh@suse.cz>
19015
19016 * df-core.c (df_compact_blocks): Free problem_temps vector.
19017
19018 2010-06-16 Martin Jambor <mjambor@suse.cz>
19019
19020 PR tree-optimization/43905
19021 * tree-sra.c: Include tree-inline.h.
19022 (create_abstract_origin): Removed.
19023 (modify_function): Version the call graph node instead of creating
19024 abstract origins and dealing with same_body aliases.
19025 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
19026 function is versionable.
19027 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
19028
19029 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
19030
19031 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
19032 (CHOOSE_DYNAMIC_LINKER): Update.
19033
19034 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
19035
19036 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
19037 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
19038 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
19039 *prefetch_3dnow_rex.
19040
19041 2010-06-15 Anatoly Sokolov <aesok@post.ru>
19042
19043 * target.h (struct asm_out):Add declare_constant_name field.
19044 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
19045 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
19046 * output.h (default_asm_declare_constant_name): Declare.
19047 (assemble_label): Update prototype.
19048 * varasm.c (assemble_constant_contents): Use
19049 targetm.asm_out.declare_constant_name target hook.
19050 (assemble_label): Add 'file' argument.
19051 (default_asm_declare_constant_name): New function.
19052 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
19053 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
19054 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
19055
19056 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
19057 * config/darwin.c (darwin_asm_declare_constant_name): New function.
19058 (machopic_output_indirection): Update assemble_label argument list.
19059 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
19060 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
19061
19062 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
19063
19064 PR middle-end/44391
19065 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
19066 size_one_node for pointer types. Do not call gmp_cst_to_tree.
19067
19068 2010-06-15 Richard Guenther <rguenther@suse.de>
19069
19070 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
19071
19072 2010-06-15 Paul Brook <paul@codesourcery.com>
19073
19074 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
19075 hard-float ABI.
19076
19077 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
19078
19079 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
19080 don't get a vector type for output.
19081
19082 2010-06-15 Jakub Jelinek <jakub@redhat.com>
19083
19084 PR fortran/44536
19085 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
19086 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
19087 (LANG_HOOKS_DECLS): Add it.
19088 * gimplify.c (omp_notice_variable): Call
19089 lang_hooks.decls.omp_report_decl.
19090
19091 2010-06-15 Martin Jambor <mjambor@suse.cz>
19092
19093 PR lto/44464
19094 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
19095 on the newly dead SSA name.
19096
19097 2010-06-15 Alan Modra <amodra@gmail.com>
19098
19099 * doc/invoke.texi: Add mcmodel to powerpc options.
19100 * configure.ac: Add HAVE_LD_LARGE_TOC test.
19101 * configure: Regenerate.
19102 * config.in: Regenerate.
19103 * config/rs6000/linux64.opt (mcmodel): New.
19104 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
19105 (TARGET_CMODEL, SET_CMODEL): Define.
19106 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
19107 select CMODEL_MEDIUM default.
19108 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
19109 (TARGET_CMODEL): Define default.
19110 * config/rs6000/rs6000.c (cmodel): New variable.
19111 (rs6000_explicit_options): Add cmodel field.
19112 (rs6000_handle_option): Handle -mcmodel.
19113 (create_TOC_reference): Add largetoc_reg param. Generate high,
19114 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
19115 (rs6000_delegitimize_address): Recognise new toc reference rtl
19116 and minimal-toc rtl.
19117 (rs6000_legitimize_reload_address): Handle new toc references.
19118 (print_operand_address): Handle legitimate_constant_pool_address_p
19119 match before lo_sum.
19120 (rs6000_eliminate_indexed_memrefs): Tidy.
19121 (rs6000_emit_move): Tweak threshold for inlining constants.
19122 Keep rs6000_emit_allocate_stack large stack frame offsets
19123 loaded into r0 inline.
19124 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
19125 (tocrel_base, tocrel_offset): New variables.
19126 (toc_relative_expr_p): Set them here.
19127 (print_operand_address): Skip over any offset on constant pool address.
19128 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
19129 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
19130 (offsettable_ok_by_alignment): New function.
19131 (rs6000_emit_move): Address suitably aligned local symbol_refs
19132 relative to the toc pointer for -mcmodel=medium.
19133 (legitimate_constant_pool_address_p): Make param const_rtx. Add
19134 strict param. Allow lo_sum version of addressing. Verify reg
19135 used for -mminimal-toc and -mcmodel != small. Update all callers.
19136 * config/rs6000/constraints.md: Update for above change.
19137 * config/rs6000/predicates.md: Likewise.
19138 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
19139 code.
19140 (tls_gd): Split for -mcmodel=medium/large.
19141 (tls_gd_high, tls_gd_low): New.
19142 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
19143 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
19144 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
19145 (largetoc_high, largetoc_low): New.
19146 (cmptf_internal2): Add clobber.
19147 * config/rs6000/rs6000-protos.h: Update.
19148
19149 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
19150
19151 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
19152 true if no prefetch is going to be generated for a given group.
19153 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
19154 estimate the prefetch_count.
19155 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
19156 prefetch count by considering the unroll_factor and prefetch_mod
19157 for is_loop_prefetching_profitable.
19158
19159 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
19160
19161 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
19162 anything if the argument is not a MEM.
19163
19164 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
19165
19166 PR debug/43650
19167 PR debug/44181
19168 PR debug/44247
19169 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
19170 debug stmts.
19171 (canonicalize_loop_ivs): Likewise.
19172
19173 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
19174
19175 PR debug/43656
19176 * haifa-sched.c (setup_insn_reg_pressure_info,
19177 update_register_pressure): Reject debug insns.
19178 (ready_sort): Don't setup reg pressure for debug insns.
19179 (schedule_insn): Don't update reg pressure for debug insns.
19180
19181 2010-06-14 Richard Guenther <rguenther@suse.de>
19182
19183 * lto-streamer.c (cached_bp): Remove.
19184 (bitpack_delete): Likewise.
19185 (bitpack_create): Likewise.
19186 (bp_get_next_word): Likewise.
19187 (bp_pack_value, bp_unpack_value): Move ...
19188 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
19189 Re-implement.
19190 (struct bitpack_d): Likewise.
19191 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
19192 New inline functions.
19193 * lto-streamer-out.c (lto_output_bitpack): Remove.
19194 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
19195 (pack_value_fields): Adjust.
19196 (lto_write_tree): Likewise.
19197 (output_gimple_stmt): Likewise.
19198 (output_function): Likewise.
19199 * lto-streamer-in.c (input_gimple_stmt): Adjust.
19200 (input_function): Likewise.
19201 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
19202 (lto_input_bitpack): Remove.
19203 (lto_materialize_tree): Adjust.
19204 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
19205 * lto-cgraph.c (lto_output_edge): Adjust.
19206 (lto_output_node): Likewise.
19207 (lto_output_varpool_node): Likewise.
19208 (lto_output_ref): Likewise.
19209 (input_node): Likewise.
19210 (input_varpool_node): Likewise.
19211 (input_ref): Likewise.
19212 (input_edge): Likewise.
19213 (output_node_opt_summary): Likewise.
19214 (input_node_opt_summary): Likewise.
19215 * ipa-pure-const.c (pure_const_write_summary): Likewise.
19216 (pure_const_read_summary): Likewise.
19217 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
19218 (ipa_read_indirect_edge_info): Likewise.
19219 (ipa_write_node_info): Likewise.
19220 (ipa_read_node_info): Likewise.
19221
19222 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
19223
19224 PR target/44534
19225 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
19226 (vec_extract_lo_v16hi): Likewise.
19227 (vec_extract_lo_v32qi): Likewise.
19228
19229 2010-06-14 Jakub Jelinek <jakub@redhat.com>
19230
19231 PR bootstrap/44426
19232 * tree.h (build_call_expr): Don't define as vararg macro, instead
19233 add a prototype.
19234 * builtins.c (build_call_nofold): Remove.
19235 (expand_builtin_int_roundingfn, expand_builtin_pow,
19236 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
19237 expand_builtin_memset_args, expand_builtin_strcmp,
19238 expand_builtin_strncmp, expand_builtin_memory_chk): Use
19239 build_call_nofold_loc instead of build_call_nofold.
19240 (build_call_expr): New function.
19241
19242 PR tree-optimization/44508
19243 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
19244 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
19245 don't eliminate trivially dead stmts.
19246 * tree-vrp.c (vrp_finalize): Pass false as last argument
19247 to substitute_and_fold.
19248 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
19249 to substitute_and_fold.
19250 * tree-ssa-ccp.c (ccp_finalize): Likewise.
19251
19252 PR bootstrap/44509
19253 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
19254
19255 2010-06-14 Ira Rosen <irar@il.ibm.com>
19256
19257 PR tree-optimization/44507
19258 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
19259 to build initial vector for BIT_AND_EXPR.
19260 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
19261
19262 2010-06-14 Jakub Jelinek <jakub@redhat.com>
19263
19264 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
19265 adjust z10prop set_attr.
19266
19267 2010-06-13 Jan Hubicka <jh@suse.cz>
19268
19269 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
19270 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
19271 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
19272 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
19273 datastructure checks into checking asserts.
19274 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
19275 * tree-ssa-sccvn.c (VN_INFO): Likewise.
19276 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
19277 df_ref_create_structure): Likewise.
19278 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
19279 pool_free): Use gcc_checking_assert.
19280 * alias.c (get_alias_set): Likewise.
19281 * var-tracking.c (variable_htab_free, shared_hash_copy,
19282 canonicalize_values_mark, variable_merge_over_cur): Likewise.
19283 * lto-streamer.c (bp_unpack_value): Likewise.
19284
19285 2010-06-13 Richard Guenther <rguenther@suse.de>
19286
19287 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
19288 Do not stream but initialize TYPE_CANONICAL to NULL.
19289 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
19290 * gimple.c (gimple_types_compatible_p): Disregard
19291 TYPE_STRUCTURAL_EQUALITY_P.
19292 (gimple_register_type): Use TYPE_CANONICAL as cache.
19293 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
19294 before registering common types.
19295 * config/i386/i386.c (ix86_function_arg_boundary): Do not
19296 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
19297 * tree.h (TYPE_CANONICAL): Clarify documentation.
19298
19299 2010-06-13 Anatoly Sokolov <aesok@post.ru>
19300
19301 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
19302 LIBCALL_VALUE): Remove macros.
19303 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
19304 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19305 TARGET_FUNCTION_VALUE_REGNO_P): Define.
19306 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
19307 (ia64_function_value): Make static. Handle receiving the function
19308 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
19309
19310 2010-06-12 Jan Hubicka <jh@suse.cz>
19311
19312 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
19313 at correct place.
19314
19315 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
19316
19317 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
19318
19319 2010-06-12 Jan Hubicka <jh@suse.cz>
19320
19321 * df-core.c (df_clear_bb_info): New function.
19322 (df_set_blocks): bb_info is always allocated.
19323 (df_get_bb_info): Use block_info_elt_size.
19324 (df_set_bb_info): Likewise.
19325 (df_compact_blocks): Update for new block_info.
19326 (grow_bb_info): New function.
19327 * df-problems.c (df_grow_bb_info): Move to df-core.c
19328 (df_rd_set_bb_info): Remove.
19329 (df_rd_free_bb_info): Do not free block pool.
19330 (df_rd_alloc): Do not create pool, use check for
19331 obstack presence instead of NULL pointer for new blocks.
19332 (df_rd_free): DO not free alloc pool; clear block_info.
19333 (problem_RD): Add size of block info structure.
19334 (df_lr_set_bb_info): Remove.
19335 (df_lr_free_bb_info): Do not free block pool.
19336 (df_lr_alloc): Do not create pool, use check for
19337 obstack presence instead of NULL pointer for new blocks.
19338 (df_lr_free): DO not free alloc pool; clear block_info.
19339 (problem_LR): Add size of block info structure.
19340 (df_live_set_bb_info): Remove.
19341 (df_live_free_bb_info): Do not free block pool.
19342 (df_live_alloc): Do not create pool, use check for
19343 obstack presence instead of NULL pointer for new blocks.
19344 (df_live_free): DO not free alloc pool; clear block_info.
19345 (problem_LIVE): Add size of block info structure.
19346 (problem_CHAIN): Add size of block info structure.
19347 (df_byte_lr_set_bb_info): Remove.
19348 (df_byte_lr_free_bb_info): Do not free block pool.
19349 (df_byte_lr_alloc): Do not create pool, use check for
19350 obstack presence instead of NULL pointer for new blocks.
19351 (df_byte_lr_free): DO not free alloc pool; clear block_info.
19352 (problem_BYTE_LR): Add size of block info structure.
19353 (problem_NOTE): Add size of block info structure.
19354 (df_byte_MD_set_bb_info): Remove.
19355 (df_byte_MD_free_bb_info): Do not free block pool.
19356 (df_byte_MD_alloc): Do not create pool, use check for
19357 obstack presence instead of NULL pointer for new blocks.
19358 (df_byte_MD_free): DO not free alloc pool; clear block_info.
19359 (problem_BD): Add size of block info structure.
19360 * df-scan.c (df_scan_free_internal): Free block pool.
19361 (df_scan_set_bb_info): Remove.
19362 (df_scan_free_bb_info): Check for artificial_defs instead
19363 of bb_info being non-NULL.
19364 (df_scan_alloc): DO not create df_scan_block pool.
19365 (problem_SCAN): Set size of block info.
19366 (df_bb_refs_record): Do not allocate bb_info.
19367 * df.h (df_problem): Add block_info_elt_size.
19368 (struct dataflow): Change block_info to void *.
19369 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
19370 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
19371 in-line structures.
19372
19373 2010-06-12 Jan Hubicka <jh@suse.cz>
19374
19375 PR tree-optimize/44485
19376 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
19377 containing use of return value of noreturn function.
19378
19379 2010-06-12 Anatoly Sokolov <aesok@post.ru>
19380
19381 * targhooks.c (default_function_value): Don't use
19382 FUNCTION_OUTGOING_VALUE.
19383 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
19384 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
19385
19386 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
19387
19388 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
19389 Add crtfastmath.o to extra_parts.
19390 * config/mips/crtfastmath.c: New.
19391 * config/mips/linux.h (ENDFILE_SPEC): New.
19392
19393 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
19394
19395 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
19396 old_type in parameter.
19397 (gcc_type_for_value): Update call to gcc_type_for_interval.
19398 (compute_type_for_level_1): Renamed compute_type_for_level.
19399 Update call to gcc_type_for_interval.
19400
19401 2010-06-11 Joseph Myers <joseph@codesourcery.com>
19402
19403 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
19404 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
19405
19406 2010-06-11 Joseph Myers <joseph@codesourcery.com>
19407
19408 * opts-common.c: Include options.h.
19409 (integral_argument): Move from opts.c.
19410 (decode_cmdline_option): New. Based on read_cmdline_option.
19411 * opts.c (integral_argument): Move to opts-common.c.
19412 (read_cmdline_option): Move most contents to
19413 decode_cmdline_option. Use %qs in diagnostics.
19414 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
19415 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
19416 decode_cmdline_option): New.
19417
19418 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
19419
19420 PR target/44481
19421 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
19422 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
19423 (partiysi2_cmp): Ditto.
19424 (*partiyhi2_cmp): Ditto.
19425 (*parityqi2_cmp): Remove.
19426
19427 2010-06-11 Jan Hubicka <jh@suse.cz>
19428
19429 * bitmap.h (bmp_iter_next_bit): New.
19430 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
19431
19432 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
19433 Eric Botcazou <ebotcazou@adacore.com>
19434
19435 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
19436 computed cost.
19437
19438 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
19439
19440 * config/i386/i386.md (unspec): New define_c_enum.
19441 (unspecv): Ditto.
19442
19443 2010-06-10 Jakub Jelinek <jakub@redhat.com>
19444
19445 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
19446
19447 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
19448
19449 PR middle-end/44483
19450 * tree-if-conv.c (bb_predicate_s): New struct.
19451 (bb_predicate_p): New.
19452 (bb_has_predicate): New.
19453 (bb_predicate): New.
19454 (set_bb_predicate): New.
19455 (bb_predicate_gimplified_stmts): New.
19456 (set_bb_predicate_gimplified_stmts): New.
19457 (add_bb_predicate_gimplified_stmts): New.
19458 (init_bb_predicate): New.
19459 (free_bb_predicate): New.
19460 (is_predicated): Use bb_predicate.
19461 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
19462 (predicate_bbs): Same. Gimplify the condition of the basic blocks
19463 before processing their successors.
19464 (clean_predicate_lists): Removed.
19465 (find_phi_replacement_condition): Use bb_predicate.
19466 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
19467 computations.
19468 (insert_gimplified_predicates): New.
19469 (combine_blocks): Call insert_gimplified_predicates.
19470 (tree_if_conversion): Call free_bb_predicate instead of
19471 clean_predicate_lists.
19472
19473 2010-10-11 Paul Brook <paul@codesourcery.com>
19474
19475 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
19476 * config/arm/arm.c (all_architectures): Change v7e-m default to
19477 cortexm4.
19478 * config/arm/arm-cores.def: Add cortex-m4.
19479 * config/arm/arm-tune.md: Regenerate.
19480
19481 2010-06-11 Jan Hubicka <jh@suse.cz>
19482
19483 * ipa-pure-const.c (special_builtlin_state): New function.
19484 (check_call): Use it instead of special casign BUILT_IN_RETURN.
19485 (propagate_pure_const): Use it.
19486
19487 2010-06-11 Jan Hubicka <jh@suse.cz>
19488
19489 * df-problems.c (df_live_scratch): Convert to bitmap_head.
19490 (df_live_alloc): Initialize df_live_scratch when initializing
19491 problem_data.
19492 (df_live_transfer_function): Update uses of df_live_scratch.
19493 (df_live_free): Free problem_data; clear df_live_scratch before
19494 releasing the obstack.
19495 (df_md_free): Free problem data.
19496
19497 2010-06-11 Jan Hubicka <jh@suse.cz>
19498
19499 * doc/invoke.texi (Wsuggest-attribute): Document.
19500 (Wmissing-noreturn): Remove.
19501 * ipa-pure-const.c (warn_function_noreturn): New function.
19502 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
19503 warn_missing_noreturn.
19504 * common.opt (Wsuggest-attribute=noreturn): New.
19505 * tree-flow.h (warn_function_noreturn): Declare.
19506 * tree-cfg.c (execute_warn_function_noreturn): Use
19507 warn_function_noreturn.
19508 (gate_warn_function_noreturn): New.
19509 (pass_warn_function_noreturn): Update.
19510
19511 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
19512
19513 * c-typeck.c (handle_warn_cast_qual): Add loc
19514 parameter. Improve warning message.
19515 (build_c_cast): Pass location to handle_warn_cast_qual.
19516
19517 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
19518
19519 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
19520 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
19521 insn mnemonic.
19522 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
19523
19524 2010-06-10 Dodji Seketeli <dodji@redhat.com>
19525
19526 Fix bootstap on mips
19527 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
19528 be naming typedefs.
19529
19530 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
19531
19532 * system.h (helper_const_non_const_cast): New inline for
19533 gcc version <= 4.0.
19534 (CONST_CAST2): For gcc version <= 4.0 use
19535 new helper to do const/non-const casting.
19536
19537 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19538
19539 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
19540 * Makefile.in (OBJS-common): Include insn-enums.o.
19541 (insn-enums.o): New rule.
19542 (simple_generated_c): Add insn-enums.c.
19543 (build/genenums.o): New rule.
19544 (genprogmd): Add "enums".
19545 * genconstants.c (print_enum_type): Declare a C string array
19546 for each enum.
19547 * genenums.c: New file.
19548 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
19549 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
19550 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
19551
19552 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19553
19554 * doc/md.texi (define_enum_attr): Document.
19555 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
19556 * read-md.h (lookup_enum_type): Declare.
19557 * read-md.c (lookup_enum_type): New function.
19558 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
19559 * genattrtab.c (attr_desc): Add an enum_name field.
19560 (evaluate_eq_attr): Take the associated attribute as argument.
19561 Get the enum prefix from the enum_name field, if defined.
19562 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
19563 (simplify_test_exp): Pass attr to evaluate_eq_attr.
19564 (add_attr_value): New function, split out from...
19565 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
19566 (write_test_expr): Pass attr to evaluate_eq_attr.
19567 (write_attr_get): Use the enum_name as the enum tag, if defined.
19568 (write_attr_valueq): Use the enum_name as a prefix, if defined.
19569 (find_attr): Initialize enum_name.
19570 (main): Handle DEFINE_ENUM_ATTR.
19571 * gensupport.c (process_rtx): Likewise.
19572 * config/mips/mips.h (mips_tune_attr): Delete.
19573 * config/mips/mips.md (cpu): Use define_attr_enum.
19574
19575 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19576
19577 * doc/md.texi (define_c_enum, define_enum): Document.
19578 * read-md.h (md_constant): Add a parent_enum field.
19579 (enum_value, enum_type): New structures.
19580 (upcase_string, traverse_enum_types): Declare.
19581 * read-md.c (enum_types): New variable.
19582 (upcase_string, add_constant): New functions.
19583 (handle_constants): Don't create the hash table here.
19584 Use add_constant.
19585 (traverse_md_constants): Don't check for a null md_constants.
19586 (decimal_string, handle_enum, traverse_enum_types): New functions.
19587 (read_md_files): Initialize md_constants and md_enums.
19588 * genconstants.c (print_md_constant): Ignore info argument.
19589 Only print constants that belong to no enum.
19590 (print_enum_type): New function.
19591 (main): Don't pass stdout to print_md_constant. Call print_enum_type
19592 for each defined enum type.
19593 * config/mips/mips.md (processor): New define_enum.
19594 (unspec): New define_c_enum.
19595 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
19596 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
19597 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
19598 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
19599 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
19600 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
19601 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
19602 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
19603 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
19604 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
19605 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
19606 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
19607 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
19608 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
19609 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
19610 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
19611 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
19612 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
19613 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
19614 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
19615 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
19616 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
19617 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
19618 (UNSPEC_RDDSP): Move to mips-dsp.md.
19619 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
19620 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
19621 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
19622 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
19623 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
19624 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
19625 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
19626 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
19627 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
19628 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
19629 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
19630 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
19631 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
19632 Moved to mips-dspr2.md.
19633 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
19634 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
19635 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
19636 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
19637 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
19638 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
19639 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
19640 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
19641 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
19642 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
19643 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
19644 UNSPEC_LOONGSON_PSADBH)
19645 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
19646 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
19647 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
19648 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
19649 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
19650 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
19651 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
19652 (cpu): Update comment.
19653 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
19654 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
19655 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
19656 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
19657 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
19658 UNSPEC_LOONGSON_PCMPEQ)
19659 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
19660 UNSPEC_LOONGSON_PINSR_0)
19661 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
19662 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
19663 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
19664 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
19665 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
19666 UNSPEC_LOONGSON_PSADBH)
19667 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
19668 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
19669 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
19670 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
19671 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
19672 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
19673 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
19674 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
19675 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
19676 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
19677 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
19678 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
19679 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
19680 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
19681 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
19682 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
19683 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
19684 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
19685 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
19686 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
19687 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
19688 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
19689 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
19690 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
19691 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
19692 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
19693 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
19694 (UNSPEC_RDDSP): Moved from mips.md.
19695 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
19696 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
19697 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
19698 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
19699 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
19700 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
19701 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
19702 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
19703 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
19704 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
19705 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
19706 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
19707 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
19708 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
19709 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
19710 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
19711 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
19712 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
19713 (UNSPEC_SCC): Moved from mips.md.
19714 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
19715 "processor_type" to "processor".
19716 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
19717 * config/mips/mips.h (processor_type): Delete.
19718 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
19719 "processor_type" to "processor".
19720
19721 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19722
19723 * configure.ac (tm_include_list): Add insn-constants.h.
19724 * configure: Regenerate.
19725 * Makefile.in (GTM_H): Move insn-constants.h here from...
19726 (TM_H): ...here.
19727 * mkconfig.sh: Remove special handling for insn-constants.h.
19728
19729 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19730
19731 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
19732 (BUILD_MD): ...this new variable.
19733 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
19734 that include the old contents of simple_generated_h and
19735 simple_generated_c.
19736 (simple_generated_h, simple_generated_c): Include them. Add
19737 insn-constants.h.
19738 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
19739 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
19740 Remove these dependencies from the main rule and include
19741 insn-conditions.md in the command line only if it appears
19742 in the dependency list.
19743 (insn-constants.h, s-constants): Delete.
19744 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
19745 or gensupport.h.
19746 (build/genmddeps.o): Likewise.
19747 (genprogrtl): New variable that contains everything from genprogmd
19748 except mddeps and constants.
19749 (genprogmd): Redefine in terms of genprogrtl. Make these programs
19750 depend on $(BUILD_MD)
19751 (genprog): New variable. Make these programs depend on
19752 $(BUILD_ERRORS).
19753 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
19754 (main): Use read_md_files instead of init_rtx_reader_args.
19755 * genconstants.c: As for genmddeps.c.
19756 * read-md.h (read_skip_construct): Declare.
19757 * read-md.c (read_skip_construct): New function.
19758 (handle_file): Allow a null handle_directive, skipping the
19759 construct if so.
19760 (parse_include): Update the comment accordingly.
19761
19762 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19763
19764 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
19765 * genmddeps.c: Include read-md.h.
19766 (main): Call init_rtx_reader_args instead of init_md_reader_args.
19767 * genattr.c (main): Likewise.
19768 * genattrtab.c (main): Likewise.
19769 * genautomata.c (main): Likewise.
19770 * gencodes.c (main): Likewise.
19771 * genconditions.c (main): Likewise.
19772 * genconfig.c (main): Likewise.
19773 * genconstants.c (main): Likewise.
19774 * genemit.c (main): Likewise.
19775 * genextract.c (main): Likewise.
19776 * genflags.c (main): Likewise.
19777 * genopinit.c (main): Likewise.
19778 * genoutput.c (main): Likewise.
19779 * genpeep.c (main): Likewise.
19780 * genrecog.c (main): Likewise.
19781 * genpreds.c (main): Likewise.
19782 * gensupport.h (in_fname): Move to read-md.h.
19783 (init_md_reader_args_cb): Rename to...
19784 (init_rtx_reader_args_cb): ...this and return a bool.
19785 (init_md_reader_args): Rename to...
19786 (init_rtx_reader_args): ...this and return a bool.
19787 (include_callback): Move to read-md.h.
19788 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
19789 (file_name_list, first_dir_md_include): Move to read-md.c
19790 (first_bracket_include): Delete unused variable.
19791 (last_dir_md_include): Move to read-md.c.
19792 (process_include): Delete, moving code to read-md.c:handle_include.
19793 (process_rtx): Don't handle INCLUDE.
19794 (save_string): Delete.
19795 (rtx_handle_directive): New function.
19796 (init_md_reader_args_cb): Rename to...
19797 (init_rtx_reader_args_cb): ...this and return a boolean success value.
19798 Use read_md_args.
19799 (init_md_reader_args): Rename to...
19800 (init_rtx_reader_args): ...this and return a boolean success value.
19801 * rtl.def (INCLUDE): Delete.
19802 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
19803 argument.
19804 * read-rtl.c (read_conditions): Don't gobble ')' here.
19805 (read_mapping): Likewise.
19806 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
19807 Handle top-level non-rtx constructs here rather than in read_rtx_1.
19808 Store the whole queue in *X. Remove call to init_md_reader.
19809 (read_rtx_1): Rename to...
19810 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
19811 Don't handle top-level non-rtx constructs here. Don't handle (nil)
19812 here.
19813 (read_nested_rtx): New function. Handle (nil) here rather than
19814 in read_rtx_code.
19815 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
19816 gobble ')' here.
19817 * read-md.h (directive_handler_t): New type.
19818 (in_fname, include_callback): Moved from read-md.h.
19819 (read_constants, init_md_reader): Delete.
19820 (read_md_files): Declare.
19821 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
19822 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
19823 from gensupport.c.
19824 (read_constants): Rename to...
19825 (handle_constants): ...this. Don't gobble ')' here.
19826 (handle_include, handle_file, handle_toplevel_file)
19827 (parse_include): New functions, mostly taken from gensupport.c.
19828 (init_md_reader): Subsume into...
19829 (read_md_files): ...this new function.
19830
19831 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19832
19833 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
19834 (unread_char): Decrement read_md_lineno after putting back '\n'.
19835 * read-md.c (fatal_with_file_and_line): Push back any characters
19836 that we decide not to add to the context.
19837 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
19838 fatal_expected_char in cases where '/' ends a line (for example).
19839 (read_name): Don't increment read_md_lineno here.
19840 (read_escape): Likewise.
19841 (read_quoted_string): Likewise.
19842 (read_braced_string): Likewise.
19843
19844 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19845
19846 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
19847 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
19848 * genconstants.c: Include read-md.h.
19849 * read-rtl.c (md_constants): Move to read-md.c.
19850 (md_name): Move to read-md.h.
19851 (initialize_iterators): Use leading_string_hash instead of def_hash
19852 and leading_string_eq_p instead of def_name_eq_p.
19853 (read_name): Move to read-md.c.
19854 (def_hash, def_name_eq_p): Delete.
19855 (read_constants, traverse_md_constants): Move to read-md.c.
19856 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
19857 * read-md.h: Include hashtab.h.
19858 (md_name): Moved from read-rtl.c.
19859 (md_constant): Moved from read-md.h.
19860 (leading_string_hash, leading_string_eq_p, read_name)
19861 (read_constants, traverse_md_constants): Declare.
19862 * read-md.c (md_constants): Moved from read-rtl.c.
19863 (leading_string_hash, leading_string_eq_p): New functions.
19864 (read_name, read_constants, traverse_md_constants): Moved from
19865 read-rtl.c.
19866
19867 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19868
19869 * read-rtl.c (md_name): New structure.
19870 (read_name): Take an md_name instead of a buffer pointer.
19871 Use the "string" field instead of strcpy when expanding constants.
19872 (read_constants): Remove the tmp_char argument. Update the calls
19873 to read_name, using two local name buffers instead of the tmp_char
19874 argument. Merge the constant-creation code.
19875 (read_conditions): Remove the tmp_char argument. Update the calls
19876 to read_name, using a local name buffer instead of the tmp_char
19877 argument.
19878 (read_mapping): Replace tmp_char variable with a local name buffer.
19879 Update the calls to read_name.
19880 (read_rtx_1): Likewise. Update the calls to read_constants and
19881 read_conditions.
19882
19883 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19884
19885 * Makefile.in (build/read-md.o): Depend on errors.h.
19886 * read-md.h (error_with_line): Declare.
19887 * read-md.c: Include errors.h.
19888 (message_with_line_1): New function, extracted from...
19889 (message_with_line): ...here.
19890 (error_with_line): New function.
19891 * genattrtab.c: If a call to message_with_line is followed by
19892 "have_error = 1;", replace both statements with a call to
19893 error_with_line.
19894 * genoutput.c: Likewise.
19895 * genpreds.c: Likewise.
19896 * genrecog.c: If a call to message_with_line is followed by
19897 "error_count++;", replace both statements with a call to
19898 error_with_line.
19899 (errorcount): Delete.
19900 (main): Don't check it.
19901 * gensupport.c: If a call to message_with_line is followed by
19902 "errors = 1;", replace both statements with a call to error_with_line.
19903 (errors): Delete.
19904 (process_define_cond_exec): Check have_error instead of errors.
19905 (init_md_reader_args_cb): Likewise. Don't set errors.
19906
19907 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19908
19909 * read-md.h (read_md_file): Declare.
19910 (read_char, unread_char): New functions.
19911 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
19912 (read_quoted_string, read_string): Remove FILE * argument.
19913 * read-md.c (read_md_file): New variable.
19914 (read_md_filename, read_md_lineno): Update comments and remove
19915 unnecessary initialization.
19916 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
19917 (read_escape, read_quoted_string, read_braced_string, read_string):
19918 Remove FILE * argument. Update calls accordingly, using read_char
19919 and unread_char instead of getc and ungetc.
19920 * rtl.h (read_rtx): Remove FILE * argument.
19921 * read-rtl.c (iterator_group): Remove FILE * argument from
19922 "find_builtin".
19923 (iterator_traverse_data): Remove "infile" field.
19924 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
19925 (add_mapping, read_name, read_constants, read_conditions)
19926 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
19927 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
19928 Remove file arguments from all calls, using read_char and unread_char
19929 instead of getc and ungetc.
19930 * gensupport.c (process_include): Preserve read_md_file around
19931 the include. Set read_md_file to the handle of the included file.
19932 Update call to read_rtx.
19933 (init_md_reader_args_cb): Set read_md_file to the handle of the file
19934 and remove local FILE *. Update calls to read_rtx.
19935
19936 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19937
19938 * read-md.h (read_rtx_lineno): Rename to...
19939 (read_md_lineno): ...this.
19940 (read_rtx_filename): Rename to...
19941 (read_md_filename): ...this.
19942 (copy_rtx_ptr_loc): Rename to...
19943 (copy_md_ptr_loc): ...this.
19944 (print_rtx_ptr_loc): Rename to...
19945 (print_md_ptr_loc): ...this.
19946 * read-md.c: Likewise. Update references after renaming.
19947 (string_obstack): Replace RTL with MD in comment.
19948 (set_rtx_ptr_loc): Rename to...
19949 (set_md_ptr_loc): ...this.
19950 (get_rtx_ptr_loc): Rename to...
19951 (get_md_ptr_loc): ...this.
19952 * genconditions.c: Update references after renaming.
19953 * genemit.c: Likewise.
19954 * genoutput.c: Likewise.
19955 * genpreds.c: Likewise.
19956 * gensupport.c: Likewise.
19957 * read-rtl.c: Likewise.
19958
19959 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19960
19961 * Makefile.in (READ_MD_H): New variable.
19962 (BUILD_RTL): Add build/read-md.o.
19963 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
19964 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
19965 (build/genattrtab.o, build/genconditions.o build/genemit.o)
19966 (build/genextract.o, build/genflags.o, build/genoutput.o)
19967 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
19968 (build/read-md.o): New rule.
19969 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
19970 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
19971 * coretypes.h: ...here.
19972 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
19973 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
19974 * genattr.c: Include read-md.h.
19975 * genattrtab.c: Likewise.
19976 * genconditions.c: Likewise.
19977 * genemit.c: Likewise.
19978 * genextract.c: Likewise.
19979 * genflags.c: Likewise.
19980 * genoutput.c: Likewise.
19981 * genpreds.c: Likewise.
19982 * genrecog.c: Likewise.
19983 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
19984 (join_c_conditions, print_c_condition, read_rtx_filename)
19985 (read_rtx_lineno): Move to read-md.h.
19986 * read-rtl.c: Include read-md.h.
19987 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
19988 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
19989 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
19990 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
19991 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
19992 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
19993 (read_braced_string, read_string): Move to read-md.c.
19994 (read_rtx): Move some initialization to init_md_reader and call
19995 init_md_reader here.
19996 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
19997 Move to read-md.h.
19998 * gensupport.c: Include read-md.h.
19999 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
20000 * read-md.h, read-md.c: New files.
20001
20002 2010-06-10 Anatoly Sokolov <aesok@post.ru>
20003
20004 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
20005 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
20006 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
20007 * config/moxie/moxie.c (moxie_function_value): Make static.
20008 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
20009 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
20010
20011 2010-06-10 Martin Jambor <mjambor@suse.cz>
20012
20013 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
20014 * dbgcnt.def (tree_sra): New counter.
20015 * tree-sra.c: Include dbgcnt.h.
20016 (gate_intra_sra): Check tree_sra debug counter.
20017
20018 2010-06-10 Martin Jambor <mjambor@suse.cz>
20019
20020 PR tree-optimization/44258
20021 * tree-sra.c (build_access_subtree): Return false iff there is a
20022 partial overlap.
20023 (build_access_trees): Likewise.
20024 (analyze_all_variable_accesses): Disqualify candidates if
20025 build_access_trees returns true for them.
20026
20027 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
20028
20029 PR debug/41371
20030 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
20031 tail-recurse into canonical node. Fast-forward over
20032 non-canonical VALUEs.
20033
20034 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
20035
20036 PR boostrap/44470
20037 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
20038 (*addsi_1_zext) <TYPE_LEA>: Likewise.
20039 (add lea splitter): Likewise.
20040 (add_zext lea splitter): Likewise.
20041
20042 2010-06-10 Joseph Myers <joseph@codesourcery.com>
20043
20044 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
20045
20046 2010-06-10 Jan Hubicka <jh@suse.cz>
20047
20048 * df-problems.c (df_live_problem_data): Add live_bitmaps.
20049 (df_live_alloc): Initialize problem data and live_osbtacks.
20050 (df_live_finalize): Remove obstack, problem data; do not
20051 clear all bitmaps.
20052 (df_live_top_dump, df_live_bottom_dump): Do not dump old
20053 data when not allocated.
20054 (df_live_verify_solution_start): Do not allocate problem data.
20055 (df_live_verify_solution_end): Check if out is allocated.
20056 (struct df_md_problem_data): New structure.
20057 (df_md_alloc): Allocate problem data.
20058 (df_md_free): Free problem data; do not clear bitmaps.
20059
20060 2010-06-10 Jan Beulich <jbeulich@novell.com>
20061
20062 PR bootstrap/37304
20063 * configure.ac: Replace $() with ${} when intending to expand
20064 variables rather than invoking commands.
20065 * configure: Re-generate.
20066
20067 2010-06-10 Jan Hubicka <jh@suse.cz>
20068
20069 PR rtl-optimization/44460
20070 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
20071 TYPE_NEEDS_CONSTRUCTING sanity check.
20072
20073 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
20074
20075 * doc/include/fdl.texi: Move to GFDL version 1.3.
20076
20077 * doc/cpp.texi: Move to GFDL version 1.3.
20078 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
20079 * doc/gccint.texi: Move to GFDL version 1.3.
20080 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
20081 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
20082 * doc/invoke.texi: Move to GFDL version 1.3.
20083
20084 2010-06-09 Jan Hubicka <jh@suse.cz>
20085
20086 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
20087 Break out from ...
20088 (propagate) ... here; swap the order.
20089
20090 2010-06-09 Jan Hubicka <jh@suse.cz>
20091
20092 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
20093 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
20094 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
20095 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
20096
20097 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
20098
20099 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
20100 Do not the gather memory reference in the outer loop if the step
20101 is not a constant.
20102
20103 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
20104
20105 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
20106 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
20107 8 to 4. Minor change of the related comments.
20108
20109 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
20110
20111 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
20112 the scev analysis when the variable is not used outside the loop
20113 in a close phi node: call compute_overall_effect_of_inner_loop.
20114
20115 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
20116
20117 * graphite-sese-to-poly.c (single_pred_cond): Renamed
20118 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
20119 (build_sese_conditions_before): Renamed call to single_pred_cond.
20120 (build_sese_conditions_after): Same.
20121
20122 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
20123
20124 * graphite-poly.h: Fix comments and indentation.
20125 * graphite-sese-to-poly.c: Same.
20126 (build_sese_conditions_before): Compute stmt and gbb only when needed.
20127 * tree-chrec.c: Fix comments and indentation.
20128 (tree-ssa-loop-niter.c): Same.
20129
20130 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
20131
20132 PR rtl-optimization/42461
20133 * dce.c (deletable_insn_p): Return true for const or pure calls again.
20134 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
20135
20136 2010-06-09 Jan Hubicka <jh@suse.cz>
20137
20138 * bitmap.c (bitmap_and): Walk array forward.
20139 (bitmap_and_compl_into): Likewise.
20140 (bitmap_xor): Likewise.
20141 (bitmap_xor_into): Likewise.
20142 (bitmap_equal_p): Likewise.
20143 (bitmap_intersect_p): Likewise.
20144 (bitmap_intersect_compl_p): Likewise.
20145 (bitmap_ior_and_into): Likewise.
20146 (bitmap_elt_copy): Likewise.
20147 (bitmap_and_compl): Likewise.
20148 (bitmap_elt_ior): Likewise.
20149
20150 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
20151
20152 * opts-common.c (prune_options): Ensure replacement argv array
20153 is correctly terminated by a NULL entry.
20154
20155 2010-06-09 Jan Hubicka <jh@suse.cz>
20156
20157 * cgraph.h (varpool_first_static_initializer,
20158 varpool_next_static_initializer): Make checking only when
20159 checking enabled.
20160 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
20161 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
20162 gcc_assert to gcc_checking_assert.
20163 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
20164 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
20165 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
20166 op_iter_init_phiuse, op_iter_init_phidef,
20167 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
20168 gcc_checking_assert.
20169 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
20170 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
20171 partition_is_global, live_on_entry, live_on_exit,
20172 live_merge_and_clear): Likewise.
20173 * system.h (gcc_checking_assert): New macro.
20174 * gimple.h (set_bb_seq): Use gcc_checking_assert.
20175
20176 2010-06-09 Jason Merrill <jason@redhat.com>
20177
20178 * Makefile.in (TAGS): Collect tags info from c-family.
20179
20180 2010-06-09 Jan Hubicka <jh@suse.cz>
20181
20182 * gimple.h (gcc_gimple_checking_assert): New macro.
20183 (gimple_set_def_ops, gimple_set_use_ops,
20184 gimple_set_vuse, gimple_set_vdef,
20185 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
20186 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
20187 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
20188 gimple_asm_output_op, gimple_asm_output_op_ptr,
20189 gimple_asm_set_output_op, gimple_asm_clobber_op,
20190 gimple_asm_set_clobber_op, gimple_asm_label_op,
20191 gimple_asm_set_label_op, gimple_try_set_kind,
20192 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
20193 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
20194 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
20195 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
20196 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
20197 gimple_omp_for_set_initial, gimple_omp_for_final,
20198 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
20199 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
20200 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
20201 conditional with ENABLE_GIMPLE_CHECKING.
20202 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
20203
20204 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
20205
20206 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
20207 (get_computation_cost_at): Use it.
20208 (determine_use_iv_cost_condition): Likewise.
20209 (determine_iv_cost): Likewise.
20210
20211 2010-06-09 Richard Guenther <rguenther@suse.de>
20212
20213 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
20214 replace constants.
20215
20216 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
20217
20218 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
20219
20220 2010-06-09 Martin Jambor <mjambor@suse.cz>
20221
20222 PR tree-optimization/44423
20223 * tree-sra.c (dump_access): Dump also grp_assignment_read.
20224 (analyze_access_subtree): Pass negative allow_replacements to children
20225 if the current type is scalar.
20226
20227 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
20228
20229 PR testsuite/42843
20230 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
20231 * doc/plugins.texi (Plugin license check): Update information
20232 on type of plugin_is_GPL_compatible.
20233 * Makefile.in (PLUGINCC): Define as $(COMPILER).
20234 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
20235
20236 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
20237
20238 * config/arm/arm.c (thumb2_reorg): New function.
20239 (arm_reorg): Call it.
20240 * config/arm/thumb2.md (define_peephole2 for flag clobbering
20241 arithmetic operations): Delete.
20242
20243 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
20244
20245 PR target/44067
20246 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
20247 e500v2 target.
20248
20249 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
20250
20251 PR plugins/44459
20252 * gcc-plugin.h: Encapsulate all declarations in extern "C".
20253
20254 2010-06-08 Jan Hubicka <jh@suse.cz>
20255
20256 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
20257 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
20258
20259 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
20260
20261 PR tree-optimization/39874
20262 PR middle-end/28685
20263 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
20264 Declare.
20265 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
20266 same_bool_result_p): New.
20267 (and_var_with_comparison, and_var_with_comparison_1,
20268 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
20269 (or_var_with_comparison, or_var_with_comparison_1,
20270 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
20271 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
20272 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
20273 of combine_comparisons.
20274 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
20275
20276 2010-06-08 Anatoly Sokolov <aesok@post.ru>
20277
20278 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
20279 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
20280 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
20281 pdp11_function_value_regno_p): New functions.
20282 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
20283 TARGET_FUNCTION_VALUE_REGNO_P): Define.
20284
20285 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
20286
20287 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
20288 Thumb-2 in the MINUS case.
20289
20290 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
20291
20292 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
20293
20294 * doc/gty.texi (GTY Options): Document typed GC allocation and
20295 variable_size GTY option.
20296
20297 * ggc-internal.h: New.
20298
20299 * ggc.h: Update copyright year.
20300 (digit_string): Move to stringpool.c.
20301 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
20302 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
20303 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
20304 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
20305 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
20306 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
20307 (ggc_force_collect, ggc_get_size, ggc_statistics)
20308 (ggc_print_common_statistics): Move to ggc-internal.h.
20309 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
20310 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
20311 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
20312 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
20313 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
20314 (ggc_alloc_zone_pass_stat): Remove.
20315 (ggc_internal_alloc_stat, ggc_internal_alloc)
20316 (ggc_internal_cleared_alloc_stat): New.
20317 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
20318 (ggc_internal_vec_alloc_stat)
20319 (ggc_internal_cleared_vec_alloc_stat)
20320 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
20321 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
20322 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
20323 (ggc_cleared_alloc_ptr_array_two_args): New.
20324 (htab_create_ggc, splay_tree_new_ggc): Redefine.
20325 (ggc_splay_alloc): Change the type of the first argument to
20326 enum gt_types_enum.
20327 (ggc_alloc_string): Make macro.
20328 (ggc_alloc_string_stat): New.
20329 (ggc_strdup): Redefine.
20330 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
20331 (ggc_alloc_rtvec_sized): New.
20332 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
20333 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
20334 (ggc_internal_cleared_alloc_zone_stat)
20335 (ggc_internal_zone_alloc_stat)
20336 (ggc_internal_zone_cleared_alloc_stat)
20337 (ggc_internal_zone_vec_alloc_stat)
20338 (ggc_alloc_zone_rtx_def_stat)
20339 (ggc_alloc_zone_tree_node_stat)
20340 (ggc_alloc_zone_cleared_tree_node_stat)
20341 (ggc_alloc_cleared_gimple_statement_d_stat): New.
20342
20343 * ggc-common.c: Include ggc-internal.h.
20344 (ggc_internal_cleared_alloc_stat): Rename from
20345 ggc_alloc_cleared_stat.
20346 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
20347 (ggc_calloc): Remove.
20348 (ggc_cleared_alloc_htab_ignore_args): New.
20349 (ggc_cleared_alloc_ptr_array_two_args): New.
20350 (ggc_splay_alloc): Add obj_type parameter.
20351 (init_ggc_heuristics): Formatting fixes.
20352
20353 * ggc-none.c: Update copyright year.
20354 (ggc_alloc_stat): Rename to ggc_alloc_stat.
20355 (ggc_alloc_cleared_stat): Rename to
20356 ggc_internal_cleared_alloc_stat.
20357 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
20358
20359 * ggc-page.c: Update copyright year. Include ggc-internal.h.
20360 Remove references to ggc_alloc in comments.
20361 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
20362 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
20363 (new_ggc_zone, destroy_ggc_zone): Remove.
20364 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
20365
20366 * ggc-zone.c: Include ggc-internal.h. Remove references to
20367 ggc_alloc in comments.
20368 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
20369 (ggc_internal_alloc_zone_pass_stat): New.
20370 (ggc_internal_cleared_alloc_zone_stat): New.
20371 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
20372 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
20373 (new_ggc_zone, destroy_ggc_zone): Remove.
20374
20375 * stringpool.c: Update copyright year. Include ggc-internal.h
20376 (digit_vector): Make static.
20377 (digit_string): Moved from ggc.h.
20378 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
20379 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
20380
20381 * Makefile.in (GGC_INTERNAL_H): New.
20382 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
20383 $(GGC_INTERNAL_H) to dependencies.
20384
20385 * gentype.c: Update copyright year.
20386 (walk_type): Accept variable_size GTY option.
20387 (USED_BY_TYPED_GC_P): New macro.
20388 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
20389 whitespace at the end of strings.
20390 (get_type_specifier, variable_size_p): New functions.
20391 (alloc_quantity, alloc_zone): New enums.
20392 (write_typed_alloc_def): New function.
20393 (write_typed_struct_alloc_def): Likewise.
20394 (write_typed_typed_typedef_alloc_def): Likewise.
20395 (write_typed_alloc_defns): Likewise.
20396 (output_typename, write_splay_tree_allocator_def): Likewise.
20397 (write_splay_tree_allocators): Likewise.
20398 (main): Call write_typed_alloc_defns and
20399 write_splay_tree_allocators.
20400
20401 * lto-streamer.h (lto_file_decl_data_ptr): New.
20402
20403 * passes.c (order): Define using cgraph_node_ptr.
20404
20405 * strinpool.c (struct string_pool_data): Declare nested_ptr using
20406 ht_identifier_ptr.
20407
20408 * gimple.h (union gimple_statement_d): Likewise.
20409
20410 * rtl.h (struct rtx_def): Likewise.
20411 (struct rtvec_def): Likewise.
20412
20413 * tree.h (union tree_node): Likewise.
20414
20415 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
20416
20417 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
20418
20419 * tree-scalar-evolution.c (scev_initialize): Likewise.
20420
20421 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
20422
20423 * dwarf2asm.c (dw2_force_const_mem): Likewise.
20424
20425 * omp-low.c (lower_omp_critical): Likewise.
20426
20427 * bitmap.h (struct bitmap_head_def): Update comment to not
20428 reference ggc_alloc.
20429
20430 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
20431
20432 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
20433
20434 * ipa-prop.c (duplicate_ggc_array): Rename to
20435 duplicate_ipa_jump_func_array. Use typed GC allocation.
20436 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
20437
20438 * gimple.c (gimple_alloc_stat): Use
20439 ggc_alloc_cleared_gimple_statement_d_stat.
20440
20441 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
20442
20443 * tree.c (make_node_stat): Use
20444 ggc_alloc_zone_cleared_tree_node_stat.
20445 (make_tree_vec_stat): Likewise.
20446 (build_vl_exp_stat): Likewise.
20447 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
20448 (make_tree_binfo_stat): Likewise.
20449 (tree_cons_stat): Likewise.
20450
20451 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
20452 (shallow_copy_rtx_stat): Likewise.
20453 (make_node_stat): Likewise.
20454
20455 * lto-symtab.c: Fix comment.
20456
20457 * tree-cfg.c (create_bb): Update comment to not reference
20458 ggc_alloc_cleared.
20459 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
20460
20461 * varpool.c (varpool_node): Use typed GC allocation.
20462 (varpool_extra_name_alias): Likewise.
20463
20464 * varasm.c (emutls_decl): Likewise.
20465 (get_unnamed_section): Likewise.
20466 (get_noswitch_section): Likewise.
20467 (get_section): Likewise.
20468 (get_block_for_section): Likewise.
20469 (build_constant_desc): Likewise.
20470 (create_constant_pool): Likewise.
20471 (force_const_mem): Likewise.
20472
20473 * tree.c (build_vl_exp_stat): Likewise.
20474 (build_real): Likewise.
20475 (build_string): Likewise.
20476 (decl_debug_expr_insert): Likewise.
20477 (decl_value_expr_insert): Likewise.
20478 (type_hash_add): Likewise.
20479 (build_omp_clause): Likewise.
20480
20481 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
20482
20483 * tree-ssa.c (init_tree_ssa): Likewise.
20484
20485 * tree-ssa-structalias.c (heapvar_insert): Likewise.
20486
20487 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
20488
20489 * tree-ssa-loop-niter.c (record_estimate): Likewise.
20490
20491 * tree-ssa-alias.c (get_ptr_info): Likewise.
20492
20493 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
20494
20495 * tree-phinodes.c (allocate_phi_node): Likewise.
20496
20497 * tree-iterator.c (tsi_link_before): Likewise.
20498 (tsi_link_after): Likewise.
20499
20500 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
20501
20502 * tree-dfa.c (create_var_ann): Likewise.
20503
20504 * tree-cfg.c (create_bb): Likewise.
20505
20506 * toplev.c (alloc_for_identifier_to_locale): Likewise.
20507 (general_init): Likewise.
20508
20509 * stringpool.c (stringpool_ggc_alloc): Likewise.
20510 (gt_pch_save_stringpool): Likewise.
20511
20512 * sese.c (if_region_set_false_region): Likewise.
20513
20514 * passes.c (do_per_function_toporder): Likewise.
20515
20516 * optabs.c (set_optab_libfunc): Likewise.
20517 (set_conv_libfunc): Likewise.
20518
20519 * lto-symtab.c (lto_symtab_register_decl): Likewise.
20520
20521 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
20522 (input_eh_region): Likewise.
20523 (input_eh_lp): Likewise.
20524 (make_new_block): Likewise.
20525 (unpack_ts_real_cst_value_fields): Likewise.
20526
20527 * lto-section-in.c (lto_new_in_decl_state): Likewise.
20528
20529 * lto-cgraph.c (input_node_opt_summary): Likewise.
20530
20531 * loop-init.c (loop_optimizer_init): Likewise.
20532
20533 * lambda.h (lambda_vector_new): Likewise.
20534
20535 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
20536
20537 * ira.c (update_equiv_regs): Likewise.
20538
20539 * ipa.c (cgraph_node_set_new): Likewise.
20540 (cgraph_node_set_add): Likewise.
20541 (varpool_node_set_new): Likewise.
20542 (varpool_node_set_add): Likewise.
20543
20544 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
20545 (duplicate_ipa_jump_func_array): Likewise.
20546 (ipa_read_node_info): Likewise.
20547
20548 * ipa-cp.c (ipcp_create_replace_map): Likewise.
20549
20550 * integrate.c (get_hard_reg_initial_val): Likewise.
20551
20552 * gimple.c (gimple_alloc_stat): Likewise.
20553 (gimple_build_omp_for): Likewise.
20554 (gimple_seq_alloc): Likewise.
20555 (gimple_copy): Likewise.
20556
20557 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
20558 (gsi_insert_after_without_update): Likewise.
20559
20560 * function.c (add_frame_space): Likewise.
20561 (insert_temp_slot_address): Likewise.
20562 (assign_stack_temp_for_type): Likewise.
20563 (allocate_struct_function): Likewise.
20564 (types_used_by_var_decl_insert): Likewise.
20565
20566 * except.c (init_eh_for_function): Likewise.
20567 (gen_eh_region): Likewise.
20568 (gen_eh_region_catch): Likewise.
20569 (gen_eh_landing_pad): Likewise.
20570 (add_call_site): Likewise.
20571
20572 * emit-rtl.c (get_mem_attrs): Likewise.
20573 (get_reg_attrs): Likewise.
20574 (start_sequence): Likewise.
20575 (init_emit): Likewise.
20576
20577 * dwarf2out.c (new_cfi): Likewise.
20578 (queue_reg_save): Likewise.
20579 (dwarf2out_frame_init): Likewise.
20580 (new_loc_descr): Likewise.
20581 (find_AT_string): Likewise.
20582 (new_die): Likewise.
20583 (add_var_loc_to_decl): Likewise.
20584 (clone_die): Likewise.
20585 (clone_as_declaration): Likewise.
20586 (break_out_comdat_types): Likewise.
20587 (new_loc_list): Likewise.
20588 (loc_descriptor): Likewise.
20589 (add_loc_descr_to_each): Likewise.
20590 (add_const_value_attribute): Likewise.
20591 (tree_add_const_value_attribute): Likewise.
20592 (add_comp_dir_attribute): Likewise.
20593 (add_name_and_src_coords_attributes): Likewise.
20594 (lookup_filename): Likewise.
20595 (store_vcall_insn): Likewise.
20596 (dwarf2out_init): Likewise.
20597
20598 * dbxout.c (dbxout_init): Likewise.
20599
20600 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
20601
20602 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
20603
20604 * config/score/score7.c (score7_output_external): Likewise.
20605
20606 * config/score/score3.c (score3_output_external): Likewise.
20607
20608 * config/s390/s390.c (s390_init_machine_status): Likewise.
20609
20610 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
20611 (rs6000_init_machine_status): Likewise.
20612 (output_toc): Likewise.
20613
20614 * config/pa/pa.c (pa_init_machine_status): Likewise.
20615 (get_deferred_plabel): Likewise.
20616
20617 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
20618
20619 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
20620
20621 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
20622
20623 * config/mep/mep.c (mep_init_machine_status): Likewise.
20624 (mep_note_pragma_flag): Likewise.
20625
20626 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
20627
20628 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
20629
20630 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
20631
20632 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
20633 (i386_pe_maybe_record_exported_symbol): Likewise.
20634
20635 * config/i386/i386.c (get_dllimport_decl): Likewise.
20636 (ix86_init_machine_status): Likewise.
20637 (assign_386_stack_local): Likewise.
20638
20639 * config/frv/frv.c (frv_init_machine_status): Likewise.
20640
20641 * config/darwin.c (machopic_indirection_name): Likewise.
20642
20643 * config/cris/cris.c (cris_init_machine_status): Likewise.
20644
20645 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
20646
20647 * config/avr/avr.c (avr_init_machine_status): Likewise.
20648
20649 * config/arm/arm.c (arm_init_machine_status): Likewise.
20650
20651 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
20652 (alpha_need_linkage): Likewise.
20653 (alpha_use_linkage): Likewise.
20654
20655 * cgraph.c (cgraph_allocate_node): Likewise.
20656 (cgraph_create_edge_1): Likewise.
20657 (cgraph_create_indirect_edge): Likewise.
20658 (cgraph_add_asm_node): Likewise.
20659
20660 * cfgrtl.c (init_rtl_bb_info): Likewise.
20661
20662 * cfgloop.c (alloc_loop): Likewise.
20663 (rescan_loop_exit): Likewise.
20664
20665 * cfg.c (init_flow): Likewise.
20666 (alloc_block): Likewise.
20667 (unchecked_make_edge): Likewise.
20668
20669 * c-parser.c (c_parse_init): Likewise.
20670 (c_parse_file): Likewise.
20671
20672 * c-decl.c (bind): Likewise.
20673 (record_inline_static): Likewise.
20674 (push_scope): Likewise.
20675 (make_label): Likewise.
20676 (lookup_label_for_goto): Likewise.
20677 (finish_struct): Likewise.
20678 (finish_enum): Likewise.
20679 (c_push_function_context): Likewise.
20680
20681 * bitmap.c (bitmap_element_allocate): Likewise.
20682 (bitmap_gc_alloc_stat): Likewise.
20683
20684 * alias.c (record_alias_subset): Likewise.
20685 (init_alias_analysis): Likewise.
20686
20687 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
20688
20689 * fold-const.c (fold_comparison): Remove redundant parenthesis.
20690 * tree-inline.c (expand_call_inline): Pass translated return value of
20691 cgraph_inline_failed_string to diagnostic function.
20692
20693 2010-06-08 Andrew Pinski <pinskia@gmail.com>
20694 Shujing Zhao <pearly.zhao@oracle.com>
20695
20696 PR c/37724
20697 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
20698 implicit bad conversions is initialization.
20699 (error_init): Use gmsgid instead of msgid for argument name and change
20700 the call for error.
20701 (pedwarn_init): Use gmsgid instead of msgid for argument name and
20702 change the call for pedwarn.
20703 (warning_init): Use gmsgid instead of msgid for argument name and
20704 change the call for warning.
20705
20706 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
20707
20708 * config/mips/mips-protos.h (mips_print_operand): Delete.
20709 (mips_print_operand_address): Delete.
20710 * config/mips/mips.h (mips_print_operand_punct): Delete.
20711 (PRINT_OPERAND): Delete.
20712 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20713 (PRINT_OPERAND_ADDRESS): Delete.
20714 * config/mips/mips.c (mips_print_operand_punct): Make static.
20715 (mips_print_operand_address): Make static.
20716 (mips_print_operand): Make static. Call
20717 mips_print_operand_punct_valid_p.
20718 (mips_print_operand_punct_valid_p): New function.
20719 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
20720 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
20721
20722 2010-06-07 Jan Hubicka <jh@suse.cz>
20723
20724 PR middle-end/44454
20725 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
20726 are allocated.
20727
20728 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
20729
20730 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
20731 name of RECORD.
20732
20733 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20734
20735 * doc/sourcebuild.texi (Effective-Target Keywords, Other
20736 attributes): Document gas.
20737
20738 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
20739
20740 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
20741 <TYPE_LEA>: Split instruction.
20742 <default>: Remove alternative 2 handling.
20743 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
20744 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
20745 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
20746
20747 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
20748 (ashift_zext lea splitter): Use DImode for multiplication.
20749
20750 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
20751 to generate addition.
20752
20753 2010-06-07 Joseph Myers <joseph@codesourcery.com>
20754
20755 * common.opt (fira-verbose): Use Var.
20756 (fpcc-struct-return): Use Init instead of VarExists.
20757 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
20758 toplev.c.
20759 * flags.h (flag_signed_char, flag_short_enums,
20760 flag_pcc_struct_return, flag_ira_verbose,
20761 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
20762 * toplev.c (flag_detailed_statistics, flag_signed_char,
20763 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
20764 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
20765 * toplev.h (flag_crossjumping, flag_if_conversion,
20766 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
20767 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
20768 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
20769 flag_cprop_registers, time_report, flag_ira_loop_pressure,
20770 flag_ira_coalesce, flag_ira_move_spills,
20771 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
20772
20773 2010-06-07 Jan Hubicka <jh@suse.cz>
20774
20775 * df-core.c (df_analyze_problem): Do verification after allocation.
20776
20777 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
20778 (df_lr_alloc): Initialize problem data; move bitmaps to
20779 lr_bitmaps obstack.
20780 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
20781 (df_lr_verify_solution_start): Do not initialize problem data;
20782 allocate bitmaps in lr_bitmaps.
20783 (df_lr_verify_solution_end): Do not free problem data.
20784
20785 2010-06-07 Jan Hubicka <jh@suse.cz>
20786
20787 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
20788 if caller is noreturn.
20789 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
20790 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
20791 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
20792 * ipa-pure-const.c (check_decl): Add IPA parameter.
20793 (state_from_flags): New function.
20794 (better_state, worse_state): New functions.
20795 (check_call): When in IPA mode, do not care about callees.
20796 (check_load, check_store): Update.
20797 (check_ipa_load, check_ipa_store): New.
20798 (check_stmt): When in IPA mode, use IPA checkers.
20799 (analyze_function): Use state_from_flags.
20800 (propagate): Check indirect edges and references.
20801
20802 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
20803
20804 PR rtl-optimization/44404
20805 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
20806 of count_occurrences to see if it's safe to modify mem_insn.
20807
20808 2010-06-07 Richard Guenther <rguenther@suse.de>
20809
20810 * gimplify.c (gimplify_cleanup_point_expr): For empty body
20811 and EH-only cleanup drop the cleanup instead of inserting it
20812 unconditionally.
20813
20814 2010-06-07 Ira Rosen <irar@il.ibm.com>
20815
20816 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
20817 documentation.
20818 * targhooks.c (default_builtin_vectorization_cost): New function.
20819 * targhooks.h (default_builtin_vectorization_cost): Declare.
20820 * target.h (enum vect_cost_for_stmt): Define.
20821 (builtin_vectorization_cost): Change argument and comment.
20822 * tree-vectorizer.h: Remove cost model macros.
20823 * tree-vect-loop.c: Include target.h.
20824 (vect_get_cost): New function.
20825 (vect_estimate_min_profitable_iters): Replace cost model macros with
20826 calls to vect_get_cost.
20827 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
20828 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
20829 default implementation.
20830 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
20831 calls to target hook builtin_vectorization_cost.
20832 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
20833 Likewise.
20834 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
20835 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
20836 implementation to return costs.
20837 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
20838 * config/spu/spu.h: Remove vectorizer cost model macros.
20839 * config/i386/i386.h: Likewise.
20840 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
20841 a call to target hook builtin_vectorization_cost.
20842
20843 2010-06-06 Sriraman Tallam <tmsriram@google.com>
20844
20845 PR target/44319
20846 * config/i386/i386.c (override_options): Turn zee pass on for level 2
20847 and above and defer till target is known.
20848 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
20849 turn off otherwise.
20850
20851 2010-05-25 Jan Hubicka <jh@suse.cz>
20852
20853 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
20854 (df_compact_blocks): Likewise.
20855 * df.h (struct df): Turn hardware_regs_used,
20856 regular_block_artificial_uses, eh_block_artificial_uses,
20857 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
20858 bitmap_head.
20859 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
20860 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
20861 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
20862 df_scan_blocks, df_insn_delete, df_insn_rescan,
20863 df_insn_rescan_debug_internal, df_insn_rescan_all,
20864 df_process_deferred_rescans, df_process_deferred_rescans,
20865 df_notes_rescan, df_get_call_refs, df_get_call_refs,
20866 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
20867 df_record_entry_block_defs, df_record_exit_block_uses,
20868 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
20869 df_scan_verify): Update.
20870
20871 2010-05-25 Dodji Seketeli <dodji@redhat.com>
20872
20873 PR c++/44188
20874 * c-common.c (is_typedef_decl): Move this definition ...
20875 * tree.c (is_typedef_decl): ... here.
20876 (typdef_variant_p): Move definition here from cp/tree.c.
20877 * c-common.h (is_typedef_decl): Move this declaration ...
20878 * tree.h (is_typedef_decl): ... here.
20879 (typedef_variant_p): Move declaration here from cp/cp-tree.h
20880 * dwarf2out.c (is_naming_typedef_decl): New function.
20881 (gen_tagged_type_die): Split out of ...
20882 (gen_type_die_with_usage): ... this function. When an anonymous
20883 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
20884 is emitted for the typedef.
20885 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
20886 anonymous tagged types.
20887
20888 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
20889
20890 PR c/20000
20891 * c-decl.c (grokdeclarator): Delete warning.
20892
20893 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
20894
20895 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
20896 newly built CALL_EXPR.
20897 * tree-profile.c (tree_profiling): Don't profile functions produced
20898 for built-in stuff.
20899
20900 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
20901
20902 PR bootstrap/44427
20903 PR bootstrap/44428
20904 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
20905 endianness-independent.
20906
20907 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
20908
20909 * c-common.c: Move to c-family/.
20910 * c-common.def: Likewise.
20911 * c-common.h: Likewise.
20912 * c-cppbuiltin.c: Likewise.
20913 * c-dump.c: Likewise.
20914 * c-format.c: Likewise.
20915 * c-format.h : Likewise.
20916 * c-gimplify.c: Likewise.
20917 * c-lex.c: Likewise.
20918 * c-omp.c: Likewise.
20919 * c.opt: Likewise.
20920 * c-opts.c: Likewise.
20921 * c-pch.c: Likewise.
20922 * c-ppoutput.c: Likewise.
20923 * c-pragma.c: Likewise.
20924 * c-pragma.h: Likewise.
20925 * c-pretty-print.c: Likewise.
20926 * c-pretty-print.h: Likewise.
20927 * c-semantics.c: Likewise.
20928 * stub-objc.c: Likewise.
20929
20930 * gengtype.c (get_file_langdir): Special-case files in c-family/.
20931 (get_output_file_with_visibility): Fix name for c-common.h.
20932 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
20933
20934 * c-tree.h: Update include path for moved files.
20935 * c-lang.c: Likewise.
20936 * c-lang.h: Likewise.
20937 * c-parser.c: Likewise.
20938 * c-convert.c: Likewise.
20939 * c-decl.c: Likewise.
20940 * c-objc-common.c: Likewise.
20941 * configure.ac: Make sure c-family/ exists in the build directory.
20942 * configure: Regenerate.
20943 * Makefile.in: Update paths for moved files. Regroup files per
20944 location and update dependencies. Move generated_files down after
20945 ALL_GTFILES_H.
20946
20947 * config/spu/spu-c.c: Update paths for moved files.
20948 * config/mep/mep-pragma.c: Likewise.
20949 * config/darwin-c.c: Likewise.
20950 * config/i386/msformat-c.c: Likewise.
20951 * config/i386/i386-c.c: Likewise.
20952 * config/avr/avr-c.c: Likewise.
20953 * config/sol2-c.c: Likewise.
20954 * config/ia64/ia64-c.c: Likewise.
20955 * config/rs6000/rs6000-c.c: Likewise.
20956 * config/arm/arm.c: Likewise.
20957 * config/arm/arm-c.c: Likewise.
20958 * config/h8300/h8300.c: Likewise.
20959 * config/v850/v850-c.c: Likewise.
20960
20961 * config/t-darwin: Fix dependencies for moved files.
20962 * config/t-sol2: Fix dependencies for moved files.
20963 * config/mep/t-mep: Fix dependencies for moved files.
20964 * config/ia64/t-ia64: Fix dependencies for moved files.
20965 * config/rs6000/t-rs6000: Fix dependencies for moved files.
20966 * config/v850/t-v850: Fix dependencies for moved files.
20967 * config/v850/t-v850e: Fix dependencies for moved files.
20968
20969 * config/m32c/m32c-pragma.c
20970
20971 * po/exgettext: Look in c-family/ also.
20972
20973 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
20974
20975 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
20976 (mark_control_dependent_edges_necessary): Call it instead of marking
20977 the last statement manually.
20978 (propagate_necessity): Likewise.
20979
20980 2010-06-05 Jan Hubicka <jh@suse.cz>
20981
20982 * basic-block.h (compute_dominance_frontiers): Updated.
20983 (compute_idf): Likewise.
20984
20985 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
20986 for dominance frontiers.
20987 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
20988 (insert_updated_phi_nodes_for): Likewise.
20989 (update_ssa): Likewise.
20990 * cfganal.c (compute_dominance_frontiers_1): Likewise.
20991 (compute_dominance_frontiers): Likewise.
20992 (compute_idf): Likewise.
20993 * df-problems.c (df_md_local_compute): Likewise.
20994
20995 2010-06-05 Anatoly Sokolov <aesok@post.ru>
20996
20997 * target.h (struct gcc_target): Add memory_move_cost field.
20998 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
20999 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
21000 * targhooks.c (default_memory_move_cost): New function.
21001 * targhooks.h (default_memory_move_cost): Declare function.
21002 * reload.h (memory_move_cost): Declare.
21003 (memory_move_secondary_cost): Change type of 'in' argument to bool.
21004 * reginfo.c (memory_move_cost): New function.
21005 (memory_move_secondary_cost): Change type of 'in' argument to bool.
21006 * ira.h (ira_memory_move_cost): Update comment.
21007 * ira.c (ira_memory_move_cost): Update comment.
21008 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
21009 with memory_move_cost.
21010 * postreload.c (reload_cse_simplify_set): (Ditto.).
21011 * reload1.c (choose_reload_regs): (Ditto.).
21012 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
21013 (MEMORY_MOVE_COST): Revise documentation.
21014
21015 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
21016 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
21017 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
21018 type of 'in' argument to bool.
21019 (TARGET_MEMORY_MOVE_COST): Define.
21020
21021 2010-06-05 Jan Hubicka <jh@suse.cz>
21022
21023 * ipa-pure-const.c (propagate): Fix typo in handling of functions
21024 that cannot return. Be more careful when merging the results with
21025 previously known ones.
21026
21027 2010-06-05 Matthias Klose <doko@ubuntu.com>
21028
21029 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
21030 function to add the -iplugindir option.
21031 (find_plugindir_spec_function): Add new declaration and function.
21032 (static_spec_func): Use it for "find-plugindir".
21033
21034 2010-06-05 Jakub Jelinek <jakub@redhat.com>
21035
21036 PR c++/44361
21037 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
21038 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
21039 statement expression.
21040
21041 2010-06-05 Jan Hubicka <jh@suse.cz>
21042
21043 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
21044 (df_rd_problem_data): Convert sparse_invalidated_by_call,
21045 dense_invalidated_by_call to bitmap head.
21046 (df_rd_alloc, df_rd_bb_local_compute_process_def,
21047 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
21048 df_rd_start_dump, df_lr_verify_transfer_functions,
21049 df_live_verify_transfer_functions, df_chain_create_bb,
21050 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
21051 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
21052 df_simulate_one_insn_forwards, df_md_alloc,
21053 df_md_bb_local_compute_process_def,
21054 df_md_bb_local_compute_process_def, df_md_local_compute,
21055 df_md_transfer_function df_md_free): Update.
21056
21057 2010-06-05 Joseph Myers <joseph@codesourcery.com>
21058
21059 PR c/44322
21060 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
21061 target type for ADDR_EXPR; require no changes to qualifiers except
21062 for function types.
21063 * c-tree.h (c_build_type_variant): Remove.
21064
21065 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
21066
21067 * genautomata.c (get_excl_set): Do work per element, not per char.
21068 (check_presence_pattern_sets): Similar.
21069 (check_absence_pattern_sets): Similar.
21070
21071 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
21072
21073 * genautomata.c (curr_state_pass_num): Delete.
21074 (min_issue_delay_pass_states): Delete.
21075 (min_issue_delay): Delete.
21076 (initiate_min_issue_delay_pass_states): Delete.
21077 (output_min_issue_delay_table): Compute min_issue_delay_vect
21078 using a breadth-first search variant.
21079 (output_tables): Don't call initiate_min_issue_delay_pass_states.
21080
21081 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
21082
21083 PR boostrap/44421
21084 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
21085 (df_byte_lr_bb_local_compute): Likewise.
21086
21087 2010-06-03 Jason Merrill <jason@redhat.com>
21088
21089 Implement noexcept operator (5.3.7)
21090 * c-common.c (c_common_reswords): Add noexcept.
21091 * c-common.h (enum rid): Add RID_NOEXCEPT.
21092
21093 2010-06-04 Joseph Myers <joseph@codesourcery.com>
21094
21095 * config/darwin-driver.c (darwin_default_min_version): Use
21096 GCC-specific formats in diagnostics.
21097 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
21098 diagnostics.
21099 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
21100 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
21101 eval_spec_function, handle_braces, process_brace_body, main,
21102 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
21103 getenv_spec_function, compare_version_strings,
21104 version_compare_spec_function): Use GCC-specific formats in
21105 diagnostics.
21106
21107 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
21108
21109 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
21110 that operand 0 and operand 1 are equal.
21111 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
21112 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
21113 and operand 1 are equal.
21114 <default>: Ditto. Remove ??? comment.
21115 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
21116 and operand 1 are equal.
21117 <default>: Ditto. Remove ??? comment.
21118 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
21119 are equal.
21120 (*add<mode>_4) <default>: Ditto.
21121 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
21122
21123 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
21124
21125 * config/i386/i386-protos.h (ix86_print_operand): Declare.
21126 * config/i386/i386.c (ix86_print_operand): Make non-static.
21127 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
21128 * output.h (output_operand): Declare.
21129 * final.c (output_operand): Make non-static.
21130
21131 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
21132
21133 PR rtl-optimization/44013
21134 * sched-deps.c (add_dependence_list_and_free): Don't free lists
21135 when processing debug insns.
21136
21137 PR debug/41371
21138 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
21139 recursing. Check that recursion is bounded. Rename inner var
21140 to avoid hiding incoming argument.
21141
21142 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
21143
21144 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
21145 operands[2] == 255.
21146 (*addqi_3): Ditto.
21147 (*addqi_4): Ditto.
21148 (*addqi_5): Ditto.
21149 (*addqi_ext_1_rex64): Ditto.
21150 (*addqi_ext_1): Ditto.
21151
21152 (*addqi_4): Check for incdec_operand in QImode.
21153
21154 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
21155 using SWI mode iterator.
21156 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
21157 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
21158 mode iterator.
21159 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
21160 using SWI mode iterator.
21161
21162 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
21163
21164 PR c/25880
21165 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
21166 * c-format.c (gcc_diag_flag_specs): Add hash.
21167 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
21168 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
21169 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
21170 pp_c_cv_qualifiers. Handle qualifiers spelling here.
21171 (pp_c_type_qualifier_list): Call the function above.
21172 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
21173 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
21174 (WARN_FOR_QUALIFIERS): New macro.
21175 (convert_for_assignment): Use it.
21176
21177 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
21178
21179 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
21180
21181 2010-06-04 Jan Hubicka <jh@suse.cz>
21182
21183 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
21184 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
21185 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
21186 DF_BYTE_LR_OUT): Update for embedded bitmaps.
21187 * fwprop.c (single_def_use_enter_block): Likewise.
21188 * ddg.c (create_ddg_dep_from_intra_loop_link,
21189 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
21190 * loop-iv.c (latch_dominating_def): Likewise.
21191 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
21192 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
21193 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
21194 df_rd_transfer_function, df_rd_top_dump,
21195 df_rd_bottom_dump): Update.
21196 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
21197 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
21198 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
21199 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
21200 df_lr_verify_solution_start, df_lr_verify_solution_end,
21201 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
21202 df_live_free_bb_info, df_live_alloc, df_live_reset,
21203 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
21204 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
21205 df_live_verify_solution_start, df_live_verify_solution_end,
21206 df_live_verify_transfer_functions, df_chain_create_bb,
21207 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
21208 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
21209 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
21210 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
21211 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
21212 df_byte_lr_transfer_function, df_byte_lr_top_dump,
21213 df_byte_lr_bottom_dump, df_create_unused_note,
21214 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
21215 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
21216 df_md_transfer_function, df_md_init, df_md_confluence_0,
21217 df_md_confluence_n,
21218 df_md_top_dump, df_md_bottom_dump): Update.
21219 (struct df_lr_problem_data): Embedd bitmap headers.
21220
21221 2010-06-04 Jan Hubicka <jh@suse.cz>
21222
21223 * dce.c (dce_process_block): Do not re-scan already marked
21224 instructions.
21225
21226 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
21227
21228 PR rtl-optimization/39871
21229 PR rtl-optimization/40615
21230 PR rtl-optimization/42500
21231 PR rtl-optimization/42502
21232 * ira.c (init_reg_equiv_memory_loc: New function.
21233 (ira): Call it twice.
21234 * reload.h (calculate_elim_costs_all_insns): Declare.
21235 * ira-costs.c: Include "reload.h".
21236 (regno_equiv_gains): New static variable.
21237 (init_costs): Allocate it.
21238 (finish_costs): Free it.
21239 (ira_costs): Call calculate_elim_costs_all_insns.
21240 (find_costs_and_classes): Take estimated elimination costs
21241 into account.
21242 (ira_adjust_equiv_reg_cost): New function.
21243 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
21244 * reload1.c (init_eliminable_invariants, free_reg_equiv,
21245 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
21246 (elim_bb): New static variable.
21247 (reload): Move code out of here into init_eliminable_invariants and
21248 free_reg_equiv. Call them.
21249 (calculate_elim_costs_all_insns): New function.
21250 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
21251 all callers changed. If FOR_COSTS is true, don't call alter_reg,
21252 but call note_reg_elim_costly if we turned a valid memory address
21253 into an invalid one.
21254 * Makefile.in (ira-costs.o): Depend on reload.h.
21255
21256 2010-06-04 Julian Brown <julian@codesourcery.com>
21257
21258 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
21259 for pool ranges.
21260
21261 2010-06-04 Richard Guenther <rguenther@suse.de>
21262
21263 PR lto/41584
21264 * cgraph.h (struct varpool_node): Add lto_file_data field.
21265 * lto-cgraph.c (input_varpool_node): Initialize it.
21266
21267 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
21268
21269 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
21270 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
21271 predicate in "type" attribute calculation.
21272 (*addsi_1_zext): Ditto.
21273 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
21274 (*addsi_2_zext): Ditto.
21275 (*add<mode>_3): Ditto.
21276 (*addsi_3_zext): Ditto.
21277 (*add<mode>_5): Ditto.
21278
21279 2010-06-03 Jan Hubicka <jh@suse.cz>
21280
21281 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
21282 of bitmap_bit_p.
21283 * cfganal.c (compute_dominance_frontiers_1): Likewise.
21284
21285 2010-06-03 Jan Hubicka <jh@suse.cz>
21286
21287 * df-problems.c (df_create_unused_note, df_note_bb_compute):
21288 micro-optimize the checks when to add new note.
21289
21290 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
21291
21292 * final.c (output_asm_insn): Call
21293 targetm.asm_out.print_operand_punct_valid_p. Update comments.
21294 (output_operand): Call targetm.asm_out.print_operand. Update comments.
21295 (output_address): Call targetm.asm_out.print_operand_address.
21296 Update comments.
21297 * target.h (struct gcc_target): Add print_operand,
21298 print_operand_address, and print_operand_punct_valid_p fields.
21299 * targhooks.h (default_print_operand): Declare.
21300 (default_print_operand_address): Declare.
21301 (default_print_operand_punct_valid_p): Declare.
21302 * targhooks.c (default_print_operand): Define.
21303 (default_print_operand_address): Define.
21304 (default_print_operand_punct_valid_p): Define.
21305 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
21306 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
21307 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
21308 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
21309 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
21310 * vmsdbgout.c (addr_const_to_string): Update comment.
21311 * config/i386/i386.c (print_operand): Rename to...
21312 (ix86_print_operand): ...this. Make static.
21313 (print_operand_address): Rename to...
21314 (ix86_print_operand_address): ...this. Make static. Call
21315 ix86_print_operand instead of PRINT_OPERAND.
21316 (ix86_print_operand_punct_valid_p): New function.
21317 (TARGET_PRINT_OPERAND): Define.
21318 (TARGET_PRINT_OPERAND_ADDRESS): Define.
21319 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
21320 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
21321 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
21322 (PRINT_OPERAND): Delete.
21323 (PRINT_OPERAND_ADDRESS): Delete.
21324 * config/i386/i386-protos.h (print_operand): Delete prototype.
21325 (print_operand_address): Delete prototype.
21326
21327 2010-06-03 Richard Guenther <rguenther@suse.de>
21328
21329 PR tree-optimization/44403
21330 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
21331 Preserve pointer qualifiers.
21332 (vect_create_data_ref_ptr): Likewise.
21333
21334 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
21335
21336 PR c++/44294
21337 * defaults.h (MAX_FIXED_MODE_SIZE): New.
21338
21339 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
21340
21341 2010-06-03 Jakub Jelinek <jakub@redhat.com>
21342
21343 PR debug/44375
21344 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
21345 return false if merging the bbs would lead to goto_locus
21346 location being lost from the IL.
21347
21348 2010-06-03 Jan Hubicka <jh@suse.cz>
21349 Jakub Jelinek <jakub@redhat.com>
21350
21351 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
21352 set->regs[i] is NULL or has just one entry.
21353
21354 2010-06-03 Jan Hubicka <jh@suse.cz>
21355
21356 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
21357 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
21358
21359 2010-06-03 Paul Brook <paul@codesourcery.com>
21360
21361 * config/arm/arm.c (FL_TUNE): Define.
21362 (arm_default_cpu, arm_cpu_select): Remove.
21363 (all_cores): Populate core field.
21364 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
21365 (arm_find_cpu): New function.
21366 (arm_handle_option): Lookup cpu/architecture names.
21367 (arm_override_options): Cleanup mcpu/march/mtune handling.
21368 (arm_file_start): Ditto.
21369
21370 2010-06-03 Alan Modra <amodra@gmail.com>
21371
21372 PR target/44169
21373 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
21374 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
21375 rtx to gen_load_toc_v4_PIC_1b. Tidy.
21376 (rs6000_emit_load_toc_table): Likewise.
21377
21378 2010-06-02 Jan Hubicka <jh@suse.cz>
21379
21380 * passes.c (init_optimization_passes): Put ipa reference
21381 after ipa pure-const.
21382
21383 2010-06-02 Jan Hubicka <jh@suse.cz>
21384
21385 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
21386 calls_read_all and calls_write_all.
21387 (get_reference_optimization_summary): Fix formatting.
21388 (is_proper_for_analysis): Check that decl is not readonly.
21389 (propagate_bits): Check CONST/PURE/noreturn flags.
21390 (ipa_init): Move all_module_statics to optimization_summary_obstack.
21391 (analyze_function): Ignore indirect edges.
21392 (copy_global_bitmap): For all module statics, do nothing.
21393 (generate_summary): Do not print calls_read_all/calls_write_all.
21394 (read_write_all_from_decl): Take node as argument; check
21395 cgraph_node_cannot_return.
21396 (propagate): Reorganize read_all/write_all computation;
21397 check indirect edges; check ecf flags; use all_module_statics
21398 in the results; do not free all_module_statics.
21399 (stream_out_bitmap): Handle all_module_statics.
21400 (ipa_reference_write_optimization_summary): Likewise; use
21401 varpool/cgraph encoders to get boundaries.
21402 (ipa_reference_read_optimization_summary): Read in all_module_statics;
21403 use it when possible.
21404
21405 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
21406
21407 PR target/44218
21408 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
21409 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
21410
21411 * doc/extend.texi (powerpc builtins): Document vec_recip,
21412 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
21413
21414 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
21415 (rs6000_emit_swrsqrt): Ditto.
21416 (rs6000_emit_swdivsf): Delete.
21417 (rs6000_emit_swdivdf): Ditto.
21418 (rs6000_emit_swrsqrtsf): Ditto.
21419
21420 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
21421 describe the reciprocal estimate support for each type.
21422 (recip_options): Map -mrecip=<opt> into option bits.
21423 (gen_2arg_fn_t): New typedef for binary rtx gen function.
21424 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
21425 reciprocal estimate instructions.
21426 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
21427 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
21428 Set up rs6000_recip_bits based on the -mrecip* options. Print the
21429 cost information if -mdebug=cost or -mdebug=reg.
21430 (rs6000_override_options): Set -mrecip-precision for power6, and
21431 power7 machines. If -mvsx or -mdfp, enable various options that
21432 came in previous instruction set ISAs, unless the option was
21433 explicitly disabled by the command line option. Parse
21434 -mrecip=<opt> options.
21435 (rs6000_builtin_vectorized_function): Add support for vectorizing
21436 the reciprocal estimate builtins and expansions.
21437 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
21438 (bdesc_2arg): Add reciprocal estimate builtins.
21439 (bdesc_1arg): Add reciprocal square root estimate builtins.
21440 (rs6000_expand_builtin): Rewrite to use a switch statement,
21441 instead of multiple if/then/elses. Add reciprocal estimate builtins.
21442 (rs6000_init_builtins): Create declarations for reciprocal
21443 estimate builtins.
21444 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
21445 sized, prefer traditional floating point registers, if integer
21446 vector types, prefer altivec registers. Don't actually look at
21447 the memory address any more.
21448 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
21449 builtins.
21450 (rs6000_load_constant_and_splat): New helper function to load up
21451 the constant for reciprocal estimate instructions.
21452 (rs6000_emit_madd): New helper function for generating
21453 multiply/add type instructions, based on the current switches.
21454 (rs6000_emit_msub): Ditto.
21455 (rs6000_emit_mnsub): Ditto.
21456 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
21457 replace a divide with a reciprocal estimate and fixup, adding
21458 support for machines with high precision and vectors.
21459 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
21460 low precision machines.
21461 (rs6000_emit_swdiv): New common function to be called to replace a
21462 division with reciprocal estimate and fixup.
21463 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
21464 for double and vector types. Add support for high precision machines.
21465
21466 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
21467 the reciprocal estimate instructions can be generated.
21468 (TARGET_FRE): Ditto.
21469 (TARGET_FRSQRTES): Ditto.
21470 (TARGET_FRSQRTE): Ditto.
21471 (RS6000_RECIP_*): New macros for reciprocal estimate support.
21472
21473 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
21474 square root estimate on vectors.
21475 (re<mode>2): New insn for reciprocal division estimate on vectors.
21476
21477 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
21478 New builtin.
21479 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
21480 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
21481 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
21482 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
21483 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
21484 (RS6000_BUILTIN_RSQRT): Ditto.
21485 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
21486 floating point builtin.
21487
21488 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
21489 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
21490 __RECIP_PRECISION__ based on the command line switches.
21491 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
21492
21493 * config/rs6000/rs6000.opt (-mrecip): Document add support for
21494 replacing division instructions with reciprocal estimate and fixup.
21495 (-mrecip=<opt>): New option.
21496 (-mrecip-precision): Ditto.
21497
21498 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
21499 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
21500 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
21501 precision scalar.
21502
21503 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
21504 (UNSPEC_VREFP): Ditto.
21505 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
21506 conterparts with regard to support of -mno-fused-madd and -ffast-math.
21507 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
21508 reciprocal estimate instructions to be generated.
21509 (altivec_vrefp): Ditto.
21510
21511 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
21512 estimate support.
21513 (rreg): New mode attribute for reciprocal estimate support.
21514 (recip<mode>3): New insn for division using reciprocal estimate
21515 and fixup builtins.
21516 (divide define_split): New define_split to convert floating point
21517 division to use reciprocal estimate if the user used the
21518 appropriate options and the split is run when we can add new
21519 pseudo registers for the fixup.
21520 (rsqrt<mode>2): New insn for reciprocal square root support.
21521 (recipsf3): Move into recip<mode>3.
21522 (recipdf3): Ditto.
21523 (fres): Use TARGET_FRES.
21524 (rsqrtsf2): Move into rsqrt<mode>2.
21525 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
21526 (copysignsf3): Add support for VSX.
21527 (fred): Use TARGET_FRE.
21528 (fred_fpr): Ditto.
21529 (rsqrtdf_internal1): New function for frsqrte instruciton.
21530
21531 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
21532 (vec_rsqrt): Ditto.
21533
21534 2010-06-03 Richard Guenther <rguenther@suse.de>
21535
21536 PR middle-end/44291
21537 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
21538 (set_user_assembler_libfunc): Likewise.
21539
21540 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
21541
21542 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
21543 defaults.h.
21544 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
21545 to defaults.h
21546 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
21547 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
21548 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
21549 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
21550 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
21551 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
21552 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
21553 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
21554 * defaults.h: Updated for above mentioned changes.
21555
21556 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
21557
21558 * c-common.c: Remove header include of tm_p.h.
21559 * Makefile.in (c-common.o): Remove TM_P_H dependency.
21560
21561 2010-06-02 Jakub Jelinek <jakub@redhat.com>
21562
21563 * tree.h (struct tree_decl_map): New type.
21564 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
21565 (tree_decl_map_hash): New prototype.
21566 (debug_expr_for_decl, value_expr_for_decl): Change into
21567 tree_decl_map hashtab from tree_map.
21568 (init_ttree): Adjust initialization.
21569 (tree_decl_map_hash): New function.
21570 (decl_debug_expr_lookup, decl_debug_expr_insert,
21571 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
21572
21573 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21574
21575 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
21576 linker emulations.
21577 * configure: Regenerate.
21578 * config.in: Regenerate.
21579
21580 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
21581 (X86_64_EMULATION): Define.
21582 (TARGET_LD_EMULATION): Use them.
21583
21584 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
21585 (SPARC64_EMULATION): Define.
21586 (LINK_ARCH_SPEC): Use them.
21587
21588 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
21589
21590 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
21591 smallest_mode_for_size for computing the precision types of new
21592 graphite IVs. Do not call lang_hooks.types.type_for_size.
21593
21594 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
21595
21596 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
21597 information.
21598 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
21599
21600 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
21601
21602 PR middle-end/44363
21603 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
21604 return false instead.
21605
21606 2010-06-02 Jan Hubicka <jh@suse.cz>
21607
21608 PR middle-end/44295
21609 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
21610 create new cgraph node to check callee.
21611
21612 2010-06-02 Richard Guenther <rguenther@suse.de>
21613
21614 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
21615
21616 2010-06-02 Richard Guenther <rguenther@suse.de>
21617
21618 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
21619 (lto_wrapper_cleanup): ... this. Do not exit.
21620 (fatal): Adjust. Exit here.
21621 (fatal_perror): Likewise.
21622 (fatal_signal): New function.
21623 (main): Set up signal handlers to cleanup temporary files.
21624 * Makefile.in (lto-wrapper.o): Adjust dependencies.
21625
21626 2010-06-02 Richard Guenther <rguenther@suse.de>
21627
21628 PR tree-optimization/44377
21629 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
21630
21631 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21632
21633 * config/s390/2097.md (z10_fhex): Remove insn reservation.
21634 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
21635 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
21636 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
21637 instruction.
21638 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
21639
21640 2010-06-02 Jan Hubicka <jh@suse.cz>
21641
21642 * bitmap.c (bitmap_descriptor): Add search_iter.
21643 (bitmap_find_bit): Increment it.
21644 (print_statistics): Print it.
21645
21646 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
21647
21648 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
21649 instead of gimple_build_call_vec. Delete unnecessary local variable.
21650
21651 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
21652
21653 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
21654 change from yesterday.
21655
21656 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
21657
21658 * c-ada-spec.c: Clean up redundant includes.
21659
21660 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
21661
21662 * gimplify.c: Do not include except.h and optabs.h.
21663 (gimplify_body): Do not initialize RTL profiling.
21664 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
21665 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
21666 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
21667 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
21668 langhooks.h.
21669
21670 * tree-pretty-print.h: Include pretty-print.h.
21671 * gimple-pretty-print.h: Include pretty-print.h.
21672
21673 * tree-pretty-print.c: Do not include diagnostic.h.
21674 * tree-vrp.c: Likewise.
21675 * tree-tailcall.c: Likewise
21676 * tree-scalar-evolution.c: Likewise
21677 * tree-ssa-dse.c: Likewise
21678 * tree-chrec.c: Likewise
21679 * tree-ssa-sccvn.c: Likewise
21680 * tree-ssa-copyrename.c: Likewise
21681 * tree-nomudflap.c: Likewise
21682 * tree-call-cdce.c: Likewise
21683 * tree-stdarg.c: Likewise
21684 * tree-ssa-math-opts.c: Likewise
21685 * tree-nrv.c: Likewise
21686 * tree-ssa-sink.c: Likewise
21687 * tree-browser.c: Likewise
21688 * tree-ssa-loop-ivcanon.c: Likewise
21689 * tree-ssa-loop.c: Likewise
21690 * tree-parloops.c: Likewise
21691 * tree-ssa-address.c: Likewise
21692 * tree-ssa-ifcombine.c: Likewise
21693 * tree-if-conv.c: Likewise
21694 * tree-data-ref.c: Likewise
21695 * tree-affine.c: Likewise
21696 * tree-ssa-phiopt.c: Likewise
21697 * tree-ssa-coalesce.c: Likewise
21698 * tree-ssa-pre.c: Likewise
21699 * tree-ssa-live.c: Likewise
21700 * tree-predcom.c: Likewise
21701 * tree-ssa-forwprop.c: Likewise
21702 * tree-ssa-dce.c: Likewise
21703 * tree-ssa-ter.c: Likewise
21704 * tree-ssa-loop-prefetch.c: Likewise
21705 * tree-optimize.c: Likewise
21706 * tree-ssa-phiprop.c: Likewise
21707 * tree-object-size.c: Likewise
21708 * tree-outof-ssa.c: Likewise
21709 * tree-ssa-structalias.c: Likewise
21710 * tree-switch-conversion.c: Likewise
21711 * tree-ssa-reassoc.c: Likewise
21712 * tree-ssa-operands.c: Likewise
21713 * tree-vectorizer.c: Likewise
21714 * tree-vect-data-refs.c: Likewise
21715 * tree-vect-generic.c: Likewise
21716 * tree-vect-stmts.c: Likewise
21717 * tree-vect-patterns.c: Likewise
21718 * tree-vect-slp.c: Likewise
21719 * tree-vect-loop.c: Likewise
21720 * tree-ssa-loop-ivopts.c: Likewise
21721 * tree-ssa-loop-im.c: Likewise
21722 * tree-ssa-loop-niter.c: Likewise
21723 * tree-ssa-loop-unswitch.c: Likewise
21724 * tree-ssa-loop-manip.c: Likewise
21725 * tree-ssa-loop-ch.c: Likewise
21726 * tree-dump.c: Likewise
21727 * tree-complex.c: Likewise
21728
21729 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
21730 * tree-ssa-uninit.c: Likewise
21731 * tree-ssa-threadupdate.c: Likewise
21732 * tree-ssa-uncprop.c: Likewise
21733 * tree-ssa-ccp.c: Likewise
21734 * tree-ssa-dom.c: Likewise
21735 * tree-ssa-propagate.c: Likewise
21736 * tree-ssa-alias.c: Likewise
21737 * tree-dfa.c: Likewise
21738 * tree-cfgcleanup.c: Likewise
21739 * tree-sra.c: Likewise
21740 * tree-ssa-copy.c: Likewise
21741 * tree-ssa.c: Likewise
21742 * tree-profile.c: Likewise
21743 * tree-cfg.c: Likewise
21744 * tree-ssa-threadedge.c: Likewise
21745 * tree-vect-loop-manip.c: Likewise
21746
21747 * tree-inline.c: Do not include diagnostic.h and expr.h.
21748 Include rtl.h.
21749 (copy_decl_for_dup_finish): Do not use NULL_RTX.
21750
21751 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
21752 * tree-loop-distribution.c: Likewise.
21753
21754 2010-06-01 Jan Hubicka <jh@suse.cz>
21755
21756 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
21757
21758 2010-06-01 Jan Hubicka <jh@suse.cz>
21759
21760 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
21761 remove return value.
21762 (split_bbs_on_noreturn_calls) .... here.
21763 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
21764 * tree-flow.h (fixup_noreturn_call): New.
21765
21766 2010-06-01 Jan Hubicka <jh@suse.cz>
21767
21768 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
21769
21770 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
21771
21772 * tree.h (build_nt_call_list): Delete.
21773 * tree.c (build_nt_call_list): Delete.
21774
21775 2010-06-01 Jan Hubicka <jh@suse.cz>
21776
21777 * fwprop.c: Make emit-rtl.h include last.
21778 * rtlanal.c: Include emit-rtl.h.
21779 * genautomata.c: Output emit-rtl include into insn-automata.c
21780 * df-scan.c: Include emit-rtl.h.
21781 * haifa-sched.c: Indlude emit-rtl.h.
21782 * mode-switching.c: Indlude emit-rtl.h.
21783 * graph.c: Indlude emit-rtl.h.
21784 * sel-sched.c: Include emit-rtl.h.
21785 * sel-sched-ir.c: Include emit-rtl.h.
21786 * ira-build.c: Include emit-rtl.h.
21787 * emit-rtl.c (first_insn, last_insn): Remove defines.
21788 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
21789 Move to emit-rtl.h.
21790 (set_new_first_and_last_insn, get_last_insn_anywhere,
21791 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
21792 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
21793 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
21794 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
21795 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
21796 Use accessor functions.
21797 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
21798 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
21799 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
21800 mem_expr_equal_p): Move here from rtl.h.
21801 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
21802 Move here from emit-rtl.c; make inline.
21803 * cfglayout.h: Include emit-rtl.h.
21804 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
21805 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
21806 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
21807 mem_expr_equal_p, get_insns, set_first-insn,
21808 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
21809 * reg-stack.c: Include emit-rtl.h.
21810 * dce.c: Likewise.
21811
21812 2010-06-01 Jan Hubicka <jh@suse.cz>
21813
21814 * cgraph.h (tree_function_versioning): Update prototype.
21815 (cgraph_function_versioning): Update prototype.
21816 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
21817 bitmap.
21818 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
21819 (cgraph_materialize_clone, save_inline_function_body): Update use of
21820 tree_function_versioning.
21821 * tree-inline.c (copy_bb): Look for previous copied block to link
21822 after; fix debug output.
21823 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
21824 (copy_body): Likewise.
21825 (expand_call_inline): Update use of copy_body.
21826 (tree_function_versioning): Update use of copy body; accept
21827 blocks_to_copy and new_entry.
21828
21829 2010-06-01 Jan Hubicka <jh@suse.cz>
21830
21831 * gegenrtl.c: Remove unnecesary prototypes.
21832 (gendecl): Remove.
21833 (gendef): Produce static inline.
21834 (gencode): Remove.
21835 (main): Do not decode parameters; generate header only.
21836 * Makefile.in (genrtl.c): Remove.
21837
21838 2010-06-01 Jan Hubicka <jh@suse.cz>
21839
21840 * tree-switch-conversion.c (build_one_array): Make it readonly.
21841
21842 2010-06-01 Richard Guenther <rguenther@suse.de>
21843
21844 * optabs.c (init_optabs): Guard all accesses to reinit.
21845 * ipa-pure-const.c (propagate): Fix another typo.
21846 * opts.c (common_handle_option): Split assignment to bool.
21847 * c-opts.c (c_common_handle_option): Likewise.
21848
21849 2010-06-01 Arnaud Charlet <charlet@adacore.com>
21850 Matthew Gingell <gingell@adacore.com>
21851
21852 * doc/invoke.texi: Mention -fdump-ada-spec.
21853 * tree-dump.c (dump_files): Add ada-spec.
21854 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
21855 * tree-pass.h (tree_dump_index): Add TDI_ada.
21856 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
21857 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
21858 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
21859 * c-decl.c: Include c-ada-spec.h.
21860 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
21861 functions.
21862 (c_write_global_declarations): Add handling of -fdump-ada-spec.
21863 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
21864 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
21865 * c-ada-spec.h, c-ada-spec.c: New files.
21866
21867 2010-06-01 Richard Guenther <rguenther@suse.de>
21868
21869 PR lto/43853
21870 * ipa-pure-const.c (get_function_state): Hand back varying state
21871 if we do not have one.
21872 (has_function_state): New function.
21873 (duplicate_node_data): Adjust.
21874 (remove_node_data): Likewise.
21875 (pure_const_write_summary): Likewise.
21876 (propagate): Likewise. Fix typo.
21877
21878 2010-06-01 Jan Hubicka <jh@suse.cz>
21879
21880 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
21881 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
21882 (execute_all_ipa_transforms): Do not play with the states.
21883
21884 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
21885
21886 * config/arm/t-linux-androideabi: New.
21887 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
21888
21889 2010-06-01 Jan Hubicka <jh@suse.cz>
21890
21891 * tree-inline.c (estimate_num_insns): For stdarg functions look
21892 into call statement to count cost of argument passing.
21893
21894 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
21895
21896 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
21897 argument for fprintf.
21898 (ix86_output_addr_diff_elt): Likewise.
21899 (x86_function_profiler): Likewise.
21900 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
21901 (LPREFIX): Likewise.
21902 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
21903
21904 2010-05-31 Jakub Jelinek <jakub@redhat.com>
21905
21906 PR target/44338
21907 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
21908 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
21909 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
21910 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
21911 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
21912 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
21913 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
21914 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
21915 TARGET_FUSED_MADD.
21916
21917 2010-05-31 Jan Hubicka <jh@suse.cz>
21918
21919 * tree.h (tree_range_check_failed): Declare noreturn.
21920
21921 2010-05-31 Jan Hubicka <jh@suse.cz>
21922
21923 * gimple.c (gimple_call_builtin_p): New function.
21924 * gimple.h (gimple_call_builtin_p): Declare.
21925 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
21926 to exit.
21927 (execute_warn_function_return): BUILT_IN_RETURN is return.
21928 (split_critical_edges): Return edges are not critical.
21929 (is_ctrl_altering_stmt): Builtin_in_return is altering.
21930 (gimple_verify_flow_info): Handle built_in_return.
21931 (execute_warn_function_return): Handle built_in_return.
21932 * ipa-pure-const.c (check_call): Ignore builtin_return.
21933
21934 2010-05-31 Jakub Jelinek <jakub@redhat.com>
21935
21936 PR middle-end/44337
21937 * expr.c (expand_assignment): Don't store anything for out-of-bounds
21938 array accesses with non-MEM.
21939
21940 PR tree-optimization/44182
21941 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
21942 newly needs to end a bb is followed by debug stmts, instead return
21943 true from the function at the end.
21944 (maybe_move_debug_stmts_to_successors): New function.
21945 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
21946
21947 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
21948
21949 PR target/44161
21950 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
21951
21952 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
21953
21954 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
21955 for nested functions in non-optimized compilation.
21956
21957 2010-05-31 Richard Guenther <rguenther@suse.de>
21958
21959 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
21960
21961 2010-05-30 Jan Hubicka <jh@suse.cz>
21962
21963 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
21964
21965 2010-05-30 Richard Guenther <rguenther@suse.de>
21966
21967 PR lto/42975
21968 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
21969 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
21970 no longer needed.
21971
21972 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
21973
21974 * config/darwin.c (output_objc_section_asm_op): Add comment.
21975 (name_needs_quotes): Add '_' to list of valid comment chars.
21976 (machopic_output_function_base_name): Remove unneeded quotes.
21977 (darwin_encode_section_info): Adjust asm whitespace.
21978 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
21979 (ASM_OUTPUT_LOCAL): Ditto.
21980 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
21981 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
21982 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
21983
21984 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
21985
21986 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
21987 RS6000_OUTPUT_BASENAME unconditionally.
21988 (rs6000_output_function_epilogue): Likewise.
21989
21990 2010-05-30 Jan Hubicka <jh@suse.cz>
21991
21992 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
21993 nodes.
21994
21995 2010-05-30 Richard Guenther <rguenther@suse.de>
21996
21997 * tree-cfg.c (verify_gimple_assign_single): Implement
21998 verification for COND_EXPR rhs.
21999
22000 2010-05-30 Jan Hubicka <jh@suse.cz>
22001
22002 * cgraph.h (cgraph_dump_file): Declare.
22003 * cgraphunit.c (cgraph_dump_file): Export.
22004 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
22005
22006 2010-05-30 Jan Hubicka <jh@suse.cz>
22007
22008 * dwarf2out.c (reference_to_unused,
22009 premark_types_used_by_global_vars_helper): Avoid creation of new
22010 varpool nodes.
22011
22012 2010-05-30 Jan Hubicka <jh@suse.cz>
22013
22014 * cgraph.h (cgraph_node_cannot_return,
22015 cgraph_edge_cannot_lead_to_return): New functions.
22016 * cgraph.c (cgraph_node_cannot_return,
22017 cgraph_edge_cannot_lead_to_return): Use them.
22018 * ipa-pure-const.c (pure_const_names): New static var.
22019 (check_call): Handle calls not leading to return.
22020 (pure_const_read_summary): Dump info read.
22021 (propagate): Dump info about propagation process; ignore side effects
22022 of functions not leading to exit; fix handling of pure functions.
22023
22024 2010-05-30 Jan Hubicka <jh@suse.cz>
22025
22026 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
22027 for tail call epilogues.
22028
22029 2010-05-30 Jan Hubicka <jh@suse.cz>
22030
22031 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
22032 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
22033 dump files.
22034
22035 2010-05-29 Jan Hubicka <jh@suse.cz>
22036
22037 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
22038 node; remove references in node we no longer keep in cgrpah but need
22039 body of.
22040
22041 2010-05-29 Jan Hubicka <jh@suse.cz>
22042
22043 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
22044
22045 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22046
22047 PR target/44165
22048 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
22049
22050 2010-05-29 Jan Hubicka <jh@suse.cz>
22051
22052 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
22053 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
22054 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
22055 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
22056 debug_names_replaced_by, debug_update_ssa): Likewise.
22057 * sbitmap.c (debug_sbitmap): Likewise.
22058 * genrecog.c (debug_decision, debug_decision_list): Likewise.
22059 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
22060 debug_tree_chain): Likewise.
22061 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
22062 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
22063 * optabs.c (debug_optab_libfuncs): Likewise.
22064 (verify_loop_closed_ssa): Likewise.
22065 * value-prof.c (verify_histograms): Likewise.
22066 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
22067 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
22068 * cfghooks.c (verify_flow_info): Likewise.
22069 * fold-const.c (debug_fold_checksum): Likewise.
22070 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
22071 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
22072 Likewise.
22073 * omega.c (debug_omega_problem): Likewise.
22074 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
22075 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
22076 * dominance.c (verify_dominators, debug_dominance_info,
22077 debug_dominance_tree): Likewise.
22078 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
22079 * df_regno_debug, df_ref_debug,
22080 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
22081 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
22082 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
22083 * sel-sched.c (debug_state): Likewise.
22084 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
22085 Likewise.
22086 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
22087 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
22088 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
22089 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
22090 Likewise.
22091 * c-pretty-print.c (debug_c_tree): Likewise.
22092 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
22093 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
22094 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
22095 * ebitmap.c (debug_ebitmap): Likewise.
22096 * function.c (debug_find_var_in_block_tree): Likewise.
22097 * print-rtl.c (debug_rtx): Likewise.
22098 (debug_rtx_count): Likewise.
22099 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
22100 * stor-layout.c (debug_rli): Likewise.
22101 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
22102 * tree-data-ref.c (debug_data_references,
22103 debug_data_dependence_relations, debug_data_reference,
22104 debug_data_dependence_relation, debug_rdg_vertex,
22105 debug_rdg_component, debug_rdg): Likewise.
22106 * tree-affine.c (debug_aff): Likewise.
22107 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
22108 Likewise.
22109 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
22110 * emit-rtl.c (verify_rtl_sharing): Likewise.
22111 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
22112 debug_value_expressions): Likewise.
22113 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
22114 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
22115 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
22116 * cfglayout.c (verify_insn_chain): Likewise.
22117 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
22118 debug_clast_stmt, debug_generated_program): Likewise.
22119 * ggc-page.c (debug_print_page_list): Likewise.
22120 * tree-ssa-ter.c (debug_ter): Likewise.
22121 * graphite-dependences.c (debug_pddr): Likewise.
22122 * sched-deps.c (debug_ds): Likewise.
22123 * tree-ssa.c (verify_ssa): Likewise.
22124 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
22125 debug_scattering_functions, debug_iteration_domains, debug_pdr,
22126 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
22127 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
22128 * tree-inline.c (debug_find_tree): Likewise.
22129 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
22130 debug_ppl_powerset_matrix): Likewise.
22131 * var-tracking.c (debug_dv): Likewise.
22132 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
22133 * cfgloop.c (verify_loop_structure): Likewise.
22134 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
22135 * c-common.c (verify_sequence_points): Likewise.
22136 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
22137 debug_candidates, debug_rgn_dependencies): Likewise.
22138 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
22139 * debug_constraint_graph, debug_solution_for_var,
22140 debug_sa_points_to_info): Likewise.
22141 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
22142 Likewie.
22143 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
22144 debug_loops, debug_loop, debug_loop_num): Likewise.
22145 * passes.c (debug_pass): Likewise.
22146 (dump_properties): Likewise; add cfglayout property.
22147 (debug_properties): Likewise.
22148 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
22149 * varpool.c (debug_varpool): Likewise.
22150 * regcprop.c (debug_value_data): Likewise.
22151 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
22152 debug_immediate_uses_for): Likewise.
22153
22154 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
22155
22156 PR bootstrap/44315
22157 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
22158 Filter out insn-flags.h.
22159
22160 2010-05-29 Jan Hubicka <jh@suse.cz>
22161
22162 * cgraph.h (struct varpool_node_set_def,
22163 struct cgraph_node_set_def): Remove unused AUX pointer.
22164 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
22165 VEC_empty macro.
22166
22167 2010-05-29 Jan Hubicka <jh@suse.cz>
22168
22169 PR middle-end/44324
22170 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
22171
22172 2010-05-29 Richard Guenther <rguenther@suse.de>
22173
22174 * lto-streamer.c (cached_bp): New global variable.
22175 (bitpack_create): Return the cached bitpack, if available.
22176 (bitpack_delete): Clear and cache the bitpack, if appropriate.
22177 (bp_pack_value): Remove redundant asserts.
22178
22179 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
22180
22181 PR middle-end/44306
22182 * tree-if-conv.c (is_true_predicate): New.
22183 (is_predicated): Use is_true_predicate.
22184 (add_to_predicate_list): Same. Do not use unshare_expr.
22185 (add_to_dst_predicate_list): Same.
22186
22187 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
22188
22189 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
22190 field on edges.
22191 (predicate_bbs): Same.
22192 (clean_predicate_lists): Same.
22193 (find_phi_replacement_condition): Do not AND the predicate from
22194 edge->aux.
22195
22196 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
22197
22198 PR bootstrap/44315
22199 * Makefile.in (build/gencondmd.o): Add a missing `\'.
22200
22201 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
22202
22203 PR target/44261
22204 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
22205 (negdf2): Adjust expander pattern and use negdf2_slow.
22206 (negsf2): Likewise.
22207
22208 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
22209
22210 * basic-block.h (struct control_flow_graph): Move last_label_uid field
22211 up.
22212 * df.h (struct df_base_ref): Move regno field up.
22213 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
22214 * expr.h (struct separate_ops): Move location field up.
22215 * optabs.h (struct optab_d): Move libcall_basename field down.
22216 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
22217 * config/i386/i386.h (struct machine_function): Convert call_abi field
22218 into a bitfield. Move cfa field to the end of the structure.
22219
22220 2010-05-29 Jan Hubicka <jh@suse.cz>
22221
22222 * varpool.c (varpool_get_node): Fix lookup.
22223
22224 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
22225
22226 * config/spu/spu-protos.h: Do not include rtl.h. Protect
22227 RTL specific prototypes with #ifdef RTX_CODE.
22228 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
22229 * config/spu/t-spu-elf: Fix dependencies.
22230
22231 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
22232
22233 2010-05-29 Mike Stump <mikestump@comcast.net>
22234
22235 PR bootstrap/44315
22236 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
22237 TM_H when building to avoid dependency loops.
22238
22239 2010-05-29 Jan Hubicka <jh@suse.cz>
22240
22241 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
22242 refs and body; not the whole node for masters of materialized clones.
22243
22244 2010-05-29 Mike Stump <mikestump@comcast.net>
22245
22246 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
22247
22248 2010-05-29 Jan Hubicka <jh@suse.cz>
22249
22250 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
22251 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
22252 use of clone_function_name.
22253 * cgraph.h (cgraph_create_virtual_clone,
22254 cgraph_function_versioning): update prototypes.
22255 (clone_function_name): Declare.
22256 * ipa-cp.c (ipcp_insert_stage): Update call of
22257 cgraph_create_virtual_clone.
22258 * omp-low.c (create_omp_child_function_name): Use
22259 cgraph_create_virtual_clone.
22260 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
22261 (cgraph_function_versioning): Take SUFFIX argument; produce new name
22262 and make decl local.
22263
22264 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
22265
22266 * vec.h: Include statistics.h
22267 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
22268 with VEC_H.
22269
22270 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
22271
22272 * c-lex.c: Do not include c-tree.h.
22273 * c-pretty-print.c: Likewise.
22274 * c-opts.c: Likewise.
22275 * c-gimplify.c: Likewise.
22276 * c-common.c: Likewise.
22277 * c-dump.c: Likewise. Include c-common.h.
22278
22279 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
22280
22281 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
22282 before including diagnostic-core.h.
22283 (c_cpp_error): New prototype moved from c-tree.h.
22284 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
22285 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
22286 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
22287 (c_cpp_error): Prototype moved to c-common.h.
22288 * Makefile.in: Update dependency for C_COMMON_H.
22289
22290 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
22291
22292 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
22293 * c-common.c (c_register_addr_space): Remove here.
22294 * c-decl.c (c_register_addr_space): Re-add here.
22295
22296 2010-05-28 Mike Stump <mikestump@comcast.net>
22297
22298 * config/darwin-c.c: Remove c-tree.h include.
22299
22300 2010-05-28 Joseph Myers <joseph@codesourcery.com>
22301
22302 * gcc.c: Include diagnostic.h.
22303 (error_count): Remove. All users changed to use errorcount.
22304 (programname): Remove. All users changed to use progname.
22305 (fancy_abort, internal_error, fatal_error, error, warning, inform,
22306 fnotice): Remove.
22307 (execute): Don't include "Internal error" and bug reporting
22308 information in argument of internal_error call.
22309 (process_command): Don't increment error_count after calling
22310 perror_with_name.
22311 (input_filename): Rename to gcc_input_filename. All users
22312 changed.
22313 (main): Call diagnostic_initialize. Register delete_temp_files
22314 with atexit. Use seen_error to test for errors.
22315 * gcc.h: Include diagnostic-core.h.
22316 (fatal_error, error, warning): Remove.
22317 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
22318 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
22319 (gcc.o): Update dependencies.
22320
22321 2010-05-28 Jeff Law <law@redhat.com>
22322
22323 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
22324 functions.
22325 * ira.h (ira_bad_reload_regno): Declare
22326 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
22327
22328 * ira-color.c (update_curr_costs): Free updated hard reg costs.
22329 (ira_reassign_conflict_allocnos): Remove bogus asserts.
22330 (allocno_reload_assign): Likewise.
22331
22332 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
22333
22334 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
22335 build1_stat.
22336
22337 2010-05-28 Richard Guenther <rguenther@suse.de>
22338
22339 PR lto/44312
22340 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
22341 Stream fixed-point constants mode.
22342 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
22343 and TYPE_PRECISION.
22344 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
22345 Stream fixed-point constants mode.
22346 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
22347 and TYPE_PRECISION.
22348
22349 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
22350
22351 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
22352 only place it was called from.
22353 (number_of_latch_executions): Do not return chrec_dont_know when the
22354 may_be_zero is a runtime condition: instead, return a COND_EXPR
22355 including the may_be_zero condition.
22356 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
22357 of nb_iterations.
22358 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
22359 COND_EXPRs.
22360
22361 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
22362
22363 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
22364 generate COND_EXPRs for degenerate_phi_result.
22365
22366 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
22367
22368 PR middle-end/44293
22369 * tree-if-conv.c (if_convertible_loop_p): Check the
22370 if-convertibility of phi nodes in non predicated BBs.
22371
22372 2010-05-28 Joseph Myers <joseph@codesourcery.com>
22373
22374 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
22375
22376 2010-05-28 Joseph Myers <joseph@codesourcery.com>
22377
22378 PR driver/15303
22379 * gcc.c (inform, warning, inform): New functions.
22380 (fatal_ice): Rename to internal_error; change cmsgid parameter to
22381 gmsgid. All callers changed.
22382 (notice): Rename to fnotice; add parameter fp. All callers changed.
22383 (fatal_error): Rename to fatal_signal. All users changed.
22384 (fatal): Rename to fatal_error; change cmsgid parameter to
22385 gmsgid. All callers changed.
22386 (process_command): Use warning instead of error for warnings.
22387 (end_going_arg): Don't use _() around argument of error.
22388 (do_spec_1): Use inform for message from %n specs. Use warning
22389 instead of error for warnings.
22390 (main): Use inform for comparison messages. Use warning for
22391 message about unused linker input.
22392 (error): Increment error_count. Print "error: ".
22393 * gcc.h (fatal): Change to fatal_error.
22394 (warning): Declare.
22395 * config/darwin-driver.c (darwin_default_min_version): Use warning
22396 instead of fprintf for warnings.
22397 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
22398
22399 2010-05-28 Julian Brown <julian@codesourcery.com>
22400
22401 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
22402 (*thumb2_addsi3_compare0_scratch): New.
22403 * config/arm/constraints.md (Pv): New.
22404 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
22405 for ARM mode only.
22406 (*addsi3_compare0_scratch): Likewise.
22407
22408 2010-05-28 Jan Hubicka <jh@suse.cz>
22409
22410 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
22411 check.
22412 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
22413 only on local statics.
22414
22415 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
22416
22417 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
22418
22419 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
22420
22421 PR bootstrap/44314
22422 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
22423 (OPTION_GLIBC): Define.
22424
22425 2010-05-28 Jakub Jelinek <jakub@redhat.com>
22426
22427 PR debug/41048
22428 * dwarf2out.c (double_int_type_size_in_bits): New function.
22429 (round_up_to_align): Change first argument and return value to
22430 double_int.
22431 (field_byte_offset): Work internally on double_ints.
22432
22433 PR target/43636
22434 * builtins.c (expand_movstr): Use a temporary pseudo instead
22435 of target even when target is not NULL and not const0_rtx, but
22436 fails movstr predicate.
22437 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
22438
22439 2010-05-28 Joseph Myers <joseph@codesourcery.com>
22440
22441 * final.c (rest_of_clean_state): Use %m in errors instead of
22442 strerror (errno).
22443 * gengtype.c (read_input_list, close_output_files): Use xstrerror
22444 instead of strerror.
22445 * toplev.c (process_options): Use %m in errors instead of strerror
22446 (errno).
22447 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
22448 (errno).
22449
22450 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
22451
22452 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
22453 (ix86_canonical_va_list_type): Make static. Add declaration.
22454 (ix86_enum_va_list): Make static. Reindent.
22455 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
22456 (ix86_canonical_va_list_type): Ditto.
22457 (ix86_enum_va_list): Ditto.
22458
22459 2010-05-28 Richard Guenther <rguenther@suse.de>
22460
22461 * lto-wrapper.c (run_gcc): With -save-temps generate a
22462 user-visible ltrans filename. Fixup ltrans unit numbering.
22463
22464 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
22465
22466 * c-common.c (c_common_nodes_and_builtins): Replace use
22467 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
22468 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
22469 to ix86_enum_va_list.
22470 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
22471 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
22472 (TARGET_ENUM_VA_LIST_P): Add hook description.
22473 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
22474 * target.h (gcc_target): Add enum_va_list hook.
22475
22476 PR bootstrap/44299
22477 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
22478 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
22479 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
22480
22481 2010-05-28 Alan Modra <amodra@gmail.com>
22482
22483 PR target/44266
22484 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
22485 emit_library_call machinery to set up __tls_get_addr calls.
22486
22487 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22488
22489 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
22490
22491 2010-05-28 Dodji Seketeli <dodji@redhat.com>
22492
22493 Revert fix for PR c++/44188
22494 * c-common.c (is_typedef_decl): Revert the moving of this
22495 definition ...
22496 * tree.c (is_typedef_decl): ... here.
22497 (typdef_variant_p): Revert the moving of this definition
22498 here from cp/tree.c.
22499 * c-common.h (is_typedef_decl): Revert the moving of this
22500 declaration ...
22501 * tree.h (is_typedef_decl): ... here.
22502 (typedef_variant_p): Revert the moving of this declaration here
22503 from cp/cp-tree.h
22504 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
22505 (gen_tagged_type_die): Revert the splitting out of ...
22506 (gen_type_die_with_usage): ... this function. Revert the anonymous
22507 tagged type handling.
22508 (gen_typedef_die): Revert emitting DW_TAG_typedef for
22509 typedefs naming anonymous tagged types.
22510
22511 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
22512
22513 * config/rs6000/rs6000-modes.def (PSImode): Delete.
22514
22515 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
22516
22517 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
22518 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
22519 throughout.
22520 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
22521 "xer" to "ca".
22522 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
22523 XER_REGS to CA_REGS throughout.
22524 * config/rs6000/rs6000.h: Same.
22525 (ADDITIONAL_REGISTER_NAMES): Add "xer".
22526 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
22527 that mode_iterator "P" is the size for arithmetic carries as well.
22528 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
22529
22530 2010-05-28 Jakub Jelinek <jakub@redhat.com>
22531
22532 PR bootstrap/44255
22533 * combine.c (struct rtx_subst_pair): Define unconditionally.
22534 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
22535 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
22536 Call make_compound_operation on pair->to.
22537 (propagate_for_debug): Don't call make_compound_operation here.
22538 Always use simplify_replace_fn_rtx.
22539
22540 2010-05-27 Sterling Augustine <sterling@tensilica.com>
22541
22542 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
22543 * config/xtensa/xtensa.c (override_options): Check
22544 TARGET_FORCE_NO_PIC and set flag_pic.
22545 * config/xtensa/xtensa.opt: Document -mforce-no-pic
22546
22547 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
22548
22549 PR bootstrap/44299
22550 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
22551 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
22552
22553 2010-05-27 Joseph Myers <joseph@codesourcery.com>
22554
22555 * diagnostic-core.h: New. Contents moved from diagnostic.h and
22556 toplev.h.
22557 * diagnostic.c: Don't include toplev.h.
22558 (progname): Define. Moved from toplev.c.
22559 (seen_error): New function.
22560 * diagnostic.h: Include diagnostic-core.h.
22561 (diagnostic_t, emit_diagnostic): Don't declare here.
22562 * toplev.c (progname): Move to toplev.c.
22563 (emit_debug_global_declarations, compile_file, finalize,
22564 do_compile, toplev_main): Use seen_error.
22565 * toplev.h: Include diagnostic-core.h.
22566 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
22567 internal_error, warning, warning_at, error, error_n, error_at,
22568 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
22569 verbatim, fnotice, progname): Move to diagnostic-core.h.
22570 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
22571 (expand_builtin_expect): Use seen_error.
22572 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
22573 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
22574 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
22575 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
22576 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
22577 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
22578 errorcount for errors.
22579 * c-opts.c (c_common_finish): Use seen_error.
22580 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
22581 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
22582 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
22583 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
22584 (get_coverage_counts): Use seen_error.
22585 * dwarf2out.c (dwarf2out_finish): Use seen_error.
22586 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
22587 gimplify_body): Use seen_error.
22588 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
22589 * ipa-pure-const.c (gate_pure_const): Use seen_error.
22590 * ipa-reference.c (gate_reference): Use seen_error.
22591 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
22592 * lambda-code.c: Include diagnostic-core.h instead of
22593 diagnostic.h.
22594 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
22595 * lto-compress.c: Include diagnostic-core.h instead of
22596 diagnostic.h.
22597 * lto-section-in.c: Include diagnostic-core.h instead of
22598 diagnostic.h.
22599 * lto-streamer-out.c: Include diagnostic-core.h instead of
22600 diagnostic.h.
22601 * lto-streamer.c: Include diagnostic-core.h instead of
22602 diagnostic.h.
22603 (gate_lto_out): Use seen_error.
22604 * matrix-reorg.c: Include diagnostic-core.h instead of
22605 diagnostic.h.
22606 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
22607 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
22608 (gate_expand_omp, lower_omp_1): Use seen_error.
22609 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
22610 (rest_of_decl_compilation, rest_of_type_compilation,
22611 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
22612 * tree-cfg.c (label_to_block_fn): Use seen_error.
22613 * tree-inline.c (optimize_inline_calls): Use seen_error.
22614 * tree-mudflap.c (mudflap_finish_file): Use
22615 seen_error.
22616 * tree-optimize.c (gate_all_optimizations,
22617 gate_all_early_local_passes, gate_all_early_optimizations): Use
22618 seen_error.
22619 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
22620 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
22621 (varpool_remove_unreferenced_decls,
22622 varpool_assemble_pending_decls): Use seen_error.
22623 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
22624 (TOPLEV_H, DIAGNOSTIC_H): Update.
22625 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
22626 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
22627 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
22628 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
22629 coverage.o, lambda-code.o): Update dependencies.
22630
22631 2010-05-25 Dodji Seketeli <dodji@redhat.com>
22632
22633 PR c++/44188
22634 * c-common.c (is_typedef_decl): Move this definition ...
22635 * tree.c (is_typedef_decl): ... here.
22636 (typdef_variant_p): Move definition here from cp/tree.c.
22637 * c-common.h (is_typedef_decl): Move this declaration ...
22638 * tree.h (is_typedef_decl): ... here.
22639 (typedef_variant_p): Move declaration here from cp/cp-tree.h
22640 * dwarf2out.c (is_naming_typedef_decl): New function.
22641 (gen_tagged_type_die): Split out of ...
22642 (gen_type_die_with_usage): ... this function. When an anonymous
22643 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
22644 is emitted for the typedef.
22645 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
22646 anonymous tagged types.
22647
22648 2010-05-27 Jason Merrill <jason@redhat.com>
22649
22650 * print-tree.c (debug_vec_tree): New fn.
22651 (print_vec_tree): New fn.
22652 * tree.h: Declare them.
22653 * gdbinit.in (pvt): New command.
22654
22655 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
22656
22657 * gdbinit.in (pdd): New command.
22658
22659 2010-05-27 Jan Hubicka <jh@suse.cz>
22660
22661 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
22662 (update_caller_keys): Return early if there are no callers;
22663 only update fibheap when decresing the key.
22664 (update_callee_keys): Avoid recursion.
22665 (decide_inlining_of_small_functions): When badness does not match;
22666 re-insert into fibheap.
22667
22668 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
22669
22670 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
22671 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
22672 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
22673 (ALL_HOST_OBJS): Now a union of the above two.
22674 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
22675 all files in ALL_HOST_FRONTEND_OBJS.
22676 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
22677
22678 * c-common.c: Pretend to be a backend file by undefining
22679 IN_GCC_FRONTEND (still need rtl.h here).
22680
22681 2010-05-27 Jan Hubicka <jh@suse.cz>
22682
22683 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
22684 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
22685
22686 2010-05-27 Jan Hubicka <jh@suse.cz>
22687
22688 * sched-ebb.c: Rename struct deps to struct deps_desc.
22689 * ddg.c: Likewise.
22690 * sel-sched-ir.c: Likewise.
22691 * sched-deps.c: Likewise.
22692 * sched-int.h: Likewise.
22693 * sched-rgn.c: Likewise.
22694
22695 2010-05-27 Jon Beniston <jon@beniston.com>
22696
22697 PR 43726
22698 * config/lm32/lm32.h: Remove definition of
22699 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
22700
22701 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
22702
22703 PR lto/44230
22704 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
22705
22706 2010-05-27 Richard Guenther <rguenther@suse.de>
22707
22708 PR tree-optimization/44284
22709 * tree-vect-stmts.c (vectorizable_assignment): Handle
22710 sign-changing conversions as simple copy.
22711
22712 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
22713
22714 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
22715 Bionic C library.
22716 (__gthread_active_p): Check for pthread_create if compiling against
22717 Bionic C library.
22718
22719 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
22720
22721 Support compilation for Android platform. Reimplement -mandroid.
22722
22723 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
22724 (*android*): Set ANDROID_DEFAULT.
22725 (arm*-*-linux*): Include linux-android.h.
22726 (arm*-*-eabi*): Don't include previous -mandroid implementation.
22727 * config/arm/eabi.h: Remove, move Android-specific parts ...
22728 * config/linux-android.h: ... here. New file.
22729 * config/arm/eabi.opt: Rename to ...
22730 * config/linux-android.opt: ... this.
22731 (mandroid): Allow -mno-android option. Initialize based on
22732 ANDROID_DEFAULT.
22733 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
22734 Move logic to corresponding LINUX_TARGET_* macros.
22735 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
22736 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
22737 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
22738 Android definitions.
22739 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
22740 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
22741 Document.
22742
22743 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
22744
22745 Add support for Bionic C library
22746
22747 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
22748 macro.
22749 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
22750 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
22751
22752 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
22753 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
22754 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
22755 to support multiple C libraries. Handle Bionic.
22756 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
22757 (BIONIC_DYNAMIC_LINKER64): Define.
22758 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
22759 Update.
22760 (TARGET_HAS_SINCOS): Enable for Bionic.
22761
22762 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
22763 the last option specified on command line take effect.
22764 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
22765 (mbionic): New.
22766 (mglibc, muclibc): Update.
22767
22768 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
22769 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
22770 DEFAULT_LIBC.
22771
22772 * doc/invoke.texi (-mglibc, -muclibc): Update.
22773 (-mbionic): Document.
22774
22775 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22776
22777 * c-common.h (c_register_addr_space): Add prototype.
22778 (ADDR_SPACE_KEYWORD): Remove.
22779 * c-common.c (c_register_addr_space): New function.
22780 (c_addr_space_name): Reimplement.
22781 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
22782
22783 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
22784 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
22785
22786 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
22787 Remove TARGET_ADDR_SPACE_KEYWORDS.
22788
22789 2010-05-27 Joseph Myers <joseph@codesourcery.com>
22790
22791 * input.c: New file.
22792 * input.h (main_input_filename): Move declaration to toplev.h.
22793 * toplev.c (input_location, line_table): Move to input.c
22794 * toplev.h (main_input_filename): Move declaration from input.h.
22795 * tree.c (expand_location): Move to input.c.
22796 * Makefile.in (OBJS-common): Add input.o.
22797 (input.o): Add dependencies.
22798
22799 2010-05-27 Richard Guenther <rguenther@suse.de>
22800
22801 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
22802 for non-existant files.
22803 (fork_execute): Mark args_name file as deleted.
22804
22805 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
22806
22807 PR bootstrp/44287
22808 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
22809 (narrow_signed_type): Likewise.
22810
22811 2010-05-26 Jan Hubicka <jh@suse.cz>
22812
22813 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
22814 edge only when checking is enabled; check using former_clone_of;
22815 check inline clones too.
22816 (cgraph_materialize_clone): Record former_clone_of pointer.
22817 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
22818 combining redirections; dump args_to_skip bitmap
22819 (cgraph_materialize_all_clones): Do no redirection here.
22820 * ipa-inline.c (inline_transform): Do redirection here.
22821 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
22822 cheking only).
22823
22824 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
22825
22826 * config/avr/avr-c.c: Do not include regs.h.
22827 Include cpplib.h for cpp_define and tree.h for c-common.h.
22828 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
22829 * config/avr/t-avr: Fix dependencies for avr-c.o.
22830
22831 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
22832
22833 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
22834 string instead of SYMBOL_REF rtx.
22835 * rtl.h (set_stack_check_libfunc): Move prototype from here...
22836 * libfuncs.h: ...to here. Adjust for explow.c change.
22837
22838 2010-05-26 Joseph Myers <joseph@codesourcery.com>
22839
22840 * pretty-print.c: Don't include ggc.h.
22841 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
22842 (identifier_to_locale): Use them for allocation.
22843 * pretty-print.h (identifier_to_locale_alloc,
22844 identifier_to_locale_free): Declare.
22845 * toplev.c (alloc_for_identifier_to_locale): New.
22846 (general_init): Set identifier_to_locale_alloc and
22847 identifier_to_locale_free.
22848 * Makefile.in (pretty-print.o): Update dependencies.
22849
22850 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
22851
22852 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
22853 pointer types if they have different alignment or mode.
22854
22855 2010-05-26 Anatoly Sokolov <aesok@post.ru>
22856
22857 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
22858 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
22859 * config/sparc/sparc-protos.h (function_value): Remove declaration.
22860 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
22861 sparc_function_value_regno_p): New functions.
22862 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
22863 TARGET_FUNCTION_VALUE_REGNO_P): Define.
22864 (function_value): Rename to...
22865 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
22866 argument to 'outgoing'.
22867 (function_arg_record_value, function_arg_union_value,
22868 function_arg_vector_value): Update comment.
22869
22870 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
22871
22872 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
22873 (fde_needed_for_eh_p): New predicate.
22874 (output_call_frame_info): Use it throughout to decide whether FDEs
22875 are needed for EH purpose.
22876 (dwarf2out_begin_prologue): Reorder assignments.
22877
22878 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22879
22880 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
22881 special case loop->header.
22882 (is_predicated): New.
22883 (if_convertible_loop_p): Call it.
22884
22885 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22886
22887 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
22888 iterator in parameter. Do not generate code during the analysis.
22889 (tree_if_convert_cond_stmt): Removed.
22890 (tree_if_convert_stmt): Removed.
22891 (predicate_bbs): New.
22892 (if_convertible_loop_p): Call predicate_bbs.
22893 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
22894 now contains all the analysis part.
22895
22896 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22897
22898 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
22899 statements in the analysis part.
22900 (tree_if_convert_stmt): Update comment.
22901 (remove_conditions_and_labels): New.
22902 (combine_blocks): Call remove_conditions_and_labels.
22903 (tree_if_conversion): Update comment.
22904
22905 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22906
22907 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
22908 than 2 predecessors or more than 2 successors.
22909
22910 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22911
22912 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
22913 of loops in which the data dependence analysis fails.
22914
22915 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22916
22917 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
22918 CDI_POST_DOMINATORS.
22919 (tree_if_conversion): Same.
22920
22921 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22922
22923 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
22924
22925 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22926
22927 * tree-if-conv.c: Update copyright years. Fix comments.
22928 Fix indentation.
22929
22930 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
22931
22932 * builtin-types.def (BT_INT128): New primitive type.
22933 (BT_UINT128): Likewise.
22934 * c-common.c (c_common_r): Add __int128 keyword.
22935 (c_common_type_for_size): Handle __int128.
22936 (c_common_type_for_mode): Likewise.
22937 (c_common_signed_or_unsigned_type): Likewise.
22938 (c_common_nodes_and_builtins): Add builtin type
22939 if target supports 128-bit integer scalar.
22940 * c-common.h (enum rid): Add RID_INT128.
22941 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
22942 if target supports 128-bit integer scalar.
22943 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
22944 (finish_declspecs): Likewise.
22945 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
22946 (c_token_starts_declspecs): Likewise.
22947 (c_parser_declspecs): Likewise.
22948 (c_parser_attributes): Likewise.
22949 (c_parser_objc_selector): Likewise.
22950 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
22951 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
22952 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
22953 * tree.c (make_or_reuse_type): Likewise.
22954 (make_unsigned_type): Likewise.
22955 (build_common_tree_nodes_2): Likewise.
22956 * tree.h (enum integer_type_kind): Add itk_int128 and
22957 itk_unsigned_int128.
22958 (int128_integer_type_node): New define.
22959 (int128_unsigned_type_node): New define.
22960 * doc/extend.texi: Add documentation about __int128 type.
22961
22962 2010-05-26 Richard Guenther <rguenther@suse.de>
22963
22964 * tree-ssa-sccvn.c (copy_nary): Adjust.
22965 (copy_phis): Rename to ...
22966 (copy_phi): ... this. Adjust.
22967 (copy_references): Rename to ...
22968 (copy_reference): ... this. Adjust.
22969 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
22970 result into the valid table.
22971
22972 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
22973
22974 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
22975 insn-config.h, insn-codes.h, recog.h, and optabs.h.
22976
22977 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
22978
22979 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
22980
22981 2010-05-26 Richard Guenther <rguenther@suse.de>
22982
22983 * opts.c (common_handle_option): Handle OPT_Ofast.
22984
22985 2010-05-26 Joseph Myers <joseph@codesourcery.com>
22986
22987 * diagnostic.c: Don't include opts.h.
22988 (permissive_error_option): Define.
22989 (diagnostic_initialize): Take n_opts parameter. Allocate memory
22990 for classify_diagnostic. Don't use memset for
22991 classify_diagnostic. Initialize new and recently added fields.
22992 (diagnostic_classify_diagnostic): Use context->n_opts instead of
22993 N_OPTS.
22994 (diagnostic_report_diagnostic): Pass context parameter to
22995 diagnostic_report_warnings_p. Use option_enabled and option_name
22996 hooks from context.
22997 (emit_diagnostic): Use permissive_error_option.
22998 (permerror): Likewise.
22999 * diagnostic.h: Don't include options.h.
23000 (struct diagnostic_context): Add n_opts, opt_permissive,
23001 inhibit_warnings, warn_system_headers, option_enabled and
23002 option_name fields. Change classify_diagnostic to a pointer.
23003 * opts-diagnostic.h: New file.
23004 * opts.c: Include opts-diagnostic.h.
23005 (common_handle_option): Set global_dc fields for -Wfatal-errors,
23006 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
23007 (option_name): New function.
23008 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
23009 (c_common_handle_option): Set global_dc->permissive for
23010 -fpermissive.
23011 * c-common.c (c_cpp_error): Save and restore
23012 global_dc->warn_system_headers, not variable warn_system_headers.
23013 * toplev.c: Include opts-diagnostic.h.
23014 (general_init): Update call to diagnostic_initialize. Set
23015 global_dc->show_column, global_dc->option_enabled and
23016 global_dc->option_name.
23017 (process_options): Don't set global_dc fields here.
23018 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
23019 (diagnostic.o, opts.o, toplev.o): Update dependencies.
23020
23021 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
23022
23023 * config/picochip/picochip.md (movsi): Split a movsi from a
23024 const after reload.
23025
23026 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
23027
23028 * ggc-zone.c: Update copyright year.
23029 (poison_region): Mark memory for Valgrind as undefined before
23030 memset () call and inaccessible afterwards.
23031 (ggc_pch_total_size): Change type of i to int.
23032
23033 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
23034
23035 * ggc-common.c (ggc_free_overhead): Allow empty slot.
23036
23037 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
23038
23039 * ggc-common.c: Update copyright year.
23040 (ggc_rlimit_bound): Remove prototype. Compile only if
23041 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
23042 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
23043 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
23044 (ggc_min_heapsize_heuristic): Likewise.
23045
23046 2010-05-26 Richard Guenther <rguenther@suse.de>
23047
23048 PR rtl-optimization/44164
23049 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
23050 no-common access-path disambiguation.
23051 (indirect_ref_may_alias_decl_p): Adjust.
23052 (indirect_refs_may_alias_p): Likewise.
23053 (refs_may_alias_p_1): Likewise.
23054
23055 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
23056
23057 * c-typeck.c: Do not include expr.h.
23058
23059 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
23060
23061 * rtl.h (decl_default_tls_model): Move prototype from here...
23062 * output.h: ...to here.
23063 * c-decl.c: Do not include rtl.h.
23064 * c-pragma.c: Likewise.
23065 * c-parser.c: Likewise.
23066 * c-gimplify.c: Likewise. And also not hard-reg-set.
23067 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
23068 FIXME note for it. Add a FIXME note for expr.h.
23069 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
23070 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
23071 defined.
23072
23073 2010-05-26 Jakub Jelinek <jakub@redhat.com>
23074
23075 PR target/44199
23076 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
23077 or total_size is larger than red zone size for non-V4 ABI, emit a
23078 stack_tie resp. frame_tie insn before stack pointer restore.
23079 * config/rs6000/rs6000.md (frame_tie): New insn.
23080
23081 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
23082
23083 * function.h (struct function): Add can_throw_non_call_exceptions bit.
23084 * lto-streamer-in.c (input_function): Stream it in.
23085 * lto-streamer-out.c (output_function): Stream it out.
23086 * function.c (allocate_struct_function): Set it.
23087 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
23088 for flag_non_call_exceptions.
23089 * cfgbuild.c (control_flow_insn_p): Likewise.
23090 (make_edges): Likewise.
23091 * cfgexpand.c (expand_stack_alignment): Likewise.
23092 * combine.c (distribute_notes): Likewise.
23093 * cse.c (cse_extended_basic_block): Likewise.
23094 * except.c (insn_could_throw_p): Likewise.
23095 * gcse.c (simple_mem): Likewise.
23096 * ipa-pure-const.c (check_call): Likewise.
23097 (check_stmt ): Likewise.
23098 * lower-subreg.c (lower-subreg.c): Likewise.
23099 * optabs.c (emit_libcall_block): Likewise.
23100 (prepare_cmp_insn): Likewise.
23101 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
23102 * postreload.c (rest_of_handle_postreload): Likewise.
23103 * reload1.c (reload_as_needed): Likewise.
23104 (emit_input_reload_insns): Likewise.
23105 (emit_output_reload_insns): Likewise.
23106 (fixup_abnormal_edges): Likewise.
23107 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
23108 * store-motion.c (find_moveable_store): Likewise.
23109 * tree-eh.c (stmt_could_throw_p): Likewise.
23110 (tree_could_throw_p): Likewise.
23111 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
23112 * config/arm/arm.c (arm_expand_prologue): Likewise.
23113 (thumb1_expand_prologue): Likewise.
23114 * config/rx/rx.md (cbranchsf4): Likewise.
23115 (cmpsf): Likewise.
23116 * config/s390/s390.c (s390_emit_prologue): Likewise.
23117 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
23118 (inline_forbidden_into_p): New predicate.
23119 (expand_call_inline): Use it to forbid inlining.
23120 (tree_can_inline_p): Likewise.
23121
23122 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
23123
23124 * config/i386/i386-c.c: Do not include rtl.h.
23125 * config/i386/t-i386: Update dependencies.
23126
23127 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
23128
23129 * attribs.c: Do not include rtl.h.
23130 * Makefile.in: Update dependencies.
23131
23132 2010-05-25 Anatoly Sokolov <aesok@post.ru>
23133
23134 * double-int.h (double_int_and): New.
23135 * combine.c (try_combine): Clean up, use double_int_* and
23136 immed_double_int_const functions.
23137
23138 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23139
23140 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
23141 stderr to /dev/null instead of grep -q.
23142 * configure: Regenerate.
23143
23144 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
23145
23146 * Makefile.in (EXCEPT_H): Fix typo.
23147
23148 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
23149
23150 * ira-build.c (update_conflict_hard_reg_costs): New.
23151 (ira_build): Call update_conflict_hard_reg_costs.
23152
23153 2010-05-25 Jakub Jelinek <jakub@redhat.com>
23154
23155 PR debug/41371
23156 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
23157 ENABLE_CHECKING.
23158 (intersect_loc_chains): Walk the s2var's loc_chain together
23159 with s1node chain as long as the locations are equal, don't
23160 call find_loc_in_1pdv in that case.
23161
23162 PR debug/42801
23163 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
23164 (copy_bind_expr): ... instead of here.
23165 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
23166 if the block hasn't been remapped.
23167 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
23168 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
23169
23170 2010-05-25 Richard Guenther <rguenther@suse.de>
23171
23172 PR middle-end/44069
23173 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
23174 out-of-bounds array accesses.
23175
23176 2010-05-25 Richard Guenther <rguenther@suse.de>
23177
23178 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
23179 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
23180 (run_gcc): Re-organize to make cleanup easier.
23181
23182 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23183
23184 * config/s390/s390.c (optimization_options): Fix and move the
23185 flag_prefetch_loop_arrays override ...
23186 (override_options): ... here.
23187
23188 2010-05-25 Joseph Myers <joseph@codesourcery.com>
23189
23190 * diagnostic.c: Don't include plugin.h.
23191 (diagnostic_report_diagnostic): Don't handle plugins specially
23192 here. Pass context to internal_error callback.
23193 * diagnostic.h (struct diagnostic_context): Add context parameter
23194 to internal_error callback.
23195 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
23196 * plugin.h (struct diagnostic_context): Declare.
23197 (warn_if_plugins, plugins_internal_error_function): Declare.
23198 * toplev.c (general_init): Set global_dc->internal_error.
23199 * Makefile.in (diagnostic.o): Update dependencies.
23200
23201 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
23202
23203 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
23204 * config/rs6000/t-darwin64: New.
23205 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
23206 build crt2.
23207
23208 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
23209
23210 PR 44203
23211 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
23212 match the original (and intended) behaviour before r159557. This
23213 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
23214 in two ways.
23215
23216 2010-05-25 Richard Guenther <rguenther@suse.de>
23217
23218 * doc/invoke.texi: Document -Ofast.
23219 * target.h (struct gcc_target): Add handle_ofast.
23220 * target-def.h (TARGET_HANDLE_OFAST): Add.
23221 (TARGET_INITIALIZER): Adjust.
23222 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
23223 * common.opt (Ofast): Add.
23224
23225 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
23226
23227 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
23228 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
23229
23230 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
23231
23232 PR target/43610
23233 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
23234 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
23235 false_rtx. Use false_rtx to compute the correct *ptest for reversed
23236 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
23237
23238 2010-05-25 Jakub Jelinek <jakub@redhat.com>
23239
23240 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
23241 DW_OP_minus with negated offset instead of DW_OP_plus.
23242 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
23243
23244 2010-05-25 Wei Guozhi <carrot@google.com>
23245
23246 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
23247 tst instruction and a new alternative.
23248 * config/arm/constraints.md (Pu): New constraint.
23249
23250 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
23251
23252 * function.c (assign_stack_local_1): Initialize variable
23253 to avoid warning when bootstrapping at -O3.
23254
23255 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
23256
23257 * configure.ac (all_lang_makefiles): Remove everything related to it.
23258 * configure: Regenerate.
23259 * Makefile.in: Fix reference to ada Make-lang.in.
23260 Remove support for LANG_MAKEFILES.
23261
23262 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
23263 Sandra Loosemore <sandra@codesourcery.com>
23264
23265 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
23266 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
23267 description. Add arm_neon_fp16_ok.
23268 (Add Options): Add arm_neon and arm_neon_fp16.
23269
23270 2010-05-24 Joseph Myers <joseph@codesourcery.com>
23271
23272 * diagnostic.c: Don't include flags.h.
23273 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
23274 context parameters. Check flags in the context passed as a parameter.
23275 (diagnostic_build_prefix): Add context parameter. Check
23276 show_column flag in context.
23277 (diagnostic_action_after_output): Check fatal_errors flag in context.
23278 (diagnostic_report_current_module): Check show_column flag in context.
23279 (default_diagnostic_starter): Update call to
23280 diagnostic_build_prefix.
23281 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
23282 (emit_diagnostic): Pass context to permissive_error_kind.
23283 (permerror): Pass context to permissive_error_kind.
23284 * diagnostic.h (struct diagnostic_context): Add show_column,
23285 pedantic_errors, permissive and fatal_errors fields.
23286 (diagnostic_build_prefix): Update prototype.
23287 * langhooks.c
23288 * toplev.c (process_options): Set flags in global_dc from
23289 flag_show_column, flag_pedantic_errors, flag_permissive,
23290 flag_fatal_errors.
23291 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
23292 to diagnostic_build_prefix.
23293 * Makefile.in (diagnostic.o): Update dependencies.
23294
23295 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
23296
23297 * config/i386/ia32intrin.h (__crc32q): Define only if
23298 __SSE4_2__ is defined.
23299
23300 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
23301
23302 PR target/44132
23303 PR middle-end/43602
23304 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
23305 DECL_VISIBILITY_SPECIFIED.
23306 (emutls_decl): Set DECL_PRESERVE_P and copy
23307 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
23308 (emutls_finalize_control_var): New callback.
23309 (emutls_finish): Finalize emutls control variables.
23310 * toplev.c (compile_file): Move the call to emutls_finish ()
23311 before varpool_assemble_pending_decls ().
23312
23313 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
23314
23315 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
23316 added to the preprocessor condition.
23317
23318 2010-05-24 Paul Brook <paul@codesourcery.com>
23319
23320 * gengtype-lex.l: Add HARD_REG_SET.
23321 * expr.c (expand_expr_real_1): Record writes to hard registers.
23322 * function.c (rtl_data): Add asm_clobbers.
23323 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
23324 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
23325 Use crtl->asm_clobbers.
23326
23327 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23328
23329 * doc/makefile.texi (Makefile): Mention stages 'profile'
23330 and 'feedback' for profiledbootstrap.
23331
23332 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
23333
23334 PR target/44245
23335 * config/i386/i386.c (def_builtin): Properly check
23336 OPTION_MASK_ISA_64BIT.
23337
23338 2010-05-23 Joseph Myers <joseph@codesourcery.com>
23339
23340 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
23341 typedefs with different but compatible types. Allow duplicate
23342 typedefs with the same type except for pedantic non-C1X, but give
23343 warning for variably modified types.
23344 * c-typeck.c (tagged_types_tu_compatible_p,
23345 function_types_compatible_p, type_lists_compatible_p,
23346 comptypes_internal): Add parameter different_types_p; set
23347 *different_types_p for different but compatible types. All
23348 callers changed.
23349 (comptypes_check_different_types): New.
23350 * c-tree.h (comptypes_check_different_types): Declare.
23351
23352 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
23353
23354 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
23355 * jump.c: Include basic-block.h.
23356 * profile.c: Likewise.
23357 * tree-profile.c: Likewise.
23358 * coverage.c: Likewise.
23359 * basic-block.h (optimize_function_for_size_p): Move to function.h.
23360 (optimize_function_for_speed_p): Likewise.
23361 * function.h (optimize_function_for_size_p,
23362 optimize_function_for_speed_p): Moved here from basic-block.h.
23363 * Makefile.in: Update dependencies.
23364
23365 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23366
23367 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
23368 before calling make; allow override through $MAKE.
23369 * doc/invoke.texi (Optimize Options): Document override.
23370
23371 2010-05-23 Anatoly Sokolov <aesok@post.ru>
23372
23373 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
23374 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
23375 (rs6000_mode_dependent_address_ptr): Make static.
23376 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
23377 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
23378 Remove.
23379
23380 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
23381
23382 PR target/43869
23383 * config/i386/i386.c: Make sure that the correct regparm is passed.
23384
23385 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
23386
23387 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
23388 * sbitmap.c: ...to here to internalize sbitmap element access.
23389 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
23390 Explain why basic-block.h is included.
23391 * function.h: Include tm.h for CUMULATIVE_ARGS.
23392 * Makefile.in: Update dependencies.
23393
23394 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
23395
23396 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
23397 New core types.
23398 * sbitmap.h (struct sbitmap_def): Do not typedef here.
23399 * sbitmap.c: Include sbitmap.h.
23400 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
23401 hard-reg-set.h. Split everything related to regsets out from here...
23402 * regset.h: ...to here. New file.
23403 * df.h: Include regset.h and sbitmap.h.
23404 * tree-flow.h: Likewise.
23405 * cfgloop.h: Likewise.
23406 * except.h: Do not include sbitmap.h. Include hashtab.h.
23407 * cgraph.h: Include vec.h and function.h.
23408 * reload.h (struct insn_chain): Change types of live_throughout
23409 and dead_or_set from regset_head to bitmap_head.
23410 (compute_use_by_pseudos): Be defined also if regset.h is not included.
23411 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
23412 spilled_regs from regset_head to bitmap_head to avoid dependency
23413 in regset.h.
23414 * sel-sched-ir.h: Include regset.h.
23415 * reload.c: Include df.h before reload.h.
23416 * caller-save.c: Likewise.
23417 * reload1.c: Likewise.
23418 * ira.c: Likewise.
23419 (mark_elimination): Update type of r to bitmap, consistent with
23420 DF_LR_IN.
23421 * dominance.c: Include bitmap.h.
23422 * modulo-sched.c: Include df.h.
23423 * cfganal.c: Include bitmap.h and sbitmap.h.
23424 * cfgbuild.c: Include sbitmap.h.
23425 * lcm.c: Include sbitmap.h.
23426 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
23427 * domwalk.c: Include sbitmap.h, exclude ggc.h.
23428 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
23429 * cselib.c: Include bitmap.h.
23430 * tree-optimize.c: Include regset.h.
23431 * stmt.c: Include bitmap.h.
23432 * Makefile.in: Update dependencies.
23433
23434 2010-05-22 Jan Hubicka <jh@suse.cz>
23435
23436 * cgraph.h (struct varpool_node): Add same_comdat_group.
23437 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
23438 pointer.
23439 (output_varpool): Update call of lto_output_varpool_node.
23440 (input_varpool): Read same_comdat_group pointer.
23441 (input_varpool_1): Fixup same_comdat_group pointer.
23442 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
23443 group is needed, all are.
23444 * varpool.c (varpool_remove_node): Remove node from same comdat group
23445 linklist too.
23446 (varpool_analyze_pending_decls): Walk same comdat groups.
23447
23448 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
23449
23450 * rtl.h (union rtunion_def): Remove rt_bit member.
23451 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
23452 * print-rtl (print_rtx): Do not print the member.
23453 * gengtype.c (adjust_field_rtx_def): Do not handle it.
23454 * gengenrtl.c (type_from_format): Likewise.
23455 (accessor_from_format): Likewise.
23456
23457 2010-05-22 Joseph Myers <joseph@codesourcery.com>
23458
23459 * dbgcnt.c: Include toplev.h instead of errors.h.
23460 * ira-emit.c: Don't include errors.h.
23461 * ira.c: Include toplev.h instead of errors.h.
23462 * lto-compress.c: Include toplev.h instead of errors.h.
23463 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
23464 ira.o, dbgcnt.o): Update dependencies.
23465
23466 2010-05-22 Richard Guenther <rguenther@suse.de>
23467
23468 * gimple.c (gimple_types_compatible_p): Check type qualifications
23469 before merging pointer to complete and pointer to incomplete type.
23470 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
23471 we use our own resolution algorithm. The gold linker plugin
23472 doesn't do the job we want it to do here.
23473
23474 2010-05-22 Anatoly Sokolov <aesok@post.ru>
23475
23476 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
23477 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
23478 (sparc_mode_dependent_address_p): New function.
23479
23480 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
23481
23482 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
23483
23484 * timevar.c: Do not include any core headers.
23485 (timevar_print): De-i18n-ize.
23486 (print_time): Likewise.
23487 * timevar.h (timevar_push, timevar_pop): Make inline functions.
23488
23489 2010-05-21 Joseph Myers <joseph@codesourcery.com>
23490
23491 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
23492 langhooks-def.h.
23493 (diagnostic_initialize): Initialize x_data not last_function.
23494 (diagnostic_report_current_function): Move to tree-diagnostic.c.
23495 (default_diagnostic_starter): Call
23496 diagnostic_report_current_module not
23497 diagnostic_report_current_function.
23498 (diagnostic_report_diagnostic): Initialize x_data not
23499 abstract_origin.
23500 (verbatim): Likewise.
23501 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
23502 x_data.
23503 (struct diagnostic_context): Change last_function to x_data.
23504 (diagnostic_auxiliary_data): Replace with
23505 diagnostic_context_auxiliary_data and
23506 diagnostic_info_auxiliary_data.
23507 (diagnostic_last_function_changed, diagnostic_set_last_function,
23508 diagnostic_report_current_function): Move to tree-diagnostic.h.
23509 (print_declaration, dump_generic_node, print_generic_stmt,
23510 print_generic_stmt_indented, print_generic_expr,
23511 print_generic_decl, debug_c_tree, dump_omp_clauses,
23512 print_call_name, debug_generic_expr, debug_generic_stmt,
23513 debug_tree_chain, default_tree_printer): Move to
23514 tree-pretty-print.h.
23515 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
23516 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
23517 gimple-pretty-print.h.
23518 * pretty-print.c: Don't include tree.h
23519 (pp_base_format): Don't handle %K here.
23520 (pp_base_tree_identifier): Move to tree-pretty-print.c.
23521 * pretty-print.h (text_info): Change abstract_origin to x_data.
23522 (pp_tree_identifier, pp_unsupported_tree,
23523 pp_base_tree_identifier): Move to tree-pretty-print.h.
23524 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
23525 tree-pretty-print.h: New files.
23526 * tree-pretty-print.c: Include tree-pretty-print.h.
23527 (percent_K_format): New. Moved from pretty-print.c.
23528 (pp_base_tree_identifier): Move from pretty-print.c.
23529 * c-objc-common.c: Include tree-pretty-print.h.
23530 (c_tree_printer): Handle %K here.
23531 * langhooks.c: Include tree-diagnostic.h.
23532 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
23533 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
23534 (default_tree_printer): Handle %K using percent_K_format.
23535 (general_init): Use default_tree_diagnostic_starter.
23536 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
23537 (free_lang_data): Use default_tree_diagnostic_starter.
23538 * c-pretty-print.c: Include tree-pretty-print.h.
23539 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
23540 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
23541 * dwarf2out.c: Include tree-pretty-print.h.
23542 * except.c: Include tree-pretty-print.h.
23543 * gimple-pretty-print.c: Include tree-pretty-print.h and
23544 gimple-pretty-print.h.
23545 * gimplify.c: Include tree-pretty-print.h.
23546 * graphite-poly.c: Include tree-pretty-print.h and
23547 gimple-pretty-print.h.
23548 * ipa-cp.c: Include tree-pretty-print.h.
23549 * ipa-inline.c: Include gimple-pretty-print.h.
23550 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
23551 * ipa-pure-const.c: Include gimple-pretty-print.h.
23552 * ipa-struct-reorg.c: Include tree-pretty-print.h and
23553 gimple-pretty-print.h.
23554 * ipa-type-escape.c: Include tree-pretty-print.h.
23555 * print-rtl.c: Include tree-pretty-print.h.
23556 * print-tree.c: Include gimple-pretty-print.h.
23557 * sese.c: Include tree-pretty-print.h.
23558 * tree-affine.c: Include tree-pretty-print.h.
23559 * tree-browser.c: Include tree-pretty-print.h.
23560 * tree-call-cdce.c: Include gimple-pretty-print.h.
23561 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
23562 * tree-chrec.c: Include tree-pretty-print.h.
23563 * tree-data-ref.c: Include tree-pretty-print.h and
23564 gimple-pretty-print.h.
23565 * tree-dfa.c: Include tree-pretty-print.h.
23566 * tree-if-conv.c: Include tree-pretty-print.h and
23567 gimple-pretty-print.h.
23568 * tree-inline.c: Include tree-pretty-print.h.
23569 * tree-into-ssa.c: Include tree-pretty-print.h and
23570 gimple-pretty-print.h.
23571 * tree-nrv.c: Include tree-pretty-print.h.
23572 * tree-object-size.c: Include tree-pretty-print.h and
23573 gimple-pretty-print.h.
23574 * tree-outof-ssa.c: Include tree-pretty-print.h and
23575 gimple-pretty-print.h.
23576 * tree-parloops.c: Include tree-pretty-print.h and
23577 gimple-pretty-print.h.
23578 * tree-predcom.c: Include tree-pretty-print.h and
23579 gimple-pretty-print.h.
23580 * tree-scalar-evolution.c: Include tree-pretty-print.h and
23581 gimple-pretty-print.h.
23582 * tree-sra.c: Include tree-pretty-print.h.
23583 * tree-ssa-address.c: Include tree-pretty-print.h.
23584 * tree-ssa-alias.c: Include tree-pretty-print.h.
23585 * tree-ssa-ccp.c: Include tree-pretty-print.h and
23586 gimple-pretty-print.h.
23587 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
23588 * tree-ssa-copy.c: Include tree-pretty-print.h and
23589 gimple-pretty-print.h.
23590 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
23591 * tree-ssa-dce.c: Include tree-pretty-print.h and
23592 gimple-pretty-print.h.
23593 * tree-ssa-dom.c: Include tree-pretty-print.h and
23594 gimple-pretty-print.h.
23595 * tree-ssa-dse.c: Include gimple-pretty-print.h.
23596 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
23597 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
23598 * tree-ssa-live.c: Include tree-pretty-print.h and
23599 gimple-pretty-print.h.
23600 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
23601 gimple-pretty-print.h.
23602 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
23603 gimple-pretty-print.h.
23604 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
23605 gimple-pretty-print.h.
23606 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
23607 gimple-pretty-print.h.
23608 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
23609 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
23610 * tree-ssa-operands.c: Include tree-pretty-print.h and
23611 gimple-pretty-print.h.
23612 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
23613 gimple-pretty-print.h.
23614 * tree-ssa-pre.c: Include tree-pretty-print.h and
23615 gimple-pretty-print.h.
23616 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
23617 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
23618 gimple-pretty-print.h.
23619 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
23620 gimple-pretty-print.h.
23621 * tree-ssa-sink.c: Include gimple-pretty-print.h.
23622 * tree-ssa-ter.c: Include tree-pretty-print.h and
23623 gimple-pretty-print.h.
23624 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
23625 * tree-ssa.c: Include tree-pretty-print.h and
23626 gimple-pretty-print.h.
23627 * tree-stdarg.c: Include gimple-pretty-print.h.
23628 * tree-switch-conversion.c: Include gimple-pretty-print.h.
23629 * tree-tailcall.c: Include tree-pretty-print.h and
23630 gimple-pretty-print.h.
23631 * tree-vect-data-refs.c: Include tree-pretty-print.h and
23632 gimple-pretty-print.h.
23633 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
23634 gimple-pretty-print.h.
23635 * tree-vect-loop.c: Include tree-pretty-print.h and
23636 gimple-pretty-print.h.
23637 * tree-vect-patterns.c: Include gimple-pretty-print.h.
23638 * tree-vect-slp.c: Include tree-pretty-print.h and
23639 gimple-pretty-print.h.
23640 * tree-vect-stmts.c: Include tree-pretty-print.h and
23641 gimple-pretty-print.h.
23642 * tree-vectorizer.c: Include tree-pretty-print.h.
23643 * tree-vrp.c: Include tree-pretty-print.h and
23644 gimple-pretty-print.h.
23645 * value-prof.c: Include tree-pretty-print.h and
23646 gimple-pretty-print.h.
23647 * var-tracking.c: Include tree-pretty-print.h.
23648 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
23649 (tree-diagnostic.o): New dependencies.
23650 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
23651 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
23652 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
23653 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
23654 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
23655 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
23656 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
23657 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
23658 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
23659 tree-ssa-address.o, tree-ssa-loop-niter.o,
23660 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
23661 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
23662 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
23663 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
23664 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
23665 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
23666 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
23667 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
23668 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
23669 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
23670 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
23671 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
23672 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
23673 tree-switch-conversion.o, var-tracking.o, value-prof.o,
23674 cfgexpand.o, pretty-print.o): Update dependencies.
23675
23676 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
23677
23678 * tree-ssa-structalias.c: Remove tm_p.h from include.
23679
23680 2010-05-21 Jeff Law <law@redhat.com>
23681
23682 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
23683
23684 2010-05-21 Jason Merrill <jason@redhat.com>
23685
23686 * tree-eh.c (cleanup_is_dead_in): New.
23687 (lower_try_finally): Don't generate a dead cleanup region.
23688 (lower_cleanup): Likewise.
23689
23690 2010-05-21 Jakub Jelinek <jakub@redhat.com>
23691
23692 PR debug/44223
23693 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
23694 unchain each use from the cyclic next_regno_use chain first.
23695
23696 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
23697
23698 * real: Do not include gmp.h, mpfr.h, and mpc.h.
23699 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
23700 (real_value_negate, real_value_abs): New prototypes.
23701 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
23702 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
23703 new include file for interface between MPFR and REAL_VALUE_TYPE.
23704 * real.c: Include realmpfr.h.
23705 (real_arithmetic2): Remove legacy function.
23706 (real_value_negate): New.
23707 (real_value_abs): New.
23708 (mfpr_from_real, real_from_mpfr): Move from here...
23709 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
23710 * builtins.c: Include realmpfr.h.
23711 * fold-const.c: Include realmpfr.h.
23712 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
23713 (fold_negate_const): Likewise.
23714 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
23715 * toplev.c: Include realmpfr.h.
23716 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
23717 and real_value_negate.
23718 * fixed-value.c (check_real_for_fixed_mode): Likewise.
23719 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
23720 (vfp3_const_double_index): Likewise.
23721 (arm_print_operand): Likewise.
23722 * Makefile.in: Update dependencies.
23723
23724 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23725
23726 * config/s390/s390.c (override_options): Increase the default
23727 of max-completely-peel-times.
23728
23729 2010-05-21 Julian Brown <julian@codesourcery.com>
23730 Mark Mitchell <mark@codesourcery.com>
23731
23732 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
23733 sibling calls for Thumb-1.
23734 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
23735 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
23736 Thumb-2.
23737 (*call_insn, *call_value_insn): Don't use for Thumb-2.
23738 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
23739 for Thumb-2.
23740 (return): New expander.
23741 (*arm_return): New name for ARM return insn.
23742 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
23743
23744 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
23745
23746 * config.gcc (sparc64-*-rtems*): New target.
23747
23748 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
23749
23750 * tree.c (build_function_decl_skip_args): Fix grammar.
23751 (build_function_type_list_1): Fix typos, adjust formatting.
23752
23753 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
23754
23755 * tree.h: Include real.h and fixed-value.h as basic datatypes.
23756 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
23757 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
23758 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
23759 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
23760 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
23761 tree-pretty-print.c, tree-loop-distribution.c,
23762 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
23763 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
23764 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
23765 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
23766 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
23767 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
23768 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
23769 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
23770 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
23771 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
23772 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
23773 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
23774 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
23775 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
23776 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
23777 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
23778 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
23779 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
23780 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
23781 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
23782 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
23783 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
23784 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
23785 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
23786 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
23787 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
23788 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
23789 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
23790 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
23791 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
23792 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
23793 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
23794 config/score/score7.c, config/score/score.c, config/arm/arm.c,
23795 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
23796 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
23797 config/bfin/bfin.c: Clean up redundant includes.
23798 * Makefile.in: Update accordingly.
23799
23800 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
23801
23802 PR middle-end/44204
23803 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
23804 statement has no arguments.
23805
23806 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
23807
23808 PR/44139
23809 * varasm.c (emutls_decl): Merge attributes to new decl.
23810
23811 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
23812
23813 PR middle-end/44101
23814 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
23815 around the uniquized constructor if its type requires a conversion.
23816
23817 2010-05-21 Jakub Jelinek <jakub@redhat.com>
23818
23819 PR debug/44205
23820 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
23821 at -O0 goto_locus of any of the incoming edges differs from
23822 goto_locus of outgoing edge, or gimple_location of any of the
23823 labels differs.
23824
23825 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
23826
23827 * ira.c (ira_non_ordered_class_hard_regs): Define.
23828 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
23829 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
23830 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
23831 cost of unaligned hard regs when allocating multi-reg pseudos.
23832
23833 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
23834
23835 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
23836 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
23837 for TARGET_NO_FLOAT.
23838 * config/mips/mips.c (mips_file_start): Expand conditional expression
23839 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
23840 (mips_override_options): Move -mno-float override -msoft-float and
23841 -mhard-float.
23842 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
23843 Condition(TARGET_SUPPORTS_NO_FLOAT).
23844 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
23845 __mips_no_float here.
23846 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
23847 (TARGET_SUPPORTS_NO_FLOAT): Define.
23848 * config/mips/sdemtk.opt: Delete.
23849
23850 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
23851
23852 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
23853
23854 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
23855
23856 PR target/43733
23857 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
23858 * configure: Regenerate.
23859 * config.in: Regenerate.
23860 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
23861 instead of sahf only for 64bit targets.
23862
23863 2010-05-20 Jakub Jelinek <jakub@redhat.com>
23864
23865 PR debug/44178
23866 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
23867 setup_ref_regs for DEBUG_INSNs.
23868
23869 2010-05-20 Jan Hubicka <jh@suse.cz>
23870
23871 PR middle-end/44197
23872 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
23873
23874 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
23875
23876 PR bootstrap/43870
23877 * df-scan.c (df_ref_compare): Stabilize sort.
23878
23879 2010-05-20 Jakub Jelinek <jakub@redhat.com>
23880
23881 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
23882 argument. Don't use DW_OP_piece if offset is non-zero,
23883 put offset into second DW_OP_bit_piece argument.
23884 (dw_sra_loc_expr): Adjust callers. For memory expressions
23885 compute offset.
23886
23887 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
23888
23889 PR target/44202
23890 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
23891 settings for 16-bit-constant "addo" alternative.
23892
23893 2010-05-19 James E. Wilson <wilson@codesourcery.com>
23894
23895 * config/mips/mips-dsp.md (add<DSPV:mode>3,
23896 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
23897
23898 PR target/43764
23899 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
23900 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
23901 Use it.
23902
23903 2010-05-19 Joseph Myers <joseph@codesourcery.com>
23904
23905 * diagnostic.c (FLOAT, FFS): Don't undefine.
23906 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
23907 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
23908 include ordering.
23909
23910 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
23911
23912 * combine.c (propagate_for_debug): Call make_compound_operation
23913 on the source value.
23914 (try_combine): When implementing a split chosen by find_split_point,
23915 either copy i2src or set it to null. Assert that i2src is not null
23916 before substituting into CALL_INSN_FUNCTION_USAGE.
23917
23918 2010-05-19 Anatoly Sokolov <aesok@post.ru>
23919
23920 * double-int.h (double_int_ior): New function.
23921 * tree.h (build_int_cst_wide_type): Remove.
23922 * tree.c (build_int_cst_wide_type): Remove.
23923 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
23924 of build_int_cst_wide_type.
23925 * stor-layout.c (set_sizetype): (Ditto.).
23926 * dojump.c (do_jump): Use build_int_cstu instead of
23927 build_int_cst_wide_type.
23928
23929 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
23930
23931 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
23932 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
23933 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
23934 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
23935 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
23936 propagate the 'data' argument to copy_tree_r.
23937 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
23938 Propagate 'data' argument to walk_tree.
23939 (copy_if_shared): New function.
23940 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
23941 (unmark_visited): New function.
23942 (unshare_body): Call copy_if_shared instead of doing it manually.
23943 (unvisit_body): Call unmark_visited instead of doing it manually.
23944
23945 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
23946
23947 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
23948 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
23949 * hooks.c: Likewise.
23950 * target-def.h (TARGET_FOLD_BUILTIN): Define to
23951 hook_tree_tree_int_treep_bool_null.
23952 * target.h (struct gcc_target): Update signature of fold_builtin
23953 field.
23954 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
23955 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
23956 instead of the call expression.
23957 (fold_builtin_call_array): Pass n and argarray directly.
23958 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
23959 consing a list.
23960 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
23961 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
23962 `i' and use it in place of `arity'.
23963 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
23964 Dereference `args' directly.
23965 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
23966
23967 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23968
23969 * doc/sourcebuild.texi (Effective-Target Keywords): Document
23970 3dnow, sse3, sse2.
23971 (Directives): Document optional dg-require-effective-target
23972 selector.
23973
23974 2010-05-19 Richard Guenther <rguenther@suse.de>
23975
23976 PR lto/44196
23977 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
23978
23979 2010-05-19 Richard Guenther <rguenther@suse.de>
23980
23981 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
23982 * common.opt (fwhopr=): New.
23983 * opts.c (common_handle_option): Handle OPT_fwhopr.
23984 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
23985 * collect2.c (main): Match -fwhopr*.
23986 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
23987 Execute ltrans stage in parallel when jobs is bigger than 1.
23988
23989 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23990
23991 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
23992 pentiumpro on Solaris 8/x86 with Sun as.
23993 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
23994 hidden alias bug.
23995 (gcc_cv_as_ix86_quad): Check for .quad directive.
23996 * configure: Regenerate.
23997 * config.in: Regenerate.
23998 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
23999
24000 2010-05-19 Martin Jambor <mjambor@suse.cz>
24001
24002 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
24003 also for indirect edges. Actual printing moved...
24004 (ipa_print_node_jump_functions_for_edge): ...here.
24005 (ipa_compute_jump_functions): Renamed to
24006 ipa_compute_jump_functions_for_edge and made static.
24007 (ipa_compute_jump_functions): New function.
24008 (make_edge_direct_to_target): Check if the number of arguments on
24009 the newly direct edge is the same as the number of parametrs of
24010 the callee.
24011 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
24012 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
24013 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
24014 analysis functions unconditionally, call the new
24015 ipa_analyze_params_uses on the node instead of every edge.
24016
24017 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
24018
24019 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
24020 to tree.
24021 (dump_mem_ref): Adopt debug code to handle a tree as step. This
24022 also checks for a constant int vs. non-constant but
24023 loop-invariant steps.
24024 (find_or_create_group): Change the sort algorithm to only consider
24025 steps that are constant ints.
24026 (idx_analyze_ref): Adopt code to handle a tree instead of a
24027 HOST_WIDE_INT for step.
24028 (gather_memory_references_ref): Handle tree instead of int and be
24029 prepared to see a NULL_TREE.
24030 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
24031 prefetches if the step cannot be calculated at compile time.
24032 (issue_prefetch_ref): Issue prefetches for non-constant but
24033 loop-invariant steps.
24034
24035 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
24036
24037 Revert:
24038 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
24039
24040 * tree.h (build_call_list): Remove.
24041 * tree.c (build_call_list): Remove.
24042
24043 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
24044
24045 * tree.h (build_call_list): Remove.
24046 * tree.c (build_call_list): Remove.
24047
24048 2010-05-18 Jan Hubicka <jh@suse.cz>
24049
24050 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
24051
24052 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
24053
24054 PR rtl-optimization/43332
24055 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
24056
24057 2010-05-18 Anatoly Sokolov <aesok@post.ru>
24058
24059 * tree.h (build_int_cstu): Implement as static inline.
24060 * tree.c (build_int_cstu): Remove function.
24061 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
24062 sign extended.
24063
24064 2010-05-18 Richard Guenther <rguenther@suse.de>
24065
24066 PR lto/44143
24067 * lto-wrapper.c (verbose): New variable. Initialize from -v.
24068 (debug): Initialize from -save-temps.
24069 (collect_execute): Print command-line when verbose.
24070 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
24071 for ltrans invocation. Produce -dumpbase flag again.
24072 (process_args): Remove.
24073 (main): Simplify.
24074 * collect2.c (maybe_run_lto_and_relink): Only pass object
24075 files to lto-wrapper.
24076 * gcc.c (LINK_COMMAND_SPEC): Likewise.
24077
24078 2010-05-18 Jan Hubicka <jh@suse.cz>
24079
24080 * opts.c (decode_options): Do not disable whopr at ipa_cp.
24081 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
24082
24083 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
24084
24085 PR lto/44184
24086 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
24087 in a GIMPLE_ASM.
24088 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
24089 in a GIMPLE_ASM.
24090
24091 2010-05-18 Jakub Jelinek <jakub@redhat.com>
24092
24093 PR debug/41371
24094 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
24095 rtx_equal_p inline.
24096
24097 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
24098
24099 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
24100 lto-macho as lto_binary_reader.
24101
24102 * darwin.c (darwin_asm_named_section): Do not add assembler comment
24103 after .section directive; just print it before the directive instead.
24104
24105 2010-05-17 Jan Hubicka <jh@suse.cz>
24106
24107 * cgraph.c (cgraph_create_virtual_clone): Only check
24108 versionable_function_p when not in wpa and checking is enabled.
24109 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
24110 there are no more functions to materialize.
24111
24112 2010-05-17 Jan Hubicka <jh@suse.cz>
24113
24114 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
24115 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
24116 New functions.
24117 (output_cgraph): Call output_cgraph_opt_summary.
24118 (input_cgrpah): Call input_cgraph_opt_summary.
24119 (output_cgraph_opt_summary_p, output_node_opt_summary,
24120 input_node_opt_summary, input_cgraph_opt_section): New functions.
24121 * lto-section-in.c (lto_section_name): Add cgraphopt.
24122 * tree-inline.c (tree_function_versioning): Handle parm_num.
24123 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
24124 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
24125
24126 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
24127
24128 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
24129 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
24130 the insn to prefetch ratio heuristic to loops with known trip count.
24131
24132 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
24133
24134 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
24135 (schedule_prefetches): Do not generate a prefetch if the unroll factor
24136 is far from what is required by the prefetch.
24137
24138 2010-05-17 Jan Hubicka <jh@suse.cz>
24139
24140 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
24141 (ipcp_estimate_growth): Likewise.
24142 (ipcp_const_param_count): Likewise.
24143 (ipcp_insert_stage): Likewise.
24144 * ipa-prop.c (visit_load_for_mod_analysis): New function.
24145 (visit_store_addr_for_mod_analysis): Set used flag.
24146 (ipa_detect_param_modifications): Set used flag for SSE params;
24147 update use of walk_stmt_load_store_addr_ops.
24148 (ipa_print_node_params): Print used flag.
24149 (ipa_write_node_info): Stream used flag.
24150 (ipa_read_node_info): Likewise.
24151 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
24152 (ipa_is_param_used): New function.
24153 (lto_ipa_fixup_call_notes): Remove unused declaration.
24154
24155 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24156
24157 PR target/44074
24158 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
24159 * configure: Regenerate.
24160 * config.in: Regenerate.
24161 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
24162 !HAVE_AS_IX86_REP_LOCK_PREFIX.
24163 Don't emit whitespace.
24164 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
24165 (*rep_movsi): Likewise.
24166 (*rep_movsi_rex64): Likewise.
24167 (*rep_movqi): Likewise.
24168 (*rep_movqi_rex64): Likewise.
24169 (*rep_stosdi_rex64): Likewise.
24170 (*rep_stossi): Likewise.
24171 (*rep_stossi_rex64): Likewise.
24172 (*rep_stosqi): Likewise.
24173 (*rep_stosqi_rex64): Likewise.
24174 (*cmpstrnqi_nz_1): Use {%;} after repz.
24175 (*cmpstrnqi_nz_rex_1): Likewise.
24176 (*cmpstrnqi_1): Likewise.
24177 (*cmpstrnqi_rex_1): Likewise.
24178 (*strlenqi_1): Use {%;} after repnz.
24179 (*strlenqi_rex_1): Likewise.
24180 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
24181 (*sync_compare_and_swap<mode>): Likewise.
24182 (sync_double_compare_and_swap<mode>): Likewise.
24183 (*sync_double_compare_and_swapdi_pic): Likewise.
24184 (sync_old_add<mode>): Likewise.
24185 (sync_add<mode>): Likewise.
24186 (sync_sub<mode>): Likewise.
24187 (sync_<code><mode>): Likewise.
24188
24189 2010-05-17 Martin Jambor <mjambor@suse.cz>
24190
24191 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
24192 otr_token and polymorphic.
24193 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
24194 (cgraph_clone_edge): Copy the above fields.
24195 * tree.c (get_binfo_at_offset): New function.
24196 * tree.h (get_binfo_at_offset): Declare.
24197 * ipa-prop.h (enum jump_func_type): Added known_type jump function
24198 type, reordered items, updated comments.
24199 (union jump_func_value): Added base_type field, reordered fields.
24200 (enum ipa_lattice_type): Moved down in the file.
24201 (struct ipa_param_descriptor): New field polymorphic.
24202 (ipa_is_param_polymorphic): New function.
24203 * ipa-prop.c: Include gimple.h and gimple-fold.h.
24204 (ipa_print_node_jump_functions): Print known type jump functions.
24205 (compute_complex_pass_through): Renamed to...
24206 (compute_complex_assign_jump_func): this.
24207 (compute_complex_ancestor_jump_func): New function.
24208 (compute_known_type_jump_func): Likewise.
24209 (compute_scalar_jump_functions): Create known type and complex ancestor
24210 jump functions.
24211 (ipa_note_param_call): New parameter polymorphic, set the corresponding
24212 flag in the call note accordingly.
24213 (ipa_analyze_call_uses): Renamed to...
24214 (ipa_analyze_indirect_call_uses): this. New parameter target, define
24215 variable var only in the block where it is used.
24216 (ipa_analyze_virtual_call_uses): New function.
24217 (ipa_analyze_call_uses): Likewise.
24218 (combine_known_type_and_ancestor_jfs): Likewise.
24219 (update_jump_functions_after_inlining): Implemented handling of a
24220 number of new jump function types combination.
24221 (print_edge_addition_message): Removed.
24222 (make_edge_direct_to_target): New function.
24223 (try_make_edge_direct_simple_call): Likewise.
24224 (try_make_edge_direct_virtual_call): Likewise.
24225 (update_call_notes_after_inlining): Renamed to...
24226 (update_indirect_edges_after_inlining): this. Moved edge creation for
24227 indirect calls to try_make_edge_direct_simple_call, also calls
24228 try_make_edge_direct_virtual_call for virtual calls.
24229 (ipa_print_node_params): Changed the header message.
24230 (ipa_write_jump_function): Stream also known type jump functions.
24231 (ipa_read_jump_function): Likewise.
24232 (ipa_write_indirect_edge_info): Stream new fields in
24233 cgraph_indirect_call_info.
24234 (ipa_read_indirect_edge_info): Likewise.
24235 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
24236 GIMPLE_FOLD_H.
24237
24238 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24239
24240 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
24241
24242 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
24243
24244 * tree.h (CALL_EXPR_ARGS): Delete.
24245 (call_expr_arglist): Delete.
24246 * tree.c (call_expr_arglist): Delete.
24247 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
24248 targetm.fold_builtin.
24249 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
24250 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
24251 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
24252 arglist parameter. Use CALL_EXPR_ARG.
24253 (picochip_expand_builtin_3op): Likewise.
24254 (picochip_expand_builtin_2opvoid): Likewise.
24255 (picochip_expand_array_get): Likewise.
24256 (picochip_expand_array_put): Likewise.
24257 (picochip_expand_array_testport): Likewise.
24258 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
24259 rather than arglist.
24260 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
24261 CALL_EXPR_ARGS.
24262 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
24263 than TREE_VALUE and TREE_CHAIN.
24264 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
24265 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
24266 the arglist.
24267
24268 2010-05-17 Jakub Jelinek <jakub@redhat.com>
24269
24270 PR bootstrap/42347
24271 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
24272 to have no fallthru edge.
24273
24274 PR middle-end/44102
24275 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
24276 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
24277 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
24278 add BARRIER after previous bb if needed.
24279
24280 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
24281
24282 * tree.c (build_function_type_list_1): Remove bogus assert condition.
24283
24284 2010-05-17 Alan Modra <amodra@gmail.com>
24285
24286 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
24287 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
24288 with copy_reg rtx param.
24289 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
24290 Correct cases where code for ABI_V4 did not initialise the reg
24291 used to access frame. Also leave frame_reg_rtx as sp for large
24292 frames that save no regs.
24293
24294 2010-05-17 Martin Jambor <mjambor@suse.cz>
24295
24296 PR middle-end/44133
24297 * tree-sra.c (create_access_replacement): New parameter rename, mark
24298 the replaement for renaming only when it is true.
24299 (get_access_replacement): Pass true in the rename parameter of
24300 create_access_replacement.
24301 (get_unrenamed_access_replacement): New function.
24302 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
24303 replacement declaration from it.
24304
24305 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
24306
24307 * function.c (try_fit_stack_local, add_frame_space): New static
24308 functions.
24309 (assign_stack_local_1): Use them. Look for opportunities to use
24310 space previously wasted on alignment.
24311 * function.h (struct frame_space): New.
24312 (struct rtl_data): Add FRAME_SPACE_LIST member.
24313 * reload1.c (something_was_spilled): New static variable.
24314 (alter_reg): Set it.
24315 (reload): Test it in addition to testing if the frame size changed.
24316
24317 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
24318
24319 * config/s390/s390.c: Define sane prefetch settings and activate
24320 flag_prefetch_loop_arrays on -O3.
24321 * config/s390/s390.h: Declare that read can use write prefetch.
24322
24323 2010-05-17 Jakub Jelinek <jakub@redhat.com>
24324
24325 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
24326 build.
24327
24328 2010-05-16 Jan Hubicka <jh@suse.cz>
24329
24330 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
24331 function body; do not check stdarg field of struct function.
24332
24333 2010-05-16 Jan Hubicka <jh@suse.cz>
24334
24335 * cgraph.c (dump_cgraph_node): Dump versionable flag.
24336 * cgraph.h (cgraph_local_info): Add versionable flag.
24337 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
24338 (ipcp_versionable_function_p): Use it.
24339 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
24340 versionable flag.
24341
24342 2010-05-16 Jan Hubicka <jh@suse.cz>
24343
24344 * cgraph.c (cgraph_clone_node): Take decl argument and insert
24345 clone into hash when it is different from orig.
24346 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
24347 * cgraph.h (cgraph_clone_node): Update prototype.
24348 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
24349 (lto_cgraph_encoder_delete): Delete body map.
24350 (lto_cgraph_encoder_size): Move to header.
24351 (lto_cgraph_encoder_encode_body_p,
24352 lto_set_cgraph_encoder_encode_body): New.
24353 (lto_output_node): Do not take written_decls argument; output clone_of
24354 pointer.
24355 (add_node_to): Add include_body_argument; call
24356 lto_set_cgraph_encoder_encode_body on master of the clone.
24357 (add_references): Update use of add_node_to.
24358 (compute_ltrans_boundary): Likewise.
24359 (output_cgraph): Do not create written_decls bitmap.
24360 (input_node): Take nodes argument; stream in clone_of correctly.
24361 (input_cgraph_1): Update use of input_node.
24362 * lto-streamer-out.c (lto_output): Use encoder info to decide
24363 what bodies to output.
24364 * ipa-inline.c (cgraph_clone_inlined_nodes,
24365 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
24366 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
24367 (lto_cgraph_encoder_size): Define here.
24368 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
24369 Declare.
24370
24371 2010-05-16 Richard Guenther <rguenther@suse.de>
24372
24373 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
24374 -fipa-type-escape.
24375 * ipa-type-escape.c (gate_type_escape_vars): Run when
24376 -fipa-struct-reorg runs.
24377 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
24378 * common.opt (fipa-type-escape): Remove.
24379
24380 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
24381
24382 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
24383 (decode_options): Likewise.
24384 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
24385
24386 2010-05-16 Jan Hubicka <jh@suse.cz>
24387
24388 * ipa.c (function_and_variable_visibility): Also bring local all
24389 aliases.
24390
24391 2010-05-16 Richard Guenther <rguenther@suse.de>
24392
24393 * alias.c (nonoverlapping_memrefs_p): Remove use of
24394 IPA type-escape information.
24395
24396 2010-05-16 Joseph Myers <joseph@codesourcery.com>
24397
24398 * c-common.c (c_common_reswords): Add _Static_assert for C.
24399 * c-parser.c (c_token_starts_declaration,
24400 c_parser_next_token_starts_declaration,
24401 c_parser_static_assert_declaration_no_semi,
24402 c_parser_static_assert_declaration): New.
24403 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
24404 Handle static assertions if static_assert_ok.
24405 (c_parser_external_declaration, c_parser_declaration_or_fndef,
24406 c_parser_compound_statement_nostart, c_parser_label,
24407 c_parser_for_statement, c_parser_objc_methodprotolist,
24408 c_parser_omp_for_loop): All callers of
24409 c_parser_declaration_or_fndef changed.
24410 (c_parser_struct_declaration): Handle static assertions.
24411 (c_parser_compound_statement_nostart): Use
24412 c_parser_next_token_starts_declaration and
24413 c_token_starts_declaration to detect start of declarations.
24414 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
24415 Likewise.
24416
24417 2010-05-16 Anatoly Sokolov <aesok@post.ru>
24418
24419 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
24420 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
24421 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
24422 TARGET_FUNCTION_VALUE_REGNO_P): Define.
24423 (mmix_function_outgoing_value): Rename to...
24424 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
24425 (mmix_function_value_regno_p): Make static.
24426 (mmix_libcall_value): New function.
24427 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
24428 mmix_function_value_regno_p): Remove declaration.
24429
24430 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
24431
24432 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
24433 BUILT_IN_ALLOCA if stack checking is enabled.
24434
24435 2010-05-16 Richard Guenther <rguenther@suse.de>
24436
24437 * var-tracking.c (vars_copy_1): Inline ...
24438 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
24439 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
24440 (variable_merge_over_cur): Adjust. Merge asserts.
24441 (variable_merge_over_src): Likewise.
24442 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
24443 (variable_post_merge_new_vals): Merge asserts.
24444 (variable_post_merge_perm_vals): Likewise.
24445 (find_mem_expr_in_1pdv): Likewise.
24446 (dataflow_set_different_value): Remove.
24447 (onepart_variable_different_p): Merge asserts.
24448 (variable_different_p): Likewise.
24449 (dataflow_set_different_1): Inline ...
24450 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
24451 (emit_notes_for_differences_1): Merge asserts.
24452
24453 2010-05-16 Richard Guenther <rguenther@suse.de>
24454
24455 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
24456 * optabs.c (libfunc_decl_hash): Likewise.
24457 * varasm.c (emutls_decl): Likewise.
24458
24459 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
24460
24461 * c-decl.c: Don't include gimple.h.
24462 (merge_decls): Do not copy gimple_body.
24463
24464 2010-05-15 Jason Merrill <jason@redhat.com>
24465
24466 * c.opt: Add -fnothrow-opt.
24467
24468 2010-05-15 Jan Hubicka <jh@suse.cz>
24469
24470 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
24471 analyzed.
24472 * passes.c (ipa_write_summaries): Write all analyzed nodes.
24473
24474 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
24475
24476 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
24477 * Makefile.in: Add it.
24478 Fix all other Makefile dependencies for changes below.
24479 * tree.h: Include it instead of defining VEC primitives here.
24480 * gimple.h: Likewise.
24481 * rtl.h: Likewise.
24482 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
24483 * except.h: Include vecir.h, break dependence on tree.h.
24484
24485 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
24486 Move from here...
24487 * tree-iterator.c: ...to here.
24488 * tree-iterator.h: Fix file introduction comment. Add extern markers.
24489
24490 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
24491 tm_p.h.
24492 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
24493 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
24494 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
24495 tree-mudflap.h, and target.h.
24496 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
24497 predict.h, tree-inline.h, gimple.h, and langhooks.h.
24498 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
24499 Add FIXME for why gimple.h is still included (should be unnecessary
24500 since GCC 4.5 gimplification unit-at-a-time).
24501 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
24502 * c-pragma.c: Add FIXME for why function.h needs to be included just
24503 for cfun, at front-end level.
24504 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
24505 Do not include ggc.h, but include vecprim.h for VEC(char).
24506 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
24507 Explain why target.h is included.
24508 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
24509 Explain why gimple.h is included.
24510 * c-ppoutput.c: Do not include tm.h.
24511 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
24512 * c-parses.c: Explain why rtl.h is included, and that this (and only
24513 this) is also why tm.h must be included.
24514 Do not include except.h.
24515 * c-lang.c: Do not include ggc.h.
24516
24517 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
24518
24519 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
24520
24521 2010-05-15 Joseph Myers <joseph@codesourcery.com>
24522
24523 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
24524 unions by default if those structs and unions have no tags. Do
24525 not condition anonymous struct and unions handling on flag_iso.
24526 Allow anonymous structs and unions for C1X.
24527 (finish_struct): Do not diagnose lack of named fields when
24528 anonymous structs and unions present for C1X. Accept flexible
24529 array members in structure with anonymous structs or unions but no
24530 directly named fields.
24531 * doc/extend.texi (Unnamed Fields): Update.
24532
24533 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
24534
24535 * gimple.h (compare_field_offset): Rename into...
24536 (gimple_compare_field_offset): ...this.
24537 * gimple.c (compare_field_offset): Rename into...
24538 (gimple_compare_field_offset): ...this. Compare the full access if
24539 the offset is self-referential.
24540 (gimple_types_compatible_p): Adjust for above renaming.
24541 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
24542 DECL_NONADDRESSABLE_P flag of fields before merging them.
24543
24544 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
24545
24546 * tree.h (ctor_to_list): Delete.
24547 * tree.c (ctor_to_list): Delete.
24548
24549 2010-05-15 Jan Hubicka <jh@suse.cz>
24550
24551 * ipa-reference.c: Include toplev.h
24552 (is_proper_for_analysis): Only add to all_module_statics
24553 if it is allocated.
24554 (write_node_summary_p, stream_out_bitmap,
24555 ipa_reference_write_optimization_summary,
24556 ipa_reference_read_optimization_summary): New.
24557 (struct ipa_opt_pass_d pass_ipa_reference): Add
24558 optimization summary streaming.
24559 * lto-cgraph.c (referenced_from_this_partition_p,
24560 reachable_from_this_partition_p): New functions.
24561 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
24562 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
24563 * opts.c (decode_options): Enable ipa_reference.
24564 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
24565 * lto-streamer.h (referenced_from_this_partition_p,
24566 reachable_from_this_partition_p): Declare.
24567
24568 2010-05-15 Richard Guenther <rguenther@suse.de>
24569
24570 PR tree-optimization/44038
24571 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
24572 taking the address of a V_C_E of a constant.
24573
24574 2010-05-14 Jan Hubicka <jh@suse.cz>
24575
24576 * tree.h (memory_identifier_string): Remove.
24577 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
24578 (ipa_reference_global_vars_info_d): Remove statics_not_read and
24579 statics_not_written.
24580 (ipa_reference_optimization_summary_d): New structure.
24581 (ipa_reference_optimization_summary_t): New type and vector.
24582 (ipa_reference_vars_info_d): Embedd structures instead of using
24583 pointers.
24584 (reference_vars_to_consider): Remove out of GGC space.
24585 (module_statics_escape): Remove.
24586 (global_info_obstack): Rename to ...
24587 (optimization_summary_obstack): ... this one.
24588 (initialization_status_t): Remove.
24589 (memory_identifier_string): Remove.
24590 (get_reference_vars_info): Fix indenting.
24591 (set_reference_vars_info): Likewise.
24592 (get_reference_optimization_summary): New.
24593 (set_reference_optimization_summary): New.
24594 (get_global_reference_vars_info): Remove.
24595 (ipa_reference_get_read_global): Remove.
24596 (ipa_reference_get_written_global): Remove.
24597 (ipa_reference_get_not_read_global): Update.
24598 (ipa_reference_get_not_written_global): Update.
24599 (is_proper_for_analysis): Outlaw addressable.
24600 (propagate_bits): Update for new datastructures.
24601 (analyze_variable): Remove.
24602 (init_function_info): Update for new datastructures.
24603 (clean_function_local_data): Remove.
24604 (clean_function): Remove.
24605 (copy_global_bitmap): Use optimizations_summary_obstack.
24606 (duplicate_node_data): Duplicate optimization summary only.
24607 (remove_node_data): Remove optimization summary only.
24608 (generate_summary): Do not analyze variables; do not compute
24609 module_statics_escape; do not prune solutions by it.
24610 (read_write_all_from_decl): Fix typos in comments.
24611 (propagate): Doscover readonly and nonaddressable first;
24612 update for new datastructures; share global bitmaps.
24613 * ipa-reference.h (ipa_reference_get_read_global,
24614 ipa_reference_get_written_global): Remove.
24615 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
24616 * Makefile.in: Remove ipa-refereference from GT files.
24617
24618 2010-05-14 Jakub Jelinek <jakub@redhat.com>
24619
24620 PR debug/44112
24621 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
24622 for all SYMBOL_REF_DECLs.
24623
24624 2010-05-14 Jan Hubicka <jh@suse.cz>
24625
24626 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
24627 (varpool_all_refs_explicit_p): New inline function.
24628 * ipa-reference.c: Update comment.
24629 (module_statics_written): Remove.
24630 (get_static_decl): Remove.
24631 (ipa_init): Do not initialize module_statics_written.
24632 (analyze_function): Likewise.
24633 (generate_summary): Likewise; do not compute module_statics_readonly
24634 and do not update variable flags.
24635 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
24636 * ipa.c: Inlucde flags.h
24637 (cgraph_local_node_p): New.
24638 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
24639 promote functions to local.
24640 (ipa_discover_readonly_nonaddressable_vars): New function.
24641 (function_and_variable_visibility): Use cgraph_local_node_p.
24642 * varpool.c (varpool_finalize_decl): Set force_output for
24643 DECL_PRESERVE_P vars.
24644
24645 2010-05-14 Jan Hubicka <jh@suse.cz>
24646
24647 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
24648
24649 2010-05-14 Richard Guenther <rguenther@suse.de>
24650
24651 PR tree-optimization/44119
24652 * tree-ssa-pre.c (eliminate): Properly mark replacement of
24653 a PHI node necessary.
24654
24655 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
24656
24657 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
24658
24659 2010-05-14 Jason Merrill <jason@redhat.com>
24660
24661 PR c++/44127
24662 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
24663 (gimple_call_set_nothrow): New.
24664 * gimple.c (gimple_build_call_from_tree): Call it.
24665 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
24666
24667 PR c++/44127
24668 * gimplify.c (gimplify_seq_add_stmt): No longer static.
24669 * gimple.h: Declare it.
24670 * gimple.c (gimple_build_eh_filter): No ops.
24671
24672 2010-05-14 Jan Hubicka <jh@suse.cz>
24673
24674 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
24675 nodes already in queue.
24676 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
24677 re-enqueueing node.
24678
24679 2010-05-14 Jakub Jelinek <jakub@redhat.com>
24680
24681 PR debug/44136
24682 * cfgexpand.c (expand_debug_expr): If non-memory op0
24683 has BLKmode, return NULL.
24684
24685 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
24686
24687 * config.gcc: Add support for --with-cpu option for bdver1.
24688 * config/i386/i386.h (TARGET_BDVER1): New macro.
24689 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
24690 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
24691 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
24692 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
24693 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
24694 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
24695 (processor_type): Add PROCESSOR_BDVER1.
24696 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
24697 processor_type in config/i386/i386.h.
24698 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
24699 movaps <reg, reg> instead of movapd <reg, reg> when replacing
24700 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
24701 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
24702 to emit packed xor instead of packed double/packed integer
24703 xor for SSE and AVX when moving a zero value.
24704 * config/i386/sse.md: Add check for
24705 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
24706 movapd/movdqa for SSE and AVX.
24707 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
24708 single logical operations i.e and, or and xor instead of packed double
24709 logical operations for SSE and AVX.
24710 * config/i386/i386-c.c (ix86_target_macros_internal):
24711 Add PROCESSOR_BDVER1.
24712 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
24713 (has_fma4, has_xop): New.
24714 * config/i386/i386.c (bdver1_cost): New variable.
24715 (m_BDVER1): New macro.
24716 (m_AMD_MULTIPLE): Add m_BDVER1.
24717 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
24718 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
24719 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
24720 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
24721 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
24722 x86_tune_sse_partial_reg_dependency,
24723 x86_tune_sse_unaligned_load_optimal,
24724 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
24725 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
24726 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
24727 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
24728 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
24729 Enable/disable for bdver1.
24730 (processor_target_table): Add bdver1_cost.
24731 (cpu_names): Add bdver1.
24732 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
24733 processor_alias_table.
24734 (ix86_expand_vector_move_misalign): Change.
24735 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
24736 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
24737 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
24738 of movupd/movdqu for SSE and AVX.
24739 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
24740 (ix86_tune_adjust_cost): Add code for bdver1.
24741 (standard_sse_constant_opcode): Add check for
24742 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
24743 of packed double xor for SSE and AVX.
24744
24745 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
24746
24747 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
24748 result to unsigned.
24749
24750 2010-05-14 Tristan Gingold <gingold@adacore.com>
24751
24752 * toplev.c (default_debug_hooks): Remove this variable.
24753 (process_options): Remove assignments to default_debug_hooks.
24754
24755 2010-05-14 Martin Jambor <mjambor@suse.cz>
24756
24757 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
24758 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
24759 * langhooks.h (struct lang_hooks_for_decls): Removed field
24760 fold_obj_type_ref.
24761 * tree.c (free_lang_data): Remove assignment to
24762 lang_hooks.fold_obj_type_ref.
24763 * tree.def (OBJ_TYPE_REF): Update comment.
24764
24765 2010-05-14 Richard Guenther <rguenther@suse.de>
24766
24767 PR tree-optimization/44124
24768 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
24769
24770 2010-05-14 Alan Modra <amodra@gmail.com>
24771
24772 PR target/44075
24773 * config/rs6000/rs6000.c (struct machine_function): Reorder
24774 fields for better packing. Add lr_save_state.
24775 (rs6000_ra_ever_killed): Return lr_save_state if set.
24776 (rs6000_emit_eh_reg_restore): Set lr_save_state.
24777
24778 2010-05-13 Jan Hubicka <jh@suse.cz>
24779
24780 * varpool.c (decide_is_variable_needed): Drop code checking
24781 TREE_SYMBOL_REFERENCED.
24782
24783 2010-05-13 Jan Hubicka <jh@suse.cz>
24784
24785 * final.c (output_addr_const): Do not call mark_decl_referenced.
24786 * cgraphunit.c (process_function_and_variable_attributes): Use
24787 mark_needed_node dirrectly.
24788 (assemble_thunk): Do not call mark_decl_referenced.
24789
24790 2010-05-13 Anatoly Sokolov <aesok@post.ru>
24791
24792 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
24793
24794 2010-05-13 Jeff Law <law@redhat.com>
24795
24796 * ira-conflicts.c (print_allocno_conflicts): New function broken out
24797 from...
24798 (print_conflicts): Call print_allocno_conflicts.
24799
24800 2010-05-13 Jakub Jelinek <jakub@redhat.com>
24801
24802 PR debug/44104
24803 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
24804 if it is NULL.
24805
24806 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
24807
24808 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
24809 t-mingw-w64 or t-mingw-w32 for multilib configuration.
24810 * config/i386/t-mingw-w32: New.
24811 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
24812
24813 2010-05-13 Martin Jambor <mjambor@suse.cz>
24814
24815 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
24816 gimple-fold.c).
24817 * gimple-fold.c (get_base_binfo_for_type): New function.
24818 (gimple_get_relevant_ref_binfo): Likewise.
24819 (gimple_fold_obj_type_ref_known_binfo): Likewise.
24820 (gimple_fold_obj_type_ref): Likewise.
24821 (fold_gimple_call): Simplify condition for folding virtual calls
24822 and call gimple_fold_obj_type_ref.
24823 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
24824 (gimple_fold_obj_type_ref_known_binfo): Likewise.
24825
24826 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
24827
24828 * config/rs6000/rs6000-protos.h
24829 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
24830 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
24831 (rs6000_debug_mode_dependent_address)
24832 (rs6000_mode_dependent_address_ptr): Likewise.
24833
24834 2010-05-13 Jakub Jelinek <jakub@redhat.com>
24835
24836 PR debug/43983
24837 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
24838 by SRA.
24839 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
24840 * tree-sra.c (create_access_replacement): Call unshare_expr before
24841 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
24842 * dwarf2out.c: Include tree-flow.h.
24843 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
24844 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
24845 Handle DW_OP_bit_piece.
24846 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
24847 construct_piece_list, adjust_piece_list): New functions.
24848 (add_var_loc_to_decl): Handle SRA optimized variables.
24849 Adjust for var_loc_note to loc field renaming.
24850 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
24851 in VAR_LOCATION note.
24852 (new_loc_descr_op_bit_piece): New function.
24853 (dw_sra_loc_expr): New function.
24854 (dw_loc_list): Use it. Don't handle the last range after the
24855 loop, handle it inside of the loop. Adjust for var_loc_note
24856 to loc field renaming.
24857 (add_location_or_const_value_attribute): Only special case
24858 single entry loc lists if loc is NOTE_P. Adjust for
24859 var_loc_note to loc field renaming.
24860 (dwarf2out_var_location): Don't set newloc->var_loc_note
24861 and newloc->next here.
24862
24863 2010-05-12 Jan Hubicka <jh@suse.cz>
24864
24865 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
24866 flag.
24867 * cgraph.h (cgraph_only_called_directly_p,
24868 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
24869 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
24870 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
24871 (assemble
24872 * ipa.c (cgraph_remove_unreachable_nodes): Use
24873 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
24874 flags.
24875 * tree-inline.c (copy_bb): Check address_taken flag.
24876 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
24877 externally_visible flag.
24878
24879 2010-05-12 Jason Merrill <jason@redhat.com>
24880
24881 PR bootstrap/44048
24882 PR target/44099
24883 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
24884 * sdbout.c (plain_type_1): Likewise.
24885 * dwarf2out.c (is_base_type): Likewise.
24886 (gen_type_die_with_usage): Likewise. Generate
24887 DW_TAG_unspecified_type for any LANG_TYPE.
24888
24889 2010-05-12 Jan Hubicka <jh@suse.cz>
24890
24891 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
24892 indrect edges too.
24893 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
24894 (cgraph_clone_edge): Update.
24895 (cgraph_node_remove_callees): Remove indirect calls too.
24896 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
24897 (cgraph_create_indirect_edge): Update prototype.
24898 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
24899 is_proper_for_analysis.
24900 (add_new_function, visited_nodes, function_insertion_hook_holder,
24901 get_local_reference_vars_info, mark_address_taken, mark_address,
24902 mark_load, mark_store, check_asm_memory_clobber, check_call,
24903 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
24904 (ipa_init): Do not initialize visited_nodes;
24905 function_insertion_hook_holder.
24906 (analyze_variable): Rewrite.
24907 (analyze_function): Rewrite.
24908 (copy_local_bitmap): Remove.
24909 (duplicate_node_dat): Do not duplicate local info.
24910 (generate_summary): Simplify to only walk cgraph.
24911 (write_node_summary_p, ipa_reference_write_summary,
24912 ipa_reference_read_summary): Remove.
24913 (propagate): Do not remove function insertion;
24914 generate summary.
24915 (pass_ipa_reference): NULLify summary handling fields.
24916 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
24917 (input_edge): Input ecf_flags.
24918 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
24919 (update_indirect_edges_after_inlining): Ignore edges with unknown
24920 param.
24921
24922 2010-05-12 Sriraman Tallam <tmsriram@google.com>
24923
24924 * implicit-zee.c: New file.
24925 * tree-pass.h (pass_implicit_zee): Declare.
24926 * passes.c (init_optimization_passes): Add zee pass.
24927 * common.opt (fzee): New flag.
24928 * timevar.def (TV_ZEE): Define.
24929 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
24930 and beyond.
24931 * Makefile.in (implicit-zee.o): Add new build file.
24932
24933 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
24934 Nathan Froyd <froydnj@codesourcery.com>
24935
24936 * c-common.c (sync_resolve_params): Remove write-only variable.
24937
24938 2010-05-12 Anatoly Sokolov <aesok@post.ru>
24939
24940 * target.h (struct gcc_target): Add mode_dependent_address_p field.
24941 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
24942 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
24943 * targhooks.c (default_mode_dependent_address_p): New function.
24944 * targhooks.h (default_mode_dependent_address_p): Declare function.
24945 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
24946 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
24947 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
24948 target hook. Change return type to bool.
24949 * recog.h (mode_dependent_address_p): Change return type to bool.
24950
24951 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
24952 Nathan Froyd <froydnj@codesourcery.com>
24953
24954 * tree-mudflap.c (build_function_type_0, build_function_type_1,
24955 build_function_type_2, build_function_type_3): Remove.
24956 (mudflap_init): Use build_function_type_list.
24957
24958 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
24959 Nathan Froyd <froydnj@codesourcery.com>
24960
24961 * coverage.c (build_fn_info_value): Call build_constructor instead of
24962 build_constructor_from_list.
24963 (build_ctr_info_value): Likewise.
24964 (build_gcov_info): Likewise.
24965
24966 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
24967
24968 * tree.c (build_constructor): Compute TREE_CONSTANT for the
24969 resultant constructor.
24970 (build_constructor_single): Don't set TREE_CONSTANT.
24971 (build_constructor_from_list): Don't compute TREE_CONSTANT.
24972
24973 2010-05-12 Jan Hubicka <jh@suse.cz>
24974
24975 * cgraph.h (struct varpool_node): Add aux.
24976 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
24977 * varpool.c (varpool_remove_node): Do not remove initializer.
24978 (varpool_reset_queue): Export.
24979 (varpool_finalize_decl): Volatile vars are forced to be output.
24980 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
24981 replaced decl.
24982 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
24983 process_references, varpool_can_remove_if_no_refs): New functions.
24984 (cgraph_remove_unreachable_nodes): Handle variables too.
24985
24986 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
24987
24988 PR target/44088
24989 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
24990
24991 2010-05-12 Jakub Jelinek <jakub@redhat.com>
24992
24993 PR middle-end/44085
24994 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
24995 change value of ORT_TASK.
24996 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
24997 (omp_notice_threadprivate_variable): New function.
24998 (omp_notice_variable): Call it for threadprivate variables.
24999 If enclosing ctx is a task, print enclosing task rather than
25000 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
25001 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
25002 if task has untied clause.
25003
25004 PR debug/42278
25005 * dwarf2out.c (base_type_die): Don't add name attribute here.
25006 (modified_type_die): Instead of sizetype use
25007 its underlying original type. If a DW_TAG_base_type doesn't
25008 have name added, add __unknown__.
25009 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
25010 always call force_type_die instead.
25011
25012 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
25013
25014 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
25015 for __stack_chk_guard.
25016
25017 2010-05-11 Jakub Jelinek <jakub@redhat.com>
25018
25019 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
25020 don't call start_source_file debug hook here...
25021 (finish_options): ... but here, after outputting predefined and
25022 command line defines and undefs.
25023
25024 PR middle-end/44071
25025 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
25026 no fallthru edge.
25027 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
25028 optimizing away empty bb with no successors, move over its
25029 footer chain to fallthru predecessor.
25030 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
25031 (rtl_split_edge): For asm goto call patch_jump_insn even if
25032 splitting fallthru edge.
25033
25034 PR c++/44059
25035 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
25036 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
25037 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
25038 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
25039 on DW.ref.* decls.
25040
25041 PR c++/44062
25042 * c-parser.c (c_parser_expression): Mark LHS of a comma
25043 expression as read if it is a decl, handled component or
25044 COMPOUND_EXPR with that on the RHS.
25045 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
25046 if it is a decl or handled component.
25047
25048 2010-05-11 Jan Hubicka <jh@suse.cz>
25049
25050 * lto-symtab.c (lto_symtab_free): New function.
25051 * lto-streamer.h (lto_symtab_free): Declare.
25052
25053 2010-05-11 Jan Hubicka <jh@suse.cz>
25054
25055 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
25056 that if function is needed it is reachable.
25057 (lto_output_node): See if it the function is reachable or referenced.
25058 (output_cgraph): Update call of lto_output_node.
25059 * lto-streamer.h (reachable_from_other_partition_p): Declare.
25060
25061 2010-05-11 Jan Hubicka <jh@suse.cz>
25062
25063 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
25064 Mark as used.
25065
25066 2010-05-11 Jan Hubicka <jh@suse.cz>
25067
25068 PR tree-optimize/44063
25069 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
25070 queue.
25071 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
25072 limits.
25073 (estimate_function_body_sizes): Compute sizes even when disregarding.
25074
25075 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
25076
25077 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
25078
25079 2010-05-11 Jan Hubicka <jh@suse.cz>
25080
25081 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
25082 into every boundary.
25083
25084 2010-05-11 Jan Hubicka <jh@suse.cz>
25085
25086 * matrix-reorg.c (matrix_reorg): Rebuild edges.
25087
25088 2010-05-11 Jan Hubicka <jh@suse.cz>
25089
25090 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
25091 lto_streamer_cache_delete): Put nodes into heap.
25092 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
25093 heap.
25094
25095 2010-05-11 Jan Hubicka <jh@suse.cz>
25096
25097 * cgraphbuild.c (cgraph_rebuild_references): New.
25098 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
25099 out extern inlines.
25100 * cgraph.h (cgraph_rebuild_references): Declare.
25101 * tree-inline.c (tree_function_versioning): Use it.
25102 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
25103
25104 2010-05-11 Jan Hubicka <jh@suse.cz>
25105
25106 * cgraph.c: Include ipa-utils.h
25107 (cgraph_create_virtual_clone): Update references.
25108 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
25109
25110 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
25111
25112 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
25113 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
25114 cache size.
25115
25116 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
25117
25118 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
25119
25120 2010-05-11 Jakub Jelinek <jakub@redhat.com>
25121
25122 * gcc.c (execute): For -### don't quote arguments that
25123 contain just alphanumerics and _/-. characters.
25124 * doc/invoke.texi: Document that change for -###.
25125
25126 PR debug/44023
25127 * df-problems.c (struct dead_debug): Add to_rescan field.
25128 (dead_debug_init): Clear to_rescan field.
25129 (dead_debug_finish): Rescan all debug insns in to_rescan
25130 bitmap and free the bitmap.
25131 (dead_debug_insert_before): Instead of rescanning debug insns
25132 immediately queue their rescanning until dead_debug_finish.
25133 (df_note_bb_compute): After dead_debug_add do continue instead
25134 of break.
25135
25136 2010-05-10 Jakub Jelinek <jakub@redhat.com>
25137
25138 PR debug/44028
25139 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
25140 clear also INSN_REG_USE_LIST.
25141
25142 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25143
25144 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
25145
25146 2010-05-10 Jan Hubicka <jh@suse.cz>
25147
25148 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
25149 commited change.
25150
25151 2010-05-10 Jan Hubicka <jh@suse.cz>
25152
25153 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
25154 Allocate encoders.
25155 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
25156 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
25157 (lto_streamer_cache_create): Init alloc pool.
25158 (lto_streamer_cache_delete): Free alloc pool.
25159 * lto-streamer.h: Include alloc pool.
25160 (lto_streamer_cache_d): Use alloc pool.
25161 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
25162
25163 2010-05-10 Jan Hubicka <jh@suse.cz>
25164
25165 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
25166 * cgraphbuild.c: Include except.h
25167 (record_type_list, record_eh_tables): New function.
25168 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
25169
25170 2010-05-10 Jan Hubicka <jh@suse.cz>
25171
25172 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
25173 __frame_dummy_init_array_entry, force_to_data): Attribute as used
25174 rather than unused.
25175
25176 2010-05-10 Michael Matz <matz@suse.de>
25177
25178 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
25179 (can_reassociate_p): Use FLOAT_TYPE_P.
25180 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
25181 (vect_force_simple_reduction): ... this.
25182 * tree-parloops.c (gather_scalar_reductions): Use
25183 vect_force_simple_reduction.
25184 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
25185 vect_is_simple_reduction, add modify argument, if true rewrite
25186 "a-b" into "a+(-b)".
25187 (vect_is_simple_reduction, vect_force_simple_reduction): New
25188 functions.
25189 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
25190
25191 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
25192 Vladimir Makarov <vmakarov@redhat.com>
25193
25194 PR rtl-optimization/44012
25195 * ira-build.c (remove_unnecessary_allocnos): Nullify
25196 regno_allocno_map of the removed allocno.
25197
25198 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25199
25200 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
25201 to /dev/null.
25202 * configure: Regenerate.
25203
25204 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25205
25206 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
25207 unused.
25208 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
25209 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
25210 support in Sun ld.
25211 * configure: Regenerate.
25212
25213 2010-05-10 Richard Guenther <rguenther@suse.de>
25214
25215 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
25216 marked if the entry identifier is marked.
25217
25218 2010-05-10 Richard Guenther <rguenther@suse.de>
25219
25220 * c-common.c (struct c_common_attributes): Add fnspec attribute.
25221 (handle_fnspec_attribute): New function.
25222 * gimple.h (gimple_call_return_flags): Declare.
25223 (gimple_call_arg_flags): Likewise.
25224 * gimple.c (gimple_call_arg_flags): New function.
25225 (gimple_call_return_flags): Likewise.
25226 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
25227 New argument flags.
25228 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
25229 return value flags.
25230 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
25231 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
25232 main work to ...
25233 (make_heapvar_for): ... this new function.
25234 (handle_rhs_call): Handle fnspec attribute argument specifiers.
25235 (handle_lhs_call): Likewise.
25236 (find_func_aliases): Adjust.
25237
25238 2010-05-10 Richard Guenther <rguenther@suse.de>
25239
25240 PR tree-optimization/44050
25241 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
25242
25243 2010-05-10 Wei Guozhi <carrot@google.com>
25244
25245 PR target/42879
25246 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
25247
25248 2010-05-09 Joseph Myers <joseph@codesourcery.com>
25249
25250 PR c/10676
25251 * c-typeck.c (lookup_field): Take a type directly. Update
25252 recursive calls.
25253 (build_component_ref): Update call to lookup_field.
25254 (set_init_label): Use lookup_field to find initialized field.
25255 Handle returned list of fields like a sequence of designators.
25256
25257 2010-05-09 Richard Guenther <rguenther@suse.de>
25258
25259 PR middle-end/44024
25260 * fold-const.c (tree_single_nonzero_warnv_p): Properly
25261 handle &FUNCTION_DECL.
25262
25263 2010-05-09 Joseph Myers <joseph@codesourcery.com>
25264
25265 PR c/4784
25266 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
25267 structures and unions recursively.
25268 (detect_field_duplicates): Move duplicate detection with a hash to
25269 detect_field_duplicates_hash. Always use a hash if anonymous
25270 structures or unions are present.
25271 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
25272 give errors.
25273
25274 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
25275
25276 PR target/44046
25277 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
25278 detect Atom, Core 2 and Core i7.
25279
25280 2010-05-09 Richard Guenther <rguenther@suse.de>
25281
25282 * gcc.c (store_arg): Handle temporary file deletion for
25283 joined arguments.
25284
25285 2010-05-09 Richard Guenther <rguenther@suse.de>
25286
25287 PR middle-end/44043
25288 * ipa-inline.c (estimate_function_body_sizes): Return after
25289 disregarding inline limits.
25290
25291 2010-05-09 Richard Guenther <rguenther@suse.de>
25292
25293 * gcc.c (store_arg): Revert last change.
25294
25295 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
25296
25297 PR middle-end/28685
25298 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
25299 (optimize_ops_list): Call it.
25300
25301 2010-05-08 Richard Guenther <rguenther@suse.de>
25302
25303 PR tree-optimization/44030
25304 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
25305 NECESSARY flag if we propagate from a inserted expression.
25306
25307 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
25308
25309 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
25310 domain types as equal if they are both PLACEHOLDER_EXPRs.
25311
25312 2010-05-08 Richard Guenther <rguenther@suse.de>
25313
25314 * lto-wrapper.c (run_gcc): Remove linker output from
25315 command line for LTRANS invocation.
25316
25317 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
25318
25319 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
25320 lto-macho as lto_binary_reader.
25321 * target.h (struct gcc_target): New hooks lto_start and lto_end.
25322 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
25323 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
25324 in lto_start and lto_end calls.
25325 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
25326 magic numbers.
25327 (scan_prog_file): Update is_elf_or_coff call.
25328 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
25329
25330 * collect2.c (main): Fix enum comparison.
25331
25332 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
25333 Add prototypes.
25334 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
25335 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
25336 and TARGET_ASM_LTO_END.
25337 * darwin.c: Include obstack.h and lto-streamer.h.
25338 (lto_section_names_offset, lto_section_names_obstack,
25339 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
25340 global variables.
25341 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
25342 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
25343 to a temporary file.
25344 (darwin_asm_lto_end): New function. Restore asm_out_file.
25345 (darwin_asm_named_section): For LTO sections, replace the name with
25346 the offset of the section name in a string table, and build this
25347 table.
25348 (darwin_file_start): Initialize global vars for LTO support.
25349 (darwin_file_end): If output to asm_out_file was redirected, append it
25350 to the proper asm_out_file here. Add the section names section.
25351
25352 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
25353
25354 * c-pragma.c (pending_weak_d, pending_weak): New.
25355 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
25356 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
25357 handle_pragma_weak): Update the uses of pending_weaks.
25358
25359 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25360
25361 PR documentation/44016
25362 * doc/standards.texi (Standards): Link to unversioned
25363 cxx0x_status.html page.
25364
25365 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
25366
25367 PR target/43708
25368 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
25369 in addition to TREE_USED, to avoid "set but unused" warnings.
25370
25371 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
25372
25373 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
25374 (is_loop_prefetching_profitable): Do not insert prefetches
25375 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
25376 times the prefetch ahead distance.
25377
25378 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
25379
25380 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
25381 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
25382 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
25383 the unroll_factor.
25384
25385 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
25386
25387 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
25388 a diagnostic info when the insn-to-mem ratio is too small.
25389
25390 2010-05-07 Richard Guenther <rguenther@suse.de>
25391
25392 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
25393 the linker plugin.
25394 (store_arg): Queue temp_filename for deletion instead of
25395 the whole argument.
25396
25397 2010-05-07 Richard Guenther <rguenther@suse.de>
25398
25399 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
25400 (run_gcc): Handle LTRANS phase invocation.
25401 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
25402
25403 2010-05-07 Jakub Jelinek <jakub@redhat.com>
25404
25405 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
25406 this is also meaningful on PARM_DECLs and RESULT_DECLs.
25407
25408 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25409
25410 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
25411
25412 2010-05-07 Richard Guenther <rguenther@suse.de>
25413
25414 PR tree-optimization/44020
25415 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
25416 code when PRE is not yet initialized.
25417
25418 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25419
25420 * config/mips/dbxmdebug.h: Remove.
25421 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
25422
25423 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
25424
25425 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
25426 with null pointer and also warn about ordered comparison of zero with
25427 pointer if -Wextra.
25428
25429 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
25430
25431 * graphite-blocking.c
25432 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
25433 * graphite-clast-to-gimple.c
25434 (clast_to_gcc_expression): Same.
25435 (precision_for_value): Same.
25436 (precision_for_interval): Same.
25437 (gcc_type_for_interval): Same.
25438 (graphite_create_new_guard): Same.
25439 (compute_bounds_for_level): Same.
25440 (graphite_create_new_loop_guard): Same.
25441 * graphite-interchange.c
25442 (build_linearized_memory_access): Same.
25443 (pdr_stride_in_loop): Same.
25444 (memory_strides_in_loop_1): Same.
25445 (memory_strides_in_loop): Same.
25446 (extend_scattering): Same.
25447 (psct_scattering_dim_for_loop_depth): Same.
25448 (pbb_number_of_iterations): Same.
25449 * graphite-poly.h
25450 (debug_iteration_domains): Same.
25451 * graphite-ppl.c
25452 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
25453 (ppl_set_inhomogeneous_gmp): Same.
25454 (ppl_strip_loop): Same.
25455 (ppl_lexico_compare_linear_expressions): Same.
25456 (ppl_read_polyhedron_matrix): Same.
25457 (ppl_max_for_le_pointset): Same.
25458 * graphite-ppl.h
25459 (ppl_read_polyhedron_matrix): Same.
25460 (tree_int_to_gmp): Same.
25461 (gmp_cst_to_tree): Same.
25462 (ppl_set_inhomogeneous): Same.
25463 (ppl_set_inhomogeneous_tree): Same.
25464 (ppl_set_coef): Same.
25465 (ppl_set_coef_tree): Same.
25466 * graphite-sese-to-poly.c
25467 (build_pbb_scattering_polyhedrons): Same.
25468 (build_scop_scattering): Same.
25469 (scan_tree_for_params_right_scev): Same.
25470 (scan_tree_for_params): Same.
25471 (find_params_in_bb): Same.
25472 (find_scop_parameters): Same.
25473 (add_upper_bounds_from_estimated_nit): Same.
25474 (build_loop_iteration_domains): Same.
25475 (add_condition_to_domain): Same.
25476 (pdr_add_memory_accesses): Same.
25477
25478 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
25479
25480 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
25481 CLooG's value_* macros to their respective mpz_* counterparts.
25482 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
25483 (graphite_create_new_loop_guard): Same.
25484 * graphite-interchange.c (build_linearized_memory_access): Same.
25485 (pdr_stride_in_loop): Same.
25486 (memory_strides_in_loop_1): Same.
25487 (1st_interchange_profitable_p): Same.
25488 * graphite-poly.c (extend_scattering): Same.
25489 (psct_scattering_dim_for_loop_depth): Same.
25490 (pbb_number_of_iterations): Same.
25491 (pbb_number_of_iterations_at_time): Same.
25492 * graphite-poly.h (new_1st_loop): Same.
25493 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
25494 (oppose_constraint): Same.
25495 (insert_constraint_into_matrix): Same.
25496 (ppl_set_inhomogeneous_gmp): Same.
25497 (ppl_set_coef_gmp): Same.
25498 (ppl_strip_loop): Same.
25499 (ppl_lexico_compare_linear_expressions): Same.
25500 (ppl_max_for_le_pointset): Same.
25501 (ppl_min_for_le_pointset): Same.
25502 (ppl_build_realtion): Same.
25503 * graphite-ppl.h (gmp_cst_to_tree): Same.
25504 (ppl_set_inhomogeneous): Same.
25505 (ppl_set_inhomogeneous_tree): Same.
25506 (ppl_set_coef): Same.
25507 (ppl_set_coef_tree): Same.
25508 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
25509 (build_scop_scattering): Same.
25510 (add_value_to_dim): Same.
25511 (scan_tree_for_params_right_scev): Same.
25512 (scan_tree_for_params_int): Same.
25513 (scan_tree_for_params): Same.
25514 (find_params_in_bb): Same.
25515 (find_scop_parameters): Same.
25516 (add_upper_bounds_from_estimated_nit): Same.
25517 (build_loop_iteration_domains): Same.
25518 (create_linear_expr_from_tree): Same.
25519 (add_condition_to_domain): Same.
25520 (pdr_add_memory_accesses): Same.
25521
25522 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
25523 Jason Merrill <jason@redhat.com>
25524
25525 * c-common.c (c_common_reswords): Add nullptr.
25526 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
25527 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
25528 (gen_type_die_with_usage): Likewise.
25529 * dbxout.c (dbxout_type): Likewise.
25530 * sdbout.c (plain_type_1): Likewise.
25531
25532 2010-05-06 Jason Merrill <jason@redhat.com>
25533
25534 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
25535 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
25536 ret appropriately.
25537 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
25538
25539 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
25540 stripping WITH_SIZE_EXPR.
25541 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
25542 change.
25543
25544 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25545
25546 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
25547 list of obsolete configurations.
25548 Disabled check for obsolete configurations.
25549 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
25550 Removed support for previous versions.
25551 * config/mips/iris.h: Removed.
25552 * config/mips/iris5.h: Removed.
25553 * config/mips/iris6.h: Merged old iris.h contents.
25554 (TARGET_IRIX): Removed.
25555 (DRIVER_SELF_SPECS): Removed mabi=32.
25556 (IDENT_ASM_OP): Removed undef.
25557 (STARTFILE_SPEC): Removed mabi=32.
25558 (ENDFILE_SPEC): Likewise.
25559 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
25560 (MACHINE_TYPE): Update for IRIX 6.5.
25561 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
25562 TARGET_IRIX by TARGET_IRIX6.
25563 (mips_file_start): Likewise.
25564 (mips_output_external): Remove IRIX 5/6 O32 support.
25565 (mips_output_function_prologue): Likewise.
25566 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
25567 TARGET_IRIX6.
25568 (TARGET_CPU_CPP_BUILTINS): Likewise.
25569 (TARGET_IRIX): Removed.
25570 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
25571 (MULTILIB_DIRNAMES): Removed 32.
25572 (MULTILIB_OSDIRNAMES): Removed ../lib.
25573 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
25574 (Specific, mips-sgi-irix5): Document removal.
25575 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
25576 Remove references to older IRIX 6 releases and the O32 ABI.
25577
25578 2010-05-06 Jakub Jelinek <jakub@redhat.com>
25579
25580 PR bootstrap/43994
25581 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
25582 instead of DF_REF_REAL_REG.
25583
25584 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
25585
25586 PR target/43888
25587 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
25588 handling to still return true for x64 targets.
25589
25590 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
25591
25592 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
25593
25594 2010-05-06 Jan Hubicka <jh@suse.cz>
25595
25596 PR tree-optimization/43791
25597 * ipa-inline.c (update_caller_keys): Remove bogus
25598 disregard_inline_limits check.
25599
25600 2010-05-06 Michael Matz <matz@suse.de>
25601
25602 PR tree-optimization/43984
25603 * tree-ssa-pre.c (inserted_phi_names): Remove.
25604 (inserted_exprs): Change to bitmap.
25605 (create_expression_by_pieces): Set bits, don't append to vector.
25606 (insert_into_preds_of_block): Don't handle inserted_phi_names.
25607 (eliminate): Don't look at inserted_phi_names, remove deleted
25608 insns from inserted_exprs.
25609 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
25610 (init_pre, fini_pre): Allocate and free bitmaps.
25611 (execute_pre): Insert insns on edges before elimination.
25612
25613 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
25614
25615 * tree.c (initializer_zerop): Handle STRING_CST.
25616
25617 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
25618
25619 PR 40989
25620 * doc/invoke.texi (Wimplicit): Document as C only.
25621 * opts.c (common_handle_option): Add argument kind.
25622 (handle_option): Rename as read_cmdline_option. Factor out code to...
25623 (handle_option): ... here. New.
25624 (handle_options): Rename as read_cmdline_options.
25625 (decode_options): Update call.
25626 (set_option): Use option index instead of option pointer. Classify
25627 diagnostics correctly.
25628 (enable_warning_as_error): Call handle_option.
25629 * opts.h (set_option): Update declaration.
25630 (handle_option): Declare.
25631 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
25632 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
25633 * c-opts.c (set_Wimplicit): Delete.
25634 (c_family_lang_mask): New static constant.
25635 (c_common_handle_option): Add argument kind. Use handle_option
25636 instead of set_Wimplicit.
25637 (c_common_post_options): warn_implicit and warn_implicit_int
25638 are disabled by default.
25639 * c-common.c (warn_implicit): Do not define here.
25640 * c-common.h (warn_implicit): Do not declare here.
25641 (c_common_handle_option): Update declaration.
25642 * lto-opts.c (lto_reissue_options): Update call to set_option.
25643
25644 2010-05-06 Richard Guenther <rguenther@suse.de>
25645
25646 PR tree-optimization/43571
25647 * domwalk.c (walk_dominator_tree): Walk the dominator
25648 sons in more optimal order.
25649
25650 2010-05-06 Richard Guenther <rguenther@suse.de>
25651
25652 PR tree-optimization/43934
25653 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
25654 (stmt_cost): Likewise.
25655 (extract_true_false_args_from_phi): New helper.
25656 (determine_max_movement): For PHI nodes verify we can hoist them
25657 and compute their cost.
25658 (determine_invariantness_stmt): Handle PHI nodes.
25659 (move_computations_stmt): Likewise. Hoist PHI nodes in
25660 if-converted form using COND_EXPRs.
25661 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
25662 (tree_ssa_lim): Likewise.
25663 * tree-flow.h (tree_ssa_lim): Adjust prototype.
25664 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
25665
25666 2010-05-06 Richard Guenther <rguenther@suse.de>
25667
25668 PR tree-optimization/43987
25669 * tree-ssa-structalias.c (could_have_pointers): For possibly
25670 address-taken variables force pointers to be recorded.
25671 (create_variable_info_for_1): Likewise.
25672 (push_fields_onto_fieldstack): Pass in wheter all fields
25673 must have pointers.
25674 (find_func_aliases): Query types instead of vars whether
25675 they contain pointers where appropriate.
25676
25677 2010-05-06 Jan Hubicka <jh@suse.cz>
25678
25679 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
25680 (record_reference, mark_address, mark_load, mark_store): Record
25681 references.
25682 (record_references_in_initializer): Update call of record_references.
25683 (rebuild_cgraph_edges): Remove all references before rebuiding.
25684 * cgraph.c (cgraph_create_node): Clear ref list.
25685 (cgraph_remove_node): Remove references.
25686 (dump_cgraph_node): Dump references.
25687 (cgraph_clone_node): Clone references.
25688 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
25689 (struct cgraph_node, varpool_node): Add ref_lst.
25690 * ipa-ref.c: New file.
25691 * ipa-ref.h: New file.
25692 * ipa-ref-inline.h: New file.
25693 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
25694 (referenced_from_other_partition_p): New function.
25695 (lto_output_varpool_node): Take set arugment; call
25696 referenced_from_other_partition.
25697 (lto_output_ref): New.
25698 (add_references): New.
25699 (output_refs): New.
25700 (output_cgraph): Compute boundary based on references; output refs.
25701 (output_varpool): Accept cgraph_node_set argument.
25702 (input_ref): New.
25703 (input_refs): New.
25704 (input_cgraph): Call input_refs.
25705 * lto-section-in.c (lto_section_name): Add refs.
25706 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
25707 (ipa-ref.o): New file.
25708 * varpool.c (varpool_node): Clear ipa ref list.
25709 (varpool_remove_node): Remove references.
25710 (dump_varpool_node): Dump references.
25711 (varpool_assemble_decl): Only compile finalized ones.
25712 (varpool_extra_name_alias): Initialize ref list.
25713 * lto-streamer.c (lto-get_section_name): Add .refs section.
25714 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
25715 (referenced_from_other_partition_p): Declared.
25716
25717 2010-05-06 Ira Rosen <irar@il.ibm.com>
25718
25719 PR tree-optimization/43901
25720 * tree-vect-stmts.c (vectorizable_call): Assert that vector
25721 type is not NULL if it's transformation phase, and return
25722 FALSE if it's analysis.
25723 (vectorizable_conversion, vectorizable_operation,
25724 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
25725
25726 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
25727
25728 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
25729 Delete.
25730 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
25731 New define.
25732 * config/mips/mips-protos.h
25733 (mips_small_register_classes_for_mode_p): Delete prototype.
25734
25735 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
25736
25737 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
25738 * config/arm/arm.c (multiple_operation_profitable_p,
25739 compute_offset_order): New static functions.
25740 (load_multiple_sequence, store_multiple_sequence): Use them.
25741 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
25742 memory offsets, not register numbers.
25743 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
25744
25745 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
25746
25747 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
25748 (get_pending_sizes, put_pending_size, put_pending_sizes):
25749 Update the uses of pending_sizes.
25750 * c-decl.c (store_parm_decls): Likewise.
25751 * c-tree.h (struct c_arg_info): Likewise.
25752 * tree.h: Update the prototype for get_pending_sizes and
25753 put_pending_sizes.
25754
25755 2010-05-05 Jason Merrill <jason@redhat.com>
25756
25757 PR debug/43370
25758 * c-common.c (handle_aligned_attribute): Respect
25759 ATTR_FLAG_TYPE_IN_PLACE.
25760
25761 PR testsuite/43758
25762 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
25763 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
25764 (TARGET_INITIALIZER): Use it.
25765 * c-common.c (attribute_takes_identifier_p): Call it.
25766 * c-common.h: Update prototype.
25767 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
25768 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
25769
25770 2010-05-05 Jakub Jelinek <jakub@redhat.com>
25771
25772 PR debug/43950
25773 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
25774 DW_ID_down_case for Fortran compilation units.
25775
25776 2010-05-05 Jan Hubicka <jh@suse.cz>
25777
25778 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
25779 handle aliases.
25780
25781 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
25782
25783 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
25784 a variable-sized RESULT_DECL.
25785
25786 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
25787
25788 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
25789
25790 2010-05-05 Jason Merrill <jason@redhat.com>
25791
25792 PR c++/43787
25793 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
25794 returns GS_OK.
25795 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
25796
25797 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
25798 Jakub Jelinek <jakub@redhat.com>
25799
25800 PR debug/43478
25801 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
25802 (dead_debug_init, dead_debug_finish): New functions.
25803 (dead_debug_add, dead_debug_insert_before): Likewise.
25804 (df_note_bb_compute): Initialize a dead_debug object, add dead
25805 debug uses to it, insert debug bind insns before death insns,
25806 reset debug insns that refer to pending uses at the end.
25807 * rtl.h (make_debug_expr_from_rtl): New prototype.
25808 * varasm.c (make_debug_expr_from_rtl): New function.
25809
25810 2010-05-05 Jan Hubicka <jh@suse.cz>
25811
25812 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
25813 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
25814 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
25815 lto_varpool_encoder_deref, lto_varpool_encoder_size,
25816 lto_varpool_encoder_encode_initializer_p,
25817 lto_set_varpool_encoder_encode_initializer): New functions.
25818 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
25819 call output_varpool.
25820 (input_varpool_node): Do not always set analyzed.
25821 (input_cgraph_1): Return vector of cgraph nodes.
25822 (input_varpool_1): Return vector of varpools.
25823 (input_cgraph): Free the vectors.
25824 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
25825 output only initializers needed.
25826 (lto_output): Only call output_cgraph.
25827 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
25828 * lto-section-out.c (lto_new_out_decl_state): Initialize
25829 state->varpool_node_encoder.
25830 * lto-streamer.h (lto_varpool_encoder_d): New.
25831 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
25832 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
25833 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
25834 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
25835 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
25836 Declare.
25837 (output_varpool, input_varpool): Remove declarations.
25838
25839 2010-05-05 Jan Hubicka <jh@suse.cz>
25840
25841 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
25842 with body can prevail.
25843
25844 2010-05-05 Jan Hubicka <jh@suse.cz>
25845
25846 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
25847 size.
25848
25849 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
25850
25851 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
25852
25853 * gengtype.h (erro_at_line): Constify pos argument.
25854
25855 * gengtype.c: Include hashtab.h.
25856 (enum gc_used): Document GC_MAYBE_POINTED_TO.
25857 (error_at_line): Constify pos argument.
25858 (do_typedef): Initialize p->opt field.
25859 (get_file_gtfilename): Fix comment typo.
25860 (struct walk_type_data): Constify line field.
25861 (get_output_file_for_structure): New function.
25862 (write_local_func_for_structure): Constify orig_s argument.
25863 Use get_output_file_for_structure.
25864 (write_func_for_structure): Use get_output_file_for_structure.
25865 (INDENT): New define.
25866 (dump_pair, dump_type, dump_type_list, dump_typekind)
25867 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
25868 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
25869 functions.
25870 (seen_types): New variable.
25871 (main): New variable do_dump. Process "-d" command line option.
25872 Call dump_everything if dump requested.
25873
25874 2010-05-05 Jakub Jelinek <jakub@redhat.com>
25875
25876 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
25877 in a temporary instead of invoking the macro multiple times.
25878 (track_expr_p): Likewise.
25879
25880 2010-05-04 Neil Vachharajani <nvachhar@google.com>
25881
25882 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
25883 per new semantics.
25884 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
25885 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
25886 conditions for printing notes.
25887 * common.opt (-Wcoverage-mismatch): Allow negative, default to
25888 true, update documentation.
25889 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
25890
25891 2010-05-04 Jakub Jelinek <jakub@redhat.com>
25892
25893 PR c/43981
25894 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
25895 on dimen.
25896
25897 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
25898
25899 PR target/43799
25900 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
25901 (*sse_prologue_save_insn1): Likewise.
25902 (SSE prologue save splitter): Likewise.
25903
25904 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
25905
25906 * tree.c (free_lang_data_in_one_sizepos): New inline function.
25907 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
25908 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
25909 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
25910 all decls. Call it on DECL_FIELD_OFFSET of fields.
25911 (find_decls_types_r): Follow DECL_VALUE_EXPR.
25912 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
25913
25914 2010-05-04 Martin Jambor <mjambor@suse.cz>
25915
25916 * tree-sra.c (build_access_from_expr_1): The first parameter type
25917 changed to simple tree.
25918 (build_access_from_expr): Likewise, gsi parameter was eliminated.
25919 (scan_assign_result): Renamed to assignment_mod_result, enum elements
25920 renamed as well.
25921 (build_accesses_from_assign): Removed all parameters except for a
25922 simple gimple statement. Now returns a simple bool.
25923 (scan_function): All non-analysis parts moved to separate functions
25924 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
25925 parameters and updated both callers.
25926 (sra_modify_expr): Removed parameter data.
25927 (sra_modify_function_body): New function.
25928 (perform_intra_sra): Call sra_modify_function_body to modify the
25929 function body.
25930 (replace_removed_params_ssa_names): Parameter data changed into
25931 adjustments vector.
25932 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
25933 changed the parameter dont_convert to convert with the opposite
25934 meaning.
25935 (sra_ipa_modify_assign): Parameter data changed into adjustments
25936 vector, return value changed to bool.
25937 (ipa_sra_modify_function_body): New function.
25938 (sra_ipa_reset_debug_stmts): Updated a comment.
25939 (modify_function): Use ipa_sra_modify_function_body to modify function
25940 body.
25941
25942 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
25943
25944 PR middle-end/43671
25945 * alias.c (true_dependence): Handle the same VALUE in x and mem.
25946 (canon_true_dependence): Likewise.
25947 (write_dependence_p): Likewise.
25948
25949 2010-05-04 Jan Hubicka <jh@suse.cz>
25950
25951 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
25952 * cgraphbuild.c: Include ipa-utils.h
25953 (record_reference_ctx): New struct.
25954 (record_reference): Simplify to work on initializers; not statements.
25955 (mark_address, mark_load, mark_store): New.
25956 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
25957 walk PHI nodes too.
25958 (record_references_in_initializer): Update use of record_reference.
25959 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
25960 walk PHI nodes too.
25961
25962 2010-05-04 Jan Hubicka <jh@suse.cz>
25963
25964 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
25965 node will be removed anyway.
25966 (lto_varpool_replace_node): Allow also unanalyzed nodes;
25967 relink aliases of node into prevailing node.
25968 * varpool.c (varpool_remove_node): Remove aliases properly;
25969 when removing node, remove all its aliases too; remove DECL_INITIAL
25970 of removed node; ggc_free the varpool node.
25971
25972 2010-05-04 Richard Guenther <rguenther@suse.de>
25973
25974 PR tree-optimization/43879
25975 * tree-ssa-structalias.c (alias_get_name): Use
25976 DECL_ASSEMBLER_NAME if available.
25977 (create_function_info_for): Return the varinfo node.
25978 (ipa_pta_execute): Associate same-body aliases and extra names
25979 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
25980
25981 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
25982
25983 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
25984
25985 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
25986
25987 PR bootstrap/43964
25988 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
25989 only if HONOR_REG_ALLOC_ORDER is not defined.
25990
25991 2010-05-04 Richard Guenther <rguenther@suse.de>
25992
25993 PR tree-optimization/43949
25994 * tree-vrp.c (extract_range_from_binary_expr): Only handle
25995 TRUNC_MOD_EXPR.
25996
25997 2010-04-26 Jason Merrill <jason@redhat.com>
25998
25999 * c.opt (-fstrict-enums): New.
26000 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
26001
26002 2010-05-03 David Ung <davidu@mips.com>
26003 James E. Wilson <wilson@codesourcery.com>
26004
26005 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
26006 emit the trap instruction before the divide for TUNE_74K.
26007
26008 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
26009
26010 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
26011 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
26012 based on the above, for new target hook.
26013
26014 * hooks.c (hook_bool_mode_true): New generic hook.
26015 * hooks.h (hook_bool_mode_true): Add prototype.
26016
26017 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
26018 target hook.
26019 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
26020 target hook, set to hook_bool_mode_false.
26021 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
26022 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
26023 with targetm.small_register_classes_for_mode_p.
26024 (find_reusable_reload): Likewise.
26025 (combine_reloads): Likewise.
26026 * reload1.c (reload_as_needed): Likewise.
26027 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
26028 * ifcvt.c (noce_process_if_block, check_cond_move_block,
26029 dead_or_predicable): Likewise.
26030 * regmove.c (optimize_reg_copy_1): Likewise.
26031 * calls.c (prepare_call_address): Likewise.
26032 (precompute_register_parameters): Likewise.
26033
26034 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
26035 hook definition.
26036 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
26037 implementation of the hook that considers all register classes
26038 small except for SH64.
26039 (sh_override_options): Use the new hook.
26040 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
26041 Add prototype.
26042
26043 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
26044 hook definition.
26045 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
26046 implementation of the hook that considers all register classes
26047 small for THUMB1.
26048 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
26049 Add prototype.
26050
26051 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
26052 hook definition.
26053 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
26054 implementation of the hook that considers all register classes
26055 small for MIPS16.
26056 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
26057 Add prototype.
26058
26059 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
26060 hook definition.
26061 * config/m32c/m32c.h: Likewise.
26062 * config/pdp11/pdp11.h: Likewise.
26063 * config/avr/avr.h: Likewise.
26064 * config/xtensa/xtensa.h: Likewise.
26065 * config/m68hc11/m68hc11.h: Likewise.
26066 * config/mn10300/mn10300.h: Likewise.
26067 * config/mcore/mcore.h: Likewise.
26068 * config/h8300/h8300.h: Likewise.
26069 * config/bfin/bfin.h: Likewise.
26070
26071 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
26072 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
26073
26074 2010-05-03 Anatoly Sokolov <aesok@post.ru>
26075
26076 * double-int.h (tree_to_double_int): Remove macro.
26077 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
26078 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
26079 (tree_to_double_int): New function.
26080 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
26081 Move ...
26082 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
26083
26084 2010-05-03 Richard Guenther <rguenther@suse.de>
26085
26086 PR tree-optimization/43971
26087 * tree-ssa-structalias.c (get_constraint_for_1): Fix
26088 constraints in the !flag_delete_null_pointer_checks case.
26089
26090 2010-05-03 Jakub Jelinek <jakub@redhat.com>
26091
26092 PR debug/43972
26093 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
26094 result mode matches original rtl mode.
26095
26096 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
26097
26098 PR target/43888
26099 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
26100
26101 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
26102
26103 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
26104 when processing flag options.
26105
26106 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
26107
26108 * gcov-iov.c (main): Change format string placeholder
26109 from %#08x to 0x%08x.
26110 * genchecksum.c (dosum): Change format string placeholder
26111 from %#02x to 0x%02x.
26112
26113 2010-05-02 Richard Guenther <rguenther@suse.de>
26114
26115 PR tree-optimization/43879
26116 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
26117
26118 2010-05-02 Bruno Haible <bruno@clisp.org>
26119
26120 * doc/extend.texi (Function Attributes): Fix a typo.
26121
26122 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
26123
26124 Revert:
26125 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
26126 placeholder from 0x%x to %#x.
26127 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
26128 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
26129 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
26130 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
26131 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
26132 * config/i386/i386.c (ix86_target_string): Ditto.
26133 * config/i386/i386.c (output_pic_addr_const): Ditto.
26134 (print_operand): Ditto.
26135
26136 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
26137
26138 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
26139 placeholder from 0x%x to %#x.
26140 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
26141 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
26142 (ASM_OUTPUT_DEBUG_DATA): Ditto.
26143 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
26144 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
26145 * optc-gen.awk: Ditto.
26146 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
26147 (HOST_WIDE_INT_PRINT_HEX): Ditto.
26148 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
26149 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
26150
26151 2010-05-01 Anatoly Sokolov <aesok@post.ru>
26152
26153 * target.h (struct calls): Add function_value_regno_p field.
26154 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
26155 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
26156 * targhooks.c (default_function_value_regno_p): New function.
26157 * targhooks.h (default_function_value_regno_p): Declare function.
26158 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
26159 * builtins.c. (apply_result_size): (Ditto.).
26160 * combine.c. (likely_spilled_retval_p): (Ditto.).
26161 * mode-switching.c. Include 'target.h'.
26162 (create_pre_exit): Use function_value_regno_p hook.
26163 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
26164 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
26165 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
26166
26167 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
26168 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
26169 (ix86_function_value_regno_p): Declare as static, change argument
26170 type to const unsigned int.
26171 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
26172
26173 2010-05-01 Richard Guenther <rguenther@suse.de>
26174
26175 PR tree-optimization/43949
26176 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
26177 types.
26178 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
26179
26180 2010-05-01 Anatoly Sokolov <aesok@post.ru>
26181
26182 * rtl.h (CONST_DOUBLE_P): Define.
26183 (rtx_to_double_int): Declare.
26184 * emit-rtl.c (rtx_to_double_int): New function.
26185 * dwarf2out.c (insert_double): New function.
26186 (loc_descriptor, add_const_value_attribute): Clean up, use
26187 rtx_to_double_int and insert_double functions.
26188
26189 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
26190
26191 * doc/extend.texi (Inline): Add missing return keyword to examples.
26192 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
26193 "command-line".
26194
26195 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
26196
26197 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
26198 the variable part of the offset as well. Use highest_pow2_factor for
26199 all alignment checks.
26200
26201 2010-04-30 Richard Guenther <rguenther@suse.de>
26202
26203 PR tree-optimization/43879
26204 * tree-ssa-structalias.c (type_could_have_pointers): Functions
26205 can have pointers.
26206
26207 2010-04-30 Jan Hubicka <jh@suse.cz>
26208
26209 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
26210 varpool.
26211 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
26212
26213 2010-04-30 Jan Hubicka <jh@suse.cz>
26214
26215 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
26216 New.
26217 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
26218 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
26219 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
26220 cgraph_node_set_needs_ltrans_p): Remove.
26221
26222 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
26223
26224 * sdbout.c: Include vec.h, do not include varray.h.
26225 (deferred_global_decls, sdbout_global_decl,
26226 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
26227 * toplev.c: Do not include varray.h.
26228 (dump_memory_report): Do not dump VARRAY statistics.
26229 * gengtype.c (open_base_file): Ignore varray.h.
26230 * Makefile.in: Update for abovementioned changes.
26231 Remove all traces of varray.c and varray.h.
26232 * varray.c: Remove file.
26233 * varray.h: Remove file.
26234
26235 2010-04-30 Jan Hubicka <jh@suse.cz>
26236
26237 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
26238 references.
26239
26240 2010-04-30 Jan Hubicka <jh@suse.cz>
26241
26242 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
26243 needed.
26244
26245 2010-04-30 Richard Guenther <rguenther@suse.de>
26246
26247 * tree-ssa-structalias.c (get_constraint_for_1): Generate
26248 constraints for CONSTRUCTOR.
26249
26250 2010-04-30 Richard Guenther <rguenther@suse.de>
26251
26252 PR lto/43946
26253 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
26254 first after all lowering passes.
26255
26256 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
26257
26258 * toplev.c: Include varray.h for statistics dumping.
26259 * tree.h: Do not declare varray_head_tag.
26260 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
26261 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
26262 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
26263 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
26264 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
26265 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
26266 c-common.c, c-common.h, reg-stack.c, basic-block.h,
26267 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
26268 include varray.h.
26269 * Makefile.in: Update for abovementioned changes.
26270
26271 2010-04-30 Jakub Jelinek <jakub@redhat.com>
26272
26273 PR debug/43942
26274 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
26275
26276 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
26277
26278 * config/picochip/picochip.c (picochip_legitimize_address): Define.
26279 Use this function to do machine-specific conversion.
26280 (picochip_legitimize_reload_address): Likewise.
26281 (picochip_legitimate_address_p): Check valid base register only if
26282 strict.
26283 (picochip_check_conditional_copy): Check for modw only if opnd is
26284 register.
26285 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
26286 to call the function in c.
26287 * config/picochip/picochip-protos.h
26288 (picochip_legitimize_reload_address): Define.
26289 * config/picochip/picochip.md (supported_compare1): Define.
26290
26291 2010-04-30 Jan Hubicka <jh@suse.cz>
26292
26293 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
26294 (cgraph_global_info): Remove inlined.
26295 (LTO_cgraph_tag_names): Remove.
26296 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
26297 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
26298 simplify cgraph tags and document.
26299 (lto_output_node): Use only LTO_cgraph_unavail_node and
26300 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
26301 for_functions_valid, global info, process and output flags.
26302 (input_overwrite_node): Initialize estimated stack size and
26303 estimated growth. Do not read flags we no longer store.
26304 (input_node): Likewise do not read info no longer stored.
26305 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
26306 flag.
26307
26308 2010-04-30 Richard Guenther <rguenther@suse.de>
26309
26310 PR tree-optimization/43879
26311 * tree-ssa-structalias.c (get_constraint_for_1): Properly
26312 handle non-zero initializers.
26313
26314 2010-04-30 Richard Guenther <rguenther@suse.de>
26315
26316 * builtins.c (fold_builtin_1): Delete free (0).
26317
26318 2010-04-29 Jan Hubicka <jh@suse.cz>
26319
26320 * gengtype.c (open_base_files): Add lto-streamer.h
26321 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
26322 (pass_ipa_cp): GGC collect.
26323 * toplev. (compile_file): Do not output symbols.
26324 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
26325 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
26326 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
26327 * lto-section-in.c: Include ggc.h
26328 (lto_new_in_decl_state): Alloc in GGC.
26329 (lto_delete_in_decl_state): Likewise.
26330 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
26331 Collect.
26332
26333 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
26334
26335 PR target/42895
26336 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
26337 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
26338 (HONOR_REG_ALLOC_ORDER): Describe new macro.
26339 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
26340 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
26341 account only if HONOR_REG_ALLOC_ORDER is not defined.
26342 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
26343 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
26344
26345 2010-04-29 Jon Grant <04@jguk.org>
26346
26347 * collect2.c (vflag): Change type from int to bool.
26348 (debug): Likewise.
26349 (helpflag): New global bool.
26350 (main): Set vflag and debug with boolean, not integer truth values.
26351 Accept new "--help" option and output usage text if found.
26352 * collect2.h (vflag): Update prototype.
26353 (debug): Likewise.
26354
26355 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
26356
26357 PR bootstrap/43936
26358 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
26359
26360 2010-04-29 Richard Guenther <rguenther@suse.de>
26361
26362 PR bootstrap/43935
26363 * plugin.h (invoke_plugin_callbacks): Annotate arguments
26364 with ATTRIBUTE_UNUSED.
26365
26366 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
26367
26368 PR target/43921
26369 * config/i386/i386.c (get_some_local_dynamic_name): Replace
26370 INSN_P with NONDEBUG_INSN_P.
26371 (distance_non_agu_define): Likewise.
26372 (distance_agu_use): Likewise.
26373
26374 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
26375
26376 From Dominique d'Humieres <dominiq@lps.ens.fr>
26377 PR bootstrap/43858
26378 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
26379 test_set.
26380
26381 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
26382
26383 * plugin.h (invoke_plugin_callbacks): New inline function.
26384 * plugin.c (flag_plugin_added): New global flag.
26385 (add_new_plugin): Initialize above flag.
26386 (invoke_plugin_callbacks): Rename to ...
26387 (invoke_plugin_callbacks_full): ... this.
26388
26389 2010-04-28 Jan Hubicka <jh@suse.cz>
26390
26391 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
26392 (lto_varpool_replace_node): New.
26393 (lto_symtab_resolve_symbols): Resolve varpool nodes.
26394 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
26395 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
26396 * cgraph.h (varpool_node_ptr): New type.
26397 (varpool_node_ptr): New vector.
26398 (varpool_node_set_def): New structure.
26399 (varpool_node_set): New type.
26400 (varpool_node_set): New vector.
26401 (varpool_node_set_element_def): New structure.
26402 (varpool_node_set_element, const_varpool_node_set_element): New types.
26403 (varpool_node_set_iterator): New type.
26404 (varpool_node): Add prev pointers, add used_from_other_partition,
26405 in_other_partition.
26406 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
26407 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
26408 varpool_get_node, varpool_remove_node): Declare.
26409 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
26410 varpool_node_set_size): New inlines.
26411 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
26412 * tree-pass.h (varpool_node_set_def): Forward declare.
26413 (ipa_opt_pass_d): Summary writting takes vnode sets too.
26414 (ipa_write_optimization_summaries): Update prototype.
26415 * ipa-cp.c (ipcp_write_summary): Update.
26416 * ipa-reference.c (ipa_reference_write_summary): Update.
26417 * lto-cgraph.c (lto_output_varpool_node): New static function.
26418 (output_varpool): New function.
26419 (input_varpool_node): New static function.
26420 (input_varpool_1): New function.
26421 (input_cgraph): Input varpool.
26422 * ipa-pure-const.c (pure_const_write_summary): Update.
26423 * lto-streamer-out.c (lto_output): Update, output varpool too.
26424 (write_global_stream): Kill WPA hack.
26425 (produce_asm_for_decls): Update.
26426 (output_alias_pair_p): Handle variables.
26427 (output_unreferenced_globals): Output only needed partition of varpool.
26428 * ipa-inline.c (inline_write_summary): Update.
26429 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
26430 cgraph.
26431 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
26432 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
26433 varpool_node_set_new, varpool_node_set_add,
26434 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
26435 debug_varpool_node_set): New functions.
26436 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
26437 (execute_one_pass): Process new decls too.
26438 (ipa_write_summaries_2): Pass around vsets.
26439 (ipa_write_summaries_1): Likewise.
26440 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
26441 to add.
26442 (ipa_write_optimization_summaries_1): Pass around vsets.
26443 (ipa_write_optimization_summaries): Likewise.
26444 * varpool.c (varpool_get_node): New.
26445 (varpool_node): Update doubly linked lists.
26446 (varpool_remove_node): New.
26447 (dump_varpool_node): More dumping.
26448 (varpool_enqueue_needed_node): Update doubly linked lists.
26449 (decide_is_variable_needed): Kill ltrans hack.
26450 (varpool_finalize_decl): Kill lto hack.
26451 (varpool_assemble_decl): Skip decls in other partitions.
26452 (varpool_assemble_pending_decls): Update doubly linkes lists.
26453 (varpool_empty_needed_queue): Likewise.
26454 (varpool_extra_name_alias): Likewise.
26455 * lto-streamer.c (lto_get_section_name): Add vars section.
26456 * lto-streamer.h (lto_section_type): Update.
26457 (output_varpool, input_varpool): Declare.
26458
26459 2010-04-28 Mike Stump <mikestump@comcast.net>
26460
26461 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
26462
26463 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
26464
26465 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
26466 record or union type with RECORD_OR_UNION_TYPE_P predicate.
26467 (lto_input_ts_type_tree_pointers): Likewise.
26468 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
26469 (lto_output_ts_type_tree_pointers): Likewise.
26470
26471 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
26472
26473 Uniquization of constants at the Tree level
26474 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
26475 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
26476 bit to the end.
26477 (tree_output_constant_def): Declare.
26478 * gimplify.c (gimplify_init_constructor): When using block copy, first
26479 uniquize the constant constructor on the RHS.
26480 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
26481 DECL_IN_CONSTANT_POOL flag.
26482 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
26483 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
26484 constant pool.
26485 (assemble_variable): Deal with symbols belonging to the tree constant
26486 pool.
26487 (get_constant_section): Add ALIGN parameter and simplify.
26488 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
26489 (assemble_constant_contents): Use the expression of the VAR_DECL.
26490 (output_constant_def_contents): Use the alignment of the VAR_DECL.
26491 (tree_output_constant_def): New global function.
26492 (mark_constant): Use the expression of the VAR_DECL.
26493 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
26494 its expression.
26495 (output_object_block): Likewise and assemble the expression.
26496
26497 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
26498
26499 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
26500 hash_tree, eq_tree): New tree hash table.
26501 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
26502 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
26503 lto_orig_address_remove): Reimplement.
26504
26505 2010-04-28 Xinliang David Li <davidxl@google.com>
26506
26507 PR c/42643
26508 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
26509 (compute_uninit_opnds_pos): New function.
26510 (is_non_loop_exit_postdominating): New function.
26511 (compute_control_dep_chain): New function.
26512 (find_pdom): New function.
26513 (convert_control_dep_chain_into_preds): New function.
26514 (find_predicates): New function.
26515 (find_control_equiv_block): New function.
26516 (collect_phi_def_edges): New function.
26517 (find_def_preds): New function.
26518 (find_dom): New function.
26519 (dump_predicates): New function.
26520 (get_cmp_code): New function.
26521 (is_value_included_in): New function.
26522 (find_matching_predicate_in_rest_chains): New function.
26523 (use_pred_not_overlap_with_undef_path_pred): New function.
26524 (is_use_properly_guarded): New function.
26525 (normalize_cond_1): New function.
26526 (is_and_or_or): New function.
26527 (normalize_cond): New function.
26528 (is_gcond_subset_of): New function.
26529 (is_subset_of_any): New function.
26530 (is_or_set_subset_of): New function.
26531 (is_and_set_subset_of): New function.
26532 (is_norm_cond_subset_of): New function.
26533 (is_pred_expr_subset_of): New function.
26534 (is_pred_chain_subset_of): New function.
26535 (is_included_in): New function.
26536 (is_superset_of): New function.
26537 (find_uninit_use): New function.
26538 (warn_uninitialized_phi): New function.
26539 (compute_possibly_undefined_names): New function.
26540 (ssa_undefined_value_p): New function.
26541 (execute_late_warn_uninitialized): New function.
26542 * tree-ssa.c (ssa_undefined_value_p): Removed.
26543 (warn_uninit): Changed to extern.
26544 (warn_uninitialized_phi): Removed.
26545 (warn_uninitialized_vars): Changed to extern.
26546 (execute_late_warn_uninitialized): Removed
26547 * tree-flow.h: Add new prototypes.
26548 * timevar.def: Add new time variable.
26549 * Makefile.in: Add new build file.
26550
26551 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
26552
26553 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
26554 type if available.
26555
26556 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26557
26558 PR target/22224
26559 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
26560
26561 2010-04-28 Martin Jambor <mjambor@suse.cz>
26562
26563 * cgraph.h (struct cgraph_node): New field indirect_calls.
26564 (struct cgraph_indirect_call_info): New type.
26565 (struct cgraph_edge): Removed field indirect_call. New fields
26566 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
26567 (cgraph_create_indirect_edge): Declare.
26568 (cgraph_make_edge_direct): Likewise.
26569 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
26570 * ipa-prop.h (struct ipa_param_call_note): Removed.
26571 (struct ipa_node_params): Removed field param_calls.
26572 (ipa_create_all_structures_for_iinln): Declare.
26573 * cgraph.c: Described indirect edges and uids in initial comment.
26574 (cgraph_add_edge_to_call_site_hash): New function.
26575 (cgraph_edge): Search also among the indirect edges, use
26576 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
26577 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
26578 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
26579 site hash.
26580 (initialize_inline_failed): Assign a reason to indirect edges.
26581 (cgraph_create_edge_1): New function.
26582 (cgraph_create_edge): Moved some functionality to
26583 cgraph_create_edge_1.
26584 (cgraph_create_indirect_edge): New function.
26585 (cgraph_edge_remove_callee): Add an assert checking for
26586 non-indirectness.
26587 (cgraph_edge_remove_caller): Special-case indirect edges.
26588 (cgraph_remove_edge): Likewise.
26589 (cgraph_set_edge_callee): New function.
26590 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
26591 (cgraph_make_edge_direct): New function.
26592 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
26593 the declaration of the call statement matches.
26594 (cgraph_node_remove_callees): Special-case indirect edges.
26595 (cgraph_clone_edge): Likewise.
26596 (cgraph_clone_node): Clone also the indirect edges.
26597 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
26598 indirect_call, dump count of indirect_calls edges.
26599 * ipa-prop.c (iinlining_processed_edges): New variable.
26600 (ipa_note_param_call): Create indirect edges instead of
26601 creating notes. New parameter node.
26602 (ipa_analyze_call_uses): New parameter node, pass it on to
26603 ipa_note_param_call.
26604 (ipa_analyze_stmt_uses): Likewise.
26605 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
26606 (print_edge_addition_message): Work on edges rather than on notes.
26607 (update_call_notes_after_inlining): Likewise, renamed to
26608 update_indirect_edges_after_inlining.
26609 (ipa_create_all_structures_for_iinln): New function.
26610 (ipa_free_node_params_substructures): Do not free notes.
26611 (ipa_edge_duplication_hook): Propagate bits within
26612 iinlining_processed_edges bitmap.
26613 (ipa_node_duplication_hook): Do not duplicate notes.
26614 (free_all_ipa_structures_after_ipa_cp): Renamed to
26615 ipa_free_all_structures_after_ipa_cp.
26616 (free_all_ipa_structures_after_iinln): Renamed to
26617 ipa_free_all_structures_after_iinln.
26618 (ipa_write_param_call_note): Removed.
26619 (ipa_read_param_call_note): Removed.
26620 (ipa_write_indirect_edge_info): New function.
26621 (ipa_read_indirect_edge_info): Likewise.
26622 (ipa_write_node_info): Do not stream notes, do stream information
26623 in indirect edges.
26624 (ipa_read_node_info): Likewise.
26625 (lto_ipa_fixup_call_notes): Removed.
26626 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
26627 * ipa-inline.c (pass_ipa_inline): Likewise.
26628 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
26629 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
26630 * tree-inline.c (copy_bb): Removed an unnecessary double check for
26631 is_gimple_call.
26632 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
26633 edges.
26634 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
26635 (output_cgraph): Stream also indirect edges.
26636 (lto_output_edge): Added capability to stream indirect edges.
26637 (input_edge): Likewise.
26638 (input_cgraph_1): Likewise.
26639 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
26640 of indirect edges.
26641
26642 2010-04-28 Richard Guenther <rguenther@suse.de>
26643
26644 PR tree-optimization/43879
26645 PR tree-optimization/43909
26646 * tree-ssa-structalias.c (struct variable_info): Add
26647 only_restrict_pointers flag.
26648 (new_var_info): Initialize it. Increment stats.total_vars here.
26649 (create_function_info_for): Do not increment stats.total_vars here.
26650 (get_function_part_constraint): Fix build with C++.
26651 (insert_into_field_list): Remove.
26652 (push_fields_onto_fieldstack): Properly merge fields.
26653 (create_variable_info_for): Split and simplify.
26654 (create_variable_info_for_1): New piece.
26655 (intra_create_variable_infos): Properly make restrict constraints
26656 from parameters.
26657
26658 2010-04-28 Richard Guenther <rguenther@suse.de>
26659
26660 PR c++/43880
26661 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
26662
26663 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
26664 Jan Hubicka <hubicka@ucw.cz>
26665
26666 * doc/invoke.texi (-Wsuggest-attribute=const,
26667 -Wsuggest-attribute=pure): Document.
26668 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
26669 (function_always_visible_to_compiler_p,
26670 suggest_attribute, warn_function_pure, warn_function_const):
26671 New functions.
26672 (check_call): Improve debug info.
26673 (analyze_function): Do not check availability.
26674 (add_new_function): Check availability.
26675 (propagate): Output warnings.
26676 (skip_function_for_local_pure_const): New function.
26677 (local_pure_const): Use it; output warnings.
26678 * common.opt (Wsuggest-attribute=const,
26679 Wsuggest-attribute=pure): New.
26680
26681 2010-04-27 Jakub Jelinek <jakub@redhat.com>
26682
26683 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
26684 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
26685 or DW_CFA_def_cfa_offset{,_sf}.
26686
26687 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
26688
26689 * tree.h: Fix truncated long macros.
26690
26691 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
26692
26693 * collect2.c (TARGET_64BIT): Redefine to target's default.
26694 * tlink.c: Likewise.
26695 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
26696 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
26697 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
26698 for underscoring __USER_LABEL_PREFIX__.
26699 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
26700 (SUB_LINK_ENTRY32): New.
26701 (SUB_LINK_ENTRY64): New.
26702 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
26703 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
26704 (SUB_LINK_ENTRY64): New.
26705 (SUB_LINK_ENTRY): New.
26706 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
26707 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
26708 x64 target is choosen.
26709 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
26710 * configure: Regenerated.
26711 * configure.ac (leading-mingw64-underscores): Option added.
26712
26713 2010-04-27 Jan Hubicka <jh@suse.cz>
26714
26715 * doc/invoke.texi (-fipa-profile): Document.
26716 * opts.c (decode_options): Enable ipa-profile at -O1.
26717 * timevar.def (TV_IPA_PROFILE): Define.
26718 * common.opt (fipa-profile): Add.
26719 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
26720 flag for clones.
26721 (cgraph_propagate_frequency): Handle only local ones.
26722 * tree-pass.h (pass_ipa_profile): Declare.
26723 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
26724 (pass_ipa_profile): Use TV_IPA_PROFILE.
26725 * ipa.c (ipa_profile): New function.
26726 (gate_ipa_profile): Likewise.
26727 (pass_ipa_profile): New global variable.
26728 * passes.c (pass_ipa_profile): New.
26729
26730 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
26731
26732 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
26733
26734 2010-04-27 Martin Jambor <mjambor@suse.cz>
26735
26736 PR middle-end/43812
26737 * ipa.c (dissolve_same_comdat_group_list): New function.
26738 (function_and_variable_visibility): Call
26739 dissolve_same_comdat_group_list when comdat group contains external or
26740 newly local nodes.
26741 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
26742 lists are circular and that they contain only DECL_ONE_ONLY nodes.
26743
26744 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
26745
26746 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
26747 (const_hash_1) <VECTOR_CST>: New case.
26748 (compare_constant) <VECTOR_CST>: Likewise.
26749 <ADDR_EXPR>: Deal with LABEL_REFs.
26750 (copy_constant) <VECTOR_CST>: New case.
26751
26752 2010-04-27 Jan Hubicka <jh@suse.cz>
26753
26754 * cgraph.c (cgraph_propagate_frequency): New function.
26755 * cgraph.h (cgraph_propagate_frequency): Declare.
26756 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
26757 cgraph_propagate_frequency.
26758
26759 2010-04-27 Jakub Jelinek <jakub@redhat.com>
26760
26761 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
26762
26763 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
26764
26765 PR target/40657
26766 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
26767 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
26768 here to determine which regs to push and how much stack to reserve.
26769
26770 2010-04-27 Jie Zhang <jie@codesourcery.com>
26771
26772 * doc/gimple.texi (gimple_statement_with_ops): Remove
26773 addresses_taken field.
26774 (gimple_statement_with_memory_ops): Likewise.
26775
26776 2010-04-27 Jan Hubicka <jh@suse.cz>
26777
26778 * tree-inline.c (eni_inlining_weights): Remove.
26779 (estimate_num_insns): Special case more builtins.
26780
26781 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
26782
26783 PR c/32207
26784 * c-typeck.c (build_binary_op): Move forward check for comparison
26785 pointer with null pointer constant and adjust the diagnostic message.
26786
26787 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
26788
26789 PR lto/42776
26790 * configure.ac (gcc_cv_as_section_has_align): Set if installed
26791 binutils supports extended .section directive needed by LTO, or
26792 warn if older binutils found.
26793 (LTO_BINARY_READER): New AC_SUBST'd variable.
26794 (LTO_USE_LIBELF): Likewise.
26795 * config.gcc (lto_binary_reader): New target-specific configure
26796 variable.
26797 * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
26798 (LTO_USE_LIBELF): Likewise.
26799 * configure: Regenerate.
26800
26801 * collect2.c (is_elf): Rename from this ...
26802 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
26803 object files in addition to ELF-formatted ones.
26804 (scan_prog_file): Caller updated. Also allow for LTO info marker
26805 symbol to be prefixed or not by an extra underscore.
26806
26807 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
26808 * config/i386/winnt.c: Also #include lto-streamer.h
26809 (i386_pe_asm_named_section): Specify 1-byte section alignment for
26810 LTO named sections.
26811 (i386_pe_asm_output_aligned_decl_common): Add comment.
26812 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
26813
26814 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
26815
26816 PR target/43889
26817 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
26818 Add missing earlyclobber for second alternative.
26819
26820 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
26821
26822 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
26823 bits for artificial defs at the top of the block.
26824 * fwprop.c (single_def_use_enter_block): Don't call it.
26825
26826 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
26827
26828 PR 43715
26829 * configure.ac: Use "$gcc_cv_nm -g" on darwin
26830 instead of "$gcc_cv_objdump -T".
26831 Use "-undefined dynamic_lookup" on darwin.
26832 * configure: Regenerate.
26833
26834 2010-04-26 Jakub Jelinek <jakub@redhat.com>
26835
26836 PR c/43893
26837 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
26838
26839 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
26840
26841 * c-parser.c (struct c_token): Move location field up.
26842 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
26843 (struct c_declspecs): Convert typespec_word, storage_class, and
26844 default_int_p into bitfields.
26845 (struct c_declarator): Move loc field up.
26846
26847 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
26848
26849 * cfgloop.h (struct loop): Move can_be_parallel field up.
26850 * ipa-prop.h (struct ip_node_params): Move bitfields up.
26851 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
26852 down.
26853 (struct iv_cand): Convert pos field into a bitfield.
26854 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
26855 field up.
26856 (struct _stmt_vec_info): Shuffle fields for better packing.
26857
26858 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
26859
26860 * varasm.c (IN_NAMED_SECTION): Remove guard.
26861 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
26862 (IN_NAMED_SECTION_P): ...this.
26863 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
26864 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
26865
26866 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
26867
26868 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
26869 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
26870 of shadowing it. Fix comments.
26871
26872 2010-04-26 Jan Hubicka <jh@suse.cz>
26873
26874 * cgraph.c (cgraph_create_node): Set node frequency to normal.
26875 (cgraph_clone_node): Copy function frequency.
26876 * cgraph.h (node_frequency): New enum
26877 (struct cgraph_node): Add.
26878 * final.c (rest_of_clean_state): Update.
26879 * lto-cgraph.c (lto_output_node): Output node frequency.
26880 (input_overwrite_node): Input node frequency.
26881 * tre-ssa-loop-ivopts (computation_cost): Update.
26882 * lto-streamer-out.c (output_function): Do not output function
26883 frequency.
26884 * predict.c (maybe_hot_frequency_p): Update and handle functions
26885 executed once.
26886 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
26887 attribute lookup.
26888 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
26889 (compute_function_frequency): Set noreturn functions to be executed
26890 once.
26891 (choose_function_section): Update.
26892 * lto-streamer-in.c (input_function): Do not input function frequency.
26893 * function.c (allocate_struct_function): Do not initialize function
26894 frequency.
26895 * function.h (function_frequency): Remove.
26896 (struct function): Remove function frequency.
26897 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
26898 (try_update): Update.
26899 * tree-inline.c (initialize_cfun): Do not update function frequency.
26900 * passes.c (pass_init_dump_file): Update.
26901 * i386.c (ix86_compute_frame_layout): Update.
26902 (ix86_pad_returns): Update.
26903
26904 2010-04-26 Jie Zhang <jie@codesourcery.com>
26905
26906 PR tree-optimization/43833
26907 * tree-vrp.c (range_int_cst_p): New.
26908 (range_int_cst_singleton_p): New.
26909 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
26910 when both operands are constants. Use range_int_cst_p in
26911 BIT_IOR_EXPR case.
26912
26913 2010-04-26 Jan Hubicka <jh@suse.cz>
26914
26915 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
26916
26917 2010-04-26 Richard Guenther <rguenther@suse.de>
26918
26919 PR lto/43080
26920 * gimple.c (gimple_decl_printable_name): Deal gracefully
26921 with a NULL DECL_NAME.
26922
26923 2010-04-26 Richard Guenther <rguenther@suse.de>
26924
26925 PR lto/42425
26926 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
26927 if emitting debug information and it is either a function
26928 or a namespace decl.
26929
26930 2010-04-26 Ira Rosen <irar@il.ibm.com>
26931
26932 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
26933 determine if the statement is vectorizable, and a macro to access it.
26934 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
26935 Skip statements that can't be vectorized. If the analysis fails,
26936 mark the statement as unvectorizable if vectorizing basic block.
26937 (vect_compute_data_refs_alignment): Likewise.
26938 (vect_verify_datarefs_alignment): Skip statements marked as
26939 unvectorizable. Add print.
26940 (vect_analyze_group_access): Skip statements that can't be
26941 vectorized. If the analysis fails, mark the statement as
26942 unvectorizable if vectorizing basic block.
26943 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
26944 * tree-vect-stmts.c (vectorizable_store): Fix the number of
26945 generated stmts for SLP.
26946 (new_stmt_vec_info): Initialize the new field.
26947 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
26948 statements marked as unvectorizable.
26949
26950 2010-04-25 Joseph Myers <joseph@codesourcery.com>
26951
26952 * c-common.c (flag_isoc1x): New.
26953 (flag_isoc99): Update comment.
26954 * c-common.h (flag_isoc1x): New.
26955 (flag_isoc99): Update comment.
26956 * c-cppbuiltin.c (builtin_define_float_constants): Also define
26957 __<type>_DECIMAL_DIG__.
26958 * c-opts.c (set_std_c1x): New.
26959 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
26960 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
26961 * c.opt (-std=c1x, -std=gnu1x): New options.
26962 * doc/cpp.texi: Mention -std=c1x.
26963 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
26964 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
26965 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
26966 * doc/standards.texi: Mention C1X.
26967 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
26968 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
26969 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
26970 Define for C1X.
26971
26972 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
26973
26974 * config/i386/gmon-sol2.c (_mcleanup): Change format string
26975 placeholder from 0x%x to %#x.
26976 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
26977 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
26978 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
26979 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
26980 * config/i386/i386.c (ix86_target_string): Ditto.
26981 (output_pic_addr_const): Ditto.
26982 (print_operand): Ditto.
26983
26984 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
26985
26986 * combine.c (find_split_point): Add third argument. Use it
26987 to find nested multiply-accumulate instructions. Adjust calls.
26988 (try_combine): Adjust call to find_split_point.
26989
26990 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
26991
26992 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
26993
26994 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
26995
26996 PR tree-optimization/41442
26997 * fold-const.c (merge_truthop_with_opposite_arm): New function.
26998 (fold_binary_loc): Call it.
26999
27000 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
27001
27002 * toplev.c (general_init): Set default for fdiagnostics-show-option.
27003 * opts.c (common_handle_option): Allow disabling it.
27004 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
27005
27006 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
27007
27008 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
27009 between modes if both types are integral.
27010
27011 2010-04-23 Richard Guenther <rguenther@suse.de>
27012
27013 PR tree-optimization/43572
27014 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
27015
27016 2010-04-23 Richard Guenther <rguenther@suse.de>
27017
27018 PR lto/43455
27019 * tree-inline.c (tree_can_inline_p): Also check compatibility
27020 of return types.
27021
27022 2010-04-23 Martin Jambor <mjambor@suse.cz>
27023
27024 PR tree-optimization/43846
27025 * tree-sra.c (struct access): New flag grp_assignment_read.
27026 (build_accesses_from_assign): Set grp_assignment_read.
27027 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
27028 (enum mark_read_status): New type.
27029 (analyze_access_subtree): Propagate grp_assignment_read, create
27030 accesses also if both direct_read and root->grp_assignment_read.
27031
27032 2010-04-23 Martin Jambor <mjambor@suse.cz>
27033
27034 PR middle-end/43835
27035 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
27036 function does not have type attributes.
27037
27038 2010-04-23 Richard Guenther <rguenther@suse.de>
27039
27040 PR lto/42653
27041 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
27042 of FUNCTION_DECLs.
27043
27044 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
27045
27046 * sese.h (create_if_region_on_edge): Remove.
27047
27048 * sese.c (create_if_region_on_edge): Make static.
27049
27050 * tree-inline.c: Do not include ggc.h.
27051
27052 * expr.c: Do not include ggc.h.
27053
27054 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
27055 dependencies.
27056
27057 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
27058
27059 PR target/43744
27060 * config/sh/sh.c (find_barrier): Don't emit a constant pool
27061 in the middle of insns for casesi_worker_2.
27062
27063 2010-04-22 David Edelsohn <edelsohn@gnu.org>
27064
27065 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
27066
27067 2010-04-22 Ira Rosen <irar@il.ibm.com>
27068
27069 PR tree-optimization/43842
27070 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
27071 loop unrolling in update of exit phis. Fix comment.
27072 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
27073 least two reduction statements in the loop before starting SLP
27074 analysis.
27075
27076 2010-04-22 Nick Clifton <nickc@redhat.com>
27077
27078 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
27079
27080 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
27081
27082 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
27083 to simplify a + ~a.
27084
27085 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
27086
27087 * tree-parloops.c (loop_parallel_p): New argument
27088 parloop_obstack. Pass it down.
27089 (parallelize_loops): New variable parloop_obstack. Initialize it,
27090 pass it down, free it.
27091
27092 * tree-loop-linear.c (linear_transform_loops): Pass down
27093 lambda_obstack.
27094
27095 * tree-data-ref.h (lambda_compute_access_matrices): New argument
27096 of type struct obstack *.
27097
27098 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
27099 scratch_obstack. Initialize it, pass down, free it.
27100
27101 * lambda.h (lambda_loop_new): Remove.
27102 (lambda_matrix_new, lambda_matrix_inverse)
27103 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
27104 argument of type struct obstack *.
27105
27106 * lambda-trans.c (lambda_trans_matrix_new): New argument
27107 lambda_obstack. Pass it down, use obstack allocation for ret.
27108 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
27109 it down.
27110
27111 * lambda-mat.c (lambda_matrix_get_column)
27112 (lambda_matrix_project_to_null): Remove.
27113 (lambda_matrix_new): New argument lambda_obstack. Use obstack
27114 allocation for mat.
27115 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
27116 lambda_obstack.
27117
27118 * lambda-code.c (lambda_loop_new): New function.
27119 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
27120 (lambda_compute_auxillary_space, lambda_compute_target_space)
27121 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
27122 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
27123 (build_access_matrix): New argument lambda_obstack. Use obstack
27124 allocation for am.
27125 (lambda_compute_step_signs, lambda_compute_access_matrices): New
27126 argument lambda_obstack. Pass it down.
27127
27128 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
27129
27130 * optabs.h (expand_widening_mult): Declare.
27131
27132 2010-04-22 Richard Guenther <rguenther@suse.de>
27133
27134 PR tree-optimization/43845
27135 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
27136 lookup the CALL_EXPR function and arguments.
27137
27138 2010-04-22 Nick Clifton <nickc@redhat.com>
27139
27140 * config/stormy16/stormy16.c
27141 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
27142 * config/stormy16/stormy16.h: Tidy up formatting.
27143 (DONT_USE_BUILTIN_SETJMP): Remove definition.
27144 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
27145 (ineqbranchsi): Delete pattern.
27146 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
27147 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
27148 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
27149 stormy16-lib2-ucmpsi2.c.
27150
27151 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
27152
27153 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
27154 df_simulate_find_noclobber_defs as appropriate. Keep track of an
27155 extra set merge_set_noclobber, and use it to relax the final test
27156 slightly.
27157 * df.h (df_simulate_find_noclobber_defs): Declare.
27158 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
27159 conditional defs.
27160 (df_simulate_find_noclobber_defs): New function.
27161
27162 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
27163
27164 * config/i386/i386.md: Use {} around multi-line preparation statements.
27165
27166 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
27167
27168 * c-tree.h (push_init_level, pop_init_level, set_init_index)
27169 (process_init_element): New argument of type struct obstack *.
27170
27171 * c-typeck.c (push_init_level, pop_init_level, set_designator)
27172 (set_init_index, set_init_label, set_nonincremental_init)
27173 (set_nonincremental_init_from_string, find_init_member)
27174 (output_init_element, output_pending_init_elements)
27175 (process_init_element): New argument braced_init_obstack. Pass it
27176 down.
27177 (push_range_stack, add_pending_init): New argument
27178 braced_init_obstack. Use obstack allocation.
27179
27180 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
27181 braced_init_obstack. Pass it down.
27182 (c_parser_braced_init): New variables ret, braced_init_obstack.
27183 Initialize obstack, pass it down and finally free it.
27184
27185 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
27186
27187 PR middle-end/29274
27188 * tree-pass.h (pass_optimize_widening_mul): Declare.
27189 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
27190 gate_optimize_widening_mul): New static functions.
27191 (pass_optimize_widening_mul): New.
27192 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
27193 <case MULT_EXPR>: Remove support for widening multiplies.
27194 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
27195 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
27196 simplify_gen_unary rather than directly building extensions.
27197 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
27198 WIDEN_MULT_EXPR.
27199 * expmed.c (expand_widening_mult): New function.
27200 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
27201
27202 2010-04-21 Jan Hubicka <jh@suse.cz>
27203
27204 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
27205 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
27206 * lto-wpa-fixup.c: Remove.
27207 * Makefile.in (lto-wpa-fixup.o): Remove.
27208 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
27209 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
27210 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
27211
27212 2010-04-21 Jan Hubicka <jh@suse.cz>
27213
27214 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
27215 add write_optimization_summary, read_optimization_summary.
27216 (ipa_write_summaries_of_cgraph_node_set): Remove.
27217 (ipa_write_optimization_summaries): Declare.
27218 (ipa_read_optimization_summaries): Declare.
27219 * ipa-cp.c (pass_ipa_cp): Update.
27220 * ipa-reference.c (pass_ipa_reference): Update.
27221 * ipa-pure-const.c (pass_ipa_pure_const): Update.
27222 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
27223 Update.
27224 * ipa-inline.c (pass_ipa_inline): Update.
27225 * ipa.c (pass_ipa_whole_program): Update.
27226 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
27227 * passes.c (ipa_write_summaries_1): Do not test wpa.
27228 (ipa_write_optimization_summaries_1): New.
27229 (ipa_write_optimization_summaries): New.
27230 (ipa_read_summaries): Do not test ltrans.
27231 (ipa_read_optimization_summaries_1): New.
27232 (ipa_read_optimization_summaries): New.
27233
27234 2010-04-21 Jan Hubicka <jh@suse.cz>
27235
27236 * lto-cgraph.c (lto_output_node): Do not output comdat groups
27237 for boundary nodes.
27238 (output_cgraph): Do not arrange comdat groups for boundary nodes.
27239
27240 2010-04-21 Jakub Jelinek <jakub@redhat.com>
27241
27242 PR debug/40040
27243 * dwarf2out.c (add_name_and_src_coords_attributes): Add
27244 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
27245
27246 2010-04-21 Jan Hubicka <jh@suse.cz>
27247
27248 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
27249
27250 2010-04-21 Jan Hubicka <jh@suse.cz>
27251
27252 * varpool.c (decide_is_variable_needed): Variable is always needed
27253 during ltrans.
27254
27255 2010-04-21 Jan Hubicka <jh@suse.cz>
27256
27257 * opts.c (decode_options): Enable pure-const pass for whopr.
27258
27259 2010-04-21 Jan Hubicka <jh@suse.cz>
27260
27261 * cgraph.c (dump_cgraph_node): Dump also assembler name.
27262 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
27263 at WPA dumping.
27264 (cgraph_decide_inlining): Do not expect callee to be removed in all
27265 cases.
27266
27267 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
27268
27269 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
27270
27271 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
27272
27273 * config/i386/i386.md (x86_shrd): Add athlon_decode and
27274 amdfam10_decode attributes.
27275
27276 2010-04-21 Jakub Jelinek <jakub@redhat.com>
27277
27278 PR middle-end/43570
27279 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
27280 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
27281 (lower_copyprivate_clauses): Use private var in outer
27282 context instead of original var. Make sure the types
27283 are correct for VLAs.
27284
27285 2010-04-21 Richard Guenther <rguenther@suse.de>
27286
27287 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
27288 to non-pointer objects.
27289
27290 2010-04-21 Jakub Jelinek <jakub@redhat.com>
27291
27292 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
27293 last chain entry if it starts with the still current label.
27294 (add_location_or_const_value_attribute): Check that
27295 loc_list->first->next is NULL instead of comparing ->first with ->last.
27296 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
27297 to add_var_loc_to_decl.
27298
27299 * dwarf2out.c (output_call_frame_info): For dw_cie_version
27300 >= 4 add also address size and segment size fields into CIE header.
27301
27302 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
27303 long as address size is the same as sizeof (void *) and
27304 segment size is 0.
27305 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
27306 address size or segment size is unexpected, return DW_EH_PE_omit.
27307 (classify_object_over_fdes): If get_cie_encoding returned
27308 DW_EH_PE_omit, return -1.
27309 (init_object): If classify_object_over_fdes returned -1,
27310 pretend there were no FDEs at all.
27311
27312 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
27313
27314 * config/i386/i386.md (bswap<mode>2): Macroize expander from
27315 bswap{si,di}2 using SWI48 mode iterator.
27316 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
27317 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
27318 set modrm attribute of bswap insn to 0 and remove length attribute.
27319 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
27320 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
27321 set mode attribute to <MODE> and remove length attribute.
27322
27323 2010-04-20 James E. Wilson <wilson@codesourcery.com>
27324
27325 PR rtl-optimization/43520
27326 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
27327 zero available registers.
27328
27329 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
27330
27331 * builtins.c (fold_builtin_cproj): Fold more cases.
27332
27333 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
27334
27335 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
27336 (fold_builtin_1): Fold builtin cproj.
27337 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
27338 Use ATTR_CONST_NOTHROW_LIST.
27339
27340 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
27341
27342 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
27343 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
27344 ffsi2_no_cmove for !TARGET_CMOVE.
27345 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
27346 (ffssi2): Remove expander.
27347 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
27348 mode iterator.
27349 (ctz<mode>2): Ditto from ctz{si,di}2.
27350 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
27351 mode iterator.
27352 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
27353 mode iterator.
27354
27355 2010-04-20 Jakub Jelinek <jakub@redhat.com>
27356
27357 * dwarf2out.c (AT_linkage_name): Define.
27358 (clone_as_declaration): Handle DW_AT_linkage_name.
27359 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
27360 of DW_AT_MIPS_linkage_name.
27361 (move_linkage_attr): Likewise.
27362 (dwarf2out_finish): Likewise.
27363
27364 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
27365
27366 PR middle-end/41952
27367 * fold-const.c (fold_comparison): New folding rule.
27368
27369 2010-04-20 Anatoly Sokolov <aesok@post.ru>
27370
27371 * double-int.h (double_int_setbit): Declare.
27372 * double-int.c (double_int_setbit): New function.
27373 * rtl.h (immed_double_int_const): Declare.
27374 * emit-rtl.c (immed_double_int_const): New function.
27375 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
27376 and immed_double_int_const functions.
27377 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
27378 expand_copysign_bit): (Ditto.).
27379 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
27380 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
27381 * dojump.c (prefer_and_bit_test): (Ditto.).
27382 * expr.c (convert_modes, reduce_to_bit_field_precision,
27383 const_vector_from_tree): (Ditto.).
27384 * expmed.c (mask_rtx, lshift_value): (Ditto.).
27385
27386 2010-04-20 Jan Hubicka <jh@suse.cz>
27387
27388 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
27389 (dump_cgraph_node): Dump new flags.
27390 * cgraph.h (struct cgraph_node): Add flags
27391 reachable_from_other_partition and in_other_partition.
27392 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
27393 other partition can not be removed.
27394 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
27395 the other partition must be output; silence sanity checking on
27396 leaking functions bodies from other paritition.
27397 * lto-cgraph.c (reachable_from_other_partition_p): New function.
27398 (lto_output_node): Output new flags; do not sanity check that inline
27399 clones are output; drop lto_forced_extern_inline_p code; do not mock
27400 visibility flags at partition boundaries.
27401 (add_node_to): New function.
27402 (output_cgraph): Use it to sort functions so masters appear before
27403 clones.
27404 (input_overwrite_node): Input new flags.
27405 * passes.c (ipa_write_summaries): Do not call
27406 lto_new_extern_inline_states.
27407 * lto-section-out.c (forced_extern_inline,
27408 lto_new_extern_inline_states lto_delete_extern_inline_states,
27409 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
27410 * lto-streamer.h (lto_new_extern_inline_states,
27411 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
27412 lto_forced_extern_inline_p): Kill.
27413
27414 2010-04-20 Richard Guenther <rguenther@suse.de>
27415
27416 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
27417 from vars that can have pointers.
27418 (process_constraint): Dump useless constraints.
27419
27420 2010-04-20 Richard Guenther <rguenther@suse.de>
27421
27422 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
27423 (dump_sa_points_to_info): Remove asserts.
27424 (init_base_vars): nothing_id isn't an escape point nor does it
27425 have pointers.
27426
27427 2010-04-20 Jakub Jelinek <jakub@redhat.com>
27428
27429 * tree.h (TYPE_REF_IS_RVALUE): Define.
27430 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
27431 should_move_die_to_comdat, prune_unused_types_walk): Handle
27432 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
27433 (modified_type_die, gen_reference_type_die): Emit
27434 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
27435 if TYPE_REF_IS_RVALUE and -gdwarf-4.
27436
27437 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27438
27439 PR target/43635
27440 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
27441 calls for -fpic -m31 if they have been sibcall optimized.
27442
27443 2010-04-19 James E. Wilson <wilson@codesourcery.com>
27444
27445 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
27446 ar.lc fixed and call-used.
27447
27448 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
27449
27450 2010-04-19 Jan Hubicka <jh@suse.cz>
27451
27452 * opts.c (decode_options): Disable whpr incompatible passes.
27453 * lto/lto.c (lto_1_to_1_map): Skip clones.
27454 (read_cgraph_and_symbols): Do not mark everything as needed.
27455 (do_whole_program_analysis): Do map only after optimizing;
27456 set proper cgraph_state; use passmanager.
27457
27458 2010-04-19 DJ Delorie <dj@redhat.com>
27459
27460 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
27461 POINTER_PLUS_EXPR and fix them.
27462
27463 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
27464
27465 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
27466 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
27467 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
27468 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
27469 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
27470 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
27471 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
27472 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
27473 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
27474 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
27475 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
27476
27477 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
27478
27479 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
27480 (check_cond_move_block): Likewise.
27481 (cond_move_process_if_block): Likewise.
27482 (noce_find_if_block): Improve formatting.
27483 (find_if_header): Pass 0 to memset and tweak conditions.
27484 (cond_exec_find_if_block): Fix long lines and tweak conditions.
27485
27486 2010-04-19 Jakub Jelinek <jakub@redhat.com>
27487
27488 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
27489 for -gdwarf-4.
27490
27491 PR middle-end/43337
27492 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
27493 with non-local decl doesn't need chain.
27494
27495 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
27496
27497 * ira-color.c (allocno_reload_assign): Avoid accumulating
27498 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
27499
27500 2010-04-19 Martin Jambor <mjambor@suse.cz>
27501
27502 * gimple.h (create_tmp_reg): Declare.
27503 * gimplify.c (create_tmp_reg): New function.
27504 (gimplify_return_expr): Use create_tmp_reg.
27505 (gimplify_omp_atomic): Likewise.
27506 (gimple_regimplify_operands): Likewise.
27507 * tree-dfa.c (make_rename_temp): Likewise.
27508 * tree-predcom.c (predcom_tmp_var): Likewise.
27509 (reassociate_to_the_same_stmt): Likewise.
27510 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
27511 (get_replaced_param_substitute): Likewise.
27512 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
27513 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
27514 * tree-ssa-pre.c (get_representative_for): Likewise.
27515 (create_expression_by_pieces): Likewise.
27516 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
27517 (create_tailcall_accumulator): Likewise.
27518
27519 2010-04-19 Martin Jambor <mjambor@suse.cz>
27520
27521 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
27522 new_stmt.
27523 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
27524
27525 2010-04-19 Richard Guenther <rguenther@suse.de>
27526
27527 PR tree-optimization/43796
27528 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
27529 from SCEV in the lattice.
27530 (vrp_visit_phi_node): Dump change.
27531
27532 2010-04-19 Richard Guenther <rguenther@suse.de>
27533
27534 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
27535 * configure: Re-generated.
27536
27537 2010-04-19 Richard Guenther <rguenther@suse.de>
27538
27539 PR tree-optimization/43783
27540 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
27541 constant ARRAY_REF operands two and three if possible.
27542
27543 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
27544
27545 PR target/43766
27546 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
27547
27548 2010-04-19 Jie Zhang <jie@codesourcery.com>
27549
27550 PR target/43662
27551 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
27552
27553 2010-04-19 Ira Rosen <irar@il.ibm.com>
27554
27555 PR tree-optimization/37027
27556 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
27557 and macro to access it.
27558 (vectorizable_reduction): Add argument.
27559 (vect_get_slp_defs): Likewise.
27560 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
27561 statements for possible use in SLP.
27562 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
27563 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
27564 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
27565 add new argument.
27566 (vectorizable_reduction): Likewise.
27567 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
27568 vect_get_slp_defs.
27569 (vectorizable_type_demotion, vectorizable_type_promotion,
27570 vectorizable_store): Likewise.
27571 (vect_analyze_stmt): Update call to vectorizable_reduction.
27572 (vect_transform_stmt): Likewise.
27573 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
27574 (vect_build_slp_tree): Fix indentation. Check that there are no loads
27575 from different interleaving chains in same node.
27576 (vect_slp_rearrange_stmts): New function.
27577 (vect_supported_load_permutation_p): Allow load permutations for
27578 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
27579 inside SLP nodes if necessary.
27580 (vect_analyze_slp_instance): Handle reductions.
27581 (vect_analyze_slp): Try to build SLP instances originating from groups
27582 of reductions.
27583 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
27584 (vect_get_constant_vectors): Create initial vectors for reductions
27585 according to reduction code. Add new argument.
27586 (vect_get_slp_defs): Add new argument, pass it to
27587 vect_get_constant_vectors.
27588 (vect_schedule_slp_instance): Remove SLP tree root statements.
27589
27590 2010-04-19 Jakub Jelinek <jakub@redhat.com>
27591
27592 * tree.h (ENUM_IS_SCOPED): Define.
27593 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
27594 for ENUM_IS_SCOPED enums.
27595
27596 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
27597
27598 * fold-const.c (fold_comparison): Use ssizetype.
27599 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
27600 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
27601 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
27602 * tree-object-size.c (compute_object_sizes): Use size_type_node.
27603
27604 * tree.h (initialize_sizetypes): Remove parameter.
27605 (build_common_tree_nodes): Remove second parameter.
27606 * stor-layout.c (initialize_sizetypes): Remove parameter.
27607 Always create an unsigned type.
27608 (set_sizetype): Assert that the passed type is unsigned and simplify.
27609 * tree.c (build_common_tree_nodes): Remove second parameter.
27610 Adjust call to initialize_sizetypes.
27611 * c-decl.c (c_init_decl_processing): Remove second argument in call to
27612 build_common_tree_nodes.
27613
27614 2010-04-18 Matthias Klose <doko@ubuntu.com>
27615
27616 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
27617
27618 2010-04-18 Ira Rosen <irar@il.ibm.com>
27619
27620 PR tree-optimization/43771
27621 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
27622 load permutation doesn't have gaps.
27623
27624 2010-04-18 Jan Hubicka <jh@suse.cz>
27625
27626 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
27627 (sse_prologue_save_insn expander): Use new pattern.
27628 (sse_prologue_save_insn1): New pattern and splitter.
27629 (sse_prologue_save_insn): Update to deal also with 64bit aligned
27630 blocks.
27631 * i386.c (setup_incoming_varargs_64): Do not compute jump
27632 destination here.
27633 (ix86_gimplify_va_arg): Update alignment needed.
27634 (ix86_local_alignment): Do not align all local arrays to 128bit.
27635
27636 2010-04-17 Jan Hubicka <jh@suse.cz>
27637
27638 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
27639
27640 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
27641
27642 * arm.md (negdi2): Remove redundant code to force values into a
27643 register.
27644
27645 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
27646
27647 * arm/bpabi.S: Add EABI alignment attributes to objects.
27648 * arm/bpabi-v6m.S: Likewise.
27649 * arm/crti.asm: Likewise.
27650 * arm/crtn.asm: Likewise.
27651 * arm/lib1funcs.asm: Likewise.
27652 * arm/libunwind.S: Likewise.
27653
27654 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
27655
27656 * arm-protos.h (tune_params): New structure.
27657 * arm.c (current_tune): New variable.
27658 (arm_constant_limit): Delete.
27659 (struct processors): Add pointer to the tune parameters.
27660 (arm_slowmul_tune): New tuning option.
27661 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
27662 (all_cores): Adjust to pick up the tuning model.
27663 (arm_constant_limit): New function.
27664 (arm_override_options): Select the appropriate tuning model. Delete
27665 initialization of arm_const_limit.
27666 (arm_split_constant): Use the new constant-limit model.
27667 (arm_rtx_costs): Pick up the current tuning model.
27668 * arm.md (is_strongarm, is_xscale): Delete.
27669 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
27670 for Xscale variant architectures.
27671 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
27672
27673 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27674
27675 * config/arm/arm.c (arm_gen_constant): Remove unused variable
27676 can_shift.
27677 (arm_rtx_costs_1): Remove unused variable extra_cost.
27678 (arm_unwind_emit_set): Use variable offset.
27679 (thumb1_output_casesi): Remove unused variable flags.
27680
27681 2010-04-16 Jeff Law <law@redhat.com>
27682
27683 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
27684 needing assignment rather than doing a two-phase assignment. Remove
27685 unused variable 'm'.
27686
27687 2010-04-16 Jakub Jelinek <jakub@redhat.com>
27688
27689 PR bootstrap/43767
27690 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
27691
27692 2010-04-16 Doug Kwan <dougkwan@google.com>
27693
27694 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
27695 (next_operand_entry_id): New static variable.
27696 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
27697 (add_to_ops_vec): Assigned unique ID to operand entry.
27698 (struct oecount_s): New field ID.
27699 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
27700 (undistribute_ops_list): Assign unique IDs to oecounts.
27701 (init_reassoc): reset next_operand_entry_id.
27702
27703 2010-04-16 Doug Kwan <dougkwan@google.com>
27704
27705 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
27706 missing left parenthesis.
27707
27708 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
27709
27710 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
27711 *btdi_rex64 using SWI48 mode iterator.
27712 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
27713 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
27714 *jcc_btdi_mask_rex64.
27715
27716 2010-04-16 Anatoly Sokolov <aesok@post.ru>
27717
27718 * double-int.h (tree_to_double_int): Convert to macro.
27719 * double-int.c (tree_to_double_int): Remove.
27720
27721 2010-04-16 Jakub Jelinek <jakub@redhat.com>
27722
27723 PR debug/43762
27724 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
27725 with want_address 2 and in case a single element list might be
27726 possible, call it again with want_address 0.
27727
27728 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
27729
27730 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
27731 case 'W' print operands for HI mode.
27732 * config/h8300/h8300.h (Y0, Y2) : New constraints.
27733 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
27734 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
27735 * config/h8300/predicate.md (bit_register_indirect_operand): New.
27736
27737 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
27738
27739 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
27740 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
27741 #xx:3 and #xx:4 mode.
27742
27743 * config/h8300/h8300.md (inverted load with HImode dest): Add
27744 support for H8300SX.
27745
27746 * config/h8300/predicate.md (bit_operand): Allow immediate values that
27747 satisfy 'U' constraint.
27748
27749 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27750
27751 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
27752 * configure: Regenerate.
27753 * config.in: Regenerate.
27754 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
27755 works.
27756
27757 2010-04-16 Richard Guenther <rguenther@suse.de>
27758
27759 * tree.h (struct tree_decl_minimal): Move pt_uid ...
27760 (struct tree_decl_common): ... here.
27761 (DECL_PT_UID): Adjust.
27762 (SET_DECL_PT_UID): Likewise.
27763 (DECL_PT_UID_SET_P): Likewise.
27764
27765 2010-04-16 Richard Guenther <rguenther@suse.de>
27766
27767 PR tree-optimization/43572
27768 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
27769 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
27770 * tree-flow.h (is_call_clobbered): Remove.
27771 * tree-flow-inline.h (is_call_clobbered): Likewise.
27772 * tree-dfa.c (dump_variable): Do not dump call clobber state.
27773 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
27774 (execute_return_slot_opt): Adjust.
27775 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
27776 check for call clobbered vars here.
27777 (find_tail_calls): Move tailcall verification to the
27778 proper place.
27779
27780 2010-04-16 Diego Novillo <dnovillo@google.com>
27781
27782 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
27783
27784 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
27785
27786 PR target/40603
27787 * config/arm/arm.md (cbranchqi4): New pattern.
27788 * config/arm/predicates.md (const0_operand,
27789 cbranchqi4_comparison_operator): New predicates.
27790
27791 2010-04-16 Richard Guenther <rguenther@suse.de>
27792
27793 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
27794 (dump_gimple_stmt): Likewise.
27795
27796 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
27797
27798 * recog.h (struct recog_data): New field is_operator.
27799 (struct insn_operand_data): New field is_operator.
27800 * recog.c (extract_insn): Set recog_data.is_operator.
27801 * genoutput.c (output_operand_data): Emit code to set the
27802 is_operator field.
27803 * reload.c (find_reloads): Use it rather than testing for an
27804 empty constraint string.
27805
27806 PR target/41514
27807 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
27808 If the previous insn is a cbranchsi4_insn with the same arguments,
27809 omit the compare instruction.
27810
27811 * config/arm/arm.md (addsi3_cbranch): If destination is a high
27812 register, inputs must be low registers and we need a low register
27813 scratch. Handle alternative 2 like alternative 3.
27814
27815 2010-04-16 Jakub Jelinek <jakub@redhat.com>
27816
27817 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
27818 don't call get_addr on both. If one expression is a VALUE and
27819 the other a REG, check VALUE's locs if the REG isn't among them.
27820
27821 2010-04-16 Christian Bruel <christian.bruel@st.com>
27822
27823 * config/sh/sh.h (sh_frame_pointer_required): New function.
27824 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
27825 (flag_omit_frame_pointer) Set.
27826 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
27827 (rounded_frame_size): Adjust size with outgoing_args_size.
27828 (sh_set_return_address): Must return from stack pointer.
27829 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
27830 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
27831 (ACCUMULATE_OUTGOING_ARGS): Define.
27832 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
27833 * config/sh/sh.opt (maccumulate-outgoing-args): New option.
27834
27835 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
27836
27837 PR target/43471
27838 * config/sh/sh.c (sh_legitimize_reload_address): Use
27839 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
27840 Remove a unneeded check for offset_base.
27841
27842 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
27843
27844 * configure: Regenerated.
27845
27846 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27847
27848 * config/s390/s390.c (s390_call_save_register_used): Switch back
27849 to HARD_REGNO_NREGS.
27850
27851 2010-04-15 Richard Guenther <rguenther@suse.de>
27852
27853 * alias.c (alias_set_subset_of): Handle alias-set zero
27854 child properly.
27855
27856 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
27857 Julian Brown <julian@codesourcery.com>
27858
27859 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
27860 alternatives according to use of high and low regs.
27861 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
27862 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
27863 optimizing for size on Thumb-2.
27864
27865 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
27866
27867 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
27868
27869 2010-04-15 Richard Guenther <rguenther@suse.de>
27870
27871 * tree-ssa-structalias.c (struct variable_info): Add
27872 is_fn_info flag.
27873 (new_var_info): Initialize it.
27874 (dump_constraints): Support printing last added constraints.
27875 (debug_constraints): Adjust.
27876 (dump_constraint_graph): Likewise.
27877 (make_heapvar_for): Check for NULL cfun.
27878 (get_function_part_constraint): New function.
27879 (get_fi_for_callee): Likewise.
27880 (find_func_aliases): Properly implement IPA PTA constraints.
27881 (process_ipa_clobber): New function.
27882 (find_func_clobbers): Likewise.
27883 (insert_into_field_list_sorted): Remove.
27884 (create_function_info_for): Properly allocate vars for IPA mode.
27885 Do not use insert_into_field_list_sorted.
27886 (create_variable_info_for): Properly generate constraints for
27887 global vars in IPA mode.
27888 (dump_solution_for_var): Always dump the solution.
27889 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
27890 (find_what_var_points_to): Adjust.
27891 (pt_solution_set): Change.
27892 (pt_solution_ior_into): New function.
27893 (pt_solution_empty_p): Export.
27894 (pt_solution_includes_global): Adjust.
27895 (pt_solution_includes_1): Likewise.
27896 (pt_solutions_intersect_1): Likewise.
27897 (dump_sa_points_to_info): Check some invariants.
27898 (solve_constraints): Move constraint dumping ...
27899 (compute_points_to_sets): ... here.
27900 (ipa_pta_execute): ... and here.
27901 (compute_may_aliases): Do not re-compute points-to info
27902 locally if IPA info is available.
27903 (ipa_escaped_pt): New global var.
27904 (ipa_pta_execute): Properly implement IPA PTA.
27905 * tree-into-ssa.c (dump_decl_set): Support dumping
27906 decls not in referenced-vars.
27907 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
27908 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
27909 (dump_points_to_solution): Likewise.
27910 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
27911 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
27912 (remap_gimple_stmt): Reset call clobber/use information if necessary.
27913 (copy_decl_to_var): Copy DECL_PT_UID.
27914 (copy_result_decl_to_var): Likewise.
27915 * tree.c (make_node_stat): Initialize DECL_PT_UID.
27916 (copy_node_stat): Copy it.
27917 * tree.h (DECL_PT_UID): New macro.
27918 (SET_DECL_PT_UID): Likewise.
27919 (DECL_PT_UID_SET_P): Likewise.
27920 (struct tree_decl_minimal): Add pt_uid member.
27921 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
27922 (pt_solution_empty_p): Declare.
27923 (pt_solution_set): Adjust.
27924 (ipa_escaped_pt): Declare.
27925 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
27926 * gimple-pretty-print.c (pp_points_to_solution): New function.
27927 (dump_gimple_call): Dump call clobber/use information.
27928 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
27929 * tree-pass.h (TDF_ALIAS): New dump option.
27930 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
27931 * doc/invoke.texi (-fipa-pta): Update documentation.
27932
27933 2010-04-15 Richard Guenther <rguenther@suse.de>
27934
27935 * Makefile.in (OBJS-common): Add gimple-fold.o.
27936 (gimple-fold.o): New rule.
27937 * tree.h (maybe_fold_offset_to_reference,
27938 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
27939 prototypes ...
27940 * gimple.h: ... here.
27941 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
27942 may_propagate_address_into_dereference): Move prototypes ...
27943 * gimple.h: ... here.
27944 * tree-ssa-ccp.c (get_symbol_constant_value,
27945 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
27946 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
27947 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
27948 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
27949 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
27950 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
27951 gimplify_and_update_call_from_tree): Move ...
27952 * gimple-fold.c: ... here. New file.
27953 (ccp_fold_builtin): Rename to ...
27954 (gimple_fold_builtin): ... this.
27955 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
27956
27957 2010-04-15 Richard Guenther <rguenther@suse.de>
27958
27959 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
27960 fit_double_type, force_fit_type_double, add_double_with_sign,
27961 neg_double, mul_double_with_sign, lshift_double, rshift_double,
27962 lrotate_double, rrotate_double, div_and_round_double): Move ...
27963 * double-int.c: ... here.
27964 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
27965 add_double, neg_double, mul_double_with_sign, mul_double,
27966 lshift_double, rshift_double, lrotate_double, rrotate_double,
27967 div_and_round_double): Move prototypes ...
27968 * double-int.h: ... here.
27969
27970 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
27971
27972 PR target/43742
27973 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
27974 matching constraints to ensure inputs match the output.
27975
27976 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
27977
27978 PR target/43742
27979 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
27980 in an input-only operand.
27981
27982 2010-04-15 Anatoly Sokolov <aesok@post.ru>
27983
27984 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
27985 (double_int_not, double_int_lshift, double_int_rshift): Declare.
27986 (double_int_negative_p): Convert to static inline function.
27987 * double-int.c (double_int_lshift, double_int_lshift): New functions.
27988 (double_int_negative_p): Remove.
27989 * tree.h (lshift_double, rshift_double):
27990 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
27991 * fold-const.c (fold_convert_const_int_from_real,
27992 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
27993 (lshift_double): Change type of arith argument to bool.
27994 (rshift_double): Change type of arith argument to bool. Correct
27995 comment.
27996 * expmed.c (mask_rtx, lshift_value): (Ditto.).
27997
27998 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
27999
28000 PR target/21803
28001 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
28002 at the start and end of the then/else blocks, and omit them from the
28003 conversion.
28004 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
28005 argument; all callers changed. Pass zero to old_insns_match_p instead.
28006 (flow_find_head_matching_sequence): New function.
28007 (old_insns_match_p): Check REG_EH_REGION notes for calls.
28008 * basic-block.h (flow_find_cross_jump,
28009 flow_find_head_matching_sequence): Declare functions.
28010
28011 2010-04-14 Jason Merrill <jason@redhat.com>
28012
28013 PR c++/36625
28014 * c-common.c (attribute_takes_identifier_p): New fn.
28015 * c-common.h: Declare it.
28016
28017 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
28018
28019 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
28020 splitter condition.
28021 (*udivmod<mode>4): Ditto.
28022
28023 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
28024
28025 * config/i386/i386.md (maxmin_int): Rename code attribute from
28026 maxminiprefix and update all users.
28027 (maxmin_float): Ditto from maxminfprefix.
28028 (logic): Ditto from logicprefix.
28029 (absneg_mnemonic): Ditto from absnegprefix.
28030 * config/i386/mmx.md: Update all users of maxminiprefix,
28031 maxminfprefix and logicprefix for rename.
28032 * config/i386/sse.md: Ditto.
28033 * config/i386/sync.md (sync_<code><mode>): Update for
28034 logicprefix rename.
28035
28036 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
28037
28038 PR 42966
28039 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
28040 warnings converted to errors.
28041
28042 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
28043
28044 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
28045 used insn_type variable.
28046 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
28047 to avoid set-but-not-used warning.
28048
28049 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
28050
28051 * df-core.c (df_ref_debug): Change format string placeholder
28052 from 0x%x to %#x.
28053 * dwarf2asm.c (dw2_asm_output_data_raw,
28054 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
28055 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
28056 * dwarf2out.c (output_cfi, output_cfi_directive,
28057 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
28058 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
28059 Ditto.
28060 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
28061 * print-rtl.c (print_rtx): Ditto.
28062
28063 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
28064
28065 PR middle-end/42694
28066 * builtins.c (expand_builtin_pow_root): New function to expand pow
28067 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
28068 series of sqrt and cbrt calls under -ffast-math.
28069 (expand_builtin_pow): Call it.
28070
28071 2010-04-14 Michael Matz <matz@suse.de>
28072
28073 PR tree-optimization/42963
28074 * tree-cfg.c (touched_switch_bbs): New static variable.
28075 (group_case_labels_stmt): New function broken out from ...
28076 (group_case_labels): ... here, use the above.
28077 (start_recording_case_labels): Allocate touched_switch_bbs.
28078 (end_recording_case_labels): Deallocate it, call
28079 group_case_labels_stmt.
28080 (gimple_redirect_edge_and_branch): Remember index of affected BB.
28081
28082 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
28083
28084 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
28085 from insn template.
28086
28087 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
28088
28089 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
28090
28091 2010-04-13 Jan Hubicka <jh@suse.cz>
28092
28093 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
28094 of optimized out static functions.
28095 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
28096 cost computation. Also sanity check for overflows.
28097 (update_caller_keys): Update cgraph_edge_badness call; properly
28098 update fibheap and sanity check that it is up to date.
28099 (add_new_edges_to_heap): Update cgraph_edge_badness.
28100 (cgraph_decide_inlining_of_small_function): Likewise;
28101 add sanity checking that badness in heap is up to date;
28102 improve dumping of reason; Update badness of calls to the
28103 offline copy of function currently inlined; dump badness
28104 of functions not inlined because of unit growth limits.
28105
28106 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
28107
28108 PR middle-end/32628
28109 * c-common.c (pointer_int_sum): Disregard overflow that occured only
28110 because of sign-extension change when converting to sizetype here...
28111 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
28112
28113 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
28114 the folding to constants. Remove redundant final conversion.
28115 (fold_binary) <associate>: Do not associate if the re-association of
28116 constants alone overflows.
28117 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
28118 to the end of the list.
28119 (multiple_of_p) <COND_EXPR>: New case.
28120
28121 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
28122
28123 * opt-functions.awk (opt_sanitized_name): New.
28124 (opt_enum): New.
28125 * optc-gen.awk: Use it
28126 * opth-gen.awk: Use it.
28127
28128 2010-04-13 Martin Jambor <mjambor@suse.cz>
28129
28130 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
28131 (sra_modify_assign): Delete stmts loading dead data even if racc has no
28132 children. Call replace_uses_with_default_def_ssa_name to handle
28133 SSA_NAES on lhs.
28134
28135 2010-04-13 Michael Matz <matz@suse.de>
28136
28137 PR middle-end/43730
28138 * builtins.c (expand_builtin_interclass_mathfn): Also create
28139 a register if the predicate doesn't match.
28140
28141 2010-04-13 Diego Novillo <dnovillo@google.com>
28142
28143 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
28144 * c-pch.c: Include timevar.h.
28145 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
28146 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
28147 * ggc-common.c: Include timevar.h.
28148 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
28149 * timevar.def (TV_PCH_SAVE): Define.
28150 (TV_PCH_CPP_SAVE): Define.
28151 (TV_PCH_PTR_REALLOC): Define.
28152 (TV_PCH_PTR_SORT): Define.
28153 (TV_PCH_RESTORE): Define.
28154 (TV_PCH_CPP_RESTORE): Define.
28155
28156 2010-04-13 Michael Matz <matz@suse.de>
28157
28158 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
28159 into MINUS_EXPRs.
28160 (can_reassociate_p): New function.
28161 (break_up_subtract_bb, reassociate_bb): Use it.
28162
28163 2010-04-13 Richard Guenther <rguenther@suse.de>
28164
28165 PR bootstrap/43737
28166 * builtins.c (c_readstr): Fix assert.
28167
28168 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
28169
28170 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
28171 when generating cltd insn.
28172
28173 (*ashl<mode>3_1): Remove special handling for register operand 2.
28174 (*ashlsi3_1_zext): Ditto.
28175 (*ashlhi3_1): Ditto.
28176 (*ashlhi3_1_lea): Ditto.
28177 (*ashlqi3_1): Ditto.
28178 (*ashlqi3_1_lea): Ditto.
28179 (*<shiftrt_insn><mode>3_1): Ditto.
28180 (*<shiftrt_insn>si3_1_zext): Ditto.
28181 (*<shiftrt_insn>qi3_1_slp): Ditto.
28182 (*<rotate_insn><mode>3_1): Ditto.
28183 (*<rotate_insn>si3_1_zext): Ditto.
28184 (*<rotate_insn>qi3_1_slp): Ditto.
28185
28186 2010-04-13 Richard Guenther <rguenther@suse.de>
28187
28188 * tree-ssa-structalias.c (callused_id): Remove.
28189 (call_stmt_vars): New.
28190 (get_call_vi): Likewise.
28191 (lookup_call_use_vi): Likewise.
28192 (lookup_call_clobber_vi): Likewise.
28193 (get_call_use_vi): Likewise.
28194 (get_call_clobber_vi): Likewise.
28195 (make_transitive_closure_constraints): Likewise.
28196 (handle_const_call): Adjust to do per-call call-used handling.
28197 (handle_pure_call): Likewise.
28198 (find_what_var_points_to): Remove general callused handling.
28199 (init_base_vars): Likewise.
28200 (init_alias_vars): Initialize call_stmt_vars.
28201 (compute_points_to_sets): Process call-used and call-clobbered
28202 vars for call statements.
28203 (delete_points_to_sets): Free call_stmt_vars.
28204
28205 2010-04-13 Richard Guenther <rguenther@suse.de>
28206
28207 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
28208 Only add RW dependence for dependence distance zero.
28209 Adjust maximal vectorization factor according to dependences.
28210 Move alignment handling ...
28211 (vect_find_same_alignment_drs): ... here. New function.
28212 (vect_analyze_data_ref_dependences): Adjust.
28213 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
28214 (vect_analyze_data_refs): Adjust minimal vectorization factor
28215 according to data references.
28216 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
28217 dependences before determining the vectorization factor.
28218 Analyze alignment after determining the vectorization factor.
28219 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
28220 dependences before alignment.
28221 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
28222 Adjust prototype.
28223 (vect_analyze_data_refs): Likewise.
28224 (MAX_VECTORIZATION_FACTOR): New define.
28225
28226 2010-04-13 Duncan Sands <baldrick@free.fr>
28227
28228 * except.h (lang_eh_type_covers): Remove.
28229 * except.c (lang_eh_type_covers): Likewise.
28230
28231 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28232 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
28233
28234 * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
28235 * config/s390/s390.c: Replace UNTIS_PER_WORD with
28236 UNITS_PER_LONG where it is ABI relevant.
28237 (s390_return_addr_rtx): Likewise.
28238 (s390_back_chain_rtx): Likewise.
28239 (s390_frame_area): Likewise.
28240 (s390_frame_info): Likewise.
28241 (s390_initial_elimination_offset): Likewise.
28242 (save_gprs): Likewise.
28243 (s390_emit_prologue): Likewise.
28244 (s390_emit_epilogue): Likewise.
28245 (s390_function_arg_advance): Likewise.
28246 (s390_function_arg): Likewise.
28247 (s390_va_start): Likewise.
28248 (s390_gimplify_va_arg): Likewise.
28249 (s390_function_profiler): Likewise.
28250 (s390_optimize_prologue): Likewise.
28251 (s390_rtx_costs): Likewise.
28252 (s390_secondary_reload): Likewise.
28253 (s390_promote_function_mode): Likewise.
28254 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
28255 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
28256 registers available.
28257 (s390_unwind_word_mode): New function.
28258 (s390_function_value): Split 64 bit values into register pair if
28259 used as return value.
28260 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
28261 function call parameters. Handle parallels.
28262 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
28263 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
28264 (DWARF_CIE_DATA_ALIGNMENT): New macro.
28265 (s390_expand_setmem): Remove unused variable src_addr.
28266 * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
28267 deal with 64 bit registers.
28268 * config/s390/s390.h: Define __zarch__ predefined macro.
28269 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
28270 (UNITS_PER_LONG): New macro.
28271 * libjava/include/s390-signal.h: Define extended ucontext
28272 structure containing the upper halfs of the 64 bit registers.
28273
28274 2010-04-13 Simon Baldwin <simonb@google.com>
28275
28276 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
28277
28278 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
28279
28280 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
28281 rvalue on the RHS if the LHS is of a non-renamable type.
28282 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
28283
28284 2010-04-13 Matthias Klose <doko@ubuntu.com>
28285
28286 * gcc.c (cc1_options): Handle -iplugindir before processing
28287 the cc1 spec. Only add -iplugindir once.
28288 (cpp_unique_options): Add -iplugindir option if -fplugin* options
28289 found.
28290 * common.opt (iplugindir): Remove `Separate' property, initialize.
28291 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
28292 option.
28293 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
28294 (distclean): Remove plugin dir.
28295 * doc/invoke.texi: Document -iplugindir.
28296
28297 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
28298
28299 * doc/plugins.texi (Loading Plugins): Document short
28300 -fplugin=foo option.
28301 (Plugin API): Mention default_plugin_dir_name function.
28302
28303 * gcc.c (find_file_spec_function): Add new declaration.
28304 (static_spec_func): Use it for "find-file".
28305 (find_file_spec_function): Add new function.
28306 (cc1_options): Add -iplugindir option if -fplugin* options found.
28307
28308 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
28309
28310 * plugin.c (add_new_plugin): Updated comment, and handle short
28311 plugin name.
28312 (default_plugin_dir_name): Added new function.
28313
28314 * common.opt (iplugindir): New option to set the plugin directory.
28315
28316 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
28317
28318 * config/i386/i386.md (any_rotate): New code iterator.
28319 (rotate_insn): New code attribute.
28320 (rotate): Ditto.
28321 (SWIM124): New mode iterator.
28322 (<rotate_insn>ti3): New expander.
28323 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
28324 any_rotate code iterator.
28325 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
28326 using any_rotate code iterator and SWIM124 mode iterator.
28327 (ix86_rotlti3): New insn_and_split pattern.
28328 (ix86_rotrti3): Ditto.
28329 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
28330 ix86_rotl{di,ti}3 patterns.
28331 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
28332 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
28333 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
28334 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
28335 code iterator and SWI mode iterator.
28336 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
28337 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
28338 code iterator.
28339 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
28340 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
28341 (bswap rotatert splitter): Add splitter.
28342 (bswap splitter): Macroize splitter using any_rotate code iterator.
28343 Add insn predicate to split only for TARGET_USE_XCHGB or when
28344 optimizing function for size.
28345
28346 2010-04-12 Steve Ellcey <sje@cup.hp.com>
28347
28348 * config/pa/pa.c (emit_move_sequence): Remove use of
28349 deleted variable flag_argument_noalias.
28350
28351 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28352
28353 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
28354 configurations.
28355 Add to unsupported targets list.
28356 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
28357 sparc*-sun-solaris2.[567]* from target lists.
28358 * configure: Regenerate.
28359 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
28360 removal.
28361 Remove Solaris 7 patch references.
28362 (Specific, sparc-sun-solaris2.7): Removed.
28363 (sparc-sun-solaris2*): Update Solaris 7 example.
28364 (sparc64-*-solaris2*): Likewise.
28365
28366 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28367
28368 * config.build (alpha*-dec-osf4*): Remove.
28369 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
28370 of obsolete configurations.
28371 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
28372 support.
28373 * config/alpha/t-osf4: Renamed to ...
28374 * config/alpha/t-osf5: ... this.
28375 * config/alpha/osf.h: Renamed to ...
28376 * config/alpha/osf5.h: ... this.
28377 Merged old osf5.h contents.
28378 Update comments.
28379 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
28380 (EXTRA_SPECS): Removed.
28381 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
28382 reflect removal of Tru64 UNIX V4.0/V5.0 support.
28383 Document that.
28384
28385 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28386
28387 * doc/contrib.texi (Contributors, Rainer Orth): Update.
28388
28389 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
28390
28391 PR/43702
28392 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
28393 __thiscall convention.
28394
28395 2010-04-12 Steve Ellcey <sje@cup.hp.com>
28396
28397 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
28398 orig_base.
28399 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
28400
28401 2010-04-12 Steve Ellcey <sje@cup.hp.com>
28402
28403 * function.c (assign_parms_initialize_all): Add unused attribute
28404 to fntype.
28405
28406 2010-04-12 Richard Guenther <rguenther@suse.de>
28407
28408 * gsstruct.def (GSS_CALL): New.
28409 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
28410 * gimple.h: Include tree-ssa-alias.h.
28411 (struct gimple_statement_call): New.
28412 (union gimple_statement_struct_d): Add gimple_call member.
28413 (gimple_call_reset_alias_info): Declare.
28414 (gimple_call_use_set): New function.
28415 (gimple_call_clobber_set): Likewise.
28416 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
28417 * gimple.c (gimple_call_reset_alias_info): New function.
28418 (gimple_build_call_1): Call it.
28419 * lto-streamer-in.c (input_gimple_stmt): Likewise.
28420 * tree-inline.c (remap_gimple_stmt): Likewise.
28421 (expand_call_inline): Remove callused handling.
28422 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
28423 * tree-dfa.c (dump_variable): Likewise.
28424 * tree-parloops.c (parallelize_loops): Likewise.
28425 * tree-ssa.c (init_tree_ssa): Likewise.
28426 (delete_tree_ssa): Likewise.
28427 * tree-flow-inline.h (is_call_used): Remove.
28428 * tree-flow.h (struct gimple_df): Remove callused member.
28429 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
28430 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
28431 (ref_maybe_used_by_call_p_1): Simplify.
28432 (call_may_clobber_ref_p_1): Likewise.
28433 * tree-ssa-structalias.c (compute_points_to_sets): Set
28434 the call stmt used and clobbered sets.
28435 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
28436 (find_tail_calls): Verify the tail call.
28437
28438 2010-04-12 Richard Guenther <rguenther@suse.de>
28439
28440 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
28441 single-iteration always-inline inlining.
28442 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
28443 (cgraph_decide_inlining): Do not handle always-inline specially.
28444 (try_inline): Remove always-inline cycle detection special case.
28445 Do not recurse on always-inlines.
28446 (cgraph_early_inlining): Do not iterate if not optimizing.
28447 (cgraph_gate_early_inlining): remove.
28448 (pass_early_inline): Run unconditionally.
28449 (gate_cgraph_decide_inlining): New function.
28450 (pass_ipa_inline): Use it. Do not run the IPA inliner if
28451 not inlining or optimizing.
28452 (cgraph_decide_inlining_of_small_functions): Also consider
28453 always-inline functions.
28454 (cgraph_default_inline_p): Return true for nodes which should
28455 disregard inline limits.
28456 (estimate_function_body_sizes): Assume zero size and time for
28457 nodes which are marked as disregarding inline limits.
28458 (cgraph_decide_recursive_inlining): Do not perform recursive
28459 inlining on always-inline nodes.
28460
28461 2010-04-12 Jakub Jelinek <jakub@redhat.com>
28462
28463 PR bootstrap/43699
28464 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
28465 for exprs satisfying handled_component_p.
28466
28467 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
28468
28469 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
28470 non-constant aggregate elements.
28471
28472 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
28473 is a real initialization.
28474
28475 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
28476
28477 PR c/36774
28478 * c-decl.c (start_function): Move forward check for nested function.
28479
28480 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
28481
28482 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
28483 * config/sh/sh.c: Include reload.h.
28484 (sh_legitimize_reload_address): New.
28485 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
28486 sh_legitimize_reload_address.
28487
28488 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
28489
28490 * config/sh/sh.md (*movqi_pop): New insn pattern.
28491 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
28492
28493 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
28494
28495 * config/i386/i386.md (any_shiftrt): New code iterator.
28496 (shiftrt_insn): New code attribute.
28497 (shiftrt): Ditto.
28498 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
28499 using any_shiftrt code iterator.
28500 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
28501 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
28502 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
28503 pattern from corresponding peephole2 patterns.
28504 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
28505 using any_shiftrt code iterator.
28506 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
28507 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
28508 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
28509 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
28510 *{ashr,lshr}<mode>3_cmp_zext.
28511 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
28512
28513 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
28514
28515 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
28516 scratch register.
28517 (*lshr<mode>3_cconly): Ditto.
28518
28519 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
28520
28521 * config/i386/i386.md (lshr<mode>3): Macroize expander from
28522 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
28523 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
28524 pattern from *lshr{di,ti}3_1 and corresponding splitters using
28525 DWI mode iterator.
28526 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
28527 from corresponding peephole2 patterns.
28528 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
28529 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
28530 and *lshrdi3_1_rex64 using SWI mode iterator.
28531 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
28532 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
28533 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
28534 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
28535 and *lshrdi3_cmp_rex64 using SWI mode iterator.
28536 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
28537 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
28538 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
28539 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
28540 SWI mode iterator.
28541
28542 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
28543
28544 * config/i386/i386.md (ashr<mode>3): Macroize expander from
28545 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
28546 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
28547 pattern from *ashr{di,ti}3_1 and corresponding splitters using
28548 DWI mode iterator.
28549 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
28550 from corresponding peephole2 patterns.
28551 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
28552 (ashrsi3_cvt): Rename from ashrsi3_31.
28553 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
28554 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
28555 and x86_64_shift_adj_3 using SWI48 mode iterator.
28556 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
28557 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
28558 and *ashrdi3_1_rex64 using SWI mode iterator.
28559 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
28560 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
28561 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
28562 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
28563 and *ashrdi3_cmp_rex64 using SWI mode iterator.
28564 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
28565 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
28566 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
28567 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
28568 SWI mode iterator.
28569 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
28570 * config/i386/i386.c (ix86_split_ashr): Update for renamed
28571 x86_shift<mode>_adj_3 expanders.
28572
28573 2010-04-10 Wei Guozhi <carrot@google.com>
28574
28575 PR target/42601
28576 * config/arm/arm.c (arm_pic_static_addr): New function.
28577 (legitimize_pic_address): Call arm_pic_static_addr when it detects
28578 a static symbol.
28579 (arm_output_addr_const_extra): Output expression for new pattern.
28580 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
28581
28582 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
28583
28584 * ira-costs.c (record_reg_classes): Ignore alternatives that are
28585 not enabled.
28586
28587 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
28588 * web.c: Include "insn-config.h" and "recog.h".
28589 (union_match_dups): New function.
28590 (web_main): Call it.
28591 (union_defs): Don't try to recognize match_dups.
28592
28593 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
28594 if doing so would replace the entire pattern.
28595
28596 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
28597
28598 PR target/43707
28599 PR target/43709
28600 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
28601 and splitter pattern. Change splitter operand 1 predicate to
28602 nonmemory_operand.
28603
28604 2010-04-09 Martin Jambor <mjambor@suse.cz>
28605
28606 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
28607 lattices are addresses of CONST_DECLs with the same initial value.
28608 (ipcp_print_all_lattices): Print values of CONST_DECLs.
28609 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
28610
28611 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
28612 Bernd Schmidt <bernds@codesourcery.com>
28613
28614 * loop-invariant.c (replace_uses): New static function.
28615 (move_invariant_reg): Use it to ensure we can replace the uses.
28616
28617 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
28618
28619 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
28620 function template.
28621 (picochip_override_options): Enable section anchors only above -O1.
28622 (picochip_reorg): Fixed a couple of build warnings.
28623
28624 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28625
28626 * configure.ac (plugin -rdynamic test): Log result.
28627 * configure: Regenerate.
28628 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
28629 (RDYNAMIC_SPEC): Define.
28630 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
28631
28632 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28633
28634 * configure.ac: Determine Sun ld version numbers.
28635 (comdat_group): Restrict GNU ld version checks to gld.
28636 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
28637 (enable_comdat): Support --enable-comdat.
28638 * configure: Regenerate.
28639 * doc/install.texi (Configuration): Document --enable-comdat.
28640
28641 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28642
28643 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
28644 * config/sol2-gld.h: ... here.
28645 * config.gcc (sparc*-*-solaris2*): Reflect this.
28646 (i[34567]86-*-solaris2*): Use it.
28647
28648 2010-04-09 Steve Ellcey <sje@cup.hp.com>
28649
28650 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
28651 setup_clocks_p.
28652 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
28653
28654 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
28655
28656 PR 42965
28657 * diagnostic.c (diagnostic_initialize): Initialize
28658 some_warnings_are_errors.
28659 (diagnostic_finish): New.
28660 (diagnostic_action_after_output): Call it before exiting.
28661 (diagnostic_report_diagnostic): Do not print message here. Set
28662 some_warnings_are_errors.
28663 * diagnostic.h (diagnostic_context): Delete
28664 issue_warnings_are_errors_message. Add some_warnings_are_errors.
28665 (diagnostic_finish): Declare.
28666 * toplev.c (toplev_main): Call it before exit.
28667
28668 2010-04-09 Jason Merrill <jason@redhat.com>
28669
28670 PR c++/42623
28671 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
28672 for incomplete type.
28673
28674 PR c++/41788
28675 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
28676 based on a warning flag.
28677
28678 2010-04-09 Richard Guenther <rguenther@suse.de>
28679
28680 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
28681
28682 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
28683
28684 PR bootstrap/43684
28685 * varasm.c (default_assemble_visibility): Wrap vars that are
28686 set, but unused, by targets without GAS.
28687 * config/rs6000/rs6000.c (paired_emit_vector_compare):
28688 Remove set, but unused, vars.
28689 (rs6000_legitimize_tls_address): Likewise.
28690 (altivec_expand_dst_builtin): Likewise.
28691 * config/darwin.c (machopic_classify_symbol): Likewise.
28692 (machopic_indirection_name): Likewise.
28693
28694 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
28695
28696 * config/i386/i386.md (DWI): New mode iterator.
28697 (S): New mode attribute.
28698 (shift_operand): Ditto.
28699 (shift_immediate_operand): Ditto.
28700 (ashl_input_operand): Ditto.
28701 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
28702 using SDWIM mode iterator.
28703 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
28704 pattern from *ashl{di,ti}3_1 and corresponding splitters using
28705 DWI mode iterator.
28706 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
28707 from corresponding peephole2 patterns.
28708 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
28709 and x86_64_shift_adj_1 using SWI48 mode iterator.
28710 (x86_shift<mode>_adj_2): Ditto.
28711 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
28712 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
28713 using SWI48 mode iterator.
28714 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
28715 *ashldi3_cmp_rex64 using SWI mode iterator.
28716 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
28717 *ashldi3_cconly_rex64 using SWI mode iterator.
28718 * config/i386/i386.c (ix86_split_ashl): Update for renamed
28719 x86_shift<mode>_adj_{1,2}.
28720 (ix86_split_ashr): Ditto.
28721 (ix86_split_lshr): Ditto.
28722
28723 2010-04-09 Richard Guenther <rguenther@suse.de>
28724
28725 * target.h (builtin_conversion): Pass in input and output types.
28726 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
28727 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
28728 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
28729 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
28730
28731 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
28732 Handle AVX modes.
28733 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
28734
28735 2010-04-09 Richard Guenther <rguenther@suse.de>
28736
28737 PR target/43152
28738 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
28739
28740 2010-04-09 Richard Guenther <rguenther@suse.de>
28741
28742 * tree-vectorizer.h (struct _stmt_vec_info): Document
28743 that vectype is the type of the LHS.
28744 (supportable_widening_operation, supportable_narrowing_operation):
28745 Get both input and output vector types as arguments.
28746 (vect_is_simple_use_1): Declare.
28747 (get_same_sized_vectype): Likewise.
28748 * tree-vect-loop.c (vect_determine_vectorization_factor):
28749 Set STMT_VINFO_VECTYPE to the vector type of the def.
28750 (vectorizable_reduction): Adjust.
28751 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
28752 Adjust. Specify the output vector type.
28753 (vect_pattern_recog_1): Adjust.
28754 * tree-vect-stmts.c (get_same_sized_vectype): New function.
28755 (vectorizable_call): Adjust.
28756 (vectorizable_conversion): Likewise.
28757 (vectorizable_operation): Likewise.
28758 (vectorizable_type_demotion): Likewise.
28759 (vectorizable_type_promotion): Likewise.
28760 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
28761 the def.
28762 (vect_is_simple_use_1): New function.
28763 (supportable_widening_operation): Get both input and output
28764 vector types.
28765 (supportable_narrowing_operation): Likewise.
28766 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
28767
28768 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
28769
28770 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
28771 __thiscall and _thiscall as predefined macros.
28772 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
28773 thiscall attribute handling.
28774 (ix86_comp_type_attributes): Likewise.
28775 (ix86_function_regparm): Likewise.
28776 (ix86_return_pops_args): Likewise.
28777 (init_cumulative_args): Likewise.
28778 (find_drap_reg): Likewise.
28779 (ix86_static_chain): Likewise.
28780 (x86_this_parameter): Likewise.
28781 (x86_output_mi_thunk): Likewise.
28782 (ix86_attribute_table): Add description for thiscall attribute.
28783 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
28784 * doc/extend.texi: Add documentation for thiscall.
28785
28786 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
28787
28788 PR c++/28584
28789 * c.opt (Wint-to-pointer-cast): Available in C++.
28790 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
28791
28792 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
28793
28794 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
28795 * calls.c (expand_call): Pass the function type to aggregate_value_p.
28796 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
28797 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
28798 function type instead. Reorder and simplify checks.
28799
28800 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
28801
28802 2010-04-08 Jing Yu <jingyu@google.com>
28803 Zdenek Dvorak <ook@ucw.cz>
28804
28805 PR tree-optimization/42720
28806 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
28807 loop unswitch conditions here from ...
28808 (tree_unswitch_single_loop): ... here.
28809
28810 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
28811
28812 * tree-if-conv.c: Fix comments and simplify logic.
28813
28814 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
28815
28816 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
28817 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
28818 (main_tree_if_conversion): Update call to tree_if_conversion.
28819
28820 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
28821
28822 PR 42485
28823 * doc/invoke.texi (-b,-V): Delete.
28824 * doc/tm.texi: Do not mention -b.
28825 * gcc.c (display_help): Delete -b and -V.
28826 (process_command): Delete -b and -V.
28827 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
28828
28829 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
28830 Wolfgang Gellerich <gellerich@de.ibm.com>
28831
28832 Implement target hook for loop unrolling
28833 * target.h (loop_unroll_adjust): Add a new target hook function.
28834 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
28835 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
28836 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
28837 (s390_loop_unroll_adjust): Implement the new target hook for s390.
28838 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
28839 target hook.
28840 (decide_unroll_stupid): Likewise.
28841
28842 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28843
28844 PR target/43643
28845 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
28846
28847 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28848
28849 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
28850 (Specific, *-*-solaris2*): Likewise.
28851 Don't prefer Sun as over GNU as.
28852
28853 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
28854
28855 * config/s390/s390.c (override_options): Adjust the z10 defaults
28856 for max-unroll-times, max-completely-peeled-insns
28857 and max-completely-peel-times.
28858
28859 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28860
28861 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
28862 instructions for z10.
28863 (s390_expand_setmem): Likewise.
28864 (s390_expand_cmpmem): Likewise.
28865
28866 2010-04-08 Richard Guenther <rguenther@suse.de>
28867
28868 PR tree-optimization/43679
28869 * tree-ssa-pre.c (eliminate): Only propagate copies.
28870
28871 2010-04-08 Jakub Jelinek <jakub@redhat.com>
28872
28873 PR bootstrap/43681
28874 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
28875 set but not used variable warning.
28876
28877 2010-04-08 Wei Guozhi <carrot@google.com>
28878
28879 PR target/41653
28880 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
28881 (arm_size_rtx_costs): Call the new function when optimized for size.
28882
28883 2010-04-08 Jakub Jelinek <jakub@redhat.com>
28884
28885 PR debug/43670
28886 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
28887 op0 is not a MEM, just return NULL instead of assertion
28888 failure.
28889 (discover_nonconstant_array_refs): Don't walk debug stmts.
28890
28891 2010-04-08 Doug Kwan <dougkwan@google.com>
28892
28893 * configure.ac: Recognize gold and do not use its version number
28894 to test ld features.
28895 * configure: Regenerate.
28896
28897 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
28898
28899 PR middle-end/40815
28900 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
28901 (negate_value): Move code to push elements to broken_up_substracts ...
28902 (eliminate_plus_minus_pair): ... here. Push operands that have no
28903 negative pair to plus_negates.
28904 (repropagate_negates, init_reassoc, fini_reassoc): Update.
28905
28906 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28907
28908 * doc/install.texi (Configuration): Move description of
28909 --enable-lto, --with-libelf*, --enable-gold from Java section to
28910 general section.
28911
28912 * doc/generic.texi (Working with declarations)
28913 (Function Properties, C and C++ Trees): Fix typos.
28914 * doc/sourcebuild.texi (Top Level): Likewise.
28915
28916 2010-04-07 Jakub Jelinek <jakub@redhat.com>
28917
28918 PR c/18624
28919 * tree.h (DECL_READ_P): Define.
28920 (struct tree_decl_common): Add decl_read_flag.
28921 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
28922 a set but not used warning.
28923 (merge_decls): Merge DECL_READ_P flag.
28924 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
28925 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
28926 * c-common.c (handle_used_attribute, handle_unused_attribute):
28927 Likewise.
28928 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
28929 New prototypes.
28930 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
28931 New functions.
28932 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
28933 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
28934 c_parser_binary_expression, c_parser_cast_expression,
28935 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
28936 Call default_function_array_read_conversion instead of
28937 default_function_array_conversion where needed.
28938 (c_parser_unary_expression, c_parser_conditional_expression,
28939 c_parser_postfix_expression_after_primary, c_parser_initelt):
28940 Likewise. Call mark_exp_read where needed.
28941 (c_parser_statement_after_labels, c_parser_asm_operands,
28942 c_parser_typeof_specifier, c_parser_sizeof_expression,
28943 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
28944 where needed.
28945 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
28946 New.
28947 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
28948 (warn_unused_but_set_parameter): Default to warn_unused
28949 && extra_warnings.
28950 * doc/invoke.texi: Document -Wunused-but-set-variable and
28951 -Wunused-but-set-parameter.
28952
28953 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
28954 used count variable.
28955 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
28956 when operandN variables aren't used in the body of the expander
28957 or splitter.
28958 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
28959 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
28960 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
28961 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
28962 FOR_EACH_IMM_USE_ON_STMT): Likewise.
28963 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
28964 * tree.c (PROCESS_ARG): Likewise.
28965
28966 2010-04-07 Simon Baldwin <simonb@google.com>
28967
28968 * diagnostic.h (diagnostic_override_option_index): New macro to
28969 set a diagnostic's option_index.
28970 * c-tree.h (c_cpp_error): Add warning reason argument.
28971 * opts.c (_warning_as_error_callback): New.
28972 (register_warning_as_error_callback): Store callback for
28973 warnings enabled via enable_warning_as_error.
28974 (enable_warning_as_error): Call callback, minor code tidy.
28975 * opts.h (register_warning_as_error_callback): Declare.
28976 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
28977 response to -Werror=.
28978 (c_common_init_options): Register warning_as_error_callback in opts.c.
28979 * common.opt: Add -Wno-cpp option.
28980 * c-common.c (struct reason_option_codes_t): Map cpp warning
28981 reason codes to gcc option indexes.
28982 * (c_option_controlling_cpp_error): New function, lookup the gcc
28983 option index for a cpp warning reason code.
28984 * (c_cpp_error): Add warning reason argument, call
28985 c_option_controlling_cpp_error for diagnostic_override_option_index.
28986 * doc/invoke.texi: Document -Wno-cpp.
28987
28988 2010-04-07 Richard Guenther <rguenther@suse.de>
28989
28990 * ipa-reference.c (mark_load): Use get_base_address.
28991 (mark_store): Likewise.
28992
28993 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
28994 inserting GIMPLE_NOPs into the IL.
28995 * tree-ssa-structalias.c (get_constraint_for_component_ref):
28996 Explicitly strip handled components and indirect references.
28997
28998 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
28999 folding address expressions.
29000 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
29001 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
29002 operand_equal_p to compare decls.
29003 (ptr_deref_may_alias_decl_p): Likewise.
29004 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
29005 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
29006 Handle reversed comparison ops.
29007 * tree-sra.c (asm_visit_addr): Use get_base_address.
29008 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
29009 * ipa-reference.c (mark_address): Use get_base_address.
29010
29011 2010-04-07 Richard Guenther <rguenther@suse.de>
29012
29013 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
29014 Propagate constants everywhere.
29015
29016 2010-04-07 Jakub Jelinek <jakub@redhat.com>
29017
29018 PR debug/43516
29019 * tree.c (MAX_INT_CACHED_PREC): Define.
29020 (nonstandard_integer_type_cache): New array.
29021 (build_nonstandard_integer_type): Cache results for precision
29022 <= MAX_INT_CACHED_PREC.
29023
29024 2010-04-07 Richard Guenther <rguenther@suse.de>
29025
29026 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
29027 -fargument-noalias-global, -fargument-noalias-anything): Remove.
29028 * common.opt: Likewise.
29029 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
29030 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
29031 (nonoverlapping_memrefs_p): Likewise.
29032 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
29033 * opts.c (common_handle_option): Handle OPT_fargument_alias,
29034 OPT_fargument_noalias, OPT_fargument_noalias_anything and
29035 OPT_fargument_noalias_global for backward compatibility.
29036
29037 2010-04-07 Richard Guenther <rguenther@suse.de>
29038
29039 PR tree-optimization/43270
29040 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
29041 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
29042 * tree-ssa-pre.c (phi_translate_1): Adjust.
29043 (fully_constant_expression): Split out vn_reference handling to ...
29044 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
29045 Fold reads from constant strings.
29046 (vn_reference_lookup): Handle fully constant references.
29047 (vn_reference_lookup_pieces): Likewise.
29048 * Makefile.in (expmed.o-warn): Add -Wno-error.
29049
29050 2010-04-07 Martin Jambor <mjambor@suse.cz>
29051
29052 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
29053
29054 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
29055
29056 PR driver/41594
29057 * gcc.c: Add -static-libstdc++ to list of recognized options.
29058
29059 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29060
29061 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
29062
29063 2010-04-07 Richard Guenther <rguenther@suse.de>
29064
29065 PR middle-end/42617
29066 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
29067 bases build simple mem attributes to retain points-to information.
29068
29069 2010-04-07 Richard Guenther <rguenther@suse.de>
29070
29071 PR middle-end/42617
29072 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
29073 preserve points-to related information.
29074
29075 2010-04-07 Richard Guenther <rguenther@suse.de>
29076
29077 PR middle-end/42617
29078 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
29079 discard plain indirect references.
29080 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
29081 * tree.c (tree_nop_conversion): Likewise.
29082
29083 2010-04-07 Dodji Seketeli <dodji@redhat.com>
29084
29085 PR debug/43628
29086 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
29087
29088 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
29089
29090 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
29091 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
29092
29093 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
29094
29095 * tree-if-conv.c: Fix indentation and comments.
29096
29097 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
29098
29099 * tree-if-conv.c: Sort static functions in topological order.
29100
29101 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
29102
29103 * tree-if-conv.c: Fix indentation and comments.
29104
29105 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
29106
29107 PR middle-end/43519
29108 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
29109 lang_hooks.types.type_for_size instead of
29110 build_nonstandard_integer_type.
29111 When converting an unsigned type to signed, double its precision.
29112 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
29113 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
29114 (graphite_create_new_loop_guard): When ub + 1 wraps around,
29115 use lb <= ub.
29116
29117 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
29118
29119 PR middle-end/43519
29120 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
29121 POINTER_PLUS_EXPR for pointer types.
29122
29123 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
29124
29125 PR middle-end/43519
29126 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
29127 * graphite-clast-to-gimple.c: Include langhooks.h.
29128 (max_signed_precision_type): New.
29129 (max_precision_type): Takes two types as arguments.
29130 (precision_for_value): New.
29131 (precision_for_interval): New.
29132 (gcc_type_for_interval): New.
29133 (gcc_type_for_value): New.
29134 (gcc_type_for_clast_term): New.
29135 (gcc_type_for_clast_red): New.
29136 (gcc_type_for_clast_bin): New.
29137 (gcc_type_for_clast_expr): Split up into several functions.
29138 (gcc_type_for_clast_eq): Rewritten.
29139 (compute_bounds_for_level): New.
29140 (compute_type_for_level_1): New.
29141 (compute_type_for_level): New.
29142 (gcc_type_for_cloog_iv): Removed.
29143 (gcc_type_for_iv_of_clast_loop): Rewritten.
29144 (graphite_create_new_loop): Compute the lower and upper bound types
29145 with gcc_type_for_clast_expr.
29146 (graphite_create_new_loop_guard): Same.
29147 (find_cloog_iv_in_expr): Removed.
29148 (compute_cloog_iv_types_1): Removed.
29149 (compute_cloog_iv_types): Removed.
29150 (gloog): Do not call compute_cloog_iv_types.
29151 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
29152 GBB_CLOOG_IV_TYPES.
29153 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
29154 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
29155 (GBB_CLOOG_IV_TYPES): Removed.
29156
29157 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
29158
29159 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
29160 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
29161 (detect_commutative_reduction): Same.
29162
29163 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
29164
29165 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
29166 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
29167 argument.
29168 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
29169 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
29170 (rewrite_commutative_reductions_out_of_ssa): Same.
29171 * passes.c (execute_function_todo): Call verify_ssa for every pass
29172 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
29173 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
29174 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
29175 with an extra argument.
29176 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
29177 verify_ssa only when the extra argument is true.
29178 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
29179 with an extra argument.
29180 (tree_transform_and_unroll_loop): Same.
29181
29182 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
29183
29184 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
29185 for all the passes of the LNO having LOOP_CLOSED_SSA.
29186 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
29187 * tree-loop-distribution.c (pass_loop_distribution): Same.
29188 * tree-pass.h (TODO_verify_loops): Removed.
29189 * tree-ssa-loop.c (pass_tree_loop_init): Same.
29190 (pass_lim): Same.
29191 (pass_tree_unswitch): Same.
29192 (pass_predcom): Same.
29193 (pass_vectorize): Same.
29194 (pass_linear_transform): Same.
29195 (pass_graphite_transforms): Same.
29196 (pass_iv_canon): Same.
29197 (pass_complete_unroll): Same.
29198 (pass_complete_unrolli): Same.
29199 (pass_parallelize_loops): Same.
29200 (pass_loop_prefetch): Same.
29201 (pass_iv_optimize): Same.
29202
29203 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
29204
29205 PR middle-end/32824
29206 * passes.c (init_optimization_passes): Move pass_lim before
29207 pass_copy_prop and pass_dce_loop.
29208
29209 2010-04-06 Jakub Jelinek <jakub@redhat.com>
29210
29211 PR target/43667
29212 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
29213 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
29214 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
29215 MULTI_* defines for 4 argument vpermil2p* builtins.
29216
29217 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
29218
29219 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
29220 * config/i386/i386.c (x86_maybe_negate_const_int): New.
29221 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
29222 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
29223 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
29224 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
29225 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
29226 Use x86_maybe_negate_const_int to output insn mnemonic.
29227 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
29228 check from instruction predicate. Update comments.
29229 * config/i386/sync.md (sync_add<mode>): Use
29230 x86_maybe_negate_const_int to output insn mnemonic.
29231
29232 2010-04-06 Jan Hubicka <jh@suse.cz>
29233
29234 PR tree-optimization/42906
29235 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
29236 IGNORE_SELF argument. Set visited_control_parents for fully
29237 processed BBs.
29238 (find_obviously_necessary_stmts): Update call of
29239 mark_control_dependent_edges_necessary.
29240 (propagate_necessity): Likewise. Handle PHI edges more curefully.
29241
29242 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
29243
29244 * config/i386/i386.md: Remove comment about 'e' and 'E'
29245 operand modifier.
29246
29247 2010-04-06 Richard Guenther <rguenther@suse.de>
29248
29249 PR tree-optimization/43627
29250 * tree-vrp.c (extract_range_from_unary_expr): Widenings
29251 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
29252 not varying.
29253
29254 2010-04-06 Jakub Jelinek <jakub@redhat.com>
29255
29256 * BASE-VER: Change to 4.6.0.
29257
29258 PR target/43638
29259 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
29260 handling.
29261
29262 2010-04-06 Richard Guenther <rguenther@suse.de>
29263
29264 PR middle-end/43661
29265 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
29266
29267 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29268
29269 * doc/invoke.texi (Optimize Options): Document that LTO
29270 won't remove object access purely due to incompatible
29271 declarations.
29272
29273 2010-04-04 Matthias Klose <doko@ubuntu.com>
29274
29275 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
29276 Initialize variable.
29277
29278 2010-04-03 Richard Guenther <rguenther@suse.de>
29279
29280 PR middle-end/42509
29281 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
29282 require a non-NULL MEM_OFFSET.
29283
29284 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
29285
29286 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
29287 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
29288 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
29289 config/alpha/predicates.md, config/arm/arm.md,
29290 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
29291 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
29292 config/darwin9.h, config/darwin.c, config/darwin.h,
29293 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
29294 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
29295 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
29296 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
29297 config/mips/mips.md, config/mn10300/mn10300.c,
29298 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
29299 config/rs6000/aix.h, config/rs6000/dfp.md,
29300 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
29301 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
29302 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
29303 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
29304 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
29305 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
29306 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
29307 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
29308 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
29309 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
29310 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
29311 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
29312 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
29313 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
29314 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
29315 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
29316 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
29317 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
29318 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
29319 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
29320 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
29321 opt-functions.awk, opth-gen.awk, params.def, passes.c,
29322 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
29323 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
29324 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
29325 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
29326 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
29327 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
29328 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
29329 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
29330 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
29331 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
29332 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
29333 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
29334 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
29335 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
29336
29337 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29338
29339 PR other/43620
29340 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
29341 * aclocal.m4: Regenerate.
29342
29343 2010-04-02 Richard Guenther <rguenther@suse.de>
29344
29345 PR tree-optimization/43629
29346 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
29347 if we have seen a constant value.
29348
29349 2010-04-02 Joseph Myers <joseph@codesourcery.com>
29350
29351 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
29352
29353 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
29354
29355 PR target/43469
29356 * arm.c (legitimize_tls_address): Adjust call to
29357 gen_tls_load_dot_plus_four.
29358 (arm_note_pic_base): New function.
29359 (arm_cannot_copy_insn_p): Use it.
29360 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
29361 constraint.
29362
29363 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29364
29365 PR bootstrap/43531
29366
29367 Revert:
29368 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29369
29370 * Makefile.in ($(out_object_file)): Depend on
29371 gt-$(basename $(notdir $(out_file))).h.
29372
29373 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
29374
29375 * config.gcc (lm32-*-rtems*): Add t-lm32.
29376
29377 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
29378
29379 * config.gcc: Add lm32-*-rtems*.
29380 * config/lm32/rtems.h: New file.
29381
29382 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
29383
29384 PR target/42609
29385 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
29386
29387 2010-04-01 Jakub Jelinek <jakub@redhat.com>
29388
29389 * dwarf2out.c (output_compilation_unit_header): For
29390 -gdwarf-4 use version 4 instead of version 3.
29391 (output_line_info): For version 4 and above emit additional
29392 maximum ops per insn header field.
29393 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
29394
29395 * dwarf2out.c (is_c_family, is_java): Remove.
29396 (lower_bound_default): New function.
29397 (add_bound_info, gen_descr_array_type_die): Use it.
29398
29399 2010-04-01 Dodji Seketeli <dodji@redhat.com>
29400
29401 PR debug/43325
29402 * dwarf2out.c (gen_variable_die): Allow debug info for variable
29403 re-declaration when it happens in a function.
29404
29405 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
29406
29407 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
29408 (cgraph_remove_function_insertion_hook): Same.
29409 (cgraph_call_function_insertion_hooks): Same.
29410
29411 2010-04-01 Richard Guenther <rguenther@suse.de>
29412
29413 PR middle-end/43614
29414 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
29415 and TREE_THIS_VOLATILE.
29416 (copy_ref_info): Likewise.
29417 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
29418 * tree.c (build6_stat): Ignore side-effects of all but arg5
29419 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
29420 TARGET_MEM_REF.
29421
29422 2010-04-01 Richard Guenther <rguenther@suse.de>
29423
29424 PR tree-optimization/43607
29425 * ipa-type-escape.c (check_call): Do not access non-existing
29426 arguments.
29427
29428 2010-04-01 Richard Guenther <rguenther@suse.de>
29429
29430 PR middle-end/43602
29431 Revert
29432 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
29433 Jack Howarth <howarth@bromo.med.uc.edu>
29434
29435 * tree-profile.c (tree_init_ic_make_global_vars): Make static
29436 variables TLS.
29437
29438 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29439
29440 * doc/install.texi (Prerequisites): Document libelf usability on
29441 IRIX 5/6 and Solaris 2.
29442 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
29443 Update GNU as, GNU ld requirements.
29444 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
29445 Document Sun Studio compiler download.
29446 Update and simplify as, ld recommendations.
29447 (Specific, *-*-solaris2.7): Note obsoletion, removal.
29448
29449 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29450
29451 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
29452 with_tune_32 to pentium4.
29453
29454 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
29455
29456 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
29457
29458 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29459
29460 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
29461 obsoletion, removal.
29462 Update IDO URL.
29463 Document GNU as requirement.
29464 Update configure requirements.
29465 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
29466 Recomment IRIX 6.5.18+.
29467 Document IDF/IDL requirement.
29468 Document GNU as requirement.
29469 Document GNU ld bootstrap failure.
29470 Remove freeware.sgi.com reference.
29471
29472 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29473
29474 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
29475 UNIX V4.0, V5.0 obsoletion, removal.
29476 Remove --with-gc=simple reference.
29477 Update VM requirements during bootstrap.
29478 Remove -oldas bootstrap description.
29479 Update binutils reference.
29480 Remove comparison failure note.
29481
29482 2010-03-31 Richard Guenther <rguenther@suse.de>
29483 Zdenek Dvorak <ook@ucw.cz>
29484 Sebastian Pop <sebastian.pop@amd.com>
29485
29486 PR middle-end/43464
29487 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
29488 with multiple arguments.
29489 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
29490
29491 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
29492
29493 * graphite-dependences.c (print_pddr): Call print_pdr with an
29494 extra argument.
29495 * graphite-poly.c (debug_pdr): Add an extra argument for the
29496 verbosity level.
29497 (print_pdr): Same.
29498 (print_pbb_domain): Same.
29499 (print_pbb): Same.
29500 (print_scop_context): Same.
29501 (print_scop): Same.
29502 (print_cloog): Same.
29503 (debug_pbb_domain): Same.
29504 (debug_pbb): Same.
29505 (print_pdrs): Same.
29506 (debug_pdrs): Same.
29507 (debug_scop_context): Same.
29508 (debug_scop): Same.
29509 (debug_cloog): Same.
29510 (print_scop_params): Same.
29511 (debug_scop_params): Same.
29512 (print_iteration_domain): Same.
29513 (print_iteration_domains): Same.
29514 (debug_iteration_domain): Same.
29515 (debug_iteration_domains): Same.
29516 (print_scattering_function): Same.
29517 (print_scattering_functions): Same.
29518 (debug_scattering_function): Same.
29519 (debug_scattering_functions): Same.
29520 * graphite-poly.h (debug_pdr): Update declaration.
29521 (print_pdr): Same.
29522 (print_pbb_domain): Same.
29523 (print_pbb): Same.
29524 (print_scop_context): Same.
29525 (print_scop): Same.
29526 (print_cloog): Same.
29527 (debug_pbb_domain): Same.
29528 (debug_pbb): Same.
29529 (print_pdrs): Same.
29530 (debug_pdrs): Same.
29531 (debug_scop_context): Same.
29532 (debug_scop): Same.
29533 (debug_cloog): Same.
29534 (print_scop_params): Same.
29535 (debug_scop_params): Same.
29536 (print_iteration_domain): Same.
29537 (print_iteration_domains): Same.
29538 (debug_iteration_domain): Same.
29539 (debug_iteration_domains): Same.
29540 (print_scattering_function): Same.
29541 (print_scattering_functions): Same.
29542 (debug_scattering_function): Same.
29543 (debug_scattering_functions): Same.
29544
29545 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
29546
29547 * graphite-poly.c (print_scattering_function_1): New.
29548 (print_scattering_function): Call it.
29549 (print_scop_params): Remove spaces at the end of lines.
29550 (print_cloog): New.
29551 (debug_cloog): New.
29552 * graphite-poly.h (print_cloog): Declared.
29553 (debug_cloog): Declared.
29554
29555 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
29556
29557 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
29558 in loop->header.
29559 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
29560 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
29561 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
29562 to switch between adding the IV bump in loop->latch or in loop->header.
29563
29564 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
29565
29566 * graphite-poly.c (print_scattering_function): Pretty print following
29567 the scoplib format.
29568 (print_pdr): Same.
29569 (print_pbb_domain): Same.
29570 (dump_gbb_cases): Same.
29571 (dump_gbb_conditions): Same.
29572 (print_pdrs): Same.
29573 (print_pbb): Same.
29574 (print_scop_params): Same.
29575 (print_scop_context): Same.
29576 (print_scop): Same.
29577 (print_pbb_body): New.
29578 (lst_indent_to): New.
29579 (print_lst): Start new lines with a #.
29580 * graphite-poly.h (pbb_bb): New.
29581 (pbb_index): Use pbb_bb.
29582 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
29583 disjuncts.
29584 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
29585
29586 2010-03-31 Jakub Jelinek <jakub@redhat.com>
29587
29588 * dwarf2out.c (size_of_die): For -gdwarf-4 use
29589 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
29590 and 0 instead of 1 for dw_val_class_flag.
29591 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
29592 dw_val_class_range_list, dw_val_class_loc_list,
29593 dw_val_class_lineptr and dw_val_class_macptr, use
29594 DW_FORM_flag_present for dw_val_class_flag and
29595 DW_FORM_exprloc for dw_val_class_loc.
29596 (output_die): For -gdwarf-4 print dw_val_class_loc
29597 size as uleb128 instead of 1 or 2 bytes and don't print
29598 anything for dw_val_class_flag.
29599
29600 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
29601 instead of cselib_lookup following by tweaking locs->setting_insn.
29602
29603 PR bootstrap/43596
29604 * cselib.c (cselib_process_insn): Clear cselib_current_insn
29605 even before returning from label, setjmp call or volatile asm
29606 handling.
29607
29608 2010-03-31 Richard Guenther <rguenther@suse.de>
29609
29610 PR middle-end/43600
29611 * cgraphunit.c (cgraph_output_in_order): Do not allocate
29612 temporary data on stack.
29613
29614 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29615
29616 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
29617 (PUSHSECTION_ASM_OP): Remove.
29618 (POPSECTION_ASM_OP): Remove.
29619 (PUSHSECTION_FORMAT): Remove.
29620 * config/sol2.h (PUSHSECTION_FORMAT): Define.
29621 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
29622 * config/sol2.c (solaris_output_init_fini): Use it.
29623
29624 2010-03-31 Jie Zhang <jie@codesourcery.com>
29625
29626 PR 43574
29627 * opt-functions.awk (var_type_struct): Use signed char type
29628 for simple variables.
29629
29630 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29631
29632 * config/sol2.c: Include output.h.
29633 (solaris_assemble_visibility): New function.
29634 * config/t-sol2 (sol2.o): Add output.h dependency.
29635 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
29636 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
29637 Redefine.
29638
29639 2010-03-31 Jakub Jelinek <jakub@redhat.com>
29640
29641 PR target/43580
29642 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
29643 V2SImode or XFmode on PRE_DEC.
29644
29645 PR debug/43557
29646 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
29647 BLKmode.
29648
29649 2010-03-31 Jie Zhang <jie@codesourcery.com>
29650
29651 PR 43562
29652 * reload.h (caller_save_initialized_p): Declare.
29653 * toplev.c (backend_init_target): Don't call
29654 init_caller_save but set caller_save_initialized_p to false.
29655 * caller-save.c (caller_save_initialized_p): Define.
29656 (init_caller_save): Check caller_save_initialized_p.
29657 * ira.c (ira): Call init_caller_save if flag_caller_saves.
29658
29659 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29660
29661 PR target/39048
29662 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
29663 and soft-fp/t-softfp to tmake_file.
29664 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
29665 (LIBGCC2_TF_CEXT): Define.
29666 (TF_SIZE): Define.
29667
29668 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
29669
29670 PR debug/42977
29671 * cselib.c (n_useless_values): Document handling of debug locs.
29672 (n_useless_debug_values, n_debug_values): New variables.
29673 (new_elt_loc_list): Don't add to debug values, keep count.
29674 (promote_debug_loc): New.
29675 (cselib_reset_table): Zero new variables.
29676 (entry_and_rtx_equal_p): Promote debug locs.
29677 (discard_useless_locs): Increment n_useless_debug_values for
29678 debug values.
29679 (remove_useless_values): Adjust n_useless_values and n_debug_values
29680 with n_useless_debug_values.
29681 (add_mem_for_addr): Promote debug locs.
29682 (cselib_lookup_mem): Likewise.
29683 (cselib_lookup_addr): Renamed to...
29684 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
29685 (cselib_log_lookup): ... this. Turn into...
29686 (cselib_lookup_addr): ... new wrapper.
29687 (cselib_lookup_from_insn): New.
29688 (cselib_invalidate_regno): Increment n_useless_debug_values for
29689 debug values.
29690 (cselib_invalidate_mem): Likewise.
29691 (cselib_process_insn): Take n_deleted and n_debug_values into
29692 account to guard remove_useless_value call.
29693 (cselib_finish): Zero n_useless_debug_values.
29694 * cselib.h (cselib_lookup_from_insn): Declare.
29695 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
29696 (sched_analyze_2): Likewise.
29697
29698 2010-03-30 Jakub Jelinek <jakub@redhat.com>
29699
29700 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
29701 functions.
29702 (adjust_mems): Replace narrowing SUBREG of expression containing
29703 just PLUS, MINUS, MULT and ASHIFT of registers and constants
29704 with operations in the narrower mode.
29705
29706 PR debug/43593
29707 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
29708 regs_invalidated_by_call instead all call_used_reg_set registers.
29709
29710 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
29711
29712 PR middle-end/43430
29713 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
29714 pointer comparisons with types_compatible_p.
29715 * tree-vect-stmts.c (vectorizable_call): Same.
29716 (vectorizable_condition): Same.
29717
29718 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29719
29720 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
29721 stack check if the mask would be zero.
29722
29723 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
29724 Jack Howarth <howarth@bromo.med.uc.edu>
29725
29726 * tree-profile.c (tree_init_ic_make_global_vars): Make static
29727 variables TLS.
29728
29729 2010-03-30 Joseph Myers <joseph@codesourcery.com>
29730
29731 PR other/25232
29732 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
29733 and __unordtf2.
29734 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
29735 Include ___unordxf2 and ___unordtf2.
29736 * config/i386/libgcc-glibc.ver: Do not define inheritance from
29737 GCC_4.4.0 here.
29738
29739 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
29740
29741 * config/lm32/t-lm32: New file.
29742 * config.gcc: Use the above file when targetting lm32.
29743
29744 2010-03-28 Duncan Sands <baldrick@free.fr>
29745
29746 * Makefile.in (PLUGIN_HEADERS): Add except.h.
29747
29748 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
29749
29750 PR middle-end/43431
29751 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
29752 Improve vectorization cost model diagnostic.
29753
29754 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
29755
29756 PR middle-end/43436
29757 * tree-vect-data-refs.c (vect_analyze_data_refs): When
29758 compute_data_dependences_for_loop returns false, early exit
29759 and output an extra diagnostic for the failed data reference
29760 analysis.
29761
29762 2010-03-29 Richard Guenther <rguenther@suse.de>
29763
29764 PR tree-optimization/43560
29765 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
29766 (can_sm_ref_p): Treat stores to readonly locations as trapping.
29767
29768 2010-03-29 Jie Zhang <jie@codesourcery.com>
29769
29770 PR 43564
29771 * toplev.c (process_options): Set optimization_default_node
29772 and optimization_current_node.
29773 * opts.c (decode_options): Don't set optimization_default_node
29774 and optimization_current_node.
29775
29776 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
29777
29778 * config/rtems.h: Abandon -qrtems_debug.
29779
29780 2010-03-28 Jan Hubicka <jh@suse.cz>
29781
29782 PR tree-optimization/43505
29783 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
29784 map should not be copied.
29785
29786 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29787
29788 PR middle-end/41674
29789 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
29790 cdtors, set DECL_PRESERVE_P.
29791 * ipa.c (cgraph_externally_visible_p): Return true if declaration
29792 should be preseved.
29793
29794 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
29795
29796 PR tree-optimization/43528
29797 * stor-layout.c (place_field): Check that constant fits into
29798 unsigned HWI when skipping calculation of MS bitfield layout.
29799
29800 2010-03-27 Jan Hubicka <jh@suse.cz>
29801
29802 PR middle-end/43391
29803 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
29804 notice_global_symbol work.
29805
29806 2010-03-27 Jakub Jelinek <jakub@redhat.com>
29807
29808 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
29809 instead of dwarf2out_decl.
29810 (struct var_loc_node): Remove section_label field.
29811 (dwarf2out_function_decl): New function.
29812 (dwarf2out_var_location): Don't set section_label field.
29813 (dwarf2out_begin_function): Don't empty decl_loc_table here.
29814
29815 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
29816
29817 PR tree-optimization/43544
29818 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
29819 First argument for builtin vectorized function hook is now a
29820 tree to be able to distinguish between machine specific and
29821 standard builtins.
29822 * targhooks.c (default_builtin_vectorized_function): Ditto.
29823 * targhooks.h (default_builtin_vectorized_function): Ditto.
29824 * target.h (struct gcc_target): Ditto.
29825 * tree-vect-stmts.c (vectorizable_function): Ditto.
29826 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
29827 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
29828 Ditto.
29829
29830 2010-03-26 Joseph Myers <joseph@codesourcery.com>
29831
29832 PR c/43381
29833 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
29834 nested binding iff it is a FUNCTION_DECL.
29835 (store_parm_decls_newstyle): Pass nested=true to bind for
29836 FUNCTION_DECLs amongst parameters.
29837
29838 2010-03-26 Jakub Jelinek <jakub@redhat.com>
29839
29840 * var-tracking.c (vt_expand_loc_callback): Don't run
29841 cselib_expand_value_rtx_cb in dummy mode if
29842 cselib_dummy_expand_value_rtx_cb returned false.
29843
29844 * var-tracking.c (emit_note_insn_var_location): For one part
29845 notes with offset 0, don't add EXPR_LIST around the location.
29846 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
29847 add_location_or_const_value_attribute): Adjust for that change.
29848
29849 PR debug/43540
29850 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
29851 into first operand and location into second.
29852 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
29853 dw_cfi_oprnd_loc for DW_CFA_expression.
29854 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
29855 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
29856 assume first argument is regnum and second argument is location.
29857
29858 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
29859
29860 PR target/42113
29861 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
29862 of scratch register to DImode. Split to DImode comparison operator.
29863 Use SImode subreg of scratch register in the multiplication.
29864 (*cmp_sadd_sidi): Ditto.
29865 (*cmp_ssub_si): Ditto.
29866 (*cmp_ssub_sidi): Ditto.
29867
29868 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
29869
29870 PR target/43524
29871 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
29872 Remove invalid assert and wrong comment.
29873
29874 2010-03-26 Jakub Jelinek <jakub@redhat.com>
29875
29876 PR debug/43516
29877 * flags.h (final_insns_dump_p): New extern.
29878 * final.c (final_insns_dump_p): New variable.
29879 (rest_of_clean_state): Set it before -fdump-final-insns=
29880 dumping, clear afterwards.
29881 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
29882 MEM_ALIAS_SET on MEMs.
29883
29884 2010-03-26 David S. Miller <davem@davemloft.net>
29885
29886 * configure.ac: Fix sparc GOTDATA_OP bug check.
29887 * configure: Rebuild.
29888
29889 2010-03-26 Alan Modra <amodra@gmail.com>
29890
29891 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
29892
29893 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29894
29895 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
29896 TLS_SECTION_ASM_FLAG.
29897
29898 2010-03-25 Jakub Jelinek <jakub@redhat.com>
29899
29900 PR bootstrap/43511
29901 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
29902 Clear first_function_block_is_cold.
29903
29904 PR c/43385
29905 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
29906 argument if the argument is truth_value_p.
29907
29908 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
29909
29910 * config/rs6000/constraints.md: Update copyright year for my changes.
29911
29912 PR target/43484
29913 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
29914 used in reg+reg addressing, swap registers.
29915
29916 2010-03-24 Jakub Jelinek <jakub@redhat.com>
29917
29918 PR debug/43293
29919 * target.h (struct gcc_target): Add code_end hook.
29920 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
29921 if not yet defined.
29922 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
29923 * toplev.c (compile_file): Call targetm.asm_out.code_end
29924 hook before unwind info/debug info output.
29925 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
29926 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
29927 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
29928 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
29929 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
29930 * config/i386/i386.c (ix86_file_end): Renamed to...
29931 (ix86_code_end): ... this. Make static. Don't call
29932 file_end_indicate_exec_stack. Emit unwind info using
29933 final_start_function/final_end_function.
29934 (darwin_x86_file_end): Remove.
29935 (TARGET_ASM_CODE_END): Define.
29936 * config/i386/i386.h (TARGET_ASM_FILE_END,
29937 NEED_INDICATE_EXEC_STACK): Don't define.
29938 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
29939 (TARGET_ASM_FILE_END): Define to darwin_file_end.
29940 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
29941 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
29942
29943 PR target/43498
29944 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
29945 at the beginning and final_end_function at the end.
29946 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
29947
29948 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29949
29950 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
29951 and Sun as TLS syntax.
29952 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
29953 * configure: Regenerate.
29954 * config.in: Regenerate.
29955 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
29956 (default_elf_asm_named_section): Use it.
29957 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
29958 (i386_output_dwarf_dtprel): Likewise.
29959 (output_addr_const_extra): Likewise.
29960 (output_pic_addr_const): Lowercase @GOTTPOFF.
29961 (output_addr_const_extra): Likewise.
29962 (output_pic_addr_const): Lowercase @GOTNTPOFF.
29963 (output_addr_const_extra): Likewise.
29964 (output_pic_addr_const): Lowercase @INDNTPOFF.
29965 (output_addr_const_extra): Likewise.
29966 (output_pic_addr_const): Lowercase @NTPOFF.
29967 (output_addr_const_extra): Likewise.
29968 (output_pic_addr_const): Lowercase @TPOFF.
29969 (output_addr_const_extra): Likewise.
29970 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
29971 (*tls_global_dynamic_64): Likewise.
29972 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
29973 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
29974
29975 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
29976 (ASM_OUTPUT_TLS_COMMON): Use it.
29977 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
29978
29979 PR target/38118
29980 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
29981 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
29982 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
29983 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
29984 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
29985 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
29986
29987 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29988
29989 * config/i386/i386.c (override_options): Don't accept
29990 -mtls-dialect=sun any longer.
29991 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
29992 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
29993 (*tls_local_dynamic_base_32_sun): Likewise.
29994 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
29995
29996 2010-03-24 Jakub Jelinek <jakub@redhat.com>
29997
29998 PR debug/43508
29999 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
30000 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
30001
30002 PR debug/43479
30003 * ira.c (adjust_cleared_regs): New function.
30004 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
30005
30006 PR debug/19192
30007 PR debug/43479
30008 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
30009 from gimple_block.
30010 * expr.c (expand_expr_real): Restore previous
30011 curr_insn_source_location and curr_insn_block after
30012 expand_expr_real_1 call.
30013 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
30014 instead of expand_expr_real_1.
30015
30016 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
30017
30018 PR rtl-optimization/43413
30019 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
30020 hard regs too.
30021
30022 2010-03-22 James E. Wilson <wilson@codesourcery.com>
30023
30024 PR target/43348
30025 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
30026 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
30027
30028 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
30029
30030 * config/i386/i386.c (ix86_target_string): Add -mfma.
30031 Fix a typo in comment.
30032
30033 2010-03-22 Mike Stump <mikestump@comcast.net>
30034
30035 PR target/23071
30036 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
30037 Don't overly align based upon packed packed fields.
30038
30039 2010-03-22 Jason Merrill <jason@redhat.com>
30040
30041 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
30042 Use () rather than [], and move before the element type.
30043
30044 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30045
30046 * doc/configfiles.texi (Configuration Files): Removed
30047 fixinc/Makefile*, intl/Makefile.*.
30048 * doc/makefile.texi: Fixed markup. Abstract from version
30049 control system used.
30050 (Makefile): Removed obsolete java/parse.y example.
30051 * doc/sourcebuild.texi: Likewise.
30052 (Top Level): Added config, gnattools, libdecnumber, libgcc,
30053 libgomp, libssp. Removed fastjar.
30054 (Miscellaneous Docs): Clarify location.
30055 Added COPYING3, COPYING3.LIB.
30056 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
30057
30058 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30059
30060 PR target/38085
30061 * config/i386/i386.c (x86_function_profiler)
30062 [!NO_PROFILE_COUNTERS]: Fix typo.
30063 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
30064 instead of callq.
30065
30066 2010-03-22 Janis Johnson <janis187@us.ibm.com>
30067 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30068
30069 * doc/sourcebuild.texi (Test Directives): Split into six
30070 subsections, with most of the current text in new subsections
30071 Directives, Selectors, and Final Actions.
30072 (Directives): Split list of test directives into multiple
30073 subsubsections.
30074 (Selectors): Describe use and syntax of selectors.
30075 (Effective-Target Keywords): Describe all existing keywords.
30076 (Add Options): Describe features for dg-add-options.
30077 (Require Support): Describe variants of dg-require-support.
30078 (Final Actions): Describe commands to use in dg-final.
30079
30080 2010-03-22 Michael Matz <matz@suse.de>
30081
30082 PR middle-end/43475
30083 * recog.c (validate_replace_rtx_group): Replace also in
30084 REG_EQUAL and REG_EQUIV notes.
30085
30086 2010-03-22 Richard Guenther <rguenther@suse.de>
30087
30088 PR tree-optimization/43390
30089 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
30090 sure vector extracts are type correct.
30091
30092 2010-03-22 Richard Guenther <rguenther@suse.de>
30093
30094 PR middle-end/40106
30095 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
30096 x * sqrt (x) even when optimizing for size if the target
30097 has native support for sqrt.
30098
30099 2010-03-22 Jakub Jelinek <jakub@redhat.com>
30100
30101 * varasm.c (make_decl_rtl_for_debug): Also clear
30102 flag_mudflap for the duration of make_decl_rtl call.
30103
30104 PR debug/43443
30105 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
30106 locs from preserved VALUEs.
30107
30108 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
30109
30110 PR middle-end/42718
30111 * pa.md (movmemsi): Set align to one if zero.
30112 (movmemdi): Likewise.
30113
30114 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
30115
30116 PR target/42321
30117 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
30118 with their corresponding prologue pushes.
30119
30120 2010-03-20 Andrew Pinski <pinskia@gmail.com>
30121
30122 PR target/43156
30123 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
30124 at the begining or end.
30125 (spu_expand_epilogue): Likewise.
30126
30127 2010-03-20 Richard Guenther <rguenther@suse.de>
30128
30129 PR rtl-optimization/43438
30130 * combine.c (make_extraction): Properly zero-/sign-extend an
30131 extraction of the low part of a CONST_INT. Also handle
30132 CONST_DOUBLE.
30133
30134 2010-03-19 Mike Stump <mikestump@comcast.net>
30135
30136 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
30137 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
30138 (override_options): Use SUBTARGET32_DEFAULT_CPU.
30139
30140 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
30141
30142 PR c/43211
30143 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
30144 an error.
30145
30146 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
30147
30148 PR rtl-optimization/42258
30149 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
30150 use that may match DEF.
30151
30152 PR target/40697
30153 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
30154 the cost of loading the constant rather than assuming
30155 COSTS_N_INSNS (1).
30156 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
30157 outer code is AND, do the same tests as the andsi3 expander and
30158 return COSTS_N_INSNS (1) if and is cheap.
30159
30160 * optabs.c (avoid_expensive_constant): Fix formatting.
30161
30162 2010-03-19 Michael Matz <matz@suse.de>
30163
30164 PR c++/43116
30165 * attribs.c (decl_attributes): When rebuilding a function pointer
30166 type use the same qualifiers as the original pointer type.
30167
30168 2010-03-19 Martin Jambor <mjambor@suse.cz>
30169
30170 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
30171 and is_gimple_ip_invariant_address.
30172
30173 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30174
30175 Revert
30176 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30177
30178 * config/arm/arm.c (arm_override_options): Turn off
30179 flag_dwarf2_cfi_asm for AAPCS variants.
30180
30181 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30182
30183 PR target/43399
30184 * config/arm/arm.c (emit_multi_reg_push): Update comments.
30185 Use PRE_MODIFY instead of PRE_DEC.
30186 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
30187 (vfp_emit_fstmd): Likewise.
30188
30189 2010-03-19 Michael Matz <matz@suse.de>
30190
30191 PR target/43305
30192 * builtins.c (expand_builtin_interclass_mathfn,
30193 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
30194 if that fails.
30195
30196 2010-03-19 Richard Guenther <rguenther@suse.de>
30197
30198 PR tree-optimization/43415
30199 * tree-ssa-pre.c (phi_translate): Split out worker to ...
30200 (phi_translate_1): ... this.
30201 (phi_translate): Move all caching here. Cache all NARY
30202 and REFERENCE translations.
30203
30204 2010-03-19 David S. Miller <davem@davemloft.net>
30205
30206 With help from Eric Botcazou.
30207 * config/sparc/sparc.c: Include dwarf2out.h.
30208 (emit_pic_helper): Delete.
30209 (pic_helper_symbol_name): Delete.
30210 (pic_helper_emitted_p): Delete.
30211 (pic_helper_needed): New.
30212 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
30213 (get_pc_thunk_name): New.
30214 (load_pic_register): Remove 'delay_pic_helper' arg. Use
30215 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
30216 Set pic_helper_needed to true. Don't call emit_pic_helper.
30217 (sparc_expand_prologue): Update load_pic_register call.
30218 (sparc_output_mi_thunk): Likewise.
30219 (sparc_file_end): Emit a hidden comdat symbol for the PIC
30220 thunk if possible. Output CFI information as needed.
30221
30222 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
30223 Jack Howarth <howarth@bromo.med.uc.edu>
30224
30225 PR target/36399
30226 * config/i386/i386.h: Fix ABI on darwin x86-32.
30227
30228 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
30229
30230 * tree.h: Declare make_decl_rtl_for_debug.
30231 * varasm.c (make_decl_rtl_for_debug): New.
30232 * dwarf2out.c (rtl_for_decl_location): Call it.
30233 * cfgexpand.c (expand_debug_expr): Call it.
30234
30235 2010-03-18 Jakub Jelinek <jakub@redhat.com>
30236
30237 PR bootstrap/43399
30238 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
30239 mem_mode.
30240
30241 PR bootstrap/43403
30242 * var-tracking.c (vt_init_cfa_base): Do nothing if
30243 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
30244
30245 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
30246
30247 PR debug/42873
30248 * var-tracking.c (canonicalize_vars_star): New.
30249 (dataflow_post_merge_adjust): Use it.
30250
30251 2010-03-18 Jakub Jelinek <jakub@redhat.com>
30252
30253 PR debug/43058
30254 * var-tracking.c (non_suitable_const): New function.
30255 (add_uses): For DEBUG_INSNs with constants, don't record any
30256 value, instead just the constant value itself.
30257 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
30258 is not VAR_LOC_UNKNOWN_P, set var to the constant.
30259 (emit_notes_in_bb): Likewise.
30260 (emit_note_insn_var_location): For onepart variables if
30261 cur_loc is a VOIDmode constant, use DECL_MODE.
30262
30263 2010-03-18 Martin Jambor <mjambor@suse.cz>
30264
30265 PR middle-end/42450
30266 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
30267 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
30268 all non-clones. Moved call redirection...
30269 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
30270 (cgraph_materialize_all_clones): Dispose of all
30271 combined_args_to_skip bitmaps.
30272 (verify_cgraph_node): Do not check for edges pointing to wrong
30273 nodes in inline clones.
30274 * tree-inline.c (copy_bb): Call
30275 cgraph_redirect_edge_call_stmt_to_callee.
30276 * ipa.c (cgraph_remove_unreachable_nodes): Call
30277 cgraph_node_remove_callees even when there are used clones.
30278
30279 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
30280
30281 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
30282
30283 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
30284
30285 PR target/43383
30286 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
30287 for 32bit.
30288
30289 2010-03-18 Michael Matz <matz@suse.de>
30290
30291 PR middle-end/43419
30292 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
30293 into sqrt(x) if we need to preserve signed zeros.
30294
30295 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
30296 Eric Botcazou <ebotcazou@adacore.com>
30297
30298 PR rtl-optimization/43360
30299 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
30300 note if we don't know its invariant status.
30301
30302 2010-03-18 Michael Matz <matz@suse.de>
30303
30304 PR tree-optimization/43402
30305 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
30306 PHI chains of ssa names registered for update.
30307
30308 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
30309
30310 PR target/42427
30311 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
30312 non-offsettable and pre_modify update addressing.
30313 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
30314 and "2" alternatives "#".
30315 (*movdd_softfloat32): Make all alternatives "#";
30316 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
30317 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
30318 (*movdf_softfloat32): Make all alternatives "#";
30319 (movdi): Use the new DIFD mode iterator to create a common splitter
30320 for movdi, movdf and movdd patterns.
30321
30322 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
30323
30324 * common.opt (dumpdir): Remove redundant tab.
30325
30326 2010-03-17 Martin Jambor <mjambor@suse.cz>
30327
30328 PR tree-optimization/43347
30329 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
30330 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
30331
30332 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
30333
30334 PR rtl-optimization/42216
30335 * regrename.c (create_new_chain): New function, broken out from...
30336 (scan_rtx_reg): ... here. Call it. Handle the case where we are
30337 appending a use to an empty chain.
30338 (build_def_use): Remove previous changes that convert OP_INOUT to
30339 OP_OUT operands; instead detect the case where an OP_INOUT operand
30340 uses a previously untracked register and create an empty chain for it.
30341
30342 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30343
30344 * doc/extend.texi (Function Attributes): Rewrite unfinished
30345 sentence in ms_abi documentation.
30346
30347 2010-03-17 Alan Modra <amodra@gmail.com>
30348
30349 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
30350 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
30351 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
30352 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
30353
30354 2010-03-16 Richard Henderson <rth@redhat.com>
30355
30356 PR middle-end/43365
30357 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
30358 (lower_try_finally): Save and restore eh_seq around the expansion
30359 of the try-finally.
30360
30361 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
30362
30363 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
30364 statements before splitting block.
30365
30366 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30367
30368 * doc/sourcebuild.texi (Testsuites): Fix markup.
30369 Use pathnames relative to gcc/testsuite.
30370 (Test Directives): Move description of how timeout is determined.
30371 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
30372 (C Tests): Correct gcc.misc-tests directory.
30373 Framework tests now live in gcc.test-framework.
30374
30375 2010-03-16 Richard Guenther <rguenther@suse.de>
30376
30377 PR middle-end/43379
30378 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
30379 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
30380
30381 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
30382 Alexandre Oliva <aoliva@redhat.com>
30383
30384 PR tree-optimization/42917
30385 * lambda-code.c (remove_iv): Skip debug statements.
30386 (lambda_loopnest_to_gcc_loopnest): Likewise.
30387 (not_interesting_stmt): Debug statements are not interesting.
30388
30389 2010-03-16 Jakub Jelinek <jakub@redhat.com>
30390
30391 PR debug/43051
30392 PR debug/43092
30393 * cselib.c (cselib_preserve_constants,
30394 cfa_base_preserved_val): New static variables.
30395 (preserve_only_constants): New function.
30396 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
30397 clear its REG_VALUES. If cselib_preserve_constants, don't
30398 empty the whole hash table, but preserve there VALUEs with constants,
30399 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
30400 (cselib_preserve_cfa_base_value): New function.
30401 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
30402 (cselib_init): Change argument to int bitfield. Set
30403 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
30404 is in it.
30405 (cselib_finish): Clear cselib_preserve_constants and
30406 cfa_base_preserved_val.
30407 * cselib.h (enum cselib_record_what): New enum.
30408 (cselib_init): Change argument to int.
30409 (cselib_preserve_cfa_base_value): New prototype.
30410 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
30411 * dse.c (dse_step1): Likewise.
30412 * cfgcleanup.c (thread_jump): Likewise.
30413 * sched-deps.c (sched_analyze): Likewise.
30414 * gcse.c (local_cprop_pass): Likewise.
30415 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
30416 If FN is non-NULL, call the callback always and whenever it returns
30417 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
30418 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
30419 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
30420 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
30421 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
30422 * var-tracking.c: Include recog.h.
30423 (bb_stack_adjust_offset): Remove.
30424 (vt_stack_adjustments): Don't call it, instead just gather the
30425 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
30426 (adjust_stack_reference): Remove.
30427 (compute_cfa_pointer): New function.
30428 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
30429 (struct adjust_mem_data): New type.
30430 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
30431 functions.
30432 (get_address_mode): New function.
30433 (replace_expr_with_values): Use it.
30434 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
30435 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
30436 (adjust_sets): Remove.
30437 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
30438 Use get_address_mode.
30439 (get_adjusted_src): Remove.
30440 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
30441 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
30442 (add_with_sets): Don't call adjust_sets.
30443 (fp_setter, vt_init_cfa_base): New functions.
30444 (vt_initialize): Change return type to bool. Move most of pool etc.
30445 initialization to the beginning of the function from end. Pass
30446 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
30447 If !frame_pointer_needed, call vt_stack_adjustment before mos
30448 vector is filled, call vt_init_cfa_base if argp/framep has been
30449 eliminated to sp. If frame_pointer_needed and argp/framep has
30450 been eliminated to hard frame pointer, set
30451 hard_frame_pointer_adjustment and call vt_init_cfa_base after
30452 encountering fp setter in the prologue. For MO_ADJUST, call
30453 log_op_type before pusing the op into mos vector, not afterwards.
30454 Call adjust_insn before cselib_process_insn/add_with_sets,
30455 call cancel_changes (0) afterwards.
30456 (variable_tracking_main_1): Adjust for vt_initialize calling
30457 vt_stack_adjustments and returning whether it succeeded or not.
30458
30459 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
30460
30461 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
30462 debug statements.
30463
30464 2010-03-15 Jakub Jelinek <jakub@redhat.com>
30465
30466 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
30467 has been set.
30468 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
30469 drap_reg has not been set.
30470
30471 2010-03-15 Michael Matz <matz@suse.de>
30472
30473 PR middle-end/43300
30474 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
30475 use it to expand block copies.
30476 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
30477 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
30478 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
30479
30480 2010-03-15 Richard Guenther <rguenther@suse.de>
30481
30482 PR tree-optimization/43367
30483 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
30484 elimination check.
30485
30486 2010-03-15 Richard Guenther <rguenther@suse.de>
30487
30488 PR tree-optimization/43317
30489 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
30490
30491 2010-03-15 Martin Jambor <mjambor@suse.cz>
30492
30493 PR tree-optimization/43141
30494 * tree-sra.c (create_abstract_origin): New function.
30495 (modify_function): Call create_abstract_origin.
30496
30497 2010-03-15 Chris Demetriou <cgd@google.com>
30498
30499 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
30500 wasn't copied.
30501
30502 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30503
30504 PR middle-end/43354
30505 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
30506 call insert_out_of_ssa_copy for default definitions.
30507
30508 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30509
30510 * graphite-clast-to-gimple.c (my_long_long): Defined.
30511 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
30512 * graphite-sese-to-poly.c (my_long_long): Defined.
30513 (scop_ivs_can_be_represented): Use it.
30514
30515 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30516
30517 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
30518 graphite-max-bbs-per-function, and loop-block-tile-size.
30519 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
30520 with "maximum".
30521 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
30522
30523 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30524
30525 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
30526 forward declaration.
30527 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
30528 (add_upper_bounds_from_estimated_nit): New.
30529 (build_loop_iteration_domains): Use it.
30530
30531 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30532
30533 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
30534
30535 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30536
30537 PR middle-end/43306
30538 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
30539 should be an INTEGER_CST. Also handle CASE_CONVERT.
30540
30541 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30542
30543 * graphite.c (graphite_initialize): To bound the number of bbs per
30544 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
30545 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
30546 * doc/invoke.texi: Document it.
30547
30548 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30549
30550 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
30551 * graphite-sese-to-poly.h (build_poly_scop): Same.
30552
30553 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30554
30555 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
30556 the number of parameters in the scop. Use as an upper bound
30557 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
30558 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
30559 * doc/invoke.texi: Document it.
30560
30561 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
30562
30563 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
30564 * doc/c-tree.texi: Remove.
30565 * doc/generic.texi: Merge c-tree.texi here.
30566 * doc/gccint.texi (Trees): Remove menu entry.
30567 (c-tree.texi): Remove @include.
30568 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
30569 * doc/languages.texi (Reading RTL): Ditto.
30570
30571 2010-03-12 Steve Ellcey <sje@cup.hp.com>
30572
30573 PR target/42869
30574 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
30575
30576 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
30577
30578 PR middle-end/42431
30579 * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
30580 code added to work around reload clobbering CONST insns.
30581
30582 2010-03-12 Jakub Jelinek <jakub@redhat.com>
30583
30584 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
30585 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
30586 (cselib_preserve_only_values): Remove retain argument, don't
30587 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
30588 * cselib.h (cselib_preserve_only_values): Remove retain argument.
30589 * var-tracking.c (micro_operation): Move insn field before union.
30590 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
30591 (struct variable_tracking_info_def): Remove n_mos field, change
30592 mos into a vector of micro_operations.
30593 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
30594 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
30595 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
30596 changing into a vector.
30597 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
30598 come before all other uops generated by add_stores.
30599 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
30600 argument removal.
30601 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
30602 a vector. Run just one pass over the bbs instead of separate counting
30603 and computation phase.
30604 (vt_finalize): Free VTI (bb)->mos vector instead of array.
30605
30606 PR debug/43329
30607 * tree-inline.c (remap_decls): Put old_var rather than origin_var
30608 into *nonlocalized_list vector.
30609 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
30610 even if origin is non-NULL.
30611 (gen_variable_die): Likewise.
30612 (process_scope_var): Don't change origin.
30613 (gen_decl_die): Likewise.
30614 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
30615 before adding new edges instead of after it, fix moving over
30616 debug stmts.
30617
30618 2010-03-11 David S. Miller <davem@davemloft.net>
30619
30620 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
30621 of four.
30622 * configure: Rebuild.
30623
30624 2010-03-11 Martin Jambor <mjambor@suse.cz>
30625
30626 PR tree-optimization/43257
30627 * tree.c (assign_assembler_name_if_neeeded): New function.
30628 (free_lang_data_in_cgraph): Assembler name assignment moved to the
30629 above new function.
30630 * tree.h (assign_assembler_name_if_neeeded): Declare.
30631 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
30632 the function if needed.
30633
30634 2010-03-11 Chris Demetriou <cgd@google.com>
30635
30636 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
30637 include/stdint-gcc.h, and include/stdint.h world-readable.
30638
30639 2010-03-11 Richard Guenther <rguenther@suse.de>
30640
30641 PR tree-optimization/43255
30642 * tree-vrp.c (process_assert_insertions_for): Do not insert
30643 asserts for trivial conditions.
30644
30645 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30646
30647 PR tree-optimization/43280
30648 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
30649 generation. Move calculation of size out of the if branch.
30650 (find_bswap): Modify compare number generation.
30651
30652 2010-03-11 Richard Guenther <rguenther@suse.de>
30653
30654 PR lto/43200
30655 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
30656 (input_gimple_stmt): Fixup handled component types during
30657 operand read. Also fix up decls in ADDR_EXPRs.
30658
30659 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
30660
30661 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
30662 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
30663
30664 2010-03-10 Jan Hubicka <jh@suse.cz>
30665
30666 PR c/43288
30667 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
30668 * varasm.c (get_variable_section): Don't do that here...
30669 (make_decl_rtl): ... and here.
30670 (do_assemble_alias): Produce decl RTL.
30671 (assemble_alias): Likewise.
30672
30673 2010-03-10 Jakub Jelinek <jakub@redhat.com>
30674
30675 PR debug/43290
30676 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
30677 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
30678 of fde->vdrap_reg.
30679 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
30680 (based_loc_descr): Only express drap or vdrap regno based expressions
30681 using DW_OP_fbreg when not optimizing.
30682 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
30683 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
30684 REG_CFA_SET_VDRAP note.
30685
30686 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
30687
30688 PR tree-optimization/43236
30689 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
30690 error in calculation of base address in reverse iteration case.
30691 (generate_builtin): Take number of latch executions if the statement
30692 is in the latch.
30693
30694 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
30695
30696 PR middle-end/42859
30697 * tree-eh.c: Include pointer-set.h.
30698 (lower_eh_dispatch): Filter out duplicate case labels and
30699 remove the unneeded edge when the label is unused. Return
30700 true when some edges are removed.
30701 (execute_lower_eh_dispatch): When any lowering resulted in
30702 removing an edge, also delete unreachable blocks.
30703
30704 2010-03-10 Jakub Jelinek <jakub@redhat.com>
30705
30706 PR bootstrap/43287
30707 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
30708 UNSPEC_MACHOPIC_OFFSET.
30709
30710 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
30711
30712 PR target/43294
30713 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
30714 (m68k_delegitimize_address): New function.
30715
30716 2010-03-09 Jakub Jelinek <jakub@redhat.com>
30717
30718 PR debug/43299
30719 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
30720
30721 PR debug/43299
30722 * var-tracking.c (adjust_sets): New function.
30723 (count_with_sets, add_with_sets): Use it.
30724 (get_adjusted_src): New inline function.
30725 (add_stores): Use it.
30726
30727 PR debug/43304
30728 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
30729 call cselib_dummy_expand_value_rtx_cb instead of
30730 cselib_expand_value_rtx_cb.
30731
30732 PR debug/43293
30733 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
30734 * config/i386/i386.c: Include debug.h and dwarf2out.h.
30735 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
30736 and .cfi_endproc around the pic thunks.
30737 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
30738 all queued unwind info register saves are saved before the call.
30739 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
30740 considered as sp-=4 for unwind info and the pop as sp+=4 which
30741 also clobbers dest, but doesn't actually restore it.
30742
30743 PR debug/43290
30744 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
30745 RTX_FRAME_RELATED_P.
30746
30747 2010-03-09 Jie Zhang <jie@codesourcery.com>
30748
30749 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
30750 whitespaces in output template.
30751
30752 2010-03-09 Jie Zhang <jie@codesourcery.com>
30753
30754 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
30755 out array boundary.
30756
30757 2010-03-08 Jakub Jelinek <jakub@redhat.com>
30758
30759 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
30760 builtins.exp in a separate job.
30761
30762 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30763
30764 * graphite-sese-to-poly.c (add_param_constraints): Use
30765 lower_bound_in_type and upper_bound_in_type.
30766
30767 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30768
30769 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
30770 instead of unsigned_type_node.
30771
30772 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30773 Reza Yazdani <reza.yazdani@amd.com>
30774
30775 PR middle-end/43065
30776 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
30777 on pointer type parameters.
30778
30779 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
30780
30781 PR middle-end/42644
30782 PR middle-end/42130
30783 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
30784 handle conversions from pointer to integers.
30785 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
30786 induction variable, to be able to work with code generated by CLooG.
30787 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
30788 (build_poly_scop): Bail out if we cannot codegen a loop.
30789
30790 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
30791
30792 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
30793 code generation with gloog_error.
30794
30795 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30796
30797 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
30798 Call fold_convert on all the returned values.
30799 (expand_scalar_variables_expr): Pass to
30800 expand_scalar_variables_ssa_name the type of the resulting expression.
30801
30802 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30803
30804 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
30805 ppl_min_for_le_pointset.
30806 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
30807 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
30808
30809 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30810
30811 * graphite-dependences.c (map_into_dep_poly): Removed.
30812 (dependence_polyhedron_1): Use combine_context_id_scat.
30813
30814 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30815
30816 * graphite-poly.h (struct poly_scattering): Add layout documentation.
30817 (struct poly_bb): Same.
30818 (combine_context_id_scat): New.
30819
30820 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30821
30822 PR middle-end/42326
30823 * sese.c (name_defined_in_loop_p): Return false for default
30824 definitions.
30825
30826 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30827
30828 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
30829 and clean up the logic.
30830
30831 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30832
30833 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
30834 early return.
30835
30836 2010-03-08 Jakub Jelinek <jakub@redhat.com>
30837
30838 * var-tracking.c (remove_cselib_value_chains): Define only for
30839 ENABLE_CHECKING.
30840 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
30841 delete_slot_part, emit_notes_for_differences_1): Don't call
30842 remove_cselib_value_chains here.
30843 (set_slot_part, emit_notes_for_differences_2): Don't call
30844 add_cselib_value_chains here.
30845 (preserved_values): New vector.
30846 (preserve_value): New function.
30847 (add_uses, add_stores, vt_add_function_parameters): Use it
30848 instead of cselib_preserve_value.
30849 (changed_values_stack): New vector.
30850 (check_changed_vars_0): New function.
30851 (check_changed_vars_1, check_changed_vars_2): Use it.
30852 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
30853 changed_values_stack VALUEs.
30854 (vt_emit_notes): For all preserved_values call
30855 add_cselib_value_chains. If ENABLE_CHECKING call
30856 remove_cselib_value_chains before verifying value_chains is empty.
30857 Initialize and free changed_values_stack.
30858 (vt_initialize): Initialize preserved_values.
30859 (vt_finalize): Free preserved_values.
30860
30861 2010-03-08 Richard Guenther <rguenther@suse.de>
30862
30863 PR tree-optimization/43269
30864 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
30865 region detection.
30866
30867 2010-03-08 Martin Jambor <mjambor@suse.cz>
30868
30869 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
30870 (ipa_is_param_called): Removed.
30871 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
30872 (ipa_print_node_params): Do not print the called flag.
30873 (ipa_write_node_info): Do not stream the called flag.
30874 (ipa_read_node_info): Likewise.
30875
30876 2010-03-07 Jakub Jelinek <jakub@redhat.com>
30877
30878 PR debug/43176
30879 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
30880 * cselib.c (struct expand_value_data): Add dummy field.
30881 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
30882 dummy to false.
30883 (cselib_dummy_expand_value_rtx_cb): New function.
30884 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
30885 any rtl.
30886 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
30887 * var-tracking.c: Include pointer-set.h.
30888 (variable): Change n_var_parts to char from int. Add
30889 cur_loc_changed and in_changed_variables fields.
30890 (variable_canonicalize): Remove.
30891 (shared_var_p): New inline function.
30892 (unshare_variable): Maintain cur_loc_changed and
30893 in_changed_variables fields. If var was in changed_variables,
30894 replace it there with new_var. Just copy cur_loc instead of
30895 resetting it to something else.
30896 (variable_union): Don't recompute cur_loc. Use shared_var_p.
30897 (dataflow_set_union): Don't call variable_canonicalize.
30898 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
30899 of their DEBUG_EXPR_TREE_DECLs.
30900 (canonicalize_loc_order_check): Verify that cur_loc is NULL
30901 and in_changed_variables and cur_loc_changed is false.
30902 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
30903 and cur_loc_changed. Don't update cur_loc here.
30904 (variable_merge_over_src): Don't call variable_canonicalize.
30905 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
30906 removing loc that is equal to cur_loc, clear cur_loc,
30907 set cur_loc_changed and ensure variable_was_changed is called.
30908 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
30909 compare pointers in cur_loc check, if it is equal to loc,
30910 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
30911 (variable_different_p): Remove compare_current_location argument,
30912 don't compare cur_loc.
30913 (dataflow_set_different_1): Adjust variable_different_p caller.
30914 (variable_was_changed): If dv had some var in changed_variables
30915 already, reset in_changed_variables flag for it and propagate
30916 cur_loc_changed over to the new variable. On empty var
30917 always set cur_loc_changed. Set in_changed_variables on whatever
30918 var is added to changed_variables.
30919 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
30920 Use shared_var_p. When removing loc that is equal to cur_loc,
30921 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
30922 end, don't set it to something else, just call variable_was_changed.
30923 (delete_slot_part): Use shared_var_p. When cur_loc equals to
30924 loc being removed, clear cur_loc and set cur_loc_changed.
30925 Set cur_loc_changed if all locations have been removed.
30926 (struct expand_loc_callback_data): New type.
30927 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
30928 allocated. Always create SUBREGs if simplify_subreg failed.
30929 Prefer to use cur_loc, when that fails and still in
30930 changed_variables (and seen first time) recompute it. Set
30931 cur_loc_changed of variables which had to change cur_loc and
30932 compute elcd->cur_loc_changed if any of the subexpressions used
30933 had to change cur_loc.
30934 (vt_expand_loc): Adjust to pass arguments in
30935 expand_loc_callback_data structure.
30936 (vt_expand_loc_dummy): New function.
30937 (emitted_notes): New variable.
30938 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
30939 that weren't used for any other decl in current
30940 emit_notes_for_changes call call vt_expand_loc_dummy to update
30941 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
30942 first loc_chain location if NULL before. Always use just
30943 cur_loc instead of first loc_chain location. When cur_loc_changed
30944 is false, when not --enable-checking=rtl just don't emit any note.
30945 When rtl checking, compute the note and assert it is the same
30946 as previous note. Clear cur_loc_changed and in_changed_variables
30947 at the end before removing from changed_variables.
30948 (check_changed_vars_3): New function.
30949 (emit_notes_for_changes): Traverse changed_vars to call
30950 check_changed_vars_3 on each changed var.
30951 (emit_notes_for_differences_1): Clear cur_loc_changed and
30952 in_changed_variables. Recompute cur_loc of new_var.
30953 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
30954 (vt_emit_notes): Initialize and destroy emitted_notes.
30955
30956 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
30957
30958 PR rtl-optimization/42220
30959 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
30960 Use verify_reg_tracked to determine if we should use OP_OUT rather
30961 than OP_INOUT.
30962 (build_def_use): If we see an in-out operand for a register that we
30963 know nothing about, treat is an output if possible, fail the block if
30964 not.
30965
30966 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
30967
30968 PR debug/42897
30969 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
30970 permanently.
30971
30972 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
30973
30974 PR debug/42897
30975 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
30976 uses of relevant DEFs that are dead outside the loop too.
30977
30978 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
30979
30980 * var-tracking.c (dataflow_set_merge): Swap src and src2.
30981 Reverted:
30982 2010-01-13 Jakub Jelinek <jakub@redhat.com>
30983 PR debug/41371
30984 * var-tracking.c (values_to_unmark): New variable.
30985 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
30986 values_to_unmark vector. Moved body to...
30987 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
30988 instead queue it into values_to_unmark vector.
30989 (vt_find_locations): Free values_to_unmark vector.
30990
30991 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
30992
30993 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
30994 (site.exp): Export them when plugins are enabled.
30995
30996 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
30997
30998 PR middle-end/42326
30999 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
31000 that contain scevs.
31001 (chrec_fold_multiply): Same.
31002
31003 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
31004
31005 PR c/43248
31006 * c-decl.c (build_compound_literal): Return early if init is
31007 an error_mark_node.
31008
31009 2010-03-04 Martin Jambor <mjambor@suse.cz>
31010
31011 PR tree-optimization/43164
31012 PR tree-optimization/43191
31013 * tree-sra.c (type_consists_of_records_p): Reject records with
31014 zero-size bit-fields at the end.
31015
31016 2010-03-04 Mike Stump <mikestump@comcast.net>
31017
31018 * Makefile.in (TAGS): Remove *.y.
31019
31020 2010-03-04 Richard Guenther <rguenther@suse.de>
31021
31022 PR tree-optimization/40761
31023 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
31024 in reverse order.
31025 (my_rev_post_order_compute): New function.
31026 (init_pre): Call it.
31027
31028 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
31029
31030 PR middle-end/43209
31031 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
31032 decrease the cost of an IV candidate when the cost is infinite.
31033
31034 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31035
31036 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
31037 Use '3DNow!' for the extension of that name, ensure normal space
31038 after the string.
31039 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
31040
31041 2010-03-03 Jeff Law <law@redhat.com>
31042
31043 * PR middle-end/32693
31044 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
31045 than gen_rtx_SUBREG.
31046 (extract_bit_field_1): Likewise.
31047
31048 2010-03-03 Janis Johnson <janis187@us.ibm.com>
31049
31050 * doc/sourcebuild.texi (Test directives): Document that arguments
31051 include-opts and exclude-opts are now optional for dg-skip-if,
31052 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
31053
31054 2010-03-03 Jason Merrill <jason@redhat.com>
31055
31056 PR c++/12909
31057 * cgraph.h (varpool_node): Add extra_name field.
31058 * varpool.c (varpool_extra_name_alias): New.
31059 (varpool_assemble_decl): Emit extra name aliases.
31060 (varpool_mark_needed_node): Look past an extra name alias.
31061 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
31062 * lto-streamer-in.c (lto_input_tree): Read it.
31063 * lto-streamer-out.c (output_unreferenced_globals): Write it.
31064
31065 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
31066
31067 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
31068 (sparc*-*-solaris2*): ...this.
31069
31070 2010-03-03 Jakub Jelinek <jakub@redhat.com>
31071
31072 PR debug/43229
31073 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
31074 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
31075 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
31076 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
31077
31078 PR debug/43237
31079 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
31080 fallthrough to default handling, just with want_address 0 instead of 2.
31081 For single element lists, add_AT_loc directly, otherwise create an
31082 artificial variable DIE and stick location list to it.
31083
31084 PR debug/43177
31085 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
31086 (VAL_EXPR_HAS_REVERSE): Define.
31087 (reverse_op): New function.
31088 (add_stores): For reversible operations add an extra MO_VAL_USE.
31089
31090 2010-03-02 Jason Merrill <jason@redhat.com>
31091
31092 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
31093
31094 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
31095
31096 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
31097 (sparc64-*-linux*): Likewise.
31098 (sparc64-*-solaris2*): Include assembler files before linker ones.
31099 (sparc-*-solaris2*): Simplify and reorder to match previous case.
31100 * config/sparc/gas.h: Delete.
31101 * config/sparc/sol2-64.h: Add copyright notice.
31102 * config/sparc/sol2-gas-bi.h: Likewise.
31103 * config/sparc/sol2-gld.h: Likewise.
31104 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
31105 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
31106 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
31107 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
31108 (sparc_elf_asm_named_section): Rename into...
31109 (sparc_solaris_elf_asm_named_section): ...this. Always define.
31110
31111 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
31112
31113 * config/alpha/alpha.c (override_options): Fix -mtune error message.
31114
31115 2010-03-02 Jeff Law <law@redhat.com>
31116
31117 PR middle-end/42431
31118 * reload1.c (rtx_p, substitute_stack): Declare.
31119 (substitute): Record addresses of changed rtxs.
31120 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
31121 Restore the original rtx when complete.
31122 (reload): Free subsitute_stack when complete.
31123
31124 2010-03-02 Janis Johnson <janis187@us.ibm.com>
31125
31126 * doc/gccint.texi (menu): Add Testsuites as a chapter.
31127 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
31128 new chapter.
31129 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
31130 LTO Testing, gcov Testing, profopt Testing, compat Testing,
31131 Torture Tests): Change from subsection to section.
31132
31133 2010-03-02 Jakub Jelinek <jakub@redhat.com>
31134 Steven Bosscher <steven@gcc.gnu.org>
31135
31136 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
31137 instead of bb.
31138
31139 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
31140
31141 PR middle-end/42640
31142 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
31143 the assignment from the new induction variable to the assignment
31144 of the value from the original loop PHI function.
31145
31146 2010-03-01 Janis Johnson <janis187@us.ibm.com>
31147 Daniel Jacobowitz <dan@codesourcery.com>
31148
31149 * doc/sourcebuild.texi (Test directives): Clarify options to
31150 dg-skip-if.
31151
31152 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31153
31154 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
31155 Disable cfi directives unless GCC and gas agree on using read-only
31156 .eh_frame sections for 64-bit.
31157 * configure: Regenerate.
31158
31159 2010-03-01 Richard Guenther <rguenther@suse.de>
31160
31161 PR tree-optimization/43220
31162 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
31163 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
31164
31165 2010-03-01 Richard Guenther <rguenther@suse.de>
31166 Martin Jambor <mjambor@suse.cz>
31167
31168 PR middle-end/41250
31169 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
31170 gimplified parameters.
31171
31172 2010-03-01 Christian Bruel <christian.bruel@st.com>
31173
31174 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
31175
31176 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
31177
31178 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
31179
31180 2010-03-01 Richard Guenther <rguenther@suse.de>
31181
31182 PR middle-end/43213
31183 * expr.c (expand_assignment): Use the alias-oracle to tell
31184 if the rhs aliases the result decl.
31185
31186 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31187
31188 PR pch/14940
31189 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
31190 to sol_gt_pch_get_address.
31191 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
31192 64-bit, SPARC and x86.
31193 (sol_gt_pch_get_address): New function.
31194
31195 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
31196
31197 * toplev.h (inform_n, error_n): Declare.
31198 * diagnostic.c (inform_n, error_n): New function.
31199
31200 2010-03-01 Jakub Jelinek <jakub@redhat.com>
31201
31202 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
31203 has no rtl yet when processing local_decls, queue it and recheck
31204 if deferred stack allocation hasn't assigned it rtl.
31205
31206 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
31207
31208 * config/sh/sh.c (unspec_bbr_uid): New.
31209 (gen_block_redirect): Use it instead of INSN_UID.
31210 (gen_far_branch): Likewise.
31211
31212 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
31213
31214 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
31215 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
31216
31217 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
31218
31219 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
31220 (Warning Options): -Wno-conversion-null is valid for
31221 Objective-C++ as well.
31222 * doc/tm.texi (Named Address Spaces): Likewise.
31223 * doc/plugins.texi (Plugins): Replace TABs with spaces.
31224 * doc/tree-ssa.texi (Tree SSA): Likewise.
31225
31226 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
31227
31228 PR bootstrap/43202
31229 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
31230 by default. Don't set the default arch for
31231 i[34567]86-*-darwin*|x86_64-*-darwin*.
31232
31233 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
31234
31235 PR bootstrap/43202
31236 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
31237 default. Set the default 32bit/64bit archs with $with_arch
31238 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
31239
31240 2010-02-27 Richard Guenther <rguenther@suse.de>
31241
31242 PR tree-optimization/43186
31243 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
31244 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
31245 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
31246 unroller iterations.
31247
31248 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
31249
31250 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
31251 required and i[34567]86-*-* targets don't support 64bit ISA.
31252
31253 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
31254
31255 PR ada/43096
31256 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
31257 the same alias set.
31258
31259 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
31260
31261 * config.gcc: Set the default arch at least to Prescott for
31262 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
31263 if SSE math is enabled.
31264
31265 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
31266
31267 * diagnostic.c (diagnostic_initialize): Update.
31268 (diagnostic_report_diagnostic): Test inhibit_notes_p for
31269 informative notes.
31270 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
31271 (diagnostic_inhibit_notes): New.
31272 * toplev.c (process_options): inhibit notes with -fcompare-debug.
31273
31274 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
31275
31276 PR c/20631
31277 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
31278 * doc/standards.texi: Likewise.
31279 * doc/extend.texi: Likewise.
31280 * doc/trouble.texi: Likewise.
31281 * doc/cppopts.texi: Likewise.
31282 * doc/install.texi: Likewise.
31283 * c.opt (std=c90,std=gnu90): New options.
31284 * c-opts.c (c_common_handle_option): Handle them.
31285
31286 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
31287
31288 PR c/24577
31289 * c-decl.c (undeclared_variable): Use an informative note.
31290
31291 2010-02-26 Richard Guenther <rguenther@suse.de>
31292
31293 PR tree-optimization/43186
31294 * gimple.h (gimple_fold): Remove.
31295 * gimple.c (gimple_fold): Remove. Inline into single user ...
31296 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
31297 Try harder for conditions.
31298
31299 2010-02-26 Jakub Jelinek <jakub@redhat.com>
31300
31301 PR debug/43190
31302 * function.c (used_types_insert): Don't skip through named pointer
31303 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
31304 and it is different from the main variant's type.
31305
31306 2010-02-26 Nick Clifton <nickc@redhat.com>
31307
31308 * config/rx/rx.md (sminsi3): Remove bogus alternative.
31309
31310 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
31311
31312 * config.gcc: Support --with-fpmath=sse for x86.
31313
31314 * config/i386/ssemath.h: New.
31315
31316 * doc/install.texi (--with-fpmath=sse): Documented.
31317
31318 2010-02-26 Richard Guenther <rguenther@suse.de>
31319
31320 PR tree-optimization/43188
31321 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
31322 vector types of over-aligned element type.
31323
31324 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
31325
31326 PR target/43175
31327 * config/i386/i386.c (expand_vec_perm_blend): Use correct
31328 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
31329
31330 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
31331
31332 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
31333
31334 2010-02-26 Jakub Jelinek <jakub@redhat.com>
31335
31336 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
31337 * var-tracking.c: Include diagnostic.h.
31338 (debug_dv): New function.
31339 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
31340
31341 PR debug/43160
31342 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
31343 (add_value_chain, add_value_chains, remove_value_chain,
31344 remove_value_chains): Handle DEBUG_EXPRs.
31345 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
31346
31347 PR debug/43161
31348 * regcprop.c (struct queued_debug_insn_change): New type.
31349 (struct value_data_entry): Add debug_insn_changes field.
31350 (struct value_data): Add n_debug_insn_changes field.
31351 (debug_insn_changes_pool): New variable.
31352 (free_debug_insn_changes, apply_debug_insn_changes,
31353 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
31354 (kill_value_one_regno): Call free_debug_insn_changes if needed.
31355 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
31356 fields.
31357 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
31358 changes for them.
31359 (copyprop_hardreg_forward_1): Don't call apply_change_group for
31360 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
31361 changes, call cprop_find_used_regs via note_stores.
31362 (copyprop_hardreg_forward): When copying vd from predecessor
31363 which has any queued DEBUG_INSN changes, make sure the pointers are
31364 cleared. At the end call df_analyze and then if there are any
31365 DEBUG_INSN changes queued at the end of some basic block for still
31366 live registers, apply them.
31367 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
31368
31369 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
31370
31371 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
31372 (arm*-*-*): Ditto.
31373
31374 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
31375
31376 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
31377 targets. Set the default with_cpu/with_arch from arch/cpu.
31378 Allow x86-64 and native for with_cpu/with_arch.
31379
31380 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
31381
31382 * ebitmap.c: Change calls to verify_popcount with calls to
31383 sbitmap_verify_popcount.
31384 (ebitmap_clear_bit): Fixed map->cacheindex test and
31385 map>cache update when bit clearing results in an empty
31386 element.
31387
31388 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
31389
31390 PR target/43154
31391 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
31392 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
31393 and support both V2DF and V2DI modes.
31394 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
31395 support both V2DF and V2DI modes.
31396 (general): Delete trailing whitespace from a few patterns.
31397
31398 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
31399 V2DF/V2DI interleave high/low builtins.
31400
31401 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
31402 new VSX builtins.
31403
31404 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
31405 interleave high/low functions.
31406
31407 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
31408
31409 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
31410 #pragma extern_prefix.
31411
31412 2010-02-25 Jakub Jelinek <jakub@redhat.com>
31413
31414 PR debug/43166
31415 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
31416 BLKmode, assert op0 is a MEM and just adjust its mode.
31417
31418 PR debug/43165
31419 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
31420 if bitpos isn't multiple of mode's bitsize.
31421
31422 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
31423
31424 * c.opt (-ftemplate-depth=): New.
31425 (-ftemplate-depth-): Deprecate.
31426 * optc-gen.awk: Handle -ftemplate-depth=.
31427 * opth-gen.awk: Likewise.
31428 * c-opts.c (c_common_handle_option): Likewise.
31429 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
31430
31431 2010-02-24 Jason Merrill <jason@redhat.com>
31432
31433 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
31434
31435 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31436
31437 * cfg.c (alloc_aux_for_block): Remove inline.
31438 (alloc_aux_for_edge): Likewise.
31439
31440 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31441
31442 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
31443
31444 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31445
31446 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
31447 * config/i386/sol2-gas.h: New file.
31448 * config.gcc (i[34567]86-*-solaris2*): Use it.
31449
31450 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
31451
31452 PR c/43128
31453 * c-typeck.c (ep_convert_and_check): New.
31454 (build_conditional_expr): Use it.
31455 (build_binary_op): Likewise.
31456
31457 2010-02-24 Jakub Jelinek <jakub@redhat.com>
31458
31459 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
31460
31461 PR debug/43150
31462 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
31463 bounds even for -O+.
31464 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
31465 expr needs to have DECL_NAME set.
31466
31467 2010-02-24 Nick Clifton <nickc@redhat.com>
31468
31469 * config/mep/mep.c: Include gimple.h.
31470 (mep_function_uses_sp): Delete unused function.
31471 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
31472 parameters. Use unsigned integers to count args. Return a
31473 NULL_RTX instead of an error_mark_node. Toidy up formatting.
31474
31475 2010-02-23 Jakub Jelinek <jakub@redhat.com>
31476
31477 PR target/43107
31478 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
31479 greater or equal to nelt instead of 2 * nelt.
31480 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
31481 with nelt - 1.
31482
31483 2010-02-23 Jason Merrill <jason@redhat.com>
31484
31485 PR debug/42800
31486 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
31487 in cfun->local_decls even if they have register types.
31488
31489 PR c++/42837
31490 * stor-layout.c (place_field): Don't warn about unnecessary
31491 DECL_PACKED if the type is packed.
31492
31493 2010-02-23 Jakub Jelinek <jakub@redhat.com>
31494
31495 PR target/43139
31496 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
31497 GOTOFF relocs, even when the base reg isn't pic pointer.
31498
31499 2010-02-23 Michael Matz <matz@suse.de>
31500
31501 PR debug/43077
31502 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
31503 (expand_gimple_basic_block): Generate and use debug temps if there
31504 are debug uses left after the last real use of TERed ssa names.
31505 Unlink debug immediate uses when they are expanded.
31506
31507 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
31508
31509 PR 43123
31510 * config/i386/i386.c (override_options): Reorganise to provide
31511 better error messages.
31512
31513 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
31514
31515 PR middle-end/43083
31516 * graphite-scop-detection.c (create_single_exit_edge): Move
31517 the call to find_single_exit_edge to....
31518 (create_sese_edges): ...here. Don't handle multiple edges
31519 exiting the function.
31520 (build_graphite_scops): Don't handle multiple edges
31521 exiting the function.
31522
31523 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
31524
31525 PR middle-end/43097
31526 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
31527 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
31528
31529 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
31530
31531 PR middle-end/43026
31532 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
31533
31534 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
31535
31536 PR c++/43126
31537 * c-typeck.c (convert_arguments): Print declaration location.
31538 * c-common.c (validate_nargs): Rename as
31539 builtin_function_validate_nargs.
31540 (check_builtin_function_arguments): Update.
31541
31542 2010-02-22 Richard Guenther <rguenther@suse.de>
31543
31544 PR lto/43045
31545 * tree-inline.c (declare_return_variable): Use the type of
31546 the call stmt lhs if available.
31547
31548 2010-02-22 Duncan Sands <baldrick@free.fr>
31549
31550 * passes.c (register_pass): Always consider all pass lists when
31551 ref_pass_instance_number is zero.
31552
31553 2010-02-22 Richard Guenther <rguenther@suse.de>
31554
31555 PR tree-optimization/42749
31556 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
31557 parameter. Do arithmetic in the original type.
31558 (update_accumulator_with_ops): Likewise.
31559 (adjust_accumulator_values): Adjust.
31560
31561 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31562
31563 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
31564 (QI to BLKmode splitter): New splitter.
31565
31566 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
31567
31568 * config/i386/i386.c (initial_ix86_tune_features): Turn on
31569 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
31570
31571 2010-02-22 Richard Guenther <rguenther@suse.de>
31572
31573 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
31574
31575 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
31576
31577 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
31578 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
31579 ($(T)crti.o, $(T)crtn.o): Remove rules.
31580
31581 2010-02-21 Tobias Burnus <burnus@net-b.de>
31582
31583 PR fortran/35259
31584 * doc/invoke.texi (-fassociative-math): Document that this
31585 option is automatically enabled for Fortran.
31586
31587 2010-02-20 David S. Miller <davem@davemloft.net>
31588
31589 * configure.ac: Test if linker and assembler properly support
31590 GOTDATA_OP relocations.
31591 * configure: Rebuild.
31592 * config.in: Likewise.
31593 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
31594 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
31595 (movsi_high_pic): Likewise.
31596 (movdi_lo_sum_pic): Likewise.
31597 (movdi_high_pic): Likewise.
31598 (movsi_pic_gotdata_op): New pattern.
31599 (movdi_pic_gotdata_op): Likewise.
31600 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
31601 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
31602
31603 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
31604
31605 PR target/43067
31606 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
31607 attribute to ssemul.
31608 (xop_mulv2div2di3_high): Ditto.
31609
31610 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
31611
31612 PR c++/35669
31613 * c.opt (Wconversion-null): New option.
31614 * doc/invoke.texi (Wconversion-null): Document.
31615
31616 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
31617
31618 * common.opt (Wlarger-than-): Add Undocumented.
31619
31620 2010-02-19 Mike Stump <mikestump@comcast.net>
31621
31622 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
31623
31624 2010-02-19 Jason Merrill <jason@redhat.com>
31625
31626 PR target/40332
31627 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
31628 * configure: Likewise.
31629
31630 2010-02-20 Alan Modra <amodra@gmail.com>
31631
31632 PR middle-end/42344
31633 * cgraph.h (cgraph_make_decl_local): Declare.
31634 * cgraph.c (cgraph_make_decl_local): New function.
31635 (cgraph_make_node_local): Use it.
31636 * cgraphunit.c (cgraph_function_versioning): Likewise.
31637 * ipa.c (function_and_variable_visibility): Likewise.
31638
31639 2010-02-19 Jakub Jelinek <jakub@redhat.com>
31640
31641 PR bootstrap/43121
31642 * except.c (sjlj_emit_function_enter): Don't call
31643 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
31644 directly.
31645 * rtl.h (add_reg_br_prob_note): Remove prototype.
31646
31647 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
31648
31649 PR 41779
31650 * c-common.c (conversion_warning): Remove widening conversions
31651 before checking the conversion of integers to reals.
31652
31653 2010-02-19 Mike Stump <mikestump@comcast.net>
31654
31655 PR middle-end/43125
31656 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
31657
31658 PR objc/43061
31659 * cgraphunit.c (process_function_and_variable_attributes): Check
31660 DECL_PRESERVE_P instead of looking up attribute "used".
31661 * ipa-pure-const.c (check_decl): Likewise.
31662 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
31663 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
31664 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
31665 instead of attribute "used".
31666 * config/sol2-c.c (solaris_pragma_init): Likewise.
31667 (solaris_pragma_fini): Likewise.
31668
31669 2010-02-19 Jakub Jelinek <jakub@redhat.com>
31670
31671 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
31672 Use XCNEW instead of xcalloc.
31673 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
31674 XNEW instead of xmalloc.
31675 (get_fields): Use XNEWVEC instead of xmalloc.
31676
31677 PR debug/43084
31678 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
31679 populate vars array.
31680 (create_new_general_access): For debug stmts just reset value.
31681 (get_stmt_accesses): For accesses within debug stmts just record them
31682 using add_access_to_acc_sites instead of preventing the peeling or
31683 counting them as accesses.
31684
31685 PR middle-end/42233
31686 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
31687
31688 2010-02-19 Richard Guenther <rguenther@suse.de>
31689
31690 PR tree-optimization/42916
31691 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
31692 instructions.
31693
31694 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
31695
31696 * configure.ac: Replace all uses of changequote in macro arguments
31697 with proper quoting.
31698
31699 2010-02-19 Jakub Jelinek <jakub@redhat.com>
31700
31701 PR middle-end/42233
31702 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
31703
31704 2010-02-19 Richard Guenther <rguenther@suse.de>
31705
31706 PR tree-optimization/42944
31707 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
31708 test for aliasing with errno.
31709
31710 2010-02-19 Jakub Jelinek <jakub@redhat.com>
31711
31712 PR middle-end/42233
31713 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
31714 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
31715 * dojump.c: Include output.h.
31716 (inv): New inline function.
31717 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
31718 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
31719 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
31720 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
31721 argument, pass it down to other calls.
31722 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
31723 add REG_BR_PROB note to the conditional jump.
31724 * cfgexpand.c (add_reg_br_prob_note): Removed.
31725 (expand_gimple_cond): Don't call it, add the probability
31726 as last argument to jumpif_1/jumpifnot_1.
31727 * Makefile.in (dojump.o): Depend on output.h.
31728 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
31729 callers.
31730 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
31731 * stmt.c (do_jump_if_equal): Likewise.
31732 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
31733 * loop-unswitch.c (compare_and_jump_seq): Likewise.
31734 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
31735 Likewise.
31736 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
31737 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
31738 jumpifnot_1 callers.
31739 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
31740 callers.
31741 (store_expr): Adjust jumpifnot caller.
31742 (store_constructor): Adjust jumpif caller.
31743
31744 PR middle-end/42233
31745 * gimplify.c (gimple_boolify): For __builtin_expect call
31746 gimple_boolify also on its first argument.
31747
31748 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
31749
31750 * configure.ac (gnu-unique-object): Wrap regexps using [] in
31751 changequote block.
31752 (__stack_chk_fail): Ditto. Remove quadrigraphs.
31753 * configure: Regenerated.
31754
31755 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31756
31757 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
31758 lang_hooks.types_compatible_p instead of comptypes.
31759
31760 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
31761
31762 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
31763 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
31764 if __prefer_thumb__ is defined.
31765
31766 2010-02-18 Martin Jambor <mjambor@suse.cz>
31767
31768 PR tree-optimization/43066
31769 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
31770 array with zero-sized element type.
31771
31772 2010-02-18 Jakub Jelinek <jakub@redhat.com>
31773
31774 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
31775 rtx, allocate struct var_loc_node here and return it to the
31776 caller, and only if it is actually needed.
31777 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
31778 move it earlier and return immediately if it returns NULL.
31779
31780 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
31781
31782 * config/sparc/gas.h: New file. Restore
31783 TARGET_ASM_NAMED_SECTION to its ELF default.
31784 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
31785 check !HAVE_GNU_AS.
31786 * config/sparc/sparc.c (sparc_elf_asm_named_section):
31787 Likewise. Add ATTRIBUTE_UNUSED to prototype.
31788 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
31789 after sparc/sysv4.h.
31790
31791 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
31792
31793 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
31794
31795 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
31796
31797 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
31798 patterns from predicated pattern.
31799
31800 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
31801
31802 PR target/43103
31803 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
31804 for insn mnemonic suffix.
31805
31806 2010-02-17 Richard Guenther <rguenther@suse.de>
31807
31808 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
31809 to loop PHI nodes.
31810
31811 2010-02-17 Jakub Jelinek <jakub@redhat.com>
31812
31813 PR debug/42918
31814 * caller-save.c (save_call_clobbered_regs): If BB ends with
31815 a DEBUG_INSN, move any notes in between last real insn and the last
31816 DEBUG_INSN after the last DEBUG_INSN.
31817
31818 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
31819
31820 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
31821 Fix return type. Fix argument type. Explain meaning of return value.
31822
31823 2010-02-16 Richard Guenther <rguenther@suse.de>
31824
31825 PR tree-optimization/41043
31826 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
31827 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
31828 statements ...
31829 (vrp_visit_phi_node): ... but only for loop PHI nodes.
31830
31831 2010-02-16 Ira Rosen <irar@il.ibm.com>
31832
31833 PR tree-optimization/43074
31834 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
31835 * tree-vect-loop.c (vect_analyze_loop_operations): Add
31836 vectorizable cycles in hybrid SLP check.
31837 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
31838
31839 2010-02-16 Richard Guenther <rguenther@suse.de>
31840
31841 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
31842 (true_dependence): If memrefs_conflict_p computes must-alias
31843 trust it. Move TBAA check after offset-based disambiguation.
31844 (canon_true_dependence): Likewise.
31845
31846 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
31847
31848 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
31849 * doc/invoke.texi: Document it.
31850 * var-tracking.c: Include toplev.h and params.h.
31851 (vt_find_locations): Return bool indicating success. Compute
31852 hash sizes unconditionally. Check new parameter, report.
31853 (variable_tracking_main_1): Check vt_find_locations results and
31854 retry. Renamed from...
31855 (variable_tracking_main): ... this. New wrapper to preserve
31856 flag_var_tracking_assignments.
31857 * Makefile.in (var-tracking.o): Adjust dependencies.
31858
31859 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
31860 Jakub Jelinek <jakub@redhat.com>
31861
31862 PR target/42854
31863 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
31864 if weak_import attribute is present.
31865 * config/darwin.c (machopic_select_section): Likewise.
31866
31867 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
31868
31869 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
31870 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
31871 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
31872 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
31873
31874 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
31875 types.
31876
31877 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
31878 Fix argument types.
31879
31880 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
31881 Rewrite text to refer to the names.
31882
31883 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
31884
31885 * config/i386/i386-builtin-types.def
31886 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
31887 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
31888 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
31889 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
31890 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
31891 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
31892 IX86_BUILTIN_VPERMIL2PS256.
31893 (MULTI_ARG_4_DF2_DI_I): Defined.
31894 (MULTI_ARG_4_DF2_DI_I1): Defined.
31895 (MULTI_ARG_4_SF2_SI_I): Defined.
31896 (MULTI_ARG_4_SF2_SI_I1): Defined.
31897 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
31898 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
31899 __builtin_ia32_vpermil2ps256.
31900 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
31901 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
31902 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
31903 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
31904 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
31905 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
31906 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
31907 CODE_FOR_xop_vpermil2v8sf3.
31908 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
31909 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
31910 * config/i386/xopintrin.h (_mm_permute2_pd): New.
31911 (_mm256_permute2_pd): New.
31912 (_mm_permute2_ps): New.
31913 (_mm256_permute2_ps): New.
31914
31915 2010-02-15 Nick Clifton <nickc@redhat.com>
31916
31917 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
31918 boolean parameters. Use emit_jump_insn when emitting a pop
31919 instruction containing a return insn.
31920 (push): Use 'true' rather than '1' as second parameter to F.
31921 (h8300_expand_prologue): Likewise.
31922 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
31923 (h8300_expand_epilogue): Likewise.
31924
31925 2010-02-15 Richard Guenther <rguenther@suse.de>
31926
31927 PR middle-end/43068
31928 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
31929 if that is zero.
31930
31931 2010-02-15 Nick Clifton <nickc@redhat.com>
31932
31933 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
31934 delta.
31935
31936 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
31937
31938 * intl.c (fake_ngettext): New function.
31939 * intl.h (fake_ngettext): Declare.
31940 (ngettext): Define macro.
31941 * collect2.c (notice_translated): New function.
31942 (main): Use notice_translated and ngettext.
31943 * collect2.h (notice_translated): Declare.
31944
31945 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
31946
31947 * reorg.c (delete_computation): Comment fixes.
31948 * caller-save.c (setup_save_areas): Idem.
31949 * sel-sched-dump.c (dump_lv_set): Idem.
31950 * rtl.def: Idem.
31951
31952 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31953
31954 * config/s390/s390.c (s390_sched_init): New function.
31955 (TARGET_SCHED_INIT): Target hook defined.
31956
31957 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
31958 Jack Howarth <howarth@bromo.med.uc.edu>
31959 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
31960
31961 PR target/42982
31962 Partial revert of unintended change in fix for PR41605.
31963 * config/darwin.h: Fix typo.
31964 * config/darwin9.h: Same.
31965
31966 2010-02-11 Jakub Jelinek <jakub@redhat.com>
31967
31968 * c-pch.c (pch_init): Clear v.
31969
31970 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
31971
31972 PR middle-end/42930
31973 * graphite-scop-detection.c (graphite_can_represent_scev): Call
31974 graphite_can_represent_init for MULT_EXPR.
31975
31976 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
31977
31978 PR middle-end/42914
31979 PR middle-end/42530
31980 * graphite-sese-to-poly.c (remove_phi): New.
31981 (translate_scalar_reduction_to_array): Call remove_phi.
31982
31983 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
31984
31985 PR middle-end/42771
31986 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
31987 * graphite-clast-to-gimple.h (gloog): Update declaration.
31988 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
31989 * graphite-poly.h (struct poly_bb): Add missing comments.
31990 (struct scop): Add poly_scop_p field.
31991 (POLY_SCOP_P): New.
31992 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
31993 * graphite.c (graphite_transform_loops): Build the polyhedral
31994 representation for each scop before code generation.
31995 * sese.c (rename_variables_in_operand): Removed.
31996 (rename_variables_in_expr): Return the renamed expression.
31997 (rename_sese_parameters): New.
31998 * sese.h (rename_sese_parameters): Declared.
31999
32000 2010-02-11 Richard Guenther <rguenther@suse.de>
32001
32002 PR tree-optimization/42998
32003 * tree-ssa-pre.c (create_expression_by_pieces): Treat
32004 POINTER_PLUS_EXPR properly.
32005
32006 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
32007 Changpeng Fang <changpeng.fang@amd.com>
32008
32009 PR middle-end/40886
32010 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
32011 the cost of an IV candidate when the IV is used in a test against zero.
32012
32013 * gcc.dg/tree-ssa/ivopts-3.c: New.
32014
32015 2010-02-11 Richard Guenther <rguenther@suse.de>
32016
32017 PR lto/41664
32018 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
32019 pointer-vs-decl case by swapping refs. Handle some cases
32020 of pointer-vs-decl disambiguations more conservatively.
32021 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
32022 to false after expanding.
32023
32024 2010-02-11 Richard Guenther <rguenther@suse.de>
32025
32026 PR driver/43021
32027 * gcc.c (process_command): Handle LTO file@offset case more
32028 appropriately.
32029
32030 2010-02-11 Jakub Jelinek <jakub@redhat.com>
32031
32032 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
32033 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
32034 of DEBUG_INSNs.
32035 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
32036
32037 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
32038 if MEM's mode size isn't DWARF2_ADDR_SIZE.
32039 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
32040 Optimize eq/ne comparisons when both arguments are known to be
32041 zero-extended.
32042 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
32043 Don't mask operands unnecessarily if they are known to be already
32044 zero-extended.
32045
32046 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
32047
32048 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
32049 instead of loop.
32050
32051 2010-02-10 Richard Guenther <rguenther@suse.de>
32052
32053 PR tree-optimization/43017
32054 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
32055 for wrapping signed arithmetic.
32056
32057 2010-02-10 Jakub Jelinek <jakub@redhat.com>
32058
32059 PR debug/43010
32060 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
32061 if no debug info should be emitted for it.
32062
32063 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
32064
32065 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
32066 note when flag_exceptions is set.
32067
32068 2010-02-10 Duncan Sands <baldrick@free.fr>
32069
32070 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
32071
32072 2010-02-10 Richard Guenther <rguenther@suse.de>
32073
32074 PR c/43007
32075 * tree.c (get_unwidened): Handle constants.
32076 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
32077
32078 2010-02-10 Martin Jambor <mjambor@suse.cz>
32079
32080 PR lto/42985
32081 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
32082 check for variable argument counts independently.
32083
32084 2010-02-10 Christian Bruel <christian.bruel@st.com>
32085
32086 PR target/42841
32087 * config/sh/sh.c (find_barrier): Increase length for non delayed
32088 conditional branches.
32089
32090 2010-02-10 Christian Bruel <christian.bruel@st.com>
32091
32092 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
32093
32094 2010-02-10 Jakub Jelinek <jakub@redhat.com>
32095
32096 * builtins.c (set_builtin_user_assembler_name): Also handle
32097 ffs if int is smaller than word.
32098
32099 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
32100
32101 PR middle-end/42973
32102 * ira-conflicts.c (get_dup): Remove.
32103 (process_reg_shuffles): Add new parameter. Use it as an
32104 additional guard for copy generation.
32105 (add_insn_allocno_copies): Rewrite.
32106
32107 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
32108
32109 * common.opt (fsched2-use-traces): Preserved for backward
32110 compatibility.
32111 * doc/invoke.texi: Remove the documentation about option
32112 -fsched2-use-traces.
32113 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
32114 flag_sched2_use_traces.
32115 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
32116 the backward compatibility flag section.
32117
32118 2010-02-09 Richard Guenther <rguenther@suse.de>
32119
32120 PR tree-optimization/43008
32121 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
32122 make HEAP variables initialized from global memory if they
32123 are not known builtin functions.
32124 (find_func_aliases): Adjust.
32125
32126 2010-02-09 Richard Guenther <rguenther@suse.de>
32127
32128 PR tree-optimization/43000
32129 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
32130 arithmetic manually.
32131
32132 2010-02-08 Jakub Jelinek <jakub@redhat.com>
32133
32134 PR tree-optimization/42931
32135 * tree-loop-linear.c (try_interchange_loops): Don't call
32136 double_int_mul if estimated_loop_iterations failed.
32137
32138 2010-02-08 Martin Jambor <mjambor@suse.cz>
32139
32140 PR middle-end/42898
32141 * tree-sra.c (build_accesses_from_assign): Do not mark in
32142 should_scalarize_away_bitmap if stmt has volatile ops.
32143 (sra_modify_assign): Do not process assigns piecemeal if if stmt
32144 has volatile ops.
32145
32146 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
32147
32148 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
32149
32150 2010-02-07 Adam Nemet <adambnmet@gmail.com>
32151
32152 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
32153 before the pattern.
32154
32155 2010-02-07 Andrew Pinski <pinskia@gmail.com>
32156
32157 PR middle-end/42946
32158 * df-core.c (df_finish_pass): Change type of saved_flags to int.
32159
32160 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
32161
32162 PR middle-end/42988
32163 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
32164 to unknown_dependence.
32165 (graphite_legal_transform_dr): Handle the unknown_dependence.
32166 (graphite_carried_dependence_level_k): Same.
32167
32168 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
32169
32170 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
32171
32172 2010-02-07 Richard Guenther <rguenther@suse.de>
32173
32174 PR middle-end/42991
32175 * expr.c (get_inner_reference): Always initialize *pbitsize.
32176
32177 2010-02-07 Richard Guenther <rguenther@suse.de>
32178
32179 PR middle-end/42956
32180 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
32181 new ARRAY_REFs on variable size element or minimal index arrays.
32182 Complete.
32183 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
32184 gimple_fold_indirect_ref.
32185
32186 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
32187
32188 PR target/42957
32189 * arm.c (arm_override_options): Just return if the user has specified
32190 an invalid fpu name.
32191
32192 2010-02-03 Jason Merrill <jason@redhat.com>
32193
32194 PR c++/42870
32195 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
32196 i386_pe_maybe_record_exported_symbol.
32197
32198 2010-02-05 Steve Ellcey <sje@cup.hp.com>
32199
32200 PR target/42924
32201 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
32202 (pa_delegitimize_address): New function.
32203
32204 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
32205
32206 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
32207 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
32208
32209 2010-02-05 Richard Guenther <rguenther@suse.de>
32210
32211 PR lto/42762
32212 * lto-streamer-in.c (get_resolution): Deal with references
32213 to undefined functions.
32214
32215 2010-02-05 Richard Guenther <rguenther@suse.de>
32216
32217 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
32218 (fold_const_aggregate_ref): Likewise.
32219 (ccp_fold_stmt): Substitute loads.
32220 (maybe_fold_reference): Verify types before substituting.
32221 Unshare properly.
32222 (fold_gimple_assign): Unshare properly.
32223 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
32224
32225 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
32226
32227 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
32228 for rs6000_gen_cell_microcode.
32229
32230 2010-02-04 Richard Guenther <rguenther@suse.de>
32231
32232 PR rtl-optimization/42952
32233 * dse.c (const_or_frame_p): Remove MEM handling.
32234
32235 2010-02-04 Nick Clifton <nickc@redhat.com>
32236
32237 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
32238 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
32239 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
32240 (mn10300_asm_output_mi_thunk): New function.
32241 (mn10300_can_output_mu_thunk): New function.
32242 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
32243 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
32244 (FUNCTION_ARG): Delete incorrect comment.
32245
32246 2010-02-03 Jason Merrill <jason@redhat.com>
32247
32248 PR c++/40138
32249 * fold-const.c (operand_equal_p): Handle erroneous types.
32250
32251 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
32252
32253 * config/h8300/h8300.md (can_delay): Fix attibute condition.
32254
32255 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
32256
32257 PR rtl-optimization/42941
32258 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
32259 of xmalloc.
32260
32261 2010-02-03 Jason Merrill <jason@redhat.com>
32262
32263 PR c++/35652
32264 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
32265
32266 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
32267
32268 PR debug/42896
32269 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
32270 (cselib_reset_table): Renamed from...
32271 (cselib_reset_table_with_next_value): ... this.
32272 (cselib_get_next_uid): Renamed from...
32273 (cselib_get_next_unknown_value): ... this.
32274 * cselib.c (next_uid): Renamed from...
32275 (next_unknown_value): ... this.
32276 (cselib_clear_table): Adjust.
32277 (cselib_reset_table): Adjust. Renamed from...
32278 (cselib_reset_table_with_next_value): ... this.
32279 (cselib_get_next_uid): Adjust. Renamed from...
32280 (cselib_get_next_unknown_value): ... this.
32281 (get_value_hash): Use hash.
32282 (cselib_hash_rtx): Likewise.
32283 (new_cselib_val): Adjust. Set and dump uid.
32284 (cselib_lookup_mem): Pass next_uid as hash.
32285 (cselib_subst_to_values): Likewise.
32286 (cselib_log_lookup): Dump uid.
32287 (cselib_lookup): Pass next_uid as hash. Adjust.
32288 (cselib_process_insn): Adjust.
32289 (cselib_init): Initialize next_uid.
32290 (cselib_finish): Adjust.
32291 (dump_cselib_table): Likewise.
32292 * dse.c (canon_address): Dump value uid.
32293 * print-rtl.c (print_rtx): Print value uid.
32294 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
32295 (dvuid): New type.
32296 (dv_uid): New function, sort of renamed from...
32297 (dv_htab_hash): ... this, reimplemented in terms of it and...
32298 (dv_uid2hash): ... this. New.
32299 (variable_htab_eq): Drop excess assertions.
32300 (tie_break_pointers): Removed.
32301 (canon_value_cmp): Compare uids.
32302 (variable_post_merge_New_vals): Print uids.
32303 (vt_add_function_parameters): Adjust.
32304 (vt_initialize): Reset table. Adjust.
32305
32306 2010-02-03 Richard Guenther <rguenther@suse.de>
32307
32308 PR tree-optimization/42944
32309 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
32310 (call_may_clobber_ref_p_1): Likewise. Properly handle
32311 malloc and calloc clobbering errno.
32312
32313 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
32314
32315 * doc/invoke.texi: Fix name of sched1 dump.
32316
32317 * opts.c (decode_options): Set flag_tree_switch_conversion
32318 only conditionally on optimize >= 2.
32319
32320 * gcse.c: Assorted comment fixes in pass description.
32321
32322 2010-02-03 Anthony Green <green@moxielogic.com>
32323
32324 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
32325 nop padding in order to maintain alignment of storage location of
32326 target function address.
32327 (moxie_trampoline_init): Store target function address at newly
32328 aligned location.
32329 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
32330 to 32.
32331 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
32332
32333 2010-02-03 Richard Guenther <rguenther@suse.de>
32334
32335 PR middle-end/42927
32336 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
32337
32338 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32339
32340 * config.gcc: Reenable check for obsolete targets.
32341 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
32342 mips-sgi-irix6.[0-4]*.
32343
32344 2010-02-02 Nick Clifton <nickc@redhat.com>
32345
32346 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
32347 constant size of 4 as being the same as 0.
32348 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
32349 can take values in the range 0..4.
32350
32351 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
32352
32353 PR java/41991
32354 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
32355 as _darwin10_Unwind_FindEnclosingFunction().
32356 * libgcc-libsystem.ver: New.
32357
32358 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
32359
32360 PR target/41399
32361 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
32362 implicitly set registers.
32363
32364 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
32365
32366 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
32367 (arm_override_options): Allow automatic selection of the thread
32368 pointer register if thumb2.
32369 (legitimize_pic_address): Improve code sequences for Thumb2.
32370 (arm_call_tls_get_addr): Likewise.
32371 (legitimize_tls_address): Likewise.
32372 * arm.md (pic_load_addr_arm): Delete. Replace with ...
32373 (pic_load_addr_32bit): ... this. New named pattern.
32374 * thumb2.md (pic_load_addr_thumb2): Delete.
32375 (pic_load_dot_plus_four): Delete.
32376 (tls_load_dot_plus_four): New named pattern.
32377
32378 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32379
32380 PR libgomp/29986
32381 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
32382 Document fix for TLS bug.
32383
32384 2010-01-31 Richard Guenther <rguenther@suse.de>
32385
32386 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
32387 conservatively correct.
32388
32389 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32390
32391 PR target/42850
32392 Revert:
32393 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32394
32395 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
32396
32397 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
32398
32399 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
32400
32401 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
32402
32403 * config.gcc: Adjust order of makefile fragments for mingw targets.
32404
32405 2010-01-31 Richard Guenther <rguenther@suse.de>
32406
32407 PR middle-end/42898
32408 * gimplify.c (gimplify_init_constructor): For volatile LHS
32409 initialize a temporary.
32410
32411 2010-01-31 Matthias Klose <doko@ubuntu.com>
32412
32413 * configure.ac: Fix __stack_chk_fail check for cross builds configured
32414 --with-headers
32415 * configure: Regenerate.
32416
32417 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
32418
32419 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
32420 the same alias set and their sizes different constantness.
32421 (aliasing_component_refs_p): Revert 2009-10-24 change.
32422
32423 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32424
32425 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
32426 unused.
32427
32428 2010-01-29 Richard Guenther <rguenther@suse.de>
32429
32430 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
32431 Assert we successfully updated the call.
32432
32433 2010-01-29 Jakub Jelinek <jakub@redhat.com>
32434
32435 PR rtl-optimization/42889
32436 * df.h (df_set_bb_dirty_nonlr): New prototype.
32437 * df-core.c (df_set_bb_dirty_nonlr): New function.
32438 * df-scan.c (df_insn_rescan): Call it instead of
32439 df_set_bb_dirty for DEBUG_INSNs.
32440
32441 2010-01-29 Richard Guenther <rguenther@suse.de>
32442
32443 PR middle-end/37448
32444 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
32445 quadratic behavior in most cases.
32446
32447 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
32448
32449 PR target/42891
32450 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
32451 in the call to gen_x86_movsicc_0_m1.
32452
32453 2010-01-28 Richard Guenther <rguenther@suse.de>
32454
32455 PR tree-optimization/42871
32456 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
32457
32458 2010-01-28 Richard Guenther <rguenther@suse.de>
32459
32460 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
32461 into call arguments.
32462
32463 2010-01-28 Richard Guenther <rguenther@suse.de>
32464
32465 PR middle-end/42883
32466 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
32467 the forwarder if the destination is an EH landing pad.
32468
32469 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
32470
32471 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
32472 block list passed to gimple_duplicate_sese_tail.
32473 (parallelize_loops): Avoid parallelization when the function
32474 has_nonlocal_label.
32475 Avoid parallelization when the preheader is IRREDUCIBLE.
32476 Try to optimize when estimated_loop_iterations_int is unresolved.
32477 Add the loop's location to the dump file.
32478 * tree-cfg.c (add_phi_args_after_redirect): Remove.
32479 (gimple_duplicate_sese_tail): Remove the check for the latch.
32480 Redirect nexits to the exit block.
32481 Remove handling of the incoming edges to the latch.
32482 Redirect the backedge from the copied latch to the exit bb.
32483
32484 2010-01-28 Michael Matz <matz@suse.de>
32485
32486 PR target/42881
32487 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
32488 Wrap force_reg into a sequence, emit it before user.
32489
32490 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
32491
32492 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
32493 (arm_rev): New.
32494 (arm_legacy_rev): Likewise.
32495 (thumb_legacy_rev): Likewise.
32496
32497 2010-01-27 Jakub Jelinek <jakub@redhat.com>
32498
32499 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
32500 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
32501 on MEM's address failed, try avoid_constant_pool_reference and
32502 recurse if it returned something different.
32503 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
32504 address, try avoid_constant_pool_reference and recurse if it
32505 returned something different.
32506 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
32507 address and avoid_constant_pool_reference returned something
32508 different, don't set have_address.
32509
32510 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
32511
32512 PR debug/42861
32513 * var-tracking.c (val_store): Add modified argument, obey it.
32514 Adjust callers.
32515 (count_uses): Move down logging of main.
32516 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
32517 don't need resolution.
32518 (emit_notes_in_bb): Likewise.
32519
32520 2010-01-27 Richard Guenther <rguenther@suse.de>
32521
32522 PR middle-end/42878
32523 * tree-inline.c (remap_decl): Delay remapping of SSA name
32524 default definitions until we need them.
32525
32526 2010-01-27 Jakub Jelinek <jakub@redhat.com>
32527
32528 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
32529 (rs6000_delegitimize_address): New function.
32530
32531 * config/s390/s390.c (s390_delegitimize_address): Call
32532 delegitimize_mem_from_attrs.
32533
32534 PR middle-end/42874
32535 * tree-inline.c (cannot_copy_type_1): Removed.
32536 (copy_forbidden): Don't forbid copying of functions containing
32537 records/unions with variable length fields.
32538
32539 2010-01-27 Christian Bruel <christian.bruel@st.com>
32540
32541 Revert:
32542 PR target/42841
32543 * config/sh/sh.c (find_barrier): Increase length for non delayed
32544 conditional branches.
32545
32546 2010-01-27 Matthias Klose <doko@ubuntu.com>
32547
32548 * configure.ac (gnu-unique-object): Fix ldd version check.
32549 * configure: Regenerate.
32550
32551 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32552
32553 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
32554 HAVE_GNU_AS value.
32555 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
32556 Test for HAVE_GNU_AS value.
32557
32558 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32559
32560 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
32561 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
32562 INT64_TYPE): Define.
32563 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
32564 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
32565 INT_LEAST64_TYPE): Define.
32566 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
32567 UINT_LEAST64_TYPE): Define.
32568 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
32569 INT_FAST64_TYPE): Define.
32570 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
32571 UINT_FAST64_TYPE): Define.
32572 (INTMAX_TYPE, UINTMAX_TYPE): Define.
32573 (INTPTR_TYPE, UINTPTR_TYPE): Define.
32574 (SIG_ATOMIC_TYPE): Define.
32575
32576 2010-01-26 Richard Guenther <rguenther@suse.de>
32577
32578 * df-scan.c (df_scan_set_bb_info): Remove assert.
32579 (df_insn_rescan_debug_internal): Merge asserts.
32580 (df_install_ref): Likewise.
32581 (df_mark_reg): Use bitmap_set_range.
32582 (df_hard_reg_used_p): Remove assert.
32583 (df_hard_reg_used_count): Likewise.
32584
32585 2010-01-26 Richard Guenther <rguenther@suse.de>
32586
32587 PR rtl-optimization/42685
32588 * web.c (web_main): Ignore DEBUG_INSNs.
32589
32590 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
32591
32592 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
32593
32594 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
32595 Fix types of fndecl and arglist parameters.
32596
32597 2010-01-26 Richard Guenther <rguenther@suse.de>
32598
32599 PR middle-end/42806
32600 * tree-eh.c (unsplit_eh): Skip debug insns.
32601
32602 2010-01-26 Richard Guenther <rguenther@suse.de>
32603
32604 PR tree-optimization/42250
32605 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
32606
32607 2010-01-26 Jakub Jelinek <jakub@redhat.com>
32608
32609 PR fortran/42866
32610 * omp-low.c (expand_omp_sections): Only use single_pred if
32611 l2_bb is single_pred_p.
32612
32613 2010-01-25 Christian Bruel <christian.bruel@st.com>
32614
32615 PR target/42841
32616 * config/sh/sh.c (find_barrier): Increase length for non delayed
32617 conditional branches.
32618 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
32619
32620 2010-01-24 David S. Miller <davem@davemloft.net>
32621
32622 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
32623 define if not using GAS.
32624 * config/sparc/sparc.c (sparc_elf_asm_named_section):
32625 Likewise. Delete SECTION_MERGE code, which is only applicable
32626 when using GAS.
32627
32628 2010-01-24 Mark Mitchell <mark@codesourcery.com>
32629
32630 PR c++/42748
32631 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
32632 mangling of va_list in system headers.
32633
32634 2010-01-23 Toon Moene <toon@moene.org>
32635
32636 * tree-predcom.c (combine_chains): Return NULL, not false.
32637
32638 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
32639
32640 * tree-loop-distribution.c (distribute_loop): Fix declaration and
32641 initialization of variable res to agree with return type.
32642
32643 2010-01-22 Steve Ellcey <sje@cup.hp.com>
32644
32645 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
32646 * tree-sra.c: Add include of expr.h.
32647
32648 2010-01-22 Jakub Jelinek <jakub@redhat.com>
32649
32650 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
32651 insert the debug stmt on the single non-EH edge from the stmt.
32652
32653 2010-01-22 Richard Henderson <rth@redhat.com>
32654
32655 PR tree-opt/42833
32656 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
32657 the RHS until after generate_subtree_copies has insertted its
32658 code before the current statement.
32659
32660 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
32661
32662 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
32663
32664 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
32665
32666 2010-01-21 Martin Jambor <mjambor@suse.cz>
32667
32668 PR tree-optimization/42585
32669 * tree-sra.c (struct access): New field grp_total_scalarization.
32670 (dump_access): Dump the new field.
32671 (should_scalarize_away_bitmap): New variable.
32672 (cannot_scalarize_away_bitmap): Likewise.
32673 (sra_initialize): Allocate new bitmaps.
32674 (sra_deinitialize): Free new bitmaps.
32675 (create_access_1): New function.
32676 (create_access): Parts moved to create_access_1.
32677 (type_consists_of_records_p): New function.
32678 (completely_scalarize_record): Likewise.
32679 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
32680 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
32681 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
32682 access.
32683 (analyze_all_variable_accesses): Completely scalarize small eligible
32684 records.
32685
32686 2010-01-21 Martin Jambor <mjambor@suse.cz>
32687
32688 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
32689
32690 2010-01-21 Andrew Haley <aph@redhat.com>
32691
32692 * gcc.c (process_command): Move lang_specific_driver before
32693 setting cc_libexec_prefix.
32694
32695 2010-01-21 Richard Guenther <rguenther@suse.de>
32696
32697 PR middle-end/19988
32698 * fold-const.c (negate_expr_p): Pretend only negative
32699 real constants are easily negatable.
32700
32701 2010-01-20 Janis Johnson <janis187@us.ibm.com>
32702 Jason Merrill <jason@redhat.com>
32703
32704 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
32705 (TYPE_TRANSPARENT_AGGR): this, for union and record.
32706 * calls.c (initialize argument_information): Handle it.
32707 * c-common.c (handle_transparent_union_attribute): Use new name.
32708 * c-decl.c (finish_struct): Ditto.
32709 * c-typeck.c (type_lists_compatible_p): Ditto.
32710 (convert_for_assignment): Use new name and also handle record.
32711 * function.c (aggregate_value_p): Handle it.
32712 (pass_by_reference): Ditto.
32713 (assign_parm_data_types): Ditto.
32714 * print-tree.c (print_node): Ditto.
32715 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
32716 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
32717 * tree.c (first_field): New fn.
32718
32719 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
32720
32721 PR target/42818
32722 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
32723 even when linking statically, for now.
32724
32725 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
32726
32727 PR debug/42715
32728 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
32729 without a cselib val.
32730 (count_uses): Accept MO_VAL_SET with no val on stores.
32731 (add_stores): Likewise.
32732
32733 2010-01-20 Jakub Jelinek <jakub@redhat.com>
32734
32735 * var-tracking.c (check_value_val): Add a compile time assertion.
32736 (dv_is_decl_p): Simplify.
32737 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
32738 gcc_assert if ENABLE_CHECKING.
32739
32740 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
32741
32742 PR debug/42782
32743 * var-tracking.c: Include tree-flow.h.
32744 (mem_dies_at_call): New.
32745 (dataflow_set_preserve_mem_locs): Use it.
32746 (dataflow_set_remove_mem_locs): Likewise.
32747 (dump_var): Renamed from dump_variable. Adjust all callers.
32748 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
32749 * Makefile.in (var-tracking.o): Adjust deps.
32750
32751 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
32752
32753 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
32754
32755 2010-01-20 Richard Guenther <rguenther@suse.de>
32756
32757 PR tree-optimization/42717
32758 * tree-ssa-dce.c (get_live_post_dom): Remove.
32759 (forward_edge_to_pdom): Take an arbitrary edge to copy
32760 degenerate PHI args from.
32761 (remove_dead_stmt): Use the first post-dominator even if it
32762 does not contain live statements as redirection destination.
32763
32764 2010-01-20 Richard Guenther <rguenther@suse.de>
32765
32766 * tree-inline.c (estimate_num_insns): Handle EH builtins.
32767
32768 2010-01-20 Jakub Jelinek <jakub@redhat.com>
32769
32770 * sel-sched.c (create_speculation_check): Remove set but not used
32771 variable twin.
32772 (try_transformation_cache): Remove set but not used variable ds.
32773 (calculate_privileged_insns): Remove set but not used variables
32774 cur_insn and min_spec_insn.
32775 (find_best_expr): Remove set but not used variable avail_n.
32776 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
32777 variable e.
32778 * cgraphunit.c (assemble_thunk): Remove set but not used variable
32779 false_label.
32780 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
32781 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
32782 new_scop_exit_edge.
32783
32784 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
32785
32786 PR bootstrap/42786
32787 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
32788 cpu types. Add support for *-sse3 cpu types.
32789 (x86_64-*-*): Ditto.
32790
32791 2010-01-20 Jakub Jelinek <jakub@redhat.com>
32792
32793 PR middle-end/42803
32794 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
32795 argument, call initializer_constant_valid_p_1 instead of
32796 initializer_constant_valid_p, pass CACHE to it, return NULL
32797 immediately if first call returns NULL.
32798 (initializer_constant_valid_p_1): New function.
32799 (initializer_constant_valid_p): Use it.
32800
32801 2010-01-20 Thomas Quinot <quinot@adacore.com>
32802
32803 * tree.def (PLACEHOLDER_EXPR): Fix comment.
32804
32805 2010-01-20 Jakub Jelinek <jakub@redhat.com>
32806
32807 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
32808 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
32809 (loc_list_from_tree): Don't handle unsigned division. Handle
32810 signed modulo using DW_OP_{over,over,div,mul,minus}.
32811 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
32812 modulo instead of signed.
32813
32814 2010-01-20 DJ Delorie <dj@redhat.com>
32815
32816 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
32817 (Fpa): Pass it
32818 (h8300_emit_stack_adjustment): Propogate it.
32819 (push): Pass it.
32820 (h8300_expand_prologue): Likewise.
32821 (h8300_expand_epilogue): Likewise.
32822
32823 2010-01-19 Michael Matz <matz@suse.de>
32824
32825 PR tree-optimization/41783
32826 * tree-data-ref.c (toplevel): Include flags.h.
32827 (dump_data_dependence_relation): Also dump the inputs if the
32828 result will be unknown.
32829 (split_constant_offset_1): Look through some conversions.
32830 * tree-predcom.c (determine_roots_comp): Restart a new chain if
32831 the offset from last element is too large.
32832 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
32833 (reassociate_to_the_same_stmt): Handle vector registers.
32834 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
32835 (e.g. conversions).
32836 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
32837 wide_prolog_niters argument, emit widening instructions.
32838 (vect_do_peeling_for_alignment): Adjust caller, use widened
32839 variant of the iteration cound.
32840 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
32841
32842 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32843
32844 PR target/38697
32845 * config/arm/neon-testgen.m (emit_automatics): New parameter
32846 features. Adjust for Fixed_return_reg feature.
32847 (test_intrinsic): Call emit_automatics with new feature.
32848 * config/arm/neon.ml: Update copyright years.
32849 (features): New Fixed_return_reg feature.
32850 (ops): Update feature for Vget_low.
32851
32852 2010-01-19 Jakub Jelinek <jakub@redhat.com>
32853
32854 PR tree-optimization/42719
32855 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
32856 stmt uses.
32857
32858 PR debug/42728
32859 * fwprop.c (all_uses_available_at): Return false if def_set dest
32860 is a REG that is used in def_insn.
32861
32862 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
32863
32864 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
32865
32866 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
32867 Add argument names.
32868
32869 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
32870
32871 * target.h (struct gcc_target) <secondary_reload>: Change type
32872 of last argument to secondary_reload_info *.
32873
32874 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
32875
32876 PR target/42774
32877 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
32878 memory references with unaligned offsets. Remove CQImode handling.
32879 (unaligned_memory_operand): Return 1 for memory references with
32880 unaligned offsets. Remove CQImode handling.
32881
32882 2010-01-18 Richard Guenther <rguenther@suse.de>
32883
32884 PR middle-end/39954
32885 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
32886 builtin calls.
32887
32888 2010-01-18 Richard Guenther <rguenther@suse.de>
32889
32890 PR tree-optimization/42781
32891 * tree-ssa-structalias.c (find_what_var_points_to): Skip
32892 restrict processing only if the original variable was artificial.
32893
32894 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
32895
32896 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
32897 find number of popped argument bytes.
32898
32899 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
32900 Fix the text that describes the return value for invalid insns.
32901
32902 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
32903
32904 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
32905 Clarify what 'cost of the -dependence' is. Fix quoting.
32906
32907 * toplev.c (default_get_pch_validity): Rename argument to "sz".
32908 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
32909
32910 2010-01-17 Jakub Jelinek <jakub@redhat.com>
32911
32912 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
32913 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
32914
32915 2010-01-17 Richard Guenther <rguenther@suse.de>
32916
32917 PR middle-end/42248
32918 * function.c (split_complex_args): Take a VEC to modify.
32919 (assign_parms_augmented_arg_list): Build a VEC instead of
32920 a chain of PARM_DECLs.
32921 (assign_parms_unsplit_complex): Take a VEC of arguments.
32922 Do not fixup unmodified parms.
32923 (assign_parms): Deal with the VEC.
32924 (gimplify_parameters): Likewise.
32925
32926 2010-01-17 Richard Guenther <rguenther@suse.de>
32927
32928 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
32929 node existence check.
32930 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
32931 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
32932 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
32933 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
32934 (gimple_execute_on_growing_pred): Likewise.
32935
32936 2010-01-17 Richard Guenther <rguenther@suse.de>
32937
32938 PR tree-optimization/42773
32939 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
32940 (compute_antic_aux): Likewise.
32941 (compute_partial_antic_aux): Likewise.
32942
32943 2010-01-17 Jie Zhang <jie.zhang@analog.com>
32944
32945 PR debug/42767
32946 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
32947 and US_TRUNCATE.
32948
32949 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
32950
32951 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
32952 appearance.
32953
32954 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
32955 Fix markup for strict argument.
32956
32957 (TARGET_SCHED_REORDER2): Fix argument types.
32958
32959 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
32960 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
32961
32962 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
32963 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
32964
32965 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
32966 Add argument name.
32967
32968 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
32969 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
32970 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
32971 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
32972 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
32973
32974 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
32975
32976 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
32977
32978 (TARGET_ASM_RELOC_RW_MASK): Add return type.
32979 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
32980
32981 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
32982
32983 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
32984 Use prototype.
32985
32986 (TARGET_ASM_NAMED_SECTION): Fix argument list.
32987
32988 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
32989 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
32990
32991 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
32992
32993 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
32994
32995 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
32996 referring to it. Fix language.
32997
32998 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
32999
33000 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
33001
33002 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
33003
33004 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
33005
33006 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
33007 '@var{stream}. Remove stray 'and'.
33008
33009 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
33010
33011 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
33012
33013 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
33014
33015 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
33016 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
33017
33018 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
33019 Fix description of return value.
33020 Rename argument "sz" to "len."
33021
33022 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
33023 Clarify meaning of 'true' return value.
33024
33025 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
33026
33027 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
33028 rep_mode versus mode_rep.
33029
33030 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
33031
33032 (TARGET_BUILTIN_DECL): Fix name.
33033
33034 (TARGET_COMMUTATIVE_P): Fix type of first argument.
33035
33036 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
33037
33038 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
33039
33040 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
33041
33042 (TARGET_RELAXED_ORDERING): Use @deftypevr.
33043
33044 (TARGET_GET_DRAP_RTX): Note that this is a hook.
33045 Clarify language.
33046
33047 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
33048 Rename argument tm_fn to md_fn.
33049
33050 (TARGET_OPTION_PRINT): Fix argument list.
33051
33052 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
33053
33054 PR target/42664
33055 * config/i386/i386.c (ix86_fixup_binary_operands):
33056 Revert FMA4 fixup of operands.
33057
33058 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33059
33060 PR other/42525
33061 * Makefile.in (write_entries_to_file, install-plugin):
33062 Use \012 instead of \n with tr.
33063
33064 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
33065
33066 * configure.ac (HAVE_AS_REF): New C macro.
33067 * configure: Regenerate.
33068 * config.in: Likewise.
33069 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
33070 if HAVE_AS_REF.
33071 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
33072 if HAVE_AS_REF.
33073
33074 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
33075
33076 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
33077
33078 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
33079
33080 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
33081
33082 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
33083
33084 (TARGET_IN_SMALL_DATA_P): Fix argument type.
33085
33086 (TARGET_BINDS_LOCAL_P): Fix argument type.
33087
33088 (TARGET_ASM_FILE_END): Use prototype.
33089
33090 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
33091
33092 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
33093
33094 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
33095
33096 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
33097
33098 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
33099 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
33100
33101 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
33102 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
33103
33104 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
33105 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
33106 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
33107 (TARGET_ADDR_SPACE_CONVERT): Likewise.
33108
33109 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
33110
33111 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
33112
33113 (TARGET_INIT_BUILTINS): Use prototype.
33114
33115 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
33116 Put 'const char *' in braces. Fix parameter types.
33117 (TARGET_INVALID_CONVERSION): Fix parameter types.
33118 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
33119 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
33120
33121 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
33122 Fix argument type.
33123
33124 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
33125
33126 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
33127
33128 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
33129
33130 * doc/tm.texi (TARGET_HELP): Fix return type.
33131
33132 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
33133 in braces. Fix argument types.
33134
33135 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
33136
33137 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
33138
33139 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
33140
33141 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
33142 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
33143
33144 (TARGET_MANGLE_TYPE): Fix argument types.
33145
33146 (TARGET_IRA_COVER_CLASSES): Use prototype.
33147
33148 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
33149
33150 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
33151
33152 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
33153
33154 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
33155
33156 (TARGET_CALLEE_COPIES): Fix argument types.
33157
33158 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
33159
33160 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
33161
33162 (TARGET_FUNCTION_VALUE): Fix argument types.
33163
33164 (TARGET_RETURN_IN_MSB): Fix argument type.
33165
33166 (TARGET_RETURN_IN_MEMORY): Fix argument types.
33167
33168 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
33169
33170 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
33171
33172 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
33173 agree with return type.
33174
33175 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
33176
33177 2010-01-15 Jing Yu <jingyu@google.com>
33178
33179 PR rtl-optimization/42691
33180 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
33181 a pseudo to a constant and are merged, and adjust comments.
33182
33183 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
33184
33185 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
33186
33187 2010-01-15 Richard Guenther <rguenther@suse.de>
33188
33189 PR middle-end/42739
33190 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
33191 labels of computed or non-local gotos to the destination.
33192 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
33193 landing pad label is the first label.
33194
33195 2010-01-15 Richard Guenther <rguenther@suse.de>
33196
33197 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
33198
33199 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
33200
33201 PR target/42747
33202 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
33203 to allow generation of the xssqrtdp instruction on power7.
33204 (sqrtdf2_fpr): Ditto.
33205
33206 2010-01-14 Jakub Jelinek <jakub@redhat.com>
33207
33208 PR middle-end/42674
33209 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
33210 functions with noreturn attribute.
33211
33212 PR c++/42608
33213 * varasm.c (declare_weak): Add weak attribute to decl if it
33214 doesn't have one already.
33215 (assemble_external): Only add decls to weak_decls if they also
33216 have weak attribute.
33217
33218 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
33219
33220 * var-tracking.c (var_reg_delete): Don't delete the association
33221 between REGs and values or one-part variables if the register
33222 isn't clobbered.
33223
33224 2010-01-14 Jakub Jelinek <jakub@redhat.com>
33225
33226 PR debug/42657
33227 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
33228 because its first operand is a non-localized variable.
33229
33230 2010-01-14 Martin Jambor <mjambor@suse.cz>
33231
33232 PR tree-optimization/42706
33233 * tree-sra.c (encountered_recursive_call): New variable.
33234 (encountered_unchangable_recursive_call): Likewise.
33235 (sra_initialize): Initialize both new variables.
33236 (callsite_has_enough_arguments_p): New function.
33237 (scan_function): Call decl and flags check only for IPA-SRA, check
33238 whether there is a recursive call and whether it has enough arguments.
33239 (all_callers_have_enough_arguments_p): New function.
33240 (convert_callers): Look for recursive calls only when
33241 encountered_recursive_call is set.
33242 (ipa_early_sra): Bail out either if
33243 !all_callers_have_enough_arguments_p or
33244 encountered_unchangable_recursive_call.
33245
33246 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
33247
33248 * sel-sched.c: Add 2010 to copyright years.
33249 * sel-sched-ir.c: Likewise.
33250 * sel-sched-ir.h: Likewise.
33251
33252 2010-01-14 Martin Jambor <mjambor@suse.cz>
33253
33254 PR tree-optimization/42714
33255 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
33256 constructors specially.
33257
33258 2010-01-14 Andi Kleen <ak@linux.intel.com>
33259
33260 * config/i386/drivers-i386.c (detect_caches_intel):
33261 Add l2sizekb parameter and fill in.
33262 (host_detect_local_cpu): Add l2sizekb, fill in.
33263 Add Atom small cache heuristic.
33264
33265 2010-01-14 Andi Kleen <ak@linux.intel.com>
33266
33267 * config/i386/drivers-i386.c (detect_caches_cpuid4):
33268 Add level3 parameter and fill in.
33269 (detect_caches_intel): Handle level3 cache.
33270
33271 2010-01-14 Andi Kleen <ak@linux.intel.com>
33272
33273 * config/i386/drivers-i386.c (host_detect_local_cpu):
33274 Fix core duo detection.
33275
33276 2010-01-14 Andi Kleen <ak@linux.intel.com>
33277
33278 * config/i386/drivers-i386.c (host_detect_local_cpu):
33279 Fix Atom detection.
33280
33281 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
33282
33283 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
33284 (rs6000_variable_issue_1): this. Use...
33285 (rs6000_variable_issue): here. Reimplement. Print debug info.
33286
33287 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
33288
33289 * sel-sched-ir.c (sel_restore_other_notes): Rename to
33290 sel_restore_notes. Update all callers. Call reemit_notes
33291 for all insns.
33292
33293 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
33294
33295 PR rtl-optimization/42246
33296 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
33297 loops.
33298
33299 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
33300
33301 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
33302 all successors is the same as number of successors in current region.
33303
33304 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
33305
33306 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
33307 to rename is not separable. Otherwise check that its LHS is not NULL.
33308
33309 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
33310
33311 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
33312
33313 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
33314
33315 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
33316 available registers when failed to discover LHS register class.
33317 Fix indentation. Update comment.
33318
33319 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
33320 Alexander Monakov <amonakov@ispras.ru>
33321
33322 PR rtl-optimization/42389
33323 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
33324 to can_issue_more.
33325 (advance_state_on_fence): Likewise.
33326 (sel_target_adjust_priority): Print debug output only when
33327 sched_verbose >= 4, not 2.
33328 (get_expr_cost): Do not issue all unique insns on the next cycle.
33329 (fill_insns): Initialize can_issue_more from the value saved
33330 with the fence.
33331 * sel-sched-ir.c (flist_add): New parameter issue_more.
33332 Init FENCE_ISSUE_MORE with it.
33333 (merge_fences): Likewise.
33334 (init_fences): Update call to flist_add.
33335 (add_to_fences, add_clean_fence_to_fences)
33336 (add_dirty_fence_to_fences): Likewise.
33337 (move_fence_to_fences): Update call to merge_fences.
33338 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
33339 sched groups.
33340 * sel-sched-ir.h (struct _fence): New field issue_more.
33341 (FENCE_ISSUE_MORE): New accessor macro.
33342
33343 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
33344
33345 PR rtl-optimization/42388
33346 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
33347 that have no predecessors nor successors. Do not call move_bb_info
33348 for empty blocks outside of current region.
33349
33350 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
33351
33352 PR rtl-optimization/42294
33353 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
33354 * sel-sched.c (move_exprs_to_boundary): Transitively add all
33355 originators' originators.
33356
33357 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
33358
33359 PR rtl-optimization/39453
33360 PR rtl-optimization/42246
33361 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
33362 for pipelining_p.
33363 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
33364
33365 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
33366 Alexander Monakov <amonakov@ispras.ru>
33367
33368 PR middle-end/42245
33369 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
33370 (maybe_tidy_empty_bb): ... here. Make static. Add new
33371 argument. Update all callers.
33372 (tidy_control_flow): ... and here. Recompute topological order
33373 of basic blocks in region if necessary.
33374 (sel_redirect_edge_and_branch): Change return type. Return true
33375 if topological order might have been invalidated.
33376 (purge_empty_blocks): Export and move from...
33377 * sel-sched.c (purge_empty_blocks): ... here.
33378 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
33379 (maybe_tidy_empty_bb): Delete prototype.
33380 (purge_empty_blocks): Declare.
33381
33382 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
33383
33384 PR rtl-optimization/42249
33385 * sel-sched.c (try_replace_dest_reg): When chosen register
33386 and original register is the same, do not bail out early, but
33387 still check all original insns for validity of replacing destination
33388 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
33389 in this case.
33390
33391 2010-01-14 Jakub Jelinek <jakub@redhat.com>
33392
33393 PR c/42721
33394 Port from no-undefined-overflow branch:
33395 2009-03-09 Richard Guenther <rguenther@suse.de>
33396
33397 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
33398
33399 2010-01-14 Richard Guenther <rguenther@suse.de>
33400
33401 PR lto/42665
33402 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
33403
33404 2010-01-14 Ira Rosen <irar@il.ibm.com>
33405
33406 PR tree-optimization/42709
33407 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
33408 as scalar type in creation of constant vector operand.
33409
33410 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33411
33412 PR testsuite/42414
33413 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
33414 (check-parallel-%): Match `testsuite' directory component only
33415 at the end.
33416
33417 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
33418
33419 PR translation/39521
33420 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
33421 strings with _().
33422
33423 2010-01-13 Richard Guenther <rguenther@suse.de>
33424
33425 PR tree-optimization/42730
33426 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
33427 offset zero.
33428
33429 2010-01-13 Steve Ellcey <sje@cup.hp.com>
33430
33431 PR target/pr42542
33432 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
33433 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
33434 them signed.
33435
33436 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
33437
33438 * config/bfin/libgcc-bfin.ver: Regenerate based on current
33439 libgcc-std.ver. Add entries for ___smulsi3_highpart and
33440 ___umulsi3_highpart.
33441
33442 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
33443 rather than schedule_insns if the pass is enabled.
33444
33445 2010-01-13 Martin Jambor <mjambor@suse.cz>
33446
33447 PR tree-optimization/42704
33448 * tree-sra.c (sra_modify_assign): Do not delete assignments to
33449 SSA_NAMEs.
33450
33451 2010-01-13 Martin Jambor <mjambor@suse.cz>
33452
33453 PR tree-optimization/42703
33454 * tree-sra.c (analyze_access_subtree): Check that we can build a
33455 reference to the original data within the aggregate.
33456
33457 2010-01-13 Richard Guenther <rguenther@suse.de>
33458
33459 PR tree-optimization/42705
33460 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
33461
33462 2010-01-13 Richard Guenther <rguenther@suse.de>
33463
33464 PR middle-end/42716
33465 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
33466
33467 2010-01-13 Jakub Jelinek <jakub@redhat.com>
33468
33469 PR debug/41371
33470 * var-tracking.c (values_to_unmark): New variable.
33471 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
33472 values_to_unmark vector. Moved body to...
33473 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
33474 instead queue it into values_to_unmark vector.
33475 (vt_find_locations): Free values_to_unmark vector.
33476
33477 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
33478
33479 * config/s390/s390.c (override_options): Set
33480 default of max-pending-list-length to 256
33481
33482 2010-01-13 Richard Guenther <rguenther@suse.de>
33483
33484 PR lto/42678
33485 * tree-pass.h (PROP_gimple_lcx): New.
33486 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
33487 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
33488 before the final cleanup_eh.
33489 (dump_properties): Dump PROP_gimple_lcx.
33490 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
33491 (tree_lower_complex_O0): Remove.
33492 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
33493 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
33494 tree_lower_complex, schedule TODO_update_ssa.
33495 * lto-streamer-out.c (output_function): Stream the functions
33496 properties.
33497 * lto-streamer-in.c (input_function): Likewise.
33498 (lto_read_body): Do not override them here.
33499
33500 2010-01-12 Joseph Myers <joseph@codesourcery.com>
33501
33502 PR c/42708
33503 * c-typeck.c (build_c_cast): Fold value cast to union type before
33504 wrapping it in a CONSTRUCTOR.
33505
33506 2010-01-12 Jakub Jelinek <jakub@redhat.com>
33507
33508 PR rtl-optimization/42699
33509 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
33510 involved.
33511
33512 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33513
33514 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
33515 SUBTARGET_WARN_UNUSED_SPEC): Move ...
33516 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
33517 SUBTARGET_WARN_UNUSED_SPEC): ... here
33518 * config/mips/iris5.h (LIBGCC_SPEC): Define.
33519
33520 2010-01-12 Julian Brown <julian@codesourcery.com>
33521
33522 * config/arm/neon-schedgen.ml (Utils): Don't try to
33523 open missing module.
33524 (find_with_result): New.
33525
33526 2010-01-12 Jakub Jelinek <jakub@redhat.com>
33527
33528 PR debug/42662
33529 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
33530 sharing when canonicalizing ({lt,ge}u (plus a b) b).
33531
33532 PR tree-optimization/42645
33533 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
33534 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
33535 decl_map, set processing_debug_stmt to -1 and return name without
33536 any remapping.
33537
33538 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
33539
33540 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
33541 binutils version, and reword target configuration description.
33542
33543 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
33544
33545 * config/avr/avr.h (LINKER_NAME): Remove.
33546
33547 2010-01-11 Janis Johnson <janis187@us.ibm.com>
33548
33549 PR target/42416
33550 * config/rs6000/rs6000.c (rs6000_override_options): On targets
33551 that support VSX, warn for -mno-altivec if vsx is not disabled,
33552 and disable vsx.
33553
33554 2010-01-11 Joseph Myers <joseph@codesourcery.com>
33555 Shujing Zhao <pearly.zhao@oracle.com>
33556
33557 PR translation/42469
33558 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
33559 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
33560 character between option name and help text.
33561 * c.opt (imultilib): Likewise.
33562
33563 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
33564
33565 * lto-streamer-out.c (output_unreferenced_globals): Output static
33566 variables.
33567
33568 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
33569
33570 PR rtl-optimization/42621
33571 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
33572 optimizing for size.
33573 (duplicate_computed_gotos): Remove now-redundant check.
33574
33575 2010-01-10 Steve Ellcey <sje@cup.hp.com>
33576
33577 PR target/37454
33578 * configure.ac: Save and restore LDFLAGS and LIBS
33579 * configure: Regenerate.
33580
33581 2010-01-10 Richard Guenther <rguenther@suse.de>
33582
33583 PR middle-end/42667
33584 * builtins.c (fold_builtin_strlen): Add type argument and
33585 convert the resulting length to it.
33586 (fold_builtin_1): Adjust.
33587
33588 2010-01-09 Jakub Jelinek <jakub@redhat.com>
33589
33590 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
33591 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
33592 1 insn.
33593 (num_insns_constant_wide): Adjust for that change.
33594
33595 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
33596
33597 PR debug/42631
33598 * web.c (union_defs): Add used argument, to combine uses of
33599 uninitialized regs.
33600 (entry_register): Adjust type and tests of used argument.
33601 (web_main): Widen used for new use. Pass it to union_defs.
33602 * df.h (union_defs): Adjust prototype.
33603
33604 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
33605
33606 PR debug/42630
33607 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
33608 uses in new incoming argument. Free body.
33609 (reset_debug_uses_in_loop): New.
33610 (analyze_insn_to_expand_var): Call the latter if the former found
33611 anything. Fix whitespace. Reject invalid dest overlaps before
33612 going through all insns in the loop.
33613
33614 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
33615
33616 PR debug/42629
33617 * haifa-sched.c (dying_use_p): Debug insns don't count.
33618
33619 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
33620
33621 PR middle-end/42363
33622 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
33623 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
33624 (verify_gimple_call): Reject LHS in noreturn calls.
33625
33626 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
33627
33628 PR debug/42604
33629 PR debug/42395
33630 * tree-vect-loop-manip.c (adjust_info): New type.
33631 (adjust_vec): New pointer to vector.
33632 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
33633 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
33634 (slpeel_update_phis_for_duplicate_loop): Use them.
33635 (slpeel_update_phi_nodes_for_guard1): Likewise.
33636 (slpeel_update_phi_nodes_for_guard2): Likewise.
33637 (slpeel_tree_peel_loop_to_edge): Likewise.
33638 (vect_update_ivs_after_vectorizer): Likewise.
33639
33640 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
33641
33642 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
33643 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
33644
33645 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
33646
33647 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
33648 bogus uninitialized warning.
33649
33650 2010-01-09 Richard Guenther <rguenther@suse.de>
33651
33652 PR middle-end/42512
33653 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
33654 the evolution is compatible with the initial condition.
33655
33656 2010-01-09 Jakub Jelinek <jakub@redhat.com>
33657
33658 * gcc.c (process_command): Update copyright notice dates.
33659 * gcov.c (print_version): Likewise.
33660 * gcov-dump.c (print_version): Likewise.
33661 * mips-tfile.c (main): Likewise.
33662 * mips-tdump.c (main): Likewise.
33663
33664 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
33665
33666 PR target/41885
33667 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
33668 (rotlhi3): Delete.
33669 (rotlhi3_8): Delete.
33670 (rotlsi3): Delete.
33671 (rotlsi3_8): Delete.
33672 (rotlsi3_16): Delete.
33673 (rotlsi3_24): Delete.
33674 (rotl<mode>3): New.
33675 (*rotw<mode>3): New.
33676 (*rotb<mode>3): New.
33677 * config/avr/avr.c (avr_rotate_bytes): New function.
33678 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
33679
33680 2010-01-08 Steve Ellcey <sje@cup.hp.com>
33681
33682 PR target/37454
33683 * configure.ac: Modify -rdynamic check.
33684 * configure: Regenerate.
33685
33686 2010-01-08 DJ Delorie <dj@redhat.com>
33687
33688 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
33689 register popping order.
33690
33691 2010-01-08 Richard Guenther <rguenther@suse.de>
33692
33693 PR lto/42528
33694 * c.opt (fsigned-char): Also let LTO handle this option.
33695 (funsigned-char): Likewise.
33696
33697 2010-01-07 Richard Guenther <rguenther@suse.de>
33698
33699 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
33700 (gimple_op): Likewise.
33701 (gimple_op_ptr): Likewise.
33702 (gimple_assign_set_lhs): Remove gcc_assert.
33703 (gimple_assign_set_rhs1): Likewise.
33704 (gimple_assign_set_rhs2): Likewise.
33705 (gimple_call_set_lhs): Likewise.
33706 (gimple_call_set_fn): Likewise.
33707 (gimple_call_set_fndecl): Likewise.
33708 (gimple_call_fndecl): Likewise.
33709 (gimple_call_return_type): Likewise.
33710 (gimple_call_set_chain): Likewise.
33711 (gimple_call_num_args): Likewise.
33712 (gimple_call_set_arg): Likewise.
33713 (gimple_cond_set_code): Likewise.
33714 (gimple_cond_set_lhs): Likewise.
33715 (gimple_cond_set_rhs): Likewise.
33716 (gimple_cond_set_true_label): Likewise.
33717 (gimple_cond_set_false_label): Likewise.
33718 (gimple_label_set_label): Likewise.
33719 (gimple_goto_set_dest): Likewise.
33720 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
33721 (gimple_debug_bind_get_value): Likewise.
33722 (gimple_debug_bind_get_value_ptr): Likewise.
33723 (gimple_debug_bind_set_var): Likewise.
33724 (gimple_debug_bind_set_value): Likewise.
33725 (gimple_debug_bind_reset_value): Likewise.
33726 (gimple_debug_bind_has_value_p): Likewise.
33727 (gimple_return_retval_ptr): Remove gcc_assert.
33728 (gimple_return_retval): Likewise.
33729 (gimple_return_set_retval): Likewise.
33730 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
33731 (safe_referenced_var_iterator): Remove.
33732 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
33733 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
33734 (fill_referenced_var_vec): Remove.
33735 (first_readonly_imm_use): Remove redundant gcc_assert.
33736 (phi_arg_index_from_use): Combine gcc_asserts.
33737 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
33738 (first_imm_use_stmt): Remove redundant gcc_assert.
33739 * tree-cfg.c (verify_gimple_call): Verify function and chain
33740 operands. Verify arguments.
33741 (verify_types_in_gimple_stmt): Verify condition code and labels.
33742
33743 2010-01-07 Richard Guenther <rguenther@suse.de>
33744
33745 PR tree-optimization/42641
33746 * sese.c (rename_map_elt_info): Use the SSA name version, do
33747 not hash pointers.
33748
33749 2010-01-07 Jakub Jelinek <jakub@redhat.com>
33750
33751 PR tree-optimization/42625
33752 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
33753 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
33754
33755 2010-01-07 Duncan Sands <baldrick@free.fr>
33756
33757 * Makefile.in (PLUGIN_HEADERS): Add version.h.
33758
33759 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
33760
33761 PR target/42511
33762 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
33763 note itself is not function_invariant_p.
33764
33765 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
33766
33767 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
33768 Do not add the DF_NOTE problem.
33769 * store-motion.c (execute_rtl_store_motion): Likewise.
33770
33771 2010-01-07 Martin Jambor <mjambor@suse.cz>
33772
33773 PR tree-optimization/42157
33774 * tree-sra.c (compare_access_positions): Stabilize sort if both
33775 accesses have integer types, return zero immediately if they are the
33776 same.
33777
33778 2010-01-06 Richard Henderson <rth@redhat.com>
33779
33780 PR middle-end/41883
33781 * haifa-sched.c (add_to_note_list): Merge into ...
33782 (concat_note_lists): ... here, and ...
33783 (unlink_other_notes, rm_other_notes): Merge into...
33784 (remove_notes): ... here. Create REG_SAVE_NOTEs for
33785 NOTE_INSN_EPILOGUE_BEG.
33786
33787 2010-01-06 Richard Guenther <rguenther@suse.de>
33788
33789 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
33790 not inline regular functions into always-inline functions.
33791
33792 2010-01-06 Nick Clifton <nickc@redhat.com>
33793
33794 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
33795 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
33796 used together.
33797 (OVERRIDE_OPTIONS): Delete.
33798 (OPTIMIZATION_OPTIONS): Define.
33799 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
33800 * config/rx/rx.c (rx_handle_option): Issue an error message if
33801 -mcpu=rx200 and -fpu are used together.
33802 (rx_set_optimization_options): New function. Issue an error
33803 message if an optimization attribute attempts to reset the FPU/
33804 math optimization pairing.
33805 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
33806 * config/rx/rx.opt: Set the default to 32-bit doubles.
33807 * config/rx/t-rx: Add multilibs for -nofpu option.
33808 * doc/invoke.texi: Update documentation of RX options.
33809
33810 2010-01-06 Richard Guenther <rguenther@suse.de>
33811
33812 * tree-ssa-pre.c (name_to_id): New global.
33813 (alloc_expression_id): Simplify SSA name handling.
33814 (lookup_expression_id): Likewise.
33815 (init_pre): Zero name_to_id.
33816 (fini_pre): Free it.
33817
33818 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
33819
33820 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
33821
33822 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
33823
33824 PR target/42542
33825 * config/i386/sse.md (smaxv2di3): New.
33826 (umaxv2di3): Likewise.
33827 (sminv2di3): Likewise.
33828 (uminv2di3): Likewise.
33829
33830 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
33831
33832 PR target/42564
33833 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
33834 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
33835 (legitimize_tls_address): Likewise.
33836 (sparc_tls_referenced_p): Likewise.
33837 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
33838 and adjust calls to legitimize_pic_address.
33839 (legitimate_constant_p) Use sparc_tls_referenced_p.
33840 (legitimate_pic_operand_p): Likewise.
33841 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
33842 (sparc_tls_symbol_ref_1): Delete.
33843 (sparc_tls_referenced_p): Make static, recognize specific patterns.
33844 (legitimize_tls_address): Make static, handle CONST patterns.
33845 (legitimize_pic_address): Make static, remove unused parameter and
33846 adjust recursive calls.
33847 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
33848 and adjust call to legitimize_pic_address.
33849 (sparc_output_mi_thunk): Likewise.
33850
33851 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
33852 H.J. Lu <hongjiu.lu@intel.com>
33853
33854 PR target/42542
33855 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
33856 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
33857 operands to make them signed.
33858
33859 Revert:
33860 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
33861
33862 PR target/42542
33863 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
33864 GTU to GT for V4SI and V2DI.
33865
33866 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
33867 (umin<mode>3): Removed.
33868 (uminv8hi3): New.
33869 (uminv4si3): Likewise.
33870
33871 2010-01-05 Martin Jambor <mjambor@suse.cz>
33872
33873 PR tree-optimization/42462
33874 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
33875 current_function_decl to helper functions and macros.
33876
33877 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33878
33879 PR bootstrap/41771
33880 * flags.h: Don't include real.h.
33881 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
33882 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
33883 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
33884 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
33885 * dominance.c: Update copyright.
33886 * gimple.c (walk_gimple_op): Remove inline.
33887 * tree-ssa-reassoc.c: Include real.h.
33888 * Makefile.in (FLAGS_H): Remove $(REAL_H).
33889 (tree-ssa-reassoc.o): Depend on $(REAL_H).
33890
33891 2010-01-05 Nick Clifton <nickc@redhat.com>
33892
33893 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
33894 register to push into the stack frame when the accumulator has to
33895 be saved during interrupts.
33896
33897 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
33898
33899 * doc/invoke.texi: Remove the documentation about option
33900 -Wunreachable-code.
33901 * common.opt (Wunreachable-code): Preserved for backward
33902 compatibility.
33903 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
33904 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
33905 the backward compatibility flag section.
33906
33907 2010-01-05 Richard Guenther <rguenther@suse.de>
33908
33909 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
33910
33911 2010-01-05 Jakub Jelinek <jakub@redhat.com>
33912
33913 PR other/42611
33914 * cfgexpand.c (expand_one_var): Diagnose too large variables.
33915
33916 PR tree-optimization/42508
33917 * tree-sra.c (convert_callers): Check for recursive call
33918 by comparing cgraph nodes instead of decls.
33919 (modify_function): Call ipa_modify_formal_parameters also
33920 on all same_body aliases.
33921
33922 * cgraphunit.c (cgraph_materialize_all_clones): Compare
33923 cgraph nodes when checking for same_body aliases.
33924
33925 2010-01-05 Richard Guenther <rguenther@suse.de>
33926
33927 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
33928 allocation and lookup.
33929 (get_or_alloc_expr_for_constant): Likewise.
33930 (phi_translate): Sink allocation.
33931
33932 2010-01-04 Richard Guenther <rguenther@suse.de>
33933
33934 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
33935 a new entry only if needed.
33936 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
33937 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
33938 hashtable lookup.
33939 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
33940 the result array.
33941 (phi_translate): Handle CONSTANTs early.
33942
33943 2010-01-04 Martin Jambor <mjambor@suse.cz>
33944
33945 PR tree-optimization/42398
33946 * tree-sra.c (struct access): Removed flag grp_different_types.
33947 (dump_access): Do not dump the removed flag.
33948 (sort_and_splice_var_accesses): Do not set the removed flag.
33949 (sra_modify_expr): Check for type compatibility directly.
33950
33951 2010-01-04 Martin Jambor <mjambor@suse.cz>
33952
33953 PR tree-optimization/42366
33954 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
33955 edges with variable number of parameters.
33956 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
33957 flag instead of asserting it.
33958 (ipa_read_node_info): Read uses_analysis_done flag.
33959
33960 2010-01-04 Richard Guenther <rguenther@suse.de>
33961
33962 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
33963 iterative_hash_* as intended.
33964 (vn_reference_compute_hash): Likewise. Simplify hashing
33965 SSA names.
33966 (vn_reference_lookup_2): Likewise.
33967 (vn_nary_op_compute_hash): Likewise.
33968 (vn_phi_compute_hash): Likewise.
33969 (expressions_equal_p): Remove strange code.
33970 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
33971 (pre_expr_hash): Likewise. Simplify hashing SSA names.
33972 (bitmap_insert_into_set_1): Take value-id as parameter.
33973 (add_to_value): Pass it.
33974 (bitmap_insert_into_set): Likewise.
33975 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
33976
33977 2010-01-04 Jakub Jelinek <jakub@redhat.com>
33978
33979 PR driver/42442
33980 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
33981 (do_self_spec): For switches with SWITCH_IGNORE set set also
33982 SWITCH_IGNORE_PERMANENTLY.
33983 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
33984 of SWITCH_IGNORE.
33985
33986 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
33987
33988 * lto-streamer-out.c (output_unreferenced_globals): Output the full
33989 tree of an unreferenced global var.
33990
33991 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
33992
33993 PR target/42542
33994 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
33995 GTU to GT for V4SI and V2DI.
33996
33997 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
33998 (umin<mode>3): Removed.
33999 (uminv8hi3): New.
34000 (uminv4si3): Likewise.
34001
34002 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
34003
34004 PR lto/42581
34005 * collect2.c (main): Turn on trace in collect2 if -v is passed
34006 to gcc with LTO.
34007
34008 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
34009
34010 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
34011 description of expression operand.
34012
34013 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
34014
34015 * configure.ac: Add install-html to target_list for Make-hooks.
34016 * configure: Regenerate.
34017 * fortran/Make-lang.in (F95_HTMLFILES): New.
34018 (fortran.html): Use it.
34019 (fortran.install-html): New.
34020 * Makefile.in (install-html): Add lang.install-html.
34021 * java/Make-lang.in (JAVA_HTMLFILES): New.
34022 (java.html): Use it.
34023 (java.install-html): New.
34024 * objc/Make-lang.in (objc.install-html): New.
34025 * objcp/Make-lang.in (obj-c++.install-html): New.
34026 * cp/Make-lang.in (c++.install-html): New.
34027 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
34028 * lto/Make-lang.in (lto.install-html): New.
34029
34030 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
34031
34032 PR lto/42520
34033 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
34034
34035 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
34036
34037 PR rtl-optimization/41862
34038 * store-motion.c (store_killed_in_insn, compute_store_table,
34039 remove_reachable_equiv_notes, replace_store_insn,
34040 build_store_vectors): Ignore all DEBUG_INSNs.
34041
34042 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
34043
34044 PR lto/41564
34045 * common.opt: Add dumpdir.
34046
34047 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
34048 isn't specified.
34049 (option_map): Add --dumpdir.
34050
34051 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
34052
34053 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
34054
34055 * opts.c (decode_options): Try dump_dir_name first if
34056 dump_base_name isn't an absolute path.
34057 (common_handle_option): Handle OPT_dumpdir.
34058
34059 * toplev.c (dump_dir_name): New.
34060 (print_switch_values): Also ignore -dumpdir.
34061
34062 * toplev.h (dump_dir_name): New.
34063
34064 2010-01-03 Richard Guenther <rguenther@suse.de>
34065
34066 PR tree-optimization/42589
34067 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
34068 double-word expansion of bswap32.
34069
34070 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
34071
34072 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
34073 with BLOCK_FOR_INSN.
34074 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
34075 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
34076 noce_process_if_block): Likewise.
34077 * gcse.c (compute_local_properties, insert_expr_in_table,
34078 insert_set_in_table, canon_list_insert, find_avail_set,
34079 pre_insert_copy_insn): Likewise.
34080
34081 * basic-block.h (BLOCK_NUM): Move from here...
34082 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
34083
34084 2010-01-03 Richard Guenther <rguenther@suse.de>
34085
34086 PR tree-optimization/42438
34087 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
34088 contains_may_not_return_call flag.
34089 (BB_MAY_NOTRETURN): New.
34090 (valid_in_sets): Trapping nary operations are not valid
34091 in blocks that may not return.
34092 (insert_into_preds_of_block): Remove check for trapping expressions.
34093 (compute_avail): Compute also BB_MAY_NOTRETURN.
34094
34095 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
34096
34097 * doc/invoke.texi: Add 2010 to copyright years.
34098
34099 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
34100
34101 * config/sparc/sparc.c: Fix formatting nits.
34102
34103 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
34104 Alexander Monakov <amonakov@ispras.ru>
34105
34106 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
34107
34108 2010-01-02 Richard Guenther <rguenther@suse.de>
34109
34110 PR middle-end/42577
34111 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
34112 (simplify_switch_using_ranges): Mark to be removed edges
34113 as non-executable.
34114
34115 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
34116
34117 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
34118
34119 * collect2.c (scan_libraries): Add missing argument in call to
34120 scan_prog_file.
34121
34122 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
34123
34124 PR target/42448
34125 * config/alpha/predicates.md (aligned_memory_operand): Return false
34126 for CQImode.
34127 (unaligned_memory_operand): Return true for CQImode.
34128 * config/alpha/alpha.c (get_aligned_mem): Assert that location
34129 doesn not cross aligned SImode word boundary.
34130
34131 2010-01-02 Anatoly Sokolov <aesok@post.ru>
34132
34133 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
34134 Remove.
34135 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
34136 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
34137
34138 2010-01-02 Richard Guenther <rguenther@suse.de>
34139
34140 PR lto/41597
34141 * toplev.c (compile_file): Emit LTO marker properly. Change
34142 it to __gnu_lto_v1.
34143 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
34144
34145 2010-01-01 Richard Guenther <rguenther@suse.de>
34146
34147 PR debug/42455
34148 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
34149
34150 2010-01-01 Richard Guenther <rguenther@suse.de>
34151
34152 PR c/42570
34153 * c-decl.c (grokdeclarator): For zero-size arrays force
34154 structural equality checks as layout_type does.
34155
34156 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
34157
34158 * builtins.c: Update copyright to 2010.
34159
34160 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
34161
34162 PR lto/42531
34163 * lto-streamer-out.c (produce_asm): Revert the last change.
34164 (copy_function): Likewise.
34165
34166 * lto-streamer.c (lto_get_section_name): Skip any leading
34167 asterisk in name.
34168
34169 2010-01-01 Richard Guenther <rguenther@suse.de>
34170
34171 PR middle-end/42559
34172 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
34173 for LABEL_DECLs.
34174
34175 \f
34176 Copyright (C) 2010 Free Software Foundation, Inc.
34177
34178 Copying and distribution of this file, with or without modification,
34179 are permitted in any medium without royalty provided the copyright
34180 notice and this notice are preserved.