Set use_avx256_p if 256bit AVX register is used in vector move.
[gcc.git] / gcc / ChangeLog
1 2010-11-03 H.J. Lu <hongjiu.lu@intel.com>
2
3 PR target/46295
4 * config/i386/i386.c (ix86_expand_vector_move): Set use_avx256_p
5 if 256bit AVX register is used.
6
7 2010-11-03 Michael Meissner <meissner@linux.vnet.ibm.com>
8
9 * config/rs6000/rs6000.c (rs6000_emit_minmax): Add support to use
10 xsmindp/xsmaxdp on VSX for single precision min/max.
11 * config/rs6000/vsx.md (vsx_smaxsf3): Ditto.
12 (vsx_sminsf3): Ditto.
13
14 2010-11-03 Eric Botcazou <ebotcazou@adacore.com>
15
16 * combine.c (try_combine): Fix formatting issues, improve comments and
17 fix a pasto.
18
19 2010-11-03 Eric Botcazou <ebotcazou@adacore.com>
20
21 * tree-tailcall.c (find_tail_calls): Convert the operands to the type
22 of the result before building binary expressions.
23
24 2010-11-03 H.J. Lu <hongjiu.lu@intel.com>
25
26 PR rtl-optimization/45865
27 * Makefile.in (df-problems.o): Revert revision 164552.
28 * basic-block.h (enum bb_flags): Likewise.
29 * cfgcleanup.c (block_was_dirty): Likewise.
30 (try_forward_edges): Likewise.
31 (try_crossjump_bb): Likewise.
32 (try_head_merge_bb): Likewise.
33 (try_optimize_cfg): Likewise.
34 (cleanup_cfg): Likewise.
35 * df-core.c (df_set_bb_dirty): Likewise.
36 * df-problems.c: Likewise.
37 (df_simulate_find_uses): Likewise.
38 (MEMREF_NORMAL, MEMREF_VOLATILE): Likewise.
39 (find_memory, find_memory_store): Likewise.
40 (can_move_insns_across): Likewise.
41 * df.h (can_move_insns_across): Likewise.
42 * ifcvt.c (find_memory): Likewise.
43 (dead_or_predicable): Likewise.
44
45 2010-11-03 Richard Guenther <rguenther@suse.de>
46
47 PR middle-end/46288
48 * predict.c (strip_predict_hints): Simply DCE builtin expect if
49 the result is unused.
50
51 2010-11-03 Jakub Jelinek <jakub@redhat.com>
52
53 PR tree-optimization/46009
54 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Call
55 cond_if_else_store_replacement if bb1 and bb2 have the same
56 single successor.
57 (cond_store_replacement): Use gimple_assign_single_p, don't
58 check if rhs is SSA_NAME or invariant. Call release_defs for
59 assign.
60 (cond_if_else_store_replacement): New function.
61
62 2010-11-03 Richard Guenther <rguenther@suse.de>
63
64 * opts.c (finish_options): Properly check for all WHOPR
65 flags before complaining about -flto-partition.
66
67 2010-11-04 Alan Modra <amodra@gmail.com>
68
69 * config/rs6000/rs6000.c (rs6000_pic_labelno): Make static.
70 (rs6000_emit_load_toc_table): Don't use rs6000_pic_labelno when
71 TARGET_SECURE_PLT.
72 * config/rs6000/sysv4.h (rs6000_pic_labelno): Don't declare.
73 * config/rs6000/rs6000.md (load_toc_v4_PIC_3b): Use "b" constraint
74 on input, "r" on output.
75
76 2010-11-03 Nicola Pero <nicola.pero@meta-innovation.com>
77
78 Implemented -fobjc-std=objc1 flag.
79 * doc/invoke.texi (Option Summary): Document -fobjc-std=objc1
80 option.
81 * doc/standards.texi (Standards): Updated the section on
82 Objective-C; mention support for Objective-C 2.0 features and the
83 new -fstd-objc=objc1 flag to disable them.
84
85 2010-11-03 Richard Guenther <rguenther@suse.de>
86
87 PR middle-end/46241
88 * dwarf2out.c (scope_die_for): Properly detect global scope.
89
90 2010-11-03 Richard Guenther <rguenther@suse.de>
91
92 PR tree-optimization/46190
93 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
94 Properly compute peel iterations.
95
96 2010-11-03 Richard Guenther <rguenther@suse.de>
97
98 PR tree-optimization/46286
99 * tree-ssa-structalias.c (get_constraint_for_1): Avoid referencing
100 re-allocated vector data.
101
102 2010-11-03 H.J. Lu <hongjiu.lu@intel.com>
103
104 PR target/46285
105 * config/i386/i386.c (ix86_expand_call): Conditionally decorate
106 calls with UNSPEC_CALL_NEEDS_VZEROUPPER unspec before reload
107 is completed.
108
109 2010-11-03 Richard Guenther <rguenther@suse.de>
110
111 PR tree-optimization/46217
112 * tree-ssa.c (non_rewritable_mem_ref_base): Check if volatile
113 flag matches.
114 (execute_update_addresses_taken): Likewise.
115
116 2010-11-03 Joern Rennecke <joern.rennecke@embecosm.com>
117
118 PR bootstrap/44335
119 * targhooks.c (targhook_words_big_endian): New function.
120 (targhook_float_words_big_endian): Likewise.
121 * targhooks.h (targhook_words_big_endian): Declare.
122 (targhook_float_words_big_endian): Likewise.
123 * target.def (words_big_endian, float_words_big_endian): New hooks.
124
125 2010-11-03 Jakub Jelinek <jakub@redhat.com>
126
127 PR tree-optimization/46165
128 * tree-ssa-pre.c (eliminate): Return TODO_cleanup_cfg if changing
129 a normal call into noreturn call.
130
131 2010-11-03 Richard Guenther <rguenther@suse.de>
132
133 PR middle-end/46251
134 * builtins.c (expand_builtin_sincos): Properly build MEM_REFs,
135 not INDIRECT_REFs.
136
137 2010-11-03 Jakub Jelinek <jakub@redhat.com>
138
139 PR tree-optimization/46107
140 * cfgloopmanip.c (loop_version): Set irred_flag back into entry->flags
141 if cfg_hook_duplicate_loop_to_header_edge failed.
142
143 2010-11-03 Ian Lance Taylor <iant@google.com>
144
145 PR lto/46273
146 * gcc/config.gcc: Don't set lto_binary_reader.
147 * doc/install.texi (Prerequisites): Remove libelf paragraphs.
148 (Configuration): Mention --disable-lto. Remove --with-libelf
149 paragraph.
150
151 2010-11-03 Jakub Jelinek <jakub@redhat.com>
152
153 PR debug/46252
154 * reload1.c (delete_dead_insn): Use prev_active_insn instead of
155 prev_real_insn.
156 * gcse.c (insert_insn_end_basic_block): Likewise.
157
158 PR rtl-optimization/46034
159 PR rtl-optimization/46212
160 PR rtl-optimization/46248
161 * combine.c (try_combine): If added_sets_2 where i0dest_in_i0src
162 and i0 feeds i1 and i1 feeds i2 or i0 feeds i2, make a copy of i1src
163 before i0dest -> i0src substitution and pass 1 instead of 0 as last
164 argument to subst on i2pat.
165
166 2010-11-02 Ian Lance Taylor <iant@google.com>
167
168 * configure.ac: Use AC_SYS_LARGEFILE.
169 * configure: Rebuild.
170 * config.in: Rebuild.
171
172 2010-11-02 Nathan Froyd <froydnj@codesourcery.com>
173
174 * builtins.c (fold_builtin_signbit): Use build_zero_cst instead of
175 fold_convert.
176 * c-typeck.c (build_function_call_vec): Likewise.
177 * cfgexpand.c (expand_debug_expr): Likewise.
178 * cgraphunit.c (assemble_thunk): Likewise.
179 * config/sparc/sparc.c (sparc_fold_builtin): Likewise.
180 * fold-const.c (fold_unary_loc, fold_mult_zconjz): Likewise.
181 (fold_binary_loc, fold_ternary_loc): Likewise.
182 * gimple-fold.c (get_symbol_constant_value): Likewise.
183 * gimple-low.c (lower_builtin_setjmp): Likewise.
184 * gimple.c (gimple_cond_get_ops_from_tree): Likewise.
185 * gimplify.c (gimplify_init_constructor): Likewise.
186 * lambda.h (build_linear_expr): Likewise.
187 * omp-low.c (omp_reduction_init): Likewise.
188 * tree-inline.c (remap_ssa_name): Likewise.
189 * tree-object-size.c (compute_object_sizes): Likewise.
190 * tree-sra.c (init_subtree_with_zero): Likewise.
191 (sra_ipa_modify_assign): Likewise.
192 * tree-ssa-copy.c (propagate_tree_value_into_stmt): Likewise.
193 * tree-ssa-reassoc.c (eliminate_duplicate_pair): Likewise.
194 (eliminate_plus_minus_pair, eliminate_not_pairs): Likewise.
195 (undistribute_ops_list): Likewise.
196 * tree-ssa-sccvn.c (vn_reference_lookup_3): Likewise.
197 * tree-vect-stmts.c (vectorizable_call): Likewise.
198 * tree.c (build_vector_from_ctor, build_one_cst): Likewise.
199 (build_zero_cst): Handle more cases directly. Update comment.
200
201 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
202
203 * config/i386/i386-protos.h (ix86_split_call_pop_vzeroupper):
204 Removed.
205 * config/i386/i386.c (ix86_split_call_pop_vzeroupper): Likewise.
206
207 * config/i386/i386.md (*call_pop_0_vzeroupper): Use parallel
208 and call ix86_split_call_vzeroupper instead of
209 ix86_split_call_pop_vzeroupper.
210 (*call_pop_1_vzeroupper): Likewise.
211 (*sibcall_pop_1_vzeroupper): Likewise.
212 (*call_value_pop_0_vzeroupper): Likewise.
213 (*call_value_pop_1_vzeroupper): Likewise.
214 (*sibcall_value_pop_1_vzeroupper): Likewise.
215
216 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
217
218 * config/i386/i386.md (*sibcall_1_rex64_vzeroupper): Fix a
219 typo.
220
221 2010-11-02 Eric Botcazou <ebotcazou@adacore.com>
222
223 * basic-block.h (insert_insn_end_bb_new): Delete.
224 * cfgrtl.c (insert_insn_end_bb_new): Likewise.
225
226 2010-11-02 Uros Bizjak <ubizjak@gmail.com>
227 H.J. Lu <hongjiu.lu@intel.com>
228
229 * config/i386/i386-protos.h (ix86_split_call_vzeroupper): New.
230 (ix86_split_call_pop_vzeroupper): Likewise.
231
232 * config/i386/i386.c (move_or_delete_vzeroupper_2): Rewrite the loop.
233 (ix86_expand_call): Conditionally decorate calls with
234 UNSPEC_CALL_NEEDS_VZEROUPPER unspec.
235 (ix86_split_call_vzeroupper): New.
236 (ix86_split_call_pop_vzeroupper): Likewise.
237
238 * config/i386/i386.md (UNSPEC_CALL_NEEDS_VZEROUPPER): New.
239 (*call_pop_0_vzeroupper): New insn_and_split pattern.
240 (*call_pop_1_vzeroupper): Likewise.
241 (*sibcall_pop_1_vzeroupper): Likewise.
242 (*call_0_vzeroupper): Likewise.
243 (*call_1_vzeroupper): Likewise.
244 (*sibcall_1_vzeroupper): Likewise.
245 (*call_1_rex64_vzeroupper): Likewise.
246 (*call_1_rex64_ms_sysv_vzeroupper): Likewise.
247 (*call_1_rex64_large_vzeroupper): Likewise.
248 (*sibcall_1_rex64_vzeroupper): Likewise.
249 (*call_value_pop_0_vzeroupper): Likewise.
250 (*call_value_pop_1_vzeroupper): Likewise.
251 (*sibcall_value_pop_1_vzeroupper): Likewise.
252 (*call_value_0_vzeroupper): Likewise.
253 (*call_value_0_rex64_vzeroupper): Likewise.
254 (*call_value_0_rex64_ms_sysv_vzeroupper): Likewise.
255 (*call_value_1_vzeroupper): Likewise.
256 (*sibcall_value_1_vzeroupper): Likewise.
257 (*call_value_1_rex64_vzeroupper): Likewise.
258 (*call_value_1_rex64_ms_sysv_vzeroupper): Likewise.
259 (*call_value_1_rex64_large_vzeroupper): Likewise.
260 (*sibcall_value_1_rex64_vzeroupper): Likewise.
261
262 2010-11-02 Ian Lance Taylor <iant@google.com>
263
264 PR lto/46273
265 * config.gcc: Revert last patch: set lto_binary_reader.
266
267 2010-11-02 Richard Guenther <rguenther@suse.de>
268
269 PR tree-optimization/46149
270 * tree-ssa-structalias.c (get_constraint_for_1): Properly handle
271 non-indirect MEM_REF variants.
272
273 2010-11-02 Richard Guenther <rguenther@suse.de>
274
275 PR tree-optimization/46216
276 * tree-ssa-forwprop.c (tree_ssa_forward_propagate_single_use_vars):
277 Check if we can propagate from a POINTER_PLUS_EXPR before doing so.
278
279 2010-11-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
280
281 * configure.ac (*-*-irix6*): Disable set_have_as_tls.
282 (*-*-osf*): Likewise.
283 * configure: Regenerate.
284
285 2010-11-02 H.J. Lu <hongjiu.lu@intel.com>
286
287 * config/i386/driver-i386.c (host_detect_local_cpu): Updated
288 for Intel Core 2 and Core i7.
289
290 2010-11-02 Maxim Kuvyrkov <maxim@codesourcery.com>
291
292 Model decoder of Core 2/i7 for multipass scheduling.
293
294 * config/i386/i386-protos.h (struct ix86_first_cycle_multipass_data_):
295 New type to hold target-specific data for multipass scheduling.
296 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
297 * config/i386/i386.c (ia32_multipass_dfa_lookahead): Update for
298 Core 2/i7.
299 (core2i7_secondary_decoder_max_insn_size,)
300 (core2i7_secondary_ifetch_block_size, core2i7_ifetch_block_max_insns):
301 New static variables.
302 ([const_]ix86_first_cycle_multipass_data_t): New typedefs.
303 ([_]ix86_first_cycle_multipass_data): New static variable.
304 (core2i7_first_cycle_multipass_init, core2i7_dfa_poast_advance_cycle):
305 Implement targetm.sched hooks.
306 (core2i7_first_cycle_multipass_filter_ready_try): New static subroutine
307 of ...
308 (core2i7_first_cycle_multipass_{begin, issue, backtrack, end, fini}):
309 Implement new targetm.sched hooks.
310 (ix86_sched_init_global, TARGET_SCHED_INIT_GLOBAL): Define
311 targetm.sched hook to install multipass scheduling hooks on demand.
312
313 * doc/tm.texi.in: Document new targetm.sched hooks.
314 * doc/tm.texi: Regenerate.
315
316 * haifa-sched.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DATA_T): Define.
317 (first_cycle_multipass_data_t): New typedef.
318 (struct choice_entry: target_data): New field.
319 (max_issue): Add first_cycle_insn_p parameter. Call new target hooks
320 to allow target model restrictions not represented in DFA.
321 (choose_ready, schedule_block): Update.
322 (sched_extend_ready_list, sched_finish_ready_list): Call new target
323 hooks to initialize target-specific data for multipass scheduling.
324 * sched-int.h (max_issue): Update declaration.
325 * sel-sched.c (choose_best_insn): Update.
326 * target.def (first_cycle_multipass_{begin, issue, backtrack},)
327 (first_cycle_multipass_{init, fini}): Define and document new
328 targetm.sched hooks.
329
330 2010-11-02 Richard Guenther <rguenther@suse.de>
331
332 PR tree-optimization/46184
333 * tree-vect-loop.c (vectorizable_reduction): Try to obtain the
334 input vector type from the reduction operand as well.
335
336 2010-11-02 Richard Guenther <rguenther@suse.de>
337
338 PR tree-optimization/46177
339 * tree-loop-distribution.c (prop_phis): Use
340 mark_virtual_phi_result_for_renaming.
341
342 2010-11-02 Martin Jambor <mjambor@suse.cz>
343
344 PR middle-end/46120
345 * tree.c (get_binfo_at_offset): Bail out on artificial
346 fields. Identify primary bases according to their offsets.
347
348 2010-11-02 Martin Jambor <mjambor@suse.cz>
349
350 PR tree-optimization/45875
351 * gimple-fold.c (get_first_base_binfo_with_virtuals): Removed.
352 (gimple_get_relevant_ref_binfo): Detect primary bases according to
353 their field offset.
354
355 2010-11-02 Ian Lance Taylor <iant@google.com>
356
357 * doc/install.texi (Configuration): Note in two places that Java
358 is not enabled by default.
359
360 2010-11-02 Ian Lance Taylor <iant@google.com>
361
362 * doc/install.texi (Prerequisites): Remove libelf paragraphs.
363 (Configuration): Mention --disable-lto. Remove --with-libelf
364 paragraph.
365
366 2010-11-02 Ian Lance Taylor <iant@google.com>
367
368 * configure.ac: Remove elf_getshdrstrndx test. Don't substitute
369 LTO_BINARY_READER or LTO_USE_LIBELF. Remove LIBELFLIBS and
370 LIBELFINC. Remove HAVE_libelf.
371 * config.gcc: Don't set lto_binary_reader.
372 * Makefile.in (LIBELFLIBS, LIBELFINC): Remove variables.
373 (LTO_BINARY_READER, LTO_USE_LIBELF): Remove variables.
374 (LIBS): Remove $(LIBELFLIBS).
375 (INCLUDES): Remove $(LIBELFINC).
376 * configure: Rebuild.
377 * config.in: Rebuild.
378
379 2010-11-02 Nathan Froyd <froydnj@codesourcery.com>
380
381 * config/microblaze/microblaze-protos.h (function_arg): Delete.
382 (function_arg_advance): Delete.
383 * config/microblaze/microblaze.h (FUNCTION_ARG_ADVANCE): Delete.
384 (FUNCTION_ARG): Delete.
385 * config/microblaze/microblaze.c (function_arg_advance): Rename to...
386 (microblaze_function_arg_advance): ...this. Make static. Take a
387 const_tree and a bool.
388 (function-arg): Rename to...
389 (microblaze_function_arg): ...this. Make static. Take a const_tree
390 and a bool.
391 (microblaze_expand_prologue): Call targetm.calls.function_arg and
392 targetm.calls.function_arg_advance.
393 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
394
395 2010-11-02 Iain Sandoe <iains@gcc.gnu.org>
396
397 Merge from FSF "apple/trunk" branch.
398
399 * config/rs6000/darwin.opt (mdynamic-no-pic): move from here ...
400 * config/darwin.opt: .. to here.
401 (matt-stubs): New option.
402 * config/i386/darwin.opt: Delete.
403 * config/i386/i386.h (MACHOPIC_ATT_STUB): New.
404 (MACHO_DYNAMIC_NO_PIC_P): New.
405 (MACHOPIC_INDIRECT): New.
406 (MACHOPIC_PURE): New.
407 * config/i386/darwin.h (DARWIN_X86) Define to 1.
408 (MACHOPIC_ATT_STUB): New.
409 (CC1_SPEC): Do not remove mdynamic-no-pic.
410 Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
411 UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
412 (FUNCTION_PROFILER): Correct over-length line.
413 (SUBTARGET_OVERRIDE_OPTIONS): New.
414 (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
415 * config/i386/i386.c (config/i386/i386.c): Darwin has no PLT.
416 (legitimate_constant_p): Handle mdynamic-no-pic.
417 (ix86_legitimate_address_p): Likewise.
418 (ix86_legitimize_address): Likewise.
419 (ix86_expand_move): Likewise.
420 (machopic_output_stub): Update for ATT-style stubs and
421 mdynamic-no-pic.
422 * config/darwin-protos.h (machopic_symbol_defined_p): New.
423 * config/rs6000/darwin.h (DARWIN_PPC): Define to 1.
424 TARGET_DYNAMIC_NO_PIC: Remove.
425 Move HOT_TEXT_SECTION_NAME: move to config/darwin.h
426 UNLIKELY_EXECUTED_TEXT_SECTION_NAME: Likewise.
427 * config/rs6000/rs6000.c (darwin_rs6000_override_options):
428 Remove handling of mdynamic-no-pic.
429 * config/darwin.c (HAVE_lo_sum, gen_macho_high, gen_macho_low):
430 Define if required.
431 (machopic_symbol_defined_p): Do not try to use current_function_decl
432 when generating _get_pc thunks within stubs.
433 (machopic_indirect_data_reference): Rework for direct conditionals
434 rather than #ifdefs, add x86 mdynamic-no-pic
435 (machopic_legitimize_pic_address): Update to use HAVE_lo_sum with a
436 defined value.
437 (darwin_override_options): Handle mdynamic-no-pic here.
438 * config/darwin-sections.def (machopic_lazy_symbol_ptr2_section): New.
439 (machopic_lazy_symbol_ptr3_section): New.
440 (machopic_picsymbol_stub2_section): New.
441 (machopic_picsymbol_stub3_section): New.
442 * config/darwin.h (DARWIN_X86, DARWIN_PPC): Define to 0.
443 (MACHOPIC_NL_SYMBOL_PTR_SECTION): New.
444 (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
445 Moved common definition from x86 and rs6000.
446 (MACHO_DYNAMIC_NO_PIC_P): Override value.
447 (MACHOPIC_INDIRECT): Likewise.
448 (MACHOPIC_PURE): Likewise.
449 * config.gcc (x86-darwin-*): Remove darwin.opt.
450
451 2010-11-02 Jakub Jelinek <jakub@redhat.com>
452
453 PR debug/46255
454 * tree-cfg.c (gimple_flow_call_edges_add): Use gsi_last_nondebug_bb
455 instead of gsi_last_bb.
456
457 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
458 Maxim Kuvyrkov <maxim@codesourcery.com>
459
460 * config/i386/i386.c (cpu_names): Add "corei7".
461 * config/i386/i386.h (enum target_cpu_default): Add entry for Core i7.
462
463 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
464 Maxim Kuvyrkov <maxim@codesourcery.com>
465
466 Tune alignment for Intel Core i7
467
468 * config/i386.h (TARGET_COREI7{_32,_64,}): New macros.
469 (enum processor_type): Update comment. Add entries for Core i7.
470 * config/i386-c.c (ix86_target_macros_internal): Update.
471 * config/i386.c (m_COREI7{_32,_64}): New macros.
472 (m_GENERIC32, m_GENERIC64): Use generic tuning for Core i7.
473 (processor_target_table): Tune alignment for Core i7.
474 (ix86_option_override_internal): Use PROCESSOR_COREI7_*.
475
476 * doc/invoke.texi: Document "corei7" option value.
477
478 2010-11-02 Bernd Schmidt <bernds@codesourcery.com>
479 Maxim Kuvyrkov <maxim@codesourcery.com>
480 H.J. Lu <hjl.tools@gmail.com>
481
482 Basic support for Intel Core i7
483
484 * i386.c (ix86_option_override_internal): Add entry for corei7, use
485 generic tuning. Use generic32 when compiling for 32-bit ABI.
486
487 2010-11-02 Iain Sandoe <iains@gcc.gnu.org>
488
489 * config/darwin.c (darwin_asm_named_section): Check for __DWARF
490 sections and call darwin_asm_dwarf_section() to handle them.
491 (darwin_asm_dwarf_section): New.
492 (darwin_file_start): Remove code emitting dwarf section symbols.
493
494 2010-11-02 Chung-Lin Tang <cltang@codesourcery.com>
495
496 * Makefile.in (LIBGCC2_CFLAGS): Add -fno-stack-protector, to
497 explicitly disable stack protection when building libgcc.
498 (CRTSTUFF_CFLAGS): Same, for crtbegin/end.
499
500 2010-11-01 Jason Merrill <jason@redhat.com>
501
502 * fold-const.c (fold_indirect_ref_1): Handle folding
503 POINTER_PLUS_EXPR to ARRAY_REF.
504
505 2010-11-01 Kaz Kojima <kkojima@gcc.gnu.org>
506
507 * config/sh/sh.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
508 (sh_delegitimize_address): New function.
509
510 2010-11-01 Joseph Myers <joseph@codesourcery.com>
511
512 * config/alpha/alpha.h (WORD_SWITCH_TAKES_ARG): Remove.
513 * config/cris/cris.h (WORD_SWITCH_TAKES_ARG): Remove.
514 (CC1_SPEC): Don't handle -target.
515 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove single-argument
516 options.
517 * config/darwin.opt (Zallowable_client, Zbundle_loader,
518 Zdylib_file, Zexported_symbols_list, Zfn_seg_addr_table_filename,
519 Zimage_base, Zinit, Zinstall_name, Zmultiply_defined,
520 Zmultiplydefinedunused, Zseg_addr_table, Zsegs_read_only_addr,
521 Zsegs_read_write_addr, Zumbrella, Zunexported_symbols_list,
522 Zweak_reference_mismatches, client_name, compatibility_version,
523 current_version, dylinker_install_name, pagezero_size,
524 read_only_relocs, seg1addr, segs_read_only_addr,
525 segs_read_write_addr, sub_library, sub_umbrella): New.
526 * config/freebsd-spec.h (BSD_WORD_SWITCH_TAKES_ARG): Remove.
527 * config/freebsd.h (WORD_SWITCH_TAKES_ARG): Remove.
528 * config/freebsd.opt: New.
529 * config/interix.h (WORD_SWITCH_TAKES_ARG): Remove.
530 * config/mips/iris6.h (WORD_SWITCH_TAKES_ARG): Remove.
531 * config/rpath.opt: New.
532 * config.gcc (*-*-freebsd*): Use rpath.opt and freebsd.opt.
533 (alpha*-dec-osf5.1*, i[34567]86-*-interix3*, mips-sgi-irix6.5*):
534 Use rpath.opt.
535
536 2010-11-01 Joseph Myers <joseph@codesourcery.com>
537
538 * common.opt (R, T, Tbss, Tdata, Ttext, h, z): New.
539 * defaults.h (DEFAULT_SWITCH_TAKES_ARG, SWITCH_TAKES_ARG): Remove.
540 (DEFAULT_WORD_SWITCH_TAKES_ARG): Define to 0.
541 * doc/tm.texi.in (SWITCH_TAKES_ARG): Remove.
542 (WORD_SWITCH_TAKES_ARG): Don't refer to SWITCH_TAKES_ARG.
543 Document that options in .opt files do not need to be included.
544 * doc/tm.texi: Regenerate.
545 * gcc.c (LINK_COMMAND_SPEC): Don't include %{x}.
546 * opts-common.c: Update comment on tm.h include.
547 (decode_cmdline_option): Don't use SWITCH_TAKES_ARG.
548 * system.h (SWITCH_TAKES_ARG): Poison.
549 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Remove.
550 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Remove options included
551 in darwin.opt.
552 (LINK_COMMAND_SPEC_A): Don't include %{x}.
553 * config/fr30/fr30.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
554 * config/freebsd-spec.h (FBSD_SWITCH_TAKES_ARG): Remove.
555 * config/freebsd.h (SWITCH_TAKES_ARG): Remove.
556 * config/frv/frv.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
557 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Don't include %{x}.
558 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Remove.
559 * config/interix.h (WORD_SWITCH_TAKES_ARG): Don't handle -T options.
560 * config/lm32/lm32.h (SWITCH_TAKES_ARG): Remove.
561 * config/m32r/m32r.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
562 * config/microblaze/microblaze.h (SWITCH_TAKES_ARG): Remove.
563 * config/mips/mips.h (SWITCH_TAKES_ARG): Remove.
564 * config/mips/netbsd.h (SWITCH_TAKES_ARG): Remove.
565 * config/mips/vxworks.h (SWITCH_TAKES_ARG): Remove.
566 * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove.
567 * config/netbsd-elf.h (SWITCH_TAKES_ARG): Remove.
568 * config/openbsd.h (SWITCH_TAKES_ARG): Remove.
569 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Remove.
570 * config/score/score.h (SWITCH_TAKES_ARG): Remove.
571 * config/sol2.h (SWITCH_TAKES_ARG): Remove.
572 * config/sparc/sp-elf.h (SWITCH_TAKES_ARG): Remove.
573 * config/sparc/sp64-elf.h (SWITCH_TAKES_ARG): Remove.
574 * config/sparc/sparc.h (ASM_SPEC): Don't include %{R}.
575 * config/svr4.h (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
576
577 2010-11-01 Paul Koning <ni1d@arrl.net>
578
579 * config/pdp11/pdp11.md: Use iterators.
580 (addqi3, subqi3, iorsi3, xorsi3): Delete.
581
582 2010-11-01 Steve Ellcey <sje@cup.hp.com>
583
584 * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): Move under ifdef
585 GCC_INSN_FLAGS_H.
586 * libgcov.c (__gcov_indirect_call_profiler): Set
587 VTABLE_USES_DESCRIPTORS if TARGET_VTABLE_USES_DESCRIPTORS is
588 defined and use in place of TARGET_VTABLE_USES_DESCRIPTORS.
589
590 2010-11-01 Nathan Froyd <froydnj@codesourcery.com>
591
592 PR tree-optimization/46259
593
594 Revert:
595 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
596
597 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use
598 build_vector_from_val.
599
600 2010-11-01 DJ Delorie <dj@redhat.com>
601
602 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Add define for RX610
603 as well as an assertion.
604
605 2010-11-01 Paul Koning <ni1d@arrl.net>
606
607 * config/pdp11/pdp11.c (pdp11_return_in_memory): Return vector and
608 complex modes in memory.
609
610 2010-11-01 Nathan Froyd <froydnj@codesourcery.com>
611
612 * tree.c (build_vector_from_val): Use useless_type_conversion_p.
613
614 2010-11-01 Jakub Jelinek <jakub@redhat.com>
615
616 PR target/45250
617 * var-tracking.c (cfa_base_rtx): Move definition earlier in the file.
618 (cfa_base_offset): New variable.
619 (compute_cfa_pointer): Use cfa_base_rtx and cfa_base_offset.
620 (adjust_mems): Don't do any sp or hfp replacements if cfa_base_rtx
621 is NULL.
622 (vt_init_cfa_base): Initialize cfa_base_offset.
623
624 2010-11-01 Alan Modra <amodra@gmail.com>
625
626 PR target/46030
627 * config/rs6000/rs6000.c (struct rs6000_stack): Add reload_completed
628 and savres_strategy.
629 (stack_info): New file scope var.
630 (rs6000_init_machine_status): Init stack_info.
631 (SAVRES_INLINE_FPRS, SAVRES_INLINE_GPRS,
632 SAVRES_NOINLINE_GPRS_SAVES_LR, SAVRES_NOINLINE_FPRS_SAVES_LR,
633 SAVRES_NOINLINE_FPRS_DOESNT_RESTORE_LR): Replace with..
634 (SAVE_INLINE_FPRS, SAVE_INLINE_GPRS, REST_INLINE_FPRS, REST_INLINE_GPRS,
635 SAVE_NOINLINE_GPRS_SAVES_LR, SAVE_NOINLINE_FPRS_SAVES_LR
636 REST_NOINLINE_FPRS_DOESNT_RESTORE_LR): ..this. Update all refs.
637 (rs6000_savres_strategy): Rewrite.
638 (rs6000_stack_info): Use "stack_info" in place of local "info".
639 Return cached stack info when reload_completed unless ENABLE_CHECKING
640 in which case confirm newly calculated stack info matches old info.
641 Delay calculation of lr_save_p, set it for out of line gp save/restore
642 as well as fp. Call rs6000_savres_strategy from here..
643 (rs6000_emit_prologue, rs6000_emit_epilogue): ..rather than here.
644 (rs6000_output_function_prologue): Use info->savres_strategy to
645 determine whether fp save/restore externs need to be emitted.
646
647 2010-10-31 Jason Merrill <jason@redhat.com>
648
649 * tree.h (EXPR_LOC_OR_HERE): New macro.
650 * builtins.c (c_strlen): Use it.
651 * c-decl.c (build_enumerator): Likewise.
652 * gimplify.c (internal_get_tmp_var): Likewise.
653 (shortcut_cond_expr): Likewise.
654 (gimplify_one_sizepos): Likewise.
655
656 2010-10-31 Richard Henderson <rth@redhat.com>
657
658 * config/i386/cygming.h (TARGET_SEH): New.
659 (MAX_STACK_ALIGNMENT): New. Disable alignment for SEH.
660 (TARGET_ASM_UNWIND_EMIT, TARGET_ASM_UNWIND_EMIT_BEFORE_INSN,
661 TARGET_ASM_FUNCTION_END_PROLOGUE, SUBTARGET_ASM_UNWIND_INIT): New.
662 (TARGET_OS_CPP_BUILTINS): Define __SEH__ as needed.
663 (ASM_DECLARE_FUNCTION_NAME): Use i386_pe_start_function.
664 (ASM_DECLARE_FUNCTION_SIZE): New.
665 * config/i386/i386-protos.h: Update.
666 * config/i386/i386.c (ix86_option_override_internal): Enable
667 flag_unwind_tables with flag_asynchronous_unwind_tables immediately;
668 restrict -mpreferred-stack-boundary for SEH; enable flag_fentry.
669 (ix86_asm_output_function_label): Use SUBTARGET_ASM_UNWIND_INIT.
670 (ix86_compute_frame_layout): For SEH, disable
671 use_fast_prologue_epilogue, move frame pointer to the end of
672 the frame. Initialize hfp_save_offset.
673 (ix86_expand_prologue): Honor hfp_save_offset. Emit blockage
674 at end of prologue for SEH.
675 (ix86_expand_epilogue): For SEH, use pops, emit a nop if needed,
676 emit blockage at beginning of epilogue.
677 (ix86_expand_binary_operator): After reload, emit LEA if needed.
678 (ix86_output_call_insn): New.
679 * config/i386/i386.h (TARGET_SEH): New.
680 (struct machine_function): Add member seh.
681 * config/i386/i386.md (all call patterns): Use ix86_output_call_insn.
682 * config/i386/winnt.c (struct seh_frame_state): New.
683 (i386_pe_seh_init, i386_pe_seh_end_prologue, i386_pe_seh_fini,
684 seh_emit_push, seh_emit_save, seh_emit_stackalloc, seh_cfa_adjust_cfa,
685 seh_cfa_offset, seh_frame_related_expr, i386_pe_seh_unwind_emit,
686 i386_pe_start_function, i386_pe_end_function): New.
687
688 * dwarf2out.c (dwarf2out_frame_debug_expr): Accept CFA as well
689 as CFA_STORE in rules 12 and 13.
690
691 2010-10-31 Uros Bizjak <ubizjak@gmail.com>
692
693 PR tree-optimization/46142
694 * tree-vect-stmts.c (vectorizable_call): Enlarge dt array to
695 accommodate third function argument.
696
697 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
698
699 * tree-ssa-loop-im.c (rewrite_reciprocal): Use build_one_cst.
700
701 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
702
703 * fold-const.c (build_zero_vector): Use build_vector_from_val.
704 * tree-vect-loop.c (get_initial_def_for_induction): Likewise.
705 (get_initial_def_for_reduction): Likewise.
706 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
707 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Likewise.
708 * tree.c (build_one_cst): Likewise.
709 (build_vector_from_val): Use types_compatible_p for assert.
710
711 2010-10-30 Nathan Froyd <froydnj@codesourcery.com>
712
713 * emit-rtl.c (mark_used_flags): New function.
714 (set_used_flags, reset_used_flags): Call it.
715
716 2010-10-30 Uros Bizjak <ubizjak@gmail.com>
717
718 PR middle-end/44569
719 * lower-suberg.c (simplify_subreg_concatn): For VOIDmode elements,
720 determine the mode of a subreg by GET_MODE_INNER of CONCATN RTX.
721
722 2010-10-30 H.J. Lu <hongjiu.lu@intel.com>
723
724 PR target/46195
725 * config/i386/i386.c (contains_aligned_value_p): Renamed to ...
726 (ix86_compat_aligned_value_p): This.
727 (ix86_old_function_arg_boundary): Renamed to ...
728 (ix86_compat_function_arg_boundary): This. Updated.
729 (ix86_contains_aligned_value_p): New.
730 (ix86_function_arg_boundary): Align long double parameters on
731 stack to 4byte in 32bit.
732
733 2010-10-30 Nicola Pero <nicola.pero@meta-innovation.com>
734
735 Implemented Objective-C 2.0 @property, @synthesize and @dynamic.
736 * c-parser.c (c_parser_objc_at_property_declaration): Removed
737 parsing of RID_COPIES and RID_IVAR. Updated call to
738 objc_add_property_declaration.
739 * c-typecheck.c (build_component_ref): Call
740 objc_maybe_build_component_ref instead of objc_build_setter_call.
741 Use objc_is_property_ref to improve Objective-C checks.
742 (cp_build_modify_expr): Call objc_maybe_build_modify_expr instead
743 of objc_build_getter_call.
744
745 2010-10-29 Paul Koning <ni1d@arrl.net>
746
747 * doc/tm.texi.in (REGNO_OK_FOR_BASE_P, REGNO_MODE_OK_FOR_BASE_P,
748 REGNO_MODE_OK_FOR_REG_BASE, REGNO_MODE_CODE_OK_FOR_BASE_P,
749 REGNO_OK_FOR_INDEX_P): Delete non-strict variant.
750 (REG_OK_STRICT): Move description.
751
752 2010-10-29 Paul Koning <ni1d@arrl.net>
753
754 * config/pdp11/pdp11.md (*and<mode>): Rename to *bic<mode>.
755
756 2010-10-29 Paul Koning <ni1d@arrl.net>
757
758 * config/pdp11/pdp11.md (divhi3, modhi3, divmodhi3): Fix ICE.
759
760 2010-10-29 Paul Koning <ni1d@arrl.net>
761
762 PR/41822
763 * config/pdp11/pdp11.md (andhi3, andqi3): Fix wrong code error.
764
765 2010-10-29 Richard Henderson <rth@redhat.com>
766
767 PR rtl-opt/46226
768 * stmt.c (expand_asm_operands): Call do_pending_stack_adjust
769 for asm goto.
770
771 2010-10-29 Paul Koning <ni1d@arrl.net>
772
773 * config/pdp11/pdp11.c (output_move_quad): Fix ICE for CPU
774 register to register move.
775
776 2010-10-29 Paul Koning <ni1d@arrl.net>
777
778 * config/pdp11/pdp11.c (print_operand_address): Correct handling
779 of integer constant addresses, delete vax-only logic.
780
781 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
782
783 * config/picochip/picochip.c (picochip_is_short_branch): Simplify
784 a conditional expression.
785
786 2010-10-29 Paul Koning <ni1d@arrl.net>
787
788 * config/pdp11/pdp11.c (pdp11_trampoline_init): Correct
789 instruction encoding.
790
791 2010-10-29 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
792 Andrew Pinski <pinskia@gmail.com>
793
794 * tree.h (build_vector_from_val): Declare.
795 * tree.c (build_vector_from_val): New function.
796 * c-typeck.c (build_binary_op): Handle vector shifting.
797 * doc/extend.texi: Description of the vector shifting operation.
798
799 2010-10-29 Paul Koning <pkoning@equallogic.com>
800
801 * config/pdp11/pdp11-protos.h (pdp11_cannot_change_mode_class,
802 pdp11_secondary_memory_needed): Declare.
803 * config/pdp11/predicates.md (float_operand): New predicate.
804 * config/pdp11/pdp11.md (RETVAL_REGNUM): New constant.
805 (cbranchdf4, movdf): Change predicate.
806 (movsf): Handle FPU register case.
807 (truncdfsf2, extendsfdf2): Add FPU register case.
808 * config/pdp11/pdp11.c (TARGET_SECONDARY_RELOAD,
809 TARGET_REGISTER_MOVE_COST, TARGET_PREFERRED_RELOAD_CLASS,
810 TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
811 (pdp11_register_move_cost): Update cost matrix.
812 (pdp11_cannot_change_mode_class, pdp11_preferred_reload_class,
813 pdp11_preferred_output_reload_class, pdp11_secondary_reload,
814 pdp11_secondary_memory_needed): New function.
815 (pdp11_return_in_memory): Add other float types.
816 * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Add other float types.
817 (SECONDARY_MEMORY_NEEDED, CANNOT_CHANGE_MODE_CLASS): Define.
818 (PREFERRED_RELOAD_CLASS, SECONDARY_RELOAD_CLASS,
819 REGISTER_MOVE_COST): Delete.
820 (BASE_RETURN_VALUE_REG): Add other float types.
821
822 2010-10-29 Nick Clifton<nickc@redhat.com>
823
824 * doc/invoke.texi: Document -mam34 and -mtune options.
825 * config/mn10300/mn10300.c (mn10300_tune_string): New variable.
826 (mn10300_tune_cpu): New variable.
827 (mn10300_handle_option): Handle -mam34 and -mtune options.
828 (mn10300_option_override): Convert tune string into tune cpu variable.
829 (mn10300_legitimate_constant_p): Delete unused local variable.
830 (is_load_insn): New function.
831 (is_store_insn): New function.
832 (mn10300_adjust_schedule_cost): New function.
833 (TARGET_SCHED_ADJUST_COST): Define.
834 * config/mn10300/mn10300.opt (mam34): New option.
835 (mtune): New option.
836 * config/mn10300/mn10300.h (TARGET_CPU_CPP_BUILTINS): Add AM34 support.
837 (enum processor_type): Add AM34.
838 (TARGET_AM34): Define.
839 * config/mn10300/mn10300.md (attr cpu): Add am34.
840 Add pipeline description.
841 (movqi, movhi, movsi, movsf, movdf, movdi): Fix predicates.
842 Remove unneeded alternatives. Add timing attribute.
843 (pop_pic_reg, am33_addsi3, mn10300_addsi3, am33_subsi3,
844 mn10300_subsi3, mulsidi3, umulsidi3, am33_mulsi3,
845 mn10300_mulsi3, udivmodsi4_am33, divmodsi4, am33_andsi3,
846 mn10300_andsi3, am33_iorsi3, mn10300_iorsi3, am33_xorsi3,
847 mn10300_xorsi3, byte_clear, byte_set, bit_clear1, bit_clear2,
848 bit_set, am33_iorqi3, mn10300_iorqi3, test_byte_bitfield,
849 bit_test, subreg_bit_test, cmpsi, am33_cmpsf, am33_subsi3,
850 float_conditional_branch, jump, indirect_jump, tablejump,
851 call_internal, call_value_internal, zero_extendqisi2_am33,
852 zero_extendqisi2_mn10300, zero_extendhisi2_am33,
853 zero_extendhisi2_mn10300, extendqisi2_am33, extendqisi2_mn10300,
854 extendhisi2_am33, extendhisi2_mn10300, am33_ashlsi3,
855 mn10300_ashlsi3, am33_lshrsi3, mn10300_lshrsi3, am33_ashrisi3,
856 mn10300_ashrsi3, abssf2_am33_2, negsf2_am33_2, rsqrtsf2,
857 addsf3_internal, subsf3_internal, mulsf3_internal, divsf3,
858 fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4, return_internal,
859 return_internal_regs, store_movm, return, call_next_insn):
860 Add timing attribute.
861 (am33_subsi3): Add missing clobber of CC_REG.
862 (am33_andsi3, mn10300_andsi3): Fix compile time warnings.
863 (udivmodsi4, udivmodsi4_insn, divmodsi4, test_byte_bitfield,
864 subreg_bit_test, zero_extendqisi2, zero_extendhisi2,
865 extendqisi2): Fix predicates.
866 (call_internal, call_internal_value): Separate alternatives.
867 * config/mn10300/t-mn10300: Add AM34 multilib.
868
869 2010-10-29 Paolo Bonzini <bonzini@gnu.org>
870
871 * config/sh/sh.c (sh_promote_function_mode): Use
872 default_promote_function_mode if !sh_promote_prototypes.
873
874 2010-10-28 Paolo Bonzini <bonzini@gnu.org>
875
876 * recog.c (split_all_insns): Remove dead code.
877
878 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
879
880 * score.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
881
882 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
883
884 * config/cris/cris.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
885 (FUNCTION_ARG_ADVANCE): Delete.
886 * config/cris/cris.c (cris_function_arg_1, cris_function_arg): New
887 functions.
888 (cris_function_incoming_arg, cris_function_arg_advance): New functions.
889 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
890 (TARGET_FUNCTION_ARG_ADVANCE): Define.
891
892 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
893
894 * config/lm32/lm32-protos.h (lm32_function_arg): Delete.
895 * config/lm32/lm32.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
896 * config/mcore/mcore.c (mcore_function_arg): Declare. Make static.
897 Take a const_tree and a bool.
898 (mcore_function_arg_advance): New function.
899 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
900
901 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
902
903 * config/mcore/mcore-protos.h (mcore_function_arg): Delete.
904 * config/mcore/mcore.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
905 * config/mcore/mcore.c (mcore_function_arg): Declare. Make static.
906 Take a const_tree and a bool.
907 (mcore_function_arg_advance): New function.
908 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
909
910 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
911
912 * config/h8300/h8300-protos.h (function_arg): Delete.
913 * config/h8300/h8300.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
914 * config/h8300/h8300.c (function_arg): Rename to...
915 (h8300_function_arg): ...this. Make static. Take a const_tree and
916 a bool.
917 (h8300_function_arg_advance): New function.
918 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
919
920 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
921
922 * config/arc/arc.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move code
923 to...
924 * config/arc/arc.c (arc_function_arg): ...here and...
925 (arc_function_arg_advance): ...here. New functions.
926 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
927
928 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
929
930 * config/crx/crx-protos.h (crx_function_arg): Delete.
931 (crx_function_arg_advance): Delete.
932 * config/crx/crx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
933 * config/crx/crx.c (crx_function_arg): Make static. Take a
934 const_tree and a bool.
935 (crx_function_arg_advance): Make static. Take a const_tree and a bool.
936 (enough_regs_for_param): Take a const_tree.
937 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
938
939 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
940
941 * config/m68hc11/m68hc11-protos.h (m68hc11_function_arg): Delete.
942 (m68hc11_function_arg_advance): Delete.
943 * config/m68hc11/m68hc11.h (FUNCTION_ARG): Delete.
944 (FUNCTION_ARG_ADVANCE): Delete.
945 * config/m68hc11/m68hc11.c (m68hc11_function_arg): Make static.
946 Take a const_tree and a bool.
947 (m68hc11_function_arg_advance): Likewise.
948 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
949
950 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
951
952 * config/stormy16/stormy16-protos.h (xstormy16_function_arg): Delete.
953 (xstormy16_function_arg_advance): Delete.
954 * config/stormy16/stormy16.h (FUNCTION_ARG): Delete.
955 (FUNCTION_ARG_ADVANCE): Delete.
956 * config/stormy16/stormy16.c (xstormy16_function_arg): Make static.
957 Take a const_tree and a bool.
958 (xstormy16_function_arg_advance): Likewise. Return void, updating
959 the CUM parameter instead.
960 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
961
962 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
963
964 * config/moxie/moxie-protos.h (moxie_function_arg): Delete.
965 * config/moxie/moxie.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
966 (MOXIE_FUNCTION_ARG_SIZE): Move to...
967 * config/moxie/moxie.c (MOXIE_FUNCTION_ARG_SIZE): ...here.
968 (moxie_function_arg): Make static. Take a const_tree and a bool.
969 (moxie_function_arg_advance): New function.
970 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
971
972 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
973
974 * config/mn10300/mn10300-protos.h (function_arg): Delete.
975 * config/mn10300/mn10300.h (FUNCTION_ARG): Delete.
976 (FUNCTION_ARG_ADVANCE): Delete.
977 * config/mn10300/mn10300.c (function_arg): Rename to...
978 (mn10300_function_arg): ...this. Make static. Take a const_tree
979 and a bool.
980 (mn10300_function_arg_advance): New function.
981 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
982
983 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
984
985 * config/iq2000/iq2000-protos.h (function_arg): Delete.
986 (function_arg_advance): Delete.
987 * config/iq2000/iq2000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
988 * config/iq2000/iq2000.c (function_arg): Rename to...
989 (iq2000_function_arg): ...this. Make static. Take a const_tree and
990 a bool.
991 (function_arg_advance): Rename to...
992 (iq2000_function_arg_advance): ...this. Make static. Take a
993 const_tree and a bool.
994 (iq2000_expand_prologue): Call iq2000_function_arg_advance and
995 iq2000_function_arg.
996 (iq2000_pass_by_reference): Call iq2000_function_arg).
997 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
998
999 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1000
1001 * config/fr30/fr30-protos.h (fr30_num_arg_regs): Delete.
1002 * config/fr30/fr30.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1003 * config/fr30/fr30.c (fr30_num_arg_regs): Make static. Take a
1004 const_tree.
1005 (fr30_function_arg): New function.
1006 (fr30_function_arg_advance): New function.
1007 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
1008
1009 2010-10-28 Nathan Froyd <froydnj@codesourcery.com>
1010
1011 * config/frv/frv-protos.h (frv_function_arg): Delete.
1012 (frv_function_arg_advance): Delete.
1013 * config/frv/frv.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
1014 * config/frv/frv.c (frv_function_arg): Rename to...
1015 (frv_function_arg_1): Make static. Take const_tree and bool arguments.
1016 (frv_function_arg, frv_function_incoming_arg): New functions.
1017 (frv_function_arg_advance): Make static. Take a const_tree and a bool.
1018 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
1019 (TARGET_FUNCTION_ARG_ADVANCE): Define.
1020
1021 2010-10-28 Uros Bizjak <ubizjak@gmail.com>
1022
1023 PR target/46153
1024 * config/i386/sse.md (sse_movhlps_exp): Use destination
1025 returned from ix86_fixup_binary_operands to expand insn.
1026 (sse_movlhps_exp): Ditto.
1027 (sse_loadhps_exp): Ditto.
1028 (sse_loadlps_exp): Ditto.
1029 (sse2_loadhpd_exp): Ditto.
1030 (sse2_loadlpd_exp): Ditto.
1031
1032 2010-10-28 Andrew Stubbs <ams@codesourcery.com>
1033
1034 * config/arm/arm.c (const_ok_for_arm): Support 0xXY00XY00 pattern
1035 constants in thumb2.
1036
1037 2010-10-28 Eric Botcazou <ebotcazou@adacore.com>
1038
1039 * combine.c (set_nonzero_bits_and_sign_copies): Use unsigned
1040 arithmetics in masking operations.
1041 (contains_muldiv): Likewise.
1042 (try_combine): Likewise.
1043 (find_split_point): Likewise.
1044 (combine_simplify_rtx): Likewise.
1045 (simplify_if_then_else): Likewise.
1046 (simplify_set): Likewise.
1047 (expand_compound_operation): Likewise.
1048 (expand_field_assignment): Likewise.
1049 (make_extraction): Likewise.
1050 (extract_left_shift): Likewise.
1051 (make_compound_operation): Likewise.
1052 (force_to_mode): Likewise.
1053 (make_field_assignment): Likewise.
1054 (reg_nonzero_bits_for_combine): Likewise.
1055 (simplify_shift_const_1): Likewise.
1056 (simplify_comparison): Likewise.
1057
1058 2010-10-27 Nathan Froyd <froydnj@codesourcery.com>
1059
1060 * config/ia64/ia64-protos.h (ia64_function_arg): Delete.
1061 (ia64_function_arg_advance): Delete.
1062 * config/ia64/ia64.h (FUNCTION_ARG, FUNCTION_INCOMING_ARG): Delete.
1063 (FUNCTION_ARG_ADVANCE): Delete.
1064 * config/ia64/ia64.c (ia64_function_arg): Rename to...
1065 (ia64_function_arg_1): ...this. Make static. Take const_tree and
1066 bool arguments.
1067 (ia64_function_arg, ia64_function_incoming_arg): New functions.
1068 (ia64_function_arg_advance): Make static. Take a const_tree and
1069 a bool.
1070 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
1071 (TARGET_FUNCTION_ARG_ADVANCE): Define.
1072
1073 2010-10-27 Steve Ellcey <sje@cup.hp.com>
1074
1075 * doc/tm.texi.in (TARGET_GET_RAW_RESULT_MODE): New.
1076 (TARGET_GET_RAW_ARG_MODE): New.
1077 * doc/tm.texi: Regenerate.
1078 * target.def (get_raw_result_mode): New.
1079 (get_raw_arg_mode): New.
1080 * targhooks.c (default_get_reg_raw_mode): New.
1081 * targhooks.h (default_get_reg_raw_mode): New.
1082 * builtins.c (apply_args_size): Use targetm.calls.get_raw_arg_mode.
1083 (apply_result_size): Ditto.
1084 * config/ia64/ia64.c (ia64_get_reg_raw_mode): New.
1085 (TARGET_GET_RAW_RESULT_MODE): Define.
1086 (TARGET_GET_RAW_ARG_MODE): Ditto.
1087
1088 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
1089
1090 * config/sparc/sol2-unwind.h (sparc64_fallback_frame_state): Adjust
1091 for newer Solaris 10 release.
1092 (sparc_fallback_frame_state): Likewise.
1093
1094 2010-10-27 Jason Merrill <jason@redhat.com>
1095
1096 * gimplify.c (gimplify_decl_expr): Handle anonymous artificial
1097 variables sooner.
1098
1099 2010-10-27 Jie Zhang <jie@codesourcery.com>
1100 Maxim Kuvyrkov <maxim@codesourcery.com>
1101
1102 * haifa-sched.c (ISSUE_POINTS): Remove.
1103 (max_issue): Don't issue more than issue_rate instructions.
1104
1105 2010-10-27 Ian Lance Taylor <iant@google.com>
1106
1107 PR target/46197
1108 * config/i386/i386.md (UNSPECV_SPLIT_STACK_RETURN): New.
1109 (split_stack_return): Replace UNSPEC_STACK_CHECK with
1110 UNSPECV_SPLIT_STACK_RETURN.
1111
1112 2010-10-27 H.J. Lu <hongjiu.lu@intel.com>
1113
1114 * config/i386/i386-protos.h (init_cumulative_args): Add an int.
1115
1116 * config/i386/i386.c (block_info): New.
1117 (BLOCK_INFO): Likewise.
1118 (call_avx256_state): Likewise.
1119 (check_avx256_stores): Likewise.
1120 (move_or_delete_vzeroupper_2): Likewise.
1121 (move_or_delete_vzeroupper_1): Likewise.
1122 (move_or_delete_vzeroupper): Likewise.
1123 (use_avx256_p): Likewise.
1124 (function_pass_avx256_p): Likewise.
1125 (flag_opts): Add -mvzeroupper.
1126 (ix86_option_override_internal): Turn on MASK_VZEROUPPER by
1127 default for TARGET_AVX. Turn off MASK_VZEROUPPER if TARGET_AVX
1128 is disabled.
1129 (ix86_function_ok_for_sibcall): Disable sibcall if we need to
1130 generate vzeroupper.
1131 (init_cumulative_args): Add an int to indicate caller. Set
1132 use_avx256_p, callee_return_avx256_p and caller_use_avx256_p
1133 based on return type.
1134 (ix86_function_arg): Set use_avx256_p, callee_pass_avx256_p and
1135 caller_pass_avx256_p based on argument type.
1136 (ix86_expand_epilogue): Emit vzeroupper if 256bit AVX register
1137 is used, but not returned by caller.
1138 (ix86_expand_call): Emit vzeroupper if 256bit AVX register is used.
1139 (ix86_local_alignment): Set use_avx256_p if 256bit AVX register
1140 is used.
1141 (ix86_minimum_alignment): Likewise.
1142 (ix86_expand_special_args_builtin): Set target to
1143 GEN_INT (vzeroupper_intrinsic) for CODE_FOR_avx_vzeroupper.
1144 (ix86_reorg): Run the vzeroupper optimization if needed.
1145
1146 * config/i386/i386.h (ix86_args): Add caller.
1147 (INIT_CUMULATIVE_ARGS): Updated.
1148 (machine_function): Add use_vzeroupper_p, use_avx256_p,
1149 caller_pass_avx256_p, caller_return_avx256_p,
1150 callee_pass_avx256_p and callee_return_avx256_p.
1151
1152 * config/i386/i386.opt (-mvzeroupper): New.
1153
1154 * config/i386/predicates.md (vzeroupper_operation): Removed.
1155
1156 * config/i386/sse.md (avx_vzeroupper): Removed.
1157 (*avx_vzeroupper): Removed.
1158 (avx_vzeroupper): New.
1159
1160 * doc/invoke.texi: Document -mvzeroupper.
1161
1162 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
1163
1164 * config/i386/t-mingw32 (SHLIB_LC): Add -lmingwthrd.
1165 * config/i386/t-mingw-w32 (SHLIB_LC): Likewise.
1166 * config/i386/t-mingw-w64 (SHLIB_LC): Likewise.
1167
1168 2010-10-27 Eric Botcazou <ebotcazou@adacore.com>
1169 Olivier Hainque <hainque@adacore.com>
1170
1171 * config/i386/w32-unwind.h (i386_w32_fallback_frame_state): Fix regnum
1172 of EBP. Do not restore reg #9. Remove +1 adjustment to EIP and set
1173 fs->signal_frame instead.
1174
1175 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1176
1177 * c-parser.c (cp_parser_objc_at_property_declaration): Removed
1178 parsing of RID_COPIES and RID_IVAR.
1179
1180 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1181
1182 * c-parser.c (c_parser_objc_at_property_declaration): Recognize
1183 RID_ASSIGN, RID_COPY, RID_RETAIN, RID_READWRITE and RID_NONATOMIC.
1184 Do not use objc_set_property_attr, but use local variables
1185 instead. Detect repeated usage of setter, getter and ivar
1186 attributes. Improved error processing when a setter name does not
1187 end in ':'. Do not check for CPP_CLOSE_PAREN after we determined
1188 that the token is a keyword. Updated call to
1189 objc_add_property_declaration.
1190
1191 2010-10-27 Nicola Pero <nicola.pero@meta-innovation.com>
1192
1193 * c-parser.c (c_parser_objc_at_property): Renamed to
1194 c_parser_objc_at_property_declaration. Updated calls to
1195 objc_add_property_variable, now objc_add_property_declaration.
1196 Code rewritten to be much more robust in recovering from syntax
1197 errors. Added comments.
1198 (c_parser_objc_property_attrlist): Removed.
1199 (c_parser_external_declaration): Updated calls to
1200 c_parser_objc_at_property, now
1201 c_parser_objc_at_property_declaration.
1202 (c_parser_objc_methodprotolist): Same change.
1203
1204 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
1205
1206 * config/i386/i386.md (split_stack_return): Put back unspec_volatile.
1207
1208 2010-10-26 Jan Hubicka <jh@suse.cz>
1209
1210 * ipa.c (process_references): Enqueue all referenced nodes;
1211 mark as reachable only non-external nodes.
1212 (cgraph_remove_unreachable_nodes): All referenced nodes should
1213 be enqueued; remove bogues node->needed check.
1214
1215 2010-10-26 Jan Hubicka <jh@suse.cz>
1216
1217 * cgraphbuild.c (build_cgraph_edges): Use ipa-reference
1218 to represent OMP.
1219
1220 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
1221
1222 * config/i386/i386.md (split_stack_return): Replace
1223 unspec_volatile with unspec.
1224
1225 2010-10-26 Jonathan Wakely <jwakely.gcc@gmail.com>
1226
1227 * doc/install.texi: Fix typo in --with-sysroot description.
1228
1229 2010-10-26 Jan Hubicka <jh@suse.cz>
1230
1231 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p):
1232 Use info provided by linker plugin.
1233
1234 2010-10-26 Jason Merrill <jason@redhat.com>
1235
1236 * varasm.c (constructor_static_from_elts_p): Don't require a
1237 CONSTRUCTOR to have elements to be suitable for static
1238 initialization. Allow ARRAY_TYPE as well.
1239
1240 2010-10-26 Jan Hubicka <jh@suse.cz>
1241
1242 PR middle-end/45736
1243 * cgraph.c (cgraph_set_readonly_flag): Rename to...
1244 (cgraph_set_const_flags) ... this one; get also looping argument;
1245 clear constructor/destructor flags.
1246 (cgraph_set_pure_flag): Likewise.
1247 (cgraph_set_looping_const_or_pure_flag): Remove.
1248 (cgraph_can_remove_if_no_direct_calls_and_refs): Do not try
1249 to optimize away static ctors/dtors; it does not work on inline clones;
1250 external functions can always be rmeoved.
1251 (cgraph_will_be_removed_from_program_if_no_direct_calls): Assert on
1252 inline clones; in LTO external functions always can go.
1253 (cgraph_used_from_object_file_p): Handle EXTERNAL functions correctly.
1254 (cgraph_mark_address_taken_node): Assert that we are not taking
1255 address of inline clone.
1256 (cgraph_can_remove_if_no_direct_calls_p): We always eventually remove
1257 external functions.
1258 * ipa-cp.c (ipcp_cloning_candidate_p): Do not clone functions with
1259 address taken.
1260 (ipcp_initialize_node_lattices): Only local functions can be
1261 handled without cloning.
1262 * cgraph.h (cgraph_set_readonly_flag,
1263 cgraph_set_looping_const_or_pure_flag): Remove.
1264 (cgraph_set_const_flag): Declare.
1265 (cgraph_set_pure_flag): Update.
1266 * ipa-pure-const (propagate_pure_const, local_pure_const): Update
1267 flags setting code.
1268 * ipa.c (cgraph_remove_unreachable_nodes): Fix formating; do not
1269 look at inline clones; fix handling of external definitions.
1270 (cgraph_postorder): Do not look at inline clones in the first pass.
1271 (function_and_variable_visibility): Drop constructors/destructor
1272 flags at pure and const functions.
1273 * tree-profile.c (tree_profiling): Update.
1274 * ipa-inline.c (cgraph_clone_inlined_nodes): Always clone functions with
1275 address taken; external functions do not account to whole program size.
1276 (cgraph_decide_inlining): Likewise; do not try to inline
1277 functions already inlined.
1278
1279 2010-10-26 Jie Zhang <jie@codesourcery.com>
1280
1281 * doc/invoke.texi: Improve documentation of
1282 -fstrict-volatile-bitfields.
1283
1284 2010-10-26 Ira Rosen <irar@il.ibm.com>
1285
1286 PR tree-optimization/46167
1287 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Check that there
1288 is basic block for the statement.
1289
1290 2010-10-26 Paul Koning <ni1d@arrl.net>
1291
1292 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Update to
1293 current definition of struct_real_format.
1294
1295 2010-10-26 H.J. Lu <hongjiu.lu@intel.com>
1296
1297 PR target/44948
1298 * config/i386/i386.c (ix86_old_function_arg_boundary): New.
1299 (ix86_function_arg_boundary): Always align parameters on stack
1300 in 64bit and align parameters with alignment >= 16byte on stack
1301 in 32bit. Warn alignment change.
1302
1303 2010-10-26 Ian Lance Taylor <iant@google.com>
1304
1305 PR middle-end/45687
1306 * ipa-prop.c (ipa_modify_call_arguments): Correct type of MEM_REF
1307 offset.
1308
1309 2010-10-25 Rodrigo Rivas Costa <rodrigorivascosta@gmail.com>
1310
1311 Implement opaque-enum-specifiesr for C++0x
1312 * tree.h (ENUM_IS_OPAQUE): New.
1313 * dwarf2out.c (gen_enumeration_type_die): Use ENUM_IS_OPAQUE.
1314
1315 2010-10-26 Jie Zhang <jie@codesourcery.com>
1316
1317 * stor-layout.c (layout_decl): Use the field's type to
1318 determine the mode and keep DECL_BIT_FIELD for a volatile bit-field.
1319 * config/arm/arm.c (arm_override_options): Default to
1320 -fstrict-volatile-bitfields.
1321
1322 2010-10-25 Paul Koning <ni1d@arrl.net>
1323
1324 * config/pdp11/pdp11.md: Add define_constants for register
1325 numbers, branch offset limits.
1326 * config/pdp11/pdp11.c: Use named constants instead of numbers.
1327 * config/pdp11.pdp11.h: Ditto.
1328
1329 2010-10-25 Eric Botcazou <ebotcazou@adacore.com>
1330
1331 * configure.ac: Use $cpu_type instead of $target to define the nop.
1332 * configure: Regenerate.
1333
1334 2010-10-25 Jie Zhang <jie@codesourcery.com>
1335
1336 * combine.c (try_combine): If insns need to be kept around, check that
1337 they can be copied in the merged instruction.
1338
1339 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
1340
1341 * reg-stack.c (convert_regs_1): Return boolean value, true if the CFG
1342 has been modified.
1343 (convert_regs_2): Likewise. Adjust calls to convert_regs_1.
1344 (convert_regs): Adjust calls to convert_regs_2. Clean up the CFG if
1345 it has been modified.
1346
1347 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
1348
1349 * config/sparc/sparc.c (sparc_type_code) <NULLPTR_TYPE>: New case.
1350
1351 2010-10-24 Paul Koning <ni1d@arrl.net>
1352
1353 * config/pdp11/pdp11.md: Change length attribute to be in bytes.
1354 * config/pdp11/pdp11.c (output_jump): Ditto.
1355
1356 2010-10-24 Ian Lance Taylor <iant@google.com>
1357
1358 * config/i386/i386.c (ix86_va_start): Remove extraneous blank line.
1359
1360 2010-10-24 Eric Botcazou <ebotcazou@adacore.com>
1361
1362 * cfglayout.c (fixup_reorder_chain): When ensuring that there is at
1363 least one insn with a locus corresponding to an edge's goto_locus,
1364 disregard non-fallthru edges to the exit block and merge the blocks
1365 created for the same goto_locus.
1366
1367 2010-10-23 Joseph Myers <joseph@codesourcery.com>
1368
1369 * gcc.c (n_switches_alloc_debug_check): New.
1370 (set_option_handlers): New.
1371 (process_command): Use set_option_handlers.
1372 (do_self_spec): Pass spec-generated options through option handlers.
1373 (main): Also save and restore n_switches_alloc when swapping
1374 switch arrays.
1375
1376 2010-10-23 Richard Henderson <rth@redhat.com>
1377
1378 PR target/46144
1379 * config/i386/sse.md (*avx_absneg<AVXMODEF2P>2): New.
1380 (*sse_absneg<SSEMODEF2P>2): Rename from *absneg<VEC_FLOAT_MODE>2.
1381 Honor matching operands when splitting to XOR.
1382
1383 2010-10-23 Ian Lance Taylor <iant@google.com>
1384
1385 * tree-vrp.c (extract_range_from_binary_expr): If
1386 flag_non_call_exceptions don't eliminate division by zero.
1387 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
1388
1389 2010-10-23 Nathan Froyd <froydnj@codesourcery.com>
1390
1391 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Define
1392 __BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__, __ORDER_BIG_ENDIAN__, and
1393 __ORDER_PDP_ENDIAN__.
1394 * libgcc2.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1395 (struct DWstruct): Define based on __BYTE_ORDER__.
1396 * config/fixed-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1397 (struct INTstruct): Define based on __BYTE_ORDER__.
1398 * config/dfp-bit.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1399 (LIBGCC2_FLOAT_WORDS_BIG_ENDIAN): Test __BYTE_ORDER__.
1400 * system.h (LIBGCC2_WORDS_BIG_ENDIAN): Poison identifier.
1401 * config/arc/arc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1402 * config/arm/arm.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1403 * config/ia64/ia64.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1404 * config/iq2000/iq2000.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1405 * config/lm32/lm32.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1406 * config/m32r/m32r.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1407 * config/mcore/mcore.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1408 * config/mep/mep.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1409 * config/mips/mips.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1410 * config/rs6000/sysv4.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1411 * config/rx/rx.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1412 * config/score/score.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1413 * config/sh/sh.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1414 * config/sparc/sparc.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1415 * config/xtensa/xtensa.h (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1416 * doc/tm.texi.in (LIBGCC2_WORDS_BIG_ENDIAN): Delete.
1417 * doc/tm.texi: Regenerate.
1418 * doc/cpp.texi (__BYTE_ORDER__, __ORDER_LITTLE_ENDIAN__): Document.
1419 (__ORDER_BIG_ENDIAN__, __ORDER_PDP_ENDIAN__): Likewise.
1420
1421 2010-10-23 Jie Zhang <jie@codesourcery.com>
1422
1423 PR rtl-optimization/37360
1424 * config/mips/mips.c (cached_can_issue_more): New local variable.
1425 (mips_sched_reorder_1): New.
1426 (mips_sched_reorder): Use mips_sched_reorder_1.
1427 (mips_sched_reorder2): New.
1428 (mips_variable_issue): Set cached_can_issue_more.
1429 (TARGET_SCHED_REORDER2): Define to mips_sched_reorder2
1430 instead of mips_sched_reorder.
1431
1432 Revert:
1433 2008-09-09 Andrey Belevantsev <abel@ispras.ru>
1434 PR rtl-optimization/37360
1435 * haifa-sched.c (max_issue): Do not assert that we never issue more
1436 insns than issue_rate. Add comment.
1437
1438 2010-10-22 Eric Botcazou <ebotcazou@adacore.com>
1439
1440 * gimplify.c (gimplify_variable_sized_compare): Preserve the source
1441 location info of the expression.
1442
1443 2010-10-22 DJ Delorie <dj@redhat.com>
1444
1445 * doc/extend.texi (Named Address Spaces): Document the M32C named
1446 address space.
1447
1448 * config/m32c/m32c-pragma.c (m32c_register_pragmas): Register the
1449 __far address space.
1450 * config/m32c/m32c.h (ADDR_SPACE_FAR): New. Add support for
1451 "__far" address space for R8C and M16C processor variants.
1452 * config/m32c/m32c.c (m32c_addr_space_legitimate_address_p): New.
1453 (far_addr_space_p): New.
1454 (encode_pattern_1): Add sign and zero extend support.
1455 (m32c_hard_regno_nregs_1): Large pointers in A16 mode are SImode.
1456 (m32c_extra_constraint_p2): Add SF constraint.
1457 (m32c_legitimate_address_p): Support __far addresses.
1458 (m32c_addr_space_pointer_mode): New.
1459 (m32c_addr_space_address_mode): New.
1460 (m32c_addr_space_legitimate_address_p): New.
1461 (m32c_addr_space_legitimize_address): New.
1462 (m32c_addr_space_subset_p): New.
1463 (m32c_addr_space_convert): New.
1464 (conversions): Add __far operand patterns.
1465 (m32c_prepare_move): Force constants into registers for __far moves.
1466 (m32c_split_move): __far moves are always split.
1467 * config/m32c/addsub.md (addsi3_1): Support SImode symbols.
1468 * config/m32c/mov.md (mov<mode>_far_op1): New.
1469 (mov<mode>_far_op2): New.
1470 (movqi_op): Add __far (SF) support.
1471 (movhi_op): Likewise.
1472 (movsi_splittable): Split A1A0 also.
1473
1474 2010-10-22 Artjoms Sinkarovs <artyom.shinakroff@gmail.com>
1475 Andrew Pinski <pinskia@gmail.com>
1476
1477 * c-typeck.c (build_array_ref): Handle subscripting of vectors.
1478 * doc/extend.texi: New paragraph
1479
1480 2010-10-22 Paul Koning <ni1d@arrl.net>
1481
1482 * config.pdp11/pdp11.h (DBX_DEBUGGING_INFO): Define.
1483
1484 2010-10-22 DJ Delorie <dj@redhat.com>
1485
1486 * config/m32c/m32c-lib1.S (m32c_jsri16): Make reentrant.
1487
1488 2010-10-22 Paul Koning <ni1d@arrl.net>
1489
1490 * config/pdp11/pdp11.h (IRA_COVER_CLASSES): Define.
1491
1492 2010-10-22 Richard Henderson <rth@redhat.com>
1493
1494 * config/i386/i386.c (ix86_builtin_vectorized_function): Add
1495 cases for __builtin_fma and __builtin_fmaf.
1496
1497 2010-10-22 Richard Henderson <rth@redhat.com>
1498
1499 * config/i386/i386.c (ix86_expand_fp_absneg_operator): Produce
1500 NEG+USE for vectors as well.
1501 * config/i386/i386.md (*absneg<VEC_FLOAT_MODE>2): New pattern
1502 and splitter.
1503
1504 2010-10-22 Joseph Myers <joseph@codesourcery.com>
1505
1506 * gcc.c (DEFAULT_SWITCH_CURTAILS_COMPILATION,
1507 SWITCH_CURTAILS_COMPILATION): Remove.
1508 * doc/tm.texi.in (SWITCH_CURTAILS_COMPILATION): Remove documentation.
1509 * doc/tm.texi: Regenerate.
1510 * system.h (SWITCH_CURTAILS_COMPILATION): Poison.
1511
1512 2010-10-22 Changpeng Fang <changpeng.fang@amd.com>
1513
1514 * config/i386/bdver1.md: New file.
1515 * config/i386/i386.md (include "bdver1.md"): Invoke the
1516 pipeline description for bdver1.
1517 (x86_sahf_1): Add "bdver1_decode" attribute.
1518 (*cmpfp_i_mixed): Likewise.
1519 (*cmpfp_i_sse): Likewise.
1520 (*cmpfp_i_i387): Likewise.
1521 (*cmpfp_iu_mixed): Likewise.
1522 (*cmpfp_iu_sse): Likewise.
1523 (*cmpfp_iu_387): Likewise.
1524 (*swap<mode>,*swap<mode>_1): Likewise.
1525 (fixuns_trunc<mode>hi2): Likewise.
1526 (fix_trunc<mode>si_sse): Likewise.
1527 (x86_fnstcw_1): Likewise.
1528 (x86_fldcw_1): Likewise.
1529 (*floatsi<mode>2_vector_mixed_with_temp): Likewise.
1530 (*floatsi<mode>2_vector_mixed): Likewise.
1531 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_with_temp): Likewise.
1532 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_interunit): Likewise.
1533 (*float<SSEMODEI24:mode><MODEF:mode>2_mixed_nointerunit): Likewise.
1534 (*floatsi<mode>2_vector_sse_with_temp): Likewise.
1535 (*floatsi<mode>2_vector_sse): Likewise.
1536 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_with_temp): Likewise.
1537 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_interunit): Likewise.
1538 (*float<SSEMODEI24:mode><MODEF:mode>2_sse_nointerunit): Likewise.
1539 (*mul<mode>3_1): Likewise.
1540 (*mulsi3_1_zext): Likewise.
1541 (*mulhi3_1): Likewise.
1542 (*mulqi3_1): Likewise.
1543 (*<u>mul<mode><dwi>3_1): Likewise.
1544 (*<u>mulqihi3_1): Likewise.
1545 (*<s>muldi3_highpart_1): Likewise.
1546 (*<s>mulsi3_highpart_1): Likewise.
1547 (*<s>mulsi3_highpart_zext): Likewise.
1548 (x86_64_shld): Likewise.
1549 (x86_shld): Likewise.
1550 (x86_64_shrd): Likewise.
1551 (x86_shrd): Likewise.
1552 (sqrtxf2): Likewise.
1553 (sqrt_extend<mode>xf2_i387): Likewise.
1554 (*sqrt<mode>2_sse): Likewise.
1555 * config/i386/sse.md (sse_cvtsi2ss): Add "bdver1_decode" attribute.
1556 (sse_cvtsi2ssq): Likewise.
1557 (sse_cvtss2si): Likewise.
1558 (sse_cvtss2si_2): Likewise.
1559 (sse_cvtss2siq): Likewise.
1560 (sse_cvtss2siq_2): Likewise.
1561 (sse_cvttss2si): Likewise.
1562 (sse_cvttss2siq): Likewise.
1563 (sse2_cvtpi2pd): Likewise.
1564 (sse2_cvttpd2pi): Likewise.
1565 (sse2_cvtsi2sd): Likewise.
1566 (sse2_cvtsi2sdq): Likewise.
1567 (sse2_cvtsd2si): Likewise.
1568 (sse2_cvtsd2si_2): Likewise.
1569 (sse2_cvtsd2siq): Likewise.
1570 (sse2_cvtsd2siq_2): Likewise.
1571 (sse2_cvttsd2si): Likewise.
1572 (sse2_cvttsd2siq): Likewise.
1573 (*sse2_cvtpd2dq): Likewise.
1574 (*sse2_cvttpd2dq): Likewise.
1575 (sse2_cvtsd2ss): Likewise.
1576 (sse2_cvtss2sd): Likewise.
1577 (*sse2_cvtpd2ps): Likewise.
1578 (sse2_cvtps2pd): Likewise.
1579
1580 2010-10-22 Richard Guenther <rguenther@suse.de>
1581
1582 PR middle-end/46137
1583 * gimple-fold.c (gimplify_and_update_call_from_tree): Properly
1584 remove the virtual operands if they are not needed.
1585
1586 2010-10-22 Changpeng Fang <changpeng.fang@amd.com>
1587
1588 * config/i386/i386.c (processor_costs bdver1_cost): Update
1589 insn costs and architectural parameters for bdver1.
1590
1591 2010-10-22 Richard Guenther <rguenther@suse.de>
1592
1593 * gimple.h (gimple_register_canonical_type): Declare.
1594 * gimple.c (gimple_canonical_types): New global hashtable.
1595 (struct gimple_type_leader_entry_s): New type.
1596 (gimple_type_leader): New global cache.
1597 (gimple_lookup_type_leader): New function.
1598 (gtc_visit): Query the proper cache.
1599 (gimple_types_compatible_p): Likewise.
1600 (gimple_register_type): Use the new cache instead of TYPE_CANONICAL.
1601 (gimple_canonical_type_eq): New function.
1602 (gimple_register_canonical_type): Likewise.
1603 (print_gimple_types_stats): Adjust for gimple_canonical_types.
1604 (free_gimple_type_tables): Likewise. Free gimple_type_leader.
1605 * tree-ssa.c (useless_type_conversion_p): Do not dispatch to
1606 gimple_types_compatible_p for LTO.
1607
1608 2010-10-22 Uros Bizjak <ubizjak@gmail.com>
1609
1610 PR target/46098
1611 * config/i386/sse.md (*avx_movu<ssemodesuffix><avxmodesuffix>):
1612 Rename from avx_movu<ssemodesuffix><avxmodesuffix>.
1613 (avx_movu<ssemodesuffix><avxmodesuffix>): New expander.
1614 (*<sse>_movu<ssemodesuffix>): Rename from <sse>_movu<ssemodesuffix>.
1615 (<sse>_movu<ssemodesuffix>): New expander.
1616 (*avx_movdqu<avxmodesuffix>): Rename from avx_movdqu<avxmodesuffix>.
1617 (avx_movdqu<avxmodesuffix>): New expander.
1618 (*sse2_movdqu): Rename from sse2_movdqu.
1619 (sse2_movdqu): New expander.
1620
1621 2010-10-22 Richard Guenther <rguenther@suse.de>
1622
1623 PR tree-optimization/45720
1624 * tree-vect-data-refs.c (vect_update_misalignment_for_peel):
1625 Handle negative step.
1626 (vect_enhance_data_refs_alignment): Likewise.
1627 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Likewise.
1628 (vect_create_cond_for_align_checks): Likewise.
1629 (vect_create_cond_for_alias_checks): Likewise.
1630
1631 2010-10-22 Ira Rosen <irar@il.ibm.com>
1632
1633 PR tree-optimization/46126
1634 * tree-vect-stmts.c (vect_analyze_stmt): Pass NODE to
1635 vectorizable_shift in case of basic block vectorization.
1636
1637 2010-10-22 Joseph Myers <joseph@codesourcery.com>
1638
1639 * target.h (enum opt_levels, struct default_options): New.
1640 * target.def (handle_ofast): Remove hook.
1641 (target_option.optimization): Change to
1642 target_option.optimization_table.
1643 * doc/tm.texi.in (TARGET_OPTION_OPTIMIZATION): Change to
1644 TARGET_OPTION_OPTIMIZATION_TABLE.
1645 (CAN_DEBUG_WITHOUT_FP): Remove.
1646 * doc/tm.texi: Regenerate.
1647 * opts.c (maybe_default_option, maybe_default_options,
1648 default_options_table): New.
1649 (default_options_optimization): Take extra parameters. Don't
1650 assert that global_options and global_options_set are in use. Use
1651 maybe_default_options.
1652 (decode_options): Pass extra parameters to
1653 default_options_optimization.
1654 * common.opt (falign-loops): Use value 0 with Var.
1655 (frerun-cse-after-loop, ftree-ter): Remove Init.
1656 * system.h (CAN_DEBUG_WITHOUT_FP, TARGET_HANDLE_OFAST,
1657 TARGET_OPTION_OPTIMIZATION): Remove.
1658 * targhooks.c (empty_optimization_table): New.
1659 * targhooks.h (empty_optimization_table): Declare.
1660 * toplev.c (process_options): Don't set flag_rerun_cse_after_loop.
1661 * config/alpha/alpha.c (alpha_option_optimization_table,
1662 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1663 * config/alpha/alpha.h (CAN_DEBUG_WITHOUT_FP): Remove.
1664 * config/arm/arm.c (arm_option_optimization: Change to
1665 arm_option_optimization_table.
1666 (TARGET_OPTION_OPTIMIZATION): Change to
1667 TARGET_OPTION_OPTIMIZATION_TABLE.
1668 * config/arm/arm.h (CAN_DEBUG_WITHOUT_FP): Remove.
1669 * config/avr/avr.c (avr_option_optimization_table,
1670 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1671 * config/avr/avr.h (CAN_DEBUG_WITHOUT_FP): Remove.
1672 * config/cris/cris.c (cris_option_optimization): Change to
1673 cris_option_optimization_table.
1674 (TARGET_OPTION_OPTIMIZATION): Change to
1675 TARGET_OPTION_OPTIMIZATION_TABLE.
1676 * config/crx/crx.c (crx_option_optimization): Change to
1677 crx_option_optimization_table.
1678 (TARGET_OPTION_OPTIMIZATION): Change to
1679 TARGET_OPTION_OPTIMIZATION_TABLE.
1680 * config/crx/crx.h (CAN_DEBUG_WITHOUT_FP): Remove.
1681 * config/fr30/fr30.c (fr30_option_optimization_table,
1682 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1683 * config/fr30/fr30.h (CAN_DEBUG_WITHOUT_FP): Remove.
1684 * config/frv/frv.c (frv_option_optimization_table,
1685 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1686 * config/frv/frv.h (CAN_DEBUG_WITHOUT_FP): Remove.
1687 * config/h8300/h8300.c (h8300_option_optimization): Change to
1688 h8300_option_optimization_table.
1689 (TARGET_OPTION_OPTIMIZATION): Change to
1690 TARGET_OPTION_OPTIMIZATION_TABLE.
1691 * config/h8300/h8300.h (CAN_DEBUG_WITHOUT_FP): Remove.
1692 * config/i386/i386.c (ix86_option_optimization): Change to
1693 ix86_option_optimization_table.
1694 (TARGET_OPTION_OPTIMIZATION): Change to
1695 TARGET_OPTION_OPTIMIZATION_TABLE.
1696 * config/i386/sol2-10.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
1697 as initializer.
1698 * config/ia64/ia64.c (ia64_option_optimization): Change to
1699 ia64_option_optimization_table.
1700 (TARGET_OPTION_OPTIMIZATION): Change to
1701 TARGET_OPTION_OPTIMIZATION_TABLE.
1702 * config/ia64/ia64.h (CAN_DEBUG_WITHOUT_FP): Remove.
1703 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define as
1704 initializer.
1705 * config/iq2000/iq2000.c (iq2000_option_optimization_table,
1706 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1707 * config/iq2000/iq2000.h (CAN_DEBUG_WITHOUT_FP): Remove.
1708 * config/lm32/lm32.c (lm32_option_optimization_table,
1709 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1710 * config/lm32/lm32.h (CAN_DEBUG_WITHOUT_FP): Remove.
1711 * config/m32r/m32r.c (m32r_option_optimization): Change to
1712 m32r_option_optimization_table.
1713 (TARGET_OPTION_OPTIMIZATION): Change to
1714 TARGET_OPTION_OPTIMIZATION_TABLE.
1715 * config/m32r/m32r.h (SUBTARGET_OPTIMIZATION_OPTIONS,
1716 CAN_DEBUG_WITHOUT_FP): Remove.
1717 * config/mcore/mcore.c (mcore_option_optimization): Change to
1718 mcore_option_optimization_table.
1719 (TARGET_OPTION_OPTIMIZATION): Change to
1720 TARGET_OPTION_OPTIMIZATION_TABLE.
1721 * config/mep/mep.c (mep_option_optimization): Change to
1722 mep_option_optimization_table.
1723 (TARGET_OPTION_OPTIMIZATION): Change to
1724 TARGET_OPTION_OPTIMIZATION_TABLE.
1725 * config/mep/mep.h (CAN_DEBUG_WITHOUT_FP): Remove.
1726 * config/microblaze/microblaze.c
1727 (microblaze_option_optimization_table,
1728 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1729 * config/microblaze/microblaze.h (CAN_DEBUG_WITHOUT_FP): Remove.
1730 * config/mips/mips.c (mips_option_optimization_table,
1731 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1732 * config/mips/mips.h (CAN_DEBUG_WITHOUT_FP): Remove.
1733 * config/mmix/mmix.c (mmix_option_optimization): Change to
1734 mmix_option_optimization_table.
1735 (TARGET_OPTION_OPTIMIZATION): Change to
1736 TARGET_OPTION_OPTIMIZATION_TABLE.
1737 * config/mmix/mmix.h (CAN_DEBUG_WITHOUT_FP): Remove.
1738 * config/mn10300/mn10300.c (mn10300_option_optimization_table,
1739 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1740 * config/mn10300/mn10300.h (CAN_DEBUG_WITHOUT_FP): Remove.
1741 * config/pa/pa.c (pa_option_optimization_table,
1742 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1743 * config/pa/pa.h (CAN_DEBUG_WITHOUT_FP): Remove.
1744 * config/pdp11/pdp11.c (pdp11_option_optimization): Change to
1745 pdp11_option_optimization_table.
1746 (TARGET_OPTION_OPTIMIZATION): Change to
1747 TARGET_OPTION_OPTIMIZATION_TABLE.
1748 * config/picochip/picochip.c (picochip_option_optimization_table,
1749 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1750 * config/picochip/picochip.h (CAN_DEBUG_WITHOUT_FP): Remove.
1751 * config/rs6000/rs6000.c (rs6000_option_optimization_table,
1752 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1753 * config/rs6000/rs6000.h (CAN_DEBUG_WITHOUT_FP): Remove.
1754 * config/rx/rx.c (rx_option_optimization_table,
1755 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1756 * config/rx/rx.h (CAN_DEBUG_WITHOUT_FP): Remove.
1757 * config/s390/s390.c (s390_option_optimization): Change to
1758 s390_option_optimization_table.
1759 (s390_option_override): Update comment.
1760 (TARGET_OPTION_OPTIMIZATION): Change to
1761 TARGET_OPTION_OPTIMIZATION_TABLE.
1762 * config/s390/s390.h (CAN_DEBUG_WITHOUT_FP): Remove.
1763 * config/score/score.c (score_option_optimization_table,
1764 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1765 * config/score/score.h (CAN_DEBUG_WITHOUT_FP): Remove.
1766 * config/sh/sh.c (sh_option_optimization): Change to
1767 sh_option_optimization_table.
1768 (TARGET_OPTION_OPTIMIZATION): Change to
1769 TARGET_OPTION_OPTIMIZATION_TABLE.
1770 (sh_option_override): Set MASK_SAVE_ALL_TARGET_REGS here.
1771 (sh_option_override, expand_block_move, multcosts, find_barrier,
1772 barrier_align): Use optimize_size instead of TARGET_SMALLCODE.
1773 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Remove.
1774 (LOOP_ALIGN, TRAMPOLINE_ALIGNMENT, MOVE_BY_PIECES_P,
1775 STORE_BY_PIECES_P, SH_DYNAMIC_SHIFT_COST): Use optimize_size
1776 instead of TARGET_SMALLCODE.
1777 * config/sh/sh.opt (mspace): Make into an alias for -Os.
1778 * config/sparc/sparc.c (sparc_option_optimization_table,
1779 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1780 * config/sparc/sparc.h (CAN_DEBUG_WITHOUT_FP): Remove.
1781 * config/stormy16/stormy16.c (xstorym16_option_optimization_table,
1782 TARGET_OPTION_OPTIMIZATION_TABLE): New.
1783 * config/stormy16/stormy16.h (CAN_DEBUG_WITHOUT_FP): Remove.
1784 * config/v850/v850.c (v850_option_optimization): Change to
1785 v850_option_optimization_table.
1786 (TARGET_OPTION_OPTIMIZATION): Change to
1787 TARGET_OPTION_OPTIMIZATION_TABLE.
1788 * config/v850/v850.h (CAN_DEBUG_WITHOUT_FP): Remove.
1789 * config/xtensa/xtensa.c (xtensa_option_optimization): Change to
1790 xtensa_option_optimization_table.
1791 (TARGET_OPTION_OPTIMIZATION): Change to
1792 TARGET_OPTION_OPTIMIZATION_TABLE.
1793 * config/xtensa/xtensa.h (CAN_DEBUG_WITHOUT_FP): Remove.
1794
1795 2010-10-21 Iain Sandoe <iains@gcc.gnu.org>
1796
1797 Based on the CFString implementation in FSF apple/trunk branch.
1798
1799 * target.def (objc_construct_string): New Hook.
1800 * doc/tm.texi (objc_construct_string): Document.
1801 * doc/tm.texi.in (TARGET_OBJC_CONSTRUCT_STRING): New.
1802 * config/t-darwin: Amend build rules for darwin.o.
1803 * config/darwin.opt: Add cfstrings flags.
1804 * config/darwin-c.c: Define __CONSTANT_CFSTRINGS__.
1805 (darwin_objc_construct_string): New.
1806 * config/i386/darwin.h (SUBTARGET_INIT_BUILTINS): Define.
1807 * config/i386/i386.c (ix86_init_builtins): Add SUBTARGET_INIT_BUILTINS.
1808 * config/darwin-protos.h (darwin_init_cfstring_builtins): New prototype.
1809 (darwin_fold_builtin): Likewise.
1810 (darwin_build_constant_cfstring): Likewise.
1811 (darwin_objc_construct_string): Likewise.
1812 (darwin_cfstring_p): Likewise.
1813 (darwin_enter_string_into_cfstring_table): Likewise.
1814 * config/rs6000/darwin.h (SUBTARGET_INIT_BUILTINS) Update for CFString.
1815 * config/darwin.c (darwin_running_cxx): New var.
1816 (machopic_select_section): Return cfstring_constant_object_section.
1817 (darwin_override_options): Set darwin_running_cxx.
1818 (add_builtin_field_decl): New.
1819 (darwin_init_cfstring_builtins): New.
1820 (darwin_build_constant_cfstring): New.
1821 (darwin_fold_builtin): New.
1822 (cfstring_hash): New.
1823 (cfstring_eq): New.
1824 (darwin_enter_string_into_cfstring_table): New.
1825 * config/darwin-sections.def (cfstring_constant_object_section): New.
1826 * config/darwin.h (TARGET_FOLD_BUILTIN): Define.
1827 (TARGET_OBJC_CONSTRUCT_STRING): Define.
1828
1829 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
1830
1831 * config/alpha/alpha.c (alpha_build_builtin_va_list): Use
1832 TYPE_STUB_DECL instead of TREE_CHAIN.
1833 * config/i386/i386.c (ix86_build_builtin_va_list_abi): Likewise.
1834 * config/rs6000/rs6000.c (rs6000_build_builtin_va_list): Likewise.
1835 * config/s390/s390.c (s390_build_builtin_va_list): Likewise.
1836 * config/sh/sh.c (sh_build_builtin_va_list): Likewise.
1837 * config/spu/spu.c (spu_build_builtin_va_list): Likewise.
1838 * config/stormy16/stormy16.c (xstormy16_build_builtin_va_list):
1839 Likewise.
1840 * config/xtensa/xtensa.c (xtensa_build_builtin_va_list): Likewise.
1841
1842 2010-10-22 Jie Zhang <jie@codesourcery.com>
1843
1844 * expr.c (emit_group_load_1): Update calls to extract_bit_field.
1845 (copy_blkmode_from_reg): Likewise.
1846 (read_complex_part): Likewise.
1847 (expand_expr_real_1): Calculate packedp and pass it to
1848 extract_bit_field.
1849 * expr.h (extract_bit_field): Update declaration.
1850 * calls.c (store_unaligned_arguments_into_pseudos): Update call
1851 to extract_bit_field.
1852 * expmed.c (extract_fixed_bit_field): Update calls to
1853 extract_fixed_bit_field.
1854 (store_split_bit_field): Likewise.
1855 (extract_bit_field_1): Add new argument packedp.
1856 (extract_bit_field): Add new argument packedp.
1857 (extract_fixed_bit_field): Add new argument packedp and let
1858 packed attribute override volatile.
1859 * stmt.c (expand_return): Update call to extract_bit_field.
1860
1861 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
1862
1863 * config/spu/spu.c (spu_function_arg): Dereference CUM parameter.
1864
1865 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
1866
1867 * ddg.c (add_cross_iteration_register_deps): Call gcc_assert instead
1868 of gcc_checking_assert.
1869 * sel-sched.c (code_motion_process_successors): Likewise.
1870
1871 2010-10-21 Eric Botcazou <ebotcazou@adacore.com>
1872
1873 * cfgcleanup.c (try_forward_edges): Do not throw away previous steps
1874 when stopping because of a different locus on edge or insn.
1875 (try_optimize_cfg): Add comment.
1876 * cfgrtl.c (rtl_merge_blocks): Tweak log message. If the destination
1877 block is a forwarder block, propagate locus on the edge.
1878 (cfg_layout_merge_blocks): Likewise.
1879
1880 2010-10-21 Uros Bizjak <ubizjak@gmail.com>
1881
1882 PR target/45946
1883 * config/i386/i386.md (*pushti2): New insn pattern.
1884 (pushti2 splitter): New insn splitter.
1885 (*push<mode>2): Macroize insn pattern from *push{di,ti}2 using
1886 DWI mode iterator.
1887
1888 2010-10-21 Paul Koning <ni1d@arrl.net>
1889
1890 * config/pdp11/pdp11-protos.md (arith_operand,
1891 const_immediate_operand, expand_shift_operand,
1892 immediate15_operand): Delete
1893 * config/pdp11/pdp11.c: Ditto.
1894 * config/pdp11/pdp11.h (REG_CLASS_FROM_LETTER,
1895 CONST_OK_FOR_LETTER_P, CONST_DOUBLE_OK_FOR_LETTER_P,
1896 EXTRA_CONSTRAINT): Delete.
1897 * config/pdp11/pdp11.md (various): Use standard constraints
1898 instead of removed ones.
1899 * config/pdp11/constraints.md: New file.
1900 * config/pdp11/predicates.md: New file.
1901
1902 2010-10-21 Bingfeng Mei <bmei@broadcom.com>
1903
1904 PR c/45834
1905 * alias.c (true_dependence_1): Remove obsolete check for QImode.
1906 (may_alias_p): Ditto.
1907
1908 2010-10-21 Martin Jambor <mjambor@suse.cz>
1909
1910 PR tree-optimization/45875
1911 * tree.c (get_binfo_at_offset): Remove initial zero offset test.
1912
1913 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
1914
1915 * tree-into-ssa.c (rewrite_update_enter_block): Remove unused
1916 variables.
1917 (create_new_def_for): Likewise.
1918
1919 2010-10-21 Nick Clifton <nickc@redhat.com>
1920
1921 * config/mn10300/mn10300.c: Fold code to 80-character width.
1922 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
1923 MEM, CONST_INT and CONST_DOUBLE.
1924 (targetm): Move initialization to end of file.
1925 (print_operand): Rename to mn10300_print_operand.
1926 (print_operand_address): Rename to mn10300_print_operand_address.
1927 (can_use_return_insn): Rename to mn10300_can_use_return_insn.
1928 (expand_prologue): Rename to mn10300_expand_prologue.
1929 (expand_epilogue): Rename to mn10300_expand_epilogue.
1930 (initial_offset): Rename to mn10300_initial_offset.
1931 (function_arg): Rename to mn10300_function_arg.
1932 (mask_ok_for_mem_btst): Rename to mn10300_mask_ok_for_mem_btst.
1933 (symbolic_operand): Rename to mn10300_symbolic_operand.
1934 (legitimize_pic_address): Rename to mn10300_legitimize_pic_address.
1935 (legitimate_pic_operand_p): Rename to mn10300_legitimate_pic_operand_p.
1936 * config/mn10300/mn10300-protos.h: Update prototypes.
1937 * config/mn10300/mn10300.h: Fold code to 80-character width.
1938 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
1939 MEM, CONST_INT and CONST_DOUBLE.
1940 (CPP_SPEC): Move to...
1941 (TARGET_CPU_CPP_BUILTINS): ... here.
1942 * config/mn10300/mn10300.md: Fold code to 80-character width.
1943 Replace GET_CODE (foo) == REG with REG_P (foo). Likewise for
1944 MEM, CONST_INT and CONST_DOUBLE.
1945
1946 2010-10-21 Ira Rosen <irar@il.ibm.com>
1947
1948 PR tree-optimization/46049
1949 PR tree-optimization/46052
1950 * tree-vectorizer.h (enum stmt_vec_info_type): Add new value for shift.
1951 (vect_get_slp_defs): Add arguments.
1952 * tree-vect-loop.c (vect_create_epilog_for_reduction): Pass scalar
1953 operands to vect_get_slp_defs.
1954 (vectorizable_reduction): Fix comment, pass scalar operands to
1955 vect_get_slp_defs.
1956 * tree-vect-stmts.c (vect_get_vec_def_for_operand): Use operand's
1957 type to determine number of units in the created vector.
1958 (vect_get_vec_defs): Pass scalar operands to vect_get_slp_defs.
1959 (vectorizable_conversion): Fix comment.
1960 (vectorizable_shift): New function.
1961 (vectorizable_operation): Move code that handles shifts to
1962 vectorizable_shift.
1963 (vectorizable_type_demotion): Fix comment, pass scalar operands to
1964 vect_get_slp_defs.
1965 (vectorizable_type_promotion, vectorizable_store): Likewise.
1966 (vectorizable_condition): Fix comment.
1967 (vect_analyze_stmt): Call vectorizable_shift.
1968 (vect_transform_stmt): Likewise.
1969 * tree-vect-slp.c (vect_get_constant_vectors): Add new argument.
1970 Use it as the operand to create vectors for, except reduction
1971 initial definition and store. Use operands type.
1972 (vect_get_slp_defs): Add new arguments. Pass them to
1973 vect_get_constant_vectors.
1974
1975 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
1976
1977 * basic-block.h (single_succ_edge): Use gcc_checking_assert.
1978 (single_pred_edge, ei_container, ei_next, ei_prev): Likewise.
1979 * cfghooks.c (fixup_reorder_chain): Likewise.
1980 * cfgrtl.c (cfg_layout_merge_blocks): Likewise.
1981 * cgraph.c (cgraph_add_thunk): Likewise.
1982 (cgraph_create_edge_1): Likewise.
1983 (cgraph_create_virtual_clone): Likewise.
1984 * ddg.c (add_cross_iteration_register_deps): Likewise.
1985 * dwarf2out.c (modified_type_die): Likewise.
1986 * emit-rtl.c (set_mem_alias_set): Likewise.
1987 * ggc-zone.c (zone_allocate_marks): Likewise.
1988 * gimple-iterator.c (gsi_move_to_bb_end): Likewise.
1989 * gimple.c (iterative_hash_gimple_type): Likewise.
1990 * graphite-scop-detection.c (create_single_entry_edge): Likewise.
1991 (create_single_exit_edge): Likewise.
1992 * haifa-sched.c (choose_ready): Likewise.
1993 * lto-streamer-in.c (input_gimple_stmt): Likewise.
1994 * passes.c (execute_todo): Likewise.
1995 * sched-ebb.c (begin_schedule_ready): Likewise.
1996 * sel-sched.c (code_motion_process_successors): Likewise.
1997 * tree-call-cdce.c (gen_conditions_for_pow): Likewise.
1998 * tree-cfg-cleanup.c (tree_forwarder_block_p): Likewise.
1999 * tree-flow-inline.h (link_imm_use, move_use_after_head): Likewise.
2000 (phi_arg_index_from_use, phi_ssa_name_p): Likewise.
2001 * tree-into-ssa.c (insert_updated_phi_nodes_for): Likewise.
2002 * tree-ssa-coalesce.c (ssa_conflicts_test_p): Likewise.
2003 (ssa_conflicts_add): Likewise.
2004 * tree-ssa-copy.c (replace_exp): Likewise.
2005 * tree-ssa-dom.c (eliminate_redundant_computations): Likewise.
2006 * tree-ssa-forwprop.c (simple_gimple_switch): Likewise.
2007 * tree-ssa-math-opts.c (execute_cse_reciprocals): Likewise.
2008 * tree-ssa-pre.c (bitmap_value_insert_into_set): Likewise.
2009 (compute_antic): Likewise.
2010 * tree-ssa-ter.c (add_to_partition_kill_list): Likewise.
2011 (add_dependence): Likewise.
2012 (process_replaceable, kill_expr, find_replaceable_exprs): Likewise.
2013 * tree-vrp.c (supports_overflow_infinity): Likewise.
2014 (make_overflow_infinity, negative_overflow_infinity): Likewise.
2015 (avoid_overflow_infinity, register_new_assert_for): Likewise.
2016 (process_assert_insertions_for): Likewise.
2017 * var-tracking.c (dv_is_value_p, dv_as_decl, dv_from_decl): Likewise.
2018 (dv_from_value, variable_union, find_loc_in_1pdv): Likewise.
2019 (intersect_loc_chains, variable_merge_over_cur): Likewise.
2020
2021 2010-10-21 Nathan Froyd <froydnj@codesourcery.com>
2022
2023 * cfgloop.c (flow_loops_find): Call bb_has_abnormal_pred.
2024 * reload1.c (has_nonexceptional_receiver): Likewise.
2025 * tree-into-ssa.c (rewrite_update_enter_block): Likewise.
2026 (create_new_def_for): Likewise.
2027 * tree-cfgcleanup.c (remove_forwarder_block): Likewise.
2028 (merge_phi_nodes): Likewise.
2029 (has_abnormal_incoming_edge_p): Delete.
2030
2031 2010-10-21 H.J. Lu <hongjiu.lu@intel.com>
2032
2033 * config/i386/sse.md (ssescalarmodesuffix): Add V8SI and V4DI.
2034
2035 2010-10-21 Richard Guenther <rguenther@suse.de>
2036 Michael Matz <matz@suse.de>
2037
2038 PR tree-optimization/45764
2039 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
2040 Adjust initial misalignment for negative DR_STEP.
2041 (vect_find_same_alignment_drs): Two DRs with different DR_STEP
2042 do not have the same alignment over the whole iteration domain.
2043
2044 2010-10-21 Richard Guenther <rguenther@suse.de>
2045
2046 PR tree-optimization/46111
2047 * tree-parloops.c (take_address_of): Re-organize for MEM_REF.
2048
2049 2010-10-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2050
2051 * config/s390/s390.md (*xordi3_cc): Mark xgrk as z196 only.
2052
2053 2010-10-21 Tristan Gingold <gingold@adacore.com>
2054
2055 * config/vms/vms-crtl.h (CRTL_NAMES): Add new translations.
2056 * config/vms/vms-crtl-64.h (CRTL_NAMES): Ditto.
2057
2058 2010-10-21 Tristan Gingold <gingold@adacore.com>
2059
2060 * config/alpha/vms-unwind.h (alpha_vms_fallback_frame_state): Set
2061 signal_frame.
2062 * config/alpha/alpha.c (alpha_function_arg): Adjust call.
2063
2064 2010-10-21 Tristan Gingold <gingold@adacore.com>
2065
2066 * config/ia64/vms64.h (TARGET_DEFAULT): Add MASK_FUSED_MADD.
2067 * config/ia64/vms.h (TARGET_DEFAULT): Ditto.
2068
2069 2010-10-20 Nathan Froyd <froydnj@codesourcery.com>
2070
2071 * basic-block.h (find_fallthru_edge): Define.
2072 * cfgcleanup.c (merge_blocks_move): Use it.
2073 (try_crossjump_bb): Likewise.
2074 * cfglayout.c (fixup_reorder_chains): Likewise.
2075 (fixup_fallthru_exit_predecessor): Likewise.
2076 * cfgrtl.c (rtl_split_edge): Likewise.
2077 (rtl_verify_flow_info): Likewise.
2078 * function.c (thread_prologue_and_epilogue_insns): Likewise.
2079 * gimple-pretty-print.c (dump_implicit_edges): Likewise.
2080 * ifcvt.c (block_fallthru): Likewise.
2081 * reload1.c (fixup_abnormal_edges): Likewise.
2082 * sched-ebb.c (being_schedule_ready): Likewise.
2083 (schedule_ebb): Likwise.
2084 * sched-rgn.c (find_single_block_region): Likewise.
2085 * sel-sched-ir.c (bb_ends_ebb_p): Likewise.
2086 * tree-complex.c (expand_complex_move): Likewise.
2087 * sched-int.h (find_fallthru_edge): Rename to...
2088 (find_fallthru_edge_from): ...this.
2089 * haifa-sched.c (find_fallthru_edge): Rename to...
2090 (find_fallthru_edge_from): ...this. Use new find_fallthru_edge.
2091 (init_before_recovery): Call find_fallthru_edge_from.
2092 * sel-sched-ir.c (merge_fences): Likewise.
2093 * sel-sched.c (in_fallthru_bb_p): Likewise.
2094 (move_cond_jump): Likewise.
2095
2096 2010-10-20 Paul Koning <ni1d@arrl.net>
2097
2098 * config/pdp11/pdp11.md (various): Fix conditions on a number of
2099 insn to check for target 11/40 or higher.
2100
2101 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2102
2103 * parser.c (c_parser_objc_method_type): Mark inline. Return a
2104 bool instead of a tree.
2105 (c_parser_objc_method_decl): Added bool argument. Updated call to
2106 objc_build_method_signature.
2107 (c_parser_objc_method_definition): Do not call
2108 objc_set_method_type. Updated calls to c_parser_objc_method_type,
2109 c_parser_objc_method_decl and objc_start_method_definition.
2110 (c_parser_objc_methodproto): Do not call objc_set_method_type.
2111 Updated calls to c_parser_objc_method_type,
2112 c_parser_objc_method_decl and objc_add_method_declaration.
2113
2114 2010-10-20 Jakub Jelinek <jakub@redhat.com>
2115
2116 PR tree-optimization/45919
2117 * tree-ssa-ccp.c (fold_nonarray_ctor_reference): Handle flexible
2118 array members.
2119
2120 PR tree-optimization/46066
2121 * tree-parloops.c (create_parallel_loop): Use gsi_last_nondebug_bb
2122 instead of gsi_last_bb.
2123
2124 2010-10-20 DJ Delorie <dj@redhat.com>
2125
2126 * config/m32c/m32c.c (m32c_option_override): Always disable
2127 function-cse in 16-bit mode. Indirect calls are always worse than
2128 direct calls as there is no 16-bit indirect call opcode.
2129 (m32c_override_options_after_change): New, likewise.
2130
2131 2010-10-20 Nathan Froyd <froydnj@codesourcery.com>
2132
2133 * ifcvt.c (noce_emit_cmove): If both of the values are SUBREGs, try
2134 emitting the conditional move in the inner mode of the SUBREG.
2135
2136 2010-10-20 Anatoly Sokolov <aesok@post.ru>
2137
2138 * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS): Remove macros.
2139 * config/ia64/ia64-protos.h (ia64_preferred_reload_class): Remove.
2140 * config/ia64/ia64.c (TARGET_PREFERRED_RELOAD_CLASS): Define.
2141 (ia64_preferred_reload_class): Make static. Change rclass argument
2142 and result types from enum reg_class to reg_class_t.
2143
2144 2010-10-20 Pat Haugen <pthaugen@us.ibm.com>
2145
2146 * tree-ssa-ter.c (find_replaceable_in_bb): Allow replacement over
2147 call for single operand expression.
2148
2149 2010-10-20 Eric Botcazou <ebotcazou@adacore.com>
2150
2151 * tree-optimize.c (execute_fixup_cfg): Purge dead abnormal call edges
2152 if there is a call statement to pure or const function in the block.
2153
2154 2010-10-20 Paul Koning <pkoning@equallogic.com>
2155
2156 Fix several build errors for pdp11 target.
2157 * config/pdp11/pdp11.md (*cmpdf): Fix tstd operands.
2158 (cbranchdf4): Conditional on TARGET_FPU.
2159 (movdf): Ditto; correct alternatives check.
2160 (movmemhi): Fix predicate and constraint.
2161 * config/pdp11/pdp11.h (HARD_REGNO_MODE_OK): Handle 64 bit mode.
2162
2163 2010-10-20 Richard Guenther <rguenther@suse.de>
2164
2165 PR lto/45667
2166 * lto-streamer-out.c (output_gimple_stmt): Fix typo.
2167 * tree-cfg.c (verify_gimple_call): Properly get the call fndecl.
2168 (verify_gimple_assign_single): Disable ADDR_EXPR type check
2169 when in LTO.
2170
2171 2010-10-20 Vladimir Makarov <vmakarov@redhat.com>
2172
2173 PR fortran/42169
2174 * ira-emit.c (store_can_be_removed_p): Return false instead of
2175 gcc_unreachable.
2176
2177 2010-10-20 Dmitry Melnik <dm@ispras.ru>
2178
2179 * fold-const.c (fold_binary_loc): New transformation.
2180
2181 2010-10-20 H.J. Lu <hongjiu.lu@intel.com>
2182
2183 PR target/46085
2184 * config/i386/sse.md (reduc_splus_v8sf): Updated.
2185 (reduc_splus_v4df): Likewise.
2186
2187 2010-10-20 Richard Guenther <rguenther@suse.de>
2188
2189 PR tree-optimization/45860
2190 * tree-ssa-phiopt.c (cond_store_replacement): Do not do
2191 conditional store replacement for non-register type stores.
2192
2193 2010-10-20 Eric Botcazou <ebotcazou@adacore.com>
2194
2195 * stor-layout.c (skip_simple_constant_arithmetic): New function.
2196 (self_referential_size): Use it instead of skip_simple_arithmetic.
2197
2198 2010-10-20 Olivier Hainque <hainque@adacore.com>
2199
2200 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p):
2201 If the current function calls eh_return, claim live all registers
2202 that we need to check for liveness otherwise.
2203
2204 2010-10-20 Nicola Pero <nicola.pero@meta-innovation.com>
2205
2206 * c-decl.c (c_write_global_declarations): Call
2207 objc_write_global_declarations when compiling Objective-C.
2208 * c-lang.c (finish_file): Removed.
2209
2210 2010-10-19 DJ Delorie <dj@redhat.com>
2211
2212 * doc/tm.texi.in (TARGET_ASM_JUMP_ALIGN_MAX_SKIP): New.
2213 (TARGET_ASM_LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Change to hook.
2214 (TARGET_ASM_LOOP_ALIGN_MAX_SKIP): Likewise.
2215 (TARGET_ASM_LABEL_ALIGN_MAX_SKIP): Likewise.
2216 * doc/tm.texi: Regenerate.
2217 * targhooks.h (default_label_align_after_barrier_max_skip,
2218 default_loop_align_max_skip, default_label_align_max_skip,
2219 default_jump_align_max_skip): Declare.
2220 * target.def (label_align_after_barrier_max_skip): New.
2221 (loop_align_max_skip): New.
2222 (label_align_max_skip): New.
2223 (jump_align_max_skip): New.
2224 * system.h (poison): Add those macros to the list.
2225 * final.c (LABEL_ALIGN_MAX_SKIP): Remove.
2226 (LOOP_ALIGN_MAX_SKIP): Remove.
2227 (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Remove.
2228 (JUMP_ALIGN_MAX_SKIP): Remove.
2229 (default_label_align_after_barrier_max_skip): New.
2230 (default_loop_align_max_skip): New.
2231 (default_label_align_max_skip): New.
2232 (default_jump_align_max_skip): New.
2233 (compute_alignments): Use the new hooks.
2234 (shorten_branches): Likewise.
2235
2236 2010-10-19 Richard Henderson <rth@redhat.com>
2237
2238 * config/i386/i386.c (bdesc_multi_arg): Use fma4i_fmadd_<mode>.
2239 * config/i386/sse.md (fma<mode>4): Enable for FMA & SSE_MATH.
2240 (fma4i_fmadd_<mode>): New.
2241 (*split_fma, *split_fms, *split_fnma, *split_fnms): Rename from
2242 fma4_fm*_<mode> and adjust to be pre-reload splitters to the
2243 standard fma patterns.
2244 (fmaddsub_<mode>): Rename from fma4i_fmaddsub_<mode> and
2245 enable for FMA.
2246 (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
2247 (*fma_fmadd_<mode>, *fma_fmsub_<mode>): New.
2248 (*fma_fmaddsub_<mode>, *fma_fmsubadd_<mode>): New.
2249
2250 2010-10-19 Paul Koning <pkoning@equallogic.com>
2251
2252 * lower-subreg.c (resolve_shift_zext): Delete conditional code for
2253 WORDS_BIG_ENDIAN != BYTES_BIG_ENDIAN.
2254
2255 2010-10-19 Richard Henderson <rth@redhat.com>
2256
2257 * config/ia64/ia64.md (fmasf4, *fmssf4, *nfmasf4): New.
2258 (fmadf4, *fmsdf4, *nfmadf4): New.
2259 (fmaxf4, *fmsxf4, *nfmaxf4): New.
2260
2261 2010-10-19 Michael Eager <eager@eagercon.com>
2262
2263 * config/microblaze/microblaze.c (TARGET_EXCEPT_UNWIND_INFO):
2264 Use sjlj unwind info for exceptions.
2265
2266 2010-10-19 Francois-Xavier Coudert<fxcoudert@gcc.gnu.org>
2267
2268 PR fortran/43414
2269 * dwarf2out.c (add_calling_convention_attribute): Flag main
2270 Fortran subroutine with DW_AT_main_subprogram.
2271
2272 2010-10-19 Nick Clifton <nickc@redhat.com>
2273
2274 * config/rx/rx.c (rx_function_value): Small integer types are
2275 promoted to SImode.
2276 (rx_promote_function_mode): New function.
2277 (TARGET_PROMOTE_FUNCTION_MODE): Define.
2278
2279 2010-10-19 Nick Clifton <nickc@redhat.com>
2280
2281 * config/mep/mep.c (mep_print_operand): Use
2282 targetm.strip_name_encoding.
2283 (mep_output_aligned_common): Likewise.
2284
2285 2010-10-19 Basile Starynkevitch <basile@starynkevitch.net>
2286
2287 * gengtype.c (new_structure): Remove ad-hoc "location_s" processing.
2288
2289 2010-10-18 Richard Henderson <rth@redhat.com>
2290
2291 * simplify-rtx.c (simplify_ternary_operation) [FMA]: Simplify
2292 (fma (neg a) (neg b) c) and (fma a (neg b) c).
2293
2294 2010-10-18 Richard Henderson <rth@redhat.com>
2295
2296 * config/i386/i386.c (IX86_BUILTIN_VFMSUBSS, IX86_BUILTIN_VFMSUBSD,
2297 IX86_BUILTIN_VFMSUBPS, IX86_BUILTIN_VFMSUBPD,
2298 IX86_BUILTIN_VFMSUBADDPS, IX86_BUILTIN_VFMSUBADDPD,
2299 IX86_BUILTIN_VFNMADDSS, IX86_BUILTIN_VFNMADDSD,
2300 IX86_BUILTIN_VFNMADDPS, IX86_BUILTIN_VFNMADDPD,
2301 IX86_BUILTIN_VFNMSUBSS, IX86_BUILTIN_VFNMSUBSD,
2302 IX86_BUILTIN_VFNMSUBPS, IX86_BUILTIN_VFNMSUBPD,
2303 IX86_BUILTIN_VFMSUBADDPS256, IX86_BUILTIN_VFMSUBADDPD256,
2304 IX86_BUILTIN_VFNMADDPS256, IX86_BUILTIN_VFNMADDPD256,
2305 IX86_BUILTIN_VFNMSUBPS256, IX86_BUILTIN_VFNMSUBPD256): Remove.
2306 (bdesc_multi_arg): Remove the corresponding builtins.
2307 * config/i386/i386.md (UNSPEC_FMA4_INTRINSIC): Remove.
2308 (UNSPEC_FMA4_FMSUBADD): Remove.
2309 (UNSPEC_FMADDSUB): Rename from UNSPEC_FMA4_FMADDSUB.
2310 * config/i386/sse.md (FMA4MODEF4): Remove.
2311 (FMAMODE): Add.
2312 (fma<mode>4): New expander.
2313 (*fma4i_fmadd_<mode>): Macroize from fma4i_fmadd<mode>4 patterns,
2314 and use FMA rtx code instead of UNSPEC_FMA4_INTRINSIC.
2315 (*fma4i_fmsub_<mode>): Similarly.
2316 (*fma4i_fnmadd_<mode>): Similarly.
2317 (*fma4i_fnmsub_<mode>): Similarly.
2318 (fma4i_vmfmadd_<mode>): Scalar patterns zero-extend, not merge
2319 with the first operand.
2320 (fma4i_fmaddsub_<mode>): Represent with UNSPEC_FMADDSUB instead
2321 of explicit arithmetic. Macroize with AVXMODEF2P.
2322 (*fma4i_fmsubadd_<mode>): Represent with UNSPEC_FMADDSUB + NEG.
2323 (xop_frcz<mode>2): Macroize with FMAMODE.
2324 (xop_vmfrcz<mode>2): Scalar patterns zero-extend, not merge with
2325 the first operand.
2326 * config/i386/fma4intrin.h (_mm_msub_ps): Use vfmadd intrinsic with
2327 extra negations.
2328 (_mm_msub_pd, _mm_msub_ss, _mm_msub_sd): Likewise.
2329 (_mm_nmacc_ps, _mm_nmacc_pd, _mm_nmacc_ss, _mm_nmacc_sd): Likewise.
2330 (_mm_nmsub_ps, _mm_nmsub_pd, _mm_nmsub_ss, _mm_nmsub_sd): Likewise.
2331 (_mm256_msub_ps, _mm256_msub_pd): Likewise.
2332 (_mm256_nmacc_ps, _mm256_nmacc_pd): Likewise.
2333 (_mm256_nmsub_ps, _mm256_nmsub_pd): Likewise.
2334 (_mm_msubadd_ps): Use vfmaddsub intrinsic with extra negation.
2335 (_mm_msubadd_pd, _mm256_msubadd_ps, _mm256_msubadd_pd): Likewise.
2336
2337 2010-10-18 Bernd Schmidt <bernds@codesourcery.com>
2338
2339 PR rtl-optimization/45966
2340 * combine.c (try_combine): If added_sets_2, deal with the case
2341 where i0 feeds i1 and i1 feeds i2.
2342
2343 2010-10-18 Jan Hubicka <jh@suse.cz>
2344
2345 * ipa.c (cgraph_externally_visible_p): Handle externally visible and
2346 preserve flags before trying to guess on visibility.
2347 (varpool_externally_visible_p): New function.
2348 (function_and_variable_visibility): Use it.
2349
2350 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2351
2352 Implemented parsing @synthesize and @dynamic for Objective-C.
2353 * c-parser.c (c_parser_external_declaration): Recognize
2354 RID_AT_SYNTHESIZE and RID_AT_DYNAMIC.
2355 (c_parser_objc_at_synthesize_declaration): New.
2356 (c_parser_objc_at_dynamic_declaration): New.
2357
2358 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2359
2360 * c-parser.c (c_parser_objc_class_declaration): After finding an
2361 error, parse the whole declaration then reset parser->error.
2362
2363 2010-10-18 Michael Meissner <meissner@linux.vnet.ibm.com>
2364
2365 PR target/46041
2366 * tree.h (mode_has_fma): Delete, move to c-cppbuiltins.c.
2367 * builtins.c (mode_has_fma): Ditto.
2368
2369 2010-10-18 Steve Ellcey <sje@cup.hp.com>
2370
2371 PR target/36898
2372 PR middle-end/43760
2373 * config/ia64/ia64.c (rws_access_regno): Remove predicate check.
2374
2375 2010-10-18 Joseph Myers <joseph@codesourcery.com>
2376
2377 * config/i386/i386.c (ix86_option_override_internal): Define and
2378 use USE_X86_64_FRAME_POINTER for 64-bit flag_omit_frame_pointer
2379 default.
2380 * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Remove.
2381 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Define.
2382
2383 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2384
2385 Merge from 'apple/trunk' branch on FSF servers.
2386 * c-parser.c (c_parser_objc_type_name): Adapted to new parser the
2387 following Objective-C change:
2388
2389 2005-10-10 Fariborz Jahanian <fjahanian@apple.com>
2390
2391 Radar 4301047
2392 * c-parse.in (objc_quals): Build objc qualifier list same way
2393 as gcc-3.3
2394
2395 2010-10-18 Jan Hubicka <jh@suse.cz>
2396
2397 * ipa.c (cgraph_externally_visible_p, varpool_externally_visible_p,
2398 function_and_variable_visibility): Revert accidental commit.
2399
2400 2010-10-18 Nicola Pero <nicola.pero@meta-innovation.com>
2401
2402 Merge from 'apple/trunk' branch on FSF servers.
2403 * c-parser.c (c_parser_typeof_specifier): Adapted to new parser
2404 the following Objective-C change:
2405
2406 2005-10-07 Fariborz Jahanian <fjahanian@apple.com>
2407
2408 Radar 4204796
2409 * c-parse.in (typespec_nonreserved_nonattr): Remove volatile from
2410 'volatilized' type used in a typeof operator.
2411
2412 2010-10-18 Eric Botcazou <ebotcazou@adacore.com>
2413
2414 * tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare.
2415 * tree-cfg.c (gimple_purge_dead_abnormal_call_edges): Move around and
2416 rewrite modelled on gimple_purge_dead_eh_edges.
2417 (gimple_purge_all_dead_abnormal_call_edges): New function.
2418 * tree-inline.c (expand_call_inline): Call gimple_purge_dead_eh_edges
2419 directly instead of through gimple_purge_dead_abnormal_call_edges.
2420 * tree-ssa-pre.c (need_ab_cleanup): New static variable.
2421 (eliminate): Set bit in need_ab_cleanup for the basic block if we have
2422 removed AB side-effects from one of its statements.
2423 (init_pre): Initialize need_ab_cleanup.
2424 (fini_pre): Purge dead abnormal call edges and clean up the CFG if bits
2425 are set in need_ab_cleanup. Free need_ab_cleanup afterward.
2426
2427 2010-10-18 Jakub Jelinek <jakub@redhat.com>
2428
2429 PR c/46015
2430 * c-parser.c (c_parser_statement_after_labels): Call mark_exp_read
2431 on computed goto argument.
2432
2433 2010-10-18 Richard Guenther <rguenther@suse.de>
2434
2435 PR tree-optimization/45967
2436 * tree-ssa-structalias.c (type_could_have_pointers): Remove.
2437 (could_have_pointers): Likewise.
2438 (handle_rhs_call, handle_const_call, handle_pure_call,
2439 find_func_aliases, intra_create_variable_infos): Remove calls to them.
2440 (struct fieldoff): Add must_have_pointers field.
2441 (type_must_have_pointers): New function.
2442 (field_must_have_pointers): Likewise.
2443 (push_fields_onto_fieldstack): Remove must_have_pointers_p argument.
2444 Adjust field merging.
2445 (create_function_info_for): May-have-pointers of varinfo is
2446 almost always true.
2447 (create_variable_info_for_1): Likewise.
2448
2449 2010-10-18 Tejas Belagod <tejas.belagod@arm.com>
2450
2451 * config/arm/neon.md (neon_move_hi_quad_<mode>): Fix the order
2452 of operands to vec_concat.
2453
2454 2010-10-18 Richard Guenther <rguenther@suse.de>
2455
2456 PR lto/44950
2457 * tree.c (free_lang_data_in_decl): As we clear TYPE_METHODS
2458 also clear references to entries of it.
2459
2460 2010-10-18 Andi Kleen <ak@linux.intel.com>
2461
2462 PR other/43448
2463 * gccbug.in: Remove.
2464 * Makefile.in (GCCBUG_INSTALL_NAME, gccbug): Remove
2465 (doc, distclean, install-common): Remove reference to gccbug.
2466 * configure: Regenerate.
2467 * configure.ac (all_outputs): Remove gccbug.
2468 * doc/configfiles.texi: Remove references to gccbug.
2469 * doc/sourcebuild.texi: Dito.
2470
2471 2010-10-18 Jakub Jelinek <jakub@redhat.com>
2472
2473 PR middle-end/46019
2474 * fold-const.c (fold_binary_loc): If integer_pow2p has
2475 TREE_INT_CST_LOW zero, look at TREE_INT_CST_HIGH.
2476
2477 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net>
2478 Jeremie Salvucci <jeremie.salvucci@free.fr>
2479
2480 * gengtype.c (verbosity_level): Add variable.
2481 (set_gc_used): Count variables for verbosity.
2482 (close_output_files): Backing up files, counting written ones
2483 verbosily.
2484 (write_types): Count emitted functions for verbosity. Added
2485 debug messages.
2486 (write_enum_defn): Count structures for verbosity. Added debug
2487 messages.
2488 (gengtype_long_options): Add "verbose" & "backupdir".
2489 (print_usage): Ditto.
2490 (main): Verbose display of parsed files.
2491
2492 * gengtype.h (verbosity_level): Add declaration.
2493
2494 2010-10-18 Basile Starynkevitch <basile@starynkevitch.net>
2495
2496 * gengtype.c (parse_program_options): Add allocation of
2497 plugin_files, and correct test on nb_plugin_files.
2498
2499 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2500
2501 Merge from 'apple/trunk' branch on FSF servers.
2502
2503 2006-03-27 Fariborz Jahanian <fjahanian@apple.com>
2504
2505 Radar 4133425
2506 * c-decl.c (undeclared_variable): Issue diagnostic on
2507 private 'ivar' access.
2508
2509 2010-10-17 Uros Bizjak <ubizjak@gmail.com>
2510
2511 PR target/46051
2512 * config/i386/sse.md (vec_interleave_highv4df): Fix third RTX of
2513 generated sequence to match *avx_vperm2f128<mode>_nozero.
2514 (vec_interleave_lowv4df): Ditto.
2515 (vec_interleave_highv8sf): Ditto.
2516 (vec_interleave_lowv8sf): Ditto.
2517
2518 2010-10-17 Kai Tietz <kai.tietz@onevision.com>
2519
2520 * libgcov.c (create_file_directory): Enable it for win32 case.
2521 (gcov_exit): De-couple GCOV_PREFIX and GCOV_PREFIX_STRIP.
2522 * doc/gcov.texi (GCOV_PREFIX): Adjusted.
2523 (GCOV_PREFIX_SKIP): Likewise.
2524
2525 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2526
2527 * doc/objc.texi (GNU Objective-C runtime API): New section.
2528 (Modern GNU Objective-C runtime API): New section.
2529 (Traditional GNU Objective-C runtime API): New section.
2530 (Executing code before main): Mention that this section is
2531 specific to the GNU Objective-C runtime.
2532 (Garbage Collection): Same.
2533
2534 2010-10-17 Uros Bizjak <ubizjak@gmail.com>
2535
2536 * c-parser.c (c_parser_for_statement): Move initialization of
2537 cond and incr before if.
2538
2539 2010-10-17 Anatoly Sokolov <aesok@post.ru>
2540
2541 * target.def (preferred_output_reload_class): New hook.
2542 * doc/tm.texi.in (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Document.
2543 * doc/tm.texi: Regenerate.
2544 * targhooks.c (default_preferred_output_reload_class): New function.
2545 * targhooks.h (default_preferred_output_reload_class): Declare.
2546 * reload.c (find_dummy_reload): Change rclass argument type from
2547 enum reg_class to reg_class_t. Change this_alternative array type
2548 from enum reg_class to reg_class_t.
2549 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
2550 (push_reload): Change preferred_class variable type to reg_class_t.
2551 Use TARGET_PREFERRED_OUTPUT_RELOAD_CLASS target hook.
2552 * recog.c (reg_fits_class_p): Change result type to bool. Change cl
2553 argument type from enum reg_class to reg_class_t. Use
2554 HARD_REGISTER_NUM_P predicate.
2555 * recog.h (reg_fits_class_p): Update prototype.
2556
2557 * config/i386/i386.h (PREFERRED_OUTPUT_RELOAD_CLASS): Remove.
2558 * config/i386/i386-protos.h (ix86_preferred_output_reload_class):
2559 Remove.
2560 * config/i386/i386.c (ix86_preferred_output_reload_class): Make
2561 static. Change regclass argument and result types from enum reg_class
2562 to reg_class_t.
2563 (TARGET_PREFERRED_OUTPUT_RELOAD_CLASS): Define.
2564
2565 2010-10-17 Iain Sandoe <iains@gcc.gnu.org>
2566
2567 * c-parser.c (c_parser_objc_class_instance_variables): Update to use
2568 visibility enum, and handle @package.
2569
2570 2010-10-17 Nicola Pero <nicola.pero@meta-innovation.com>
2571
2572 * doc/objc.texi (What you can and what you cannot do in +load):
2573 Document that sending messages to constant string objects in +load
2574 is not guaranteed to work.
2575
2576 2010-10-16 Jan Hubicka <jh@suse.cz>
2577
2578 PR middle-end/44206
2579 * ipa.c (cgraph_remove_unreachable_nodes): Cleanup; check
2580 existence of refrences before removing the function.
2581
2582 2010-10-16 Jan Hubicka <jh@suse.cz>
2583
2584 * cgraph.c (dump_cgraph_node): Dump same_comdat_group,
2585 only_called_at_startup and only_called_at_exit.
2586 (cgraph_propagate_frequency): Compute only_called_at_startup and
2587 only_called_at_exit.
2588 * cgraph.h (struct cgraph_node): New fileds only_called_at_startup and
2589 only_called_at_exit.
2590 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream the new
2591 flags.
2592 * predict.c (compute_function_frequency): Initialize the new flags.
2593
2594 2010-10-16 Eric Botcazou <ebotcazou@adacore.com>
2595
2596 * gimplify.c (gimplify_type_sizes) <ARRAY_TYPE>: If the type is to be
2597 ignored for debug info purposes, do not clear the DECL_IGNORED_P flag
2598 on the bounds of its domain.
2599 * tree.h (DECL_IGNORED_P): Document effect on TYPE_DECL specifically.
2600
2601 2010-10-16 Anatoly Sokolov <aesok@post.ru>
2602
2603 * config/avr/avr.h (PREFERRED_RELOAD_CLASS): Remove.
2604 * config/avr/avr-protos.h (preferred_reload_class): Remove.
2605 * config/avr/avr.c (preferred_reload_class): Remove.
2606 * config/pa/pa.h (PREFERRED_RELOAD_CLASS): Remove.
2607 * config/pa/pa.c (emit_move_sequence): Update comment
2608 * config/arc/arc.h (PREFERRED_RELOAD_CLASS): Remove.
2609 * config/crx/crx.h (PREFERRED_RELOAD_CLASS): Remove.
2610 * config/fr30/fr30.h (PREFERRED_RELOAD_CLASS): Remove.
2611 * config/frv/frv.h (PREFERRED_RELOAD_CLASS): Remove.
2612 * config/h8300/h8300.h (PREFERRED_RELOAD_CLASS): Remove.
2613 * config/lm32/lm32.h (PREFERRED_RELOAD_CLASS): Remove.
2614 * config/m32r/m32r.h (PREFERRED_RELOAD_CLASS): Remove.
2615 * config/moxie/moxie.h (PREFERRED_RELOAD_CLASS): Remove.
2616 * config/picochip/picochip.h (PREFERRED_RELOAD_CLASS): Remove.
2617 * config/rx/rx.h (PREFERRED_RELOAD_CLASS): Remove.
2618 * config/spu/spu.h (PREFERRED_RELOAD_CLASS): Remove.
2619 * config/v850/v850.h (PREFERRED_RELOAD_CLASS): Remove.
2620 * config/vax/vax.h (PREFERRED_RELOAD_CLASS): Remove.
2621
2622 2010-10-16 Joseph Myers <joseph@codesourcery.com>
2623
2624 * opts.c (set_fast_math_flags,
2625 set_unsafe_math_optimizations_flags): Make static.
2626 * toplev.h (set_fast_math_flags,
2627 set_unsafe_math_optimizations_flags): Remove prototypes.
2628
2629 2010-10-16 Joseph Myers <joseph@codesourcery.com>
2630
2631 * config/arm/arm.c (arm_option_optimization): Set
2632 flag_section_anchors to 1 not 2.
2633 * config/i386/i386.c (ix86_option_override_internal): Check
2634 global_options_set.x_flag_zee and
2635 global_options_set.x_flag_omit_frame_pointer.
2636 (ix86_option_optimization): Don't set flag_omit_frame_pointer and
2637 flag_zee to 2.
2638 * config/i386/sol2-10.h (SUBTARGET_OVERRIDE_OPTIONS): Check
2639 global_options_set.x_flag_omit_frame_pointer.
2640 * config/rs6000/rs6000.c (rs6000_option_init_struct): Set
2641 opts->x_flag_section_anchors to 1 not 2.
2642 * config/sh/sh.c (sh_option_optimization): Don't set
2643 flag_schedule_insns to 2.
2644 (sh_option_override): Check
2645 global_options_set.x_flag_schedule_insns.
2646 * opts.c (finish_options): Check opts_set->x_flag_section_anchors.
2647
2648 2010-10-16 Kai Tietz <kai.tietz@onevision.com>
2649
2650 * configure.ac: Make sure inhibit_libc remains false for mingw targets
2651 as cross.
2652 * configure: Regenerated.
2653
2654 2010-10-15 Xinliang David Li <davidxl@google.com>
2655
2656 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths): New
2657 function.
2658 (use_pred_not_overlap_with_undef_path_pred): Outline phi arg pruning
2659 into a recursive function.
2660
2661 2010-10-15 Uros Bizjak <ubizjak@gmail.com>
2662
2663 * config/i386/i386.md (*movdfcc_1_rex64): Correct mode attribute.
2664 (*movdfcc_1): ditto.
2665
2666 2010-10-15 Joseph Myers <joseph@codesourcery.com>
2667
2668 * target.def (target_option.init_struct): New hook.
2669 * doc/tm.texi.in (TARGET_OPTION_INIT_STRUCT): New @hook.
2670 * doc/tm.texi: Regenerate.
2671 * hooks.c (hook_void_gcc_optionsp): New.
2672 * hooks.h (hook_void_gcc_optionsp): Declare.
2673 * langhooks-def.h (lhd_init_options_struct): Remove.
2674 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define to hook_void_gcc_optionsp.
2675 * langhooks.c (lhd_init_options_struct): Remove.
2676 * opts.c (init_options_struct): Also call
2677 targetm.target_option.init_struct.
2678 * config/i386/i386.c (ix86_option_init_struct,
2679 TARGET_OPTION_INIT_STRUCT): New.
2680 (ix86_option_optimization): Move some settings to
2681 ix86_option_init_struct.
2682 * config/pdp11/pdp11.c (pdp11_option_init_struct,
2683 TARGET_OPTION_INIT_STRUCT): New.
2684 (pdp11_option_optimization): Move some settings to
2685 pdp11_option_init_struct.
2686 * config/rs6000/rs6000.c (rs6000_option_optimization): Replace by
2687 rs6000_option_init_struct. Use options structure pointer.
2688 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
2689 * config/s390/s390.c (s390_option_init_struct,
2690 TARGET_OPTION_INIT_STRUCT): New.
2691 (s390_option_optimization): Don't set
2692 flag_asynchronous_unwind_tables here.
2693 * config/sh/sh.c (sh_option_init_struct,
2694 TARGET_OPTION_INIT_STRUCT): New.
2695 (sh_option_optimization): Don't set flag_finite_math_only here.
2696 * config/spu/spu.c (spu_option_optimization): Replace by
2697 spu_option_optimization. Use options structure pointer.
2698 (TARGET_OPTION_OPTIMIZATION): Replace by TARGET_OPTION_INIT_STRUCT.
2699
2700 2010-10-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2701
2702 * doc/md.texi (Standard Names): Add fma@var{m}4 documentation.
2703
2704 * doc/rtl.texi (RTX_TERNARY): Document FMA is ternary. Add
2705 SIGN_EXTRACT and ZERO_EXTRACT which were missing.
2706 (Standard names): Document fma.
2707
2708 * doc/cpp.texi (Common Predefined Macros): Document __FP_FAST_FMA,
2709 __FP_FAST_FMAF, __FP_FAST_FMAL.
2710
2711 * builitns.c (expand_builtin_mathfn_ternary): New function for
2712 expanding ternary math functions, like fma.
2713 (expand_builtin): Call it for the fma builtins.
2714
2715 * simplify-rtx.c (simplify_ternary_operation): Don't simplify FMA
2716 ops at present.
2717
2718 * tree-vect-stmts.c (vectorizable_call): Allow 3 argument
2719 vectorizable functions to support vectorizing fma.
2720
2721 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
2722 Handle fma builtins.
2723
2724 * config/rs6000/vsx.md (UNSPEC_VSX_MADD): Delete.
2725 (UNSPEC_VSX_MSUB): Ditto.
2726 (UNSPEC_VSX_NMADD): Ditto.
2727 (UNSPEC_VSX_NMSUB): Ditto.
2728 (vsx_fmadd<mode>4*): Rewrite to use FMA rtl in some cases instead
2729 of UNSPEC. Renumber combiner patterns.
2730 (vsx_fmsub<mode>4*): Ditto.
2731 (vsx_fnmadd<mode>4*): Ditto.
2732 (vsx_fnmsub<mode>4*): Ditto.
2733
2734 * config/rs6000/altivec.md (UNSPEC_VNMSUBFP): Delete.
2735 (altivec_vmaddfp): Rewrite to use FMA rtl if no fused
2736 multiply/add. Rename combiner pattern, and add TARGET_FUSED_MADD test.
2737 (altivec_vmaddfp_1): Ditto.
2738 (altivec_vmaddfp_2): Ditto.
2739 (atlivec_mulv4sf3): Ditto.
2740 (altivec_vnmsubfp): Ditto.
2741 (altivec_vnmsubfp_1): Ditto.
2742 (altivec_vnmsubfp_2): Ditto.
2743 (altivec_vnmsubfp_3): Delete.
2744
2745 * config/rs6000/rs6000.md (fmasf4): New insns for fma builtin support.
2746 (fmasf4_fpr): Ditto.
2747 (fmssf4_fpr): Ditto.
2748 (fnmasf4_fpr): Ditto.
2749 (fnmssf4_fpr): Ditto.
2750 (fmadf4): Ditto.
2751 (fmadf4_fpr): Ditto.
2752 (fmsdf4_fpr): Ditto.
2753 (fnmadf4_fpr): Ditto.
2754 (fnmsdf4_fpr): Ditto.
2755
2756 * optabs.h (OTI_fma): Add fma optab.
2757 (fma_optab): Ditto.
2758
2759 * genopinit.c (optabs): Set fma optab.
2760
2761 * rtl.def (FMA): Add FMA rtl.
2762
2763 * tree.h (mode_has_fma): New function to return if MODE supports a
2764 fast multiply and add instruction.
2765 * builtins.c (mode_has_fma): Ditto.
2766
2767 2010-10-15 Jan Hubicka <jh@suse.cz>
2768
2769 * lto-streamer-out.c (write_symbol): Use pointer set of seen
2770 objects instead of bitmap.
2771 (produce_symtab): Likewise; output defined symbols first.
2772
2773 2010-10-15 Jie Zhang <jie@codesourcery.com>
2774
2775 * doc/invoke.texi: Add -fstrict-volatile-bitfields to
2776 Option Summary and Index.
2777
2778 2010-10-15 Richard Guenther <rguenther@suse.de>
2779
2780 * tree.c (free_lang_data_in_decl): Clear DECL_INITIAL
2781 for automatic variables again.
2782
2783 2010-10-15 Joseph Myers <joseph@codesourcery.com>
2784
2785 * doc/extend.texi (Variable Length): Don't refer to VLAs not
2786 conforming to C99.
2787
2788 2010-10-15 Joseph Myers <joseph@codesourcery.com>
2789
2790 * config/rx/rx.c (rx_option_optimization): Change to
2791 rx_override_options_after_change. Don't change
2792 flag_lto_compression_level. Don't check for changes to whether
2793 FPU instructions can be used. Check and set only
2794 flag_finite_math_only, not other fast-math flags.
2795 (rx_option_override): Call rx_override_options_after_change.
2796 (TARGET_OPTION_OPTIMIZATION): Remove.
2797 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
2798
2799 2010-10-15 Joseph Myers <joseph@codesourcery.com>
2800
2801 * config/rs6000/rs6000.c (rs6000_option_optimization): Don't
2802 disable section anchors for lang_hooks.name[4] != 'O'.
2803
2804 2010-10-15 Joseph Myers <joseph@codesourcery.com>
2805
2806 * config/frv/frv.c (frv_option_optimization,
2807 TARGET_OPTION_OPTIMIZATION): Remove.
2808 * config/frv/frv.h (RCSP_SOFTWARE_PIPELINING): Remove.
2809
2810 2010-10-15 Michael Matz <matz@suse.de>
2811
2812 * cgraphunit.c (clone_of_p): Define unconditionally.
2813
2814 2010-10-15 Richard Guenther <rguenther@suse.de>
2815
2816 PR lto/45957
2817 * tree.c (free_lang_data_in_decl): Do not clear DECL_INITIAL of vars.
2818
2819 2010-10-15 Chung-Lin Tang <cltang@codesourcery.com>
2820
2821 * ifcvt.c (find_active_insn_before): New function.
2822 (find_active_insn_after): New function.
2823 (cond_exec_process_if_block): Use new functions to replace
2824 prev_active_insn() and next_active_insn().
2825
2826 2010-10-14 Yao Qi <yao@codesourcery.com>
2827
2828 PR target/45447
2829 * config/arm/arm.c (arm_build_builtin_va_list): Assign
2830 va_list_name to TYPE_STUB_DECL (va_list_type).
2831
2832 2010-10-14 Jan Hubicka <jh@suse.cz>
2833
2834 PR middle-end/45621
2835 * cgraph.c (cgraph_update_edges_for_call_stmt_node): When new call is
2836 redirected to clone, be happy.
2837 * cgraph.h (cgraph node): Enable former_clone_of unconditinally.
2838 * cgraphunit.c (verify_cgraph_node, cgraph_materialize_clone): Handle
2839 former_clone_of unconditionally.
2840
2841 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
2842
2843 Merge from FSF apple 'trunk' branch.
2844 2006 Fariborz Jahanian <fjahanian@apple.com>
2845
2846 Radars 4436866, 4505126, 4506903, 4517826
2847 * c-parser.c (c_parser, objc_property_attr_context) New flag.
2848 (c_lex_one_token): Handle property attributes.
2849 (c_parser_external_declaration): Handle @property.
2850 (c_parser_declaration_or_fndef): Warn on invalid attributes before
2851 @alias, @class, @end and @property objc keywords.
2852 (c_parser_objc_methodprotolist): Handle @property.
2853 (c_parser_objc_property_attrlist): New.
2854 (c_parser_objc_at_property): New.
2855 * c-typeck.c (build_component_ref): Handle CLASS.property syntax.
2856 (build_modify_expr): Likewise.
2857
2858 2010-10-14 Jakub Jelinek <jakub@redhat.com>
2859
2860 PR tree-optimization/46008
2861 * tree-if-conv.c (predicate_bbs): Try to canonicalize c2 if possible.
2862
2863 2010-10-14 Richard Guenther <rguenther@suse.de>
2864
2865 PR tree-optimization/44913
2866 * tree-data-ref.c (disjoint_objects_p): Remove.
2867 (dr_may_alias_p): Simplify. Only hand the base object to
2868 the alias-oracle.
2869 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle
2870 some more trees, bail out instead of asserting.
2871 (ptr_derefs_may_alias_p): Likewise. Export.
2872 (refs_may_alias_p_1): Handle STRING_CSTs.
2873 * tree-ssa-alias.h (ptr_derefs_may_alias_p): Declare.
2874
2875 2010-10-14 Joseph Myers <joseph@codesourcery.com>
2876
2877 PR c/45969
2878 * c-typeck.c (build_binary_op): Don't try to compute a semantic
2879 type with excess precision for boolean operations.
2880
2881 2010-10-14 Jeremie Salvucci <jeremie.salvucci@free.fr>
2882 Basile Starynkevitch <basile@starynkevitch.net>
2883
2884 * gengtype.c: Include getopt.h and version.h.
2885
2886 (lang_bitmap, struct outf, outf_p)
2887 (get_output_file_with_visibility, oprintf): Definitions moved to
2888 gengtype.h
2889 (output_files, header_file, srcdir, srcdir_len, this_file)
2890 (do_dump): No more static variables.
2891 (do_debug): New.
2892 (dbgprint_count_type_at): Added new function.
2893 (gengtype_long_options): New.
2894 (print_usage, print_version, parse_program_options): New.
2895 (main): Call parse_program_options, and removed old option
2896 handling code. Added some debug output.
2897
2898 * gengtype.h: Updated copyright year.
2899 (lang_bitmap, struct outf, outf_p, header_file, oprintf)
2900 (get_output_file_with_visibility, srcdir, srcdir_len, do_dump):
2901 Moved from gengtype.c to here.
2902 (do_debug, read_state_filename, write_state_filename): New variables.
2903 (DBGPRINTF, DBGPRINT_COUNT_TYPE): New macros.
2904
2905 * Makefile.in:
2906 (REVISION): Always defined.
2907 (version.o): Removed ifdef REVISION_c.
2908 (s-gtype): Pass arguments to build/gengtype program.
2909 (build/version.o): Added building rule.
2910 (build/gengtype$(build_exeext)): Added build/version.o.
2911
2912 2010-10-14 Iain Sandoe <iains@gcc.gnu.org>
2913
2914 Partial merge of 'ObjC GC' from FSF apple 'trunk' branch.
2915 * config/darwin-c.c (darwin_cpp_builtins): Define __weak and
2916 __strong macros.
2917
2918 2010-10-14 Eric Botcazou <ebotcazou@adacore.com>
2919
2920 * sched-deps.c (sched_insn_is_legitimate_for_speculation): Invoke
2921 may_trap_or_fault_p instead of may_trap_p predicate.
2922 * tree.c (substitute_in_expr): Propagate the TREE_THIS_NOTRAP flag.
2923 (substitute_placeholder_in_expr): Likewise.
2924 * tree-inline.c (remap_gimple_op_r): Propagate the TREE_THIS_NOTRAP
2925 flag on MEM_REF nodes.
2926 (copy_tree_body_r): Propagate the TREE_READONLY and TREE_THIS_NOTRAP
2927 flags on INDIRECT_REF nodes.
2928
2929 2010-10-14 Nathan Froyd <froydnj@codesourcery.com>
2930
2931 * config.gcc (arm*-*-linux-*eabi) <tm_file>: Add bpabi.h from libgcc.
2932 (arm*-*-uclinux*eabi) <tm_file>: Likewise.
2933 (arm*-*-eabi*) <tm_file>: Likewise.
2934 (frv-*-elf) <tm_file>: Add frv-abi.h from libgcc.
2935 (frv-*-*linux*) <tm_file>: Likewise.
2936 * config/arm/bpabi.h: Delete DECLARE_LIBRARY_RENAMES stanzas
2937 and associated helper macros.
2938 * config/frv/frv-abi.h: Delete.
2939
2940 2010-10-14 Richard Guenther <rguenther@suse.de>
2941
2942 PR lto/44561
2943 * tree.def (NULLPTR_TYPE): New tree code.
2944 * dbxout.c (dbxout_type): Handle NULLPTR_TYPE.
2945 * dwarf2out.c (is_base_type): Likewise.
2946 (gen_type_die_with_usage): Likewise.
2947 * sdbout.c (plain_type_1): Likewise.
2948 * tree.c (build_int_cst_wide): Likewise.
2949 * gimple.c (gimple_types_compatible_p_1): NULLPTR_TYPE types are equal.
2950
2951 2010-10-14 Joseph Myers <joseph@codesourcery.com>
2952
2953 * params.c (params_finished): New.
2954 (add_params): Assert !params_finished.
2955 (finish_params): New.
2956 (set_param_value_internal): Take params and params_set
2957 parameters. Assert params_finished.
2958 (set_param_value, maybe_set_param_value): Take params and
2959 params_set parameters. Update calls to set_param_value_internal.
2960 (set_default_param_value): Assert !params_finished. Don't use
2961 set_param_value_internal.
2962 (default_param_value, init_param_values): New.
2963 * params.h (struct param_info): Change value to default_value.
2964 Remove set.
2965 (set_param_value, maybe_set_param_value): Add params and
2966 params_set parameters.
2967 (PARAM_VALUE): Get parameters from global_options.
2968 (PARAM_SET_P): Remove.
2969 (finish_params, default_param_value, init_param_values): New.
2970 * common.opt (param_values): New Variable.
2971 * config/arm/arm.c (arm_option_override): Pass extra arguments to
2972 maybe_set_param_value.
2973 * config/i386/i386.c (ix86_option_override_internal): Pass extra
2974 arguments to maybe_set_param_value.
2975 * config/picochip/picochip.c (picochip_option_override): Pass
2976 extra arguments to maybe_set_param_value.
2977 * config/rs6000/rs6000.c (rs6000_option_override_internal): Pass
2978 extra arguments to maybe_set_param_value.
2979 * config/s390/s390.c (s390_option_override): Use
2980 maybe_set_param_value instead of set_param_value. Pass extra
2981 arguments to maybe_set_param_value.
2982 * config/sparc/sparc.c (sparc_option_override): Pass extra
2983 arguments to maybe_set_param_value.
2984 * config/spu/spu.c (spu_option_override): Pass extra arguments to
2985 maybe_set_param_value.
2986 * opts.c (handle_param): Take opts and opts_set parameters.
2987 Update call to set_param_value.
2988 (initial_min_crossjump_insns, initial_max_fields_for_field_sensitive,
2989 initial_loop_invariant_max_bbs_in_loop): Remove.
2990 (init_options_once): Don't set them.
2991 (init_options_struct): Initialize parameters structures.
2992 (default_options_optimization): Use default_param_value when
2993 restoring defaults. Update calls to maybe_set_param_value.
2994 (finish_options): Update calls to maybe_set_param_value.
2995 (common_handle_option): Update calls to handle_param and
2996 set_param_value.
2997 * toplev.c (DEFPARAM): Update definition for changes to param_info.
2998 (general_init): Call finish_params.
2999
3000 2010-10-14 Nick Clifton <nickc@redhat.com>
3001
3002 * config/mn10300/mn10300.h (CONSTANT_ALIGNMENT): Define.
3003 (DATA_ALIGNMENT, LOCAL_ALIGNMENT): Define.
3004 (FIRST_PSEUDO_REGISTER): Increase by one.
3005 (FIXED_REGISTERS, CALL_USED_REGISTERS): Update with CC_REG.
3006 (HARD_REGNO_MODE_OK): Call mn10300_hard_regno_mode_ok.
3007 (MODES_TIEABLE): Call mn10300_modes_tieable.
3008 (REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGNO_REG_CLASS): Add CC_REGS.
3009 (LEGITIMATE_CONSTANT_P): Call mn10300_legitimate_constant_p.
3010 (CC_OVERFLOW_UNUSABLE, CC_NO_CARRY, NOTICE_UPDATE_CC)
3011 (SELECT_CC_MODE, REVERSIBLE_CC_MODE): Delete.
3012 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Add CC register.
3013 (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Delete.
3014 (mn10300_cc_status_mdep): Delete.
3015 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Delete.
3016 * config/mn10300/mn10300 (mn10300_option_override): Stop disabling
3017 the combine-stack-adjust pass.
3018 (print_operand): Use the mode of the comparison operation to
3019 select the comparison suffix.
3020 (notice_update_cc): Delete.
3021 (mn10300_secondary_reload_class): Remove test for stack pointer
3022 based arithmetic.
3023 (output_tst): Rename to mn10300_output_cmp.
3024 (impossible_plus_operand): Move into predicates.md.
3025 (mn10300_legitimize_address): Make static.
3026 (mn10300_legitimate_address_p): Make static. Only allow SI sized
3027 constant pic operands.
3028 (mn10300_legitimate_constant_p): New function.
3029 (mn10300_case_values_threshold): Make static.
3030 (mn10300_hard_regno_mode_ok): New function.
3031 (mn10300_modes_tieable): New function.
3032 (mn10300_select_cc_mode): New function.
3033 * config/mn10300/predicates.md (impossible_plus_operand): Define.
3034 * config/mn10300/mn10300-protos.h: Tidy.
3035 (mn10300_legitimate_constant_p, mn10300_modes_tieable)
3036 (mn10300_hard_regno_mode_ok, mn10300_select_cc_mode): Prototype.
3037 * config/mn10300/mn10300.md (cc attribute): Delete. Replace
3038 with clobbers or sets of CC_REG.
3039 (CC_REG): Define.
3040 (mov*): Remove use of CLR instruction.
3041 (cbranch_si4_<code>): New pattern/split.
3042 (integer_conditional_branch): New pattern.
3043 (cbranch_sf4_<code>): New pattern/split.
3044 (float_conditional_branch): New pattern.
3045 (casesi): Use addsi3 pattern instead of movsi pattern to add and
3046 move a value at the same time.
3047 (cc0 peepholes): Remove.
3048
3049 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
3050
3051 * sel-sched-ir.c (init_global_and_expr_for_insn): Set CANT_MOVE
3052 on RTX_FRAME_RELATED_P insns and the insn to which
3053 NOTE_INSN_EPILOGUE_BEG is attached.
3054 * sched-vis.c (print_value): Allow NULL value.
3055
3056 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
3057
3058 PR rtl-optimization/45570
3059 * sel-sched-ir.c (cfg_preds_1): When walking out of the region,
3060 assert that we are pipelining outer loops. Allow returning
3061 zero predecessors.
3062
3063 2010-10-14 Andrey Belevantsev <abel@ispras.ru>
3064
3065 * sel-sched-ir.c (maybe_tidy_empty_bb): Simplify comment.
3066 (tidy_control_flow): Tidy vertical space.
3067 (sel_remove_bb): New variable idx. Use it to remember the basic
3068 block index before deleting the block.
3069 (sel_remove_empty_bb): Remove dead code, simplify and insert to ...
3070 (sel_merge_blocks): ... here.
3071 * sel-sched-ir.h (sel_remove_empty_bb): Remove prototype.
3072
3073 2010-10-14 Jakub Jelinek <jakub@redhat.com>
3074
3075 * cse.c (is_dead_reg): Change into inline function that is not
3076 called through for_each_rtx.
3077 (set_live_p): Adjust caller.
3078 (insn_live_p): Don't reset DEBUG_INSNs here.
3079 (struct dead_debug_insn_data): New data.
3080 (count_stores, is_dead_debug_insn, replace_dead_reg): New functions.
3081 (delete_trivially_dead_insns): If there is just one setter for the
3082 dead reg that is referenced by some DEBUG_INSNs, create a DEBUG_EXPR
3083 and add DEBUG_INSN for it right before the removed setter and
3084 use the DEBUG_EXPR instead of the dead pseudo.
3085
3086 2010-10-14 Zdenek Dvorak <rakdver@kam.uniff.cz>
3087
3088 * et-forest.c (et_nca): Return NULL immediately when
3089 the dominance forest has disjoint components.
3090
3091 2010-10-13 Vladimir Makarov <vmakarov@redhat.com>
3092
3093 * ira.c (setup_class_hard_regs): Fix typo in indexing
3094 ira_non_ordered_class_hard_regs and ira_class_hard_reg_index.
3095
3096 2010-10-14 Tijs Wiebe Lefering <twlevo@gmail.com>
3097
3098 * graph.c (inbb): New variable.
3099 (start_bb): Set inbb to 1 if output is inside of a building block.
3100 (end_bb): Check if output is inside of a building block.
3101
3102 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
3103
3104 PR rtl-optimization/45912
3105 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Test the
3106 regno of registers instead of their index to compute the alignment.
3107
3108 2010-10-13 H.J. Lu <hongjiu.lu@intel.com>
3109
3110 * config/i386/i386.c (ix86_build_const_vector): Check vector
3111 mode instead of scalar mode.
3112 (ix86_build_signbit_mask): Likewise.
3113 (ix86_expand_fp_absneg_operator): Updated.
3114 (ix86_expand_copysign): Likewise.
3115 (ix86_expand_int_vcond): Likewise.
3116 (ix86_emit_swdivsf): Likewise.
3117 (ix86_sse_copysign_to_positive): Likewise.
3118 (ix86_expand_sse_fabs): Likewise.
3119 * config/i386/i386.md (fixuns_trunc<mode>si2): Likewise.
3120 * config/i386/sse.md (copysign<mode>3): Likewise.
3121 (sse2_cvtudq2ps): Likewise.
3122 (vec_unpacku_float_hi_v4si): Likewise.
3123 (vec_unpacku_float_lo_v4si): Likewise.
3124
3125 * config/i386/i386.c (ix86_builtins): Add
3126 IX86_BUILTIN_CPYSGNPS256 and IX86_BUILTIN_CPYSGNPD256.
3127 (bdesc_args): Likewise.
3128 (ix86_builtin_vectorized_function): Support
3129 IX86_BUILTIN_CPYSGNPS256, IX86_BUILTIN_CPYSGNPD256,
3130 IX86_BUILTIN_SQRTPD256, IX86_BUILTIN_SQRTPS_NR256,
3131 and IX86_BUILTIN_CVTPS2DQ256.
3132 (ix86_builtin_reciprocal): Support IX86_BUILTIN_SQRTPS_NR256.
3133
3134 * config/i386/sse.md (STORENT_MODE): New.
3135 (VEC_FLOAT_MODE): Likewise.
3136 (VEC_EXTRACT_MODE): Likewise.
3137 (*avx_cvtdq2pd256_2): Likewise.
3138 (vec_pack_trunc_v4df): Likewise.
3139 (vec_interleave_highv8sf): Likewise.
3140 (vec_interleave_lowv8sf): Likewise.
3141 (storent<mode>): Macroized.
3142 (<code><mode>2: absneg): Likewise.
3143 (copysign<mode>3): Likewise.
3144 (vec_extract<mode>): Likewise.
3145
3146 PR target/44180
3147 * config/i386/i386.c (expand_vec_perm_even_odd_1): Rewritten
3148 for V8SFmode.
3149
3150 2010-10-13 Richard Guenther <rguenther@suse.de>
3151 H.J. Lu <hongjiu.lu@intel.com>
3152
3153 * config/i386/sse.md (reduc_splus_v8sf): Add.
3154 (reduc_splus_v4df): Likewise.
3155 (vec_unpacks_hi_v8sf): Likewise.
3156 (vec_unpacks_lo_v8sf): Likewise.
3157 (*avx_cvtps2pd256_2): Likewise.
3158 (vec_unpacks_float_hi_v8si): Likewise.
3159 (vec_unpacks_float_lo_v8si): Likewise.
3160 (vec_interleave_highv4df): Likewise.
3161 (vec_interleave_lowv4df): Likewise.
3162
3163 2010-10-13 Richard Guenther <rguenther@suse.de>
3164
3165 PR objc/45878
3166 * gimple-fold.c (gimple_fold_obj_type_ref): Leave OBJ_TYPE_REFs
3167 alone if there are no virtual methods.
3168
3169 2010-10-13 Richard Henderson <rth@redhat.com>
3170
3171 * expr.c (build_personality_function): Take parameter LANG instead
3172 of parameter NAME. Build the name based on the lang prefix and the
3173 unwind method in use.
3174 * tree.c (lhd_gcc_personality): Update call to
3175 build_personality_function.
3176
3177 2010-10-13 Richard Guenther <rguenther@suse.de>
3178
3179 PR objc/45878
3180 * tree-ssa-ccpc (ccp_fold_stmt): Use gimple_fold_obj_type_ref.
3181
3182 2010-10-13 Eric Botcazou <ebotcazou@adacore.com>
3183
3184 * cse.c (cse_insn): Fix thinko in the canonicalization of USE insns.
3185 Canonicalize input operands of ASM_OPERANDS insns.
3186
3187 2010-10-13 Richard Guenther <rguenther@suse.de>
3188
3189 PR tree-optimization/45788
3190 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Delay
3191 EH update until fixup-cfg.
3192
3193 2010-10-13 Julian Brown <julian@codesourcery.com>
3194
3195 * config/arm/arm.h (REG_CLASS_CONTENTS): Remove soft frame pointer
3196 from CORE_REGS and GENERAL_REGS classes.
3197 * config/arm/arm.md (*thumb1_movsi_insn): Ignore all parts of
3198 final constraint for register preferencing.
3199
3200 2010-10-13 Richard Guenther <rguenther@suse.de>
3201
3202 PR tree-optimization/45970
3203 * tree-ssa-alias.h (stmt_kills_ref_p): Declare.
3204 * tree-ssa-alias.c (stmt_kills_ref_p_1): New function.
3205 (stmt_kills_ref_p): Likewise.
3206 * tree-ssa-dse.c (dse_optimize_stmt): Use it.
3207
3208 2010-10-13 Richard Guenther <rguenther@suse.de>
3209
3210 PR tree-optimization/45982
3211 * tree-ssa-structalias.c (make_constraints_to): New function.
3212 (make_constraint_to): Implement in terms of make_constraints_to.
3213 (find_func_aliases): Properly make return values of pure/const
3214 functions escape if they assign to sth that is not a pointer.
3215
3216 2010-10-13 Richard Guenther <rguenther@suse.de>
3217
3218 PR middle-end/45874
3219 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
3220 Fixup the CFG when EH was fixed up.
3221
3222 2010-10-13 Ira Rosen <irar@il.ibm.com>
3223
3224 * tree-vect-slp.c (vect_get_constant_vectors): Fix comment.
3225 Use operand's type for POINTER_PLUS_EXPR.
3226
3227 2010-10-13 Alexandre Oliva <aoliva@redhat.com>
3228
3229 * c-parser.c (c_parser_for_statement): Initialize incr.
3230
3231 2010-10-12 Xinliang David Li <davidxl@google.com>
3232
3233 PR tree-optimization/45972
3234 * tree-ssa-uninit.c (compute_uninit_opnds_pos): Skip phis
3235 with too many arguments.
3236
3237 2010-10-12 Jakub Jelinek <jakub@redhat.com>
3238
3239 PR fortran/45636
3240 * tree-ssa-forwprop.c: Include expr.h.
3241 (constant_pointer_difference, simplify_builtin_call): New functions.
3242 (tree_ssa_forward_propagate_single_use_vars): Call
3243 simplify_builtin_call on builtin calls.
3244
3245 2010-10-12 Eric Botcazou <ebotcazou@adacore.com>
3246
3247 * config/sparc/sparc.md (*adddi3_insn_sp32): Rename.
3248 (*adddi3_extend_sp32): Likewise.
3249 (*subdi3_insn_sp32): Likewise.
3250 (*subdi3_extend_sp32): Likewise.
3251 (*negdi2_sp32): Use negative test for consistency.
3252
3253 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
3254
3255 * libgcc2.h: Use __SIZEOF_DOUBLE__ instead of LIBGCC2_DOUBLE_TYPE_SIZE.
3256 (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
3257 * config/fixed-bit.h: Likewise.
3258 * config/rx/rx.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
3259 * config/sh/sh.h (LIBGCC2_DOUBLE_TYPE_SIZE): Delete.
3260 * system.h (LIBGCC2_DOUBLE_TYPE_SIZE): Poison.
3261 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE): Use DOUBLE_TYPE_SIZE.
3262 (DF_SIZE): Likewise.
3263 * doc/tm.texi: Regenerate.
3264
3265 2010-10-12 Nathan Froyd <froydnj@codesourcery.com>
3266
3267 * config/rs6000/predicates.md (scc_rev_comparison_operator): New.
3268 * config/rs6000/rs6000.md (*isel_reversed_signed_<mode>): New.
3269 (*isel_reversed_unsigned_<mode>): New.
3270 * config/rs6000/rs6000.c (output_isel): Accept GE/GEU/LE/LEU/NE
3271 as valid comparisons and adjust operands and output appropriately.
3272 (rs6000_rtx_costs) <CONST_INT>: Accept NE as a cost-0 outer_code.
3273
3274 2010-10-12 Chung-Lin Tang <cltang@codesourcery.com>
3275
3276 * config/arm/arm.h (ARM_EXPAND_ALIGNMENT): Rename from
3277 DATA_ALIGNMENT and add COND parameter. Update comments above.
3278 (DATA_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !optimize_size.
3279 (LOCAL_ALIGNMENT): Use ARM_EXPAND_ALIGNMENT, with !flag_conserve_stack.
3280
3281 2010-10-12 H.J. Lu <hongjiu.lu@intel.com>
3282
3283 PR bootstrap/45958
3284 * exec-tool.in: Support '-plugin' as the second option to the linker.
3285
3286 2010-10-12 Richard Henderson <rth@redhat.com>
3287
3288 PR middle-end/45962
3289 * cfgexpand.c (add_stack_var): Ensure every variable has 1 byte.
3290 (expand_stack_vars): Assert large base allocated when used.
3291
3292 2010-10-12 Richard Guenther <rguenther@suse.de>
3293
3294 * tree-ssa-structalias.c (get_constraint_for_1): Constants
3295 only point to nonlocal, not anything.
3296
3297 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
3298
3299 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Use sjlj
3300 unwind info for exceptions.
3301
3302 2010-10-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3303
3304 PR testsuite/45851
3305 * doc/sourcebuild.texi (LTO Testing, dg-extra-ld-options):
3306 Document optional target selector.
3307
3308 2010-10-12 Joseph Myers <joseph@codesourcery.com>
3309
3310 * flag-types.h: New.
3311 * Makefile.in (TH_H): Include $(OPTIONS_H) instead of $(FLAGS_H).
3312 (FLAGS_H): Include flag-types.h. Include $(OPTIONS_H) instead of
3313 options.h.
3314 (OPTIONS_H): Define.
3315 (c-family/c-opts.o, lto-opts.o, opts.o): Use $(OPTIONS_H) instead
3316 of options.h.
3317 * configure.ac (tm_include_list): Include options.h not flags.h.
3318 * configure: Regenerate.
3319 * flags.h: Include flag-types.h. Include options.h at top of file
3320 again.
3321 (enum debug_info_type, enum debug_info_level, enum
3322 debug_info_usage, enum symbol_visibility, struct visibility_flags,
3323 enum ira_algorithm, enum ira_region, enum excess_precision, enum
3324 graph_dump_types, enum stack_check_type,
3325 enum warn_strict_overflow_code): Move to flag-types.h
3326 * opth-gen.awk: Include flag-types.h in options.h.
3327
3328 2010-10-12 Jakub Jelinek <jakub@redhat.com>
3329
3330 * expr.c (store_expr): Share code for STRING_CST and
3331 MEM_REF of &STRING_CST cases. Don't require BLKmode, instead
3332 check if target is a MEM.
3333
3334 * rtl.h: Include hashtab.h.
3335 (iterative_hash_rtx): New prototype.
3336 * rtl.c (iterative_hash_rtx): New function.
3337 * dwarf2out.c (dw_loc_list_node): Add hash and emitted fields.
3338 (output_loc_list): Return immediately if emitted is set, set it.
3339 (hash_loc_operands, hash_locs, hash_loc_list,
3340 compare_loc_operands, compare_locs, loc_list_hash, loc_list_eq,
3341 optimize_location_lists_1, optimize_location_lists): New function.
3342 (dwarf2out_finish): Call optimize_location_lists.
3343 * Makefile.in (RTL_BASE_H): Depend on $(HASHTAB_H).
3344
3345 2010-10-12 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3346
3347 PR testsuite/45974
3348 Revert:
3349 * Makefile.in ($(lang_checks_parallel))
3350 ($(lang_checks_parallelized)): Use single quotes for
3351 $(RUNTESTFLAGS), to allow passing quoted content.
3352
3353 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3354
3355 * config/pa/linux-atomic.c (__sync_val_compare_and_swap_4): Return
3356 actual_oldval. Use __builtin_expect.
3357 (SUBWORD_VAL_CAS): Likewise.
3358
3359 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
3360
3361 * recog.c (nonmemory_operand): Call immediate_operand for
3362 CONSTANT_P operands.
3363
3364 2010-10-11 Uros Bizjak <ubizjak@gmail.com>
3365
3366 * config/i386/i386.md (movmem<mode>): Macroize expander from
3367 movmem{si,di} using SWI48 mode iterator.
3368 (*strmovsi_1): Macroize insn pattern from *strmovsi_1 and
3369 *strmovsi_rex_1 using P mode iterator.
3370 (*strmovhi_1): Ditto from *strmovhi_1 and *strmovhi_rex_1.
3371 (*strmovqi_1): Ditto from *strmovqi_1 and *strmovqi_rex_1.
3372 (*rep_movsi): Ditto from *rep_movsi and *rep_movsi_rex64.
3373 (*rep_movqi): Ditto from *rep_movqi and *rep_movqi_rex64.
3374 (setmem<mode>): Macroize expander from setmem{si,di} using
3375 SWI48 mode iterator.
3376 (*strsetsi_1): Macroize insn pattern from *strsetsi_1 and
3377 *strsetsi_rex_1 using P mode iterator.
3378 (*strsethi_1): Ditto from *strsethi_1 and *strsethi_rex_1.
3379 (*strsetqi_1): Ditto from *strsetqi_1 and *strsetqi_rex_1.
3380 (*rep_stossi): Ditto from *rep_stossi and *rep_stossi_rex64.
3381 (*rep_stosqi): Ditto from *rep_stosqi and *rep_stosqi_rex64.
3382 (*cmpstrnqi_nz_1): Ditto from *cmpstrnqi_nz_1 and *cmpstrnqi_nz_rex_1.
3383 (*cmpstrnqi_1): Ditto from *cmpstrnqi_1 and *cmpstrnqi_rex_1.
3384 (strlen<mode>): Macroize expander from strlen{si,di} using SWI48x
3385 mode iterator.
3386 (*strlenqi_1): Macroize insn pattern from *strlenqi_1 and
3387 *strlenqi_rex_1 using P mode iterator.
3388
3389 2010-10-11 Bernd Schmidt <bernds@codesourcery.com>
3390
3391 PR bootstrap/45445
3392 * ira-lives.c (mark_pseudo_reg_live, mark_pseudo_reg_dead): New
3393 static functions.
3394 (mark_ref_live, mark_ref_dead): Use them.
3395 (make_pseudo_conflict): New arg ORIG_DREG. All callers changed.
3396 Save the original reg, and use the new functions.
3397 (check_and_make_def_use_conflict): New arg ORIG_DREG. All callers
3398 changed.
3399 (check_and_make_def_conflict): Save the original reg.
3400
3401 2010-10-11 Martin Jambor <mjambor@suse.cz>
3402
3403 PR middle-end/45699
3404 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Choose among
3405 thunks.
3406
3407 2010-10-11 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
3408
3409 * Makefile.in ($(lang_checks_parallel))
3410 ($(lang_checks_parallelized)): Use single quotes for
3411 $(RUNTESTFLAGS), to allow passing quoted content.
3412
3413 PR bootstrap/35855
3414 * opt-functions.awk (BEGIN): New section.
3415 (lower, upper, digit, alnum): New variables.
3416 (static_var, opt_sanitized_name): Use alnum instead of character
3417 classes, for non-C locale.
3418 * optc-gen.awk: Likewise.
3419 * opth-gen.awk: Likewise.
3420
3421 2010-10-11 Anatoly Sokolov <aesok@post.ru>
3422
3423 * target.def (preferred_reload_class): New hook.
3424 * doc/tm.texi.in (TARGET_PREFERRED_RELOAD_CLASS): Document.
3425 * doc/tm.texi: Regenerate.
3426 * targhooks.c (default_preferred_reload_class): New function.
3427 * targhooks.h (default_preferred_reload_class): Declare.
3428 * reload.c (find_dummy_reload): Change preferred_class variable type
3429 from enum reg_class to reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS
3430 target hook.
3431 (find_reloads): Change goal_alternative array type from int to
3432 reg_class_t. Use TARGET_PREFERRED_RELOAD_CLASS target hook.
3433 (push_reload, find_reloads_address_part): Use
3434 TARGET_PREFERRED_RELOAD_CLASS target hook.
3435 * reload1.c (emit_input_reload_insns): Ditto.
3436 * ira-costs.c (copy_cost): Use TARGET_PREFERRED_RELOAD_CLASS target
3437 hook. Change rclass argument and secondary_class variable types from
3438 'enum reg_class' to reg_class_t.
3439
3440 * config/i386/i386.h (PREFERRED_RELOAD_CLASS): Remove.
3441 * config/i386/i386-protos (ix86_preferred_reload_class): Remove.
3442 * config/i386/i386.c (ix86_preferred_reload_class): Make static.
3443 Change regclass argument and result types from enum reg_class to
3444 reg_class_t.
3445 (TARGET_PREFERRED_RELOAD_CLASS): Define.
3446
3447 2010-10-11 Eric Botcazou <ebotcazou@adacore.com>
3448
3449 * simplify-rtx.c (simplify_unary_operation_1): Use unsigned arithmetics
3450 in masking operations.
3451 (simplify_const_unary_operation): Likewise.
3452 (simplify_binary_operation_1): Likewise.
3453 (simplify_const_binary_operation): Likewise.
3454 (simplify_const_relational_operation): Likewise.
3455 (simplify_ternary_operation): Likewise.
3456 (simplify_immed_subreg): Likewise.
3457
3458 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3459
3460 PR middle-end/45862
3461 * doc/tm.texi.in (SUPPORTS_WEAK): Update.
3462 (TARGET_SUPPORTS_WEAK): New.
3463 * doc/tm.texi: Regenerate.
3464 * defaults.h (SUPPORTS_WEAK): Update comment.
3465 (TARGET_SUPPORTS_WEAK): New.
3466 * dwarf2asm.c (USE_LINKONCE_INDIRECT): Update define.
3467 * varasm.c (assemble_external): Use TARGET_SUPPORTS_WEAK instead of
3468 SUPPORTS_WEAK.
3469 (merge_weak, declare_weak, do_assemble_alias, supports_one_only,
3470 make_decl_one_only): Likewise.
3471 * config/pa/som.h (SUPPORTS_WEAK): Rename defines to
3472 TARGET_SUPPORTS_WEAK.
3473 (SUPPORTS_ONE_ONLY, MAKE_DECL_ONE_ONLY): Use TARGET_SUPPORTS_WEAK
3474 instead of SUPPORTS_WEAK.
3475
3476 2010-10-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3477
3478 * config/sparc/gmon-sol2.c: Don't include coretypes.h, tm.h.
3479
3480 2010-10-11 Nathan Froyd <froydnj@codesourcery.com>
3481
3482 * vec.h (VEC_qsort): Define.
3483 * dbxout.c (output_used_types): Use it.
3484 * df-scan.c (df_sort_and_compress_refs): Likewise.
3485 (df_sort_and_compress_mws): Likewise.
3486 * genautomata.c (uniq_sort_alt_states): Likewise.
3487 (evaluate_equiv_classes): Likewise.
3488 (output_trans_table): Likewise.
3489 (output_state): Likewise.
3490 * gimplify.c (compare_case_labels): Likewise.
3491 * graphite-sese-to-poly.c (graphite_sort_dominated_info): Likewise.
3492 * ipa.c (build_cdtor_fns): Likewise.
3493 * lto.c (lto_wpa_write_files): Likewise.
3494 * sel-sched.c (fill_vec_av_set): Likewise.
3495 * tree-predcom.c (determine_roots_comp): Likewise.
3496 * tree-sra.c (sort_and_spliace_var_accesses): Likewise.
3497 (splice_param_accesses): Likewise.
3498 * tree-ssa-live.c (dump_enumerated_decls): Likewise.
3499 * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
3500 (reassociate_bb): Likewise.
3501 * tree-ssa-sccvn.c (sort_scc): Likewise.
3502 * tree-ssa-structalias.c (sort_fieldstack): Likewise.
3503
3504 2010-10-11 Ian Lance Taylor <iant@google.com>
3505
3506 * tree.h (TREE_THIS_NOTRAP): Use TREE_CHECK5.
3507 * emit-rtl.c (set_mem_attributes_minus_bitpos): Only check
3508 TREE_THIS_NOTRAP when appropriate.
3509 (get_spill_slot_decl): Don't set TREE_THIS_NOTRAP on the new VAR_DECL.
3510 * gimplify.c (gimplify_expr): Copy NOTRAP from INDIRECT_REF to
3511 newly created MEM_REF.
3512
3513 2010-10-11 Hariharan Sandanagobalane <hariharan@picochip.com>
3514
3515 Nathan Froyds patch to hooks FUNCTION_ARG etc.
3516 * config/picochip/picochip-protos.h (picochip_function_arg): Delete.
3517 (picochip_incoming_function_arg): Delete.
3518 (picochip_arg_advance): Delete.
3519 * config/picochip/picochip.h (FUNCTION_ARG): Delete.
3520 (FUNCTION_INCOMING_ARG): Delete.
3521 (FUNCTION_ARG_ADVANCE): Delete.
3522 * config/picochip/picochip.c (picochip_function_arg): Take a
3523 const_tree and a bool.
3524 (picochip_incoming_function_arg): Likewise.
3525 (picochip_arg_advance): Likewise.
3526 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
3527 (TARGET_FUNCTION_ARG_ADVANCE): Define.
3528
3529 2010-10-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3530
3531 PR middle-end/45955
3532 * ipa.c (build_cdtor): Delete endless loop.
3533
3534 2010-10-07 Andi Kleen <ak@linux.intel.com>
3535
3536 * Makefile.in (MOSTLYCLEANFILES): Remove cc1*dummy, add
3537 checksum-options.
3538 (checksum-options): Add.
3539 (cc1-dummy): Remove.
3540 (cc1-checksum): Change to run checksum over object files
3541 and options only.
3542 * dummy-checksum.c: Remove.
3543 * genchecksum.c: Update copyright.
3544 (usage): Allow multiple arguments.
3545 (BLOCKSIZE): Add.
3546 (dosum): Change for incremental checksum. Remove C output.
3547 (main): Iterate over all argument files. Add C output.
3548
3549 2010-10-11 Joseph Myers <joseph@codesourcery.com>
3550
3551 * params.c (set_param_value_internal): New.
3552 (set_param_value): Use set_param_value_internal.
3553 (maybe_set_param_value, set_default_param_value): New.
3554 * params.h (PARAM_VALUE, PARAM_SET_P): Make into rvalues.
3555 (maybe_set_param_value, set_default_param_value): Declare.
3556 * config/arm/arm.c (arm_option_override): Use maybe_set_param_value.
3557 * config/i386/i386.c (ix86_option_override_internal): Use
3558 maybe_set_param_value.
3559 * config/ia64/ia64.c (ia64_option_default_params,
3560 TARGET_OPTION_DEFAULT_PARAMS): New.
3561 (ia64_option_optimization): Move some code to
3562 ia64_option_default_params.
3563 * config/picochip/picochip.c (picochip_option_override): Use
3564 maybe_set_param_value.
3565 * config/rs6000/rs6000.c (rs6000_option_default_params,
3566 TARGET_OPTION_DEFAULT_PARAMS): New.
3567 (rs6000_option_override_internal): Use maybe_set_param_value.
3568 (rs6000_option_optimization): Move some code to
3569 rs6000_option_default_params.
3570 * config/s390/s390.c (s390_option_override): Use maybe_set_param_value.
3571 * config/sh/sh.c (sh_option_default_params,
3572 TARGET_OPTION_DEFAULT_PARAMS): New.
3573 (sh_option_optimization): Move some code to sh_option_default_params.
3574 * config/sparc/sparc.c (sparc_option_override): Use
3575 maybe_set_param_value.
3576 * config/spu/spu.c (spu_option_default_params,
3577 TARGET_OPTION_DEFAULT_PARAMS): New.
3578 (spu_option_optimization): Move some code to spu_option_default_params.
3579 (spu_option_override): Use maybe_set_param_value.
3580 * doc/tm.texi.in (TARGET_OPTION_DEFAULT_PARAMS): New @hook.
3581 * doc/tm.texi: Regenerate.
3582 * ggc-common.c (init_ggc_heuristics): Use set_default_param_value.
3583 * opts.c (init_options_once): Use PARAM_VALUE not direct access to
3584 compiler_params.
3585 (default_options_optimization): Use maybe_set_param_value.
3586 (finish_options): Use maybe_set_param_value.
3587 * target.def (target_option.default_params): New hook.
3588 * toplev.c (general_init): Call targetm.target_option.default_params.
3589
3590 2010-10-11 Ira Rosen <irar@il.ibm.com>
3591
3592 PR tree-optimization/45902
3593 * tree-vect-slp.c (vect_get_constant_vectors): Use statement's
3594 vector type for constants, unless it's a pointer.
3595
3596 2010-10-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
3597
3598 * config/s390/s390.md (*mov<mode>cc): lgoc -> locg and stgoc -> stocg.
3599
3600 2010-10-11 Jakub Jelinek <jakub@redhat.com>
3601
3602 PR target/45870
3603 * config/i386/i386.c (ix86_delegitimize_tls_address): New function.
3604 (ix86_delegitimize_address): Use it.
3605
3606 2010-10-10 Eric Botcazou <ebotcazou@adacore.com>
3607
3608 * opt-functions.awk (opt_sanitized_name): Remove gdwarf+ handling.
3609
3610 2010-10-10 Uros Bizjak <ubizjak@gmail.com>
3611
3612 * config/alpha/alpha.c (alpha_setup_incoming_varargs): Pass pointer
3613 to cum struct in the call to function_arg_advance.
3614 (alpha_function_arg_advance): Mark named as unused.
3615
3616 2010-10-10 Richard Sandiford <rdsandiford@googlemail.com>
3617
3618 * config/mips/mips.c (mips_handle_option): Make "value" with
3619 ATTRIBUTE_UNUSED.
3620
3621 2010-10-09 Richard Henderson <rth@redhat.com>
3622
3623 PR rtl-opt/33721
3624 * explow.c (allocate_dynamic_stack_space): Add REQUIRED_ALIGN parm,
3625 remove TARGET parm, convert KNOWN_ALIGN parm to SIZE_ALIGN. Honor
3626 required_align, tidy the code a bit. Emit split_stack code in the
3627 right place. Mark the return value with the alignment properly.
3628 * expr.h (allocate_dynamic_stack_space): Update decl.
3629 * builtins.c (expand_builtin_apply): Update call to
3630 allocate_dynamic_stack_space.
3631 (expand_builtin_alloca): Likewise. Remove TARGET parameter.
3632 * calls.c (initialize_argument_information): Update call to
3633 allocate_dynamic_stack_space.
3634 (expand_call): Likewise.
3635
3636 * cfgexpand.c (get_decl_align_unit): Don't limit alignment.
3637 Don't update_stack_alignment here.
3638 (alloc_stack_frame_space): Make ALIGN unsigned.
3639 (stack_var_cmp): Sort by alignment too.
3640 (partition_stack_vars): Don't merge large and small alignment vars.
3641 (expand_one_stack_var_at): Add BASE and BASE_ALIGN parameters.
3642 Take care when BASE is not virtual_stack_vars_rtx.
3643 (expand_stack_vars): Allocate dynamic stack space for large
3644 alignment variables.
3645 (expand_one_stack_var): Update all to expand_one_stack_var_at.
3646 (defer_stack_allocation): True for large alignment vars.
3647 (update_stack_alignment): Merge into ...
3648 (expand_one_var): ... here.
3649 (gimple_expand_cfg): Place code from expand_stack_vars.
3650
3651 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3652
3653 * config/pdp11/pdp11.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3654 * config/pdp11/pdp11.c (pdp11_function_arg): New function.
3655 (pdp11_function_arg_advance): New function.
3656 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3657
3658 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3659
3660 * libgcc2.h: Use __SIZEOF_LONG_LONG__ instead of LONG_LONG_TYPE_SIZE.
3661 * libgcc2.c: Likewise.
3662
3663 2010-10-09 Richard Guenther <rguenther@suse.de>
3664
3665 PR lto/45956
3666 * lto-streamer-in.c (lto_register_var_decl_in_symtab):
3667 Properly check if a decl is an automatic var.
3668
3669 2010-10-09 Richard Guenther <rguenther@suse.de>
3670
3671 PR lto/45947
3672 * tree.c (free_lang_data_in_cgraph): Properly walk the varpool.
3673
3674 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3675
3676 * config/mmix/mmix-protos.h (mmix_function_arg): Delete.
3677 * config/mmix/mmix.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3678 * config/mmix/mmix.c (mmix_function_arg): Rename to...
3679 (mmix_function_arg_1): ...this. Make static. Take a const_tree and
3680 bool arguments.
3681 (mmix_function_arg): New function.
3682 (mmix_function_incoming_arg): New function.
3683 (mmix_function_arg_advance): New function.
3684 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_INCOMING_ARG): Define.
3685 (TARGET_FUNCTION_ARG_ADVANCE): Define.
3686
3687 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3688
3689 * config/vax/vax.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3690 * config/vax/vax.c (vax_function_arg): New function.
3691 (vax_function_arg_advance): New function.
3692 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3693
3694 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3695
3696 * config/pa/pa-protos.h (function_arg): Delete.
3697 * config/pa/pa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3698 * config/pa/pa.c (function_arg): Rename to...
3699 (pa_function_arg): ...this. Make static. Take a const_tree and
3700 a bool.
3701 (pa_function_arg_advance): New function.
3702 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3703
3704 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3705
3706 * config/m68k/m68k.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3707 * config/m68k/m68k.c (m68k_function_arg): New function.
3708 (m68k_function_arg_advance): New function.
3709 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3710
3711 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3712
3713 * config/avr/avr-protos.h (function_arg): Delete.
3714 (function_arg_advance): Delete.
3715 * config/avr/avr.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3716 * config/avr/avr.c (function_arg): Rename to...
3717 (avr_function_arg): ...this. Make static. Take a const_tree and
3718 a bool.
3719 (function_arg_advance): Rename to...
3720 (avr_function_arg_advance): ...this. Make static. Take a
3721 const_tree and a bool.
3722 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3723
3724 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3725
3726 * config/alpha/alpha-protos.h (function_arg): Delete.
3727 * config/alpha/alpha.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3728 * config/alpha/vms.h (FUNCTION_ARG_ADVANCE): Delete.
3729 * config/alpha/alpha.c (function_arg): Rename to...
3730 (alpha_function_arg): ...this. Make static. Take a const_tree and
3731 a bool. Delete TARGET_ABI_UNICOSMK code.
3732 (alpha_function_arg_advance): New function.
3733 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3734
3735 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3736
3737 * config/mep/mep-protos.h (mep_function_arg): Delete.
3738 (mep_function_arg_advance): Delete.
3739 * config/mep/mep.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3740 * config/mep/mep.c (mep_function_arg): Make static. Take a
3741 const_tree and a bool.
3742 (mep_function_arg_advance): Likewise.
3743 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3744
3745 2010-10-09 Richard Guenther <rguenther@suse.de>
3746
3747 PR tree-optimization/45945
3748 * tree-ssa.c (execute_update_addresses_taken): Fixup LHS scanning.
3749
3750 2010-10-09 Eric Botcazou <ebotcazou@adacore.com>
3751
3752 PR tree-optimization/45612
3753 * ipa-split.c (test_nonssa_use): Remove bogus ATTRIBUTE_UNUSED.
3754 Test LABEL_DECLs as well. Fix formatting issues.
3755 (verify_non_ssa_vars): Return false for a GIMPLE_LABEL statement
3756 whose label is present in NON_SSA_VARS.
3757 (mark_nonssa_use): Remove bogus ATTRIBUTE_UNUSED. Handle LABEL_DECLs
3758 as well. Fix formatting issues.
3759 (visit_bb): Fix typos and formatting issue.
3760
3761 2010-10-09 Nathan Froyd <froydnj@codesourcery.com>
3762
3763 PR tree-optimization/45950
3764 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): Consult length
3765 before initializing vno->op.
3766
3767 2010-10-09 Ralf Corsépius <ralf.corsepius@rtems.org>
3768
3769 * config.gcc (bfin*-rtems*): Add newlib-stdint.h.
3770 * config.gcc (lm32*-rtems*): Add newlib-stdint.h.
3771
3772 2010-10-08 H.J. Lu <hongjiu.lu@intel.com>
3773
3774 PR target/45913
3775 * config/i386/i386.c (ix86_binary_operator_ok): Support
3776 "andhi/andsi/anddi" as a zero-extending move.
3777
3778 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3779
3780 * builtins.c (fold_call_stmt): Don't copy gimple call arguments
3781 into a temporary array.
3782
3783 2010-10-08 Jakub Jelinek <jakub@redhat.com>
3784
3785 PR tree-optimization/45903
3786 * simplify-rtx.c (simplify_subreg): Optimize lowpart SUBREG
3787 of {A,L}SHIFTRT of MEM.
3788
3789 2010-10-08 Richard Guenther <rguenther@suse.de>
3790
3791 * lto-streamer-in.c (lto_input_ts_decl_minimal_tree_pointers):
3792 Re-construct BLOCK_VARS.
3793 (lto_input_ts_block_tree_pointers): Do not stream BLOCK_VARS.
3794 * lto-streamer-out.c (lto_output_ts_block_tree_pointers): Likewise.
3795 * tree.c (free_lang_data_in_block): Remove.
3796 (free_lang_data_in_decl): Do not touch DECL_CONTEXT of non-PARM_DECLs.
3797 Do not touch the BLOCK tree.
3798 * expr.c (expand_expr_real_1): Allow externals.
3799
3800 2010-10-08 Richard Guenther <rguenther@suse.de>
3801
3802 * lto-streamer-out.c (lto_output_ts_block_tree_pointers):
3803 Do not output BLOCK_SUBBLOCKS.
3804 * lto-streamer-in.c (lto_input_ts_block_tree_pointers):
3805 Reserve exact space needed for BLOCK_NONLOCALIZED_VARS.
3806 Re-construct BLOCK_SUBBLOCKS of parent block.
3807 (lto_input_ts_binfo_tree_pointers): Reserve exact space needed
3808 for BINFO_BASE_ACCESSES.
3809
3810 2010-10-08 Joseph Myers <joseph@codesourcery.com>
3811
3812 * Makefile.in (TM_H): Include $(FLAGS_H) instead of options.h.
3813 (TREE_H): Include $(FLAGS_H) instead of options.h.
3814 (opts-common.o): Depend on $(FLAGS_H) instead of options.h.
3815 * c-objc-common.h (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
3816 * common.opt (flag_complex_method, flag_evaluation_order,
3817 flag_ira_algorithm, flag_ira_region, flag_warn_unused_result): New
3818 Variable declarations.
3819 * configure.ac (tm_include_list): Include flags.h instead of options.h.
3820 * configure: Regenerate.
3821 * flags.h: Condition out contents for target libraries. Include
3822 options.h at end of file.
3823 (flag_complex_method, flag_ira_algorithm, flag_ira_region,
3824 flag_evaluation_order, flag_warn_unused_result): Remove.
3825 * gcc.c (main): Intialize global_options with global_options_init.
3826 * langhooks-def.h (lhd_init_options_struct): Declare.
3827 (LANG_HOOKS_INIT_OPTIONS_STRUCT): Define.
3828 (LANG_HOOKS_INITIALIZER): Include LANG_HOOKS_INIT_OPTIONS_STRUCT.
3829 * langhooks.c (lhd_init_options_struct): New.
3830 * langhooks.h (struct lang_hooks): Add init_options_struct.
3831 Update comment on init_options.
3832 * optc-gen.awk: Generate initializer for global_options_init, not
3833 global_options.
3834 * opth-gen.awk: Condition out structure declarations for target
3835 libraries. Declare global_options_init.
3836 * opts-common.c: Include flags.h instead of options.h.
3837 * opts.c (flag_warn_unused_result): Remove.
3838 (read_cmdline_options): Take gcc_options parameters. Pass them to
3839 read_cmdline_option.
3840 (initial_lang_mask, initial_min_crossjump_insns,
3841 initial_max_fields_for_field_sensitive,
3842 initial_loop_invariant_max_bbs_in_loop): Define at file scope.
3843 (init_options_once): New. Split out of decode_options.
3844 (init_options_struct): New. Split out of decode_options.
3845 (decode_cmdline_options_to_array_default_mask): New.
3846 (default_options_optimization): New. Split out of decode_options.
3847 (decode_options): Move most code to other functions. Update call
3848 to read_cmdline_options.
3849 (finish_options): New. Split out of decode_options.
3850 * opts.h (decode_options): Add gcc_options parameters.
3851 (init_options_once, init_options_struct,
3852 decode_cmdline_options_to_array_default_mask): New.
3853 * toplev.c (flag_complex_method, flag_ira_algorithm,
3854 flag_ira_region, flag_evaluation_order): Remove.
3855 (general_init): Use global_options_init for initial flag values
3856 for global_dc.
3857 (toplev_main): Call init_options_once, init_options_struct,
3858 lang_hooks.init_options_struct,
3859 decode_cmdline_options_to_array_default_mask and
3860 lang_hooks.init_option before decode_options. Update arguments to
3861 decode_options.
3862 * tree.h: Include flags.h instead of options.h.
3863
3864 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3865
3866 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
3867
3868 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3869
3870 * config/sparc/sparc-protos.h (function_arg_advance, function-arg):
3871 Delete.
3872 * config/sparc/sparc.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
3873 (FUNCTION_INCOMING_ARG): Delete.
3874 * config/sparc/sparc.c (scan_record_type): Const-ify tree argument.
3875 (function_arg_slotno): Likewise. Take bool arguments.
3876 (sparc_arg_partial_bytes): Update call to it.
3877 (function_arg): Rename to...
3878 (sparc_function_arg_1): ...this. Take bool arguments.
3879 (sparc_function_arg, sparc_function_incoming_arg): New functions.
3880 (function_arg_advance): Rename to...
3881 (sparc_function_arg_advance): ...this. Take bool argument.
3882 (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG): Define.
3883 (TARGET_FUNCTION_INCOMING_ARG): Define.
3884
3885 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3886
3887 * config/bfin/bfin-protos.h (function_arg, function_arg_advance):
3888 Delete.
3889 * config/bfin/bfin.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3890 * config/bfin/bfin.c (function_arg_advance): Rename to...
3891 (bfin_function_arg_advance): ...this. Make static. Take const_tree
3892 and bool arguments.
3893 (function_arg): Rename to...
3894 (bfin_function_arg): ...this. Make static. Take const_tree and bool
3895 arguments.
3896 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3897
3898 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3899
3900 * config/score/score-protos.h (score_function_arg): Delete.
3901 (score_function_arg_advance): Delete.
3902 * config/score/score3.h (score3_function_arg_advance): Take a
3903 const_tree and a bool.
3904 (score3_function_arg): Likewise.
3905 * config/score/score7.h (score7_function_arg_advance): Likewise.
3906 (score7_function_arg): Likewise.
3907 * config/score/score3.c (score3_classify_arg): Likewise.
3908 (score3_function_arg_advance, score3_function_arg): Likewise.
3909 * config/score/score7.c (score7_classify_arg): Likewise.
3910 (score7_function_arg_advance, score7_function_arg): Likewise.
3911 * config/score/score.c (score_function_arg_advance): Likewise.
3912 (score_function_arg): Likewise. De-const-ify `cum' argument.
3913 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3914
3915 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3916
3917 * config/s390/s390-protos.h (s390_function_arg_advance): Delete.
3918 (s390_function_arg): Delete.
3919 * config/s390/s390.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
3920 * config/s390/s390.c (s390_function_arg_float): Take a const_tree.
3921 (s390_function_arg_integer): Likewise.
3922 (s390_function_arg_advance): Make static. Take a const_tree and
3923 a bool.
3924 (s390_function_arg): Likewise.
3925 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3926
3927 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3928
3929 * config/spu/spu-protos.h (spu_function_arg): Delete.
3930 * config/spu/spu.h (FUNCTION_ARG): Delete.
3931 (FUNCTION_ARG_ADVANCE): Move code to ...
3932 * config/spu/spu.c (spu_function_arg_advance): New function.
3933 (spu_function_arg): Make static. Take a const_tree and a bool.
3934 (spu_setup_incoming_varargs): Call spu_function_arg_advance.
3935 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
3936
3937 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3938
3939 * config/rx/rx.c (TARGET_EXCEPT_UNWIND_INFO): Define.
3940
3941 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3942
3943 * tree-ssa-sccvn.c (init_vn_nary_op_from_pieces): New function.
3944 (init_vn_nary_op_from_op): New function.
3945 (init_vn_nary_op_from_stmt): New function.
3946 (vn_nary_op_lookup_1): New function.
3947 (sizeof_vn_nary_op): New function.
3948 (alloc_vn_nary_op_noinit): New function.
3949 (alloc_vn_nary_op): New function.
3950 (vn_nary_op_insert_into): New function.
3951 (vn_nary_op_lookup_pieces): Rewrite to use new helper functions.
3952 (vn_nary_op_lookup): Likewise.
3953 (vn_nary_op_lookup_stmt): Likewise.
3954 (vn_nary_op_insert_pieces): Likewise.
3955 (vn_nary_op_insert): Likewise.
3956 (vn_nary_op_insert_stmt): Likewise.
3957 (copy_nary): Likewise.
3958 (set_value_id_for_result): New function.
3959 (set_hashtable_value_ids): Call it.
3960
3961 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3962
3963 * config/fr30/fr30.c (TARGET_EXCEPT_UNWIND_INFO): Define.
3964 * config/fr30/fr30.md (leave_func): Rewrite without post_inc.
3965
3966 2010-10-08 Nathan Froyd <froydnj@codesourcery.com>
3967
3968 * config/mcore/mcore.h (INCOMING_RETURN_ADDR_RTX): Define.
3969 * config/mcore/mcore.c (TARGET_EXCEPT_UNWIND_INFO): Define.
3970
3971 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
3972
3973 PR debug/45656
3974 * cse.c (cse_extended_basic_block): Preserve cc0 info across
3975 debug isnsn. Skip them when searching for cc0 setter.
3976 (set_live_p): Skip debug insns when searching for cc0 user.
3977
3978 2010-10-08 Alexandre Oliva <aoliva@redhat.com>
3979
3980 PR debug/45673
3981 PR debug/45604
3982 PR debug/45419
3983 PR debug/45408
3984 * tree-pretty-print.c (dump_generic_node): Explicitly dump the
3985 type of MEM_REFs to INTEGER_CSTs.
3986
3987 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
3988
3989 * config/m68hc11/m68hc11.c (m68hc11_print_operand): Call
3990 m68hc11_print_operand_address.
3991
3992 2010-10-07 Nathan Froyd <froydnj@codesourcery.com>
3993
3994 * builtins.c (rewrite_call_expr): Move code to...
3995 (rewrite_call_expr_valist): ...here. Call build_call_expr_loc_array.
3996 (rewrite_call_expr_array): New function.
3997 (fold_builtin_sprintf_chk_1): New function.
3998 (fold_builtin_sprintf_chk): Call it.
3999 (gimple_fold_builtin_sprintf_chk): Likewise.
4000 (fold_builtin_snprintf_chk_1): New function.
4001 (fold_builtin_snprintf_chk): Call it.
4002 (gimple_fold_builtin_snprintf_chk): Likewise.
4003 (gimple_rewrite_call_expr): Delete.
4004
4005 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
4006
4007 * config.host: Update copyright year.
4008
4009 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
4010
4011 * config.host (host_lto_plugin_soname): New shell variable.
4012 * configure.ac (LTOPLUGINSONAME): Add an AC_DEFINE for the above.
4013 * config.in: Regenerate.
4014 * configure: Regenerate.
4015 * gcc.c (main): Use LTOPLUGINSONAME instead of hard-coding name of
4016 LTO plugin shared library.
4017
4018 2010-10-07 Richard Henderson <rth@redhat.com>
4019
4020 * target.h (enum unwind_info_type): Move ...
4021 * coretypes.h: ... here.
4022
4023 2010-10-07 Nicola Pero <nicola.pero@meta-innovation.com>
4024
4025 * doc/objc.texi (Fast enumeration protocol): Mention that
4026 'unsigned int' can also be used instead of 'unsigned long' in
4027 countByEnumeratingWithState:objects:count:.
4028
4029 2010-10-07 Martin Jambor <mjambor@suse.cz>
4030
4031 * tree-sra.c (struct access): New field grp_assignment_write.
4032 (dump_access): Dump grp_assignment_write.
4033 (build_accesses_from_assign): Set grp_assignment_write.
4034 (sort_and_splice_var_accesses): Aggregate grp_assignment_write.
4035 (mark_read_status): Renamed to mark_rw_status, individual values
4036 renamed too.
4037 (analyze_access_subtree): Changed type of mark_write to
4038 mark_read_status. Fixed propagating of mark_read and
4039 mark_write. Changed benefit estimate. Updated comment.
4040
4041 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
4042
4043 PR Tree-Vect/45847
4044 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Add NULL
4045 check for vectype_out returned by get_vectype_for_scalar_type().
4046
4047 2010-10-07 Tejas Belagod <tejas.belagod@arm.com>
4048
4049 PR target/45805
4050 * config/arm/neon.md (neon_unpack<US>_<mode>): Add 'w' to
4051 constraint, add register specifier in instruction template.
4052 (neon_vec_pack_trunc_<mode>): Likewise.
4053 (neon_vec_<US>mult_<mode>): Add register specifier to
4054 instruction template.
4055
4056 2010-10-07 Dave Korn <dave.korn.cygwin@gmail.com>
4057
4058 * config.gcc (c_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add
4059 cygwin2.o.
4060 (cxx_target_objs)[i?86-*-pe|i?86-*-cygwin*]: Likewise.
4061 (extra_gcc_objs)[i?86-*-pe|i?86-*-cygwin*]: Don't add cygwin1.o.
4062 * config/i386/t-cygwin (cygwin1.o): Delete build rule.
4063 (cygwin2.o): Likewise.
4064 * config/i386/cygwin1.c: Delete file.
4065 * config/i386/cygwin2.c: Likewise.
4066 * config/i386/cygwin.h (CPP_SPEC): Remove all %{mno-cygwin} specs and
4067 make all {%!mno-cygwin} ones unconditional.
4068 (STARTFILE_SPEC): Likewise.
4069 (REAL_LIBGCC_SPEC): Likewise.
4070 (LIB_SPEC): Likewise.
4071 (CXX_WRAP_SPEC): Likewise.
4072 (LINK_SPEC): Likewise.
4073 (CYGWIN_MINGW_SUBDIR): Delete now-unused macro definition.
4074 (CYGWIN_MINGW_SUBDIR_LEN): Likewise.
4075 (cygwin_gplusplus_include_dir): Delete now-unused array.
4076 (GPLUSPLUS_INCLUDE_DIR): Don't redefine to point to it.
4077 (cygwin_gplusplus_tool_include_dir): Delete now-unused array.
4078 (GPLUSPLUS_TOOL_INCLUDE_DIR): Don't redefine to point to it.
4079 (cygwin_gplusplus_backward_include_dir): Delete now-unused array.
4080 (GPLUSPLUS_BACKWARD_INCLUDE_DIR): Don't redefine to point to it.
4081 (cygwin_local_include_dir): Delete now-unused array.
4082 (LOCAL_INCLUDE_DIR): Don't redefine to point to it.
4083 (cygwin_cross_include_dir): Delete now-unused array.
4084 (CROSS_INCLUDE_DIR): Don't redefine to point to it.
4085 (cygwin_tool_include_dir): Delete now-unused array.
4086 (TOOL_INCLUDE_DIR): Don't redefine to point to it.
4087 (cygwin_standard_include_dir): Delete now-unused array.
4088 (STANDARD_INCLUDE_DIR): Don't redefine to point to it.
4089 (GEN_CVT_ARRAY): Delete now-unused macro definition.
4090 (cvt_to_mingw): Delete now-unused array.
4091 (mingw_scan): Remove prototype of deleted function.
4092 (GCC_DRIVER_HOST_INITIALIZATION): Don't define now-unused target macro.
4093 * config/i386/cygming.opt (mcygwin): Delete target-specific option.
4094 * doc/invoke.texi (-mcygwin): Don't document removed option.
4095 (-mno-cygwin): Likewise.
4096
4097 2010-10-07 Richard Guenther <rguenther@suse.de>
4098
4099 * machmode.h (mode_for_vector): Declare.
4100 * stor-layout.c (mode_for_vector): New function, split out from ...
4101 (layout_type): ... here.
4102 * tree-vectorizer.h (current_vector_size): Declare.
4103 * tree-vect-stmts.c (perm_mask_for_reverse): Check if the
4104 mask vector type is available.
4105 (get_vectype_for_scalar_type): Rename to ...
4106 (get_vectype_for_scalar_type_and_size): ... this. Get a vector
4107 size argument.
4108 (get_vectype_for_scalar_type): New wrapper around
4109 get_vectype_for_scalar_type_and_size using current_vector_size.
4110 (get_same_sized_vectype): Use get_vectype_for_scalar_type_and_size.
4111 * tree-vect-loop.c (vect_analyze_loop_2): Split out core part
4112 of vect_analyze_loop here.
4113 (vect_analyze_loop): Loop over vector sizes calling vect_analyze_loop_3.
4114 * tree-vect-slp.c (vect_slp_analyze_bb): Set current_vector_size
4115 to autodetect.
4116 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Fix
4117 V8SF to V8SI conversion builtin.
4118
4119 2010-10-07 Richard Guenther <rguenther@suse.de>
4120
4121 * target.def (autovectorize_vector_sizes): New target hook.
4122 * targhooks.c (default_autovectorize_vector_sizes): New function.
4123 * targhooks.h (default_autovectorize_vector_sizes): Declare.
4124 * doc/tm.texi.in (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES):
4125 Document.
4126 * doc/tm.texi: Update.
4127 * config/i386/i386.c (ix86_autovectorize_vector_sizes): New function.
4128 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
4129
4130 2010-10-07 Richard Guenther <rguenther@suse.de>
4131
4132 * target.def (units_per_simd_word): Rename to ...
4133 (preferred_simd_mode): ... this. Return mode instead of size.
4134 * targhooks.c (default_units_per_simd_word): Rename to ...
4135 (default_preferred_simd_mode): ... this. Return word_mode.
4136 * targhooks.h (default_preferred_simd_mode): Declare.
4137 * config/arm/arm.c (arm_units_per_simd_word): Rename to ...
4138 (arm_preferred_simd_mode): ... this. Re-implement.
4139 * config/i386/i386.c (ix86_units_per_simd_word): Rename to ...
4140 (ix86_preferred_simd_mode): ... this. Re-implement.
4141 * config/sparc/sparc.c (sparc_units_per_simd_word): Rename to ...
4142 (sparc_preferred_simd_mode): ... this. Re-implement.
4143 * config/mips/mips.c (mips_units_per_simd_word): Rename to ...
4144 (mips_preferred_simd_mode): ... this. Re-implement.
4145 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Rename to ...
4146 (rs6000_preferred_simd_mode): ... this. Re-implement.
4147 * tree-vect-stmts.c (get_vectype_for_scalar_type): Adjust.
4148 * doc/tm.texi.in (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Remove.
4149 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE): Document.
4150 * doc/tm.texi: Update.
4151
4152 2010-10-07 Richard Guenther <rguenther@suse.de>
4153
4154 PR middle-end/45869
4155 * tree-cfg.c (verify_gimple_assign_binary): Allow vector shifts
4156 of pointers.
4157
4158 2010-10-07 Alan Modra <amodra@gmail.com>
4159
4160 * config/rs6000/rs6000.c (rs6000_emit_prologue): Use gen_int_mode
4161 rather than sign extension by hand.
4162
4163 2010-10-07 Jan Hubicka <jh@suse.cz>
4164
4165 PR middle-end/45926
4166 * ipa.c (cgraph_remove_unreachable_nodes): Revert my previous patch.
4167
4168 2010-10-07 Richard Guenther <rguenther@suse.de>
4169
4170 PR bootstrap/45914
4171 * configure.ac: Fix typo.
4172 * configure: Regenerated.
4173
4174 2010-10-06 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4175
4176 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Don't use
4177 define_builtin_std where it's unnecessary.
4178 * config/i386/nto.h (TARGET_OS_CPP_BUILTINS): Likewise.
4179
4180 2010-10-06 Anatoly Sokolov <aesok@post.ru>
4181
4182 * doc/tm.texi.in (CLASS_LIKELY_SPILLED_P): Remove documentation.
4183 * doc/tm.texi.in: Regenerate.
4184 * system.h (CLASS_LIKELY_SPILLED_P): Poison.
4185 * targhooks.c (default_class_likely_spilled_p): Don't use the
4186 CLASS_LIKELY_SPILLED_P macro.
4187
4188 * config/arm/arm.md: Update comment.
4189
4190 2010-10-06 Jan Hubicka <jh@suse.cz>
4191
4192 * ipa.c (cgraph_remove_unreachable_nodes): External references can
4193 always be removed.
4194 (cgraph_externally_visible_p): We can not bring local comdats that
4195 are known to linker; fix handling of internal visibility.
4196 (function_and_variable_visibility): Likewise.
4197
4198 2010-10-06 Eric Botcazou <ebotcazou@adacore.com>
4199
4200 PR rtl-optimization/45394
4201 * combine.c (cleanup_auto_inc_dec): Remove AFTER parameter and adjust.
4202 (struct rtx_subst_pair): Remove AFTER field.
4203 (propagate_for_debug_subst): Adjust call to cleanup_auto_inc_dec.
4204 (propagate_for_debug): Remove MOVE parameter and adjust.
4205 (try_combine): In the special case where I2 is a PARALLEL, combine only
4206 destinations of SETs and set I2SRC to the I2 source.
4207 Adjust calls to propagate_for_debug throughout.
4208 * reload1.c (eliminate_regs_1) <ASM_OPERANDS>: Do not abort for debug
4209 insns.
4210
4211 2010-10-06 Olivier Hainque <hainque@adacore.com>
4212
4213 * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Rewrite
4214 switch on insn codes as sequence of ifs.
4215
4216 2010-10-06 Hariharan Sandanagobalane <hariharan@picochip.com>
4217
4218 * config/picochip/picochip.c (TARGET_EXCEPT_UNWIND_INFO): Define it to
4219 be UI_NONE for picochip.
4220 (picochip_option_override): Do not disable exception flags.
4221 * config/picochip/picochip-protos.h (picochip_except_unwind_info):
4222 Declare.
4223
4224 2010-10-06 Richard Guenther <rguenther@suse.de>
4225
4226 * Makefile.in (regmove.o): Depend on $(TARGET_H).
4227
4228 2010-10-06 Nicola Pero <nicola.pero@meta-innovation.com>
4229
4230 Implemented fast enumeration for Objective-C.
4231 * c-parser.c (objc_could_be_foreach_context): New.
4232 (c_lex_one_token): Recognize RID_IN keyword in a potential
4233 Objective-C foreach context.
4234 (c_parser_declaration_or_fndef): Added parameter. Accept
4235 Objective-C RID_IN keyword as terminating a declaration; in that
4236 case, return the declaration in the new parameter.
4237 (c_parser_extenral_declaration): Updated calls to
4238 c_parser_declaration_or_fndef.
4239 (c_parser_declaration_or_fndef): Same change.
4240 (c_parser_compound_statement_nostart): Same change.
4241 (c_parser_label): Same change.
4242 (c_parser_objc_methodprotolist): Same change.
4243 (c_parser_omp_for_loop): Same change.
4244 (c_parser_for_statement): Detect and parse Objective-C foreach
4245 statements.
4246 (c_parser_omp_for_loop): Updated call to check_for_loop_decls().
4247 * c-decl.c (check_for_loop_decls): Added parameter to allow ObjC
4248 fast enumeration parsing code to turn off the c99 error but still
4249 perform checks on the loop declarations.
4250 * c-tree.h (check_for_loop_decls): Updated declaration.
4251 * doc/objc.texi: Document fast enumeration.
4252
4253 2010-10-06 Nick Clifton <nickc@redhat.com>
4254
4255 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Increment by one.
4256 (MDR_REGNUM): Define.
4257 (FIXED_REGISTERS, CALL_USED_REGISTERS): Add MDR as a fixed register.
4258 (REG_CLASS_CONTENTS): Add MDR to ALL_REGS.
4259 (INCOMING_RETURN_ADDR_RTX): Define in terms of MDR.
4260 (REGISTER_NAMES): Add MDR.
4261 (DWARF2_DEBUGGING_INFO): Define to 1.
4262 * config/mn10300/mn10300.c (TARGET_EXCEPT_UNWIND_INFO): Define.
4263 (F): New function. Sets RTX_FRAME_RELATED_P.
4264 (mn10300_gen_multiple_store): Use F.
4265 (expand_prologue): Use F. Use gen_movsf() to push floating
4266 point registers.
4267 (expand_epilogue): Use gen_movsf() to pop floating point registers.
4268 (mn10300_option_override): Disable combine stack adjust pass.
4269
4270 2010-10-06 Thomas Schwinge <thomas@schwinge.name>
4271
4272 PR target/45901
4273 * config/alpha/gnu.h (TARGET_OS_CPP_BUILTINS): Refer to
4274 LINUX_TARGET_OS_CPP_BUILTINS instead of HURD_TARGET_OS_CPP_BUILTINS.
4275
4276 2010-10-06 Jakub Jelinek <jakub@redhat.com>
4277
4278 * builtins.def (BUILT_IN_CALLOC, BUILT_IN_REALLOC,
4279 BUILT_IN_ISALNUM, BUILT_IN_ISALPHA, BUILT_IN_ISASCII,
4280 BUILT_IN_ISBLANK, BUILT_IN_ISCNTRL, BUILT_IN_ISDIGIT,
4281 BUILT_IN_ISGRAPH, BUILT_IN_ISLOWER, BUILT_IN_ISPRINT,
4282 BUILT_IN_ISPUNCT, BUILT_IN_ISSPACE, BUILT_IN_ISUPPER,
4283 BUILT_IN_ISXDIGIT, BUILT_IN_TOASCII, BUILT_IN_TOLOWER,
4284 BUILT_IN_TOUPPER): Mark as leaf.
4285
4286 PR middle-end/45838
4287 * omp-builtins.def (BUILT_IN_GOMP_PARALLEL_LOOP_STATIC_START,
4288 BUILT_IN_GOMP_PARALLEL_LOOP_DYNAMIC_START,
4289 BUILT_IN_GOMP_PARALLEL_LOOP_GUIDED_START,
4290 BUILT_IN_GOMP_PARALLEL_LOOP_RUNTIME_START,
4291 BUILT_IN_GOMP_PARALLEL_START, BUILT_IN_GOMP_TASK,
4292 BUILT_IN_GOMP_PARALLEL_SECTIONS_START): Use
4293 Revert back to ATTR_NOTHROW_LIST instead of ATTR_NOTHROW_LEAF_LIST.
4294
4295 2010-10-05 Anatoly Sokolov <aesok@post.ru>
4296
4297 * config/m68hc11/m68hc11.h (CLASS_LIKELY_SPILLED_P): Remove.
4298 * config/m68hc11/m68hc11.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
4299 (m68hc11_class_likely_spilled_p): New function.
4300
4301 2010-10-05 Nicola Pero <nicola.pero@meta-innovation.com>
4302
4303 * c-parser.c (c_parser_objc_method_definition): Updated comment.
4304
4305 2010-10-05 Jan Hubicka <jh@suse.cz>
4306
4307 * doc/invoke.texi (-flto-partition, lto-partitions, lto-minpartition):
4308 Document.
4309 * opts.c (decode_options): Handle lto partitions.
4310 * common.opt (flto-partition=1to1, flto-partition=balanced): New.
4311 * params.def (PARAM_LTO_PARTITIONS, MIN_PARTITION_SIZE): New.
4312
4313 2010-10-05 Jan Hubicka <jh@suse.cz>
4314
4315 * cgraphunit.c (assemble_function): Output thunks and aliases before
4316 the function itself.
4317
4318 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
4319
4320 * config/picochip/picochip.c (picochip_option_override): Disable
4321 exception flags for picochip.
4322
4323 2010-10-05 Joseph Myers <joseph@codesourcery.com>
4324
4325 * opts-common.c (handle_option, handle_generated_option,
4326 read_cmdline_option, set_option): Add diagnostic_context
4327 parameter. Update calls among these functions.
4328 (set_option): Don't use global_dc.
4329 * opts.c (read_cmdline_options): Pass global_dc to read_cmdline_option.
4330 (decode_options): Pass global_dc to enable_warning_as_error.
4331 (common_handle_option): Pass global_dc to enable_warning_as_error.
4332 (enable_warning_as_error): Add diagnostic_context parameter.
4333 Document parameters. Don't use global_dc. Pass
4334 diagnostic_context parameter to handle_generated_option.
4335 * opts.h (set_option, handle_option, handle_generated_option,
4336 read_cmdline_option, enable_warning_as_error): Add
4337 diagnostic_context parameter.
4338 * Makefile.in (lto-opts.o): Update dependencies.
4339 * coretypes.h (struct diagnostic_context, diagnostic_context):
4340 Declare here.
4341 * diagnostic.h (diagnostic_context): Don't declare typedef here.
4342 * gcc.c (process_command): Pass global_dc to read_cmdline_option.
4343 * langhooks-def.h (struct diagnostic_context): Don't declare here.
4344 (lhd_print_error_function, lhd_initialize_diagnostics): Declare
4345 using diagnostic_context typedef.
4346 * langhooks.c (lhd_initialize_diagnostics): Declare using
4347 diagnostic_context typedef.
4348 * langhooks.h (struct diagnostic_context): Don't declare here.
4349 (initialize_diagnostics, print_error_function): Declare using
4350 diagnostic_context typedef.
4351 * lto-opts.c: Include diagnostic.h.
4352 (lto_reissue_options): Pass global_dc to set_option. Pass
4353 DK_UNSPECIFIED not 0.
4354 * plugin.c (plugins_internal_error_function): Declare using
4355 diagnostic_context typedef.
4356 * plugin.h (struct diagnostic_context): Don't declare here.
4357 (plugins_internal_error_function): Declare using
4358 diagnostic_context typedef.
4359
4360 2010-10-05 Olivier Hainque <hainque@adacore.com>
4361 Nicolas Roche <roche@adacore.com>
4362
4363 * config/vxworksae.h: Add missing VXWORKS_OS_CPP_BUILTINS.
4364 * config/rs6000/vxworks.h: Remove redundant CPP builtin definitions.
4365
4366 2010-10-05 Ira Rosen <irar@il.ibm.com>
4367
4368 PR tree-optimization/45752
4369 * tree-vect-slp.c (vect_get_mask_element): Remove static
4370 variables, make them function arguments.
4371 (vect_transform_slp_perm_load): Pass new arguments to
4372 vect_get_mask_element.
4373
4374 2010-10-05 Richard Guenther <rguenther@suse.de>
4375
4376 * value-prof.c (gimple_divmod_fixed_value): Work on SSA form.
4377 (gimple_mod_pow2): Likewise.
4378 (gimple_mod_subtract): Likewise.
4379 (gimple_ic): Likewise.
4380 (gimple_stringop_fixed_value): Likewise.
4381 * tree-profile.c (tree_init_edge_profiler): Mark profile
4382 functions nothrow and leaf.
4383 (add_abnormal_goto_call_edges): Remove.
4384 (tree_gen_edge_profiler): Work on SSA form.
4385 (tree_gen_ic_profiler): Likewise. Simplify.
4386 (do_tree_profiling): Update SSA form.
4387 (pass_tree_profile): Remove.
4388 (do_tree_profiling): Likewise.
4389 (gate_tree_profile_ipa): New function.
4390 (pass_ipa_tree_profile): New.
4391 (tree_profiling): Re-write as IPA pass. Properly drop const/pure
4392 state of instrumented functions.
4393 * passes.c (init_optimization_passes): Remove early non-SSA
4394 inlining. Move profiling after early optimizations.
4395 * ipa-inline.c (cgraph_gate_ipa_early_inlining): Remove.
4396 (pass_ipa_early_inline): Likewise.
4397 * tree-pass.h (pass_ipa_early_inline): Remove.
4398 (pass_tree_profile): Likewise.
4399 (pass_ipa_tree_profile): Declare.
4400
4401 2010-10-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
4402 Christian Borntraeger <Christian.Borntraeger@de.ibm.com>
4403
4404 * gcc/config/s390/s390.c (z196_cost): New.
4405 (s390_handle_arch_option): Add -march=z196.
4406 (s390_option_override): Use the new cost function and use the z10
4407 defaults also for z196.
4408 (legitimate_reload_constant_p): Adjust comment.
4409 (legitimate_reload_fp_constant_p): New function.
4410 (s390_preferred_reload_class): Distingiush between FP and Int constants.
4411 (preferred_la_operand_p): Avoid la with index on z196.
4412 (s390_adjust_priority): Trigger also for z196.
4413 (s390_issue_rate): Issue rate for z196 is 3.
4414 (s390_z10_fix_long_loop_prediction): Rename to ...
4415 (s390_fix_long_loop_prediction): ... this.
4416 (s390_reorg): Apply the z10 adjustments also for z196.
4417 (s390_loop_unroll_adjust): Do this also for z196.
4418 * gcc/config/s390/s390.h (enum processor_type): Add PROCESSOR_2817_Z196.
4419 (enum processor_flags): Add PF_Z196.
4420 (TARGET_AVOID_CMP_AND_BRANCH): New macro.
4421 (TARGET_CPU_Z196, TARGET_Z196): New macros.
4422 * gcc/config.gcc: Enable z196 for --with-arch.
4423 * gcc/config/s390/2817.md: New file.
4424 * gcc/config/s390/2084.md: New type for multiply and add.
4425 * gcc/config/s390/2097.md: Likewise.
4426 * gcc/config/s390/s390.md (UNSPEC_POPCNT, UNSPEC_COPYSIGN)
4427 (UNSPECV_ATOMIC_OP): New constants.
4428 (fmadddf, fmaddsf): New values for type attribute.
4429 (z196prop): New insn attribute.
4430 (cpu, cpu_facility): Add z196.
4431 (ATOMIC_Z196): New code iterator.
4432 (noxa): New code attribute.
4433 (gk): New mode attribute.
4434 (*mov<mode>_64, *mov<mode>_31, *mov<mode>_64dfp, mov<mode>):
4435 Support load zero for fp constants.
4436 (fixuns_truncdddi2, fixuns_trunctddi2)
4437 (fixuns_trunc<BFP:mode><GPR:mode>2): Use the standard rtx pattern
4438 for z196.
4439 (fixuns_trunc<mode>si2, mov<mode>cc, popcountdi2, popcountsi2)
4440 (popcounthi2, popcountqi2): New expander.
4441 (*fixuns_trunc<FP:mode><GPR:mode>2_z196, floatsi<mode>2)
4442 (floatuns<GPR:mode><FP:mode>2, *mov<mode>cc, sync_<atomic><mode>)
4443 (sync_old_<atomic><mode>, *popcount<mode>, copysign<mode>3): New
4444 insn definition.
4445 (add<mode>3, *add<mode>3_carry1_cc, *add<mode>3_carry1_cconly)
4446 (*add<mode>3_carry2_cc, *add<mode>3_carry2_cconly, *add<mode>3_cc)
4447 (*add<mode>3_cconly, *add<mode>3_cconly2, *add<mode>3_imm_cc)
4448 (*sub<mode>3, *sub<mode>3_borrow_cc, *sub<mode>3_borrow_cconly)
4449 (*sub<mode>3_cc, *sub<mode>3_cc2, *sub<mode>3_cconly)
4450 (*sub<mode>3_cconly2, *anddi3_cc, *anddi3_cconly, *anddi3, *andsi3_cc)
4451 (*andsi3_cconly, *andsi3_zarch, *andsi3_esa, *andhi3_zarch
4452 (*andqi3_zarch, *iordi3_cc, *iordi3_cconly, *iordi3, *iorsi3_cc)
4453 (*iorsi3_cconly, *iorsi3_zarch, *iorhi3_zarch, *iorqi3_zarch)
4454 (*xordi3_cc, *xordi3_cconly, *xordi3, *xorsi3_cc, *xorsi3_cconly)
4455 (*xorsi3, *xorhi3, *xorqi3, *<shift><mode>3, *<shift><mode>3_and)
4456 (*ashr<mode>3_cc, *ashr<mode>3_cconly, *ashr<mode>3)
4457 (*ashr<mode>3_cc_and, *ashr<mode>3_cconly_and, *ashr<mode>3_and):
4458 Support new z196 instructions.
4459
4460 2010-10-05 Richard Guenther <rguenther@suse.de>
4461
4462 PR middle-end/45877
4463 * gimple-fold.c (gimplify_and_update_call_from_tree): Handle
4464 case where gimplification optimizes away the stmt.
4465
4466 2010-10-04 Jakub Jelinek <jakub@redhat.com>
4467
4468 PR debug/45849
4469 * var-tracking.c (strip_pointer_flags): New function.
4470 (emit_note_insn_var_location): If rtx_equal_p check failed,
4471 retry on locations simplified with simplify_replace_fn_rtx
4472 and strip_pointer_flags as its callback.
4473
4474 2010-10-04 Jan Hubicka <jh@suse.cz>
4475
4476 * gimple-fold.c (static_object_in_other_unit_p): Rename to...
4477 (can_refer_decl_in_current_unit_p): ... this one; reverse return
4478 value; handle comdats too.
4479 (canonicalize_constructor_val): Use it; handle function_decls
4480 correctly.
4481 (gimple_fold_obj_type_ref_known_binfo): Likewise.
4482 * gimple.c (get_base_address): Accept all kinds of decls.
4483
4484 2010-10-04 Joseph Myers <joseph@codesourcery.com>
4485
4486 * flags.h (g_switch_value, g_switch_set): Remove.
4487 * opts.c (g_switch_value, g_switch_set): Remove.
4488 * config/g.opt (G): Add Var(g_switch_value).
4489 * config/alpha/alpha.c (alpha_handle_option): Don't handle -G here.
4490 (alpha_option_override): Check global_options_set.x_g_switch_value
4491 instead of g_switch_set.
4492 (alpha_in_small_data_p): Remove cast in comparison with
4493 g_switch_value.
4494 * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Cast
4495 g_switch_value to unsigned HOST_WIDE_INT.
4496 * config/frv/frv.c (frv_const_unspec_p): Remove cast in comparison
4497 with g_switch_value.
4498 (frv_handle_option): Don't handle -G here.
4499 (frv_option_override): Check global_options_set.x_g_switch_value
4500 instead of g_switch_set. Don't modify g_switch_set.
4501 (frv_in_small_data_p): Remove cast in comparison with g_switch_value.
4502 * config/frv/frv.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Cast
4503 g_switch_value to unsigned HOST_WIDE_INT.
4504 * config/ia64/ia64.c (ia64_handle_option): Don't handle -G here.
4505 (ia64_option_override): Check global_options_set.x_g_switch_value
4506 instead of g_switch_set.
4507 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION):
4508 Remove.
4509 (lm32_in_small_data_p): Remove cast in comparison with
4510 g_switch_value.
4511 * config/lm32/lm32.h (ASM_OUTPUT_ALIGNED_LOCAL,
4512 ASM_OUTPUT_ALIGNED_COMMON): Cast g_switch_value to unsigned
4513 HOST_WIDE_INT.
4514 * config/m32r/m32r.c (m32r_handle_option): Don't handle -G here.
4515 (m32r_init): Check global_options_set.x_g_switch_value instead of
4516 g_switch_set.
4517 (m32r_in_small_data_p): Remove cast in comparison with
4518 g_switch_value.
4519 (m32r_file_start): Format g_switch_value with %d.
4520 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_COMMON,
4521 ASM_OUTPUT_ALIGNED_BSS): Cast g_switch_value to unsigned HOST_WIDE_INT.
4522 * config/microblaze/microblaze.c (microblaze_handle_option): Don't
4523 handle -G here.
4524 (microblaze_option_override): Check
4525 global_options_set.x_g_switch_value instead of g_switch_set.
4526 * config/mips/mips.c (mips_handle_option): Don't handle -G here.
4527 (mips_option_override): Check global_options_set.x_g_switch_value
4528 instead of g_switch_set.
4529 * config/rs6000/rs6000.c (rs6000_handle_option): Don't handle -G here.
4530 (rs6000_file_start): Format g_switch_value with %d.
4531 (small_data_operand, rs6000_elf_in_small_data_p): Remove casts in
4532 comparisons with g_switch_value.
4533 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Check
4534 global_options_set.x_g_switch_value instead of g_switch_set.
4535 * config/rs6000/vxworks.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Check
4536 global_options_set.x_g_switch_value instead of g_switch_set.
4537 * config/score/score.c (score_handle_option): Don't handle -G here.
4538 * config/score/score3.c (score3_option_override): Check
4539 global_options_set.x_g_switch_value instead of g_switch_set.
4540 * config/score/score7.c (score7_option_override): Check
4541 global_options_set.x_g_switch_value instead of g_switch_set.
4542
4543 2010-10-04 Vladimir Makarov <vmakarov@redhat.com>
4544
4545 * common.opt (fira-coalesce): Remove.
4546
4547 * doc/invoke.texi (flag_ira_coalesce): Remove.
4548
4549 * ira-color.c (allocno_coalesced_p): Move before
4550 copy_freq_compare_func.
4551 processed_coalesced_allocno_bitmap): Ditto.
4552 (update_conflict_hard_regno_costs): Don't use
4553 ALLOCNO_FIRST_COALESCED_ALLOCNO.
4554 (allocno_cost_compare_func, print_coalesced_allocno): Remove.
4555 (assign_hard_reg): Assume no coalesced allocnos.
4556 (get_coalesced_allocnos_attributes): Remove.
4557 (bucket_allocno_compare_func): Assume no coalesced allocnos.
4558 (push_allocno_to_stack): Ditto.
4559 (remove_allocno_from_bucket_and_push): Use
4560 ira_print_expanded_allocno instead of print_coalesced_allocno.
4561 (push_allocnos_to_stack): Assume uncoalesced allocnos.
4562 (all_conflicting_hard_regs_coalesced): Ditto. Rename to
4563 all_conflicting_hard_regs.
4564 (setup_allocno_available_regs_num): Assume uncoalesced allocnos.
4565 (setup_allocno_left_conflicts_size): Ditto.
4566 (put_allocno_into_bucket): Ditto.
4567 (copy_freq_compare_func): Remove.
4568 (copy_freq_compare_func, merge_allocnos): Move before
4569 coalesced_pseudo_reg_freq_compare.
4570 coalesced_allocno_conflict_p): Ditto.
4571 (coalesced_allocno_conflict_p, coalesce_allocnos): Ditto. Remove
4572 parameter. Assume it true.
4573 (color_allocnos): Assume uncoalesced allocnos. Use
4574 ira_print_expanded_allocno instead of print_coalesced_allocno.
4575 (ira_sort_regnos_for_alter_reg): Call coalesce_allocnos without
4576 parameter.
4577
4578 * ira.c: Remove comment about coalescing.
4579
4580 2010-10-04 Joseph Myers <joseph@codesourcery.com>
4581
4582 * config/mips/mips.h (target_flags_explicit): Declare for
4583 GENERATOR_FILE.
4584
4585 2010-10-04 Andi Kleen <ak@linux.intel.com>
4586
4587 * Makefile.in (xgcc, cpp, cc1, collect2, lto-wrapper, gcov,
4588 gcov-dump, cc1-dummy, genprog, build/gcov-iov): Add + to build rule.
4589
4590 2010-10-04 Matthias Klose <doko@ubuntu.com>
4591
4592 * config/sparc/t-linux64 (MULTILIB_OSDIRNAMES): Use ../lib32 as the
4593 multilib osdirname if it exists.
4594 * config/s390/t-linux64 (MULTILIB_OSDIRNAMES): Likewise.
4595
4596 2010-10-04 Jakub Jelinek <jakub@redhat.com>
4597
4598 PR middle-end/45876
4599 * fold-const.c (fold_binary_loc) <case BIT_AND_EXPR>: Use
4600 arg0's type or its unsigned counterpart as utype. Convert
4601 arg1 to utype unconditionally.
4602
4603 2010-10-04 Julian Brown <julian@codesourcery.com>
4604
4605 * expr.c (expand_assignment): Add assertion to prevent emitting
4606 null rtx for movmisalign pattern.
4607 (expand_expr_real_1): Likewise.
4608 * config/arm/arm.c (arm_builtin_support_vector_misalignment): New.
4609 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT): New. Use above.
4610 (arm_vector_alignment_reachable): New.
4611 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): New. Use above.
4612 (neon_vector_mem_operand): Disallow PRE_DEC for misaligned loads.
4613 (arm_print_operand): Include alignment qualifier in %A.
4614 * config/arm/neon.md (UNSPEC_MISALIGNED_ACCESS): New constant.
4615 (movmisalign<mode>): New expander.
4616 (movmisalign<mode>_neon_store, movmisalign<mode>_neon_load): New
4617 insn patterns.
4618
4619 2010-10-04 Joseph Myers <joseph@codesourcery.com>
4620
4621 * optc-gen.awk: Define global_options_set. Don't define
4622 target_flags_explicit.
4623 * opth-gen.awk: Declare global_options_set. Define
4624 target_flags_explicit as macro.
4625 * opts-common.c (handle_option): Take opts_set and generated_p
4626 parameters.
4627 (handle_generated_option, read_cmdline_option, set_option): Take
4628 opts_set parameter.
4629 (set_option): Use opts_set instead of hardcoding target_flags and
4630 target_flags_explicit.
4631 * opts.c (sel_sched_switch_set, profile_arc_flag_set,
4632 flag_profile_values_set, flag_unroll_loops_set, flag_tracer_set,
4633 flag_value_profile_transformations_set, flag_peel_loops_set,
4634 flag_branch_probabilities_set, flag_inline_functions_set,
4635 flag_ipa_cp_set, flag_ipa_cp_clone_set,
4636 flag_predictive_commoning_set, flag_unswitch_loops_set,
4637 flag_gcse_after_reload_set): Remove.
4638 (common_handle_option, lang_handle_option, target_handle_option):
4639 Take opts_set parameter. Assert that it is &global_options_set.
4640 (common_handle_option): Don't set _set variables. Check opts_set
4641 instead of such variables.
4642 (enable_warning_as_error): Pass &global_options_set to
4643 handle_generated_option.
4644 * opts.h (cl_option_handler_func.handler, set_option,
4645 handle_option, handle_generated_option, read_cmdline_option): Add
4646 opts_set parameters.
4647 (handle_option): Add generated_p parameter.
4648 * config/i386/i386.c (ix86_function_specific_save,
4649 ix86_function_specific_restore): Updat for renaming of
4650 target_flags_explicit field.
4651 * config/i386/i386.opt (target_flags_explicit): Rename to
4652 ix86_target_flags_explicit.
4653 * config/ia64/ia64.c (ia64_override_options_after_change): Check
4654 global_options_set.x_flag_selective_scheduling and
4655 global_options_set.x_flag_selective_scheduling2, not
4656 sel_sched_switch_set.
4657 * flags.h (sel_sched_switch_set,
4658 flag_speculative_prefetching_set): Remove.
4659 * gcc.c (driver_handle_option): Take opts_set parameter. Assert
4660 that it is &global_options_set.
4661 (process_command): Pass &global_options_set to read_cmdline_option.
4662 * lto-opts.c (lto_reissue_options): Pass &global_options_set to
4663 set_option.
4664 * toplev.c (target_flags_explicit): Remove.
4665
4666 2010-10-04 Jan Hubicka <jh@suse.cz>
4667
4668 PR middle-end/45871
4669 * tree-ssa-ccp.c (get_base_constructor): Take HOST_WIDE_INT offset;
4670 use get_ref_base_and_offset to handle references.
4671 (fold_const_aggregate_ref): Update.
4672
4673 2010-10-04 Martin Jambor <mjambor@suse.cz>
4674
4675 PR tree-optimization/45572
4676 * ipa-prop.c (ipa_make_edge_direct_to_target): Call
4677 ipa_check_create_node_params.
4678 * ipa-inline.c (add_new_edges_to_heap): Do not insert inlined edges.
4679
4680 2010-10-04 Yao Qi <yao@codesourcery.com>
4681
4682 * doc/passes.texi: Clean up.
4683
4684 2010-10-03 Ian Lance Taylor <iant@google.com>
4685
4686 * c-typeck.c (lookup_field): If -fplan9-extensions, permit
4687 referring to a field using a typedef name.
4688 (find_anonymous_field_with_type): New static function.
4689 (convert_to_anonymous_field): New static function.
4690 (convert_for_assignment): If -fplan9-extensions, permit converting
4691 pointer to struct to pointer to anonymous field.
4692 * c-decl.c (grokfield): If -fplan9-extensions, permit anonymous fields.
4693 (is_duplicate_field): New static function.
4694 (detect_field_duplicates_hash): If -fplan9-extensions, check for
4695 typedef names duplicating field names.
4696 (detect_field_duplicates): Likewise.
4697 * doc/invoke.texi (Option Summary): Mention -fplan9-extensions.
4698 (C Dialect Options): Document -fplan9-extensions.
4699 * doc/extend.texi (Unnamed Fields): Document -fplan9-extensions.
4700
4701 2010-10-03 H.J. Lu <hongjiu.lu@intel.com>
4702
4703 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Revert
4704 revision 164914.
4705 (vect_create_data_ref_ptr): Likewise.
4706 * tree-vect-stmts.c (vectorizable_store): Likewise.
4707 (perm_mask_for_reverse): Likewise.
4708 (reverse_vec_elements): Likewise.
4709 (vectorizable_load): Likewise.
4710
4711 2010-10-03 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
4712
4713 * cppbuiltin.c: New file.
4714 * cppbuiltin.h: New file.
4715 * Makefile.in: Take into account cppbuiltin.{h,c}.
4716
4717 2010-10-03 Andi Kleen <ak@linux.intel.com>
4718
4719 * lto-cgraph.c (input_cgraph): Check for missing sections.
4720
4721 2010-10-03 Uros Bizjak <ubizjak@gmail.com>
4722
4723 * config/i386/i386.md (*ashl<mode>3_mask): Change operand 2 predicate
4724 to nonimmediate_operand. Force operand 2 to register when allowed.
4725 (*<shiftrt_insn><mode>3_mask): Ditto.
4726 (*<rotate_insn><mode>3_mask): Ditto.
4727
4728 2010-10-02 H.J. Lu <hongjiu.lu@intel.com>
4729
4730 PR tree-optimization/45720
4731 PR tree-optimization/45764
4732 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
4733 Don't accept backwards consecutive accesses.
4734 (vect_create_data_ref_ptr): Disallow negative steps.
4735
4736 * tree-vect-stmts.c (vectorizable_store): Allow negative steps.
4737 (perm_mask_for_reverse): Removed.
4738 (reverse_vec_elements): Likewise.
4739 (vectorizable_load): Don't handle negative steps.
4740
4741 2010-10-02 Jan Hubicka <jh@suse.cz>
4742
4743 * tree-ssa-ccp.c (ccp_fold_stmt): Fold away OBJ_TYPE_REF when
4744 call destination is known.
4745
4746 2010-10-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4747
4748 PR target/45820
4749 * config/pa/pa.c (pa_secondary_reload): Handle symbolic operands
4750 earlier.
4751
4752 2010-10-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
4753
4754 * doc/install.texi (Configuration): Document build_configargs,
4755 host_configargs, target_configargs.
4756
4757 2010-10-01 Uros Bizjak <ubizjak@gmail.com>
4758
4759 * config/i386/i386.md (*ashl<mode>3_mask): New insn_and_split pattern.
4760 (*<shiftrt_insn><mode>3_mask): Ditto.
4761 (*<rotate_insn><mode>3_mask): Ditto.
4762
4763 2010-10-01 Steve Ellcey <sje@cup.hp.com>
4764
4765 PR tree-optimization/44716
4766 * config/ia64/hpux.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
4767 (HOT_TEXT_SECTION_NAME): Define.
4768
4769 2010-10-01 Nick Clifton <nickc@redhat.com>
4770
4771 * common.opt: Add -fcombine-stack-adjustments.
4772 * opts.c (decode_options): Enable -fcombine-stack-adjustments at -O1.
4773 * combine-stack-adj.c (gate_handle_stack_adjustments): Check
4774 flag_combine_stack_adjustments.
4775 * doc/invoke.texi: Document the new option.
4776
4777 2010-10-01 Richard Guenther <rguenther@suse.de>
4778
4779 PR tree-optimization/45854
4780 * tree-eh.c (cleanup_empty_eh): Avoid degenerate case.
4781
4782 2010-10-01 Anthony Green <green@moxielogic.com>
4783
4784 * config.gcc: Fix moxie-*-rtems* configuration.
4785
4786 2010-10-01 Richard Guenther <rguenther@suse.de>
4787
4788 * dwarf2out.c (gen_namespace_die): Use DECL_FILE_SCOPE_P.
4789 (gen_decl_die): Likewise.
4790
4791 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4792
4793 * config/spu/spu.c (spu_init_builtins): No longer add END_BUILTINS
4794 to the function code for SPU MD builtins.
4795 (spu_expand_builtin): Update.
4796 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Update.
4797
4798 2010-10-01 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4799
4800 * config/spu/spu.c (TARGET_EXCEPT_UNWIND_INFO): Set to
4801 sjlj_except_unwind_info.
4802
4803 2010-10-01 Tristan Gingold <gingold@adacore.com>
4804
4805 * configure.ac: Define the nop insn for avr*-*-*
4806 * configure: Regenerate.
4807
4808 2010-10-01 Alan Modra <amodra@gmail.com>
4809
4810 PR target/45807
4811 * config/rs6000/rs6000.c (rs6000_emit_prologue): Properly sign
4812 extend toc_restore_insn.
4813
4814 2010-09-30 Richard Guenther <rguenther@suse.de>
4815
4816 PR tree-optimization/43959
4817 * function.c (gimplify_parameters): Use create_tmp_reg instead of
4818 create_tmp_var.
4819
4820 2010-09-30 Kaz Kojima <kkojima@gcc.gnu.org>
4821
4822 * config/sh/sh.c (sh_expand_prologue): Set
4823 current_function_static_stack_size.
4824
4825 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4826
4827 * configure.ac: Check for Solaris 8 ld with .hidden support.
4828 * configure: Regenerate.
4829
4830 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4831
4832 PR middle-end/45758
4833 * graphite.c (graphite_initialize): Call scev_reset.
4834
4835 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4836
4837 * sese.h (scev_analyzable_p): Return false for real or floating
4838 point. Only handle INTEGRAL_TYPE_P and POINTER_TYPE_P.
4839
4840 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4841
4842 * graphite-clast-to-gimple.c (compute_bounds_for_level): Free le
4843 and ps.
4844 * graphite-poly.c (pbb_number_of_iterations_at_time): Free le and
4845 domain.
4846 * graphite-sese-to-poly.c (add_upper_bounds_from_estimated_nit):
4847 Do not allocate ub_expr, it is passed in initialized.
4848
4849 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
4850
4851 * graphite-clast-to-gimple.c (init_cloog_input_file): New.
4852 (build_cloog_prog): Dump CLooG input file when
4853 flag_graphite_dump_cloog is set. This is disabled on trunk.
4854 * graphite-cloog-compat.h (cloog_program_dump_cloog): New.
4855
4856 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4857
4858 * graphite-clast-to-gimple.c (graphite_verify): Remove call to
4859 verify_dominators for CDI_POST_DOMINATORS.
4860 * sese.h: Remove comment about CDI_POST_DOMINATORS.
4861 (recompute_all_dominators): Remove call to free_dominance_info
4862 for CDI_POST_DOMINATORS. Remove call to calculate_dominance_info
4863 for CDI_POST_DOMINATORS.
4864
4865 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4866
4867 * graphite-poly.c (pbb_number_of_iterations_at_time): Only iterate
4868 over pbb_dim_iter_domain.
4869
4870 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4871
4872 * graphite-flattening.c: Fix comments.
4873
4874 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4875
4876 * Makefile.in (OBJS-common): Add graphite-flattening.o.
4877 (graphite-flattening.o): New rule.
4878 * common.opt (floop-flatten): New flag.
4879 * doc/invoke.texi (-floop-flatten): Documented.
4880 * graphite-flattening.c: New.
4881 * graphite-poly.c (apply_poly_transforms): Call flatten_all_loops.
4882 * graphite-poly.h (flatten_all_loops): Declared.
4883 (lst_remove_loop_and_inline_stmts_in_loop_father): New.
4884 * tree-ssa-loop.c (gate_graphite_transforms): When flag_loop_flatten
4885 is set, also set flag_graphite.
4886
4887 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4888
4889 * graphite-poly.c (cloog_checksum): New.
4890 * graphite-poly.h (cloog_checksum): Declared.
4891
4892 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4893
4894 * graphite-poly.c (pbb_number_of_iterations): Removed.
4895 (pbb_number_of_iterations_at_time): Correctly compute the number
4896 of iterations in the transformed loop.
4897 * graphite-poly.h (pbb_number_of_iterations): Removed.
4898
4899 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4900
4901 * graphite-poly.h (lst_update_scattering_seq): Removed.
4902 (lst_update_scattering): Correctly handle outermost loop dewey
4903 renumbering.
4904
4905 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4906
4907 * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
4908 lst_strip_mine_profitable_p. Call lst_niter_for_loop.
4909 * graphite-poly.h (lst_niter_for_loop): New.
4910
4911 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4912
4913 * graphite-poly.c (apply_poly_transforms): Do not abort when the
4914 transform read from disk is not legal. Call fatal_error instead.
4915
4916 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4917
4918 * graphite-poly.c (print_pbb_body): Add missing closing parenthesis.
4919 (print_scop_header): Removed. Inlined in the only call place...
4920 (print_scop): ... here.
4921
4922 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4923
4924 * graphite-poly.h (lst_dewey_number): Use FOR_EACH_VEC_ELT.
4925
4926 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4927
4928 * graphite-poly.c (graphite_read_scop_file): Fix uninitialize warning.
4929
4930 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4931
4932 * graphite-dependences.c (dot_deps): Avoid set but not used warning.
4933 (dot_deps_stmt): Same.
4934 * graphite-poly.c (dot_lst): Same.
4935
4936 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4937
4938 * graphite-blocking.c (scop_do_strip_mine): Do not call
4939 graphite_legal_transform.
4940 (scop_do_block): Same.
4941
4942 2010-09-30 Vladimir Kargov <kargov@gmail.com>
4943
4944 * graphite-scop-detection.c (graphite_can_represent_loop): Correct the
4945 description.
4946
4947 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4948
4949 * tree-scalar-evolution.c (instantiate_array_ref): New.
4950 (instantiate_scev_r): Also handle ARRAY_REFs.
4951
4952 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4953
4954 * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
4955 Do not check for VAR_DECL, PARM_DECL, FUNCTION_DECL, LABEL_DECL,
4956 RESULT_DECL, and FIELD_DECL. Return false for an
4957 SSA_NAME_IS_DEFAULT_DEF.
4958 (compute_scalar_evolution_in_loop): Do not further analyze the
4959 scalar evolution when no_evolution_in_loop_p returns true.
4960
4961 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4962
4963 * tree-chrec.h (evolution_function_is_affine_p): Do not check
4964 whether CHREC_LEFT is invariant. A function is affine when
4965 CHREC_RIGHT is invariant.
4966
4967 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4968
4969 * graphite-sese-to-poly.c (reduction_phi_p): Remove check for
4970 is_gimple_reg.
4971 (rewrite_degenerate_phi): Same.
4972 (rewrite_reductions_out_of_ssa): Add check for is_gimple_reg.
4973
4974 2010-09-30 Vladimir Kargov <kargov@gmail.com>
4975
4976 * graphite-scop-detection.c (graphite_can_represent_scev,
4977 graphite_can_represent_expr, stmt_has_simple_data_refs_p,
4978 graphite_can_represent_loop): Remove outermost_loop.
4979
4980 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4981
4982 PR middle-end/45229
4983 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Do not
4984 handle GIMPLE_CALLs with no LHS.
4985
4986 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
4987
4988 * graphite-poly.c (init_graphite_out_file): New.
4989 (init_graphite_in_file): New.
4990 (apply_poly_transforms): Updated to enable reading and writing of
4991 multiple scop files.
4992
4993 2010-09-30 Tobias Grosser <grosser@fim.uni-passau.de>
4994
4995 * graphite-scop-detection.c (graphite_can_represent_scev): Remove
4996 redundant checks.
4997
4998 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
4999
5000 * graphite-clast-to-gimple.c (precision_for_value): Adjust
5001 computation of precision by 1.
5002
5003 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
5004
5005 * graphite-cloog-util.c (openscop_read_cloog_matrix): New.
5006 (openscop_read_polyhedron_matrix): New.
5007 * graphite-cloog-util.h (openscop_read_polyhedron_matrix): Declared.
5008 (openscop_read_N_int): Same.
5009 * graphite-poly.c (openscop_read_N_int): New.
5010 (openscop_read_one_int): New.
5011 (openscop_read_N_string): New.
5012 (openscop_read_one_string): New.
5013 (openscop_read_powerset_matrix): New.
5014 (graphite_read_transforms): Remove.
5015 (graphite_read_scatt): New.
5016 (graphite_read_scop_file): New.
5017 (apply_poly_transforms): Updated to call graphite_read_scop_file.
5018
5019 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
5020
5021 * graphite-poly.c: Change include order.
5022
5023 2010-09-30 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
5024
5025 * graphite-cloog-compat.h (cloog_matrix_ncolumns): New.
5026 (cloog_matrix_nrows): New.
5027
5028 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
5029
5030 * graphite-cloog-util.c (openscop_print_cloog_matrix): Remove spaces
5031 from matrix lines.
5032 * graphite-poly.c (openscop_print_scattering_function_1): Same.
5033 (print_scattering_function_1): Same.
5034 (openscop_print_pbb_domain): Same.
5035 (openscop_print_scop_context): Same.
5036 (print_scop_context): Same.
5037
5038 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
5039
5040 * graphite-poly.c (openscop_print_pdr_polyhedron): Fix indentation.
5041 (openscop_print_pdr_polyhedron): Print pph.
5042
5043 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5044
5045 * graphite-clast-to-gimple.c (gcc_type_for_interval): Generate in
5046 priority signed types.
5047
5048 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
5049
5050 * graphite-clast-to-gimple.c (max_signed_precision_type): Remove
5051 the call to lang_hooks.types.type_for_size. Call
5052 build_nonstandard_integer_type.
5053
5054 2010-09-30 Riyadh Baghdadi <baghdadi.mr@gmail.com>
5055
5056 * graphite-cloog-util.c (openscop_print_cloog_matrix): New.
5057 (openscop_print_polyhedron_matrix): New.
5058 * graphite-cloog-util.h (openscop_print_polyhedron_matrix): Declared.
5059 * graphite-poly.c (openscop_print_pdr_polyhedron): Same.
5060 (openscop_print_pdr_powerset): New.
5061 (openscop_print_powerset_matrix): New.
5062 (openscop_print_scattering_function_1): New.
5063 (print_scattering_function): Add support for scattering names and
5064 OpenScop format.
5065 (graphite_write_transforms): Remove.
5066 (print_pdr_access_layout): Updated to support OpenScop format.
5067 (print_pdr): Same.
5068 (openscop_print_pbb_domain): New.
5069 (print_pbb_body): Added a parameter to allow indicating that pbb_body
5070 is not provided.
5071 (print_pbb): Updated to call the new print_pbb_body.
5072 (openscop_print_scop_context): New.
5073 (print_scop_header): New.
5074 (print_scop): Updated to call print_scop_header.
5075 * graphite-poly.h: Document OpenScop format.
5076
5077 2010-09-30 Anatoly Sokolov <aesok@post.ru>
5078
5079 * config/cris/m32c.c (cris_memory_move_cost): New.
5080 (cris_register_move_cost): Make static. Change arguments type from
5081 enum reg_class to reg_class_t.
5082 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
5083 * config/cris/cris.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
5084 * config/cris/cris-protos.h (cris_register_move_cost): Remove.
5085
5086 2010-09-30 Jakub Jelinek <jakub@redhat.com>
5087
5088 PR target/45843
5089 * config/i386/i386.c (ix86_gimplify_va_arg): Use
5090 INTVAL (XEXP (slot, 1)) as prev_size.
5091
5092 2010-09-30 Michael Meissner <meissner@linux.vnet.ibm.com>
5093
5094 PR target/45837
5095 * config/rs6000/aix.h (TARGET_AIX_OS): Define to be 1.
5096 * config/rs6000/rs6000.h (TARGET_AIX_OS): Define to be 0 if not
5097 defined.
5098 * config/rs6000/option-defaults.h (toplevel): Change #if
5099 TARGET_AIX to TARGET_AIX_OS to allow compiler to build after
5100 global option changes.
5101
5102 2010-09-30 Jakub Jelinek <jakub@redhat.com>
5103
5104 * dwarf2out.c (mem_loc_descriptor): Handle IF_THEN_ELSE.
5105
5106 PR tree-optimization/31261
5107 * fold-const.c (fold_binary): Optimize ((A & N) + B) & M
5108 for constants M and N, M == (1LL << cst) - 1 && (N & M) == M.
5109
5110 2010-09-30 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5111
5112 PR bootstrap/45796
5113 * Makefile.in (build/gen%$(build_exeext)): Move rule after all
5114 special-casing for generators and turn into ...
5115 ((genprog:%=build/gen%$(build_exeext))): ... this static pattern
5116 rule, for better error messages in case of toplevel dependency errors.
5117 (genprog): Add hooks, rename to ...
5118 (genprogerr): ... this, and let genprog also contain check,
5119 checksum, condmd.
5120 ((genprog:%=build/gen%$(build_exeext))): Rename to ...
5121 ((genprogerr:%=build/gen%$(build_exeext))): ... this.
5122 (build/genhooks$(build_exeext)): Remove now-unneeded dependency.
5123
5124 2010-09-30 Jonathan Wakely <jwakely.gcc@gmail.com>
5125 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
5126
5127 * doc/install.texi: Suggest using LD_LIBRARY_PATH to find libs
5128 for GMP, MPFR and MPC.
5129
5130 2010-09-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5131
5132 * config/sparc/sparc.opt (mimpure-text): Move ...
5133 * config/sol2.opt: ... here. Correct description.
5134 * config.gcc (*-*-solaris2*): Add sol2.opt to extra_options.
5135 * doc/invoke.texi (Option Summary, SPARC Options): Move
5136 -mimpure-text, -mno-impure-text, -threads, -pthreads, -pthread ...
5137 (Option Summary, Solaris 2 Options): ... here.
5138 (Submodel Options, Solaris 2 Options): New menu entry.
5139 (SPARC Options): Move -mimpure-text, -threads, -pthreads, -pthread ...
5140 (Solaris 2 Options): ... here.
5141
5142 2010-09-30 Michael Eager <eager@eagercon.com>
5143
5144 * extend.texi (interrupt_handler): Add MicroBlaze to list.
5145 (save_volatiles): Describe option for MicroBlaze.
5146 * invoke.texi: Add MicroBlaze Options.
5147 * contrib.texi: Add acknowledgment.
5148 * md.texi: Add MicroBlaze d and z constraints.
5149 * install.texi: Add microblaze-*-elf.
5150 * configure.ac: Add microblaze-*-* to target list.
5151 * configure: Regenerate.
5152 * config.gcc: Add microblaze*-*-*, microblaze*-linux*.
5153 * config/microblaze/microblaze-protos.h: New.
5154 * config/microblaze/crti.s: New.
5155 * config/microblaze/predicates.md: New.
5156 * config/microblaze/linux.h: New.
5157 * config/microblaze/microblaze.md: New.
5158 * config/microblaze/constraints.md: New.
5159 * config/microblaze/crtn.s: New.
5160 * config/microblaze/microblaze.opt: New.
5161 * config/microblaze/microblaze-c.c: New.
5162 * config/microblaze/t-microblaze: New.
5163 * config/microblaze/microblaze.c: New.
5164 * config/microblaze/microblaze.h: New.
5165
5166 2010-09-30 Iain Sandoe <iains@gcc.gnu.org>
5167
5168 * c-parser.c (c_parser_objc_methodprotolist): Amend preceding comment,
5169 parse @optional/@required and set the flags as appropriate.
5170
5171 2010-09-30 Nathan Froyd <froydnj@codesourcery.com>
5172
5173 * config/iq2000/t-iq2000 (TARGET_LIBGCC2_CFLAGS): Delete.
5174
5175 2010-09-30 Joseph Myers <joseph@codesourcery.com>
5176
5177 * opt-functions.awk (static_var): Update comment.
5178 (var_ref): Return offsetof expression or -1, not variable address.
5179 * optc-gen.awk: Generate structure field initializers instead of
5180 static variables. Expect -1 for missing variables instead of null
5181 pointer. Add gcc_options parameters to generated functions.
5182 * opth-gen.awk: Generate structure fields for static variables.
5183 Add gcc_options parameters to generated functions.
5184 * common.opt (optimize, optimize_size): Add variables.
5185 * config/i386/i386-c.c (ix86_pragma_target_parse): Pass
5186 &global_options to cl_target_option_restore.
5187 * config/i386/i386.c (ix86_valid_target_attribute_p): Pass
5188 &global_options to cl_optimization_restore, cl_target_option_save
5189 and cl_target_option_restore.
5190 (ix86_set_current_function): Pass &global_options to
5191 cl_target_option_restore.
5192 * config/pdp11/pdp11.h (optimize): Remove.
5193 * config/rs6000/rs6000.h (optimize): Remove.
5194 * config/sh/sh.h (optimize): Remove.
5195 * config/xtensa/xtensa.h (optimize): Remove.
5196 * coretypes.h (struct gcc_options): Declare.
5197 * diagnostic.c (diagnostic_initialize): Initialize
5198 context->option_state.
5199 (diagnostic_report_diagnostic): Pass option_state to
5200 option_enabled hook.
5201 * diagnostic.h (diagnostic_context.option_enabled): Add void *
5202 parameter.
5203 (diagnostic_context.option_state): New field.
5204 * final.c (final_start_function, final, final_scan_insn): Rename
5205 optimize parameter to optimize_p.
5206 * flags.h (optimize, optimize_size): Remove.
5207 * function.c (invoke_set_current_function_hook): Pass
5208 &global_options to cl_optimization_restore.
5209 * gcc.c (driver_handle_option): Take gcc_options parameter.
5210 Assert that it is &global_options.
5211 (process_command): Pass &global_options to read_cmdline_option.
5212 * ipa-pure-const.c (suggest_attribute): Pass &global_options to
5213 option_enabled.
5214 * lto-opts.c (lto_reissue_options): Use option_flag_var. Pass
5215 &global_options to set_option.
5216 * opts-common.c (handle_option, handle_generated_option,
5217 read_cmdline_option, set_option): Take explicit gcc_options
5218 parameters. Use option_flag_var.
5219 (option_flag_var): New.
5220 * opts.c (common_handle_option, lang_handle_option,
5221 target_handle_option): Take gcc_options parameter. Assert that it
5222 is &global_options.
5223 (read_cmdline_options): Pass &global_options to read_cmdline_option.
5224 (print_filtered_help): Use option_flag_var. Pass &global_options
5225 to option_enabled.
5226 (common_handle_option): Use option_flag_var.
5227 (option_enabled): Take opts parameter. Use option_flag_var.
5228 (get_option_state): Take gcc_options parameter. Use
5229 option_flag_var. Pass gcc_options parameter to option_enabled.
5230 (enable_warning_as_error): Pass &global_options to
5231 handle_generated_option.
5232 * opts.h (struct cl_option): Change flag_var to flag_var_offset.
5233 (cl_option_handler_func.handler): Take gcc_options parameter.
5234 (option_enabled, get_option_state, set_option, handle_option,
5235 handle_generated_option, read_cmdline_option): Take gcc_options
5236 parameters.
5237 * toplev.c (optimize, optimize_size): Remove.
5238 (print_switch_values): Pass &global_options to option_enabled.
5239 (option_affects_pch_p): Use option_flag_var. Pass &global_options
5240 to get_option_state.
5241 (general_init): Initialize global_dc->option_state.
5242 * tree.c (build_optimization_node): Pass &global_options to
5243 cl_optimization_save.
5244 (build_target_option_node): Pass &global_options to
5245 cl_target_option_save.
5246
5247 2010-09-30 Martin Jambor <mjambor@suse.cz>
5248
5249 * tree-sra.c (type_consists_of_records_p): Do not check for trailing
5250 zero sized bit-fields.
5251
5252 2010-09-30 Nicola Pero <nicola.pero@meta-innovation.com>
5253
5254 * c-parser.c (c_lex_one_token): When finding a CPP_AT_NAME
5255 Objective-C token, map RID_CLASS to RID_AT_CLASS and similar.
5256 (c_parser_external_declaration): Use RID_AT_CLASS instead of RID_CLASS.
5257 (c_parser_objc_class_declaration): Same change.
5258 (c_parser_objc_try_catch_statement): Use RID_AT_TRY instead of
5259 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
5260 (c_parser_objc_class_instance_variables): Use RID_AT_PRIVATE
5261 instead of RID_PRIVATE, RID_AT_PROTECTED instead of RID_PROTECTED
5262 and RID_AT_PUBLIC instead of RID_PUBLIC.
5263 (c_parser_statement_after_labels): Use RID_AT_TRY instead of
5264 RID_TRY and RID_AT_CATCH instead of RID_CATCH.
5265
5266 2010-09-30 Tom G. Christensen <tgc@jupiterrise.com>
5267
5268 * doc/install.texi (Binaries): Update link to HP-UX porting centre.
5269 Add links to current providers of packages for Solaris and IRIX.
5270
5271 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5272
5273 Merge from 'apple/trunk' branch on FSF servers.
5274 * c-parser.c: Applied change originally in c-parse.in.
5275
5276 2005-10-04 Fariborz Jahanian <fjahanian@apple.com>
5277
5278 Radar 4281748
5279 * c-decl.c (start_decl): Check for redeclaration of class name.
5280 * c-parse.in (after_type_declarator): Recognize CLASSNAME.
5281
5282 2010-09-29 Steve Ellcey <sje@cup.hp.com>
5283
5284 * config/ia64/ia64.c (ia64_builtin_decl): New.
5285 (TARGET_BUILTIN_DECL): Define.
5286 (ia64_builtins): New.
5287 (ia64_init_builtins): Save decls in ia64_builtins.
5288
5289 2010-09-29 Bernd Schmidt <bernds@codesourcery.com>
5290
5291 PR target/40457
5292 * postreload.c (move2add_use_add2_insn): Use full_costs for comparison.
5293 (move2add_use_add3_insn): Likewise.
5294 (reload_cse_move2add): Likewise.
5295 * rtlanal.c (get_full_rtx_cost): New function.
5296 * rtl.h (struct full_rtx_costs): New.
5297 (init_costs_to_max, init_costs_to_zero, costs_lt_p,
5298 costs_add_n_insns): New inline functions.
5299 (get_full_rtx_cost): Declare.
5300
5301 PR c/45054
5302 * reload1.c (replace_pseudos_in): Use eliminate_regs_1, allowing
5303 invariants. Check for reg_equiv_invariant.
5304 (reload): Assert that spilled_pseudos is empty when returning.
5305
5306 2010-09-29 Kai Tietz <kai.tietz@onevision.com>
5307
5308 * config/i386/mingw32.h (TARGET_64BIT): replaced by
5309 TARGET_64BIT_DEFAULT in #if check.
5310
5311 2010-09-29 Jack Howarth <howarth@bromo.med.uc.edu>
5312
5313 * varasm.c (assemble_alias): Add error message for unsupported ifunc.
5314
5315 2010-09-29 Mike Stump <mikestump@comcast.net>
5316
5317 * config/darwin.h (flag_mkernel): Remove.
5318 (flag_apple_kext): Likewise.
5319
5320 2010-09-29 Joseph Myers <joseph@codesourcery.com>
5321 Jack Howarth <howarth@bromo.med.uc.edu>
5322
5323 * config/darwin.opt (undefined): Add.
5324
5325 2010-09-29 Nathan Sidwell <nathan@codesourcery.com>
5326
5327 PR testsuite/45664
5328 * configure.ac: Add --enable-indirect-function option.
5329 * config.gcc: Add default_gnu_indirect_function.
5330 * config.in (HAVE_GAS_INDIRECT_FUNCTION): Rename to ...
5331 (HAVE_GNU_INDIRECT_FUNCTION): ... this.
5332 * varasm.c (do_assemble_alias): Adjust for macro name change.
5333 * configure: Rebuilt.
5334 * doc/install.texi: Document --enable-indirect-function.
5335
5336 2010-09-29 Joseph Myers <joseph@codesourcery.com>
5337
5338 * doc/options.texi (Variable, Var, Init): Update documentation
5339 without reference to VarExists.
5340 (VarExists): Remove.
5341 * common.opt, config/i386/i386.opt, config/linux.opt,
5342 config/rs6000/rs6000.opt, config/sh/sh.opt, config/spu/spu.opt:
5343 Don't use VarExists.
5344
5345 2010-09-29 Joseph Myers <joseph@codesourcery.com>
5346
5347 * optc-gen.awk: Generate global_options initializer instead of
5348 individual variables. Add x_ prefix to names of structure members.
5349 * opth-gen.awk: Generate gcc_options structure. Add x_ prefix to
5350 names of structure members.
5351 * doc/tm.texi.in (HARD_FRAME_POINTER_IS_FRAME_POINTER,
5352 HARD_FRAME_POINTER_IS_ARG_POINTER): Document.
5353 * doc/tm.texi: Regenerate.
5354 * alias.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
5355 * builtins.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
5356 * c-parser.c (disable_extension_diagnostics,
5357 restore_extension_diagnostics): Update names of cpp_options members.
5358 * combine.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
5359 * common.opt (fcompare-debug-second): Don't use Var.
5360 * config/alpha/alpha.h (target_flags): Remove.
5361 * config/arm/arm.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
5362 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
5363 * config/bfin/bfin.h (target_flags): Remove.
5364 * config/cris/cris.h (target_flags): Remove.
5365 * config/i386/i386-c.c (ix86_pragma_target_parse): Update names of
5366 cl_target_option members.
5367 * config/i386/i386.c (ix86_force_align_arg_pointer): Remove.
5368 (ix86_function_specific_print, ix86_valid_target_attribute_tree,
5369 ix86_can_inline_p): Update names of cl_target_option members.
5370 * config/i386/i386.h (ix86_isa_flags): Remove.
5371 * config/lm32/lm32.h (target_flags): Remove.
5372 * config/mcore/mcore.h (mcore_stack_increment): Remove.
5373 * config/mcore/mcore.md (addsi3): Remove extern declaration of
5374 flag_omit_frame_pointer.
5375 * config/mep/mep.h (target_flags): Remove.
5376 * config/mips/mips.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
5377 HARD_FRAME_POINTER_IS_ARG_POINTER): Define.
5378 * config/mmix/mmix.h (target_flags): Remove.
5379 * config/rs6000/rs6000.h (rs6000_xilinx_fpu, flag_pic,
5380 flag_expensive_optimizations): Remove.
5381 * config/s390/s390.h (flag_pic): Remove.
5382 * config/score/score-conv.h (target_flags): Remove.
5383 * config/sh/sh.h (sh_fixed_range_str): Remove.
5384 * config/spu/spu.h (target_flags, spu_fixed_range_string): Remove.
5385 * dbxout.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
5386 * df-scan.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5387 * diagnostic.c (diagnostic_initialize): Update names of
5388 diagnostic_context members.
5389 * diagnostic.h (diagnostic_context): Rename inhibit_warnings and
5390 warn_system_headers.
5391 (diagnostic_report_warnings_p): Update for new names.
5392 * dwarf2out.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER
5393 * emit-rtl.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER and
5394 HARD_FRAME_POINTER_IS_ARG_POINTER.
5395 * flags.h (flag_compare_debug): Declare.
5396 * ira.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
5397 * opts.c (flag_compare_debug): Define.
5398 (common_handle_option): Update names of diagnostic_context
5399 members. Handle -fcompare-debug-second.
5400 (fast_math_flags_struct_set_p): Update names of cl_optimization
5401 members.
5402 * reginfo.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5403 * regrename.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5404 * reload.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5405 * reload1.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5406 * resource.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER.
5407 * rtl.h (HARD_FRAME_POINTER_IS_FRAME_POINTER,
5408 HARD_FRAME_POINTER_IS_ARG_POINTER): Define and use.
5409 * sel-sched.c: Use HARD_FRAME_POINTER_IS_FRAME_POINTER
5410 * stmt.c: Use HARD_FRAME_POINTER_IS_ARG_POINTER.
5411
5412 2010-09-29 Hariharan Sandanagobalane <hariharan@picochip.com>
5413
5414 * config/picochip/picochip.c (picochip_output_internal_label):
5415 This function can now be called for debug CFI labels, which can come
5416 in the middle of a vliw instruction. Postpone until end of vliw.
5417
5418 2010-09-29 Richard Guenther <rguenther@suse.de>
5419
5420 * tree.h (SCOPE_FILE_SCOPE_P): New macro.
5421 (DECL_FILE_SCOPE_P): Use it.
5422 (TYPE_FILE_SCOPE_P): New macro.
5423
5424 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5425
5426 * c-parser.c (c_lex_one_token): In Objective-C, when dealing with
5427 a CPP_NAME which is a reserved word, clearly separate cases for
5428 OBJC_IS_PQ_KEYWORD, OBJC_IS_AT_KEYWORD and OBJC_IS_CXX_KEYWORD.
5429
5430 2010-09-29 Nicola Pero <nicola.pero@meta-innovation.com>
5431
5432 * c-parser.c (c_lex_one_token): In Objective-C, do not replace
5433 token->value with the canonical spelling. Do exactly like C and
5434 C++ and leave it as it is.
5435
5436 2010-09-28 Richard Henderson <rth@redhat.com>
5437
5438 * config/alpha/alpha.c (alpha_builtins): New.
5439 (alpha_builtin_decl, TARGET_BUILTIN_DECL): New.
5440 (alpha_builtin_function): New.
5441 (alpha_add_builtins, alpha_init_builtins): Use it.
5442
5443 2010-09-28 Nicola Pero <nicola.pero@meta-innovation.com>
5444
5445 * doc/standards.texi (Standards): Expanded the section on
5446 Objective-C and Objective-C++.
5447
5448 2010-09-28 DJ Delorie <dj@redhat.com>
5449
5450 PR target/45800
5451 * config/m32c/m32c.c (m32c_subreg): Force adjustment of subregs of
5452 volatile MEMs.
5453
5454 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5455
5456 * c-parser.c (c_parser_declaration_or_fndef): Diagnose incorrect prefix
5457 attributes on methods.
5458 (c_parser_objc_method_definition): Handle attributes.
5459 (c_parser_objc_methodproto): Likewise.
5460 (c_parser_objc_maybe_method_attributes): New.
5461 (c_parser_objc_method_decl): Handle attributes, add a diagnostic for a
5462 missing definition, similar to that in ObjC++.
5463
5464 2010-09-28 Richard Henderson <rth@redhat.com>
5465
5466 * defaults.h (DWARF2_UNWIND_INFO): Don't depend on TARGET_UNWIND_INFO.
5467 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
5468 (CONFIG_SJLJ_EXCEPTIONS): Remove.
5469 (STACK_OLD_CHECK_PROTECT): Use targetm.except_unwind_info.
5470 (STACK_CHECK_PROTECT): Likewise.
5471 * dwarf2out.c (DWARF2_UNWIND_INFO, DWARF2_FRAME_INFO): Poison.
5472 (dwarf2out_do_frame): Use debug_unwind_info and except_unwind_info.
5473 (dwarf2out_do_cfi_asm, dwarf2out_begin_prologue): Likewise.
5474 (dwarf2out_frame_init, dwarf2out_frame_finish): Likewise.
5475 (dwarf2out_assembly_start): Likewise.
5476 * except.c (init_eh): Use targetm.except_unwind_info.
5477 (finish_eh_generation, gate_convert_to_eh_region_ranges): Likewise.
5478 (output_one_function_exception_table): Likewise.
5479 * final.c: Unconditionally include dwarf2out.h.
5480 (final_start_function): Unconditionally call dwarf2out routines.
5481 (final_end_function, final_scan_insn): Likewise.
5482 * function.c (expand_function_end): Use targetm.except_unwind_info.
5483 * opts.c (decode_options): Use targetm.except_unwind_info.
5484 * system.h (USING_SJLJ_EXCEPTIONS, TARGET_UNWIND_INFO): Poison.
5485 * target.def (debug_unwind_info, except_unwind_info): New.
5486 * target.h (enum unwind_info_type): New.
5487 * targhooks.c (default_debug_unwind_info): New.
5488 (default_except_unwind_info): New.
5489 (dwarf2_except_unwind_info, sjlj_except_unwind_info): New.
5490 * targhooks.h: Declare them.
5491 * tree-tailcall.c: Include "target.h"
5492 (suitable_for_tail_call_opt_p): Use targetm.except_unwind_info.
5493 * Makefile.in (tree-tailcall.o): Update.
5494 * tree.c (build_common_builtin_nodes): Use targetm.except_unwind_info.
5495 (lhd_gcc_personality): Likewise.
5496
5497 * doc/tm.texi.in (TARGET_UNWIND_INFO): Remove.
5498 (TARGET_EXCEPT_UNWIND_INFO): New.
5499 (DWARF2_UNWIND_INFO): Update.
5500 (TARGET_DEBUG_UNWIND_INFO): New.
5501 * doc/tm.texi: Rebuild.
5502
5503 * c-family/c-cppbuiltin.c (c_cpp_builtins): Use
5504 targetm.except_unwind_info.
5505
5506 * config/arm/arm.c (TARGET_EXCEPT_UNWIND_INFO): New.
5507 (arm_except_unwind_info): New.
5508 (arm_compute_func_type): Use it.
5509 (arm_expand_prologue, thumb_pushpop): Likewise.
5510 (thumb1_expand_prologue, thumb1_output_function_prologue): Likewise.
5511 (arm_unwind_emit, arm_output_fn_unwind): Likewise.
5512 * config/arm/bpabi.h (ARM_UNWIND_INFO): Rename from TARGET_UNWIND_INFO.
5513 * config/arm/arm.h (ARM_UNWIND_INFO): Likewise.
5514 (DWARF2_UNWIND_INFO): Remove.
5515 (MUST_USE_SJLJ_EXCEPTIONS): Remove.
5516 (ARM_EABI_UNWIND_TABLES): Remove.
5517
5518 * config/ia64/ia64.c (ia64_debug_unwind_info): New.
5519 (TARGET_DEBUG_UNWIND_INFO, TARGET_EXCEPT_UNWIND_INFO): New.
5520 (ia64_except_unwind_info): New.
5521 (ia64_output_function_prologue): Use it.
5522 (ia64_add_bundle_selector_before): Likewise.
5523 (ia64_reorg, ia64_asm_unwind_emit): Likewise.
5524 * config/ia64/ia64.h (DWARF2_FRAME_INFO): Remove.
5525 (TARGET_UNWIND_INFO): Remove.
5526
5527 * config/pa/pa.c (pa_option_override): Use targetm.except_unwind_info.
5528
5529 2010-09-28 Iain Sandoe <iains@gcc.gnu.org>
5530
5531 * c-parser.c (c_parser_objc_class_definition): Adjust prototype.
5532 (c_parser_objc_protocol_definition): Likewise.
5533 (c_parser_external_declaration): Provide dummy attribute arguments.
5534 (c_parser_declaration_or_fndef): Parse prefix attributes for ObjC.
5535 (c_parser_objc_class_definition): Handle attributes.
5536 (c_parser_objc_protocol_definition): Likewise.
5537
5538 2010-09-28 Tobias Burnus <burnus@net-b.de>
5539
5540 PR fortran/40569
5541 PR fortran/40568
5542 * toplev.h (save_decoded_options, save_decoded_options_count):
5543 New global variables.
5544 * toplev.c (save_decoded_options, save_decoded_options_count):
5545 Export variables.
5546
5547 2010-09-28 Ian Lance Taylor <iant@google.com>
5548
5549 * config/i386/i386.c (ix86_supports_split_stack): Test
5550 HAVE_GAS_CFI_PERSONALITY_DIRECTIVE rather than dwarf2out_do_cfi_asm.
5551
5552 2010-09-28 Ian Lance Taylor <iant@google.com>
5553
5554 PR target/45815
5555 * opts.c (decode_options): Don't test whether the target supports
5556 split stack if flag_split_stack == 0.
5557
5558 2010-09-28 Jan Hubicka <jh@suse.cz>
5559
5560 * builtin-attrs.def (ATTR_LEAF): New attribute.
5561 (ATTR_NOVOPS_LEAF_LIST, ATTR_LEAF_LIST, ATTR_NOTHROW_LEAF_LIST,
5562 ATTR_CONST_NOTHROW_LEAF_LIST, ATTR_PURE_NOTHROW_LEAF_LIST,
5563 ATTR_PURE_NOTHROW_NOVOPS_LEAF_LIST, ATTR_NORETURN_NOTHROW_LEAF_LIST,
5564 ATTR_MALLOC_NOTHROW_LEAF_LIST, ATTR_SENTINEL_NOTHROW_LEAF_LIST,
5565 ATTR_NOTHROW_NONNULL_LEAF, ATTR_CONST_NOTHROW_NONNULL_LEAF,
5566 ATTR_CONST_NOTHROW_TYPEGENERIC_LEAF, ATTR_PURE_NOTHROW_NONNULL_LEAF,
5567 ATTR_MALLOC_NOTHROW_NONNULL_LEAF): New attribute lists.
5568 * sync-builtins.def: Annotate all builtins by leaf.
5569 * omp-builtins.def: Annotate all builtins by leaf.
5570 * builtins.def: Annotate relevant builtins with leaf attribute.
5571 (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
5572 ATTR_MATHFN_FPROUNDING_ERRNO, ATTR_MATHFN_FPROUNDING_STORE): Make
5573 leaf.
5574
5575 2010-09-28 Jan Hubicka <jh@suse.cz>
5576
5577 * tree-ssa-ccp.c (fold_ctor_reference): New function.
5578 (fold_const_aggregate_ref): Use it.
5579 * fold-const.c (canonicalize_constructor_val): Check that we don't fold
5580 into external static.
5581
5582 2010-09-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5583
5584 PR target/44452
5585 * config/i386/i386.opt (mvect8-ret-in-mem): Define.
5586 * config/i386/i386.c (ix86_target_string): Handle -mvect8-ret-in-mem.
5587 (ix86_solaris_return_in_memory): Remove.
5588 * config/i386/i386-protos.h (ix86_solaris_return_in_memory): Remove.
5589 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
5590 (TARGET_SUBTARGET_DEFAULT): Redefine.
5591 * config/i386/sol2-10.h (TARGET_SUBTARGET_DEFAULT): Update comment.
5592 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Remove.
5593 (TARGET_SUBTARGET_DEFAULT): Redefine.
5594 * doc/invoke.texi (Option Summary, i386 and x86-64 Options): Add
5595 -mvect8-ret-in-mem.
5596 (i386 and x86-64 Options): Document -mvect8-ret-in-mem.
5597
5598 2010-09-29 Alan Modra <amodra@gmail.com>
5599
5600 PR target/45807
5601 * config/rs6000/aix.h (SETUP_FRAME_ADDRESSES): Delete.
5602 * config/rs6000/linux64.h (SETUP_FRAME_ADDRESSES): Delete.
5603 * config/rs6000/rs6000-protos.h (rs6000_aix_emit_builtin_unwind_init):
5604 Delete.
5605 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init): Delete.
5606 (rs6000_emit_prologue): Don't just create frame save info for r2,
5607 actually save r2.
5608
5609 2010-09-28 Richard Henderson <rth@redhat.com>
5610
5611 * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Output 8 bytes
5612 when 8 bytes are requested.
5613
5614 2010-09-28 Tristan Gingold <gingold@adacore.com>
5615
5616 * config/avr/avr.c (expand_prologue): Set
5617 current_function_static_stack_size.
5618
5619 2010-09-28 Tristan Gingold <gingold@adacore.com>
5620
5621 * config/alpha/alpha.md: Change the initial condition of the
5622 probing loop.
5623
5624 2010-09-28 Uros Bizjak <ubizjak@gmail.com>
5625
5626 * config/i386/sse.md (*avx_<umaxmin:code><mode>3):
5627 Split from *avx_<maxmin:code><mode>3.
5628 (*avx_<smaxmin:code><mode>3): Ditto.
5629 * config/i386/i386.md (maxmin): Remove code iterator.
5630
5631 2010-09-27 Ian Lance Taylor <iant@google.com>
5632
5633 * config/i386/i386.c (ix86_supports_split_stack): -fsplit-stack
5634 requires assembler support for CFI directives.
5635
5636 2010-09-27 Richard Henderson <rth@redhat.com>
5637
5638 * dwarf2out.c (dwarf2out_cfi_label): Use ASM_OUTPUT_DEBUG_LABEL.
5639
5640 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
5641
5642 * emit-rtl.c (reorder_insns_nobb) [ENABLE_CHECKING]: Sanity-check
5643 that AFTER is not in the range FROM..TO, inclusive.
5644
5645 2010-09-27 Hans-Peter Nilsson <hp@axis.com>
5646 Bernd Schmidt <bernds@codesourcery.com>
5647
5648 PR rtl-optimization/45792
5649 * cfgcleanup.c (try_head_merge_bb): New rtx vector nextptr.
5650 If not all insns are to be merged, for each edge, stash the
5651 next candidate after the to-be-merged insns before doing the
5652 merge, and use them for the retry at the new insertion point.
5653 Handle CC0 targets when retrying.
5654
5655 2010-09-27 Ian Lance Taylor <iant@google.com>
5656
5657 * common.opt (fsplit-stack): New option.
5658 * opts.c (decode_options): Set flag_split_stack to final value.
5659 * target.def (supports_split_stack): New hook.
5660 * gcc.c (STACK_SPLIT_SPEC): Define.
5661 (LINK_COMMAND_SPEC): Use STACK_SPLIT_SPEC.
5662 * doc/invoke.texi (Option Summary): Mention -fsplit-stack.
5663 (Code Gen Options): Document -fsplit-stack.
5664 * doc/extend.texi (Function Attributes): Mention no_split_stack.
5665 (Function Attributes): Document no_split_stack.
5666 * doc/tm.texi.in (Stack Smashing Protection): Add @hook
5667 TARGET_SUPPORTS_SPLIT_STACK.
5668 * doc/tm.texi: Rebuild.
5669 * function.c (thread_prologue_and_epilogue_insns): If
5670 flag_split_stack, add split stack prologue.
5671 * explow.c (allocate_dynamic_stack_space): Support -fsplit-stack.
5672 * varasm.c (saw_no_split_stack): New static variable.
5673 (assemble_start_function): Set saw_no_split_stack if the function
5674 has the no_split_stack attribute.
5675 (file_end_indicate_split_stack): New function.
5676 * output.h (file_end_indicate_split_stack): Declare.
5677 * libgcc-std.ver (GCC_4.6.0): Add -fsplit-stack support variables
5678 and function.
5679 * doc/libgcc.texi (Miscellaneous routines): Document -fsplit-stack
5680 routines.
5681 * config/i386/i386.c (ix86_option_override_internal): Don't set
5682 expand_builtin_va_start to NULL if -fsplit-stack.
5683 (ix86_function_regparm): Reduce local regparm by 1 for 32-bit
5684 -fsplit-stack.
5685 (ix86_va_start): If -fsplit-stack, get overflow pointer from
5686 scratch register set by prologue.
5687 (ix86_code_end): If -fsplit-stack, call
5688 file_end_indicate_split_stack.
5689 (ix86_supports_split_stack): New static function.
5690 (SPLIT_STACK_AVAILABLE): Define.
5691 (split_stack_prologue_scratch_regno): New static function.
5692 (split_stack_fn): New static variable.
5693 (ix86_expand_split_stack_prologue): New function.
5694 (ix86_live_on_entry): New static function.
5695 (ix86_legitimate_address_p): Handle UNSPEC_STACK_CHECK.
5696 (output_pic_addr_const): Likewise.
5697 (i386_asm_output_addr_const_extra): Likewise.
5698 (ix86_expand_call): Change return type to rtx. Return the new
5699 call instruction.
5700 (TARGET_SUPPORTS_SPLIT_STACK): Define.
5701 (TARGET_EXTRA_LIVE_ON_ENTRY): Define.
5702 * config/i386/i386.md (UNSPEC_STACK_CHECK): Define.
5703 (split_stack_prologue, split_stack_return): New insns.
5704 (split_stack_space_check): New insn.
5705 * config/i386/i386.h (struct machine_function): Add
5706 split_stack_varargs_pointer field.
5707 * config/i386/linux.h (TARGET_CAN_SPLIT_STACK): Define.
5708 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
5709 * config/i386/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
5710 (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
5711 * config/i386/i386-protos.h (ix86_expand_split_stack_prologue):
5712 Declare.
5713 (ix86_expand_call): Update declaration.
5714
5715 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
5716
5717 * doc/objc.texi (Type encoding): Added the new 'long double' (D)
5718 code. Added byref, which was missing in the list of codes.
5719 Explain that enumeration values are encoded as the integer type
5720 that the compiler uses to store them. Explain and make examples
5721 of how 'const' interacts with pointers, and the complication of
5722 the encoding of 'const char *'.
5723 (Legacy type encoding): New subsection, explaining that GCC emits
5724 incorrect type encodings for the NeXT runtime for compatibility
5725 reasons.
5726 (@@encode): New subsection, explaining @encode and particularly
5727 that protocol qualifiers are not recognized inside an @encode()
5728 expression.
5729 (Method signatures): New subsection, explaining how method
5730 signatures are encoded.
5731
5732 2010-09-27 Nicola Pero <nicola.pero@meta-innovation.com>
5733
5734 Merge from 'apple/trunk' branch on FSF servers. Removed small
5735 change in build_conditional_expr that had been added when fixing
5736 PR objc/27377 and which did the same check in a less complete way.
5737
5738 2005-12-15 Fariborz Jahanian <fjahanian@apple.com>
5739
5740 Radar 4229905
5741 * c-typeck.c (build_conditional_expr): Call objc_have_common_type when
5742 looking for objective-c common pointer types.
5743
5744 2005-06-22 Ziemowit Laski <zlaski@apple.com>
5745
5746 Radar 4154928
5747 * c-typeck.c (build_conditional_expr): For two ObjC pointer types,
5748 use their ObjC common type.
5749
5750 2010-09-27 Richard Guenther <rguenther@suse.de>
5751
5752 * dbxout.c (dbxout_symbol): Use DECL_FILE_SCOPE_P.
5753
5754 2010-09-27 Jie Zhang <jie@codesourcery.com>
5755
5756 * print-tree.c (print_node): Print in-constant-pool.
5757
5758 2010-09-27 Uros Bizjak <ubizjak@gmail.com>
5759
5760 * config/i386/i386.h (CLASS_MAX_NREGS): Also handle XCmode.
5761 (UNITS_PER_WORD): Define only when IN_LIBGCC2 is undefined.
5762 (MOVE_MAX_PIECES): Redefine using UNITS_PER_WORD.
5763 (ASM_OUTPUT_AVX_PREFIX): Simplify pointer addition.
5764
5765 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
5766
5767 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_add): Merge
5768 from pro_epilogue_adjust_stack_<mode>_{1,2}.
5769 (pro_epilogue_adjust_stack_<mode>_add): Rename from
5770 pro_epilogue_adjust_stack_<mode>_3.
5771 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for
5772 renamed pro_epilogue_adjust_stack_{si,di}_add.
5773 (ix86_expand_prologue): Use indirect functions. Update for renamed
5774 pro_epilogue_adjust_stack_{si,di}_sub.
5775
5776 2010-09-26 Uros Bizjak <ubizjak@gmail.com>
5777
5778 * config/i386/i386.md (movmsk_df): New insn.
5779 (signbitdf): Split out of signbit<mode>2. Generate movmsk_df
5780 sequence for TARGET_SSE_MATH.
5781
5782 2010-09-26 Richard Sandiford <rdsandiford@googlemail.com>
5783
5784 * config/mips/mips.c (mips_builtin_decls): Declare.
5785 (mips_init_builtins): Store function declarations in
5786 mips_builtin_decls.
5787 (mips_builtin_decl): New function.
5788 (TARGET_BUILTIN_DECL): Define.
5789
5790 2010-09-25 Kai Tietz <kai.tietz@onevision.com>
5791 Richard Henderson <rth@redhat.com>
5792
5793 * config/i386/cygwin.asm: Include auto-host.h.
5794 (cfi_startproc, cfi_endproc, cfi_adjust_cfa_offset,
5795 cfi_def_cfa_register, cfi_register, cfi_push, cfi_pop): New macros.
5796 (__chkstk, __alloca): Annotate for dwarf2 unwind info. Drop
5797 alignment code from the 64-bit path. Use gas local labels.
5798 * config/i386/i386.md (pro_epilogue_adjust_stack_<mode>_2): Macroize
5799 from _di_2. Remove the useless constant integer argument.
5800 (pro_epilogue_adjust_stack_<mode>_3): New.
5801 (allocate_stack_worker_probe_<mode>): Macroize from
5802 allocate_stack_worker_{32,64}. Use __chkstk_ms. Update all users.
5803 * config/i386/i386.c (ix86_expand_prologue): Use __chkstk_ms;
5804 use gen_pro_epilogue_adjust_stack_*_3 and annotate it.
5805 (__chkstk_ms): New function.
5806 * config/i386/t-cygming (LIB1ASMFUNCS): Add _chkstk_ms.
5807 * gcc/config/i386/t-interix: Likewise.
5808 * configure.ac (HAVE_GAS_CFI_DIRECTIVE): Export for target.
5809 (HAVE_GAS_CFI_PERSONALITY_DIRECTIVE): Likewise.
5810 (HAVE_GAS_CFI_SECTIONS_DIRECTIVE): Likewise.
5811 * configure, config.in: Rebuild.
5812
5813 2010-09-25 Eric Botcazou <ebotcazou@adacore.com>
5814
5815 * tree-inline.c (copy_bb): Use GSI_CONTINUE_LINKING when inserting new
5816 statements because of the return slot optimization.
5817
5818 2010-09-25 Anatoly Sokolov <aesok@post.ru>
5819
5820 * config/avr/avr.h (CLASS_LIKELY_SPILLED_P): Remove.
5821 * config/avr/avr-protos.h (class_likely_spilled_p): Remove.
5822 * config/avr/avr.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
5823 (class_likely_spilled_p): Rename to...
5824 (avr_class_likely_spilled_p): ...this. Make static. Change argument
5825 type to reg_class_t.
5826
5827 2010-09-24 Jan Hubicka <jh@suse.cz>
5828
5829 * lto-symtab.c (lto_symtab_entry_def): Add guessed field.
5830 (lto_symtab_resolve_symbols): Set it.
5831 (lto_symtab_merge_decls_1): Do not compute used_from_object_file;
5832 store resolution field in cgraph/varpool.
5833 * cgraph.c (cgraph_same_body_alias, cgraph_add_thunk): Return node.
5834 (cgraph_get_node_or_alias, cgraph_get_node_or_alias): Constify.
5835 (cgraph_dump_node): Drop used_from_object_file.
5836 (cgraph_clone_node, cgraph_create_virtual_clone): Likewise.
5837 (cgraph_function_body_availability): Use decl_replaceable_p.
5838 (cgraph_make_node_local): Set resolution to LDPR_PREVAILING_DEF_IRONLY.
5839 (cgraph_can_remove_if_no_direct_calls_and_refs): Use
5840 cgraph_used_from_object_file_p.
5841 (cgraph_will_be_removed_from_program_if_no_direct_calls): Use
5842 cgraph_used_from_object_file_p.
5843 (resolution_used_from_other_file_p): New functoin.
5844 (cgraph_used_from_object_file_p): New predicate.
5845 * cgraph.h: Include plugin-api.h
5846 (struct cgraph_local_info): Remove used_from_object_file.
5847 (struct cgraph_node): Add resolution field.
5848 (struct varpool_node): Likewise; remove used_from_object_file;
5849 reove const_value_known.
5850 (cgraph_get_node, cgraph_get_node_or_alias, cgraph_node,
5851 cgraph_same_body_alias, cgraph_add_thunk): Update prototypes.
5852 (resolution_used_from_other_file_p, cgraph_used_from_object_file_p,
5853 varpool_used_from_object_file_p): Declare.
5854 (varpool_get_node, varpool_extra_name_alias): Update prototype.
5855 * tree.h (DECL_REPLACEABLE_P): Remove.
5856 (decl_replaceable_p, decl_binds_to_current_def_p): Declare.
5857 * final.c (rest_of_clean_state): Use decl_binds_to_current_def_p.
5858 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
5859 input_overwrite_node, input_node, input_varpool_node): Stream
5860 resolution.
5861 * expr.c (expand_expr_real_1): Use const_value_known_p
5862 * ipa.c (ipa_discover_readonly_nonaddressable_var): Do not set
5863 const_value_known.
5864 (cgraph_externally_visible_p): Use cgraph_used_from_object_file_p.
5865 (function_and_variable_visibility): Set resolution for local vars
5866 and functions; use varpool_used_from_object_file_p.
5867 * varasm.c (resolution_to_local_definition_p, resolution_local_p): New
5868 static functions.
5869 (default_binds_local_p_1): Use resolutoin info.
5870 (decl_binds_to_current_def_p, decl_replaceable_p): New functions.
5871 * varpool.c (varpool_get_node): Constify.
5872 (const_value_known_p): Do not use vnode->const_value_known;
5873 use decl_replaceable_p.
5874 (varpool_finalize_decl): Do not set const_value_known.
5875 (cgraph_variable_initializer_availability): Use decl_replaceable_p
5876 (varpool_extra_name_alias): Return new node.
5877 (varpool_used_from_object_file_p): New function.
5878
5879 2010-09-24 Richard Henderson <rth@redhat.com>
5880
5881 * config/ia64/ia64.c (ia64_dwarf_handle_frame_unspec): New.
5882 (TARGET_DWARF_HANDLE_FRAME_UNSPEC): New.
5883 (do_spill): Use REG_CFA_OFFSET.
5884 (ia64_expand_prologue): Use REG_CFA_ADJUST_CFA and REG_CFA_REGISTER
5885 as appropriate.
5886 (ia64_expand_epilogue): Likewise.
5887 (process_set): Split into ...
5888 (process_cfa_adjust_cfa): this,
5889 (process_cfa_register): this,
5890 (process_cfa_offset): and this new function.
5891 (ia64_asm_unwind_emit): Use them. Expect REG_CFA_* notes
5892 instead of REG_FRAME_RELATED_EXPR.
5893
5894 2010-09-24 Olivier Hainque <hainque@adacore.com>
5895
5896 * config/i386/vx-common.h (DBX_REGISTER_NUMBER): Reinstate.
5897
5898 2010-09-24 Jan Hubicka <jh@suse.cz>
5899
5900 * doc/extend.texi: (attribute leaf): Document.
5901 * tree.c (local_define_builtin): Handle ECF_LEAF.
5902 (build_common_builtin_nodes): Set ECF_LEAF where needed.
5903 * tree.h (ECF_LEAF): New.
5904 * ipa-reference.c (propagate_bits): For leaf calls propagate ever
5905 overwrittable and unavailable functions.
5906 (ipa_init): Put all_module_statics into optimization_summary_obstack.
5907 (copy_global_bitmap): Do not copy all_module_statics.
5908 (read_write_all_from_decl): Use cgraph_node argument; handle ECF_LEAF.
5909 (propagate): Handle overwritable and unavailable leaf functions;
5910 initialize global info for overwritable and unavailable leaf functions;
5911 do not free all module statics.
5912 (ipa_reference_get_not_{read,written}_global): Leaf calls don't clobber
5913 local statics.
5914 * calls.c (flags_from_decl_or_type): Handle leaf.
5915 * tree-cfg.c (stmt_can_make_abnormal_goto): Leaf functions can't do
5916 abnormal gotos.
5917
5918 2010-09-24 Basile Starynkevitch <basile@starynkevitch.net>
5919
5920 * gengtype.c: Reindented.
5921 * gengtype.h: Reindented.
5922 * gengtype-parse.c: Reindented.
5923
5924 2010-09-24 Jan Hubicka <jh@suse.cz>
5925
5926 PR tree-optimization/45738
5927 PR tree-optimization/45741
5928 * expr.c (string_constant): Allow CONST_DECL too;
5929 check that DECL_INITIAL is set.
5930 * varpool.c (const_value_known_p): Only look into VAR_DECL
5931 and CONST_DECL.
5932
5933 2010-09-24 Joseph Myers <joseph@codesourcery.com>
5934
5935 * common.opt (undef): New.
5936
5937 2010-09-24 Jakub Jelinek <jakub@redhat.com>
5938
5939 PR middle-end/45234
5940 * rtl.h (enum global_rtl_index): Add
5941 GR_VIRTUAL_PREFERRED_STACK_BOUNDARY.
5942 (LAST_VIRTUAL_POINTER_REGISTER): Define.
5943 (virtual_preferred_stack_boundary_rtx,
5944 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM): Define.
5945 (LAST_VIRTUAL_REGISTER): Increase by one.
5946 (REGNO_PTR_FRAME_P): Use LAST_VIRTUAL_POINTER_REGISTER
5947 instead of LAST_VIRTUAL_REGISTER.
5948 * function.c (instantiate_new_reg): Handle
5949 virtual_preferred_stack_boundary_rtx.
5950 * emit-rtl.c (init_virtual_regs): Handle
5951 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
5952 (init_emit_regs): Initialize virtual_preferred_stack_boundary_rtx.
5953 * explow.c (round_push): If crtl->preferred_stack_boundary
5954 is smaller than MAX_SUPPORTED_STACK_ALIGNMENT, use
5955 virtual_preferred_stack_boundary_rtx alignment instead of
5956 crtl->preferred_stack_boundary alignment.
5957 (allocate_dynamic_stack_space): Use CONST_INT_P and REG_P
5958 macros. Never decrease crtl->preferred_stack_boundary,
5959 use crtl->preferred_stack_boundary or MAX_SUPPORTED_STACK_ALIGNMENT
5960 instead of PREFERRED_STACK_BOUNDARY. Don't modify
5961 stack_pointer_delta in dynamic allocation, even when size
5962 is constant.
5963 (probe_stack_range, anti_adjust_stack_and_probe): Use CONST_INT_P
5964 macro.
5965 * print-rtl.c (print_rtx): Handle
5966 VIRTUAL_PREFERRED_STACK_BOUNDARY_REGNUM.
5967 * config/alpha/alpha.h (NONSTRICT_REG_OK_FP_BASE_P): Use
5968 LAST_VIRTUAL_POINTER_REGISTER instead of LAST_VIRTUAL_REGISTER.
5969 * config/frv/frv.c (frv_emit_movsi): Likewise.
5970 * config/arm/arm.c (thumb1_legitimate_address_p): Likewise.
5971 * config/rs6000/rs6000.c (virtual_stack_registers_memory_p):
5972 Likewise.
5973
5974 Revert:
5975 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
5976
5977 PR middle-end/45234
5978 * calls.c (expand_call): Make sure that all variable sized
5979 adjustments are multiple of preferred stack boundary after
5980 stack alignment.
5981
5982 2010-09-24 Iain Sandoe <iains@gcc.gnu.org>
5983 Dominique Dhumieres <dominiq@lps.ens.fr>
5984
5985 PR bootstrap/45751
5986 * gcc/config/darwin-driver.c (darwin_default_min_version):
5987 Adjust size passed to memcpy in two places.
5988
5989 2010-09-24 Richard Guenther <rguenther@suse.de>
5990
5991 * c-decl.c (pop_scope): Always set file-scope DECL_CONTEXT.
5992 Make sure to not call set_type_context with error_mark_node.
5993 * langhooks.c (lhd_set_decl_assembler_name): Use DECL_FILE_SCOPE_P.
5994
5995 2010-09-24 Richard Guenther <rguenther@suse.de>
5996
5997 * Makefile.in (OBJS-onestep): Remove.
5998 (ALL_HOST_BACKEND_OBJS): Remove libbackend.o.
5999 (libbackend.a): Remove onestep support.
6000 (libbackend.o): Remove.
6001 * configure.ac (--enable-intermodule): Remove.
6002 * configure: Regenerate.
6003
6004 2010-09-24 Bernd Schmidt <bernds@codesourcery.com>
6005
6006 * cfgcleanup.c (flow_find_head_matching_sequence): Terminate when
6007 reaching the end of a block if it occurs at a DEBUG_INSN.
6008
6009 2010-09-09 Tristan Gingold <gingold@adacore.com>
6010
6011 PR target/44242
6012 * config/vms/vms-crt0-64.c: Removed.
6013 * config/vms/vms-crt0.c: Removed.
6014 * config/vms/vms-psxcrt0-64.c: Removed.
6015 * config/vms/vms-psxcrt0.c: Removed.
6016 * config/vms/vms-ucrt0.c: New file.
6017 * config/vms/t-vms64: Removed.
6018 * config/vms/t-vms (VMS_EXTRA_PARTS): Uncomment it. Remove DECC.
6019 Use $(GCC_FOR_TARGET) to build pcrt0.o and vcrt0.o
6020 * config.gcc (alpha-dec-vms): Use t-vms.
6021
6022 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
6023
6024 * doc/invoke.texi (-fno-nil-receivers): Tidied up line to remove
6025 underfull hbox in DVI output.
6026 (-fobjc-class-cxx-cdtors): Same change.
6027 (-fobjc-exceptions): Tidied up documentation. Explain what the
6028 option does, but moved the (lenghty) description of the exception
6029 syntax into objc.texi.
6030 (-fobjc-gc): Explain that the option is not useful with the GNU
6031 runtime.
6032 (-fzero-link): Explain that the GNU runtime always works in
6033 "zero-link" mode.
6034 * doc/objc.texi: All sections: simplified @node declarations
6035 removing specification of next, previous, up node.
6036 (Objective-C): Updated introduction.
6037 (Garbage Collection): Updated. The bohem-gc library is now
6038 included in gcc itself. Mention that this section only applies to
6039 the GNU Objective-C runtime.
6040 (compatibility_alias): Small tidy up.
6041 (Exceptions): New section mostly containing text previously in the
6042 description of the -fobjc-exception command-line option.
6043 (Synchronization): Same.
6044
6045 2010-09-24 Uros Bizjak <ubizjak@gmail.com>
6046
6047 * config/i386/i386.md (ix86_code_end): Move the initialization of
6048 xops array near the consumer. Use AX_REG and SP_REG instead of
6049 numerical constants.
6050
6051 2010-09-24 Nicola Pero <nicola.pero@meta-innovation.com>
6052
6053 * c-typeck.c (convert_arguments): Use warning 'too many arguments to
6054 method [methodname]' for an Objective-C method instead of the less
6055 satisfactory 'too many arguments to function' (with no method name).
6056
6057 2010-09-23 Eric Botcazou <ebotcazou@adacore.com>
6058
6059 * tree-flow.h (execute_update_addresses_taken): Remove parameter.
6060 * tree-ssa.c (maybe_optimize_var): Tweak comment and dump messages.
6061 (execute_update_addresses_taken): Remove parameter. Execute the
6062 optimization unconditionally.
6063 * passes.c (execute_function_todo): Call execute_update_addresses_taken
6064 unconditionally if TODO_rebuild_alias is set, else only when optimizing
6065 if TODO_update_address_taken is set.
6066
6067 2010-09-23 Anatoly Sokolov <aesok@post.ru>
6068
6069 * config/arm/arm.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
6070 * config/arm/arm-protos.h (arm_output_addr_const_extra): Remove.
6071 * config/arm/arm.c (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6072 (arm_output_addr_const_extra): Make static.
6073
6074 2010-09-23 Uros Bizjak <ubizjak@gmail.com>
6075
6076 * config/i386/i386.md (UNSPECV_NOPS): Rename from UNSPEC_NOPS and
6077 define as unspec_volatile.
6078 ("nops"): Define as unspec_volatile. Use fputs to write to
6079 asm_out_file directly. Output NOPs on separate lines using while loop.
6080 * config/i386/i386.c (ix86_code_end): Use fputs to write to
6081 asm_out_file directly. Output NOPs on separate lines using while loop.
6082
6083 2010-09-23 Richard Guenther <rguenther@suse.de>
6084
6085 PR tree-optimization/45565
6086 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee):
6087 Make sure to adjust the fndecl before replacing the stmt.
6088
6089 2010-09-23 Richard Guenther <rguenther@suse.de>
6090
6091 PR middle-end/45750
6092 * gimplify.c (gimplify_expr): Properly pass on GS_ERROR when
6093 gimplifying MEM_REF.
6094
6095 2010-09-23 Alan Modra <amodra@gmail.com>
6096
6097 * config/rs6000/rs6000.c (toc_relative_ok): Delete.
6098 (rs6000_emit_move): Use SYMBOL_REF_LOCAL_P instead.
6099
6100 2010-09-23 Bernd Schmidt <bernds@codesourcery.com>
6101
6102 PR rtl-optimization/44374
6103 * basic-block.h (enum bb_flags): Add BB_MODIFIED.
6104 * df-core.c (df_set_bb_dirty): Set it.
6105 * ifcvt.c (find_memory): Remove function.
6106 (dead_or_predicable): Use can_move_insns_across.
6107 * df.h (can_move_insns_across): Declare function.
6108 * cfgcleanup.c (block_was_dirty): New static variable.
6109 (try_crossjump_bb, try_forward_edges): Test BB_MODIFIED flag rather
6110 than df_get_bb_dirty.
6111 (try_head_merge_bb): New static function.
6112 (try_optimize_cfg): Call it. Call df_analyze if block_was_dirty
6113 is set.
6114 * df-problems.c: Include "target.h"
6115 (df_simulate_find_uses): New static function.
6116 (MEMREF_NORMAL, MEMREF_VOLATILE): New macros.
6117 (find_memory, find_memory_store): New static functions.
6118 (can_move_insns_across): New function.
6119 * Makefile.in (df-problems.o): Update dependencies.
6120
6121 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
6122
6123 PR java/44095
6124 * config/sparc/linux.h (ASM_SPEC): Pass -K PIC if -findirect-dispatch
6125 is specified and the suffix of the file isn't ".c".
6126 * config/sparc/linux64.h (ASM_SPEC): Likewise.
6127
6128 2010-09-22 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
6129
6130 * doc/contrib.texi (Contributors): Allow URL to wrap in PDF output.
6131 * doc/cppopts.texi: Fix markup of index entry.
6132 * doc/extend.texi (Constructing Calls): Fix markup of
6133 __builtin_va_arg_pack and __builtin_va_arg_pack_len definition.
6134 (Conditionals, C++ Comments, Pragmas, Unnamed Fields, Thread-Local)
6135 (Vague Linkage, C++ Attributes): Fix markup of index entries and
6136 keywords.
6137 * doc/invoke.texi (Option Summary): Fix spacing. Rewrap to
6138 avoid long lines.
6139 (C Dialect Options, C++ Dialect Options, Warning Options)
6140 (Debugging Options, Spec Files, Darwin Options)
6141 (i386 and x86-64 Options, MIPS Options)
6142 (RS/6000 and PowerPC Options, Code Gen Options): Fix markup of
6143 index entries, avoid abbreviations, allow URLs to wrap, avoid
6144 long lines, avoid overlong pages from long @itemx lists.
6145 * doc/objc.texi (Garbage Collection): Allow URLs to wrap.
6146 * doc/standards.texi (Standards): Likewise.
6147 * doc/trouble.texi (Incompatibilities): Fix markup of index entry.
6148
6149 2010-09-22 Joseph Myers <joseph@codesourcery.com>
6150
6151 * opts-common.c (prune_options): Make static. Work with decoded
6152 options.
6153 (decode_cmdline_options_to_array): Call prune_options. Don't
6154 resize option array here.
6155 * opts.h (prune_options): Remove prototype.
6156 * gcc.c (process_command): Take decoded options; don't call
6157 decode_cmdline_options_to_array here. Use decoded options for argv[0].
6158 (main): Call decode_cmdline_options_to_array here instead of
6159 prune_options. Update call to process_command.
6160 * config/darwin-driver.c: Include opts.h.
6161 (darwin_default_min_version): Work with decoded options. Don't
6162 handle -b or -V here.
6163 * config/darwin.h (darwin_default_min_version): Update prototype.
6164 (GCC_DRIVER_HOST_INITIALIZATION): Update call to
6165 darwin_default_min_version.
6166 * config/i386/cygwin.h (mingw_scan): Update prototype.
6167 (GCC_DRIVER_HOST_INITIALIZATION): Update call to mingw_scan.
6168 * config/i386/cygwin1.c: Include opts.h.
6169 (mingw_scan): Work with decoded options.
6170 * config/i386/t-cygwin (cygwin1.o): Update dependencies.
6171 * config/t-darwin (darwin-driver.o): Update dependencies.
6172
6173 2010-09-22 Joseph Myers <joseph@codesourcery.com>
6174
6175 * common.opt (-assemble, -compile, -coverage, -debug, -dump,
6176 -dump=, -dumpbase, -dumpdir, -entry, -entry=, -extra-warnings,
6177 -for-assembler, -for-assembler=, -for-linker, -for-linker=,
6178 -force-link, -force-link=, -language, -language=,
6179 -library-directory, -library-directory=, -no-canonical-prefixes,
6180 -no-standard-libraries, -no-warnings, -optimize, -output,
6181 -output=, -pass-exit-codes, -pedantic, -pedantic-errors, -pie,
6182 -pipe, -prefix, -prefix=, -preprocess, -print-file-name,
6183 -print-file-name=, -print-libgcc-file-name,
6184 -print-multi-directory, -print-multi-lib,
6185 -print-multi-os-directory, -print-prog-name, -print-prog-name=,
6186 -print-search-dirs, -print-sysroot, -print-sysroot-headers-suffix,
6187 -profile, -save-temps, -shared, -specs, -specs=, -static,
6188 -symbolic, -time, -verbose, -param=, -sysroot, coverage, e, u,
6189 symbolic): New.
6190 (fhelp, fhelp=, ftarget-help, fversion): Make into aliases.
6191 * gcc.c (A Short Introduction to Adding a Command-Line Option):
6192 Remove comment.
6193 (cc1_options): Correct specs for passing down --help,
6194 --target-help and --help=*. Add spec for passing down --version.
6195 (struct option_map, option_map, target_option_translations,
6196 translate_options): Remove.
6197 (driver_handle_option): Handle OPT__version, OPT__help, OPT__help_
6198 and OPT__target_help instead of OPT_fversion, OPT_fhelp,
6199 OPT_fhelp_ and OPT_ftarget_help.
6200 (process_command): Don't call translate_options. Call
6201 decode_cmdline_options_to_array before checking for
6202 -no-canonical-prefixes using decoded options.
6203 * opts-common.c (tm.h): Update comment on #include.
6204 (find_opt): Allow abbreviations of long options.
6205 (struct option_map, option_map): New.
6206 (decode_cmdline_option): Use them instead of hardcoding -Wno, -fno
6207 and -mno handling.
6208 (target_option_translations): New.
6209 (decode_cmdline_options_to_array): Handle
6210 TARGET_OPTION_TRANSLATE_TABLE in driver.
6211 * opts.c (common_handle_option): Don't handle OPT_fhelp,
6212 OPT_ftarget_help, OPT_fhelp_ or OPT_fversion.
6213
6214 2010-09-22 Richard Guenther <rguenther@suse.de>
6215
6216 * tree-inline.c (optimize_inline_calls): Schedule cleanups
6217 only if we inlined something. Block compaction and conditional
6218 folding are done by cfg cleanup. Schedule update-address-taken.
6219 (tree_function_versioning): Remove redundant call to number_blocks.
6220 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): Conditional
6221 folding is done by cfg cleanup.
6222 * passes.c (init_optimization_passes): Remove update-address-taken
6223 pass after IPA inlining.
6224
6225 2010-09-22 Chung-Lin Tang <cltang@codesourcery.com>
6226
6227 * postreload.c (move2add_note_store): Add reg_symbol_ref[] checks
6228 to update conditions. Fix reg_mode[] check.
6229
6230 2010-09-22 Hariharan Sandanagobalane <hariharan@picochip.com>
6231
6232 * config/picochip/picochip.md (movhicc): Use expand to check whether
6233 movhicc is available and split it after reload.
6234
6235 2010-09-22 Richard Guenther <rguenther@suse.de>
6236
6237 * tree-ssanames.c (release_dead_ssa_names): Do not remove
6238 callee edges here.
6239 * passes.c (init_optimization_passes): Remove early CFG cleanup.
6240 * tree-optimize.c (execute_cleanup_cfg_pre_ipa): Remove.
6241 (pass_cleanup_cfg): Likewise.
6242 (execute_fixup_cfg): Cleanup.
6243 * tree-pass.h (pass_cleanup_cfg): Remove.
6244
6245 2010-09-22 Martin Jambor <mjambor@suse.cz>
6246
6247 * gimple-fold.c (fold_gimple_call): New parameter inplace, do not fold
6248 builtins if it is true.
6249 (fold_stmt_1): Call, fold_gimple_call always, pass inplace as a
6250 parameter.
6251
6252 2010-09-22 Martin Jambor <mjambor@suse.cz>
6253
6254 * tree-sra.c (struct access): New field grp_no_warning.
6255 (create_access_replacement): Set TREE_NO_WARNING according to
6256 grp_no_warning.
6257 (create_artificial_child_access): Use build_ref_for_model and set
6258 grp_no_warning if build_user_friendly_ref_for_offset fails.
6259 (propagate_subaccesses_across_link): Likewise.
6260
6261 2010-09-22 Eric Botcazou <ebotcazou@adacore.com>
6262
6263 PR target/35664
6264 * config/sparc/constraints.md ('e'): Return NO_REGS if !TARGET_FPU.
6265 ('f'): Likewise.
6266
6267 2010-09-22 Tristan Gingold <gingold@adacore.com>
6268
6269 * config/alpha/alpha.c (alpha_use_linkage): Initialize target field.
6270
6271 2010-09-22 Uros Bizjak <ubizjak@gmail.com>
6272
6273 * config/i386/i386.h (MAX_STRINGOP_ALGS): Fix typo in the name.
6274 * config/i386/i386.c (decide_alg): Update for rename.
6275
6276 2010-09-22 Jakub Jelinek <jakub@redhat.com>
6277
6278 PR rtl-optimization/45739
6279 * simplify-rtx.c (simplify_binary_operation_1): Optimize even
6280 vector mode | CONST0_RTX (mode) and ^ CONST0_RTX (mode).
6281
6282 2010-09-21 Anatoly Sokolov <aesok@post.ru>
6283
6284 * config/rs6000/rs6000.h (OUTPUT_ADDR_CONST_EXTRA): Remove macros.
6285 * config/rs6000/rs6000-protos.h (rs6000_output_addr_const_extra):
6286 Remove.
6287 * config/rs6000/rs6000.c (rs6000_output_addr_const_extra): Make static.
6288 (TTARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
6289
6290 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6291
6292 PR objc/23710
6293 * c-parser.c (c_parser_objc_method_definition): Check the return
6294 value of objc_start_method_definition and if false is returned,
6295 parse the method definition but emit no code.
6296
6297 2010-09-21 Nicola Pero <nicola.pero@meta-innovation.com>
6298
6299 PR objc/25965
6300 * c-decl.c (detect_field_duplicates): If compiling Objective-C,
6301 call objc_get_interface_ivars ().
6302
6303 2010-09-21 Kai Tietz <kai.tietz@onevision.com>
6304
6305 PR target/45694
6306 * config/i386/i386.c (ix86_expand_prologue): Save r10 in case that
6307 static chain-register is used for 64-bit.
6308
6309 2010-09-21 Richard Guenther <rguenther@suse.de>
6310
6311 * dwarf2out.c (is_cu_die): New function.
6312 (add_pubtype): Use it.
6313 (gen_subprogram_die): Likewise.
6314 (gen_struct_or_union_type_die): Likewise.
6315 (dwarf2out_finish): Likewise.
6316 (comp_unit_die): Rename to ...
6317 (single_comp_unit_die): ... this.
6318 (comp_unit_die): New function lazily constructing and
6319 returning single_comp_unit_die.
6320 (is_cxx, is_fortran, is_ada, debug_dwarf, break_out_comdat_types,
6321 base_type_die, subrange_type_die, modified_type_die,
6322 lower_bound_default, add_bound_info, add_prototyped_attribute,
6323 dwarf2out_vms_debug_main_pointer, scope_die_for, retry_incomplete_types,
6324 dwarf2out_abstract_function, gen_type_die_with_usage, get_context_die,
6325 force_decl_die, gen_namespace_die, dwarf2out_decl,
6326 dwarf2out_start_source_file, dwarf2out_end_source_file,
6327 prune_unused_types, dwarf2out_finish): Use it.
6328 (gen_compile_unit_die): For GNU GIMPLE derive DW_AT_language from
6329 the global list of translation-unit decls.
6330 (dwarf2out_init): Do not create single_comp_unit_die here.
6331 (force_decl_die): Handle TRANSLATION_UNIT_DECL.
6332
6333 2010-09-21 Richard Guenther <rguenther@suse.de>
6334
6335 * dwarf2out.c (dwarf2out_decl): Do not always generate a DIE
6336 for bool for C++.
6337
6338 2010-09-21 Bernd Schmidt <bernds@codesourcery.com>
6339
6340 * config/arm/iterators.md (qhs_extenddi_op): New mode_attr.
6341 (qhs_extenddi_cstr): Likewise.
6342 * config/arm/arm.md (zero_extend<mode>di2, extend<mode>di2): Use
6343 them for the source operand.
6344
6345 2010-09-21 Uros Bizjak <ubizjak@gmail.com>
6346
6347 * config/i386/i386.c (ix86_split_ashl): Rename single_width variable
6348 to half_width. Use GET_MODE_BITSIZE to calculate mode size.
6349 (ix86_split_ashr): Ditto.
6350 (ix86_split_lshr): Ditto.
6351
6352 2010-09-21 Richard Guenther <rguenther@suse.de>
6353
6354 PR tree-optimization/45580
6355 * tree-ssa-propagate.c (substitute_and_fold): Always replace
6356 regular uses.
6357 * gimple-fold.c (gimple_fold_obj_type_ref): For a BINFO without
6358 virtuals fold the call into a regular indirect one.
6359
6360 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
6361
6362 PR rtl-optimization/42775
6363 * cfgrtl.c (rest_of_pass_free_cfg): Recompute notes if delay slot
6364 scheduling is enabled.
6365
6366 2010-09-20 Jakub Jelinek <jakub@redhat.com>
6367
6368 PR rtl-optimization/45728
6369 * expr.c (expand_expr_real_1): If op0 isn't REG or MEM, try
6370 gen_lowpart_common first and if that fails, force_reg first
6371 before calling gen_lowpart.
6372
6373 PR middle-end/45678
6374 * cfgexpand.c (expand_one_stack_var_at): Use
6375 crtl->max_used_stack_slot_alignment as max_align, instead
6376 of maximum of that and PREFERRED_STACK_BOUNDARY.
6377 Don't call update_stack_alignment.
6378
6379 2010-09-20 Eric Botcazou <ebotcazou@adacore.com>
6380
6381 * langhooks.h (struct lang_hooks_for_types): Remove hash_types field.
6382 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): Delete.
6383 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Remove LANG_HOOKS_HASH_TYPES.
6384 * system.h (LANG_HOOKS_HASH_TYPES): Poison.
6385 * tree.c (type_hash_canon): Do not test lang_hooks.types.hash_types.
6386 (build_nonstandard_integer_type): Likewise.
6387 (build_range_type_1): New function, built from...
6388 (build_range_type): ...this. Call build_range_type_1.
6389 (build_nonshared_range_type): New function.
6390 (build_array_type_1): New function, built from...
6391 (build_array_type: ...this. Call build_array_type_1.
6392 (build_nonshared_array_type): New function.
6393 * tree.h (build_nonshared_range_type): Declare.
6394 (build_nonshared_array_type): Likewise.
6395
6396 2010-09-20 Anatoly Sokolov <aesok@post.ru>
6397
6398 * config/arm/arm.h (CLASS_LIKELY_SPILLED_P): Remove.
6399 * config/arm/arm.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
6400 (arm_class_likely_spilled_p): New function.
6401
6402 2010-09-20 Uros Bizjak <ubizjak@gmail.com>
6403
6404 * config/i386/i386.c (ix86_expand_ashl_const): Rewrite using
6405 indirect functions.
6406 (ix86_split_ashl): Ditto.
6407 (ix86_split_ashr): Ditto.
6408 (ix86_split_lshr): Ditto.
6409 (ix86_adjust_counter): Ditto.
6410
6411 2010-09-20 Nicola Pero <nicola.pero@meta-innovation.com>
6412
6413 * c-family/c-common.h (constant_string_class): Documented with
6414 comment identical to the one already in c-common.c.
6415
6416 2010-09-20 Jakub Jelinek <jakub@redhat.com>
6417
6418 * dwarf2out.c (any_cfis_emitted): New static variable.
6419 (add_fde_cfi): Set it.
6420 (dwarf2out_frame_debug): Clear it before processing,
6421 if it is set afterwards, flush any queued reg saves.
6422
6423 PR debug/45124
6424 * dwarf2out.c (add_accessibility_attribute): Assume
6425 DW_ACCESS_private as the default for dwarf_version > 2
6426 and DW_TAG_class_type parent.
6427 (gen_inheritance_die): Assume DW_ACCESS_public as the default
6428 for dwarf_version > 2 and parent other than DW_TAG_class_type.
6429
6430 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
6431
6432 PR target/45726
6433 * arm.md (arm_movt): Only enable on machines with MOVT.
6434
6435 2010-09-20 Jie Zhang <jie@codesourcery.com>
6436
6437 * config/arm/arm.c (arm_address_offset_is_imm): New.
6438 (arm_early_store_addr_dep): New.
6439 (arm_early_load_addr_dep): New.
6440 * config/arm/arm-protos.h (arm_early_store_addr_dep): Declare.
6441 (arm_early_load_addr_dep): Declare.
6442 (arm_address_offset_is_imm): Declare.
6443 * config/arm/cortex-m4.md: New file.
6444 * config/arm/cortex-m4-fpu.md: New file.
6445 * config/arm/arm.md: Include cortex-m4.md and cortex-m4-fpu.md.
6446 (attr generic_sched): Exclude cortexm4.
6447 (attr generic_vfp): Exclude cortexm4.
6448
6449 2010-09-20 Richard Guenther <rguenther@suse.de>
6450
6451 PR middle-end/45704
6452 * gimplify.c (gimplify_modify_expr_rhs): Preserve volatileness.
6453
6454 2010-09-20 Jan Hubicka <jh@suse.cz>
6455
6456 PR tree-optimize/45605
6457 * cgraph.h (const_value_known_p): Declare.
6458 (varpool_decide_const_value_known): Remove.
6459 * tree-ssa-ccp.c (get_base_constructor): Use it.
6460 * lto-cgraph.c (compute_ltrans_boundary): Likewise.
6461 * expr.c (string_constant): Likewise.
6462 * tree-ssa-loop-ivcanon.c (constant_after_peeling): Likewise.
6463 * ipa.c (ipa_discover_readonly_nonaddressable_var,
6464 function_and_variable_visibility): Likewise.
6465 * gimplify.c (gimplify_call_expr): Likewise.
6466 * gimple-fold.c (get_symbol_constant_value): Likewise.
6467 * varpool.c (varpool_decide_const_value_known): Replace by...
6468 (const_value_known_p): ... this one; handle other kinds of DECLs
6469 too and work for automatic vars.
6470 (varpool_finalize_decl): Use const_value_known_p.
6471
6472 2010-09-20 Rafael Carre <rafael.carre@gmail.com>
6473
6474 PR target/45726
6475 * arm.md (arm_movtas_ze): Only enable on machine with MOVT.
6476
6477 2010-09-20 Richard Guenther <rguenther@suse.de>
6478
6479 PR tree-optimization/45705
6480 * tree-ssa-dom.c (optimize_stmt): Perform redundant store elimination.
6481
6482 2010-09-20 Jakub Jelinek <jakub@redhat.com>
6483
6484 PR rtl-optimization/45695
6485 * combine.c (try_combine): When splitting a two set pattern,
6486 make sure the pattern which will be put into i2 doesn't use REGs
6487 or MEMs set by insns in between i2 and i3.
6488
6489 2010-09-19 Jan Hubicka <jh@suse.cz>
6490
6491 PR lto/44246
6492 * lto-cgraph.c (input_cgraph_1, input_varpool_1): Avoid
6493 processing same node twice.
6494
6495 2010-09-19 Anatoly Sokolov <aesok@post.ru>
6496
6497 * config/bfin/bfin.h (CLASS_LIKELY_SPILLED_P): Remove.
6498 * config/bfin/bfin.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
6499 (bfin_class_likely_spilled_p): New function
6500
6501 2010-09-19 Ira Rosen <irar@il.ibm.com>
6502
6503 PR tree-optimization/45714
6504 * tree-vect-stmts.c (vect_transform_stmt): Use a dummy statement
6505 created in vectorizable_call instead of the original statement in
6506 def stmt updates.
6507
6508 2010-09-19 Uros Bizjak <ubizjak@gmail.com>
6509
6510 * config/i386/i386-protos.h (split_double_mode): New prototype.
6511 (split_di, split_ti): Remove prototypes.
6512 * config/i386/i386.c (split_double_mode): New function.
6513 (split_di, split_ti): Remove.
6514 (ix86_expand_branch): Use split_double_mode.
6515 (ix86_split_to_parts): Ditto.
6516 (ix86_split_ashl): Ditto.
6517 (ix86_split_ashr): Ditto.
6518 (ix86_split_lshr): Ditto.
6519 (ix86_force_to_memory): Ditto.
6520 * config/i386/i386.md: Use split_double_mode in double-mode splitters.
6521
6522 2010-09-18 Jan Hubicka <jh@suse.cz>
6523
6524 PR tree-optimization/45453
6525 * cgraphunit.c (cgraph_finalize_function): Consider comdat & external
6526 virtual functions are reachable.
6527 * ipa-inline.c (cgraph_clone_inlined_nodes): Likewise.
6528 * ipa.c (cgraph_remove_unreachable_nodes): Likewise.
6529 * ipa-prop.c (ipa_modify_formal_parameters): Clear DECL_VIRTUAL_P
6530 when modifying function.
6531
6532 2010-09-18 Jan Hubicka <jh@suse.cz>
6533
6534 PR tree-optimization/45605
6535 * cgraphunit.c (cgraph_analyze_functions): Allocate bitmap obstack.
6536 * gimple-fold.c (static_object_in_other_unit_p): New function.
6537 (canonicalize_constructor_val): Use it.
6538 (get_symbol_constant_value): Be reaqdy for canonicalize_constructor_val
6539 returning NULL.
6540 (gimple_fold_obj_type_ref_known_binfo): Use
6541 static_object_in_other_unit_p.
6542
6543 2010-09-18 Richard Guenther <rguenther@suse.de>
6544
6545 PR tree-optimization/45709
6546 * tree-inline.c (copy_phis_for_bb): Delay commit of edge
6547 insertions until after all PHI nodes of the block are processed.
6548
6549 2010-09-18 Tijl Coosemans <tijl@coosemans.org>
6550
6551 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Add.
6552
6553 2010-09-18 Kai Tietz <kai.tietz@onevision.com>
6554
6555 * config.gcc (*-w64-mingw*): Correct typo about t-dfprules.
6556
6557 2010-09-18 Richard Guenther <rguenther@suse.de>
6558
6559 PR tree-optimization/45709
6560 * tree-inline.c (copy_phis_for_bb): Fixup new_edge when we splitted it.
6561
6562 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
6563
6564 * graphite-dependences.c (dot_deps): Add DEBUG_FUNCTION.
6565 (dot_deps_stmt): Same.
6566 * graphite-poly.c (dot_lst): Same.
6567 * graphite-scop-detection.c (dot_all_scops): Same.
6568 (dot_scop): Same.
6569
6570 2010-09-17 Sebastian Pop <sebastian.pop@amd.com>
6571
6572 Revert:
6573 2009-12-16 Ben Elliston <bje@au.ibm.com>
6574
6575 * tree-data-ref.c (dot_rdg_1): Added back.
6576 (dot_rdg): Same. Added "#if 0" around system call.
6577
6578 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
6579 Richard Henderson <rth@redhat.com>
6580
6581 * config/i386/i386.c (initial_ix86_tune_features): Add
6582 X86_TUNE_PAD_SHORT_FUNCTION.
6583 (ix86_code_end): Pad with 8 NOPs for TARGET_PAD_SHORT_FUNCTION.
6584 (ix86_count_insn): New.
6585 (ix86_pad_short_function): Likewise.
6586 (ix86_reorg): Support TARGET_PAD_SHORT_FUNCTION.
6587
6588 * config/i386/i386.h (ix86_tune_indices): Add
6589 X86_TUNE_PAD_SHORT_FUNCTION.
6590 (TARGET_PAD_SHORT_FUNCTION): New.
6591
6592 * config/i386/i386.md (UNSPEC_NOPS): New.
6593 (nops): Likewise.
6594
6595 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
6596
6597 PR middle-end/45234
6598 * calls.c (expand_call): Make sure that all variable sized
6599 adjustments are multiple of preferred stack boundary after
6600 stack alignment.
6601
6602 2010-09-17 DJ Delorie <dj@redhat.com>
6603
6604 * config/rx/rx.c (rx_print_operand): If __builtin_rx_setpsw() is
6605 passed an invalid value, print an error instead of ICEing.
6606 (valid_psw_flag): New.
6607 (rx_expand_builtin): Call it for setpsw/clrpsw.
6608 (rx_expand_builtin_mvtipl): Pass an integer to IN_RANGE, not an RTX.
6609
6610 * config/rx/rx.md (bitclr): Don't mark the output as early-clobber.
6611 (bitclr_in_memory): Likewise.
6612 (clrspw, setpsw, mvfc, mvtc, mvtipl): Make volatile.
6613
6614 2010-09-17 H.J. Lu <hongjiu.lu@intel.com>
6615
6616 PR middle-end/45678
6617 * cfgexpand.c (update_stack_alignment): New.
6618 (get_decl_align_unit): Use it.
6619 (expand_one_stack_var_at): Call update_stack_alignment.
6620
6621 2010-09-17 Richard Guenther <rguenther@suse.de>
6622
6623 * lto-streamer-in.c (lto_input_ts_translation_unit_decl_tree_pointers):
6624 Properly copy the read string.
6625
6626 2010-09-17 Joseph Myers <joseph@codesourcery.com>
6627
6628 * doc/options.texi (Variable): Document.
6629 * optc-gen.awk, opth-gen.awk: Handle Variable records. Don't
6630 generate target_flags declarations explicitly. Don't define
6631 VarExists variables for the driver.
6632 * common.opt (target_flags): New Variable record.
6633 (flag_dump_unnumbered, flag_dump_unnumbered_links,
6634 flag_var_tracking, flag_var_tracking_assignments,
6635 flag_var_tracking_assignments_toggle): Don't mark variables with
6636 VarExists.
6637 * config/i386/i386.c (ix86_isa_flags): Don't define here.
6638 * config/i386/i386.opt (ix86_isa_flags): Define here.
6639 * config/mcore/mcore.c (mcore_stack_increment): Don't define here.
6640 * config/mcore/mcore.opt (mcore_stack_increment): Don't mark with
6641 VarExists.
6642 * flags.h (flag_dump_unnumbered, flag_var_tracking): Remove.
6643 * print-rtl.c (flag_dump_unnumbered, flag_dump_unnumbered_links):
6644 Only define for generator programs.
6645 * rtlanal.c (target_flags): Remove.
6646 * toplev.c (flag_var_tracking, flag_var_tracking_assignments,
6647 flag_var_tracking_assignments_toggle): Remove.
6648
6649 2010-09-17 Michael Matz <matz@suse.de>
6650
6651 PR tree-optimization/43432
6652 * tree-vect-data-refs.c (vect_analyze_data_ref_access):
6653 Accept backwards consecutive accesses.
6654 (vect_create_data_ref_ptr): If step is negative generate
6655 decreasing IVs.
6656 * tree-vect-stmts.c (vectorizable_store): Reject negative steps.
6657 (perm_mask_for_reverse, reverse_vec_elements): New functions.
6658 (vectorizable_load): Handle loads with negative steps when easily
6659 possible.
6660
6661 2010-09-03 Jan Hubicka <jh@suse.cz>
6662
6663 * lto-cgraph.c (compute_ltrans_boundary): Use const_value_known.
6664
6665 2010-09-03 Naveen H.S <naveen.S@kpitcummins.com>
6666
6667 * config/v850/v850.c (v850_function_value_regno_p): Make static.
6668 Adjust comments. Declare.
6669 (TARGET_FUNCTION_VALUE_REGNO_P): Define.
6670 * config/v850/v850.h (FUNCTION_VALUE_REGNO_P): Delete.
6671
6672 2010-09-17 Richard Guenther <rguenther@suse.de>
6673
6674 * common.opt (combine): Remove.
6675 * gcc.c (default_compilers): Remove specs testing combine.
6676 The C compilers no longer can combine.
6677 (option_map): Remove -combine.
6678 (display_help): Remove -combine.
6679 (driver_handle_option): Remove OPT_combine handling.
6680 (compile_input_file_p): Remove.
6681 (do_spec): Remove code concerning combine.
6682 (main): Likewise.
6683 * doc/invoke.texi: Remove traces of -combine.
6684 * lto-wrapper.c (run_gcc): Do not pass -combine to the compiler driver.
6685
6686 2010-09-17 Richard Guenther <rguenther@suse.de>
6687
6688 PR middle-end/45678
6689 * builtins.c (fold_builtin_memory_op): Always properly adjust
6690 alignment of memory accesses.
6691
6692 2010-09-16 Jan Hubicka <jh@suse.cz>
6693
6694 * lto-cgraph.c (input_overwrite_node): Do not set DECL_EXTERNAL when
6695 processing clone.
6696
6697 2010-09-16 H.J. Lu <hongjiu.lu@intel.com>
6698
6699 * config/i386/i386-protos.h (ix86_split_idivmod): New prototype.
6700
6701 * config/i386/i386.c (predict_jump): Add prototype.
6702 (flag_opts): Add -m8bit-idiv.
6703 (ix86_split_idivmod): New.
6704
6705 * config/i386/i386.md (UNSPEC_DIV_ALREADY_SPLIT): New.
6706 Add 2 splitters for SI/DI mode divide.
6707 (divmod<mode>4_1): New pattern.
6708 (udivmod<mode>4_1): Likewise.
6709 (testdi_ccno_1): Likewise.
6710
6711 * config/i386/i386.opt (m8bit-idiv): New.
6712
6713 * doc/invoke.texi: Document -m8bit-idiv.
6714
6715 2010-09-16 Reza Yazdani <reza.yazdani@amd.com>
6716
6717 PR bootstrap/45680
6718 * config/i386/i386.c (min_insn_size): Moved out of the
6719 ASM_OUTPUT_MAX_SKIP_PAD ifdef.
6720
6721 2010-09-16 Jan Hubicka <jh@suse.cz>
6722
6723 * lto-cgraph.c (lto_output_node): Fix handling of clones.
6724 * ipa.c (cgraph_remove_unreachabloe_nodes): Fix handling of
6725 unreachable clones with reachable clones.
6726 * tree-inline.c (copy_bb): Fix sanity checking when producing
6727 unreachable clone.
6728
6729 2010-09-16 Anatoly Sokolov <aesok@post.ru>
6730
6731 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Remove.
6732 (TARGET_MEMORY_MOVE_COST): Define.
6733 (m32r_function_arg): Annotate argument 'type' with ATTRIBUTE_UNUSED.
6734
6735 2010-09-16 Alexander Monakov <amonakov@ispras.ru>
6736
6737 * sel-sched.c (move_cond_jump): Use tidy_control_flow instead of
6738 maybe_tidy_empty_bb.
6739
6740 Revert:
6741 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
6742 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
6743
6744 2010-09-16 Joseph Myers <joseph@codesourcery.com>
6745
6746 * target.def (target_option.optimization): New hook.
6747 * doc/tm.texi.in (OPTIMIZATION_OPTIONS): Change to
6748 TARGET_OPTION_OPTIMIZATION hook.
6749 * doc/tm.texi: Regenerate.
6750 * hooks.c (hook_void_int_int): New.
6751 * hooks.h (hook_void_int_int): Declare.
6752 * opts.c: Don't include tm_p.h.
6753 (decode_options): Use targetm.target_option.optimization instead
6754 of OPTIMIZATION_OPTIONS.
6755 * system.h (OPTIMIZATION_OPTIONS): Poison.
6756 * config/arm/arm-protos.h (arm_optimization_options): Remove.
6757 * config/arm/arm.c (TARGET_OPTION_OPTIMIZATION): Define.
6758 (arm_optimization_options): Rename to arm_option_optimization.
6759 Make static.
6760 * config/arm/arm.h (OPTIMIZATION_OPTIONS): Remove.
6761 * config/cris/cris.c (TARGET_OPTION_OPTIMIZATION): Define.
6762 (cris_option_optimization): New.
6763 * config/cris/cris.h (OPTIMIZATION_OPTIONS): Remove.
6764 * config/crx/crx.c (TARGET_OPTION_OPTIMIZATION): Define.
6765 (crx_option_optimization): New.
6766 * config/crx/crx.h (OPTIMIZATION_OPTIONS): Remove.
6767 * config/frv/frv-protos.h (frv_optimization_options): Remove.
6768 * config/frv/frv.c (TARGET_OPTION_OPTIMIZATION): Define.
6769 (frv_optimization_options): Rename to frv_option_optimization.
6770 Make static.
6771 * config/frv/frv.h (OPTIMIZATION_OPTIONS): Remove.
6772 * config/h8300/h8300.c (h8300_option_optimization): New.
6773 (TARGET_OPTION_OPTIMIZATION): Define.
6774 * config/h8300/h8300.h (OPTIMIZATION_OPTIONS): Remove.
6775 * config/i386/i386-protos.h (optimization_options): Remove.
6776 * config/i386/i386.c (optimization_options): Rename to
6777 ix86_option_optimization. Make static.
6778 (TARGET_OPTION_OPTIMIZATION): Define.
6779 * config/i386/i386.h (OPTIMIZATION_OPTIONS): Remove.
6780 * config/ia64/ia64-protos.h (ia64_optimization_options): Remove.
6781 * config/ia64/ia64.c (TARGET_OPTION_OPTIMIZATION): Define.
6782 (ia64_optimization_options): Rename to ia64_option_optimization.
6783 Make static. Call SUBTARGET_OPTIMIZATION_OPTIONS.
6784 * config/ia64/ia64.h (OPTIMIZATION_OPTIONS): Remove. Remove
6785 commented-out definition.
6786 * config/ia64/vms.h (SUBTARGET_OPTIMIZATION_OPTIONS): Define
6787 instead of OPTIMIZATION_OPTIONS.
6788 * config/m32r/m32r.c (TARGET_OPTION_OPTIMIZATION): Define.
6789 (m32r_option_optimization): New.
6790 * config/m32r/m32r.h (OPTIMIZATION_OPTIONS): Remove.
6791 * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
6792 Remove.
6793 * config/mcore/mcore.c (TARGET_OPTION_OPTIMIZATION): Define.
6794 (mcore_option_optimization): New.
6795 * config/mcore/mcore.h (OPTIMIZATION_OPTIONS): Remove.
6796 * config/mep/mep-protos.h (mep_optimization_options): Remove.
6797 * config/mep/mep.c (TARGET_OPTION_OPTIMIZATION): Define.
6798 (mep_optimization_options): Rename to mep_option_optimization.
6799 Make static. Take unused level and size parameters.
6800 * config/mep/mep.h (OPTIMIZATION_OPTIONS): Remove.
6801 * config/mmix/mmix.c (TARGET_OPTION_OPTIMIZATION): Define.
6802 (mmix_option_optimization): New.
6803 * config/mmix/mmix.h (OPTIMIZATION_OPTIONS): Remove.
6804 * config/pdp11/pdp11.c (TARGET_OPTION_OPTIMIZATION): Define.
6805 (pdp11_option_optimization): New.
6806 * config/pdp11/pdp11.h (OPTIMIZATION_OPTIONS): Remove.
6807 * config/rs6000/rs6000-protos.h (optimization_options): Remove.
6808 * config/rs6000/rs6000.c (TARGET_OPTION_OPTIMIZATION): Define.
6809 (optimization_options): Rename to rs6000_option_optimization.
6810 Make static.
6811 * config/rs6000/rs6000.h (OPTIMIZATION_OPTIONS): Remove.
6812 * config/rx/rx-protos.h (rx_set_optimization_options): Remove.
6813 * config/rx/rx.c (rx_set_optimization_options): Rename to
6814 rx_option_optimization. Make static. Take unused level and size
6815 parameters.
6816 (TARGET_OPTION_OPTIMIZATION): Define.
6817 * config/rx/rx.h (OPTIMIZATION_OPTIONS): Remove.
6818 * config/s390/s390-protos.h (optimization_options): Remove.
6819 * config/s390/s390.c (optimization_options): Rename to
6820 s390_option_optimization. Make static. Don't mark size parameter
6821 unused.
6822 (TARGET_OPTION_OPTIMIZATION): Define.
6823 * config/s390/s390.h (OPTIMIZATION_OPTIONS): Remove.
6824 * config/sh/sh-protos.h (sh_optimization_options): Remove.
6825 * config/sh/sh.c (TARGET_OPTION_OPTIMIZATION): Define.
6826 (sh_optimization_options): Rename to sh_option_optimization. Make
6827 static. Don't mark parameters unused.
6828 * config/sh/sh.h (OPTIMIZATION_OPTIONS): Remove.
6829 * config/spu/spu-protos.h (spu_optimization_options): Remove.
6830 * config/spu/spu.c (TARGET_OPTION_OPTIMIZATION): Define.
6831 (spu_optimization_options): Rename to spu_option_optimization.
6832 Make static.
6833 * config/spu/spu.h (OPTIMIZATION_OPTIONS): Remove.
6834 * config/v850/v850.c (TARGET_OPTION_OPTIMIZATION): Define.
6835 (v850_option_optimization): New.
6836 * config/v850/v850.h (OPTIMIZATION_OPTIONS): Remove.
6837 * config/xtensa/xtensa.c (TARGET_OPTION_OPTIMIZATION): Define.
6838 (xtensa_option_optimization): New.
6839 * config/xtensa/xtensa.h (OPTIMIZATION_OPTIONS): Remove.
6840
6841 2010-09-16 Joseph Myers <joseph@codesourcery.com>
6842
6843 * doc/tm.texi.in (OVERRIDE_OPTIONS): Remove documentation.
6844 (C_COMMON_OVERRIDE_OPTIONS): Don't refer to OVERRIDE_OPTIONS.
6845 * doc/tm.texi: Regenerate.
6846 * system.h (OVERRIDE_OPTIONS): Poison.
6847 * target.def (override): Default to hook_void_void.
6848 * targhooks.c (default_target_option_override): Remove.
6849 * genmodes.c, machmode.def: Update comments mentioning
6850 OVERRIDE_OPTIONS.
6851 * config/alpha/alpha-modes.def: Update comment mentioning
6852 alpha_override_options.
6853 * config/alpha/alpha-protos.h (override_options): Remove.
6854 * config/alpha/alpha.c (override_options): Rename to
6855 alpha_option_override. Call SUBTARGET_OVERRIDE_OPTIONS. Make static.
6856 (TARGET_OPTION_OVERRIDE): Define.
6857 * config/alpha/alpha.h (OVERRIDE_OPTIONS): Remove.
6858 * config/alpha/vms.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead
6859 of OVERRIDE_OPTIONS.
6860 * config/arc/arc-protos.h (arc_init): Remove.
6861 * config/arc/arc.c (TARGET_OPTION_OVERRIDE): Define.
6862 (arc_init): Rename to arc_option_override. Make static.
6863 * config/arc/arc.h (ARC_EXTENSION_CPU): Correct comment.
6864 (OVERRIDE_OPTIONS): Remove.
6865 * config/arm/arm-protos.h (arm_override_options): Remove.
6866 * config/arm/arm.c (TARGET_OPTION_OVERRIDE): Define.
6867 (arm_override_options): Rename to arm_option_override. Make
6868 static. Call SUBTARGET_OVERRIDE_OPTIONS.
6869 * config/arm/arm.h (OVERRIDE_OPTIONS): Remove.
6870 * config/arm/arm.md: Update comment referring to arm_override_options.
6871 * config/arm/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
6872 instead of OVERRIDE_OPTIONS.
6873 * config/avr/avr-protos.h (avr_override_options): Remove.
6874 * config/avr/avr.c (TARGET_OPTION_OVERRIDE): Define.
6875 (avr_override_options): Rename to avr_option_override. Make static.
6876 * config/avr/avr.h (OVERRIDE_OPTIONS): Remove.
6877 * config/bfin/bfin-protos.h (override_options): Remove (twice).
6878 * config/bfin/bfin.c (override_options): Rename to
6879 bfin_option_override. Make static.
6880 (TARGET_OPTION_OVERRIDE): Define.
6881 * config/bfin/bfin.h (OVERRIDE_OPTIONS): Remove.
6882 * config/cris/cris-protos.h (cris_override_options): Remove.
6883 * config/cris/cris.c (TARGET_OPTION_OVERRIDE): Define.
6884 (cris_override_options): Rename to cris_option_override. Make static.
6885 * config/cris/cris.h (OVERRIDE_OPTIONS): Remove.
6886 * config/frv/frv-protos.h (frv_override_options): Remove.
6887 * config/frv/frv.c (TARGET_OPTION_OVERRIDE): Define.
6888 (frv_override_options): Rename to frv_option_override. Make static.
6889 * config/frv/frv.h (OVERRIDE_OPTIONS): Remove.
6890 * config/h8300/h8300-protos.h (h8300_init_once): Remove.
6891 * config/h8300/h8300.c (h8300_init_once): Rename to
6892 h8300_option_override. Make static.
6893 (TARGET_OPTION_OVERRIDE): Define.
6894 * config/h8300/h8300.h (OVERRIDE_OPTIONS): Remove.
6895 * config/i386/i386-protos.h (override_options): Remove.
6896 * config/i386/i386.c (override_options): Rename to
6897 ix86_option_override_internal. Make static. Comments referring
6898 to this function and callers changed.
6899 (ix86_option_override): New.
6900 (TARGET_OPTION_OVERRIDE): Define.
6901 * config/i386/i386.h (OVERRIDE_OPTION): Remove.
6902 * config/i386/linux64.h (DEFAULT_PCC_STRUCT_RETURN): Update comment.
6903 * config/ia64/ia64.c (ia64_file_start): Update comment referring
6904 to ia64_override_options.
6905 * config/iq2000/iq2000-protos.h (override_options): Remove.
6906 * config/iq2000/iq2000.c (TARGET_OPTION_OVERRIDE): Define.
6907 (override_options): Rename to iq2000_option_override. Make static.
6908 * config/iq2000/iq2000.h (OVERRIDE_OPTIONS): Remove.
6909 * config/lm32/lm32-protos.h (lm32_override_options): Remove.
6910 * config/lm32/lm32.c (TARGET_OPTION_OVERRIDE): Define.
6911 (lm32_override_options): Rename to lm32_option_override. Make static.
6912 * config/lm32/lm32.h (OVERRIDE_OPTIONS): Remove.
6913 * config/m32r/m32r.c (TARGET_OPTION_OVERRIDE): Define.
6914 (m32r_option_override): New.
6915 (m32r_init): Update comment.
6916 * config/m32r/m32r.h (OVERRIDE_OPTIONS): Remove.
6917 * config/m68hc11/m68hc11-protos.h (m68hc11_override_options): Remove.
6918 * config/m68hc11/m68hc11.c (TARGET_OPTION_OVERRIDE): Define.
6919 (m68hc11_override_options): Rename to m68hc11_option_override.
6920 Make static. Return void.
6921 * config/m68hc11/m68hc11.h (OVERRIDE_OPTIONS): Remove.
6922 * config/m68k/m68k-protos.h (override_options): Remove.
6923 * config/m68k/m68k.c (TARGET_OPTION_OVERRIDE): Define.
6924 (override_options): Rename to m68k_option_override. Make static.
6925 * config/m68k/m68k.h (OVERRIDE_OPTIONS): Remove.
6926 * config/mcore/mcore-protos.h (mcore_override_options): Remove.
6927 * config/mcore/mcore.c (TARGET_OPTION_OVERRIDE): Define.
6928 (mcore_override_options): Rename to mcore_option_override. Make
6929 static.
6930 * config/mcore/mcore.h (OVERRIDE_OPTIONS): Remove.
6931 * config/mep/mep-protos.h (mep_override_options): Remove.
6932 * config/mep/mep.c (TARGET_OPTION_OVERRIDE): Define.
6933 (mep_override_options): Rename to mep_option_override. Make static.
6934 * config/mep/mep.h (OVERRIDE_OPTIONS): Remove.
6935 * config/mmix/mmix-protos.h (mmix_override_options): Remove.
6936 * config/mmix/mmix.c (TARGET_OPTION_OVERRIDE): Define.
6937 (mmix_override_options): Rename to mmix_option_override. Make static.
6938 * config/mmix/mmix.h (OVERRIDE_OPTIONS): Remove.
6939 * config/mn10300/mn10300-protos.h (mn10300_override_options): Remove.
6940 * config/mn10300/mn10300.c (TARGET_OPTION_OVERRIDE): Define.
6941 (mn10300_override_options): Rename to mn10300_option_override.
6942 Make static.
6943 * config/mn10300/mn10300.h (OVERRIDE_OPTIONS): Remove.
6944 * config/moxie/moxie-protos.h (moxie_override_options): Remove.
6945 * config/moxie/moxie.c (moxie_override_options): Rename to
6946 moxie_option_override. Make static.
6947 (TARGET_OPTION_OVERRIDE): Define.
6948 * config/moxie/moxie.h (OVERRIDE_OPTIONS): Remove.
6949 * config/picochip/picochip-protos.h (picochip_override_options):
6950 Remove. Update comment referring to picochip_override_options.
6951 * config/picochip/picochip.c (TARGET_OPTION_OVERRIDE): Define.
6952 (picochip_override_options): Rename to picochip_option_override.
6953 Make static. Update comment and definition of
6954 TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE.
6955 * config/picochip/picochip.h (OVERRIDE_OPTIONS): Remove.
6956 * config/rs6000/aix43.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
6957 * config/rs6000/aix51.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
6958 * config/rs6000/aix52.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
6959 * config/rs6000/aix53.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
6960 * config/rs6000/aix61.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
6961 * config/rs6000/linux64.h (OPTION_TARGET_CPU_DEFAULT): Define
6962 instead of OVERRIDE_OPTIONS.
6963 * config/rs6000/rs6000-modes.def: Update comment referring to
6964 rs6000_override_options.
6965 * config/rs6000/rs6000-protos.h (rs6000_override_options): Remove.
6966 * config/rs6000/rs6000.c (TARGET_OPTION_OVERRIDE): Define.
6967 (rs6000_override_options): Rename to
6968 rs6000_option_override_internal. Make static. Commented
6969 referring to rs6000_override_options and OVERRIDE_OPTIONS updated.
6970 (rs6000_option_override): New.
6971 * config/rs6000/rs6000.h (OPTION_TARGET_CPU_DEFAULT): Define
6972 instead of OVERRIDE_OPTIONS.
6973 * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Update comment.
6974 * config/s390/s390-protos.h (override_options): Remove.
6975 * config/s390/s390.c (override_options): Rename to
6976 s390_option_override. Make static.
6977 (TARGET_OPTION_OVERRIDE): Define.
6978 * config/s390/s390.h (OVERRIDE_OPTIONS): Remove.
6979 * config/score/score-protos.h (score_override_options): Remove.
6980 * config/score/score.c (TARGET_OPTION_OVERRIDE): Define.
6981 (score_override_options): Rename to score_option_override. Make
6982 static.
6983 * config/score/score.h (OVERRIDE_OPTIONS): Remove.
6984 Update comment referring to override_options.
6985 * config/score/score3.c (score3_override_options): Rename to
6986 score3_option_override.
6987 * config/score/score3.h (score3_override_options): Rename to
6988 score3_option_override.
6989 * config/score/score7.c (score7_override_options): Rename to
6990 score7_option_override.
6991 * config/score/score7.h (score7_override_options): Rename to
6992 score7_option_override.
6993 * config/sh/sh.c: Update comments referring to OVERRIDE_OPTIONS.
6994 * config/sparc/sparc.c (TARGET_OPTION_OVERRIDE): Define.
6995 (sparc_override_options): Rename to sparc_option_override. Make
6996 static. Call SUBTARGET_OVERRIDE_OPTIONS.
6997 * config/sparc/sparc.h (OVERRIDE_OPTIONS): Remove.
6998 * config/sparc/vxworks.h (SUBTARGET_OVERRIDE_OPTIONS): Define
6999 instead of OVERRIDE_OPTIONS.
7000 * config/spu/spu-protos.h (spu_override_options): Remove.
7001 * config/spu/spu.c (TARGET_OPTION_OVERRIDE): Define.
7002 (spu_override_options): Rename to spu_option_override. Make
7003 static.
7004 * config/spu/spu.h (OVERRIDE_OPTIONS): Remove.
7005 * config/vax/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define instead of
7006 OVERRIDE_OPTIONS.
7007 * config/vax/vax-protos.h (override_options): Remove.
7008 * config/vax/vax.c (TARGET_OPTION_OVERRIDE): Define.
7009 (override_options): Rename to vax_option_override. Make static.
7010 Call SUBTARGET_OVERRIDE_OPTIONS.
7011 * config/vax/vax.h (OVERRIDE_OPTIONS): Remove.
7012 * config/vxworks.c: Update comment referring to OVERRIDE_OPTIONS.
7013 * config/vxworks.h: Update comment referring to OVERRIDE_OPTIONS.
7014 * config/xtensa/xtensa-protos.h (override_options): Remove.
7015 * config/xtensa/xtensa.c (TARGET_OPTION_OVERRIDE): Define.
7016 (override_options): Rename to xtensa_option_override. Make static.
7017 * config/xtensa/xtensa.h (OVERRIDE_OPTIONS): Remove.
7018
7019 2010-09-16 Richard Guenther <rguenther@suse.de>
7020
7021 PR tree-optimization/45623
7022 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Adjust.
7023 (get_constraint_for_component_ref): If computing a constraint
7024 for the rhs handle type punning through unions.
7025 (get_constraint_for_address_of): Adjust.
7026 (get_constraint_for_1): Likewise.
7027 (get_constraint_for): Likewise.
7028 (get_constraint_for_rhs): New function.
7029 (do_structure_copy): Adjust.
7030 (make_constraint_to): Likewise.
7031 (handle_const_call): Likewise.
7032 (find_func_aliases): Likewise.
7033 (process_ipa_clobber): Likewise.
7034 (create_variable_info_for): Likewise.
7035
7036 2010-09-16 Ira Rosen <irar@il.ibm.com>
7037
7038 * tree-vectorizer.c: Fix documentation.
7039 * tree-vectorizer.h (vinfo_for_stmt): Add documentation.
7040 (set_vinfo_for_stmt, get_earlier_stmt, get_later_stmt,
7041 is_pattern_stmt_p, is_loop_header_bb_p,
7042 stmt_vinfo_set_inside_of_loop_cost,
7043 stmt_vinfo_set_outside_of_loop_cost, vect_pow2, aligned_access_p,
7044 known_alignment_for_access_p): Likewise.
7045 * tree-vect-loop.c: Fix documentation.
7046 (vect_get_cost): Start function name from new line.
7047 * tree-vect-data-refs.c: Fix documentation.
7048 * tree-vect_stmts.c: Likewise.
7049 (vect_create_vectorized_promotion_stmts): Always free vec_tmp.
7050 (vectorizable_store): Free vec_oprnds if allocated.
7051 (vectorizable_condition): Initialize several variables to avoid
7052 warnings.
7053 * tree-vect-slp.c: Fix documentation.
7054
7055 2010-09-16 Richard Guenther <rguenther@suse.de>
7056
7057 * tree.c (tree_node_structure_for_code): TRANSLATION_UNIT_DECL
7058 is TS_TRANSLATION_UNIT_DECL.
7059 (initialize_tree_contains_struct): Adjust.
7060 (all_translation_units): New global vector.
7061 (build_translation_unit_decl): New function.
7062 * tree.h (TRANSLATION_UNIT_LANGUAGE): New macro.
7063 (struct tree_translation_unit_decl): New.
7064 (all_translation_units): Declare.
7065 (union tree_node): Add translation_unit_decl member.
7066 (build_translation_unit_decl): Declare.
7067 * treestruct.def (TS_TRANSLATION_UNIT_DECL): New.
7068 * lto-streamer-out.c (pack_ts_translation_unit_decl_value_fields):
7069 New function.
7070 (pack_value_fields): Call it.
7071 (lto_output_tree_ref): Handle references to TRANSLATION_UNIT_DECL.
7072 (lto_output_ts_translation_unit_decl_tree_pointers): New function.
7073 (lto_output_tree_pointers): Call it.
7074 * lto-streamer-in.c (lto_input_tree_ref): Handle references
7075 to TRANSLATION_UNIT_DECL.
7076 (unpack_ts_translation_unit_decl_value_fields): New function.
7077 (unpack_value_fields): Call it.
7078 (lto_input_ts_translation_unit_decl_tree_pointers): New function.
7079 (lto_input_tree_pointers): Call it.
7080 * lto-streamer.c (check_handled_ts_structures): Adjust.
7081 * lto-streamer.h (enum LTO_tags): Add LTO_translation_unit_decl_ref.
7082 * c-decl.c (all_translation_units): Remove.
7083 (pop_scope): Use build_translation_unit_decl.
7084 (collect_all_refs): Adjust.
7085 (for_each_global_decl): Likewise.
7086 (c_write_global_declarations): Likewise.
7087
7088 2010-09-16 Jakub Jelinek <jakub@redhat.com>
7089
7090 PR bootstrap/45686
7091 * fold-const.c (fold_checksum_tree): Change slot from const void **
7092 to void **, use CONST_CAST_TREE to store into *slot.
7093
7094 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
7095
7096 * config/i386/i386.md: Remove unneeded empty conditions and
7097 preparation statements from expanders.
7098 * config/i386/mmx.md: Ditto.
7099 * config/i386/sse.md: Ditto.
7100
7101 2010-09-16 Uros Bizjak <ubizjak@gmail.com>
7102
7103 * config/i386/i386.h (PUSH_ROUNDING): Redefine using UNITS_PER_WORD.
7104
7105 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
7106
7107 PR rtl-optimization/45593
7108 * reorg.c (relax_delay_slots): Use emit_copy_of_insn_after to re-emit
7109 insns that were in delay slots as stand-alone insns.
7110
7111 2010-09-15 Ian Lance Taylor <iant@google.com>
7112
7113 * incpath.c (remove_duplicates): If name is not a directory, issue
7114 a warning rather than an error.
7115
7116 2010-09-15 Martin Jambor <mjambor@suse.cz>
7117
7118 PR middle-end/45644
7119 * tree-sra.c (create_access): Check for bit-fields directly.
7120
7121 2010-09-15 Jakub Jelinek <jakub@redhat.com>
7122
7123 PR tree-optimization/45633
7124 * tree-cfg.c (verify_gimple_assign_binary): Allow
7125 MINUS_EXPR with lhs and rhs1 pointer vector and
7126 rhs2 sizetype vector.
7127 * expr.c (expand_expr_real_2) <case PLUS_EXPR>: For pointer
7128 or vector pointer use TER to optimize pointer subtraction.
7129
7130 2010-09-15 Jie Zhang <jie@codesourcery.com>
7131
7132 * config/arm/vfp.md (cmpsf_trap_vfp): Change type from
7133 fcmpd to fcmps.
7134
7135 2010-09-15 Ian Lance Taylor <iant@google.com>
7136
7137 * config/i386/i386.md (truncxf<mode>2): Fix indentation.
7138
7139 2010-09-15 Ian Lance Taylor <iant@google.com>
7140
7141 * function.c (get_arg_pointer_save_area): Set
7142 arg_pointer_save_area_init to true.
7143
7144 2010-09-15 Martin Jambor <mjambor@suse.cz>
7145
7146 * tree-sra.c (generate_subtree_copies): Updated comment.
7147 (handle_unscalarized_data_in_subtree): Removed parameter lhs which is
7148 obtained from the statement iterator instead.
7149 (load_assign_lhs_subreplacements): Removed parameters lhs and
7150 right_offset, which is obtained from top_racc instead. Parameter lacc
7151 is now expected to be the root of the processed tree rather than root's
7152 first child. Updated all callers.
7153
7154 2010-09-15 Joseph Myers <joseph@codesourcery.com>
7155
7156 * config/pdp11/pdp11.c (register_move_cost): Rename to
7157 pdp11_register_move_cost.
7158 * config/pdp11/pdp11-protos.h (register_move_cost): Rename to
7159 pdp11_register_move_cost.
7160 * config/pdp11/pdp11.h (REGISTER_MOVE_COST): Call
7161 pdp11_register_move_cost instead of register_move_cost.
7162
7163 2010-09-15 Tejas Belagod <tejas.belagod@arm.com>
7164
7165 * config/arm/neon.md (vec_pack_trunc_<mode>): Instruction
7166 pattern for vmovn. Expansion in case of non
7167 -mvectorize-with-neon-quad.
7168 (neon_vec_pack_trunc_<mode>): Instruction pattern for vmovn for
7169 non- -mvectorize-with-neon-quad case.
7170 (move_lo_quad_<mode>): New expansion to vmov into low part.
7171 (move_hi_quad_<mode>): New expansion to vmov into high part.
7172 (move_lo_quad_v4si): Refactor to move_lo_quad_<mode> expansion.
7173 (move_lo_quad_v4sf): Likewise.
7174 (move_lo_quad_v8hi): Likewise.
7175 (neon_move_lo_quad_<mode>): Instruction pattern for vmov into
7176 low part.
7177 (neon_move_hi_quad_<mode>): Instruction pattern for vmov into
7178 high part.
7179 * config/arm/iterators.md (ANY128): New mode iterator.
7180 (V_narrow_pack): New mode attribute.
7181 (V_HALF): Add attribute.
7182 (V_DOUBLE): Add attribute.
7183 (V_mode_nunits): Add attribute.
7184
7185 2010-09-15 Eric Botcazou <ebotcazou@adacore.com>
7186
7187 * config/alpha/alpha.c (alpha_expand_prologue): If stack checking
7188 is enabled, probe up to frame_size + STACK_CHECK_PROTECT bytes.
7189
7190 2010-09-15 Olivier Hainque <hainque@adacore.com>
7191 Jose Ruiz <ruiz@adacore.com>
7192
7193 * config/alpha/osf5.h (MD_UNWIND_SUPPORT): Define.
7194 * config/alpha/osf5-unwind.h: New file.
7195
7196 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
7197
7198 PR bootstrap/45672
7199 * config/mips/mips.c (mips_units_per_simd_word): Correct return type.
7200 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
7201 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
7202
7203 2010-09-15 Laurynas Biveinis <laurynas.biveinis@gmail.com>
7204
7205 * c-lang.h (struct lang_type): Add variable_size GTY option.
7206
7207 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
7208
7209 PR bootstrap/45672
7210 * config/rs6000/rs6000.c (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
7211
7212 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
7213
7214 * config/i386/i386.c (ix86_lea_for_add_ok): Return false if
7215 result isn't used in memory address.
7216
7217 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
7218
7219 * defaults.h (UNITS_PER_SIMD_WORD): Removed.
7220 * config/arm/arm.h (UNITS_PER_SIMD_WORD): Likewise.
7221 * config/i386/i386.h (UNITS_PER_SIMD_WORD): Likewise.
7222 * config/mips/mips.h (UNITS_PER_SIMD_WORD): Likewise.
7223 * config/rs6000/rs6000.h (UNITS_PER_SIMD_WORD): Likewise.
7224 * config/sparc/sparc.h (UNITS_PER_SIMD_WORD): Likewise.
7225
7226 * target.def: Add units_per_simd_word to vectorize.
7227
7228 * targhooks.c (default_units_per_simd_word): New.
7229 * targhooks.h (default_units_per_simd_word): Likewise.
7230 * config/arm/arm.c (arm_units_per_simd_word): Likewise.
7231 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
7232 * config/mips/mips.c (mips_units_per_simd_word): Likewise.
7233 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
7234 * config/rs6000/rs6000.c (rs6000_units_per_simd_word): Likewise.
7235 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
7236 * config/sparc/sparc.c (sparc_units_per_simd_word): Likewise.
7237 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): Likewise.
7238
7239 * tree-vect-loop.c: Replace UNITS_PER_SIMD_WORD with
7240 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD in comments.
7241
7242 * tree-vect-stmts.c: Don't include "tm_p.h".
7243 (get_vectype_for_scalar_type): Replace UNITS_PER_SIMD_WORD
7244 with targetm.vectorize.units_per_simd_word.
7245
7246 * system.h (UNITS_PER_SIMD_WORD): Poisoned.
7247
7248 * config/i386/i386-protos.h (ix86_units_per_simd_word): Removed.
7249
7250 * config/i386/i386.c (ix86_units_per_simd_word): Make it static.
7251 (TARGET_VECTORIZE_UNITS_PER_SIMD_WORD): New.
7252
7253 * doc/tm.texi.in: Remove UNITS_PER_SIMD_WORD. Add
7254 TARGET_VECTORIZE_UNITS_PER_SIMD_WORD.
7255
7256 * doc/tm.texi: Regenerated.
7257
7258 2010-09-14 H.J. Lu <hongjiu.lu@intel.com>
7259
7260 * tree-vect-stmts.c: Include "tm_p.h".
7261
7262 * config/i386/i386-protos.h (ix86_units_per_simd_word): Moved
7263 out of RTX_CODE.
7264
7265 2010-09-14 Martin Jambor <mjambor@suse.cz>
7266
7267 * tree-sra.c (build_ref_for_offset): Loc made a parameter. Set the
7268 location of generated statement. Changed all callers.
7269 (build_ref_for_model): New parameter loc which used to set location of
7270 all generated expressions. Changed all callers.
7271 (generate_subtree_copies): Likewise.
7272 (init_subtree_with_zero): Likewise.
7273 (sra_modify_expr): Set locations of all generated statements and
7274 expressions to the location the original statement.
7275 (handle_unscalarized_data_in_subtree): Likewise.
7276 (load_assign_lhs_subreplacements): Likewise.
7277 (sra_modify_constructor_assign): Likewise.
7278 (sra_modify_assign): Likewise.
7279
7280 2010-09-14 Eric Botcazou <ebotcazou@adacore.com>
7281
7282 PR target/45277
7283 PR target/45363
7284 PR target/45407
7285 * doc/install.texi (sparc*-*-*): New section.
7286 (sparc-sun-solaris2*): Mention MPC alongside GMP and MPFR.
7287
7288 2010-09-14 Jakub Jelinek <jakub@redhat.com>
7289
7290 PR middle-end/45567
7291 * builtins.c (expand_builtin_interclass_mathfn, expand_builtin_cexpi,
7292 expand_builtin_powi): Remove subtarget argument, pass NULL_RTX instead.
7293 (expand_builtin): Adjust caller.
7294 (expand_builtin_unop): Only use subtarget if it has the right mode.
7295
7296 2010-09-14 Tristan Gingold <gingold@adacore.com>
7297
7298 * configure.ac (plugins): Fix typos.
7299 * configure: Regenerate.
7300
7301 2010-09-14 Jakub Jelinek <jakub@redhat.com>
7302
7303 PR debug/45660
7304 * dwarf2out.c (gen_decl_die): Call gen_type_die for origin before
7305 gen_type_die for function/method return type.
7306
7307 2010-09-14 Ira Rosen <irar@il.ibm.com>
7308
7309 PR tree-optimization/45470
7310 * tree-vect-data-refs.c (vect_analyze_data_refs): Fail if a statement
7311 can throw an exception.
7312 * tree-vect-stmts.c (vectorizable_call): Likewise.
7313
7314 2010-09-14 DJ Delorie <dj@redhat.com>
7315
7316 PR target/44749
7317 * config/mep/mep-protos.h (mep_save_register_info,
7318 mep_reinit_regs, mep_init_regs): Declare.
7319
7320 * config/mep/mep.c: Move all target definitions to the end of the
7321 file to avoid the need for duplicate declarations.
7322 (mep_save_register_info, mep_reinit_regs, mep_init_regs): New.
7323 (mep_reorg_erepeat): Remove unused variables.
7324 (mep_expand_builtin): Likewise.
7325
7326 * config/mep/mep-pragma.c: Don't include rtl.h.
7327 (INVALID_REGNUM): New.
7328 (mep_pragma_coprocessor_which): Call mep-specific rtl-layer bridge
7329 functions.
7330 (mep_pragma_coprocessor_subclass): Rename "class" to "rclass".
7331 Avoid enum/integer math.
7332
7333 2010-09-13 Joseph Myers <joseph@codesourcery.com>
7334
7335 PR target/44749
7336 * config/mep/t-mep (GTM_H): Add insn-constants.h.
7337 * config/mep/mep.c (mep_conditional_register_usage): Take no
7338 parameters.
7339 * config/mep/mep-protos.h (mep_conditional_register_usage): Update
7340 prototype.
7341 * config/mep/mep-pragma.c (CONDITIONAL_REGISTER_USAGE): Update
7342 call to mep_conditional_register_usage.
7343
7344 2010-09-13 Eric Botcazou <ebotcazou@adacore.com>
7345
7346 PR debug/43937
7347 * varasm.c (output_constant_def_contents): Set TREE_ASM_WRITTEN on
7348 the DECL as well.
7349
7350 2010-09-13 Jakub Jelinek <jakub@redhat.com>
7351
7352 PR rtl-optimization/45617
7353 * combine.c (simplify_comparison): Optimize (X >> N) {>,>=,<,<=} C
7354 even if low N bits of X aren't known to be zero.
7355
7356 2010-09-13 H.J. Lu <hongjiu.lu@intel.com>
7357
7358 * config/i386/i386-protos.h (ix86_units_per_simd_word): New.
7359
7360 * config/i386/i386.c (initial_ix86_tune_features): Add
7361 X86_TUNE_VECTORIZE_DOUBLE.
7362 (ix86_units_per_simd_word): New.
7363
7364 * config/i386/i386.h (ix86_tune_indices): Add
7365 X86_TUNE_VECTORIZE_DOUBLE.
7366 (TARGET_VECTORIZE_DOUBLE): New.
7367 (UNITS_PER_SIMD_WORD): Defined with ix86_units_per_simd_word.
7368
7369 2010-09-13 Pat Haugen <pthaugen@us.ibm.com>
7370
7371 * tree-ssa-ter.c (temp_expr_table_d): Add call_cnt field.
7372 (new_temp_expr_table): Allocate call_cnt vector.
7373 (free_temp_expr_table): Free it.
7374 (process_replaceable): Add call_cnt parm and set in vector.
7375 (find_replaceable_in_bb): Skip replacement if def/use span a call.
7376 (debug_ter): Dump call_cnt value, remove stderr uses.
7377
7378 2010-09-13 Jan Hubicka <jh@suse.cz>
7379
7380 * tree.c (build_zero_cst): New.
7381 * tree.h (build_zero_cst): Declare.
7382 * tree-ssa-ccp.c (get_constant_value): Accept general operands.
7383 (get_base_constructor): Break out from ...
7384 (fold_const_aggregate_ref): Here; handle empty constructors.
7385
7386 2010-09-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
7387
7388 * config/arm/arm.md: (define_attr "conds"): Update comment.
7389 * config/arm/sync.md (arm_sync_compare_and_swapsi): Change
7390 conds attribute to clob.
7391 (arm_sync_compare_and_swapsi): Likewise.
7392 (arm_sync_compare_and_swap<mode>): Likewise.
7393 (arm_sync_lock_test_and_setsi): Likewise.
7394 (arm_sync_lock_test_and_set<mode>): Likewise.
7395 (arm_sync_new_<sync_optab>si): Likewise.
7396 (arm_sync_new_nandsi): Likewise.
7397 (arm_sync_new_<sync_optab><mode>): Likewise.
7398 (arm_sync_new_nand<mode>): Likewise.
7399 (arm_sync_old_<sync_optab>si): Likewise.
7400 (arm_sync_old_nandsi): Likewise.
7401 (arm_sync_old_<sync_optab><mode>): Likewise.
7402 (arm_sync_old_nand<mode>): Likewise.
7403
7404 2010-09-13 Olivier Hainque <hainque@adacore.com>
7405
7406 * fwprop.c (forward_propagate_and_simplify): Only attach a
7407 REG_EQUAL note to an insn if the destination is a register.
7408 * gcse.c (try_replace_reg): Likewise.
7409
7410 2010-09-13 Richard Guenther <rguenther@suse.de>
7411
7412 PR tree-optimization/45611
7413 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Fix typo.
7414 (copy_ref_info): Likewise.
7415
7416 2010-09-13 Alexandre Oliva <aoliva@redhat.com>
7417
7418 PR debug/45604
7419 PR debug/45419
7420 PR debug/45408
7421 * tree-pretty-print.c (dump_generic_node): Disregard top-level
7422 types of MEM_REF pointer types to the same type.
7423
7424 2010-09-13 Hans-Peter Nilsson <hp@axis.com>
7425
7426 PR rtl-optimization/41087
7427 * ifcvt.c (noce_get_condition): Don't allow conditions with
7428 side-effects.
7429
7430 2010-09-12 Anatoly Sokolov <aesok@post.ru>
7431
7432 * config/frv/frv.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7433 * config/frv/frv-protos.h (frv_register_move_cost): Remove.
7434 * config/frv/frv.c (frv_register_move_cost): Make static. Change
7435 arguments type to reg_class_t. Add mode argument.
7436 (frv_memory_move_cost): New.
7437 (TARGET_REGISTER_MOVE_COSTS, TARGET_MEMORY_MOVE_COSTS): Define.
7438
7439 2010-09-12 Bernd Schmidt <bernds@codesourcery.com>
7440
7441 * config/arm/arm.md (arm_ashldi3_1bit, arm_ashrdi3_1bit,
7442 arm_lshrdi3_1bit): Put earlyclobber on the right alternative.
7443
7444 2010-09-10 Jan Hubicka <jh@suse.cz>
7445
7446 * tree-ssa-ccp.c (fold_const_aggregate_ref): Do not check STATIC flag.
7447
7448 2010-09-10 Richard Guenther <rguenther@suse.de>
7449
7450 * tree.c (make_vector_type): Do not set TYPE_DEBUG_REPRESENTATION_TYPE.
7451 * tree.h (TYPE_DEBUG_REPRESENTATION_TYPE): Remove.
7452 * lto-streamer-out.c (lto_output_ts_type_tree_pointers): Do
7453 not stream TYPE_DEBUG_REPRESENTATION_TYPE.
7454 * lto-streamer-in.c (lto_input_ts_type_tree_pointers): Likewise.
7455
7456 2010-09-10 Richard Guenther <rguenther@suse.de>
7457
7458 * dwarf2out.c (gen_array_type_die): Output DW_TAG_subrange_type
7459 for VECTOR_TYPEs using TYPE_VECTOR_SUBPARTS.
7460 * dbxout.c (dbxout_type): Manually deal with VECTOR_TYPE
7461 using TYPE_VECTOR_SUBPARTS, not TYPE_DEBUG_REPRESENTATION_TYPE.
7462
7463 2010-09-10 H.J. Lu <hongjiu.lu@intel.com>
7464
7465 PR middle-end/45634
7466 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result
7467 of string folding is of integral type.
7468
7469 2010-09-10 Ryan Mansfield <rmansfield@qnx.com>
7470
7471 * doc/invoke.texi (-x): Fix typo.
7472
7473 2010-09-10 Richard Guenther <rguenther@suse.de>
7474
7475 PR debug/44115
7476 * tree.c (free_lang_data_in_decl): Do not clear DECL_DEBUG_EXPR.
7477 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
7478 Output DECL_DEBUG_EXPR.
7479 * lto-streamer-in.c (lto_input_ts_decl_common_tree_pointers):
7480 Input DECL_DEBUG_EXPR.
7481
7482 2010-09-10 Richard Guenther <rguenther@suse.de>
7483
7484 * tree.c (type_hash_eq): For ARRAY_TYPEs also compare TYPE_SIZE.
7485 (build_index_type): Implement in terms of build_range_type.
7486 (build_range_type): Do not allow NULL_TREE type, improve
7487 hashing to cover more cases. Set TYPE_STRUCTURAL_EQUALITY_P
7488 if we didn't hash.
7489 * c-decl.c (grokdeclarator): When modifying TYPE_SIZE manually
7490 create a distinct copy of the type.
7491
7492 2010-09-10 Kai Tietz <kai.tietz@onevision.com>
7493
7494 * configure: Regenerated.
7495 * config.gcc: Add for x86_64 and i?86 mingw t-dfprule.
7496
7497 2010-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7498
7499 * config/arm/neon-schedgen.ml (allCores): Add support for Cortex-A9.
7500 * config/arm/cortex-a9-neon.md: New and partially generated.
7501 * config/arm/cortex-a9.md (cortex_a9_dp): Adjust for Neon.
7502
7503 2010-09-10 Richard Guenther <rguenther@suse.de>
7504
7505 * tree.h (build_index_2_type): Remove.
7506 * tree.c (build_index_2_type): Remove.
7507
7508 2010-09-10 Jakub Jelinek <jakub@redhat.com>
7509
7510 PR bootstrap/45630
7511 * dwarf2out.c (get_ref_die_offset_label): Use %ld instead of
7512 HOST_WIDE_INT_PRINT_DEC to print ref->die_offset.
7513 (implicit_ptr_descriptor): Return NULL if dwarf_strict.
7514
7515 2010-09-10 Martin Jambor <mjambor@suse.cz>
7516
7517 PR tree-optimization/44972
7518 * tree-sra.c: Include toplev.h.
7519 (build_ref_for_offset): Entirely reimplemented.
7520 (build_ref_for_model): New function.
7521 (build_user_friendly_ref_for_offset): New function.
7522 (analyze_access_subtree): Removed build_ref_for_offset check.
7523 (propagate_subaccesses_across_link): Likewise.
7524 (create_artificial_child_access): Use
7525 build_user_friendly_ref_for_offset.
7526 (propagate_subaccesses_across_link): Likewise.
7527 (ref_expr_for_all_replacements_p): Removed.
7528 (generate_subtree_copies): Updated comment. Use build_ref_for_model.
7529 (sra_modify_expr): Use build_ref_for_model.
7530 (load_assign_lhs_subreplacements): Likewise.
7531 (sra_modify_assign): Removed ref_expr_for_all_replacements_p checks,
7532 checks for return values of build_ref_for_offset.
7533 * ipa-cp.c (ipcp_lattice_from_jfunc): No need to check return value of
7534 build_ref_for_offset.
7535 * ipa-prop.h: Include gimple.h
7536 * ipa-prop.c (ipa_compute_jump_functions): Update to look for MEM_REFs.
7537 (ipa_analyze_indirect_call_uses): Update comment.
7538 * Makefile.in (tree-sra.o): Add $(GIMPLE_H) to dependencies.
7539 (IPA_PROP_H): Likewise.
7540
7541 2010-09-10 Martin Jambor <mjambor@suse.cz>
7542
7543 PR tree-optimization/44972
7544 * ipa-prop.c (ipa_modify_call_arguments): Build MEM_REF instead of
7545 calling build_ref_for_offset.
7546
7547 2010-09-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7548
7549 * config/arm/bpabi.h (BE8_LINK_SPEC): Handle Cortex-a15.
7550 * config/arm/arm-cores.def (cortex-a15): New core. Treat it as a v7-a.
7551 * config/arm/arm-tune.md: Regenerate.
7552 * doc/invoke.texi (ARM Options): Document it.
7553
7554 2010-09-09 Reza Yazdani <reza.yazdani@amd.com>
7555
7556 * config/i386/i386.c: Include sched-int.h.
7557 (TARGET_SCHED_DISPATCH): Defined.
7558 (TARGET_SCHED_DISPATCH_DO): Defined.
7559 (DISPATCH_WINDOW_SIZE): Defined.
7560 (MAX_DISPATCH_WINDOWS): Defined.
7561 (MAX_INSN): Defined.
7562 (MAX_IMM): Defined.
7563 (MAX_IMM_SIZE): Defined.
7564 (MAX_IMM_32): Defined.
7565 (MAX_IMM_64): Defined.
7566 (MAX_LOAD): Defined.
7567 (MAX_STORE): Defined.
7568 (BIG): Defined.
7569 (dispatch_group): New.
7570 (num_allowable_groups): New.
7571 (group_name): New.
7572 (sched_insn_info_s): New.
7573 (dispatch_windows_s): New.
7574 (imm_info_s): New.
7575 (dispatch_window_list): New.
7576 (dispatch_window_list1): New.
7577 (get_mem_group): New.
7578 (is_cmp): New.
7579 (dispatch_violation): New.
7580 (is_branch): New.
7581 (is_prefetch): New.
7582 (init_window): New.
7583 (allocate_window): New.
7584 (init_dispatch_sched): New.
7585 (is_end_basic_block): New.
7586 (process_end_window): New.
7587 (allocate_next_window): New.
7588 (find_constant_1): New.
7589 (find_constant): New.
7590 (get_num_immediates): New.
7591 (has_immediate): New.
7592 (get_insn_path): New.
7593 (get_insn_group): New.
7594 (count_num_restricted): New.
7595 (fits_dispatch_window): New.
7596 (add_insn_window): New.
7597 (add_to_dispatch_window): New.
7598 (debug_dispatch_window_file): New.
7599 (debug_dispatch_window): New.
7600 (debug_insn_dispatch_info_file): New.
7601 (debug_ready_dispatch): New.
7602 (do_dispatch): New.
7603 (has_dispatch): New.
7604 * config/i386/i386.h (debug_ready_dispatch): Declared.
7605 (debug_dispatch_window): Declared.
7606 * config/i386/i386.opt (mdispatch-scheduler): New flag.
7607 * doc/tm.texi.in (TARGET_SCHED_DISPATCH): New.
7608 (TARGET_SCHED_DISPATCH_DO): New.
7609 * doc/tm.texi: Regererated.
7610 * haifa-sched.c (choose_ready): Call targetm.sched.dispatch and
7611 ready_remove_first_dispatch
7612 (schedule_block): Call targetm.sched.dispatch and
7613 targetm.sched.dispatch_do.
7614 (sched_init): Call targetm.sched.dispatch and
7615 targetm.sched.dispatch_do.
7616 (ready_remove_first_dispatch): New.
7617 (number_in_ready): New.
7618 (get_ready_element): New.
7619 * hooks.c (hook_bool_rtx_int_false): New.
7620 (hook_void_rtx_int): New.
7621 * hooks.h (hook_bool_rtx_int_false): Declared.
7622 (hook_void_rtx_int): Declared.
7623 * sched-int.h (IS_DISPATCH_ON): Defined.
7624 (IS_CMP): Defined.
7625 (DISPATCH_VIOLATION): Defined.
7626 (FITS_DISPATCH_WINDOW): Defined.
7627 (DISPATCH_INIT): Defined.
7628 (ADD_TO_DISPATCH_WINDOW): Defined.
7629 (get_ready_element): Declared.
7630 (number_in_ready): Declared.
7631 * target.def (dispatch): Defined.
7632 (dispatch_do): Defined.
7633
7634 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
7635
7636 PR middle-end/45312
7637 * reload1.c (merge_assigned_reloads): Remove.
7638 (reload_as_needed): Don't call it.
7639
7640 2010-09-09 Anatoly Sokolov <aesok@post.ru>
7641
7642 * config/m32r/m32r.c (m32r_mode_dependent_address_p): New functions.
7643 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
7644 * config/m32r/m32r.h: (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
7645
7646 2010-09-09 Matthias Klose <doko@ubuntu.com>
7647
7648 PR bootstrap/43847
7649 * configure.ac (--enable-plugin): Enhance for cross builds.
7650 * configure: Regenerate.
7651
7652 2010-09-09 Jan Hubicka <jh@suse.cz>
7653
7654 PR tree-optimization/45598
7655 * tree-ssa-ccp.c (fold_const_aggregate_ref): Check that result of
7656 string folding is of integral type.
7657
7658 2010-09-09 Nathan Sidwell <nathan@codesourcery.com>
7659
7660 * configure.ac (gnu_indirect_function): New test.
7661 * configure: Rebuilt.
7662 * config.in (HAVE_GAS_INDIRECT_FUNCTION): New.
7663 * defaults.h (IFUNC_ASM_TYPE): Provide default.
7664
7665 * doc/extend.texi (Function Attributes): Document ifunc.
7666 * varasm.c (do_assemble_alias): Deal with ifuncs too.
7667
7668 2010-09-09 Hariharan Sandanagobalane <hariharan@picochip.com>
7669
7670 * config/picochip/picochip.c (picochip_reorg): Check for note_p for
7671 epilogue instruction move.
7672
7673 2010-09-09 Jan Hubicka <jh@suse.cz>
7674
7675 * collect2.c (maybe_run_lto_and_relink): Rewrite code producing ld
7676 command line to allow more partitions than input files.
7677
7678 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
7679
7680 PR middle-end/44554
7681 * ira.c (ira): Switch off sharing spill slots if setjmp is called.
7682
7683 2010-09-09 Vladimir Makarov <vmakarov@redhat.com>
7684
7685 PR middle-end/40386
7686 * ira.c (pseudo_for_reload_consideration_p): Don't use
7687 flag_ira_share_spill_slots.
7688
7689 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7690
7691 * config/s390/s390.c (legitimate_reload_constant_p): Accept floating-
7692 point zero operands that fit into a single GPR.
7693 (s390_preferred_reload_class): Ensure we only return general-purpose
7694 register classes.
7695 * config/s390/s390.md ("*mov<mode>_64dfp"): Use lghi to load
7696 floating-point zero operands into GPRs.
7697 ("*mov<mode>_64"): Likewise.
7698 ("mov<mode>"): Likewise using lhi.
7699
7700 2010-09-09 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7701
7702 * config/s390/s390.c (s390_symref_operand_p): Return false for
7703 literal pool references.
7704 (s390_check_qrst_address): Update caller.
7705
7706 2010-09-09 Uros Bizjak <ubizjak@gmail.com>
7707
7708 * config/i386/predicates.md (ext_register_operand): Check that
7709 SUBREG_REG is really a register before looking for REGNO.
7710 (reg_not_xmm0_operand): Handle SUBREGs correctly.
7711 (nonimm_not_xmm0_operand): Call reg_not_xmm0_operand.
7712
7713 2010-09-09 Jakub Jelinek <jakub@redhat.com>
7714
7715 * rtl.def (DEBUG_IMPLICIT_PTR): New rtl code.
7716 * rtl.h (DEBUG_IMPLICIT_PTR_DECL): Define.
7717 * rtl.c (rtx_equal_p_cb, rtx_equal_p): Handle DEBUG_IMPLICIT_PTR.
7718 * print-rtl.c (print_rtx): Likewise.
7719 * cselib.c (rtx_equal_for_cselib_p, cselib_hash_rtx): Likewise.
7720 * cfgexpand.c (expand_debug_expr): Generate DEBUG_IMPLICIT_PTR
7721 for ADDR_EXPR with non-addressable object.
7722 * dwarf2out.c (enum dw_val_class): Add dw_val_class_decl_ref.
7723 (struct dw_val_struct): Add v.val_decl_ref.
7724 (dwarf_stack_op_name, output_loc_operands, output_loc_operands_raw):
7725 Handle DW_OP_GNU_implicit_pointer.
7726 (size_of_loc_descr): Likewise. Fix up DW_OP_call_ref size.
7727 (get_ref_die_offset_label): New function.
7728 (implicit_ptr_descriptor): New function.
7729 (mem_loc_descriptor): Handle DEBUG_IMPLICIT_PTR.
7730 (loc_descriptor): Likewise.
7731 (gen_variable_die): Put even definitions into decl_die_table.
7732 (resolve_addr_in_expr): Resolve still unresolved
7733 DW_OP_GNU_implicit_pointer operands, if it can't be resolved
7734 return false.
7735 (dwarf2out_finish): Call output_location_lists after outputting
7736 .debug_info and .debug_abbrev instead of before.
7737
7738 2010-09-09 Roland McGrath <roland@redhat.com>
7739
7740 * dwarf2out.c (DWARF_REF_SIZE): Define.
7741 (size_of_loc_descr): Use it for DW_OP_call_ref.
7742
7743 2010-09-09 Alan Modra <amodra@gmail.com>
7744
7745 * doc/invoke.text: Reinstate mcmodel=medium.
7746 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
7747 CMODEL_MEDIUM as default.
7748 * config/rs6000/rs6000.h (enum rs6000_cmodel): Add CMODEL_MEDIUM.
7749 * config/rs6000/rs6000.c (rs6000_handle_option): Add mcmodel=medium.
7750 (toc_relative_ok, offsettable_ok_by_alignment): New functions.
7751 (rs6000_emit_move): Reinstate mcmodel=medium optimization.
7752
7753 2010-09-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7754
7755 PR target/45250
7756 * config/pa/pa.md (nonlocal_goto): Restore hard frame pointer using
7757 hard_frame_pointer_rtx instead of virtual_stack_vars_rtx.
7758 (builtin_longjmp): Likewise.
7759 (allocate_stack): Use hard_frame_pointer_rtx instead of
7760 frame_pointer_rtx.
7761 * config/pa/pa-protos.h (pa_initial_elimination_offset): Declare.
7762 * config/pa/pa.c (pa_internal_arg_pointer): Declare.
7763 (pa_can_eliminate): Likewise.
7764 (TARGET_INTERNAL_ARG_POINTER): Define.
7765 (TARGET_CAN_ELIMINATE): Define.
7766 (hppa_expand_prologue): Use hard frame pointer instead of soft frame
7767 pointer.
7768 (hppa_expand_epilogue, pa_eh_return_handler_rtx): Likewise.
7769 (pa_internal_arg_pointer, pa_can_eliminate,
7770 pa_initial_elimination_offset): New.
7771 * config/pa/pa.h (FRAME_POINTER_REGNUM): Set to new general register.
7772 (HARD_FRAME_POINTER_REGNUM): Set to register three.
7773 (INITIAL_FRAME_POINTER_OFFSET): Delete.
7774 (ELIMINABLE_REGS, INITIAL_ELIMINATION_OFFSET, DWARF_FRAME_REGISTERS):
7775 Define.
7776 (DWARF_ALT_FRAME_RETURN_COLUMN, REGNO_OK_FOR_INDEX_P,
7777 REGNO_OK_FOR_BASE_P): Update to include soft frame pointer.
7778 * config/pa/pa32-regs.h (FIRST_PSEUDO_REGISTER): Increase by one.
7779 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER,
7780 REG_CLASS_CONTENTS, REGNO_REG_CLASS, REGISTER_NAMES): Update to include
7781 new soft frame pointer.
7782 * config/pa/pa64-regs.h: Likewise.
7783
7784 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
7785
7786 * config/i386/i386.h (EH_RETURN_DATA_REGNO) Use DX_REG instead of
7787 numerical constant.
7788 (EH_RETURN_STACKADJ_RTX): Use CX_REG insted of numerical constant.
7789
7790 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
7791
7792 PR debug/45531
7793 * cfglayout.c (fixup_reorder_chain): Skip debug insns.
7794
7795 2010-09-08 Alexandre Oliva <aoliva@redhat.com>
7796
7797 PR debug/45419
7798 PR debug/45408
7799 * tree-pretty-print.c (dump_generic_node): Disregard top-level
7800 qualifiers in otherwise equal MEM_REF pointer types.
7801 * fold-const.c (operand_equal_p): Compare pointer type of MEM_REFs.
7802 * tree.c (iterative_hash_expr): Hash the pointer type of MEM_REFs.
7803
7804 2010-09-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7805
7806 PR target/44392
7807 * config/arm/arm.md (bswapsi2): Handle condition correctly
7808 for armv6 and optimize_size.
7809
7810 2010-09-08 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7811
7812 PR other/18555
7813 * doc/cppopts.texi (-isysroot): Document Darwin behaviour.
7814
7815 2010-09-08 Uros Bizjak <ubizjak@gmail.com>
7816
7817 * config/i386/i386-protos.h (ix86_can_use_return_insn_p,
7818 symbolic_reference_mentioned_p, ix86_expand_movmem, ix86_expand_setmem,
7819 ix86_expand_strlen, legitimate_pic_address_disp_p,
7820 ix86_binary_operator_ok, ix86_unary_operator_ok, ix86_match_ccmode,
7821 ix86_expand_int_movcc, ix86_expand_fp_movcc, ix86_expand_int_addcc,
7822 ix86_check_movabs, ix86_secondary_memory_needed): Change function
7823 prototype to bool.
7824 * config/i386/i386.c (return_in_memory_32, return_in_memory_64,
7825 return_in_memory_ms_64, ix86_check_movabs,
7826 symbolic_reference_mentioned_p, ix86_can_use_return_insn_p,
7827 legitimate_pic_address_disp_p, ix86_binary_operator_ok,
7828 ix86_unary_operator_ok, ix86_match_ccmode, ix86_expand_int_movcc,
7829 ix86_expand_fp_movcc, ix86_expand_int_addcc, ix86_expand_movmem,
7830 ix86_expand_setmem, ix86_expand_strlen, inline_secondary_memory_needed,
7831 ix86_secondary_memory_needed): Change to bool. Return
7832 "true" and "false" values.
7833 * config/i386/i386.md: Return "true" and "false" values.
7834
7835 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7836
7837 * doc/sourcebuild.texi (Effective-Target Keywords): Document
7838 run_expensive_tests.
7839
7840 2010-09-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7841
7842 * toplev.c (output_stack_usage): Use lbasename instead of basename.
7843
7844 2010-09-08 Martin Jambor <mjambor@suse.cz>
7845
7846 PR other/45443
7847 * doc/invoke.texi: Add -fipa-cp-clone to list of switches turned on
7848 at -O3.
7849
7850 2010-09-08 Richard Guenther <rguenther@suse.de>
7851
7852 * gimple.c (gimple_types, type_hash_cache): Move to GC memory.
7853 (visit): Adjust.
7854 (iterative_hash_gimple_type): Likewise.
7855 (gimple_type_hash): Likewise.
7856 (gimple_register_type): Likewise.
7857 (print_gimple_types_stats): Likewise.
7858 (free_gimple_type_tables): Likewise.
7859
7860 2010-09-08 Michael Matz <matz@suse.de>
7861
7862 PR tree-optimization/43430
7863 * tree-vect-stmts.c (vectorizable_condition): Support multiple
7864 copies for conditional statements if it's not part of a reduction.
7865
7866 2010-09-08 Michael Matz <matz@suse.de>
7867
7868 PR tree-optimization/33244
7869 * tree-ssa-sink.c (statement_sink_location): Don't sink into
7870 empty loop latches.
7871
7872 2010-09-08 Richard Guenther <rguenther@suse.de>
7873
7874 PR tree-optimization/45578
7875 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr):
7876 Be more careful when transfering alignment information to
7877 the new induction variable.
7878 (copy_ref_info): Likewise.
7879
7880 2010-09-08 Richard Guenther <rguenther@suse.de>
7881
7882 * tree.h (TYPE_ORIG_SIZE_TYPE): Remove.
7883 * c-typeck.c (comptypes_internal): Remove TYPE_ORIG_SIZE_TYPE checks.
7884
7885 2010-09-08 Arnaud Charlet <charlet@adacore.com>
7886
7887 * c-tree.h, c-decl.c (build_enumerator): Add location parameter.
7888 * c-parser.c (c_parser_enum_specifier): Adjust call to build_enumerator.
7889
7890 2010-09-08 Kenneth Zadeck <zadeck@naturalbridge.com>
7891
7892 PR doc/45587
7893 * doc/md.texi: Fixed modes on several standard pattern names.
7894
7895 2010-09-08 Mingjie Xing <mingjie.xing@gmail.com>
7896
7897 * config/mips/loongson.md (loongson_psll<V_suffix>): Rename to...
7898 (ashl<mode>3): ...this.
7899 (loongson_psra<V_suffix>): Rename to...
7900 (ashr<mode>3): ...this.
7901 (loongson_psrl<V_suffix>): Rename to...
7902 (lshr<mode>3): ...this.
7903 * config/mips/mips.c (CODE_FOR_loongson_psllh): Define.
7904 (CODE_FOR_loongson_psllw): Define.
7905 (CODE_FOR_loongson_psrlh): Define.
7906 (CODE_FOR_loongson_psrlw): Define.
7907 (CODE_FOR_loongson_psrah): Define.
7908 (CODE_FOR_loongson_psraw): Define.
7909
7910 2010-09-07 Richard Henderson <rth@redhat.com>
7911
7912 * tree-vect-data-refs.c: Include tm_p.h.
7913 * Makefile.in (tree-vect-data-refs.o): Update deps.
7914 * config/i386/i386-protos.h (ix86_cfun_abi, ix86_function_type_abi):
7915 Move delarations outside #ifdef RTX_CODE.
7916
7917 2010-09-07 Richard Henderson <rth@redhat.com>
7918
7919 * final.c (rest_of_handle_final): Unconditionally do
7920 output_function_exception_table before assemble_end_function.
7921
7922 2010-09-07 Jan Hubicka <jh@suse.cz>
7923
7924 * tree-inline.c (tree_inlinable_function_p): Do not test
7925 DECL_REPLACEABLE_P.
7926 * ipa-inline.c (cgraph_default_inline_p, update_caller_keys,
7927 update_callee_keys, cgraph_decide_inlining): Test function availability.
7928 * cif-code.def (OVERWRITABLE): New code.
7929
7930 2010-09-07 H.J. Lu <hjl.tools@gmail.com>
7931 Jack Howarth <howarth@bromo.med.uc.edu>
7932
7933 PR target/36502
7934 PR target/42313
7935 PR target/44651
7936 * config/i386/darwin.h (STACK_BOUNDARY): Redefine as 128 for
7937 profiling or 64-bit MS_ABI and as BITS_PER_WORD otherwise.
7938 (PREFERRED_STACK_BOUNDARY): Replace STACK_BOUNDARY with 128 in
7939 MAX macro.
7940
7941 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
7942
7943 * unwind-dw2-fde-glibc.c: Include <elf.h> for DT_CONFIG.
7944 Include <link.h> only if USE_PT_GNU_EH_FRAME is defined.
7945
7946 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
7947
7948 * config.gcc: Don't append t-android for Android targets.
7949
7950 * config/t-android: Removed.
7951
7952 2010-09-07 Richard Henderson <rth@redhat.com>
7953
7954 * target.def (TARGET_ASM_EMIT_EXCEPT_PERSONALITY): New hook.
7955 * doc/tm.texi.in: Add doc marker.
7956 * doc/tm.texi: Rebuild.
7957 * except.c (switch_to_exception_section): Always build.
7958 (output_one_function_exception_table): Move section switch,
7959 personality output, and label output ...
7960 (output_function_exception_table): ... here. Use the new
7961 personality hook.
7962
7963 * config/ia64/ia64.c (ia64_asm_emit_except_personality,
7964 ia64_asm_init_sections, TARGET_ASM_EMIT_EXCEPT_PERSONALITY,
7965 TARGET_ASM_INIT_SECTIONS): New.
7966 (ia64_asm_unwind_emit): Rename from process_for_unwind_directive,
7967 make static.
7968 (TARGET_ASM_UNWIND_EMIT): Update to match.
7969 * config/ia64/ia64-protos.h (process_for_unwind_directive): Remove.
7970
7971 * config/arm/arm.c (arm_asm_emit_except_personality): New.
7972 (arm_asm_init_sections): New.
7973 (TARGET_ASM_EMIT_EXCEPT_PERSONALITY, TARGET_ASM_INIT_SECTIONS): New.
7974
7975 2010-09-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7976
7977 * config/arm/arm.md: Remove unused variable.
7978
7979 2010-09-07 Anatoly Sokolov <aesok@post.ru>
7980
7981 * config/m32r/m32r.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
7982 * config/m32r/m32r.c (TARGET_MEMORY_MOVE_COSTS): Define.
7983 (m32r_memory_move_cost): New function.
7984
7985 2010-09-07 H.J. Lu <hongjiu.lu@intel.com>
7986
7987 * config.gcc: Append t-android for Android targets.
7988
7989 * config/t-android: New.
7990
7991 2010-09-07 Richard Henderson <rth@redhat.com>
7992
7993 * target.def (unwind_emit_before_insn): New hook.
7994 * doc/tm.texi.in: Add @hook marker for it.
7995 * doc/tm.texi: Rebuild.
7996 * final.c (final_scan_insn): Respect unwind_emit_before_insn.
7997
7998 2010-09-07 Martin Jambor <mjambor@suse.cz>
7999
8000 PR fortran/43665
8001 * ipa-cp.c (ipcp_versionable_function_p): Return false if there
8002 are any type attributes.
8003
8004 2010-09-07 Jan Hubicka <jh@suse.cz>
8005
8006 * tree-ssa-ccp.c (fold_const_aggregate_ref): Fix handling of
8007 array_ref_low_bound in string access folding.
8008
8009 2010-09-07 Uros Bizjak <ubizjak@gmail.com>
8010
8011 PR target/45206
8012 * config/i386/i386.c (ix86_expand_epilogue): Mark SP as valid after
8013 eh_return fixup sequence.
8014
8015 2010-09-07 Jan Hubicka <jh@suse.cz>
8016
8017 * gimple-fold.c (maybe_fold_reference): Verify that operand is
8018 gimple_min_invariant.
8019
8020 2010-09-07 Richard Guenther <rguenther@suse.de>
8021
8022 PR middle-end/45569
8023 * tree-eh.c (operation_could_trap_helper_p): Neither COMPLEX_EXPR
8024 nor CONSTRUCTOR can trap.
8025 * tree-complex.c (update_complex_assignment): Update EH info.
8026
8027 2010-09-07 Richard Guenther <rguenther@suse.de>
8028
8029 PR middle-end/45569
8030 * tree-cfg.c (build_gimple_cfg): Remove redundant stmt verification.
8031 * passes.c (execute_function_todo): Do not verify anything if
8032 we saw errors.
8033
8034 2010-09-07 Richard Guenther <rguenther@suse.de>
8035
8036 * tree-pretty-print.c (dump_generic_node): Dump void types as void.
8037
8038 2010-09-07 Bernd Schmidt <bernds@codesourcery.com>
8039
8040 PR target/43137
8041 * config/arm/iterators.md (qhs_zextenddi_cond, qhs_sextenddi_cond):
8042 New define_mode_attrs.
8043 * config/arm/arm.md (zero_extendsidi2, arm_zero_extendsidi2,
8044 arm_exxtendsidi2, arm_extendsidi2): Delete patterns.
8045 (zero_extend<mode>di2, extend<mode>di2 and related splits): New.
8046 (thumb1_zero_extendhisi2): Remove code to handle LABEL_REFs.
8047 Remove pool_range attribute.
8048 (arm_zero_extendhisi2, arm_zero_extendhisi2_v6, arm_zero_extendqisi2,
8049 arm_zero_extendqisi2_v6, thumb1_zero_extendqisi2_v6): Remove
8050 pool_range and neg_pool_range attributes.
8051 * config/arm/thumb2.md (thumb2_zero_extendsidi2,
8052 thumb2_zero_extendhidi2, thumb2_zero_extendqidi2, thumb2_extendsidi2,
8053 thumb2_extendhidi2, thumb2_extendqidi2): Delete.
8054
8055 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
8056
8057 * config/i386/linux-unwind.h (x86_fallback_frame_state): Properly
8058 check glibc.
8059
8060 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
8061
8062 PR target/22152
8063 * config/i386/mmx.md (*mov<mode>_internal_rex64,
8064 *mov<mode>_internal_avx, *mov<mode>_internal,
8065 *movv2sf_internal_rex64_avx, *movv2sf_internal_rex64,
8066 *movv2sf_internal_avx, *movv2sf_internal): Split out !y-!y alternative.
8067
8068 2010-09-06 Mark Mitchell <mark@codesourcery.com>
8069
8070 * c-typeck.c (do_warn_double_promotion): Remove.
8071 * doc/invoke.texi (-Wdouble-promotion): Note available for C++ and
8072 Objective-C++ too.
8073
8074 2010-09-06 Anatoly Sokolov <aesok@post.ru>
8075
8076 * config/frv/frv.h (CLASS_LIKELY_SPILLED_P): Remove.
8077 * config/frv/frv-protos.h (frv_class_likely_spilled_p): Remove.
8078 * config/frv/frv.c (frv_class_likely_spilled_p): Make static. Change
8079 argument type to reg_class_t. Change result type to bool.
8080 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
8081
8082 2010-09-06 Nicola Pero <nicola.pero@meta-innovation.com>
8083
8084 PR libobjc/19850
8085 * gthr-posix.h (__gthread_objc_thread_detach): Use
8086 _objc_thread_attribs when detaching a thread.
8087 * gthr-posix95.h (__gthread_objc_thread_detach): Same change.
8088
8089 2010-09-06 H.J. Lu <hongjiu.lu@intel.com>
8090
8091 PR target/45524
8092 * configure.ac (enable_decimal_float): Set to $default_decimal_float.
8093 * configure: Regenerated.
8094
8095 2010-09-06 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8096
8097 * combine.c (try_combine): Set subst_low_luid to i0.
8098
8099 2010-09-06 Richard Guenther <rguenther@suse.de>
8100
8101 * tree.def (MISALIGNED_INDIRECT_REF): Remove.
8102 * tree.h (INDIRECT_REF_P): Only check for INDIRECT_REF.
8103 (build_aligned_type): Declare.
8104 * tree.c (check_qualified_type): Also compare TYPE_ALIGN.
8105 (check_aligned_type): New function.
8106 (build_aligned_type): Likewise.
8107 * expr.c (expand_assignment): Handle misaligned stores via
8108 TARGET_MEM_REF and MEM_REF using movmisalign_optab.
8109 (expand_expr_real_1): Likewise.
8110 (safe_from_p): Remove MISALIGNED_INDIRECT_REF handling.
8111 * tree-vect-stmts.c (vectorizable_store): Do not build
8112 MISALIGNED_INDIRECT_REF but initialize alignment information.
8113 (vectorizable_load): Likewise.
8114 * builtins.c (get_object_alignment): Remove MISALIGNED_INDIRECT_REF
8115 handling.
8116 * cfgexpand.c (expand_debug_expr): Likewise.
8117 * dwarf2out.c (loc_list_from_tree): Likewise.
8118 * fold-const.c (maybe_lvalue_p): Likewise.
8119 (operand_equal_p): Likewise.
8120 (build_fold_addr_expr_with_type_loc): Likewise.
8121 * gimplify.c (gimplify_addr_expr): Likewise.
8122 (gimplify_expr): Likewise.
8123 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
8124 (verify_gimple_assign_single): Likewise.
8125 * tree-dump.c (dequeue_and_dump): Likewise.
8126 (tree_could_trap_p): Likewise.
8127 * tree-predcom.c (ref_at_iteration): Likewise.
8128 * tree-pretty-print.c (dump_generic_node): Likewise.
8129 (op_code_prio): Likewise.
8130 (op_symbol_code): Likewise.
8131 * tree-ssa-ccp.c (get_value_from_alignment): Likewise.
8132 * tree-ssa-loop-im.c (for_each_index): Likewise.
8133 (gen_lsm_tmp_name): Likewise.
8134 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
8135 (find_interesting_uses_address): Likewise.
8136 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
8137 * tree-ssa-operands.c (get_expr_operands): Likewise.
8138 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
8139 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
8140 (ao_ref_init_from_vn_reference): Likewise.
8141 * tree.c (staticp): Likewise.
8142 (build1_stat): Likewise.
8143 (reference_alias_ptr_type): Likewise.
8144 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
8145 * config/rs6000/rs6000.c (rs6000_check_sdmode): Remove
8146 MISALIGNED_INDIRECT_REF handling.
8147
8148 2010-09-06 Richard Guenther <rguenther@suse.de>
8149
8150 PR tree-optimization/45534
8151 * tree-ssa-address.c (create_mem_ref_raw): Add verify parameter.
8152 (create_mem_ref): Do verify the created TARGET_MEM_REF is valid
8153 on the target.
8154 (maybe_fold_tmr): Do not verify the created TARGET_MEM_REF is
8155 valid on the target.
8156
8157 2010-09-06 Andreas Schwab <schwab@redhat.com>
8158
8159 * configure.ac: Quote argument of AC_MSG_WARN.
8160 * configure: Regenerate.
8161
8162 2010-09-06 Alexander Monakov <amonakov@ispras.ru>
8163
8164 * sel-sched.c (move_cond_jump): Correct arguments to
8165 maybe_tidy_empty_bb.
8166 * sel-sched-ir.c (maybe_tidy_empty_bb): Export.
8167
8168 2010-09-06 Andrey Belevantsev <abel@ispras.ru>
8169
8170 PR rtl-optimization/44919
8171 * sel-sched.c (move_cond_jump): Remove assert, check that
8172 the several blocks case can only happen with mutually exclusive
8173 insns instead. Rewrite the movement code to support moving through
8174 several basic blocks.
8175
8176 2010-09-06 Uros Bizjak <ubizjak@gmail.com>
8177
8178 * config/i386/i386.md (iptrsize): New mode attribute.
8179 (tp_seg): Ditto.
8180 (*load_tp_<mode>): Macroize insn from *load_tp_{si,di} using P
8181 mode iterator.
8182 (*add_tp_<mode>): Ditto from *add_tp_{si,di}.
8183 (stack_protect_set_<mode>): Ditto from stack_protect_set_{si,di}.
8184 (stack_protect_test_<mode>): Ditto from stack_protect_test_{si,di}.
8185 (stack_tls_protect_set_<mode>): Ditto from
8186 stack_tls_protect_set_{si,di}. Use %@ to output segment register
8187 of thread base pointer load.
8188 (stack_tls_protect_test_<mode>): Ditto from
8189 stack_tls_protect_test_{si,di}. Use %@ to output segment register
8190 of thread base pointer load.
8191 (stack_protect_set): Rewrite using indirect functions.
8192 (stack_protect_test): Ditto.
8193 * config/i386/i386.c (ix86_print_operand_punct_valid): Add '@'.
8194 (ix86_print_operand): Handle '@'.
8195
8196 2010-09-05 Giuseppe Scrivano <gscrivano@gnu.org>
8197
8198 * tree-tailcall.c (process_assignment): Handle NEGATE_EXPR and
8199 MINUS_EXPR.
8200
8201 2010-09-05 Mark Mitchell <mark@codesourcery.com>
8202
8203 * doc/invoke.texi: Document -Wdouble-promotion.
8204 * c-typeck.c (convert_arguments): Check for implicit conversions
8205 from float to double.
8206 (do_warn_double_promotion): New function.
8207 (build_conditional_expr): Use it.
8208 (build_binary_op): Likewise.
8209
8210 2010-09-05 Richard Guenther <rguenther@suse.de>
8211
8212 PR tree-optimization/45535
8213 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Properly
8214 handle TMR_INDEX2. Make sure TMR_INDEX is not NULL before
8215 dereferencing it.
8216 (indirect_refs_may_alias_p): Likewise.
8217
8218 2010-09-05 Naveen H.S <naveen.S@kpitcummins.com>
8219
8220 * config/sh/sh.c (sh_option_override): Make static.
8221 Adjust comments. Declare.
8222 (sh_function_value_regno_p): Likewise.
8223 (sh_register_move_cost): Modify the arguments, make static.
8224 Adjust comments. Declare.
8225 (TARGET_OPTION_OVERRIDE, TARGET_REGISTER_MOVE_COST
8226 TARGET_FUNCTION_VALUE_REGNO_P): Define.
8227 * config/sh/sh.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P
8228 REGISTER_MOVE_COST): Delete.
8229 * config/sh/sh-protos.h (sh_override_options): Delete.
8230 (sh_register_move_cost): Delete.
8231 (sh_function_value_regno_p): Delete.
8232
8233 2010-09-04 Anatoly Sokolov <aesok@post.ru>
8234
8235 * config/m32r/m32r.c (m32r_function_value, m32r_libcall_value,
8236 m32r_function_value_regno_p): New functions.
8237 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
8238 TARGET_FUNCTION_VALUE_REGNO_P): Declare.
8239 * config/m32r/m32r.h: (FUNCTION_VALUE, LIBCALL_VALUE,
8240 FUNCTION_VALUE_REGNO_P): Remove.
8241
8242 2010-09-04 Jan Hubicka <jh@suse.cz>
8243
8244 * gimple-fold.c (maybe_fold_reference): Use fold_const_aggregate_ref.
8245 * tree-ssa-ccp.c (fold_const_aggregate_ref): Use
8246 fold_read_from_constant_string.
8247
8248 * gimple.h (canonicalize_constructor_val): Declare.
8249 * gimple-fold.c (canonicalize_constructor_val): New function.
8250 (get_symbol_constant_value):Use it.
8251 * tree-ssa-ccp.c (fold_const_aggregate_ref): Likewise.
8252
8253 2010-09-04 Jan Hubicka <jh@suse.cz>
8254
8255 * tree-switch-conversion.c (build_one_array): Set constructor to be
8256 static.
8257 * varpool.c (varpool_finalize_decl): Compute const_value_known.
8258
8259 2010-09-04 Richard Guenther <rguenther@suse.de>
8260
8261 PR bootstrap/45519
8262 * tree-flow.h (force_gimple_operand_1): Declare.
8263 (force_gimple_operand_gsi_1): Likewise.
8264 * gimplify.c (force_gimple_operand_1): New worker taking a
8265 gimple predicate for ...
8266 (force_gimple_operand): ... which now wraps it.
8267 (force_gimple_operand_gsi_1, force_gimple_operand_gsi): Likewise.
8268 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Revert
8269 last change.
8270 * tree-ssa-address.c (gimplify_mem_ref_parts): Use
8271 force_gimple_operand_gsi_1 with is_gimple_mem_ref_addr.
8272 (create_mem_ref): Likewise.
8273
8274 2010-09-04 Uros Bizjak <ubizjak@gmail.com>
8275
8276 * config/i386/predicates.md (sse_reg_operand): New predicate.
8277 * config/i386/i386.md (TFmode push splitter): Use sse_reg_operand
8278 predicate for operand 1.
8279 (XFmode push splitter): Use fp_register_operand predicate
8280 for operand 1.
8281 (*dummy_extendsfdf2, *dummy_extendsfxf2): Remove disabled patterns.
8282 (SF-DF float_extend push splitter): Add reload_completed insn
8283 predicate.
8284 ({SF,DF}-XF float_extend_push splitter): Macroize splitter using
8285 MODEF mode macro. Add reload_completed insn predicate.
8286
8287 2010-09-04 Paolo Bonzini <bonzini@gnu.org>
8288
8289 * df.h (enum df_ref_class): Remove DF_REF_EXTRACT.
8290 (struct df_extract_ref): Remove.
8291 (union df_ref_d): Remove extract_ref member.
8292 (df_ref_create): Remove last three arguments.
8293 (DF_REF_LOC): Remove DF_REF_EXTRACT case.
8294 * df-scan.c (df_ref_record): Remove last three arguments, do not
8295 pass them to df_ref_create_structure.
8296 (df_uses_record): Remove first and last three arguments. Replace
8297 first argument with DF_REF_REGULAR, adjust calls to remove the
8298 width, offset and mode. Always call recursively on the second
8299 and third argument of ZERO_EXTRACT and SIGN_EXTRACT.
8300 (df_ref_create_structure): Remove first argument.
8301 (struct df_scan_problem_data): Remove ref_extract_pool.
8302 (df_scan_free_internal): Do not free it.
8303 (df_scan_alloc): Do not allocate it.
8304 (df_ref_create): Remove last three arguments, do not pass them to
8305 df_ref_create_structure.
8306 (df_free_ref): Remove DF_REF_EXTRACT case.
8307 (df_notes_rescan): Adjust call to df_uses_record.
8308 (df_ref_equal_p, df_ref_compare, df_ref_create_structure):
8309 Remove DF_REF_EXTRACT case.
8310 (df_def_record_1): Do not special case class for a ZERO_EXTRACT lhs.
8311 Adjust calls to df_ref_record, using DF_REF_REGULAR for all REG
8312 and SUBREG definitions.
8313 (df_get_conditional_uses): Remove references to width/offset/mode,
8314 adjust call to df_ref_create_structure.
8315 (df_get_call_refs, df_insn_refs_collect, df_bb_refs_collect,
8316 df_entry_block_defs_collect, df_exit_block_uses_collect): Adjust
8317 calls to df_uses_record and df_ref_record.
8318 * fwprop.c (update_df): Remove references to width/offset/mode,
8319 adjust call to df_ref_create.
8320
8321 2010-09-03 Jan Hubicka <jh@suse.cz>
8322
8323 * ipa.c (build_cdtor): Take VECtor as argument; fix array walk.
8324 (build_cdtor_fns): Update use of build_cdtor.
8325
8326 2010-09-03 Joseph Myers <joseph@codesourcery.com>
8327
8328 * doc/options.texi (SeparateAlias): Document.
8329 * opt-functions.awk (switch_flags): Handle SeparateAlias.
8330 * opth-gen.awk: Generate enumeration names for options marked
8331 SeparateAlias, but not for those marked Ignore.
8332 * opts-common.c (generate_canonical_option): Don't output separate
8333 argument for options marked CL_SEPARATE_ALIAS.
8334 (decode_cmdline_option): Handle CL_SEPARATE_ALIAS.
8335 * opts.h (CL_SEPARATE_ALIAS): New.
8336 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
8337 CL_COMMON): Adjust definitions.
8338 * config/i386/darwin.opt, config/mips/sde.opt: New.
8339 * common.opt (fdump-final-insns): New.
8340 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
8341 i386/darwin.opt.
8342 (mips*-sde-elf*): Add mips/sde.opt.
8343 * config/mips/sde.h (DRIVER_SELF_SPECS): Don't handle
8344 -mno-data-in-code and -mcode-xonly here.
8345 * defaults.h (DEFAULT_SWITCH_TAKES_ARG): Add 'd'.
8346 * gcc.c (option_map): Add "j" to --dump entry.
8347 (translate_options): Don't translate -d to -foutput-class-dir= here.
8348
8349 2010-09-03 Sebastian Pop <sebastian.pop@amd.com>
8350
8351 * tree-data-ref.c (dr_may_alias_p): Replace !DR_IS_READ with
8352 DR_IS_WRITE.
8353 (compute_all_dependences): Same.
8354 (create_rdg_edge_for_ddr): Same.
8355 * tree-data-ref.h (DR_IS_WRITE): New.
8356 (ddr_is_anti_dependent): Replace !DR_IS_READ with DR_IS_WRITE.
8357 * tree-if-conv.c (write_memrefs_written_at_least_once): Same.
8358 (write_memrefs_written_at_least_once): Same.
8359 * tree-predcom.c (suitable_component_p): Same.
8360 (determine_roots_comp): Same.
8361 (execute_load_motion): Same.
8362 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Same.
8363 (vect_enhance_data_refs_alignment): Same.
8364 (vect_analyze_group_access): Same.
8365
8366 2010-09-03 Joern Rennecke <joern.rennecke@embecosm.com>
8367
8368 PR testsuite/42843
8369 * Makefile.in (PLUGINCC): Define in terms of @CC@ / @CXX@
8370 (PLUGINCFLAGS): Define in terms of @CFLAGS@ / @CXXFLAGS@
8371
8372 2010-09-03 Marcin Baczynski <marbacz@gmail.com>
8373
8374 * dwarf2out.c (file scope): Remove #if0'd code.
8375 (gen_subprogram_die): Same.
8376
8377 2010-09-03 Jakub Jelinek <jakub@redhat.com>
8378
8379 PR middle-end/45484
8380 * dwarf2out.c (flush_queued_reg_saves): Rename to...
8381 (dwarf2out_flush_queued_reg_saves): ... this. No longer static.
8382 (dwarf2out_frame_debug_expr, dwarf2out_frame_debug): Adjust callers.
8383 * dwarf2out.h (dwarf2out_flush_queued_reg_saves): New prototype.
8384 * config/i386/i386.c (output_set_got): Call it.
8385
8386 2010-09-03 Michael Matz <matz@suse.de>
8387
8388 PR middle-end/45415
8389 * tree-sra.c (sra_modify_assign): If we modify the statement,
8390 say so.
8391
8392 * tree-ssa.c (verify_ssa): Check number of operands and links
8393 per statement to agree.
8394
8395 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
8396 Iain Sandoe <iains@gcc.gnu.org>
8397
8398 PR target/45476
8399 * config/i386/t-darwin (LIB2FUNCS_EXCLUDE): New.
8400 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE,
8401 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
8402
8403 2010-09-03 Richard Guenther <rguenther@suse.de>
8404
8405 * lto-streamer-out.c (output_function): Output function
8406 start and end loci.
8407 * lto-streamer-in.c (input_function): Input function start
8408 and end loci.
8409
8410 2010-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
8411
8412 * configure.ac: Use the GCC_AC_ENABLE_DECIMAL_FLOAT macro.
8413 * Makefile.in: Add aclocal.m4 dependency to dfp.m4.
8414 * configure: Regenerate.
8415 * aclocal.m4: Regenerate.
8416
8417 2010-09-03 Jan Hubicka <jh@suse.cz>
8418
8419 PR lto/44812
8420 * lto-cgraph.c (intput_node, input_varpool_node): Set DECL_EXTERNAL
8421 on functions/variables in other partition.
8422
8423 2010-09-03 Jan Hubicka <jh@suse.cz>
8424
8425 * cgraph.h (struct varpool_node): Add const_value_known.
8426 (varpool_decide_const_value_known): Declare.
8427 * tree-ssa-ccp.c (fold_const_aggregate_ref): Update initializer folding.
8428 * lto-cgraph.c (lto_output_varpool_node): Store const_value_known.
8429 (input_varpool_node): Restore const_value_known.
8430 * tree-ssa-loop-ivcanon (constant_after_peeling): Check varpool for
8431 initializer folding.
8432 * ipa.c (ipa_discover_readonly_nonaddressable_var,
8433 function_and_variable_visibility): Compute const_value_known.
8434 * gimple-fold.c (get_symbol_constant_value): Use varpool for
8435 initializer folding.
8436 * varpool.c (varpool_decide_const_value_known): New function.
8437
8438 2010-09-03 Uros Bizjak <ubizjak@gmail.com>
8439
8440 * config/i386/i386.md: Remove empty preparation statements
8441 from splitters.
8442
8443 2010-09-03 Jan Hubicka <jh@suse.cz>
8444
8445 * passes.c (rest_of_decl_compilation): Do not add local vars into
8446 varpool.
8447 * varpool.c (varpool_get_node, varpool_node): Sanity check that only
8448 static or extern vars are in varpool.
8449 (varpool_finalize_decl): Sanity check that only static vars are
8450 finalized.
8451
8452 2010-09-03 Jakub Jelinek <jakub@redhat.com>
8453
8454 PR debug/45500
8455 * dwarf2out.c (rtl_for_decl_init): Give up for all generic vectors,
8456 not just generic vectors with BLKmode.
8457
8458 2010-09-03 Richard Guenther <rguenther@suse.de>
8459
8460 * tree.def (TARGET_MEM_REF): Merge TMR_SYMBOL and TMR_BASE.
8461 Move TMR_OFFSET to second operand. Add TMR_INDEX2.
8462 * tree.h (TMR_SYMBOL): Remove.
8463 (TMR_BASE, TMR_OFFSET): Adjust.
8464 (TMR_INDEX2): New.
8465 * alias.c (ao_ref_from_mem): Use TMR_BASE.
8466 * builtins.c (get_object_alignment): Merge TMR_BASE and
8467 TMR_SYMBOL handling.
8468 * cfgexpand.c (expand_debug_expr): Use TMR_BASE.
8469 * gimple.c (get_base_address): Merge MEM_REF and TARGET_MEM_REF
8470 handling. Also allow TARGET_MEM_REF as base address.
8471 (walk_stmt_load_store_addr_ops): TMR_BASE is always non-NULL.
8472 * gimplify.c (gimplify_expr): Gimplify TMR_BASE like MEM_REF
8473 base. Gimplify TMR_INDEX2.
8474 * tree-cfg.c (verify_types_in_gimple_reference): Adjust.
8475 * tree-dfa.c (get_ref_base_and_extent): Likewise.
8476 (get_addr_base_and_unit_offset): Likewise.
8477 * tree-eh.c (tree_could_trap_p): Likewise.
8478 * tree-pretty-print.c (dump_generic_node): Likewise.
8479 * tree-ssa-address.c (tree_mem_ref_addr): Simplify. Handle TMR_INDEX2.
8480 (create_mem_ref_raw): Merge symbol and base. Move 2ndary
8481 base to index2.
8482 (get_address_description): Reconstruct addres description
8483 from merged TMR_BASE and TMR_INDEX2.
8484 (maybe_fold_tmr): Fold propagated addresses.
8485 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Merge
8486 MEM_REF and TARGET_MEM_REF paths.
8487 (indirect_refs_may_alias_p): Likewise.
8488 * tree-ssa-live.c (mark_all_vars_used_1): Handle TMR_INDEX2
8489 instead of TMR_SYMBOL.
8490 * tree-ssa-operands.c (get_tmr_operands): Simplify.
8491 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Adjust
8492 according to changes ...
8493 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): ... here.
8494 Split TARGET_MEM_REF into two fields plus the base.
8495 * tree.c (mem_ref_offset): Simplify.
8496 * tree-ssa-loop-im.c (for_each_index): Handle TMR_INDEX2.
8497 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Likewise.
8498 Strip NOPs when folding MEM_REF addresses.
8499 * tree-ssa-sink.c (is_hidden_global_store): Handle TARGET_MEM_REF.
8500 * gimple-fold.c (maybe_fold_reference): Fold TARGET_MEM_REF here ...
8501 (fold_gimple_assign): ... not here.
8502
8503 2010-09-03 Mingjie Xing <mingjie.xing@gmail.com>
8504
8505 * config/mips/mips.h (SHIFT_COUNT_TRUNCATED): Change the definition.
8506 * config/mips/mips.c (mips_shift_truncation_mask): New function.
8507 (TARGET_SHIFT_TRUNCATION_MASK): Define.
8508
8509 2010-09-02 Richard Henderson <rth@redhat.com>
8510
8511 * configure.ac (gcc_cv_as_cfi_advance_working): Use objdump
8512 instead of readelf in the test.
8513 (gcc_cv_as_cfi_sections_directive): Check for correct relocation
8514 in the .debug_frame section for coff targets.
8515 * configure: Rebuild.
8516
8517 2010-09-02 Anatoly Sokolov <aesok@post.ru>
8518
8519 * config/m32c/m32c.h (CLASS_LIKELY_SPILLED_P): Remove.
8520 * config/m32c/m32c-protos.h (m32c_class_likely_spilled_p): Remove.
8521 * config/m32c/m32c.c (TARGET_CLASS_LIKELY_SPILLED_P): Define.
8522 (m32c_class_likely_spilled_p): Make static. Change argument type to
8523 reg_class_t. Change result type to bool.
8524
8525 2010-09-02 Michael Meissner <meissner@linux.vnet.ibm.com>
8526
8527 * config/rs6000/rs6000.opt (-mfriz): New switch to control whether
8528 to convert (double)(long) into a single FRIZ instruction or not
8529 when -ffast-math is used.
8530
8531 * config/rs6000/vsx.md (VSX_DF): New iterator for DF/V2DF modes.
8532 (vsx_float_fix_<mode>2): Optimize (double)(long) into X{S,V}RDPIZ
8533 or FRIZ instruction if -ffast-math.
8534 * config/rs6000/rs6000.md (friz): Ditto.
8535
8536 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mfriz.
8537
8538 2010-09-02 Joseph Myers <joseph@codesourcery.com>
8539
8540 * opth-gen.awk (quote, comma): Remove unused variables.
8541
8542 2010-09-02 Ryan Mansfield <rmansfield@qnx.com>
8543
8544 * arm.c (arm_override_options): Correct fall-back code to use
8545 SUBTARGET_CPU_DEFAULT.
8546
8547 2010-09-02 Julian Brown <julian@codesourcery.com>
8548
8549 * config/arm/neon.md (UNSPEC_VCLE, UNSPEC_VCLT): New constants for
8550 unspecs.
8551 (vcond<mode>, vcondu<mode>): New expanders.
8552 (neon_vceq<mode>, neon_vcge<mode>, neon_vcgt<mode>): Support
8553 comparisons with zero.
8554 (neon_vcle<mode>, neon_vclt<mode>): New patterns.
8555 * config/arm/constraints.md (Dz): New constraint.
8556
8557 2010-09-02 Anatoly Sokolov <aesok@post.ru>
8558
8559 * target.def (class_likely_spilled_p): New hook.
8560 * doc/tm.texi.in (TARGET_CLASS_LIKELY_SPILLED_P): Document.
8561 * doc/tm.texi: Regenerate.
8562 * targhooks.c (default_class_likely_spilled_p): New function.
8563 * targhooks.h (default_class_likely_spilled_p): Declare.
8564 * regs.h (CLASS_LIKELY_SPILLED_P): Remove.
8565 * combine.c (cant_combine_insn_p, likely_spilled_retval_p): Use
8566 TARGET_CLASS_LIKELY_SPILLED_P target hook. Use HARD_REGISTER_P macro.
8567 Use fixed_reg_set instead of fixed_regs.
8568 * cse.c (hash_rtx_cb): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
8569 * calls.c (avoid_likely_spilled_reg): Ditto.
8570 * ira-conflicts.c (ira_build_conflicts): Ditto.
8571 * ira.c (update_equiv_regs): Ditto.
8572 * mode-switching.c (create_pre_exit): Ditto.
8573 * regmove.c (find_matches): Ditto.
8574 (regclass_compatible_p): Use TARGET_CLASS_LIKELY_SPILLED_P target hook.
8575 * reload.c (SMALL_REGISTER_CLASS_P): Remove macro.
8576 (small_register_class_p): New inline function.
8577 (push_secondary_reload, find_reusable_reload, find_reloads): Use
8578 small_register_class_p instead of SMALL_REGISTER_CLASS_P.
8579
8580 * config/i386/i386.h (CLASS_LIKELY_SPILLED_P): Remove.
8581 * config/i386/i386.c (ix86_class_likely_spilled_p): New.
8582 (TARGET_CLASS_LIKELY_SPILLED_P): Define.
8583
8584 2010-09-02 Richard Guenther <rguenther@suse.de>
8585
8586 PR tree-optimization/44937
8587 PR tree-optimization/45412
8588 * ipa-split.c (split_function): Properly remove PHI nodes.
8589
8590 2010-09-02 Joseph Myers <joseph@codesourcery.com>
8591
8592 * opts.h (struct cl_option): Add warn_message field.
8593 (struct cl_decoded_option): Add warn_message field.
8594 * doc/options.texi (Ignore, Warn): Document.
8595 * opt-functions.awk (needs_state_p): Don't consider aliases or
8596 ignored options to need state saved.
8597 * optc-gen.awk: Handle Warn and Ignore.
8598 * opth-gen.awk: Output OPT_SPECIAL_ignore.
8599 * opts-common.c (decode_cmdline_option): Set warn_message field.
8600 Handle ignored options.
8601 (decode_cmdline_options_to_array, generate_option,
8602 generate_option_input_file): Set warn_message field.
8603 (read_cmdline_option): Generate warnings from warn_message field.
8604 Handle ignored options.
8605 * common.opt (Wunreachable-code, fargument-alias,
8606 fargument-noalias, fargument-noalias-global,
8607 fargument-noalias-anything, fcse-skip-blocks, fforce-addr,
8608 floop-optimize, frerun-loop-opt, fsched2-use-traces, fsee,
8609 fstrength-reduce, ftree-store-ccp, ftree-store-copy-prop,
8610 ftree-salias): Mark Ignore.
8611 * config/i386/i386.h (CC1_CPU_SPEC_1): Don't handle -mcpu,
8612 -mintel-syntax and -mno-intel-syntax here.
8613 * config/i386/i386.opt (mcpu=, mintel-syntax): Define as aliases
8614 using Warn.
8615 * opts.c (common_handle_option): Don't handle options marked as
8616 ignored.
8617 (enable_warning_as_error): Handle ignored options.
8618
8619 2010-09-02 Joseph Myers <joseph@codesourcery.com>
8620
8621 PR driver/44076
8622 * opts.h (struct cl_option): Add alias_arg, neg_alias_arg and
8623 alias_target fields.
8624 * opt-functions.awk (opt_sanitized_name): Don't handle
8625 finline-limit=, Wlarger-than= and ftemplate-depth= specially.
8626 * optc-gen.awk: Generate alias fields.
8627 * opth-gen.awk: Explicitly give values for OPT_* enum constants.
8628 Don't generate such constants for aliases.
8629 * opts-common.c (generate_canonical_option): New.
8630 (decode_cmdline_option): Handle aliases. Use
8631 generate_canonical_option for known options instead of copying the
8632 input option text.
8633 * doc/options.texi (Alias): Document.
8634 * common.opt (W, Wlarger-than-, aux-info=, finline-limit-,
8635 fstack-check, specs): Mark as aliases.
8636 * gcc.c (driver_handle_option): Canonicalize -L options to joined
8637 arguments.
8638 (driver_handle_option): Don't handle OPT_specs.
8639 * opts.c (common_handle_option): Don't handle options marked as
8640 aliases.
8641 (enable_warning_as_error): Handle aliases.
8642 * stor-layout.c (layout_decl): Use OPT_Wlarger_than_ instead of
8643 OPT_Wlarger_than_eq.
8644 * tree-optimize.c (tree_rest_of_compilation): Use
8645 OPT_Wlarger_than_ instead of OPT_Wlarger_than_eq.
8646
8647 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
8648
8649 * config/i386/i386.md (nonmemory_operand): New mode attribute.
8650 (push memory peephole2): Macroize peepholes using SWI mode iterator.
8651 (move immediate to memory peephole2): Macroize peepholes using
8652 SWI124 mode iterator.
8653 (non-pairable NOT peephole2): Macroize peepholes using SWI124
8654 mode iterator.
8655 (simple lea add peephole2): Macroize peepholes using SWI48
8656 mode iterator.
8657 (simple lea mult peephole2): Ditto.
8658 (imul by 3,5,9 to lea peephole2): Ditto.
8659 (mov $-1, reg peephole2): Macroize peepholes using SWI248
8660 mode iterator.
8661 (imul $32bit_imm,mem,reg peephole2): Ditto.
8662 (imul $8/16bit_imm,regmem,reg peephole2): Ditto.
8663
8664 2010-09-02 Ian Bolton <ian.bolton@arm.com>
8665
8666 * tree-ssa-loop-prefetch.c: Fix comment at head of file.
8667
8668 2010-09-02 Olivier Hainque <hainque@adacore.com>
8669
8670 PR middle-end/44763
8671 * ira-color.c (SORTGT): New macro, helper for qsort callbacks.
8672 (allocno_priority_compare_func): Use it instead of a straight
8673 difference computation over priorities.
8674
8675 2010-09-02 Andi Kleen <ak@linux.intel.com>
8676
8677 * opts.c (common_handle_option): Fix OPT_fwhopr/fwhopr_ handling.
8678
8679 2010-09-02 Ira Rosen <irar@il.ibm.com>
8680
8681 * tree-vectorizer.h (get_later_stmt): New function.
8682 (vect_analyze_data_ref_dependences): Add argument.
8683 * tree-vect-loop.c (vect_analyze_loop): Update call to
8684 vect_analyze_data_ref_dependences.
8685 * tree-vect-data-refs.c (vect_drs_dependent_in_basic_block):
8686 New function.
8687 (vect_analyze_data_ref_dependence): Add argument for basic block
8688 dependencies. Check dependencies in basic block vectorization.
8689 (vect_analyze_data_ref_dependences): Add argument and update call to
8690 vect_analyze_data_ref_dependences.
8691 * tree-vect-slp.c (vect_find_last_store_in_slp_instance): New.
8692 (vect_bb_vectorizable_with_dependencies): New.
8693 (vect_slp_analyze_bb): Check dependencies in basic block.
8694 (vect_schedule_slp_instance): Insert stores before the last store in
8695 SLP instance.
8696
8697 2010-09-02 Uros Bizjak <ubizjak@gmail.com>
8698
8699 PR target/45476
8700 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE,
8701 LIBGCC2_TF_CEXT, TF_SIZE): New defines.
8702
8703 2010-09-01 Jakub Jelinek <jakub@redhat.com>
8704
8705 PR middle-end/45458
8706 * bb-reorder.c (add_labels_and_missing_jumps): Treat
8707 bbs ending with throwing insns like blocks ending with a call.
8708 (fix_up_fall_thru_edges): Likewise.
8709
8710 2010-09-01 Nathan Froyd <froydnj@codesourcery.com>
8711
8712 * config/m32c/m32c-protos.h (m32c_function_arg): Delete.
8713 (m32c_function_arg_advance): Delete.
8714 * config/m32c/m32c.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8715 * config/m32c/m32c.c (m32c_function_arg): Make static. Adjust
8716 comments. Take a const_tree and a bool. Declare.
8717 (m32c_function_arg_advance): Likewise.
8718 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8719
8720 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
8721
8722 PR target/45476
8723 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE,
8724 LIBGCC2_TF_CEXT, TF_SIZE): Move from ...
8725 * config/i386/mingw32.h: ... here.
8726
8727 2010-09-01 Andi Kleen <ak@linux.intel.com>
8728
8729 PR lto/45475
8730 * lto-streamer-in.c (lto_input_ts_target_option): Add.
8731 (lto_input_tree_pointers): Call lto_input_ts_target_option.
8732 * lto-streamer-out (lto_output_ts_target_option): Add.
8733 (lto_output_tree_pointers): Call lto_output_ts_target_option.
8734
8735 2010-09-01 Kai Tietz <kai.tietz@onevision.com>
8736
8737 PR/target 45452
8738 * config/i386/cygwin.h: Change order of specified import libraries.
8739 * config/i386/mingw32.h: Likewise.
8740 * config/i386/t-cygwin: Likewise.
8741 * config/i386/t-mingw32: Likewise.
8742 * config/i386/t-mingw-w32: Likewise.
8743 * config/i386/t-mingw-w64: Likewise.
8744
8745 2010-09-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8746
8747 * config/arm/neon-schedgen.ml (core): New type.
8748 (allCores): List of supported cores.
8749 (availability_table): Add supported cores.
8750 (collate_bypasses): Accept core as a parameter.
8751 (worst_case_latencies_and_bypasses): Accept core as a parameter.
8752 (emit_insn_reservations): Accept core as a parameter. Use tuneStr
8753 and coreStr to get tune attribute and prefix for functional units.
8754 (emit_bypasses): Accept core name and use it.
8755 (calculate_per_core_availability_table): New.
8756 (filter_core): New.
8757 (calculate_core_availability_table): New.
8758 (main): Use calculate_core_availablity_table.
8759 * config/arm/cortex-a8-neon.md: Update copyright year.
8760 Regenerated from ml file and merged in.
8761 (neon_mrrc, neon_mrc): Rename to cortex_a8_neon_mrrc and
8762 cortex_a8_neon_mrc.
8763
8764 2010-09-01 Ian Bolton <ian.bolton@arm.com>
8765
8766 * Makefile.in (tree-switch-conversion.o): Update dependencies.
8767
8768 2010-09-01 Richard Guenther <rguenther@suse.de>
8769
8770 * alias.c (ao_ref_from_mem): Adjust.
8771 * builtins.c (get_object_alignment): Likewise.
8772 * cfgexpand.c (expand_debug_expr): Likewise.
8773 * gimple.c (get_base_address): Likewise.
8774 * tree-dfa.c (get_ref_base_and_extent): Likewise.
8775 (get_addr_base_and_unit_offset): Likewise. Fix for
8776 both TMR_SYMBOL and TMR_BASE being set.
8777 * tree-eh.c (tree_could_trap_p): Likewise.
8778 * gimplify.c (gimplify_expr): Do not attempt to gimplify
8779 TMR_SYMBOL. Always gimplify TMR_BASE.
8780 * tree-cfg.c (verify_types_in_gimple_reference): Verify
8781 TMR_BASE if there is a TMR_SYMBOL.
8782 * tree-pretty-print.c (dump_generic_node): Adjust.
8783 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
8784 (tree_mem_ref_addr): Likewise.
8785 (create_mem_ref_raw): Likewise.
8786 (move_fixed_address_to_symbol): Likewise.
8787 (create_mem_ref): Likewise.
8788 (dump_mem_address): Likewise.
8789 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Adjust.
8790 Fix for both TMR_SYMBOL and TMR_BASE being set.
8791 (indirect_refs_may_alias_p): Likewise.
8792 * tree-ssa-operands.c (get_tmr_operands): Adjust.
8793 * tree.def (TARGET_MEM_REF): Adjust documentation.
8794
8795 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
8796
8797 * config/i386/i386.h (enum ix86_tune_indices) <X86_TUNE_SINGLE_POP>:
8798 Rename from X86_TUNE_ADD_ESP_4.
8799 <IX86_TUNE_DOUBLE_POP>: Rename from X86_TUNE_ADD_ESP_8.
8800 <IX86_TUNE_SINGLE_PUSH>: Rename from X86_TUNE_SUB_ESP_4.
8801 <IX86_TUNE_DOUBLE_PUSH>: Rename from X86_TUNE_SUB_ESP_8.
8802 (TARGET_SINGLE_POP): Rename from TARGET_ADD_ESP_4.
8803 (TARGET_DOUBLE_POP): Rename from TARGET_ADD_ESP_8.
8804 (TARGET_SINGLE_PUSH): Rename from TARGET_SUB_ESP_4.
8805 (TARGET_DOUBLE_POP): Rename from TARGET_SUB_ESP_8.
8806 * config/i386/i386.c (initial_ix86_tune_features)
8807 <X86_TUNE_SINGLE_POP>: Invert members.
8808 <X86_TUNE_DOUBLE_POP>: Ditto.
8809 <X86_TUNE_SINGLE_PUSH>: Ditto.
8810 <X86_TUNE_DOUBLE_PUSH>: Ditto.
8811 * config/i386/i386.md (*pop<mode>1): Rename from pop<mode>1.
8812 No longer exported.
8813 (push peephole2 patterns): Macroize peepholes using P mode iterator.
8814 Adjust for renamed TARGET_{SINGLE,DOUBLE}_PUSH defines.
8815 (pop peephole2 patterns): Macroize peepholes using P mode iterator.
8816 Adjust for renamed TARGET_{SINGLE,DOUBLE}_POP defines.
8817
8818 2010-09-01 Eric Botcazou <ebotcazou@adacore.com>
8819
8820 * gimplify.c (gimplify_init_constructor): Do not create a temporary for
8821 a volatile LHS if the constructor has only one element.
8822
8823 2010-09-01 Mikael Pettersson <mikpe@it.uu.se>
8824
8825 PR bootstrap/45321
8826 * tree.c (stdarg_p): Make fntype parameter const.
8827 * tree.h (stdarg_p): Likewise.
8828 (function_args_iterator): Remove unused fntype field.
8829 (function_args_iter_init): Do not initialize fntype
8830 field. Make fntype parameter const.
8831
8832 2010-09-01 Richard Guenther <rguenther@suse.de>
8833
8834 * tree-vrp.c (adjust_range_with_scev): Use number of iteration
8835 estimate.
8836 (vrp_visit_phi_node): Delay using SCEV till we balloon the range.
8837 (execute_vrp): Compute number of iteration estimates.
8838 * cfgloop.h (estimate_numbers_of_iterations_loop): Adjust prototype.
8839 * tree-flow.h (estimate_numbers_of_iterations): Likewise.
8840 * tree-data-ref.c (estimated_loop_iterations): Adjust.
8841 * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop):
8842 Infer loop bounds from undefined behavior based on a new parameter.
8843 (estimate_numbers_of_iterations): Likewise.
8844 (scev_probably_wraps_p): Adjust.
8845 * tree-ssa-loop.c (tree_ssa_loop_bounds): Likewise.
8846
8847 2010-09-01 Nick Clifton <nickc@redhat.com>
8848
8849 * config/stormy16/stormy16.c: Use REG_P, MEM_P and CONST_INT_P
8850 where appropriate.
8851 (xstormy16_legitimate_address_p): Use true and false instead of 1
8852 and 0.
8853 (xstormy16_expand_prologue): Delete unused local variable 'insn'.
8854 (xstormy16_function_arg): Use FIRST_ARGUMENT_REGNUM in place of
8855 magic constant 2.
8856 (xstormy16_expand_call): Fix comment at start of function.
8857
8858 2010-09-01 Nick Clifton <nickc@redhat.com>
8859
8860 * config/rx/rx.c (rx_expand_prologue): Do not adjust frame size
8861 when pushing accumulator register.
8862 (rx_get_stack_layout): Always save call clobbered registers inside
8863 interrupt handlers.
8864 * config/rx/rx-modes.def: Fix descriptive comment at start of file.
8865
8866 2010-09-01 Uros Bizjak <ubizjak@gmail.com>
8867
8868 * config.gcc (i[34567]86-*-freebsd*, x86_64-*-freebsd*): Add
8869 i386/t-fprules-softfp and soft-fp/t-softfp to tmake_file.
8870
8871 * libgcc-std.ver (GCC_4.6.0): Define version.
8872
8873 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
8874
8875 * tree-nested.c (convert_all_function_calls): Iterate until after the
8876 sum of static chains in the nest doesn't change.
8877
8878 2010-08-31 Anatoly Sokolov <aesok@post.ru>
8879
8880 * config/m32c/m32c.c (classes_intersect): Remove.
8881 (m32c_preferred_reload_class, m32c_secondary_reload_class): Use
8882 reg_classes_intersect_p instead of classes_intersect.
8883 (class_can_hold_mode): Change arguments type from enum reg_class to
8884 reg_class_t. Use reg_class_contents instead of class_contents.
8885 (m32c_register_move_cost): Make static. Change arguments type from
8886 enum reg_class to reg_class_t. Use reg_classes_intersect_p instead of
8887 classes_intersect. Use reg_class_contents instead of class_contents.
8888 (m32c_memory_move_cost): Make static. Change arguments type from
8889 enum reg_class to reg_class_t.
8890 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
8891 * config/m32c/m32c.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
8892 * config/m32c/m32c-protos.h (m32c_register_move_cost,
8893 m32c_memory_move_cost): Remove.
8894
8895 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
8896
8897 * config/arm/arm-protos.h (arm_function_arg_advance): Delete.
8898 (arm_function_arg): Delete.
8899 (arm_needs_doubleword_align): Take a const_tree.
8900 * config/arm/arm.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8901 * config/arm/arm.c (aapcs_select_call_coproc): Take a const_tree.
8902 (aapcs_layout_arg, arm_needs_doubleword_align): Likewise.
8903 (arm_function_arg): Make static. Take a const_tree and a bool.
8904 (arm_function_arg_advance): Likewise.
8905 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8906
8907 2010-08-31 Andi Kleen <ak@linux.intel.com>
8908
8909 * common.opt (fwhopr=): Update for -fwhopr=jobserver
8910 * doc/invoke.texi (fwhopr): Document -fwhopr=jobserver.
8911 * lto-wrapper.c (run_gcc): Add jobserver mode.
8912 * opts.c (common_handle_option): Fix OPT_fwhopr for non numeric
8913 argument.
8914
8915 2010-08-31 Uros Bizjak <ubizjak@gmail.com>
8916
8917 * config/i386/i386.md (popdi1): Rewrite using POST_INC memory operand.
8918 (popsi1): Ditto.
8919 (*popdi1_epilogue): Ditto.
8920 (*popsi1_epilogue): Ditto.
8921 (popsi, popdi peephole2 patterns): Update peepholes for changed
8922 pop{si,di}1 and *pop{si,di}1_epilogue patterns.
8923
8924 (pop<mode>1): Macroize insn from pop{si,di}1 using P code iterator.
8925 (*pop<mode>1_epilogue): Ditto from *pop{si,di}1_epilogue.
8926
8927 * config/i386/i386.c (*ix86_gen_pop1): Remove indirect function.
8928 (override_options): Do not initialize removed ix86_gen_pop1.
8929 (gen_pop): New static function.
8930 (ix86_expand_prologue): Use gen_pop instead of ix86_gen_pop1.
8931 (release_scratch_register_on_entry): Ditto.
8932 (ix86_restore_reg_using_pop): Ditto.
8933 (ix86_expand_epilogue): Ditto.
8934
8935 2010-08-31 Jakub Jelinek <jakub@redhat.com>
8936
8937 PR middle-end/45461
8938 * builtins.c (dummy_object): Return a MEM_REF instead of INDIRECT_REF.
8939
8940 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
8941
8942 * config/fr30/fr30.c (fr30_move_double): Delete `dregno' and extra
8943 semicolons.
8944
8945 2010-08-31 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8946
8947 * doc/extend.texi: Fix documentation of the return value of
8948 __builtin_choose_expr.
8949
8950 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
8951
8952 * config/v850/v850-protos.h (function_arg): Delete.
8953 * config/v850/v850.h (FUNCTION_ARG): Delete.
8954 (FUNCTION_ARG_ADVANCE): Move code to...
8955 * config/v850/v850.c (v850_function_arg_advance): ...here.
8956 (v850_function_arg): Make static. Take a const_tree and a bool.
8957 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8958
8959 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
8960
8961 * config/m32r/m32r.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Move
8962 these...
8963 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
8964 ...and these...
8965 * config/m32r/m32r.c (m32r_function_arg, m32r_function_arg_advance):
8966 ..to here..
8967 (ROUND_ADVANCE, ROUND_ADVANCE_ARG, ROUND_ADVANCE_CUM, PASS_IN_REG_P):
8968 ...and here.
8969 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8970
8971 2010-08-31 Nathan Froyd <froydnj@codesourcery.com>
8972
8973 * config/rx/rx-protos.h (rx_function_arg, rx_function_arg_size):
8974 Delete.
8975 * config/rx/rx.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
8976 * config/rx/rx.c (rx_function_arg_size): Make static.
8977 (rx_function_arg): Likewise.
8978 (rx_function_arg_advance): New function.
8979 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
8980
8981 2010-08-31 John Tytgat <John.Tytgat@aaug.net>
8982
8983 * config/arm/arm.c (arm_override_options): Remove superfluous test.
8984 Fix indentation.
8985
8986 2010-08-31 Eric Botcazou <ebotcazou@adacore.com>
8987
8988 * dwarf2out.c (gen_decl_die) <CONST_DECL>: Do not skip in Ada.
8989 (dwarf2out_decl) <CONST_DECL>: Likewise.
8990
8991 2010-08-30 Eric Botcazou <ebotcazou@adacore.com>
8992
8993 Stack usage support
8994 * common.opt (-fstack-usage): New option.
8995 * doc/invoke.texi (Debugging options): Document it.
8996 * builtins.c (expand_builtin_apply): Pass TRUE as 4th argument to
8997 allocate_dynamic_stack_space.
8998 (expand_builtin_alloca): Add 4th bool parameter CANNOT_ACCUMULATE
8999 and propagate it to allocate_dynamic_stack_space.
9000 (expand_builtin) <BUILT_IN_ALLOCA>: Adjust for above change.
9001 * calls.c (initialize_argument_information): Pass TRUE as 4th
9002 argument to allocate_dynamic_stack_space.
9003 (expand_call): Set current_function_has_unbounded_dynamic_stack_size
9004 to 1 when pushing a variable-sized argument onto the stack. Pass
9005 TRUE as 4th argument to allocate_dynamic_stack_space.
9006 Update current_function_pushed_stack_size.
9007 (emit_library_call_value_1): Likewise.
9008 * explow.c (allocate_dynamic_stack_space): Add 4th bool parameter
9009 CANNOT_ACCUMULATE. If flag_stack_usage, look into the size and
9010 attempt to find an upper bound. Remove redundant code for the
9011 SETJMP_VIA_SAVE_AREA case.
9012 * expr.h (allocate_dynamic_stack_space): Add 4th bool parameter.
9013 * function.h (struct stack_usage): New structure.
9014 (current_function_static_stack_size): New macro.
9015 (current_function_dynamic_stack_size): Likewise.
9016 (current_function_pushed_stack_size): Likewise.
9017 (current_function_dynamic_alloc_count): Likewise.
9018 (current_function_has_unbounded_dynamic_stack_size): Likewise.
9019 (current_function_allocates_dynamic_stack_space): Likewise.
9020 (struct function): Add new field 'su'.
9021 * function.c (instantiate_virtual_regs): If SETJMP_VIA_SAVE_AREA,
9022 add the value of the dynamic offset to the dynamic stack usage.
9023 (gimplify_parameters): Set ALLOCA_FOR_VAR_P on call to BUILT_IN_ALLOCA
9024 for variable-sized objects.
9025 (prepare_function_start): Allocate cfun->su if flag_stack_usage.
9026 (rest_of_handle_thread_prologue_and_epilogue): Call output_stack_usage.
9027 * gimplify.c (gimplify_decl_expr): Set ALLOCA_FOR_VAR_P on call to
9028 BUILT_IN_ALLOCA for variable-sized objects.
9029 * output.h (output_stack_usage): Declare.
9030 * toplev.c (stack_usage_file): New file pointer.
9031 (output_stack_usage): New function.
9032 (open_auxiliary_file): Likewise.
9033 (lang_dependent_init): Open file if flag_stack_usage is set.
9034 (finalize): Close file if stack_usage_file is not null.
9035 * tree.h (ALLOCA_FOR_VAR_P): New macro.
9036 * config/alpha/alpha.c (compute_frame_size): New function.
9037 (alpha_expand_prologue): Use it.
9038 (alpha_start_function): Likewise.
9039 (alpha_expand_epilogue): Likewise. Set stack usage info.
9040 * config/i386/i386.c (ix86_expand_prologue): Likewise.
9041 * config/ia64/ia64.c (ia64_expand_prologue): Likewise.
9042 * config/mips/mips.c (mips_expand_prologue): Likewise.
9043 * config/pa/pa.c (hppa_expand_prologue): Likewise.
9044 * config/rs6000/rs6000.c (rs6000_emit_prologue): Likewise.
9045 * config/sparc/sparc.c (sparc_expand_prologue): Likewise.
9046
9047 2010-08-30 Zdenek Dvorak <ook@ucw.cz>
9048
9049 PR tree-optimization/45427
9050 * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Rewritten.
9051 Handle the case that the exit is never taken correctly.
9052 (number_of_iterations_ne): Pass exit_must_be_taken to
9053 number_of_iterations_ne_max.
9054
9055 2010-08-30 Catherine Moore <clm@codesourcery.com>
9056
9057 * config/mips/mips.h (BASE_DRIVER_SELF_SPECS):
9058 Infer -mdspr2 for the the 74K.
9059
9060 2010-08-30 Jakub Jelinek <jakub@redhat.com>
9061
9062 PR debug/45419
9063 * tree-ssa-live.c (dump_enumerated_decls): Clear the whole wi variable.
9064
9065 PR middle-end/45423
9066 * gimplify.c (goa_stabilize_expr): Handle TRUTH_NOT_EXPR
9067 and TRUTH_{AND,OR,XOR}_EXPR.
9068 * c-parser.c (c_parser_omp_atomic): Handle boolean
9069 {PRE,POST}_{INC,DEC}REMENT.
9070
9071 2010-08-30 Nathan Froyd <froydnj@codesourcery.com>
9072
9073 * config/xtensa/xtensa-protos.h (function_arg_advance): Delete.
9074 (function_arg): Delete.
9075 * config/xtensa/xtensa.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9076 (FUNCTION_INCOMING_ARG): Delete.
9077 * config/xtensa/xtensa.c (function_arg_advance): Rename to...
9078 (xtensa_function_arg_advance): ...this. Make static. Take a const_tree
9079 and a bool.
9080 (function_arg): Rename to...
9081 (xtensa_function_arg_1): ...this. Make static. Take a const_tree and
9082 a bool.
9083 (xtensa_function_arg, xtensa_function_incoming_arg): Nex functions.
9084 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9085 (TARGET_FUNCTION_INCOMING_ARG): Define.
9086
9087 2010-08-30 Richard Guenther <rguenther@suse.de>
9088
9089 PR tree-optimization/21602
9090 * builtins.c (fold_builtin_memory_op): Fold memmove to memcpy
9091 using points-to information.
9092
9093 2010-08-30 H.J. Lu <hongjiu.lu@intel.com>
9094
9095 * config/linux.h (TARGET_HAS_SINCOS): Replace | with ||.
9096
9097 2010-08-30 Richard Guenther <rguenther@suse.de>
9098
9099 PR tree-optimization/45449
9100 * tree-ssa-live.c (remove_unused_locals): Also remove address-taken
9101 variables.
9102
9103 2010-08-30 Joseph Myers <joseph@codesourcery.com>
9104
9105 * opts.h (CL_ERR_NEGATIVE): Define.
9106 * opts.c (unknown_option_callback): Don't postpone warnings for
9107 options marked with CL_ERR_NEGATIVE.
9108 * opts-common.c (decode_cmdline_option): Set CL_ERR_NEGATIVE error
9109 for negative versions of CL_REJECT_NEGATIVE options.
9110
9111 2010-08-30 Uros Bizjak <ubizjak@gmail.com>
9112
9113 * config/i386/i386.md (zero_extendsidi2_1): Rename from
9114 zero_extendsidi2_32.
9115 (zero_extend<mode>di2): Macroize insn from zero_extend{qi,hi}di2
9116 using SWI12 mode iterator.
9117 (zero_extendhisi2_and): Merge insn pattern and corresponding spliter
9118 to define_insn_and_split pattern.
9119 (zero_extendqi<mode>2): Macroize expander from zero_extendqi{hi,si}2
9120 using SWI24 mode iterator.
9121 (*zero_extendqi<mode>2_and): Macroize insn from
9122 *zero_extendqi{hi,si}2_and using SWI24 mode iterator.
9123 (*zero_extendqi<mode>2_movzbl_and): Macroize insn from
9124 *zero_extendqihi2_movzbw_and and *zero_extendqisi2_movzbl_and using
9125 SWI24 mode iterator.
9126 (*zero_extendqi<mode>2_movzbl): Ditto from
9127 *zero_extendqi{hi,si}2_movzbl.
9128 (extendsidi2_1): Rename from extendsidi2_32.
9129 (extend<mode>di2): Macroize insn from extend{qi,hi}di2 using
9130 SWI12 mode iterator.
9131
9132 2010-08-29 Eric Botcazou <ebotcazou@adacore.com>
9133
9134 * config/ia64/ia64.h (HARD_REGNO_NREGS): Return 1 for CCImode in
9135 general purpose registers.
9136 (HARD_REGNO_MODE_OK): Accept CCImode in general purpose registers.
9137 * config/ia64/ia64.md (*movcci): Change to named pattern. Deal
9138 with general purpose registers and memory operands. Add associated
9139 CCImode post-reload splitter.
9140 * config/ia64/div.md: Change BImode to CCImode throughout.
9141
9142 2010-08-28 Eric Botcazou <ebotcazou@adacore.com>
9143
9144 * config/ia64/ia64.md (cstorebi4): Fix thinko.
9145
9146 2010-08-28 Hariharan Sandanagobalane <hariharan@picochip.com>
9147
9148 * config/picochip/picochip.c (reorder_var_tracking_notes): This
9149 function was dropping debug insns which caused PR45299.
9150
9151 2010-08-28 Uros Bizjak <ubizjak@gmail.com>
9152
9153 * config/i386/sse.md (extsuffix): New code attribute.
9154 (sse4_1_<code>v8qiv8hi2): Macroize insn from sse4_1_extendv8qiv8hi2
9155 and sse4_1_zero_extendv8qiv8hi2 using any_extend code iterator.
9156 (sse4_1_<code>v4qiv4si2): Ditto from sse4_1_extendv4qiv4si2
9157 and sse4_1_zero_extendv4qiv4si2.
9158 (sse4_1_<code>v2qiv2di2): Ditto from sse4_1_extendv2qiv2di2
9159 and sse4_1_zero_extendv2qiv2di2.
9160 (sse4_1_<code>v4hiv4si2): Ditto from sse4_1_extendv4hiv4si2
9161 and sse4_1_zero_extendv4hiv4si2.
9162 (sse4_1_<code>v2hiv2di2): Ditto from sse4_1_extendv2hiv2di2
9163 and sse4_1_zero_extendv2hiv2di2.
9164 (sse4_1_extendv2siv2di2): Ditto from sse4_1_extendv2siv2di2
9165 and sse4_1_zero_extendv2siv2di2
9166
9167 (<s>mulv8hi3_highpart): Macroize expander from {u,s}mulv8hi3_highpart
9168 using any_extend code iterator.
9169 (*avx_<s>mulv8hi3_highpart): Macroize insn from
9170 *avx_{u,s}mulv8hi3_highpart using any_extend code iterator.
9171 (*<s>mulv8hi3_highpart): Ditto from *{u,s}mulv8hi3_highpart.
9172
9173 * config/i386/i386.c (ix86_expand_sse4_unpack): Update for renamed
9174 gen_sse4_1_sign_extend* functions.
9175 (struct builtin_description bdesc_args): Ditto.
9176
9177 2010-08-27 Xinliang David Li <davidxl@google.com>
9178
9179 PR/45422
9180 * tree-ssa-loop-ivopts.c (iv_ca_get_num_inv_exprs): Remove.
9181 (iv_ca_set_no_cp): Update used inv expr count.
9182 (iv_ca_set_cp): Ditto.
9183 (iv_ca_new): Initialize new member.
9184 (iv_ca_free): Free memory.
9185
9186 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
9187
9188 * config/sh/sh-protos.h (sh_function_arg): Delete.
9189 (sh_function_arg_advance): Delete.
9190 * config/sh/sh.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9191 (PASS_IN_REG_P): Eliminate cast.
9192 * config/sh/sh.c (sh_function_arg_advance): Make static. Take a
9193 const_tree and a bool.
9194 (sh_function_arg): Likewise.
9195 (sh_output_mi_thunk): Call sh_function_arg_advance) and
9196 sh_function_arg.
9197 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9198
9199 2010-08-27 Naveen H.S <naveen.S@kpitcummins.com>
9200 Kaz Kojima <kkojima@gcc.gnu.org>
9201
9202 * config/sh/sh.c (push_regs): Emit movml for interrupt handler
9203 when possible.
9204 (sh_expand_epilogue): Likewise.
9205 * config/sh/sh.md (movml_push_banked): New insn.
9206 (movml_pop_banked): Likewise.
9207
9208 2010-08-28 Bernd Schmidt <bernds@codesourcery.com>
9209
9210 * genautomata.c (gen_regexp_repeat, gen_regexp_allof,
9211 gen_regexp_oneof, gen_regexp_sequence): Use the string found
9212 in vector element 0 rather than the original string when there's
9213 only one element.
9214 (gen_regexp): Remove extra semicolon.
9215
9216 * config/arm/vfp.md (arm_movsi_vfp, thumb2_movsi_vfp, movsf_vfp,
9217 thumb2_movsf_vfp): Set attribute "insn".
9218 * config/arm/arm.md (arm_ashrdi3_1bit, arm_lshrdi3_1bit, not_shiftsi,
9219 not_shiftsi_compare0, not_shiftsi_compare0_scratch, arm_one_cmplsi2,
9220 thumb1_one_cmplsi2, notsi_compare0, notsi_compare0_scratch,
9221 arm_zero_extendsidi2, arm_extendsidi2, thumb1_movdi_insn,
9222 arm_movsi_insn, movhi_insn_arch4, movhi_bytes, arm_movqi_insn,
9223 thumb1_movqi_insn arm32_movhf, thumb1_movhf, arm_movsf_soft_insn,
9224 thumb1_movsf_insn, thumb_movdf_insn, mov_scc, mov_negscc, mov_notscc,
9225 movsicc_insn, movsfcc_soft_insn, and_scc, cond_move, if_move_not,
9226 if_not_move, if_shift_move, if_move_shift, if_shift_shift,
9227 if_not_arith, if_arith_not, cond_move_not): Likewise.
9228
9229 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
9230
9231 * config/rs6000/rs6000-protos.h (rs6000_address_for_fpconvert):
9232 New declaration.
9233 (rs6000_allocate_stack_temp): Ditto.
9234 (rs6000_expand_convert_si_to_sfdf): Ditto.
9235
9236 * config/rs6000/rs6000.c (rs6000_override_options): Adjust long
9237 line. Update the options set if power6 or power7 server/embedded
9238 type options are used. If we give a warning for no vsx under
9239 -mcpu=power7 -mno-altivec, mark -mvsx as an explicit option.
9240 (rs6000_allocate_stack_temp): New function to allocate a stack
9241 tempoary and adjust the address so it meets either REG+OFFSET or
9242 REG+REG addressing requirements.
9243 (rs6000_address_for_fpconvert): Adjust REG+OFFSET addresses so
9244 that they can be used with the LFIWAX/LFIWZX instrucitons.
9245 (rs6000_expand_convert_si_to_sfdf): New helper funciton for
9246 converting signed/unsigned SImode to either SFmode/DFmode.
9247
9248 * config/rs6000/rs6000.h (TARGET_FCFID): New macros to determine
9249 whether certain instructions can be generated.
9250 (TARGET_FCTIDZ): Ditto.
9251 (TARGET_STFIWX): Ditto.
9252 (TARGET_LFIWAX): Ditto.
9253 (TARGET_LFIWZX): Ditto.
9254 (TARGET_FCFIDS): Ditto.
9255 (TARGET_FCFIDU): Ditto.
9256 (TARGET_FCFIDUS): Ditto.
9257 (TARGET_FCTIDUZ): Ditto.
9258 (TARGET_FCTIWUZ): Ditto.
9259
9260 * config/rs6000/rs6000.md (UNSPEC_FCTIW): New unspec constants.
9261 (UNSPEC_FCTID): Ditto.
9262 (UNSPEC_LFIWAX): Ditto.
9263 (UNSPEC_LFIWZX): Ditto.
9264 (UNSPEC_FCTIWUZ): Ditto.
9265 (rreg): Use correct constraints.
9266 (SI_CONVERT_FP): New mode attribute for floating point conversion
9267 tests.
9268 (E500_CONVERT): Ditto.
9269 (lfiwax): New insns for converting from integer to floating point
9270 utilizing newer instructions. Attempt to optimize conversions
9271 that come from memory so that we don't load the value into a GPR,
9272 spill it to the stack and reload it into a FPR.
9273 (floatsi<mode>2_lfiwax): Ditto.
9274 (floatsi<mode>2_lfiwax_mem): Ditto.
9275 (floatsi<mode>2_lfiwax_mem2): Ditto.
9276 (lfiwzx): Ditto.
9277 (floatunssi<mode>2_lfiwzx): Ditto.
9278 (floatunssi<mode>2_lfiwzx_mem): Ditto.
9279 (floatunssi<mode>2_lfiwzx_mem2): Ditto.
9280 (floatdidf2_mem): Ditto.
9281 (floatunsdidf2_fcfidu): Ditto.
9282 (floatunsdidf2_mem): Ditto.
9283 (floatunsdisf2): Ditto.
9284 (floatunsdisf2_fcfidus): Ditto.
9285 (floatunsdisf2_mem): Ditto.
9286 (floatsidf2): Add support for LFIWAX/LFIWZX/FCFIDS/FCFIDU/FCFIDUS.
9287 Use FCFID on 32-bit hosts that support it.
9288 (floatsidf2_internal): Ditto.
9289 (floatunssisf2): Ditto.
9290 (floatunssidf2): Ditto.
9291 (floatunssidf2_internal): Ditto.
9292 (floatsisf2): Ditto.
9293 (floatdidf2): Ditto.
9294 (floatdidf2_fpr): Ditto.
9295 (floatunsdidf2): Ditto.
9296 (floatdisf2): Ditto.
9297 (floatdisf2_fcfids): Ditto.
9298 (floatdisf2_internal1): Ditto.
9299 (fixuns_truncsfsi2): Delete, merge into common pattern for both
9300 SF/DF. Add power7 support.
9301 (fix_truncsfsi2): Ditto.
9302 (fixuns_truncdfsi2): Ditto.
9303 (fixuns_truncdfdi2): Ditto.
9304 (fix_truncdfsi2): Ditto.
9305 (fix_truncdfsi2_internal): Ditto.
9306 (fix_truncdfsi2_internal_gfxopt): Ditto.
9307 (fix_truncdfsi2_mfpgpr): Ditto.
9308 (fctiwz): Ditto.
9309 (btruncdf2): Ditto.
9310 (btruncdf2_fpr): Ditto.
9311 (btructsf2): Ditto.
9312 (ceildf2): Ditto.
9313 (ceildf2_fpr): Ditto.
9314 (ceilsf2): Ditto.
9315 (floordf2): Ditto.
9316 (floordf2_fpr): Ditto.
9317 (floorsf2): Ditto.
9318 (rounddf2): Ditto.
9319 (rounddf2_fpr): Ditto.
9320 (roundsf2): Ditto.
9321 (fix_trunc<mode>si2): Combine SF/DF conversion into one insn.
9322 (fix_trunc<mode>di2): Ditto.
9323 (fixuns_trunc<mode>si2): Ditto.
9324 (fixuns_trunc<mode>di2): Ditto.
9325 (fctiwz_<mode>): Ditto.
9326 (btrunc<mode>2): Ditto.
9327 (btrunc<mode>2_fpr): Ditto.
9328 (ceil<mode>2): Ditto.
9329 (ceil<mode>2_fpr): Ditto.
9330 (floor<mode>2): Ditto.
9331 (float<mode>2_fpr): Ditto.
9332 (round<mode>2): Ditto.
9333 (round<mode>2_fpr): Ditto.
9334 (fix_trunc<mode>si2_stfiwx): New insn for machines with STFIWX.
9335 (fixuns_trunc<mode>si2_stfiwx): Ditto.
9336 (fix_truncdfsi2_internal): Ditto.
9337 (fix_trunc<mode>si2_mem): Combiner pattern to eliminate storing
9338 converted value on stack, loaded into GPR, and then stored into
9339 the final destination.
9340 (fix_trunc<mode>di2_fctidz): New pattern for targets supporting
9341 FCTIDZ.
9342 (lrint<mode>di2): New insn, provide the lrint builtin functions.
9343 (ftruncdf2): Delete, unused.
9344 (fix_trunctfsi2_internal): Use gen_fctiwz_df, not gen_fctiwz.
9345
9346 * config/rs6000/vsx.md (toplevel): Update copyright year.
9347 (VSr2): Use "ws" contraint for DFmode, not "!r#r".
9348 (VSr3): Ditto.
9349
9350 2010-08-27 Basile Starynkevitch <basile@starynkevitch.net>
9351 Jeremie Salvucci <jeremie.salvucci@free.fr>
9352
9353 * gengtype.c (output_type_enum): Test the right union member.
9354
9355 2010-08-27 Uros Bizjak <ubizjak@gmail.com>
9356
9357 PR target/41484
9358 * config/i386/sse.md (sse4_1_extendv8qiv8hi2): Also accept memory
9359 operands for operand 1.
9360 (sse4_1_extendv4qiv4si2): Ditto.
9361 (sse4_1_extendv2qiv2di2): Ditto.
9362 (sse4_1_extendv4hiv4si2): Ditto.
9363 (sse4_1_extendv2hiv2di2): Ditto.
9364 (sse4_1_extendv2siv2di2): Ditto.
9365 (sse4_1_zero_extendv8qiv8hi2): Ditto.
9366 (sse4_1_zero_extendv4qiv4si2): Ditto.
9367 (sse4_1_zero_extendv2qiv2di2): Ditto.
9368 (sse4_1_zero_extendv4hiv4si2): Ditto.
9369 (sse4_1_zero_extendv2hiv2di2): Ditto.
9370 (sse4_1_zero_extendv2siv2di2): Ditto.
9371 (*sse4_1_extendv8qiv8hi2): Remove insn pattern.
9372 (*sse4_1_extendv4qiv4si2): Ditto.
9373 (*sse4_1_extendv2qiv2di2): Ditto.
9374 (*sse4_1_extendv4hiv4si2): Ditto.
9375 (*sse4_1_extendv2hiv2di2): Ditto.
9376 (*sse4_1_extendv2siv2di2): Ditto.
9377 (*sse4_1_zero_extendv8qiv8hi2): Ditto.
9378 (*sse4_1_zero_extendv4qiv4si2): Ditto.
9379 (*sse4_1_zero_extendv2qiv2di2): Ditto.
9380 (*sse4_1_zero_extendv4hiv4si2): Ditto.
9381 (*sse4_1_zero_extendv2hiv2di2): Ditto.
9382 (*sse4_1_zero_extendv2siv2di2): Ditto.
9383
9384 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
9385
9386 * config/mips/mips-protos.h (mips_function_arg_advance): Delete
9387 (mips_function_arg): Delete.
9388 (mips_function_arg_boundary): Take a const_tree.
9389 * config/mips/mips.c (mips_function_arg_boundary): Likewise.
9390 (mips_arg_info): Likewise.
9391 (mips_setup_incoming_varargs): Call mips_function_arg_advance
9392 instead of FUNCTION_ARG_ADVANCE.
9393 (mips_function_arg_advance): Adjust prototype. Make static.
9394 (mips_function_arg): Likewise.
9395 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9396 * config/mips/mips.h (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Delete.
9397
9398 2010-08-27 Nathan Froyd <froydnj@codesourcery.com>
9399
9400 * config/rs6000/rs6000.h (FUNCTION_ARG, FUNCTION_ARG_ADVANCE): Delete.
9401 * config/rs6000/rs6000-protos.h (function_arg_advance): Delete.
9402 (function_arg): Delete.
9403 (function_arg_boundary): Take a const_tree.
9404 * config/rs6000/rs6000.c (function_arg_boundary): Likewise.
9405 (rs6000_spe_function_arg): Likewise.
9406 (rs6000_parm_start): Likewise.
9407 (rs6000_arg_size): Likewise.
9408 (rs6000_darwin64_record_arg_advance_recurse): Likewise.
9409 (rs6000_darwin64_record_arg): Likewise. Take a bool instead of an int.
9410 (rs6000_mixed_function_arg): Likewise.
9411 (function_arg): Rename to...
9412 (rs6000_function_arg): ...this.
9413 (function_arg_advance): Rename to...
9414 (rs6000_function_arg_advance_1): ...this
9415 (rs6000_function_arg_advance): New function. Call it.
9416 (setup_incoming_varargs): Call rs6000_function_arg_advance_1.
9417 (rs6000_return_in_memory): Adjust call to rs6000_darwin64_record_arg.
9418 (rs6000_function_value): Likewise.
9419 (TARGET_FUNCTION_ARG, TARGET_FUNCTION_ARG_ADVANCE): Define.
9420
9421 2010-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9422
9423 * config/arm/arm.md (enabled): Test the value of arch_enabled
9424 rather than just using it.
9425
9426 2010-08-27 Olivier Hainque <hainque@adacore.com>
9427 Eric Botcazou <ebotcazou@adacore.com>
9428
9429 * dse.c (group_info.base_mem, get_group_info): Use BLKmode to
9430 cover all the possible offsets from this base.
9431 (scan_reads_nospill): Pass base_mem's mode to canon_true_dependence.
9432
9433 2010-08-26 Jakub Jelinek <jakub@redhat.com>
9434
9435 PR tree-optimization/44485
9436 * calls.c (flags_from_decl_or_type): For const or pure
9437 noreturn functions return ECF_LOOPING_CONST_OR_PURE|ECF_NORETURN
9438 together with ECF_CONST resp. ECF_PURE.
9439 * builtins.c (expand_builtin): Use flags_from_decl_or_type
9440 instead of querying flags directly.
9441 * tree-ssa-loop-niter.c (finite_loop_p): Likewise.
9442 * tree-ssa-dce.c (find_obviously_necessary_stmts): Likewise.
9443
9444 2010-08-26 Richard Guenther <rguenther@suse.de>
9445
9446 PR tree-optimization/45255
9447 * tree.c (decl_address_invariant_p): DECL_DLLIMPORT_P statics
9448 and externals are also invariant.
9449
9450 2010-08-25 Jakub Jelinek <jakub@redhat.com>
9451
9452 PR rtl-optimization/44858
9453 * combine.c (try_combine): If recog_for_combine added CLOBBERs to
9454 newi2pat, make sure they don't affect newpat.
9455
9456 PR rtl-optimization/45400
9457 * combine.c (simplify_shift_const_1) <case SUBREG>: Only use
9458 SUBREG_REG if both modes are of MODE_INT class.
9459
9460 2010-08-25 Julian Brown <julian@codesourcery.com>
9461
9462 * config/arm/arm.c (arm_issue_rate): Return 2 for Cortex-A5.
9463 * config/arm/arm.md (generic_sched): No for Cortex-A5.
9464 (generic_vfp): Likewise.
9465 (cortex-a5.md): Include.
9466 * config/arm/cortex-a5.md: New.
9467
9468 2010-08-25 Richard Guenther <rguenther@suse.de>
9469
9470 * alias.c (get_alias_set): Assign a single alias-set to all pointers.
9471 * gimple.c (gimple_get_alias_set): Remove special handling
9472 for pointers.
9473
9474 2010-08-25 Bernd Schmidt <bernds@codesourcery.com>
9475
9476 PR middle-end/45355
9477 * combine.c (try_combine): Use reg_overlap_mentioned_p rather than
9478 dead_or_set_p when computing i0_feeds_i2_n.
9479
9480 * combine.c (find_split_point): Undo canonicalization of multiply-add
9481 to (minus x (mult)) when it seems likely that this will increase the
9482 chances of a split.
9483
9484 2010-08-25 Richard Guenther <rguenther@suse.de>
9485
9486 PR lto/44562
9487 * lto-streamer.c (lto_record_common_node): Do not mess with
9488 TYPE_CANONICAL when not in lto.
9489 * gimple.c (gimple_register_type): Likewise.
9490
9491 2010-08-25 Richard Guenther <rguenther@suse.de>
9492
9493 PR tree-optimization/45316
9494 * tree-ssa-pre.c (eliminate): Properly clean EH info.
9495
9496 2010-08-25 Richard Guenther <rguenther@suse.de>
9497
9498 PR tree-optimization/45393
9499 * tree-ssa-math-opts.c (execute_cse_sincos_1): Properly transfer
9500 and clean EH info. Avoid SSA update.
9501 (execute_cse_sincos): Cleanup the CFG if it has changed.
9502
9503 2010-08-25 Richard Guenther <rguenther@suse.de>
9504
9505 PR middle-end/45379
9506 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle
9507 TARGET_MEM_REF in alignment computation.
9508
9509 2010-08-25 Jakub Jelinek <jakub@redhat.com>
9510
9511 PR tree-optimization/45059
9512 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Strip useless
9513 type conversions from newop{1,2}. Assert t is a comparison and
9514 newop{1,2} after the stripping are gimple vals.
9515
9516 2010-08-25 Tejas Belagod <tejas.belagod@arm.com>
9517
9518 * config/arm/iterators.md (VU, SE, V_widen_l): New.
9519 (V_unpack, US): New.
9520 * config/arm/neon.md (vec_unpack<US>_hi_<mode>): Expansion for vmovl.
9521 (vec_unpack<US>_lo_<mode>): Likewise.
9522 (neon_vec_unpack<US>_hi_<mode>): Instruction pattern for vmovl.
9523 (neon_vec_unpack<US>_lo_<mode>): Likewise.
9524 (vec_widen_<US>mult_lo_<mode>): Expansion for vmull.
9525 (vec_widen_<US>mult_hi_<mode>): Likewise.
9526 (neon_vec_<US>mult_lo_<mode>"): Instruction pattern for vmull.
9527 (neon_vec_<US>mult_hi_<mode>"): Likewise.
9528 (neon_unpack<US>_<mode>): Widening move intermediate step for
9529 vectorizing without -mvectorize-with-neon-quad.
9530 (neon_vec_<US>mult_<mode>): Widening multiply intermediate step
9531 for vectorizing without -mvectorize-with-neon-quad.
9532 * config/arm/predicates.md (vect_par_constant_high): Check for
9533 high-half lanes of a vector.
9534 (vect_par_constant_low): Check for low-half lanes of a vector.
9535
9536 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
9537
9538 * tree-if-conv.c (struct ifc_dr): New.
9539 (IFC_DR): New.
9540 (DR_WRITTEN_AT_LEAST_ONCE): New.
9541 (DR_RW_UNCONDITIONALLY): New.
9542 (memref_read_or_written_unconditionally): Use the cached values
9543 when possible.
9544 (write_memref_written_at_least_once): Same.
9545 (if_convertible_loop_p): Initialize and free DR->aux fields.
9546
9547 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
9548
9549 * gimple.c (gimple_could_trap_p_1): Not static anymore.
9550 Pass an extra bool parameter include_mem.
9551 (gimple_could_trap_p): Adjust call to gimple_could_trap_p_1.
9552 (gimple_assign_rhs_could_trap_p): Same.
9553 * gimple.h (gimple_could_trap_p_1): Declared.
9554 * tree-data-ref.h (same_data_refs_base_objects): New.
9555 (same_data_refs): New.
9556 * tree-if-conv.c (memrefs_read_or_written_unconditionally): New.
9557 (write_memrefs_written_at_least_once): New.
9558 (ifcvt_memrefs_wont_trap): New.
9559 (operations_could_trap): New.
9560 (ifcvt_could_trap_p): New.
9561 (if_convertible_gimple_assign_stmt_p): Call ifcvt_could_trap_p.
9562 Gets a vector of data refs.
9563 (if_convertible_stmt_p): Same.
9564 (if_convertible_loop_p_1): New.
9565 (if_convertible_loop_p): Call if_convertible_loop_p_1.
9566
9567 2010-08-24 Sebastian Pop <sebastian.pop@amd.com>
9568
9569 * common.opt (ftree-loop-if-convert-stores): New flag.
9570 * doc/invoke.texi (ftree-loop-if-convert-stores): Documented.
9571 * tree-if-conv.c (ifc_temp_var): Pass an extra parameter GSI. Insert
9572 the created statement before GSI.
9573 (if_convertible_phi_p): Allow virtual phi nodes when
9574 flag_loop_if_convert_stores is set.
9575 (if_convertible_gimple_assign_stmt_p): Allow memory reads and writes
9576 Do not handle types that do not match is_gimple_reg_type.
9577 Remove loop and bb parameters. Call gimple_could_trap_p instead of
9578 when flag_loop_if_convert_stores is set, as LHS can contain
9579 memory refs.
9580 (if_convertible_stmt_p): Remove loop and bb parameters. Update calls
9581 to if_convertible_gimple_assign_stmt_p.
9582 (if_convertible_loop_p): Update call to if_convertible_stmt_p.
9583 (replace_phi_with_cond_gimple_assign_stmt): Renamed
9584 predicate_scalar_phi. Do not handle virtual phi nodes.
9585 (ifconvert_phi_nodes): Renamed predicate_all_scalar_phis.
9586 Call predicate_scalar_phi.
9587 (insert_gimplified_predicates): Insert the gimplified predicate of a BB
9588 just after the labels for flag_loop_if_convert_stores, otherwise
9589 insert the predicate in the end of the BB.
9590 (predicate_mem_writes): New.
9591 (combine_blocks): Call predicate_all_scalar_phis. When
9592 flag_loop_if_convert_stores is set, call predicate_mem_writes.
9593 (tree_if_conversion): Call mark_sym_for_renaming when
9594 flag_loop_if_convert_stores is set.
9595 (main_tree_if_conversion): Return TODO_update_ssa_only_virtuals when
9596 flag_loop_if_convert_stores is set.
9597
9598 2010-08-24 Anatoly Sokolov <aesok@post.ru>
9599
9600 * config/pa/pa.c (hppa_register_move_cost, pa_libcall_value,
9601 pa_function_value_regno_p, pa_print_operand_punct_valid_p): New.
9602 (pa_function_value): Make static.
9603 (override_options): Rename to...
9604 (pa_option_override): ...this. Make static.
9605 (TARGET_PRINT_OPERAND_PUNCT_VALID_P, TARGET_REGISTER_MOVE_COST,
9606 TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P,
9607 TARGET_OPTION_OVERRIDE): Define.
9608 * config/pa/pa.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P,
9609 LIBCALL_VALUE, REGISTER_MOVE_COST, PRINT_OPERAND_PUNCT_VALID_P):
9610 Remove.
9611 * config/pa/pa-protos.h (override_options): Remove.
9612
9613 2010-08-24 Richard Guenther <rguenther@suse.de>
9614
9615 PR middle-end/45379
9616 * tree-ssa-address.c (create_mem_ref_raw): Drop to MEM_REF
9617 if addr->index is NULL or zero.
9618 * tree-ssa-alias.c (indirect_refs_may_alias_p): Handle
9619 TARGET_MEM_REF more properly.
9620 (indirect_ref_may_alias_decl_p): Likewise.
9621 * emit-rtl.c (set_mem_attributes_minus_bitpos): Keep TARGET_MEM_REFs.
9622 * alias.c (ao_ref_from_mem): Handle TARGET_MEM_REF more properly.
9623
9624 2010-08-23 Anatoly Sokolov <aesok@post.ru>
9625
9626 * config/m32c/m32c.c (m32c_function_value_regno_p): Make static.
9627 (m32c_override_options): Rename to...
9628 (m32c_option_override): ...this. Make static.
9629 (TARGET_FUNCTION_VALUE_REGNO_P, TARGET_OPTION_OVERRIDE): Define.
9630 * config/m32c/m32c.h (OVERRIDE_OPTIONS, FUNCTION_VALUE_REGNO_P):
9631 Remove.
9632 * config/m32c/m32c-protos.h (m32c_override_options,
9633 m32c_function_value_regno_p): Remove.
9634
9635 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
9636
9637 * tree-ssa-loop-prefetch.c (gather_memory_references_ref) :
9638 Fix a typo in a previous commit.
9639
9640 2010-08-23 Kai Tietz <kai.tietz@onevision.com>
9641
9642 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost):
9643 Pre-initialize innerloop_iters to one.
9644
9645 2010-08-23 Changpeng Fang <changpeng.fang@amd.com>
9646
9647 * tree-flow.h (may_be_nonaddressable_p): New definition. Make the
9648 existing static function global.
9649
9650 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): This function
9651 is changed to global.
9652
9653 * tree-ssa-loop-prefetch.c (gather_memory_references_ref): Call
9654 may_be_nonaddressable_p on base, and don't collect this reference
9655 if the address of the base could not be taken.
9656
9657 2010-08-23 Michael Meissner <meissner@linux.vnet.ibm.com>
9658
9659 * config/rs6000/rs6000.opt (-mveclibabi=mass): New option to
9660 enable the compiler to autovectorize mathmetical functions for
9661 power7 using the Mathematical Acceleration Subsystem library.
9662
9663 * config/rs6000/rs6000.c (rs6000_veclib_handler): New variable to
9664 handle which vector math library we have.
9665 (rs6000_override_options): Add -mveclibabi=mass support.
9666 (rs6000_builtin_vectorized_libmass): New function to handle auto
9667 vectorizing math functions that are in the MASS library.
9668 (rs6000_builtin_vectorized_function): Call it.
9669
9670 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
9671 -mveclibabi=mass.
9672
9673 2010-08-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9674
9675 PR boehm-gc/34544
9676 * gthr-posix.h (__gthread_active_init): Delete.
9677 (__gthread_active_p): Do activity check here.
9678 Don't include errno.h on hppa-hpux. Update comment.
9679 * gthr-posix95.h (__gthread_active_init): Delete.
9680 (__gthread_active_p): Do activity check here.
9681 Don't include errno.h on hppa-hpux. Update comment.
9682 * config.gcc (hppa[12]*-*-hpux11*): Define extra_parts.
9683 * config/pa/pa64-hpux.h (LIB_SPEC): When -static is specified, only
9684 add -lpthread when -mt or -pthread is specified.
9685 * config/pa/pa-hpux11.h (LIB_SPEC): likewise.
9686 (LINK_GCC_C_SEQUENCE_SPEC): Define.
9687 * config/pa/t-pa-hpux11 (LIBGCCSTUB_OBJS): Define.
9688 (stublib.c, pthread_default_stacksize_np-stub.o,
9689 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o,
9690 $(T)libgcc_stub.a): Add methods.
9691 * config/pa/t-pa64 (LIBGCCSTUB_OBJS): Add pthread stubs.
9692 (stublib.c, pthread_default_stacksize_np-stub.o,
9693 pthread_mutex_lock-stub.o, pthread_mutex_unlock-stub.o): Add methods.
9694 * config/pa/stublib.c (pthread_default_stacksize_np, pthread_mutex_lock,
9695 pthread_mutex_unlock): New stubs.
9696
9697 2010-08-22 Joseph Myers <joseph@codesourcery.com>
9698
9699 * Makefile.in (gccspec.o, cppspec.o): Update dependencies.
9700 * common.opt (L, nodefaultlibs, nostdlib, pg, static): New
9701 options.
9702 * config/avr/avr.h (LIBSTDCXX): Remove initial "-l".
9703 * config/freebsd.h (MATH_LIBRARY_PROFILE): Remove initial "-l".
9704 * config/i386/djgpp.h (LIBSTDCXX): Remove initial "-l".
9705 * config/rs6000/aix.h (LIBSTDCXX_STATIC): Remove initial "-l".
9706 * config/s390/tpf.h (MATH_LIBRARY, LIBSTDCXX): Remove initial
9707 "-l".
9708 * cppspec.c: Include opts.h.
9709 (lang_specific_driver): Use cl_decoded_option structures.
9710 * doc/tm.texi.in (MATH_LIBRARY): Update documentation.
9711 * doc/tm.texi: Regenerate.
9712 * gcc.c (translate_options): Translate -d to -foutput-class-dir=.
9713 (driver_handle_option): Allow driver options needing no special
9714 processing.
9715 (process_command): Decode options before call to
9716 lang_specific_driver. Pass decoded options to
9717 lang_specific_driver.
9718 * gcc.h (lang_specific_driver): Update prototype.
9719 * gccspec.c: Include opts.h.
9720 (lang_specific_driver): Use cl_decoded_option structures.
9721 * opts-common.c (option_ok_for_language, generate_option,
9722 generate_option_input_file): New.
9723 (decode_cmdline_option): Use option_ok_for_language.
9724 (decode_cmdline_options_to_array): Use generate_option_input_file.
9725 (handle_generated_option): Use generate_option.
9726 * opts.h (generate_option, generate_option_input_file): Declare.
9727
9728 2010-08-22 Anatoly Sokolov <aesok@post.ru>
9729
9730 * config/mips/mips.c (mips_override_options): Rename to...
9731 (mips_option_override): ...this. Make static.
9732 (TARGET_OPTION_OVERRIDE): Define.
9733 (mips_in_small_data_p): Update comment.
9734 * config/mips/mips.h (OVERRIDE_OPTIONS): Remove.
9735 (FIXED_REGISTERS): Update comment.
9736 * config/mips/mips-protos.h (mips_override_options): Remove.
9737
9738 2010-08-21 Olivier Hainque <hainque@adacore.com>
9739
9740 * config/rs6000/vxworks.h (TARGET_OS_CPP_BUILTINS): Define __PPC__.
9741
9742 2010-08-21 Olivier Hainque <hainque@adacore.com>
9743
9744 * config/rs6000/vxworks.h (PREFERRED_STACK_BOUNDARY,
9745 ABI_STACK_BOUNDARY): Ensure STACK_BOUNDARY is honored despite EABI.
9746
9747 2010-08-20 Jan Hubicka <jh@suse.cz>
9748
9749 * tree-pass.h (pass_ipa_cdtor_merge): New function.
9750 * cgraphunit.c (static_ctors, static_dtors): Move to ipa.c; make
9751 heap allocated.
9752 (record_cdtor_fn): Move to ipa.c; do not test for
9753 have_ctors_dtors.
9754 (build_cdtor): Move to ipa.c; add code avoiding construction
9755 when target have ctors/dtors and there is only one ctor/dtor at given
9756 priority.
9757 (compare_ctor, compare_dtor): Move to ipa.c; use DECL_UID to stabilize
9758 sort; reverse order of constructors.
9759 (cgraph_build_cdtor_fns): Move to ipa.c; rename to build_cdtor_fns.
9760 (cgraph_finalize_function): Do not call record_cdtor_fn.
9761 (cgraph_finalize_compilation_unit): Do not call cgraph_build_cdtor_fns.
9762 (cgraph_build_static_cdtor): Move to ipa.c.
9763 * ipa.c: Include target.h and tree-iterator.h.
9764 (cgraph_build_static_cdtor, static_ctors, static_dtors,
9765 record_cdtor_fn, build_cdtor, compare_ctor, compare_dtor,
9766 build_cdtor_fns, ipa_cdtor_merge, gate_ipa_cdtor_merge,
9767 pass_ipa_cdtor_merge): New.
9768 * passes.c (init_optimization_passes): Enqueue pass_ipa_cdtor_merge.
9769 * ipa-prop.c (update_indirect_edges_after_inlining): Avoid out of
9770 bounds access.
9771
9772 2010-08-20 Jan Hubicka <jh@suse.cz>
9773
9774 PR c++/45307
9775 PR c++/17736
9776 * cgraph.h (cgraph_only_called_directly_p,
9777 cgraph_can_remove_if_no_direct_calls_and_refs_p): Handle
9778 static cdtors.
9779 * cgraphunit.c (cgraph_decide_is_function_needed): Static cdtors
9780 are not needed.
9781 (cgraph_finalize_function): Static cdtors are reachable.
9782 (cgraph_mark_functions_to_output): Use cgraph_only_called_directly_p.
9783
9784 2010-08-20 Jan Hubicka <jh@suse.cz>
9785
9786 * lto-cgraph.c (lto_output_edge): Use gimple_has_body_p instead of
9787 flag_wpa.
9788 * lto-streamer-out.c (lto_output): Likewise.
9789 * passes.c (ipa_write_optimization_summaries): Initialize statement
9790 uids.
9791
9792 2010-08-20 Olivier Hainque <hainque@adacore.com>
9793
9794 * tree.h (alias_diag_flags): New enum.
9795 (alias_pair): Add an 'emitted_diags' field.
9796 * varasm.c (finish_aliases_1): Honor and update p->emitted_diags.
9797 (assemble_alias): Initialize emitted_diags of new pairs.
9798
9799 2010-08-20 Eric Botcazou <ebotcazou@adacore.com>
9800
9801 * config/rs6000/aix.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
9802 * config/rs6000/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
9803 * config/rs6000/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
9804 (STACK_CHECK_PROTECT): Define.
9805 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_range): New function.
9806 (output_probe_stack_range): Likewise.
9807 (rs6000_emit_prologue): Invoke rs6000_emit_probe_stack_range if static
9808 builtin stack checking is enabled.
9809 * config/rs6000/rs6000-protos.h (output_probe_stack_range): Declare.
9810 * config/rs6000/rs6000.md (UNSPECV_PROBE_STACK_RANGE): New constant.
9811 (probe_stack_range): New insn.
9812
9813 2010-08-20 H.J. Lu <hongjiu.lu@intel.com>
9814
9815 PR target/45336
9816 * config/i386/emmintrin.h (_mm_extract_epi16): Cast to unsigned
9817 short first.
9818
9819 * config/i386/smmintrin.h (_mm_extract_epi8): Cast to unsigned
9820 char first.
9821
9822 2010-08-20 Jakub Jelinek <jakub@redhat.com>
9823
9824 PR target/45336
9825 * config/i386/sse.md (*sse4_1_pextrb): Add SWI48 mode iterator
9826 to cover zero extension into 64-bit register.
9827 (*sse2_pextrw): Likewise.
9828 (*sse4_1_pextrd_zext): New insn.
9829
9830 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
9831
9832 revert r163410, partially revert r163267.
9833 * config/rs6000/darwin.h (LIB_SPEC): Remove.
9834 * config/darwin.h (REAL_LIBGCC_SPEC): Link lgcc for all
9835 Darwin versions.
9836
9837 2010-08-20 Jakub Jelinek <jakub@redhat.com>
9838
9839 PR middle-end/44974
9840 * builtins.c (expand_builtin): Don't optimize away
9841 calls to DECL_LOOPING_CONST_OR_PURE_P builtins.
9842
9843 2010-08-20 Uros Bizjak <ubizjak@gmail.com>
9844
9845 * config/i386/i386.md (ashift %rsp splitter): Remove splitter.
9846 (pro_epilogue_adjust_stack_di_2): Use "l" constraint for
9847 alternative 1 of operand 2.
9848
9849 2010-08-20 Jakub Jelinek <jakub@redhat.com>
9850 Paolo Bonzini <bonzini@gnu.org>
9851
9852 * simplify-rtx.c (simplify_unary_operation_1): Optimize
9853 (sign_extend (zero_extend (...)) and
9854 ({sign,zero}_extend (lshiftrt (ashift X (const_int I)) (const_int I))).
9855
9856 2010-08-20 Jakub Jelinek <jakub@redhat.com>
9857
9858 PR rtl-optimization/45353
9859 * sel-sched-ir.c (sel_bb_head): Return NULL even if next_nonnote_insn
9860 after bb_note is a BARRIER.
9861
9862 2010-08-20 Iain Sandoe <iains@gcc.gnu.org>
9863
9864 * config/rs6000/darwin.h (LIB_SPEC): New. Provide saveFP/restFP by
9865 linking libgcc.a.
9866
9867 2010-08-20 Jakub Jelinek <jakub@redhat.com>
9868 Michael Matz <matz@suse.de>
9869
9870 * tree-ssa-address.c (tree_mem_ref_addr): Convert offset to sizetype.
9871
9872 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
9873
9874 * ggc-common.c (ggc_mark_root_tab): New function, split out from...
9875 (ggc_mark_roots): ...here.
9876
9877 2010-08-20 Nathan Froyd <froydnj@codesourcery.com>
9878
9879 * vec.h (FOR_EACH_VEC_ELT): Define.
9880 * c-decl.c: Use it.
9881 * cfgloop.c: Likewise.
9882 * cfgloopmanip.c: Likewise.
9883 * cgraph.c: Likewise.
9884 * cgraphunit.c: Likewise.
9885 * combine.c: Likewise.
9886 * config/bfin/bfin.c: Likewise.
9887 * config/mips/mips.c: Likewise.
9888 * config/rs6000/rs6000.c: Likewise.
9889 * dbxout.c: Likewise.
9890 * df-scan.c: Likewise.
9891 * dominance.c: Likewise.
9892 * dse.c: Likewise.
9893 * dwarf2out.c: Likewise.
9894 * except.c: Likewise.
9895 * expr.c: Likewise.
9896 * function.c: Likewise.
9897 * gcse.c: Likewise.
9898 * genattr.c: Likewise.
9899 * ggc-common.c: Likewise.
9900 * gimplify.c: Likewise.
9901 * graphite-blocking.c: Likewise.
9902 * graphite-clast-to-gimple.c: Likewise.
9903 * graphite-dependences.c: Likewise.
9904 * graphite-interchange.c: Likewise.
9905 * graphite-poly.c: Likewise.
9906 * graphite-scop-detection.c: Likewise.
9907 * graphite-sese-to-poly.c: Likewise.
9908 * graphite.c: Likewise.
9909 * haifa-sched.c: Likewise.
9910 * ifcvt.c: Likewise.
9911 * implicit-zee.c: Likewise.
9912 * ipa-prop.c: Likewise.
9913 * ipa-struct-reorg.c: Likewise.
9914 * ipa.c: Likewise.
9915 * ira-build.c: Likewise.
9916 * ira-color.c: Likewise.
9917 * ira-emit.c: Likewise.
9918 * lambda-code.c: Likewise.
9919 * loop-invariant.c: Likewise.
9920 * loop-unroll.c: Likewise.
9921 * lower-subreg.c: Likewise.
9922 * lto-cgraph.c: Likewise.
9923 * lto-opts.c: Likewise.
9924 * lto-streamer-in.c: Likewise.
9925 * lto-streamer-out.c: Likewise.
9926 * lto-streamer.c: Likewise.
9927 * lto-symtab.c: Likewise.
9928 * matrix-reorg.c: Likewise.
9929 * opts.c: Likewise.
9930 * predict.c: Likewise.
9931 * print-tree.c: Likewise.
9932 * sdbout.c: Likewise.
9933 * sel-sched-dump.c: Likewise.
9934 * sel-sched-ir.c: Likewise.
9935 * sel-sched.c: Likewise.
9936 * sese.c: Likewise.
9937 * stor-layout.c: Likewise.
9938 * tree-cfg.c: Likewise.
9939 * tree-cfgcleanup.c: Likewise.
9940 * tree-chrec.c: Likewise.
9941 * tree-data-ref.c: Likewise.
9942 * tree-emutls.c: Likewise.
9943 * tree-inline.c: Likewise.
9944 * tree-into-ssa.c: Likewise.
9945 * tree-loop-distribution.c: Likewise.
9946 * tree-loop-linear.c: Likewise.
9947 * tree-mudflap.c: Likewise.
9948 * tree-outof-ssa.c: Likewise.
9949 * tree-parloops.c: Likewise.
9950 * tree-predcom.c: Likewise.
9951 * tree-pretty-print.c: Likewise.
9952 * tree-scalar-evolution.c: Likewise.
9953 * tree-ssa-live.c: Likewise.
9954 * tree-ssa-loop-im.c: Likewise.
9955 * tree-ssa-loop-ivcanon.c: Likewise.
9956 * tree-ssa-loop-ivopts.c: Likewise.
9957 * tree-ssa-loop-manip.c: Likewise.
9958 * tree-ssa-loop-niter.c: Likewise.
9959 * tree-ssa-loop-prefetch.c: Likewise.
9960 * tree-ssa-phiprop.c: Likewise.
9961 * tree-ssa-pre.c: Likewise.
9962 * tree-ssa-reassoc.c: Likewise.
9963 * tree-ssa-sccvn.c: Likewise.
9964 * tree-ssa-structalias.c: Likewise.
9965 * tree-ssa.c: Likewise.
9966 * tree-vect-data-refs.c: Likewise.
9967 * tree-vect-loop-manip.c: Likewise.
9968 * tree-vect-loop.c: Likewise.
9969 * tree-vect-patterns.c: Likewise.
9970 * tree-vect-slp.c: Likewise.
9971 * tree-vect-stmts.c: Likewise.
9972 * tree-vrp.c: Likewise.
9973 * tree.c: Likewise.
9974 * value-prof.c: Likewise.
9975 * var-tracking.c: Likewise.
9976 * varasm.c: Likewise.
9977 * vmsdbgout.c: Likewise.
9978
9979 2010-08-19 Nathan Sidwell <nathan@codesourcery.com>
9980 Richard Guenther <richard.guenther@gmail.com>
9981
9982 * gimplify.c (gimplify_modify_expr): When assigning to volatiles,
9983 copy the src value and return a copy.
9984 * doc/extend.texi (Volatiles): Move from C++ to C and expand.
9985 (C++ Volatiles): Adjust to describe C++ semantics only.
9986
9987 2010-08-20 Joseph Myers <joseph@codesourcery.com>
9988
9989 * doc/tm.texi.in (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Document to
9990 be zero or nonzero.
9991 * doc/tm.texi: Regenerate.
9992 * defaults.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define.
9993 * df-scan.c (df_get_exit_block_use_set), reginfo.c
9994 (init_reg_sets_1), rtlanal.c (rtx_unstable_p, rtx_varies_p):
9995 Handle new PIC_OFFSET_TABLE_REG_CALL_CLOBBERED semantics.
9996 * config/ia64/ia64.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED): Define
9997 to 1.
9998
9999 2010-08-20 Olivier Hainque <hainque@adacore.com>
10000
10001 * config/sparc/sparc.c (sparc_asm_function_epilogue): Don't output
10002 an extra nop past a sibling call at the very end.
10003
10004 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
10005
10006 PR bootstrap/45350
10007 * combine.c (try_combine): Initialize i1_is_used and i2_is_used. Fix
10008 a comment.
10009
10010 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
10011
10012 * target.def (function_arg, function_incoming_arg): Remove const
10013 qualifier on CUMULATIVE_ARGS parameter.
10014 * targhooks.h (default_function_arg, default_function_incoming_arg):
10015 Likewise.
10016 * targhooks.c (default_function_arg, default_function_incoming_arg):
10017 Likewise.
10018 * config/i386/i386.c (ix86_function_arg): Likewise.
10019
10020 2010-08-19 Jakub Jelinek <jakub@redhat.com>
10021
10022 PR target/45336
10023 * simplify-rtx.c (simplify_unary_operation_1): Optimize nested
10024 SIGN_EXTENDs or ZERO_EXTENDs.
10025
10026 2010-08-19 Bernd Schmidt <bernds@codesourcery.com>
10027
10028 PR target/42172
10029 * combine.c (combine_validate_cost): New arg I0. All callers changed.
10030 Take its cost into account if nonnull.
10031 (insn_a_feeds_b): New static function.
10032 (combine_instructions): Look for four-insn combinations.
10033 (can_combine_p): New args PRED2, SUCC2. All callers changed. Take
10034 them into account when computing all_adjacent and looking for other
10035 uses.
10036 (combinable_i3pat): New args I0DEST, I0_NOT_IN_SRC. All callers
10037 changed. Treat them like I1DEST and I1_NOT_IN_SRC.
10038 (try_combine): New arg I0. Handle four-insn combinations.
10039 (distribute_notes): New arg ELIM_I0. All callers changed. Treat it
10040 like ELIM_I1.
10041
10042 2010-08-19 Jason Merrill <jason@redhat.com>
10043
10044 PR c++/45307
10045 * gimplify.c (gimplify_init_constructor): Just return GS_UNHANDLED
10046 if ctor is empty.
10047 (gimplify_modify_expr_rhs): Adjust.
10048
10049 2010-08-19 Nathan Froyd <froydnj@codesourcery.com>
10050
10051 * cfgloop.c (get_loop_body_in_bfs_order): Avoid redundant call to
10052 bitmap_bit_p.
10053 * config/bfin/bifn.c (bfin_discover_loop): Likewise.
10054 * dominance.c (iterate_fix_dominators): Likewise.
10055 * dse.c (set_usage_bits): Likewise.
10056 (set_position_unneeded, record_store): Likewise.
10057 * gimple-fold.c (get_maxval_strlen): Likewise.
10058 * haifa-sched.c (fix_inter_tick, fix_recovery_deps): Likewise.
10059 * ipa-inline.c (update_caller_keys): Likewise.
10060 * ipa-split.c (verify_non_ssa_vars): Likewise.
10061 * ipa-type-escape.c (mark_type, close_type_seen): Likewise.
10062 (close_type_exposed_parameter, close_type_full_escape): Likewise.
10063 (close_addressof_down): Likewise.
10064 * ira-color.c (assign_hard_reg, push_allocno_to_stack): Likewise.
10065 (setup_allocno_left_conflicts_size): Likewise.
10066 (ira_reassign_conflict_allocnos): Likewise.
10067 (ira_reassign_pseudos): Likewise.
10068 * ira-emit.c (change_loop): Likewise.
10069 * loop-invariant.c (mark_regno_live, mark_regno_death): Likewise.
10070 * lto-streamer-out.c (write_symbol): Likewise.
10071 * predict.c (expr_expected_value_1): Likewise.
10072 * regstat.c (regstat_bb_compute_ri): Likewise.
10073 * sel-sched.c (create_block_for_bookkeeping): Likewise.
10074 (track_scheduled_insns_and_blocks, sel_sched_region_1): Likewise.
10075 * stmt.c (expand_case): Likewise.
10076 * tree-eh.c (emit_eh_dispatch): Likewise.
10077 * tree-into-ssa.c (prune_unused_phi_nodes): Likewise.
10078 * tree-loop-distribution.c (make_nodes_having_upstream_mem_writes):
10079 Likewise.
10080 (rdg_flag_vertex, rdg_flag_loop_exits): Likewise.
10081 (rdg_build_components): Likewise.
10082 * tree-object-size.c (collect_object_sizes_for): Likewise.
10083 * tree-sra.c (convert_callers): Likewise.
10084 * tree-ssa-coalesce.c (live_track_add_partition): Likewise.
10085 * tree-ssa-live.c (mark_all_vars_used_1): Likewise.
10086 * tree-ssa-pre.c (bitmap_set_replace_value): Likewise.
10087
10088 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
10089
10090 * config/i386/i386.md (*lea_1): Use P mode iterator.
10091 (lea add splitter): Also handle DImode operands.
10092 (DImode lea add splitter): Use x86_64_immediate_operand for operand 2
10093 predicate. Do not use ix86_lea_for_add_ok.
10094 (zext DImode lea add splitter): Use ix86_lea_for_add_ok.
10095 (lea ashift splitter): Also handle DImode operands.
10096 (DImode lea ashift splitter): Remove splitter.
10097
10098 2010-08-19 Uros Bizjak <ubizjak@gmail.com>
10099
10100 * config/i386/i386.md (*add<SWI:mode>3_cconly_overflow): Do not use
10101 ix86_binary_operator_ok.
10102
10103 2010-08-19 Andrey Belevantsev <abel@ispras.ru>
10104
10105 PR rtl-optimization/44691
10106 * sel-sched.c (count_occurrences_1): Also punt when SUBREG_REG
10107 is not a register.
10108
10109 2010-08-19 Ian Bolton <ian.bolton@arm.com>
10110
10111 PR target/45070
10112 * config/arm/arm.c (arm_output_epilogue): Ensure that return
10113 value of size 1-3 is handled correctly.
10114
10115 2010-08-19 Ian Bolton <ian.bolton@arm.com>
10116
10117 * tree-switch-conversion.c (gen_inbound_check): Ensure that the
10118 type for the conditional has wide enough range.
10119
10120 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
10121
10122 PR target/45327
10123 * config/i386/i386.md (<any_or:code><SWI:mode>_3): Do not use
10124 ix86_binary_operator_ok.
10125
10126 2010-08-18 Uros Bizjak <ubizjak@gmail.com>
10127
10128 * config/i386/i386.md (*add<mode>_1) <TYPE_LEA>: Split insn to lea.
10129 <default>: Swap operands 1 and 2 for alternative 2 to use existing
10130 code to output insn mnemonic. Fix comment.
10131 (*addsi_1_zext): Add r-r-0 alternative 1.
10132 <TYPE_LEA>: Split insn to lea.
10133 <default>: Handle alternative 1.
10134 (*addhi_1_lea): Add r-r-0 alternative 2. Use cond RTX instead of
10135 multi-level if_then_else RTX to set "type" attribute.
10136 <default>: Handle alternative 2.
10137 (*addqi_1_lea): Add q-q-0 alternative 2 and r-r-0 alternative 4.
10138 Use cond RTX instead of multi-level if_then_else RTX to set
10139 "type" attribute.
10140 <default>: Handle alternatives 2 and 4.
10141 (lea splitters): Update calls to ix86_lea_for_add_ok.
10142
10143 * config/i386/i386.c (ix86_lea_for_add_ok): Remove unused "code"
10144 argument.
10145 * config/i386/i386-protos.h (ix86_lea_for_add_ok): Update prototype.
10146
10147 2010-08-18 Richard Guenther <rguenther@suse.de>
10148
10149 * tree-ssa-uninit.c (find_uninit_use): Disregard debug stmts,
10150 use operand helpers.
10151
10152 2010-08-18 Paolo Bonzini <bonzini@gnu.org>
10153
10154 PR middle-end/45292
10155 * optabs.c (expand_bool_compare_and_swap): Expand pending
10156 pops before trying the optab.
10157
10158 2010-08-18 Yao Qi <yao@codesourcery.com>
10159
10160 PR target/45094
10161 * config/arm/arm.c (output_move_double): Fix typo generating
10162 instructions ('ldr'->'str').
10163
10164 2010-08-18 Maxim Kuvyrkov <maxim@codesourcery.com>
10165
10166 PR rtl-optimization/42575
10167 * optabs.c (expand_doubleword_mult): Generate new pseudos to shorten
10168 live ranges.
10169
10170 2010-08-18 Marcus Shawcroft <marcus.shawcroft@arm.com>
10171
10172 * config/arm/arm-protos.h (arm_expand_sync): New.
10173 (arm_output_memory_barrier, arm_output_sync_insn): New.
10174 (arm_sync_loop_insns): New.
10175 * config/arm/arm.c (FL_ARCH7): New.
10176 (FL_FOR_ARCH7): Include FL_ARCH7.
10177 (arm_arch7): New.
10178 (arm_print_operand): Support %C markup.
10179 (arm_legitimize_sync_memory): New.
10180 (arm_emit, arm_insn_count, arm_count, arm_output_asm_insn): New.
10181 (arm_process_output_memory_barrier, arm_output_memory_barrier): New.
10182 (arm_ldrex_suffix, arm_output_ldrex, arm_output_strex): New.
10183 (arm_output_op2, arm_output_op3, arm_output_sync_loop): New.
10184 (arm_get_sync_operand, FETCH_SYNC_OPERAND): New.
10185 (arm_process_output_sync_insn, arm_output_sync_insn): New.
10186 (arm_sync_loop_insns,arm_call_generator, arm_expand_sync): New.
10187 * config/arm/arm.h (struct arm_sync_generator): New.
10188 (TARGET_HAVE_DMB, TARGET_HAVE_DMB_MCR): New.
10189 (TARGET_HAVE_MEMORY_BARRIER): New.
10190 (TARGET_HAVE_LDREX, TARGET_HAVE_LDREXBHD): New.
10191 * config/arm/arm.md: Include sync.md.
10192 (UNSPEC_MEMORY_BARRIER): New.
10193 (VUNSPEC_SYNC_COMPARE_AND_SWAP, VUNSPEC_SYNC_LOCK): New.
10194 (VUNSPEC_SYNC_OP):New.
10195 (VUNSPEC_SYNC_NEW_OP, VUNSPEC_SYNC_OLD_OP): New.
10196 (sync_result, sync_memory, sync_required_value): New attributes.
10197 (sync_new_value, sync_t1, sync_t2): Likewise.
10198 (sync_release_barrier, sync_op): Likewise.
10199 (length): Add logic to length attribute defintion to call
10200 arm_sync_loop_insns when appropriate.
10201 * config/arm/sync.md: New file.
10202
10203 2010-08-17 Jakub Jelinek <jakub@redhat.com>
10204
10205 * tree.h (host_integerp): Add ATTRIBUTE_PURE when not
10206 ENABLE_TREE_CHECKING.
10207 (tree_low_cst): Add inline version for !ENABLE_TREE_CHECKING
10208 and GCC >= 4.3.
10209
10210 2010-08-17 H.J. Lu <hongjiu.lu@intel.com>
10211
10212 * config/i386/i386.c (ix86_lea_for_add_ok): For !TARGET_OPT_AGU
10213 or optimizing for size, always avoid lea if possible.
10214
10215 * config/i386/i386.md (*add<mode>_1): Always avoid lea if possible.
10216
10217 2010-08-17 Iain Sandoe <iains@gcc.gnu.org>
10218
10219 * unwind-dw2-fde-darwin.c (_darwin10_Unwind_FindEnclosingFunction):
10220 Dunmmy function with NULL return unless the target is
10221 OSX >= 10.6 (Darwin10).
10222
10223 2010-08-17 Jack Howarth <howarth@bromo.med.uc.edu>
10224
10225 * gcc.c (spec_function): Add remove-outfile.
10226 (remove_outfile_spec_function): New function.
10227 * config/darwin.h (LINK_SPEC): Add removal of -ldl, -lm and -lpthread.
10228 * invoke.texi (replace-outfile): Document.
10229
10230 2010-08-17 Uros Bizjak <ubizjak@gmail.com>
10231
10232 PR target/45296
10233 * reginfo.c (globalize_reg): Reject stack registers.
10234
10235 2010-08-17 Richard Guenther <rguenther@suse.de>
10236
10237 * tree-ssa-dom.c (struct edge_info): Use a VEC for the
10238 list of conditional equivalences.
10239 (free_all_edge_infos): Adjust.
10240 (record_equivalences_from_incoming_edge): Likewise.
10241 (record_cond): Likewise.
10242 (build_and_record_new_cond): Likewise.
10243 (record_conditions): Likewise.
10244 (dom_opt_leave_block): Likewise.
10245
10246 2010-08-17 Kai Tietz <kai.tietz@onevision.com>
10247
10248 * doc/invoke.texi (ms-extension): Add documentation.
10249
10250 2010-08-17 Richard Guenther <rguenther@suse.de>
10251
10252 * fold-const.c (fold_comparison): Strip nops inside POINTER_PLUS_EXPR.
10253
10254 2010-08-17 Shujing Zhao <pearly.zhao@oracle.com>
10255
10256 PR c/40563
10257 * c-decl.c (diagnose_uninitialized_cst_member): New function.
10258 (finish_decl): Use it to issue a -Wc++-compat warning about
10259 uninitialized const field in struct or union.
10260
10261 (finish_struct): Use strip_array_types.
10262
10263 2010-08-17 Jakub Jelinek <jakub@redhat.com>
10264
10265 * function.c (block_fragments_nreverse, blocks_nreverse_all): New
10266 functions.
10267 (reorder_blocks): Use blocks_nreverse_all instead of blocks_nreverse.
10268 (reorder_blocks_1): Assert BLOCK_FRAGMENT_ORIGIN is NULL. Don't
10269 call block_nreverse here.
10270 (blocks_nreverse): Rename decl temporary to block.
10271
10272 2010-08-16 Bernd Schmidt <bernds@codesourcery.com>
10273
10274 * config/arm/thumb2.md (thumb2_notsi_shiftsi,
10275 thumbsi_notsi_shiftsi_compare0, thumb2_not_shiftsi_compare0_scratch,
10276 thumb2_cmpsi_shiftsi, thumb2_cmpsi_shiftsi_swp, thumb2_arith_shiftsi,
10277 thumb2_arith_shiftsi splitter, thumb2_arith_shiftsi_compare0,
10278 thumb2_arith_shiftsi_compare0_scratch, thumb2_sub_shiftsi,
10279 thumb2_sub_shiftsi_compare0, thumb2_sub_shiftsi_compare0_scratch,
10280 thumb2_iorsi3): Delete.
10281 (orsi_notsi_si): No longer a named pattern.
10282 (orsi_not_shiftsi_si): Renamed from thumb_orsi_not_shiftsi_si.
10283 * config/arm/predicates.md (shift_amount_operand): New.
10284 (mult_operator): New.
10285 * config/arm/arm.md (attr arch, attr arch_enabled, attr insn_enabled,
10286 attr enabled): New.
10287 (iorsi3_insn): Renamed from arm_iorsi3. Handle a new alternative if
10288 arch matches t2.
10289 (not_shiftsi): Renamed from arm_notsi_shiftsi. Handle Thumb2 variant.
10290 (not_shiftsi_compare0): Likewise, renamed from
10291 arm_notsi_shiftsi_compare0.
10292 (not_shiftsi_compare0_scratch): Likweise, renamed from
10293 arm_notsi_shiftsi_compare0_scratch.
10294 (cmpsi_shiftsi): Likewise, renamed from arm_cmpsi_shiftsi.
10295 (cmpsi_shiftsi_swp): Likewise, renamed from arm_cmpsi_shiftsi_swp.
10296 (arith_shiftsi): Handle Thumb2 variant. Set insn_enabled attribute
10297 so that the register alternative is disabled when the shift_operator
10298 is MULT. Use "M" as the constraint for constants.
10299 (arith_shiftsi splitter): Enable for TARGET_32BIT.
10300 (arith_shiftsi_compare0): Handle Thumb2 variant. Use "M" as the
10301 constraint for constants.
10302 (arith_shiftsi_compare0_scratch): Likewise.
10303 (sub_shiftsi, sub_shiftsi_compare0, sub_shiftsi_compare0_scratch):
10304 Handle Thumb2 alternative.
10305
10306 2010-08-16 Joseph Myers <joseph@codesourcery.com>
10307
10308 * doc/options.texi (NoDriverArg): Document.
10309 * gcc.c (cpp_unique_options): Generate -MD and -MMD instead of
10310 -MDX and -MMDX.
10311 * opt-functions.awk (switch_flags): Handle NoDriverArg.
10312 * opts-common.c (decode_cmdline_option): Ignore CL_SEPARATE
10313 marking for CL_NO_DRIVER_ARG options when in the driver.
10314 * opts.h (CL_NO_DRIVER_ARG): Define.
10315 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_DRIVER, CL_TARGET,
10316 CL_COMMON): Update values.
10317
10318 2010-08-16 Joseph Myers <joseph@codesourcery.com>
10319
10320 * common.opt: Add driver options.
10321 (auxbase, auxbase-strip, quiet, version): Mark RejectDriver.
10322 * doc/options.texi (Driver, RejectDriver): Document.
10323 * gcc.c (pass_exit_codes, print_search_dirs, print_file_name,
10324 print_prog_name, print_multi_directory, print_sysroot,
10325 print_multi_os_directory, print_multi_lib,
10326 print_sysroot_headers_suffix, report_times, combine_flag,
10327 use_pipes, wrapper_string): Remove.
10328 (save_switch, driver_unknown_option_callback,
10329 driver_wrong_lang_callback, driver_post_handling_callback,
10330 driver_handle_option): New.
10331 (spec_lang, last_language_n_infiles): Make file-scope static
10332 instead of local to process_command.
10333 (process_command): Use decode_cmdline_options_to_array and
10334 read_cmdline_option for option processing. Compute have_c in
10335 prescan of decoded options.
10336 * opt-functions.awk (switch_flags): Handle Driver and
10337 RejectDriver.
10338 (var_type, var_type_struct): Handle Separate options as generating
10339 const char * variables.
10340 * opts-common.c (decode_cmdline_option): Expect CL_COMMON and
10341 CL_TARGET to be passed by caller if required.
10342 (decode_cmdline_options_to_array): Update comment.
10343 * opts.c (complain_wrong_lang): Handle options only valid for the
10344 driver.
10345 (decode_options): Update call to decode_cmdline_options_to_array.
10346 (print_filtered_help): Ignore driver-only options.
10347 (print_specific_help): Ignore CL_DRIVER.
10348 (common_handle_option): Don't call print_specific_help for CL_DRIVER.
10349 * opts.h (CL_DRIVER, CL_REJECT_DRIVER): Define.
10350 (CL_PARAMS, CL_WARNING, CL_OPTIMIZATION, CL_TARGET, CL_COMMON):
10351 Update values.
10352
10353 2010-08-16 Richard Guenther <rguenther@suse.de>
10354
10355 * tree-cfg.c (verify_types_in_gimple_reference): Verify
10356 TARGET_MEM_REF a bit.
10357 * tree-ssa-address.c (addr_for_mem_ref): Adjust.
10358 (create_mem_ref_raw): Always create TMR_OFFSET, store the
10359 alias pointer type via it.
10360 (copy_mem_ref_info): Adjust.
10361 (maybe_fold_tmr): Likewise.
10362 * tree.c (mem_ref_offset): Also handle TARGET_MEM_REF.
10363 (reference_alias_ptr_type): Likewise.
10364 * tree.def (TARGET_MEM_REF): Remove TMR_ORIGINAL operand,
10365 adjust documentation of TMR_OFFSET operand.
10366 * alias.c (get_alias_set): Do not look at TMR_ORIGINAL but
10367 use the alias pointer type.
10368 * expr.c (expand_expr_real_1): Do not use TMR_ORIGINAL to
10369 initialize mem attrs but the TMR itself.
10370 * tree-eh.c (tree_could_trap_p): Handle TARGET_MEM_REF
10371 similar to MEM_REF.
10372 * tree-pretty-print.c (dump_generic_node): Do not dump TMR_ORIGINAL.
10373 * tree-ssa-loop-ivopts.c (idx_remove_ssa_names): Remove.
10374 (unshare_and_remove_ssa_names): Likewise.
10375 (copy_ref_info): Adjust.
10376 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Simplify
10377 TARGET_MEM_REF case.
10378 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Do not look
10379 at TMR_ORIGINAL.
10380 * tree.h (TMR_ORIGINAL): Remove.
10381 * gimple.c (get_base_address): For TARGET_MEM_REF with a
10382 symbol return that.
10383 * tree-dfa.c (get_ref_base_and_extent): Handle TARGET_MEM_REF
10384 with a symbol.
10385 (get_addr_base_and_unit_offset): Likewise.
10386 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Handle
10387 TARGET_MEM_REFs.
10388 (indirect_ref_may_alias_decl_p): Likewise.
10389 (refs_may_alias_p_1): Do not bail out for TARGET_MEM_REFs.
10390
10391 2010-08-15 Uros Bizjak <ubizjak@gmail.com>
10392
10393 * doc/invoke.texi (-fomit-frame-pointer): Document that starting
10394 with GCC version 4.6, the default setting (when not optimizing
10395 for size) for 32-bit Linux x86 and 32-bit Darwin x86 targets has
10396 been changed to -fomit-frame-pointer.
10397
10398 2010-08-15 Iain Sandoe <iains@gcc.gnu.org>
10399
10400 * config/darwin.h (REAL_LIBGCC_SPEC): Remove libgcc_s.10.5 stub for
10401 Darwin10. Do not link libgcc.a for Darwin >= 9.
10402
10403 2010-08-15 Gerald Pfeifer <gerald@pfeifer.com>
10404
10405 * doc/invoke.texi (Warning Options): Fix terminology and markup
10406 in the description of how unknown warning options are handled.
10407
10408 2010-08-15 Ira Rosen <irar@il.ibm.com>
10409
10410 * tree-vect-data-refs.c (vect_setup_realignment): Support realignment
10411 in basic blocks.
10412 (vect_supportable_dr_alignment): Check alignment for basic blocks.
10413 * tree-vect-slp.c (vect_build_slp_tree): Allow different codes for
10414 data references.
10415 (vect_bb_vectorization_profitable_p): New function.
10416 (vect_slp_analyze_bb): Call vect_bb_vectorization_profitable_p() to
10417 check if it's worthwhile to vectorize the basic block.
10418
10419 2010-08-14 Anatoly Sokolov <aesok@post.ru>
10420
10421 * reload.h (register_move_cost, memory_move_secondary_cost,
10422 secondary_reload_class): Adjust prototype.
10423 * rtl.h (reg_class_subset_p): Adjust prototype.
10424 * reload.c (secondary_reload_class): Change arguments type from
10425 enum reg_class to reg_class_t. Change result type to reg_class_t.
10426 * reginfo.c (register_move_cost, reg_class_subset_p): Change
10427 arguments type from enum reg_class to reg_class_t.
10428 (memory_move_secondary_cost): Change arguments type from
10429 enum reg_class to reg_class_t. Change type of saved_flags to
10430 reg_class_t.
10431
10432 * config/mips/mips.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
10433 Remove macros.
10434 (mips_cost): Remove.
10435 (struct mips_rtx_cost_data): Moved to mips.c.
10436 * config/mips/mips-protos.h (mips_register_move_cost): Remove.
10437 * config/mips/mips.c (struct mips_rtx_cost_data): Moved from mips.h.
10438 (mips_cost): Make static.
10439 (mips_canonicalize_move_class): Change argument type to reg_class_t.
10440 Change result type to reg_class_t.
10441 (mips_move_to_gpr_cost, mips_move_from_gpr_cost): Change arguments
10442 type from enum reg_class to reg_class_t.
10443 (mips_register_move_cost): Make static. Change arguments
10444 type from enum reg_class to reg_class_t.
10445 (mips_memory_move_cost): New function.
10446 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
10447
10448 2010-08-14 Richard Sandiford <rdsandiford@googlemail.com>
10449
10450 PR rtl-optimization/43358
10451 * ira-lives.c (process_single_reg_class_operands): Adjust the costs
10452 of a single hard register, using simplify_subreg_regno to decide
10453 what that register should be.
10454
10455 2010-08-14 Mingjie Xing <mingjie.xing@gmail.com>
10456
10457 * config/mips/mips.c (CODE_FOR_loongson_pmullh): Define.
10458 * config/mips/loongson.md (UNSPEC_LOONGSON_PMULL): Delete.
10459 (loongson_pmull<V_suffix>): Rename to...
10460 (mul<mode>3): ...this and use MULT instead of an UNSPEC.
10461
10462 2010-08-13 Jack Howarth <howarth@bromo.med.uc.edu>
10463
10464 * configure.ac: Enable -fomit-frame-pointer on darwin
10465 which support dwarf2.
10466 * config/i386/i386.c (override_options): Same.
10467
10468 2010-08-13 Jie Zhang <jie@codesourcery.com>
10469
10470 * config/arm/arm.md (cstoredf4): Only valid when !TARGET_VFP_SINGLE.
10471
10472 2010-08-12 Joseph Myers <joseph@codesourcery.com>
10473
10474 * gcc.c (cpp_unique_options): Generate -MDX and -MMDX from -MD and
10475 -MMD.
10476
10477 2010-08-12 Changpeng Fang <changpeng.fang@amd.com>
10478
10479 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Give
10480 up dot_prod pattern searching if a stmt is outside the loop.
10481
10482 2010-08-12 H.J. Lu <hongjiu.lu@intel.com>
10483 Uros Bizjak <ubizjak@gmail.com>
10484
10485 * config.gcc: Handle --enable-frame-pointer.
10486
10487 * configure.ac: Add --enable-frame-pointer.
10488 * configure: Regenerated.
10489
10490 * config/i386/i386.c (USE_IX86_FRAME_POINTER): Default to 0.
10491 (override_options): If not configured with --enable-frame-pointer,
10492 enable -fomit-frame-pointer (but not for TARGET_MACHO or when
10493 optimizing for size), -fasynchronous-unwind-tables and
10494 -maccumulate-outgoing-args by default.
10495
10496 2010-08-12 Jakub Jelinek <jakub@redhat.com>
10497
10498 * builtins.c (fold_builtin_memory_op): Avoid -Wsign-compare warning.
10499
10500 PR middle-end/45262
10501 * fold-const.c (make_range) <case NEGATE_EXPR>: Punt if
10502 -a overflows. Normalize the range.
10503
10504 2010-08-12 Richard Guenther <rguenther@suse.de>
10505
10506 PR tree-optimization/45232
10507 * tree-ssa-reassoc.c (can_reassociate_p): Disable re-association
10508 for types with undefined overflow.
10509 (reassociate_bb): Allow re-associating of bit and min/max
10510 operations for types with undefined overflow.
10511 * tree-ssa-forwprop.c (associate_plusminus): New function.
10512 (tree_ssa_forward_propagate_single_use_vars): Call it.
10513
10514 2010-08-12 Richard Guenther <rguenther@suse.de>
10515
10516 * tree-flow.h (struct ptr_info_def): Add align and misalign fields.
10517 * tree-ssa-alias.c (get_ptr_info): Move ...
10518 * tree-ssanames.c (get_ptr_info): ... here. Initialize
10519 align and misalign fields conservatively.
10520 * tree-ssa-ccp.c (ccp_finalize): From partially constant pointers
10521 derive alignment information.
10522 (evaluate_stmt): Derive alignment information from memory
10523 allocation functions.
10524 * tree.h (get_pointer_alignment): Make unsigned.
10525 * builtins.c (get_object_alignment): Use alignment information we
10526 have computed for pointers.
10527 (get_pointer_alignment): Likewise. Make conservative, return
10528 and unsigned value.
10529 (expand_builtin_strlen): Adjust.
10530 (expand_builtin_memcmp): Likewise.
10531 (expand_builtin_strcmp): Likewise.
10532 (expand_builtin_strncmp): Likewise.
10533 (get_builtin_sync_mem): Use at least mode alignment.
10534 (fold_builtin_memset): Adjust.
10535 (fold_builtin_memory_op): Likewise.
10536 * gimple-pretty-print.c (dump_gimple_phi): Alongside alias
10537 information also dump pointer alignment knowledge.
10538 (dump_gimple_stmt): Likewise.
10539
10540 2010-08-12 Uros Bizjak <ubizjak@gmail.com>
10541
10542 * config/i386/i386.c (LONG_TYPE_SIZE): Remove.
10543 (EMPTY_FIELD_BOUNDARY): Remove.
10544 * config/i386/i386-interix.h (PCC_BITFIELD_TYPE_MATTERS): Remove.
10545
10546 2010-08-12 Jakub Jelinek <jakub@redhat.com>
10547
10548 PR debug/45259
10549 * caller-save.c (save_call_clobbered_regs): Only swap notes with
10550 DEBUG_INSNs if n_regs_saved.
10551
10552 2010-08-12 Wei Guozhi <carrot@google.com>
10553
10554 PR target/44999
10555 * config/arm/arm.md (andsi3): Change to zero extension if possible.
10556 * config/arm/thumb2.md (thumb2_zero_extendqisi2_v6): Change the name.
10557
10558 2010-08-11 Vladimir Makarov <vmakarov@redhat.com>
10559
10560 * ira-int.h (ira_remove_allocno_copy_from_list): Remove.
10561
10562 * ira-build.c (ira_remove_allocno_copy_from_list): Remove.
10563
10564 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10565
10566 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add back
10567 the case removed in the previous patch, when the only phi argument
10568 is defined in the same loop as the phi node itself. Handle it
10569 separately from the invariant case by both propagating it outside
10570 the region and replacing the phi node with an assign.
10571
10572 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10573
10574 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): The only
10575 constant phi nodes with one argument are is_gimple_min_invariant
10576 and SSA_NAME_IS_DEFAULT_DEF.
10577
10578 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10579
10580 * graphite-cloog-util.c (oppose_constraint):
10581 Extend loop counter's value range (CLOOG_ORG).
10582 (cloog_matrix_to_ppl_constraint): Same.
10583 (new_Constraint_System_from_Cloog_matrix): Same.
10584 * graphite-cloog-compat.h (matrix_num_type): New.
10585
10586 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10587
10588 * graphite.c (graphite_initialize): Do not initialize
10589 CLooG and initialize the Parma Polyhedra Library
10590 manually when using CLOOG_ORG.
10591 (graphite_finalize): Do not finalize CLooG and finalize
10592 the Parma Polyhedra Library manually when using CLOOG_ORG.
10593 * graphite-cloog-compat.h (cloog_initialize): Hide function
10594 when using CLOOG_ORG.
10595 (cloog_finalize): Same.
10596
10597 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10598
10599 * graphite-clast-to-gimple.c (free_scattering): Change
10600 CloogDomainList/CloogDomain to CloogScatteringList/CloogScattering
10601 (CLOOG_ORG).
10602 (build_cloog_prog): Same.
10603 * graphite-cloog-compat.h (cloog_domain): Removed.
10604 (cloog_scattering): New.
10605 (cloog_set_domain): Removed.
10606 (cloog_set_scattering): New.
10607 (cloog_next_domain): Removed.
10608 (cloog_next_scattering): New.
10609 (cloog_set_next_domain): Removed.
10610 (cloog_set_next_scattering): New.
10611 (CloogScatteringList): New.
10612 (CloogScattering): New.
10613 (cloog_scattering_free): New.
10614 (new_Cloog_Scattering_from_ppl_Polyhedron): New.
10615 * graphite-cloog-util.c (new_Cloog_Scattering_from_ppl_Polyhedron):
10616 New.
10617
10618 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10619
10620 * graphite-clast-to-gimple.c (build_cloog_prog): Extend with
10621 CloogState.
10622 (set_cloog_options): Same.
10623 (print_clast_stmt): Same.
10624 (scop_to_clast): Same.
10625 (print_generated_program): Same.
10626 (gloog): Same.
10627 * graphite-clast-to-gimple.h: Include graphite-cloog-util.h.
10628 (scop_to_clast): Extend with CloogState.
10629 * graphite-cloog-util.c: Include graphite-cloog-compat.h
10630 (new_Cloog_Domain_from_ppl_Polyhedron):
10631 Extend with CloogState. Use cloog_domain_from_cloog_matrix (CLOOG_ORG).
10632 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Extend with CloogState.
10633 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
10634 * graphite-cloog-util.h (build_cloog_prog): Same.
10635 * graphite-cloog-copat.h (build_cloog_prog): New.
10636 (CloogState): New.
10637 (cloog_state_malloc): New.
10638 (cloog_state_free): New.
10639 (cloog_loop_malloc): New.
10640 (cloog_options_malloc): New.
10641 (cloog_statement_alloc): New.
10642 (cloog_domain_from_cloog_matrix): New.
10643 (new_Cloog_Domain_from_ppl_Pointset_Powerset): New.
10644 (new_Cloog_Domain_from_ppl_Polyhedron): New.
10645
10646 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10647
10648 * graphite-clast-to-gimple.c (clast_name_to_gcc): Parameter
10649 type of NAME now depends on used CLooG version.
10650 (clast_to_gcc_expression): Replace expr_* with clast_expr_*.
10651 (gcc_type_for_clast_expr): Same.
10652 (print_clast_stmt): Replace pprint with clast_pprint.
10653 * graphite-cloog-compat.h: Provide compatibility macros for
10654 CLooG Legacy.
10655 (clast_name_p): New.
10656 (clast_expr_term): New.
10657 (clast_expr_red): New.
10658 (clast_expr_bin): New.
10659 (clast_pprint): New.
10660
10661 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10662
10663 * graphite-clast-to-gimple.c (set_cloog_options): Make CLooG options
10664 compatible to newer CLooG releases (CLOOG_ORG).
10665 (build_cloog_prog): Pass CloogOptions to more functions (CLOOG_ORG).
10666 (scop_to_clast): Pass CloogOptions to build_cloog_prog (CLOOG_ORG).
10667 * graphite-cloog-compat.h: Add compatibility macros for CLooG Legacy.
10668 (build_cloog_prog) : New.
10669 (cloog_program_extract_scalars): New.
10670 (cloog_program_scatter): New.
10671
10672 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10673
10674 * graphite-clast-to-gimple.c: Include graphite-cloog-compat.h
10675 conditionally (CLOOG_ORG).
10676 * graphite-cloog-compat.h: New. Include graphite-cloog-compat.h.
10677 (cloog_statement_usr): New.
10678 (cloog_domain): Same.
10679 (cloog_set_domain): Same.
10680 (cloog_next_domain): Same.
10681 (cloog_set_next_domain): Same.
10682 (cloog_program_nb_scattdims): Same.
10683 (cloog_program_set_nb_scattdims): Same.
10684 (cloog_program_names): Same.
10685 (cloog_program_set_names): Same.
10686 (cloog_program_set_context): Same.
10687 (cloog_program_set_loop): Same.
10688 (cloog_program_blocklist): Same.
10689 (cloog_program_set_blocklist): Same.
10690 (cloog_program_scaldims): Same.
10691 (cloog_program_set_scaldims): Same.
10692 (cloog_names_nb_parameters): Same.
10693 (cloog_names_set_nb_parameters): Same.
10694 (cloog_names_parameters): Same.
10695 (cloog_names_set_parameters): Same.
10696 (cloog_names_set_nb_iterators): Same.
10697 (cloog_names_set_iterators): Same.
10698 (cloog_names_set_nb_scattering): Same.
10699 (cloog_names_set_scattering): Same.
10700 (cloog_statement_set_usr): Same.
10701 (cloog_loop_set_next): Same.
10702 (cloog_loop_set_domain): Same.
10703 (cloog_loop_set_block): Same.
10704 (cloog_block_list_next): Same.
10705 (cloog_block_list_set_next):
10706 (cloog_block_list_set_block): Same.
10707
10708 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10709
10710 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Returns
10711 a bool.
10712 (rewrite_commutative_reductions_out_of_ssa_close_phi): Same.
10713 (rewrite_commutative_reductions_out_of_ssa_loop): Same.
10714 (rewrite_cross_bb_scalar_deps_out_of_ssa): Call scev_reset_htab
10715 when something has been changed.
10716 (rewrite_commutative_reductions_out_of_ssa): Same.
10717
10718 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10719
10720 * graphite-sese-to-poly.c (propagate_expr_outside_region): Also
10721 handle the case when def is in the sese region.
10722 (rewrite_close_phi_out_of_ssa): Call propagate_expr_outside_region
10723 for invariant expressions.
10724 (rewrite_cross_bb_phi_deps): Removed.
10725 (rewrite_cross_bb_scalar_deps): Also handle GIMPLE_PHI nodes.
10726 (rewrite_cross_bb_scalar_deps_out_of_ssa): Do not call
10727 rewrite_cross_bb_phi_deps.
10728
10729 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10730
10731 * graphite-sese-to-poly.c
10732 (rewrite_commutative_reductions_out_of_ssa_loop): Call
10733 scev_analyzable_p only on is_gimple_reg
10734
10735 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10736
10737 * graphite-sese-to-poly.c (propagate_expr_outside_region): New.
10738 (rewrite_close_phi_out_of_ssa): Propagate constant values or
10739 parametric expressions outside the scop region.
10740 (rewrite_cross_bb_scalar_deps): Same.
10741 * sese.c (rename_uses): Use NULL_TREE instead of NULL for trees.
10742
10743 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10744
10745 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Use
10746 SSA_NAME_DEF_STMT only on SSA_NAMEs.
10747
10748 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10749
10750 * tree-scalar-evolution.c (instantiate_scev_name): Do not
10751 instantiate default definitions.
10752
10753 2010-08-11 Vladimir Kargov <kargov@gmail.com>
10754 Sebastian Pop <sebastian.pop@amd.com>
10755
10756 * cfgloop.c (is_loop_exit): Renamed loop_exits_to_bb_p.
10757 (loop_exits_from_bb_p): New.
10758 * cfgloop.h (is_loop_exit): Renamed loop_exits_to_bb_p.
10759 (loop_exits_from_bb_p): Declared.
10760 * graphite-scop-detection.c (scopdet_basic_block_info): Call
10761 loop_exits_to_bb_p.
10762
10763 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10764
10765 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Add an
10766 extra parameter for the region. Call scev_analyzable_p.
10767 (rewrite_reductions_out_of_ssa): Update call to
10768 rewrite_close_phi_out_of_ssa.
10769 (rewrite_cross_bb_phi_deps): Same.
10770 (rewrite_commutative_reductions_out_of_ssa_loop): Add an extra
10771 parameter for the region. Call scev_analyzable_p.
10772 (rewrite_commutative_reductions_out_of_ssa): Update call to
10773 rewrite_commutative_reductions_out_of_ssa_loop.
10774
10775 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10776
10777 * sese.c (rename_uses): Call unshare_expr before force_gimple_operand.
10778
10779 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10780
10781 * graphite-sese-to-poly.c (reduction_phi_p): Do not rewrite out of
10782 SSA scalar phi nodes that can be scev_analyzable_p.
10783
10784 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10785
10786 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Correctly
10787 handle SSA_NAME_IS_DEFAULT_DEF.
10788
10789 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10790
10791 * sese.c (rename_uses): Handl unconditionally gimple_debug statements.
10792
10793 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10794
10795 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Special
10796 case non close-phi nodes with one argument.
10797
10798 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10799
10800 * sese.h (scev_analyzable_p): Scevs could be expressions without
10801 chrecs and still be scev_analyzable_p.
10802
10803 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10804
10805 * params.def (PARAM_SCEV_MAX_EXPR_SIZE): Bump the value to 100.
10806
10807 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10808
10809 * cfgloop.c (alloc_loop): Remove initialization of loop->single_iv.
10810 * cfgloop.h (struct loop): Remove single_iv field.
10811 * graphite-sese-to-poly.c (graphite_loop_normal_form): Removed.
10812 (scop_canonicalize_loops): Removed.
10813 (scop_ivs_can_be_represented): Do not use loop->single_iv. Iterate
10814 over all the loop phi nodes in loop->header.
10815 (build_poly_scop): Remove use of scop_canonicalize_loops.
10816
10817 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10818
10819 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Also
10820 handle GIMPLE_CALL.
10821
10822 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10823
10824 * tree-chrec.c (chrec_apply): Should only apply to the specified
10825 variable. Also handle multivariate chains of recurrences that
10826 satisfy evolution_function_is_affine_p. Also handle CASE_CONVERT.
10827
10828 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10829
10830 * graphite-clast-to-gimple.c (debug_clast_name_index): Removed.
10831 (debug_clast_name_indexes_1): Removed.
10832 (debug_clast_name_indexes): Removed.
10833 (pbb_to_depth_to_oldiv): Removed.
10834 (build_iv_mapping): Replace the use of rename_map with iv_map.
10835 (translate_clast_user): Remove uses of rename_map. Allocate and
10836 free iv_map.
10837 (translate_clast_for_loop): Remove uses of rename_map.
10838 (translate_clast_for): Same.
10839 (translate_clast_guard): Same.
10840 (translate_clast): Same.
10841 (gloog): Same.
10842 * graphite-clast-to-gimple.h (debug_clast_name_indexes): Removed.
10843 * graphite-sese-to-poly.c (scev_analyzable_p): Moved...
10844 * sese.c (set_rename): Now static.
10845 (rename_variables_in_stmt): Removed.
10846 (rename_uses): New.
10847 (is_parameter): Removed.
10848 (is_iv): Removed.
10849 (expand_scalar_variables_call): Removed.
10850 (expand_scalar_variables_ssa_name): Removed.
10851 (expand_scalar_variables_expr): Removed.
10852 (expand_scalar_variables_stmt): Removed.
10853 (expand_scalar_variables): Removed.
10854 (rename_variables): Removed.
10855 (remove_condition): Removed.
10856 (get_true_edge_from_guard_bb): Removed.
10857 (get_false_edge_from_guard_bb): Removed.
10858 (struct igp): Removed.
10859 (default_before_guard): Removed.
10860 (convert_for_phi_arg): Removed.
10861 (add_guard_exit_phis): Removed.
10862 (insert_guard_phis): Removed.
10863 (graphite_copy_stmts_from_block): Now also uses iv_map and a
10864 region. Do not copy conditions. Do not copy induction variables.
10865 Call rename_uses.
10866 (copy_bb_and_scalar_dependences): Allocate a local rename_map for
10867 the translated statement. Use the iv_map for the induction
10868 variable renaming.
10869 * sese.h (copy_bb_and_scalar_dependences): Update declaration.
10870 (set_rename): Removed declaration.
10871 (scev_analyzable_p): ...here.
10872 * tree-chrec.c (chrec_apply_map): New.
10873 * tree-chrec.h (chrec_apply_map): Declared.
10874
10875 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10876
10877 * graphite-clast-to-gimple.c (translate_clast_for_loop): Do not call
10878 insert_loop_close_phis.
10879 * sese.c (name_defined_in_loop_p): Removed.
10880 (expr_defined_in_loop_p): Removed.
10881 (alive_after_loop): Removed.
10882 (close_phi_not_yet_inserted_p): Removed.
10883 (struct alep): Removed.
10884 (add_loop_exit_phis): Removed.
10885 (insert_loop_close_phis): Removed.
10886
10887 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10888
10889 * graphite-cloog-util.c
10890 (cloog_matrix_to_ppl_constraint): Fix flipped condition.
10891 * graphite-poly.c
10892 (psct_scattering_dim_for_loop_depth): Same.
10893
10894 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10895
10896 * graphite-cloog-util.h: Added cloog.h.
10897 * graphite-blocking.c: Removed cloog.h.
10898 * graphite-dependences.c: Same.
10899 * graphite-interchange.c: Same.
10900 * graphite-poly.c: Same.
10901 * graphite-ppl.c: Same.
10902 * graphite-scop-detection.c: Same.
10903 * graphite-sese-to-poly.c:
10904 Removed cloog.h.
10905 Removed graphite-clast-to-gimple.h.
10906 (check_poly_representation): Removed (unused).
10907 * graphite-sese-to-poly.h
10908 (check_poly_representation): Removed (unused).
10909
10910 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10911
10912 * Makefile.in (OBJS-common): Added graphite-cloog-util.o.
10913 (graphite-clast-to-gimple.o): Added graphite-cloog-util.h.
10914 (graphite-cloog-util.o): New.
10915 (graphite-ppl.o): Added graphite-cloog-util.h.
10916 * graphite-clast-to-gimple.c:
10917 Added graphite-cloog-util.h to include statements.
10918 * graphite-cloog-util.c: New.
10919 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.c.
10920 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
10921 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
10922 (new_C_Polyhedron_from_Cloog_Matrix): Same.
10923 (insert_constraint_into_matrix): Same.
10924 (ppl_Constrain_System_number_of_constraints): Same.
10925 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
10926 (oppose_constraint): Same.
10927 (cloog_matrix_to_ppl_constraint): Same.
10928 (new_Constraint_System_from_Cloog_Matrix): Same.
10929 * graphite-cloog-util.h: New.
10930 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved from graphite-ppl.h.
10931 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
10932 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
10933 (new_C_Polyhedron_from_Cloog_Matrix): Same.
10934 (insert_constraint_into_matrix): Same.
10935 * graphite-ppl.c:
10936 Added graphite-cloog-util.h to include statements.
10937 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to graphite-cloog-util.c.
10938 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
10939 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
10940 (new_C_Polyhedron_from_Cloog_Matrix): Same.
10941 (insert_constraint_into_matrix): Same.
10942 (ppl_Constrain_System_number_of_constraints): Same.
10943 (new_Cloog_Matrix_from_ppl_Constraint_System): Same.
10944 (oppose_constraint): Same.
10945 (cloog_matrix_to_ppl_constraint): Same.
10946 (new_Constraint_System_from_Cloog_Matrix): Same.
10947 * graphite-ppl.h:
10948 (new_Cloog_Matrix_from_ppl_Polyhedron): Moved to
10949 graphite-cloog-util.h.
10950 (new_Cloog_Domain_from_ppl_Polyhedron): Same.
10951 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
10952 (new_C_Polyhedron_from_Cloog_Matrix): Same.
10953 (insert_constraint_into_matrix): Same.
10954
10955 2010-08-11 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
10956
10957 * graphite-clast-to-gimple.c
10958 (precision_for_value): Resolve value_* calls to matching mpz_* calls.
10959 (precision_for_interval): Same.
10960 (gcc_type_for_interval): Same.
10961 (compute_type_for_level): Same.
10962 * graphite-interchange.c
10963 (lst_interchange_profitable_p): Same.
10964 * graphite-poly.c
10965 (psct_scattering_dim_for_loop_depth): Same.
10966 * graphite-ppl.c
10967 (ppl_max_for_le_pointset): Same.
10968 (ppl_min_for_le_pointset): Same.
10969
10970 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10971
10972 * graphite-sese-to-poly.c (rewrite_degenerate_phi): New.
10973 (rewrite_reductions_out_of_ssa): Call it for degenerate_phi_result.
10974
10975 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10976
10977 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Call
10978 rewrite_close_phi_out_of_ssa.
10979
10980 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10981
10982 * graphite-sese-to-poly.c (rewrite_cross_bb_phi_deps): Remove dead code.
10983
10984 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
10985
10986 * graphite-clast-to-gimple.c (build_iv_mapping): Rename map with
10987 rename_map.
10988 * sese.c (debug_rename_map): Same.
10989 (get_rename): Same.
10990 (set_rename): Same.
10991 (rename_variables_in_stmt): Same.
10992 (expand_scalar_variables_call): Same.
10993 (expand_scalar_variables_ssa_name): Same.
10994 (expand_scalar_variables_expr): Same.
10995 (expand_scalar_variables_stmt): Same.
10996 (expand_scalar_variables): Same.
10997 (rename_variables): Same.
10998 (graphite_copy_stmts_from_block): Same.
10999 (copy_bb_and_scalar_dependences): Same.
11000
11001 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11002
11003 * graphite-clast-to-gimple.c (copy_renames): Removed.
11004 (translate_clast_for): Do not call copy_renames.
11005 (translate_clast_guard): Same.
11006
11007 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11008
11009 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Moved up.
11010 (rewrite_cross_bb_phi_deps): Split out of rewrite_cross_bb_scalar_deps.
11011 (rewrite_cross_bb_scalar_deps_out_of_ssa): Run rewrite_cross_bb_phi_deps
11012 before rewrite_cross_bb_scalar_deps.
11013
11014 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11015
11016 * graphite-sese-to-poly.c (rewrite_commutative_reductions_out_of_ssa):
11017 Early return in when flag_associative_math is not set.
11018
11019 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11020
11021 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Always insert out
11022 of SSA copies on edges except for loop->latch.
11023
11024 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11025
11026 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps_out_of_ssa):
11027 Split out of rewrite_reductions_out_of_ssa.
11028 * graphite-sese-to-poly.h (rewrite_cross_bb_scalar_deps_out_of_ssa):
11029 Declared.
11030 * graphite.c (graphite_transform_loops): Call it.
11031
11032 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11033
11034 * graphite.c (graphite_transform_loops): Add two more dbg_cnt calls.
11035
11036 2010-08-11 Alexander Monakov <amonakov@ispras.ru>
11037
11038 * dbgcnt.def (graphite_scop): New counter.
11039 * graphite.c: Include dbgcnt.h.
11040 (graphite_transform_loops): Use new counter to limit transformations.
11041 * Makefile.in (graphite.o): Depend on DBGCNT_H.
11042
11043 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11044
11045 * passes.c (init_optimization_passes): Add pass_graphite.
11046 Schedule a pass_copy_prop before pass_graphite_transforms.
11047 * timevar.def (TV_GRAPHITE): Declared.
11048 * tree-pass.h (pass_graphite): Declared.
11049 * tree-ssa-loop.c (pass_graphite): New.
11050
11051 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11052
11053 * graphite-clast-to-gimple.c (gloog): Do not pass scops in parameter.
11054 Remove calls to rename_nb_iterations and rename_sese_parameters.
11055 * graphite-clast-to-gimple.h (gloog): Update declaration.
11056 * graphite.c (graphite_transform_loops): Update call to gloog.
11057 * sese.c (rename_variables_in_expr): Removed.
11058 (rename_nb_iterations): Removed.
11059 (rename_sese_parameters): Removed.
11060 * sese.h (rename_nb_iterations): Removed.
11061 (rename_sese_parameters): Removed.
11062
11063 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11064
11065 * graphite-clast-to-gimple.c (gloog): Remove call to
11066 sese_adjust_liveout_phis.
11067 * graphite-sese-to-poly.c (scev_analyzable_p): When scev returns an
11068 SSA_NAME, allow it to be handled by rewrite_cross_bb_scalar_deps.
11069 (rewrite_cross_bb_scalar_deps): Handle GIMPLE_PHI nodes: call
11070 rewrite_phi_out_of_ssa.
11071 * sese.c (get_vdef_before_sese): Removed.
11072 (sese_adjust_vphi): Removed.
11073 (sese_adjust_liveout_phis): Removed.
11074 * sese.h (sese_adjust_liveout_phis): Removed.
11075
11076 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11077
11078 * graphite-sese-to-poly.c (insert_out_of_ssa_copy): Pass an extra
11079 argument for the place after which to insert the out of SSA copy.
11080 (rewrite_close_phi_out_of_ssa): Update calls to insert_out_of_ssa_copy.
11081 (rewrite_phi_out_of_ssa): Same.
11082 (rewrite_cross_bb_scalar_deps): Same.
11083 (insert_copyout): Removed.
11084 (insert_copyin): Removed.
11085 (translate_scalar_reduction_to_array): Call insert_out_of_ssa_copy and
11086 insert_out_of_ssa_copy_on_edge instead of insert_copyout and
11087 insert_copyin.
11088
11089 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11090
11091 * graphite-sese-to-poly.c (build_scop_bbs): Not static anymore.
11092 (rewrite_reductions_out_of_ssa): Same.
11093 (rewrite_commutative_reductions_out_of_ssa): Same.
11094 (build_poly_scop): Do not call these functions.
11095 * graphite-sese-to-poly.h (build_poly_scop): Declared.
11096 (rewrite_reductions_out_of_ssa): Declared.
11097 (rewrite_commutative_reductions_out_of_ssa): Declared.
11098 * graphite.c (graphite_transform_loops): Call on every scop
11099 rewrite_commutative_reductions_out_of_ssa before calling
11100 rewrite_reductions_out_of_ssa and build_scop_bbs.
11101
11102 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11103
11104 * graphite-dependences.c (dot_deps): Make system call to dotty run
11105 in background.
11106 (dot_deps_stmt): Same.
11107 * graphite-poly.c (dot_lst): Same.
11108
11109 2010-08-11 Sebastian Pop <sebastian.pop@amd.com>
11110
11111 * graphite-sese-to-poly.c (loop_entry_phi_arg): Renamed
11112 phi_arg_in_outermost_loop.
11113 (remove_simple_copy_phi): Call phi_arg_in_outermost_loop.
11114 (remove_invariant_phi): Same.
11115
11116 2010-08-11 Anatoly Sokolov <aesok@post.ru>
11117
11118 * target.def (output_addr_const_extra): New hook.
11119 * doc/tm.texi.in (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Document.
11120 * doc/tm.texi: Regenerate.
11121 * targhooks.c (default_asm_output_addr_const_extra): New function.
11122 * targhooks.h (default_asm_output_addr_const_extra): Declare.
11123 * final.c (output_addr_const): Use TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA
11124 target hook.
11125
11126 * config/i386/i386.h (OUTPUT_ADDR_CONST_EXTRA): Remove.
11127 * config/i386/i386-protos.h (output_addr_const_extra): Remove.
11128 * config/i386/i386.h (output_addr_const_extra): Rename to...
11129 (i386_asm_output_addr_const_extra): ...this. Make static.
11130 (TARGET_ASM_OUTPUT_ADDR_CONST_EXTRA): Define.
11131
11132 2010-08-11 Richard Henderson <rth@redhat.com>
11133
11134 * config/i386/i386.h (HARD_REGNO_CALL_PART_CLOBBERED): New.
11135
11136 2010-08-11 Nick Clifton <nickc@redhat.com>
11137
11138 * config/stormy16/stormy16-lib2.c (__cmpsi2): New function.
11139 * config/stormy16/stormy16-lib2-cmpsi2.c: New file.
11140 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
11141 stormy16-lib2-cmpsi.c.
11142
11143 * config/stormy16/t-stormy16 (TARGET_LIBGCC2_CFLAGS): Change to
11144 -O2.
11145
11146 2010-08-11 Joseph Myers <joseph@codesourcery.com>
11147
11148 * opts.h (struct cl_option_handler_func): Make handler take
11149 cl_decoded_option structure as parameter, not individual elements.
11150 (struct cl_option_handlers): Make callbacks take cl_decoded_option
11151 structure as parameter, not individual elements.
11152 (handle_option): Take cl_decoded_option structure as parameter,
11153 not individual elements.
11154 (handle_generated_option): Declare.
11155 * opts-common.c (handle_option): Take cl_decoded_option structure
11156 as parameter, not individual elements. Update calls to callback
11157 and handler functions.
11158 (handle_generated_option): New.
11159 (read_cmdline_option): Update calls to callback functions and
11160 handle_option.
11161 * opts.c (common_handle_option, complain_wrong_lang,
11162 unknown_option_callback, post_handling_callback,
11163 lang_handle_option, target_handle_option): Take cl_decoded_option
11164 structure as parameter, not individual elements.
11165 (lang_handle_option, target_handle_option, common_handle_option):
11166 Assert option has at most one argument.
11167 (enable_warning_as_error): Call handle_generated_option instead of
11168 handle_option. Do not pass -Werror argument as argument of
11169 generated option.
11170
11171 2010-08-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11172
11173 * config/pa/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
11174 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
11175 (SUBWORD_BOOL_CAS): Likewise.
11176 (SUBWORD_SYNC_OP): Likewise.
11177 (SUBWORD_TEST_AND_SET): Likewise.
11178 (FETCH_AND_OP_WORD): Parenthesise INF_OP
11179 (SUBWORD_SYNC_OP): Likewise.
11180 (OP_AND_FETCH_WORD): Likewise.
11181
11182 2010-08-10 Xinliang David Li <davidxl@google.com>
11183
11184 * tree-ssa-loop-ivopts.c (get_address_cost): Properly
11185 compute max/min offset in address.
11186
11187 2010-08-10 Vladimir Makarov <vmakarov@redhat.com>
11188
11189 * ira-live.c: Include sbitmap.h.
11190 (remove_some_program_points_and_update_live_ranges): Use sbitmaps.
11191 Compress live ranges even more.
11192
11193 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
11194
11195 * coverage.c (ctr_labels): Delete.
11196
11197 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
11198
11199 PR bootstrap/45177
11200 * config/arm/arm.c (multiple_operation_profitable_p): Move xscale
11201 test here from arm_gen_load_multiple_1.
11202 (arm_gen_load_multiple_1, arm_gen_store_multiple_1): Use
11203 multiple_operation_profitable_p.
11204
11205 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
11206
11207 * tree-ssa-pre.c (init_pre): Call alloc_aux_for_blocks.
11208 (fini_pre): Call free_aux_for_blocks. Delete unused bb variable.
11209
11210 2010-08-10 Richard Henderson <rth@redhat.com>
11211
11212 * config/i386/i386.c (ix86_compute_frame_layout): Re-align stack
11213 after saving registers. Assert that SSE registers are only saved
11214 with a sufficiently aligned frame.
11215 (ix86_emit_save_reg_using_mov): Assert realigned only with DRAP;
11216 remove stack_realign_fp handling.
11217 (ix86_expand_prologue): Save int registers before stack_realign_fp,
11218 and do not mark the stack alignment as frame related.
11219 (ix86_expand_epilogue): SP is now invalid with stack_realign_fp.
11220
11221 * dwarf2out.c (dwarf2out_frame_debug_expr): Flush queued register
11222 saves when re-aligning the stack.
11223
11224 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
11225
11226 * basic-block.h (alloc_aux_for_block, alloc_aux_for_edge): Delete.
11227 * cfg.c (alloc_aux_for_block, alloc_aux_for_edge): Make static.
11228 (alloc_aux_for_blocks, clear_aux_for_blocks): Use FOR_ALL_BB.
11229
11230 2010-08-10 Nathan Froyd <froydnj@codesourcery.com>
11231
11232 * dwarf2out.c (struct die_struct): Move die_tag to the end.
11233
11234 2010-08-09 Sofiane Naci <sofiane.naci@arm.com>
11235
11236 * config/arm/iterators.md: New file.
11237 * config/arm/arm.md: Include iterators.md.
11238 (QHSI): Move to new file.
11239 (LTUGEU, cnb, optab, ior_xor): Likewise.
11240 * config/arm/iwmmxt.md (VMMX): Move to new file.
11241 (VSHFT, MMX_char): Likewise.
11242 * config/arm/neon.md (VD): Move to new file.
11243 (VDX, VDI, VQ, VQX, VQI, VQXMOV, VSTRUCT, VTAB, V_TAB_n, VW): Likewise.
11244 (VN, VDQ, VDQW, VDQIW, VCVTF, VCVTI, VMD, VMQ, VMDQ, VMDI): Likewise.
11245 (VMDQI, VX, VE, V64, V32, V_CVTTO, V_elem, V_ext): Likewise.
11246 (V_two_elem, V_three_elem, V_four_elem, V_req, V_widen): Likewise.
11247 (V_narrow, V_HALF, V_half,V_DOUBLE, V_double): Likewise.
11248 (V_double_width, V_cmp_result, V_if_elem, V_s_elem): Likewise.
11249 (V_u_elem, V_uf_sclr, V_sz_elem, VD_dup): Likewise.
11250 (V_PAIR, vqh_ops, vqhs_ops, VQH_mnem, VQH_sign, V_suf64): Likewise.
11251 (scalar_mul_constraint,Is_float_mode, Scalar_mul_8_16): Likewise.
11252 (Is_d_reg, V_mode_nunits): Likewise.
11253 * config/arm/vec-common.md (VALL): Move to new file.
11254 (VALLW, VINT, VINTW): Likewise.
11255
11256 2010-08-10 Bernd Schmidt <bernds@codesourcery.com>
11257
11258 PR middle-end/45182
11259 * combine.c (make_compound_operation): Don't try to convert
11260 shifts into multiplications for modes that aren't SCALAR_INT_MODE_P.
11261
11262 2010-08-10 Richard Guenther <rguenther@suse.de>
11263
11264 * tree.h (get_object_alignment): Adjust prototype.
11265 * builtins.c (get_object_alignment): Return unsigned int,
11266 drop the align parameter. Handle MEM_REF, MISALIGNED_INDIRECT_REF
11267 and TARGET_MEM_REF properly.
11268 (get_pointer_alignment): Adjust.
11269 * emit-rtl.c (get_mem_align_offset): Adjust comment.
11270 (set_mem_attributes_minus_bitpos): Adjust.
11271 * tree-ssa-ccp.c (get_value_from_alignment): Adjust.
11272
11273 2010-08-10 Richard Guenther <rguenther@suse.de>
11274
11275 * tree-ssa-copy.c (set_copy_of_val): Use operand_equal_p.
11276 (copy_prop_visit_assignment): Simplify.
11277 (copy_prop_visit_stmt): Also visit assignments from
11278 constants.
11279 (copy_prop_visit_phi_node): Use operand_equal_p.
11280
11281 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
11282
11283 * ipa-split.c (find_split_points): Free stack.
11284
11285 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
11286
11287 * tree.h (tree_node_kind) [perm_list_kind,temp_list_kind]: Delete.
11288 * tree.c (tree_node_kind): Delete corresponding entries.
11289
11290 2010-08-09 H.J. Lu <hongjiu.lu@intel.com>
11291
11292 * alias.c (may_alias_p): Remove unused ret.
11293
11294 2010-08-09 Bingfeng Mei <bmei@broadcom.com>
11295
11296 * ddg.c (walk_mems_2): Moved from alias.c, use may_alias_p instead of
11297 alias_sets_conflict_p.
11298 (walk_mems_1): Moved from alias.c.
11299 (insns_may_alias_p): New function, originally insn_alias_sets_conflict_p
11300 in alias.c.
11301 (add_inter_loop_mem_dep): Use insns_may_alias_p now.
11302 * cse.c (cse_insn): New argument in calling nonoverlapping_memrefs_p.
11303 * alias.c (walk_mems_2): Moved to ddg.c.
11304 (walk_mems_1): Ditto.
11305 (insn_alias_sets_conflict_p): Renamed to insns_may_alias_p and moved
11306 to ddg.c.
11307 (nonoverlapping_memrefs_p): Add flag to guard offset-based memory
11308 disambiguation.
11309 *(may_alias_p): New function to check whether two memory expression
11310 may alias or not. Currently used in buidling inter-iteration memory
11311 dependence.
11312 *alias.h (nonoverlapping_memrefs_p): New flag as third argument.
11313 (insn_alias_sets_conflict_p): Removed
11314 *rtl.h (may_alias_p): New function prototype.
11315
11316 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
11317
11318 * tree.c (nreverse): Assert that we don't have a BLOCK.
11319
11320 2010-08-09 Nathan Froyd <froydnj@codesourcery.com>
11321
11322 * builtins.c (fold_builtin_next_arg): Use stdarg_p.
11323 * config/arm/arm.c (arm_get_pcs_model): Likewise.
11324 * config/avr/avr.c (init_cumulative_args): Likewise.
11325 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
11326 * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
11327 * config/m68k/m68k.c (m68k_return_pops_args): Likewise.
11328 * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
11329 * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
11330 * config/pa/som.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
11331 * config/rs6000/rs6000.c (init_cumulative_args): Likewise.
11332 * dwarf2out.c (gen_subprogram_die): Likewise.
11333 * function.c (allocate_struct_function): Likewise.
11334 * c-aux-info.c (gen_formal_list_for_func_dec): Likewise.
11335 (deserves_ellipsis): Delete.
11336
11337 2010-08-09 Richard Guenther <rguenther@suse.de>
11338
11339 * tree-ssa-copy.c (cached_last_copy_of): Remove.
11340 (valueize_val): New function.
11341 (get_last_copy_of): Remove.
11342 (set_copy_of_val): Simplify.
11343 (dump_copy_of): Likewise.
11344 (copy_prop_visit_cond_stmt): Use valueize_val.
11345 (copy_prop_visit_phi_node): Properly handle unvisited names.
11346 Drop code managing copy-of chains.
11347 (init_copy_prop): Adjust.
11348 (fini_copy_prop): Likewise.
11349 (execute_copy_prop): Remove obsolete comment.
11350
11351 2010-08-09 Richard Guenther <rguenther@suse.de>
11352
11353 PR middle-end/44632
11354 * function.c (gimplify_parameters): Do not clear addressable
11355 bit of the original parameter.
11356
11357 2010-08-09 Richard Guenther <rguenther@suse.de>
11358
11359 PR middle-end/45212
11360 * emit-rtl.c (set_mem_attributes_minus_bitpos): Adjust
11361 alignment from MEM_REF offset only if we took it from the
11362 base object.
11363
11364 2010-08-09 Eric Fisher <joefoxreal@gmail.com>
11365
11366 * doc/sourcebuild.texi (vect_int_mult): Remove duplicate entry.
11367
11368 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
11369
11370 * c-tree.h (build_arg_info): Declare.
11371 * c-decl.c (build_arg_info): Define.
11372 (get_parm_info): Call it. Delete initialization code.
11373 * c-parser.c (c_parser_parms_declarator): Likewise.
11374 (c_parser_parms_list_declaractor): Likewise.
11375
11376 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
11377
11378 * c-tree.h (c_arg_tag): Define. Define a VEC containing it.
11379 (struct c_arg_info): Change type of tags field.
11380 * c-decl.c (grokdeclarator): Update for changed type of tags field.
11381 (get_parm_info): Likewise.
11382 (store_parm_decls_newstyle): Likewise.
11383
11384 2010-08-08 Nathan Froyd <froydnj@codesourcery.com>
11385
11386 * config/rs6000/rs6000.c (branch_island): Define. Define a VEC of it.
11387 (branch_island_list): Delete.
11388 (branch_islands): Declare.
11389 (add_compiler_branch_island): Adjust for branch_islands instead of
11390 branch_island_list.
11391 (macho_branch_islands): Likewise.
11392 (no_previous_def): Likewise.
11393 (get_prev_label): Likewise.
11394
11395 2010-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11396
11397 PR boehm-gc/34544
11398 * gthr-posix.h (__gthread_start): Delete.
11399 (__gthread_active_init): Use pthread_default_stacksize_np instead of
11400 pthread_create to determine if hpux pthreads are active.
11401 * gthr-posix95.h (__gthread_start): Delete.
11402 (__gthread_active_init): Likewise use pthread_default_stacksize_np.
11403
11404 2010-08-08 Kai Tietz <kai.tietz@onevision.com>
11405
11406 * config/i386/mingw32.h ((EXTRA_OS_CPP_BUILTINS): Define
11407 _WIN64 not expanded.
11408
11409 2010-08-07 Uros Bizjak <ubizjak@gmail.com>
11410 H.J. Lu <hongjiu.lu@intel.com>
11411
11412 PR target/45213
11413 * config/i386/i386.c (ix86_print_operand): Handle 'q' operand modifier
11414 to output 32bit SFmode immediate as 8 byte sign extended value.
11415
11416 2010-08-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
11417
11418 * config/arm/linux-atomic.c (SUBWORD_VAL_CAS): Instantiate with
11419 'unsigned short' and 'unsigned char' instead of 'short' and 'char'.
11420 (SUBWORD_BOOL_CAS): Likewise.
11421 (SUBWORD_SYNC_OP): Likewise.
11422 (SUBWORD_TEST_AND_SET): Likewise.
11423 (FETCH_AND_OP_WORD): Parenthesise INF_OP
11424 (SUBWORD_SYNC_OP): Likewise.
11425 (OP_AND_FETCH_WORD): Likewise.
11426
11427 2010-08-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11428
11429 * config/arm/cortex-a9.md: Rewrite VFP Pipeline description.
11430 * config/arm/arm.c (arm_xscale_tune): Initialize sched_adjust_cost.
11431 (arm_fastmul_tune,arm_slowmul_tune, arm_9e_tune): Likewise.
11432 (arm_adjust_cost): Split into xscale_sched_adjust_cost and a
11433 generic part.
11434 (cortex_a9_sched_adjust_cost): New function.
11435 (xscale_sched_adjust_cost): New function.
11436 * config/arm/arm-protos.h (struct tune_params): New field
11437 sched_adjust_cost.
11438 * config/arm/arm-cores.def: Adjust costs for cortex-a9.
11439
11440 2010-08-06 Eric Botcazou <ebotcazou@adacore.com>
11441
11442 PR target/44942
11443 * config/sparc/sparc.c (function_arg_advance): Always take into account
11444 the padding, if any.
11445
11446 2010-08-06 Richard Guenther <rguenther@suse.de>
11447
11448 * tree-ssa-ccp.c (struct prop_value_d): Add mask member.
11449 (dump_lattice_value): Dump it.
11450 (get_default_value): Adjust.
11451 (get_constant_value): Likewise.
11452 (set_value_varying): Likewise.
11453 (set_lattice_value): Make sure to not go up the lattice
11454 with bitwise constant values.
11455 (get_value_for_expr): Handle ADDR_EXPRs.
11456 (value_to_double_int): New function.
11457 (get_value_from_alignment): Likewise.
11458 (do_dbg_cnt): Adjust.
11459 (ccp_lattice_meet): Handle partially constant values.
11460 (bit_value_unop_1): New function.
11461 (bit_value_binop_1): Likewise.
11462 (bit_value_unop): Likewise.
11463 (bit_value_binop): Likewise.
11464 (evaluate_stmt): Track partially constant values if
11465 flag_tree_bit_ccp is set.
11466 (ccp_fold_stmt): Dump if we folded a predicate.
11467 (ccp_visit_stmt): Adjust.
11468 * common.opt (ftree-bit-ccp): New flag.
11469 * doc/invoke.texi (ftree-bit-ccp): Document.
11470 * opts.c (decode_options): Enable bit-CCP at -O1.
11471
11472 2010-08-06 Alan Modra <amodra@gmail.com>
11473
11474 * doc/invoke.texi (RS/6000 and PowerPC Options): Rewrite -mrelocatable
11475 and -mrelocatable-lib description.
11476
11477 2010-08-05 Bernd Schmidt <bernds@codesourcery.com>
11478
11479 From Martin Thuresson <martint@google.com>
11480 * postreload.c (reload_cse_simplify_operands): Use
11481 SET_REGNO_RAW instead of SET_REGNO.
11482 * caller-save.c (reg_save_code): Use SET_REGNO_RAW instead of
11483 SET_REGNO.
11484 * ira.c (setup_prohibited_mode_move_regs): Use SET_REGNO_RAW
11485 instead of SET_REGNO.
11486 * rtl.h (SET_REGNO_RAW): New macro.
11487
11488 2010-08-05 Eric Botcazou <ebotcazou@adacore.com>
11489
11490 * rtlanal.c (nonzero_bits1): Use unsigned HOST_WIDE_INT in all mask
11491 computations. Fix formatting issues.
11492 (num_sign_bit_copies1): Likewise.
11493 (canonicalize_condition): Likewise.
11494
11495 2010-08-05 Richard Henderson <rth@redhat.com>
11496
11497 * toplev.h (ctz_hwi, clz_hwi, ffs_hwi): New.
11498 (floor_log2): Use clz_hwi.
11499 (exact_log2): Use ctz_hwi.
11500 * toplev.c (ctz_hwi, clz_hwi, ffs_hwi): New.
11501 * builtins.c (fold_builtin_bitop): Use them.
11502 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
11503 * combine.c (get_pos_from_mask): Use ctz_hwi.
11504 * double-int.c (double_int_ctz): Likewise.
11505 * explow.c (force_reg): Likewise.
11506 * tree.h (SET_DECL_OFFSET_ALIGN): Use ffs_hwi.
11507
11508 2010-08-05 Richard Henderson <rth@redhat.com>
11509
11510 PR target/45189
11511 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Make sure
11512 the alignment constant is properly sign-extended.
11513
11514 2010-08-05 Richard Guenther <rguenther@suse.de>
11515
11516 * expr.c (store_expr): Use emit_block_move only if both
11517 source and target are MEMs. Use store_bit_field if only
11518 the target is a MEM.
11519
11520 2010-08-05 Richard Henderson <rth@redhat.com>
11521
11522 PR debug/45188
11523 * dwarf2out.c (DWARF2_UNWIND_INFO): Provide default definition.
11524 (INCOMING_RETURN_ADDR_RTX): Likewise.
11525 (dwarf2out_do_frame): Remove conditional compilation.
11526 (dwarf2out_frame_init): Likewise.
11527
11528 2010-08-05 Nicolas Setton <setton@adacore.com>
11529
11530 * gcov.c (flag_display_progress): New static variable.
11531 (main): Display progress info on standard output if requested.
11532 (options): Add -d/--display-progress.
11533 (print_usage): Print them.
11534 (process_args): Handle them.
11535 * doc/gcov.texi: Document them.
11536
11537 2010-08-05 Martin Jambor <mjambor@suse.cz>
11538
11539 * ipa-cp.c (ipcp_discover_new_direct_edges): New function.
11540 (ipcp_insert_stage): Redirect only edges not flagged with
11541 indirect_inlining_edge. Call ipcp_discover_new_direct_edges for all
11542 discovered constants.
11543
11544 2010-08-05 Martin Jambor <mjambor@suse.cz>
11545
11546 * ipa-prop.h (enum ipa_lattice_type): Changed comments.
11547 (struct ipa_param_descriptor): New fields types and
11548 cannot_devirtualize.
11549 (ipa_param_cannot_devirtualize_p): New function.
11550 (ipa_param_types_vec_empty): Likewise.
11551 (ipa_make_edge_direct_to_target): Declare.
11552 * ipa-cp.c: Fixed first stage driver name in initial comment,
11553 described devirtualization there too.
11554 (ipcp_analyze_node): Call ipa_analyze_params_uses.
11555 (ipcp_print_all_lattices): Print devirtualization info.
11556 (ipa_set_param_cannot_devirtualize): New function.
11557 (ipcp_initialize_node_lattices): Set cannot_devirtualize when setting
11558 lattice to BOTTOM.
11559 (ipcp_init_stage): Merged into...
11560 (ipcp_generate_summary): ...its caller.
11561 (ipcp_change_tops_to_bottom): Also process type lists.
11562 (ipcp_add_param_type): New function.
11563 (ipcp_copy_types): Likewise.
11564 (ipcp_propagate_types): Likewise.
11565 (ipcp_propagate_stage): Also propagate types.
11566 (ipcp_need_redirect_p): Variable jump_func moved to its scope block.
11567 Also return true if propagated types require it.
11568 (ipcp_update_callgraph): Dump redirection info.
11569 (ipcp_process_devirtualization_opportunities): New function.
11570 (ipcp_const_param_count): Include known type information.
11571 (ipcp_insert_stage): Call ipcp_process_devirtualization_opportunities
11572 on new node. Fixed formatting.
11573 * ipa-prop.c (make_edge_direct_to_target): Renamed to
11574 ipa_make_edge_direct_to_target and changed all callers. Made
11575 externally visible.
11576 (ipa_node_duplication_hook): Duplicate types vector.
11577 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Also try to
11578 redirect outgoing calls for which we can't get a decl from the
11579 statement. Check that we can get a decl from the call statement.
11580 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
11581 ipa_analyze_params_uses only when ipa-cp is disabled.
11582 * tree-inline.c (get_indirect_callee_fndecl): Removed.
11583 (expand_call_inline): Do not call get_indirect_callee_fndecl.
11584 * params.def (PARAM_DEVIRT_TYPE_LIST_SIZE): New parameter.
11585 * Makefile.in (ipa-cp.o): Add gimple.h to dependencies.
11586
11587 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
11588
11589 * expmed.c (expand_mult_const) <case alg_shift>: Expand shift into
11590 temporary. Emit move from temporary to accum, so REG_EQUAL note will
11591 be attached to this insn in correct mode.
11592
11593 2010-08-05 Uros Bizjak <ubizjak@gmail.com>
11594
11595 * config/i386/i386.c (ix86_decompose_address): Check for SI_REG
11596 using REGNO of base_reg directly.
11597
11598 2010-08-05 Jie Zhang <jie@codesourcery.com>
11599
11600 PR tree-optimization/45144
11601 * tree-sra.c (type_consists_of_records_p): Return false
11602 if the record contains bit-field.
11603
11604 2010-08-04 Richard Henderson <rth@redhat.com>
11605
11606 * config/i386/i386.c (struct ix86_frame): Remove padding and
11607 to_allocate members.
11608 (ix86_compute_frame_layout): Don't store them.
11609 (ix86_can_use_return_insn_p): Use a more direct and more obviously
11610 correct condition for the position of the stack pointer.
11611 (ix86_expand_prologue): Compute remaining stack allocation based
11612 on the ultimate stack pointer offset.
11613 (ix86_expand_epilogue): Use more obvious expressions testing for
11614 the stack pointer already pointing to the saved registers.
11615
11616 * config/i386/i386.c (ix86_expand_epilogue): Eliminate code
11617 duplication deconstructing the frame pointer. Simplify
11618 deallocation of the local stack frame.
11619
11620 * reg-notes.def (CFA_EXPRESSION): New.
11621 * dwarf2out.c (dwarf2out_frame_debug): Handle it.
11622 (dwarf2out_frame_debug_cfa_expression): New.
11623 (dwarf2out_frame_debug_def_cfa): Handle simple MEMs.
11624
11625 * config/i386/i386.h (struct machine_frame_state): Add realigned flag.
11626 * config/i386/i386.c (ix86_expand_prologue): Set it.
11627 (ix86_expand_epilogue): Clear it.
11628 (ix86_emit_save_reg_using_mov): For registers saved in a realigned
11629 context, add REG_CFA_EXPRESSION notes.
11630
11631 * config/i386/i386.h (struct machine_frame_state): Rename from
11632 machine_cfa_state. Add members tracking SP and FP regardless
11633 of the current CFA register.
11634 (ix86_cfa_state): Remove.
11635 * config/i386/i386.c (struct ix86_frame): Add reg_save_offset
11636 and sse_reg_save_offset members.
11637 (ix86_compute_frame_layout): Set them.
11638 (gen_push): Increment sp_offset too.
11639 (choose_baseaddr_len, choose_baseaddr): New.
11640 (ix86_emit_save_reg_using_mov): New.
11641 (ix86_emit_save_regs_using_mov): Use it.
11642 (ix86_emit_save_sse_regs_using_mov): Likewise.
11643 (ix86_add_cfa_restore_note): Take cfa_offset not red_offset argument;
11644 compare vs the saved red_zone_offset.
11645 (pro_epilogue_adjust_stack): Adjust sp_offset.
11646 (ix86_adjust_stack_and_probe): Likewise.
11647 (ix86_expand_prologue): Set up, use, and validate the new
11648 frame_state_info members. Use gen_frame_mem.
11649 (ix86_emit_restore_regs_using_pop): Remove red_offset parameter.
11650 (ix86_emit_restore_reg_using_pop): Likewise. Use and update the
11651 new frame_state_info members.
11652 (ix86_emit_leave): Likewise.
11653 (ix86_emit_restore_regs_using_mov): Likewise. Don't check for
11654 out-of-range stack pointer offsets here.
11655 (ix86_emit_restore_sse_regs_using_mov): Likewise.
11656 (ix86_expand_epilogue): Use and validate the new frame_state_info
11657 members. Break up and simplify the logic selecting the
11658 restore_regs_via_mov code path. Ensure that there will be no
11659 out-of-range stack pointer offsets.
11660
11661 * config/i386/cygming.h (TARGET_64BIT_MS_ABI): Remove.
11662
11663 * config/i386/i386.c (ix86_function_ms_hook_prologue): Fix
11664 argument name to reflect the expected tree; fix indentation.
11665 (ix86_asm_output_function_label): Output the entire 32-bit
11666 ms_hook here as bytes ...
11667 (ix86_expand_prologue): ... not here as insns. Attach the
11668 unwind info for the ms_hook to a blockage insn.
11669 (ix86_handle_fndecl_attribute): Don't check HAVE_AS_IX86_SWAP.
11670 (ix86_ms_bitfield_layout_p): Fix indentation.
11671 * config/i386/i386.md (UNSPECV_VSWAPMOV, vswapmov): Remove.
11672
11673 * config/i386/i386.c (ix86_using_red_zone): New.
11674 (ix86_compute_frame_layout, ix86_add_cfa_restore_note,
11675 ix86_expand_prologue, ix86_force_to_memory): Use it.
11676
11677 * config/i386/i386.c (ix86_expand_prologue): Simplify logic
11678 saving the int registers.
11679
11680 * dwarf2out.c: Remove most of the DWARF2_DEBUGGING_INFO
11681 and DWARF2_UNWIND_INFO conditional compilation.
11682
11683 2010-08-04 Richard Henderson <rth@redhat.com>
11684
11685 PR debug/45171
11686 * dwarf2out.c (gen_typedef_die): Don't re-generate the die of
11687 an is_naming_typedef_decl.
11688
11689 2010-08-04 Bernd Schmidt <bernds@codesourcery.com>
11690
11691 PR rtl-optimization/45162
11692 * df-problems.c (df_word_lr_bb_local_compute): Ignore DEBUG_INSNs.
11693 * dce.c (word_dce_process_block): Likewise.
11694
11695 2010-08-04 Steve Ellcey <sje@cup.hp.com>
11696
11697 PR target/44583
11698 * config/ia64/constraints.md (Z): New.
11699 * config/ia64/predicates.md (fr_reg_or_signed_fp01_operand): New.
11700 (xfreg_or_signed_fp01_operand): New.
11701 * config/ia64/ia64.md (addsf3): Replace fr_reg_or_fp01_operand
11702 with fr_reg_or_signed_fp01_operand and constraint G with Z.
11703 (subsf3): Ditto.
11704 (*maddsf4): Ditto.
11705 (*msubsf4): Ditto.
11706 (adddf3): Ditto.
11707 (adddf3_trunc): Ditto.
11708 (subdf3): Ditto.
11709 (*subdf3_trunc): Ditto.
11710 (*madddf4): Ditto.
11711 (*madddf4_trunc): Ditto.
11712 (*msubdf4): Ditto.
11713 (*msubdf4_trunc): Ditto.
11714 (addxf3): Replace xfreg_or_fp01_operand with
11715 xfreg_or_signed_fp01_operand and constraint G with Z.
11716 (*addxf3_truncsf): Ditto.
11717 (*addxf3_truncdf): Ditto.
11718 (subxf3): Ditto.
11719 (*subxf3_truncsf): Ditto.
11720 (*subxf3_truncdf): Ditto.
11721 (*maddxf4): Ditto.
11722 (*maddxf4_truncsf): Ditto.
11723 (*maddxf4_truncdf): Ditto.
11724 (*msubxf4): Ditto.
11725 (*msubxf4_truncsf): Ditto.
11726 (*msubxf4_truncdf): Ditto.
11727
11728 2010-08-04 Richard Guenther <rguenther@suse.de>
11729
11730 * alias.c (rtx_refs_may_alias_p): Do not resort to TBAA
11731 if either alias-set is zero.
11732
11733 2010-08-04 Richard Guenther <rguenther@suse.de>
11734
11735 * tree-ssa-propagate.h (struct prop_value_d, prop_value_t): Move ...
11736 * tree-ssa-ccp.c: ... here.
11737 * tree-ssa-copy.c: ... and here.
11738 * tree-ssa-propagate.h (enum value_range_type, struct value_range_d,
11739 value_range_t): Move ...
11740 * tree-vrp.c: ... here.
11741 * tree-ssa-propagate.h (ssa_prop_get_value_fn): New typedef.
11742 (substitute_and_fold): Adjust prototype.
11743 * tree-ssa-propagate.c (replace_uses_in): Adjust.
11744 (replace_phi_args_in): Likewise.
11745 (substitute_and_fold): Take callback to query lattice instead
11746 of pointer to lattice. Replace SSA name defs with lattice
11747 values first.
11748 * tree-ssa-ccp.c (ccp_finalize): Adjust.
11749 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust.
11750 (get_value): New function.
11751 (fini_copy_prop): Adjust.
11752 * tree-vrp.c (vrp_finalize): Adjust.
11753
11754 2010-08-04 Richard Guenther <rguenther@suse.de>
11755
11756 PR middle-end/45176
11757 * expr.c (expand_expr_real_1): Also preserve TARGET_MEM_REF
11758 points-to set for original MEM_REF.
11759
11760 2010-08-04 Richard Guenther <rguenther@suse.de>
11761
11762 * tree-ssa-ccp.c (get_constant_value): New function.
11763 (get_rhs_assign_op_for_ccp): Remove.
11764 (valueize_op): New function.
11765 (ccp_fold): Use get_constant_value and valueize_op.
11766 (fold_const_aggregate_ref): Likewise.
11767 (ccp_fold_stmt): Likewise.
11768 (visit_assignment): Simplify.
11769
11770 2010-08-04 Richard Guenther <rguenther@suse.de>
11771
11772 * Makefile.in (double-int.o): Add $(TOPLEV_H) dependency.
11773 * double-int.h (double_int_ctz): Declare.
11774 * double-int.c (double_int_ctz): New function.
11775
11776 2010-08-04 Hariharan Sandanagobalane <hariharan@picochip.com>
11777
11778 * config/picochip/picochip.c (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE):
11779 Define.
11780 picochip_expand_movmemhi : Expand movmem pattern.
11781 * config/picochip/picochip-protos.h (picochip_expand_movmemhi) :
11782 Declare.
11783 * config/picochip/picochip.md (movmemhi) : New pattern.
11784
11785 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
11786
11787 * config/i386/unix.h (GLOBAL_ASM_OPS): Add tabs around .globl.
11788
11789 2010-08-03 Bernd Schmidt <bernds@codesourcery.com>
11790
11791 * simplify-rtx.c (simplify_binary_operation_1): Try to simplify away
11792 NEG as operand of a MULT by merging it with the other operand.
11793 * combine.c (make_compound_operation): Use trunc_int_for_mode when
11794 generating a MULT with constant. Canonicalize PLUS and MINUS involving
11795 MULT.
11796 * config/arm/constraints.md (M): Examine only 32 bits of a
11797 HOST_WIDE_INT.
11798 * config/arm/predicates.md (power_of_two_operand): Likewise.
11799
11800 2010-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
11801
11802 * config/spu/spu.c (spu_emit_branch_hint): Do not access NOTE_KIND of
11803 non-NOTE insns.
11804
11805 2010-08-03 Jan Hubicka <jh@suse.cz>
11806
11807 * ipa-split.c (struct split_point): Add split_part_set_retval.
11808 (find_retval): Forward declare.
11809 (test_nonssa_use, mark_nonssa_use): Special case return by reference.
11810 (consider_split): Compute current->split_part_set_retval.
11811 (visit_bb): Do not look into return value.
11812 (split_function): Handle !split_part_set_retval
11813
11814 2010-08-03 Martin Jambor <mjambor@suse.cz>
11815
11816 * tree-sra.c (completely_scalarize_record): New parameter REF, create
11817 its own access->expr intead of using build_ref_for_offset.
11818
11819 2010-08-03 Joseph Myers <joseph@codesourcery.com>
11820
11821 * config/alpha/alpha.h (SWITCH_TAKES_ARG): Define.
11822 * config/alpha/osf5.h (LIB_SPEC): Don't handle -a.
11823 * config/bfin/bfin.h (ASM_SPEC, LINK_SPEC): Don't pass -G* options.
11824 * config/darwin.h (WORD_SWITCH_TAKES_ARG): Handle -iframework.
11825 * config/ia64/ia64.h (SWITCH_TAKES_ARG): Define.
11826 * config/iq2000/iq2000.h (SWITCH_TAKES_ARG): Remove.
11827 * config/rs6000/sysv4.h (SWITCH_TAKES_ARG): Define using
11828 DEFAULT_SWITCH_TAKES_ARG.
11829 * config/rx/rx.opt (-patch=): Remove option.
11830 * config/rx/rx.c (rx_handle_option): Don't handle OPT_patch_.
11831 * defaults.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Handle -imultilib.
11832 * doc/invoke.texi (RX Options): Remove -patch=.
11833 * gcc.c (cc1_options): Pass -aux-info* instead of -a* options.
11834 (option_map): Remove --profile-blocks, --quiet and --silent.
11835
11836 2010-08-03 Uros Bizjak <ubizjak@gmail.com>
11837
11838 * config/i386/i386.h (ix86_compare_op0, ix86_compare_op1): Remove.
11839 * config/i386/i386.c (ix86_compare_op0, ix86_compare_op1): Remove.
11840 (ix86_expand_branch): Add op0 and op1 arguments. Do not access
11841 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
11842 Update calls to ix86_expand_compare and ix86_expand_branch.
11843 (ix86_expand_setcc): Add op0 and op1 arguments. Update calls to
11844 ix86_expand_compare.
11845 (ix86_expand_compare): Add op0 and op1 arguments. Do not access
11846 ix86_compare_op0 and ix86_compare_op1, use op0 and op1 instead.
11847 Make static.
11848 (ix86_expand_carry_flag_compare): Do not set ix86_compare_op0
11849 and ix86_compare_op1. Update calls to ix86_expand_compare.
11850 (ix86_expand_int_movcc): Ditto.
11851 (ix86_expand_fp_movcc): Ditto. Update calls to ix86_expand_setcc.
11852 * config/i386/i386-protos.h (ix86_expand_branch): Update prototype.
11853 (ix86_expand_setcc): Ditto.
11854 (ix86_expand_compare): Remove prototype.
11855 * config/i386/i386.md (cbranch<SDWIM:mode>4): Do not set
11856 ix86_compare_op0 and ix86_compare_op1. Update calls
11857 to ix86_expand_branch to directly pass operands[1] and operands[2].
11858 (cbranchxf4): Ditto.
11859 (cbranch<MODEF:mode>4): Ditto.
11860 (cbranchcc4): Ditto.
11861 (cstore<SWIM:mode>4): Do not set ix86_compare_op0 and ix86_compare_op1.
11862 Update calls to ix86_expand_setcc to directly pass operands[2] and
11863 operands[3].
11864 (cstorexf4): Ditto.
11865 (cstore<MODEF:mode>4): Ditto.
11866 (cstorecc4): Ditto.
11867
11868 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
11869
11870 PR target/45063
11871 * caller-save.c (save_call_clobbered_regs): Remove regs from
11872 hard_regs_saved when they are set.
11873
11874 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
11875
11876 PR target/41089
11877 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
11878 as volatile.
11879
11880 2010-08-02 Sebastian Pop <sebastian.pop@amd.com>
11881
11882 * common.opt (ftree-loop-distribute-patterns): New.
11883 * invoke.texi (-ftree-loop-distribute-patterns): Documented.
11884 * opts.c (decode_options): Enable flag_tree_loop_distribute_patterns
11885 at -O3.
11886 * tree-data-ref.c (stores_zero_from_loop): New.
11887 * tree-data-ref.h (stores_zero_from_loop): Declared.
11888 * tree-loop-distribution.c (tree_loop_distribution): Call
11889 stores_zero_from_loop.
11890 (tree_loop_distribution): Check flag_tree_loop_distribute_patterns.
11891
11892 2010-08-02 Bernd Schmidt <bernds@codesourcery.com>
11893
11894 * postreload.c (reload_cse_simplify_operands): Take attribute enabled
11895 into account.
11896
11897 * final.c (final_scan_insn): Call CC_STATUS_INIT unconditionally.
11898 * config/arm/arm.c (thumb1_code): New variable.
11899 (arm_override_options): Set it.
11900 (thumb1_final_prescan_insn): Keep track of condition code status.
11901 (arm_adjust_cost): For Thumb, try to keep cc-setting insns next to
11902 jumps that depend on them.
11903 * config/arm/arm.h (thumb1_code): Declare variable.
11904 (struct machine_function): Guard with #ifndef GENERATOR_FILE. Add
11905 members thumb1_cc_insn, thumb1_cc_op0, thumb1_cc_op1 and
11906 thumb1_cc_mode.
11907 (CC_STATUS_INIT): New macro.
11908 * config/arm/constraints.md (Pd): New constraint.
11909 * config/arm/predicates.md (noov_comparison_operator): New predicate.
11910 * config/arm/arm.md (is_thumb1): New define_attr.
11911 (conds): Set default to "clob" when generating Thumb1 code.
11912 (thumb1_bicsi3): Renamed from bicsi3. All uses changed. Condition
11913 code are set. Use two-operand assembly syntax.
11914 (thumb1_subsi3_insn): Condition codes are set. Now a properly named
11915 pattern.
11916 (thumb1_andsi3_insn, thumb1_iorsi3_insn, thumb1_xorsi3_insn): Condition
11917 codes are set. Use two-operand assembly syntax.
11918 (zero_extendhisi splitter): Remove constraints.
11919 (thumb1_movsi_insn, thumb1_movhi_insn, thumb1_movqi_insn, thumb1_movhf,
11920 thumb1_movsf_insn): Set conds attribute as appropriate.
11921 (cbranchsi4_insn): Use condition code status from struct
11922 machine_function to determine whether the comparison can be eliminated.
11923 Discourage the alternative using high registers.
11924 (movsi_cbranchsi4, andsi3_cbranch, orrsi3_cbranch_scratch,
11925 orrsi3_cbranch, xorsi3_cbranch_scratch, xorsi3_cbranch,
11926 bicsi3_cbranch_scratch, bicsi3_cbranch, subsi3_cbranch_scratch,
11927 subsi3_cbranch): Delete.
11928 (movsi_cbranchsi4 peepholes): Rewrite to generate a sequence of
11929 one subtract and one cbranch insn.
11930
11931 * config/arm/thumb2.md (thumb2_movdi, thumb2_movsf_soft_insn,
11932 thumb2_movdf_soft_insn): Delete patterns.
11933 * config/arm/arm.md (arm_pool_range, thumb2_pool_range,
11934 arm_neg_pool_range, thumb2_neg_pool_range): New attributes.
11935 (pool_range, neg_pool_range): Use them to define defaults.
11936 (movdi, arm_movsf_soft_insn, arm_movdf_soft_insn): Define them
11937 and allow for TARGET_32BIT.
11938
11939 PR target/40457
11940 * config/arm/arm.h (arm_regs_in_sequence): Declare.
11941 * config/arm/arm-protos.h (emit_ldm_seq, emit_stm_seq,
11942 load_multiple_sequence, store_multiple_sequence): Delete
11943 declarations.
11944 (arm_gen_load_multiple, arm_gen_store_multiple): Adjust
11945 declarations.
11946 * config/arm/ldmstm.md: New file.
11947 * config/arm/arm.c (arm_regs_in_sequence): New array.
11948 (load_multiple_sequence): Now static. New args SAVED_ORDER,
11949 CHECK_REGS. All callers changed.
11950 If SAVED_ORDER is nonnull, copy the computed order into it.
11951 If CHECK_REGS is false, don't sort REGS. Handle Thumb mode.
11952 (store_multiple_sequence): Now static. New args NOPS_TOTAL,
11953 SAVED_ORDER, REG_RTXS and CHECK_REGS. All callers changed.
11954 If SAVED_ORDER is nonnull, copy the computed order into it.
11955 If CHECK_REGS is false, don't sort REGS. Set up REG_RTXS just
11956 like REGS. Handle Thumb mode.
11957 (arm_gen_load_multiple_1): New function, broken out of
11958 arm_gen_load_multiple.
11959 (arm_gen_store_multiple_1): New function, broken out of
11960 arm_gen_store_multiple.
11961 (arm_gen_multiple_op): New function, with code from
11962 arm_gen_load_multiple and arm_gen_store_multiple moved here.
11963 (arm_gen_load_multiple, arm_gen_store_multiple): Now just
11964 wrappers around arm_gen_multiple_op. Remove argument UP, all callers
11965 changed.
11966 (gen_ldm_seq, gen_stm_seq, gen_const_stm_seq): New functions.
11967 * config/arm/predicates.md (commutative_binary_operator): New.
11968 (load_multiple_operation, store_multiple_operation): Handle more
11969 variants of these patterns with different starting offsets. Handle
11970 Thumb-1.
11971 * config/arm/arm.md: Include "ldmstm.md".
11972 (ldmsi_postinc4, ldmsi_postinc4_thumb1, ldmsi_postinc3, ldmsi_postinc2,
11973 ldmsi4, ldmsi3, ldmsi2, stmsi_postinc4, stmsi_postinc4_thumb1,
11974 stmsi_postinc3, stmsi_postinc2, stmsi4, stmsi3, stmsi2 and related
11975 peepholes): Delete.
11976 * config/arm/ldmstm.md: New file.
11977 * config/arm/arm-ldmstm.ml: New file.
11978
11979 * config/arm/arm.c (arm_rtx_costs_1): Remove second clause from the
11980 if statement which adds extra costs to frame-related expressions.
11981
11982 2010-08-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11983
11984 * config/arm/arm.c (COSTS_N_INSNS): Remove definition.
11985
11986 2010-08-01 Uros Bizjak <ubizjak@gmail.com>
11987
11988 PR target/45142
11989 * config/i386/sse.md (vec_set<mode>_0): Do not set mode attribute for
11990 alternative 2.
11991 (vec_set<mode>_0 splitter): Use SSEMODE4S mode iterator to also
11992 split V4SI operands.
11993
11994 2010-08-01 Anatoly Sokolov <aesok@post.ru>
11995
11996 * config/mmix/mmix.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
11997 * config/mmix/mmix-protos.h (mmix_asm_output_source_filename): Remove.
11998 * config/mmix/mmix.c (mmix_asm_output_source_filename): Make static.
11999 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
12000
12001 2010-07-31 Kai Tietz <kai.tietz@onevision.com>
12002
12003 * cppdefault.c (cpp_include_defaults): Move GCC_INCLUDE_DIR before
12004 LOCAL_INCLUDE_DIR.
12005
12006 2010-07-31 Richard Sandiford <rdsandiford@googlemail.com>
12007
12008 * tree-ssa-math-opts.c (convert_plusminus_to_widen): Fix type
12009 used in the call to optab_for_tree_code. Fix the second
12010 is_widening_mult_p call. Check that both unwidened operands
12011 have the same sign.
12012
12013 2010-07-31 John Tytgat <John.Tytgat@aaug.net>
12014
12015 * config/arm/arm.c (arm_function_arg): Remove superfluous test.
12016
12017 2010-07-31 Anatoly Sokolov <aesok@post.ru>
12018
12019 * config/spu/spu.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
12020
12021 2010-07-30 DJ Delorie <dj@redhat.com>
12022
12023 * config/rx/predicates.md (rx_constshift_operand): New.
12024 * config/rx/rx.md (zs_cond): New.
12025 (cbranchsi4): Remove mode.
12026 (*cbranchsi4_<code>): Likewise.
12027 (*tstbranchsi4_<code>): New.
12028 (*tstbranchsi4r_<code>): New.
12029 (*tstbranchsi4m_eq): New.
12030 (*tstbranchsi4m_ne): New.
12031 (cbranchsf4): Remove mode.
12032 (*cbranchsf4_<code>): Likewise.
12033
12034 2010-07-30 Bernd Schmidt <bernds@codesourcery.com>
12035
12036 * rtlanal.c (simplify_subreg_regno): Don't treat
12037 HARD_FRAME_POINTER_REGNUM specially.
12038
12039 2010-07-30 Joseph Myers <joseph@codesourcery.com>
12040
12041 * common.opt (-G): Don't define option here.
12042 * config/g.opt: New.
12043 * config.gcc: Use g.opt for alpha, frv, ia64, lm32, m32r, mips,
12044 rs6000/powerpc and score targets.
12045 * opts.c (common_handle_option): Don't handle -G here.
12046 * config/alpha/alpha.c (alpha_handle_option): Handle -G.
12047 * config/frv/frv.c (frv_handle_option): Handle -G.
12048 * config/ia64/ia64.c (ia64_handle_option): Handle -G.
12049 * config/lm32/lm32.c (lm32_handle_option, TARGET_HANDLE_OPTION): New.
12050 * config/m32r/m32r.c (m32r_handle_option): Handle -G.
12051 * config/mips/mips.c (mips_handle_option): Handle -G.
12052 * config/rs6000/rs6000.c (rs6000_handle_option) Handle -G.
12053 * config/score/score.c (score_handle_option): Handle -G.
12054
12055 2010-07-30 Anatoly Sokolov <aesok@post.ru>
12056
12057 * config/mmix/mmix.c: Include basic-block.h.
12058
12059 2010-07-30 Jakub Jelinek <jakub@redhat.com>
12060
12061 PR debug/45055
12062 PR rtl-optimization/45137
12063 * rtl.h (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn): New
12064 prototypes.
12065 * emit-rtl.c (prev_nonnote_nondebug_insn, next_nonnote_nondebug_insn):
12066 New functions.
12067 * combine.c (next_nonnote_nondebug_insn): Removed.
12068 * ifcvt.c (noce_process_if_block): Use prev_nonnote_nondebug_insn.
12069 * haifa-sched.c (queue_to_ready): Use next_nonnote_nondebug_insn.
12070 * sched-deps.c (sched_analyze_insn): Likewise.
12071 (fixup_sched_groups, deps_start_bb): Use prev_nonnote_nondebug_insn.
12072 * rtlanal.c (canonicalize_condition): Likewise.
12073 * postreload.c (reload_combine_recognize_pattern): Likewise.
12074 (reload_cse_move2add): Use next_nonnote_nondebug_insn.
12075
12076 2010-07-29 Uros Bizjak <ubizjak@gmail.com>
12077
12078 * config/i386/i386.md (int_cond): Remove code iterator.
12079 (fp_cond): Ditto.
12080 (cbranch<mode>4): Use ordered_comparison_operator predicate
12081 for operator0.
12082 (cstore<mode>4): Ditto for operator1.
12083 (mov<SWIM:mode>cc and corresponding splitter): Ditto.
12084 (add<mode>cc): ditto.
12085
12086 2010-07-30 Richard Guenther <rguenther@suse.de>
12087
12088 PR middle-end/45141
12089 * expr.c (expand_expr_real_1): Check for not handled base address.
12090
12091 2010-07-30 Richard Guenther <rguenther@suse.de>
12092
12093 * ipa-prop.c (ipa_modify_formal_parameters): Use
12094 build_distinct_type_copy.
12095
12096 2010-07-30 Anthony Green <green@moxielogic.com>
12097
12098 * config/moxie/rtems.h: New file.
12099 * config.gcc: Add moxie-rtems support.
12100
12101 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
12102
12103 * dce.c (run_word_dce): Take flag_dce into account. Clear and restore
12104 df flags as in run_fast_df_dce.
12105
12106 2010-07-29 Jakub Jelinek <jakub@redhat.com>
12107
12108 Revert:
12109 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
12110
12111 * rtl.def (NOTE): Swap operands 4 and 5.
12112 * rtl.h (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK,
12113 NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_KIND):
12114 Adjust accordingly.
12115 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of NOTEs.
12116
12117 2010-07-29 Jakub Jelinek <jakub@redhat.com>
12118
12119 PR debug/45110
12120 * dwarf2out.c (dwarf_attr_name): Handle DW_AT_object_pointer.
12121 (gen_formal_types_die): Add DW_AT_object_pointer in methods.
12122 (gen_subprogram_die): Likewise. Remove it when removing declaration's
12123 formal parameters.
12124 (gen_decl_die): Change return type to dw_die_ref, return what
12125 gen_formal_parameter_die returned.
12126
12127 2010-07-29 Martin Jambor <mjambor@suse.cz>
12128
12129 * dbgcnt.def (eipa_sra): New counter.
12130 * tree-sra.c (ipa_early_sra_gate): Also check eipa_sra debug counter.
12131
12132 2010-07-29 Xinliang David Li <davidxl@google.com>
12133
12134 PR bootstrap/45119
12135 * tree-ssa-loop-ivopts.c (get_address_cost): Revert change
12136 in revision 162652.
12137
12138 2010-07-29 Richard Guenther <rguenther@suse.de>
12139
12140 * timevar.def (TV_TREE_STORE_COPY_PROP): Remove.
12141 (TV_TREE_STORE_CCP): Likewise.
12142 (TV_TREE_REDPHI): Likewise.
12143
12144 2010-07-29 Richard Guenther <rguenther@suse.de>
12145
12146 * double-int.h (double_int_and_not): New function.
12147 * combine.c (try_combine): Use it.
12148 * tree-vrp.c (simplify_bit_ops_using_ranges): Likewise.
12149
12150 2010-07-29 Bernd Schmidt <bernds@codesourcery.com>
12151
12152 PR rtl-optimization/42575
12153 * dce.c (word_dce_process_block): Renamed from byte_dce_process_block.
12154 Argument AU removed. All callers changed. Ignore artificial refs.
12155 Use return value of df_word_lr_simulate_defs to decide whether an insn
12156 is necessary.
12157 (fast_dce): Rename arg to WORD_LEVEL.
12158 (run_word_dce): Renamed from rest_of_handle_fast_byte_dce. No longer
12159 static.
12160 (pass_fast_rtl_byte_dce): Delete.
12161 * dce.h (run_word_dce): Declare.
12162 * df-core.c (df_print_word_regset): Renamed from df_print_byteregset.
12163 All callers changed. Simplify code to only deal with two-word regs.
12164 * df.h (DF_WORD_LR): Renamed from DF_BYTE_LR.
12165 (DF_WORD_LR_BB_INFO): Renamed from DF_BYTE_LR_BB_INFO.
12166 (DF_WORD_LR_IN): Renamed from DF_BYTE_LR_IN.
12167 (DF_WORD_LR_OUT): Renamed from DF_BYTE_LR_OUT.
12168 (struct df_word_lr_bb_info): Renamed from df_byte_lr_bb_info.
12169 (df_word_lr_mark_ref): Declare.
12170 (df_word_lr_add_problem, df_word_lr_mark_ref, df_word_lr_simulate_defs,
12171 df_word_lr_simulate_uses): Declare or rename from byte variants.
12172 (df_byte_lr_simulate_artificial_refs_at_top,
12173 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
12174 df_byte_lr_get_regno_len, df_compute_accessed_bytes): Delete
12175 declarations.
12176 (df_word_lr_get_bb_info): Rename from df_byte_lr_get_bb_info.
12177 (enum df_mm): Delete.
12178 * df-byte-scan.c: Delete file.
12179 * df-problems.c (df_word_lr_problem_data): Renamed from
12180 df_byte_lr_problem_data, all members deleted except for
12181 WORD_LR_BITMAPS, which is renamed from BYTE_LR_BITMAPS. Uses changed.
12182 (df_word_lr_expand_bitmap, df_byte_lr_simulate_artificial_refs_at_top,
12183 df_byte_lr_simulate_artificial_refs_at_end, df_byte_lr_get_regno_start,
12184 df_byte_lr_get_regno_len, df_byte_lr_check_regs,
12185 df_byte_lr_confluence_0): Delete functions.
12186 (df_word_lr_free_bb_info): Renamed from df_byte_lr_free_bb_info; all
12187 callers changed.
12188 (df_word_lr_alloc): Renamed from df_byte_lr_alloc; all callers changed.
12189 Don't initialize members that were deleted, don't try to discover data
12190 about registers. Ignore hard regs.
12191 (df_word_lr_reset): Renamed from df_byte_lr_reset; all callers changed.
12192 (df_word_lr_mark_ref): New function.
12193 (df_word_lr_bb_local_compute): Renamed from
12194 df_byte_bb_lr_local_compute; all callers changed. Use
12195 df_word_lr_mark_ref. Assert that artificial refs don't include
12196 pseudos. Ignore hard registers.
12197 (df_word_lr_local_compute): Renamed from df_byte_lr_local_compute.
12198 Assert that exit block uses don't contain pseudos.
12199 (df_word_lr_init): Renamed from df_byte_lr_init; all callers changed.
12200 (df_word_lr_confluence_n): Renamed from df_byte_lr_confluence_n; all
12201 callers changed. Ignore hard regs.
12202 (df_word_lr_transfer_function): Renamed from
12203 df_byte_lr_transfer_function; all callers changed.
12204 (df_word_lr_free): Renamed from df_byte_lr_free; all callers changed.
12205 (df_word_lr_top_dump): Renamed from df_byte_lr_top_dump; all callers
12206 changed.
12207 (df_word_lr_bottom_dump): Renamed from df_byte_lr_bottom_dump; all
12208 callers changed.
12209 (problem_WORD_LR): Renamed from problem_BYTE_LR; uses changed;
12210 confluence operator 0 set to NULL.
12211 (df_word_lr_add_problem): Renamed from df_byte_lr_add_problem; all
12212 callers changed.
12213 (df_word_lr_simulate_defs): Renamed from df_byte_lr_simulate_defs.
12214 Return bool, true if bitmap changed or insn otherwise necessary.
12215 All callers changed. Simplify using df_word_lr_mark_ref.
12216 (df_word_lr_simulate_uses): Renamed from df_byte_lr_simulate_uses;
12217 all callers changed. Simplify using df_word_lr_mark_ref.
12218 * lower-subreg.c: Include "dce.h"
12219 (decompose_multiword_subregs): Call run_word_dce if df available.
12220 * Makefile.in (lower-subreg.o): Adjust dependencies.
12221 (df-byte-scan.o): Delete.
12222 * timevar.def (TV_DF_WORD_LR): Renamed from TV_DF_BYTE_LR.
12223
12224 2010-07-29 Richard Guenther <rguenther@suse.de>
12225
12226 * tree.c (build_vector): Assert that the vector constant
12227 has enough elements.
12228 (build_vector_from_ctor): Pad with trailing zeros.
12229
12230 2010-07-29 Richard Guenther <rguenther@suse.de>
12231
12232 PR tree-optimization/45120
12233 * tree-ssa-structalias.c (get_constraint_for_component_ref):
12234 Handle offset in DEREFs properly.
12235 (get_constraint_for_1): Handle MEM_REF offset properly.
12236
12237 2010-07-29 Richard Guenther <rguenther@suse.de>
12238
12239 PR middle-end/45034
12240 * convert.c (convert_to_integer): Always use an unsigned
12241 type for narrowed negate and bitwise not.
12242
12243 2010-07-29 Ira Rosen <irar@il.ibm.com>
12244
12245 * tree-vect-loop.c (vect_create_epilog_for_reduction): Switch
12246 to outer loop when creating reduction epilogue for double reduction,
12247 and switch back to the inner loop when updating the phi nodes.
12248 Update uses of outer loop exit phi nodes in double reduction (instead
12249 of uses of reduction).
12250
12251 2010-07-28 Michael Meissner <meissner@linux.vnet.ibm.com>
12252
12253 * config/rs6000/rs6000.c (rs6000_rtx_costs): Update costs for
12254 popcount on power7 and parity on power6 systems.
12255 (rs6000_emit_popcount): Rename gen_popcntwsi2 to gen_popcntddi2.
12256 (rs6000_emit_parity): Add support for power6 prtyd/prtyw
12257 instructions.
12258
12259 * config/rs6000/rs6000.md (UNSPEC_COPYSIGN): New unspec.
12260 (UNSPEC_PARITY): Ditto.
12261 (SFDF): New iterator for SF/DF.
12262 (rreg2): New mode attribute for floating register constraint.
12263 (TARGET_FLOAT): New mode attribute for whether single/double float
12264 is supported.
12265 (popcntd<mode>2): Combine popcntwsi2 and popcntddi2 into one
12266 pattern.
12267 (parity<mode>2_cmpb): New insn for parity on power6 and newer
12268 machines.
12269 (copysign<mode>3): Combine copysignsf3, copysigndf3 into one
12270 pattern. Add support for fcpsgn instruction added in power6.
12271 (copysignsf3): Delete.
12272 (copysigndf3): Delete.
12273 (copysign<mode>3_fcpsgn): New insn to generate fcpsgn. Use UNSPEC
12274 instead of if_then_else in RTL to avoid problems with -0.
12275
12276 * config/rs6000/vsx.md (vsx_copysign<mode>3): Use UNSPEC instead
12277 of if_then_else to mirror scalar code.
12278 (vsx_copysignsf3): Delete, use copysign<mode>3_fcpsgn in
12279 rs6000.md.
12280
12281 * config/rs6000/vector.md (vector_copysign<mode>3): Use UNSPEC
12282 instead of if_then_else.
12283
12284 2010-07-28 Xinliang David Li <davidxl@google.com>
12285
12286 * tree-ssa-loop-ivopts.c (avg_loop_niter): New function.
12287 (dump_cand): Dump var_before/after.
12288 (htab_inv_expr_eq): New function.
12289 (htab_inv_expr_hash): New function.
12290 (tree_ssa_iv_optimize_init): Support pseudo invariants.
12291 (add_candidate_1): consider base type precision.
12292 (set_use_iv_cost): New parameter.
12293 (adjust_setup_cost): Use profile information.
12294 (get_address_cost): Do not hard code width in computing address
12295 offset limits.
12296 (compare_aff_trees): New function.
12297 (get_loop_invariant_expr_id): New function.
12298 (get_computation_cost_at): New parameter and use profile information.
12299 (get_computation_cost): New parameter.
12300 (determine_use_iv_cost_generic): Pass new parameter.
12301 (determine_use_iv_cost_address): Ditto.
12302 (determine_use_iv_cost_condition): Ditto.
12303 (autoinc_possible_for_pair): Ditto.
12304 (determine_use_iv_costs): More dumps.
12305 (iv_ca_get_num_inv_exprs): New function.
12306 (iv_ca_recount_cost): Consider loop invariants in register pressure
12307 cost.
12308 (iv_ca_add_use): New parameter.
12309 (iv_ca_dump): Better dumping.
12310 (iv_ca_extend): New parameter.
12311 (try_add_cand_for): Attempt to get better partial solution.
12312 (try_improve_iv_set): Pass new parameter to iv_ca_extend.
12313 (create_new-ivs): More dumps.
12314 (rewrite_use_compare): Ditto.
12315 (free_loop_data): More cleanup.
12316 (treee_ssa_iv_optimize_finalize): Ditto.
12317
12318 2010-07-28 Kai Tietz <kai.tietz@onevision.com>
12319
12320 * config/i386/i386.h (MCOUNT_NAME_BEFORE_PROLOGUE): New.
12321 * config/i386/i386.c (ix86_profile_before_prologue): New.
12322 (override_options): Add special handling for -mfentry.
12323 (ix86_function_regparm): Likewise.
12324 (ix86_function_sseregparm): Likewise.
12325 (ix86_frame_pointer_required): Likewise.
12326 (ix86_expand_prologue): Check for ms_hook_prologue.
12327 (x86_function_profiler): Adjust mcount output.
12328 (TARGET_PROFILE_BEFORE_PROLOGUE): Define hook.
12329 * config/i386/i386.opt (mfentry): New.
12330 * doc/invoke.texi (mfentry): Add documentation.
12331 * doc/tm.texi: Regenerated..
12332 * doc/tm.texi.in (TARGET_PROFILE_BEFORE_PROLOGUE): New.
12333 * final.c (final_start_function): Replace macro
12334 PROFILE_BEFORE_PROLOGUE by target hook.
12335 * function.c (thread_prologue_and_epilogue_insns): Likewise.
12336 * target.def (profile_before_prologue): New hook.
12337 * targhooks.c (default_profile_before_prologue): New.
12338 * targhooks.h (default_profile_before_prologue): New.
12339
12340 2010-07-28 Jakub Jelinek <jakub@redhat.com>
12341
12342 PR debug/45105
12343 * gcse.c (hoist_code): Use FOR_BB_INSNS macro.
12344
12345 PR debug/45103
12346 * dwarf2out.c (dwarf2out_var_location): Always consider
12347 NOTE_DURING_CALL_P notes, even when not followed by real instructions.
12348
12349 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
12350
12351 PR rtl-optimization/45107
12352 * gcse.c (hash_scan_set): Use max_distance for gcse-las.
12353
12354 2010-07-28 Richard Guenther <rguenther@suse.de>
12355
12356 * tree-ssa-ccp.c: Remove comment regarding STORE-CCP.
12357 (set_lattice_value): Do not query an old default value.
12358 (get_value_for_expr): New function. Properly canonicalize
12359 float values.
12360 (ccp_visit_phi_node): Use it.
12361
12362 2010-07-28 Chung-Lin Tang <cltang@codesourcery.com>
12363
12364 * config/arm/arm.c (arm_pcs_default): Remove static.
12365 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __ARM_PCS or
12366 __ARM_PCS_VFP to indicate soft/hard-float calling convention.
12367 (arm_pcs_default): Declare.
12368
12369 2010-07-28 Iain Sandoe <iains@gcc.gnu.org>
12370
12371 * config/rs6000/rs6000.c (rs6000_override_options):
12372 Use TARGET_MACHO inline, move darwin_one_byte_bool from here...
12373 ... to darwin_rs6000_override_options.
12374 (rs6000_return_in_memory): Update preceding comment for darwin
12375 64 bit ABI. Use TARGET_MACHO inline.
12376 (rs6000_darwin64_struct_check_p): New.
12377 (function_arg_advance): Use rs6000_darwin64_struct_check_p.
12378 (function_arg): Likewise.
12379 (rs6000_arg_partial_bytes): Likewise.
12380 (rs6000_function_value): Likewise.
12381
12382 2010-07-28 Andi Kleen <ak@linux.intel.com>
12383
12384 * lto-opts.c (lto_file_read_options): Add loop over all inputs.
12385
12386 2010-07-28 Richard Guenther <rguenther@suse.de>
12387
12388 PR middle-end/44903
12389 * builtins.c (fold_builtin_memory_op): On STRICT_ALIGNMENT
12390 targets try harder to not generate unaligned accesses.
12391
12392 2010-07-28 Maxim Kuvyrkov <maxim@codesourcery.com>
12393
12394 PR rtl-optimization/45101
12395 * gcse.c (hash_scan_set): Fix argument ordering of insert_expr_in_table
12396 for gcse-las.
12397
12398 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
12399
12400 PR tree-optimization/44885
12401 * tree-sra.c (find_param_candidates): Skip pointer types to arrays
12402 with non-aliased component.
12403
12404 2010-07-28 Joseph Myers <joseph@codesourcery.com>
12405
12406 * config/darwin-driver.c (SWITCH_TAKES_ARG,
12407 WORD_SWITCH_TAKES_ARG): Remove.
12408 * cppspec.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Remove.
12409 * defaults.h (DEFAULT_SWITCH_TAKES_ARG,
12410 DEFAULT_WORD_SWITCH_TAKES_ARG): Move from gcc.h.
12411 (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move default
12412 definitions from gcc.c.
12413 * gcc.c (SWITCH_TAKES_ARG, WORD_SWITCH_TAKES_ARG): Move to
12414 defaults.h.
12415 * gcc.h (DEFAULT_SWITCH_TAKES_ARG, DEFAULT_WORD_SWITCH_TAKES_ARG):
12416 Move to defaults.h.
12417 * opts-common.c: Include tm.h.
12418 (decode_cmdline_option): Use SWITCH_TAKES_ARG and
12419 WORD_SWITCH_TAKES_ARG to count arguments to unknown options.
12420 Handle more than one argument. Set canonical_option_num_elements.
12421 (decode_cmdline_options_to_array): Set
12422 canonical_option_num_elements and trailing elements of
12423 canonical_option.
12424 * opts.h (struct cl_decoded_option): Allow four elements in
12425 canonical_option. Add field canonical_option_num_elements.
12426 * Makefile.in (opts-common.o): Update dependencies.
12427
12428 2010-07-28 Eric Botcazou <ebotcazou@adacore.com>
12429
12430 PR middle-end/44790
12431 PR middle-end/44993
12432 * expr.c (expand_expr_real_1) <MEM_REF>: Revert latest change. Make
12433 sure the base has address_mode before adding the offset.
12434
12435 2010-07-27 Xinliang David Li <davidxl@google.com>
12436
12437 * tree-flow.h (create_mem_ref): Add one new parameter.
12438 * tree-ssa-address.c (create_mem_ref): New parameter.
12439 (addr_to_parts): Ditto.
12440 (move_variant_to_index): New function.
12441 * tree-ssa-loop-ivopts.c (rewrite_use_address): Pass new argument.
12442
12443 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
12444
12445 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, NOTE): Swap operands
12446 4 and 5.
12447 * rtl.h (PATTERN, INSN_LOCATOR, NOTE_DATA, NOTE_DELETED_LABEL_NAME,
12448 NOTE_BLOCK, NOTE_EH_HANDLER, NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION,
12449 NOTE_KIND, LABEL_NUSES, LABEL_REFS): Adjust accordingly.
12450 * gengtype.c (adjust_field_rtx_def): Swap operands 4 and 5 of
12451 CODE_LABELs and NOTEs.
12452 * caller-save.c (init_caller_save): Fix up gen_rtx_INSN call.
12453 * combine.c (try_combine): Likewise.
12454 * ira.c (setup_prohibited_mode_move_regs): Likewise.
12455 * print-rtl.c (print_rtx): Start REG_NOTES on a new line.
12456
12457 2010-07-27 Joseph Myers <joseph@codesourcery.com>
12458
12459 * coretypes.h (struct cl_option_handlers): Declare.
12460 * hooks.c (hook_int_size_t_constcharptr_int_0): Remove.
12461 * hooks.h (hook_int_size_t_constcharptr_int_0): Remove.
12462 * langhooks-def.h (lhd_handle_option): Declare.
12463 (LANG_HOOKS_HANDLE_OPTION): Use lhd_handle_option.
12464 * langhooks.c (lhd_handle_option): New.
12465 * langhooks.h (struct lang_hooks): Update prototype and return
12466 value type of handle_option hook.
12467 * optc-gen.awk: Generate target_flags_explicit definition for the
12468 driver.
12469 * opts-common.c: Include diagnostic.h.
12470 (handle_option): Move from opts.c. Update prototype and return
12471 value type. Use handlers structure.
12472 (read_cmdline_option): Move from opts.c. Update prototype. Use
12473 handlers structure.
12474 (set_option): Move from opts.c.
12475 * opts.c (common_handle_option): Update prototype and return value
12476 type. Update calls to handle_option and enable_warning_as_error.
12477 (unknown_option_callback, post_handling_callback,
12478 lang_handle_option, target_handle_option): New.
12479 (handle_option, read_cmdline_option): Move to opts-common.c.
12480 (read_cmdline_options): Update prototype. Update call to
12481 read_cmdline_option.
12482 (decode_options): Initialize and use handlers structure.
12483 (set_option): Move to opts-common.c.
12484 (enable_warning_as_error): Update prototype. Update call to
12485 handle_option.
12486 * opts.h (struct cl_option_handler_func, struct
12487 cl_option_handlers): New.
12488 (handle_option, enable_warning_as_error): Update prototypes.
12489 (read_cmdline_option): Declare.
12490 * Makefile.in (opts-common.o): Update dependencies.
12491
12492 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12493
12494 * config/arm/arm.c (params.h): Include.
12495 (arm_override_options): Tune gcse-unrestricted-cost.
12496 * config/arm/t-arm (arm.o): Define dependencies.
12497
12498 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12499
12500 PR target/42495
12501 PR middle-end/42574
12502 * basic-block.h (get_dominated_to_depth): Declare.
12503 * dominance.c (get_dominated_to_depth): New function, use
12504 get_all_dominated_blocks as a base.
12505 (get_all_dominated_blocks): Use get_dominated_to_depth.
12506
12507 * gcse.c (occr_t, VEC (occr_t, heap)): Define.
12508 (hoist_exprs): Remove.
12509 (alloc_code_hoist_mem, free_code_hoist_mem): Update.
12510 (compute_code_hoist_vbeinout): Add debug print outs.
12511 (hoist_code): Partially rewrite, simplify. Use get_dominated_to_depth.
12512
12513 * params.def (PARAM_MAX_HOIST_DEPTH): New parameter to avoid
12514 quadratic behavior.
12515 * params.h (MAX_HOIST_DEPTH): New macro.
12516 * doc/invoke.texi (max-hoist-depth): Document.
12517
12518 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12519
12520 PR rtl-optimization/40956
12521 * config/arm/arm.c (thumb1_size_rtx_costs): Fix cost of simple
12522 constants.
12523
12524 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12525
12526 PR target/42495
12527 PR middle-end/42574
12528 * config/arm/arm.c (legitimize_pic_address): Use
12529 gen_calculate_pic_address pattern to emit calculation of PIC address.
12530 (will_be_in_index_register): New function.
12531 (arm_legitimate_address_outer_p, thumb2_legitimate_address_p,)
12532 (thumb1_legitimate_address_p): Use it provided !strict_p.
12533 * config/arm/arm.md (calculate_pic_address): New expand and split.
12534
12535 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12536
12537 PR target/42495
12538 PR middle-end/42574
12539 * config/arm/arm.c (thumb1_size_rtx_costs): Add cost for "J" constants.
12540 * config/arm/arm.md (define_split "J", define_split "K"): Make
12541 IRA/reload friendly.
12542
12543 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12544
12545 * gcse.c (insert_insn_end_basic_block): Update signature, remove
12546 unused checks.
12547 (pre_edge_insert, hoist_code): Update.
12548
12549 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12550
12551 PR target/42495
12552 PR middle-end/42574
12553 * gcse.c (hoist_expr_reaches_here_p): Remove excessive check.
12554
12555 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12556
12557 * gcse.c (hoist_code): Generate new pseudo for every new set insn.
12558
12559 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12560
12561 PR rtl-optimization/40956
12562 PR target/42495
12563 PR middle-end/42574
12564 * gcse.c (compute_code_hoist_vbeinout): Consider more expressions
12565 for hoisting.
12566 (hoist_code): Count occurences in current block too.
12567
12568 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12569
12570 * gcse.c (struct expr:max_distance): New field.
12571 (doing_code_hoisting_p): New static variable.
12572 (want_to_gcse_p): Change signature. Allow constrained hoisting of
12573 simple expressions, don't change behavior for PRE. Set max_distance.
12574 (insert_expr_in_table): Set new max_distance field.
12575 (hash_scan_set): Update.
12576 (hoist_expr_reaches_here_p): Stop search after max_distance
12577 instructions.
12578 (find_occr_in_bb): New static function. Use it in ...
12579 (hoist_code): Calculate sizes of basic block before any changes are
12580 done. Pass max_distance to hoist_expr_reaches_here_p.
12581 (one_code_hoisting_pass): Set doing_code_hoisting_p.
12582
12583 * params.def (PARAM_GCSE_COST_DISTANCE_RATIO,)
12584 (PARAM_GCSE_UNRESTRICTED_COST): New parameters.
12585 * params.h (GCSE_COST_DISTANCE_RATIO, GCSE_UNRESTRICTED_COST): New
12586 macros.
12587 * doc/invoke.texi (gcse-cost-distance-ratio, gcse-unrestricted-cost):
12588 Document.
12589
12590 2010-07-27 Jeff Law <law@redhat.com>
12591 Maxim Kuvyrkov <maxim@codesourcery.com>
12592
12593 * gcse.c (compute_transpout, transpout): Remove, move logic
12594 to prune_expressions.
12595 (compute_pre_data): Move pruning of trapping expressions ...
12596 (prune_expressions): ... here. New static function.
12597 (compute_code_hoist_data): Use it.
12598 (alloc_code_hoist_mem, free_code_hoist_mem, hoist_code): Update.
12599
12600 2010-07-27 Xinliang David Li <davidxl@google.com>
12601
12602 * tree-ssa-loop-ivopts.c (adjust_iv_update_pos): New function.
12603 (rewrite_use_address): Adjust iv update position when needed.
12604
12605 2010-07-27 Maxim Kuvyrkov <maxim@codesourcery.com>
12606
12607 * dbgcnt.def (hoist_insn): New debug counter.
12608 * gcse.c (hoist_code): Use it.
12609
12610 2010-07-27 Xinliang David Li <davidxl@google.com>
12611
12612 * tree-ssa-loop-ivopts.c (niter_for_exit): New parameter.
12613 (niter_for_single_dom_exit): Passes additional parameter.
12614 (iv_period): Fix comments.
12615 (may_eliminate_iv): Handles multiple exit loops properly.
12616 (free_tree_niter_desc): New function.
12617 (free_loop_data): Frees up loop iteration descriptors.
12618
12619 2010-07-27 Jakub Jelinek <jakub@redhat.com>
12620
12621 PR target/44542
12622 * cfgexpand.c (expand_one_stack_var_at): Limit align to maximum
12623 of max_used_stack_slot_alignment and PREFERRED_STACK_BOUNDARY
12624 instead of MAX_SUPPORTED_STACK_ALIGNMENT.
12625 (expand_one_var): Don't consider DECL_ALIGN for variables for
12626 which expand_one_stack_var_at has been already called.
12627
12628 PR testsuite/44701
12629 * doc/md.texi: Clarify m and es constraints on PowerPC and m and S
12630 constraints on IA-64.
12631
12632 2010-07-27 Jie Zhang <jie@codesourcery.com>
12633
12634 PR target/44290
12635 Revert:
12636 2010-07-23 Jie Zhang <jie@codesourcery.com>
12637
12638 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
12639 false if ! tree_versionable_function_p.
12640
12641 2010-07-27 Jakub Jelinek <jakub@redhat.com>
12642
12643 * dwarf2out.c (add_data_member_location_attribute): Use
12644 add_AT_unsigned instead of add_AT_int if offset is non-negative.
12645
12646 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
12647
12648 * postreload.c (try_replace_in_use): New static function.
12649 (reload_combine_recognize_const_pattern): Use it here. Allow
12650 substituting into a final add insn, and substituting into a memory
12651 reference in an insn that sets the reg.
12652
12653 2010-07-27 Joseph Myers <joseph@codesourcery.com>
12654
12655 * common.opt (o): Add MissingArgError.
12656 * doc/options.texi (MissingArgError): Document.
12657 * hooks.c (hook_bool_constcharptr_size_t_false): Remove.
12658 * hooks.h (hook_bool_constcharptr_size_t_false): Remove.
12659 * langhooks-def.h (LANG_HOOKS_MISSING_ARGUMENT): Remove.
12660 (LANG_HOOKS_INITIALIZER): Remove missing_argument hook initializer.
12661 * langhooks.h (struct lang_hooks): Remove missing_argument.
12662 * optc-gen.awk: Handle MissingArgError and output new structure
12663 field initializers.
12664 * opts.c (read_cmdline_option): Use missing_argument_error field
12665 instead of missing_argument langhook.
12666 * opts.h (struct cl_option): Add missing_argument_error field.
12667 * system.h (LANG_HOOKS_MISSING_ARGUMENT): Poison.
12668
12669 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
12670
12671 PR target/29090
12672 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Special-case the
12673 Darwin64 ABI, for zero-sized objects.
12674
12675 2010-07-27 Iain Sandoe <iains@gcc.gnu.org>
12676
12677 PR target/35491
12678 PR target/29090
12679
12680 Merge from Apple local 4.2.1.
12681 2005-05-11 Stan Shebs <shebs@apple.com>
12682 Fix 64-bit varargs for Darwin (Radar 4028089).
12683 * config/rs6000/rs6000.h (rs6000_args): New field floats_in_gpr.
12684 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
12685 Add argument, add case for 8-byte register half-filled with a float.
12686 (rs6000_darwin64_record_arg_advance_recurse): Detect and handle
12687 single-precision floats specially.
12688
12689 2010-07-27 Ira Rosen <irar@il.ibm.com>
12690
12691 PR tree-optimization/44152
12692 * tree-vect-slp.c (vect_build_slp_tree): Collect nodes with
12693 complex numbers for further check.
12694 (vect_supported_load_permutation_p): Check nodes with
12695 complex numbers.
12696
12697 2010-07-27 Joseph Myers <joseph@codesourcery.com>
12698
12699 * langhooks-def.h (lhd_init_options, LANG_HOOKS_OPTION_LANG_MASK,
12700 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): New.
12701 (LANG_HOOKS_INIT_OPTIONS): Update default definition.
12702 (LANG_HOOKS_INITIALIZER): Add new hooks.
12703 * langhooks.c (lhd_init_options, lhd_complain_wrong_lang_p): New.
12704 * langhooks.h (struct lang_hooks): Add new hooks option_lang_mask
12705 and complain_wrong_lang_p. Update init_options prototype.
12706 * c-objc-common.c (c_initialize_diagnostics): First call
12707 c_common_initialize_diagnostics.
12708 * c-objc-common.h (LANG_HOOKS_OPTION_LANG_MASK,
12709 LANG_HOOKS_COMPLAIN_WRONG_LANG_P): Define.
12710 * coretypes.h (struct cl_option, struct cl_decoded_option): Declare.
12711 * hooks.c (hook_uint_uint_constcharptrptr_0): Remove.
12712 (hook_uint_void_0): New.
12713 * hooks.h (hook_uint_uint_constcharptrptr_0): Remove.
12714 (hook_uint_void_0): New.
12715 * opts-common.c (decode_cmdline_option,
12716 decode_cmdline_options_to_array): Also fill in canonical_option field.
12717 * opts.c (complain_wrong_lang): Use langhook to determine whether
12718 to complain instead of special-casing LTO.
12719 (decode_options): Separate lang_mask determination with
12720 option_lang_mask hook from call of init_options hook.
12721 * opts.h (struct cl_decoded_option): Add canonical_option.
12722
12723 2010-07-27 Jakub Jelinek <jakub@redhat.com>
12724
12725 PR tree-optimization/45083
12726 * tree-inline.c (add_local_variables): Also remap DECL_DEBUG_EXPR.
12727
12728 2010-07-27 Bernd Schmidt <bernds@codesourcery.com>
12729
12730 * postreload.c (reload_combine_recognize_const_pattern): Move test
12731 for limiting the insn movement to the right scope.
12732
12733 PR rtl-optimization/45051
12734 * reload1.c (delete_output_reload): Use refers_to_regno_p rather
12735 than reg_mentioned_p.
12736
12737 2010-07-26 Richard Henderson <rth@redhat.com>
12738
12739 PR target/44132
12740 * tree-emutls.c: New file.
12741 * Makefile.in (OBJS-common): Add it.
12742 * tree-pass.h (pass_ipa_lower_emutls): Declare.
12743 * passes.c (init_optimization_passes): Add it.
12744
12745 * dwarf2out.c (loc_list_from_tree): If emutls.debug_form_tls_address,
12746 pull the control variable from DECL_VALUE_EXPR, not emutls_decl.
12747 * expr.c (emutls_var_address): Delete.
12748 (expand_expr_addr_expr_1, expand_expr_real_1): Don't use it.
12749 * output.h (SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL): Delete.
12750 (emutls_finish): Delete.
12751 * toplev.c (compile_file): Don't call it.
12752 * tree.h (emutls_decl): Delete.
12753 * varasm.c (emutls_htab, DECL_EMUTLS_VAR_P): Delete.
12754 (emutls_finish, emutls_finalize_control_var): Delete.
12755 (emutls_object_type): Move to tree-emutls.c.
12756 (EMUTLS_SEPARATOR, prefix_name, get_emutls_object_name,
12757 default_emutls_var_fields, get_emutls_object_type,
12758 get_emutls_init_templ_addr, emutls_decl, emutls_common_1
12759 default_emutls_var_init): Likewise.
12760 (get_variable_section): Don't special case emutls.
12761 (assemble_variable, do_assemble_alias, categorize_decl_for_section,
12762 default_elf_select_section, default_unique_section,
12763 default_encode_section_info): Likewise.
12764 * varpool.c (decide_is_variable_needed): Likewise.
12765 * gimple-iterator.c (update_call_edge_frequencies): New
12766 (gsi_insert_on_edge_immediate): Use it.
12767 (gsi_insert_seq_on_edge_immediate): Likewise.
12768 (gsi_commit_one_edge_insert): Likewise.
12769
12770 * config/i386/i386.c (x86_64_elf_select_section): Don't handle
12771 SECCAT_EMUTLS_VAR, SECCAT_EMUTLS_TMPL.
12772 (x86_64_elf_unique_section): Likewise.
12773
12774 2010-07-26 Jan Hubicka <jh@suse.cz>
12775
12776 * lto-streamer.h (struct lto_file_decl_data): Mark resolutions with
12777 GTY((skip)).
12778
12779 2010-07-26 Anatoly Sokolov <aesok@post.ru>
12780
12781 * target.def (output_source_filename): New hook.
12782 * doc/tm.texi.in (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Document.
12783 * doc/tm.texi: Regenerate.
12784 * toplev.c (output_file_directive) Remove function.
12785 * toplev.h (output_file_directive) Remove.
12786 * output.h (default_asm_output_source_filename,
12787 output_file_directive): Declare.
12788 * varasm.h (default_asm_output_source_filename,
12789 output_file_directive): New functions.
12790
12791 * config/mips/mips.h (ASM_OUTPUT_SOURCE_FILENAME): Remove macro.
12792 * config/mips/mips-protos.h (mips_output_filename): Remove.
12793 * config/mips/mips.c (mips_output_filename): Make Static.
12794 (TARGET_ASM_OUTPUT_SOURCE_FILENAME): Define.
12795
12796 2010-07-26 Richard Guenther <rguenther@suse.de>
12797
12798 PR tree-optimization/43784
12799 * tree-nrv.c (dest_safe_for_nrv_p): It's not safe to NRV
12800 if the destination is used by the call.
12801
12802 2010-07-26 Richard Guenther <rguenther@suse.de>
12803
12804 PR middle-end/45073
12805 * gimple-fold.c (gimplify_and_update_call_from_tree): Conditionalize
12806 SSA updating on being in SSA form.
12807
12808 2010-07-26 Richard Guenther <rguenther@suse.de>
12809
12810 PR middle-end/45056
12811 * gimple-fold.c (fold_stmt_1): Also fold references in debug stmts.
12812
12813 2010-07-26 Richard Guenther <rguenther@suse.de>
12814
12815 PR tree-optimization/45071
12816 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Always
12817 adjust op->opcode.
12818
12819 2010-07-26 Naveen.H.S <naveen.S@kpitcummins.com>
12820
12821 * config/v850/lib1funcs.asm (save_r2_r31, return_r2_r31,
12822 save_r20_r31, return_r20_r31, save_r21_r31, return_r21_r31,
12823 save_r22_r31, return_r22_r31, save_r23_r31, return_r23_r31,
12824 save_r24_r31, return_r24_r31, save_r25_r31, return_r25_r31,
12825 save_r26_r31, return_r26_r31, save_r27_r31, return_r27_r31,
12826 save_r28_r31, return_r28_r31, save_r29_r31, return_r29_r31,
12827 save_r31, return_r31, save_interrupt, return_interrupt,
12828 save_all_interrupt, return_all_interrupt, L_save_r2_r31,
12829 L_return_interrupt, callt_return_interrupt, L_restore_all_interrupt,
12830 L_save_##START##_r31c, L_callt_save_r31c): Updated as per the
12831 new ABI requirements.
12832 (save_r6_r9, L_callt_save_r6_r9): Remove.
12833 * config/v850/predicates.md (even_reg_operand, disp23_operand,
12834 const_float_1_operand const_float_0_operand): New Predicates.
12835 (pattern_is_ok_for_prepare, pattern_is_ok_for_prologue,
12836 pattern_is_ok_for_epilogue): Update as per the ABI requirements.
12837 * config/v850/t-v850: Update multilibs for new target variants.
12838 (save_varargs, callt_save_varargs, callt_save_r6_r9): Remove.
12839 * config/v850/t-v850e: Likewise.
12840 * config/v850/v850.c (v850_issue_rate): New.
12841 (v850_strict_argument_naming): New.
12842 (function_arg): Modify to generate a different ABI.
12843 (print_operand): Update case 'z' to support float modes.
12844 (output_move_single): Modify to generate appropriate and better
12845 assembly.
12846 (v850_float_z_comparison_operator, v850_select_cc_mode,
12847 v850_float_nz_comparison_operator, v850_gen_float_compare,
12848 v850_gen_compare): New functions to support comparison of float values.
12849 (ep_memory_offset): Add support for V850E2 targets.
12850 (INTERRUPT_FIXED_NUM, INTERRUPT_ALL_SAVE_NUM): Update.
12851 (INTERRUPT_REGPARM_NUM): Remove.
12852 (compute_register_save_size): Add extra case to save/restore long call.
12853 (use_prolog_function): New function to support prologue.
12854 (expand_prologue): Add support for V850E2 targets and modified
12855 as per the current ABI requirements.
12856 (expand_epilogue): Likewise.
12857 (construct_restore_jr): Modify based on TARGET_LONG_CALLS.
12858 (construct_save_jarl): Likewise.
12859 (construct_dispose_instruction): Update as per the current ABI
12860 requirements.
12861 (construct_prepare_instruction): Likewise.
12862 * config/v850/v850.h (TARGET_CPU_DEFAULT): Add target predefines.
12863 (TARGET_CPU_v850e2, TARGET_CPU_v850e2v3): Define
12864 (CPP_SPEC): Updated to support v850e2 targets.
12865 (STRICT_ALIGNMENT): Modified.
12866 (FIRST_PSEUDO_REGISTER): Updated to add even registers.
12867 (FIXED_REGISTERS): Likewise.
12868 (CALL_USED_REGISTERS): Likewise.
12869 (CONDITIONAL_REGISTER_USAGE): Updated.
12870 (HARD_REGNO_MODE_OK): Updated.
12871 (reg_class): Updated to add even registers.
12872 (REG_CLASS_NAMES): Likewise.
12873 (REG_CLASS_CONTENTS): Likewise.
12874 (REGNO_REG_CLASS): Updated for CC registers.
12875 (REG_CLASS_FROM_LETTER): Added support for even registers.
12876 (REGNO_OK_FOR_BASE_P): Updated for CC registers.
12877 (STACK_POINTER_REGNUM, FRAME_POINTER_REGNUM, LINK_POINTER_REGNUM,
12878 ARG_POINTER_REGNUM): Updated.
12879 (FUNCTION_ARG_ADVANCE): Define.
12880 (REG_PARM_STACK_SPACE): Update as per the current ABI requirements.
12881 (OUTGOING_REG_PARM_STACK_SPACE): Remove.
12882 (EXTRA_CONSTRAINT): Add new constraint 'W' for 23-bit displacement.
12883 (GO_IF_LEGITIMATE_ADDRESS): Updated.
12884 (SELECT_CC_MODE): Define.
12885 (REGISTER_NAMES): Updated to add psw and fcc registers.
12886 (ADDITIONAL_REGISTER_NAMES): Updated.
12887 (ASM_OUTPUT_ADDR_DIFF_ELT): Updated to support new targets.
12888 (JUMP_TABLES_IN_TEXT_SECTION): Updated.
12889 * config/v850/v850.md (define_constants): Define new constants.
12890 (type): Update store,bit1,macc,div,fpu and single attributes.
12891 (cpu): New attribute.
12892 (cc): Add set_z attribute.
12893 (unsign23byte_load, sign23byte_load, unsign23hword_load,
12894 sign23hword_load, 23word_load, 23byte_store, 23hword_store,
12895 23word_store): New instructions for 23-bit displacement load and store.
12896 (movqi_internal, movhi_internal): Update the attributes.
12897 (movsi, movsi_internal_v850e): Updated to support v850e2 targets.
12898 (movsi_internal_v850e, movsi_internal, movsf_internal): Update
12899 the attributes.
12900 (v850_tst1): Modified using CC_REGNUM.
12901 (tstsi): Remove.
12902 (cmpsi): Modified as define_expand from define_insn.
12903 (cmpsi_insn, cmpsf, cmpdf): New instructions.
12904 (addsi3, subsi3, negsi2, divmodsi4, udivmodsi4, divmodhi4,
12905 udivmodhi4, v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3,
12906 v850_set1_1, v850_set1_3, iorsi3, v850_not1_1, v850_not1_3, xorsi3,
12907 one_cmplsi2): Clobber the CC_REGNUM register.
12908 (v850_clr1_1, v850_clr1_2, v850_clr1_3, andsi3, v850_set1_1,
12909 v850_set1_2, v850_set1_3, iorsi3, v850_not1_1, v850_not1_2,
12910 v850_not1_3, xorsi3, one_cmplsi2): Update the attributes accordingly.
12911 (setf_insn, set_z_insn, set_nz_insn): New instructions for
12912 v850e2v3 target.
12913 (movsicc_normal_cc, movsicc_reversed_cc): New instructions.
12914 (movsicc, movsicc_normal, movsicc_reversed): Add support for V850E2
12915 targets.
12916 (sasf_1, sasf_2): Remove.
12917 (sasf): New instruction.
12918 (rotlhi3, rotlhi3_8, rotlsi3, rotlsi3_16): Update to support V850E2
12919 targets. CC_REGNUM register is clobbered and attributes are
12920 updated.
12921 (branch_z_normal, branch_z_invert, branch_nz_normal,
12922 branch_nz_invert): New branch related instructions.
12923 (jump): Updated the attributes.
12924 (switch): Update to support new targets. CC_REGNUM register is
12925 clobbered and attributes are updated.
12926 (call_internal_short, call_internal_long, call_value_internal_short,
12927 call_value_internal_long): Updated the attributes.
12928 (zero_extendhisi2, zero_extendqisi2): CC_REGNUM register is
12929 clobbered and attributes are updated.
12930 (extendhisi_insn, extendhisi2, extendqisi_insn, extendqisi2):
12931 Update to support new targets. CC_REGNUM register is clobbered.
12932 (ashlsi3_v850e2, lshrsi3_v850e2, ashrsi3_v850e2): New shift
12933 instructions.
12934 (lshrsi3, ashrsi3): CC_REGNUM register is clobbered and attributes
12935 are updated.
12936 (ffssi2, addsf3, adddf3, subsf3, subdf3, mulsf3, muldf3, divsf3,
12937 divdf3, minsf3, mindf3, maxsf3, maxdf3, abssf2, absdf2, negsf2,
12938 negdf2, sqrtsf2, sqrtdf2, truncsfsi2, truncdfsi2, floatsisf2,
12939 floatsidf2, extendsfdf2, extenddfsf2, recipsf2, recipdf2,
12940 rsqrtsf2, rsqrtdf2, maddsf4, msubsf4, nmaddsf4, nmsubsf4,
12941 cmpsf_le_insn, cmpsf_lt_insn, cmpsf_ge_insn, cmpsf_gt_insn,
12942 cmpsf_eq_insn, cmpsf_ne_insn, cmpdf_le_insn, cmpdf_lt_insn,
12943 cmpdf_ge_insn, cmpdf_gt_insn, cmpdf_eq_insn, cmpdf_ne_insn, trfsr,
12944 movsfcc, movdfcc, movsfcc_z_insn, movsfcc_nz_insn, movdfcc_z_insn,
12945 movdfcc_nz_insn, movedfcc_z_zero, movedfcc_nz_zero): New floating
12946 point instructions defined for V850e2v3 target.
12947 (callt_save_interrupt, callt_return_interrupt, return_interrupt):
12948 Add support for V850E2 targets and CC_REGNUM register is clobbered.
12949 (callt_save_all_interrupt, callt_restore_all_interrupt): Add
12950 support for new targets.
12951 * config/v850/v850-modes.def: New file.
12952 * config/v850/v850.opt(mstrict-align): Remove.
12953 (mno-strict-align, mjump-tables-in-data-section, mv850e2,
12954 mv850e2v3): New command line options for V850.
12955 * config.gcc: Update the newly added files.
12956 * doc/invoke.texi: Update the newly added command line options for
12957 V850 target.
12958
12959 2010-07-26 Richard Guenther <rguenther@suse.de>
12960
12961 PR tree-optimization/45052
12962 * ipa-pure-const.c (check_stmt): Check volatileness.
12963
12964 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
12965
12966 PR target/44707
12967 * config/sparc/sparc-protos.h (sparc_legitimize_reload_address): New.
12968 * config/sparc/sparc.c: Include reload.h.
12969 (legitimize_tls_address): Rename into...
12970 (sparc_legitimize_tls_address): ...this.
12971 (legitimize_pic_address): Rename into...
12972 (sparc_legitimize_pic_address): ...this.
12973 (sparc_expand_move): Adjust to above renaming.
12974 (sparc_tls_referenced_p): Likewise.
12975 (sparc_legitimize_tls_address): Likewise.
12976 (sparc_legitimize_pic_address): Likewise.
12977 (sparc_legitimize_address): Likewise.
12978 (sparc_output_mi_thunk): Likewise.
12979 (sparc_legitimize_reload_address): New global function. Recognize
12980 (lo_sum (high ...) ...) patterns generated by earlier passes.
12981 * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Use above function.
12982
12983 2010-07-25 Eric Botcazou <ebotcazou@adacore.com>
12984
12985 PR target/44484
12986 * config/sparc/predicates.md (memory_reg_operand): Delete.
12987 * config/sparc/sync.md (sync_compare_and_swap): Minor tweaks.
12988 (*sync_compare_and_swap): Encode the address form in the pattern.
12989 (*sync_compare_and_swapdi_v8plus): Likewise.
12990
12991 2010-07-24 Gerald Pfeifer <gerald@pfeifer.com>
12992
12993 * doc/install.texi (Specific, *-*-freebsd*): Adjust to recent changes.
12994 Streamline paragraph on compatibility with the system compiler.
12995
12996 2010-07-24 Steven Bosscher <steven@gcc.gnu.org>
12997
12998 PR middle-end/45035
12999 * alias.c (true_dependence_1): Fix thinko in merge of old
13000 true_dependence and canon_true_dependence.
13001
13002 2010-07-23 Jan Hubicka <jh@suse.cz>
13003
13004 * lto-streamer-out.c (write_symbol): Fix visibilities of external
13005 references.
13006
13007 2010-07-23 Le-Chun Wu <lcwu@google.com>
13008
13009 * omega.c (omega_eliminate_redundant): Remove a self-assign statement.
13010 * tree-ssa-ccp.c (ccp_lattice_meet): Remove a self-assign statement
13011 and an unnecessary assignment.
13012 * dbxout.c (DEBUGGER_ARG_OFFSET): Change OFFSET to OFFSET+0 to avoid
13013 self-assign warning.
13014 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Remove
13015 unnecessary self-init.
13016
13017 2010-07-23 Richard Guenther <rguenther@suse.de>
13018
13019 PR lto/43071
13020 * gcc.c (LINK_COMMAND_SPEC): Filter out -fcompare-debug
13021 for -flto and -fwhopr.
13022
13023 2010-07-23 Kai Tietz <kai.tietz@onevision.com>
13024
13025 PR target/41943
13026 * Makefile.in (USER_H_INC_NEXT_PRE, USER_H_INC_NEXT_POST): New.
13027 (stmp-int-hdrs): Prefix/postfix headers by include_next.
13028 * config.gcc (user_headers_inc_next_pre): New.
13029 (user_headers_inc_next_post): Likewise.
13030 (*-w64-mingw*): Use for float.h post-fixing, and for
13031 stddef.h/stdarg.h pre-fixing by include_next.
13032 * configure.ac (user_headers_inc_next_post): New.
13033 (user_headers_inc_next_pre): New.
13034 * configure: Regenerated.
13035
13036 2010-07-23 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13037
13038 * configure.ac: Don't disable TLS on Solaris 8/9 by default
13039 Set tga_func for Solaris 2/x86 resp. SPARC.
13040 Remove duplicate parts of sparc*-sun-solaris2.* TLS check.
13041 (LIB_THREAD_LDFLAGS_SPEC): Define.
13042 (LIB_TLS_SPEC): Define. Check for required Sun ld version.
13043 * configure: Regenerate.
13044 * config.in: Regenerate.
13045 * config/sol2.h (LIB_SPEC): Use LIB_THREAD_LDFLAGS_SPEC with
13046 -pthread, -threads, LIB_TLS_SPEC with -pthread.
13047 * doc/install.texi (Specific, *-*-solaris2*): Document use of
13048 alternate thread libraries on Solaris 8.
13049 Document TLS patch requirements.
13050 * doc/sourcebuild.texi (Add Options): Sort alphabetically.
13051 Document tls.
13052
13053 PR target/18788
13054 * config/sol2.h (LIB_SPEC): Link with thread libraries even with
13055 -shared.
13056
13057 2010-07-23 Jakub Jelinek <jakub@redhat.com>
13058
13059 * tree.h (struct tree_base): Add nameless_flag bitfield.
13060 (TYPE_NAMELESS, DECL_NAMELESS): Define.
13061 * omp-low.c (create_omp_child_function, scan_omp_parallel,
13062 scan_omp_task, lower_omp_taskreg): Set DECL_NAMELESS and/or
13063 DECL_ARTIFICIAL where needed.
13064 * dwarf2out.c (dwarf2_name): Return NULL if DECL_NAMELESS.
13065 (type_tag): Return NULL if TYPE_NAMELESS or if TYPE_DECL
13066 has DECL_NAMELESS set.
13067
13068 2010-07-23 Martin Jambor <mjambor@suse.cz>
13069
13070 PR tree-optimization/44915
13071 * ipa-cp.c (cgraph_gate_cp): Also check that optimize is true.
13072 * ipa-inline.c (cgraph_mark_inline_edge): Likewise.
13073 (analyze_function): Likewise.
13074
13075 2010-07-23 Martin Jambor <mjambor@suse.cz>
13076
13077 PR tree-optimization/44914
13078 * tree-sra.c (sra_modify_function_body): Return true if CFG was
13079 changed, add purging dead eh edges.
13080 (ipa_sra_modify_function_body): Return true if CFG was changed,
13081 simplify purging dead eh edges.
13082 (modify_function): Return true if CFG was changed.
13083 (perform_intra_sra): Add TODO_cleanup_cfg to the return value if CFG
13084 was changed.
13085 (ipa_early_sra): Likewise.
13086
13087 2010-07-23 Jie Zhang <jie@codesourcery.com>
13088
13089 PR target/44290
13090 * attribs.c (decl_attributes): Insert "noinline" and "noclone"
13091 if "naked".
13092 * tree-sra.c (ipa_sra_preliminary_function_checks): Return
13093 false if ! tree_versionable_function_p.
13094
13095 2010-07-23 Nathan Froyd <froydnj@codesourcery.com>
13096
13097 * builtins.def (BUILT_IN_ARGS_INFO): Remove.
13098 * ipa-pure-const.c (special_builtlin_state): Remove
13099 BUILT_IN_ARGS_INFO case.
13100 * tree-stdarg.c (execute_optimize_stdarg): Likewise.
13101 * builtins.c (expand_builtin): Likewise.
13102 (expand_builtin_args_info): Remove.
13103 * doc/tm.texi (__builtin_args_info): Remove.
13104 (__builtin_next_arg): Adjust to not refer to __builtin_args_info.
13105 * doc/tm.text.in: Likewise.
13106
13107 2010-07-23 Richard Guenther <rguenther@suse.de>
13108
13109 * lto-symtab.c (lto_symtab_merge): Use gtc_mode enum values.
13110 (lto_symtab_merge_decls_2): Likewise.
13111 * tree-ssa.c (useless_type_conversion_p): Likewise.
13112 * lto-streamer-in.c (input_gimple_stmt): Likewise.
13113 * gimple.c (gtc_visited2, gtc_ob2): Remove.
13114 (struct type_pair_d): Make same_p an array indexed by mode.
13115 Update comment.
13116 (lookup_type_pair): Update initialization.
13117 (struct sccs): Adjust same_p type.
13118 (gimple_types_compatible_p_1, gtc_visit, gimple_types_compatible_p):
13119 Adjust.
13120 (print_gimple_types_stats): Likewise.
13121 * gimple.h (enum gtc_mode): New.
13122 (gimple_types_compatible_p): Adjust prototype.
13123
13124 2010-07-23 Daniel Jacobowitz <dan@codesourcery.com>
13125
13126 * dwarf2out.c (dwarf2out_frame_debug): Check for queued saves
13127 again after processing insn.
13128
13129 2010-07-23 Jie Zhang <jie@codesourcery.com>
13130
13131 * tree-sra.c (ipa_sra_preliminary_function_checks): Dump
13132 proper words when !tree_versionable_function_p.
13133
13134 2010-07-23 Richard Guenther <rguenther@suse.de>
13135
13136 PR tree-optimization/45037
13137 * tree-ssa-loop-ivopts.c (copy_ref_info): Handle NULL base.
13138
13139 2010-07-23 Jie Zhang <jie@codesourcery.com>
13140
13141 * doc/extend.texi: Remove IP2K from the description of naked attribute.
13142 Add MCORE instead.
13143
13144 2010-07-10 Andi Kleen <ak@linux.intel.com>
13145
13146 PR lto/44992
13147 * lto-opts.c (lto_write_options): Add NULL file_data argument to
13148 lto_get_section_name.
13149 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
13150 * lto-streamer-out.c (produce_asm): Likewise.
13151 (copy_function): Likewise.
13152 (produce_symtab): Likewise.
13153 (produce_asm_for_decls): Likewise.
13154 * lto-streamer.c (lto_get_section_name): Add file_data argument.
13155 Rewrite to add random postfix to LTO sections.
13156 * lto-streamer.h (lto_file_decl_data): Add next, id, resolutions.
13157 (lto_get_section_name): Add file_data argument to prototype.
13158
13159 2010-07-10 Andi Kleen <ak@linux.intel.com>
13160
13161 * lto-section-in.c (lto_section_name): Synchronize names
13162 with lto_get_section_name.
13163
13164 2010-07-10 Andi Kleen <ak@linux.intel.com>
13165
13166 * lto-opts.c (lto_read_file_options): Check for missing section.
13167
13168 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
13169
13170 * ira.c (check_allocation): Correctly handle the case where an allocno
13171 with two objects was allocated to a single reg.
13172
13173 2010-07-22 Richard Sandiford <rdsandiford@googlemail.com>
13174
13175 * tree-ssa-math-opts.c (is_widening_mult_rhs_p): New function.
13176 (is_widening_mult_p): Likewise.
13177 (convert_to_widen): Use them.
13178 (convert_plusminus_to_widen): Likewise. Handle fixed-point types as
13179 well as integer ones.
13180
13181 2010-07-22 Steven Bosscher <steven@gcc.gnu.org>
13182
13183 * alias.c (true_dependence_1): New function, merged version of
13184 true_dependence and canon_true_dependence.
13185 (true_dependence): Simplify.
13186 (canon_true_dependence): Simplify.
13187
13188 2010-07-22 Richard Henderson <rth@redhat.com>
13189
13190 PR target/45027
13191 * config/i386/i386.c (setup_incoming_varargs_64): Force the use
13192 of V4SFmode for the SSE saves; increase stack alignment if needed.
13193 (ix86_gimplify_va_arg): Don't increase stack alignment here.
13194
13195 2010-07-22 Jakub Jelinek <jakub@redhat.com>
13196
13197 PR bootstrap/45028
13198 * recgprop.c (copyprop_hardreg_forward_1): If changed is true,
13199 call cprop_find_used_regs again via note_uses.
13200
13201 2010-07-22 Eric Botcazou <ebotcazou@adacore.com>
13202
13203 * alias.c (get_alias_set): Fix formatting issues.
13204
13205 2010-07-22 Steve Ellcey <sje@cup.hp.com>
13206
13207 PR middle-end/44878
13208 * stmt.c (expand_value_return): Call promote_function_mode with
13209 a for_return argument of 2 when returning by reference.
13210
13211 2010-07-22 Dodji Seketeli <dodji@redhat.com>
13212
13213 PR debug/45024
13214 * dwarf2out.c (scope_die_for): Don't fall back to the compilation
13215 unit DIE if we can find the scope DIE.
13216
13217 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
13218
13219 * ira-build.c (ira_create_object): New arg SUBWORD; all callers
13220 changed. Initialize OBJECT_SUBWORD.
13221 (ira_create_allocno): Clear ALLOCNO_NUM_OBJECTS.
13222 (ira_create_allocno_objects): Renamed from ira_create_allocno_object;
13223 all callers changed.
13224 (merge_hard_reg_conflicts): Iterate over allocno subobjects.
13225 (finish_allocno): Likewise.
13226 (move_allocno_live_ranges, copy_allocno_live_ranges): Likewise.
13227 (remove_low_level_allocnos): Likewise.
13228 (update_bad_spill_attribute): Likewise.
13229 (setup_min_max_allocno_live_range_point): Likewise.
13230 (sort_conflict_id_map): Likewise.
13231 (ira_flattening): Likewise. Use ior_hard_reg_conflicts.
13232 (ior_hard_reg_conflicts): New function.
13233 (ior_allocate_object_conflicts): Renamed first argument to OBJ.
13234 (compress_conflict_vecs): Iterate over objects, not allocnos.
13235 (ira_add_live_range_to_object): New function.
13236 (object_range_compare_func): Renamed from allocno_range_compare_func.
13237 All callers changed.
13238 (setup_min_max_conflict_allocno_ids): For allocnos with multiple
13239 subobjects, widen the min/max range of the lowest-order object to
13240 potentially include all other such low-order objects.
13241 * ira.c (ira_bad_reload_regno_1): Iterate over allocno subobjects.
13242 (check_allocation): Likewise. Use more fine-grained tests for register
13243 conflicts.
13244 * ira-color.c (allocnos_have_intersected_live_ranges_p): Iterate over
13245 allocno subobjects.
13246 (assign_hard_reg): Keep multiple sets of conflicts. Make finer-grained
13247 choices about which bits to set in each set. Don't use
13248 ira_hard_reg_not_in_set_p, perform a more elaborate test for conflicts
13249 using the multiple sets we computed.
13250 (push_allocno_to_stack): Iterate over allocno subobjects.
13251 (all_conflicting_hard_regs_coalesced): New static function.
13252 (setup_allocno_available_regs_num): Use it.
13253 (setup_allocno_left_conflicts_size): Likewise. Iterate over allocno
13254 subobjects.
13255 (coalesced_allocno_conflict): Test subobject 0 in each allocno.
13256 (setup_allocno_priorities): Divide ALLOCNO_EXCESS_PRESSURE_POINTS_NUM
13257 by ALLOCNO_NUM_OBJECTS.
13258 (calculate_spill_cost): Likewise.
13259 (color_pass): Express if statement in a more normal way.
13260 (ira_reassign_conflict_allocnos): Iterate over allocno subobjects.
13261 (slot_coalesced_allocno_live_ranges_intersect_p): Likewise.
13262 (setup_slot_coalesced_allocno_live_ranges): Likewise.
13263 (allocno_reload_assign): Likewise.
13264 (ira_reassign_pseudos): Likewise.
13265 (fast_allocation): Likewise.
13266 * ira-conflicts.c (build_conflict_bit_table): Likewise.
13267 (print_allocno_conflicts): Likewise.
13268 (ira_build_conflicts): Likewise.
13269 (allocnos_conflict_for_copy_p): Renamed from allocnos_conflict_p. All
13270 callers changed. Test subword 0 of each allocno for conflicts.
13271 (build_object_conflicts): Renamed from build_allocno_conflicts. All
13272 callers changed. Iterate over allocno subobjects.
13273 * ira-emit.c (modify_move_list): Iterate over allocno subobjects.
13274 * ira-int.h (struct ira_allocno): New member: num_objects.
13275 Rename object to objects and change it into an array.
13276 (ALLOCNO_OBJECT): Add new argument N.
13277 (ALLOCNO_NUM_OBJECTS, OBJECT_SUBWORD): New macros.
13278 (ira_create_allocno_objects): Renamed from ira_create_allocno_object.
13279 (ior_hard_reg_conflicts): Declare.
13280 (ira_add_live_range_to_object): Declare.
13281 (ira_allocno_object_iterator): New.
13282 (ira_allocno_object_iter_init, ira_allocno_object_iter_cond): New.
13283 (FOR_EACH_ALLOCNO_OBJECT): New macro.
13284 * ira-lives.c (objects_live): Renamed from allocnos_live; all
13285 uses changed.
13286 (allocnos_processed): New sparseset.
13287 (make_object_born): Renamed from make_allocno_born; take an
13288 ira_object_t argument. All callers changed.
13289 (make_object_dead): Renamed from make_allocno_dead; take an
13290 ira_object_t argument. All callers changed.
13291 (update_allocno_pressure_excess_length): Take an ira_obejct_t argument.
13292 All callers changed.
13293 (mark_pseudo_regno_live): Iterate over allocno subobjects.
13294 (mark_pseudo_regno_dead): Likewise.
13295 (mark_pseudo_regno_subword_live, mark_pseudo_regno_subword_dead): New
13296 functions.
13297 (mark_ref_live): Detect subword accesses and call
13298 mark_pseudo_regno_subword_live as appropriate.
13299 (mark_ref_dead): Likewise for mark_pseudo_regno_subword_dead.
13300 (process_bb_nodes_live): Deal with object-related updates first; set
13301 and test bits in allocnos_processed to avoid computing allocno
13302 statistics more than once.
13303 (create_start_finish_chains): Iterate over objects, not allocnos.
13304 (print_object_live_ranges): New function.
13305 (print_allocno_live_ranges): Use it.
13306 (ira_create_allocno_live_ranges): Allocate and free allocnos_processed
13307 and objects_live.
13308
13309 2010-07-22 Richard Guenther <rguenther@suse.de>
13310
13311 PR lto/42451
13312 * gimple.c (gtc_next_dfs_num): New global.
13313 (struct sccs): Make value a union, add integer same_p member.
13314 (gtc_visit): New function.
13315 (gimple_types_compatible_p_1): New function, split out from ...
13316 (gimple_types_compatible_p): ... here. Start a DFS walk here.
13317 (iterative_hash_gimple_type): Adjust for sccs change.
13318
13319 2010-07-22 Martin Jambor <mjambor@suse.cz>
13320
13321 PR tree-optimization/44891
13322 * tree-sra.c: Include gimple-pretty-print.h.
13323 (replace_uses_with_default_def_ssa_name): Renamed to
13324 get_repl_default_def_ssa_name, return the new SSA name instead of
13325 replacing the old one.
13326 (sra_modify_assign): Dump a message when removing a load, if the LHS
13327 is an SSA_NAME, do not do any propagation, just set the RHS to a
13328 default definition SSA NAME, type convert if necessary.
13329 * Makefile.in (tree-sra.o): Add gimple-pretty-print.h to dependencies.
13330
13331 2010-07-22 Richard Guenther <rguenther@suse.de>
13332
13333 PR tree-optimization/45017
13334 * tree-ssa-sccvn.c (vn_reference_eq): Make sure we honor
13335 TYPE_PRECISION of integral types in addition to size.
13336
13337 2010-07-22 Maxim Kuvyrkov <maxim@codesourcery.com>
13338
13339 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Default to GLIBC
13340 when no C library is specified.
13341
13342 2010-07-22 Martin Jambor <mjambor@suse.cz>
13343
13344 * ipa-prop.h (struct ipa_node_params): Updated comment.
13345 (struct ipa_edge_args): Likewise.
13346 * Makefile.in (ipa-prop.o): Remove bogus $(GIMPLE_FOLD_H) dependency.
13347
13348 2010-07-22 Martin Jambor <mjambor@suse.cz>
13349
13350 * cgraphunit.c (verify_edge_count_and_frequency): New function.
13351 (verify_cgraph_node): Verify frequencies of indirect edges.
13352 * tree-inline.c (tree_function_versioning): Update frequencies of
13353 indirect edges.
13354
13355 2010-07-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13356
13357 PR target/43698
13358 * config/arm/arm.md: Split arm_rev into *arm_rev and *thumb1_rev.
13359 Set *arm_rev to be predicable.
13360
13361 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
13362
13363 * config/darwin.h (LINK_COMMAND_SPEC): Split into...
13364 (LINK_COMMAND_SPEC_A): New.
13365 (DSYMUTIL): New.
13366 (DSYMUTIL_SPEC): New.
13367 * config/darwin9.h (LINK_COMMAND_SPEC): Remove.
13368 (DSYMUTIL_SPEC): Update for darwin >= 9 requirements.
13369
13370 2010-07-22 Iain Sandoe <iains@gcc.gnu.org>
13371
13372 * calls.c (load_register_parameters): Move check for zero
13373 sized items so that only the call to
13374 mem_overlaps_already_clobbered_arg_p () is protected.
13375
13376 2010-07-22 Jan Hubicka <jh@suse.cz>
13377
13378 * ipa-pure-const.c (varying_state): Break out from ...
13379 (get_function_state): ... here; always return varying_state
13380 when state would be NULL otherwise.
13381 (remove_node_data): Do not free varying state.
13382
13383 2010-07-22 Bernd Schmidt <bernds@codesourcery.com>
13384
13385 PR bootstrap/44970
13386 PR middle-end/45009
13387 * postreload.c: Include "target.h".
13388 (reload_combine_closest_single_use): Don't take DEBUG_INSNs
13389 into account.
13390 (fixup_debug_insns): Don't copy the rtx.
13391 (reload_combine_recognize_const_pattern): DEBUG_INSNs can't have uses.
13392 Don't copy when replacing. Call fixup_debug_insns in the case where
13393 we merged one add with another.
13394 (reload_combine_recognize_pattern): Fail if there aren't any uses.
13395 Try harder to determine whether we're picking a valid index register.
13396 Don't set store_ruid for an insn we're going to scan in the
13397 next iteration.
13398 (reload_combine): Remove unused code.
13399 (reload_combine_note_use): When updating use information for
13400 an old insn, ignore a use that occurs after store_ruid.
13401 * Makefile.in (postreload.o): Update dependencies.
13402
13403 * function.c (record_hard_reg_sets): Restrict the previous change
13404 to cases where the incoming nominal mode is the same as the
13405 incoming promoted mode and everything happens in MODE_INT.
13406
13407 2010-07-21 Jakub Jelinek <jakub@redhat.com>
13408
13409 PR debug/45015
13410 * var-tracking.c (adjust_mems): Ignore ASM_OPERANDS with non-zero
13411 ASM_OPERANDS_OUTPUT_IDX.
13412 (adjust_insn): For inline asm with multiple sets ensure first
13413 ASM_OPERANDS vectors are used by all following ASM_OPERANDS in
13414 the insn.
13415
13416 2010-07-21 Richard Henderson <rth@redhat.com>
13417
13418 * config/i386/i386.c (setup_incoming_varargs_64): Emit a simple
13419 comparison for avoiding xmm register saves. Emit the xmm register
13420 saves explicitly.
13421 * config/i386/i386.md (UNSPEC_SSE_PROLOGUE_SAVE): Remove.
13422 (UNSPEC_SSE_PROLOGUE_SAVE_LOW): Remove.
13423 (sse_prologue_save, sse_prologue_save_insn1, sse_prologue_save_insn):
13424 Remove patterns and the associated splitters.
13425
13426 2010-07-21 Changpeng Fang <changpeng.fang@amd.com>
13427
13428 * tree-ssa-loop-prefetch.c (analyze_ref): Strip off the real
13429 and imagine parts of a complex, so that they can have the same
13430 base and fall into the same group.
13431
13432 2010-07-21 Richard Guenther <rguenther@suse.de>
13433
13434 PR lto/45018
13435 * tree.c (find_decls_types_r): Do not follow TREE_CHAIN
13436 of TYPE_DECLs. Do not follow TYPE_NEXT_VARIANT,
13437 TYPE_NEXT_PTR_TO, nor TYPE_NEXT_REF_TO or TYPE_CANONICAL.
13438
13439 2010-07-21 Martin Jambor <mjambor@suse.cz>
13440
13441 PR tree-optimization/44900
13442 * tree-sra.c (load_assign_lhs_subreplacements): Updated comments.
13443 (sra_modify_assign): Move gsi to the next statmenent unconditionally.
13444
13445 2010-07-21 Bernd Schmidt <bernds@codesourcery.com>
13446
13447 PR middle-end/44738
13448 * tree-ssa.c (warn_uninit): Avoid emitting an unnecessary message.
13449
13450 2010-07-21 Richard Guenther <rguenther@suse.de>
13451
13452 PR middle-end/45013
13453 * tree-ssa.c (useless_type_conversion_p): Dispatch to
13454 gimple_types_compatible_p only when in lto.
13455 * gimple.c (gimple_types_compatible_p): Use canonical types
13456 to speed up comparison.
13457
13458 2010-07-21 Richard Guenther <rguenther@suse.de>
13459
13460 * tree-flow.h (referenced_var): Move define ...
13461 * tree-flow-inline.h (referenced_var): ... here as an inline
13462 function. Assert here ...
13463 * tree-dfa.c (referenced_var_lookup): ... instead of here.
13464 * tree-ssa.c (maybe_optimize_var): Check if the variable
13465 is in referenced vars.
13466 (execute_update_addresses_taken): Remove old broken check.
13467 * gimple-pretty-print.c (pp_points_to_solution): Use
13468 referenced_var_lookup.
13469 * tree-into-ssa.c (dump_decl_set): Likewise.
13470
13471 2010-07-21 Jakub Jelinek <jakub@redhat.com>
13472
13473 PR debug/45003
13474 * var-tracking.c (reverse_op): Also handle {SIGN,ZERO}_EXTEND of a MEM.
13475 * dwarf2out.c (loc_descriptor): Don't handle SIGN_EXTEND nor
13476 ZERO_EXTEND here.
13477
13478 2010-07-20 Richard Henderson <rth@redhat.com>
13479
13480 * vxworks.c (vxworks_emutls_var_fields): Pass locus to build_decls.
13481
13482 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
13483
13484 * config/arm/arm.md (thumb1_addsi3): Add alternative and split for
13485 computing the sum of the stack pointer and a large constant.
13486 * config/arm/constraints.md (M): Remove superfluous parentheses.
13487 (Pc): New constraint.
13488
13489 2010-07-20 Jakub Jelinek <jakub@redhat.com>
13490
13491 PR debug/45006
13492 * cfgexpand.c (expand_debug_expr): Only look at TYPE_UNSIGNED of
13493 operand's type if exp is tcc_unary class tree.
13494
13495 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
13496
13497 * config/rs6000/rs6000.md (abs<mode>2_isel, nabs<mode>2_isel):
13498 Reverse sense of if_then_else condition.
13499
13500 2010-07-20 Nathan Froyd <froydnj@codesourcery.com>
13501
13502 * config/rs6000/rs6000.opt (mblock-move-inline-limit): New option.
13503 * config/rs6000/rs6000.c (rs6000_override_options): Set
13504 rs6000_block_move_inline_limit appropriately.
13505 (expand_block_move): Use rs6000_block_move_inline_limit.
13506 * doc/invoke.texi (mblock-move-inline-limit): Document.
13507
13508 2010-07-20 Bernd Schmidt <bernds@codesourcery.com>
13509
13510 * postreload.c (fixup_debug_insns): Remove arg REGNO. New args
13511 FROM and TO. All callers changed. Don't look for tracked uses,
13512 just scan the RTL for DEBUG_INSNs and substitute.
13513 (reload_combine_recognize_pattern): Call fixup_debug_insns.
13514 (reload_combine): Ignore DEBUG_INSNs.
13515
13516 2010-07-20 Jakub Jelinek <jakub@redhat.com>
13517
13518 * var-tracking.c (vt_expand_loc, vt_expand_loc_dummy): Bump maximum
13519 depth to 8 from 5.
13520
13521 PR debug/45003
13522 * cfgexpand.c (expand_debug_expr) <case NOP_EXPR>: Use ZERO_EXTEND
13523 or SIGN_EXTEND depending on TYPE_UNSIGNED of the operand's type
13524 instead of the result's type.
13525
13526 2010-07-20 Richard Guenther <rguenther@suse.de>
13527
13528 PR tree-optimization/44977
13529 * tree-ssa-dom.c (propagate_rhs_into_lhs): Do not create invalid
13530 SSA form.
13531
13532 2010-07-20 Richard Guenther <rguenther@suse.de>
13533
13534 * lto-symtab.c (lto_symtab_merge): Use gimple_types_compatible_p.
13535 (lto_symtab_merge_decls_2): Likewise.
13536 * gimple.h (gimple_types_compatible_p): Declare.
13537 * gimple.c (gimple_queue_type_fixup): Remove.
13538 (gimple_fixup_complete_and_incomplete_subtype_p): Likewise.
13539 (gimple_compatible_complete_and_incomplete_type_p): New function.
13540 (gimple_types_compatible_p): Adjust.
13541 (gimple_register_type): Remove type fixup code.
13542 (print_gimple_types_stats): Adjust.
13543 (free_gimple_type_tables): Likewise.
13544 * lto-streamer-in.c (input_gimple_stmt): Use gimple_types_compatible_p.
13545 * tree-ssa.c (useless_type_conversion_p): Likewise.
13546
13547 2010-07-20 Richard Guenther <rguenther@suse.de>
13548
13549 PR middle-end/44971
13550 PR middle-end/44988
13551 * tree-ssa.c (maybe_optimize_var): New function split out from ...
13552 (execute_update_addresses_taken): ... here.
13553 (non_rewritable_mem_ref_base): Likewise.
13554 (execute_update_addresses_taken): Do not iterate over all referenced
13555 vars but just all local decls and parms.
13556 Properly check call and asm arguments and rewrite call arguments.
13557
13558 2010-07-20 Maxim Kuvyrkov <maxim@codesourcery.com>
13559
13560 * config.gcc (LIBC_GLIBC, LIBC_UCLIBC, LIBC_BIONIC): Move constants
13561 to top level.
13562 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): Move Android-specific
13563 definitions ...
13564 * config/linux-android.h (ANDROID_TARGET_OS_CPP_BUILTINS): ... here.
13565 New macro.
13566 * config/arm/linux-eabi.h (TARGET_OS_CPP_BUILTINS): Use it.
13567
13568 2010-07-19 Richard Sandiford <rdsandiford@googlemail.com>
13569
13570 * gengtype.c (start_root_entry): New function, split out from
13571 write_root. Check whether V is null and raise an error if so.
13572 (write_field_root): Check for V being null. Don't raise an error here;
13573 set V to null instead.
13574 (write_root): Update comment above function. Use start_root_entry.
13575
13576 2010-07-19 Xinliang David Li <davidxl@google.com>
13577
13578 PR testsuite/44932
13579 * tree-ssa-uninit.c (collect_phi_def_edges): Fix bug collecting
13580 def edges.
13581 (find_uninit_use): Add dump.
13582 (is_use_properly_guarded): Ditto.
13583 (warn_uninitialized_phi): Ditto.
13584 (execute_late_warn_uninitialized): Ditto.
13585
13586 2010-07-19 Richard Guenther <rguenther@suse.de>
13587
13588 PR middle-end/44941
13589 * expr.c (emit_block_move_hints): Move zero size check first.
13590 Move asserts to more useful places.
13591 * calls.c (load_register_parameters): Check for zero size.
13592
13593 2010-07-19 Richard Henderson <rth@redhat.com>
13594
13595 * tree-optimize.c (execute_all_early_local_passes): New. Change
13596 cgraph_state here ...
13597 (execute_early_local_optimizations): ... not here. Remove.
13598 (pass_early_local_passes, pass_all_early_optimizations): Update.
13599
13600 2010-07-19 Bernd Schmidt <bernds@codesourcery.com>
13601
13602 * postreload.c (reload_combine_closest_single_use): Ignore the
13603 number of uses for DEBUG_INSNs.
13604 (fixup_debug_insns): New static function.
13605 (reload_combine_recognize_const_pattern): Use it. Don't let the
13606 main loop be affected by DEBUG_INSNs.
13607 Really disallow moving adds past a jump insn.
13608 (reload_combine_recognize_pattern): Don't update use_ruid here.
13609 (reload_combine_note_use): Do it here.
13610 (reload_combine): Use control_flow_insn_p rather than JUMP_P.
13611
13612 2010-07-19 Bingfeng Mei <bmei@broadcom.com>
13613
13614 * ddg.c (create_ddg): Exclude nodes of debug_insn in counting nodes
13615 of a loop.
13616 * loop-doloop.c (doloop_condition_get): Skip possible debug_insn.
13617
13618 2010-07-19 Iain Sandoe <iains@gcc.gnu.org>
13619
13620 * config/i386/darwin.h: Define darwin_emit_branch_islands.
13621 (TARGET_MACHO_BRANCH_ISLANDS): New.
13622 (FUNCTION_PROFILER): Use TARGET_MACHO_BRANCH_ISLANDS.
13623 * config/i386/i386.h (TARGET_MACHO_BRANCH_ISLANDS): Define a
13624 default value.
13625 * config/i386/i386.c (output_pic_addr_const): Do not emit
13626 branch islands unless TARGET_MACHO_BRANCH_ISLANDS is set.
13627 (x86_output_mi_thunk): Adjust symbol creation.
13628 * config/rs6000/darwin.h: Define darwin_emit_branch_islands.
13629 Remove out of date comment.
13630 * config/rs6000/rs6000.c (print_operand): Adjust symbol.
13631 (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
13632 (DARWIN_GENERATE_ISLANDS): Ditto.
13633 (output_call): Do not emit branch islands unless
13634 darwin_emit_branch_islands is set.
13635 * config/darwin.c: Declare darwin_emit_branch_islands.
13636 (machopic_indirect_data_reference): Do not emit unless
13637 darwin_emit_branch_islands is set.
13638 (darwin_override_options): Set darwin_emit_branch_islands
13639 where it is needed.
13640 * config/darwin9.h (DARWIN_LINKER_GENERATES_ISLANDS): Remove.
13641
13642 2010-07-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13643
13644 * doc/sourcebuild.texi (Effective-Target Keywords): Document
13645 sse_runtime, sse2_runtime.
13646
13647 2010-07-18 Richard Sandiford <rdsandiford@googlemail.com>
13648
13649 * config/mips/mips.c (mips16_build_call_stub): Zero-extend the
13650 low half of a single-register SCmode return value before ORing
13651 it with the high half.
13652 * config/mips/mips16.S (MERGE_GPRf): Likewise.
13653
13654 2010-07-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13655
13656 PR target/44805
13657 * config/pa/pa.h (CONSTANT_ALIGNMENT): Align strings to BITS_PER_WORD
13658 on all targets.
13659
13660 2010-07-17 Bernd Schmidt <bernds@codesourcery.com>
13661
13662 PR target/42235
13663 * postreload.c (reload_cse_move2add): Return bool, true if anything.
13664 changed. All callers changed.
13665 (move2add_use_add2_insn): Likewise.
13666 (move2add_use_add3_insn): Likewise.
13667 (reload_cse_regs): If reload_cse_move2add changed anything, rerun
13668 reload_combine.
13669 (RELOAD_COMBINE_MAX_USES): Bump to 16.
13670 (last_jump_ruid): New static variable.
13671 (struct reg_use): New members CONTAINING_MEM and RUID.
13672 (reg_state): New members ALL_OFFSETS_MATCH and REAL_STORE_RUID.
13673 (reload_combine_split_one_ruid, reload_combine_split_ruids,
13674 reload_combine_purge_insn_uses, reload_combine_closest_single_use
13675 reload_combine_purge_reg_uses_after_ruid,
13676 reload_combine_recognize_const_pattern): New static functions.
13677 (reload_combine_recognize_pattern): Verify that ALL_OFFSETS_MATCH
13678 is true for our reg and that we have available index regs.
13679 (reload_combine_note_use): New args RUID and CONTAINING_MEM. All
13680 callers changed. Use them to initialize fields in struct reg_use.
13681 (reload_combine): Initialize last_jump_ruid. Be careful when to
13682 take PREV_INSN of the scanned insn. Update REAL_STORE_RUID fields.
13683 Call reload_combine_recognize_const_pattern.
13684 (reload_combine_note_store): Update REAL_STORE_RUID field.
13685
13686 2010-07-16 Jason Merrill <jason@redhat.com>
13687
13688 * Makefile.in (opts-common.o): Depend on options.h.
13689
13690 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
13691
13692 * tree.c (build_common_builtin_nodes): Use build_function_type_list
13693 instead of build_function_type.
13694 * tree-ssa-loop-prefetch.c (tree_ssa_prefetch_arrays): Likewise.
13695 * cgraphunit.c (cgraph_build_static_cdtor): Likewise.
13696
13697 2010-07-16 Nathan Froyd <froydnj@codesourcery.com>
13698
13699 * config/rs6000/rs6000.c (rs6000_emit_sISEL): Let rs6000_emit_int_cmove
13700 do all the work.
13701 (rs6000_emit_int_cmove): Use function pointers for insn generation.
13702 Don't force values into registers unnecessarily.
13703 (output_isel): Assert that we're not given conditions we can't handle.
13704 Delete corresponding code.
13705 * config/rs6000/rs6000.md (isel_signed_<mode>): Use
13706 scc_comparison_operator constraint. Permit 0 for the consequent
13707 operand. Permit any GPR for the alternative operand.
13708 (isel_unsigned_<mode>): Likewise.
13709
13710 2010-07-16 Jakub Jelinek <jakub@redhat.com>
13711
13712 PR target/44942
13713 * config/i386/i386-protos.h (ix86_function_arg_boundary): Change second
13714 argument to const_tree.
13715 * config/i386/i386.c (function_arg_advance): If padding needs to be
13716 inserted before argument, increment cum->words by number of padding
13717 words as well.
13718 (contains_aligned_value_p): Change argument to const_tree.
13719 (ix86_function_arg_boundary): Change second argument to const_tree.
13720
13721 2010-07-16 Bernd Schmidt <bernds@codesourcery.com>
13722
13723 PR target/42235
13724 * function.c (record_hard_reg_sets): New static function.
13725 (assign_parm_setup_reg): If an optab for extending exists and the
13726 generated code clobbbers no hard regs, emit the insn directly and
13727 create a REG_EQUIV note.
13728
13729 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
13730
13731 * c-decl.c (detect_field_duplicates): Use DECL_CHAIN insted of
13732 TREE_CHAIN.
13733 * c-typeck.c (push_init_level): Likewise.
13734 (process_init_element): Likewise.
13735
13736 2010-07-15 Anatoly Sokolov <aesok@post.ru>
13737
13738 * tree.h (enum tree_index): Add TI_INTEGER_THREE.
13739 (integer_three_node): Add.
13740 * tree.c (build_common_tree_nodes_2): Use integer_type_node insead of
13741 NULL_TREE in build_int_cst calls. Initialize the integer_three_node.
13742 * builtins.c (expand_builtin_prefetch): Use common tree nodes instead
13743 of call build_int_cst.
13744 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Ditto.
13745 * tree-ssa-loop-ivopts.c (idx_find_step): Ditto.
13746 (find_interesting_uses_address): Ditto.
13747 * tree-ssa-alias.c (ao_ref_init_from_ptr_and_size): Ditto.
13748 * tree-eh.c (lower_eh_constructs_2): Ditto.
13749 * tree-vect-loop.c (get_initial_def_for_induction): Ditto.
13750 * c-typeck.c (really_start_incremental_init, push_init_level): Ditto.
13751 * expmed.c (expand_divmod): Ditto.
13752 * tree-mudflap.c (mx_register_decls): Ditto.
13753 * varasm.c (array_size_for_constructor): Ditto.
13754 * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
13755 * c-parser.c (c_parser_postfix_expression): Ditto.
13756
13757 2010-07-15 Bernd Schmidt <bernds@codesourcery.com>
13758
13759 * postreload.c (last_label_ruid, first_index_reg, last_index_reg):
13760 New static variables.
13761 (reload_combine_recognize_pattern): New static function, broken out
13762 of reload_combine.
13763 (reload_combine): Use it. Only initialize first_index_reg and
13764 last_index_reg once.
13765
13766 2010-07-15 Richard Henderson <rth@redhat.com>
13767
13768 * cgraphunit.c (cgraph_build_static_cdtor): Clear current_function_decl
13769 when done.
13770
13771 2010-07-15 Jan Hubicka <jh@suse.cz>
13772
13773 * lto-symtab.c (lto_symtab_resolve_symbols): Remove hack handling
13774 comdats for broken gold.
13775 (lto_sy mtab_merge_decls_1): Set used_from_object_file correctly.
13776
13777 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
13778
13779 * tree.h (TREE_RTL_OPERAND_CHECK): Delete.
13780
13781 2010-07-15 Nathan Froyd <froydnj@codesourcery.com>
13782
13783 * tree.h (DECL_CHAIN): Define.
13784 * alias.c: Carefully replace TREE_CHAIN with DECL_CHAIN.
13785 * c-decl.c: Likewise.
13786 * c-parser.c: Likewise.
13787 * c-typeck.c: Likewise.
13788 * cfgexpand.c: Likewise.
13789 * cgraph.c: Likewise.
13790 * cgraphunit.c: Likewise.
13791 * combine.c: Likewise.
13792 * config/alpha/alpha.c: Likewise.
13793 * config/arm/arm.c: Likewise.
13794 * config/frv/frv.c: Likewise.
13795 * config/i386/i386.c: Likewise.
13796 * config/i386/winnt-cxx.c: Likewise.
13797 * config/ia64/ia64.c: Likewise.
13798 * config/iq2000/iq2000.c: Likewise.
13799 * config/mep/mep.c: Likewise.
13800 * config/mips/mips.c: Likewise.
13801 * config/pa/som.h: Likewise.
13802 * config/rs6000/rs6000.c: Likewise.
13803 * config/s390/s390.c: Likewise.
13804 * config/sh/sh.c: Likewise.
13805 * config/sh/symbian-cxx.c: Likewise.
13806 * config/sparc/sparc.c: Likewise.
13807 * config/spu/spu.c: Likewise.
13808 * config/stormy16/stormy16.c: Likewise.
13809 * config/vxworks.c: Likewise.
13810 * config/xtensa/xtensa.c: Likewise.
13811 * coverage.c: Likewise.
13812 * dbxout.c: Likewise.
13813 * dwarf2out.c: Likewise.
13814 * emit-rtl.c: Likewise.
13815 * expr.c: Likewise.
13816 * function.c: Likewise.
13817 * gimple-low.c: Likewise.
13818 * gimple-pretty-print.c: Likewise.
13819 * gimplify.c: Likewise.
13820 * integrate.c: Likewise.
13821 * ipa-inline.c: Likewise.
13822 * ipa-prop.c: Likewise.
13823 * ipa-split.c: Likewise.
13824 * ipa-struct-reorg.c: Likewise.
13825 * ipa-type-escape.c: Likewise.
13826 * langhooks.c: Likewise.
13827 * lto-cgraph.c: Likewise.
13828 * omp-low.c: Likewise.
13829 * stor-layout.c: Likewise.
13830 * tree-cfg.c: Likewise.
13831 * tree-complex.c: Likewise.
13832 * tree-dfa.c: Likewise.
13833 * tree-dump.c: Likewise.
13834 * tree-inline.c: Likewise.
13835 * tree-mudflap.c: Likewise.
13836 * tree-nested.c: Likewise.
13837 * tree-object-size.c: Likewise.
13838 * tree-pretty-print.c: Likewise.
13839 * tree-sra.c: Likewise.
13840 * tree-ssa-live.c: Likewise.
13841 * tree-ssa-loop-niter.c: Likewise.
13842 * tree-ssa-math-opts.c: Likewise.
13843 * tree-ssa-reassoc.c: Likewise.
13844 * tree-ssa-sccvn.c: Likewise.
13845 * tree-ssa-structalias.c: Likewise.
13846 * tree-tailcall.c: Likewise.
13847 * tree-vrp.c: Likewise.
13848 * tree.c: Likewise.
13849 * var-tracking.c: Likewise.
13850 * varasm.c: Likewise.
13851
13852 2010-07-15 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13853
13854 PR target/44877
13855 * config/spu/spu.c (spu_expand_builtin_1): Allow references
13856 (as well as pointers) as argument to mask_for_load builtins.
13857
13858 2010-07-15 Richard Guenther <rguenther@suse.de>
13859
13860 PR tree-optimization/44946
13861 * tree-ssa-structalias.c (get_constraint_for_component_ref): Deal
13862 with accessing only padding properly.
13863
13864 2010-07-15 Jan Hubicka <jh@suse.cz>
13865
13866 * ipa.c (function_and_variable_visibility): Variables marked as used
13867 should not be localized.
13868
13869 2010-07-15 Jan Hubicka <jh@suse.cz>
13870
13871 * cgraph.c: Include lto-streamer.h
13872 (change_decl_assembler_name): Work when assembler name hash is at place.
13873 (cgraph_make_decl_local): When localizing COMDAT symbol at WPA stage,
13874 be sure to rename it to avoid name clash.
13875 * ipa.c (cgraph_externally_visible_p, function_and_variable_visibility):
13876 Localize hidden symbols only when locally defined.
13877
13878 2010-07-15 Uros Bizjak <ubizjak@gmail.com>
13879
13880 * config/i386/i386.h (SHIFT_COUNT_TRUNCATED): Expand comment.
13881
13882 2010-07-15 Magnus Granberg <zorry@gentoo.org>
13883 Kevin F. Quinn <kevquinn@gentoo.org>
13884
13885 * builtins.c (expand_builtin_init_trampoline): Warn for -Wtrampolines.
13886 * common.opt: Add -Wtrampolines.
13887 * doc/invoke.texi: Add -Wtrampolines.
13888
13889 2010-07-15 Jie Zhang <jie@codesourcery.com>
13890
13891 * config/arm/cortex-a8.md (cortex_a8_load_store_2): Reserve
13892 cortex_a8_issue_ls.
13893
13894 2010-07-15 Dave Korn <dave.korn.cygwin@gmail.com>
13895
13896 * config/i386/cygwin.h (LIBGCJ_SONAME): Update.
13897 * config/i386/mingw32.h (LIBGCJ_SONAME): Likewise.
13898
13899 2010-07-14 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13900
13901 * config/spu/spu.c (reg_names): Remove prototype.
13902 (call_used_regs): Likewise.
13903
13904 2010-07-14 Dave Korn <dave.korn.cygwin@gmail.com>
13905
13906 * config/i386/cygming-crtend.c (__FRAME_END__): Replace attribute
13907 "unused" with attribute "used".
13908 (__JCR_END__): Likewise.
13909 * config/i386/cygming-crtbegin.c (__EH_FRAME_BEGIN__): Add missing
13910 "used" attribute.
13911 (__JCR_LIST__): Replace attribute "unused" with attribute "used".
13912
13913 2010-07-14 Richard Guenther <rguenther@suse.de>
13914
13915 * lto-streamer-in.c (maybe_fixup_handled_component): Remove.
13916 (maybe_fixup_decls): Likewise.
13917 (input_gimple_stmt): Do not fixup anything.
13918 * lto-streamer-out.c (output_gimple_stmt): Make sure all
13919 non-automatic variable uses are wrapped inside a MEM_REF.
13920
13921 2010-07-14 Richard Henderson <rth@redhat.com>
13922
13923 * passes.c (rest_of_decl_compilation): Do not call assemble_variable
13924 for functions.
13925 * varasm.c (assemble_variable): Remove early exit for functions;
13926 assert that we're given a variable.
13927
13928 2010-07-14 Jie Zhang <jie@codesourcery.com>
13929
13930 * config/arm/cortex-a8.md (cortex_a8_alu): Don't use
13931 cortex_a8_default when neon_type is not none.
13932
13933 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
13934
13935 * lower-subreg.c (subreg_context): New static bitmap.
13936 (decompose_multiword_subregs): Allocate and free it.
13937 (find_decomposable_subregs): Set a bit in it for a register that
13938 occurs in a subreg that changes mode but not size.
13939 (can_decompose_p): Test it instead of non_decomposable_context.
13940
13941 2010-07-14 Richard Guenther <rguenther@suse.de>
13942
13943 PR tree-optimization/44824
13944 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Use
13945 is_gimple_mem_ref_addr.
13946 (tree_ssa_forward_propagate_single_use_vars): Do not propagate
13947 non-decl_address_invariant_p addresses.
13948
13949 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
13950
13951 * reload.c (find_reloads): Revert code to penalize small register
13952 classes that was brought in with the IRA merge.
13953
13954 2010-07-14 Richard Guenther <rguenther@suse.de>
13955
13956 * tree-ssa-ccp.c (fold_const_aggregate_ref): Handle MEM_REF
13957 as base of ARRAY_REFs.
13958
13959 2010-07-14 Richard Guenther <rguenther@suse.de>
13960
13961 PR middle-end/44930
13962 * tree-pretty-print.c (do_niy): Do not print a newline.
13963
13964 2010-07-14 Bernd Schmidt <bernds@codesourcery.com>
13965
13966 * ira-int.h (struct ira_object): New.
13967 (ira_object_t): New typedef. Add DEF_VEC_P and DEF_VEC_ALLOC_P for it.
13968 (struct ira_allocno): Remove members min, max,
13969 conflict_allocno_array, conflict_id, conflict_allocno_array_size,
13970 conflict_allocnos_num and conflict_vec_p. Add new member object.
13971 (OBJECT_CONFLICT_ARRAY, OBJECT_CONFLICT_VEC_P,
13972 OBJECT_NUM_CONFLICTS, OBJECT_CONFLICT_ARRAY_SIZE,
13973 OBJECT_CONFLICT_HARD_REGS, OBJECT_TOTAL_CONFLICT_HARD_REGS,
13974 OBJECT_MIN, OBJECT_MAX, OBJECT_CONFLICT_ID): Renamed from
13975 ALLOCNO_CONFLICT_ALLOCNO_ARRAY, ALLOCNO_CONFLICT_VEC_P,
13976 ALLOCNO_CONFLICT_ALLOCNOS_NUM, ALLOCNO_CONFLICT_ALLOCNO_ARRAY_SIZE,
13977 ALLOCNO_CONFLICT_HARD_REGS, ALLOCNO_TOTAL_CONFLICT_HARD_REGS)
13978 ALLOCNO_MIN, ALLOCNO_MAX, and ALLOCNO_CONFLICT_ID; now operate on
13979 an ira_object_t rather than ira_allocno_t. All uses changed.
13980 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
13981 contains a vector of ira_object_t; all uses changed.
13982 (ira_objects_num): Declare variable.
13983 (ira_create_allocno_object): Declare function.
13984 (ira_conflict_vector_profitable_p): Adjust prototype.
13985 (ira_allocate_conflict_vec): Renamed from
13986 ira_allocate_allocno_conflict_vec; first arg now ira_object_t.
13987 (ira_allocate_object_conflicts): Renamed from
13988 ira_allocate_allocno_conflicts; first arg now ira_object_t.
13989 (struct ira_object_iterator): New.
13990 (ira_object_iter_init, ira_object_iter_cond, FOR_EACH_OBJECT): New.
13991 (ira_allocno_conflict_iterator): Renamed member allocno_conflict_vec_p
13992 to conflict_vec_p. All uses changed.
13993 (ira_allocno_conflict_iter_init, ira_allocno_conflict_iter_cond):
13994 Changed to take into account that conflicts are now tracked for
13995 objects.
13996 * ira-conflicts.c (OBJECTS_CONFLICT_P): Renamed from CONFLICT_ALLOCNO_P.
13997 Args changed to accept ira_object_t. All uses changed.
13998 (allocnos_conflict_p): New static function.
13999 (collected_conflict_objects): Renamed from collected_allocno_objects;
14000 now a vector of ira_object_t. All uses changed.
14001 (build_conflict_bit_table): Changed to take into account that
14002 conflicts are now tracked for objects.
14003 (process_regs_for_copy, propagate_copies, build_allocno_conflicts)
14004 (print_allocno_conflicts, ira_build_conflicts): Likewise.
14005 * ira-color.c (assign_hard_reg, setup_allocno_available_regs_num)
14006 setup_allocno_left_conflicts_size, allocno_reload_assign,
14007 fast_allocation): Likewise.
14008 * ira-lives.c (make_hard_regno_born, make_allocno_born)
14009 process_single_reg_class_operands, process_bb_node_lives): Likewise.
14010 * ira-emit.c (modify_move_list, add_range_and_copies_from_move_list):
14011 Likewise.
14012 * ira-build.c (ira_objects_num): New variable.
14013 (ira_object_id_map): Renamed from ira_conflict_id_allocno_map; now
14014 contains a vector of ira_object_t; all uses changed.
14015 (ira_object_id_map_vec): Corresponding change.
14016 (object_pool): New static variable.
14017 (initiate_allocnos): Initialize it.
14018 (finish_allocnos): Free it.
14019 (ira_create_object, ira_create_allocno_object, create_allocno_objects):
14020 New functions.
14021 (ira_create_allocno): Don't set members that were removed.
14022 (ira_set_allocno_cover_class): Don't change conflict hard regs.
14023 (merge_hard_reg_conflicts): Changed to take into account that
14024 conflicts are now tracked for objects.
14025 (ira_conflict_vector_profitable_p, ira_allocate_conflict_vec,
14026 allocate_conflict_bit_vec, ira_allocate_object_conflicts,
14027 compress_conflict_vecs, remove_low_level_allocnos, ira_flattening,
14028 setup_min_max_allocno_live_range_point, allocno_range_compare_func,
14029 setup_min_max_conflict_allocno_ids, ): Likewise.
14030 (add_to_conflicts): Renamed from add_to_allocno_conflicts, args changed
14031 to ira_object_t; all callers changed.
14032 (ira_add_conflict): Renamed from ira_add_allocno_conflict, args changed
14033 to ira_object_t, all callers changed.
14034 (clear_conflicts): Renamed from clear_allocno_conflicts, arg changed
14035 to ira_object_t, all callers changed.
14036 (conflict_check, curr_conflict_check_tick): Renamed from
14037 allocno_conflict_check and curr_allocno_conflict_check_tick; all uses
14038 changed.
14039 (compress_conflict_vec): Renamed from compress_allocno_conflict_vec,
14040 arg changed to ira_object_t, all callers changed.
14041 (create_cap_allocno): Call ira_create_allocno_object.
14042 (finish_allocno): Free the corresponding object.
14043 (sort_conflict_id_map): Renamed from sort_conflict_id_allocno_map; all
14044 callers changed. Adjusted for dealing with objects.
14045 (ira_build): Call create_allocno_objects after ira_costs. Adjusted for
14046 dealing with objects.
14047 * ira.c (ira_bad_reload_regno_1): Adjusted for dealing with objects.
14048
14049 * ira-int.h (struct live_range): Rename allocno member to object
14050 and change type to ira_object_t.
14051 (struct ira_object): New member live_ranges.
14052 (struct ira_allocno): Remove member live_ranges.
14053 (ALLOCNO_LIVE_RANGES): Remove.
14054 (OBJECT_LIVE_RANGES): New macro.
14055 (ira_create_live_range, ira_copy_live_range_list,
14056 ira_merge_live_range_list, ira_live_ranges_intersect_p,
14057 ira_finish_live_range, ira_finish_live_range_list): Adjust declarations.
14058 * ira-build.c (ira_create_object): Initialize live ranges here.
14059 (ira_create_allocno): Not here.
14060 (ira_create_live_range): Rename from ira_create_allocno_live_range, arg
14061 changed to ira_object_t, all callers changed.
14062 (copy_live_range): Rename from copy_allocno_live_range, all callers
14063 changed.
14064 (ira_copy_live_range_list): Rename from
14065 ira_copy_allocno_live_range_list, all callers changed.
14066 (ira_merge_live_ranges): Rename from ira_merge_allocno_live_range_list,
14067 all callers changed.
14068 (ira_live_ranges_intersect_p): Rename from
14069 ira_allocno_live_ranges_intersect_p, all callers changed.
14070 (ira_finish_live_range): Rename from ira_finish_allocno_live_range, all
14071 callers changed.
14072 (ira_finish_live_range_list): Rename from
14073 ira_finish_allocno_live_range_list, all callers changed.
14074 (change_object_in_range_list): Rename from change_allocno_in_range_list,
14075 last arg changed to ira_object_t, all callers changed.
14076 (finish_allocno): Changed to expect live ranges in the allocno's object.
14077 (move_allocno_live_ranges, copy_allocno_live_ranges,
14078 update_bad_spill_attribute, setup_min_max_allocno_live_range_point,
14079 ira_flattening, ira_build): Likewise.
14080 * ira-color.c (allocnos_have_intersected_live_ranges_p,
14081 slot_coalesced_allocno_live_ranges_intersect,
14082 setup_slot_coalesced_allocno_live_ranges, fast_allocation): Likewise.
14083 * ira-conflicts.c (build_conflict_bit_table): Likewise.
14084 * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
14085 * ira-lives.c (make_allocno_born, update_allocno_pressure_excess_length,
14086 make_allocno_dead, create_start_finish_chains,
14087 remove_some_program_points_and_update_live_ranges,
14088 ira_debug_live_range_list): Likewise.
14089
14090 * ira-int.h (ira_object_conflict_iterator): Rename from
14091 ira_allocno_conflict_iterator.
14092 (ira_object_conflict_iter_init): Rename from
14093 ira_allocno_conflict_iter_init, second arg changed to
14094 * ira.c (check_allocation): Use FOR_EACH_OBJECT_CONFLICT rather than
14095 FOR_EACH_ALLOCNO_CONFLICT.
14096 * ira-color.c (assign_hard_reg, push_allocno_to_stack)
14097 setup_allocno_left_conflicts_size, coalesced_allocno_conflict_p,
14098 ira_reassign_conflict_allocnos, ira_reassign_pseudos): Likewise.
14099 * ira-conflicts.c (print_allocno_conflicts): Likewise.
14100
14101 2010-07-13 Joern Rennecke <joern.rennecke@embecosm.com>
14102
14103 PR other/44874
14104 * tree-dump.c (dump_options): Add enumerate_locals entry.
14105 Add TDF_NOID exclusion to all entry.
14106 * tree-dump.h (dump_enumerated_decls): Declare.
14107 * tree-pretty-print.c (dump_generic_node): For TDF_NOID,
14108 Don't display type uid.
14109 (print_declaration): Don't crash on TREE_TYPE (t) == 0.
14110 * tree-pass.h (TDF_ENUMERATE_LOCALS): Define.
14111 * tree-ssa-live.c: Include gimple.h.
14112 (numbered_tree_d): New struct.
14113 (numbered_tree): New typedef.
14114 (DEF_VEC_O (numbered_tree): New.
14115 (DEF_VEC_ALLOC_O (numbered_tree, heap)): Likewise.
14116 (compare_decls_by_uid, dump_enumerated_decls_push): New functions.
14117 (dump_enumerated_decls): Likewise.
14118 * tree-optimize.c (execute_cleanup_cfg_post_optimizing): If comparing
14119 debug info and flag_dump_final_insns, call dump_enumerated_decls.
14120 * tree-cfg.c (dump_function_to_file): Call dump_enumerated_decls.
14121 * Makefile.in (tree-ssa-live.o): Depend on $(GIMPLE_H).
14122
14123 2010-07-13 Richard Sandiford <rdsandiford@googlemail.com>
14124
14125 * expmed.h (MAX_BITS_PER_WORD): Move to...
14126 * defaults.h (MAX_BITS_PER_WORD): ...here.
14127
14128 2010-07-13 DJ Delorie <dj@redhat.com>
14129
14130 * config/h8300/h8300.c (h8300_init_once): Default to
14131 -fstrict_volatile_bitfields.
14132
14133 * config/sh/sh.c (sh_override_options): Default to
14134 -fstrict_volatile_bitfields.
14135
14136 * config/rx/rx.c (rx_option_override): New.
14137
14138 * config/m32c/m32c.c (m32c_override_options): Default to
14139 -fstrict_volatile_bitfields.
14140
14141 2010-07-13 Nathan Froyd <froydnj@codesourcery.com>
14142
14143 * tree.h (build_function_call_expr): Delete.
14144 (build_call_expr_loc_array): New function.
14145 (build_call_expr_loc_vec): New function.
14146 * tree-flow.h (struct omp_region): Change type of ws_args field
14147 to a VEC.
14148 * builtins.c (build_function_call_expr): Delete.
14149 (build_call_expr_loc_array): New function.
14150 (build_call_expr_loc): Call it. Use XALLOCAVEC.
14151 (build_call_expr): Likewise.
14152 (build_call_expr_loc_vec): New function.
14153 * cgraphunit.c (build_cdtor): Call build_call_expr instead of
14154 build_function_call_expr.
14155 * expr.c (emutls_var_address): Likewise.
14156 * varasm.c (emutls_common_1): Likewise.
14157 * omp-low.c (expand_omp_atomic_mutex): Likewise.
14158 (expand_omp_taskreg): Adjust for new type of region->ws_args.
14159 (get_ws_args_for): Return a VEC instead of a tree.
14160 (expand_parallel_call): Call build_call_expr_loc_vec instead of
14161 build_function_call_expr.
14162 * stor-layout.c (self_referential_size): Likewise.
14163
14164 2010-07-13 Jakub Jelinek <jakub@redhat.com>
14165
14166 PR testsuite/44701
14167 * recog.c (constrain_operands): Allow side-effects in memory
14168 operands if either < or > constraint is used, rather than if
14169 both < and > is used.
14170
14171 2010-07-13 Richard Guenther <rguenther@suse.de>
14172
14173 PR middle-end/44911
14174 * tree-pretty-print.c (dump_generic_node): Use TDF_SLIM for
14175 MEM_REF pointer type dumping. Avoid recursing for TYPE_DECLs
14176 without name.
14177
14178 2010-07-13 Kaz Kojima <kkojima@gcc.gnu.org>
14179
14180 PR target/44761
14181 * mode-switching.c (optimize_mode_switching): Add ATTRIBUTE_UNUSED
14182 to variable emited.
14183 * config/sh/sh.c (sh_expand_epilogue): Remove unused variable.
14184 * config/sh/sh.md (symGOT_load): Likewise.
14185 (symDTPOFF2reg): Likewise.
14186 (symTPOFF2reg): Likewise.
14187
14188 2010-07-13 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14189
14190 * expmed.c (MAX_BITS_PER_WORD): Moved to expmed.h.
14191 * expmed.h (MAX_BITS_PER_WORD): Moved from expmed.c.
14192
14193 2010-07-13 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14194
14195 * config/i386/sol2-unwind.h (x86_64_fallback_frame_state): Correct
14196 explanation.
14197 Find ucontext_t * on Solaris 11.
14198 (x86_fallback_frame_state): Handle Solaris 9 multi-threaded pattern.
14199 Handle new Solaris 11 __sighndlr patterns.
14200
14201 2010-07-13 Jakub Jelinek <jakub@redhat.com>
14202
14203 PR debug/44901
14204 * vec.h (VEC_block_remove): Fix comment.
14205 * tree-ssa-live.c (remove_unused_locals): Don't use
14206 VEC_unordered_remove on local_decls, instead replace a single
14207 vector element in each iteration if at least one element had
14208 to be removed and VEC_truncate at the end.
14209 * omp-low.c (expand_omp_taskreg): Likewise.
14210
14211 2010-07-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
14212
14213 * c-decl.c (finish_function): Fix typo in comment.
14214
14215 2010-07-12 H.J. Lu <hongjiu.lu@intel.com>
14216
14217 PR bootstrap/44921
14218 * postreload.c (move2add_use_add3_insn): Silence gcc warning
14219 on min_regno.
14220
14221 2010-07-12 Jakub Jelinek <jakub@redhat.com>
14222
14223 * tree-vrp.c (simplify_bit_ops_using_ranges): New function.
14224 (simplify_stmt_using_ranges): Use it.
14225
14226 2010-07-12 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14227
14228 * config/spu/spu.h (struct spu_builtin_description): Remove FNDECL
14229 member. Do not mark as GTY(()).
14230 * config/spu/spu.c (spu_builtins): Remove FNDECL initializer elements.
14231 (spu_builtin_decls): New static variable.
14232 (spu_builtin_decl): Use it instead of spu_builtins[].fndecl.
14233 (spu_init_builtins): Likewise.
14234 (spu_builtin_mul_widen_even): Likewise.
14235 (spu_builtin_mul_widen_odd): Likewise.
14236 (spu_builtin_mask_for_load): Likewise.
14237 (spu_builtin_vec_perm): Likewise.
14238 * config/spu/spu-c.c: Include "target.h".
14239 (spu_resolve_overloaded_builtin): Call targetm.builtin_decl instead
14240 of using spu_builtins[].fndecl.
14241
14242 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14243
14244 * config/mips/mips.c (mips_override_options): Make -mflip-mips16
14245 imply -minterlink-mips16.
14246
14247 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14248
14249 * config/mips/mips.h (mips16_globals): Declare.
14250 (SWITCHABLE_TARGET): Define.
14251 * config/mips/mips.c: Include target-globals.h.
14252 (mips16_globals): New variable.
14253 (mips_set_mips16_mode): Use save_target_globals and
14254 restore_target_globals instead of target_reinit.
14255
14256 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14257
14258 * reginfo.c (init_reg_sets): Don't zero globals here. Update comment
14259 to say that the function can be called more than once.
14260 * target-globals.c (save_target_globals): Call init_reg_sets.
14261
14262 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14263
14264 * Makefile.in (bb-reorder.o, target-globals.o): Depend on bb-reorder.h
14265 * bb-reorder.h: New file.
14266 * bb-reorder.c (default_target_bb_reorder): New variable.
14267 (this_target_bb_reorder): New conditional variable.
14268 (uncond_jump_length): Redefine as a macro.
14269 * target-globals.h (this_target_bb_reorder): Declare.
14270 (target_globals): Add a bb_reorder field.
14271 (restore_target_globals): Copy the bb_reorder field to
14272 this_target_bb-reorder.
14273 * target-globals.c: Include bb-reorder.h.
14274 (default_target_globals): Initialize the bb_reorder field.
14275 (save_target_globals): Likewise.
14276
14277 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14278
14279 * Makefile.in (gcse.o, target-globals.o): Depend on gcse.h..
14280 * gcse.h: New file.
14281 * gcse.c: Include gcse.h.
14282 (default_target_gcse): New variable.
14283 (this_target_gcse): New conditional variable.
14284 (can_copy): Redefine as a macro.
14285 (can_copy_init_p): New macro.
14286 (can_copy_p): Remove can_copy_init_p.
14287 * target-globals.h (this_target_gcse): Declare.
14288 (target_globals): Add a gcse field.
14289 (restore_target_globals): Copy the gcse field to this_target_gcse.
14290 * target-globals.c: Include gcse.h.
14291 (default_target_globals): Initialize the gcse field.
14292 (save_target_globals): Likewise.
14293
14294 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14295
14296 * ira-int.h (target_ira_int): Add x_ira_prohibited_mode_move_regs
14297 and x_ira_prohibited_mode_move_regs_initialized_p.
14298 (ira_prohibited_mode_move_regs): Redefine as a macro.
14299 * ira.c (ira_prohibited_mode_move_regs): Delete.
14300 (ira_prohibited_mode_move_regs_initialized_p): Redefine as a macro.
14301
14302 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14303
14304 * reload.h (target_reload): Add x_cached_reg_save_code and
14305 x_cached_reg_restore_code.
14306 * caller-save.c (cached_reg_save_code, cached_reg_restore_code):
14307 Redefine as macros.
14308
14309 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14310
14311 * Makefile.in (target-globals.o): Depend on builtins.h.
14312 * builtins.h: New file.
14313 * builtins.c: Include builtins.h.
14314 (default_target_builtins): New variable.
14315 (this_target_builtins): New conditional variable.
14316 (apply_args_mode, apply_result_mode): Redefine as macros.
14317 * target-globals.h (this_target_builtins): Declare.
14318 (target_globals): Add a builtins field.
14319 (restore_target_globals): Copy the builtins field to
14320 this_target_builtins.
14321 * target-globals.c: Include builtins.h.
14322 (default_target_globals): Initialize the builtins field.
14323 (save_target_globals): Likewise.
14324
14325 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14326
14327 * expmed.h (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST)
14328 (algorithm, alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved
14329 from expmed.c.
14330 (target_expmed): Add x_alg_hash and x_alg_hash_used_p.
14331 (alg_hash, alg_hash_used_p): New macros.
14332 * expmed.c (init_expmed): Clear alg_hash if reinitializing.
14333 (alg_code, mult_cost, MULT_COST_LESS, CHEAPER_MULT_COST, algorithm)
14334 (alg_hash_entry, NUM_ALG_HASH_ENTRIES, alg_hash): Moved to expmed.h.
14335
14336 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14337
14338 * ira-int.h (target_ira_int): Add x_max_struct_costs_size, x_init_cost,
14339 x_temp_costs, x_op_costs, x_this_op_costs and x_cost_classes.
14340 * ira-costs.c (max_struct_costs_size, init_cost, temp_costs, op_costs)
14341 (this_op_costs, costs_classes): Redefine as macros.
14342 (record_reg_classes): Don't take op_costs as a parameter.
14343 (record_operand_costs): Likewise. Update calls to record_reg_classes.
14344 (scan_one_insn): Update call to record_operand_costs.
14345
14346 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14347
14348 * Makefile.in (target-globals.o): Depend on $(IRA_INT_H).
14349 * ira-int.h (ira_max_nregs, ira_important_class_nums): Delete.
14350 (target_ira_int): New structure.
14351 (default_target_ira_int): Declare.
14352 (this_target_ira_int): Declare as a variable or define as a macro.
14353 (ira_reg_mode_hard_regset, ira_register_move_cost)
14354 (ira_may_move_in_cost, ira_may_move_out_cost, ira_class_subset_p)
14355 (ira_non_ordered_class_hard_regs, ira_class_hard_reg_index)
14356 (prohibited_class_mode_regs, ira_important_classes_num)
14357 (ira_important_classes, ira_reg_class_intersect)
14358 (ira_reg_classes_intersect_p, ira_reg_class_super_classes)
14359 (ira_reg_class_union): Redefine as macros.
14360 * ira.h (target_ira): New structure.
14361 (default_target_ira): Declare.
14362 (this_target_ira): Declare as a variable or define as a macro.
14363 (ira_available_class_regs, ira_hard_regno_cover_class)
14364 (ira_reg_class_cover_size, ira_reg_class_cover, ira_class_translate)
14365 (ira_reg_class_nregs, ira_memory_move_cost, ira_class_hard_regs)
14366 (ira_class_hard_regs_num): Redefine as macros.
14367 * ira.c (default_target_ira, default_target_ira_int): New variables.
14368 (this_target_ira, this_target_ira_int): New conditional variables.
14369 (ira_reg_mode_hard_regset, ira_memory_move_cost)
14370 (ira_register_move_cost, ira_may_move_in_cost, ira_may_move_out_cost)
14371 (ira_class_subset_p): Delete.
14372 (no_unit_alloc_regs): Redefine as a macro.
14373 (ira_class_hard_regs, ira_non_ordered_class_hard_regs)
14374 (ira_class_hard_regs_num, ira_class_hard_reg_index)
14375 (ira_available_class_regs): Delete.
14376 (alloc_reg_class_subclasses): Redefine as a macro.
14377 (ira_reg_class_cover_size, ira_reg_class_cover)
14378 (ira_important_classes_num, ira_important_classes)
14379 (ira_important_class_nums, ira_class_translate): Delete.
14380 (cover_class_order): Document the variable's lifetime.
14381 (reorder_important_classes): Don't set ira_important_class_nums.
14382 (ira_reg_class_intersect, ira_reg_classes_intersect_p)
14383 (ira_reg_class_super_classes, ira_reg_class_union)
14384 (ira_hard_regno_cover_class, ira_reg_class_nregs, ira_max_nregs):
14385 Delete.
14386 (setup_reg_class_nregs): Don't set ira_max_regs.
14387 (prohibited_class_mode_regs): Delete.
14388 * target-globals.h (this_target_ira, this_target_ira_int): Declare.
14389 (target_globals): Add ira and ira_int fields.
14390 (restore_target_globals): Copy the ira field to this_target_ira
14391 and the ira_int field to this_target_ira_int.
14392 * target-globals.c: Include ira-int.h.
14393 (default_target_globals): Initialize the ira and ira_int fields.
14394 (save_target_globals): Likewise.
14395
14396 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14397
14398 * Makefile.in (target-globals.o): Depend on $(CFGLOOP_H).
14399 * cfgloop.h (target_cfgloop): New structure.
14400 (default_target_cfgloop): Declare.
14401 (this_target_cfgloop): Declare as a variable or define as a macro.
14402 (target_avail_regs, target_clobbered_regs, target_res_regs)
14403 (target_reg_cost, target_spill_cost): Redefine as macros.
14404 * cfgloopanal.c (default_target_cfgloop): New variable.
14405 (this_target_cfgloop): New conditional variable.
14406 (target_avail_regs, target_clobbered_regs, target_res_regs)
14407 (target_reg_cost, target_spill_cost): Delete.
14408 * target-globals.h (this_target_cfgloop): Declare.
14409 (target_globals): Add a cfgloop field.
14410 (restore_target_globals): Copy the cfgloop field to
14411 this_target_cfgloop.
14412 * target-globals.c: Include cfgloop.h.
14413 (default_target_globals): Initialize the cfgloop field.
14414 (save_target_globals): Likewise.
14415
14416 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14417
14418 * regs.h (target_regs): Add x_direct_load, x_direct_store and
14419 x_float_extend_from_mem.
14420 (direct_load, direct_store, float_extend_from_mem): New macros.
14421 * expr.c (direct_load, direct_store, float_extend_from_mem): Delete.
14422
14423 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14424
14425 * Makefile.in (LIBFUNCS_H): Add $(HASHTAB_H).
14426 (target-globals.o): Depend on $(LIBFUNCS_H).
14427 * libfuncs.h: Include hashtab.h.
14428 (libfunc_entry): Moved from optabs.c.
14429 (target_libfuncs): New structure.
14430 (default_target_libfuncs): Declare.
14431 (this_target_libfuncs): Declare as a variable or define as a macro.
14432 (libfunc_table): Redefine as a macro.
14433 * optabs.c (default_target_libfuncs): New variable.
14434 (this_target_libfuncs): New conditional variable.
14435 (libfunc_table): Delete.
14436 (libfunc_entry): Moved to optabs.h.
14437 (libfunc_hash): Redefine as a macro.
14438 (hash_libfunc, eq_libfunc): Fix comments.
14439 (init_optabs): Use libfunc_hash to detect cases where the function
14440 has already been called. Clear the hash table instead of
14441 recreating it.
14442 * target-globals.h (this_target_libfuncs): Declare.
14443 (target_globals): Add a libfuncs field.
14444 (restore_target_globals): Copy the libfuncs field to
14445 this_target_libfuncs.
14446 * target-globals.c: Include libfuncs.h.
14447 (default_target_globals): Initialize the libfuncs field.
14448 (save_target_globals): Likewise.
14449
14450 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14451
14452 * Makefile.in (LIBFUNCS_H): New variable. Use instead of libfuncs.h
14453 in all dependency lists.
14454
14455 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14456
14457 * Makefile.in (target-globals.o): Depend on $(EXPR_H) and $(OPTABS_H).
14458 * optabs.h (target_optabs): New structure.
14459 (default_target_optabs): Declare.
14460 (this_target_optabs): Declare as a variable or define as a macro.
14461 (optab_table, convert_optab_table, direct_optab_table): Redefine
14462 as macros.
14463 * optabs.c (default_target_optabs): New variable.
14464 (this_target_optabs): New conditional variable.
14465 (optab_table, convert_optab_table, direct_optab_table): Delete.
14466 * target-globals.h (this_target_optabs): Declare.
14467 (target_globals): Add a optabs field.
14468 (restore_target_globals): Copy the optabs field to
14469 this_target_optabs.
14470 * target-globals.c: Include expr.h and optabs.h.
14471 (default_target_globals): Initialize the optabs field.
14472 (save_target_globals): Likewise.
14473
14474 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14475
14476 * flags.h (target_flagstate): Add x_flag_excess_precision.
14477 (flag_excess_precision): Redefine as a macro.
14478 * toplev.c (flag_excess_precision): Delete.
14479
14480 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14481
14482 * defaults.h (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Define if not defined.
14483 * libgcc2.c (MIN_UNITS_PER_WORD): Delete.
14484 * hard-reg-set.h (target_hard_regs): Add x_no_caller_save_reg_set.
14485 (no_caller_save_reg_set): Redefine as a macro.
14486 * reload.h (target_reload): Add x_caller_save_initialized_p and
14487 x_regno_save_mode.
14488 (caller_save_initialized_p): Redefine as a macro.
14489 * caller-save.c (caller_save_initialized_p, no_caller_save_reg_set)
14490 (MAX_MOVE_MAX, MIN_UNITS_PER_WORD): Delete.
14491 (regno_save_mode): Redefine as a macro.
14492
14493 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14494
14495 * Makefile.in (expmed.o, target-globals.o): Depend on expmed.h.
14496 * expmed.h: New file.
14497 * expmed.c (default_target_costs): New variable.
14498 (this_target_costs): New conditional variable.
14499 (sdiv_pow2_cheap, smod_pow2_cheap, zero_cost, add_cost, neg_cost)
14500 (shift_cost, shiftadd_cost, shiftsub0_cost, shiftsub1_cost, mul_cost)
14501 (sdiv_cost, udiv_cost, mul_widen_cost, mul_highpart_cost): Delete.
14502 * target-globals.h (this_target_expmed): Declare.
14503 (target_globals): Add a expmed field.
14504 (restore_target_globals): Copy the expmed field to
14505 this_target_expmed.
14506 * target-globals.c: Include expmed.h.
14507 (default_target_globals): Initialize the expmed field.
14508 (save_target_globals): Likewise.
14509
14510 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14511
14512 * Makefile.in (target-globals.o): Depend on reload.h.
14513 * reload.h (target_reload): New structure.
14514 (default_target_reload): Declare.
14515 (this_target_reload): Declare as a variable or define as a macro.
14516 (indirect_symref_ok, double_reg_address_ok): Redefine as macros.
14517 * reload1.c (default_target_reload): New variable
14518 (this_target_reload): New conditional variable.
14519 (indirect_symref_ok, double_reg_address_ok): Delete.
14520 (spill_indirect_levels): Redefine as a macro.
14521 * target-globals.h (this_target_reload): Declare.
14522 (target_globals): Add a reload field.
14523 (restore_target_globals): Copy the reload field to
14524 this_target_reload.
14525 * target-globals.c: Include hard-reg-set.h.
14526 (default_target_globals): Initialize the reload field.
14527 (save_target_globals): Likewise.
14528
14529 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14530
14531 * rtl.h (target_rtl): Add x_static_reg_base_value.
14532 * alias.c (static_reg_base_value): Redefine as a macro.
14533
14534 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14535
14536 * Makefile.in (reginfo.o): Don't depend on $(GGC_H) or gt-reginfo.h.
14537 (GTFILES): Remove reginfo.c.
14538 * rtl.h (target_rtl): Add x_top_of_stack.
14539 (top_of_stack): New macro.
14540 * reginfo.c: Don't include ggc.h or gt-reginfo.h.
14541 (top_of_stack): Delete.
14542
14543 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14544
14545 * regs.h (target_regs): Add x_hard_regs_of_mode,
14546 x_contains_reg_of_mode, x_move_cost, x_may_move_in_cost,
14547 x_may_move_out_cost and x_last_mode_for_init_move_cost.
14548 (have_regs_of_mode, contains_reg_of_mode, move_cost)
14549 (may_move_in_cost, may_move_out_cost): Redefine as macros.
14550 * reginfo.c (have_regs_of_mode, contains_reg_of_mode, move_cost)
14551 (may_move_in_cost, may_move_out_cost): Delete.
14552 (last_mode_for_init_move_cost): Redefine as a macro.
14553
14554 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14555
14556 * hard-reg-set.h (target_hard_regs): New structure.
14557 (default_target_hard_regs): Declare.
14558 (this_target_hard_regs): Declare as a variable or define as a macro.
14559 (fixed_regs, fixed_reg_set, call_used_regs, call_really_used_regs)
14560 (call_used_reg_set, call_fixed_reg_set, regs_invalidated_by_call)
14561 (reg_alloc_order, inv_reg_alloc_order, reg_class_contents)
14562 (reg_class_size, reg_class_subclasses, reg_class_subunion)
14563 (reg_class_superunion, reg_names): Redefine as macros.
14564 * reginfo.c (fixed_regs, fixed_reg_set, call_used_regs)
14565 (call_used_reg_set, call_really_used_regs, call_fixed_reg_set)
14566 (regs_invalidated_by_call, reg_alloc_order, inv_reg_alloc_order)
14567 (reg_class_contents, reg_class_size, reg_class_subclasses)
14568 (reg_class_subunion, reg_class_superunion, reg_names): Delete.
14569 (default_target_hard_regs): New variable
14570 (this_target_hard_regs, initial_call_really_used_regs)
14571 (initial_reg_alloc_order): New conditional variables.
14572 (initial_reg_names): New variable.
14573 (init_reg_sets): Assert that initial_call_really_used_regs,
14574 initial_reg_alloc_order and initial_reg_names
14575 are all the same size as their variable counterparts. Use them to
14576 initialize those counterparts.
14577 * target-globals.h (this_target_hard_regs): Declare.
14578 (target_globals): Add a hard_regs field.
14579 (restore_target_globals): Copy the hard_regs field to
14580 this_target_hard_regs.
14581 * target-globals.c: Include hard-reg-set.h.
14582 (default_target_globals): Initialize the hard_regs field.
14583 (save_target_globals): Likewise.
14584
14585 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14586
14587 * Makefile.in (target-globals.o): Depend on $(RTL_H).
14588 * rtl.h (target_rtl): New structure.
14589 (default_target_rtl): Declare.
14590 (this_target_rtl): Declare as a variable or define as a macro.
14591 (global_rtl, pic_offset_table_rtx, return_address_pointer_rtx):
14592 Redefine as macros.
14593 * emit-rtl.c (default_target_rtl): New variable.
14594 (this_target_rtl): New conditional variable.
14595 (global_rtl, static_regno_reg_rtx, pic_offset_table_rtx)
14596 (return_address_pointer_rtx): Delete.
14597 (initial_regno_reg_rtx): New macro.
14598 (init_emit): Use initial_regno_reg_rtx instead of static_regno_reg_rtx.
14599 (init_emit_regs): Likewise.
14600 * target-globals.h (this_target_rtl): Declare.
14601 (target_globals): Add a rtl field.
14602 (restore_target_globals): Copy the rtl field to this_target_rtl.
14603 * target-globals.c: Include rtl.h.
14604 (default_target_globals): Initialize the rtl field.
14605 (save_target_globals): Likewise.
14606
14607 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14608
14609 * Makefile.in (target-globals.o): Depend on $(REGS_H).
14610 * regs.h (target_reg_modes): New structure.
14611 (default_target_reg_modes): Declare.
14612 (this_target_reg_modes): Declare as a variable or define as a macro.
14613 (hard_regno_nregs, reg_raw_mode): Redefine as macros.
14614 * reginfo.c (default_target_reg_modes): New variable.
14615 (this_target_reg_modes): New conditional variable.
14616 (hard_regno_nregs, reg_raw_mode): Delete.
14617 * target-globals.h (this_target_regs): Declare.
14618 (target_globals): Add a regs field.
14619 (restore_target_globals): Copy the regs field to this_target_regs.
14620 * target-globals.c: Include regs.h.
14621 (default_target_globals): Initialize the regs field.
14622 (save_target_globals): Likewise.
14623
14624 2010-07-12 Richard Sandiford <rdsandiford@googlemail.com>
14625
14626 * doc/tm.texi.in (SWITCHABLE_TARGET): Document.
14627 * doc/tm.texi: Regenerate.
14628 * Makefile.in (OBJS-common): Add target-globals.o.
14629 (gtype-desc.o): Depend on $(IPA_PROP_H), $(LTO_STREAMER_H)
14630 and target-globals.h.
14631 (target-globals.o): New rule.
14632 (GTFILES): Include $(srcdir)/target-globals.h.
14633 * defaults.h (SWITCHABLE_TARGET): Define.
14634 * gengtype.c (open_base_files): Add target-globals.h to the
14635 list of includes.
14636 * target-globals.h: New file.
14637 * target-globals.c: Likewise.
14638
14639 * Makefile.in (target-globals.o): Depend on $(FLAGS_H).
14640 * flags.h (target_flag_state): New structure.
14641 (default_target_flag_state): Declare.
14642 (this_target_flag_state): Declare as a variable or define as a macro.
14643 (align_loops_log): Redefine as a macro.
14644 (align_loops_max_skip, align_jumps_log): Likewise.
14645 (align_jumps_max_skip, align_labels_log): Likewise.
14646 (align_labels_max_skip, align_functions_log): Likewise.
14647 * toplev.c (default_target_flag_state): New variable.
14648 (this_target_flag_state): New conditional variable.
14649 (align_loops_log): Delete.
14650 (align_loops_max_skip, align_jumps_log): Likewise.
14651 (align_jumps_max_skip, align_labels_log): Likewise.
14652 (align_labels_max_skip, align_functions_log): Likewise.
14653 * target-globals.h (this_target_flag_state): Declare.
14654 (target_globals): Add a flag_state field.
14655 (restore_target_globals): Copy the flag_state field to
14656 this_target_flag_state.
14657 * target-globals.c: Include flags.h.
14658 (default_target_globals): Initialize the flag_state field.
14659 (save_target_globals): Likewise.
14660
14661 2010-07-12 Jie Zhang <jie@codesourcery.com>
14662
14663 * postreload.c (reg_symbol_ref[]): New.
14664 (move2add_use_add2_insn): New.
14665 (move2add_use_add3_insn): New.
14666 (reload_cse_move2add): Handle SYMBOL + OFFSET case.
14667 (move2add_note_store): Likewise.
14668
14669 2010-07-12 Joern Rennecke <joern.rennecke@embecosm.com>
14670
14671 PR rtl-optimization/44752
14672 * genautomata.c (main): Don't emit an empty file even if there
14673 is no automaton.
14674
14675 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14676
14677 * config/i386/i386.c (ix86_sol10_return_in_memory): Rename to
14678 ix86_solaris_return_in_memory.
14679 * config/i386-protos.h: Reflect this.
14680 * config/i386/vx-common.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
14681 * config/i386/sol2-10.h (SUBTARGET_RETURN_IN_MEMORY): Likewise.
14682 Move ...
14683 * config/i386/sol2.h (SUBTARGET_RETURN_IN_MEMORY): ... here.
14684
14685 2010-07-12 Jie Zhang <jie@codesourcery.com>
14686
14687 * config/arm/arm.c (arm_get_frame_offsets): Don't use r3 to
14688 align the stack when it's going to be saved.
14689
14690 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14691
14692 PR pch/14940
14693 * config/host-solaris.c (mmap_fixed): New function.
14694 (sol_gt_pch_get_address): Use it.
14695 (sol_gt_pch_use_address): Likewise.
14696
14697 2010-07-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14698
14699 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
14700 pentiumpro on Solaris 8 and 9/x86.
14701 * doc/install.texi (Specific, i?86-*-solaris2.[89]): Recommend GNU as.
14702 Document SSE/SSE2 support.
14703 * doc/sourcebuild.texi (Effective-Target Keywords): Document sse.
14704
14705 2010-07-12 Andi Kleen <ak@linux.intel.com>
14706
14707 * lto-symtab.c (lto_symtab_merge_decls_1): Use fatal_error
14708 instead of gcc_assert to print better error message for multiple
14709 prevailing defs.
14710
14711 2010-07-12 Uros Bizjak <ubizjak@gmail.com>
14712
14713 * config/i386/i386.c (ix86_asm_output_function_label): Change format
14714 string placeholder from 0x%x to %#x.
14715 (ix86_code_end): Use putc to output '\n'.
14716 (ix86_print_operand) <case ';'>: Use putc to output ';'.
14717
14718 2010-07-11 Kai Tietz <kai.tietz@onevision.com>
14719
14720 * config/i386/winnt.c (i386_pe_file_end): Quote symbol name
14721 in directive -export.
14722
14723 2010-07-10 Anatoly Sokolov <aesok@post.ru>
14724
14725 * reginfo.h (reg_classes_intersect_p): Change arguments type to
14726 reg_class_t.
14727 * rtl.h (reg_classes_intersect_p): Adjust prototype.
14728
14729 * config/rs6000/rs6000.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST):
14730 Remove macros.
14731 * config/rs6000/rs6000-protos.h (rs6000_register_move_cost,
14732 rs6000_memory_move_cost): Remove
14733 * config/rs6000/rs6000.c (TARGET_REGISTER_MOVE_COST,
14734 TARGET_MEMORY_MOVE_COST): Define.
14735 (rs6000_register_move_cost): Make static. Change arguments type from
14736 enum reg_class to reg_class_t. Adjust rs6000_memory_move_cost calls.
14737 (rs6000_memory_move_cost): Make static. Change arguments type from
14738 'enum reg_class' to reg_class_t.
14739
14740 2010-07-10 Sandra Loosemore <sandra@codesourcery.com>
14741
14742 PR middle-end/42505
14743 * tree-inline.c (estimate_num_insns): Refactor builtin complexity
14744 lookup code into....
14745 * builtins.c (is_simple_builtin, is_inexpensive_builtin): ...these
14746 new functions.
14747 * tree.h (is_simple_builtin, is_inexpensive_builtin): Declare.
14748 * cfgloopanal.c (target_clobbered_regs): Define.
14749 (init_set_costs): Initialize target_clobbered_regs.
14750 (estimate_reg_pressure_cost): Add call_p argument. When true,
14751 adjust the number of available registers to exclude the
14752 call-clobbered registers.
14753 * cfgloop.h (target_clobbered_regs): Declare.
14754 (estimate_reg_pressure_cost): Adjust declaration.
14755 * tree-ssa-loop-ivopts.c (struct ivopts_data): Add body_includes_call.
14756 (ivopts_global_cost_for_size): Pass it to estimate_reg_pressure_cost.
14757 (determine_set_costs): Dump target_clobbered_regs.
14758 (loop_body_includes_call): New function.
14759 (tree_ssa_iv_optimize_loop): Use it to initialize new field.
14760 * loop-invariant.c (gain_for_invariant): Adjust arguments to pass
14761 call_p flag through.
14762 (best_gain_for_invariant): Likewise.
14763 (find_invariants_to_move): Likewise.
14764 (move_single_loop_invariants): Likewise, using already-computed
14765 has_call field.
14766
14767 2010-07-10 Richard Guenther <rguenther@suse.de>
14768 Joern Rennecke <joern.rennecke@embecosm.com>
14769
14770 PR debug/44832
14771 * tree-ssa-live.c (mark_all_vars_used_1): Set TREE_USED for LABEL_DECL.
14772 (remove_unused_scope_block_p): Don't drop TREE_USED LABEL_DECLs
14773 unless they have DECL_IGNORED_P set.
14774
14775 2010-07-10 Richard Guenther <rguenther@suse.de>
14776
14777 PR lto/44889
14778 * gimple.c (gimple_fixup_complete_and_incomplete_subtype_p): New
14779 helper function.
14780 (gimple_types_compatible_p): Similar to pointed-to
14781 types allow and merge a mix of complete and incomplete aggregate.
14782 Use gimple_fixup_complete_and_incomplete_subtype_p for that.
14783 (iterative_hash_gimple_type): Adjust for that.
14784
14785 2010-07-10 Richard Sandiford <r.sandiford@uk.ibm.com>
14786
14787 * tree.h (DECL_REPLACEABLE_P): Strengthen check for weak symbols.
14788
14789 2010-07-10 Iain Sandoe <iains@gcc.gnu.org>
14790
14791 PR objc/44140
14792 * config/darwin.c (output_objc_section_asm_op): Save and restore
14793 section when outputting ObjC section list.
14794
14795 2010-07-09 Jan Hubicka <jh@suse.cz>
14796
14797 * lto-streamer-out.c (produce_symtab): Do not write alias
14798 cgraph/varpool nodes.
14799
14800 2010-07-09 Jan Hubicka <jh@suse.cz>
14801
14802 * tree-inline.c (declare_return_variable): Fix ICE while
14803 inlining DECL_BY_VALUE function not in SSA form
14804
14805 2010-07-09 Changpeng Fang <changpeng.fang@amd.com>
14806
14807 PR tree-optimization/44576
14808 * tree-ssa-loop-prefetch.c (trip_count_to_ahead_ratio_too_small_p):
14809 New. Pull out from is_loop_prefetching_profitable to implement
14810 the trip count to ahead ratio heuristic.
14811 (mem_ref_count_reasonable_p): New. Pull out from
14812 is_loop_prefetching_profitable to implement the instruction to
14813 memory reference ratio heuristic. Also consider not reasonable if
14814 the memory reference count is above a threshold (to avoid
14815 explosive compilation time.
14816 (insn_to_prefetch_ratio_too_small_p): New. Pull out from
14817 is_loop_prefetching_profitable to implement the instruction to
14818 prefetch ratio heuristic.
14819 (is_loop_prefetching_profitable): Removed.
14820 (loop_prefetch_arrays): Distribute the cost analysis across the
14821 function to allow early exit of the prefetch analysis.
14822 is_loop_prefetching_profitable is splitted into three functions,
14823 with each one called as early as possible.
14824 (PREFETCH_MAX_MEM_REFS_PER_LOOP): New. Threshold above which the
14825 number of memory references in a loop is considered too many.
14826
14827 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
14828
14829 * reload.c (find_reloads): Don't clear badop if we have a winreg
14830 alternative, but not win, and the class only has fixed regs.
14831 * hard-reg-set.h (class_only_fixed_regs): Declare.
14832 * reginfo.c (class_only_fixed_regs): New array.
14833 (init_reg_sets_1): Initialize it.
14834 * config/arm/arm.md (arm_addsi3, thumb1_addsi3, arm_subsi3_insn): Don't
14835 discourage alternatives using the stack pointer.
14836
14837 * config/arm/arm.md (addsi3_cbranch): Switch alternatives 0 and 1.
14838
14839 * config/arm/arm.md (Thumb-1 ldrsb peephole): New.
14840
14841 * config/arm/arm.md (cbranchqi4): Fix array size.
14842 (addsi3_cbranch): Also andle alternative 2 like alternative 3 when
14843 calculating length.
14844
14845 2010-07-09 Richard Guenther <rguenther@suse.de>
14846
14847 * gimple.c (struct type_fixup_s): New struct and VEC type.
14848 (gimple_register_type_fixups): New static global.
14849 (gimple_queue_type_fixup): New function.
14850 (gimple_types_compatible_p): Queue type fixups instead of
14851 applying them here.
14852 (gimple_register_type): Apply queued fixups for the
14853 canonical type. Empty the type fixup queue.
14854
14855 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
14856
14857 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Fix test.
14858 * configure: Regenerate.
14859 * config.in: Ditto.
14860
14861 2010-07-09 Jakub Jelinek <jakub@redhat.com>
14862 Denys Vlasenko <dvlasenk@redhat.com>
14863 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14864
14865 PR tree-optimization/28632
14866 * tree-vrp.c (zero_nonzero_bits_from_vr): New function.
14867 (extract_range_from_binary_expr): Further optimize
14868 BIT_AND_EXPR and BIT_IOR_EXPR.
14869
14870 2010-07-09 Sebastian Pop <sebastian.pop@amd.com>
14871
14872 * tree-if-conv.c (fold_or_predicates): New.
14873 (add_to_predicate_list): Call it.
14874
14875 2010-07-09 Richard Guenther <rguenther@suse.de>
14876
14877 PR middle-end/44890
14878 * tree-ssa-address.c (create_mem_ref_raw): Only build a MEM_REF
14879 if base is a pointer.
14880 * tree-cfg.c (verify_expr): Update MEM_REF checking.
14881
14882 2010-07-08 Michael Meissner <meissner@linux.vnet.ibm.com>
14883
14884 PR target/44877
14885 * config/rs6000/rs6000.c (rs6000_expand_builtin): Use
14886 POINTER_TYPE_P instead of checking only for POINTER_TYPE for the
14887 builtin mask for load/store builtins.
14888
14889 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
14890
14891 * configure.ac (gcc_cv_as_ix86_rep_lock_prefix): Also check
14892 for "lock addl".
14893 * configure: Regenerate.
14894 * config/i386/i386.c (ix86_print_operand) <case ';'>:
14895 Remove TARGET_MACHO.
14896
14897 2010-07-09 Peter Bergner <bergner@vnet.ibm.com>
14898
14899 * config/rs6000/rs6000.c (rs6000_override_options): Fix setting of
14900 default ISA flags.
14901 * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -mvsx.
14902
14903 2010-07-09 Tom de Vries <tjvries@xs4all.nl>
14904
14905 * tree.c (type_hash_if_marked_p): Removed non-ggc_marked_p clause.
14906
14907 2010-07-09 Hariharan Sandanagobalane <hariharan@picochip.com>
14908
14909 * config/picochip/picochip.md (commsTestPort): Emit more
14910 efficient sequence for tstport instruction.
14911
14912 2010-07-09 Uros Bizjak <ubizjak@gmail.com>
14913
14914 * config/i386/i386.c (ix86_veclib_handler): Make static.
14915
14916 2010-07-09 Richard Guenther <rguenther@suse.de>
14917
14918 PR tree-optimization/44852
14919 * tree-ssa-alias.c: Include toplev.h for exact_log2.
14920 (indirect_ref_may_alias_decl_p): Properly handle negative offsets
14921 in MEM_REF.
14922 (indirect_refs_may_alias_p): Likewise.
14923 * Makefile.in (tree-ssa-alias.o): Add $(TOPLEV_H).
14924
14925 2010-07-09 Richard Guenther <rguenther@suse.de>
14926
14927 PR tree-optimization/44882
14928 * tree-vect-stmts.c (vectorizable_store): Do not assert alias
14929 sets do conflict.
14930 (vectorizable_load): Likewise.
14931
14932 2010-07-09 Bernd Schmidt <bernds@codesourcery.com>
14933
14934 PR target/40657
14935 * config/arm/arm.c (thumb1_extra_regs_pushed): New arg FOR_PROLOGUE.
14936 All callers changed.
14937 Handle the case when we're called for the epilogue.
14938 (thumb_unexpanded_epilogue): Use it.
14939 (thumb1_expand_epilogue): Likewise.
14940
14941 2010-07-09 Jakub Jelinek <jakub@redhat.com>
14942
14943 * tree-vrp.c (extract_range_from_binary_expr) <BIT_AND_EXPR>: If
14944 both ranges are range_int_cst_p with non-negative minimum,
14945 try harder to derive smaller range.
14946
14947 2010-07-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
14948
14949 * genrecog.c: Include diagnostic-core.h before toplev.h.
14950 * genoutput.c: Likewise.
14951 * genextract.c: Likewise.
14952 * genautomata.c: Likewise.
14953 * genemit.c: Likewise.
14954 * genpeep.c: Likewise.
14955 * genattrtab.c: Likewise.
14956 * genconditions.c: Likewise.
14957 * genpreds.c: Likewise.
14958
14959 2010-07-08 Andi Kleen <ak@linux.intel.com>
14960
14961 * lto-section-in.c (lto_section_name): Add missing comma.
14962
14963 2010-07-08 Anatoly Sokolov <aesok@post.ru>
14964
14965 * config/ia64/ia64.h (OVERRIDE_OPTIONS): Remove macros.
14966 * config/ia64/ia64-protos.h (ia64_override_options): Remove.
14967 * config/ia64/ia64.c (TARGET_OPTION_OVERRIDE): Define.
14968 (ia64_override_options): Rename to...
14969 (ia64_option_override): ... this one. Make static.
14970
14971 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
14972
14973 PR middle-end/44843
14974 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not rely on the
14975 pointed-to type of the offset in a MEM_REF to compute the alignment.
14976
14977 2010-07-08 Kai Tietz <kai.tietz@onevision.com>
14978
14979 * final.c (final_scan_insn): Replace
14980 TARGET_UNWIND_INFO macro check by unwind_emit
14981 hook NULL check.
14982 * targhooks.c (default_unwind_emit): Removed.
14983 * targhooks.h (default_unwind_emit): Likewise.
14984 * target.def (unwind_emit): Set default value to NULL.
14985
14986 * config/i386/i386-protos.h (ix86_asm_output_function_label):
14987 New prototype.
14988 * config/i386/i386.c (ix86_function_ms_hook_prologue): Check
14989 for NULL fntype argument and allow 64-bit targets.
14990 (ix86_asm_output_function_label): New function.
14991 (ix86_expand_prologue): Handle 64-bit ms hook prologue.
14992 (ix86_handle_fndecl_attribute): Likewise.
14993 * doc/extend.texi (ms_hook_prologue): Adjust documentation.
14994 * doc/doc/tm.texi: Regenerated.
14995 * doc/doc/doc/tm.texi.in (ASM_OUTPUT_FUNCTION_LABEL): New.
14996 (ASM_DECLARE_FUNCTION_NAME): Adjust documentation.
14997 * defaults.h (ASM_OUTPUT_FUNCTION_LABEL): New macro.
14998 * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use
14999 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
15000 * config/elfos.h: Likewise.
15001 * config/i386/cygming.h: Likewise.
15002 * config/netbsd-aout.h: Likewise.
15003 * config/openbsd.h: Likewise.
15004 * config/i386/i386.h (ASM_OUTPUT_FUNCTION_LABEL): Override
15005 by ix86_asm_output_function_label function call.
15006 * varasm.c (assemble_start_function): Use
15007 ASM_OUTPUT_FUNCTION_LABEL instead of ASM_OUTPUT_LABEL.
15008
15009 2010-07-08 Jan Hubicka <jh@suse.cz>
15010
15011 * cgraph.c (cgraph_will_be_removed_from_program_if_no_direct_calls):
15012 New function.
15013 * cgraph.h (cgraph_will_be_removed_from_program_if_no_direct_calls):
15014 Declare.
15015 * ipa-cp.c (ipcp_estimate_growth): Use it.
15016 * ipa-inline.c (cgraph_estimate_growth, cgraph_decide_inlining):
15017 Likewise.
15018
15019 2010-07-08 Jan Hubicka <jh@suse.cz>
15020
15021 * tree-inline.c (declare_return_variable): Allocate annotation for new
15022 temporary.
15023
15024 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
15025
15026 PR tree-optimization/44710
15027 * tree-if-conv.c (parse_predicate): New.
15028 (add_to_predicate_list): Call it, call maybe_fold_or_comparisons.
15029 Make sure that the predicates are either SSA_NAMEs or gimple_condexpr.
15030
15031 2010-07-08 Sebastian Pop <sebastian.pop@amd.com>
15032
15033 * common.opt (ftree-loop-if-convert): New flag.
15034 * doc/invoke.texi (ftree-loop-if-convert): Documented.
15035 * tree-if-conv.c (gate_tree_if_conversion): Enable if-conversion
15036 when flag_tree_loop_if_convert is set.
15037
15038 2010-07-08 Uros Bizjak <ubizjak@gmail.com>
15039
15040 * config/i386/i386.c: Use short syntax for function calls
15041 through function pointers.
15042 * config/i386/i386.md: Ditto.
15043
15044 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
15045
15046 * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix formatting issues.
15047
15048 2010-07-08 Richard Guenther <rguenther@suse.de>
15049
15050 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Fix
15051 stmt check for POINTER_PLUS_EXPRs, fix the pointer assignment.
15052
15053 2010-07-08 Jakub Jelinek <jakub@redhat.com>
15054
15055 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_const[48]u
15056 instead of DW_OP_addr for DW_OP_GNU_push_tls_address operand.
15057 (loc_list_from_tree): Likewise.
15058 (output_loc_operands): Handle outputting DW_OP_const[48]u
15059 with loc->dtprel set.
15060 (resolve_addr_in_expr): Handle loc->dtprel like DW_OP_addr.
15061
15062 2010-07-08 Jan Hubicka <jh@suse.cz>
15063
15064 * ipa.c: Include pointer-set.h
15065 (cgraph_externally_visible_p): New attribute ALIASED;
15066 when in LTO, hidden symbols are local unless they are aliased.
15067 (function_and_variable_visibility): Compute aliased nodes;
15068 handle LTO and hidden symbol on functions and vars.
15069 * cgraph.c (cgraph_make_decl_local): Clear NAMED_SECTION
15070 for COMDAT symbols; handle COMDAT_GROUPS also at vars.
15071
15072 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
15073
15074 * config/i386/cygming.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
15075 * config/i386/freebsd.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15076 * config/i386/linux.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15077 * config/i386/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15078 * config/i386/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
15079 * config/i386/i386.c (ix86_gen_adjust_stack_and_probe): New variable.
15080 (ix86_gen_probe_stack_range): Likewise.
15081 (override_options): Set them.
15082 (ix86_target_stack_probe): New function.
15083 (ix86_compute_frame_layout): Force use of push instructions to
15084 save registers if stack checking with probes is enabled.
15085 (get_scratch_register_on_entry): New function.
15086 (release_scratch_register_on_entry): Likewise.
15087 (ix86_adjust_stack_and_probe): Likewise.
15088 (output_adjust_stack_and_probe): Likewise.
15089 (ix86_emit_probe_stack_range): Likewise.
15090 (output_probe_stack_range): Likewise.
15091 (ix86_expand_prologue): Emit stack checking code if static built-in
15092 stack checking is enabled.
15093 Test ix86_target_stack_probe instead of TARGET_STACK_PROBE.
15094 * config/i386/i386-protos.h (ix86_target_stack_probe): Declare.
15095 (output_adjust_stack_and_probe): Likewise.
15096 (output_probe_stack_range): Likewise.
15097 * config/i386/i386.md (UNSPECV_PROBE_STACK_RANGE): New constant.
15098 (allocate_stack_worker_32): Test ix86_target_stack_probe instead of
15099 TARGET_STACK_PROBE.
15100 (allocate_stack_worker_64): Likewise.
15101 (allocate_stack): Likewise.
15102 (adjust_stack_and_probe): New insn.
15103 (probe_stack_range): Likewise.
15104
15105 2010-07-08 Richard Guenther <rguenther@suse.de>
15106
15107 PR tree-optimization/44831
15108 * tree-ssa-phiprop.c (phiprop_insert_phi): Properly build
15109 a MEM_REF preserving TBAA info of the original dereference.
15110 Dereference the original pointer if the address is not invariant.
15111 (propagate_with_phi): Fixup type checks wrt MEM_REFs. Require
15112 at least one invariant address that we are going to dereference.
15113
15114 2010-07-08 Richard Guenther <rguenther@suse.de>
15115
15116 PR tree-optimization/44861
15117 * tree-vect-stmts.c (vectorizable_store): Preserve TBAA
15118 information when building MEM_REFs.
15119 (vectorizable_load): Likewise.
15120 * tree-vect-data-refs.c (vect_setup_realignment): Likewise.
15121
15122 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
15123
15124 * config/sol2-c.c: Do not include diagnostic-core.h.
15125
15126 2010-07-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15127
15128 PR bootstrap/44768
15129 * cfgexpand.c (estimated_stack_frame_size): Make self-contained
15130 with respect to current_function_decl. Pass decl of the function.
15131 * tree-inline.h (estimated_stack_frame_size): Adjust prototype.
15132 * ipa-inline.c (compute_inline_parameters): Pass decl to
15133 estimated_stack_frame_size.
15134
15135 2010-07-08 Richard Guenther <rguenther@suse.de>
15136
15137 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
15138 New function.
15139 (valueize_refs): Call it.
15140
15141 2010-07-08 Richard Guenther <rguenther@suse.de>
15142
15143 PR rtl-optimization/44838
15144 * tree-ssa-alias.c (indirect_refs_may_alias_p): When not in
15145 SSA form do not use pointer equivalence.
15146
15147 2010-07-08 Eric Botcazou <ebotcazou@adacore.com>
15148
15149 * dwarf2out.c (AT_linkage_name): Delete.
15150 (add_linkage_attr): New function.
15151 (add_linkage_name): Call it to emit the linkage attribute.
15152 (dwarf2out_finish): Likewise.
15153 (move_linkage_attr): Explicitly accept both attribute variants.
15154
15155 2010-07-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
15156
15157 * toplev.h: Do not include diagnostic-core.h.
15158 Include diagnostic-core.h in every file that includes toplev.h.
15159 * c-tree.h: Do not include toplev.h.
15160 * pretty-print.h: Update comment.
15161 * Makefile.in: Update dependencies.
15162 * alias.c: Include diagnostic-core.h in every file that includes
15163 toplev.h.
15164 * attribs.c: Likewise.
15165 * auto-inc-dec.c: Likewise.
15166 * bb-reorder.c: Likewise.
15167 * bt-load.c: Likewise.
15168 * caller-save.c: Likewise.
15169 * calls.c: Likewise.
15170 * cfg.c: Likewise.
15171 * cfganal.c: Likewise.
15172 * cfgbuild.c: Likewise.
15173 * cfgcleanup.c: Likewise.
15174 * cfghooks.c: Likewise.
15175 * cfgloop.c: Likewise.
15176 * combine.c: Likewise.
15177 * config/alpha/alpha.c: Likewise.
15178 * config/arc/arc.c: Likewise.
15179 * config/arm/arm.c: Likewise.
15180 * config/arm/pe.c: Likewise.
15181 * config/avr/avr.c: Likewise.
15182 * config/bfin/bfin.c: Likewise.
15183 * config/cris/cris.c: Likewise.
15184 * config/crx/crx.c: Likewise.
15185 * config/darwin-c.c: Likewise.
15186 * config/darwin.c: Likewise.
15187 * config/fr30/fr30.c: Likewise.
15188 * config/frv/frv.c: Likewise.
15189 * config/h8300/h8300.c: Likewise.
15190 * config/host-darwin.c: Likewise.
15191 * config/i386/i386.c: Likewise.
15192 * config/i386/netware.c: Likewise.
15193 * config/i386/nwld.c: Likewise.
15194 * config/i386/winnt-cxx.c: Likewise.
15195 * config/i386/winnt-stubs.c: Likewise.
15196 * config/i386/winnt.c: Likewise.
15197 * config/ia64/ia64-c.c: Likewise.
15198 * config/ia64/ia64.c: Likewise.
15199 * config/iq2000/iq2000.c: Likewise.
15200 * config/lm32/lm32.c: Likewise.
15201 * config/m32c/m32c-pragma.c: Likewise.
15202 * config/m32c/m32c.c: Likewise.
15203 * config/m32r/m32r.c: Likewise.
15204 * config/m68hc11/m68hc11.c: Likewise.
15205 * config/m68k/m68k.c: Likewise.
15206 * config/mcore/mcore.c: Likewise.
15207 * config/mep/mep-pragma.c: Likewise.
15208 * config/mep/mep.c: Likewise.
15209 * config/mmix/mmix.c: Likewise.
15210 * config/mn10300/mn10300.c: Likewise.
15211 * config/moxie/moxie.c: Likewise.
15212 * config/pa/pa.c: Likewise.
15213 * config/pdp11/pdp11.c: Likewise.
15214 * config/picochip/picochip.c: Likewise.
15215 * config/rs6000/rs6000-c.c: Likewise.
15216 * config/rs6000/rs6000.c: Likewise.
15217 * config/rx/rx.c: Likewise.
15218 * config/s390/s390.c: Likewise.
15219 * config/score/score.c: Likewise.
15220 * config/score/score3.c: Likewise.
15221 * config/score/score7.c: Likewise.
15222 * config/sh/sh.c: Likewise.
15223 * config/sh/symbian-base.c: Likewise.
15224 * config/sh/symbian-c.c: Likewise.
15225 * config/sh/symbian-cxx.c: Likewise.
15226 * config/sol2-c.c: Likewise.
15227 * config/sol2.c: Likewise.
15228 * config/sparc/sparc.c: Likewise.
15229 * config/spu/spu.c: Likewise.
15230 * config/stormy16/stormy16.c: Likewise.
15231 * config/v850/v850-c.c: Likewise.
15232 * config/v850/v850.c: Likewise.
15233 * config/vax/vax.c: Likewise.
15234 * config/vxworks.c: Likewise.
15235 * config/xtensa/xtensa.c: Likewise.
15236 * convert.c: Likewise.
15237 * cse.c: Likewise.
15238 * cselib.c: Likewise.
15239 * dbgcnt.c: Likewise.
15240 * dbxout.c: Likewise.
15241 * ddg.c: Likewise.
15242 * dominance.c: Likewise.
15243 * emit-rtl.c: Likewise.
15244 * explow.c: Likewise.
15245 * expmed.c: Likewise.
15246 * fixed-value.c: Likewise.
15247 * fold-const.c: Likewise.
15248 * fwprop.c: Likewise.
15249 * gcse.c: Likewise.
15250 * ggc-common.c: Likewise.
15251 * ggc-page.c: Likewise.
15252 * ggc-zone.c: Likewise.
15253 * gimple-low.c: Likewise.
15254 * gimplify.c: Likewise.
15255 * graph.c: Likewise.
15256 * haifa-sched.c: Likewise.
15257 * ifcvt.c: Likewise.
15258 * implicit-zee.c: Likewise.
15259 * integrate.c: Likewise.
15260 * ira-build.c: Likewise.
15261 * ira-color.c: Likewise.
15262 * ira-conflicts.c: Likewise.
15263 * ira-costs.c: Likewise.
15264 * ira-lives.c: Likewise.
15265 * ira.c: Likewise.
15266 * lists.c: Likewise.
15267 * loop-doloop.c: Likewise.
15268 * loop-iv.c: Likewise.
15269 * lto-opts.c: Likewise.
15270 * lto-symtab.c: Likewise.
15271 * main.c: Likewise.
15272 * modulo-sched.c: Likewise.
15273 * optabs.c: Likewise.
15274 * params.c: Likewise.
15275 * plugin.c: Likewise.
15276 * postreload-gcse.c: Likewise.
15277 * postreload.c: Likewise.
15278 * predict.c: Likewise.
15279 * profile.c: Likewise.
15280 * real.c: Likewise.
15281 * regcprop.c: Likewise.
15282 * reginfo.c: Likewise.
15283 * regmove.c: Likewise.
15284 * reorg.c: Likewise.
15285 * resource.c: Likewise.
15286 * rtl.c: Likewise.
15287 * rtlanal.c: Likewise.
15288 * sched-deps.c: Likewise.
15289 * sched-ebb.c: Likewise.
15290 * sched-rgn.c: Likewise.
15291 * sdbout.c: Likewise.
15292 * sel-sched-dump.c: Likewise.
15293 * sel-sched-ir.c: Likewise.
15294 * simplify-rtx.c: Likewise.
15295 * stmt.c: Likewise.
15296 * stor-layout.c: Likewise.
15297 * store-motion.c: Likewise.
15298 * targhooks.c: Likewise.
15299 * tree-cfg.c: Likewise.
15300 * tree-cfgcleanup.c: Likewise.
15301 * tree-dump.c: Likewise.
15302 * tree-eh.c: Likewise.
15303 * tree-inline.c: Likewise.
15304 * tree-nomudflap.c: Likewise.
15305 * tree-object-size.c: Likewise.
15306 * tree-optimize.c: Likewise.
15307 * tree-outof-ssa.c: Likewise.
15308 * tree-phinodes.c: Likewise.
15309 * tree-profile.c: Likewise.
15310 * tree-ssa-ccp.c: Likewise.
15311 * tree-ssa-coalesce.c: Likewise.
15312 * tree-ssa-live.c: Likewise.
15313 * tree-ssa-loop-niter.c: Likewise.
15314 * tree-ssa-loop-prefetch.c: Likewise.
15315 * tree-ssa-loop.c: Likewise.
15316 * tree-ssa-structalias.c: Likewise.
15317 * tree-ssa-uninit.c: Likewise.
15318 * tree-ssa.c: Likewise.
15319 * tree-vect-data-refs.c: Likewise.
15320 * tree-vect-loop-manip.c: Likewise.
15321 * tree-vect-loop.c: Likewise.
15322 * tree-vect-patterns.c: Likewise.
15323 * tree-vect-stmts.c: Likewise.
15324 * tree-vrp.c: Likewise.
15325 * varasm.c: Likewise.
15326 * vec.c: Likewise.
15327 * web.c: Likewise.
15328 * xcoffout.c: Likewise.
15329
15330 2010-07-07 Richard Sandiford <rdsandiford@googlemail.com>
15331
15332 * gengtype.c (write_field_root): New function.
15333 (write_root): Use it.
15334
15335 2010-07-07 Wei Guozhi <carrot@google.com>
15336
15337 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
15338 of lowest bits to lshift/compare): Add a missing line.
15339
15340 2010-07-07 Wei Guozhi <carrot@google.com>
15341
15342 * config/arm/thumb2.md (peephole2 to convert zero_extract/compare
15343 of lowest bits to lshift/compare): New.
15344
15345 2010-07-07 Tom Tromey <tromey@redhat.com>
15346
15347 * doc/tm.texi: Update.
15348 * doc/tm.texi.in (SDB and DWARF) <TARGET_WANT_DEBUG_PUB_SECTIONS>:
15349 Add @hook.
15350 * target.def (want_debug_pub_sections): New hook.
15351 * config/darwin.h (TARGET_WANT_DEBUG_PUB_SECTIONS): Define.
15352 * dwarf2out.c (add_pubname_string): Check
15353 targetm.want_debug_pub_sections.
15354 (add_pubname): Likewise.
15355 (add_pubtype): Likewise.
15356
15357 2010-07-07 Jie Zhang <jie@codesourcery.com>
15358
15359 * genautomata.c (output_automata_list_min_issue_delay_code):
15360 Correctly decompress min_issue_delay.
15361
15362 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
15363
15364 PR rtl-optimization/44404
15365 * auto-inc-dec.c (find_inc): Avoid calling count_occurrences if
15366 possible, use reg_overlap_mentioned_p instead.
15367
15368 2010-07-07 Duncan Sands <baldrick@free.fr>
15369
15370 PR middle-end/41355
15371 * tree.c (build_function_type_skip_args): Copy the original type using
15372 build_distinct_type_copy rather than copy_node.
15373
15374 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
15375
15376 PR target/44850
15377 * config/i386/i386.c (ix86_function_ms_hook_prologue): Revert
15378 revision 161876.
15379 (ix86_expand_prologue): Likewise.
15380 (ix86_handle_fndecl_attribute): Likewise.
15381 (ix86_asm_declare_function_name): Likewise.
15382 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
15383 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
15384 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): Likewise.
15385 * config/i386/i386-protos.h (ix86_asm_declare_function_name): Likewise.
15386 * doc/extend.texi: Likewise.
15387
15388 2010-07-07 H.J. Lu <hongjiu.lu@intel.com>
15389
15390 PR target/44844
15391 * config/i386/i386.md (rdrand<mode>): Changed to expand to
15392 retry if the carry flag isn't valid.
15393 (rdrand<mode>_1): New.
15394
15395 2010-07-07 Richard Guenther <rguenther@suse.de>
15396
15397 PR middle-end/44790
15398 * expr.c (expand_expr_real_1): Go the POINTER_PLUS_EXPR path
15399 for expanding the constant offset for MEM_REFs.
15400
15401 2010-07-07 Richard Guenther <rguenther@suse.de>
15402
15403 * tree-ssa-propagate.h (valid_gimple_call_p): Remove.
15404 * tree-ssa-propagate.c (valid_gimple_call_p): Make static. Fix.
15405 * gimple.h (is_gimple_operand): Remove.
15406 * gimple.c (is_gimple_operand): Likewise.
15407 (walk_gimple_op): Fix wi->val_only setting for calls.
15408 * tree-cfg.c (verify_gimple_call): Fix argument validation.
15409 * tree-profile.c (tree_gen_ic_func_profiler): Do not create
15410 invalid gimple calls.
15411
15412 2010-07-06 Jan Hubicka <jh@suse.cz>
15413
15414 * lto-cgraph.c (output_cgraph): Add missing declaration.
15415
15416 2010-07-06 Jan Hubicka <jh@suse.cz>
15417
15418 * lto-cgraph.c (output_cgraph): Output toplevel asms only into first
15419 partition.
15420
15421 2010-07-06 Alexandre Oliva <aoliva@redhat.com>
15422
15423 * doc/gimple.texi (GIMPLE_DEBUG): Document.
15424 * doc/rtl.texi (Debug Information): New node.
15425 (NOTE_INSN_VAR_LOCATION): Document.
15426 (debug_insn): Likewise.
15427 * doc/generic.texi (DEBUG_EXPR_DECL): Document.
15428
15429 2010-07-07 Jan Hubicka <jh@suse.cz>
15430
15431 With parts by Richard Guenther.
15432
15433 PR middle-end/44813
15434 * tree-ssa-uninit.c (ssa_undefined_value_p): Result decl is defined
15435 for functions passed by reference.
15436 * tree.c (needs_to_live_in_memory): RESULT_DECL don't need to live
15437 in memory when passed by reference.
15438 * tree-ssa-ccp.c (get_default_value): Only VAR_DECL is undefined at
15439 beggining.
15440 * ipa-split.c (split_function): Cleanup way return value is passed;
15441 handle SSA DECL_BY_REFERENCE retvals.
15442 * tree-ssa.c (verify_def): Verify that RESULT_DECL is read only when
15443 DECL_BY_REFERENCE is set.
15444 * tree-ssa-structalias.c (get_constraint_for_ssa_var, get_fi_for_callee,
15445 find_what_p_points_to): Handle RESULT_DECL.
15446 * tree-inline.c (declare_return_variable): Get new entry_block argument;
15447 when passing by reference ensure that RESULT_DECL is gimple_val.
15448 (remap_gimple_op_r): Remap RESULT_DECL ssa name.
15449 (remap_gimple_stmt): Handle SSA DECL_BY_REFERENCE returns.
15450
15451 2010-07-07 Bernd Schmidt <bernds@codesourcery.com>
15452
15453 PR rtl-optimization/44787
15454 * config/arm/arm.md (arith_shiftsi): Allow stack pointer in operand 2.
15455 * config/arm/thumb2.md (thumb2_arith_shiftsi): Likewise.
15456
15457 2010-07-06 Jan Hubicka <jh@suse.cz>
15458
15459 * lto-symtab.c (lto_cgraph_replace_node): Handle aliases.
15460 (lto_symtab_resolve_can_prevail_p): Also alias of cgraph node
15461 with body can prevail.
15462 (lto_symtab_resolve_symbols): Use cgraph_get_node_or_alias.
15463 (lto_symtab_merge_cgraph_nodes_1): Do not remove nodes from aliases.
15464 * cgraph.c (cgraph_get_node_or_alias): New function.
15465 * cgraph.h (cgraph_get_node_or_alias): Declare.
15466
15467 2010-07-06 Kai Tietz <kai.tietz@onevision.com>
15468
15469 * config/i386/i386.c (ix86_function_ms_hook_prologue): Enable x64
15470 support.
15471 (ix86_expand_prologue): Likewise.
15472 (ix86_handle_fndecl_attribute): Likewise.
15473 (ix86_asm_declare_function_name): New function for
15474 ASM_DECLARE_FUNCTION_NAME.
15475 * config/i386/i386.h (ASM_DECLARE_FUNCTION_NAME): New macro.
15476 * config/i386/cygming.h (ASM_DECLARE_FUNCTION_NAME): Removed.
15477 (SUBTARGET_ASM_DECLARE_FUNCTION_NAME): New macro.
15478 * config/i386/i386-protos.h (ix86_asm_declare_function_name): New.
15479 * doc/extend.texi: Adjust documentation about ms_hook_prologue
15480 attribute.
15481
15482 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
15483
15484 * config/i386/i386.md (immediate_operand): New mode attribute.
15485
15486 (pro_epilogue_adjust_stack_<mode>_1): Macroize insn from
15487 pro_epilogue_adjust_stack and pro_epilogue_adjust_stack_rex64
15488 using P mode iterator.
15489 (pro_epilogue_adjust_stack_di_2): Rename from
15490 pro_epilogue_adjust_stack_rex64_2.
15491
15492 * config/i386/i386.c (pro_epilogue_adjust_stack): Update for rename.
15493
15494 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
15495
15496 * config/i386/i386.md (insv): Call gen_movdi_insv1 or gen_movsi_insv1
15497 through gen_mov_insv_1 function pointer.
15498 (fmod<mode>3): Call gen_truncxf<mode>2_i387_noop_unspec or
15499 gen_truncxf<mode>2 through gen_truncxf function pointer.
15500 (remainder<mode>3): Ditto.
15501 (cmpstrnsi): Rename cmp_insn function pointer to gen_cmp.
15502 (allocate_stack): Call gen_allocate_stack_worker_64 or
15503 gen_allocate_stack_worker_32 through gen_allocate_stack_worker
15504 function pointer.
15505 (probe_stack): Call gen_iordi3 or gen_iorsi3 through gen_ior3
15506 function pointer.
15507
15508 2010-07-06 Uros Bizjak <ubizjak@gmail.com>
15509
15510 * config/i386/i386.md (*add<mode>3_cconly_overflow): Use <g>
15511 operand constraint instead of <r><i>m.
15512
15513 2010-07-06 Richard Guenther <rguenther@suse.de>
15514
15515 PR middle-end/44828
15516 * convert.c (convert_to_integer): Watch out for overflowing
15517 MULT_EXPR as well.
15518
15519 2010-07-05 Jan Hubicka <jh@suse.cz>
15520
15521 * lto-streamer.c (write_symbol_vec): Rename to ...
15522 (write_symbol) ... this one; write only symbol given and when
15523 present in cache. Sanity check that what is defined is present
15524 in cgraph/varpool with body/finalized decl.
15525 (write_symbols_of_kind): Remove.
15526 (produce_symtab): Take outputblock and sets; use cgraph/varpool/alias
15527 pairs to produce symtab.
15528 (produce_asm_for_decls): Update call of produce_symtab; don't do so
15529 when doing WPA streaming.
15530
15531 2010-07-05 Jan Hubicka <jh@suse.cz>
15532
15533 * gimple-fold.c (gimple_fold_obj_type_ref_known_binfo): Check that
15534 function is still available to fold into.
15535
15536 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
15537
15538 * vec.h (FOR_EACH_VEC_ELT_REVERSE): New macro.
15539 * function.h (struct_function): Change type of local_decls field
15540 to a VEC.
15541 (add_local_decl): New function.
15542 (FOR_EACH_LOCAL_DECL): New macro.
15543 * cfgexpand.c (init_vars_expansion): Adjust for new type of
15544 cfun->local_decls.
15545 (estimated_stack_frame_size): Likewise.
15546 (expand_used_vars): Likewise.
15547 * cgraphbuild.c (build_cgraph_edges): Likewise.
15548 * function.c (instantiate_decls_1): Likewise.
15549 * ipa-struct-reorg.c (build_data_structure): Likewise.
15550 * ipa-type-escape.c (analyze_function): Likewise.
15551 * lto-streamer-in.c (input_function): Likewise.
15552 * lto-streamer-out.c (output_function): Likewise.
15553 * tree-ssa-live.c (remove_unused_locals): Likewise.
15554 * tree.c (free_lang_data_in_decl): Likewise.
15555 (find_decls_types_in_node): Likewise.
15556 * omp-low.c (remove_exit_barrier): Likewise.
15557 (expand_omp_taskreg): Likewise.
15558 (list2chain): Rename to...
15559 (vec2chain): ...this. Adjust.
15560 * cgraphunit.c (assemble_thunk): Call add_local_decl.
15561 * tree-cfg.c (replace_by_duplicate_decl): Likewise.
15562 * gimple-low.c (record_vars_into): Likewise.
15563 * tree-inline.c (remap_decls): Likewise.
15564 (declare_return_variable): Likewise.
15565 (declare_inline_vars): Likewise.
15566 (copy_forbidden): Adjust for new type of cfun->local_decls.
15567 (add_local_variables): New function.
15568 (expand_call_inline): Call it.
15569 (tree_function_versioning): Likewise.
15570
15571 2010-07-05 H.J. Lu <hongjiu.lu@intel.com>
15572
15573 AVX Programming Reference (June, 2010)
15574 * config/i386/cpuid.h (bit_F16C): New.
15575 (bit_RDRND): Likewise.
15576 (bit_FSGSBASE): Likewise.
15577
15578 * config/i386/i386-builtin-types.def: Add
15579 "DEF_FUNCTION_TYPE (UINT16)", function types for
15580 float16 <-> float conversions and
15581 "DEF_FUNCTION_TYPE (VOID, UINT64)".
15582
15583 * config/i386/i386-c.c (ix86_target_macros_internal): Support
15584 OPTION_MASK_ISA_FSGSBASE, OPTION_MASK_ISA_RDRND and
15585 OPTION_MASK_ISA_F16C.
15586
15587 * config/i386/i386.c (OPTION_MASK_ISA_FSGSBASE_SET): New.
15588 (OPTION_MASK_ISA_RDRND_SET): Likewise.
15589 (OPTION_MASK_ISA_F16C_SET): Likewise.
15590 (OPTION_MASK_ISA_FSGSBASE_UNSET): Likewise.
15591 (OPTION_MASK_ISA_RDRND_UNSET): Likewise.
15592 (OPTION_MASK_ISA_F16C_UNSET): Likewise.
15593 (OPTION_MASK_ISA_AVX_UNSET): Add OPTION_MASK_ISA_F16C_UNSET.
15594 (ix86_handle_option): Handle OPT_mfsgsbase, OPT_mrdrnd and OPT_mf16c.
15595 (ix86_target_string): Support -mfsgsbase, -mrdrnd and -mf16c.
15596 (pta_flags): Add PTA_FSGSBASE, PTA_RDRND and PTA_F16C.
15597 (override_options): Handle them.
15598 (ix86_valid_target_attribute_inner_p): Handle fsgsbase, rdrnd and f16c.
15599 (ix86_builtins): Add IX86_BUILTIN_RDFSBASE32,
15600 IX86_BUILTIN_RDFSBASE64, IX86_BUILTIN_RDGSBASE32,
15601 IX86_BUILTIN_RDGSBASE64, IX86_BUILTIN_WRFSBASE32,
15602 IX86_BUILTIN_WRFSBASE64, IX86_BUILTIN_WRGSBASE32,
15603 IX86_BUILTIN_WRGSBASE64, IX86_BUILTIN_RDRAND16,
15604 IX86_BUILTIN_RDRAND32, IX86_BUILTIN_RDRAND64,
15605 IX86_BUILTIN_CVTPH2PS, IX86_BUILTIN_CVTPH2PS256,
15606 IX86_BUILTIN_CVTPS2PH and IX86_BUILTIN_CVTPS2PH256.
15607 (bdesc_args): Likewise.
15608 (ix86_expand_args_builtin): Handle V8SF_FTYPE_V8HI,
15609 V4SF_FTYPE_V8HI, V8HI_FTYPE_V8SF_INT and V8HI_FTYPE_V4SF_INT.
15610 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_UINT64,
15611 VOID_FTYPE_UNSIGNED, UNSIGNED_FTYPE_VOID and UINT16_FTYPE_VOID.
15612 Handle non-memory store.
15613
15614 * config/i386/i386.h (TARGET_FSGSBASE): New.
15615 (TARGET_RDRND): Likewise.
15616 (TARGET_F12C): Likewise.
15617
15618 * config/i386/i386.md (UNSPEC_VCVTPH2PS): New.
15619 (UNSPEC_VCVTPS2PH): Likewise.
15620 (UNSPECV_RDFSBASE): Likewise.
15621 (UNSPECV_RDGSBASE): Likewise.
15622 (UNSPECV_WRFSBASE): Likewise.
15623 (UNSPECV_WRGSBASE): Likewise.
15624 (UNSPECV_RDRAND): Likewise.
15625 (rdfsbase<mode>): Likewise.
15626 (rdgsbase<mode>): Likewise.
15627 (wrfsbase<mode>): Likewise.
15628 (wrgsbase<mode>): Likewise.
15629 (rdrand<mode>): Likewise.
15630
15631 * config/i386/i386.opt: Add -mfsgsbase, -mrdrnd and -mf16c.
15632
15633 * config/i386/immintrin.h (_rdrand_u16): New.
15634 (_rdrand_u32): Likewise.
15635 (_readfsbase_u32): Likewise.
15636 (_readfsbase_u64): Likewise.
15637 (_readgsbase_u32): Likewise.
15638 (_readgsbase_u64): Likewise.
15639 (_writefsbase_u32): Likewise.
15640 (_writefsbase_u64): Likewise.
15641 (_writegsbase_u32): Likewise.
15642 (_writegsbase_u64): Likewise.
15643 (_rdrand_u64): Likewise.
15644 (_cvtsh_ss): Likewise.
15645 (_mm_cvtph_ps): Likewise.
15646 (_mm256_cvtph_ps): Likewise.
15647 (_cvtss_sh): Likewise.
15648 (_mm_cvtps_ph): Likewise.
15649 (_mm256_cvtps_ph): Likewise.
15650
15651 * config/i386/sse.md (vcvtph2ps): New.
15652 (*vcvtph2ps_load): Likewise.
15653 (vcvtph2ps256): Likewise.
15654 (vcvtps2ph): Likewise.
15655 (*vcvtps2ph): Likewise.
15656 (*vcvtps2ph_store): Likewise.
15657 (vcvtps2ph256): Likewise.
15658
15659 * doc/extend.texi: Document FSGSBASE and RDRND built-in functions.
15660
15661 * doc/invoke.texi: Document -mfsgsbase, -mrdrnd and -mf16c.
15662
15663 2010-07-05 Joern Rennecke <joern.rennecke@embecosm.com>
15664
15665 PR bootstrap/44512
15666 * genenums.c (main): Output include of insn-constants.h
15667 * Makefile.in (insn-enums.o): Depend on insn-constants.h.
15668
15669 2010-07-05 Uros Bizjak <ubizjak@gmail.com>
15670
15671 * config/i386/i386.c (ix86_gen_allocate_stack_worker): New.
15672 (override_options): Initialize it.
15673 (ix86_expand_prologue): Use it.
15674
15675 2010-07-05 Jakub Jelinek <jakub@redhat.com>
15676
15677 * tree-nrv.c (tree_nrv): Set DECL_VALUE_EXPR on found to result.
15678
15679 2010-07-05 Anatoly Sokolov <aesok@post.ru>
15680
15681 * double-int.h (fit_double_type): Remove declaration.
15682 * double-int.c (fit_double_type): Remove function.
15683 * tree.h (int_fits_type_p): Adjust prototype.
15684 * tree.c (int_fits_type_p): Return bool. Use double_int_fits_to_tree_p
15685 instead of fit_double_type.
15686 (build_int_cst_type): Use double_int_to_tree and shwi_to_double_int
15687 instead of fit_double_type and build_int_cst_wide.
15688 * builtins.c (): Use double_int_fits_to_tree_p and double_int_to_tree
15689 instead of fit_double_type and build_int_cst_wide.
15690 (fold_builtin_object_size): Use double_int_fits_to_tree_p instead
15691 of fit_double_type.
15692
15693 2010-07-05 Jan Hubicka <jh@suse.cz>
15694
15695 * cgraph.h (cgraph_node, cgraph_varpool_node): Update docmentation of
15696 in_other_partition.
15697 * lto-cgraph.c (referenced_from_other_partition_p,
15698 reachable_from_other_partition_p): Use in_other_partition flags.
15699 (output_node, output_varpool_node): COMDAT nodes always have private
15700 copies and thus are never used from other partition.
15701
15702 2010-07-05 Anatoly Sokolov <aesok@post.ru>
15703
15704 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
15705 * config/ia64/t-ia64 (ia64.o): Depend on reload.h.
15706 * config/ia64/ia64.c Include reload.h.
15707 (ia64_memory_move_cost): New function.
15708 (TARGET_MEMORY_MOVE_COST): Define.
15709 (ia64_register_move_cost): Replace MEMORY_MOVE_COST with
15710 memory_move_cost.
15711
15712 2010-07-05 Sandra Loosemore <sandra@codesourcery.com>
15713
15714 PR middle-end/42505
15715 * tree-ssa-loop-ivopts.c (determine_set_costs): Delete obsolete
15716 comments about cost model.
15717 (try_add_cand_for): Add second strategy for choosing initial set
15718 based on original IVs, controlled by ORIGINALP argument.
15719 (get_initial_solution): Add ORIGINALP argument.
15720 (find_optimal_iv_set_1): New function, split from find_optimal_iv_set.
15721 (find_optimal_iv_set): Try two different strategies for choosing
15722 the IV set, and return the one with lower cost.
15723
15724 2010-07-05 Richard Guenther <rguenther@suse.de>
15725
15726 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Copy alias info.
15727
15728 2010-07-05 Richard Guenther <rguenther@suse.de>
15729
15730 * tree.c (reference_alias_ptr_type): New function.
15731 * tree.h (reference_alias_ptr_type): Declare.
15732 * tree-ssa-loop-ivopts.c (copy_ref_info): Restructure to
15733 allow non-TARGET_MEM_REF new refs.
15734 (rewrite_use_address): Pass old alias pointer type to create_mem_ref.
15735 * tree-ssa-address.c (create_mem_ref_raw): Get alias pointer type.
15736 Build a MEM_REF instead of a TARGET_MEM_REF if possible.
15737 (create_mem_ref): Get alias pointer type. Adjust calls to
15738 create_mem_ref_raw.
15739 (maybe_fold_tmr): Likewise.
15740 * tree-flow.h (create_mem_ref): Adjust prototype.
15741
15742 2010-07-05 Jakub Jelinek <jakub@redhat.com>
15743
15744 PR c++/44808
15745 * gimplify.c (gimplify_modify_expr): Only SET_DECL_DEBUG_EXPR if
15746 *from_p is VAR_DECL.
15747
15748 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
15749
15750 * tree.h (build_call_list): Remove.
15751 * tree.c (build_call_list): Remove.
15752
15753 2010-07-05 Richard Guenther <rguenther@suse.de>
15754
15755 * double-int.h (double_int_sub): Declare.
15756 * double-int.c (double_int_sub): New function.
15757 * dwarf2out.c (field_byte_offset): Use it.
15758 * fixed-value.c (do_fixed_add): Likewise.
15759 (do_fixed_multiply): Likewise.
15760 (do_fixed_divide): Likewise.
15761 * tree-predcom.c (add_ref_to_chain): Likewise.
15762 (determine_roots_comp): Likewise.
15763 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
15764
15765 2010-07-05 Nathan Froyd <froydnj@codesourcery.com>
15766
15767 * vec.h (VEC_splice, VEC_safe_splice): New macros. Add function
15768 implementations.
15769
15770 2010-07-05 Bernd Schmidt <bernds@codesourcery.com>
15771
15772 * config/arm/arm.c (get_arm_condition_code): Remove CC_NOTBmode case.
15773 * arm-modes.def (CC_NOTB): Don't define.
15774 * config/arm/arm.md (arm_adddi3): Generate canonical RTL.
15775 (adddi_sesidi_di, adddi_zesidi_di): Likewise.
15776 (LTUGEU): New code_iterator.
15777 (cnb, optab): New corresponding code_attrs.
15778 (addsi3_carryin_<optab>): Renamed from addsi3_carryin. Change pattern
15779 to canonical form. Operands 1 and 2 are commutative. Parametrize
15780 using LTUGEU.
15781 (addsi3_carryin_shift_<optab>): Likewise.
15782 (addsi3_carryin_alt2_<optab>): Renamed from addsi3_carryin_alt2.
15783 Operands 1 and 2 are commutative. Parametrize using LTUGEU.
15784 (addsi3_carryin_alt1, addsi3_carryin_alt3): Remove.
15785 (subsi3_compare): Renamed from subsi3_compare0_c.
15786 Change CC_NOTB to CC.
15787 (arm_subsi3_insn): Allow constants for operand 0.
15788 (compare_scc peephole for eq case): New.
15789 (compare_scc splitters): Change CC_NOTB to CC.
15790
15791 2010-07-05 Richard Guenther <rguenther@suse.de>
15792
15793 * tree-ssa-loop-im.c (for_each_index): Do not handle
15794 ALIGN_INDIRECT_REF.
15795 (gen_lsm_tmp_name): Likewise.
15796 * tree-dump.c (dequeue_and_dump): Likewise.
15797 * tree-pretty-print.c (dump_generic_node): Likewise.
15798 (op_code_prio): Likewise.
15799 (op_symbol_code): Likewise.
15800 * tree.c (staticp): Likewise.
15801 (build1_stat): Likewise.
15802 * tree.h (INDIRECT_REF_P): Likewise.
15803 * fold-const.c (maybe_lvalue_p): Likewise.
15804 (operand_equal_p): Likewise.
15805 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
15806 (ao_ref_init_from_vn_reference): Likewise.
15807 * tree-ssa-loop-ivopts.c (idx_find_step): Likewise.
15808 (find_interesting_uses_address): Likewise.
15809 * dwarf2out.c (loc_list_from_tree): Likewise.
15810 * gimplify.c (gimplify_expr): Likewise.
15811 * tree-eh.c (tree_could_trap_p): Likewise.
15812 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
15813 * cfgexpand.c (expand_debug_expr): Likewise.
15814 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
15815 * tree-ssa-loop-prefetch.c (idx_analyze_ref): Likewise.
15816 * tree-cfg.c (verify_types_in_gimple_min_lval): Likewise.
15817 * config/rs6000/rs6000 (rs6000_check_sdmode): Likewise.
15818 * tree-ssa-operands.c (get_expr_operands): Likewise.
15819 * expr.c (safe_from_p): Likewise.
15820 (expand_expr_real_1): Likewise. TER BIT_AND_EXPRs into MEM_REFs.
15821 * tree-vect-data-refs.c (vect_setup_realignment): Build
15822 BIT_AND_EXPR and MEM_REF instead of ALIGN_INDIRECT_REF.
15823 * tree-vect-stmts.c (vectorizable_load): Likewise.
15824 * tree.def (ALIGN_INDIRECT_REF): Remove.
15825
15826 2010-07-05 Richard Guenther <rguenther@suse.de>
15827
15828 PR tree-optimization/44784
15829 * tree-ssa-pre.c (bitmap_find_leader): Fix dominance check
15830 for inserted stmts.
15831 (find_or_generate_expression): Fix SCCVN insertion check.
15832
15833 2010-07-05 Nathan Sidwell <nathan@codesourcery.com>
15834
15835 * config/rs6000/e500crtsavg64gprctr.asm: Correct done label name.
15836 * config/rs6000/e500crtsav64gprctr.asm: Likewise.
15837 * config/rs6000/e500crtres64gprctr.asm: Likewise. Add FUNC_END
15838 directives.
15839
15840 2010-07-05 Ira Rosen <irar@il.ibm.com>
15841
15842 * tree-vect-loop.c (vect_get_single_scalar_iteraion_cost): Skip
15843 statements that are not vectorized.
15844 * tree-vect-stmts.c (vect_get_load_cost): Update the value stored
15845 in INSIDE_COST.
15846
15847 2010-07-05 Mikael Pettersson <mikpe@it.uu.se>
15848
15849 PR bootstrap/44820
15850 * config/arm/arm.c (arm_attr_length_move_neon): Delete regno.
15851
15852 2010-07-05 Richard Guenther <rguenther@suse.de>
15853
15854 * tree-cfg.c (verify_gimple_return): Handle DECL_BY_REFERENCE
15855 RESULT_DECLs properly.
15856
15857 2010-07-04 H.J. Lu <hongjiu.lu@intel.com>
15858
15859 PR rtl-optimization/44695
15860 * config/i386/i386.md (extract_code): Removed.
15861 (<u>divmodqi4): Likewise.
15862 (divmodqi4): New.
15863 (udivmodqi4): Likewise.
15864 (divmodhiqi3): Change div/mod to HImode and extend operand 2 to HImode.
15865 (udivmodhiqi3): Likewise.
15866
15867 2010-07-04 Jan Hubicka <jh@suse.cz>
15868
15869 * lto-cgraph.c (input_edge): Do not care about resolution decisions.
15870
15871 2010-07-04 Jan Hubicka <jh@suse.cz>
15872
15873 * cgraphunit.c (init_cgraph): Only initialize dump file if it
15874 is not already initialized.
15875
15876 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
15877
15878 * optabs.h (reload_in_optab, reload_out_optab, code_to_optab)
15879 (vcond_gen_code, vcondu_gen_code, movmem_optab, setmem_optab)
15880 (cmpstr_optab, cmpstrn_optab, cmpmem_optab, sync_add_optab)
15881 (sync_sub_optab, sync_ior_optab, sync_and_optab, sync_xor_optab)
15882 (sync_nand_optab, sync_old_add_optab, sync_old_sub_optab)
15883 (sync_old_ior_optab, sync_old_and_optab, sync_old_xor_optab)
15884 (sync_old_nand_optab, sync_new_add_optab, sync_new_sub_optab)
15885 (sync_new_ior_optab, sync_new_and_optab, sync_new_xor_optab)
15886 (sync_new_nand_optab): Redefine as macros.
15887 (sync_compare_and_swap, sync_lock_test_and_set, sync_lock_release):
15888 Delete.
15889 (direct_optab_index): New enum.
15890 (direct_optab_d): New structure.
15891 (direct_optab): New typedef.
15892 (direct_optab_table): Declare.
15893 (direct_optab_handler, set_direct_optab_handler): New functions.
15894 (sync_compare_and_swap_optab, sync_lock_test_and_set_optab)
15895 (sync_lock_release_optab): New macros.
15896 * optabs.c (direct_optab_table): New variable.
15897 (movcc_gen_code, vcond_gen_code, vcondu_gen_code): Delete.
15898 (prepare_cmp_insn): Use direct_optab_handler for cmpmem_optab,
15899 cmpstr_optab and cmpstrn_optab.
15900 (emit_conditional_move): Likewise for movcc_optab.
15901 (can_conditionally_move_p): Likewise for movcc_gen_code.
15902 (init_insn_codes): Clear direct_optab_table.
15903 (init_optabs): Don't initialize the new "direct optabs" here.
15904 (get_vcond_icode): Use direct_optab_handler for vcondu_gen_code and
15905 vcond_gen_code.
15906 (expand_val_compare_and_swap): Likewise sync_compare_and_swap_optab.
15907 (expand_bool_compare_and_swap): Likewise sync_compare_and_swap_optab.
15908 (expand_compare_and_swap_loop): Likewise sync_compare_and_swap_optab.
15909 (expand_sync_operation): Likewise other sync_*_optabs.
15910 (expand_sync_fetch_operation): Likewise. Rename sync_compare_and_swap
15911 to sync_compare_and_swap_optab.
15912 (expand_sync_lock_test_and_set): Use direct_optab_handler for
15913 sync_lock_test_and_set and sync_compare_and_swap, adding "_optab"
15914 to the names of both.
15915 * builtins.c (expand_builtin_strcmp): Use direct_optab_handler for
15916 cmpstr_optab and cmpstrn_optab.
15917 (expand_builtin_lock_release): Likewise sync_lock_release.
15918 * expr.c (movmem_optab, setmem_optab, cmpstr_optab, cmpstrn_optab)
15919 (cmpmem_optab, sync_add_optab, sync_sub_optab, sync_ior_optab)
15920 (sync_and_optab, sync_xor_optab, sync_nand_optab, sync_old_add_optab)
15921 (sync_old_sub_optab, sync_old_ior_optab, sync_old_and_optab)
15922 (sync_old_xor_optab, sync_old_nand_optab, sync_new_add_optab)
15923 (sync_new_sub_optab, sync_new_ior_optab, sync_new_and_optab)
15924 (sync_new_xor_optab, sync_new_nand_optab, sync_compare_and_swap)
15925 (sync_lock_test_and_set, sync_lock_release): Delete.
15926 (emit_block_move_via_movmem): Use direct_optab_handler for movmem_optab.
15927 (emit_block_move_via_setmem): Use direct_optab_handler for setmem_optab.
15928 * genopinit.c (optabs): Use set_direct_optab_handler for the new
15929 macro optabs.
15930 * omp-low.c (expand_omp_atomic_fetch_op): Update the type of
15931 the "optab" local variable. Use direct_optab_handler for optab and
15932 sync_compare_and_swap_optab.
15933 * reload1.c (reload_in_optab, reload_out_optab): Delete.
15934 * targhooks.c (default_secondary_reload): Use direct_optab_handler for
15935 reload_in_optab and reload_out_optab.
15936 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
15937 * config/frv/frv.c (frv_alloc_temp_reg): Likewise.
15938 * config/pa/pa.c (pa_secondary_reload): Likewise.
15939 * java/builtins.c (compareAndSwapInt_builtin): Use direct_optab_handler
15940 for sync_compare_and_swap, renaming it to sync_compare_and_swap_optab.
15941 (compareAndSwapLong_builtin, compareAndSwapObject_builtin): Likewise.
15942 (VMSupportsCS8_builtin): Likewise.
15943
15944 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
15945
15946 * optabs.h (optab_handlers): Change type of insn_code to int.
15947 (optab_handler, set_optab_handler, convert_optab_handler)
15948 (set_convert_optab_handler): Treat the insn_code field as "insn_code -
15949 CODE_FOR_nothing".
15950 * optabs.c (optab_table, convert_optab_table): Always zero-initialize.
15951 (init_insn_codes): Zero both the above arrays.
15952 (init_optabs): Never call init_insn_codes first time around.
15953
15954 2010-07-04 Richard Sandiford <rdsandiford@googlemail.com>
15955
15956 * optabs.h (optab_handler, convert_optab_handler): Turn into
15957 inline functions that return an insn code.
15958 (set_optab_handler, set_convert_optab_handler): New functions.
15959 * builtins.c: Replace optab_handler(X)->insn_code with
15960 optab_handler or set_optab_handler thoughout. Likewise
15961 convert_optab_handler(X)->insn_code with convert_optab_handler
15962 and set_convert_optab_handler.
15963 * expmed.c, expr.c, genopinit.c, ifcvt.c, optabs.c, reload.c,
15964 reload1.c, stmt.c, targhooks.c, tree-ssa-loop-prefetch.c,
15965 tree-ssa-math-opts.c, tree-vect-data-refs.c, tree-vect-generic.c,
15966 tree-vect-loop.c, tree-vect-patterns.c, tree-vect-slp.c,
15967 tree-vect-stmts.c, config/m32c/m32c.c, config/rs6000/rs6000.c,
15968 config/spu/spu.c: Likewise.
15969
15970 2010-07-04 Kaz Kojima <kkojima@gcc.gnu.org>
15971
15972 PR target/44531
15973 * config.gcc (sh*-*-*): Use regular expressions instead of
15974 the 'i' modifier for sed substitutions.
15975
15976 2010-07-04 Jeremie Salvucci <jeremie.salvucci@free.fr>
15977
15978 * gimple.c (gimple_body): Comments added.
15979
15980 2010-07-04 Richard Guenther <rguenther@suse.de>
15981
15982 PR middle-end/44809
15983 * gimplify.c (gimplify_expr): Properly build a MEM_REF instead
15984 of an INDIRECT_REF.
15985
15986 2010-07-04 Richard Guenther <rguenther@suse.de>
15987
15988 PR tree-optimization/44479
15989 * tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr): Avoid
15990 extra SSA name copy statements which preserves points-to
15991 information.
15992 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
15993 Copy points-to information for all pointers. Properly handle
15994 MEM_REFs.
15995 (vect_create_data_ref_ptr): Likewise. Avoid extra SSA name
15996 copy statements.
15997 * Makefile.in (tree-ssa-loop-ivopts.o): Add tree-ssa-propagate.h
15998 dependency.
15999
16000 2010-07-04 Richard Guenther <rguenther@suse.de>
16001
16002 PR middle-end/44785
16003 * tree-inline.c (initialize_inlined_parameters): Do not
16004 re-use pointer-map slot over remap_type call.
16005
16006 2010-07-04 Richard Guenther <rguenther@suse.de>
16007
16008 * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix last commit.
16009
16010 2010-07-04 Richard Guenther <rguenther@suse.de>
16011
16012 PR tree-optimization/44656
16013 * tree-ssa-sccvn.c (vn_reference_lookup_3): Try disambiguation
16014 again after value-replacing in the defintions lhs.
16015
16016 2010-07-04 Ira Rosen <irar@il.ibm.com>
16017 Revital Eres <eres@il.ibm.com>
16018
16019 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST):
16020 Document new arguments.
16021 * doc/tm.texi: Regenerate.
16022 * targhooks.c (default_builtin_vectorization_cost): Add new arguments.
16023 Handle unaligned store.
16024 * targhooks.h (default_builtin_vectorization_cost): Add new arguments.
16025 * target.def (builtin_vectorization_cost): Add new arguments.
16026 * target.h (enum vect_cost_for_stmt): Add unaligned_store.
16027 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Take number
16028 of iterations of prolog loop directly from LOOP_PEELING_FOR_ALIGNMENT.
16029 (vect_vfa_segment_size): Fix indentation.
16030 * tree-vectorizer.h (struct _vect_peel_info): New.
16031 (struct _vect_peel_extended_info): New.
16032 (struct _loop_vec_info): Add new field for peeling hash table and a
16033 macro for its access.
16034 (VECT_MAX_COST): Define.
16035 (vect_get_load_cost): Declare.
16036 (vect_get_store_cost, vect_get_known_peeling_cost,
16037 vect_get_single_scalar_iteraion_cost): Likewise.
16038 (vect_supportable_dr_alignment): Add new argument.
16039 * tree-vect-loop.c (new_loop_vec_info): Initialize peeling hash table
16040 field.
16041 (destroy_loop_vec_info): Free peeling hash table.
16042 (vect_analyze_loop_form): Update call to builtin_vectorization_cost.
16043 (vect_analyze_loop): Move vect_enhance_data_refs_alignment before
16044 vect_analyze_slp. Fix indentation.
16045 (vect_get_single_scalar_iteraion_cost): New function.
16046 (vect_get_known_peeling_cost): Likewise.
16047 (vect_estimate_min_profitable_iters): Rename byte_misalign to npeel.
16048 Call vect_get_single_scalar_iteraion_cost instead of cost_for_stmt per
16049 statement. Move outside cost calculation inside unknown peeling case.
16050 Call vect_get_known_peeling_cost for known amount of peeling.
16051 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Add data
16052 reference to the print message of forced alignment.
16053 (vect_verify_datarefs_alignment): Update call to
16054 vect_supportable_dr_alignment.
16055 (vect_get_data_access_cost): New function.
16056 (vect_peeling_hash, vect_peeling_hash_eq, vect_peeling_hash_insert,
16057 vect_peeling_hash_get_most_frequent, vect_peeling_hash_get_lowest_cost,
16058 vect_peeling_hash_choose_best_peeling): Likewise.
16059 (vect_enhance_data_refs_alignment): Fix documentation. Use hash table
16060 to store all the accesses in the loop and find best possible access to
16061 align using peeling for known alignment case. For unknown alignment
16062 check if stores are preferred or if peeling is worthy.
16063 (vect_find_same_alignment_drs): Analyze pairs of loads too.
16064 (vect_supportable_dr_alignment): Add new argument and check aligned
16065 accesses according to it.
16066 * tree-vect-stmts.c (vect_get_stmt_cost): New function.
16067 (cost_for_stmt): Call vect_get_stmt_cost.
16068 (vect_model_simple_cost): Likewise.
16069 (vect_model_store_cost): Call vect_get_stmt_cost. Call
16070 vect_get_store_cost to calculate the cost of the statement.
16071 (vect_get_store_cost): New function.
16072 (vect_model_load_cost): Call vect_get_stmt_cost. Call
16073 vect_get_load_cost to calculate the cost of the statement.
16074 (vect_get_load_cost): New function.
16075 (vectorizable_store): Update call to vect_supportable_dr_alignment.
16076 (vectorizable_load): Likewise.
16077 * config/spu/spu.c (spu_builtin_vectorization_cost): Add new arguments.
16078 * config/i386/i386.c (ix86_builtin_vectorization_cost): Add new
16079 arguments. Handle unaligned store.
16080 * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): New.
16081 (rs6000_builtin_support_vector_misalignment): Return true for word and
16082 double word alignments for VSX.
16083 * tree-vect-slp.c (vect_build_slp_tree): Update calls to
16084 vect_supportable_dr_alignment and builtin_vectorization_cost.
16085
16086 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16087
16088 PR target/44597
16089 * config/pa/predicates.md (prefetch_cc_operand): Remove.
16090 (prefetch_nocc_operand): Likewise.
16091 * config/pa/pa.md (prefetch): Revise expander to use prefetch_20.
16092 (prefetch_20): New insn.
16093 (prefetch_cc): Remove.
16094 (prefetch_nocc): Likewise.
16095
16096 2010-07-03 Manuel López-Ibáñez <manu@gcc.gnu.org>
16097
16098 * expr.c (vector_mode_valid_p): Move to c-common.c.
16099 * expr.h (vector_mode_valid_p): Do not declare here.
16100 * system.h: Poison GCC_EXPR_H in front-ends.
16101 * Makefile.in: Update dependencies.
16102
16103 2010-07-03 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
16104
16105 PR target/44705
16106 * config/pa/pa.h (GO_IF_LEGITIMATE_ADDRESS): Reject LABEL_REF.
16107
16108 2010-07-03 Jan Hubicka <jh@suse.cz>
16109
16110 * timevar.def (TV_OUT_OF_SSA, TV_VAR_EXPAND, TV_POST_EXPAND,
16111 TV_VAR_TRACKING_DATAFLOW, TV_VAR_TRACKING_EMIT): New timevars.
16112 * cfgexpand.c (gimple_expand_cfg): Use new timevars.
16113 * var-tracking.c (vt_find_locations, variable_tracking_main_1):
16114 Likewise.
16115
16116 * lto-stramer-out.c (pass_ipa_lto_gimple_out, pass_ipa_lto_finish_out):
16117 Update timevars.V
16118 * timevar.def (TV_IPA_LTO_GIMPLE_IO, TV_IPA_LTO_DECL_IO): Remove.
16119 (TV_IPA_LTO_GIMPLE_IN, TV_IPA_LTO_GIMPLE_OUT, TV_IPA_LTO_DECL_IN,
16120 TV_IPA_LTO_DECL_OUT): New.
16121 * lto.c (read_cgraph_and_symbols, materialize_cgraph): Update timevars.
16122
16123 2010-07-03 Jan Hubicka <jh@suse.cz>
16124
16125 * ipa-inline.c (update_edge_key): Break out from ...
16126 update_callers_keys): ... here;
16127 (update_callee_keys): Update only the edges from caller to callee.
16128 (update_all_calle_keys): Do what update_calle_keys did.
16129 (decide_inlining_of_small_functions): Avoid recomputing of all
16130 callees when badness increase.
16131
16132 2010-07-03 Jie Zhang <jie@codesourcery.com>
16133
16134 * config/arm/arm.c (arm_attr_length_move_neon): New.
16135 * config/arm/arm-protos.h (arm_attr_length_move_neon): Declare.
16136 * config/arm/neon.md (define_mode_attr V_slen): Remove.
16137 (neon_mov<mode> for VSTRUCT): Use arm_attr_length_move_neon
16138 to compute length attribute.
16139
16140 2010-07-03 Jie Zhang <jie@codesourcery.com>
16141
16142 * config/arm/vfp.md (*push_multi_vfp): Use vfp_register_operand
16143 as predicate for operand 1 and remove its constraint.
16144 * config/arm/predicates.md (vfp_register_operand): New.
16145 * config/arm/arm.md (*push_multi): Remove the constraint of operand 1.
16146 (*push_fp_multi): Likewise.
16147
16148 2010-07-03 Eric Botcazou <ebotcazou@adacore.com>
16149
16150 * gimplify.c (mostly_copy_tree_r): Deal with BIND_EXPR.
16151
16152 2010-07-03 Jan Hubicka <jh@suse.cz>
16153
16154 * config/i386/i386.c (override_options): Revert accidental commit.
16155
16156 2010-07-02 Le-Chun Wu <lcwu@google.com>
16157
16158 PR c++/44128
16159 * doc/invoke.texi: Update documentation of -Wshadow.
16160
16161 2010-07-02 Daniel Jacobowitz <dan@codesourcery.com>
16162 Julian Brown <julian@codesourcery.com>
16163 Sandra Loosemore <sandra@codesourcery.com>
16164
16165 * config/arm/arm.c (arm_canonicalize_comparison): Canonicalize DImode
16166 comparisons. Adjust to take both operands.
16167 (arm_select_cc_mode): Handle DImode comparisons.
16168 (arm_gen_compare_reg): Generate a scratch register for DImode
16169 comparisons which require one. Use xor for Thumb equality checks.
16170 (arm_const_double_by_immediates): New.
16171 (arm_print_operand): Allow 'Q' and 'R' for constants.
16172 (get_arm_condition_code): Handle new CC_CZmode and CC_NCVmode.
16173 * config/arm/arm.h (CANONICALIZE_COMPARISON): Always use
16174 arm_canonicalize_comparison.
16175 * config/arm/arm-modes.def: Add CC_CZmode and CC_NCVmode.
16176 * config/arm/arm-protos.h (arm_canonicalize_comparison): Update
16177 prototype.
16178 (arm_const_double_by_immediates): Declare.
16179 * config/arm/constraints.md (Di): New constraint.
16180 * config/arm/predicates.md (arm_immediate_di_operand)
16181 (arm_di_operand, cmpdi_operand): New.
16182 * config/arm/arm.md (cbranchdi4): Handle non-Cirrus also.
16183 (*arm_cmpdi_insn, *arm_cmpdi_unsigned)
16184 (*arm_cmpdi_zero, *thumb_cmpdi_zero): New insns.
16185 (cstoredi4): Handle non-Cirrus also.
16186
16187 2010-07-02 Julian Brown <julian@codesourcery.com>
16188 Sandra Loosemore <sandra@codesourcery.com>
16189
16190 PR target/43703
16191 * config/arm/vec-common.md (add<mode>3, sub<mode>3, smin<mode>3)
16192 (smax<mode>3): Disable for NEON float modes when
16193 flag_unsafe_math_optimizations is false.
16194 * config/arm/neon.md (*add<mode>3_neon, *sub<mode>3_neon)
16195 (*mul<mode>3_neon)
16196 (mul<mode>3add<mode>_neon, mul<mode>3neg<mode>add<mode>_neon)
16197 (reduc_splus_<mode>, reduc_smin_<mode>, reduc_smax_<mode>): Disable
16198 for NEON float modes when flag_unsafe_math_optimizations is false.
16199 (quad_halves_<code>v4sf): Only enable if
16200 flag_unsafe_math_optimizations is true.
16201 * doc/invoke.texi (ARM Options): Add note about floating point
16202 vectorization requiring -funsafe-math-optimizations.
16203
16204 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
16205 Julian Brown <julian@codesourcery.com>
16206
16207 * config/arm/neon.md (UNSPEC_VABA): Delete.
16208 (UNSPEC_VABAL): Delete.
16209 (UNSPEC_VABS): Delete.
16210 (UNSPEC_VMUL_N): Delete.
16211 (adddi3_neon): New.
16212 (subdi3_neon): New.
16213 (mul<mode>3add<mode>_neon): Make the pattern named.
16214 (mul<mode>3neg<mode>add<mode>_neon): Likewise.
16215 (neon_vadd<mode>): Replace with define_expand, and move the remaining
16216 unspec parts...
16217 (neon_vadd<mode>_unspec): ...to this.
16218 (neon_vmla<mode>, neon_vmla<mode>_unspec): Likewise.
16219 (neon_vlms<mode>, neon_vmls<mode>_unspec): Likewise.
16220 (neon_vsub<mode>, neon_vsub<mode>_unspec): Likewise.
16221 (neon_vaba<mode>): Rewrite in terms of vabd.
16222 (neon_vabal<mode>): Rewrite in terms of vabdl.
16223 (neon_vabs<mode>): Rewrite without unspec.
16224 * config/arm/arm.md (*arm_adddi3): Disable for TARGET_NEON.
16225 (*arm_subdi3): Likewise.
16226 * config/arm/neon.ml (Vadd, Vsub): Split out 64-bit variants and add
16227 No_op attribute to disable assembly output checks.
16228 * config/arm/arm_neon.h: Regenerated.
16229 * doc/arm-neon-intrinsics.texi: Regenerated.
16230
16231 2010-07-02 Jan Hubicka <jh@suse.cz>
16232
16233 * ipa-split.c (split_function): For aggregate values, set the return
16234 slot optimization bit. When passing DECL_BY_REFERENCE, produce
16235 *<retval> = fncall.part ().
16236 (execute_split_functions): Do not care about DECL_BY_REFERENCE.
16237
16238 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
16239
16240 * config/arm/neon.md (UNSPEC_VAND): Delete.
16241 (UNSPEC_VBIC): Delete.
16242 (UNSPEC_VCLZ): Delete.
16243 (UNSPEC_VCNT): Delete.
16244 (UNSPEC_VEOR): Delete.
16245 (UNSPEC_VORN): Delete.
16246 (UNSPEC_VORR): Delete.
16247 (iordi3_neon): Rewrite RTL without unspec. Add alternatives to handle
16248 core registers too.
16249 (anddi3_neon): Likewise.
16250 (orndi3_neon): Likewise.
16251 (bicdi3_neon): Likewise.
16252 (xordi3_neon): Likewise.
16253 (neon_vclz<mode>): Rewrite as define_expand and clz<mode>2 to get
16254 rid of unspec and handle unused operand.
16255 (neon_vcnt<mode>): Similarly, with popcount<mode>2.
16256 * config/arm/predicates.md (imm_for_neon_logic_operand):
16257 Require TARGET_NEON.
16258 (imm_for_neon_inv_logic_operand): Likewise.
16259 * config/arm/arm.md (define_split for logical_binary_operator):
16260 Disable for NEON registers.
16261 (anddi3): Add new define_expand, and rename the insn. Disable
16262 this insn for NEON, where anddi3_neon now applies.
16263 (*anddi_notdi_di): Disable for TARGET_NEON, where bicdi3_neon applies.
16264 (iordi3): As for anddi3.
16265 (xordi3): Likewise.
16266 * config/arm/neon.ml (Vand): Split DImode variants and mark them
16267 as No_op to disable testing for exact instruction match.
16268 (Vorr): Likewise.
16269 (Veor): Likewise.
16270 (Vbic): Likewise.
16271 (Vorn): Likewise.
16272 * config/arm/arm_neon.h: Regenerated.
16273 * doc/arm-neon-intrinsics.texi: Regenerated.
16274
16275 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
16276
16277 * expr.h (emit_stack_probe): Declare.
16278 * explow.c (emit_stack_probe): Make global.
16279 (anti_adjust_stack_and_probe): Fix comments.
16280 * config/sparc/linux.h (STACK_CHECK_STATIC_BUILTIN): Define to 1.
16281 * config/sparc/linux64.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
16282 * config/sparc/sol2.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
16283 * config/sparc/sparc.c: Include except.h.
16284 (sparc_emit_probe_stack_range): New function.
16285 (output_probe_stack_range): Likewise.
16286 (sparc_expand_prologue): Invoke sparc_emit_probe_stack_range if static
16287 built-in stack checking is enabled.
16288 * config/sparc/sparc-protos.h (output_probe_stack_range): Declare.
16289 * config/sparc/sparc.md (UNSPECV_PROBE_STACK_RANGE): New constant.
16290 (probe_stack_range): New insn.
16291
16292 2010-07-02 Richard Guenther <rguenther@suse.de>
16293
16294 PR target/43958
16295 * config/pa/pa.c (hppa_gimplify_va_arg_expr): Use pointer arithmetic
16296 for argument alignment.
16297
16298 2010-07-02 Jan Hubicka <jh@suse.cz>
16299
16300 * ipa-split.c (verify_non_ssa_vars): Break out from ...; perform DFS
16301 walk backwards from entry_bb to check only those basic block of header
16302 that might lead to execution of split part.
16303 (consider_split) ... here.
16304 (find_return_bb): Allow assignment in return BB.
16305 (find_retval): New.
16306 (split_function): Fix name of cloned function; take care of updating
16307 return value in return_bb containing move.
16308
16309 2010-07-02 Andreas Schwab <schwab@linux-m68k.org>
16310
16311 PR target/44771
16312 * config/m68k/m68k.c (m68k_expand_prologue): Remove set but not
16313 used variable insn.
16314
16315 2010-07-02 Eric Botcazou <ebotcazou@adacore.com>
16316
16317 * implicit-zee.c (combine_reaching_defs): Fix long lines.
16318 (is_set_with_extension_DI): Delete.
16319 (struct zero_extend_info): New structure.
16320 (add_removable_zero_extend): New function.
16321 (find_removable_zero_extends): Use note_stores to find SETs.
16322 (find_and_remove_ze): Fix long line, remove superfluous parentheses.
16323
16324 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
16325
16326 * tree-ssa-loop-prefetch.c (compute_miss_rate): Rename to
16327 is_miss_rate_acceptable. Pull total_positions computation
16328 out of the loops. Early return if miss_positions exceeds
16329 the acceptable threshold.
16330 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Call
16331 is_miss_rate_acceptable after renaming of compute_miss_rate.
16332
16333 2010-07-02 Changpeng Fang <changpeng.fang@amd.com>
16334
16335 PR middle-end/44576
16336 * tree-ssa-loop-prefetch.c (compute_miss_rate): Return 1000 (out
16337 of 1000) for miss rate if the address diference is greater than or
16338 equal to the cache line size (the two reference will never hit the
16339 same cache line).
16340
16341 2010-07-02 Bernd Schmidt <bernds@codesourcery.com>
16342
16343 PR target/42835
16344 * config/arm/arm-modes.def (CC_NOTB): New mode.
16345 * config/arm/arm.c (get_arm_condition_code): Handle it.
16346 * config/arm/thumb2.md (thumb2_compare_scc): Delete pattern.
16347 * config/arm/arm.md (subsi3_compare0_c): New pattern.
16348 (compare_scc): Now a define_and_split. Add a number of extra
16349 splitters before it.
16350
16351 PR target/42172
16352 * config/arm/arm.c (thumb1_rtx_costs): Improve support for SIGN_EXTEND
16353 and ZERO_EXTEND.
16354 (arm_rtx_costs_1): Likewise.
16355 (arm_size_rtx_costs): Use arm_rtx_costs_1 for these codes.
16356 * config/arm/arm.md (is_arch6): New attribute.
16357 (zero_extendhisi2, zero_extendqisi2, extendhisi2,
16358 extendqisi2): Tighten the code somewhat, avoiding invalid
16359 RTL to occur in the expander patterns.
16360 (thumb1_zero_extendhisi2): Merge with thumb1_zero_extendhisi2_v6.
16361 (thumb1_zero_extendhisi2_v6): Delete.
16362 (thumb1_extendhisi2): Merge with thumb1_extendhisi2_v6.
16363 (thumb1_extendhisi2_v6): Delete.
16364 (thumb1_extendqisi2): Merge with thumb1_extendhisi2_v6.
16365 (thumb1_extendqisi2_v6): Delete.
16366 (zero_extendhisi2 for register input splitter): New.
16367 (zero_extendqisi2 for register input splitter): New.
16368 (thumb1_extendhisi2 for register input splitter): New.
16369 (extendhisi2 for register input splitter): New.
16370 (extendqisi2 for register input splitter): New.
16371 (TARGET_THUMB1 extendqisi2 for memory input splitter): New.
16372 (arm_zero_extendhisi2): Allow nonimmediate_operand for operand 1,
16373 and add support for a register alternative requiring a split.
16374 (thumb1_zero_extendqisi2): Likewise.
16375 (arm_zero_extendqisi2): Likewise.
16376 (arm_extendhisi2): Likewise.
16377 (arm_extendqisi2): Likewise.
16378
16379 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
16380
16381 * config/arm/arm.c (neon_vdup_constant): Expand into canonical RTL
16382 instead of an unspec.
16383 (neon_expand_vector_init): Likewise.
16384 * config/arm/neon.md (UNSPEC_VCOMBINE): Delete.
16385 (UNSPEC_VDUP_LANE): Delete.
16386 (UNSPEC VDUP_N): Delete.
16387 (UNSPEC_VGET_HIGH): Delete.
16388 (UNSPEC_VGET_LANE): Delete.
16389 (UNSPEC_VGET_LOW): Delete.
16390 (UNSPEC_VMVN): Delete.
16391 (UNSPEC_VSET_LANE): Delete.
16392 (V_double_vector_mode): New.
16393 (vec_set<mode>_internal): Make code emitted match that for the
16394 corresponding intrinsics.
16395 (vec_setv2di_internal): Likewise.
16396 (neon_vget_lanedi): Rewrite to expand into emit_move_insn.
16397 (neon_vget_lanev2di): Rewrite to expand into vec_extractv2di.
16398 (neon_vset_lane<mode>): Combine double and quad patterns and
16399 expand into vec_set<mode>_internal instead of UNSPEC_VSET_LANE.
16400 (neon_vset_lanedi): Rewrite to expand into emit_move_insn.
16401 (neon_vdup_n<mode>): Rewrite RTL without unspec.
16402 (neon_vdup_ndi): Rewrite as define_expand and use emit_move_insn.
16403 (neon_vdup_nv2di): Rewrite RTL without unspec and merge with
16404 with neon_vdup_lanev2di, adjusting the pattern from the latter
16405 to be predicable for consistency.
16406 (neon_vdup_lane<mode>_internal): New.
16407 (neon_vdup_lane<mode>): Turn into a define_expand and rewrite
16408 to avoid using an unspec.
16409 (neon_vdup_lanedi): Rewrite RTL pattern to avoid unspec.
16410 (neon_vdup_lanev2di): Turn into a define_expand.
16411 (neon_vcombine): Rewrite pattern to eliminate UNPSEC_VCOMBINE.
16412 (neon_vget_high<mode>): Replace with....
16413 (neon_vget_highv16qi): New pattern using canonical RTL.
16414 (neon_vget_highv8hi): Likewise.
16415 (neon_vget_highv4si): Likewise.
16416 (neon_vget_highv4sf): Likewise.
16417 (neon_vget_highv2di): Likewise.
16418 (neon_vget_low<mode>): Replace with....
16419 (neon_vget_lowv16qi): New pattern using canonical RTL.
16420 (neon_vget_lowv8hi): Likewise.
16421 (neon_vget_lowv4si): Likewise.
16422 (neon_vget_lowv4sf): Likewise.
16423 (neon_vget_lowv2di): Likewise.
16424
16425 * config/arm/neon.ml (Vget_lane): Add No_op attribute to suppress
16426 test for this emitting vmov.
16427 (Vset_lane): Likewise.
16428 (Vdup_n): Likewise.
16429 (Vmov_n): Likewise.
16430
16431 * doc/arm-neon-intrinsics.texi: Regenerated.
16432
16433 2010-07-02 Sandra Loosemore <sandra@codesourcery.com>
16434
16435 * config/arm/neon.md (vec_extractv2di): Correct error in register
16436 numbering to reconcile with neon_vget_lanev2di.
16437
16438 2010-07-02 Richard Guenther <rguenther@suse.de>
16439
16440 * tree-ssa-structalias.c (pt_solution_set_var): New function.
16441 * tree-ssa-alias.h (pt_solution_set_var): Declare.
16442 * tree-ssa-loop-ivopts.c (copy_ref_info): Also copy or create
16443 points-to information.
16444
16445 2010-07-02 Christian Borntraeger <borntraeger@de.ibm.com>
16446
16447 * config/s390/s390.c (override_options): Adopt prefetching
16448 at -O3 to handle flag_prefetch_loop_arrays as a tristate.
16449
16450 2010-07-02 Jan Hubicka <jh@suse.cz>
16451
16452 * df-problems.c (df_kill_notes): Do not collect dead notes.
16453 (df_set_note): Just call add_reg_note.
16454 (df_set_unused_notes_for_mw, df_set_dead_notes_for_mw,
16455 df_create_unused_note): Do not deal with lists of old notes.
16456 (df_note_bb_compute): Likewise.
16457
16458 2010-07-02 Richard Guenther <rguenther@suse.de>
16459
16460 * tree-ssa-structalias.c (find_func_aliases): Handle
16461 pointer alignment via BIT_AND_EXPR.
16462 * tree-vrp.c (extract_range_from_binary_expr): Likewise.
16463
16464 2010-07-02 Richard Guenther <rguenther@suse.de>
16465
16466 * tree-data-ref.c (initialize_data_dependence_relation): Handle
16467 mismatching number of dimensions properly.
16468
16469 2010-07-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
16470
16471 PR target/44707
16472 * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Recognize
16473 (lo_sum (high ...) ...) patterns generated by earlier passes.
16474
16475 2010-07-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
16476
16477 * doc/install.texi (Prerequisites): Document Perl requirement on
16478 Solaris 2.
16479 (Specific, *-*-solaris2*): Document GNU c++filt requirement.
16480
16481 2010-07-02 Richard Guenther <rguenther@suse.de>
16482
16483 PR middle-end/44777
16484 * tree-cfg.c (gimple_block_ends_with_call_p): Handle empty BBs.
16485
16486 2010-07-02 Jan Hubicka <jh@suse.cz>
16487
16488 PR middle-end/44706
16489 * predict.c (predict_paths_for_bb): Handle case when control dependence
16490 BB has only abnormal edges.
16491
16492 2010-07-02 Richard Guenther <rguenther@suse.de>
16493
16494 PR tree-optimization/44748
16495 * tree-ssa-ccp.c (fold_const_aggregate_ref): Properly handle
16496 the embedded conversion in MEM_REFs.
16497
16498 2010-07-01 López-Ibáñez <manu@gcc.gnu.org>
16499
16500 * reload.c: Include toplev.h.
16501 * recog.c: Likewise.
16502 * Makefile.in: Adjust dependencies.
16503
16504 2010-07-01 Jakub Jelinek <jakub@redhat.com>
16505
16506 PR debug/44694
16507 * dwarf2out.c (reg_loc_descriptor): For eliminated arg_pointer_rtx
16508 or frame_pointer_rtx use DW_OP_fbreg offset DW_OP_stack_value.
16509
16510 2010-07-01 Richard Guenther <rguenther@suse.de>
16511
16512 * emit-rtl.c (set_mem_attributes_minus_bitpos): Use unsigned
16513 types for offsets.
16514
16515 2010-07-01 Joern Rennecke <joern.rennecke@embecosm.com>
16516
16517 PR target/44732
16518 * config/ia64/ia64.c (ia64_register_move_cost): Remove stray '{'.
16519 Fix argument types.
16520
16521 2010-07-01 Bernd Schmidt <bernds@codesourcery.com>
16522
16523 PR target/44727
16524 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
16525 Make sure operand 0 dies.
16526
16527 2010-07-01 Richard Guenther <rguenther@suse.de>
16528
16529 PR middle-end/42834
16530 PR middle-end/44468
16531 * doc/gimple.texi (is_gimple_mem_ref_addr): Document.
16532 * doc/generic.texi (References to storage): Document MEM_REF.
16533 * tree-pretty-print.c (dump_generic_node): Handle MEM_REF.
16534 (print_call_name): Likewise.
16535 * tree.c (recompute_tree_invariant_for_addr_expr): Handle MEM_REF.
16536 (build_simple_mem_ref_loc): New function.
16537 (mem_ref_offset): Likewise.
16538 * tree.h (build_simple_mem_ref_loc): Declare.
16539 (build_simple_mem_ref): Define.
16540 (mem_ref_offset): Declare.
16541 * fold-const.c: Include tree-flow.h.
16542 (operand_equal_p): Handle MEM_REF.
16543 (build_fold_addr_expr_with_type_loc): Likewise.
16544 (fold_comparison): Likewise.
16545 (fold_unary_loc): Fold
16546 VIEW_CONVERT_EXPR <T1, MEM_REF <T2, ...>> to MEM_REF <T1, ...>.
16547 (fold_binary_loc): Fold MEM[&MEM[p, CST1], CST2] to MEM[p, CST1 + CST2],
16548 fold MEM[&a.b, CST2] to MEM[&a, offsetof (a, b) + CST2].
16549 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Handle MEM_REF.
16550 (ptr_deref_may_alias_ref_p_1): Likewise.
16551 (ao_ref_base_alias_set): Properly differentiate base object for
16552 offset and TBAA.
16553 (ao_ref_init_from_ptr_and_size): Use MEM_REF.
16554 (indirect_ref_may_alias_decl_p): Handle MEM_REFs properly.
16555 (indirect_refs_may_alias_p): Likewise.
16556 (refs_may_alias_p_1): Likewise. Remove pointer SSA name def
16557 chasing code.
16558 (ref_maybe_used_by_call_p_1): Handle MEM_REF.
16559 (call_may_clobber_ref_p_1): Likewise.
16560 * dwarf2out.c (loc_list_from_tree): Handle MEM_REF.
16561 * expr.c (expand_assignment): Handle MEM_REF.
16562 (store_expr): Handle MEM_REFs from STRING_CSTs.
16563 (store_field): If expanding a MEM_REF of a non-addressable
16564 decl use bitfield operations.
16565 (get_inner_reference): Handle MEM_REF.
16566 (expand_expr_addr_expr_1): Likewise.
16567 (expand_expr_real_1): Likewise.
16568 * tree-eh.c (tree_could_trap_p): Handle MEM_REF.
16569 * alias.c (ao_ref_from_mem): Handle MEM_REF.
16570 (get_alias_set): Likewise. Properly handle VIEW_CONVERT_EXPRs.
16571 * tree-data-ref.c (dr_analyze_innermost): Handle MEM_REF.
16572 (dr_analyze_indices): Likewise.
16573 (dr_analyze_alias): Likewise.
16574 (object_address_invariant_in_loop_p): Likewise.
16575 * gimplify.c (mark_addressable): Handle MEM_REF.
16576 (gimplify_cond_expr): Build MEM_REFs.
16577 (gimplify_modify_expr_to_memcpy): Likewise.
16578 (gimplify_init_ctor_preeval_1): Handle MEM_REF.
16579 (gimple_fold_indirect_ref): Adjust.
16580 (gimplify_expr): Handle MEM_REF. Gimplify INDIRECT_REF to MEM_REF.
16581 * tree.def (MEM_REF): New tree code.
16582 * tree-dfa.c: Include toplev.h.
16583 (get_ref_base_and_extent): Handle MEM_REF.
16584 (get_addr_base_and_unit_offset): New function.
16585 * emit-rtl.c (set_mem_attributes_minus_bitpos): Handle MEM_REF.
16586 * gimple-fold.c (may_propagate_address_into_dereference): Handle
16587 MEM_REF.
16588 (maybe_fold_offset_to_array_ref): Allow possibly out-of bounds
16589 accesses if the array has just one dimension. Remove always true
16590 parameter. Do not require type compatibility here.
16591 (maybe_fold_offset_to_component_ref): Remove.
16592 (maybe_fold_stmt_indirect): Remove.
16593 (maybe_fold_reference): Remove INDIRECT_REF handling.
16594 Fold back to non-MEM_REF.
16595 (maybe_fold_offset_to_address): Simplify. Deal with type
16596 mismatches here.
16597 (maybe_fold_reference): Likewise.
16598 (maybe_fold_stmt_addition): Likewise. Also handle
16599 &ARRAY + I in addition to &ARRAY[0] + I.
16600 (fold_gimple_assign): Handle ADDR_EXPR of MEM_REFs.
16601 (gimple_get_relevant_ref_binfo): Handle MEM_REF.
16602 * cfgexpand.c (expand_debug_expr): Handle MEM_REF.
16603 * tree-ssa.c (useless_type_conversion_p): Make most pointer
16604 conversions useless.
16605 (warn_uninitialized_var): Handle MEM_REF.
16606 (maybe_rewrite_mem_ref_base): New function.
16607 (execute_update_addresses_taken): Implement re-writing of MEM_REFs
16608 to SSA form.
16609 * tree-inline.c (remap_gimple_op_r): Handle MEM_REF, remove
16610 INDIRECT_REF handling.
16611 (copy_tree_body_r): Handle MEM_REF.
16612 * gimple.c (is_gimple_addressable): Adjust.
16613 (is_gimple_address): Likewise.
16614 (is_gimple_invariant_address): ADDR_EXPRs of MEM_REFs with
16615 invariant base are invariant.
16616 (is_gimple_min_lval): Adjust.
16617 (is_gimple_mem_ref_addr): New function.
16618 (get_base_address): Handle MEM_REF.
16619 (count_ptr_derefs): Likewise.
16620 (get_base_loadstore): Likewise.
16621 * gimple.h (is_gimple_mem_ref_addr): Declare.
16622 (gimple_call_fndecl): Handle invariant MEM_REF addresses.
16623 * tree-cfg.c (verify_address): New function, split out from ...
16624 (verify_expr): ... here. Use for verifying ADDR_EXPRs and
16625 the address operand of MEM_REFs. Verify MEM_REFs. Reject
16626 INDIRECT_REFs.
16627 (verify_types_in_gimple_min_lval): Handle MEM_REF. Disallow
16628 INDIRECT_REF. Allow conversions.
16629 (verify_types_in_gimple_reference): Verify VIEW_CONVERT_EXPR of
16630 a register does not change its size.
16631 (verify_types_in_gimple_reference): Verify MEM_REF.
16632 (verify_gimple_assign_single): Disallow INDIRECT_REF.
16633 Handle MEM_REF.
16634 * tree-ssa-operands.c (opf_non_addressable, opf_not_non_addressable):
16635 New.
16636 (mark_address_taken): Handle MEM_REF.
16637 (get_indirect_ref_operands): Pass through opf_not_non_addressable.
16638 (get_asm_expr_operands): Pass opf_not_non_addressable.
16639 (get_expr_operands): Handle opf_[not_]non_addressable.
16640 Handle MEM_REF. Remove INDIRECT_REF handling.
16641 * tree-vrp.c (check_array_ref): Handle MEM_REF.
16642 (search_for_addr_array): Likewise.
16643 (check_array_bounds): Likewise.
16644 (vrp_stmt_computes_nonzero): Adjust for MEM_REF.
16645 * tree-ssa-loop-im.c (for_each_index): Handle MEM_REF.
16646 (ref_always_accessed_p): Likewise.
16647 (gen_lsm_tmp_name): Likewise. Handle ADDR_EXPR.
16648 * tree-complex.c (extract_component): Do not handle INDIRECT_REF.
16649 Handle MEM_REF.
16650 * cgraphbuild.c (mark_load): Properly check for NULL result
16651 from get_base_address.
16652 (mark_store): Likewise.
16653 * tree-ssa-loop-niter.c (array_at_struct_end_p): Handle MEM_REF.
16654 * tree-loop-distribution.c (generate_builtin): Exchange INDIRECT_REF
16655 handling for MEM_REF.
16656 * tree-scalar-evolution.c (follow_ssa_edge_expr): Handle
16657 &MEM[ptr + CST] similar to POINTER_PLUS_EXPR.
16658 * builtins.c (stabilize_va_list_loc): Use the function ABI
16659 valist type if we couldn't canonicalize the argument type.
16660 Always dereference with the canonical va-list type.
16661 (maybe_emit_free_warning): Handle MEM_REF.
16662 (fold_builtin_memory_op): Simplify and handle MEM_REFs in folding
16663 memmove to memcpy.
16664 * builtins.c (fold_builtin_memory_op): Use ref-all types
16665 for all memcpy foldings.
16666 * omp-low.c (build_receiver_ref): Adjust for MEM_REF.
16667 (build_outer_var_ref): Likewise.
16668 (scan_omp_1_op): Likewise.
16669 (lower_rec_input_clauses): Likewise.
16670 (lower_lastprivate_clauses): Likewise.
16671 (lower_reduction_clauses): Likewise.
16672 (lower_copyprivate_clauses): Likewise.
16673 (expand_omp_atomic_pipeline): Likewise.
16674 (expand_omp_atomic_mutex): Likewise.
16675 (create_task_copyfn): Likewise.
16676 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Handle MEM_REF.
16677 Remove old union trick. Initialize constant offsets.
16678 (ao_ref_init_from_vn_reference): Likewise. Do not handle
16679 INDIRECT_REF. Init base_alias_set properly.
16680 (vn_reference_lookup_3): Replace INDIRECT_REF handling with MEM_REF.
16681 (vn_reference_fold_indirect): Adjust for MEM_REFs.
16682 (valueize_refs): Fold MEM_REFs. Re-evaluate constant offset
16683 for ARRAY_REFs.
16684 (may_insert): Remove.
16685 (visit_reference_op_load): Do not test may_insert.
16686 (run_scc_vn): Remove parameter, do not fiddle with may_insert.
16687 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
16688 a field to store the constant offset this op applies.
16689 (run_scc_vn): Adjust prototype.
16690 * cgraphunit.c (thunk_adjust): Adjust for MEM_REF.
16691 * tree-ssa-ccp.c (ccp_fold): Replace INDIRECT_REF folding with
16692 MEM_REF. Propagate &foo + CST as &MEM[&foo, CST]. Do not
16693 bother about volatile qualifiers on pointers.
16694 (fold_const_aggregate_ref): Handle MEM_REF, do not handle INDIRECT_REF.
16695 * tree-ssa-loop-ivopts.c
16696 * tree-ssa-loop-ivopts.c (determine_base_object): Adjust for MEM_REF.
16697 (strip_offset_1): Likewise.
16698 (find_interesting_uses_address): Replace INDIRECT_REF handling with
16699 MEM_REF handling.
16700 (get_computation_cost_at): Likewise.
16701 * ipa-pure-const.c (check_op): Handle MEM_REF.
16702 * tree-stdarg.c (check_all_va_list_escapes): Adjust for MEM_REF.
16703 * tree-ssa-sink.c (is_hidden_global_store): Handle MEM_REF
16704 and constants.
16705 * ipa-inline.c (likely_eliminated_by_inlining_p): Handle MEM_REF.
16706 * tree-parloops.c (take_address_of): Adjust for MEM_REF.
16707 (eliminate_local_variables_1): Likewise.
16708 (create_call_for_reduction_1): Likewise.
16709 (create_loads_for_reductions): Likewise.
16710 (create_loads_and_stores_for_name): Likewise.
16711 * matrix-reorg.c (may_flatten_matrices_1): Sanitize.
16712 (ssa_accessed_in_tree): Handle MEM_REF.
16713 (ssa_accessed_in_assign_rhs): Likewise.
16714 (update_type_size): Likewise.
16715 (analyze_accesses_for_call_stmt): Likewise.
16716 (analyze_accesses_for_assign_stmt): Likewise.
16717 (transform_access_sites): Likewise.
16718 (transform_allocation_sites): Likewise.
16719 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF.
16720 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Do
16721 not handle INDIRECT_REF.
16722 * tree-ssa-phiopt.c (add_or_mark_expr): Handle MEM_REF.
16723 (cond_store_replacement): Likewise.
16724 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Handle
16725 MEM_REF, no not handle INDIRECT_REFs.
16726 (insert_into_preds_of_block): Properly initialize avail.
16727 (phi_translate_1): Fold MEM_REFs. Re-evaluate constant offset
16728 for ARRAY_REFs. Properly handle reference lookups that
16729 require a bit re-interpretation.
16730 (can_PRE_operation): Do not handle INDIRECT_REF. Handle MEM_REF.
16731 * tree-sra.c (build_access_from_expr_1): Handle MEM_REF.
16732 (build_ref_for_offset_1): Remove.
16733 (build_ref_for_offset): Build MEM_REFs.
16734 (gate_intra_sra): Disable for now.
16735 (sra_ipa_modify_expr): Handle MEM_REF.
16736 (ipa_early_sra_gate): Disable for now.
16737 * tree-sra.c (create_access): Swap INDIRECT_REF handling for
16738 MEM_REF handling.
16739 (disqualify_base_of_expr): Likewise.
16740 (ptr_parm_has_direct_uses): Swap INDIRECT_REF handling for
16741 MEM_REF handling.
16742 (sra_ipa_modify_expr): Remove INDIRECT_REF handling.
16743 Use mem_ref_offset. Remove bogus folding.
16744 (build_access_from_expr_1): Properly handle MEM_REF for non IPA-SRA.
16745 (make_fancy_name_1): Add support for MEM_REF.
16746 * tree-predcom.c (ref_at_iteration): Handle MEM_REFs.
16747 * tree-mudflap.c (mf_xform_derefs_1): Adjust for MEM_REF.
16748 * ipa-prop.c (compute_complex_assign_jump_func): Handle MEM_REF.
16749 (compute_complex_ancestor_jump_func): Likewise.
16750 (ipa_analyze_virtual_call_uses): Likewise.
16751 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Replace
16752 INDIRECT_REF folding with more generalized MEM_REF folding.
16753 (tree_ssa_forward_propagate_single_use_vars): Adjust accordingly.
16754 (forward_propagate_addr_into_variable_array_index): Also handle
16755 &ARRAY + I in addition to &ARRAY[0] + I.
16756 * tree-ssa-dce.c (ref_may_be_aliased): Handle MEM_REF.
16757 * tree-ssa-ter.c (find_replaceable_in_bb): Avoid TER if that
16758 creates assignments with overlap.
16759 * tree-nested.c (get_static_chain): Adjust for MEM_REF.
16760 (get_frame_field): Likewise.
16761 (get_nonlocal_debug_decl): Likewise.
16762 (convert_nonlocal_reference_op): Likewise.
16763 (struct nesting_info): Add mem_refs pointer-set.
16764 (create_nesting_tree): Allocate it.
16765 (convert_local_reference_op): Insert to be folded mem-refs.
16766 (fold_mem_refs): New function.
16767 (finalize_nesting_tree_1): Perform defered folding of mem-refs
16768 (free_nesting_tree): Free the pointer-set.
16769 * tree-vect-stmts.c (vectorizable_store): Adjust for MEM_REF.
16770 (vectorizable_load): Likewise.
16771 * tree-ssa-phiprop.c (phiprop_insert_phi): Adjust for MEM_REF.
16772 (propagate_with_phi): Likewise.
16773 * tree-object-size.c (addr_object_size): Handle MEM_REFs
16774 instead of INDIRECT_REFs.
16775 (compute_object_offset): Handle MEM_REF.
16776 (plus_stmt_object_size): Handle MEM_REF.
16777 (collect_object_sizes_for): Dispatch to plus_stmt_object_size
16778 for &MEM_REF.
16779 * tree-flow.h (get_addr_base_and_unit_offset): Declare.
16780 (symbol_marked_for_renaming): Likewise.
16781 * Makefile.in (tree-dfa.o): Add $(TOPLEV_H).
16782 (fold-const.o): Add $(TREE_FLOW_H).
16783 * tree-ssa-structalias.c (get_constraint_for_1): Handle MEM_REF.
16784 (find_func_clobbers): Likewise.
16785 * ipa-struct-reorg.c (decompose_indirect_ref_acc): Handle MEM_REF.
16786 (decompose_access): Likewise.
16787 (replace_field_acc): Likewise.
16788 (replace_field_access_stmt): Likewise.
16789 (insert_new_var_in_stmt): Likewise.
16790 (get_stmt_accesses): Likewise.
16791 (reorg_structs_drive): Disable.
16792 * config/i386/i386.c (ix86_va_start): Adjust for MEM_REF.
16793 (ix86_canonical_va_list_type): Likewise.
16794
16795 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
16796
16797 PR other/44566
16798 * coretypes.h [!USED_FOR_TARGET] (reg_class_t): Define.
16799 * target.def (struct gcc_target): Replace enum reg_class with
16800 reg_class_t in hook argument / return types.
16801 * doc/tm.texi.in (TARGET_SECONDARY_RELOAD): Likewise.
16802 (TARGET_IRA_COVER_CLASSES, TARGET_MEMORY_MOVE_COST): Likewise.
16803 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
16804 * targhooks.h (default_branch_target_register_class): Likewise.
16805 (default_ira_cover_classes, default_secondary_reload): Likewise.
16806 (default_memory_move_cost, default_register_move_cost): Likewise.
16807 * targhooks.c (default_branch_target_register_class): Likewise.
16808 (default_ira_cover_classes, default_secondary_reload): Likewise.
16809 (default_memory_move_cost, default_register_move_cost): Likewise.
16810 * reload.c (push_secondary_reload, secondary_reload_class): Likewise.
16811 * bt-load.c (branch_target_load_optimize): Likewise.
16812 * ira.c (setup_cover_and_important_classes): Likewise.
16813 * ira-costs.c (copy_cost): Likewise.
16814 * reload1.c (emit_input_reload_insns): Likewise.
16815 * config/alpha/alpha.c (alpha_secondary_reload): Likewise.
16816 * config/frv/frv.c (frv_secondary_reload): Likewise.
16817 * config/s390/s390.c (s390_secondary_reload): Likewise.
16818 * config/i386/i386.c (i386_ira_cover_classes): Likewise.
16819 (ix86_secondary_reload, ix86_memory_move_cost): Likewise.
16820 (ix86_register_move_cost): Likewise.
16821 * config/sh/sh-protos.h (sh_secondary_reload): Likewise.
16822 * config/sh/sh.c (sh_target_reg_class, sh_secondary_reload): Likewise.
16823 * config/xtensa/xtensa.c (xtensa_secondary_reload): Likewise.
16824 * config/xtensa/xtensa-protos.h (xtensa_secondary_reload): Likewise.
16825 * config/rs6000/rs6000.c (rs6000_secondary_reload): Likewise.
16826 (rs6000_ira_cover_classes): Likewise.
16827 * config/picochip/picochip.c (picochip_secondary_reload): Likewise.
16828 * config/picochip/picochip-protos.h (picochip_secondary_reload):
16829 Likewise.
16830 * config/pa/pa.c (pa_secondary_reload): Likewise.
16831 * config/mips/mips.c (mips_ira_cover_classes): Likewise.
16832 * config/bfin/bfin.c (bfin_secondary_reload): Likewise.
16833 * config/ia64/ia64.c (ia64_register_move_cost): Likewise.
16834 * doc/tm.texi: Regenerate.
16835
16836 2010-06-30 Sebastian Pop <sebastian.pop@amd.com>
16837
16838 PR bootstrrap/44726
16839 * graphite-sese-to-poly.c (build_poly_dr): Avoid uninitialized
16840 use.
16841 (build_alias_set_optimal_p): Likewise.
16842 (build_base_obj_set_for_drs): Likewise.
16843
16844 2010-06-30 Joern Rennecke <joern.rennecke@embecosm.com>
16845
16846 * target.def: Remove comment about licensing problems of function
16847 declarations.
16848
16849 * target.def (declare_constant_name): Change exp to expr. Use DEFHOOK.
16850 * doc/tm.texi.in (TARGET_ASM_DECLARE_CONSTANT_NAME): Use @hook.
16851 * doc/tm.texi: Regenerate.
16852
16853 * target.def (builtin_reciprocal): Change tm_fn to md_fn. Use DEFHOOK.
16854 * doc/tm.texi.in (TARGET_BUILTIN_RECIPROCAL): Use @hook.
16855
16856 * target.def (enum_va_list_p): Use DEFHOOK.
16857 * doc/tm.texi.in (TARGET_ENUM_VA_LIST_P): Use @hook.
16858 Rename ptype to ptree.
16859 * doc/tm.texi: Regenerate.
16860
16861 * target.def (fold_builtin): Rename nargs to n_args. Use DEFHOOK.
16862 * doc/tm.texi.in (TARGET_FOLD_BUILTIN): Use @hook.
16863 * doc/tm.texi: Regenerate.
16864
16865 * target.def (memory_move_cost): Use DEFHOOK.
16866 * doc/tm.texi.in (TARGET_MEMORY_MOVE_COST): Use @hook.
16867 Rename regclass AKA class to rclass.
16868 * doc/tm.texi: Regenerate.
16869
16870 * target.def (pragma_parse): Use DEFHOOK.
16871 * doc/tm.texi.in (TARGET_OPTION_PRAGMA_PARSE): Use @hook.
16872 s/TARGET_VALID_OPTION_ATTRIBUTE_P/TARGET_OPTION_VALID_ATRIBUTE_P/ .
16873 * doc/tm.texi: Regenerate.
16874
16875 * target.def (pass_by_reference): Use DEFHOOK.
16876 * doc/tm.texi.in (TARGET_PASS_BY_REFERENCE): Use @hook.
16877 * doc/tm.texi: Regenerate.
16878
16879 * target.def (resolve_overloaded_builtin): Rename params to arglist.
16880 Use DEFHOOK.
16881 * doc/tm.texi.in (TARGET_RESOLVE_OVERLOADED_BUILTIN): Use @hook.
16882 * doc/tm.texi: Regenerate.
16883
16884 * target.def (return_pops_args): Use DEFHOOK.
16885 * doc/tm.texi.in (TARGET_RETURN_POPS_ARGS): Use @hook.
16886 Rename stack-size to size.
16887 * doc/tm.texi: Regenerate.
16888
16889 * target.def (dfa_new_cycle): Use DEFHOOK. Rename dump_file to dump,
16890 last-sched_cycle to last_clock, cur_cycle to clock.
16891 * doc/tm.texi.in: Use @hook.
16892 * doc/tm.texi: Regenerate.
16893
16894 * target.def (print_operand, print_operand_address): Update comment.
16895 (print_operand_punct_valid_p): Likewise.
16896
16897 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
16898
16899 * toplev.h (_fatal_insn_not_found, _fatal_insn): Move declarations
16900 to rtl.h.
16901 (error_for_asm, warning_for_asm): Move declarations to rtl-error.h.
16902 * rtl.h (_fatal_insn_not_found, _fatal_insn): Move declarations here.
16903 * rtl-error.h: New.
16904 * regrename.c: Do not include toplev.h. Include rtl-error.h.
16905 * rtl-error.c: Likewise.
16906 * reload.c: Likewise.
16907 * recog.c: Likewise.
16908 * sel-sched.c: Likewise.
16909 * function.c: Likewise.
16910 * reg-stack.c: Likewise.
16911 * cfgrtl.c: Likewise.
16912 * reload1.c: Likewise.
16913 * final.c: Include rtl-error.
16914 * Makefile.in: Adjust dependencies.
16915
16916 2010-06-30 Jan Hubicka <jh@suse.cz>
16917
16918 PR middle-end/PR44706
16919 * ipa-split (split_function): Refine conditions when to use DECL_RESULT
16920 to return the value.
16921
16922 2010-06-30 Michael Matz <matz@suse.de>
16923
16924 PR bootstrap/44699
16925 * tree-vrp.c (vrp_finalize): Deal with changing num_ssa_names.
16926 * gimple-fold.c (gimplify_and_update_call_from_tree): If LHS is
16927 a gimple reg, attach the original VDEF to the last store in the
16928 sequence.
16929
16930 2010-06-30 Iain Sandoe <iains@gcc.gnu.org>
16931
16932 PR other/44034
16933 * config/darwin.c (darwin_override_options): Use renamed
16934 targetm.asm_out.emit_unwind_label.
16935
16936 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
16937
16938 PR tree-optimization/39799
16939 * tree-inline.c (remap_ssa_name): Initialize variable only if
16940 SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
16941
16942 2010-06-30 Nathan Froyd <froydnj@codesourcery.com>
16943
16944 * c-parser.c (c_parser_omp_for_loop): Use a VEC for for_block.
16945
16946 2010-06-30 Richard Guenther <rguenther@suse.de>
16947
16948 PR target/44722
16949 * config/i386/i386.md (peephole2 for fix:SSEMODEI24): Guard
16950 against oscillation with reverse peephole2.
16951
16952 2010-06-30 H.J. Lu <hongjiu.lu@intel.com>
16953
16954 PR target/44721
16955 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
16956 Fix last commit.
16957
16958 2010-06-30 Nick Clifton <nickc@redhat.com>
16959
16960 * config/rx/rx-modes.def: New file.
16961 * config/rx/rx.h (FIRST_PSEUDO_REGISTER): Increase to 17.
16962 (CC_REGNUM): Define.
16963 (FIXED_REGISTERS, CALL_USED_REGISTERS, REGISTER_NAMES): Add cc
16964 register.
16965 (CC_NO_CARRY, NOTICE_UPDATE_CC): Delete.
16966 (SELECT_CC_MODE): Define.
16967 * config/rx/rx.md (CC_REG): Define. Update all patterns to use
16968 (reg:CC CC_REG) instead of (cc0).
16969 (attr "cc"): Delete.
16970 (cbranchsi4): Do not split compare and branch here. Instead move
16971 it to...
16972 (cbranchsi4_<code>): ... here. New patterns.
16973 (cmpsi): Call rx-compare_redundant to find out if it is necessary
16974 to emit the compare instruction.
16975 * config/rx/rx.c (rx_gen-cond_branch_template): Remove tests of
16976 cc_status flags.
16977 (rx_get_stack_layout): Iterate up to before CC_REGNUM not
16978 FIRST_PSEUDO_REGNUM.
16979 (rx_expand_prologue, rx_expand_epilogue): Likewise.
16980 (rx_notice_update_cc): Delete.
16981 (rx_cc_modes_compatible): New function.
16982 (flags_needed_for_conditional): New function.
16983 (flags_from_mode): New function.
16984 (rx_compare_redundant): New function - scans backwards through
16985 insn list to find out if condition flags are already set correctly.
16986 (TARGET_CC_MODES_COMPATIBLE): Define.
16987 * config/rx/rx-protos.h (rx_compare_redundant): Prototype.
16988
16989 * config/rx/rx.h (BRANCH_COST): Define.
16990 (REGISTER_MOVE_COST): Define.
16991 * config/rx/predicates (rx_source_operand): Allow all constant types.
16992 * config/rx/rx.md (addsi3): Add alternative for swapped operands.
16993 (tstsi4): New pattern.
16994 * config/rx/rx.c (rx_memory_move_cost): Define.
16995 (TARGET_MEMORY_MOVE_COST): Define.
16996
16997 2010-06-30 Manuel López-Ibáñez <manu@gcc.gnu.org>
16998
16999 * tree.h (block_may_fallthru): Declare here.
17000 * tree-flow.h (block_may_fallthru): Do not declare here.
17001 * c-typeck.c: Do not include tree-flow.h. Include gimple.h and
17002 bitmap.h
17003 * Makefile.in (c-typeck.o): Update dependencies.
17004
17005 2010-06-30 Jakub Jelinek <jakub@redhat.com>
17006
17007 PR debug/44694
17008 * cselib.h (cselib_preserve_cfa_base_value): Add regno argument.
17009 * cselib.c (cfa_base_preserved_regno): New static variable.
17010 (cselib_reset_table): Don't reset cfa_base_preserved_regno instead
17011 of REGNO (cfa_base_preserved_val->locs->loc).
17012 (cselib_preserve_cfa_base_value): Add regno argument, set
17013 cfa_base_preserved_regno to it.
17014 (cselib_invalidate_regno): Allow removal of registers other than
17015 cfa_base_preserved_regno from cfa_base_preserved_val.
17016 (cselib_finish): Set cfa_base_preserved_regno to INVALID_REGNUM.
17017 * var-tracking.c (adjust_mems): Replace sp or hfp even outside
17018 of MEM addresses, if not on LHS.
17019 (reverse_op): Don't add reverse ops for cfa_base_rtx.
17020 (vt_init_cfa_base): Adjust cselib_preserve_cfa_base_value caller.
17021
17022 2010-06-30 Bernd Schmidt <bernds@codesourcery.com>
17023
17024 * recog.c (peep2_do_rebuild_jump_labels, peep2_do_cleanup_cfg): New
17025 static variables.
17026 (peep2_buf_position): New static function.
17027 (peep2_regno_dead_p, peep2_reg_dead_p, peep2_find_free_register,
17028 peephole2_optimize): Use it.
17029 (peep2_attempt, peep2_update_life): New static functions, broken out
17030 of peephole2_optimize.
17031 (peep2_fill_buffer): New static function.
17032 (peephole2_optimize): Change the main loop to try to fill the buffer
17033 with the maximum number of insns before matching them against
17034 peepholes. Use a forward scan. Remove special case for targets with
17035 conditional execution.
17036 * genrecog.c (change_state): Delete dead code.
17037 * config/i386/i386.md (peephole2 for arithmetic ops with memory):
17038 Rewrite so as not to expect the second insn to have had a peephole
17039 applied yet.
17040
17041 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
17042
17043 * genhooks.c (emit_findices): Cast field precision to int.
17044 (emit_documentation): Likewise.
17045
17046 2010-06-29 Jakub Jelinek <jakub@redhat.com>
17047
17048 PR tree-optimization/43801
17049 * cgraph.c (cgraph_create_virtual_clone): Clear DECL_SECTION_NAME
17050 if old_decl was DECL_ONE_ONLY.
17051
17052 PR debug/44668
17053 * dwarf2out.c (add_accessibility_attribute): New function.
17054 (gen_subprogram_die, gen_variable_die, gen_field_die): Use it
17055 instead of adding DW_AT_accessibility manually.
17056 (gen_enumeration_type_die, gen_struct_or_union_type_die,
17057 gen_typedef_die): Use it.
17058
17059 2010-06-29 Douglas B Rupp <rupp@gnat.com>
17060
17061 * vmsdbgout.c (full_name): Just output the file name if not native.
17062
17063 2010-06-29 Douglas B Rupp <rupp@gnat.com>
17064
17065 * vmsdbgout.c (func_table): Replace with VEC func{nam,num}_tables.
17066 (funcnam_table): New static table.
17067 (funcnum_table): New static table.
17068 (write_rtnbeg): Write value saved in funcnum_table.
17069 (write_rtnend): Write value saved in funcnum_table.
17070 (vmsdbgout_begin_function): Save current function info in
17071 (vmsdbgout_init): Initialize func{nam,num}_tables. Minor reformatting.
17072 (vmsdbgout_finish): Iterate over funcnum_table.
17073
17074 2010-06-29 Douglas B Rupp <rupp@gnat.com>
17075
17076 * vmsdbgout.c (vmsdbgout_begin_epilogue): Declare
17077 (vmsdbgout_type_decl): Declare
17078 (vmsdbg_debug_hooks): Add entry for type_decl and begin_epilogue.
17079 (FUNC_EPILOGUE_LABEL): New macro
17080 (vmsdbgout_begin_epilogue): New function.
17081 (vmsdbgout_type_decl): New function.
17082
17083 2010-06-29 Douglas B Rupp <rupp@gnat.com>
17084
17085 * vmsdbg.h: Update copyright.
17086
17087 2010-06-29 Douglas B Rupp <rupp@gnat.com>
17088
17089 * vmsdbg.h (DST_K_TBG): New DST constant.
17090 * vmsdbgout.c (addr_const_to_string): Removed, not referenced.
17091 (write_modbeg): Cast module_language to avoid warning.
17092 (write_rtnbeg): Use DST_K_TBG vice magic mystery number.
17093
17094 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
17095
17096 PR other/44034
17097 * target.def, doc/tm.texi.in, genhooks.c: New files.
17098 * target.h: Instead of defining individual hook members,
17099 define DEFHOOKPOD / DEFHOOK / DEFHOOK_UNDOC / HOOKSTRUCT and
17100 include target.def.
17101 * target-def.h: Instead of defining individual hook initializers,
17102 include target-hooks-def.h.
17103 * df-scan.c, haifa-sched.c, sel-sched.c: Rename targetm members:
17104 targetm.live_on_entry -> targetm.extra_live_on_entry
17105 targetm.sched.md_finish ->targetm.sched.finish
17106 targetm.sched.md_init -> targetm.sched.init
17107 targetm.sched.md_init_global -> targetm.sched.init_global
17108 targetm.asm_out.unwind_label -> targetm.asm_out.emit_unwind_label
17109 targetm.asm_out.except_table_label ->
17110 targetm.asm_out.emit_except_table_label
17111 targetm.asm_out.visibility -> targetm.asm_out.assemble_visibility
17112 targetm.target_help -> targetm.help
17113 targetm.vectorize.builtin_support_vector_misalignment ->
17114 targetm.vectorize.support_vector_misalignment
17115 targetm.file_start_app_off -> targetm.asm_file_start_app_off
17116 targetm.file_start_file_directive ->
17117 targetm.asm_file_start_file_directive
17118 * dwarf2out.c, opts.c, tree-vect-data-refs.c, except.c: Likewise.
17119 * varasm.c, config/alpha/alpha.c, config/cris/cris.c: Likewise.
17120 * config/spu/spu.c, config/ia64/ia64.c: Rename target macros:
17121 TARGET_VECTOR_ALIGNMENT_REACHABLE ->
17122 TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE
17123 TARGET_SUPPORT_VECTOR_MISALIGNMENT ->
17124 TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT
17125 TARGET_UNWIND_EMIT -> TARGET_ASM_UNWIND_EMIT
17126 * config/rs6000/rs6000.c, config/arm/arm.c: Likewise.
17127 * Makefile.in (TARGET_H): Depend on target.def.
17128 (TARGET_DEF_H): Depend on target-hooks-def.h.
17129 (target-hooks-def.h, tm.texi, s-target-hooks-def-h): New rules.
17130 (s-tm-texi, build/genhooks.o, build/genhooks): Likewise.
17131 * doc/tm.texi: Regenerate.
17132
17133 * Makefile.in (s-tm-texi): Remove stray tab / rule.
17134
17135 * config/m68k/m68k.c (targetm.sched.init_global): Update comment.
17136 (targetm.sched.init): Likewise.
17137
17138 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
17139
17140 PR bootstrap/44713
17141 * config/i386/i386.c (type_natural_mode): Const-ify CUM parameter.
17142 (function_arg_advance_32): Const-ify TYPE parameter.
17143 (function_arg_advance_64): Likewise. Change type of NAMED to bool.
17144 (ix86_function_arg_advance): Change type of NAMED to bool.
17145 (function_arg_32): Const-ify CUM and TYPE parameters.
17146 (function_arg_64): Likewise. Change type of NAMED to bool.
17147 (function_arg_ms_64): Const-ify CUM parameter. Change type of NAMED
17148 to bool.
17149 (ix86_function_arg): Change type of NAMED to bool.
17150 (ix86_setup_incoming_varargs): Call ix86_function_arg_advance. Pass
17151 last argument as a bool.
17152
17153 2010-06-29 Joern Rennecke <joern.rennecke@embecosm.com>
17154
17155 * doc/tm.texi (TARGET_OPTION_OVERRIDE): Document.
17156 (OVERRIDE_OPTIONS): Add note of obsolescence.
17157 Replace references with references to TARGET_OPTION_OVERRIDE.
17158 (Except for C_COMMON_OVERRIDE_OPTIONS, which remains similar to
17159 the macro).
17160 * targhooks.c (default_target_option_override): New function.
17161 * targhooks.h (default_target_option_override): Declare.
17162 * target.h (struct gcc_target): Add override member to
17163 target_option member.
17164 * toplev.c (process_options): Replace OVERRIDE_OPTIONS use with
17165 targetm.target_option.override call.
17166 * target-def.h (TARGET_OPTION_OVERRIDE): Define.
17167 (TARGET_OPTION_HOOKS): Add TARGET_OPTION_OVERRIDE.
17168
17169 2010-06-29 Jan Hubicka <jh@suse.cz>
17170
17171 * tree-inline.c: Replace incomming by incomin and clonning by cloning.
17172
17173 2010-06-29 Jan Hubicka <jh@suse.cz>
17174
17175 * predict.c (propagate_freq): Clear EXIT_BLOCK_PTR frequency if it is
17176 unreachable.
17177 (rebuild_frequencies): New function.
17178 * predict.h (rebuild_frequencies): Declare.
17179 * tree-inline.c (copy_cfg_body): Compute properly count & frequency of
17180 entry block and edge reaching new_entry.
17181 (tree_function_versioning): When doing partial cloning, rebuild
17182 frequencies when done.
17183 * passes.c (execute_function_todo): Use rebild_frequencies.
17184
17185 2010-06-29 Richard Guenther <rguenther@suse.de>
17186
17187 * tree-dfa.c (dump_variable): Remove noalias_state dumping.
17188 * tree-flow.h (enum noalias_state): Remove.
17189 (struct var_ann_d): Remove noalias_state member.
17190
17191 2010-06-29 Bernd Schmidt <bernds@codesourcery.com>
17192
17193 PR target/43902
17194 * config/arm/arm.md (maddsidi4, umaddsidi4): New expanders.
17195 (maddhisi4): Renamed from mulhisi3addsi. Operands renumbered.
17196 (maddhidi4): Likewise.
17197
17198 Revert parts of the change for PR25130.
17199 * cse.c (exp_equiv_p): For MEMs, if for_gcse, only compare
17200 MEM_ALIAS_SET.
17201
17202 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
17203
17204 * calls.c, dse.c, expr.c, function.c: Call targetm.calls.function_arg,
17205 targetm.calls.function_incoming_arg, and
17206 targetm.calls.function_arg_advance instead of FUNCTION_ARG,
17207 FUNCTION_INCOMING_ARG, and FUNCTION_ARG_ADVANCE, respectively.
17208 * target.h (struct gcc_target): Add function_arg_advance,
17209 function_arg, and function_incoming_arg fields.
17210 * target-def.h (TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG):
17211 (TARGET_FUNCTION_INCOMING_ARG): Define.
17212 (TARGET_CALLS): Add TARGET_FUNCTION_ARG_ADVANCE, TARGET_FUNCTION_ARG,
17213 and TARGET_FUNCTION_INCOMING_ARG.
17214 * targhooks.h (default_function_arg_advance): Declare.
17215 (default_function_arg, default_function_incoming_arg): Declare.
17216 * targhooks.c (default_function_arg_advance): New function.
17217 (default_function_arg, default_function_incoming_arg): New function.
17218 * config/i386/i386.c (function_arg_advance): Rename to...
17219 (ix86_function_arg_advance): ...this. Make static.
17220 (function_arg): Rename to...
17221 (ix86_function_arg): ...this. Make static.
17222 (TARGET_FUNCTION_ARG_ADVANCE): Define.
17223 (TARGET_FUNCTION_ARG): Define.
17224 * config/i386/i386.h (FUNCTION_ARG_ADVANCE): Delete.
17225 (FUNCTION_ARG): Delete.
17226 * config/i386/i386-protos.h (function_arg_advance): Delete prototype.
17227 (function_arg): Delete prototype.
17228
17229 2010-06-29 Nathan Froyd <froydnj@codesourcery.com>
17230
17231 * reginfo.c (init_reg_sets_1): Adjust comments.
17232 * combine-stack-adj.c (rest_of_handle_stack_adjustments): Likewise.
17233 * calls.c (prepare_call_address): Likewise.
17234 (emit_call_1): Use targetm.calls.return_pops_args.
17235 (expand_call): Likewise.
17236 * function.c (assign_parms): Likewise.
17237 * system.h (RETURN_POPS_ARGS): Add to #pragma poison list.
17238 * target.h (struct gcc_target) [struct calls]: Add
17239 return_pops_args field.
17240 * targhooks.h (default_return_pops_args): Declare.
17241 * targhooks.c (default_return_pops_args): Define.
17242 * target-def.h (TARGET_RETURN_POPS_ARGS): Define.
17243 (TARGET_CALLS): Add TARGET_RETURN_POPS_ARGS.
17244 * doc/tm.texi (RETURN_POPS_ARGS): Rename to...
17245 (TARGET_RETURN_POPS_ARGS): ...this. Use deftypefn. Adjust
17246 documentation.
17247 * config/alpha/alpha.h (RETURN_POPS_ARGS): Delete.
17248 * config/arc/arc.h (RETURN_POPS_ARGS): Likewise.
17249 * config/arm/arm.h (RETURN_POPS_ARGS): Likewise.
17250 * config/avr/avr.h (RETURN_POPS_ARGS): Likewise.
17251 * config/bfin/bfin.h (RETURN_POPS_ARGS): Likewise.
17252 * config/cris/cris.h (RETURN_POPS_ARGS): Likewise.
17253 * config/crx/crx.h (RETURN_POPS_ARGS): Likewise.
17254 * config/fr30/fr30.h (RETURN_POPS_ARGS): Likewise.
17255 * config/frv/frv.h (RETURN_POPS_ARGS): Likewise.
17256 * config/h8300/h8300.h (RETURN_POPS_ARGS): Likewise.
17257 * config/ia64/ia64.h (RETURN_POPS_ARGS): Likewise.
17258 * config/iq2000/iq2000.h (RETURN_POPS_ARGS): Likewise.
17259 * config/lm32/lm32.h (RETURN_POPS_ARGS): Likewise.
17260 * config/m32c/m32c.h (RETURN_POPS_ARGS): Likewise.
17261 * config/m32r/m32r.h (RETURN_POPS_ARGS): Likewise.
17262 * config/m68hc11/m68hc11.h (RETURN_POPS_ARGS): Likewise.
17263 * config/mcore/mcore.h (RETURN_POPS_ARGS): Likewise.
17264 * config/mep/mep.h (RETURN_POPS_ARGS): Likewise.
17265 * config/mips/mips.h (RETURN_POPS_ARGS): Likewise.
17266 * config/mmix/mmix.h (RETURN_POPS_ARGS): Likewise.
17267 * config/mn10300/mn10300.h (RETURN_POPS_ARGS): Likewise.
17268 * config/moxie/moxie.h (RETURN_POPS_ARGS): Likewise.
17269 * config/pa/pa.h (RETURN_POPS_ARGS): Likewise.
17270 * config/pdp11/pdp11.h (RETURN_POPS_ARGS): Likewise.
17271 * config/picochip/picochip.h (RETURN_POPS_ARGS): Likewise.
17272 * config/rs6000/rs6000.h (RETURN_POPS_ARGS): Likewise.
17273 * config/rx/rx.h (RETURN_POPS_ARGS): Likewise.
17274 * config/s390/s390.h (RETURN_POPS_ARGS): Likewise.
17275 * config/score/score.h (RETURN_POPS_ARGS): Likewise.
17276 * config/sh/sh.h (RETURN_POPS_ARGS): Likewise.
17277 * config/sparc/sparc.h (RETURN_POPS_ARGS): Likewise.
17278 * config/spu/spu.h (RETURN_POPS_ARGS): Likewise.
17279 * config/stormy16/stormy16.h (RETURN_POPS_ARGS): Likewise.
17280 * config/v850/v850.h (RETURN_POPS_ARGS): Likewise.
17281 * config/xtensa/xtensa.h (RETURN_POPS_ARGS): Likewise.
17282 * config/i386/i386-protos.h (ix86_return_pops_args): Delete.
17283 * config/i386/i386.h (RETURN_POPS_ARGS): Delete.
17284 * config/i386/i386.c (ix86_return_pops_args): Make static.
17285 Constify arguments.
17286 (TARGET_RETURN_POPS_ARGS): Define.
17287 * config/m68k/m68k.h (RETURN_POPS_ARGS): Move to...
17288 * config/m68k/m68k.c (m68k_return_pops_args): ...here. New function.
17289 (TARGET_RETURN_POPS_ARGS): Define.
17290 * config/vax/vax.h (RETURN_POPS_ARGS): Move to...
17291 * config/vax/vax.c (vax_return_pops_args): ...here. New function.
17292 (TARGET_RETURN_POPS_ARGS): Define.
17293
17294 2010-06-29 Richard Guenther <rguenther@suse.de>
17295
17296 PR middle-end/44667
17297 * tree-inline.c (initialize_inlined_parameters): Make sure
17298 to remap the inlined parameter variable substitutions types.
17299
17300 2010-06-29 Eric Botcazou <ebotcazou@adacore.com>
17301
17302 PR rtl-optimization/44659
17303 * combine.c (make_compound_operation) <SUBREG>: Do not return the
17304 result of force_to_mode if it partially re-expanded the compound.
17305
17306 2010-06-28 Jan Hubicka <jh@suse.cz>
17307
17308 PR middle-end/44671
17309 * ipa-split.c (test_nonssa_use, mark_nonssa_use): Check also uses of
17310 RESULT_DECL.
17311
17312 2010-06-28 Anatoly Sokolov <aesok@post.ru>
17313
17314 * double-int.h (force_fit_type_double): Remove declaration.
17315 * double-int.c (force_fit_type_double): Move to tree.c.
17316 * tree.h (force_fit_type_double): Declare.
17317 * tree.h (force_fit_type_double): Moved from double-int.c. Use
17318 double_int type for 'cst' argument. Use double_int_fits_to_tree_p and
17319 double_int_to_tree instead of fit_double_type and build_int_cst_wide.
17320 * convert.c (convert_to_pointer): Adjust call to
17321 force_fit_type_double.
17322 * tree-vrp.c (extract_range_from_assert,
17323 extract_range_from_unary_expr): Adjust call to force_fit_type_double.
17324 * fold-const.c: Update comment.
17325 (int_const_binop, fold_convert_const_int_from_int,
17326 fold_convert_const_int_from_real, fold_convert_const_int_from_fixed,
17327 extract_muldiv_1, fold_div_compare, fold_sign_changed_comparison,
17328 fold_unary_loc, fold_negate_const, fold_abs_const, fold_not_const,
17329 round_up_loc): Adjust call to force_fit_type_double.
17330
17331 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17332
17333 * config/rs6000/rs6000.h (PROCESSOR_TITAN): Declare.
17334
17335 2010-06-28 Martin Jambor <mjambor@suse.cz>
17336
17337 * tree-sra.c (convert_callers): New parameter, change fndecls of
17338 recursive calls.
17339 (modify_function): Pass the old decl to convert_callers.
17340
17341 2010-06-28 Martin Jambor <mjambor@suse.cz>
17342
17343 * ipa-cp.c (ipcp_init_cloned_node): Replace calls to
17344 ipa_check_create_node_params and ipa_initialize_node_params with
17345 checking asserts they are not necessary.
17346
17347 2010-06-28 Jan Hubicka <jh@suse.cz>
17348
17349 PR tree-optimization/44687
17350 * ipa-split.c (split_function): Use DECL_RESULT to store return value.
17351
17352 2010-06-28 Martin Jambor <mjambor@suse.cz>
17353
17354 PR c++/44535
17355 * gimple-fold.c (get_first_base_binfo_with_virtuals): New function.
17356 (gimple_get_relevant_ref_binfo): Use get_first_base_binfo_with_virtuals
17357 instead of BINFO_BASE_BINFO.
17358
17359 2010-06-28 Michael Matz <matz@suse.de>
17360
17361 PR middle-end/44592
17362 * gimple-fold.c (gimplify_and_update_call_from_tree): Maintain
17363 proper VDEF chain for intermediate stores in the sequence.
17364
17365 2010-06-28 Jan Hubicka <jh@suse.cz>
17366
17367 PR tree-optimization/44357
17368 * ipa-inline.c (add_new_edges_to_heap): Do not add edges to
17369 uninlinable functions.
17370
17371 2010-06-28 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
17372
17373 * config.gcc (powerpc*-*-*): Handle titan.
17374 * config/rs6000/rs6000.c (titan_cost): New costs.
17375 (rs6000_override_options): Add "titan" to processor_target_table.
17376 Add Titan to branch alignment logic.
17377 Correctly set rs6000_cost for titan.
17378 * config/rs6000/rs6000.md (cpu): Add titan. Include "titan.md".
17379 * config/rs6000/titan.md: New file.
17380 * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mcpu=titan.
17381
17382 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
17383
17384 * tree-browser.c (TB_history_stack): Convert to a VEC.
17385 (TB_SET_HEAD): Adjust for new type of TB_history_stack.
17386 (TB_history_prev): Likewise.
17387
17388 2010-06-28 Nathan Froyd <froydnj@codesourcery.com>
17389
17390 * vec.h (vec_heap_free): Add parentheses around free.
17391
17392 2010-06-28 Steven Bosscher <steven@gcc.gnu.org>
17393
17394 * system.h: Poison GCC_EXCEPT_H for front-end files.
17395
17396 * langhooks.h (struct lang_hooks): Add eh_protect_cleanup_actions
17397 langhook.
17398 * langhooks-def.h (LANG_HOOKS_EH_PROTECT_CLEANUP_ACTIONS) New.
17399 Define to NULL by default.
17400 * except.h: Define GCC_EXCEPT_H.
17401 (doing_eh): Remove prototype.
17402 (init_eh, init_eh_for_function): Move prototypes to toplev.h.
17403 (lang_protect_cleanup_actions): Remove.
17404 * except.c (lang_protect_cleanup_actions): Remove.
17405 (doing_eh): Remove.
17406 (gen_eh_region): Don't check doing_eh here.
17407 * toplev.h (init_eh, init_eh_for_function_): Moved from except.h.
17408 * tree-eh.c (honor_protect_cleanup_actions): Use new langhook
17409 instead of lang_protect_cleanup_actions.
17410 * omp-low.c (maybe_catch_exception): Likewise.
17411 * Makefile.in: Update dependencies.
17412
17413 2010-06-28 Bingfeng Mei <bmei@broadcom.com>
17414
17415 * cgraph.h (struct varpool_node): new used_from_object_file flag.
17416 (struct cgraph_local_info): new used_from_object_file flag.
17417 * cgraph.c (dump_cgraph_node): dump used_from_object_file flag.
17418 (cgraph_clone_node): initialize used_from_object_file.
17419 (cgraph_create_virtual_clone): initialize used_from_object_file.
17420 * lto-symbtab.c (lto_symtab_merge_decls_1): Set
17421 used_from_object_file flags for symbols of LDPR_PREVAILING_DEF
17422 when compiling with -fwhole-program.
17423 (lto_symtab_resolve_symbols) Use LDPR_PREVAILING_DEF_IRONLY for
17424 internal resolver.
17425 * ipa.c (function_and_variable_visibility): Set externally_visible
17426 flag of varpool_node if used_from_object_file flag is set.
17427 (cgraph_externally_visible_p): check used_from_object_file flag.
17428 * doc/invoke.texi (-fwhole-program option): Change description of
17429 externally_visible attribute accordingly.
17430 * doc/extend.texi (externally_visible): Ditto.
17431
17432 2010-06-27 Jan Hubicka <jh@suse.cz>
17433
17434 * params.def (max-inline-insns-auto): Default to 40.
17435 * doc/invoke.texi (max-inline-insns-auto): Document the change.
17436
17437 2010-06-27 Jan Hubicka <jh@suse.cz>
17438
17439 PR middle-end/44671
17440 PR middle-end/44686
17441 * tree.c (build_function_decl_skip_args): Clear DECL_BUILT_IN on
17442 signature change.
17443 * ipa-split.c (split_function): Always clear DECL_BUILT_IN.
17444 * ipa-prop.c (ipa_modify_formal_parameters): Likewise.
17445
17446 2010-06-27 Anatoly Sokolov <aesok@post.ru>
17447
17448 * target.h (struct gcc_target): Add register_move_cost field.
17449 * target-def.h (TARGET_REGISTER_MOVE_COST): New.
17450 (TARGET_INITIALIZER): Use TARGET_REGISTER_MOVE_COST.
17451 * targhooks.c (default_register_move_cost): New function.
17452 * targhooks.h (default_register_move_cost): Declare function.
17453 * defaults.h (REGISTER_MOVE_COST): Delete.
17454 * ira-int.h (ira_register_move_cost): Update comment.
17455 * ira.c (ira_register_move_cost): Update comment.
17456 * reload.h (register_move_cost): Declare.
17457 * reginfo.c (register_move_cost): New function.
17458 (move_cost): Update comment.
17459 (init_move_cost, memory_move_secondary_cost): Replace
17460 REGISTER_MOVE_COST with register_move_cost.
17461 * postreload.c (reload_cse_simplify_set): (Ditto.).
17462 * reload.c (find_valid_class, find_reloads): (Ditto.).
17463 * reload1.c (choose_reload_regs): (Ditto.).
17464 * doc/tm.texi (TARGET_REGISTER_MOVE_COST): New.
17465 (REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Update documentation.
17466 * doc/md.texi (can_create_pseudo_p): Update documentation.
17467
17468 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
17469 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
17470 * config/i386/i386.h (ix86_memory_move_cost): Make static.
17471 (TARGET_MEMORY_MOVE_COST): Define.
17472
17473 * config/ia64/ia64.h (MEMORY_MOVE_COST): Remove macro.
17474 * config/ia64/ia64-protos.h (int ia64_memory_move_cost): Remove.
17475 * config/ia64/ia64.h (ia64_memory_move_cost): Make static.
17476 (TARGET_MEMORY_MOVE_COST): Define.
17477
17478 2010-06-27 Richard Guenther <rguenther@suse.de>
17479
17480 PR tree-optimization/44683
17481 * tree-ssa-dom.c (record_edge_info): Record equivalences for the
17482 false edge from the inverted condition.
17483
17484 2010-06-27 Richard Guenther <rguenther@suse.de>
17485
17486 PR middle-end/44684
17487 * tree-ssa-alias.c (refs_may_alias_p_1): Allow SSA name refs.
17488 (stmt_may_clobber_ref_p_1): Do not bother to call the oracle
17489 for register LHS. Or non-store assignments.
17490
17491 2010-06-26 Eric Botcazou <ebotcazou@adacore.com>
17492
17493 * config/sparc/sparc.c (sparc_emit_set_const32): Make static.
17494 (sparc_emit_set_const64): Likewise. Remove disabled code.
17495 * config/sparc/sparc-protos.h (sparc_emit_set_const32): Delete.
17496 (sparc_emit_set_const64): Likewise.
17497
17498 2010-06-26 Catherine Moore <clm@codesourcery.com>
17499
17500 * config/mips/mips.md (alu_type): New attribute.
17501 (type): Infer type from alu_type.
17502 (*add<mode>3, *add<mode>3_mips16, *addsi3_extended,
17503 *baddu_si_eb, *baddu_si_el, *baddu_di, sub<mode>3,
17504 *subsi3_extended, negsi2, negdi2, *low<mode>,
17505 *low<mode>_mips16, *ior<mode>3, *ior<mode>3_mips16,
17506 xor<mode>3, *nor<mode>3,
17507 *zero_extend<GPR:mode>_trunc<SHORT:mode>,
17508 *zero_extendhi_truncqi): Set alu_type instead of type.
17509
17510 2010-06-26 Douglas B Rupp <rupp@gnat.com>
17511
17512 * config/alpha/alpha.c (alpha_need_linkage): Adjust
17513 splay_tree_new_ggc call.
17514 (alpha_use_linkage): Likewise.
17515
17516 2010-06-26 Joseph Myers <joseph@codesourcery.com>
17517
17518 * collect2.c (main): Remove SWITCHES_NEED_SPACES conditional.
17519 * doc/tm.texi (SWITCHES_NEED_SPACES): Don't document.
17520 * gcc.c (SWITCHES_NEED_SPACES, switches_need_spaces): Remove.
17521 (static_specs): Remove switches_need_spaces.
17522 (process_command, do_self_spec): Hardcode handling "-o" instead of
17523 checking switches_need_spaces.
17524 * system.h (SWITCHES_NEED_SPACES): Poison.
17525
17526 2010-06-26 Richard Guenther <rguenther@suse.de>
17527
17528 PR tree-optimization/44393
17529 * tree-loop-distribution.c (generate_loops_for_partition): Fix
17530 stmt removal and VOP renaming.
17531 (generate_memset_zero): Remove redundant stmt updating.
17532 * tree-flow.h (mark_virtual_ops_in_bb): Remove.
17533 * tree-cfg.c (mark_virtual_ops_in_bb): Likewise.
17534
17535 2010-06-26 Jan Hubicka <jh@suse.cz>
17536
17537 * ipa-split.c (consider_split): PHI in entry block is OK as long as all
17538 edges comming from header are equivalent.
17539 (visit_bb): Handle PHIs correctly.
17540 * tree-inline.c (copy_phis_for_bb): Be able to copy
17541 PHI from entry edge.
17542 (copy_cfg_body): Produce edge from entry BB before copying PHIs.
17543
17544 2010-06-26 Richard Guenther <rguenther@suse.de>
17545
17546 PR middle-end/44674
17547 * tree-ssa-alias.c (refs_may_alias_p_1): Allow all kind of
17548 decls. Handle LABEL_DECLs like FUNCTION_DECLs.
17549
17550 2010-06-26 Joseph Myers <joseph@codesourcery.com>
17551
17552 * gcc.c (n_switches_alloc, n_infiles_alloc, alloc_infile,
17553 add_infile, alloc_switch): New.
17554 (process_command): Remove variable lang_n_infiles. Process
17555 options in a single pass. Use new functions for allocating
17556 infiles and switches arrays. Properly skip operands of
17557 -Xpreprocessor and -Xassembler.
17558
17559 2010-06-26 Jan Hubicka <jh@suse.cz>
17560
17561 PR middle-end/44671
17562 * cgraphunit.c (cgraph_function_versioning): Remove wrong
17563 cgraph_make_decl_local call; fix typo copying RTL data.
17564
17565 2010-06-25 DJ Delorie <dj@redhat.com>
17566
17567 * config/m32c/m32c-protos.h (m32c_note_pragma_address): Declare.
17568 (m32c_output_aligned_common): Likewise.
17569 * config/m32c/m32c.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
17570 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
17571 * config/m32c/m32c-pragma.c (m32c_pragma_address): New.
17572 (m32c_register_pragmas): Register it.
17573 * config/m32c/m32c.c (m32c_get_pragma_address): New.
17574 (m32c_insert_attributes): Set #pragma address decls volatile.
17575 (pragma_entry_eq): New.
17576 (pragma_entry_hash): New.
17577 (m32c_note_pragma_address): New.
17578 (m32c_get_pragma_address): New.
17579 (m32c_output_aligned_common): New.
17580 * doc/extend.texi: Document the new pragma.
17581
17582 * config/m32c/m32c.c (m32c_illegal_subreg_p): Reject illegal MEMs
17583 also.
17584 * config/m32c/predicates.md (m32c_any_operand): Check the code
17585 instead of memory_operand so as to allow matching volatile MEMs.
17586 (m32c_nonimmediate_operand): Likewise.
17587 (mra_operand): Allow volatiles.
17588
17589 2010-06-25 Alexandre Oliva <aoliva@redhat.com>
17590
17591 PR debug/44610
17592 * simplify-rtx.c (delegitimize_mem_from_attrs): Don't use a base
17593 address if the offset is unknown.
17594
17595 2010-06-25 Douglas B Rupp <rupp@gnat.com>
17596
17597 * dwarf2out.c (dwarf2out_vms_debug_main_pointer): New function.
17598 * dwarf2out.h (dwarf2out_vms_debug_main_pointer): Declare new function.
17599 * config/ia64/ia64-protos.h (ia64_start_function): Declare.
17600 * config/ia64/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Move contents
17601 to ia64_start_function. Invoke it.
17602 * config/ia64/ia64.c (ia64_start_function): Call new function
17603 dwarf2out_vms_debug_main_pointer.
17604
17605 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
17606
17607 * tree-if-conv.c (insert_gimplified_predicates): Do not insert
17608 statements computing the true predicate.
17609
17610 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
17611
17612 * tree-if-conv.c (init_bb_predicate): Initialize the predicate
17613 to boolean_true_node.
17614 (reset_bb_predicate): New.
17615 (predicate_bbs): Call reset_bb_predicate.
17616
17617 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
17618
17619 * tree-if-conv.c (combine_blocks): Remove FIXME comment.
17620 (tree_if_conversion): Returns true when something has been changed.
17621 (main_tree_if_conversion): Return TODO_cleanup_cfg when if-conversion
17622 changed something.
17623
17624 2010-06-25 Sebastian Pop <sebastian.pop@amd.com>
17625
17626 * Makefile.in (tree-if-conv.o): Depends on DBGCNT_H.
17627 * dbgcnt.def (if_conversion_tree): New DEBUG_COUNTER.
17628 * tree-if-conv.c: Include dbgcnt.h.
17629 (tree_if_conversion): Use if_conversion_tree to count the number of
17630 if-convertible loops.
17631
17632 2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
17633
17634 * common.opt (fprefetch-loop-arrays): Re-define
17635 -fprefetch-loop-arrays as a tri-state option with the initial
17636 value of -1.
17637 * tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
17638 pass only when flag_prefetch_loop_arrays > 0.
17639 * toplev.c (process_options): Note that, with tri-states,
17640 flag_prefetch_loop_arrays>0 means prefetching is enabled.
17641 * config/i386/i386.c (override_options): Enable prefetching at -O3
17642 for a set of CPUs that sw prefetching is helpful.
17643 (software_prefetching_beneficial_p): New. Return TRUE if software
17644 prefetching is beneficial for the given CPU.
17645
17646 2010-06-25 H.J. Lu <hongjiu.lu@intel.com>
17647
17648 PR rtl-optimization/44326
17649 * implicit-zee.c (find_removable_zero_extends): Replace
17650 INSN_P with NONDEBUG_INSN_P.
17651
17652 2010-06-25 Martin Jambor <mjambor@suse.cz>
17653
17654 * ipa-prop.h (struct ipa_param_descriptor): Removed the modified flag.
17655 (struct ipa_node_params): Removed the modification_analysis_done flag.
17656 (ipa_is_param_modified): Removed.
17657 (ipa_analyze_node): Declare.
17658 (ipa_compute_jump_functions): Remove declaration.
17659 (ipa_count_arguments): Likewise.
17660 (ipa_detect_param_modifications): Likewise.
17661 (ipa_analyze_params_uses): Likewise.
17662 * ipa-prop.c (struct param_analysis_info): New type.
17663 (visit_store_addr_for_mod_analysis): Removed.
17664 (visit_load_for_mod_analysis): Renamed to visit_ref_for_mod_analysis,
17665 moved down in the file.
17666 (ipa_detect_param_modifications): Merged into ipa_analyze_params_uses.
17667 (ipa_count_arguments): Made static.
17668 (mark_modified): New function.
17669 (is_parm_modified_before_call): New function.
17670 (compute_pass_through_member_ptrs): New parameter parms_info, call
17671 is_parm_modified_before_call instead of ipa_is_param_modified.
17672 (ipa_compute_jump_functions_for_edge): New parameter parms_info, pass
17673 it to compute_pass_through_member_ptrs.
17674 (ipa_compute_jump_functions): New parameter parms_info, pass it to
17675 ipa_compute_jump_functions_for_edge. Call ipa_initialize_node_params
17676 on the callee if it is analyzed. Made static.
17677 (ipa_analyze_indirect_call_uses): New parameter parms_info, call
17678 is_parm_modified_before_call instead of ipa_is_param_modified.
17679 (ipa_analyze_call_uses): New parameter parms_info, pass it to
17680 ipa_analyze_indirect_call_uses.
17681 (ipa_analyze_stmt_uses): New parameter parms_info, pass it to
17682 ipa_analyze_call_uses.
17683 (ipa_analyze_params_uses): New parameter parms_info, pass it to
17684 ipa_analyze_stmt_uses. Also perform the used analysis. Made static.
17685 (ipa_analyze_node): New function.
17686 (ipa_print_node_params): Do not dump the modified flag.
17687 (ipa_write_node_info): Assert uses_analysis_done rather than streaming
17688 it. Do not stream the modified parameter flag.
17689 (ipa_read_node_info): Set uses_analysis_done to 1 instead of streaming
17690 it. Do not stream the modified parameter flag.
17691 * ipa-cp.c (ipcp_analyze_node): Removed.
17692 (ipcp_init_stage): Iterate only once over the nodes, analyze each one
17693 with only a call to ipa_analyze_node.
17694 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Analyze the
17695 node with only a call to ipa_analyze_node.
17696
17697 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
17698
17699 * doc/invoke.texi (-Wsuggest-attribute): Add item for noreturn.
17700
17701 2010-06-25 Jan Hubicka <jh@suse.cz>
17702
17703 * tree-pass.h (pass_split_functions): Declare.
17704 * opts.c (decode_options): Enable function splitting at -O2
17705 * timevar.def (TV_IPA_FNSPLIT): New macro.
17706 * ipa-split.c: New file.
17707 * common.opt (-fpartial-inlining): New flag.
17708 * Makefile.in (ipa-split.o): New object file.
17709 * passes.c (init_optimization_passes): Add ipa-split.
17710 * params.def (partial-inlining-entry-probability): New parameters.
17711 * doc/invoke.texi (-fpartial-inlining): New.
17712
17713 2010-06-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
17714
17715 PR 44665
17716 * tree-inline.c (gimple_expand_calls_inline): Fix typo in comment.
17717 * gimplify.c (is_gimple_reg_rhs_or_call): Likewise.
17718 (gimplify_expr): Likewise.
17719
17720 2010-06-25 Martin Jambor <mjambor@suse.cz>
17721
17722 * ipa-prop.c (determine_cst_member_ptr): Ignore non-clobbering
17723 statements instead of bailing out on them.
17724 (ipa_analyze_indirect_call_uses): Do not require that loads from the
17725 parameter are in the same BB as the condition. Update comments.
17726
17727 2010-06-25 Jakub Jelinek <jakub@redhat.com>
17728
17729 PR middle-end/43866
17730 * tree-ssa-loop-unswitch.c (tree_may_unswitch_on): If stmt is always
17731 true or always false, return NULL_TREE.
17732 (tree_unswitch_single_loop): Optimize conditions even when reaching
17733 max-unswitch-level parameter. If num > 0, optimize first all conditions
17734 using entry checks, then do still reachable block discovery and consider
17735 only conditions in still reachable basic blocks in the loop.
17736
17737 PR tree-optimization/44539
17738 * tree-cfgcleanup.c (fixup_noreturn_call): Call update_stmt even when
17739 the call doesn't have LHS, but has VDEF.
17740
17741 2010-06-25 Joseph Myers <joseph@codesourcery.com>
17742
17743 * config/pa/pa.h (MODIFY_TARGET_NAME): Remove.
17744 * doc/tm.texi (MODIFY_TARGET_NAME): Don't document.
17745 * gcc.c (enum add_del, struct modify_target, modify_target): Remove.
17746 (process_command): Remove code conditional on MODIFY_TARGET_NAME.
17747 * system.h (MODIFY_TARGET_NAME): Poison.
17748
17749 2010-06-25 Alan Modra <amodra@gmail.com>
17750
17751 * doc/invoke.texi: Delete mcmodel=medium from powerpc options.
17752 * config/rs6000/rs6000.h (enum rs6000_cmodel): Delete CMODEL_MEDIUM.
17753 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Set
17754 CMODEL_LARGE as default.
17755 * config/rs6000/rs6000.c (rs6000_handle_option): Remove mcmodel=medium.
17756 (offsettable_ok_by_alignment): Delete.
17757 (rs6000_emit_move): Remove mcmodel=medium optimization.
17758
17759 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
17760
17761 With large parts from Jim Wilson:
17762 PR target/43902
17763 * tree-pretty-print.c (dump_generic_node, op_code_prio): Add
17764 WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
17765 * optabs.c (optab_for_tree_code): Likewise.
17766 (expand_widen_pattern_expr): Likewise.
17767 * tree-ssa-math-opts.c (convert_mult_to_widen): New function, broken
17768 out of execute_optimize_widening_mul.
17769 (convert_plusminus_to_widen): New function.
17770 (execute_optimize_widening_mul): Use the two new functions.
17771 * expr.c (expand_expr_real_2): Add support for GIMPLE_TERNARY_RHS.
17772 Remove code to generate widening multiply-accumulate. Add support
17773 for WIDEN_MULT_PLUS_EXPR and WIDEN_MULT_MINUS_EXPR.
17774 * gimple-pretty-print.c (dump_ternary_rhs): New function.
17775 (dump_gimple_assign): Call it when appropriate.
17776 * tree.def (WIDEN_MULT_PLUS_EXPR, WIDEN_MULT_MINUS_EXPR): New codes.
17777 * cfgexpand.c (gimple_assign_rhs_to_tree): Likewise.
17778 (expand_gimple_stmt_1): Likewise.
17779 (expand_debug_expr): Support WIDEN_MULT_PLUS_EXPR and
17780 WIDEN_MULT_MINUS_EXPR.
17781 * tree-ssa-operands.c (get_expr_operands): Likewise.
17782 * tree-inline.c (estimate_operator_cost): Likewise.
17783 * gimple.c (extract_ops_from_tree_1): Renamed from
17784 extract_ops_from_tree. Add new arg for a third operand; fill it.
17785 (gimple_build_assign_stat): Support operations with three operands.
17786 (gimple_build_assign_with_ops_stat): Likewise.
17787 (gimple_assign_set_rhs_from_tree): Likewise.
17788 (gimple_assign_set_rhs_with_ops_1): Renamed from
17789 gimple_assign_set_rhs_with_ops. Add new arg for a third operand.
17790 (get_gimple_rhs_num_ops): Support GIMPLE_TERNARY_RHS.
17791 (get_gimple_rhs_num_ops): Handle WIDEN_MULT_PLUS_EXPR and
17792 WIDEN_MULT_MINUS_EXPR.
17793 * gimple.h (enum gimple_rhs_class): Add GIMPLE_TERNARY_RHS.
17794 (extract_ops_from_tree_1): Adjust declaration.
17795 (gimple_assign_set_rhs_with_ops_1): Likewise.
17796 (gimple_build_assign_with_ops): Pass NULL for last operand.
17797 (gimple_build_assign_with_ops3): New macro.
17798 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3,
17799 gimple_assign_set_rhs_with_ops, extract_ops_from_tree): New inline
17800 functions.
17801 * tree-cfg.c (verify_gimple_assign_ternary): New static function.
17802 (verify_gimple_assign): Call it.
17803 * doc/gimple.texi (Manipulating operands): Document GIMPLE_TERNARY_RHS.
17804 (Tuple specific accessors, subsection GIMPLE_ASSIGN): Document new
17805 functions for dealing with three-operand statements.
17806 * tree.c (commutative_ternary_tree_code): New function.
17807 * tree.h (commutative_ternary_tree_code): Declare it.
17808 * tree-vrp.c (gimple_assign_nonnegative_warnv_p): Return false for
17809 ternary statements.
17810 (gimple_assign_nonzero_warnv_p): Likewise.
17811 * tree-ssa-sccvn.c (stmt_has_constants): Handle GIMPLE_TERNARY_RHS.
17812 * tree-ssa-ccp.c (get_rhs_assign_op_for_ccp): New static function.
17813 (ccp_fold): Use it. Handle GIMPLE_TERNARY_RHS.
17814 * tree-ssa-dom.c (enum expr_kind): Add EXPR_TERNARY.
17815 (struct hashtable_expr): New member ternary in the union.
17816 (initialize_hash_element): Handle GIMPLE_TERNARY_RHS.
17817 (hashable_expr_equal_p): Fix indentation. Handle EXPR_TERNARY.
17818 (iterative_hash_hashable_expr): Likewise.
17819 (print_expr_hash_elt): Handle EXPR_TERNARY.
17820 * gimple-fold.c (fold_gimple_assign): Handle GIMPLE_TERNARY_RHS.
17821 * tree-ssa-threadedge.c (fold_assignment_stmt): Remove useless break
17822 statements. Handle GIMPLE_TERNARY_RHS.
17823
17824 2010-06-25 Jan Hubicka <jh@suse.cz>
17825
17826 * doc/invoke.texi (-Wsuggest-attribute): Add noreturn.
17827
17828 2010-06-25 Shujing Zhao <pearly.zhao@oracle.com>
17829
17830 PR c/44517
17831 * c-parser.c (c_parser_parms_list_declarator): Return NULL if one of
17832 parameters are not good.
17833 (c_parser_parameter_declaration): Error unknown type name if the type
17834 name can't start declaration specifiers.
17835
17836 2010-06-25 Joseph Myers <joseph@codesourcery.com>
17837
17838 * gcc.c (translate_options): Don't mention +e in comment.
17839 (process_command): Don't handle +e specially.
17840
17841 2010-06-25 Bernd Schmidt <bernds@codesourcery.com>
17842
17843 * ira.c (allocno_pool, copy_pool, allocno_live_range_pool): Delete.
17844
17845 * ira-build.c (merge_hard_reg_conflicts): New function.
17846 (create_cap_allocno, copy_info_to_removed_store_destinations,
17847 propagate_some_info_from_allocno, propagate_allocno_info): Use it.
17848 (move_allocno_live_ranges, copy_allocno_live_ranges): New functions.
17849 (remove_unnecessary_allocnos, remove_low_level_allocnos)
17850 copy_nifo_to_removed_store_destination): Use them.
17851 * ira-lives.c (make_hard_regno_born): New function, split out of
17852 make_regno_born.
17853 (make_allocno_born): Likewise.
17854 (make_hard_regno_dead): New function, split out of make_regno_dead.
17855 (make_allocno_dead): Likewise.
17856 (inc_register_pressure): New function, split out of set_allocno_live.
17857 (dec_register_pressure): New function, split out of clear_allocno_live.
17858 (mark_pseudo_regno_live): New function, split out of mark_reg_live.
17859 (mark_hard_reg_live): Likewise. Use inc_register_pressure.
17860 (mark_pseudo_regno_dead): New function, split out of mark_reg_dead.
17861 (mark_hard_reg_dead): Likewise. Use dec_register_pressure.
17862 (make_pseudo_conflict): Use mark_pseudo_regno_dead and
17863 mark_pseudo_regno_live.
17864 (process_bb_node_lives): Use mark_pseudo_regno_live,
17865 make_hard_regno_born and make_allocno_dead.
17866 (make_regno_born, make_regno_dead, mark_reg_live, mark_reg_dead,
17867 set_allocno_live, clear_allocno_live): Delete functions.
17868
17869 * ira-int.h (ira_parent_allocno, ira_parent_or_cap_allocno): Declare.
17870 * ira-build.c (ira_parent_allocno, ira_parent_or_cap_allocno): New
17871 functions.
17872 (ira_flattening): Use ira_parent_allocno.
17873 * ira-conflicts.c (process_regs_for_copy, propagate_copies)
17874 build_allocno_conflicts): Use ira_parent_or_cap_allocno.
17875
17876 * ira-color.c (assign_hard_reg): Improve formatting of multi-line for
17877 statement.
17878
17879 * ira-int.h (SET_MINMAX_SET_BIT, CLEAR_MINMAX_SET_BIT,
17880 TEST_MINMAX_SET_BIT, minmax_set_iterator, minmax_set_iter_init,
17881 minmax_set_iter_cond, minmax_set_iter_next,
17882 FOR_EACH_BIT_IN_MINMAX_SET): Renamed from SET_ALLOCNO_SET_BIT,
17883 CLEAR_ALLOCNO_SET_BIT, TEST_ALLOCNO_SET_BIT, ira_allocno_set_iterator,
17884 ira_allocno_set_iter_init, ira_allocno_set_iter_cond,
17885 ira_allocno_set_iter_Next and FOR_EACH_ALLOCNO_IN_ALLOCNO_SET. All
17886 uses changed.
17887
17888 * ira-int.h (struct live_range, live_range_t): Renamed from struct
17889 ira_allocno_live_range and allocno_live_range_t; all uses changed.
17890 * ira-build.c (live_range_pool): Renamed from allocno_live_range_pool.
17891 All uses changed.
17892
17893 2010-06-24 Richard Earnshaw <rearnsha@arm.com>
17894
17895 * thumb2.md (thumb2_tlobits_cbranch): Delete.
17896 (peephole2 to convert zero_extract/compare of single bit to
17897 lshift/compare): New.
17898
17899 2010-06-24 Anatoly Sokolov <aesok@post.ru>
17900
17901 * fold-const.c (const_binop): Remove 'notrunc' argement. Adjust
17902 recursive call and call to 'int_const_binop'.
17903 (build_range_check, fold_cond_expr_with_comparison, unextend,
17904 fold_truthop, extract_muldiv_1, fold_comparison, fold_binary_loc,
17905 multiple_of_p): Adjust call to const_binop.
17906
17907 2010-06-24 Uros Bizjak <ubizjak@gmail.com>
17908
17909 * config/i386/i386.md (XFmode push splitter): Use GET_MODE_SIZE to
17910 determine size of XFmode operand.
17911 (XFmode extended DFmode push splitter): Ditto.
17912 (XFmode extended SFmode push splitter): Ditto.
17913
17914 2010-06-24 H.J. Lu <hongjiu.lu@intel.com>
17915
17916 PR target/44588
17917 * config/i386/i386.md (extract_code): New.
17918 (<u>divmodqi4): Likewise.
17919 (divmodhiqi3): Likewise.
17920 (udivmodhiqi3): Likewise.
17921 (<u>divqi3): Remvoved.
17922
17923 2010-06-24 Jakub Jelinek <jakub@redhat.com>
17924
17925 PR middle-end/44492
17926 * recog.h (struct recog_data): Add is_asm field.
17927 * recog.c (asm_operand_ok, constrain_operands): If neither < nor > is
17928 present in constraints of inline-asm operand and memory operand
17929 contains {PRE,POST}_{INC,DEC,MODIFY}, return 0.
17930 (extract_insn): Initialize recog_data.is_asm.
17931 * doc/md.texi (Constraints): Document operand side-effect rules.
17932
17933 2010-06-24 Andi Kleen <ak@linux.intel.com>
17934
17935 * c-parser.c (c_parser_conditional_expression): Call
17936 warn_for_omitted_condop.
17937 * doc/invoke.texi: Document omitted condop warning.
17938
17939 2010-06-24 Nick Clifton<nickc@redhat.com>
17940
17941 * loop-unswitch.c (compare_and_jump_seq): Assert that the last
17942 insn in the sequence is a jump insn before setting its label.
17943
17944 2010-06-24 Alan Modra <amodra@gmail.com>
17945
17946 * collect2.c (main): Match exactly --version and --help.
17947
17948 2010-06-24 DJ Delorie <dj@redhat.com>
17949
17950 * config/m32c/m32c-pragma.c: Don't include rtl.h.
17951
17952 2010-06-23 Uros Bizjak <ubizjak@gmail.com>
17953
17954 * config/i386/i386.md (mov<mode>): Macroize expander from mov{sf,df,xf}
17955 using X87MODEF mode iterator.
17956 (pushsf splitter): Macroize splitter using P mode iterator.
17957 (*swap<mode>): Macroize insn from *swap{sf,df} using MODEF
17958 mode iterator.
17959
17960 (*movxf_internal): Rename from *movxf_integer.
17961 (*movxf_internal_nointeger): Rename from *movxf_nointeger.
17962 (*movdf_internal_rex64): Rename from *movdf_integer_rex64.
17963 (*movdf_internal): Rename from *movdf_integer.
17964 (*movdf_internal_nointeger): Rename from *movdf_nointeger.
17965 (*movsf_internal): Rename from *movdf_1.
17966
17967 2010-06-23 Basile Starynkevitch <basile@starynkevitch.net>
17968
17969 * coretypes.h (gimple_seq_node_d, gimple_seq_node)
17970 (const_gimple_seq_node): Removed typedefs.
17971
17972 * gimple.h (gimple_seq_node_d, gimple_seq_node)
17973 (const_gimple_seq_node): Added typedefs moved from coretypes.h.
17974
17975 2010-06-23 H.J. Lu <hongjiu.lu@intel.com>
17976
17977 * config/i386/i386.c (bdesc_args): Replace CODE_FOR_avx_si_si256,
17978 CODE_FOR_avx_ps_ps256 and CODE_FOR_avx_pd_pd256 with
17979 CODE_FOR_vec_extract_lo_v8si, CODE_FOR_vec_extract_lo_v8sf
17980 and CODE_FOR_vec_extract_lo_v4df.
17981
17982 * config/i386/sse.md (vec_extract_lo_<AVX256MODE4P:mode>):
17983 Changed to define_insn_and_split.
17984 (vec_extract_lo_<AVX256MODE8P:mode>): Likewise.
17985 (vec_extract_lo_v16hi): Likewise.
17986 (vec_extract_lo_v32qi): Likewise.
17987 (avx_<avxmodesuffixp><avxmodesuffix>_<avxmodesuffixp>): Likewise.
17988 (avx_<avxmodesuffixp>_<avxmodesuffixp><avxmodesuffix>): Removed.
17989
17990 2010-06-23 Joern Rennecke <joern.rennecke@embecosm.com>
17991
17992 PR target/44640
17993 * config/spu/spu-protos.h (spu_expand_epilogue) Use bool.
17994 * config/spu/spu.c (spu_scalar_mode_supported_p): Declare with bool.
17995 (spu_vector_mode_supported_p, spu_handle_fndecl_attribute): Likewise.
17996 (spu_handle_vector_attribute, spu_pass_by_reference): Likewise.
17997 (spu_rtx_costs, spu_function_ok_for_sibcall): Likewise.
17998
17999 PR target/44640
18000 * config/spu/spu.c (ea_load_store_inline): Use add_reg_note.
18001
18002 PR other/44644
18003 * df-core.c (struct df): Rename to df_d.
18004 * df.h (struct df): Likewise.
18005 * dse.h (struct df): Remove forward declaration.
18006 * recog.h (struct insn_data): Rename to:
18007 (struct_insn_data_d). Adjusted all users.
18008
18009 2010-06-23 Arnaud Charlet <charlet@adacore.com
18010
18011 PR ada/22220
18012 * doc/install.texi: Update requirements to build GNAT.
18013
18014 2010-06-22 Andreas Schwab <schwab@linux-m68k.org>
18015
18016 * config/m68k/m68k.c (m68k_output_addr_const_extra): Add cast to
18017 enum type.
18018 (m68k_sched_attr_opx_type): Remove unreachable return.
18019 (m68k_sched_attr_opy_type): Likewise.
18020 (m68k_sched_attr_size): Likewise.
18021 (sched_get_opxy_mem_type): Likewise.
18022 (m68k_sched_attr_op_mem): Likewise.
18023
18024 2010-06-22 Eric Botcazou <ebotcazou@adacore.com>
18025
18026 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Chain the
18027 new statement and adjust VDEF only if necessary. Remove superfluous
18028 call to maybe_clean_or_replace_eh_stmt.
18029 * gimple.c (gimple_call_copy_skip_args): Use gimple_call_copy_flags to
18030 copy the flags.
18031 * gimple-iterator.c (gsi_replace): Clear BB of old statement here...
18032 * tree-inline.c (copy_bb): ...and not there.
18033
18034 2010-06-22 Cary Coutant <ccoutant@google.com>
18035
18036 * dwarf2out.c (is_nested_in_subprogram): New function.
18037 (should_move_die_to_comdat): Use it.
18038 (copy_ancestor_tree): Don't mark DIEs here.
18039 (copy_decls_walk): Start walk from root of newly-added tree;
18040 mark DIEs here instead.
18041
18042 2010-06-22 H.J. Lu <hongjiu.lu@intel.com>
18043
18044 * config/i386/i386.md (unit): Also check sseishft1.
18045
18046 2010-06-22 Jan Hubicka <jh@suse.cz>
18047
18048 * gimple.h (gimple_expr_code): Do checking on when gimple checking is
18049 enabled.
18050
18051 2010-06-22 Jan Hubicka <jh@suse.cz>
18052
18053 * df-problems.c (df_rd_confluence_n, df_lr_confluence_n,
18054 df_live_confluence_n, df_byte_lr_confluence_n, df_md_confluence_n):
18055 Return true if something changed.
18056 * df.h (df_confluence_function_n): Return bool.
18057 * df-core.c (df_worklist_propagate_forward,
18058 df_worklist_propagate_backward): Track changes and ages.
18059 (df_worklist_dataflow_doublequeue): Use bitmap iterator for main walk;
18060 track ages.
18061 * dse.c (dse_confluence_n): Return always true.
18062
18063 2010-06-22 Jan Hubicka <jh@suse.cz>
18064
18065 * bitmap.c (bitmap_clear_bit): Micro optimize.
18066
18067 2010-06-22 Uros Bizjak <ubizjak@gmail.com>
18068
18069 * config/i386/i386.md (SWI1248x): New mode iterator.
18070 (SWI48x): Ditto.
18071 (SWI12): Ditto.
18072 (SWI24): Ditto.
18073
18074 (mov<mode>): Macroize expander from mov{qi,hi,si,di} using
18075 SWI1248x mode iterator.
18076 (*push<mode>2_rex64): Macroize insn from *push{qi,hi,si}_rex64
18077 using SWI124 mode iterator.
18078 (*push<mode>2): Macroize insn from *push{qi,hi} using SWI12
18079 mode iterator.
18080 (*push<mode>2_prologue): Macroize insn from *pushsi2_prologue and
18081 *pushdi2_prologue_rex64 using P mode iterator.
18082 (*mov<mode>_xor): Macroize insn from *movsi_xor and *movdi_xor_rex64
18083 using SWI48 mode iterator.
18084 (*mov<mode>_or): Ditto from *movsi_or and *movdi_or_rex64.
18085 (*movabs<mode>_1): Macroize insn from *movabs{qi,hi,si,di}_1_rex64
18086 using SWI1248x mode iterator.
18087 (*movabs<mode>_2): Ditto from *movabs{qi,hi,si,di}_1_rex64.
18088 (*swap<mode>): Macroize insn from *swapsi and *swapdi_rex64 using
18089 SWI48 mode iterator.
18090 (*swap<mode>_1): Macroize insn from *swap{qi,hi}_1 using SWI12 mode
18091 iterator.
18092 (*swap<mode>_2): Ditto from *swap{qi,hi}_2.
18093 (movstrict<mode>): Macroize expander from movstrict{qi,hi} using
18094 SWI12 mode iterator.
18095 (*movstrict<mode>_1): Macroize insn from *movstrict{qi,hi}_1 using
18096 SWI12 mode iterator.
18097 (*movstrict<mode>_xor): Ditto from *movstrict{qi,hi}_xor.
18098 (*mov<mode>_extv_1): Macroize insn from *mov{hi,si}_extv_1 using
18099 SWI24 mode iterator.
18100 (*mov<mode>_extzv_1): Macroize insn from *mov{si,di}_extzv_1 using
18101 SWI48 mode iterator.
18102 (mov<mode>_insn_1): New expander.
18103 (*mov<mode>_insv_1_rex64): Macroize insn from *mov{si,di}_insv_1_rex64
18104 using SWI48x mode iterator.
18105
18106 (*movoi_internal_avx): Rename from *movoi_internal.
18107 (*movti_internal_rex64): Rename from *movti_rex64.
18108 (*movti_internal_sse): Rename from *movti_sse.
18109 (*movdi_internal_rex64): Rename from *movdi_1_rex64.
18110 (*movdi_internal): Rename from *movdi_2.
18111 (*movsi_internal): Rename from *movsi_1.
18112 (*movhi_internal): Rename from *movhi_1.
18113 (*movqi_internal): Rename from *movqi_1.
18114
18115 (insv): Update the call to gen_movsi_insv_1 for rename.
18116 * config/i386/i386.c (promote_duplicated_reg): Ditto.
18117
18118 2010-06-22 Jan Hubicka <jh@suse.cz>
18119
18120 * passes.c (execute_function_todo): Move call of statistics_fini_pass
18121 to ...
18122 (execute_todo) ... this one.
18123
18124 2010-06-22 Alan Modra <amodra@gmail.com>
18125
18126 PR target/44364
18127 * config/rs6000/e500.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
18128 * caller-save.c (insert_restore, insert_save): Use non-validate
18129 form of adjust_address.
18130
18131 2010-06-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18132
18133 PR target/39690
18134 * config/pa/pa.c (override_options): Disable
18135 -freorder-blocks-and-partition.
18136
18137 2010-06-21 H.J. Lu <hongjiu.lu@intel.com>
18138
18139 PR target/44615
18140 * config/i386/atom.md (atom_sseishft_2): Also check sseishft1.
18141
18142 * config/i386/i386.md (type): Add sseishft1
18143
18144 * config/i386/ppro_insn (ppro_insn): Also check sseishft1.
18145 (ppro_insn_load): Likewise.
18146 (ppro_insn_store): Likewise.
18147 (ppro_insn_both): Likewise.
18148
18149 * config/i386/sse.md (sse2_lshrv1ti3): Add atom_unit.
18150 (*vec_extractv2di_1_rex64_avx): Replace sseishft with sseishft1
18151 for type.
18152 (*vec_extractv2di_1_avx): Likewise.
18153 (*vec_extractv2di_1_rex64): Replace sseishft with sseishft1 for
18154 type. Remove atom_unit.
18155 (*vec_extractv2di_1_sse2): Likewise.
18156
18157 2010-06-21 DJ Delorie <dj@redhat.com>
18158
18159 * diagnostic.h (diagnostic_classification_change_t): New.
18160 (diagnostic_context): Add history and push/pop list.
18161 (diagnostic_push_diagnostics): Declare.
18162 (diagnostic_pop_diagnostics): Declare.
18163 * diagnostic.c (diagnostic_classify_diagnostic): Store changes
18164 from pragmas in a history chain instead of the global table.
18165 (diagnostic_push_diagnostics): New.
18166 (diagnostic_pop_diagnostics): New.
18167 (diagnostic_report_diagnostic): Scan history chain to find state
18168 of diagnostics as of the diagnostic location.
18169 * opts.c (set_option): Pass UNKNOWN_LOCATION to
18170 diagnostic_classify_diagnostic.
18171 (enable_warning_as_error): Likewise.
18172 * diagnostic-core.h (DK_POP): Add after "real" diagnostics, for
18173 use in the history chain.
18174 * doc/extend.texi: Document pragma GCC diagnostic changes.
18175
18176 2010-06-21 Jakub Jelinek <jakub@redhat.com>
18177
18178 * dwarf2out.c (add_linkage_name): New function. Don't add
18179 anything to DW_TAG_member DIEs.
18180 (add_name_and_src_coords_attributes): Use it.
18181 (gen_variable_die): Call it for C++ static data members if
18182 specification is DW_TAG_member.
18183
18184 * dwarf2out.c (base_type_die): Use DW_ATE_UTF for
18185 C++ char16_t and char32_t.
18186
18187 * Makefile.in (build/genattrtab.o): Depend on vecprim.h.
18188 * genattrtab.c: Include vecprim.h.
18189 (cached_attrs, cached_attr_count, attrs_seen_once,
18190 attrs_seen_more_than_once, attrs_to_cache, attrs_cached_inside,
18191 attrs_cached_after): New variables.
18192 (find_attrs_to_cache): New function.
18193 (FLG_BITWISE, FLG_AFTER, FLG_INSIDE, FLG_OUTSIDE_AND): Define.
18194 (write_test_expr): Add attrs_cached argument, return it too,
18195 attempt to cache non-const attributes used more than once in
18196 a single case handling.
18197 (write_attr_get): Use find_attrs_to_cache, for caching candidates
18198 emit cached_* variables. Adjust write_attr_set callers.
18199 (write_attr_set): Add attrs_cached attribute, use find_attrs_to_cache
18200 to find attributes that should be cached in this block. Adjust
18201 write_test_expr callers.
18202 (write_attr_case): Clear attrs_to_cache. Adjust write_attr_set
18203 callers.
18204 (make_automaton_attrs): Adjust write_test_expr caller.
18205
18206 * Makefile.in (cfgexpand.o): Depend on $(INSN_ATTR_H).
18207 * genattrtab.c (check_tune_attr, find_tune_attr): New functions.
18208 (make_automaton_attrs): If find_tune_attr returns non-NULL,
18209 write separate internal_dfa_insn_code_* and insn_default_latency_*
18210 functions for each attribute's value and emit init_sched_attrs
18211 function and function pointers.
18212 * genattr.c (const_attrs, reservations): New variables.
18213 (gen_attr): Add const attributes to const_attrs vector.
18214 (check_tune_attr, find_tune_attr): New functions.
18215 (main): Add reservations to reservations vector. If find_tune_attr
18216 returns true, add prototype for init_sched_attrs and make
18217 internal_dfa_insn_code and insn_default_latency function pointers,
18218 otherwise define init_sched_attrs as dummy macro.
18219 * cfgexpand.c: Include insn-attr.h.
18220 (gimple_expand_cfg): Call init_sched_attrs.
18221
18222 * stmt.c (resolve_asm_operand_names): Fix handling of %%.
18223
18224 PR target/44575
18225 * config/i386/i386.c (ix86_gimplify_va_arg): When copying
18226 va_arg from a set of register save slots into a temporary,
18227 if the container is bigger than type size, do the copying
18228 using smaller mode or using memcpy.
18229
18230 PR bootstrap/44426
18231 * sel-sched-dump.h (sel_prepare_string_for_dot_label): Remove
18232 prototype.
18233 (sel_print_to_dot): Remove macro.
18234 (sel_print): Likewise. New prototype.
18235 * sel-sched-dump.c (sel_prepare_string_for_dot_label): Make static.
18236 (sel_print): New function.
18237
18238 2010-06-21 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18239
18240 * config/sol2.h (TARGET_OS_CPP_BUILTINS): Define
18241 __STDC_VERSION__=199901L, _XOPEN_SOURCE=600 for C++.
18242
18243 2010-06-21 Nick Clifton <nickc@redhat.com>
18244
18245 * config/rx/rx.h (PTRDIFF_TYPE): Define.
18246 (SMALL_REGISTER_CLASS): Define (to zero).
18247 (PRINT_OPERAND): Delete.
18248 (PRINT_OPERAND_ADDRESS): Delete.
18249 * config/rx/rx-protos.h (rx_print_operand): Delete prototype.
18250 (rx_print_operand_address): Delete prototype.
18251 * config/rx/rx.c (rx_print_operand): Make static.
18252 Allow %H and %L to handle CONST_DOUBLEs.
18253 (rx_print_operand_address): Make static.
18254 (rx_gen_move_template): Rename local variable 'template' to
18255 out_template.
18256 (rx_function_arg): Do not pass unknown sized objects in registers.
18257 (TARGET_PRINT_OPERAND): Define.
18258 (TARGET_PRINT_OPERAND_ADDRESS): Define.
18259
18260 2010-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
18261
18262 * Makefile.in (POD2MAN): Provide --date from $(DATESTAMP).
18263
18264 2010-06-21 Kai Tietz <kai.tietz@onevision.com>
18265
18266 * config/i386/i386.c (ix86_compute_frame_layout): Avoid
18267 stack-alignment for simple leaf-functions.
18268
18269 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
18270
18271 * doc/install.texi: Document bootstrap-lto.
18272
18273 2010-06-20 Alexandre Oliva <aoliva@redhat.com>
18274
18275 PR debug/44248
18276 * lto-streamer-in.c (input_bb): Leave debug stmts alone.
18277 (input_function): Drop them here, if VTA is disabled.
18278
18279 2010-06-20 Uros Bizjak <ubizjak@gmail.com>
18280
18281 PR target/44546
18282 * config/i386/predicates.md (ix86_swapped_fp_comparsion_operator):
18283 New predicate.
18284 * config/i386/i386.md (*fp_jcc_8<mode>_387 and splitters): Use
18285 ix86_swapped_fp_comparsion_operator instead of
18286 ix86_fp_comparison_operator.
18287
18288 (*fp_jcc_1_387): Rename from *fp_jcc_3_387.
18289 (*fp_jcc_1r_387): Rename from *fp_jcc_4_387.
18290 (*fp_jcc_2_387): Rename from *fp_jcc_5_387.
18291 (*fp_jcc_2r_387): Rename from *fp_jcc_6_387.
18292 (*fp_jcc_3_387): Rename from *fp_jcc_7_387.
18293 (*fp_jcc_4_<mode>_387): Rename from *fp_jcc_8<mode>_387.
18294
18295 2010-06-20 Joseph Myers <joseph@codesourcery.com>
18296
18297 PR other/32998
18298 * opth-gen.awk: Generate definitions of OPT_SPECIAL_unknown,
18299 OPT_SPECIAL_program_name and OPT_SPECIAL_input_file.
18300 * opts-common.c (find_opt): Return OPT_SPECIAL_unknown on failure.
18301 (decode_cmdline_option): Update for this return value. Set
18302 orig_option_with_args_text field. Set arg field for unknown
18303 options. Make static.
18304 (decode_cmdline_options_to_array): New.
18305 (prune_options): Update handling of find_opt return value.
18306 * opts.c (read_cmdline_option): Take decoded option. Return void.
18307 (read_cmdline_options): Take decoded options.
18308 (decode_options): Add parameters for decoded options. Use
18309 decode_cmdline_options_to_array. Use decoded options for -O
18310 scan. Use integral_argument for -O parameters. Update call to
18311 read_cmdline_options.
18312 (enable_warning_as_error): Update handling of find_opt return value.
18313 * opts.h: Update comment on unknown options.
18314 (struct cl_decoded_option): Update comments on opt_index and arg.
18315 Add orig_option_with_args_text.
18316 (decode_cmdline_option): Remove.
18317 (decode_cmdline_options_to_array): Declare.
18318 (decode_options): Update prototype.
18319 * toplev.c (save_argv): Remove.
18320 (save_decoded_options, save_decoded_options_count): New.
18321 (read_integral_parameter): Remove.
18322 (print_switch_values): Use decoded options.
18323 (toplev_main): Don't set save_argv. Update call to decode_options.
18324 * toplev.h (read_integral_parameter): Remove.
18325 * varasm.c (elf_record_gcc_switches): Don't handle holding back names.
18326
18327 2010-06-19 Richard Earnshaw <rearnsha@arm.com>
18328
18329 PR target/44072
18330 * arm.md (cmpsi2_addneg): Prefer emitting adds to subs with a negative
18331 immediate.
18332 * constraints.md (Pw, Px): New constraints.
18333 * thumb2.md (cmpsi2_addneg peephole2): New peepholes.
18334
18335 2010-06-19 H.J. Lu <hongjiu.lu@intel.com>
18336
18337 * config/i386/sse.md (fma4modesuffixf4): Removed.
18338 (ssemodesuffixf2s): Likewise.
18339 (ssemodesuffixf4): Likewise.
18340 (ssemodesuffixf2c): Likewise.
18341 (ssescalarmodesuffix2s): Likewise.
18342 (avxmodesuffixf2c): Likewise.
18343 (ssemodesuffix): New.
18344 (ssescalarmodesuffix): Likewise.
18345 Update patterns with ssemodesuffix and ssescalarmodesuffix.
18346
18347 2010-06-19 Philip Herron <herron.philip@googlemail.com>
18348
18349 * c-decl.c (c_write_global_declarations): Don't check flag_syntax_only.
18350
18351 2010-06-18 H.J. Lu <hongjiu.lu@intel.com>
18352
18353 * stor-layout.c (debug_rli): Remove unused local variables.
18354
18355 2010-06-18 Eric Botcazou <ebotcazou@adacore.com>
18356
18357 PR rtl-optimization/40900
18358 * expr.c (expand_expr_real_1) <SSA_NAME>: Fix long line. Save the
18359 original expression for later reuse.
18360 <expand_decl_rtl>: Use promote_function_mode to compute the signedness
18361 of the promoted RTL for a SSA_NAME on the LHS of a call statement.
18362
18363 2010-06-18 Anatoly Sokolov <aesok@post.ru>
18364
18365 * double-int.h (double_int_to_shwi, double_int_to_uhwi,
18366 double_int_fits_in_uhwi_p): Implement as static inline.
18367 (double_int_xor): New inline function.
18368 (double_int_lrotate, double_int_rrotate, double_int_max,
18369 double_int_umax, double_int_smax, double_int_min, double_int_umin,
18370 double_int_smin): Declare.
18371 (lrotate_double, rrotate_double): Remove declaration.
18372 * double-int.c (double_int_fits_in_uhwi_p, double_int_to_shwi,
18373 double_int_to_uhwi, lrotate_double, rrotate_double): Remove function.
18374 (double_int_lrotate, double_int_rrotate, double_int_max,
18375 double_int_umax, double_int_smax, double_int_min, double_int_umin,
18376 double_int_smin): New function.
18377 * fold-const.c (int_const_binop): Clean up, use double_int_*
18378 functions.
18379 * simplify-rtx.c (simplify_const_binary_operation): Clean up, use
18380 double_int_* and immed_double_int_const functions.
18381
18382 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
18383
18384 * function.h (types_used_by_cur_var_decl): Change type to a VEC.
18385 * function.c (types_used_by_cur_var_decl): Likewise.
18386 (used_types_insert): Adjust for new type of types_used_by_cur_var_decl.
18387
18388 2010-06-18 Nathan Froyd <froydnj@codesourcery.com>
18389
18390 * tree.h (record_layout_info): Change type of pending_statics field
18391 to a VEC.
18392 * stor-layout.c (start_record_layout): Store NULL into
18393 pending_statics.
18394 (debug_rli): Call debug_vec_tree instead of debug_tree.
18395 (place_field): Likewise.
18396 (finish_record_layout): Likewise.
18397
18398 2010-06-18 Alan Modra <amodra@gmail.com>
18399
18400 * config/rs6000/linux64.h (SET_CMODEL): Don't expand to empty.
18401
18402 2010-06-17 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
18403
18404 PR target/43740
18405 * config/pa/pa.c (emit_move_sequence): Don't infer REG_POINTER flag
18406 for SET source operand from SET destination operand.
18407
18408 2010-06-17 Bernd Schmidt <bernds@codesourcery.com>
18409
18410 PR rtl-optimization/39871
18411 * reload1.c (init_eliminable_invariants): For flag_pic, disable
18412 equivalences only for constants that aren't LEGITIMATE_PIC_OPERAND_P.
18413 (function_invariant_p): Rule out a plus of frame or arg pointer with
18414 a SYMBOL_REF.
18415 * ira.c (find_reg_equiv_invariant_const): Likewise.
18416
18417 2010-06-17 Gunther Nikl <gnikl@users.sourceforge.net>
18418
18419 * config/rs6000/rs6000.c (print_operand) <'K'>: Also use
18420 print_operand_address and puts to output the operand for CONST.
18421
18422 2010-06-17 Jakub Jelinek <jakub@redhat.com>
18423
18424 PR debug/44572
18425 * dwarf2out.c (dwarf2out_debug_hooks): Add entry for begin_epilogue
18426 hook.
18427
18428 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18429
18430 * v850-protos.h (print_operand): Delete.
18431 (print_operand_address): Delete.
18432 * v850.h (PRINT_OPERAND): Delete.
18433 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18434 (PRINT_OPERAND_ADDRESS): Delete.
18435 * v850.c (print_operand_address): Rename to...
18436 (v850_print_operand_address): ...this. Make static. Call
18437 v850_print_operand.
18438 (print_operand): Rename to...
18439 (v850_print_operand): ...this. Make static. Call
18440 v850_print_operand_address.
18441 (v850_print_operand_punct_valid_p): New function.
18442 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
18443 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
18444
18445 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18446
18447 * config/sh/sh-protos.h (print_operand): Delete.
18448 (print_operand_address): Delete.
18449 * config/sh/sh.h (PRINT_OPERAND): Delete.
18450 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18451 (PRINT_OPERAND_ADDRESS): Delete.
18452 * config/sh/sh.c (sh_print_operand_address): Make static.
18453 (sh_print_operand): Make static. Call sh_print_operand_address
18454 and sh_print_operand.
18455 (sh_print_operand_punct_valid_p): New function.
18456 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
18457 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
18458
18459 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18460
18461 * config/mcore/mcore-protos.h (mcore_print_operand): Delete.
18462 (mcore_print_operand_address): Delete.
18463 * config/mcore/mcore.h (PRINT_OPERAND): Delete.
18464 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18465 (PRINT_OPERAND_ADDRESS): Delete.
18466 * config/mcore/mcore.c (mcore_print_operand_address): Make static.
18467 (mcore_print_operand): Make static.
18468 (mcore_print_operand_punct_valid_p): New function.
18469 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define
18470 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
18471
18472 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18473
18474 * config/m68hc11/m68hc11-protos.h (print_operand): Delete.
18475 (print_operand_address): Delete.
18476 * config/m68hc11/m68hc11.h (PRINT_OPERAND): Delete.
18477 (PRINT_OPERAND_ADDRESS): Delete.
18478 * config/m68hc11/m68hc11.c (m68hc11_print_operand_address): Make
18479 static.
18480 (m68hc11_print_operand): Make static.
18481 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
18482
18483 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18484
18485 * config/m32r/m32r-protos.h (m32r_print_operand): Delete.
18486 (m32r_print_operand_address): Delete.
18487 * config/m32r/m32r.h (m32r_punct_chars): Delete.
18488 (PRINT_OPERAND): Delete.
18489 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18490 (PRINT_OPERAND_ADDRESS): Delete.
18491 * config/m32r/m32r.c (m32r_punct_chars): Make static.
18492 (m32r_print_operand_address): Make static.
18493 (m32r_print_operand): Make static.
18494 (m32r_print_operand_punct_valid_p): New function.
18495 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
18496 (TARGET_PRINT_OPERAND_ADDRESS): Define.
18497
18498 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18499
18500 * config/iq2000/iq2000-protos.h (print_operand): Delete.
18501 (print_operand_address): Delete.
18502 * config/iq2000/iq2000.h (PRINT_OPERAND): Delete.
18503 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18504 (PRINT_OPERAND_ADDRESS): Delete.
18505 (iq2000_print_operand_punct): Delete.
18506 * config/iq2000/iq2000.c (iq2000_print_operand_punct): Make static.
18507 (iq2000_print_operand_address): Make static.
18508 (iq2000_print_operand): Make static.
18509 (iq2000_print_operand_punct_valid_p): New function.
18510 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
18511 (TARGET_PRINT_OPERAND_ADDRESS): Define.
18512
18513 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18514
18515 * config/frv/frv-protos.h (frv_print_operand): Delete.
18516 (frv_print_operand_address): Delete.
18517 * config/frv/frv.h (PRINT_OPERAND): Delete.
18518 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18519 (PRINT_OPERAND_ADDRESS): Delete.
18520 * config/frv/frv.c (frv_print_operand_address): Make static.
18521 (frv_print_operand): Make static.
18522 (frv_print_operand_punct_valid_p): New function.
18523 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
18524 (TARGET_PRINT_OPERAND_ADDRESS): Define.
18525
18526 2010-06-17 Nathan Froyd <froydnj@codesourcery.com>
18527
18528 * tree.h (vec_member): Declare.
18529 * tree.c (vec_member): Define.
18530
18531 2010-06-17 Richard Guenther <rguenther@suse.de>
18532
18533 * tree-flow-inline.h (array_ref_contains_indirect_ref): Remove.
18534 * tree-flow.h (array_ref_contains_indirect_ref): Likewise.
18535
18536 2010-06-17 Richard Guenther <rguenther@suse.de>
18537
18538 * tree-inline.c (declare_return_variable): Remove bogus code.
18539
18540 2010-06-17 Richard Guenther <rguenther@suse.de>
18541
18542 * gimplify.c (gimplify_bind_expr): Always promote complex
18543 and vector variables to registers if possible.
18544
18545 2010-06-17 Richard Guenther <rguenther@suse.de>
18546
18547 * expr.c (get_inner_reference): Use double_int for bit_offset
18548 calculation.
18549
18550 2010-06-16 DJ Delorie <dj@redhat.com>
18551
18552 * common.opt (-fstrict-volatile-bitfields): new.
18553 * doc/invoke.texi: Document it.
18554 * fold-const.c (optimize_bit_field_compare): For volatile
18555 bitfields, use the field's type to determine the mode, not the
18556 field's size.
18557 * expr.c (expand_assignment): Likewise.
18558 (get_inner_reference): Likewise.
18559 (expand_expr_real_1): Likewise.
18560 * expmed.c (store_fixed_bit_field): Likewise.
18561 (extract_bit_field_1): Likewise.
18562 (extract_fixed_bit_field): Likewise.
18563
18564 2010-06-16 Richard Guenther <rguenther@suse.de>
18565
18566 * tree-inline.c (remap_gimple_op_r): Recurse using remap_gimple_op_r.
18567
18568 2010-06-16 Douglas B Rupp <rupp@gnat.com>
18569
18570 * config/ia64/vms.h (ASM_OUTPUT_DWARF_DELTA_UNITS): Remove.
18571 (ASM_OUTPUT_DWARF_VMS_DELTA: Define new macro.
18572 * dbxout.c (gcc_debug_hooks): New entry begin_epilogue.
18573 * debug.c: Likewise.
18574 * sdbout.c: Likewise.
18575 * vmsdbgout.c: Likewise.
18576 * debug.h: Likewise. (dwarf2out_vms_{begin,end}_prologue): Declare.
18577 * doc/tm.texi (ASM_OUTPUT_DWARF_VMS_DELTA): Document.
18578 * dwarf2asm.c (dw2_asm_output_vms_delta): New function.
18579 (ASM_OUTPUT_DWARF_VMS_DELTA): Call it.
18580 * dwarf2asm.h (dw2_asm_output_vms_delta): Declare.
18581 * dwarf2out.c (dw_fde_struct): New fields
18582 dw_fde_vms_{end,begin}_prologue.
18583 (PROLOGUE_END_LABEL, EPILOGUE_BEGIN_LABEL): New macros.
18584 (dwarf2out_begin_prologue): Set dw_fde_struct defaults for above.
18585 (dwarf2out_vms_end_prologue): New function.
18586 (dwarf2out_vms_begin_epilogue): New function.
18587 (dw_val_struct): New value dw_val_class_vms_delta.
18588 (gcc_debug_hooks): New entry begin_epilogue. Set end_prologue,
18589 begin_epilogue for VMS.
18590 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): Declare
18591 new static functions.
18592 (dwarf_attr_name): New cases DW_AT_HP_{prologue,epilogue}.
18593 (AT_vms_delta1, AT_vms_delta2, add_AT_vms_delta): New
18594 static functions.
18595 (print_die): New case dw_val_class_vms_delta.
18596 (attr_checksum): Likewise.
18597 (same_dw_val_p: Likewise.
18598 (size_of_die): Likewise.
18599 (value_format): Likewise.
18600 (output_die): Likewise.
18601 (gen_subprogram_die): Call add_AT_vms_delta on VMS.
18602 (dwarf2out_begin_epilogue): Rename to dwarf2out_cfi_begin_epilogue
18603 * dwarf2out.h (dwarf2out_begin_epilogue): Rename to
18604 dwarf2out_cfi_begin_epilogue
18605 * final.c (final_scan_insn): Likewise. Call begin_epilogue.
18606
18607 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
18608
18609 * config/cris/cris-protos.h (cris_print_operand): Delete.
18610 (cris_print_operand_address): Delete.
18611 * config/cris/cris.h (PRINT_OPERAND): Delete.
18612 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18613 (PRINT_OPERAND_ADDRESS): Delete.
18614 * config/cris/cris.c (cris_print_operand_address): Make static.
18615 (cris_print_operand): Make static.
18616 (cris_print_operand_punct_valid_p): New function.
18617 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
18618 (TARGET_PRINT_OPERAND_ADDRESS): Define.
18619
18620 2010-06-16 Nathan Froyd <froydnj@codesourcery.com>
18621
18622 * config/arm/arm-protos.h (arm_print_operand): Delete.
18623 (arm_print_operand_address): Delete.
18624 * config/arm/arm.h (PRINT_OPERAND): Delete.
18625 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
18626 (PRINT_OPERAND_ADDRESS, ARM_PRINT_OPERAND_ADDRESS):
18627 (THUMB_PRINT_OPERAND_ADDRESS): Delete and move code to...
18628 * config/arm/arm.c (arm_print_operand_address): ...here. New function.
18629 (arm_print_operand): Make static.
18630 (arm_print_operand_punct_valid_p): New function.
18631 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS):
18632 (TARGET_PRINT_OPERAND_ADDRESS): Define.
18633
18634 2010-06-16 Nick Clifton <nickc@redhat.com>
18635
18636 * config/rx/constraints.md (NEGint4): New constraint.
18637 * config/rx/rx.md (attr cc): Add set_zsc.
18638 (cbranchsf4): Only test for -fnon-call-exceptions if cfun has been
18639 initialised.
18640 (cmpsf): Likewise.
18641 (call_internal): Clobber the cc0 register.
18642 (call_value_internal): Likewise.
18643 (cstoresi4): Likewise.
18644 (movsieq): Likewise.
18645 (movsine): Likewise.
18646 (addsi3): Add alternative to handle small negative constants.
18647 (sunsi3): Likewise.
18648 (addsi3): Do not set the O bit in the cc0 register.
18649 (adddi3): Likewise.
18650 (subsi3): Likewise.
18651 (subdi3): Likewise.
18652 (andsi3): Reorder alternatives to prefer shorter forms.
18653 (mulsi3): Likewise.
18654 (iorsi3): Likewise.
18655 (negsi2): Note that the cc0 flags are set.
18656 (rotlsi3): Note that only the Z and S bits are set in cc0.
18657 (lshrsi3): Likewise.
18658 (ashlsi3): Likewise.
18659 (subsf3): Use %Q for the MEM operand.
18660 (fix_truncsfsi2): Likewise.
18661 (floatsisf2): Likewise.
18662 (bitset): Remove early clobber from destination.
18663 (bitset_in_memory): Likewise.
18664 (lrintsf2): Clobber the cc0 register.
18665 * config/rx/rx.c (rx_notice_update_cc): Handle CC_SET_ZSC.
18666 (rx_print_operand): Handle %N.
18667
18668 2010-06-16 Jan Hubicka <jh@suse.cz>
18669
18670 * df-core.c (df_compact_blocks): Free problem_temps vector.
18671
18672 2010-06-16 Martin Jambor <mjambor@suse.cz>
18673
18674 PR tree-optimization/43905
18675 * tree-sra.c: Include tree-inline.h.
18676 (create_abstract_origin): Removed.
18677 (modify_function): Version the call graph node instead of creating
18678 abstract origins and dealing with same_body aliases.
18679 * tree-sra.c (ipa_sra_preliminary_function_checks): Check whether the
18680 function is versionable.
18681 * Makefile.in (tree-sra.o): Add TREE_INLINE_H to dependencies.
18682
18683 2010-06-16 Maxim Kuvyrkov <maxim@codesourcery.com>
18684
18685 * config/mips/linux64.h (BIONIC_DYNAMIC_LINKERN32): Define.
18686 (CHOOSE_DYNAMIC_LINKER): Update.
18687
18688 2010-06-15 Uros Bizjak <ubizjak@gmail.com>
18689
18690 * config/i386/i386.c (*prefetch_sse_<mode>): Macroize insn from
18691 *prefetch_sse and *prefetch_sse_rex using P mode iterator.
18692 (*prefetch_3dnow_<mode>): Ditto from *prefetch_3dnow and
18693 *prefetch_3dnow_rex.
18694
18695 2010-06-15 Anatoly Sokolov <aesok@post.ru>
18696
18697 * target.h (struct asm_out):Add declare_constant_name field.
18698 * target-def.h (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
18699 (TARGET_INITIALIZER): Use TARGET_ASM_DECLARE_CONSTANT_NAME.
18700 * output.h (default_asm_declare_constant_name): Declare.
18701 (assemble_label): Update prototype.
18702 * varasm.c (assemble_constant_contents): Use
18703 targetm.asm_out.declare_constant_name target hook.
18704 (assemble_label): Add 'file' argument.
18705 (default_asm_declare_constant_name): New function.
18706 * system.h (ASM_DECLARE_CONSTANT_NAME): Poison.
18707 * doc/tm.texi (ASM_DECLARE_CONSTANT_NAME): Remove.
18708 (TARGET_ASM_DECLARE_CONSTANT_NAME): Document it.
18709
18710 * config/darwin-protos.h (darwin_asm_declare_constant_name): Declare.
18711 * config/darwin.c (darwin_asm_declare_constant_name): New function.
18712 (machopic_output_indirection): Update assemble_label argument list.
18713 * config/darwin.h (ASM_DECLARE_CONSTANT_NAME): Remove.
18714 (TARGET_ASM_DECLARE_CONSTANT_NAME): Define.
18715
18716 2010-06-15 Sebastian Pop <sebastian.pop@amd.com>
18717
18718 PR middle-end/44391
18719 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
18720 size_one_node for pointer types. Do not call gmp_cst_to_tree.
18721
18722 2010-06-15 Richard Guenther <rguenther@suse.de>
18723
18724 * tree-ssa-pre.c (eliminate): Handle PHI elimination to constants.
18725
18726 2010-06-15 Paul Brook <paul@codesourcery.com>
18727
18728 * config/arm/arm.c (use_vfp_abi): Add sorry() for Thumb-1
18729 hard-float ABI.
18730
18731 2010-06-15 Alexandre Oliva <aoliva@redhat.com>
18732
18733 * tree-vect-patterns.c (vect_pattern_recog_1): Bail out if we
18734 don't get a vector type for output.
18735
18736 2010-06-15 Jakub Jelinek <jakub@redhat.com>
18737
18738 PR fortran/44536
18739 * langhooks.h (struct lang_hooks_for_decls): Add omp_report_decl.
18740 * langhooks-def.h (LANG_HOOKS_OMP_REPORT_DECL): Define.
18741 (LANG_HOOKS_DECLS): Add it.
18742 * gimplify.c (omp_notice_variable): Call
18743 lang_hooks.decls.omp_report_decl.
18744
18745 2010-06-15 Martin Jambor <mjambor@suse.cz>
18746
18747 PR lto/44464
18748 * tree-sra.c (replace_removed_params_ssa_names): Call release_ssa_name
18749 on the newly dead SSA name.
18750
18751 2010-06-15 Alan Modra <amodra@gmail.com>
18752
18753 * doc/invoke.texi: Add mcmodel to powerpc options.
18754 * configure.ac: Add HAVE_LD_LARGE_TOC test.
18755 * configure: Regenerate.
18756 * config.in: Regenerate.
18757 * config/rs6000/linux64.opt (mcmodel): New.
18758 * config/rs6000/linux64.h (TARGET_USES_LINUX64_OPT): Define.
18759 (TARGET_CMODEL, SET_CMODEL): Define.
18760 (SUBSUBTARGET_OVERRIDE_OPTIONS): Check user -mcmodel choice,
18761 select CMODEL_MEDIUM default.
18762 * config/rs6000/rs6000.h (enum rs6000_cmodel): New.
18763 (TARGET_CMODEL): Define default.
18764 * config/rs6000/rs6000.c (cmodel): New variable.
18765 (rs6000_explicit_options): Add cmodel field.
18766 (rs6000_handle_option): Handle -mcmodel.
18767 (create_TOC_reference): Add largetoc_reg param. Generate high,
18768 lo_sum rtl for CMODEL_MEDIUM and CMODEL_LARGE. Update all callers.
18769 (rs6000_delegitimize_address): Recognise new toc reference rtl
18770 and minimal-toc rtl.
18771 (rs6000_legitimize_reload_address): Handle new toc references.
18772 (print_operand_address): Handle legitimate_constant_pool_address_p
18773 match before lo_sum.
18774 (rs6000_eliminate_indexed_memrefs): Tidy.
18775 (rs6000_emit_move): Tweak threshold for inlining constants.
18776 Keep rs6000_emit_allocate_stack large stack frame offsets
18777 loaded into r0 inline.
18778 (rs6000_generate_compare <cmptf_internal2>): One more clobber.
18779 (tocrel_base, tocrel_offset): New variables.
18780 (toc_relative_expr_p): Set them here.
18781 (print_operand_address): Skip over any offset on constant pool address.
18782 (rs6000_output_addr_const_extra): Print tocrel_offset before @toc.
18783 (rs6000_mode_dependent_address <LO_SUM>): False for new toc refs.
18784 (offsettable_ok_by_alignment): New function.
18785 (rs6000_emit_move): Address suitably aligned local symbol_refs
18786 relative to the toc pointer for -mcmodel=medium.
18787 (legitimate_constant_pool_address_p): Make param const_rtx. Add
18788 strict param. Allow lo_sum version of addressing. Verify reg
18789 used for -mminimal-toc and -mcmodel != small. Update all callers.
18790 * config/rs6000/constraints.md: Update for above change.
18791 * config/rs6000/predicates.md: Likewise.
18792 * config/rs6000/rs6000.md (tls_gd_aix): Generate -mcmodel=medium/large
18793 code.
18794 (tls_gd): Split for -mcmodel=medium/large.
18795 (tls_gd_high, tls_gd_low): New.
18796 (tls_ld_aix, tls_ld, tls_ld_high, tls_ld_low): Similarly.
18797 (tls_got_dtprel, tls_got_dtprel_high, tls_got_dtprel_low): Similarly.
18798 (tls_got_tprel, tls_got_tprel_high, tls_got_tprel_low): Similarly.
18799 (largetoc_high, largetoc_low): New.
18800 (cmptf_internal2): Add clobber.
18801 * config/rs6000/rs6000-protos.h: Update.
18802
18803 2010-06-14 Changpeng Fang <changpeng.fang@amd.com>
18804
18805 * tree-ssa-loop-prefetch.c (nothing_to_prefetch_p): New. Return
18806 true if no prefetch is going to be generated for a given group.
18807 (estimate_prefetch_count): Use prefetch_mod and unroll_factor to
18808 estimate the prefetch_count.
18809 (loop_prefetch_arrays): Call nothing_to_prefetch_p; estimate the
18810 prefetch count by considering the unroll_factor and prefetch_mod
18811 for is_loop_prefetching_profitable.
18812
18813 2010-06-14 Andreas Schwab <schwab@linux-m68k.org>
18814
18815 * config/m68k/m68k.c (m68k_delegitimize_address): Don't do
18816 anything if the argument is not a MEM.
18817
18818 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
18819
18820 PR debug/43650
18821 PR debug/44181
18822 PR debug/44247
18823 * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop): Skip
18824 debug stmts.
18825 (canonicalize_loop_ivs): Likewise.
18826
18827 2010-06-14 Alexandre Oliva <aoliva@redhat.com>
18828
18829 PR debug/43656
18830 * haifa-sched.c (setup_insn_reg_pressure_info,
18831 update_register_pressure): Reject debug insns.
18832 (ready_sort): Don't setup reg pressure for debug insns.
18833 (schedule_insn): Don't update reg pressure for debug insns.
18834
18835 2010-06-14 Richard Guenther <rguenther@suse.de>
18836
18837 * lto-streamer.c (cached_bp): Remove.
18838 (bitpack_delete): Likewise.
18839 (bitpack_create): Likewise.
18840 (bp_get_next_word): Likewise.
18841 (bp_pack_value, bp_unpack_value): Move ...
18842 * lto-streamer.h (bp_pack_value, bp_unpack_value): ... here.
18843 Re-implement.
18844 (struct bitpack_d): Likewise.
18845 (bitpack_create, lto_output_bitpack, lto_input_bitpack):
18846 New inline functions.
18847 * lto-streamer-out.c (lto_output_bitpack): Remove.
18848 (pack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
18849 (pack_value_fields): Adjust.
18850 (lto_write_tree): Likewise.
18851 (output_gimple_stmt): Likewise.
18852 (output_function): Likewise.
18853 * lto-streamer-in.c (input_gimple_stmt): Adjust.
18854 (input_function): Likewise.
18855 (unpack_ts_base_value_fields): Adjust. Avoid conditional bitpacking.
18856 (lto_input_bitpack): Remove.
18857 (lto_materialize_tree): Adjust.
18858 * Makefile.in (ipa-prop.o): Add $(LTO_STREAMER_H) dependency.
18859 * lto-cgraph.c (lto_output_edge): Adjust.
18860 (lto_output_node): Likewise.
18861 (lto_output_varpool_node): Likewise.
18862 (lto_output_ref): Likewise.
18863 (input_node): Likewise.
18864 (input_varpool_node): Likewise.
18865 (input_ref): Likewise.
18866 (input_edge): Likewise.
18867 (output_node_opt_summary): Likewise.
18868 (input_node_opt_summary): Likewise.
18869 * ipa-pure-const.c (pure_const_write_summary): Likewise.
18870 (pure_const_read_summary): Likewise.
18871 * ipa-prop.c (ipa_write_indirect_edge_info): Likewise.
18872 (ipa_read_indirect_edge_info): Likewise.
18873 (ipa_write_node_info): Likewise.
18874 (ipa_read_node_info): Likewise.
18875
18876 2010-06-14 H.J. Lu <hongjiu.lu@intel.com>
18877
18878 PR target/44534
18879 * config/i386/sse.md (vec_extract_lo_<mode>): Replace 0x1 with 0x0.
18880 (vec_extract_lo_v16hi): Likewise.
18881 (vec_extract_lo_v32qi): Likewise.
18882
18883 2010-06-14 Jakub Jelinek <jakub@redhat.com>
18884
18885 PR bootstrap/44426
18886 * tree.h (build_call_expr): Don't define as vararg macro, instead
18887 add a prototype.
18888 * builtins.c (build_call_nofold): Remove.
18889 (expand_builtin_int_roundingfn, expand_builtin_pow,
18890 expand_builtin_mempcpy_args, expand_builtin_stpcpy,
18891 expand_builtin_memset_args, expand_builtin_strcmp,
18892 expand_builtin_strncmp, expand_builtin_memory_chk): Use
18893 build_call_nofold_loc instead of build_call_nofold.
18894 (build_call_expr): New function.
18895
18896 PR tree-optimization/44508
18897 * tree-ssa-propagate.h (substitute_and_fold): Add DO_DCE argument.
18898 * tree-ssa-propagate.c (substitute_and_fold): If !DO_DCE,
18899 don't eliminate trivially dead stmts.
18900 * tree-vrp.c (vrp_finalize): Pass false as last argument
18901 to substitute_and_fold.
18902 * tree-ssa-copy.c (fini_copy_prop): Pass true as last argument
18903 to substitute_and_fold.
18904 * tree-ssa-ccp.c (ccp_finalize): Likewise.
18905
18906 PR bootstrap/44509
18907 * c-config-lang.in (gtfiles): Add c-family/c-cppbuiltin.c.
18908
18909 2010-06-14 Ira Rosen <irar@il.ibm.com>
18910
18911 PR tree-optimization/44507
18912 * tree-vect-loop.c (get_initial_def_for_reduction): Use -1
18913 to build initial vector for BIT_AND_EXPR.
18914 * tree-vect-slp.c (vect_get_constant_vectors): Likewise.
18915
18916 2010-06-14 Jakub Jelinek <jakub@redhat.com>
18917
18918 * config/s390/s390.md (*mov<mode>_64 DD_DF, mov<mode>): Properly
18919 adjust z10prop set_attr.
18920
18921 2010-06-13 Jan Hubicka <jh@suse.cz>
18922
18923 * bitmap.c (bitmap_and, bitmap_and_into, bitmap_and_compl,
18924 bitmap_and_compl_into, bitmap_compl_and_into, bitmap_ior,
18925 bitmap_ior_into, bitmap_xor, bitmap_xor_into,
18926 bitmap_ior_and_compl, bitmap_ior_and_compl): Turn internal
18927 datastructure checks into checking asserts.
18928 * rtlanal.c (find_reg_note): Use gcc_checking_assert.
18929 * tree-ssa-sccvn.c (VN_INFO): Likewise.
18930 * df-scan.c (df_reorganize_refs_by_reg_by_reg, df_install_ref,
18931 df_ref_create_structure): Likewise.
18932 * alloc-pool.c (create_alloc_pool, empty_alloc_pool, pool_alloc,
18933 pool_free): Use gcc_checking_assert.
18934 * alias.c (get_alias_set): Likewise.
18935 * var-tracking.c (variable_htab_free, shared_hash_copy,
18936 canonicalize_values_mark, variable_merge_over_cur): Likewise.
18937 * lto-streamer.c (bp_unpack_value): Likewise.
18938
18939 2010-06-13 Richard Guenther <rguenther@suse.de>
18940
18941 * lto-streamer-in.c (lto_input_ts_type_tree_pointers):
18942 Do not stream but initialize TYPE_CANONICAL to NULL.
18943 (lto_output_ts_type_tree_pointers): Do not stream TYPE_CANONICAL.
18944 * gimple.c (gimple_types_compatible_p): Disregard
18945 TYPE_STRUCTURAL_EQUALITY_P.
18946 (gimple_register_type): Use TYPE_CANONICAL as cache.
18947 * lto-streamer.c (lto_record_common_node): Zero TYPE_CANONICAL
18948 before registering common types.
18949 * config/i386/i386.c (ix86_function_arg_boundary): Do not
18950 use TYPE_CANONICAL, instead use TYPE_MAIN_VARIANT.
18951 * tree.h (TYPE_CANONICAL): Clarify documentation.
18952
18953 2010-06-13 Anatoly Sokolov <aesok@post.ru>
18954
18955 * config/ia64/ia64.h (FUNCTION_VALUE_REGNO_P, FUNCTION_VALUE,
18956 LIBCALL_VALUE): Remove macros.
18957 * config/ia64/ia64-protos.h (ia64_function_value): Remove.
18958 * config/ia64/ia64.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
18959 TARGET_FUNCTION_VALUE_REGNO_P): Define.
18960 (ia64_libcall_value, ia64_function_value_regno_p): New functions.
18961 (ia64_function_value): Make static. Handle receiving the function
18962 type in 'fn_decl_or_type' argunent. Add 'outgoing' argument.
18963
18964 2010-06-12 Jan Hubicka <jh@suse.cz>
18965
18966 * cse.c (cse_extended_basic_block): Move optimize_bb_for_speed_p
18967 at correct place.
18968
18969 2010-06-12 Bernd Schmidt <bernds@codesourcery.com>
18970
18971 * config/arm/arm.c (thumb2_reorg): Fix errors in previous change.
18972
18973 2010-06-12 Jan Hubicka <jh@suse.cz>
18974
18975 * df-core.c (df_clear_bb_info): New function.
18976 (df_set_blocks): bb_info is always allocated.
18977 (df_get_bb_info): Use block_info_elt_size.
18978 (df_set_bb_info): Likewise.
18979 (df_compact_blocks): Update for new block_info.
18980 (grow_bb_info): New function.
18981 * df-problems.c (df_grow_bb_info): Move to df-core.c
18982 (df_rd_set_bb_info): Remove.
18983 (df_rd_free_bb_info): Do not free block pool.
18984 (df_rd_alloc): Do not create pool, use check for
18985 obstack presence instead of NULL pointer for new blocks.
18986 (df_rd_free): DO not free alloc pool; clear block_info.
18987 (problem_RD): Add size of block info structure.
18988 (df_lr_set_bb_info): Remove.
18989 (df_lr_free_bb_info): Do not free block pool.
18990 (df_lr_alloc): Do not create pool, use check for
18991 obstack presence instead of NULL pointer for new blocks.
18992 (df_lr_free): DO not free alloc pool; clear block_info.
18993 (problem_LR): Add size of block info structure.
18994 (df_live_set_bb_info): Remove.
18995 (df_live_free_bb_info): Do not free block pool.
18996 (df_live_alloc): Do not create pool, use check for
18997 obstack presence instead of NULL pointer for new blocks.
18998 (df_live_free): DO not free alloc pool; clear block_info.
18999 (problem_LIVE): Add size of block info structure.
19000 (problem_CHAIN): Add size of block info structure.
19001 (df_byte_lr_set_bb_info): Remove.
19002 (df_byte_lr_free_bb_info): Do not free block pool.
19003 (df_byte_lr_alloc): Do not create pool, use check for
19004 obstack presence instead of NULL pointer for new blocks.
19005 (df_byte_lr_free): DO not free alloc pool; clear block_info.
19006 (problem_BYTE_LR): Add size of block info structure.
19007 (problem_NOTE): Add size of block info structure.
19008 (df_byte_MD_set_bb_info): Remove.
19009 (df_byte_MD_free_bb_info): Do not free block pool.
19010 (df_byte_MD_alloc): Do not create pool, use check for
19011 obstack presence instead of NULL pointer for new blocks.
19012 (df_byte_MD_free): DO not free alloc pool; clear block_info.
19013 (problem_BD): Add size of block info structure.
19014 * df-scan.c (df_scan_free_internal): Free block pool.
19015 (df_scan_set_bb_info): Remove.
19016 (df_scan_free_bb_info): Check for artificial_defs instead
19017 of bb_info being non-NULL.
19018 (df_scan_alloc): DO not create df_scan_block pool.
19019 (problem_SCAN): Set size of block info.
19020 (df_bb_refs_record): Do not allocate bb_info.
19021 * df.h (df_problem): Add block_info_elt_size.
19022 (struct dataflow): Change block_info to void *.
19023 (df_scan_get_bb_info, df_rd_get_bb_info, df_lr_get_bb_info,
19024 df_md_get_bb_info, df_live_get_bb_info, df_byte_lr_get_bb_info): Return
19025 in-line structures.
19026
19027 2010-06-12 Jan Hubicka <jh@suse.cz>
19028
19029 PR tree-optimize/44485
19030 * tree-cfgcleanup.c (fixup_noreturn_call): Remove basic blocks
19031 containing use of return value of noreturn function.
19032
19033 2010-06-12 Anatoly Sokolov <aesok@post.ru>
19034
19035 * targhooks.c (default_function_value): Don't use
19036 FUNCTION_OUTGOING_VALUE.
19037 * system.h (FUNCTION_OUTGOING_VALUE): Poison.
19038 * doc/tm.texi (FUNCTION_OUTGOING_VALUE): Removed.
19039
19040 2010-06-12 Kazu Hirata <kazu@codesourcery.com>
19041
19042 * config.gcc (mips64*-*-linux*, mipsisa64*-*-linux*, mips*-*-linux*):
19043 Add crtfastmath.o to extra_parts.
19044 * config/mips/crtfastmath.c: New.
19045 * config/mips/linux.h (ENDFILE_SPEC): New.
19046
19047 2010-06-12 Sebastian Pop <sebastian.pop@amd.com>
19048
19049 * graphite-clast-to-gimple.c (gcc_type_for_interval): Do not pass
19050 old_type in parameter.
19051 (gcc_type_for_value): Update call to gcc_type_for_interval.
19052 (compute_type_for_level_1): Renamed compute_type_for_level.
19053 Update call to gcc_type_for_interval.
19054
19055 2010-06-11 Joseph Myers <joseph@codesourcery.com>
19056
19057 * common.opt (Wstrict-aliasing=, Wstrict-overflow=, fabi-version=,
19058 flto-compression-level=, ftree-parallelize-loops=): Add RejectNegative.
19059
19060 2010-06-11 Joseph Myers <joseph@codesourcery.com>
19061
19062 * opts-common.c: Include options.h.
19063 (integral_argument): Move from opts.c.
19064 (decode_cmdline_option): New. Based on read_cmdline_option.
19065 * opts.c (integral_argument): Move to opts-common.c.
19066 (read_cmdline_option): Move most contents to
19067 decode_cmdline_option. Use %qs in diagnostics.
19068 * opts.h (CL_ERR_DISABLED, CL_ERR_MISSING_ARG, CL_ERR_WRONG_LANG,
19069 CL_ERR_UINT_ARG, struct cl_decoded_option, integral_argument,
19070 decode_cmdline_option): New.
19071
19072 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
19073
19074 PR target/44481
19075 * config/i386/i386.md (UNSPEC_PARITY): New unspec.
19076 (paritydi2_cmp): Use UNSPEC_PARITY unspec instead of parity RTX.
19077 (partiysi2_cmp): Ditto.
19078 (*partiyhi2_cmp): Ditto.
19079 (*parityqi2_cmp): Remove.
19080
19081 2010-06-11 Jan Hubicka <jh@suse.cz>
19082
19083 * bitmap.h (bmp_iter_next_bit): New.
19084 (bmp_iter_set, bmp_iter_and, bmp_iter_and_compl): Use it.
19085
19086 2010-06-11 Sandra Loosemore <sandra@codesourcery.com>
19087 Eric Botcazou <ebotcazou@adacore.com>
19088
19089 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Return again the
19090 computed cost.
19091
19092 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
19093
19094 * config/i386/i386.md (unspec): New define_c_enum.
19095 (unspecv): Ditto.
19096
19097 2010-06-10 Jakub Jelinek <jakub@redhat.com>
19098
19099 * Makefile.in (c-family/c-cppbuiltin.o): Depend on $(CPP_ID_DATA_H).
19100
19101 2010-06-11 Sebastian Pop <sebastian.pop@amd.com>
19102
19103 PR middle-end/44483
19104 * tree-if-conv.c (bb_predicate_s): New struct.
19105 (bb_predicate_p): New.
19106 (bb_has_predicate): New.
19107 (bb_predicate): New.
19108 (set_bb_predicate): New.
19109 (bb_predicate_gimplified_stmts): New.
19110 (set_bb_predicate_gimplified_stmts): New.
19111 (add_bb_predicate_gimplified_stmts): New.
19112 (init_bb_predicate): New.
19113 (free_bb_predicate): New.
19114 (is_predicated): Use bb_predicate.
19115 (add_to_predicate_list): Use bb_predicate and set_bb_predicate.
19116 (predicate_bbs): Same. Gimplify the condition of the basic blocks
19117 before processing their successors.
19118 (clean_predicate_lists): Removed.
19119 (find_phi_replacement_condition): Use bb_predicate.
19120 (process_phi_nodes): Renamed ifconvert_phi_nodes. Avoid useless
19121 computations.
19122 (insert_gimplified_predicates): New.
19123 (combine_blocks): Call insert_gimplified_predicates.
19124 (tree_if_conversion): Call free_bb_predicate instead of
19125 clean_predicate_lists.
19126
19127 2010-10-11 Paul Brook <paul@codesourcery.com>
19128
19129 * doc/invoke.texi: Document ARM -mcpu=cortex-m4.
19130 * config/arm/arm.c (all_architectures): Change v7e-m default to
19131 cortexm4.
19132 * config/arm/arm-cores.def: Add cortex-m4.
19133 * config/arm/arm-tune.md: Regenerate.
19134
19135 2010-06-11 Jan Hubicka <jh@suse.cz>
19136
19137 * ipa-pure-const.c (special_builtlin_state): New function.
19138 (check_call): Use it instead of special casign BUILT_IN_RETURN.
19139 (propagate_pure_const): Use it.
19140
19141 2010-06-11 Jan Hubicka <jh@suse.cz>
19142
19143 * df-problems.c (df_live_scratch): Convert to bitmap_head.
19144 (df_live_alloc): Initialize df_live_scratch when initializing
19145 problem_data.
19146 (df_live_transfer_function): Update uses of df_live_scratch.
19147 (df_live_free): Free problem_data; clear df_live_scratch before
19148 releasing the obstack.
19149 (df_md_free): Free problem data.
19150
19151 2010-06-11 Jan Hubicka <jh@suse.cz>
19152
19153 * doc/invoke.texi (Wsuggest-attribute): Document.
19154 (Wmissing-noreturn): Remove.
19155 * ipa-pure-const.c (warn_function_noreturn): New function.
19156 * opts.c (decode_options): Set warn_suggest_attribute_noreturn on
19157 warn_missing_noreturn.
19158 * common.opt (Wsuggest-attribute=noreturn): New.
19159 * tree-flow.h (warn_function_noreturn): Declare.
19160 * tree-cfg.c (execute_warn_function_noreturn): Use
19161 warn_function_noreturn.
19162 (gate_warn_function_noreturn): New.
19163 (pass_warn_function_noreturn): Update.
19164
19165 2010-06-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
19166
19167 * c-typeck.c (handle_warn_cast_qual): Add loc
19168 parameter. Improve warning message.
19169 (build_c_cast): Pass location to handle_warn_cast_qual.
19170
19171 2010-06-11 Uros Bizjak <ubizjak@gmail.com>
19172
19173 * config/i386/i386.md (pro_epilogue_adjust_stack_1) <TYPE_ALU>: Assert
19174 that operand 0 == operand 1. Use x86_maybe_negate_const_int to output
19175 insn mnemonic.
19176 (pro_epilogue_adjust_stack_rex64) <TYPE_ALU>: Ditto.
19177
19178 2010-06-10 Dodji Seketeli <dodji@redhat.com>
19179
19180 Fix bootstap on mips
19181 * dwarf2out.c (is_naming_typedef_dec): Built-in TYPE_DECLs cannot
19182 be naming typedefs.
19183
19184 2010-06-11 Kai Tietz <kai.tietz@onevision.com>
19185
19186 * system.h (helper_const_non_const_cast): New inline for
19187 gcc version <= 4.0.
19188 (CONST_CAST2): For gcc version <= 4.0 use
19189 new helper to do const/non-const casting.
19190
19191 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19192
19193 * doc/md.texi: Document the "unspec" and "unspecv" enum names.
19194 * Makefile.in (OBJS-common): Include insn-enums.o.
19195 (insn-enums.o): New rule.
19196 (simple_generated_c): Add insn-enums.c.
19197 (build/genenums.o): New rule.
19198 (genprogmd): Add "enums".
19199 * genconstants.c (print_enum_type): Declare a C string array
19200 for each enum.
19201 * genenums.c: New file.
19202 * print-rtl.c (print_rtx): If defined, use the "unspecv" enum
19203 for UNSPEC_VOLATILE. If defined, use the "unspec" enum for both
19204 UNSPEC and (as a fallback) for UNSPEC_VOLATILE.
19205
19206 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19207
19208 * doc/md.texi (define_enum_attr): Document.
19209 * rtl.def (DEFINE_ENUM_ATTR): New rtx.
19210 * read-md.h (lookup_enum_type): Declare.
19211 * read-md.c (lookup_enum_type): New function.
19212 * genattr.c (gen_attr, main): Handle DEFINE_ENUM_ATTR.
19213 * genattrtab.c (attr_desc): Add an enum_name field.
19214 (evaluate_eq_attr): Take the associated attribute as argument.
19215 Get the enum prefix from the enum_name field, if defined.
19216 Use ACONCAT rather than a fixed-length buffer. Update recursive calls.
19217 (simplify_test_exp): Pass attr to evaluate_eq_attr.
19218 (add_attr_value): New function, split out from...
19219 (gen_attr): ...here. Handle DEFINE_ENUM_ATTR.
19220 (write_test_expr): Pass attr to evaluate_eq_attr.
19221 (write_attr_get): Use the enum_name as the enum tag, if defined.
19222 (write_attr_valueq): Use the enum_name as a prefix, if defined.
19223 (find_attr): Initialize enum_name.
19224 (main): Handle DEFINE_ENUM_ATTR.
19225 * gensupport.c (process_rtx): Likewise.
19226 * config/mips/mips.h (mips_tune_attr): Delete.
19227 * config/mips/mips.md (cpu): Use define_attr_enum.
19228
19229 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19230
19231 * doc/md.texi (define_c_enum, define_enum): Document.
19232 * read-md.h (md_constant): Add a parent_enum field.
19233 (enum_value, enum_type): New structures.
19234 (upcase_string, traverse_enum_types): Declare.
19235 * read-md.c (enum_types): New variable.
19236 (upcase_string, add_constant): New functions.
19237 (handle_constants): Don't create the hash table here.
19238 Use add_constant.
19239 (traverse_md_constants): Don't check for a null md_constants.
19240 (decimal_string, handle_enum, traverse_enum_types): New functions.
19241 (read_md_files): Initialize md_constants and md_enums.
19242 * genconstants.c (print_md_constant): Ignore info argument.
19243 Only print constants that belong to no enum.
19244 (print_enum_type): New function.
19245 (main): Don't pass stdout to print_md_constant. Call print_enum_type
19246 for each defined enum type.
19247 * config/mips/mips.md (processor): New define_enum.
19248 (unspec): New define_c_enum.
19249 (UNSPEC_COMPARE_AND_SWAP, UNSPEC_COMPARE_AND_SWAP_12)
19250 (UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP, UNSPEC_SYNC_NEW_OP_12)
19251 (UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE, UNSPEC_SYNC_EXCHANGE_12)
19252 (UNSPEC_MEMORY_BARRIER): Moved to sync.md.
19253 (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ, UNSPEC_SUBQ_S, UNSPEC_ADDSC)
19254 (UNSPEC_ADDWC, UNSPEC_MODSUB, UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S)
19255 (UNSPEC_PRECRQ_QB_PH, UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W)
19256 (UNSPEC_PRECRQU_S_QB_PH, UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR)
19257 (UNSPEC_PRECEQU_PH_QBL, UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA)
19258 (UNSPEC_PRECEQU_PH_QBRA, UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR)
19259 (UNSPEC_PRECEU_PH_QBLA, UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL)
19260 (UNSPEC_SHLL_S, UNSPEC_SHRL_QB, UNSPEC_SHRA_PH, UNSPEC_SHRA_R)
19261 (UNSPEC_MULEU_S_PH_QBL, UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH)
19262 (UNSPEC_MULEQ_S_W_PHL, UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL)
19263 (UNSPEC_DPAU_H_QBR, UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR)
19264 (UNSPEC_DPAQ_S_W_PH, UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH)
19265 (UNSPEC_DPAQ_SA_L_W, UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL)
19266 (UNSPEC_MAQ_S_W_PHR, UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR)
19267 (UNSPEC_BITREV, UNSPEC_INSV, UNSPEC_REPL_QB, UNSPEC_REPL_PH)
19268 (UNSPEC_CMP_EQ, UNSPEC_CMP_LT, UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB)
19269 (UNSPEC_CMPGU_LT_QB, UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH)
19270 (UNSPEC_EXTR_W, UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H)
19271 (UNSPEC_EXTP, UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
19272 (UNSPEC_RDDSP): Move to mips-dsp.md.
19273 (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH, UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB)
19274 (UNSPEC_ADDUH_R_QB, UNSPEC_APPEND, UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB)
19275 (UNSPEC_CMPGDU_LT_QB, UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH)
19276 (UNSPEC_DPS_W_PH, UNSPEC_MADD, UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU)
19277 (UNSPEC_MUL_PH, UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH)
19278 (UNSPEC_MULQ_S_W, UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU)
19279 (UNSPEC_PRECR_QB_PH, UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W)
19280 (UNSPEC_PREPEND, UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH)
19281 (UNSPEC_SUBU_PH, UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB)
19282 (UNSPEC_ADDQH_PH, UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W)
19283 (UNSPEC_SUBQH_PH, UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W)
19284 (UNSPEC_DPAX_W_PH, UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH)
19285 (UNSPEC_DPAQX_SA_W_PH, UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH):
19286 Moved to mips-dspr2.md.
19287 (UNSPEC_MOVE_TF_PS, UNSPEC_C, UNSPEC_ALNV_PS, UNSPEC_CABS)
19288 (UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS, UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS)
19289 (UNSPEC_ABS_PS, UNSPEC_RSQRT1, UNSPEC_RSQRT2, UNSPEC_RECIP1)
19290 (UNSPEC_RECIP2, UNSPEC_SINGLE_CC, UNSPEC_SCC): Move from mips-ps-3d.md.
19291 (UNSPEC_LOONGSON_PAVG, UNSPEC_LOONGSON_PCMPEQ, UNSPEC_LOONGSON_PCMPGT)
19292 (UNSPEC_LOONGSON_PEXTR, UNSPEC_LOONGSON_PINSR_0)
19293 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
19294 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
19295 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
19296 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
19297 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
19298 UNSPEC_LOONGSON_PSADBH)
19299 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
19300 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
19301 (UNSPEC_LOONGSON_PSUBD): Move to mips-loongson.md.
19302 (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
19303 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
19304 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
19305 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Move to mips-loongson2ef.md.
19306 (cpu): Update comment.
19307 * config/mips/sync.md (UNSPEC_COMPARE_AND_SWAP)
19308 (UNSPEC_COMPARE_AND_SWAP_12, UNSPEC_SYNC_OLD_OP, UNSPEC_SYNC_NEW_OP)
19309 (UNSPEC_SYNC_NEW_OP_12, UNSPEC_SYNC_OLD_OP_12, UNSPEC_SYNC_EXCHANGE)
19310 (UNSPEC_SYNC_EXCHANGE_12, UNSPEC_MEMORY_BARRIER): Moved from mips.md.
19311 * config/mips/loongson.md (UNSPEC_LOONGSON_PAVG,
19312 UNSPEC_LOONGSON_PCMPEQ)
19313 (UNSPEC_LOONGSON_PCMPGT, UNSPEC_LOONGSON_PEXTR,
19314 UNSPEC_LOONGSON_PINSR_0)
19315 (UNSPEC_LOONGSON_PINSR_1, UNSPEC_LOONGSON_PINSR_2)
19316 (UNSPEC_LOONGSON_PINSR_3, UNSPEC_LOONGSON_PMADD)
19317 (UNSPEC_LOONGSON_PMOVMSK, UNSPEC_LOONGSON_PMULHU)
19318 (UNSPEC_LOONGSON_PMULH, UNSPEC_LOONGSON_PMULL, UNSPEC_LOONGSON_PMULU)
19319 (UNSPEC_LOONGSON_PASUBUB, UNSPEC_LOONGSON_BIADD,
19320 UNSPEC_LOONGSON_PSADBH)
19321 (UNSPEC_LOONGSON_PSHUFH, UNSPEC_LOONGSON_PUNPCKH)
19322 (UNSPEC_LOONGSON_PUNPCKL, UNSPEC_LOONGSON_PADDD)
19323 (UNSPEC_LOONGSON_PSUBD): Moved from mips.md
19324 * config/mips/loongson2ef.md (UNSPEC_LOONGSON_ALU1_TURN_ENABLED_INSN)
19325 (UNSPEC_LOONGSON_ALU2_TURN_ENABLED_INSN)
19326 (UNSPEC_LOONGSON_FALU1_TURN_ENABLED_INSN)
19327 (UNSPEC_LOONGSON_FALU2_TURN_ENABLED_INSN): Moved from mips.md
19328 * config/mips/mips-dsp.md (UNSPEC_ADDQ, UNSPEC_ADDQ_S, UNSPEC_SUBQ)
19329 (UNSPEC_SUBQ_S, UNSPEC_ADDSC, UNSPEC_ADDWC, UNSPEC_MODSUB)
19330 (UNSPEC_RADDU_W_QB, UNSPEC_ABSQ_S, UNSPEC_PRECRQ_QB_PH)
19331 (UNSPEC_PRECRQ_PH_W, UNSPEC_PRECRQ_RS_PH_W, UNSPEC_PRECRQU_S_QB_PH)
19332 (UNSPEC_PRECEQ_W_PHL, UNSPEC_PRECEQ_W_PHR, UNSPEC_PRECEQU_PH_QBL)
19333 (UNSPEC_PRECEQU_PH_QBR, UNSPEC_PRECEQU_PH_QBLA, UNSPEC_PRECEQU_PH_QBRA)
19334 (UNSPEC_PRECEU_PH_QBL, UNSPEC_PRECEU_PH_QBR, UNSPEC_PRECEU_PH_QBLA)
19335 (UNSPEC_PRECEU_PH_QBRA, UNSPEC_SHLL, UNSPEC_SHLL_S, UNSPEC_SHRL_QB)
19336 (UNSPEC_SHRA_PH, UNSPEC_SHRA_R, UNSPEC_MULEU_S_PH_QBL)
19337 (UNSPEC_MULEU_S_PH_QBR, UNSPEC_MULQ_RS_PH, UNSPEC_MULEQ_S_W_PHL)
19338 (UNSPEC_MULEQ_S_W_PHR, UNSPEC_DPAU_H_QBL, UNSPEC_DPAU_H_QBR)
19339 (UNSPEC_DPSU_H_QBL, UNSPEC_DPSU_H_QBR, UNSPEC_DPAQ_S_W_PH)
19340 (UNSPEC_DPSQ_S_W_PH, UNSPEC_MULSAQ_S_W_PH, UNSPEC_DPAQ_SA_L_W)
19341 (UNSPEC_DPSQ_SA_L_W, UNSPEC_MAQ_S_W_PHL, UNSPEC_MAQ_S_W_PHR)
19342 (UNSPEC_MAQ_SA_W_PHL, UNSPEC_MAQ_SA_W_PHR, UNSPEC_BITREV, UNSPEC_INSV)
19343 (UNSPEC_REPL_QB, UNSPEC_REPL_PH, UNSPEC_CMP_EQ, UNSPEC_CMP_LT)
19344 (UNSPEC_CMP_LE, UNSPEC_CMPGU_EQ_QB, UNSPEC_CMPGU_LT_QB)
19345 (UNSPEC_CMPGU_LE_QB, UNSPEC_PICK, UNSPEC_PACKRL_PH, UNSPEC_EXTR_W)
19346 (UNSPEC_EXTR_R_W, UNSPEC_EXTR_RS_W, UNSPEC_EXTR_S_H, UNSPEC_EXTP)
19347 (UNSPEC_EXTPDP, UNSPEC_SHILO, UNSPEC_MTHLIP, UNSPEC_WRDSP)
19348 (UNSPEC_RDDSP): Moved from mips.md.
19349 * config/mips/mips-dspr2.md (UNSPEC_ABSQ_S_QB, UNSPEC_ADDU_PH)
19350 (UNSPEC_ADDU_S_PH, UNSPEC_ADDUH_QB, UNSPEC_ADDUH_R_QB, UNSPEC_APPEND)
19351 (UNSPEC_BALIGN, UNSPEC_CMPGDU_EQ_QB, UNSPEC_CMPGDU_LT_QB)
19352 (UNSPEC_CMPGDU_LE_QB, UNSPEC_DPA_W_PH, UNSPEC_DPS_W_PH, UNSPEC_MADD)
19353 (UNSPEC_MADDU, UNSPEC_MSUB, UNSPEC_MSUBU, UNSPEC_MUL_PH)
19354 (UNSPEC_MUL_S_PH, UNSPEC_MULQ_RS_W, UNSPEC_MULQ_S_PH, UNSPEC_MULQ_S_W)
19355 (UNSPEC_MULSA_W_PH, UNSPEC_MULT, UNSPEC_MULTU, UNSPEC_PRECR_QB_PH)
19356 (UNSPEC_PRECR_SRA_PH_W, UNSPEC_PRECR_SRA_R_PH_W, UNSPEC_PREPEND)
19357 (UNSPEC_SHRA_QB, UNSPEC_SHRA_R_QB, UNSPEC_SHRL_PH, UNSPEC_SUBU_PH)
19358 (UNSPEC_SUBU_S_PH, UNSPEC_SUBUH_QB, UNSPEC_SUBUH_R_QB, UNSPEC_ADDQH_PH)
19359 (UNSPEC_ADDQH_R_PH, UNSPEC_ADDQH_W, UNSPEC_ADDQH_R_W, UNSPEC_SUBQH_PH)
19360 (UNSPEC_SUBQH_R_PH, UNSPEC_SUBQH_W, UNSPEC_SUBQH_R_W, UNSPEC_DPAX_W_PH)
19361 (UNSPEC_DPSX_W_PH, UNSPEC_DPAQX_S_W_PH, UNSPEC_DPAQX_SA_W_PH)
19362 (UNSPEC_DPSQX_S_W_PH, UNSPEC_DPSQX_SA_W_PH): Moved from mips.md.
19363 * config/mips/mips-ps-3d.md (UNSPEC_MOVE_TF_PS, UNSPEC_C)
19364 (UNSPEC_ALNV_PS, UNSPEC_CABS, UNSPEC_ADDR_PS, UNSPEC_CVT_PW_PS)
19365 (UNSPEC_CVT_PS_PW, UNSPEC_MULR_PS, UNSPEC_ABS_PS, UNSPEC_RSQRT1)
19366 (UNSPEC_RSQRT2, UNSPEC_RECIP1, UNSPEC_RECIP2, UNSPEC_SINGLE_CC)
19367 (UNSPEC_SCC): Moved from mips.md.
19368 * config/mips/mips.c (mips_arch, mips_tune): Change enum from
19369 "processor_type" to "processor".
19370 (mips_rtx_cost_data): Replace PROCESSOR_MAX with NUM_PROCESSOR_VALUES.
19371 * config/mips/mips.h (processor_type): Delete.
19372 (mips_cpu_info.cpu, mips_arch, mips_tune): Change enum from
19373 "processor_type" to "processor".
19374
19375 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19376
19377 * configure.ac (tm_include_list): Add insn-constants.h.
19378 * configure: Regenerate.
19379 * Makefile.in (GTM_H): Move insn-constants.h here from...
19380 (TM_H): ...here.
19381 * mkconfig.sh: Remove special handling for insn-constants.h.
19382
19383 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19384
19385 * Makefile.in (BUILD_RTL): Move build/read-md.o to...
19386 (BUILD_MD): ...this new variable.
19387 (simple_generated_rtl_h, simple_generated_rtl_c): New variables
19388 that include the old contents of simple_generated_h and
19389 simple_generated_c.
19390 (simple_generated_h, simple_generated_c): Include them. Add
19391 insn-constants.h.
19392 (s-%): Make simple_generated_{h,c} stamps depend on $(MD_DEPS)
19393 and simple_generated_rtl_{h,c} stamps depend on insn-conditions.md.
19394 Remove these dependencies from the main rule and include
19395 insn-conditions.md in the command line only if it appears
19396 in the dependency list.
19397 (insn-constants.h, s-constants): Delete.
19398 (build/genconstants.o): Don't depend on $(RTL_BASE_H), $(GTM_H)
19399 or gensupport.h.
19400 (build/genmddeps.o): Likewise.
19401 (genprogrtl): New variable that contains everything from genprogmd
19402 except mddeps and constants.
19403 (genprogmd): Redefine in terms of genprogrtl. Make these programs
19404 depend on $(BUILD_MD)
19405 (genprog): New variable. Make these programs depend on
19406 $(BUILD_ERRORS).
19407 * genmddeps.c: Don't include tm.h, rtl.h or gensupport.h.
19408 (main): Use read_md_files instead of init_rtx_reader_args.
19409 * genconstants.c: As for genmddeps.c.
19410 * read-md.h (read_skip_construct): Declare.
19411 * read-md.c (read_skip_construct): New function.
19412 (handle_file): Allow a null handle_directive, skipping the
19413 construct if so.
19414 (parse_include): Update the comment accordingly.
19415
19416 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19417
19418 * Makefile.in (build/genmddeps.o): Depend on $(READ_MD_H).
19419 * genmddeps.c: Include read-md.h.
19420 (main): Call init_rtx_reader_args instead of init_md_reader_args.
19421 * genattr.c (main): Likewise.
19422 * genattrtab.c (main): Likewise.
19423 * genautomata.c (main): Likewise.
19424 * gencodes.c (main): Likewise.
19425 * genconditions.c (main): Likewise.
19426 * genconfig.c (main): Likewise.
19427 * genconstants.c (main): Likewise.
19428 * genemit.c (main): Likewise.
19429 * genextract.c (main): Likewise.
19430 * genflags.c (main): Likewise.
19431 * genopinit.c (main): Likewise.
19432 * genoutput.c (main): Likewise.
19433 * genpeep.c (main): Likewise.
19434 * genrecog.c (main): Likewise.
19435 * genpreds.c (main): Likewise.
19436 * gensupport.h (in_fname): Move to read-md.h.
19437 (init_md_reader_args_cb): Rename to...
19438 (init_rtx_reader_args_cb): ...this and return a bool.
19439 (init_md_reader_args): Rename to...
19440 (init_rtx_reader_args): ...this and return a bool.
19441 (include_callback): Move to read-md.h.
19442 * gensupport.c (in_fname, include_callback, base_dir, max_include_len)
19443 (file_name_list, first_dir_md_include): Move to read-md.c
19444 (first_bracket_include): Delete unused variable.
19445 (last_dir_md_include): Move to read-md.c.
19446 (process_include): Delete, moving code to read-md.c:handle_include.
19447 (process_rtx): Don't handle INCLUDE.
19448 (save_string): Delete.
19449 (rtx_handle_directive): New function.
19450 (init_md_reader_args_cb): Rename to...
19451 (init_rtx_reader_args_cb): ...this and return a boolean success value.
19452 Use read_md_args.
19453 (init_md_reader_args): Rename to...
19454 (init_rtx_reader_args): ...this and return a boolean success value.
19455 * rtl.def (INCLUDE): Delete.
19456 * rtl.h (read_rtx): Remove "int *" argument. Add "const char *"
19457 argument.
19458 * read-rtl.c (read_conditions): Don't gobble ')' here.
19459 (read_mapping): Likewise.
19460 (read_rtx): Remove LINENO argument. Add RTX_NAME argument.
19461 Handle top-level non-rtx constructs here rather than in read_rtx_1.
19462 Store the whole queue in *X. Remove call to init_md_reader.
19463 (read_rtx_1): Rename to...
19464 (read_rtx_code): ...this. Call read_nested_rtx to read subrtxes.
19465 Don't handle top-level non-rtx constructs here. Don't handle (nil)
19466 here.
19467 (read_nested_rtx): New function. Handle (nil) here rather than
19468 in read_rtx_code.
19469 (read_rtx_variadic): Call read_nested_rtx to read subrtxes. Don't
19470 gobble ')' here.
19471 * read-md.h (directive_handler_t): New type.
19472 (in_fname, include_callback): Moved from read-md.h.
19473 (read_constants, init_md_reader): Delete.
19474 (read_md_files): Declare.
19475 * read-md.c (file_name_list, in_fname, base_dir, first_dir_md_include)
19476 (last_dir_md_include_ptr, include_callback, max_include_len): Moved
19477 from gensupport.c.
19478 (read_constants): Rename to...
19479 (handle_constants): ...this. Don't gobble ')' here.
19480 (handle_include, handle_file, handle_toplevel_file)
19481 (parse_include): New functions, mostly taken from gensupport.c.
19482 (init_md_reader): Subsume into...
19483 (read_md_files): ...this new function.
19484
19485 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19486
19487 * read-md.h (read_char): Increment read_md_lineno after reading '\n'.
19488 (unread_char): Decrement read_md_lineno after putting back '\n'.
19489 * read-md.c (fatal_with_file_and_line): Push back any characters
19490 that we decide not to add to the context.
19491 (read_skip_spaces): Don't increment read_md_lineno here. Avoid using
19492 fatal_expected_char in cases where '/' ends a line (for example).
19493 (read_name): Don't increment read_md_lineno here.
19494 (read_escape): Likewise.
19495 (read_quoted_string): Likewise.
19496 (read_braced_string): Likewise.
19497
19498 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19499
19500 * Makefile.in (READ_MD_H): Add $(HASHTAB_H).
19501 (build/genconstants.o): Depend on $(READ_MD_H) gensupport.h.
19502 * genconstants.c: Include read-md.h.
19503 * read-rtl.c (md_constants): Move to read-md.c.
19504 (md_name): Move to read-md.h.
19505 (initialize_iterators): Use leading_string_hash instead of def_hash
19506 and leading_string_eq_p instead of def_name_eq_p.
19507 (read_name): Move to read-md.c.
19508 (def_hash, def_name_eq_p): Delete.
19509 (read_constants, traverse_md_constants): Move to read-md.c.
19510 * rtl.h (md_constant, traverse_md_constants): Move to read-md.h.
19511 * read-md.h: Include hashtab.h.
19512 (md_name): Moved from read-rtl.c.
19513 (md_constant): Moved from read-md.h.
19514 (leading_string_hash, leading_string_eq_p, read_name)
19515 (read_constants, traverse_md_constants): Declare.
19516 * read-md.c (md_constants): Moved from read-rtl.c.
19517 (leading_string_hash, leading_string_eq_p): New functions.
19518 (read_name, read_constants, traverse_md_constants): Moved from
19519 read-rtl.c.
19520
19521 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19522
19523 * read-rtl.c (md_name): New structure.
19524 (read_name): Take an md_name instead of a buffer pointer.
19525 Use the "string" field instead of strcpy when expanding constants.
19526 (read_constants): Remove the tmp_char argument. Update the calls
19527 to read_name, using two local name buffers instead of the tmp_char
19528 argument. Merge the constant-creation code.
19529 (read_conditions): Remove the tmp_char argument. Update the calls
19530 to read_name, using a local name buffer instead of the tmp_char
19531 argument.
19532 (read_mapping): Replace tmp_char variable with a local name buffer.
19533 Update the calls to read_name.
19534 (read_rtx_1): Likewise. Update the calls to read_constants and
19535 read_conditions.
19536
19537 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19538
19539 * Makefile.in (build/read-md.o): Depend on errors.h.
19540 * read-md.h (error_with_line): Declare.
19541 * read-md.c: Include errors.h.
19542 (message_with_line_1): New function, extracted from...
19543 (message_with_line): ...here.
19544 (error_with_line): New function.
19545 * genattrtab.c: If a call to message_with_line is followed by
19546 "have_error = 1;", replace both statements with a call to
19547 error_with_line.
19548 * genoutput.c: Likewise.
19549 * genpreds.c: Likewise.
19550 * genrecog.c: If a call to message_with_line is followed by
19551 "error_count++;", replace both statements with a call to
19552 error_with_line.
19553 (errorcount): Delete.
19554 (main): Don't check it.
19555 * gensupport.c: If a call to message_with_line is followed by
19556 "errors = 1;", replace both statements with a call to error_with_line.
19557 (errors): Delete.
19558 (process_define_cond_exec): Check have_error instead of errors.
19559 (init_md_reader_args_cb): Likewise. Don't set errors.
19560
19561 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19562
19563 * read-md.h (read_md_file): Declare.
19564 (read_char, unread_char): New functions.
19565 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
19566 (read_quoted_string, read_string): Remove FILE * argument.
19567 * read-md.c (read_md_file): New variable.
19568 (read_md_filename, read_md_lineno): Update comments and remove
19569 unnecessary initialization.
19570 (fatal_with_file_and_line, fatal_expected_char, read_skip_spaces)
19571 (read_escape, read_quoted_string, read_braced_string, read_string):
19572 Remove FILE * argument. Update calls accordingly, using read_char
19573 and unread_char instead of getc and ungetc.
19574 * rtl.h (read_rtx): Remove FILE * argument.
19575 * read-rtl.c (iterator_group): Remove FILE * argument from
19576 "find_builtin".
19577 (iterator_traverse_data): Remove "infile" field.
19578 (find_mode, find_code, apply_mode_maps, apply_iterator_to_rtx)
19579 (add_mapping, read_name, read_constants, read_conditions)
19580 (validate_const_int, find_iterator, read_mapping, check_code_iterator)
19581 (read_rtx, read_rtx_1, read_rtx_variadic): Remove FILE * argument.
19582 Remove file arguments from all calls, using read_char and unread_char
19583 instead of getc and ungetc.
19584 * gensupport.c (process_include): Preserve read_md_file around
19585 the include. Set read_md_file to the handle of the included file.
19586 Update call to read_rtx.
19587 (init_md_reader_args_cb): Set read_md_file to the handle of the file
19588 and remove local FILE *. Update calls to read_rtx.
19589
19590 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19591
19592 * read-md.h (read_rtx_lineno): Rename to...
19593 (read_md_lineno): ...this.
19594 (read_rtx_filename): Rename to...
19595 (read_md_filename): ...this.
19596 (copy_rtx_ptr_loc): Rename to...
19597 (copy_md_ptr_loc): ...this.
19598 (print_rtx_ptr_loc): Rename to...
19599 (print_md_ptr_loc): ...this.
19600 * read-md.c: Likewise. Update references after renaming.
19601 (string_obstack): Replace RTL with MD in comment.
19602 (set_rtx_ptr_loc): Rename to...
19603 (set_md_ptr_loc): ...this.
19604 (get_rtx_ptr_loc): Rename to...
19605 (get_md_ptr_loc): ...this.
19606 * genconditions.c: Update references after renaming.
19607 * genemit.c: Likewise.
19608 * genoutput.c: Likewise.
19609 * genpreds.c: Likewise.
19610 * gensupport.c: Likewise.
19611 * read-rtl.c: Likewise.
19612
19613 2010-06-10 Richard Sandiford <rdsandiford@googlemail.com>
19614
19615 * Makefile.in (READ_MD_H): New variable.
19616 (BUILD_RTL): Add build/read-md.o.
19617 (lto-wrapper.o): Depend on coretypes.h instead of defaults.h.
19618 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
19619 (build/genattrtab.o, build/genconditions.o build/genemit.o)
19620 (build/genextract.o, build/genflags.o, build/genoutput.o)
19621 (build/genpreds.o, build/genrecog.o): Depend on $(READ_MD_H).
19622 (build/read-md.o): New rule.
19623 * defaults.h (obstack_chunk_alloc, obstack_chunk_free)
19624 (OBSTACK_CHUNK_SIZE, gcc_obstack_init): Move to...
19625 * coretypes.h: ...here.
19626 * lto-wrapper.c: Include coretypes.h instead of defaults.h.
19627 * pretty-print.c (obstack_chunk_alloc, obstack_chunk_free): Delete.
19628 * genattr.c: Include read-md.h.
19629 * genattrtab.c: Likewise.
19630 * genconditions.c: Likewise.
19631 * genemit.c: Likewise.
19632 * genextract.c: Likewise.
19633 * genflags.c: Likewise.
19634 * genoutput.c: Likewise.
19635 * genpreds.c: Likewise.
19636 * genrecog.c: Likewise.
19637 * rtl.h (read_skip_spaces, copy_rtx_ptr_loc, print_rtx_ptr_loc)
19638 (join_c_conditions, print_c_condition, read_rtx_filename)
19639 (read_rtx_lineno): Move to read-md.h.
19640 * read-rtl.c: Include read-md.h.
19641 (ptr_loc, string_obstack, ptr_locs, ptr_loc_obstack)
19642 (joined_conditions, joined_conditions_obstack, read_rtx_lineno)
19643 (read_rtx_filename, fatal_with_file_and_line, fatal_expected_char)
19644 (leading_ptr_hash, leading_ptr_eq_p, set_rtx_ptr_loc, get_rtx_ptr_loc)
19645 (copy_rtx_ptr_loc, print_rtx_ptr_loc, join_c_conditions)
19646 (print_c_condition, read_skip_spaces, read_escape, read_quoted_string)
19647 (read_braced_string, read_string): Move to read-md.c.
19648 (read_rtx): Move some initialization to init_md_reader and call
19649 init_md_reader here.
19650 * gensupport.h (message_with_line, n_comma_elts, scan_comma_elt):
19651 Move to read-md.h.
19652 * gensupport.c: Include read-md.h.
19653 (message_with_line, n_comma_elts, scan_comma_elt): Move to read-md.c.
19654 * read-md.h, read-md.c: New files.
19655
19656 2010-06-10 Anatoly Sokolov <aesok@post.ru>
19657
19658 * config/moxie/moxie.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
19659 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
19660 * config/moxie/moxie-protos.h (moxie_function_value): Remove.
19661 * config/moxie/moxie.c (moxie_function_value): Make static.
19662 (moxie_libcall_value, moxie_function_value_regno_p): New functions.
19663 (TARGET_LIBCALL_VALUE, TARGET_FUNCTION_VALUE_REGNO_P): Define.
19664
19665 2010-06-10 Martin Jambor <mjambor@suse.cz>
19666
19667 * Makefile.in (tree-sra.o): Add DBGCNT_H to dependencies.
19668 * dbgcnt.def (tree_sra): New counter.
19669 * tree-sra.c: Include dbgcnt.h.
19670 (gate_intra_sra): Check tree_sra debug counter.
19671
19672 2010-06-10 Martin Jambor <mjambor@suse.cz>
19673
19674 PR tree-optimization/44258
19675 * tree-sra.c (build_access_subtree): Return false iff there is a
19676 partial overlap.
19677 (build_access_trees): Likewise.
19678 (analyze_all_variable_accesses): Disqualify candidates if
19679 build_access_trees returns true for them.
19680
19681 2010-06-10 Alexandre Oliva <aoliva@redhat.com>
19682
19683 PR debug/41371
19684 * var-tracking.c (find_loc_in_1pdv): Remove recursion, only
19685 tail-recurse into canonical node. Fast-forward over
19686 non-canonical VALUEs.
19687
19688 2010-06-10 H.J. Lu <hongjiu.lu@intel.com>
19689
19690 PR boostrap/44470
19691 * config/i386/i386.md (*add<mode>_1): Revert revision 160394.
19692 (*addsi_1_zext) <TYPE_LEA>: Likewise.
19693 (add lea splitter): Likewise.
19694 (add_zext lea splitter): Likewise.
19695
19696 2010-06-10 Joseph Myers <joseph@codesourcery.com>
19697
19698 * common.opt (fshow-column): Don't mark as C ObjC C++ ObjC++.
19699
19700 2010-06-10 Jan Hubicka <jh@suse.cz>
19701
19702 * df-problems.c (df_live_problem_data): Add live_bitmaps.
19703 (df_live_alloc): Initialize problem data and live_osbtacks.
19704 (df_live_finalize): Remove obstack, problem data; do not
19705 clear all bitmaps.
19706 (df_live_top_dump, df_live_bottom_dump): Do not dump old
19707 data when not allocated.
19708 (df_live_verify_solution_start): Do not allocate problem data.
19709 (df_live_verify_solution_end): Check if out is allocated.
19710 (struct df_md_problem_data): New structure.
19711 (df_md_alloc): Allocate problem data.
19712 (df_md_free): Free problem data; do not clear bitmaps.
19713
19714 2010-06-10 Jan Beulich <jbeulich@novell.com>
19715
19716 PR bootstrap/37304
19717 * configure.ac: Replace $() with ${} when intending to expand
19718 variables rather than invoking commands.
19719 * configure: Re-generate.
19720
19721 2010-06-10 Jan Hubicka <jh@suse.cz>
19722
19723 PR rtl-optimization/44460
19724 * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove
19725 TYPE_NEEDS_CONSTRUCTING sanity check.
19726
19727 2010-06-10 Gerald Pfeifer <gerald@pfeifer.com>
19728
19729 * doc/include/fdl.texi: Move to GFDL version 1.3.
19730
19731 * doc/cpp.texi: Move to GFDL version 1.3.
19732 * doc/gcc.texi: Move to GFDL version 1.3. Fix copyright years.
19733 * doc/gccint.texi: Move to GFDL version 1.3.
19734 * doc/gcov.texi: Move to GFDL version 1.3. Update copyright years.
19735 * doc/install.texi: Move to GFDL version 1.3. Fix copyright years.
19736 * doc/invoke.texi: Move to GFDL version 1.3.
19737
19738 2010-06-09 Jan Hubicka <jh@suse.cz>
19739
19740 * ipa-pure-const.c (propagate_pure_const, propagate_noreturn):
19741 Break out from ...
19742 (propagate) ... here; swap the order.
19743
19744 2010-06-09 Jan Hubicka <jh@suse.cz>
19745
19746 * bitmap.c (bitmap_elt_insert_after, bitmap_first_set_bit,
19747 bitmap_first_set_bit, bitmap_last_set_bit, bitmap_last_set_bit,
19748 bitmap_and_into, bitmap_and_compl_into, bitmap_set_range,
19749 bitmap_compl_and_into, bitmap_elt_ior): Use checking asserts.
19750
19751 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
19752
19753 * tree-ssa-loop-prefetch.c (gather_memory_references_ref):
19754 Do not the gather memory reference in the outer loop if the step
19755 is not a constant.
19756
19757 2010-06-09 Changpeng Fang <changpeng.fang@amd.com>
19758
19759 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO) :
19760 Change the PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO threshold value from
19761 8 to 4. Minor change of the related comments.
19762
19763 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
19764
19765 * tree-scalar-evolution.c (instantiate_scev_name): Do not fail
19766 the scev analysis when the variable is not used outside the loop
19767 in a close phi node: call compute_overall_effect_of_inner_loop.
19768
19769 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
19770
19771 * graphite-sese-to-poly.c (single_pred_cond): Renamed
19772 single_pred_cond_non_loop_exit. Return NULL for loop exit edges.
19773 (build_sese_conditions_before): Renamed call to single_pred_cond.
19774 (build_sese_conditions_after): Same.
19775
19776 2010-06-09 Sebastian Pop <sebastian.pop@amd.com>
19777
19778 * graphite-poly.h: Fix comments and indentation.
19779 * graphite-sese-to-poly.c: Same.
19780 (build_sese_conditions_before): Compute stmt and gbb only when needed.
19781 * tree-chrec.c: Fix comments and indentation.
19782 (tree-ssa-loop-niter.c): Same.
19783
19784 2010-06-09 Eric Botcazou <ebotcazou@adacore.com>
19785
19786 PR rtl-optimization/42461
19787 * dce.c (deletable_insn_p): Return true for const or pure calls again.
19788 * except.c (insn_could_throw_p): Return false if !flag_exceptions.
19789
19790 2010-06-09 Jan Hubicka <jh@suse.cz>
19791
19792 * bitmap.c (bitmap_and): Walk array forward.
19793 (bitmap_and_compl_into): Likewise.
19794 (bitmap_xor): Likewise.
19795 (bitmap_xor_into): Likewise.
19796 (bitmap_equal_p): Likewise.
19797 (bitmap_intersect_p): Likewise.
19798 (bitmap_intersect_compl_p): Likewise.
19799 (bitmap_ior_and_into): Likewise.
19800 (bitmap_elt_copy): Likewise.
19801 (bitmap_and_compl): Likewise.
19802 (bitmap_elt_ior): Likewise.
19803
19804 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
19805
19806 * opts-common.c (prune_options): Ensure replacement argv array
19807 is correctly terminated by a NULL entry.
19808
19809 2010-06-09 Jan Hubicka <jh@suse.cz>
19810
19811 * cgraph.h (varpool_first_static_initializer,
19812 varpool_next_static_initializer): Make checking only when
19813 checking enabled.
19814 * tree-vectorizer.h (vinfo_for_stmt): Remove check.
19815 (set_vinfo_for_stmt, get_earlier_stmt, is_loop_header_bb_p): Change
19816 gcc_assert to gcc_checking_assert.
19817 * tree-flow-inline.h (gimple_vop, get_var_ann, relink_imm_use,
19818 phi_nodes, set_phi_nodes, phi_arg_index_from_use, op_iter_next_use,
19819 op_iter_next_def, op_iter_next_tree, op_iter_init, op_iter_init_use,
19820 op_iter_init_phiuse, op_iter_init_phidef,
19821 array_ref_contains_indirect_ref, ref_contains_array_ref): Use
19822 gcc_checking_assert.
19823 * emit-rtl.h (set_first_insn, set_last_insn): Likewise.
19824 * tree-ssa-live.h (var_to_partition, var_to_partition_to_var,
19825 partition_is_global, live_on_entry, live_on_exit,
19826 live_merge_and_clear): Likewise.
19827 * system.h (gcc_checking_assert): New macro.
19828 * gimple.h (set_bb_seq): Use gcc_checking_assert.
19829
19830 2010-06-09 Jason Merrill <jason@redhat.com>
19831
19832 * Makefile.in (TAGS): Collect tags info from c-family.
19833
19834 2010-06-09 Jan Hubicka <jh@suse.cz>
19835
19836 * gimple.h (gcc_gimple_checking_assert): New macro.
19837 (gimple_set_def_ops, gimple_set_use_ops,
19838 gimple_set_vuse, gimple_set_vdef,
19839 gimple_omp_subcode, gimple_omp_set_subcode, gimple_ops, gimple_op,
19840 gimple_op_ptr, gimple_op_ptr, gimple_set_op, gimple_bind_set_block,
19841 gimple_asm_input_op, gimple_asm_input_op_ptr, gimple_asm_set_input_op,
19842 gimple_asm_output_op, gimple_asm_output_op_ptr,
19843 gimple_asm_set_output_op, gimple_asm_clobber_op,
19844 gimple_asm_set_clobber_op, gimple_asm_label_op,
19845 gimple_asm_set_label_op, gimple_try_set_kind,
19846 gimple_try_catch_is_cleanup, gimple_try_set_catch_is_cleanup,
19847 gimple_phi_arg, gimple_switch_num_labels, gimple_switch_set_index,
19848 gimple_switch_label, gimple_switch_set_label, gimple_omp_for_index,
19849 gimple_omp_for_index_ptr, gimple_omp_for_set_index,
19850 gimple_omp_for_initial, gimple_omp_for_initial_ptr,
19851 gimple_omp_for_set_initial, gimple_omp_for_final,
19852 gimple_omp_for_final_ptr, gimple_omp_for_set_final,
19853 gimple_omp_for_incr, gimple_omp_for_incr_ptr, gimple_omp_for_set_incr,
19854 gimple_omp_for_set_cond, gimple_omp_for_cond): Make checking
19855 conditional with ENABLE_GIMPLE_CHECKING.
19856 (gimple_phi_set_arg): Likewise; replace memcpy by assignment.
19857
19858 2010-06-09 Sandra Loosemore <sandra@codesourcery.com>
19859
19860 * tree-ssa-loop-ivopts.c (adjust_setup_cost): New function.
19861 (get_computation_cost_at): Use it.
19862 (determine_use_iv_cost_condition): Likewise.
19863 (determine_iv_cost): Likewise.
19864
19865 2010-06-09 Richard Guenther <rguenther@suse.de>
19866
19867 * tree-ssa-loop-niter.c (simplify_replace_tree): Do not
19868 replace constants.
19869
19870 2010-06-09 Kai Tietz <kai.tietz@onevision.com>
19871
19872 * c-objc-common.c (c_tree_printer): Pre-intialize t by NULL_TREE.
19873
19874 2010-06-09 Martin Jambor <mjambor@suse.cz>
19875
19876 PR tree-optimization/44423
19877 * tree-sra.c (dump_access): Dump also grp_assignment_read.
19878 (analyze_access_subtree): Pass negative allow_replacements to children
19879 if the current type is scalar.
19880
19881 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
19882
19883 PR testsuite/42843
19884 * gcc-plugin.h (int plugin_is_GPL_compatible): Declare as extern "C".
19885 * doc/plugins.texi (Plugin license check): Update information
19886 on type of plugin_is_GPL_compatible.
19887 * Makefile.in (PLUGINCC): Define as $(COMPILER).
19888 (PLUGINCFLAGS): Define as $(COMPILER_FLAGS).
19889
19890 2010-06-09 Bernd Schmidt <bernds@codesourcery.com>
19891
19892 * config/arm/arm.c (thumb2_reorg): New function.
19893 (arm_reorg): Call it.
19894 * config/arm/thumb2.md (define_peephole2 for flag clobbering
19895 arithmetic operations): Delete.
19896
19897 2010-06-09 Edmar Wienskoski <edmar@freescale.com>
19898
19899 PR target/44067
19900 * config/rs6000/rs6000.md (DIFD): Do not split dpfp values for
19901 e500v2 target.
19902
19903 2010-06-09 Joern Rennecke <joern.rennecke@embecosm.com>
19904
19905 PR plugins/44459
19906 * gcc-plugin.h: Encapsulate all declarations in extern "C".
19907
19908 2010-06-08 Jan Hubicka <jh@suse.cz>
19909
19910 * basic-block.h (single_succ_edge, single_pred_edge, ei_container,
19911 ei_next, ei_prev): Do sanity checking with ENABLE_CHECKING only.
19912
19913 2010-06-08 Sandra Loosemore <sandra@codesourcery.com>
19914
19915 PR tree-optimization/39874
19916 PR middle-end/28685
19917 * gimple.h (maybe_fold_and_comparisons, maybe_fold_or_comparisons):
19918 Declare.
19919 * gimple-fold.c (canonicalize_bool, same_bool_comparison_p,
19920 same_bool_result_p): New.
19921 (and_var_with_comparison, and_var_with_comparison_1,
19922 and_comparisons_1, and_comparisons, maybe_fold_and_comparisons): New.
19923 (or_var_with_comparison, or_var_with_comparison_1,
19924 or_comparisons_1, or_comparisons, maybe_fold_or_comparisons): New.
19925 * tree-ssa-reassoc.c (eliminate_redundant_comparison): Use
19926 maybe_fold_and_comparisons or maybe_fold_or_comparisons instead
19927 of combine_comparisons.
19928 * tree-ssa-ifcombine.c (ifcombine_ifandif, ifcombine_iforif): Likewise.
19929
19930 2010-06-08 Anatoly Sokolov <aesok@post.ru>
19931
19932 * config/pdp11/pdp11.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
19933 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
19934 * config/pdp11/pdp11.c (pdp11_function_value, pdp11_libcall_value,
19935 pdp11_function_value_regno_p): New functions.
19936 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
19937 TARGET_FUNCTION_VALUE_REGNO_P): Define.
19938
19939 2010-06-08 Kazu Hirata <kazu@codesourcery.com>
19940
19941 * config/arm/arm.c (arm_rtx_costs_1): Don't special case for
19942 Thumb-2 in the MINUS case.
19943
19944 2010-06-08 Laurynas Biveinis <laurynas.biveinis@gmail.com>
19945
19946 * doc/tm.texi (Per-Function Data): Do not reference ggc_alloc.
19947
19948 * doc/gty.texi (GTY Options): Document typed GC allocation and
19949 variable_size GTY option.
19950
19951 * ggc-internal.h: New.
19952
19953 * ggc.h: Update copyright year.
19954 (digit_string): Move to stringpool.c.
19955 (ggc_mark_stringpool, ggc_purge_stringpool, ggc_mark_roots)
19956 (gt_pch_save_stringpool, gt_pch_fixup_stringpool)
19957 (gt_pach_restore_stringpool, gt_pch_p_S, gt_pch_note_object)
19958 (init_ggc_pch, ggc_pch_count_object, ggc_pch_total_size)
19959 (ggc_pch_this_base, ggc_pch_alloc_object, ggc_pch_prepare_write)
19960 (ggc_pch_write_object, ggc_pch_finish, ggc_pch_read)
19961 (ggc_force_collect, ggc_get_size, ggc_statistics)
19962 (ggc_print_common_statistics): Move to ggc-internal.h.
19963 (digit_vector, new_ggc_zone, destroy_ggc_zone, ggc_alloc_stat)
19964 (ggc_alloc, ggc_alloc_cleared, ggc_realloc, ggc_calloc, GGC_NEW)
19965 (GGC_CNEW, GGC_NEWVEC, GGC_CNEWVEC, GGC_NEWVAR, ggc_alloc_rtvec)
19966 (ggc_alloc_tree, gt_pch_save, ggc_min_expand_heuristic)
19967 (ggc_min_heapsize_heuristic, ggc_alloc_zone)
19968 (ggc_alloc_zone_pass_stat): Remove.
19969 (ggc_internal_alloc_stat, ggc_internal_alloc)
19970 (ggc_internal_cleared_alloc_stat): New.
19971 (GGC_RESIZEVEC, GGC_RESIZEVAR): Redefine.
19972 (ggc_internal_vec_alloc_stat)
19973 (ggc_internal_cleared_vec_alloc_stat)
19974 (ggc_internal_vec_alloc_stat, ggc_internal_cleared_vec_alloc)
19975 (ggc_alloc_atomic_stat, ggc_alloc_atomic)
19976 (ggc_alloc_cleared_atomic, ggc_cleared_alloc_htab_ignore_args)
19977 (ggc_cleared_alloc_ptr_array_two_args): New.
19978 (htab_create_ggc, splay_tree_new_ggc): Redefine.
19979 (ggc_splay_alloc): Change the type of the first argument to
19980 enum gt_types_enum.
19981 (ggc_alloc_string): Make macro.
19982 (ggc_alloc_string_stat): New.
19983 (ggc_strdup): Redefine.
19984 (rtl_zone, tree_zone, tree_id_zone): Declare unconditionally.
19985 (ggc_alloc_rtvec_sized): New.
19986 (ggc_alloc_zone_stat): Rename to ggc_internal_alloc_zone_stat.
19987 (ggc_internal_alloc_zone_pass_stat, ggc_internal_alloc_zone_stat)
19988 (ggc_internal_cleared_alloc_zone_stat)
19989 (ggc_internal_zone_alloc_stat)
19990 (ggc_internal_zone_cleared_alloc_stat)
19991 (ggc_internal_zone_vec_alloc_stat)
19992 (ggc_alloc_zone_rtx_def_stat)
19993 (ggc_alloc_zone_tree_node_stat)
19994 (ggc_alloc_zone_cleared_tree_node_stat)
19995 (ggc_alloc_cleared_gimple_statement_d_stat): New.
19996
19997 * ggc-common.c: Include ggc-internal.h.
19998 (ggc_internal_cleared_alloc_stat): Rename from
19999 ggc_alloc_cleared_stat.
20000 (ggc_realloc_stat): Use ggc_internal_alloc_stat.
20001 (ggc_calloc): Remove.
20002 (ggc_cleared_alloc_htab_ignore_args): New.
20003 (ggc_cleared_alloc_ptr_array_two_args): New.
20004 (ggc_splay_alloc): Add obj_type parameter.
20005 (init_ggc_heuristics): Formatting fixes.
20006
20007 * ggc-none.c: Update copyright year.
20008 (ggc_alloc_stat): Rename to ggc_alloc_stat.
20009 (ggc_alloc_cleared_stat): Rename to
20010 ggc_internal_cleared_alloc_stat.
20011 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
20012
20013 * ggc-page.c: Update copyright year. Include ggc-internal.h.
20014 Remove references to ggc_alloc in comments.
20015 (ggc_alloc_typed_stat): Call ggc_internal_alloc_stat.
20016 (ggc_alloc_stat): Rename to ggc_internal_alloc_stat.
20017 (new_ggc_zone, destroy_ggc_zone): Remove.
20018 (struct alloc_zone, rtl_zone, tree_zone, tree_id_zone): New.
20019
20020 * ggc-zone.c: Include ggc-internal.h. Remove references to
20021 ggc_alloc in comments.
20022 (ggc_alloc_zone_stat): ggc_internal_alloc_zone_stat.
20023 (ggc_internal_alloc_zone_pass_stat): New.
20024 (ggc_internal_cleared_alloc_zone_stat): New.
20025 (ggc_alloc_typed_stat): Use ggc_internal_alloc_zone_pass_stat.
20026 (ggc_alloc_stat): Rename ggc_internal_alloc_stat.
20027 (new_ggc_zone, destroy_ggc_zone): Remove.
20028
20029 * stringpool.c: Update copyright year. Include ggc-internal.h
20030 (digit_vector): Make static.
20031 (digit_string): Moved from ggc.h.
20032 (stringpool_ggc_alloc): Use ggc_alloc_atomic.
20033 (ggc_alloc_string): Rename to ggc_alloc_string_stat.
20034
20035 * Makefile.in (GGC_INTERNAL_H): New.
20036 (ggc_common.o, ggc-page.o, ggc-zone.o, stringpool.o): Add
20037 $(GGC_INTERNAL_H) to dependencies.
20038
20039 * gentype.c: Update copyright year.
20040 (walk_type): Accept variable_size GTY option.
20041 (USED_BY_TYPED_GC_P): New macro.
20042 (write_enum_defn): Use USED_BY_TYPED_GC_P. Do not output
20043 whitespace at the end of strings.
20044 (get_type_specifier, variable_size_p): New functions.
20045 (alloc_quantity, alloc_zone): New enums.
20046 (write_typed_alloc_def): New function.
20047 (write_typed_struct_alloc_def): Likewise.
20048 (write_typed_typed_typedef_alloc_def): Likewise.
20049 (write_typed_alloc_defns): Likewise.
20050 (output_typename, write_splay_tree_allocator_def): Likewise.
20051 (write_splay_tree_allocators): Likewise.
20052 (main): Call write_typed_alloc_defns and
20053 write_splay_tree_allocators.
20054
20055 * lto-streamer.h (lto_file_decl_data_ptr): New.
20056
20057 * passes.c (order): Define using cgraph_node_ptr.
20058
20059 * strinpool.c (struct string_pool_data): Declare nested_ptr using
20060 ht_identifier_ptr.
20061
20062 * gimple.h (union gimple_statement_d): Likewise.
20063
20064 * rtl.h (struct rtx_def): Likewise.
20065 (struct rtvec_def): Likewise.
20066
20067 * tree.h (union tree_node): Likewise.
20068
20069 * tree-ssa-operands.h (struct ssa_operand_memory_d): Likewise.
20070
20071 * cfgloop.c (record_loop_exits): Use htab_create_ggc.
20072
20073 * tree-scalar-evolution.c (scev_initialize): Likewise.
20074
20075 * alias.c (record_alias_subset): Update splay_tree_new_ggc call.
20076
20077 * dwarf2asm.c (dw2_force_const_mem): Likewise.
20078
20079 * omp-low.c (lower_omp_critical): Likewise.
20080
20081 * bitmap.h (struct bitmap_head_def): Update comment to not
20082 reference ggc_alloc.
20083
20084 * config/pa/pa.c (get_deferred_label): Use GGC_RESIZEVEC.
20085
20086 * ira.c (fix_reg_equiv_init): Use GGC_RESIZEVEC.
20087
20088 * ipa-prop.c (duplicate_ggc_array): Rename to
20089 duplicate_ipa_jump_func_array. Use typed GC allocation.
20090 (ipa_edge_duplication_hook): Call duplicate_ipa_jump_func_array.
20091
20092 * gimple.c (gimple_alloc_stat): Use
20093 ggc_alloc_cleared_gimple_statement_d_stat.
20094
20095 * varasm.c (create_block_symbol): Use ggc_alloc_zone_rtx_def.
20096
20097 * tree.c (make_node_stat): Use
20098 ggc_alloc_zone_cleared_tree_node_stat.
20099 (make_tree_vec_stat): Likewise.
20100 (build_vl_exp_stat): Likewise.
20101 (copy_node_stat): Use ggc_alloc_zone_tree_node_stat.
20102 (make_tree_binfo_stat): Likewise.
20103 (tree_cons_stat): Likewise.
20104
20105 * rtl.c (rtx_alloc_stat): Use ggc_alloc_zone_rtx_def_stat.
20106 (shallow_copy_rtx_stat): Likewise.
20107 (make_node_stat): Likewise.
20108
20109 * lto-symtab.c: Fix comment.
20110
20111 * tree-cfg.c (create_bb): Update comment to not reference
20112 ggc_alloc_cleared.
20113 * tree-ssa-structalias.c (struct heapvar_for_stmt): Fix param_is value.
20114
20115 * varpool.c (varpool_node): Use typed GC allocation.
20116 (varpool_extra_name_alias): Likewise.
20117
20118 * varasm.c (emutls_decl): Likewise.
20119 (get_unnamed_section): Likewise.
20120 (get_noswitch_section): Likewise.
20121 (get_section): Likewise.
20122 (get_block_for_section): Likewise.
20123 (build_constant_desc): Likewise.
20124 (create_constant_pool): Likewise.
20125 (force_const_mem): Likewise.
20126
20127 * tree.c (build_vl_exp_stat): Likewise.
20128 (build_real): Likewise.
20129 (build_string): Likewise.
20130 (decl_debug_expr_insert): Likewise.
20131 (decl_value_expr_insert): Likewise.
20132 (type_hash_add): Likewise.
20133 (build_omp_clause): Likewise.
20134
20135 * tree-ssanames.c (duplicate_ssa_name_ptr_info): Likewise.
20136
20137 * tree-ssa.c (init_tree_ssa): Likewise.
20138
20139 * tree-ssa-structalias.c (heapvar_insert): Likewise.
20140
20141 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
20142
20143 * tree-ssa-loop-niter.c (record_estimate): Likewise.
20144
20145 * tree-ssa-alias.c (get_ptr_info): Likewise.
20146
20147 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
20148
20149 * tree-phinodes.c (allocate_phi_node): Likewise.
20150
20151 * tree-iterator.c (tsi_link_before): Likewise.
20152 (tsi_link_after): Likewise.
20153
20154 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
20155
20156 * tree-dfa.c (create_var_ann): Likewise.
20157
20158 * tree-cfg.c (create_bb): Likewise.
20159
20160 * toplev.c (alloc_for_identifier_to_locale): Likewise.
20161 (general_init): Likewise.
20162
20163 * stringpool.c (stringpool_ggc_alloc): Likewise.
20164 (gt_pch_save_stringpool): Likewise.
20165
20166 * sese.c (if_region_set_false_region): Likewise.
20167
20168 * passes.c (do_per_function_toporder): Likewise.
20169
20170 * optabs.c (set_optab_libfunc): Likewise.
20171 (set_conv_libfunc): Likewise.
20172
20173 * lto-symtab.c (lto_symtab_register_decl): Likewise.
20174
20175 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
20176 (input_eh_region): Likewise.
20177 (input_eh_lp): Likewise.
20178 (make_new_block): Likewise.
20179 (unpack_ts_real_cst_value_fields): Likewise.
20180
20181 * lto-section-in.c (lto_new_in_decl_state): Likewise.
20182
20183 * lto-cgraph.c (input_node_opt_summary): Likewise.
20184
20185 * loop-init.c (loop_optimizer_init): Likewise.
20186
20187 * lambda.h (lambda_vector_new): Likewise.
20188
20189 * lambda-code.c (replace_uses_equiv_to_x_with_y): Likewise.
20190
20191 * ira.c (update_equiv_regs): Likewise.
20192
20193 * ipa.c (cgraph_node_set_new): Likewise.
20194 (cgraph_node_set_add): Likewise.
20195 (varpool_node_set_new): Likewise.
20196 (varpool_node_set_add): Likewise.
20197
20198 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Likewise.
20199 (duplicate_ipa_jump_func_array): Likewise.
20200 (ipa_read_node_info): Likewise.
20201
20202 * ipa-cp.c (ipcp_create_replace_map): Likewise.
20203
20204 * integrate.c (get_hard_reg_initial_val): Likewise.
20205
20206 * gimple.c (gimple_alloc_stat): Likewise.
20207 (gimple_build_omp_for): Likewise.
20208 (gimple_seq_alloc): Likewise.
20209 (gimple_copy): Likewise.
20210
20211 * gimple-iterator.c (gsi_insert_before_without_update): Likewise.
20212 (gsi_insert_after_without_update): Likewise.
20213
20214 * function.c (add_frame_space): Likewise.
20215 (insert_temp_slot_address): Likewise.
20216 (assign_stack_temp_for_type): Likewise.
20217 (allocate_struct_function): Likewise.
20218 (types_used_by_var_decl_insert): Likewise.
20219
20220 * except.c (init_eh_for_function): Likewise.
20221 (gen_eh_region): Likewise.
20222 (gen_eh_region_catch): Likewise.
20223 (gen_eh_landing_pad): Likewise.
20224 (add_call_site): Likewise.
20225
20226 * emit-rtl.c (get_mem_attrs): Likewise.
20227 (get_reg_attrs): Likewise.
20228 (start_sequence): Likewise.
20229 (init_emit): Likewise.
20230
20231 * dwarf2out.c (new_cfi): Likewise.
20232 (queue_reg_save): Likewise.
20233 (dwarf2out_frame_init): Likewise.
20234 (new_loc_descr): Likewise.
20235 (find_AT_string): Likewise.
20236 (new_die): Likewise.
20237 (add_var_loc_to_decl): Likewise.
20238 (clone_die): Likewise.
20239 (clone_as_declaration): Likewise.
20240 (break_out_comdat_types): Likewise.
20241 (new_loc_list): Likewise.
20242 (loc_descriptor): Likewise.
20243 (add_loc_descr_to_each): Likewise.
20244 (add_const_value_attribute): Likewise.
20245 (tree_add_const_value_attribute): Likewise.
20246 (add_comp_dir_attribute): Likewise.
20247 (add_name_and_src_coords_attributes): Likewise.
20248 (lookup_filename): Likewise.
20249 (store_vcall_insn): Likewise.
20250 (dwarf2out_init): Likewise.
20251
20252 * dbxout.c (dbxout_init): Likewise.
20253
20254 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
20255
20256 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
20257
20258 * config/score/score7.c (score7_output_external): Likewise.
20259
20260 * config/score/score3.c (score3_output_external): Likewise.
20261
20262 * config/s390/s390.c (s390_init_machine_status): Likewise.
20263
20264 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
20265 (rs6000_init_machine_status): Likewise.
20266 (output_toc): Likewise.
20267
20268 * config/pa/pa.c (pa_init_machine_status): Likewise.
20269 (get_deferred_plabel): Likewise.
20270
20271 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
20272
20273 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
20274
20275 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
20276
20277 * config/mep/mep.c (mep_init_machine_status): Likewise.
20278 (mep_note_pragma_flag): Likewise.
20279
20280 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
20281
20282 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
20283
20284 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
20285
20286 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
20287 (i386_pe_maybe_record_exported_symbol): Likewise.
20288
20289 * config/i386/i386.c (get_dllimport_decl): Likewise.
20290 (ix86_init_machine_status): Likewise.
20291 (assign_386_stack_local): Likewise.
20292
20293 * config/frv/frv.c (frv_init_machine_status): Likewise.
20294
20295 * config/darwin.c (machopic_indirection_name): Likewise.
20296
20297 * config/cris/cris.c (cris_init_machine_status): Likewise.
20298
20299 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
20300
20301 * config/avr/avr.c (avr_init_machine_status): Likewise.
20302
20303 * config/arm/arm.c (arm_init_machine_status): Likewise.
20304
20305 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
20306 (alpha_need_linkage): Likewise.
20307 (alpha_use_linkage): Likewise.
20308
20309 * cgraph.c (cgraph_allocate_node): Likewise.
20310 (cgraph_create_edge_1): Likewise.
20311 (cgraph_create_indirect_edge): Likewise.
20312 (cgraph_add_asm_node): Likewise.
20313
20314 * cfgrtl.c (init_rtl_bb_info): Likewise.
20315
20316 * cfgloop.c (alloc_loop): Likewise.
20317 (rescan_loop_exit): Likewise.
20318
20319 * cfg.c (init_flow): Likewise.
20320 (alloc_block): Likewise.
20321 (unchecked_make_edge): Likewise.
20322
20323 * c-parser.c (c_parse_init): Likewise.
20324 (c_parse_file): Likewise.
20325
20326 * c-decl.c (bind): Likewise.
20327 (record_inline_static): Likewise.
20328 (push_scope): Likewise.
20329 (make_label): Likewise.
20330 (lookup_label_for_goto): Likewise.
20331 (finish_struct): Likewise.
20332 (finish_enum): Likewise.
20333 (c_push_function_context): Likewise.
20334
20335 * bitmap.c (bitmap_element_allocate): Likewise.
20336 (bitmap_gc_alloc_stat): Likewise.
20337
20338 * alias.c (record_alias_subset): Likewise.
20339 (init_alias_analysis): Likewise.
20340
20341 2010-06-08 Shujing Zhao <pearly.zhao@oracle.com>
20342
20343 * fold-const.c (fold_comparison): Remove redundant parenthesis.
20344 * tree-inline.c (expand_call_inline): Pass translated return value of
20345 cgraph_inline_failed_string to diagnostic function.
20346
20347 2010-06-08 Andrew Pinski <pinskia@gmail.com>
20348 Shujing Zhao <pearly.zhao@oracle.com>
20349
20350 PR c/37724
20351 * c-typeck.c (convert_for_assignment): Call pedwarn_init if the
20352 implicit bad conversions is initialization.
20353 (error_init): Use gmsgid instead of msgid for argument name and change
20354 the call for error.
20355 (pedwarn_init): Use gmsgid instead of msgid for argument name and
20356 change the call for pedwarn.
20357 (warning_init): Use gmsgid instead of msgid for argument name and
20358 change the call for warning.
20359
20360 2010-06-07 Nathan Froyd <froydnj@codesourcery.com>
20361
20362 * config/mips/mips-protos.h (mips_print_operand): Delete.
20363 (mips_print_operand_address): Delete.
20364 * config/mips/mips.h (mips_print_operand_punct): Delete.
20365 (PRINT_OPERAND): Delete.
20366 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20367 (PRINT_OPERAND_ADDRESS): Delete.
20368 * config/mips/mips.c (mips_print_operand_punct): Make static.
20369 (mips_print_operand_address): Make static.
20370 (mips_print_operand): Make static. Call
20371 mips_print_operand_punct_valid_p.
20372 (mips_print_operand_punct_valid_p): New function.
20373 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define.
20374 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
20375
20376 2010-06-07 Jan Hubicka <jh@suse.cz>
20377
20378 PR middle-end/44454
20379 (df_lr_top_dump, df_lr_bottom_dump): Check that in/out bitmaps
20380 are allocated.
20381
20382 2010-06-07 Kaz Kojima <kkojima@gcc.gnu.org>
20383
20384 * config/sh/sh.c (sh_build_builtin_va_list): Set tree type
20385 name of RECORD.
20386
20387 2010-06-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
20388
20389 * doc/sourcebuild.texi (Effective-Target Keywords, Other
20390 attributes): Document gas.
20391
20392 2010-06-07 Uros Bizjak <ubizjak@gmail.com>
20393
20394 * config/i386/i386.md (*add<mode>_1): Remove alternative 2.
20395 <TYPE_LEA>: Split instruction.
20396 <default>: Remove alternative 2 handling.
20397 (*addsi_1_zext) <TYPE_LEA>: Split instruction.
20398 (add lea splitter): Generate SImode lea for mode sizes <= SImode.
20399 (add_zext lea splitter): Use ix86_lea_for_add_ok in insn predicate.
20400
20401 (*movsi_1) <TYPE_LEA>: Use %a modifier to output operand 1.
20402 (ashift_zext lea splitter): Use DImode for multiplication.
20403
20404 * config/i386/i386.c (ix86_expand_epilogue): Do not use ix86_gen_add
20405 to generate addition.
20406
20407 2010-06-07 Joseph Myers <joseph@codesourcery.com>
20408
20409 * common.opt (fira-verbose): Use Var.
20410 (fpcc-struct-return): Use Init instead of VarExists.
20411 * defaults.h (DEFAULT_PCC_STRUCT_RETURN): Move definition from
20412 toplev.c.
20413 * flags.h (flag_signed_char, flag_short_enums,
20414 flag_pcc_struct_return, flag_ira_verbose,
20415 flag_detailed_statistics, flag_remove_unreachable_functions): Remove.
20416 * toplev.c (flag_detailed_statistics, flag_signed_char,
20417 flag_short_enums, flag_pcc_struct_return, flag_ira_verbose): Remove.
20418 (DEFAULT_PCC_STRUCT_RETURN): Move definition to defaults.h.
20419 * toplev.h (flag_crossjumping, flag_if_conversion,
20420 flag_if_conversion2, flag_keep_static_consts, flag_peel_loops,
20421 flag_rerun_cse_after_loop, flag_thread_jumps, flag_tracer,
20422 flag_unroll_loops, flag_unroll_all_loops, flag_unswitch_loops,
20423 flag_cprop_registers, time_report, flag_ira_loop_pressure,
20424 flag_ira_coalesce, flag_ira_move_spills,
20425 flag_ira_share_save_slots, flag_ira_share_spill_slots): Remove.
20426
20427 2010-06-07 Jan Hubicka <jh@suse.cz>
20428
20429 * df-core.c (df_analyze_problem): Do verification after allocation.
20430
20431 * df-problems.c (df_lr_problem_data): Add lr_bitmaps.
20432 (df_lr_alloc): Initialize problem data; move bitmaps to
20433 lr_bitmaps obstack.
20434 (df_lr_finalize): Free problem data; do not bother to free bitmaps.
20435 (df_lr_verify_solution_start): Do not initialize problem data;
20436 allocate bitmaps in lr_bitmaps.
20437 (df_lr_verify_solution_end): Do not free problem data.
20438
20439 2010-06-07 Jan Hubicka <jh@suse.cz>
20440
20441 * cgraph.c (cgraph_edge_cannot_lead_to_return): Also check
20442 if caller is noreturn.
20443 * ipa-reference.c (analyze_function): Use ipa_ref_cannot_lead_to_return
20444 * ipa-ref.h (ipa_ref_cannot_lead_to_return): New function.
20445 * ipa-ref.c (ipa_ref_cannot_lead_to_return): New function.
20446 * ipa-pure-const.c (check_decl): Add IPA parameter.
20447 (state_from_flags): New function.
20448 (better_state, worse_state): New functions.
20449 (check_call): When in IPA mode, do not care about callees.
20450 (check_load, check_store): Update.
20451 (check_ipa_load, check_ipa_store): New.
20452 (check_stmt): When in IPA mode, use IPA checkers.
20453 (analyze_function): Use state_from_flags.
20454 (propagate): Check indirect edges and references.
20455
20456 2010-06-07 Kazu Hirata <kazu@codesourcery.com>
20457
20458 PR rtl-optimization/44404
20459 * auto-inc-dec.c (find_inc): Use reg_overlap_mentioned_p instead
20460 of count_occurrences to see if it's safe to modify mem_insn.
20461
20462 2010-06-07 Richard Guenther <rguenther@suse.de>
20463
20464 * gimplify.c (gimplify_cleanup_point_expr): For empty body
20465 and EH-only cleanup drop the cleanup instead of inserting it
20466 unconditionally.
20467
20468 2010-06-07 Ira Rosen <irar@il.ibm.com>
20469
20470 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Update
20471 documentation.
20472 * targhooks.c (default_builtin_vectorization_cost): New function.
20473 * targhooks.h (default_builtin_vectorization_cost): Declare.
20474 * target.h (enum vect_cost_for_stmt): Define.
20475 (builtin_vectorization_cost): Change argument and comment.
20476 * tree-vectorizer.h: Remove cost model macros.
20477 * tree-vect-loop.c: Include target.h.
20478 (vect_get_cost): New function.
20479 (vect_estimate_min_profitable_iters): Replace cost model macros with
20480 calls to vect_get_cost.
20481 (vect_model_reduction_cost, vect_model_induction_cost): Likewise.
20482 * target-def.h (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Add
20483 default implementation.
20484 * tree-vect-stmts.c (cost_for_stmt): Replace cost model macros with
20485 calls to target hook builtin_vectorization_cost.
20486 (vect_model_simple_cost, vect_model_store_cost, vect_model_load_cost):
20487 Likewise.
20488 * Makefile.in (tree-vect-loop.o): Add dependency on TARGET_H.
20489 * config/spu/spu.c (spu_builtin_vectorization_cost): Replace with new
20490 implementation to return costs.
20491 * config/i386/i386.c (ix86_builtin_vectorization_cost): Likewise.
20492 * config/spu/spu.h: Remove vectorizer cost model macros.
20493 * config/i386/i386.h: Likewise.
20494 * tree-vect-slp.c (vect_build_slp_tree): Replace cost model macro with
20495 a call to target hook builtin_vectorization_cost.
20496
20497 2010-06-06 Sriraman Tallam <tmsriram@google.com>
20498
20499 PR target/44319
20500 * config/i386/i386.c (override_options): Turn zee pass on for level 2
20501 and above and defer till target is known.
20502 (optimization_options): Turn on zee pass if TARGET_64BIT is set and
20503 turn off otherwise.
20504
20505 2010-05-25 Jan Hubicka <jh@suse.cz>
20506
20507 * df-core.c (df_set_blocks): Use bitmap_head instead of bitmap.
20508 (df_compact_blocks): Likewise.
20509 * df.h (struct df): Turn hardware_regs_used,
20510 regular_block_artificial_uses, eh_block_artificial_uses,
20511 insns_to_delete, insns_to_rescan, insns_to_notes_rescan into
20512 bitmap_head.
20513 * df-problems.c (df_lr_local_compute, df_lr_confluence_0,
20514 df_byte_lr_alloc, df_simulate_fixup_sets): Update.
20515 * df-scan.c (df_scan_free_internal, df_scan_alloc, df_scan_start_dump,
20516 df_scan_blocks, df_insn_delete, df_insn_rescan,
20517 df_insn_rescan_debug_internal, df_insn_rescan_all,
20518 df_process_deferred_rescans, df_process_deferred_rescans,
20519 df_notes_rescan, df_get_call_refs, df_get_call_refs,
20520 regs_invalidated_by_call_regset, df_get_call_refs, df_bb_refs_collect,
20521 df_record_entry_block_defs, df_record_exit_block_uses,
20522 df_update_exit_block_uses, df_bb_verify, df_entry_block_bitmap_verify,
20523 df_scan_verify): Update.
20524
20525 2010-05-25 Dodji Seketeli <dodji@redhat.com>
20526
20527 PR c++/44188
20528 * c-common.c (is_typedef_decl): Move this definition ...
20529 * tree.c (is_typedef_decl): ... here.
20530 (typdef_variant_p): Move definition here from cp/tree.c.
20531 * c-common.h (is_typedef_decl): Move this declaration ...
20532 * tree.h (is_typedef_decl): ... here.
20533 (typedef_variant_p): Move declaration here from cp/cp-tree.h
20534 * dwarf2out.c (is_naming_typedef_decl): New function.
20535 (gen_tagged_type_die): Split out of ...
20536 (gen_type_die_with_usage): ... this function. When an anonymous
20537 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
20538 is emitted for the typedef.
20539 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
20540 anonymous tagged types.
20541
20542 2010-06-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
20543
20544 PR c/20000
20545 * c-decl.c (grokdeclarator): Delete warning.
20546
20547 2010-06-06 Eric Botcazou <ebotcazou@adacore.com>
20548
20549 * stor-layout.c (self_referential_size): Set UNKNOWN_LOCATION on the
20550 newly built CALL_EXPR.
20551 * tree-profile.c (tree_profiling): Don't profile functions produced
20552 for built-in stuff.
20553
20554 2010-06-06 Segher Boessenkool <segher@kernel.crashing.org>
20555
20556 PR bootstrap/44427
20557 PR bootstrap/44428
20558 * genautomata.c (SET_BIT, CLEAR_BIT, TEST_BIT): Make these macros
20559 endianness-independent.
20560
20561 2010-06-05 Steven Bosscher <steven@gcc.gnu.org>
20562
20563 * c-common.c: Move to c-family/.
20564 * c-common.def: Likewise.
20565 * c-common.h: Likewise.
20566 * c-cppbuiltin.c: Likewise.
20567 * c-dump.c: Likewise.
20568 * c-format.c: Likewise.
20569 * c-format.h : Likewise.
20570 * c-gimplify.c: Likewise.
20571 * c-lex.c: Likewise.
20572 * c-omp.c: Likewise.
20573 * c.opt: Likewise.
20574 * c-opts.c: Likewise.
20575 * c-pch.c: Likewise.
20576 * c-ppoutput.c: Likewise.
20577 * c-pragma.c: Likewise.
20578 * c-pragma.h: Likewise.
20579 * c-pretty-print.c: Likewise.
20580 * c-pretty-print.h: Likewise.
20581 * c-semantics.c: Likewise.
20582 * stub-objc.c: Likewise.
20583
20584 * gengtype.c (get_file_langdir): Special-case files in c-family/.
20585 (get_output_file_with_visibility): Fix name for c-common.h.
20586 * c-config-lang.in: Update paths in gtfiles for files in c-family/.
20587
20588 * c-tree.h: Update include path for moved files.
20589 * c-lang.c: Likewise.
20590 * c-lang.h: Likewise.
20591 * c-parser.c: Likewise.
20592 * c-convert.c: Likewise.
20593 * c-decl.c: Likewise.
20594 * c-objc-common.c: Likewise.
20595 * configure.ac: Make sure c-family/ exists in the build directory.
20596 * configure: Regenerate.
20597 * Makefile.in: Update paths for moved files. Regroup files per
20598 location and update dependencies. Move generated_files down after
20599 ALL_GTFILES_H.
20600
20601 * config/spu/spu-c.c: Update paths for moved files.
20602 * config/mep/mep-pragma.c: Likewise.
20603 * config/darwin-c.c: Likewise.
20604 * config/i386/msformat-c.c: Likewise.
20605 * config/i386/i386-c.c: Likewise.
20606 * config/avr/avr-c.c: Likewise.
20607 * config/sol2-c.c: Likewise.
20608 * config/ia64/ia64-c.c: Likewise.
20609 * config/rs6000/rs6000-c.c: Likewise.
20610 * config/arm/arm.c: Likewise.
20611 * config/arm/arm-c.c: Likewise.
20612 * config/h8300/h8300.c: Likewise.
20613 * config/v850/v850-c.c: Likewise.
20614
20615 * config/t-darwin: Fix dependencies for moved files.
20616 * config/t-sol2: Fix dependencies for moved files.
20617 * config/mep/t-mep: Fix dependencies for moved files.
20618 * config/ia64/t-ia64: Fix dependencies for moved files.
20619 * config/rs6000/t-rs6000: Fix dependencies for moved files.
20620 * config/v850/t-v850: Fix dependencies for moved files.
20621 * config/v850/t-v850e: Fix dependencies for moved files.
20622
20623 * config/m32c/m32c-pragma.c
20624
20625 * po/exgettext: Look in c-family/ also.
20626
20627 2010-06-05 Eric Botcazou <ebotcazou@adacore.com>
20628
20629 * tree-ssa-dce.c (mark_last_stmt_necessary): New function.
20630 (mark_control_dependent_edges_necessary): Call it instead of marking
20631 the last statement manually.
20632 (propagate_necessity): Likewise.
20633
20634 2010-06-05 Jan Hubicka <jh@suse.cz>
20635
20636 * basic-block.h (compute_dominance_frontiers): Updated.
20637 (compute_idf): Likewise.
20638
20639 * tree-into-ssa.c (insert_phi_nodes): Use bitmap heads
20640 for dominance frontiers.
20641 (rewrite_into_ssa): Update for bitmap heads in dominance frontiers.
20642 (insert_updated_phi_nodes_for): Likewise.
20643 (update_ssa): Likewise.
20644 * cfganal.c (compute_dominance_frontiers_1): Likewise.
20645 (compute_dominance_frontiers): Likewise.
20646 (compute_idf): Likewise.
20647 * df-problems.c (df_md_local_compute): Likewise.
20648
20649 2010-06-05 Anatoly Sokolov <aesok@post.ru>
20650
20651 * target.h (struct gcc_target): Add memory_move_cost field.
20652 * target-def.h (TARGET_MEMORY_MOVE_COST): New.
20653 (TARGET_INITIALIZER): Use TARGET_MEMORY_MOVE_COST.
20654 * targhooks.c (default_memory_move_cost): New function.
20655 * targhooks.h (default_memory_move_cost): Declare function.
20656 * reload.h (memory_move_cost): Declare.
20657 (memory_move_secondary_cost): Change type of 'in' argument to bool.
20658 * reginfo.c (memory_move_cost): New function.
20659 (memory_move_secondary_cost): Change type of 'in' argument to bool.
20660 * ira.h (ira_memory_move_cost): Update comment.
20661 * ira.c (ira_memory_move_cost): Update comment.
20662 (setup_class_subset_and_memory_move_costs): Replace MEMORY_MOVE_COST
20663 with memory_move_cost.
20664 * postreload.c (reload_cse_simplify_set): (Ditto.).
20665 * reload1.c (choose_reload_regs): (Ditto.).
20666 * doc/tm.texi (TARGET_MEMORY_MOVE_COST): New.
20667 (MEMORY_MOVE_COST): Revise documentation.
20668
20669 * config/i386/i386.h (MEMORY_MOVE_COST): Remove macro.
20670 * config/i386/i386-protos.h (int ix86_memory_move_cost): Remove.
20671 * config/i386/i386.h (ix86_memory_move_cost): Make static. Change
20672 type of 'in' argument to bool.
20673 (TARGET_MEMORY_MOVE_COST): Define.
20674
20675 2010-06-05 Jan Hubicka <jh@suse.cz>
20676
20677 * ipa-pure-const.c (propagate): Fix typo in handling of functions
20678 that cannot return. Be more careful when merging the results with
20679 previously known ones.
20680
20681 2010-06-05 Matthias Klose <doko@ubuntu.com>
20682
20683 * gcc.c (cc1_options, cpp_unique_options): Use find-plugindir spec
20684 function to add the -iplugindir option.
20685 (find_plugindir_spec_function): Add new declaration and function.
20686 (static_spec_func): Use it for "find-plugindir".
20687
20688 2010-06-05 Jakub Jelinek <jakub@redhat.com>
20689
20690 PR c++/44361
20691 * c-typeck.c (mark_exp_read): Handle C_MAYBE_CONST_EXPR.
20692 * c-parser.c (c_parser_postfix_expression): Call mark_exp_read on
20693 statement expression.
20694
20695 2010-06-05 Jan Hubicka <jh@suse.cz>
20696
20697 * df-problems.c (seen_in_block, seen_in_insn): Convert to bitmap_head.
20698 (df_rd_problem_data): Convert sparse_invalidated_by_call,
20699 dense_invalidated_by_call to bitmap head.
20700 (df_rd_alloc, df_rd_bb_local_compute_process_def,
20701 df_rd_bb_local_compute, df_rd_confluence_n, df_rd_transfer_function,
20702 df_rd_start_dump, df_lr_verify_transfer_functions,
20703 df_live_verify_transfer_functions, df_chain_create_bb,
20704 df_chain_add_problem, df_byte_lr_check_regs, df_byte_lr_alloc,
20705 df_byte_lr_confluence_0, df_byte_lr_confluence_n, df_note_compute,
20706 df_simulate_one_insn_forwards, df_md_alloc,
20707 df_md_bb_local_compute_process_def,
20708 df_md_bb_local_compute_process_def, df_md_local_compute,
20709 df_md_transfer_function df_md_free): Update.
20710
20711 2010-06-05 Joseph Myers <joseph@codesourcery.com>
20712
20713 PR c/44322
20714 * c-typeck.c (build_unary_op): Merge qualifiers into pointer
20715 target type for ADDR_EXPR; require no changes to qualifiers except
20716 for function types.
20717 * c-tree.h (c_build_type_variant): Remove.
20718
20719 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
20720
20721 * genautomata.c (get_excl_set): Do work per element, not per char.
20722 (check_presence_pattern_sets): Similar.
20723 (check_absence_pattern_sets): Similar.
20724
20725 2010-06-05 Segher Boessenkool <segher@kernel.crashing.org>
20726
20727 * genautomata.c (curr_state_pass_num): Delete.
20728 (min_issue_delay_pass_states): Delete.
20729 (min_issue_delay): Delete.
20730 (initiate_min_issue_delay_pass_states): Delete.
20731 (output_min_issue_delay_table): Compute min_issue_delay_vect
20732 using a breadth-first search variant.
20733 (output_tables): Don't call initiate_min_issue_delay_pass_states.
20734
20735 2010-06-04 H.J. Lu <hongjiu.lu@intel.com>
20736
20737 PR boostrap/44421
20738 * df-problems.c (df_lr_bb_local_compute): Updated for embedded bitmaps.
20739 (df_byte_lr_bb_local_compute): Likewise.
20740
20741 2010-06-03 Jason Merrill <jason@redhat.com>
20742
20743 Implement noexcept operator (5.3.7)
20744 * c-common.c (c_common_reswords): Add noexcept.
20745 * c-common.h (enum rid): Add RID_NOEXCEPT.
20746
20747 2010-06-04 Joseph Myers <joseph@codesourcery.com>
20748
20749 * config/darwin-driver.c (darwin_default_min_version): Use
20750 GCC-specific formats in diagnostics.
20751 * cppspec.c (lang_specific_driver): Use GCC-specific formats in
20752 diagnostics.
20753 * gcc.c (translate_options, read_specs, add_sysrooted_prefix,
20754 execute, process_command, end_going_arg, do_self_spec, do_spec_1,
20755 eval_spec_function, handle_braces, process_brace_body, main,
20756 perror_with_name, used_arg, set_multilib_dir, print_multilib_info,
20757 getenv_spec_function, compare_version_strings,
20758 version_compare_spec_function): Use GCC-specific formats in
20759 diagnostics.
20760
20761 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
20762
20763 * config/i386/i386.md (*addhi_1_lea) <TYPE_INCDEC, default>: Assert
20764 that operand 0 and operand 1 are equal.
20765 (*addqi_1_lea) <TYPE_INCDEC, default>: Ditto.
20766 (*add<mode>_2) <TYPE_INCDEC>: Remove assert that operand 0
20767 and operand 1 are equal.
20768 <default>: Ditto. Remove ??? comment.
20769 (*add<mode>_3) <TYPE_INCDEC>: Remove assert that operand 0
20770 and operand 1 are equal.
20771 <default>: Ditto. Remove ??? comment.
20772 (*adddi_4) <default>: Remove assert that operand 0 and operand 1
20773 are equal.
20774 (*add<mode>_4) <default>: Ditto.
20775 (*add<mode>_5) <TYPE_INCDEC, default>: Ditto.
20776
20777 2010-06-04 Nathan Froyd <froydnj@codesourcery.com>
20778
20779 * config/i386/i386-protos.h (ix86_print_operand): Declare.
20780 * config/i386/i386.c (ix86_print_operand): Make non-static.
20781 * config/i386/sol2.h (ASM_OUTPUT_CALL): Call ix86_print_operand.
20782 * output.h (output_operand): Declare.
20783 * final.c (output_operand): Make non-static.
20784
20785 2010-06-04 Alexandre Oliva <aoliva@redhat.com>
20786
20787 PR rtl-optimization/44013
20788 * sched-deps.c (add_dependence_list_and_free): Don't free lists
20789 when processing debug insns.
20790
20791 PR debug/41371
20792 * var-tracking.c (find_loc_in_1pdv): Mark initial value before
20793 recursing. Check that recursion is bounded. Rename inner var
20794 to avoid hiding incoming argument.
20795
20796 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
20797
20798 * config/i386/i386.md (*addqi_2) <TYPE_INCDEC>: Do not assert that
20799 operands[2] == 255.
20800 (*addqi_3): Ditto.
20801 (*addqi_4): Ditto.
20802 (*addqi_5): Ditto.
20803 (*addqi_ext_1_rex64): Ditto.
20804 (*addqi_ext_1): Ditto.
20805
20806 (*addqi_4): Check for incdec_operand in QImode.
20807
20808 (*add<mode>_2): Macroize insn from *add<mode>_2 and *add{qi,hi}_2
20809 using SWI mode iterator.
20810 (*add<mode>_3): Ditto from *add<mode>_3 and *add{qi,hi}_3.
20811 (*add<mode>_4): Macroize insn from *add{qi,hi,si}_4 using SWI124
20812 mode iterator.
20813 (*add<mode>_5): Macroize insn from *add<mode>_5 and *add{qi,hi}_5
20814 using SWI mode iterator.
20815
20816 2010-06-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
20817
20818 PR c/25880
20819 * c-objc-common.c (c_tree_printer): Handle %V, %v and %#v.
20820 * c-format.c (gcc_diag_flag_specs): Add hash.
20821 (gcc_cxxdiag_flag_specs): Use gcc_diag_flag_specs directly.
20822 (gcc_tdiag_char_table,gcc_cdiag_char_table): Handle %V and %v.
20823 * c-pretty-print.c (pp_c_cv_qualifier): Rename as
20824 pp_c_cv_qualifiers. Handle qualifiers spelling here.
20825 (pp_c_type_qualifier_list): Call the function above.
20826 * c-pretty-print.h (pp_c_cv_qualifiers): Declare.
20827 * c-typeck.c (handle_warn_cast_qual): Print qualifiers.
20828 (WARN_FOR_QUALIFIERS): New macro.
20829 (convert_for_assignment): Use it.
20830
20831 2010-06-04 Kai Tietz <kai.tietz@onevision.com>
20832
20833 * config/i386/cygming.h (ASM_GENERATE_INTERNAL_LABEL): Prefix by '*'.
20834
20835 2010-06-04 Jan Hubicka <jh@suse.cz>
20836
20837 * df.h (df_rd_bb_info, df_md_bb_info, df_lr_bb_info, df_live_bb_info,
20838 df_byte_lr_bb_info): Embedd bitmap_head into the structure.
20839 (DF_LIVE_IN, DF_LIVE_OUT, DF_LR_IN, DF_LR_OUT, DF_BYTE_LR_IN,
20840 DF_BYTE_LR_OUT): Update for embedded bitmaps.
20841 * fwprop.c (single_def_use_enter_block): Likewise.
20842 * ddg.c (create_ddg_dep_from_intra_loop_link,
20843 add_cross_iteration_register_deps, build_inter_loop_deps): Likewise.
20844 * loop-iv.c (latch_dominating_def): Likewise.
20845 * df-problems.c (df_rd_free_bb_info, df_rd_alloc,
20846 df_rd_bb_local_compute_process_def, df_rd_bb_local_compute_process_def,
20847 df_rd_init_solution, df_rd_init_solution, df_rd_transfer_function,
20848 df_rd_transfer_function, df_rd_top_dump,
20849 df_rd_bottom_dump): Update.
20850 (df_lr_free_bb_info, df_lr_alloc, df_lr_reset, df_lr_bb_local_compute,
20851 df_lr_bb_local_compute, df_lr_bb_local_compute, df_lr_bb_local_compute,
20852 df_lr_bb_local_compute, df_lr_local_compute, df_lr_init, df_lr_init,
20853 df_lr_confluence_0, df_lr_free, df_lr_top_dump, df_lr_bottom_dump,
20854 df_lr_verify_solution_start, df_lr_verify_solution_end,
20855 df_lr_verify_transfer_functions, df_lr_verify_transfer_functions,
20856 df_live_free_bb_info, df_live_alloc, df_live_reset,
20857 df_live_bb_local_compute, df_live_init, df_live_transfer_function,
20858 df_live_finalize, df_live_free, df_live_top_dump, df_live_bottom_dump,
20859 df_live_verify_solution_start, df_live_verify_solution_end,
20860 df_live_verify_transfer_functions, df_chain_create_bb,
20861 df_byte_lr_free_bb_info, df_byte_lr_alloc, df_byte_lr_reset,
20862 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
20863 df_byte_lr_bb_local_compute, df_byte_lr_bb_local_compute,
20864 df_byte_lr_bb_local_compute, df_byte_lr_local_compute, df_byte_lr_init,
20865 df_byte_lr_confluence_0, df_byte_lr_confluence_n,
20866 df_byte_lr_transfer_function, df_byte_lr_top_dump,
20867 df_byte_lr_bottom_dump, df_create_unused_note,
20868 df_note_bb_compute, df_md_free_bb_info, df_md_alloc,
20869 df_md_bb_local_compute_process_def, df_md_local_compute, df_md_reset,
20870 df_md_transfer_function, df_md_init, df_md_confluence_0,
20871 df_md_confluence_n,
20872 df_md_top_dump, df_md_bottom_dump): Update.
20873 (struct df_lr_problem_data): Embedd bitmap headers.
20874
20875 2010-06-04 Jan Hubicka <jh@suse.cz>
20876
20877 * dce.c (dce_process_block): Do not re-scan already marked
20878 instructions.
20879
20880 2010-06-04 Bernd Schmidt <bernds@codesourcery.com>
20881
20882 PR rtl-optimization/39871
20883 PR rtl-optimization/40615
20884 PR rtl-optimization/42500
20885 PR rtl-optimization/42502
20886 * ira.c (init_reg_equiv_memory_loc: New function.
20887 (ira): Call it twice.
20888 * reload.h (calculate_elim_costs_all_insns): Declare.
20889 * ira-costs.c: Include "reload.h".
20890 (regno_equiv_gains): New static variable.
20891 (init_costs): Allocate it.
20892 (finish_costs): Free it.
20893 (ira_costs): Call calculate_elim_costs_all_insns.
20894 (find_costs_and_classes): Take estimated elimination costs
20895 into account.
20896 (ira_adjust_equiv_reg_cost): New function.
20897 * ira.h (ira_adjust_equiv_reg_cost): Declare it.
20898 * reload1.c (init_eliminable_invariants, free_reg_equiv,
20899 elimination_costs_in_insn, note_reg_elim_costly): New static functions.
20900 (elim_bb): New static variable.
20901 (reload): Move code out of here into init_eliminable_invariants and
20902 free_reg_equiv. Call them.
20903 (calculate_elim_costs_all_insns): New function.
20904 (eliminate_regs_1): Declare. Add extra arg FOR_COSTS;
20905 all callers changed. If FOR_COSTS is true, don't call alter_reg,
20906 but call note_reg_elim_costly if we turned a valid memory address
20907 into an invalid one.
20908 * Makefile.in (ira-costs.o): Depend on reload.h.
20909
20910 2010-06-04 Julian Brown <julian@codesourcery.com>
20911
20912 * config/arm/thumb2.md (*thumb2_movdf_soft_insn): Fix alternatives
20913 for pool ranges.
20914
20915 2010-06-04 Richard Guenther <rguenther@suse.de>
20916
20917 PR lto/41584
20918 * cgraph.h (struct varpool_node): Add lto_file_data field.
20919 * lto-cgraph.c (input_varpool_node): Initialize it.
20920
20921 2010-06-04 Uros Bizjak <ubizjak@gmail.com>
20922
20923 * config/i386/predicates.md (pic_symbolic_operand): Remove predicate.
20924 * config/i386/i386.md (*add<mode>_1): Do not use pic_symbolic_operand
20925 predicate in "type" attribute calculation.
20926 (*addsi_1_zext): Ditto.
20927 (*add<mode>_2): Do not use pic_symbolic_operand in insn predicate.
20928 (*addsi_2_zext): Ditto.
20929 (*add<mode>_3): Ditto.
20930 (*addsi_3_zext): Ditto.
20931 (*add<mode>_5): Ditto.
20932
20933 2010-06-03 Jan Hubicka <jh@suse.cz>
20934
20935 * tree-into-ssa.c (mark_block_for_update): Avoid redundant call
20936 of bitmap_bit_p.
20937 * cfganal.c (compute_dominance_frontiers_1): Likewise.
20938
20939 2010-06-03 Jan Hubicka <jh@suse.cz>
20940
20941 * df-problems.c (df_create_unused_note, df_note_bb_compute):
20942 micro-optimize the checks when to add new note.
20943
20944 2010-06-03 Nathan Froyd <froydnj@codesourcery.com>
20945
20946 * final.c (output_asm_insn): Call
20947 targetm.asm_out.print_operand_punct_valid_p. Update comments.
20948 (output_operand): Call targetm.asm_out.print_operand. Update comments.
20949 (output_address): Call targetm.asm_out.print_operand_address.
20950 Update comments.
20951 * target.h (struct gcc_target): Add print_operand,
20952 print_operand_address, and print_operand_punct_valid_p fields.
20953 * targhooks.h (default_print_operand): Declare.
20954 (default_print_operand_address): Declare.
20955 (default_print_operand_punct_valid_p): Declare.
20956 * targhooks.c (default_print_operand): Define.
20957 (default_print_operand_address): Define.
20958 (default_print_operand_punct_valid_p): Define.
20959 * target-def.h (TARGET_PRINT_OPERAND): Define if not defined.
20960 (TARGET_PRINT_OPERAND_ADDRESS): Likewise.
20961 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Likewise.
20962 (TARGET_ASM_OUT): Add TARGET_PRINT_OPERAND,
20963 TARGET_PRINT_OPERAND_ADDRESS, and TARGET_PRINT_OPERAND_PUNCT_VALID_P.
20964 * vmsdbgout.c (addr_const_to_string): Update comment.
20965 * config/i386/i386.c (print_operand): Rename to...
20966 (ix86_print_operand): ...this. Make static.
20967 (print_operand_address): Rename to...
20968 (ix86_print_operand_address): ...this. Make static. Call
20969 ix86_print_operand instead of PRINT_OPERAND.
20970 (ix86_print_operand_punct_valid_p): New function.
20971 (TARGET_PRINT_OPERAND): Define.
20972 (TARGET_PRINT_OPERAND_ADDRESS): Define.
20973 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
20974 * config/i386/i386.h (HI_REGISTER_NAMES): Update comment.
20975 (PRINT_OPERAND_PUNCT_VALID_P): Delete.
20976 (PRINT_OPERAND): Delete.
20977 (PRINT_OPERAND_ADDRESS): Delete.
20978 * config/i386/i386-protos.h (print_operand): Delete prototype.
20979 (print_operand_address): Delete prototype.
20980
20981 2010-06-03 Richard Guenther <rguenther@suse.de>
20982
20983 PR tree-optimization/44403
20984 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
20985 Preserve pointer qualifiers.
20986 (vect_create_data_ref_ptr): Likewise.
20987
20988 2010-06-03 H.J. Lu <hongjiu.lu@intel.com>
20989
20990 PR c++/44294
20991 * defaults.h (MAX_FIXED_MODE_SIZE): New.
20992
20993 * stor-layout.c (MAX_FIXED_MODE_SIZE): Removed.
20994
20995 2010-06-03 Jakub Jelinek <jakub@redhat.com>
20996
20997 PR debug/44375
20998 * tree-cfg.c (gimple_can_merge_blocks_p): For -O0
20999 return false if merging the bbs would lead to goto_locus
21000 location being lost from the IL.
21001
21002 2010-06-03 Jan Hubicka <jh@suse.cz>
21003 Jakub Jelinek <jakub@redhat.com>
21004
21005 * var-tracking.c (dataflow_set_equiv_regs): Shortcut the loop if
21006 set->regs[i] is NULL or has just one entry.
21007
21008 2010-06-03 Jan Hubicka <jh@suse.cz>
21009
21010 * lto-cgraph.c (lto_varpool_encoder_size): Remove.
21011 * lto-streamer.h (lto_varpool_encoder_size): New inline function.
21012
21013 2010-06-03 Paul Brook <paul@codesourcery.com>
21014
21015 * config/arm/arm.c (FL_TUNE): Define.
21016 (arm_default_cpu, arm_cpu_select): Remove.
21017 (all_cores): Populate core field.
21018 (arm_selected_arch, arm_selected_cpu, arm_selected_tune): New.
21019 (arm_find_cpu): New function.
21020 (arm_handle_option): Lookup cpu/architecture names.
21021 (arm_override_options): Cleanup mcpu/march/mtune handling.
21022 (arm_file_start): Ditto.
21023
21024 2010-06-03 Alan Modra <amodra@gmail.com>
21025
21026 PR target/44169
21027 * config/rs6000/rs6000.md (load_toc_v4_PIC_1b): Add label operand.
21028 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Pass label
21029 rtx to gen_load_toc_v4_PIC_1b. Tidy.
21030 (rs6000_emit_load_toc_table): Likewise.
21031
21032 2010-06-02 Jan Hubicka <jh@suse.cz>
21033
21034 * passes.c (init_optimization_passes): Put ipa reference
21035 after ipa pure-const.
21036
21037 2010-06-02 Jan Hubicka <jh@suse.cz>
21038
21039 * ipa-reference.c (ipa_reference_local_vars_info_d): Remove
21040 calls_read_all and calls_write_all.
21041 (get_reference_optimization_summary): Fix formatting.
21042 (is_proper_for_analysis): Check that decl is not readonly.
21043 (propagate_bits): Check CONST/PURE/noreturn flags.
21044 (ipa_init): Move all_module_statics to optimization_summary_obstack.
21045 (analyze_function): Ignore indirect edges.
21046 (copy_global_bitmap): For all module statics, do nothing.
21047 (generate_summary): Do not print calls_read_all/calls_write_all.
21048 (read_write_all_from_decl): Take node as argument; check
21049 cgraph_node_cannot_return.
21050 (propagate): Reorganize read_all/write_all computation;
21051 check indirect edges; check ecf flags; use all_module_statics
21052 in the results; do not free all_module_statics.
21053 (stream_out_bitmap): Handle all_module_statics.
21054 (ipa_reference_write_optimization_summary): Likewise; use
21055 varpool/cgraph encoders to get boundaries.
21056 (ipa_reference_read_optimization_summary): Read in all_module_statics;
21057 use it when possible.
21058
21059 2010-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
21060
21061 PR target/44218
21062 * doc/invoke.texi (RS/6000 and PowerPC Options): Delete obsolete
21063 -mswdiv option. Add -mrecip, -mrecip=<xxx>, -mrecip-precision options.
21064
21065 * doc/extend.texi (powerpc builtins): Document vec_recip,
21066 vec_rsqrt, vec_rsqrte altivec/vsx builtins.
21067
21068 * config/rs6000/rs60000-protos.h (rs6000_emit_swdiv): New function.
21069 (rs6000_emit_swrsqrt): Ditto.
21070 (rs6000_emit_swdivsf): Delete.
21071 (rs6000_emit_swdivdf): Ditto.
21072 (rs6000_emit_swrsqrtsf): Ditto.
21073
21074 * config/rs6000/rs6000.c (rs6000_recip_bits): New global to
21075 describe the reciprocal estimate support for each type.
21076 (recip_options): Map -mrecip=<opt> into option bits.
21077 (gen_2arg_fn_t): New typedef for binary rtx gen function.
21078 (rs6000_debug_reg_global): If -mdebug=reg, print the state of the
21079 reciprocal estimate instructions.
21080 (rs6000_init_hard_regno_mode_ok): Key ws constraint off of the
21081 debug -mvsx-scalar-memory switch instead of -mvsx-scalar-double.
21082 Set up rs6000_recip_bits based on the -mrecip* options. Print the
21083 cost information if -mdebug=cost or -mdebug=reg.
21084 (rs6000_override_options): Set -mrecip-precision for power6, and
21085 power7 machines. If -mvsx or -mdfp, enable various options that
21086 came in previous instruction set ISAs, unless the option was
21087 explicitly disabled by the command line option. Parse
21088 -mrecip=<opt> options.
21089 (rs6000_builtin_vectorized_function): Add support for vectorizing
21090 the reciprocal estimate builtins and expansions.
21091 (rs6000_handle_option): Add -mrecip, -mrecip=<opt> support.
21092 (bdesc_2arg): Add reciprocal estimate builtins.
21093 (bdesc_1arg): Add reciprocal square root estimate builtins.
21094 (rs6000_expand_builtin): Rewrite to use a switch statement,
21095 instead of multiple if/then/elses. Add reciprocal estimate builtins.
21096 (rs6000_init_builtins): Create declarations for reciprocal
21097 estimate builtins.
21098 (rs6000_preferred_reload_class): Simplify VSX preferences, if scalar
21099 sized, prefer traditional floating point registers, if integer
21100 vector types, prefer altivec registers. Don't actually look at
21101 the memory address any more.
21102 (rs6000_builtin_reciprocal): Add new builtin reciprocal estimate
21103 builtins.
21104 (rs6000_load_constant_and_splat): New helper function to load up
21105 the constant for reciprocal estimate instructions.
21106 (rs6000_emit_madd): New helper function for generating
21107 multiply/add type instructions, based on the current switches.
21108 (rs6000_emit_msub): Ditto.
21109 (rs6000_emit_mnsub): Ditto.
21110 (rs6000_emit_swdiv_high_precision): Replace rs6000_emit_swdivsf to
21111 replace a divide with a reciprocal estimate and fixup, adding
21112 support for machines with high precision and vectors.
21113 (rs6000_emit_swdiv_low_precision): Rewrite rs6000_emit_swdivdf for
21114 low precision machines.
21115 (rs6000_emit_swdiv): New common function to be called to replace a
21116 division with reciprocal estimate and fixup.
21117 (rs6000_emit_swrsqrt): Replace rs6000_emit_swrsqrtsf. Add support
21118 for double and vector types. Add support for high precision machines.
21119
21120 * config/rs6000/rs6000.h (TARGET_FRES): New macro to say whether
21121 the reciprocal estimate instructions can be generated.
21122 (TARGET_FRE): Ditto.
21123 (TARGET_FRSQRTES): Ditto.
21124 (TARGET_FRSQRTE): Ditto.
21125 (RS6000_RECIP_*): New macros for reciprocal estimate support.
21126
21127 * config/rs6000/vector.md (rsqrte<mode>2): New insn for reciprocal
21128 square root estimate on vectors.
21129 (re<mode>2): New insn for reciprocal division estimate on vectors.
21130
21131 * config/rs6000/rs6000-buitlins.def (ALTIVEC_BUILTIN_VRSQRTFP):
21132 New builtin.
21133 (ALTIVEC_BUILTIN_VRECIPFP): Ditto.
21134 (ALTIVEC_BUITLIN_VEC_RE): Ditto.
21135 (ALTIVEC_BUILTIN_VEC_RSQRT): Ditto.
21136 (VSX_BUILTIN_RSQRT_V4SF): Ditto.
21137 (VSX_BUITLIN_RSQRT_V2DF): Ditto.
21138 (RS6000_BUILTIN_RSQRT): Ditto.
21139 (ALTIVEC_BUILTIN_VEC_RSQRTE): Denote that the builtin is a
21140 floating point builtin.
21141
21142 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
21143 macros __RECIP__, __RECIPF__, __RSQRTE__, __RSQRTEF__,
21144 __RECIP_PRECISION__ based on the command line switches.
21145 (altivec_overloaded_builtins): Add reciprocal estimate builtins.
21146
21147 * config/rs6000/rs6000.opt (-mrecip): Document add support for
21148 replacing division instructions with reciprocal estimate and fixup.
21149 (-mrecip=<opt>): New option.
21150 (-mrecip-precision): Ditto.
21151
21152 * config/rs6000/vsx.md (UNSPEC_VSX_RSQRTE): Delete.
21153 (vsx_rsqrte<mode>2): Use UNSPEC_RSQRT not UNSPEC_VSX_RSQRTE.
21154 (vsx_copysignsf3): If -mvsx, use double precision cpsign on single
21155 precision scalar.
21156
21157 * config/rs6000/altivec.md (UNSPEC_RSQRTEFP): Delete.
21158 (UNSPEC_VREFP): Ditto.
21159 (altivec_vnmsubfp*): Make altivec nmsub mirror the scalar and VSX
21160 conterparts with regard to support of -mno-fused-madd and -ffast-math.
21161 (altivec_vrsqrtefp): Use common UNSPEC to allow scalar/vector
21162 reciprocal estimate instructions to be generated.
21163 (altivec_vrefp): Ditto.
21164
21165 * config/rs6000/rs6000.md (RECIPF): New iterator for reciprocal
21166 estimate support.
21167 (rreg): New mode attribute for reciprocal estimate support.
21168 (recip<mode>3): New insn for division using reciprocal estimate
21169 and fixup builtins.
21170 (divide define_split): New define_split to convert floating point
21171 division to use reciprocal estimate if the user used the
21172 appropriate options and the split is run when we can add new
21173 pseudo registers for the fixup.
21174 (rsqrt<mode>2): New insn for reciprocal square root support.
21175 (recipsf3): Move into recip<mode>3.
21176 (recipdf3): Ditto.
21177 (fres): Use TARGET_FRES.
21178 (rsqrtsf2): Move into rsqrt<mode>2.
21179 (rsqrtsf_internal1): Use TARGET_FRSQRTSES.
21180 (copysignsf3): Add support for VSX.
21181 (fred): Use TARGET_FRE.
21182 (fred_fpr): Ditto.
21183 (rsqrtdf_internal1): New function for frsqrte instruciton.
21184
21185 * config/rs6000/altivec.h (vec_recipdiv): Define new vector builtin.
21186 (vec_rsqrt): Ditto.
21187
21188 2010-06-03 Richard Guenther <rguenther@suse.de>
21189
21190 PR middle-end/44291
21191 * optabs.c (init_one_libfunc): Use IDENTIFIER_HASH_VALUE.
21192 (set_user_assembler_libfunc): Likewise.
21193
21194 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
21195
21196 * mkconfig.sh: Include insn-flags.h and insn-constants.h before
21197 defaults.h.
21198 * except.h: Move MUST_USE_SJLJ_EXCEPTIONS and USING_SJLJ_EXCEPTIONS
21199 to defaults.h
21200 * expr.h (BRANCH_COST, MOVE_RATIO, CLEAR_RATIO, SET_RATIO,
21201 DEFAULT_FUNCTION_ARG_PADDING, FUNCTION_ARG_PADDING,
21202 FUNCTION_ARG_BOUNDARY, STACK_SAVEAREA_MODE, STACK_SIZE_MODE,
21203 STACK_CHECK_BUILTIN, STACK_CHECK_STATIC_BUILTIN,
21204 STACK_CHECK_PROBE_INTERVAL_EXP, STACK_CHECK_MOVING_SP,
21205 STACK_OLD_CHECK_PROTECT, STACK_CHECK_PROTECT,
21206 STACK_CHECK_MAX_FRAME_SIZE, STACK_CHECK_FIXED_FRAME_SIZE,
21207 STACK_CHECK_MAX_VAR_SIZE): Move target macro defaults to defaults.h.
21208 * defaults.h: Updated for above mentioned changes.
21209
21210 2010-06-02 Kai Tietz <kai.tietz@onevision.com>
21211
21212 * c-common.c: Remove header include of tm_p.h.
21213 * Makefile.in (c-common.o): Remove TM_P_H dependency.
21214
21215 2010-06-02 Jakub Jelinek <jakub@redhat.com>
21216
21217 * tree.h (struct tree_decl_map): New type.
21218 (tree_decl_map_eq, tree_decl_map_marked_p): Define.
21219 (tree_decl_map_hash): New prototype.
21220 (debug_expr_for_decl, value_expr_for_decl): Change into
21221 tree_decl_map hashtab from tree_map.
21222 (init_ttree): Adjust initialization.
21223 (tree_decl_map_hash): New function.
21224 (decl_debug_expr_lookup, decl_debug_expr_insert,
21225 decl_value_expr_lookup, decl_value_expr_insert): Adjust.
21226
21227 2010-06-02 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
21228
21229 * configure.ac (gcc_cv_ld_sol2_emulation): Test for GNU ld *_sol2
21230 linker emulations.
21231 * configure: Regenerate.
21232 * config.in: Regenerate.
21233
21234 * config/i386/sol2-10.h [TARGET_GNU_LD] (I386_EMULATION): Define.
21235 (X86_64_EMULATION): Define.
21236 (TARGET_LD_EMULATION): Use them.
21237
21238 * config/sparc/sol2-gld-bi.h (SPARC32_EMULATION): Define.
21239 (SPARC64_EMULATION): Define.
21240 (LINK_ARCH_SPEC): Use them.
21241
21242 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
21243
21244 * graphite-clast-to-gimple.c (gcc_type_for_interval): Use
21245 smallest_mode_for_size for computing the precision types of new
21246 graphite IVs. Do not call lang_hooks.types.type_for_size.
21247
21248 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
21249
21250 * tree-if-conv.c (predicate_bbs): Do not reset the GIMPLE_DEBUG
21251 information.
21252 (remove_conditions_and_labels): Reset the GIMPLE_DEBUG information.
21253
21254 2010-06-02 Sebastian Pop <sebastian.pop@amd.com>
21255
21256 PR middle-end/44363
21257 * tree-if-conv.c (predicate_bbs): Do not call gcc_unreachable,
21258 return false instead.
21259
21260 2010-06-02 Jan Hubicka <jh@suse.cz>
21261
21262 PR middle-end/44295
21263 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Do not
21264 create new cgraph node to check callee.
21265
21266 2010-06-02 Richard Guenther <rguenther@suse.de>
21267
21268 * lto-streamer-in.c (input_gimple_stmt): Fix typo.
21269
21270 2010-06-02 Richard Guenther <rguenther@suse.de>
21271
21272 * lto-wrapper.c (lto_wrapper_exit): Rename to ...
21273 (lto_wrapper_cleanup): ... this. Do not exit.
21274 (fatal): Adjust. Exit here.
21275 (fatal_perror): Likewise.
21276 (fatal_signal): New function.
21277 (main): Set up signal handlers to cleanup temporary files.
21278 * Makefile.in (lto-wrapper.o): Adjust dependencies.
21279
21280 2010-06-02 Richard Guenther <rguenther@suse.de>
21281
21282 PR tree-optimization/44377
21283 * tree-ssa-structalias.c (find_func_aliases): Fix typo.
21284
21285 2010-06-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
21286
21287 * config/s390/2097.md (z10_fhex): Remove insn reservation.
21288 * config/s390/s390.md (UNSPEC_COPYSIGN): Remove unused constant.
21289 (*mov<mode>_64 TD_TF, *mov<mode>_31 TD_TF, *mov<mode>_64dfp DD_DF,
21290 *mov<mode>_64 DD_DF, *mov<mode>_31, mov<mode>): Remove load zero
21291 instruction.
21292 * config/s390/s390.c: Don't accept fp zeros as valid constants anymore.
21293
21294 2010-06-02 Jan Hubicka <jh@suse.cz>
21295
21296 * bitmap.c (bitmap_descriptor): Add search_iter.
21297 (bitmap_find_bit): Increment it.
21298 (print_statistics): Print it.
21299
21300 2010-06-02 Nathan Froyd <froydnj@codesourcery.com>
21301
21302 * tree-vect-slp.c (vect_create_mask_and_perm): Use gimple_build_call
21303 instead of gimple_build_call_vec. Delete unnecessary local variable.
21304
21305 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
21306
21307 * gimplify.c (gimplify_body): Revert "Do not initialize RTL profiling"
21308 change from yesterday.
21309
21310 2010-06-02 Steven Bosscher <steven@gcc.gnu.org>
21311
21312 * c-ada-spec.c: Clean up redundant includes.
21313
21314 2010-06-01 Steven Bosscher <steven@gcc.gnu.org>
21315
21316 * gimplify.c: Do not include except.h and optabs.h.
21317 (gimplify_body): Do not initialize RTL profiling.
21318 * gimple-low.c: Do not include rtl.h, diagnostic.h, langhooks.h,
21319 langhooks-def.h, timevar.h, except.h, hashtab.h, and expr.h.
21320 * gimple-fold.c: Do not include rtl.h, tm_p.h, ggc.h, basic-block.h,
21321 output.h, expr.h, diagnostic.h, timevar.h, value-prof.h, and
21322 langhooks.h.
21323
21324 * tree-pretty-print.h: Include pretty-print.h.
21325 * gimple-pretty-print.h: Include pretty-print.h.
21326
21327 * tree-pretty-print.c: Do not include diagnostic.h.
21328 * tree-vrp.c: Likewise.
21329 * tree-tailcall.c: Likewise
21330 * tree-scalar-evolution.c: Likewise
21331 * tree-ssa-dse.c: Likewise
21332 * tree-chrec.c: Likewise
21333 * tree-ssa-sccvn.c: Likewise
21334 * tree-ssa-copyrename.c: Likewise
21335 * tree-nomudflap.c: Likewise
21336 * tree-call-cdce.c: Likewise
21337 * tree-stdarg.c: Likewise
21338 * tree-ssa-math-opts.c: Likewise
21339 * tree-nrv.c: Likewise
21340 * tree-ssa-sink.c: Likewise
21341 * tree-browser.c: Likewise
21342 * tree-ssa-loop-ivcanon.c: Likewise
21343 * tree-ssa-loop.c: Likewise
21344 * tree-parloops.c: Likewise
21345 * tree-ssa-address.c: Likewise
21346 * tree-ssa-ifcombine.c: Likewise
21347 * tree-if-conv.c: Likewise
21348 * tree-data-ref.c: Likewise
21349 * tree-affine.c: Likewise
21350 * tree-ssa-phiopt.c: Likewise
21351 * tree-ssa-coalesce.c: Likewise
21352 * tree-ssa-pre.c: Likewise
21353 * tree-ssa-live.c: Likewise
21354 * tree-predcom.c: Likewise
21355 * tree-ssa-forwprop.c: Likewise
21356 * tree-ssa-dce.c: Likewise
21357 * tree-ssa-ter.c: Likewise
21358 * tree-ssa-loop-prefetch.c: Likewise
21359 * tree-optimize.c: Likewise
21360 * tree-ssa-phiprop.c: Likewise
21361 * tree-object-size.c: Likewise
21362 * tree-outof-ssa.c: Likewise
21363 * tree-ssa-structalias.c: Likewise
21364 * tree-switch-conversion.c: Likewise
21365 * tree-ssa-reassoc.c: Likewise
21366 * tree-ssa-operands.c: Likewise
21367 * tree-vectorizer.c: Likewise
21368 * tree-vect-data-refs.c: Likewise
21369 * tree-vect-generic.c: Likewise
21370 * tree-vect-stmts.c: Likewise
21371 * tree-vect-patterns.c: Likewise
21372 * tree-vect-slp.c: Likewise
21373 * tree-vect-loop.c: Likewise
21374 * tree-ssa-loop-ivopts.c: Likewise
21375 * tree-ssa-loop-im.c: Likewise
21376 * tree-ssa-loop-niter.c: Likewise
21377 * tree-ssa-loop-unswitch.c: Likewise
21378 * tree-ssa-loop-manip.c: Likewise
21379 * tree-ssa-loop-ch.c: Likewise
21380 * tree-dump.c: Likewise
21381 * tree-complex.c: Likewise
21382
21383 * tree-into-ssa.c: Do not include diagnostic.h and expr.h.
21384 * tree-ssa-uninit.c: Likewise
21385 * tree-ssa-threadupdate.c: Likewise
21386 * tree-ssa-uncprop.c: Likewise
21387 * tree-ssa-ccp.c: Likewise
21388 * tree-ssa-dom.c: Likewise
21389 * tree-ssa-propagate.c: Likewise
21390 * tree-ssa-alias.c: Likewise
21391 * tree-dfa.c: Likewise
21392 * tree-cfgcleanup.c: Likewise
21393 * tree-sra.c: Likewise
21394 * tree-ssa-copy.c: Likewise
21395 * tree-ssa.c: Likewise
21396 * tree-profile.c: Likewise
21397 * tree-cfg.c: Likewise
21398 * tree-ssa-threadedge.c: Likewise
21399 * tree-vect-loop-manip.c: Likewise
21400
21401 * tree-inline.c: Do not include diagnostic.h and expr.h.
21402 Include rtl.h.
21403 (copy_decl_for_dup_finish): Do not use NULL_RTX.
21404
21405 * tree-loop-linear.c: Do not include diagnostic.h, expr.h and optabs.h.
21406 * tree-loop-distribution.c: Likewise.
21407
21408 2010-06-01 Jan Hubicka <jh@suse.cz>
21409
21410 * ipa-pure-const.c (local_pure_const): Do NORETURN discovery.
21411
21412 2010-06-01 Jan Hubicka <jh@suse.cz>
21413
21414 * tree-cfgcleanup.c (fixup_noreturn_call): Break out from ...;
21415 remove return value.
21416 (split_bbs_on_noreturn_calls) .... here.
21417 * tree-optimize.c (execute_fixup_cfg): Fixup noreturn calls too.
21418 * tree-flow.h (fixup_noreturn_call): New.
21419
21420 2010-06-01 Jan Hubicka <jh@suse.cz>
21421
21422 * emit-rtl.c (remove_insn): Fix thinko in prevoius patch.
21423
21424 2010-06-01 Nathan Froyd <froydnj@codesourcery.com>
21425
21426 * tree.h (build_nt_call_list): Delete.
21427 * tree.c (build_nt_call_list): Delete.
21428
21429 2010-06-01 Jan Hubicka <jh@suse.cz>
21430
21431 * fwprop.c: Make emit-rtl.h include last.
21432 * rtlanal.c: Include emit-rtl.h.
21433 * genautomata.c: Output emit-rtl include into insn-automata.c
21434 * df-scan.c: Include emit-rtl.h.
21435 * haifa-sched.c: Indlude emit-rtl.h.
21436 * mode-switching.c: Indlude emit-rtl.h.
21437 * graph.c: Indlude emit-rtl.h.
21438 * sel-sched.c: Include emit-rtl.h.
21439 * sel-sched-ir.c: Include emit-rtl.h.
21440 * ira-build.c: Include emit-rtl.h.
21441 * emit-rtl.c (first_insn, last_insn): Remove defines.
21442 (get_insns, set_first_insn, get_last_insn, set_last_insn, get_max_uid):
21443 Move to emit-rtl.h.
21444 (set_new_first_and_last_insn, get_last_insn_anywhere,
21445 get_first_nonnote_insn, get_last_nonnote_insn, try_split,
21446 make_call_insn_raw, add_insn_after, add_insn_before, remove_insn,
21447 delete_insns_since, reorder_insns_nobb, emit_insn_after_1,
21448 emit_debug_insn_before, emit_insn, start_sequence, push_to_sequence,
21449 push_to_sequence2, push_topmost_sequence, end_sequence, copy_insn):
21450 Use accessor functions.
21451 * emit-rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
21452 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
21453 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
21454 mem_expr_equal_p): Move here from rtl.h.
21455 (get_insns, set_first-insn, get_last_insn, set_last_insn, get_max_uid):
21456 Move here from emit-rtl.c; make inline.
21457 * cfglayout.h: Include emit-rtl.h.
21458 * rtl.h (gen_blockage, gen_rtvec, copy_insn_1, copy_insn,
21459 gen_int_mode, emit_copy_of_insn_after, set_reg_attrs_from_value,
21460 set_reg_attrs_for_parm, set_reg_attrs_for_decl_rtl, adjust_reg_mode,
21461 mem_expr_equal_p, get_insns, set_first-insn,
21462 get_last_insn, set_last_insn, get_max_uid): Move to emit-rtl.h.
21463 * reg-stack.c: Include emit-rtl.h.
21464 * dce.c: Likewise.
21465
21466 2010-06-01 Jan Hubicka <jh@suse.cz>
21467
21468 * cgraph.h (tree_function_versioning): Update prototype.
21469 (cgraph_function_versioning): Update prototype.
21470 * cgraphunit.c (cgraph_copy_node_for_versioning): Accept bbs_to_copy
21471 bitmap.
21472 (cgraph_function_versioning): Accept new_entry_block and bbs_to_copy.
21473 (cgraph_materialize_clone, save_inline_function_body): Update use of
21474 tree_function_versioning.
21475 * tree-inline.c (copy_bb): Look for previous copied block to link
21476 after; fix debug output.
21477 (copy_cfg_body): Accept new_entry_block and bbs_to_copy.
21478 (copy_body): Likewise.
21479 (expand_call_inline): Update use of copy_body.
21480 (tree_function_versioning): Update use of copy body; accept
21481 blocks_to_copy and new_entry.
21482
21483 2010-06-01 Jan Hubicka <jh@suse.cz>
21484
21485 * gegenrtl.c: Remove unnecesary prototypes.
21486 (gendecl): Remove.
21487 (gendef): Produce static inline.
21488 (gencode): Remove.
21489 (main): Do not decode parameters; generate header only.
21490 * Makefile.in (genrtl.c): Remove.
21491
21492 2010-06-01 Jan Hubicka <jh@suse.cz>
21493
21494 * tree-switch-conversion.c (build_one_array): Make it readonly.
21495
21496 2010-06-01 Richard Guenther <rguenther@suse.de>
21497
21498 * optabs.c (init_optabs): Guard all accesses to reinit.
21499 * ipa-pure-const.c (propagate): Fix another typo.
21500 * opts.c (common_handle_option): Split assignment to bool.
21501 * c-opts.c (c_common_handle_option): Likewise.
21502
21503 2010-06-01 Arnaud Charlet <charlet@adacore.com>
21504 Matthew Gingell <gingell@adacore.com>
21505
21506 * doc/invoke.texi: Mention -fdump-ada-spec.
21507 * tree-dump.c (dump_files): Add ada-spec.
21508 (FIRST_AUTO_NUMBERED_DUMP): Bump to 8.
21509 * tree-pass.h (tree_dump_index): Add TDI_ada.
21510 * gcc.c: Add support for -C without -E and for -fdump-ada-spec.
21511 (cpp_unique_options): Do not reject -C or -CC when -E isn't present.
21512 (default_compilers) <@c-header>: Allow -fdump-ada-spec on header files.
21513 * c-decl.c: Include c-ada-spec.h.
21514 (collect_source_ref_cb, collect_all_refs, for_each_global_decl): New
21515 functions.
21516 (c_write_global_declarations): Add handling of -fdump-ada-spec.
21517 * c-lex.c (c_lex_with_flags): Add handling of CPP_COMMENT.
21518 * Makefile.in (C_AND_OBJC_OBJS): Add c-ada-spec.o.
21519 * c-ada-spec.h, c-ada-spec.c: New files.
21520
21521 2010-06-01 Richard Guenther <rguenther@suse.de>
21522
21523 PR lto/43853
21524 * ipa-pure-const.c (get_function_state): Hand back varying state
21525 if we do not have one.
21526 (has_function_state): New function.
21527 (duplicate_node_data): Adjust.
21528 (remove_node_data): Likewise.
21529 (pure_const_write_summary): Likewise.
21530 (propagate): Likewise. Fix typo.
21531
21532 2010-06-01 Jan Hubicka <jh@suse.cz>
21533
21534 * tree-cfg.c (verify_stmt): Do not skip could_throw test.
21535 * passes.c (execute_function_todo): Do not make implicit verify_ssa.
21536 (execute_all_ipa_transforms): Do not play with the states.
21537
21538 2010-06-01 Maxim Kuvyrkov <maxim@codesourcery.com>
21539
21540 * config/arm/t-linux-androideabi: New.
21541 * config.gcc (arm*-*-linux-androideabi): Include multilib config.
21542
21543 2010-06-01 Jan Hubicka <jh@suse.cz>
21544
21545 * tree-inline.c (estimate_num_insns): For stdarg functions look
21546 into call statement to count cost of argument passing.
21547
21548 2010-06-01 Kai Tietz <kai.tietz@onevision.com>
21549
21550 * config/i386.c (ix86_output_addr_vec_elt): Make LPREFIX
21551 argument for fprintf.
21552 (ix86_output_addr_diff_elt): Likewise.
21553 (x86_function_profiler): Likewise.
21554 * config/cygming.h (LOCAL_LABEL_PREFIX): Fix for x64 no-underscore.
21555 (LPREFIX): Likewise.
21556 (ASM_GENERATE_INTERNAL_LABEL): Likewise.
21557
21558 2010-05-31 Jakub Jelinek <jakub@redhat.com>
21559
21560 PR target/44338
21561 * config/i386/sse.md (fma4i_fmadd<mode>4256, fma4i_fmsub<mode>4256,
21562 fma4i_fnmadd<mode>4256, fma4i_fnmsub<mode>4256, fma4i_fmadd<mode>4,
21563 fma4i_fmsub<mode>4, fma4i_fnmadd<mode>4, fma4i_fnmsub<mode>4,
21564 fma4i_vmfmadd<mode>4, fma4i_vmfmsub<mode>4, fma4i_vmfnmadd<mode>4,
21565 fma4i_vmfnmsub<mode>4, fma4i_fmaddsubv8sf4, fma4i_fmaddsubv4df4,
21566 fma4i_fmaddsubv4sf4, fma4i_fmaddsubv2df4, fma4i_fmsubaddv8sf4,
21567 fma4i_fmsubaddv4df4, fma4i_fmsubaddv4sf4, fma4i_fmsubaddv2df4):
21568 Guard only with TARGET_FMA4 instead of TARGET_FMA4 &&
21569 TARGET_FUSED_MADD.
21570
21571 2010-05-31 Jan Hubicka <jh@suse.cz>
21572
21573 * tree.h (tree_range_check_failed): Declare noreturn.
21574
21575 2010-05-31 Jan Hubicka <jh@suse.cz>
21576
21577 * gimple.c (gimple_call_builtin_p): New function.
21578 * gimple.h (gimple_call_builtin_p): Declare.
21579 * tree-cfg.c (make_edges): Produce edge from BUILT_IN_RETURN
21580 to exit.
21581 (execute_warn_function_return): BUILT_IN_RETURN is return.
21582 (split_critical_edges): Return edges are not critical.
21583 (is_ctrl_altering_stmt): Builtin_in_return is altering.
21584 (gimple_verify_flow_info): Handle built_in_return.
21585 (execute_warn_function_return): Handle built_in_return.
21586 * ipa-pure-const.c (check_call): Ignore builtin_return.
21587
21588 2010-05-31 Jakub Jelinek <jakub@redhat.com>
21589
21590 PR middle-end/44337
21591 * expr.c (expand_assignment): Don't store anything for out-of-bounds
21592 array accesses with non-MEM.
21593
21594 PR tree-optimization/44182
21595 * tree-inline.c (copy_edges_for_bb): Don't split bb if a stmt that
21596 newly needs to end a bb is followed by debug stmts, instead return
21597 true from the function at the end.
21598 (maybe_move_debug_stmts_to_successors): New function.
21599 (copy_cfg_body): Call it if copy_edges_for_bb returned true.
21600
21601 2010-05-31 Kai Tietz <kai.tietz@onevision.com>
21602
21603 PR target/44161
21604 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Handle flag_pic.
21605
21606 2010-05-31 Eric Botcazou <ebotcazou@adacore.com>
21607
21608 * cgraphunit.c (cgraph_decide_is_function_needed): Really return false
21609 for nested functions in non-optimized compilation.
21610
21611 2010-05-31 Richard Guenther <rguenther@suse.de>
21612
21613 * tree-ssa-structalias.c (find_func_aliases): Handle BUILT_IN_RETURN.
21614
21615 2010-05-30 Jan Hubicka <jh@suse.cz>
21616
21617 * predict.c (maybe_hot_edge_p): Calls to functions called once is cold.
21618
21619 2010-05-30 Richard Guenther <rguenther@suse.de>
21620
21621 PR lto/42975
21622 * tree-eh.c (execute_cleanup_eh_1): Copy from execute_cleanup_eh.
21623 (execute_cleanup_eh): Clear DECL_FUNCTION_PERSONALITY if it is
21624 no longer needed.
21625
21626 2010-05-30 Iain Sandoe <iains@gcc.gnu.org>
21627
21628 * config/darwin.c (output_objc_section_asm_op): Add comment.
21629 (name_needs_quotes): Add '_' to list of valid comment chars.
21630 (machopic_output_function_base_name): Remove unneeded quotes.
21631 (darwin_encode_section_info): Adjust asm whitespace.
21632 * config/i386/darwin.h (ASM_OUTPUT_COMMON): Adjust asm tabs.
21633 (ASM_OUTPUT_LOCAL): Ditto.
21634 * config/rs6000/darwin.h (ASM_OUTPUT_COMMON): Ditto.
21635 * config/darwin.h (GLOBAL_ASM_OP): Ditto.
21636 * config/darwin9.h (ASM_OUTPUT_ALIGNED_COMMON): Ditto.
21637
21638 2010-05-30 Eric Botcazou <ebotcazou@adacore.com>
21639
21640 * config/rs6000/rs6000.c (rs6000_output_function_entry): Use
21641 RS6000_OUTPUT_BASENAME unconditionally.
21642 (rs6000_output_function_epilogue): Likewise.
21643
21644 2010-05-30 Jan Hubicka <jh@suse.cz>
21645
21646 * toplev.c (wrapup_global_declaration_2): Avoid creation of new varpool
21647 nodes.
21648
21649 2010-05-30 Richard Guenther <rguenther@suse.de>
21650
21651 * tree-cfg.c (verify_gimple_assign_single): Implement
21652 verification for COND_EXPR rhs.
21653
21654 2010-05-30 Jan Hubicka <jh@suse.cz>
21655
21656 * cgraph.h (cgraph_dump_file): Declare.
21657 * cgraphunit.c (cgraph_dump_file): Export.
21658 * ipa.c (dump_cgraph_node_set, dump_varpool_node_set): Be less verbose.
21659
21660 2010-05-30 Jan Hubicka <jh@suse.cz>
21661
21662 * dwarf2out.c (reference_to_unused,
21663 premark_types_used_by_global_vars_helper): Avoid creation of new
21664 varpool nodes.
21665
21666 2010-05-30 Jan Hubicka <jh@suse.cz>
21667
21668 * cgraph.h (cgraph_node_cannot_return,
21669 cgraph_edge_cannot_lead_to_return): New functions.
21670 * cgraph.c (cgraph_node_cannot_return,
21671 cgraph_edge_cannot_lead_to_return): Use them.
21672 * ipa-pure-const.c (pure_const_names): New static var.
21673 (check_call): Handle calls not leading to return.
21674 (pure_const_read_summary): Dump info read.
21675 (propagate): Dump info about propagation process; ignore side effects
21676 of functions not leading to exit; fix handling of pure functions.
21677
21678 2010-05-30 Jan Hubicka <jh@suse.cz>
21679
21680 * config/i386/i386.c (pro_epilogue_adjust_stack): Use EBP
21681 for tail call epilogues.
21682
21683 2010-05-30 Jan Hubicka <jh@suse.cz>
21684
21685 * passes.c (ipa_write_optimization_summaries_1, ipa_write_summaries_2,
21686 ipa_read_summaries_1, ipa_read_optimization_summaries_1): Initialize
21687 dump files.
21688
21689 2010-05-29 Jan Hubicka <jh@suse.cz>
21690
21691 * ipa.c (cgraph_remove_unreachable_node): Walk references of correct
21692 node; remove references in node we no longer keep in cgrpah but need
21693 body of.
21694
21695 2010-05-29 Jan Hubicka <jh@suse.cz>
21696
21697 * cgraph.c (cgraph_mark_reachable): Relax check for analyzed nodes.
21698
21699 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21700
21701 PR target/44165
21702 * config/pa/pa32-linux.h (CTOR_LIST_BEGIN): Mark __CTOR_LIST__ as used.
21703
21704 2010-05-29 Jan Hubicka <jh@suse.cz>
21705
21706 * tree-vrp.c (debug_value_range, debug_all_value_ranges,
21707 debug_asserts_for, debug_all_asserts): Annotate with DEBUG_FUNCTION.
21708 * tree-into-ssa.c (debug_decl_set, debug_defs_stack, debug_currdefs,
21709 debug_tree_ssa, debug_tree_ssa_stats, debug_def_blocks,
21710 debug_names_replaced_by, debug_update_ssa): Likewise.
21711 * sbitmap.c (debug_sbitmap): Likewise.
21712 * genrecog.c (debug_decision, debug_decision_list): Likewise.
21713 * tree-pretty-print.c (debug_generic_expr, debug_generic_stmt,
21714 debug_tree_chain): Likewise.
21715 * tree-loop-distribution.c (debug_rdg_partitions): Likewise.
21716 * cgraph.c (debug_cgraph_node, debug_cgraph): Likewise.
21717 * optabs.c (debug_optab_libfuncs): Likewise.
21718 (verify_loop_closed_ssa): Likewise.
21719 * value-prof.c (verify_histograms): Likewise.
21720 * reload.c (debug_reload_to_stream, debug_reload): Likewise.
21721 * bitmap.c (debug_bitmap_file, debug_bitmap, bitmap_print): Likewise.
21722 * cfghooks.c (verify_flow_info): Likewise.
21723 * fold-const.c (debug_fold_checksum): Likewise.
21724 * omp-low.c (debug_omp_region, debug_all_omp_regions): Likewise.
21725 * cfg.c (debug_regset, debug_flow_info, debug_bb, debug_bb_n):
21726 Likewise.
21727 * omega.c (debug_omega_problem): Likewise.
21728 * cgraphunit.c (verify_cgraph_node, verify_cgraph): Likewise.
21729 * tree-ssa-ccp.c (debug_lattice_value): Likewise.
21730 * dominance.c (verify_dominators, debug_dominance_info,
21731 debug_dominance_tree): Likewise.
21732 * df-core.c (df_insn_uid_debug, df_insn_debug, df_insn_debug_regno,
21733 * df_regno_debug, df_ref_debug,
21734 debug_df_insn, debug_df_reg, debug_df_regno, debug_df_ref,
21735 debug_df_defno, debug_df_useno, debug_df_chain): Likewise.
21736 * tree-ssa-dom.c (debug_dominator_optimization_stats): Likewise.
21737 * sel-sched.c (debug_state): Likewise.
21738 * tree-ssa-alias.c (debug_alias_info, debug_points_to_info_for):
21739 Likewise.
21740 * cfganal.c (print_edge_list, verify_edge_list): Likewise.
21741 * dwarf2out.c (debug_dwarf_die, debug_dwarf): Likewise.
21742 * tree-eh.c (verify_eh_edges, verify_eh_dispatch_edge): Likewise.
21743 * gimple-pretty-print.c (debug_gimple_stmt, debug_gimple_seq):
21744 Likewise.
21745 * c-pretty-print.c (debug_c_tree): Likewise.
21746 * sel-sched-dump.c (debug_insn_rtx, debug_vinsn, debug_expr, debug_insn
21747 debug_av_set, debug_lv_set, debug_ilist, debug_blist,
21748 debug_insn_vector, debug_hard_reg_set, debug_mem_addr_value): Likewise.
21749 * ebitmap.c (debug_ebitmap): Likewise.
21750 * function.c (debug_find_var_in_block_tree): Likewise.
21751 * print-rtl.c (debug_rtx): Likewise.
21752 (debug_rtx_count): Likewise.
21753 (debug_rtx_list, debug_rtx_range, debug_rtx_find): Likewise.
21754 * stor-layout.c (debug_rli): Likewise.
21755 * ipa.c (debug_cgraph_node_set, debug_varpool_node_set): Likewise.
21756 * tree-data-ref.c (debug_data_references,
21757 debug_data_dependence_relations, debug_data_reference,
21758 debug_data_dependence_relation, debug_rdg_vertex,
21759 debug_rdg_component, debug_rdg): Likewise.
21760 * tree-affine.c (debug_aff): Likewise.
21761 * tree-dfa.c (debug_referenced_vars, debug_variable, debug_dfa_stats):
21762 Likewise.
21763 * except.c (debug_eh_tree, verify_eh_tree): Likewise.
21764 * emit-rtl.c (verify_rtl_sharing): Likewise.
21765 * tree-ssa-pre.c (debug_pre_expr, debug_bitmap_set,
21766 debug_value_expressions): Likewise.
21767 * tree-ssa-live.c (debug_scope_block, debug_scope_blocks): Likewise.
21768 * sese.c (debug_rename_map, debug_ivtype_map): Likewise.
21769 * print-tree.c (debug_tree, debug_vec_tree): Likewise.
21770 * cfglayout.c (verify_insn_chain): Likewise.
21771 * graphite-clast-to-gimple.c (debug_clast_name_indexes,
21772 debug_clast_stmt, debug_generated_program): Likewise.
21773 * ggc-page.c (debug_print_page_list): Likewise.
21774 * tree-ssa-ter.c (debug_ter): Likewise.
21775 * graphite-dependences.c (debug_pddr): Likewise.
21776 * sched-deps.c (debug_ds): Likewise.
21777 * tree-ssa.c (verify_ssa): Likewise.
21778 * graphite-poly.c (debug_scattering_function, debug_iteration_domain,
21779 debug_scattering_functions, debug_iteration_domains, debug_pdr,
21780 debug_pdrs, debug_pbb_domain, debug_pbb, debug_scop_context,
21781 debug_scop, debug_cloog, debug_scop_params, debug_lst): Likewise.
21782 * tree-inline.c (debug_find_tree): Likewise.
21783 * graphite-ppl.c (debug_ppl_linear_expr, debug_ppl_polyhedron_matrix,
21784 debug_ppl_powerset_matrix): Likewise.
21785 * var-tracking.c (debug_dv): Likewise.
21786 * system.h (DEBUG_FUNCTION, DEBUG_VARIABLE): Define.
21787 * cfgloop.c (verify_loop_structure): Likewise.
21788 * plugin.c (dump_active_plugins, debug_active_plugins): Likewise.
21789 * c-common.c (verify_sequence_points): Likewise.
21790 * sched-rgn.c (debug_regions, debug_region, debug_candidate,
21791 debug_candidates, debug_rgn_dependencies): Likewise.
21792 * tree-ssa-structalias.c (debug_constraint, debug_constraints,
21793 * debug_constraint_graph, debug_solution_for_var,
21794 debug_sa_points_to_info): Likewise.
21795 * sched-vis.c (debug_insn_slim, debug_bb_slim, debug_bb_n_slim):
21796 Likewie.
21797 * tree-cfg.c (debug_cfg_stats, verify_stmts, debug_function,
21798 debug_loops, debug_loop, debug_loop_num): Likewise.
21799 * passes.c (debug_pass): Likewise.
21800 (dump_properties): Likewise; add cfglayout property.
21801 (debug_properties): Likewise.
21802 * tree-ssa-reassoc.c (debug_ops_vector): Likewise.
21803 * varpool.c (debug_varpool): Likewise.
21804 * regcprop.c (debug_value_data): Likewise.
21805 * tree-ssa-operands.c (verify_imm_links, debug_immediate_uses,
21806 debug_immediate_uses_for): Likewise.
21807
21808 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
21809
21810 PR bootstrap/44315
21811 * Makefile.in (build/gencondmd.o): Remove TM_H := $(GTM_H).
21812 Filter out insn-flags.h.
21813
21814 2010-05-29 Jan Hubicka <jh@suse.cz>
21815
21816 * cgraph.h (struct varpool_node_set_def,
21817 struct cgraph_node_set_def): Remove unused AUX pointer.
21818 (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p): Use
21819 VEC_empty macro.
21820
21821 2010-05-29 Jan Hubicka <jh@suse.cz>
21822
21823 PR middle-end/44324
21824 * ipa-cp.c (ipcp_insert_stage): Replace "clone" by "constprop".
21825
21826 2010-05-29 Richard Guenther <rguenther@suse.de>
21827
21828 * lto-streamer.c (cached_bp): New global variable.
21829 (bitpack_create): Return the cached bitpack, if available.
21830 (bitpack_delete): Clear and cache the bitpack, if appropriate.
21831 (bp_pack_value): Remove redundant asserts.
21832
21833 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
21834
21835 PR middle-end/44306
21836 * tree-if-conv.c (is_true_predicate): New.
21837 (is_predicated): Use is_true_predicate.
21838 (add_to_predicate_list): Same. Do not use unshare_expr.
21839 (add_to_dst_predicate_list): Same.
21840
21841 2010-05-29 Sebastian Pop <sebastian.pop@amd.com>
21842
21843 * tree-if-conv.c (add_to_dst_predicate_list): Do not use the ->aux
21844 field on edges.
21845 (predicate_bbs): Same.
21846 (clean_predicate_lists): Same.
21847 (find_phi_replacement_condition): Do not AND the predicate from
21848 edge->aux.
21849
21850 2010-05-29 H.J. Lu <hongjiu.lu@intel.com>
21851
21852 PR bootstrap/44315
21853 * Makefile.in (build/gencondmd.o): Add a missing `\'.
21854
21855 2010-05-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
21856
21857 PR target/44261
21858 config/pa/pa.md (negdf2_slow, negsf2_slow): New patterns.
21859 (negdf2): Adjust expander pattern and use negdf2_slow.
21860 (negsf2): Likewise.
21861
21862 2010-05-29 Nathan Froyd <froydnj@codesourcery.com>
21863
21864 * basic-block.h (struct control_flow_graph): Move last_label_uid field
21865 up.
21866 * df.h (struct df_base_ref): Move regno field up.
21867 * dwarf2out.c (struct dw_fde_struct): Move funcdef_number field down.
21868 * expr.h (struct separate_ops): Move location field up.
21869 * optabs.h (struct optab_d): Move libcall_basename field down.
21870 * config/i386/i386.c (struct ix86_frame): Move red_zone_size up.
21871 * config/i386/i386.h (struct machine_function): Convert call_abi field
21872 into a bitfield. Move cfa field to the end of the structure.
21873
21874 2010-05-29 Jan Hubicka <jh@suse.cz>
21875
21876 * varpool.c (varpool_get_node): Fix lookup.
21877
21878 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
21879
21880 * config/spu/spu-protos.h: Do not include rtl.h. Protect
21881 RTL specific prototypes with #ifdef RTX_CODE.
21882 * config/spu/spu-c.c: Include c-common.h instead of c-tree.h.
21883 * config/spu/t-spu-elf: Fix dependencies.
21884
21885 * config/t-darwin (darwin-c.o): Remove C_TREE_H dependency.
21886
21887 2010-05-29 Mike Stump <mikestump@comcast.net>
21888
21889 PR bootstrap/44315
21890 * Makefile.in (build/gencondmd.o): Be sure to use GTM_H instead of
21891 TM_H when building to avoid dependency loops.
21892
21893 2010-05-29 Jan Hubicka <jh@suse.cz>
21894
21895 * cgraphunit.c (cgraph_materialize_clone): Only remove calles,
21896 refs and body; not the whole node for masters of materialized clones.
21897
21898 2010-05-29 Mike Stump <mikestump@comcast.net>
21899
21900 * config/rs6000/rs6000-c.c: Remove c-tree.h include.
21901
21902 2010-05-29 Jan Hubicka <jh@suse.cz>
21903
21904 * cgraph.c (clone_function_name): Take SUFFIX argument; export.
21905 (cgraph_create_virtual_clone): Take SUFFIX argument; udpate
21906 use of clone_function_name.
21907 * cgraph.h (cgraph_create_virtual_clone,
21908 cgraph_function_versioning): update prototypes.
21909 (clone_function_name): Declare.
21910 * ipa-cp.c (ipcp_insert_stage): Update call of
21911 cgraph_create_virtual_clone.
21912 * omp-low.c (create_omp_child_function_name): Use
21913 cgraph_create_virtual_clone.
21914 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix edges updating.
21915 (cgraph_function_versioning): Take SUFFIX argument; produce new name
21916 and make decl local.
21917
21918 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
21919
21920 * vec.h: Include statistics.h
21921 * Makefile.in: Introduce VEC_H. Replace all vec.h dependencies
21922 with VEC_H.
21923
21924 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
21925
21926 * c-lex.c: Do not include c-tree.h.
21927 * c-pretty-print.c: Likewise.
21928 * c-opts.c: Likewise.
21929 * c-gimplify.c: Likewise.
21930 * c-common.c: Likewise.
21931 * c-dump.c: Likewise. Include c-common.h.
21932
21933 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
21934
21935 * c-common.h (GCC_DIAG_STYLE): Define earlier in the file,
21936 before including diagnostic-core.h.
21937 (c_cpp_error): New prototype moved from c-tree.h.
21938 Use ATTRIBUTE_GCC_DIAG instead of ATTRIBUTE_GCC_CDIAG.
21939 * c-tree.h (ATTRIBUTE_GCC_CDIAG): Remove define.
21940 (pedwarn_c90, perwarn_c99): Use ATTRIBUTE_GCC_DIAG instead.
21941 (c_cpp_error): Prototype moved to c-common.h.
21942 * Makefile.in: Update dependency for C_COMMON_H.
21943
21944 2010-05-29 Steven Bosscher <steven@gcc.gnu.org>
21945
21946 * c-common.h: Add FIXME for awkward split of c_register_addr_space.
21947 * c-common.c (c_register_addr_space): Remove here.
21948 * c-decl.c (c_register_addr_space): Re-add here.
21949
21950 2010-05-28 Mike Stump <mikestump@comcast.net>
21951
21952 * config/darwin-c.c: Remove c-tree.h include.
21953
21954 2010-05-28 Joseph Myers <joseph@codesourcery.com>
21955
21956 * gcc.c: Include diagnostic.h.
21957 (error_count): Remove. All users changed to use errorcount.
21958 (programname): Remove. All users changed to use progname.
21959 (fancy_abort, internal_error, fatal_error, error, warning, inform,
21960 fnotice): Remove.
21961 (execute): Don't include "Internal error" and bug reporting
21962 information in argument of internal_error call.
21963 (process_command): Don't increment error_count after calling
21964 perror_with_name.
21965 (input_filename): Rename to gcc_input_filename. All users
21966 changed.
21967 (main): Call diagnostic_initialize. Register delete_temp_files
21968 with atexit. Use seen_error to test for errors.
21969 * gcc.h: Include diagnostic-core.h.
21970 (fatal_error, error, warning): Remove.
21971 * Makefile.in (GCC_H): Add $(DIAGNOSTIC_CORE_H).
21972 (GCC_OBJS): Add diagnostic.o, pretty-print.o and input.o.
21973 (gcc.o): Update dependencies.
21974
21975 2010-05-28 Jeff Law <law@redhat.com>
21976
21977 * ira.c (ira_bad_reload_regno, ira_build_reload_regno_1): New
21978 functions.
21979 * ira.h (ira_bad_reload_regno): Declare
21980 * reload1.c (allocate_reload_reg): Use ira_bad_reload_regno.
21981
21982 * ira-color.c (update_curr_costs): Free updated hard reg costs.
21983 (ira_reassign_conflict_allocnos): Remove bogus asserts.
21984 (allocno_reload_assign): Likewise.
21985
21986 2010-05-28 Nathan Froyd <froydnj@codesourcery.com>
21987
21988 * tree-vect-stmts.c (vectorizable_assignment): Call build1 instead of
21989 build1_stat.
21990
21991 2010-05-28 Richard Guenther <rguenther@suse.de>
21992
21993 PR lto/44312
21994 * lto-streamer-in.c (unpack_ts_fixed_cst_value_fields):
21995 Stream fixed-point constants mode.
21996 (unpack_ts_type_value_fields): Fix width of TYPE_MODE
21997 and TYPE_PRECISION.
21998 * lto-streamer-out.c (pack_ts_fixed_cst_value_fields):
21999 Stream fixed-point constants mode.
22000 (pack_ts_function_decl_value_fields): Fix width of TYPE_MODE
22001 and TYPE_PRECISION.
22002
22003 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
22004
22005 * tree-scalar-evolution.c (set_nb_iterations_in_loop): Inlined in the
22006 only place it was called from.
22007 (number_of_latch_executions): Do not return chrec_dont_know when the
22008 may_be_zero is a runtime condition: instead, return a COND_EXPR
22009 including the may_be_zero condition.
22010 * cfgloop.h (struct loop): Add a note on COND_EXPRs to the comment
22011 of nb_iterations.
22012 * tree-ssa-loop-ivopts.c (contains_abnormal_ssa_name_p): Handle
22013 COND_EXPRs.
22014
22015 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
22016
22017 * tree-if-conv.c (replace_phi_with_cond_gimple_assign_stmt): Don't
22018 generate COND_EXPRs for degenerate_phi_result.
22019
22020 2010-05-28 Sebastian Pop <sebastian.pop@amd.com>
22021
22022 PR middle-end/44293
22023 * tree-if-conv.c (if_convertible_loop_p): Check the
22024 if-convertibility of phi nodes in non predicated BBs.
22025
22026 2010-05-28 Joseph Myers <joseph@codesourcery.com>
22027
22028 * gcc.c (error, warning, inform): Remove duplicate ": " in output.
22029
22030 2010-05-28 Joseph Myers <joseph@codesourcery.com>
22031
22032 PR driver/15303
22033 * gcc.c (inform, warning, inform): New functions.
22034 (fatal_ice): Rename to internal_error; change cmsgid parameter to
22035 gmsgid. All callers changed.
22036 (notice): Rename to fnotice; add parameter fp. All callers changed.
22037 (fatal_error): Rename to fatal_signal. All users changed.
22038 (fatal): Rename to fatal_error; change cmsgid parameter to
22039 gmsgid. All callers changed.
22040 (process_command): Use warning instead of error for warnings.
22041 (end_going_arg): Don't use _() around argument of error.
22042 (do_spec_1): Use inform for message from %n specs. Use warning
22043 instead of error for warnings.
22044 (main): Use inform for comparison messages. Use warning for
22045 message about unused linker input.
22046 (error): Increment error_count. Print "error: ".
22047 * gcc.h (fatal): Change to fatal_error.
22048 (warning): Declare.
22049 * config/darwin-driver.c (darwin_default_min_version): Use warning
22050 instead of fprintf for warnings.
22051 * cppspec.c (lang_specific_driver): Use fatal_error instead of fatal.
22052
22053 2010-05-28 Julian Brown <julian@codesourcery.com>
22054
22055 * config/arm/thumb2.md (*thumb2_addsi3_compare0): New.
22056 (*thumb2_addsi3_compare0_scratch): New.
22057 * config/arm/constraints.md (Pv): New.
22058 * config/arm/arm.md (*addsi3_compare0): Remove FIXME comment. Use
22059 for ARM mode only.
22060 (*addsi3_compare0_scratch): Likewise.
22061
22062 2010-05-28 Jan Hubicka <jh@suse.cz>
22063
22064 * ipa-reference.c (add_static_var): Remove redundant all_module_statics
22065 check.
22066 (ipa_reference_write_optimization_summary): Call is_proper_for_analysis
22067 only on local statics.
22068
22069 2010-05-28 Iain Sandoe <iains@gcc.gnu.org>
22070
22071 * config.gcc (*-*-darwin*): Adjust t-make fragments for Darwin.
22072
22073 2010-05-28 Maxim Kuvyrkov <maxim@codesourcery.com>
22074
22075 PR bootstrap/44314
22076 * config/alpha/linux.h, config/rs6000/linux.h, config/rs6000/linux64.h
22077 (OPTION_GLIBC): Define.
22078
22079 2010-05-28 Jakub Jelinek <jakub@redhat.com>
22080
22081 PR debug/41048
22082 * dwarf2out.c (double_int_type_size_in_bits): New function.
22083 (round_up_to_align): Change first argument and return value to
22084 double_int.
22085 (field_byte_offset): Work internally on double_ints.
22086
22087 PR target/43636
22088 * builtins.c (expand_movstr): Use a temporary pseudo instead
22089 of target even when target is not NULL and not const0_rtx, but
22090 fails movstr predicate.
22091 * config/m32c/blkmov.md (movstr): Add predicate to first operand.
22092
22093 2010-05-28 Joseph Myers <joseph@codesourcery.com>
22094
22095 * final.c (rest_of_clean_state): Use %m in errors instead of
22096 strerror (errno).
22097 * gengtype.c (read_input_list, close_output_files): Use xstrerror
22098 instead of strerror.
22099 * toplev.c (process_options): Use %m in errors instead of strerror
22100 (errno).
22101 * tree-dump.c (dump_begin): Use %m in errors instead of strerror
22102 (errno).
22103
22104 2010-05-28 Uros Bizjak <ubizjak@gmail.com>
22105
22106 * config/i386/i386.c (ix86_fn_abi_va_list): Make static.
22107 (ix86_canonical_va_list_type): Make static. Add declaration.
22108 (ix86_enum_va_list): Make static. Reindent.
22109 * config/i386/i386-protos.h (ix86_fn_abi_va_list): Remove declaration.
22110 (ix86_canonical_va_list_type): Ditto.
22111 (ix86_enum_va_list): Ditto.
22112
22113 2010-05-28 Richard Guenther <rguenther@suse.de>
22114
22115 * lto-wrapper.c (run_gcc): With -save-temps generate a
22116 user-visible ltrans filename. Fixup ltrans unit numbering.
22117
22118 2010-05-28 Kai Tietz <kai.tietz@onevision.com>
22119
22120 * c-common.c (c_common_nodes_and_builtins): Replace use
22121 of TARGET_ENUM_VA_LIST by target hook enum_va_list.
22122 * config/i386/i386.c (TARGET_ENUM_VA_LIST_P): Hook
22123 to ix86_enum_va_list.
22124 * config/i386/i386.h (TARGET_ENUM_VA_LIST): Removed.
22125 * doc/tm.texi (TARGET_ENUM_VA_LIST): Removed.
22126 (TARGET_ENUM_VA_LIST_P): Add hook description.
22127 * target-def.h (TARGET_ENUM_VA_LIST_P): Added.
22128 * target.h (gcc_target): Add enum_va_list hook.
22129
22130 PR bootstrap/44299
22131 * config/i386/t-cygming: Adjust header dependencies for winnt-cxx.c.
22132 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Remove undefine.
22133 * config/i386/winnt.c (IN_GCC_FRONTEND): Likewise.
22134
22135 2010-05-28 Alan Modra <amodra@gmail.com>
22136
22137 PR target/44266
22138 * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Use
22139 emit_library_call machinery to set up __tls_get_addr calls.
22140
22141 2010-05-28 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22142
22143 * config/s390/s390.md (movqi): Fix typo ('*' -> '#').
22144
22145 2010-05-28 Dodji Seketeli <dodji@redhat.com>
22146
22147 Revert fix for PR c++/44188
22148 * c-common.c (is_typedef_decl): Revert the moving of this
22149 definition ...
22150 * tree.c (is_typedef_decl): ... here.
22151 (typdef_variant_p): Revert the moving of this definition
22152 here from cp/tree.c.
22153 * c-common.h (is_typedef_decl): Revert the moving of this
22154 declaration ...
22155 * tree.h (is_typedef_decl): ... here.
22156 (typedef_variant_p): Revert the moving of this declaration here
22157 from cp/cp-tree.h
22158 * dwarf2out.c (is_naming_typedef_decl): Revert this new function.
22159 (gen_tagged_type_die): Revert the splitting out of ...
22160 (gen_type_die_with_usage): ... this function. Revert the anonymous
22161 tagged type handling.
22162 (gen_typedef_die): Revert emitting DW_TAG_typedef for
22163 typedefs naming anonymous tagged types.
22164
22165 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
22166
22167 * config/rs6000/rs6000-modes.def (PSImode): Delete.
22168
22169 2010-05-28 Segher Boessenkool <segher@kernel.crashing.org>
22170
22171 * config/rs6000/constraints.md ("z" constraint): Change to CA_REGS.
22172 * config/rs6000/predicates.md: Change XER_REGNO_P to CA_REGNO_P
22173 throughout.
22174 * config/rs6000/rs6000.c (rs6000_reg_names, alt_reg_names): Change
22175 "xer" to "ca".
22176 Change XER_REGNO_P to CA_REGNO_P, XER_REGNO to CA_REGNO, and
22177 XER_REGS to CA_REGS throughout.
22178 * config/rs6000/rs6000.h: Same.
22179 (ADDITIONAL_REGISTER_NAMES): Add "xer".
22180 * config/rs6000/rs6000.md: Change XER_REGNO to CA_REGNO. Document
22181 that mode_iterator "P" is the size for arithmetic carries as well.
22182 * doc/md.texi (rs6000 section, "z" constraint): Fix documentation.
22183
22184 2010-05-28 Jakub Jelinek <jakub@redhat.com>
22185
22186 PR bootstrap/44255
22187 * combine.c (struct rtx_subst_pair): Define unconditionally.
22188 (propagate_for_debug_subst): Likewise. If not AUTO_INC_DEC,
22189 copy_rtx pair->to instead of cleanup_auto_inc_dec it.
22190 Call make_compound_operation on pair->to.
22191 (propagate_for_debug): Don't call make_compound_operation here.
22192 Always use simplify_replace_fn_rtx.
22193
22194 2010-05-27 Sterling Augustine <sterling@tensilica.com>
22195
22196 * doc/invoke.texi (xtensa options): Add -mforce-no-pic.
22197 * config/xtensa/xtensa.c (override_options): Check
22198 TARGET_FORCE_NO_PIC and set flag_pic.
22199 * config/xtensa/xtensa.opt: Document -mforce-no-pic
22200
22201 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
22202
22203 PR bootstrap/44299
22204 * config/i386/winnt.c (IN_GCC_FRONTEND): Undefine.
22205 * config/i386/winnt-cxx.c (IN_GCC_FRONTEND): Likewise.
22206
22207 2010-05-27 Joseph Myers <joseph@codesourcery.com>
22208
22209 * diagnostic-core.h: New. Contents moved from diagnostic.h and
22210 toplev.h.
22211 * diagnostic.c: Don't include toplev.h.
22212 (progname): Define. Moved from toplev.c.
22213 (seen_error): New function.
22214 * diagnostic.h: Include diagnostic-core.h.
22215 (diagnostic_t, emit_diagnostic): Don't declare here.
22216 * toplev.c (progname): Move to toplev.c.
22217 (emit_debug_global_declarations, compile_file, finalize,
22218 do_compile, toplev_main): Use seen_error.
22219 * toplev.h: Include diagnostic-core.h.
22220 (trim_filename, GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG,
22221 internal_error, warning, warning_at, error, error_n, error_at,
22222 fatal_error, pedwarn, permerror, sorry, inform, inform_n,
22223 verbatim, fnotice, progname): Move to diagnostic-core.h.
22224 * builtins.c: Include diagnostic-core.h instead of diagnostic.h.
22225 (expand_builtin_expect): Use seen_error.
22226 * c-decl.c: Include diagnostic-core.h instead of diagnostic.h.
22227 (c_make_fname_decl, c_write_global_declarations): Use seen_error.
22228 * c-format.c: Include diagnostic-core.h instead of diagnostic.h.
22229 * c-gimplify.c: Include diagnostic-core.h instead of diagnostic.h.
22230 * c-lang.c: Include diagnostic-core.h instead of diagnostic.h.
22231 * c-lex.c (c_lex_with_flags, interpret_float): Don't increment
22232 errorcount for errors.
22233 * c-opts.c (c_common_finish): Use seen_error.
22234 * cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
22235 * cgraphunit.c (verify_cgraph_node, verify_cgraph,
22236 cgraph_output_pending_asms, cgraph_optimize): Use seen_error.
22237 * coverage.c: Include diagnostic-core.h instead of diagnostic.h.
22238 (get_coverage_counts): Use seen_error.
22239 * dwarf2out.c (dwarf2out_finish): Use seen_error.
22240 * gimplify.c (gimplify_var_or_parm_decl, gimple_push_cleanup,
22241 gimplify_body): Use seen_error.
22242 * ipa-inline.c (cgraph_early_inlining): Use seen_error.
22243 * ipa-pure-const.c (gate_pure_const): Use seen_error.
22244 * ipa-reference.c (gate_reference): Use seen_error.
22245 * jump.c: Include diagnostic-core.h instead of diagnostic.h.
22246 * lambda-code.c: Include diagnostic-core.h instead of
22247 diagnostic.h.
22248 * lto-cgraph.c: Include diagnostic-core.h instead of diagnostic.h.
22249 * lto-compress.c: Include diagnostic-core.h instead of
22250 diagnostic.h.
22251 * lto-section-in.c: Include diagnostic-core.h instead of
22252 diagnostic.h.
22253 * lto-streamer-out.c: Include diagnostic-core.h instead of
22254 diagnostic.h.
22255 * lto-streamer.c: Include diagnostic-core.h instead of
22256 diagnostic.h.
22257 (gate_lto_out): Use seen_error.
22258 * matrix-reorg.c: Include diagnostic-core.h instead of
22259 diagnostic.h.
22260 * omega.c: Include diagnostic-core.h instead of diagnostic.h.
22261 * omp-low.c: Include diagnostic-core.h instead of diagnostic.h.
22262 (gate_expand_omp, lower_omp_1): Use seen_error.
22263 * passes.c: Include diagnostic-core.h instead of diagnostic.h.
22264 (rest_of_decl_compilation, rest_of_type_compilation,
22265 gate_rest_of_compilation, ipa_write_summaries): Use seen_error.
22266 * tree-cfg.c (label_to_block_fn): Use seen_error.
22267 * tree-inline.c (optimize_inline_calls): Use seen_error.
22268 * tree-mudflap.c (mudflap_finish_file): Use
22269 seen_error.
22270 * tree-optimize.c (gate_all_optimizations,
22271 gate_all_early_local_passes, gate_all_early_optimizations): Use
22272 seen_error.
22273 * tree-ssa-structalias.c (gate_ipa_pta): Use seen_error.
22274 * varpool.c: Include diagnostic-core.h instead of diagnostic.h.
22275 (varpool_remove_unreferenced_decls,
22276 varpool_assemble_pending_decls): Use seen_error.
22277 * Makefile.in (DIAGNOSTIC_CORE_H): Define.
22278 (TOPLEV_H, DIAGNOSTIC_H): Update.
22279 (c-decl.o, c-lang.o, c-format.o, lto-compress.o, lto-cgraph.o,
22280 lto-streamer-out.o, lto-section-in.o, lto-streamer.o,
22281 c-gimplify.o, omp-low.o, omega.o, diagnostic.o, passes.o,
22282 builtins.o, jump.o, cgraph.o, varpool.o, matrix-reorg.o,
22283 coverage.o, lambda-code.o): Update dependencies.
22284
22285 2010-05-25 Dodji Seketeli <dodji@redhat.com>
22286
22287 PR c++/44188
22288 * c-common.c (is_typedef_decl): Move this definition ...
22289 * tree.c (is_typedef_decl): ... here.
22290 (typdef_variant_p): Move definition here from cp/tree.c.
22291 * c-common.h (is_typedef_decl): Move this declaration ...
22292 * tree.h (is_typedef_decl): ... here.
22293 (typedef_variant_p): Move declaration here from cp/cp-tree.h
22294 * dwarf2out.c (is_naming_typedef_decl): New function.
22295 (gen_tagged_type_die): Split out of ...
22296 (gen_type_die_with_usage): ... this function. When an anonymous
22297 tagged type is named by a typedef, make sure a DW_TAG_typedef DIE
22298 is emitted for the typedef.
22299 (gen_typedef_die): Emit DW_TAG_typedef also for typedefs naming
22300 anonymous tagged types.
22301
22302 2010-05-27 Jason Merrill <jason@redhat.com>
22303
22304 * print-tree.c (debug_vec_tree): New fn.
22305 (print_vec_tree): New fn.
22306 * tree.h: Declare them.
22307 * gdbinit.in (pvt): New command.
22308
22309 * print-tree.c (print_node) [TREE_VEC]: Print elements normally.
22310
22311 * gdbinit.in (pdd): New command.
22312
22313 2010-05-27 Jan Hubicka <jh@suse.cz>
22314
22315 * ipa-inline.c (cgraph_estimate_size_after_inlining): Make inline.
22316 (update_caller_keys): Return early if there are no callers;
22317 only update fibheap when decresing the key.
22318 (update_callee_keys): Avoid recursion.
22319 (decide_inlining_of_small_functions): When badness does not match;
22320 re-insert into fibheap.
22321
22322 2010-05-27 Steven Bosscher <steven@gcc.gnu.org>
22323
22324 * Makefile.in (ALL_CFLAGS): Add file-specific CFLAGS.
22325 (ALL_HOST_FRONTEND_OBJS): New, for all front-end specific objects.
22326 (ALL_HOST_BACKEND_OBJS): New, for all backend and target objects.
22327 (ALL_HOST_OBJS): Now a union of the above two.
22328 <section "Language makefile fragments">: Add -DIN_GCC_FRONTEND for
22329 all files in ALL_HOST_FRONTEND_OBJS.
22330 * system.h: Poison GCC_RTL_H if IN_GCC_FRONTEND is defined.
22331
22332 * c-common.c: Pretend to be a backend file by undefining
22333 IN_GCC_FRONTEND (still need rtl.h here).
22334
22335 2010-05-27 Jan Hubicka <jh@suse.cz>
22336
22337 * cgraph.h (struct cgraph_node): Mark former_clone_of by GTY ((skip)).
22338 * cgraphunit.c (clone_of_p): Compile only when checking is enabled.
22339
22340 2010-05-27 Jan Hubicka <jh@suse.cz>
22341
22342 * sched-ebb.c: Rename struct deps to struct deps_desc.
22343 * ddg.c: Likewise.
22344 * sel-sched-ir.c: Likewise.
22345 * sched-deps.c: Likewise.
22346 * sched-int.h: Likewise.
22347 * sched-rgn.c: Likewise.
22348
22349 2010-05-27 Jon Beniston <jon@beniston.com>
22350
22351 PR 43726
22352 * config/lm32/lm32.h: Remove definition of
22353 GO_IF_MODE_DEPENDENT_ADDRESS. Update copyright year.
22354
22355 2010-05-27 Eric Botcazou <ebotcazou@adacore.com>
22356
22357 PR lto/44230
22358 * dwarf2out.c (dwarf2out_begin_prologue): Fix nits in sorry message.
22359
22360 2010-05-27 Richard Guenther <rguenther@suse.de>
22361
22362 PR tree-optimization/44284
22363 * tree-vect-stmts.c (vectorizable_assignment): Handle
22364 sign-changing conversions as simple copy.
22365
22366 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
22367
22368 * gthr-posix.h (pthread_cancel): Don't declare if compiling against
22369 Bionic C library.
22370 (__gthread_active_p): Check for pthread_create if compiling against
22371 Bionic C library.
22372
22373 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
22374
22375 Support compilation for Android platform. Reimplement -mandroid.
22376
22377 * config.gcc (*linux*): Include linux-android.h and linux-android.opt.
22378 (*android*): Set ANDROID_DEFAULT.
22379 (arm*-*-linux*): Include linux-android.h.
22380 (arm*-*-eabi*): Don't include previous -mandroid implementation.
22381 * config/arm/eabi.h: Remove, move Android-specific parts ...
22382 * config/linux-android.h: ... here. New file.
22383 * config/arm/eabi.opt: Rename to ...
22384 * config/linux-android.opt: ... this.
22385 (mandroid): Allow -mno-android option. Initialize based on
22386 ANDROID_DEFAULT.
22387 * config/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, CC1_SPEC, LIB_SPEC):
22388 Move logic to corresponding LINUX_TARGET_* macros.
22389 (TARGET_OS_CPP_BUILTINS): Define __ANDROID__, when appropriate.
22390 * config/linux-eabi.h (LINK_SPEC, CC1_SPEC, CC1PLUS_SPEC, LIB_SPEC,)
22391 (STARTFILE_SPEC, ENDFILE_SPEC): Define to choose between Linux and
22392 Android definitions.
22393 (LINUX_TARGET_OS_CPP_BUILTINS): Define __ANDROID__ if TARGET_ANDROID.
22394 * doc/invoke.texi (-mandroid, -tno-android-cc, -tno-android-ld):
22395 Document.
22396
22397 2010-05-27 Maxim Kuvyrkov <maxim@codesourcery.com>
22398
22399 Add support for Bionic C library
22400
22401 * config.gcc (LIBC_GLIBC, LIBC_BIONIC, LIBC_UCLIBC): New tm_define
22402 macro.
22403 (DEFAULT_LIBC): New tm_define macro set to one of LIBC_*.
22404 (bfin*-uclinux, moxie-*-uclinux*, m68k-*-uclinux*): Update.
22405
22406 * config/linux.h (OPTION_GLIBC, OPTION_UCLIBC, OPTION_BIONIC): Define.
22407 (LINUX_TARGET_OS_CPP_BUILTINS): Define __gnu_linux__ only for GLIBC.
22408 (CHOOSE_DYNAMIC_LINKER1, CHOOSE_DYNAMIC_LINKER): Make it easier
22409 to support multiple C libraries. Handle Bionic.
22410 (BIONIC_DYNAMIC_LINKER, BIONIC_DYNAMIC_LINKER32,)
22411 (BIONIC_DYNAMIC_LINKER64): Define.
22412 (LINUX_DYNAMIC_LINKER, LINUX_DYNAMIC_LINKER32, LINUX_DYNAMIC_LINKER64):
22413 Update.
22414 (TARGET_HAS_SINCOS): Enable for Bionic.
22415
22416 * config/linux.opt: Rewrite to handle more than 2 C libraries. Make
22417 the last option specified on command line take effect.
22418 (linux_uclibc): Rename to linux_libc, initialize using DEFAULT_LIBC.
22419 (mbionic): New.
22420 (mglibc, muclibc): Update.
22421
22422 * config/alpha/linux-elf.h, config/rs6000/linux64.h,
22423 * config/rs6000/sysv4.h (CHOOSE_DYNAMIC_LINKER): Update to use
22424 DEFAULT_LIBC.
22425
22426 * doc/invoke.texi (-mglibc, -muclibc): Update.
22427 (-mbionic): Document.
22428
22429 2010-05-27 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
22430
22431 * c-common.h (c_register_addr_space): Add prototype.
22432 (ADDR_SPACE_KEYWORD): Remove.
22433 * c-common.c (c_register_addr_space): New function.
22434 (c_addr_space_name): Reimplement.
22435 (c_common_reswords): Do not include TARGET_ADDR_SPACE_KEYWORDS.
22436
22437 * config/spu/spu.h (TARGET_ADDR_SPACE_KEYWORDS): Remove.
22438 (REGISTER_TARGET_PRAGMAS): Call c_register_addr_space.
22439
22440 * doc/tm.texi (Named Address Spaces): Mention c_register_addr_space.
22441 Remove TARGET_ADDR_SPACE_KEYWORDS.
22442
22443 2010-05-27 Joseph Myers <joseph@codesourcery.com>
22444
22445 * input.c: New file.
22446 * input.h (main_input_filename): Move declaration to toplev.h.
22447 * toplev.c (input_location, line_table): Move to input.c
22448 * toplev.h (main_input_filename): Move declaration from input.h.
22449 * tree.c (expand_location): Move to input.c.
22450 * Makefile.in (OBJS-common): Add input.o.
22451 (input.o): Add dependencies.
22452
22453 2010-05-27 Richard Guenther <rguenther@suse.de>
22454
22455 * lto-wrapper.c (maybe_unlink_file): Ignore unlink failure
22456 for non-existant files.
22457 (fork_execute): Mark args_name file as deleted.
22458
22459 2010-05-27 Kai Tietz <kai.tietz@onevision.com>
22460
22461 PR bootstrp/44287
22462 * c-lex.c (narrowest_unsigned_type): Check for NULL_TREE.
22463 (narrow_signed_type): Likewise.
22464
22465 2010-05-26 Jan Hubicka <jh@suse.cz>
22466
22467 * cgraphunit.c (verify_cgraph_node): Do checking that DECL match
22468 edge only when checking is enabled; check using former_clone_of;
22469 check inline clones too.
22470 (cgraph_materialize_clone): Record former_clone_of pointer.
22471 (cgraph_redirect_edge_call_stmt_to_callee): Assert that we are not
22472 combining redirections; dump args_to_skip bitmap
22473 (cgraph_materialize_all_clones): Do no redirection here.
22474 * ipa-inline.c (inline_transform): Do redirection here.
22475 * cgraph.h (struct cgraph_node): Add former_clone_of filed (enabled
22476 cheking only).
22477
22478 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
22479
22480 * config/avr/avr-c.c: Do not include regs.h.
22481 Include cpplib.h for cpp_define and tree.h for c-common.h.
22482 * config/avr/avr-devices.c (avr_mcu_types): Fix initializer.
22483 * config/avr/t-avr: Fix dependencies for avr-c.o.
22484
22485 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
22486
22487 * explow.c (set_stack_check_libfunc): Adjust to accept name as a
22488 string instead of SYMBOL_REF rtx.
22489 * rtl.h (set_stack_check_libfunc): Move prototype from here...
22490 * libfuncs.h: ...to here. Adjust for explow.c change.
22491
22492 2010-05-26 Joseph Myers <joseph@codesourcery.com>
22493
22494 * pretty-print.c: Don't include ggc.h.
22495 (identifier_to_locale_alloc, identifier_to_locale_free): Define.
22496 (identifier_to_locale): Use them for allocation.
22497 * pretty-print.h (identifier_to_locale_alloc,
22498 identifier_to_locale_free): Declare.
22499 * toplev.c (alloc_for_identifier_to_locale): New.
22500 (general_init): Set identifier_to_locale_alloc and
22501 identifier_to_locale_free.
22502 * Makefile.in (pretty-print.o): Update dependencies.
22503
22504 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
22505
22506 * gimple.c (gimple_types_compatible_p): Return 0 for aggregate and
22507 pointer types if they have different alignment or mode.
22508
22509 2010-05-26 Anatoly Sokolov <aesok@post.ru>
22510
22511 * config/sparc/sparc.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
22512 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
22513 * config/sparc/sparc-protos.h (function_value): Remove declaration.
22514 * config/sparc/sparc.c (sparc_function_value, sparc_libcall_value,
22515 sparc_function_value_regno_p): New functions.
22516 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
22517 TARGET_FUNCTION_VALUE_REGNO_P): Define.
22518 (function_value): Rename to...
22519 (sparc_function_value_1): ... this. Make static. Change 'incoming_p'
22520 argument to 'outgoing'.
22521 (function_arg_record_value, function_arg_union_value,
22522 function_arg_vector_value): Update comment.
22523
22524 2010-05-26 Eric Botcazou <ebotcazou@adacore.com>
22525
22526 * dwarf2out.c (struct dw_fde_struct): Reorder flags.
22527 (fde_needed_for_eh_p): New predicate.
22528 (output_call_frame_info): Use it throughout to decide whether FDEs
22529 are needed for EH purpose.
22530 (dwarf2out_begin_prologue): Reorder assignments.
22531
22532 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22533
22534 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p): Do not
22535 special case loop->header.
22536 (is_predicated): New.
22537 (if_convertible_loop_p): Call it.
22538
22539 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22540
22541 * tree-if-conv.c (add_to_dst_predicate_list): Do not pass a statemet
22542 iterator in parameter. Do not generate code during the analysis.
22543 (tree_if_convert_cond_stmt): Removed.
22544 (tree_if_convert_stmt): Removed.
22545 (predicate_bbs): New.
22546 (if_convertible_loop_p): Call predicate_bbs.
22547 (tree_if_conversion): Simplify the top-level logic as predicate_bbs
22548 now contains all the analysis part.
22549
22550 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22551
22552 * tree-if-conv.c (tree_if_convert_cond_stmt): Do not remove
22553 statements in the analysis part.
22554 (tree_if_convert_stmt): Update comment.
22555 (remove_conditions_and_labels): New.
22556 (combine_blocks): Call remove_conditions_and_labels.
22557 (tree_if_conversion): Update comment.
22558
22559 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22560
22561 * tree-if-conv.c (if_convertible_bb_p): Don't handle BBs with more
22562 than 2 predecessors or more than 2 successors.
22563
22564 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22565
22566 * tree-if-conv.c (if_convertible_loop_p): Avoid if-conversion
22567 of loops in which the data dependence analysis fails.
22568
22569 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22570
22571 * tree-if-conv.c (if_convertible_loop_p): Do not compute/free
22572 CDI_POST_DOMINATORS.
22573 (tree_if_conversion): Same.
22574
22575 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22576
22577 * tree-if-conv.c (tree_if_conversion): Do not return a bool.
22578
22579 2010-05-26 Sebastian Pop <sebastian.pop@amd.com>
22580
22581 * tree-if-conv.c: Update copyright years. Fix comments.
22582 Fix indentation.
22583
22584 2010-05-26 Kai Tietz <kai.tietz@onevision.com>
22585
22586 * builtin-types.def (BT_INT128): New primitive type.
22587 (BT_UINT128): Likewise.
22588 * c-common.c (c_common_r): Add __int128 keyword.
22589 (c_common_type_for_size): Handle __int128.
22590 (c_common_type_for_mode): Likewise.
22591 (c_common_signed_or_unsigned_type): Likewise.
22592 (c_common_nodes_and_builtins): Add builtin type
22593 if target supports 128-bit integer scalar.
22594 * c-common.h (enum rid): Add RID_INT128.
22595 * c-cppbuiltin.c (c_cpp_builtins): Define __SIZEOF_INT128__
22596 if target supports 128-bit integer scalar.
22597 * c-decl.c (declspecs_add_type): Handle new keyword __int128.
22598 (finish_declspecs): Likewise.
22599 * c-parser.c (c_token_starts_typename): Handle RID_INT128.
22600 (c_token_starts_declspecs): Likewise.
22601 (c_parser_declspecs): Likewise.
22602 (c_parser_attributes): Likewise.
22603 (c_parser_objc_selector): Likewise.
22604 * c-pretty-print.c (pp_c_integer_constant): Handle __int128.
22605 * c-tree.h (enum c_typespec_keyword): Add cts_int128.
22606 * gimple.c (gimple_signed_or_unsigned_type): Handle int128 types.
22607 * tree.c (make_or_reuse_type): Likewise.
22608 (make_unsigned_type): Likewise.
22609 (build_common_tree_nodes_2): Likewise.
22610 * tree.h (enum integer_type_kind): Add itk_int128 and
22611 itk_unsigned_int128.
22612 (int128_integer_type_node): New define.
22613 (int128_unsigned_type_node): New define.
22614 * doc/extend.texi: Add documentation about __int128 type.
22615
22616 2010-05-26 Richard Guenther <rguenther@suse.de>
22617
22618 * tree-ssa-sccvn.c (copy_nary): Adjust.
22619 (copy_phis): Rename to ...
22620 (copy_phi): ... this. Adjust.
22621 (copy_references): Rename to ...
22622 (copy_reference): ... this. Adjust.
22623 (process_scc): Use HTAB_FOR_EACH_ELEMENT to insert the
22624 result into the valid table.
22625
22626 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
22627
22628 * config/spu/spu-c.c: Do not include function.h, rtl.h, expr.h,
22629 insn-config.h, insn-codes.h, recog.h, and optabs.h.
22630
22631 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
22632
22633 * ggc.h (ggc_min_expand_heuristic, ggc_min_heapsize_heuristic): Remove.
22634
22635 2010-05-26 Richard Guenther <rguenther@suse.de>
22636
22637 * opts.c (common_handle_option): Handle OPT_Ofast.
22638
22639 2010-05-26 Joseph Myers <joseph@codesourcery.com>
22640
22641 * diagnostic.c: Don't include opts.h.
22642 (permissive_error_option): Define.
22643 (diagnostic_initialize): Take n_opts parameter. Allocate memory
22644 for classify_diagnostic. Don't use memset for
22645 classify_diagnostic. Initialize new and recently added fields.
22646 (diagnostic_classify_diagnostic): Use context->n_opts instead of
22647 N_OPTS.
22648 (diagnostic_report_diagnostic): Pass context parameter to
22649 diagnostic_report_warnings_p. Use option_enabled and option_name
22650 hooks from context.
22651 (emit_diagnostic): Use permissive_error_option.
22652 (permerror): Likewise.
22653 * diagnostic.h: Don't include options.h.
22654 (struct diagnostic_context): Add n_opts, opt_permissive,
22655 inhibit_warnings, warn_system_headers, option_enabled and
22656 option_name fields. Change classify_diagnostic to a pointer.
22657 * opts-diagnostic.h: New file.
22658 * opts.c: Include opts-diagnostic.h.
22659 (common_handle_option): Set global_dc fields for -Wfatal-errors,
22660 -Wsystem-headers, -fshow-column, -pedantic-errors and -w.
22661 (option_name): New function.
22662 * c-opts.c (c_common_init_options): Set global_dc->opt_permissive.
22663 (c_common_handle_option): Set global_dc->permissive for
22664 -fpermissive.
22665 * c-common.c (c_cpp_error): Save and restore
22666 global_dc->warn_system_headers, not variable warn_system_headers.
22667 * toplev.c: Include opts-diagnostic.h.
22668 (general_init): Update call to diagnostic_initialize. Set
22669 global_dc->show_column, global_dc->option_enabled and
22670 global_dc->option_name.
22671 (process_options): Don't set global_dc fields here.
22672 * Makefile.in (DIAGNOSTIC_H): Remove options.h.
22673 (diagnostic.o, opts.o, toplev.o): Update dependencies.
22674
22675 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
22676
22677 * config/picochip/picochip.md (movsi): Split a movsi from a
22678 const after reload.
22679
22680 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
22681
22682 * ggc-zone.c: Update copyright year.
22683 (poison_region): Mark memory for Valgrind as undefined before
22684 memset () call and inaccessible afterwards.
22685 (ggc_pch_total_size): Change type of i to int.
22686
22687 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
22688
22689 * ggc-common.c (ggc_free_overhead): Allow empty slot.
22690
22691 2010-05-26 Laurynas Biveinis <laurynas.biveinis@gmail.com>
22692
22693 * ggc-common.c: Update copyright year.
22694 (ggc_rlimit_bound): Remove prototype. Compile only if
22695 !ENABLE_GC_CHECKING && !ENABLE_GC_ALWAYS_COLLECT.
22696 (ggc_min_heapsize_heuristic): Compile only if !ENABLE_GC_CHECKING
22697 && !ENABLE_GC_ALWAYS_COLLECT. Make static.
22698 (ggc_min_heapsize_heuristic): Likewise.
22699
22700 2010-05-26 Richard Guenther <rguenther@suse.de>
22701
22702 PR rtl-optimization/44164
22703 * tree-ssa-alias.c (aliasing_component_refs_p): Fix the
22704 no-common access-path disambiguation.
22705 (indirect_ref_may_alias_decl_p): Adjust.
22706 (indirect_refs_may_alias_p): Likewise.
22707 (refs_may_alias_p_1): Likewise.
22708
22709 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
22710
22711 * c-typeck.c: Do not include expr.h.
22712
22713 2010-05-26 Steven Bosscher <steven@gcc.gnu.org>
22714
22715 * rtl.h (decl_default_tls_model): Move prototype from here...
22716 * output.h: ...to here.
22717 * c-decl.c: Do not include rtl.h.
22718 * c-pragma.c: Likewise.
22719 * c-parser.c: Likewise.
22720 * c-gimplify.c: Likewise. And also not hard-reg-set.
22721 * c-common.c: Do not include rtl.h. Include tm_p.h and add a
22722 FIXME note for it. Add a FIXME note for expr.h.
22723 * config/i386/i386-protos.h (ix86_enum_va_list, ix86_fn_abi_va_list,
22724 ix86_canonical_va_list_type): Make visible even if RTX_CODE is not
22725 defined.
22726
22727 2010-05-26 Jakub Jelinek <jakub@redhat.com>
22728
22729 PR target/44199
22730 * config/rs6000/rs6000.c (rs6000_emit_epilogue): If cfun->calls_alloca
22731 or total_size is larger than red zone size for non-V4 ABI, emit a
22732 stack_tie resp. frame_tie insn before stack pointer restore.
22733 * config/rs6000/rs6000.md (frame_tie): New insn.
22734
22735 2010-05-25 Eric Botcazou <ebotcazou@adacore.com>
22736
22737 * function.h (struct function): Add can_throw_non_call_exceptions bit.
22738 * lto-streamer-in.c (input_function): Stream it in.
22739 * lto-streamer-out.c (output_function): Stream it out.
22740 * function.c (allocate_struct_function): Set it.
22741 (expand_function_end): Substitute cfun->can_throw_non_call_exceptions
22742 for flag_non_call_exceptions.
22743 * cfgbuild.c (control_flow_insn_p): Likewise.
22744 (make_edges): Likewise.
22745 * cfgexpand.c (expand_stack_alignment): Likewise.
22746 * combine.c (distribute_notes): Likewise.
22747 * cse.c (cse_extended_basic_block): Likewise.
22748 * except.c (insn_could_throw_p): Likewise.
22749 * gcse.c (simple_mem): Likewise.
22750 * ipa-pure-const.c (check_call): Likewise.
22751 (check_stmt ): Likewise.
22752 * lower-subreg.c (lower-subreg.c): Likewise.
22753 * optabs.c (emit_libcall_block): Likewise.
22754 (prepare_cmp_insn): Likewise.
22755 * postreload-gcse.c (eliminate_partially_redundant_loads): Likewise.
22756 * postreload.c (rest_of_handle_postreload): Likewise.
22757 * reload1.c (reload_as_needed): Likewise.
22758 (emit_input_reload_insns): Likewise.
22759 (emit_output_reload_insns): Likewise.
22760 (fixup_abnormal_edges): Likewise.
22761 * sel-sched-ir.c (init_global_and_expr_for_insn): Likewise.
22762 * store-motion.c (find_moveable_store): Likewise.
22763 * tree-eh.c (stmt_could_throw_p): Likewise.
22764 (tree_could_throw_p): Likewise.
22765 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
22766 * config/arm/arm.c (arm_expand_prologue): Likewise.
22767 (thumb1_expand_prologue): Likewise.
22768 * config/rx/rx.md (cbranchsf4): Likewise.
22769 (cmpsf): Likewise.
22770 * config/s390/s390.c (s390_emit_prologue): Likewise.
22771 * tree-inline.c (initialize_cfun): Copy can_throw_non_call_exceptions.
22772 (inline_forbidden_into_p): New predicate.
22773 (expand_call_inline): Use it to forbid inlining.
22774 (tree_can_inline_p): Likewise.
22775
22776 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
22777
22778 * config/i386/i386-c.c: Do not include rtl.h.
22779 * config/i386/t-i386: Update dependencies.
22780
22781 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
22782
22783 * attribs.c: Do not include rtl.h.
22784 * Makefile.in: Update dependencies.
22785
22786 2010-05-25 Anatoly Sokolov <aesok@post.ru>
22787
22788 * double-int.h (double_int_and): New.
22789 * combine.c (try_combine): Clean up, use double_int_* and
22790 immed_double_int_const functions.
22791
22792 2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22793
22794 * configure.ac (gcc_cv_as_ld_jalr_reloc): Redirect grep stdout,
22795 stderr to /dev/null instead of grep -q.
22796 * configure: Regenerate.
22797
22798 2010-05-25 Steven Bosscher <steven@gcc.gnu.org>
22799
22800 * Makefile.in (EXCEPT_H): Fix typo.
22801
22802 2010-05-25 Vladimir Makarov <vmakarov@redhat.com>
22803
22804 * ira-build.c (update_conflict_hard_reg_costs): New.
22805 (ira_build): Call update_conflict_hard_reg_costs.
22806
22807 2010-05-25 Jakub Jelinek <jakub@redhat.com>
22808
22809 PR debug/41371
22810 * var-tracking.c (find_loc_in_1pdv): Guard asserts with
22811 ENABLE_CHECKING.
22812 (intersect_loc_chains): Walk the s2var's loc_chain together
22813 with s1node chain as long as the locations are equal, don't
22814 call find_loc_in_1pdv in that case.
22815
22816 PR debug/42801
22817 * tree-inline.c (remap_decls): Remap DECL_VALUE_EXPR here...
22818 (copy_bind_expr): ... instead of here.
22819 (copy_tree_body_r): If id->remapping_type_depth clear TREE_BLOCK
22820 if the block hasn't been remapped.
22821 * dwarf2out.c (gen_formal_parameter_die, gen_variable_die): When
22822 emitting concrete instance of abstract VLA, add DW_AT_type attribute.
22823
22824 2010-05-25 Richard Guenther <rguenther@suse.de>
22825
22826 PR middle-end/44069
22827 * gimple-fold.c (maybe_fold_stmt_addition): Avoid generating
22828 out-of-bounds array accesses.
22829
22830 2010-05-25 Richard Guenther <rguenther@suse.de>
22831
22832 * lto-wrapper.c (nr, input_names, output_names, makefile): Globalize.
22833 (lto_wrapper_exit): Unlink all LTRANS temporary files on error.
22834 (run_gcc): Re-organize to make cleanup easier.
22835
22836 2010-05-25 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22837
22838 * config/s390/s390.c (optimization_options): Fix and move the
22839 flag_prefetch_loop_arrays override ...
22840 (override_options): ... here.
22841
22842 2010-05-25 Joseph Myers <joseph@codesourcery.com>
22843
22844 * diagnostic.c: Don't include plugin.h.
22845 (diagnostic_report_diagnostic): Don't handle plugins specially
22846 here. Pass context to internal_error callback.
22847 * diagnostic.h (struct diagnostic_context): Add context parameter
22848 to internal_error callback.
22849 * plugin.c (warn_if_plugins, plugins_internal_error_function): New.
22850 * plugin.h (struct diagnostic_context): Declare.
22851 (warn_if_plugins, plugins_internal_error_function): Declare.
22852 * toplev.c (general_init): Set global_dc->internal_error.
22853 * Makefile.in (diagnostic.o): Update dependencies.
22854
22855 2010-05-25 Iain Sandoe <iains@gcc.gnu.org>
22856
22857 * config/rs6000/darwin64.h: Update DARWIN_ARCH_SPEC.
22858 * config/rs6000/t-darwin64: New.
22859 * config.gcc (powerpc64-*-darwin*): Use darwin.opts, t-darwin64,
22860 build crt2.
22861
22862 2010-05-25 Christian Borntraeger <borntraeger@de.ibm.com>
22863
22864 PR 44203
22865 * tree-ssa-loop-prefetch.c: Fix logic for step calculation to
22866 match the original (and intended) behaviour before r159557. This
22867 changeset changed a=a+b*c to a=(a+b)*b which was obviously wrong
22868 in two ways.
22869
22870 2010-05-25 Richard Guenther <rguenther@suse.de>
22871
22872 * doc/invoke.texi: Document -Ofast.
22873 * target.h (struct gcc_target): Add handle_ofast.
22874 * target-def.h (TARGET_HANDLE_OFAST): Add.
22875 (TARGET_INITIALIZER): Adjust.
22876 * opts.c (decode_options): Handle -Ofast. Enable -ffast-math with it.
22877 * common.opt (Ofast): Add.
22878
22879 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
22880
22881 * doc/tm.texi (STORE_FLAG_VALUE): Do not refer to sCC patterns.
22882 * doc/md.texi (cstoreXX4): Update for cond-optab changes.
22883
22884 2010-05-25 Paolo Bonzini <bonzini@gnu.org>
22885
22886 PR target/43610
22887 * optabs.c (prepare_float_lib_cmp): Allow reversing the comparison
22888 even if !FLOAT_LIB_COMPARE_RETURNS_BOOL. Always compute true_rtx and
22889 false_rtx. Use false_rtx to compute the correct *ptest for reversed
22890 comparisons for which !FLOAT_LIB_COMPARE_RETURNS_BOOL.
22891
22892 2010-05-25 Jakub Jelinek <jakub@redhat.com>
22893
22894 * dwarf2out.c (loc_descr_plus_const): When offset is negative, use
22895 DW_OP_minus with negated offset instead of DW_OP_plus.
22896 (loc_list_from_tree): Don't test whether second operand is INTEGER_CST.
22897
22898 2010-05-25 Wei Guozhi <carrot@google.com>
22899
22900 * config/arm/thumb2.md (thumb2_tlobits_cbranch): Add constraint to
22901 tst instruction and a new alternative.
22902 * config/arm/constraints.md (Pu): New constraint.
22903
22904 2010-05-24 Sebastian Pop <sebastian.pop@amd.com>
22905
22906 * function.c (assign_stack_local_1): Initialize variable
22907 to avoid warning when bootstrapping at -O3.
22908
22909 2010-05-24 Steven Bosscher <steven@gcc.gnu.org>
22910
22911 * configure.ac (all_lang_makefiles): Remove everything related to it.
22912 * configure: Regenerate.
22913 * Makefile.in: Fix reference to ada Make-lang.in.
22914 Remove support for LANG_MAKEFILES.
22915
22916 2010-05-24 Daniel Jacobowitz <dan@codesourcery.com>
22917 Sandra Loosemore <sandra@codesourcery.com>
22918
22919 * config/arm/neon-testgen.ml: Use dg-add-options arm_neon.
22920 * doc/sourcebuild.texi (Effective-Target Keywords): Update arm_neon_ok
22921 description. Add arm_neon_fp16_ok.
22922 (Add Options): Add arm_neon and arm_neon_fp16.
22923
22924 2010-05-24 Joseph Myers <joseph@codesourcery.com>
22925
22926 * diagnostic.c: Don't include flags.h.
22927 (pedantic_warning_kind, permissive_error_kind): Take diagnostic
22928 context parameters. Check flags in the context passed as a parameter.
22929 (diagnostic_build_prefix): Add context parameter. Check
22930 show_column flag in context.
22931 (diagnostic_action_after_output): Check fatal_errors flag in context.
22932 (diagnostic_report_current_module): Check show_column flag in context.
22933 (default_diagnostic_starter): Update call to
22934 diagnostic_build_prefix.
22935 (diagnostic_report_diagnostic): Pass context to pedantic_warning_kind.
22936 (emit_diagnostic): Pass context to permissive_error_kind.
22937 (permerror): Pass context to permissive_error_kind.
22938 * diagnostic.h (struct diagnostic_context): Add show_column,
22939 pedantic_errors, permissive and fatal_errors fields.
22940 (diagnostic_build_prefix): Update prototype.
22941 * langhooks.c
22942 * toplev.c (process_options): Set flags in global_dc from
22943 flag_show_column, flag_pedantic_errors, flag_permissive,
22944 flag_fatal_errors.
22945 * tree-diagnostic.c (default_tree_diagnostic_starter): Update call
22946 to diagnostic_build_prefix.
22947 * Makefile.in (diagnostic.o): Update dependencies.
22948
22949 2010-05-24 H.J. Lu <hongjiu.lu@intel.com>
22950
22951 * config/i386/ia32intrin.h (__crc32q): Define only if
22952 __SSE4_2__ is defined.
22953
22954 2010-05-24 Iain Sandoe <iains@gcc.gnu.org>
22955
22956 PR target/44132
22957 PR middle-end/43602
22958 * varasm.c (get_emutls_init_templ_addr): Copy DECL_PRESERVE_P,
22959 DECL_VISIBILITY_SPECIFIED.
22960 (emutls_decl): Set DECL_PRESERVE_P and copy
22961 DECL_VISIBILITY_SPECIFIED, DECL_RESTRICTED_P.
22962 (emutls_finalize_control_var): New callback.
22963 (emutls_finish): Finalize emutls control variables.
22964 * toplev.c (compile_file): Move the call to emutls_finish ()
22965 before varpool_assemble_pending_decls ().
22966
22967 2010-05-24 Daniel Gutson <dgutson@codesourcery.com>
22968
22969 * config/arm/lib1funcs.asm (__ARM_ARCH__): __ARM_ARCH_7EM__
22970 added to the preprocessor condition.
22971
22972 2010-05-24 Paul Brook <paul@codesourcery.com>
22973
22974 * gengtype-lex.l: Add HARD_REG_SET.
22975 * expr.c (expand_expr_real_1): Record writes to hard registers.
22976 * function.c (rtl_data): Add asm_clobbers.
22977 * ira.c (compute_regs_asm_clobbered): Use crtl->asm_clobbers.
22978 (ira_setup_eliminable_regset): Remove regs_asm_clobbered.
22979 Use crtl->asm_clobbers.
22980
22981 2010-05-24 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
22982
22983 * doc/makefile.texi (Makefile): Mention stages 'profile'
22984 and 'feedback' for profiledbootstrap.
22985
22986 2010-05-23 H.J. Lu <hongjiu.lu@intel.com>
22987
22988 PR target/44245
22989 * config/i386/i386.c (def_builtin): Properly check
22990 OPTION_MASK_ISA_64BIT.
22991
22992 2010-05-23 Joseph Myers <joseph@codesourcery.com>
22993
22994 * c-decl.c (diagnose_mismatched_decls): Give error for duplicate
22995 typedefs with different but compatible types. Allow duplicate
22996 typedefs with the same type except for pedantic non-C1X, but give
22997 warning for variably modified types.
22998 * c-typeck.c (tagged_types_tu_compatible_p,
22999 function_types_compatible_p, type_lists_compatible_p,
23000 comptypes_internal): Add parameter different_types_p; set
23001 *different_types_p for different but compatible types. All
23002 callers changed.
23003 (comptypes_check_different_types): New.
23004 * c-tree.h (comptypes_check_different_types): Declare.
23005
23006 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
23007
23008 * regs.h: Do not include obstack.h, basic-block.h. Include machmode.h.
23009 * jump.c: Include basic-block.h.
23010 * profile.c: Likewise.
23011 * tree-profile.c: Likewise.
23012 * coverage.c: Likewise.
23013 * basic-block.h (optimize_function_for_size_p): Move to function.h.
23014 (optimize_function_for_speed_p): Likewise.
23015 * function.h (optimize_function_for_size_p,
23016 optimize_function_for_speed_p): Moved here from basic-block.h.
23017 * Makefile.in: Update dependencies.
23018
23019 2010-05-23 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
23020
23021 * lto-wrapper.c (run_gcc): Unset MAKEFLAGS and MFLAGS
23022 before calling make; allow override through $MAKE.
23023 * doc/invoke.texi (Optimize Options): Document override.
23024
23025 2010-05-23 Anatoly Sokolov <aesok@post.ru>
23026
23027 * config/rs6000/rs6000.c (rs6000_mode_dependent_address_p): New.
23028 (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
23029 (rs6000_mode_dependent_address_ptr): Make static.
23030 * config/rs6000/rs6000.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
23031 * config/rs6000/rs6000-protos.h (rs6000_mode_dependent_address_ptr):
23032 Remove.
23033
23034 2010-05-23 Maarten Lankhorst <mlankhorst@codeweavers.com>
23035
23036 PR target/43869
23037 * config/i386/i386.c: Make sure that the correct regparm is passed.
23038
23039 2010-05-23 Steven Bosscher <steven@gcc.gnu.org>
23040
23041 * sbitmap.h (sbitmap_ptr, const_sbitmap_ptr): Move from here...
23042 * sbitmap.c: ...to here to internalize sbitmap element access.
23043 Do not include tm.h, rtl.h, flags.h, hard-reg-set.h, and obstack.h.
23044 Explain why basic-block.h is included.
23045 * function.h: Include tm.h for CUMULATIVE_ARGS.
23046 * Makefile.in: Update dependencies.
23047
23048 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
23049
23050 * coretypes.h (struct simple_bitmap_def, sbitmap, const_sbitmap):
23051 New core types.
23052 * sbitmap.h (struct sbitmap_def): Do not typedef here.
23053 * sbitmap.c: Include sbitmap.h.
23054 * basic-block.h: Do not include bitmap.h, sbitmap.h, partition.h,
23055 hard-reg-set.h. Split everything related to regsets out from here...
23056 * regset.h: ...to here. New file.
23057 * df.h: Include regset.h and sbitmap.h.
23058 * tree-flow.h: Likewise.
23059 * cfgloop.h: Likewise.
23060 * except.h: Do not include sbitmap.h. Include hashtab.h.
23061 * cgraph.h: Include vec.h and function.h.
23062 * reload.h (struct insn_chain): Change types of live_throughout
23063 and dead_or_set from regset_head to bitmap_head.
23064 (compute_use_by_pseudos): Be defined also if regset.h is not included.
23065 * ira-int.h (struct ira_spilled_reg_stack_slot): Change type of
23066 spilled_regs from regset_head to bitmap_head to avoid dependency
23067 in regset.h.
23068 * sel-sched-ir.h: Include regset.h.
23069 * reload.c: Include df.h before reload.h.
23070 * caller-save.c: Likewise.
23071 * reload1.c: Likewise.
23072 * ira.c: Likewise.
23073 (mark_elimination): Update type of r to bitmap, consistent with
23074 DF_LR_IN.
23075 * dominance.c: Include bitmap.h.
23076 * modulo-sched.c: Include df.h.
23077 * cfganal.c: Include bitmap.h and sbitmap.h.
23078 * cfgbuild.c: Include sbitmap.h.
23079 * lcm.c: Include sbitmap.h.
23080 * gcse.c (alloc_gcse_mem): Allocate regset with ALLOC_REG_SET.
23081 * domwalk.c: Include sbitmap.h, exclude ggc.h.
23082 * cfgexpand.c: Inlcude bitmap.h and sbitmap.h.
23083 * cselib.c: Include bitmap.h.
23084 * tree-optimize.c: Include regset.h.
23085 * stmt.c: Include bitmap.h.
23086 * Makefile.in: Update dependencies.
23087
23088 2010-05-22 Jan Hubicka <jh@suse.cz>
23089
23090 * cgraph.h (struct varpool_node): Add same_comdat_group.
23091 * lto-cgrpah.c (lto_output_varpool_node): Output same_comdat_group
23092 pointer.
23093 (output_varpool): Update call of lto_output_varpool_node.
23094 (input_varpool): Read same_comdat_group pointer.
23095 (input_varpool_1): Fixup same_comdat_group pointer.
23096 * ipa.c (cgraph_remove_unreachable_nodes): WHen one of same comdat
23097 group is needed, all are.
23098 * varpool.c (varpool_remove_node): Remove node from same comdat group
23099 linklist too.
23100 (varpool_analyze_pending_decls): Walk same comdat groups.
23101
23102 2010-05-22 Steven Bosscher <steven@gcc.gnu.org>
23103
23104 * rtl.h (union rtunion_def): Remove rt_bit member.
23105 (XBITMAP, X0BITMAP, XCBITMAP): Remove.
23106 * print-rtl (print_rtx): Do not print the member.
23107 * gengtype.c (adjust_field_rtx_def): Do not handle it.
23108 * gengenrtl.c (type_from_format): Likewise.
23109 (accessor_from_format): Likewise.
23110
23111 2010-05-22 Joseph Myers <joseph@codesourcery.com>
23112
23113 * dbgcnt.c: Include toplev.h instead of errors.h.
23114 * ira-emit.c: Don't include errors.h.
23115 * ira.c: Include toplev.h instead of errors.h.
23116 * lto-compress.c: Include toplev.h instead of errors.h.
23117 * Makefile.in (lto-compress.o, lto-streamer-out.o, ira-emit.o,
23118 ira.o, dbgcnt.o): Update dependencies.
23119
23120 2010-05-22 Richard Guenther <rguenther@suse.de>
23121
23122 * gimple.c (gimple_types_compatible_p): Check type qualifications
23123 before merging pointer to complete and pointer to incomplete type.
23124 * lto-symtab.c (lto_symtab_resolve_symbols): For commons make sure
23125 we use our own resolution algorithm. The gold linker plugin
23126 doesn't do the job we want it to do here.
23127
23128 2010-05-22 Anatoly Sokolov <aesok@post.ru>
23129
23130 * config/sparc/sparc.h (GO_IF_MODE_DEPENDENT_ADDRESS): Remove.
23131 * config/sparc/sparc.c (TARGET_MODE_DEPENDENT_ADDRESS_P): Define.
23132 (sparc_mode_dependent_address_p): New function.
23133
23134 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
23135
23136 * Makefile.in: Fix c-pch.o and ggc-common.o dependencies on timevars.
23137
23138 * timevar.c: Do not include any core headers.
23139 (timevar_print): De-i18n-ize.
23140 (print_time): Likewise.
23141 * timevar.h (timevar_push, timevar_pop): Make inline functions.
23142
23143 2010-05-21 Joseph Myers <joseph@codesourcery.com>
23144
23145 * diagnostic.c: Don't include tm.h, tree.h, tm_p.h, langhooks.h or
23146 langhooks-def.h.
23147 (diagnostic_initialize): Initialize x_data not last_function.
23148 (diagnostic_report_current_function): Move to tree-diagnostic.c.
23149 (default_diagnostic_starter): Call
23150 diagnostic_report_current_module not
23151 diagnostic_report_current_function.
23152 (diagnostic_report_diagnostic): Initialize x_data not
23153 abstract_origin.
23154 (verbatim): Likewise.
23155 * diagnostic.h (struct diagnostic_info): Change abstract_origin to
23156 x_data.
23157 (struct diagnostic_context): Change last_function to x_data.
23158 (diagnostic_auxiliary_data): Replace with
23159 diagnostic_context_auxiliary_data and
23160 diagnostic_info_auxiliary_data.
23161 (diagnostic_last_function_changed, diagnostic_set_last_function,
23162 diagnostic_report_current_function): Move to tree-diagnostic.h.
23163 (print_declaration, dump_generic_node, print_generic_stmt,
23164 print_generic_stmt_indented, print_generic_expr,
23165 print_generic_decl, debug_c_tree, dump_omp_clauses,
23166 print_call_name, debug_generic_expr, debug_generic_stmt,
23167 debug_tree_chain, default_tree_printer): Move to
23168 tree-pretty-print.h.
23169 (debug_gimple_stmt, debug_gimple_seq, print_gimple_seq,
23170 print_gimple_stmt, print_gimple_expr, dump_gimple_stmt): Move to
23171 gimple-pretty-print.h.
23172 * pretty-print.c: Don't include tree.h
23173 (pp_base_format): Don't handle %K here.
23174 (pp_base_tree_identifier): Move to tree-pretty-print.c.
23175 * pretty-print.h (text_info): Change abstract_origin to x_data.
23176 (pp_tree_identifier, pp_unsupported_tree,
23177 pp_base_tree_identifier): Move to tree-pretty-print.h.
23178 * gimple-pretty-print.h, tree-diagnostic.c, tree-diagnostic.h,
23179 tree-pretty-print.h: New files.
23180 * tree-pretty-print.c: Include tree-pretty-print.h.
23181 (percent_K_format): New. Moved from pretty-print.c.
23182 (pp_base_tree_identifier): Move from pretty-print.c.
23183 * c-objc-common.c: Include tree-pretty-print.h.
23184 (c_tree_printer): Handle %K here.
23185 * langhooks.c: Include tree-diagnostic.h.
23186 (lhd_print_error_function): Use diagnostic_abstract_origin macro.
23187 * toplev.c: Include tree-diagnostic.h and tree-pretty-print.h.
23188 (default_tree_printer): Handle %K using percent_K_format.
23189 (general_init): Use default_tree_diagnostic_starter.
23190 * tree.c: Include tree-diagnostic.h and tree-pretty-print.h.
23191 (free_lang_data): Use default_tree_diagnostic_starter.
23192 * c-pretty-print.c: Include tree-pretty-print.h.
23193 * cfgexpand.c: Include tree-pretty-print.h and gimple-pretty-print.h.
23194 * cgraphunit.c: Include tree-pretty-print.h and gimple-pretty-print.h.
23195 * dwarf2out.c: Include tree-pretty-print.h.
23196 * except.c: Include tree-pretty-print.h.
23197 * gimple-pretty-print.c: Include tree-pretty-print.h and
23198 gimple-pretty-print.h.
23199 * gimplify.c: Include tree-pretty-print.h.
23200 * graphite-poly.c: Include tree-pretty-print.h and
23201 gimple-pretty-print.h.
23202 * ipa-cp.c: Include tree-pretty-print.h.
23203 * ipa-inline.c: Include gimple-pretty-print.h.
23204 * ipa-prop.c: Include tree-pretty-print.h and gimple-pretty-print.h.
23205 * ipa-pure-const.c: Include gimple-pretty-print.h.
23206 * ipa-struct-reorg.c: Include tree-pretty-print.h and
23207 gimple-pretty-print.h.
23208 * ipa-type-escape.c: Include tree-pretty-print.h.
23209 * print-rtl.c: Include tree-pretty-print.h.
23210 * print-tree.c: Include gimple-pretty-print.h.
23211 * sese.c: Include tree-pretty-print.h.
23212 * tree-affine.c: Include tree-pretty-print.h.
23213 * tree-browser.c: Include tree-pretty-print.h.
23214 * tree-call-cdce.c: Include gimple-pretty-print.h.
23215 * tree-cfg.c: Include tree-pretty-print.h and gimple-pretty-print.h.
23216 * tree-chrec.c: Include tree-pretty-print.h.
23217 * tree-data-ref.c: Include tree-pretty-print.h and
23218 gimple-pretty-print.h.
23219 * tree-dfa.c: Include tree-pretty-print.h.
23220 * tree-if-conv.c: Include tree-pretty-print.h and
23221 gimple-pretty-print.h.
23222 * tree-inline.c: Include tree-pretty-print.h.
23223 * tree-into-ssa.c: Include tree-pretty-print.h and
23224 gimple-pretty-print.h.
23225 * tree-nrv.c: Include tree-pretty-print.h.
23226 * tree-object-size.c: Include tree-pretty-print.h and
23227 gimple-pretty-print.h.
23228 * tree-outof-ssa.c: Include tree-pretty-print.h and
23229 gimple-pretty-print.h.
23230 * tree-parloops.c: Include tree-pretty-print.h and
23231 gimple-pretty-print.h.
23232 * tree-predcom.c: Include tree-pretty-print.h and
23233 gimple-pretty-print.h.
23234 * tree-scalar-evolution.c: Include tree-pretty-print.h and
23235 gimple-pretty-print.h.
23236 * tree-sra.c: Include tree-pretty-print.h.
23237 * tree-ssa-address.c: Include tree-pretty-print.h.
23238 * tree-ssa-alias.c: Include tree-pretty-print.h.
23239 * tree-ssa-ccp.c: Include tree-pretty-print.h and
23240 gimple-pretty-print.h.
23241 * tree-ssa-coalesce.c: Include tree-pretty-print.h.
23242 * tree-ssa-copy.c: Include tree-pretty-print.h and
23243 gimple-pretty-print.h.
23244 * tree-ssa-copyrename.c: Include tree-pretty-print.h.
23245 * tree-ssa-dce.c: Include tree-pretty-print.h and
23246 gimple-pretty-print.h.
23247 * tree-ssa-dom.c: Include tree-pretty-print.h and
23248 gimple-pretty-print.h.
23249 * tree-ssa-dse.c: Include gimple-pretty-print.h.
23250 * tree-ssa-forwprop.c: Include tree-pretty-print.h.
23251 * tree-ssa-ifcombine.c: Include tree-pretty-print.h.
23252 * tree-ssa-live.c: Include tree-pretty-print.h and
23253 gimple-pretty-print.h.
23254 * tree-ssa-loop-im.c: Include tree-pretty-print.h and
23255 gimple-pretty-print.h.
23256 * tree-ssa-loop-ivcanon.c: Include tree-pretty-print.h and
23257 gimple-pretty-print.h.
23258 * tree-ssa-loop-ivopts.c: Include tree-pretty-print.h and
23259 gimple-pretty-print.h.
23260 * tree-ssa-loop-niter.c: Include tree-pretty-print.h and
23261 gimple-pretty-print.h.
23262 * tree-ssa-loop-prefetch.c: Include tree-pretty-print.h.
23263 * tree-ssa-math-opts.c: Include gimple-pretty-print.h.
23264 * tree-ssa-operands.c: Include tree-pretty-print.h and
23265 gimple-pretty-print.h.
23266 * tree-ssa-phiprop.c: Include tree-pretty-print.h and
23267 gimple-pretty-print.h.
23268 * tree-ssa-pre.c: Include tree-pretty-print.h and
23269 gimple-pretty-print.h.
23270 * tree-ssa-propagate.c: Include gimple-pretty-print.h.
23271 * tree-ssa-reassoc.c: Include tree-pretty-print.h and
23272 gimple-pretty-print.h.
23273 * tree-ssa-sccvn.c: Include tree-pretty-print.h and
23274 gimple-pretty-print.h.
23275 * tree-ssa-sink.c: Include gimple-pretty-print.h.
23276 * tree-ssa-ter.c: Include tree-pretty-print.h and
23277 gimple-pretty-print.h.
23278 * tree-ssa-uninit.c: Include gimple-pretty-print.h.
23279 * tree-ssa.c: Include tree-pretty-print.h and
23280 gimple-pretty-print.h.
23281 * tree-stdarg.c: Include gimple-pretty-print.h.
23282 * tree-switch-conversion.c: Include gimple-pretty-print.h.
23283 * tree-tailcall.c: Include tree-pretty-print.h and
23284 gimple-pretty-print.h.
23285 * tree-vect-data-refs.c: Include tree-pretty-print.h and
23286 gimple-pretty-print.h.
23287 * tree-vect-loop-manip.c: Include tree-pretty-print.h and
23288 gimple-pretty-print.h.
23289 * tree-vect-loop.c: Include tree-pretty-print.h and
23290 gimple-pretty-print.h.
23291 * tree-vect-patterns.c: Include gimple-pretty-print.h.
23292 * tree-vect-slp.c: Include tree-pretty-print.h and
23293 gimple-pretty-print.h.
23294 * tree-vect-stmts.c: Include tree-pretty-print.h and
23295 gimple-pretty-print.h.
23296 * tree-vectorizer.c: Include tree-pretty-print.h.
23297 * tree-vrp.c: Include tree-pretty-print.h and
23298 gimple-pretty-print.h.
23299 * value-prof.c: Include tree-pretty-print.h and
23300 gimple-pretty-print.h.
23301 * var-tracking.c: Include tree-pretty-print.h.
23302 * Makefile.in (OBJS-common): Add tree-diagnostic.o.
23303 (tree-diagnostic.o): New dependencies.
23304 (c-objc-common.o, c-pretty-print.o, langhooks.o, tree.o,
23305 tree-inline.o, print-tree.o, stor-layout.o, tree-ssa-uninit.o,
23306 tree-ssa.o, tree-into-ssa.o, tree-ssa-ter.o, tree-ssa-coalesce.o,
23307 tree-outof-ssa.o, tree-ssa-forwprop.o, tree-ssa-phiprop.o,
23308 tree-ssa-ifcombine.o, tree-nrv.o, tree-ssa-copy.o,
23309 tree-ssa-propagate.o, tree-ssa-dom.o, tree-ssa-uncprop.o,
23310 tree-ssa-live.o, tree-ssa-copyrename.o, tree-ssa-pre.o,
23311 tree-ssa-sccvn.o, tree-vrp.o, tree-cfg.o, tree-tailcall.o,
23312 tree-ssa-sink.o, tree-if-conv.o, tree-dfa.o, tree-ssa-operands.o,
23313 tree-ssa-address.o, tree-ssa-loop-niter.o,
23314 tree-ssa-loop-ivcanon.o, tree-ssa-loop-prefetch.o, tree-predcom.o,
23315 tree-ssa-loop-ivopts.o, tree-affine.o, tree-ssa-loop-im.o,
23316 tree-ssa-math-opts.o, tree-ssa-alias.o, tree-ssa-reassoc.o,
23317 gimplify.o, tree-browser.o, tree-chrec.o, tree-scalar-evolution.o,
23318 tree-data-ref.o, sese.o, graphite-poly.o, tree-vect-loop.o,
23319 tree-vect-loop-manip.o, tree-vect-patterns.o, tree-vect-slp.o,
23320 tree-vect-stmts.o, tree-vect-data-refs.o, tree-vectorizer.o,
23321 tree-parloops.o, tree-stdarg.o, tree-object-size.o,
23322 gimple-pretty-print.o, tree-pretty-print.o, diagnostic.o,
23323 toplev.o, print-rtl.o, except.o, dwarf2out.o, cgraphunit.o,
23324 ipa-prop.o, ipa-cp.o, ipa-inline.o, ipa-pure-const.o,
23325 ipa-type-escape.o, ipa-struct-reorg.o, tree-ssa-dce.o,
23326 tree-call-cdce.o, tree-ssa-ccp.o, tree-sra.o,
23327 tree-switch-conversion.o, var-tracking.o, value-prof.o,
23328 cfgexpand.o, pretty-print.o): Update dependencies.
23329
23330 2010-05-22 Andreas Tobler <andreast@fgznet.ch>
23331
23332 * tree-ssa-structalias.c: Remove tm_p.h from include.
23333
23334 2010-05-21 Jeff Law <law@redhat.com>
23335
23336 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Fix typo.
23337
23338 2010-05-21 Jason Merrill <jason@redhat.com>
23339
23340 * tree-eh.c (cleanup_is_dead_in): New.
23341 (lower_try_finally): Don't generate a dead cleanup region.
23342 (lower_cleanup): Likewise.
23343
23344 2010-05-21 Jakub Jelinek <jakub@redhat.com>
23345
23346 PR debug/44223
23347 * haifa-sched.c (schedule_insn): When freeing INSN_REG_USE_LIST,
23348 unchain each use from the cyclic next_regno_use chain first.
23349
23350 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
23351
23352 * real: Do not include gmp.h, mpfr.h, and mpc.h.
23353 (REAL_VALUE_NEGATE, REAL_VALUE_ABS, real_arithmetic2): Remove.
23354 (real_value_negate, real_value_abs): New prototypes.
23355 (do_mpc_arg2, real_from_mpfr, mpfr_from_real): Move from here...
23356 * realmpfr.h (do_mpc_arg2, real_from_mpfr, mpfr_from_real): ...to here,
23357 new include file for interface between MPFR and REAL_VALUE_TYPE.
23358 * real.c: Include realmpfr.h.
23359 (real_arithmetic2): Remove legacy function.
23360 (real_value_negate): New.
23361 (real_value_abs): New.
23362 (mfpr_from_real, real_from_mpfr): Move from here...
23363 * realmpfr.c (mpfr_from_real, real_from_mpfr): ...to here, new file.
23364 * builtins.c: Include realmpfr.h.
23365 * fold-const.c: Include realmpfr.h.
23366 (fold_comparison): Use real_value_negate instead of REAL_VALUE_NEGATE.
23367 (fold_negate_const): Likewise.
23368 (fold_abs_const): Use real_value_abs instead of REAL_VALUE_ABS.
23369 * toplev.c: Include realmpfr.h.
23370 * simplify-rtx.c (simplify_const_unary_operation): Use real_value_abs
23371 and real_value_negate.
23372 * fixed-value.c (check_real_for_fixed_mode): Likewise.
23373 * config/arm/arm.c (neg_const_double_rtx_ok_for_fpa): Likewise.
23374 (vfp3_const_double_index): Likewise.
23375 (arm_print_operand): Likewise.
23376 * Makefile.in: Update dependencies.
23377
23378 2010-05-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
23379
23380 * config/s390/s390.c (override_options): Increase the default
23381 of max-completely-peel-times.
23382
23383 2010-05-21 Julian Brown <julian@codesourcery.com>
23384 Mark Mitchell <mark@codesourcery.com>
23385
23386 * config/arm/arm.c (arm_function_ok_for_sibcall): Only forbid
23387 sibling calls for Thumb-1.
23388 * config/arm/arm.h (USE_RETURN_INSN): Enable for Thumb-2.
23389 * config/arm/arm.md (*call_symbol, *call_value_symbol): Use for
23390 Thumb-2.
23391 (*call_insn, *call_value_insn): Don't use for Thumb-2.
23392 (sibcall, sibcall_value, *sibcall_insn, *sibcall_value_insn): Use
23393 for Thumb-2.
23394 (return): New expander.
23395 (*arm_return): New name for ARM return insn.
23396 * config/arm/thumb2.md (*thumb2_return): New insn pattern.
23397
23398 2010-05-19 Joel Sherrill <joel.sherrill@oarcorp.com>
23399
23400 * config.gcc (sparc64-*-rtems*): New target.
23401
23402 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
23403
23404 * tree.c (build_function_decl_skip_args): Fix grammar.
23405 (build_function_type_list_1): Fix typos, adjust formatting.
23406
23407 2010-05-21 Steven Bosscher <steven@gcc.gnu.org>
23408
23409 * tree.h: Include real.h and fixed-value.h as basic datatypes.
23410 * dfp.c, convert.c, reload1.c, reginfo.c, tree-flow.h,
23411 tree-ssa-threadedge.c, tree-ssanames.c, tree-loop-linear.c,
23412 tree-into-ssa.c, tree-vect-generic.c, tree-ssa-structalias.c,
23413 tree-ssa-loop-im.c, tree-dump.c, tree-complex.c, tree-ssa-uninit.c,
23414 genrecog.c, tree-ssa-threadupdate.c, tree-ssa-loop-niter.c,
23415 tree-pretty-print.c, tree-loop-distribution.c,
23416 tree-ssa-loop-unswitch.c, c-lex.c, optabs.c, postreload-gcse.c,
23417 tree-ssa-loop-manip.c, postreload.c, tree-ssa-loop-ch.c,
23418 tree-tailcall.c, tree.c, reload.c, tree-scalar-evolution.c, rtlanal.c,
23419 tree-phinodes.c, builtins.c, final.c, genoutput.c, fold-const.c,
23420 tree-ssa-dse.c, genautomata.c, tree-ssa-uncprop.c, toplev.c,
23421 tree-chrec.c, genemit.c, c-cppbuiltin.c, tree-ssa-sccvn.c,
23422 tree-ssa-ccp.c, tree-ssa-loop-ivopts.c, mode-switching.c,
23423 tree-call-cdce.c, cse.c, genpeep.c, tree-ssa-math-opts.c,
23424 tree-ssa-dom.c, tree-nrv.c, tree-ssa-propagate.c, tree-ssa-alias.c,
23425 tree-ssa-sink.c, jump.c, ifcvt.c, dwarf2out.c, expr.c, genattrtab.c,
23426 genconditions.c, tree-ssa-loop-ivcanon.c, tree-ssa-loop.c,
23427 tree-parloops.c, recog.c, tree-ssa-address.c, lcm.c, tree-eh.c,
23428 gimple-pretty-print.c, c-pretty-print.c, print-rtl.c, gcse.c,
23429 tree-if-conv.c, tree-data-ref.c, tree-affine.c, gimplify.c,
23430 tree-ssa-phiopt.c, implicit-zee.c, expmed.c, tree-dfa.c, emit-rtl.c,
23431 store-motion.c, cselib.c, tree-cfgcleanup.c, simplify-rtx.c,
23432 tree-ssa-pre.c, genpreds.c, tree-mudflap.c, print-tree.c,
23433 tree-ssa-copy.c, tree-ssa-forwprop.c, tree-ssa-dce.c, varasm.c,
23434 tree-nested.c, tree-ssa.c, tree-ssa-loop-prefetch.c, rtl.c,
23435 tree-inline.c, integrate.c, tree-optimize.c, tree-ssa-phiprop.c,
23436 fixed-value.c, combine.c, tree-profile.c, c-common.c, sched-vis.c,
23437 tree-cfg.c, passes.c, tree-ssa-reassoc.c, config/alpha/alpha.c,
23438 config/frv/frv.c, config/s390/s390.c, config/m32c/m32c.c,
23439 config/spu/spu.c, config/sparc/sparc.c, config/mep/mep.c,
23440 config/m32r/m32r.c, config/rx/rx.c, config/i386/i386.c,
23441 config/sh/sh.c, config/pdp11/pdp11.c, config/avr/avr.c,
23442 config/crx/crx.c, config/xtensa/xtensa.c, config/stormy16/stormy16.c,
23443 config/fr30/fr30.c, config/lm32/lm32.c, config/moxie/moxie.c,
23444 config/m68hc11/m68hc11.c, config/cris/cris.c, config/iq2000/iq2000.c,
23445 config/mn10300/mn10300.c, config/ia64/ia64.c, config/m68k/m68k.c,
23446 config/rs6000/rs6000.c, config/picochip/picochip.c, config/darwin.c,
23447 config/arc/arc.c, config/mcore/mcore.c, config/score/score3.c,
23448 config/score/score7.c, config/score/score.c, config/arm/arm.c,
23449 config/pa/pa.c, config/mips/mips.c, config/vax/vax.c,
23450 config/h8300/h8300.c, config/v850/v850.c, config/mmix/mmix.c,
23451 config/bfin/bfin.c: Clean up redundant includes.
23452 * Makefile.in: Update accordingly.
23453
23454 2010-05-21 Nathan Froyd <froydnj@codesourcery.com>
23455
23456 PR middle-end/44204
23457 * builtins.c (fold_call_stmt): Pass &error_mark_node if the call
23458 statement has no arguments.
23459
23460 2010-05-21 Kai Tietz <kai.tietz@onevision.com>
23461
23462 PR/44139
23463 * varasm.c (emutls_decl): Merge attributes to new decl.
23464
23465 2010-05-21 Eric Botcazou <ebotcazou@adacore.com>
23466
23467 PR middle-end/44101
23468 * gimplify.c (gimplify_init_constructor): Build a VIEW_CONVERT_EXPR
23469 around the uniquized constructor if its type requires a conversion.
23470
23471 2010-05-21 Jakub Jelinek <jakub@redhat.com>
23472
23473 PR debug/44205
23474 * tree-cfgcleanup.c (tree_forwarder_block_p): Return false if
23475 at -O0 goto_locus of any of the incoming edges differs from
23476 goto_locus of outgoing edge, or gimple_location of any of the
23477 labels differs.
23478
23479 2009-09-14 Vladimir Makarov <vmakarov@redhat.com>
23480
23481 * ira.c (ira_non_ordered_class_hard_regs): Define.
23482 (setup_class_hard_regs): Initialize ira_non_ordered_class_hard_regs.
23483 * ira-int.h (ira_non_ordered_class_hard_regs): Declare.
23484 * ira-costs.c (ira_tune_allocno_costs_and_cover_classes): Increase
23485 cost of unaligned hard regs when allocating multi-reg pseudos.
23486
23487 2010-05-20 Richard Sandiford <rdsandiford@googlemail.com>
23488
23489 * config.gcc (mips*-sde-elf*): Don't use sdemtk.opt.
23490 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Define __mips_no_float
23491 for TARGET_NO_FLOAT.
23492 * config/mips/mips.c (mips_file_start): Expand conditional expression
23493 into "if" statements. Use .gnu_attribute 4,0 for TARGET_NO_FLOAT.
23494 (mips_override_options): Move -mno-float override -msoft-float and
23495 -mhard-float.
23496 * config/mips/mips.opt (mno-float): Move from sdemtk.opt, but add
23497 Condition(TARGET_SUPPORTS_NO_FLOAT).
23498 * config/mips/sdemtk.h (TARGET_OS_CPP_BUILTINS): Don't set
23499 __mips_no_float here.
23500 (SUBTARGET_OVERRIDE_OPTIONS): Delete.
23501 (TARGET_SUPPORTS_NO_FLOAT): Define.
23502 * config/mips/sdemtk.opt: Delete.
23503
23504 2010-05-20 Segher Boessenkool <segher@kernel.crashing.org>
23505
23506 * ipa-prop.c (compute_complex_ancestor_jump_func): Bail out if !cond.
23507
23508 2010-05-20 Uros Bizjak <ubizjak@gmail.com>
23509
23510 PR target/43733
23511 * configure.ac (gcc_cv_as_ix86_sahf): Switch to 64bit mode.
23512 * configure: Regenerate.
23513 * config.in: Regenerate.
23514 * config/i386/i386.md (x86_sahf_1): Conditionally output 0x9e
23515 instead of sahf only for 64bit targets.
23516
23517 2010-05-20 Jakub Jelinek <jakub@redhat.com>
23518
23519 PR debug/44178
23520 * haifa-sched.c (initiate_bb_reg_pressure_info): Do not call
23521 setup_ref_regs for DEBUG_INSNs.
23522
23523 2010-05-20 Jan Hubicka <jh@suse.cz>
23524
23525 PR middle-end/44197
23526 * varpool.c (varpool_remove_node): Handle in-varpool aliases.
23527
23528 2010-05-20 Kenneth Zadeck <zadeck@naturalbridge.com>
23529
23530 PR bootstrap/43870
23531 * df-scan.c (df_ref_compare): Stabilize sort.
23532
23533 2010-05-20 Jakub Jelinek <jakub@redhat.com>
23534
23535 * dwarf2out.c (new_loc_descr_op_bit_piece): Add offset
23536 argument. Don't use DW_OP_piece if offset is non-zero,
23537 put offset into second DW_OP_bit_piece argument.
23538 (dw_sra_loc_expr): Adjust callers. For memory expressions
23539 compute offset.
23540
23541 2010-05-20 Hans-Peter Nilsson <hp@axis.com>
23542
23543 PR target/44202
23544 * config/cris/cris.md ("*addsi3_v32"): Correct "cc"
23545 settings for 16-bit-constant "addo" alternative.
23546
23547 2010-05-19 James E. Wilson <wilson@codesourcery.com>
23548
23549 * config/mips/mips-dsp.md (add<DSPV:mode>3,
23550 mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>): Add ISA_HAS_DSP condition.
23551
23552 PR target/43764
23553 * mips.c (mips_call_expr_from_insn): New arg second_call. Set it.
23554 (mips_annotate_pic_calls): Pass new arg to mips_call_expr_from_insn.
23555 Use it.
23556
23557 2010-05-19 Joseph Myers <joseph@codesourcery.com>
23558
23559 * diagnostic.c (FLOAT, FFS): Don't undefine.
23560 * passes.c, pretty-print.c, rtl-error.c, toplev.c: Likewise.
23561 * cse.c, regmove.c: Remove comments about stdio.h and rtl.h
23562 include ordering.
23563
23564 2010-05-19 Richard Sandiford <rdsandiford@googlemail.com>
23565
23566 * combine.c (propagate_for_debug): Call make_compound_operation
23567 on the source value.
23568 (try_combine): When implementing a split chosen by find_split_point,
23569 either copy i2src or set it to null. Assert that i2src is not null
23570 before substituting into CALL_INSN_FUNCTION_USAGE.
23571
23572 2010-05-19 Anatoly Sokolov <aesok@post.ru>
23573
23574 * double-int.h (double_int_ior): New function.
23575 * tree.h (build_int_cst_wide_type): Remove.
23576 * tree.c (build_int_cst_wide_type): Remove.
23577 * fold-const.c (native_interpret_int): Use double_int_to_tree instead
23578 of build_int_cst_wide_type.
23579 * stor-layout.c (set_sizetype): (Ditto.).
23580 * dojump.c (do_jump): Use build_int_cstu instead of
23581 build_int_cst_wide_type.
23582
23583 2010-05-19 Eric Botcazou <ebotcazou@adacore.com>
23584
23585 * langhooks.h (struct lang_hooks): Add new field deep_unsharing.
23586 * langhooks-def.h (LANG_HOOKS_DEEP_UNSHARING): New macro.
23587 (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_DEEP_UNSHARING.
23588 * gimplify.c (mostly_copy_tree_r): Copy trees under SAVE_EXPR and
23589 TARGET_EXPR nodes, but only once, if instructed to do so. Do not
23590 propagate the 'data' argument to copy_tree_r.
23591 (copy_if_shared_r): Remove bogus ATTRIBUTE_UNUSED marker.
23592 Propagate 'data' argument to walk_tree.
23593 (copy_if_shared): New function.
23594 (unmark_visited_r): Remove bogus ATTRIBUTE_UNUSED marker.
23595 (unmark_visited): New function.
23596 (unshare_body): Call copy_if_shared instead of doing it manually.
23597 (unvisit_body): Call unmark_visited instead of doing it manually.
23598
23599 2010-05-19 Nathan Froyd <froydnj@codesourcery.com>
23600
23601 * hooks.h (hook_tree_tree_tree_bool_null): Rename to...
23602 (hook_tree_tree_int_treep_bool_null): ...this. Update signature.
23603 * hooks.c: Likewise.
23604 * target-def.h (TARGET_FOLD_BUILTIN): Define to
23605 hook_tree_tree_int_treep_bool_null.
23606 * target.h (struct gcc_target): Update signature of fold_builtin
23607 field.
23608 * doc/tm.texi (TARGET_FOLD_BUILTIN): Update description and signature.
23609 * builtins.c (fold_call_expr): Pass call_expr_nargs and CALL_EXPR_ARGP
23610 instead of the call expression.
23611 (fold_builtin_call_array): Pass n and argarray directly.
23612 (fold_call_stmt): Pass nargs and gimple_call_arg_ptr instead of
23613 consing a list.
23614 * config/alpha/alpha.c (alpha_fold_builtin): Update signature. Lift
23615 MAX_ARGS check out of the loop. Delete declaration of `arity', declare
23616 `i' and use it in place of `arity'.
23617 * config/sparc/sparc.c (sparc_fold_builtin): Update signature.
23618 Dereference `args' directly.
23619 * config/xtensa/xtensa (xtensa_fold_builtin): Likewise.
23620
23621 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23622
23623 * doc/sourcebuild.texi (Effective-Target Keywords): Document
23624 3dnow, sse3, sse2.
23625 (Directives): Document optional dg-require-effective-target
23626 selector.
23627
23628 2010-05-19 Richard Guenther <rguenther@suse.de>
23629
23630 PR lto/44196
23631 * tree.c (find_decls_types_r): Walk BLOCKs and its vars.
23632
23633 2010-05-19 Richard Guenther <rguenther@suse.de>
23634
23635 * doc/invoke.texi (-fwhopr): Document new optional jobs argument.
23636 * common.opt (fwhopr=): New.
23637 * opts.c (common_handle_option): Handle OPT_fwhopr.
23638 * gcc.c (LINK_COMMAND_SPEC): Pass fwhopr*.
23639 * collect2.c (main): Match -fwhopr*.
23640 * lto-wrapper.c (run_gcc): Handle jobs argument of -fwhopr.
23641 Execute ltrans stage in parallel when jobs is bigger than 1.
23642
23643 2010-05-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23644
23645 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32 to
23646 pentiumpro on Solaris 8/x86 with Sun as.
23647 * configure.ac (gcc_cv_as_hidden): Check for Solaris 9/x86 as
23648 hidden alias bug.
23649 (gcc_cv_as_ix86_quad): Check for .quad directive.
23650 * configure: Regenerate.
23651 * config.in: Regenerate.
23652 * config/i386/sol2.h (ASM_QUAD): Change guard to !HAVE_AS_IX86_QUAD.
23653
23654 2010-05-19 Martin Jambor <mjambor@suse.cz>
23655
23656 * ipa-prop.c (ipa_print_node_jump_functions): Print jump functions
23657 also for indirect edges. Actual printing moved...
23658 (ipa_print_node_jump_functions_for_edge): ...here.
23659 (ipa_compute_jump_functions): Renamed to
23660 ipa_compute_jump_functions_for_edge and made static.
23661 (ipa_compute_jump_functions): New function.
23662 (make_edge_direct_to_target): Check if the number of arguments on
23663 the newly direct edge is the same as the number of parametrs of
23664 the callee.
23665 * ipa-cp.c (ipcp_init_stage): Most functionality moved to new
23666 ipa_compute_jump_functions. Call ipa_analyze_params_uses.
23667 * ipa-inline.c (inline_indirect_intraprocedural_analysis): Call
23668 analysis functions unconditionally, call the new
23669 ipa_analyze_params_uses on the node instead of every edge.
23670
23671 2010-05-19 Christian Borntraeger <borntraeger@de.ibm.com>
23672
23673 * tree-ssa-loop-prefetch.c (mem_ref_group, ar_data): Change step
23674 to tree.
23675 (dump_mem_ref): Adopt debug code to handle a tree as step. This
23676 also checks for a constant int vs. non-constant but
23677 loop-invariant steps.
23678 (find_or_create_group): Change the sort algorithm to only consider
23679 steps that are constant ints.
23680 (idx_analyze_ref): Adopt code to handle a tree instead of a
23681 HOST_WIDE_INT for step.
23682 (gather_memory_references_ref): Handle tree instead of int and be
23683 prepared to see a NULL_TREE.
23684 (prune_ref_by_self_reuse, prune_ref_by_group_reuse): Do not prune
23685 prefetches if the step cannot be calculated at compile time.
23686 (issue_prefetch_ref): Issue prefetches for non-constant but
23687 loop-invariant steps.
23688
23689 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
23690
23691 Revert:
23692 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
23693
23694 * tree.h (build_call_list): Remove.
23695 * tree.c (build_call_list): Remove.
23696
23697 2010-05-18 Nathan Froyd <froydnj@codesourcery.com>
23698
23699 * tree.h (build_call_list): Remove.
23700 * tree.c (build_call_list): Remove.
23701
23702 2010-05-18 Jan Hubicka <jh@suse.cz>
23703
23704 * ipa-reference.c (propagate): Walk all nodes in the cleanup stage.
23705
23706 2010-05-18 Vladimir Makarov <vmakarov@redhat.com>
23707
23708 PR rtl-optimization/43332
23709 * haifa-sched.c (setup_insn_max_reg_pressure): Check barrier.
23710
23711 2010-05-18 Anatoly Sokolov <aesok@post.ru>
23712
23713 * tree.h (build_int_cstu): Implement as static inline.
23714 * tree.c (build_int_cstu): Remove function.
23715 (double_int_to_tree, double_int_fits_to_tree_p): Handle size types as
23716 sign extended.
23717
23718 2010-05-18 Richard Guenther <rguenther@suse.de>
23719
23720 PR lto/44143
23721 * lto-wrapper.c (verbose): New variable. Initialize from -v.
23722 (debug): Initialize from -save-temps.
23723 (collect_execute): Print command-line when verbose.
23724 (run_gcc): Always use COLLECT_GCC_OPTIONS. Use fork_execute
23725 for ltrans invocation. Produce -dumpbase flag again.
23726 (process_args): Remove.
23727 (main): Simplify.
23728 * collect2.c (maybe_run_lto_and_relink): Only pass object
23729 files to lto-wrapper.
23730 * gcc.c (LINK_COMMAND_SPEC): Likewise.
23731
23732 2010-05-18 Jan Hubicka <jh@suse.cz>
23733
23734 * opts.c (decode_options): Do not disable whopr at ipa_cp.
23735 * ipa-prop.c (ipa_detect_param_modifications): Walk PHI nodes too.
23736
23737 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
23738
23739 PR lto/44184
23740 * lto-streamer-out.c (output_gimple_stmt): Output number of labels
23741 in a GIMPLE_ASM.
23742 * lto-streamer-in.c (input_gimple_stmt): Read number of labels
23743 in a GIMPLE_ASM.
23744
23745 2010-05-18 Jakub Jelinek <jakub@redhat.com>
23746
23747 PR debug/41371
23748 * var-tracking.c (find_loc_in_1pdv): Add a few checks from
23749 rtx_equal_p inline.
23750
23751 2010-05-18 Steven Bosscher <steven@gcc.gnu.org>
23752
23753 * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Add
23754 lto-macho as lto_binary_reader.
23755
23756 * darwin.c (darwin_asm_named_section): Do not add assembler comment
23757 after .section directive; just print it before the directive instead.
23758
23759 2010-05-17 Jan Hubicka <jh@suse.cz>
23760
23761 * cgraph.c (cgraph_create_virtual_clone): Only check
23762 versionable_function_p when not in wpa and checking is enabled.
23763 * cgraphunit.c (cgraph_materialize_all_clones): Stabilize after
23764 there are no more functions to materialize.
23765
23766 2010-05-17 Jan Hubicka <jh@suse.cz>
23767
23768 * cgraph.h (struct ipa_replace_map): Add parm_num parameter.
23769 * lto-cgraph.c (output_cgraph_opt_summary, input_cgraph_opt_summary):
23770 New functions.
23771 (output_cgraph): Call output_cgraph_opt_summary.
23772 (input_cgrpah): Call input_cgraph_opt_summary.
23773 (output_cgraph_opt_summary_p, output_node_opt_summary,
23774 input_node_opt_summary, input_cgraph_opt_section): New functions.
23775 * lto-section-in.c (lto_section_name): Add cgraphopt.
23776 * tree-inline.c (tree_function_versioning): Handle parm_num.
23777 * lto-streamer.c (lto_get_section_name): Handle cgraphopt.
23778 * lto-streamer.h (lto_section_type): Add LTO_section_cgraph_opt_sum.
23779
23780 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
23781
23782 * doc/invoke.texi: Update documentation for min-insn-to-prefetch-ratio.
23783 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Also apply
23784 the insn to prefetch ratio heuristic to loops with known trip count.
23785
23786 2010-05-17 Changpeng Fang <changpeng.fang@amd.com>
23787
23788 * tree-ssa-loop-prefetch.c (PREFETCH_MOD_TO_UNROLL_FACTOR_RATIO): New.
23789 (schedule_prefetches): Do not generate a prefetch if the unroll factor
23790 is far from what is required by the prefetch.
23791
23792 2010-05-17 Jan Hubicka <jh@suse.cz>
23793
23794 * ipa-cp.c (ipcp_update_callgraph): Use ipa_is_param_used.
23795 (ipcp_estimate_growth): Likewise.
23796 (ipcp_const_param_count): Likewise.
23797 (ipcp_insert_stage): Likewise.
23798 * ipa-prop.c (visit_load_for_mod_analysis): New function.
23799 (visit_store_addr_for_mod_analysis): Set used flag.
23800 (ipa_detect_param_modifications): Set used flag for SSE params;
23801 update use of walk_stmt_load_store_addr_ops.
23802 (ipa_print_node_params): Print used flag.
23803 (ipa_write_node_info): Stream used flag.
23804 (ipa_read_node_info): Likewise.
23805 * ipa-prop.h (struct ipa_param_descriptor): Add used field.
23806 (ipa_is_param_used): New function.
23807 (lto_ipa_fixup_call_notes): Remove unused declaration.
23808
23809 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23810
23811 PR target/44074
23812 * configure.ac (HAVE_AS_IX86_REP_LOCK_PREFIX): New test.
23813 * configure: Regenerate.
23814 * config.in: Regenerate.
23815 * config/i386/i386.c (print_operand) <case ;>: Also print ";" if
23816 !HAVE_AS_IX86_REP_LOCK_PREFIX.
23817 Don't emit whitespace.
23818 * config/i386/i386.md (*rep_movdi_rex64): Use {%;} after rep.
23819 (*rep_movsi): Likewise.
23820 (*rep_movsi_rex64): Likewise.
23821 (*rep_movqi): Likewise.
23822 (*rep_movqi_rex64): Likewise.
23823 (*rep_stosdi_rex64): Likewise.
23824 (*rep_stossi): Likewise.
23825 (*rep_stossi_rex64): Likewise.
23826 (*rep_stosqi): Likewise.
23827 (*rep_stosqi_rex64): Likewise.
23828 (*cmpstrnqi_nz_1): Use {%;} after repz.
23829 (*cmpstrnqi_nz_rex_1): Likewise.
23830 (*cmpstrnqi_1): Likewise.
23831 (*cmpstrnqi_rex_1): Likewise.
23832 (*strlenqi_1): Use {%;} after repnz.
23833 (*strlenqi_rex_1): Likewise.
23834 * config/i386/sync.md (memory_barrier_nosse): Replace {%;| } by {%;} .
23835 (*sync_compare_and_swap<mode>): Likewise.
23836 (sync_double_compare_and_swap<mode>): Likewise.
23837 (*sync_double_compare_and_swapdi_pic): Likewise.
23838 (sync_old_add<mode>): Likewise.
23839 (sync_add<mode>): Likewise.
23840 (sync_sub<mode>): Likewise.
23841 (sync_<code><mode>): Likewise.
23842
23843 2010-05-17 Martin Jambor <mjambor@suse.cz>
23844
23845 * cgraph.h (cgraph_indirect_call_info): New fields anc_offset,
23846 otr_token and polymorphic.
23847 * cgraph.c (cgraph_create_indirect_edge): Inilialize the above fields.
23848 (cgraph_clone_edge): Copy the above fields.
23849 * tree.c (get_binfo_at_offset): New function.
23850 * tree.h (get_binfo_at_offset): Declare.
23851 * ipa-prop.h (enum jump_func_type): Added known_type jump function
23852 type, reordered items, updated comments.
23853 (union jump_func_value): Added base_type field, reordered fields.
23854 (enum ipa_lattice_type): Moved down in the file.
23855 (struct ipa_param_descriptor): New field polymorphic.
23856 (ipa_is_param_polymorphic): New function.
23857 * ipa-prop.c: Include gimple.h and gimple-fold.h.
23858 (ipa_print_node_jump_functions): Print known type jump functions.
23859 (compute_complex_pass_through): Renamed to...
23860 (compute_complex_assign_jump_func): this.
23861 (compute_complex_ancestor_jump_func): New function.
23862 (compute_known_type_jump_func): Likewise.
23863 (compute_scalar_jump_functions): Create known type and complex ancestor
23864 jump functions.
23865 (ipa_note_param_call): New parameter polymorphic, set the corresponding
23866 flag in the call note accordingly.
23867 (ipa_analyze_call_uses): Renamed to...
23868 (ipa_analyze_indirect_call_uses): this. New parameter target, define
23869 variable var only in the block where it is used.
23870 (ipa_analyze_virtual_call_uses): New function.
23871 (ipa_analyze_call_uses): Likewise.
23872 (combine_known_type_and_ancestor_jfs): Likewise.
23873 (update_jump_functions_after_inlining): Implemented handling of a
23874 number of new jump function types combination.
23875 (print_edge_addition_message): Removed.
23876 (make_edge_direct_to_target): New function.
23877 (try_make_edge_direct_simple_call): Likewise.
23878 (try_make_edge_direct_virtual_call): Likewise.
23879 (update_call_notes_after_inlining): Renamed to...
23880 (update_indirect_edges_after_inlining): this. Moved edge creation for
23881 indirect calls to try_make_edge_direct_simple_call, also calls
23882 try_make_edge_direct_virtual_call for virtual calls.
23883 (ipa_print_node_params): Changed the header message.
23884 (ipa_write_jump_function): Stream also known type jump functions.
23885 (ipa_read_jump_function): Likewise.
23886 (ipa_write_indirect_edge_info): Stream new fields in
23887 cgraph_indirect_call_info.
23888 (ipa_read_indirect_edge_info): Likewise.
23889 * Makefile.in (ipa-prop.o): Add dependency to GIMPLE_H and
23890 GIMPLE_FOLD_H.
23891
23892 2010-05-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23893
23894 * config/i386/sol2.h (TARGET_SUN_TLS): Remove duplicate definition.
23895
23896 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
23897
23898 * tree.h (CALL_EXPR_ARGS): Delete.
23899 (call_expr_arglist): Delete.
23900 * tree.c (call_expr_arglist): Delete.
23901 * builtins.c (fold_call_expr): Pass the whole CALL_EXPR to
23902 targetm.fold_builtin.
23903 * config/alpha/alpha.c (alpha_fold_builtin): Rename arglist parameter.
23904 Rewrite iteration to work on call_expr_nargs rather than TREE_CHAIN.
23905 * config/picochip/picochip.c (picochip_expand_builtin_2op): Rename
23906 arglist parameter. Use CALL_EXPR_ARG.
23907 (picochip_expand_builtin_3op): Likewise.
23908 (picochip_expand_builtin_2opvoid): Likewise.
23909 (picochip_expand_array_get): Likewise.
23910 (picochip_expand_array_put): Likewise.
23911 (picochip_expand_array_testport): Likewise.
23912 (picochip_expand_builtin): Don't call CALL_EXPR_ARGS. Pass exp
23913 rather than arglist.
23914 * config/rx/rx.c (rx_expand_builtin): Call call_expr_nargs instead of
23915 CALL_EXPR_ARGS.
23916 * config/sparc/sparc.c (sparc_fold_builtin): Use CALL_EXPR_ARG rather
23917 than TREE_VALUE and TREE_CHAIN.
23918 * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
23919 * doc/tm.texi (TARGET_FOLD_BUILTIN): Pass CALL_EXPR tree instead of
23920 the arglist.
23921
23922 2010-05-17 Jakub Jelinek <jakub@redhat.com>
23923
23924 PR bootstrap/42347
23925 * cfglayout.c (fixup_reorder_chain): Allow returnjump_p
23926 to have no fallthru edge.
23927
23928 PR middle-end/44102
23929 * cfgcleanup.c (try_optimize_cfg): When removing trivially empty
23930 bb with no successors, move footer whenever in IR_RTL_CFGLAYOUT
23931 mode, not just when CLEANUP_CFGLAYOUT, and when in IR_RTL_CFGRTL
23932 add BARRIER after previous bb if needed.
23933
23934 2010-05-17 Nathan Froyd <froydnj@codesourcery.com>
23935
23936 * tree.c (build_function_type_list_1): Remove bogus assert condition.
23937
23938 2010-05-17 Alan Modra <amodra@gmail.com>
23939
23940 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Delete
23941 unnecessary prototype. Replace copy_r12 and copy_r11 flag params
23942 with copy_reg rtx param.
23943 (rs6000_emit_prologue): Update rs6000_emit_allocate_stack calls.
23944 Correct cases where code for ABI_V4 did not initialise the reg
23945 used to access frame. Also leave frame_reg_rtx as sp for large
23946 frames that save no regs.
23947
23948 2010-05-17 Martin Jambor <mjambor@suse.cz>
23949
23950 PR middle-end/44133
23951 * tree-sra.c (create_access_replacement): New parameter rename, mark
23952 the replaement for renaming only when it is true.
23953 (get_access_replacement): Pass true in the rename parameter of
23954 create_access_replacement.
23955 (get_unrenamed_access_replacement): New function.
23956 (replace_uses_with_default_def_ssa_name): New parameter racc, get the
23957 replacement declaration from it.
23958
23959 2010-05-17 Bernd Schmidt <bernds@codesourcery.com>
23960
23961 * function.c (try_fit_stack_local, add_frame_space): New static
23962 functions.
23963 (assign_stack_local_1): Use them. Look for opportunities to use
23964 space previously wasted on alignment.
23965 * function.h (struct frame_space): New.
23966 (struct rtl_data): Add FRAME_SPACE_LIST member.
23967 * reload1.c (something_was_spilled): New static variable.
23968 (alter_reg): Set it.
23969 (reload): Test it in addition to testing if the frame size changed.
23970
23971 2010-05-17 Christian Borntraeger <borntraeger@de.ibm.com>
23972
23973 * config/s390/s390.c: Define sane prefetch settings and activate
23974 flag_prefetch_loop_arrays on -O3.
23975 * config/s390/s390.h: Declare that read can use write prefetch.
23976
23977 2010-05-17 Jakub Jelinek <jakub@redhat.com>
23978
23979 * lto-streamer-out.c (lto_output): Fix --enable-checking=release
23980 build.
23981
23982 2010-05-16 Jan Hubicka <jh@suse.cz>
23983
23984 * ipa-cp.c (ipcp_versionable_function_p): Walk cgraph edges instead of
23985 function body; do not check stdarg field of struct function.
23986
23987 2010-05-16 Jan Hubicka <jh@suse.cz>
23988
23989 * cgraph.c (dump_cgraph_node): Dump versionable flag.
23990 * cgraph.h (cgraph_local_info): Add versionable flag.
23991 * ipa-cp.c (ipcp_analyze_node): Set versionable flag.
23992 (ipcp_versionable_function_p): Use it.
23993 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
23994 versionable flag.
23995
23996 2010-05-16 Jan Hubicka <jh@suse.cz>
23997
23998 * cgraph.c (cgraph_clone_node): Take decl argument and insert
23999 clone into hash when it is different from orig.
24000 (cgraph_create_virtual_clone): Update use of cgraph_clone_node.
24001 * cgraph.h (cgraph_clone_node): Update prototype.
24002 * lto-cgrpah.c (lto_cgraph_encoder_new): Create body map.
24003 (lto_cgraph_encoder_delete): Delete body map.
24004 (lto_cgraph_encoder_size): Move to header.
24005 (lto_cgraph_encoder_encode_body_p,
24006 lto_set_cgraph_encoder_encode_body): New.
24007 (lto_output_node): Do not take written_decls argument; output clone_of
24008 pointer.
24009 (add_node_to): Add include_body_argument; call
24010 lto_set_cgraph_encoder_encode_body on master of the clone.
24011 (add_references): Update use of add_node_to.
24012 (compute_ltrans_boundary): Likewise.
24013 (output_cgraph): Do not create written_decls bitmap.
24014 (input_node): Take nodes argument; stream in clone_of correctly.
24015 (input_cgraph_1): Update use of input_node.
24016 * lto-streamer-out.c (lto_output): Use encoder info to decide
24017 what bodies to output.
24018 * ipa-inline.c (cgraph_clone_inlined_nodes,
24019 cgraph_decide_recursive_inlining): Update call of cgraph_clone_node.
24020 * lto-streamer.h (lto_cgraph_encoder_d): Add body.
24021 (lto_cgraph_encoder_size): Define here.
24022 (lto_cgraph_encoder_encode_body_p, lto_varpool_encoder_encode_body_p):
24023 Declare.
24024
24025 2010-05-16 Richard Guenther <rguenther@suse.de>
24026
24027 * doc/invoke.texi (-fipa-struct-reorg): Do not mention
24028 -fipa-type-escape.
24029 * ipa-type-escape.c (gate_type_escape_vars): Run when
24030 -fipa-struct-reorg runs.
24031 * opts.c (decode_options): Do not unset flag_ipa_type_escape.
24032 * common.opt (fipa-type-escape): Remove.
24033
24034 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
24035
24036 * opts.c (handle_option): Call into LTO streamer only if ENABLE_LTO.
24037 (decode_options): Likewise.
24038 * Makefile.in (opts.o): Add dependency on LTO_STREAMER_H.
24039
24040 2010-05-16 Jan Hubicka <jh@suse.cz>
24041
24042 * ipa.c (function_and_variable_visibility): Also bring local all
24043 aliases.
24044
24045 2010-05-16 Richard Guenther <rguenther@suse.de>
24046
24047 * alias.c (nonoverlapping_memrefs_p): Remove use of
24048 IPA type-escape information.
24049
24050 2010-05-16 Joseph Myers <joseph@codesourcery.com>
24051
24052 * c-common.c (c_common_reswords): Add _Static_assert for C.
24053 * c-parser.c (c_token_starts_declaration,
24054 c_parser_next_token_starts_declaration,
24055 c_parser_static_assert_declaration_no_semi,
24056 c_parser_static_assert_declaration): New.
24057 (c_parser_declaration_or_fndef): Add parameter static_assert_ok.
24058 Handle static assertions if static_assert_ok.
24059 (c_parser_external_declaration, c_parser_declaration_or_fndef,
24060 c_parser_compound_statement_nostart, c_parser_label,
24061 c_parser_for_statement, c_parser_objc_methodprotolist,
24062 c_parser_omp_for_loop): All callers of
24063 c_parser_declaration_or_fndef changed.
24064 (c_parser_struct_declaration): Handle static assertions.
24065 (c_parser_compound_statement_nostart): Use
24066 c_parser_next_token_starts_declaration and
24067 c_token_starts_declaration to detect start of declarations.
24068 (c_parser_label, c_parser_for_statement, c_parser_omp_for_loop):
24069 Likewise.
24070
24071 2010-05-16 Anatoly Sokolov <aesok@post.ru>
24072
24073 * config/mmix/mmix.h (FUNCTION_VALUE, FUNCTION_OUTGOING_VALUE,
24074 LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P): Remove macros.
24075 * config/mmix/mmix.c (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
24076 TARGET_FUNCTION_VALUE_REGNO_P): Define.
24077 (mmix_function_outgoing_value): Rename to...
24078 (mmix_function_value): ...this. Make static. Add 'outgoing' argument.
24079 (mmix_function_value_regno_p): Make static.
24080 (mmix_libcall_value): New function.
24081 * config/mmix/mmix-protos.h (mmix_function_outgoing_value,
24082 mmix_function_value_regno_p): Remove declaration.
24083
24084 2010-05-16 Eric Botcazou <ebotcazou@adacore.com>
24085
24086 * tree.c (build_common_builtin_nodes): Always clear TREE_NOTHROW on
24087 BUILT_IN_ALLOCA if stack checking is enabled.
24088
24089 2010-05-16 Richard Guenther <rguenther@suse.de>
24090
24091 * var-tracking.c (vars_copy_1): Inline ...
24092 (vars_copy): ... here. Use FOR_EACH_HTAB_ELEMENT.
24093 (variable_union): Use FOR_EACH_HTAB_ELEMENT. Merge asserts.
24094 (variable_merge_over_cur): Adjust. Merge asserts.
24095 (variable_merge_over_src): Likewise.
24096 (dataflow_set_merge): Use FOR_EACH_HTAB_ELEMENT.
24097 (variable_post_merge_new_vals): Merge asserts.
24098 (variable_post_merge_perm_vals): Likewise.
24099 (find_mem_expr_in_1pdv): Likewise.
24100 (dataflow_set_different_value): Remove.
24101 (onepart_variable_different_p): Merge asserts.
24102 (variable_different_p): Likewise.
24103 (dataflow_set_different_1): Inline ...
24104 (dataflow_set_different): ... here. Use FOR_EACH_HTAB_ELEMENT.
24105 (emit_notes_for_differences_1): Merge asserts.
24106
24107 2010-05-16 Richard Guenther <rguenther@suse.de>
24108
24109 * lto-symtab.c (lto_symtab_entry_hash): Use IDENTIFIER_HASH_VALUE.
24110 * optabs.c (libfunc_decl_hash): Likewise.
24111 * varasm.c (emutls_decl): Likewise.
24112
24113 2010-05-16 Steven Bosscher <steven@gcc.gnu.org>
24114
24115 * c-decl.c: Don't include gimple.h.
24116 (merge_decls): Do not copy gimple_body.
24117
24118 2010-05-15 Jason Merrill <jason@redhat.com>
24119
24120 * c.opt: Add -fnothrow-opt.
24121
24122 2010-05-15 Jan Hubicka <jh@suse.cz>
24123
24124 * ipa-prop.c (ipa_prop_read_section): Add sanity check that node is
24125 analyzed.
24126 * passes.c (ipa_write_summaries): Write all analyzed nodes.
24127
24128 2010-05-15 Steven Bosscher <steven@gcc.gnu.org>
24129
24130 * vecir.h: New file with VEC primitives for tree, gimple, and rtl.
24131 * Makefile.in: Add it.
24132 Fix all other Makefile dependencies for changes below.
24133 * tree.h: Include it instead of defining VEC primitives here.
24134 * gimple.h: Likewise.
24135 * rtl.h: Likewise.
24136 * tree-inline.h: Inlclude vecir.h instead of gimple.h.
24137 * except.h: Include vecir.h, break dependence on tree.h.
24138
24139 * gimplify.c (append_to_statement_list_1, append_to_statement_list):
24140 Move from here...
24141 * tree-iterator.c: ...to here.
24142 * tree-iterator.h: Fix file introduction comment. Add extern markers.
24143
24144 * c-lex.c: Include fixed-value.h instead of rtl.h. Do not include
24145 tm_p.h.
24146 * c-cppbuiltin.c: Explain why debug.h and tm_p.h are included.
24147 * c-objc-common.h: Do not include tm.h, rtl.h, insn-config.h,
24148 integrate.h, function.h, toplev.h, tree-inline.h, ggc.h,
24149 tree-mudflap.h, and target.h.
24150 * c-semantics.c: Do not include except.h, ggc.h, rtl.h, timevar.h,
24151 predict.h, tree-inline.h, gimple.h, and langhooks.h.
24152 * c-decl.c: Do not include expr.h, ggc.h, libfuncs.h, except.h.
24153 Add FIXME for why gimple.h is still included (should be unnecessary
24154 since GCC 4.5 gimplification unit-at-a-time).
24155 * c-typeck.c: Do not include rtl.h, tm_p.h, ggc.h, and gimple.h.
24156 * c-pragma.c: Add FIXME for why function.h needs to be included just
24157 for cfun, at front-end level.
24158 Add note that REGISTER_TARGET_PRAGMAS should probably be a target hook.
24159 Do not include ggc.h, but include vecprim.h for VEC(char).
24160 * c-opts.c: Do not include tm.h, tree-inline.h, and tm_p.h.
24161 Explain why target.h is included.
24162 * c-omp.h: Do not include tm.h, function.h, and bitmap.h.
24163 Explain why gimple.h is included.
24164 * c-ppoutput.c: Do not include tm.h.
24165 * c-common.c: Do not include gimple.h. Explain why expr.h is included.
24166 * c-parses.c: Explain why rtl.h is included, and that this (and only
24167 this) is also why tm.h must be included.
24168 Do not include except.h.
24169 * c-lang.c: Do not include ggc.h.
24170
24171 2010-05-15 Uros Bizjak <ubizjak@gmail.com>
24172
24173 * targhooks.c (GO_IF_MODE_DEPENDENT_ADDRESS): Use CONST_CAST_RTX.
24174
24175 2010-05-15 Joseph Myers <joseph@codesourcery.com>
24176
24177 * c-decl.c (grokfield): Allow typedefs for anonymous structs and
24178 unions by default if those structs and unions have no tags. Do
24179 not condition anonymous struct and unions handling on flag_iso.
24180 Allow anonymous structs and unions for C1X.
24181 (finish_struct): Do not diagnose lack of named fields when
24182 anonymous structs and unions present for C1X. Accept flexible
24183 array members in structure with anonymous structs or unions but no
24184 directly named fields.
24185 * doc/extend.texi (Unnamed Fields): Update.
24186
24187 2010-05-15 Eric Botcazou <ebotcazou@adacore.com>
24188
24189 * gimple.h (compare_field_offset): Rename into...
24190 (gimple_compare_field_offset): ...this.
24191 * gimple.c (compare_field_offset): Rename into...
24192 (gimple_compare_field_offset): ...this. Compare the full access if
24193 the offset is self-referential.
24194 (gimple_types_compatible_p): Adjust for above renaming.
24195 * lto-streamer-in.c (input_gimple_stmt): Likewise. Also compare the
24196 DECL_NONADDRESSABLE_P flag of fields before merging them.
24197
24198 2010-05-15 Nathan Froyd <froydnj@codesourcery.com>
24199
24200 * tree.h (ctor_to_list): Delete.
24201 * tree.c (ctor_to_list): Delete.
24202
24203 2010-05-15 Jan Hubicka <jh@suse.cz>
24204
24205 * ipa-reference.c: Include toplev.h
24206 (is_proper_for_analysis): Only add to all_module_statics
24207 if it is allocated.
24208 (write_node_summary_p, stream_out_bitmap,
24209 ipa_reference_write_optimization_summary,
24210 ipa_reference_read_optimization_summary): New.
24211 (struct ipa_opt_pass_d pass_ipa_reference): Add
24212 optimization summary streaming.
24213 * lto-cgraph.c (referenced_from_this_partition_p,
24214 reachable_from_this_partition_p): New functions.
24215 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1,
24216 call_may_clobber_ref_p_1): Ask ipa-reference even for public vars.
24217 * opts.c (decode_options): Enable ipa_reference.
24218 * Makefile.in (ipa-reference.o): Add toplev.h dependency.
24219 * lto-streamer.h (referenced_from_this_partition_p,
24220 reachable_from_this_partition_p): Declare.
24221
24222 2010-05-15 Richard Guenther <rguenther@suse.de>
24223
24224 PR tree-optimization/44038
24225 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Avoid
24226 taking the address of a V_C_E of a constant.
24227
24228 2010-05-14 Jan Hubicka <jh@suse.cz>
24229
24230 * tree.h (memory_identifier_string): Remove.
24231 * ipa-reference.c: Update comment; do not include gt-ipa-reference.h
24232 (ipa_reference_global_vars_info_d): Remove statics_not_read and
24233 statics_not_written.
24234 (ipa_reference_optimization_summary_d): New structure.
24235 (ipa_reference_optimization_summary_t): New type and vector.
24236 (ipa_reference_vars_info_d): Embedd structures instead of using
24237 pointers.
24238 (reference_vars_to_consider): Remove out of GGC space.
24239 (module_statics_escape): Remove.
24240 (global_info_obstack): Rename to ...
24241 (optimization_summary_obstack): ... this one.
24242 (initialization_status_t): Remove.
24243 (memory_identifier_string): Remove.
24244 (get_reference_vars_info): Fix indenting.
24245 (set_reference_vars_info): Likewise.
24246 (get_reference_optimization_summary): New.
24247 (set_reference_optimization_summary): New.
24248 (get_global_reference_vars_info): Remove.
24249 (ipa_reference_get_read_global): Remove.
24250 (ipa_reference_get_written_global): Remove.
24251 (ipa_reference_get_not_read_global): Update.
24252 (ipa_reference_get_not_written_global): Update.
24253 (is_proper_for_analysis): Outlaw addressable.
24254 (propagate_bits): Update for new datastructures.
24255 (analyze_variable): Remove.
24256 (init_function_info): Update for new datastructures.
24257 (clean_function_local_data): Remove.
24258 (clean_function): Remove.
24259 (copy_global_bitmap): Use optimizations_summary_obstack.
24260 (duplicate_node_data): Duplicate optimization summary only.
24261 (remove_node_data): Remove optimization summary only.
24262 (generate_summary): Do not analyze variables; do not compute
24263 module_statics_escape; do not prune solutions by it.
24264 (read_write_all_from_decl): Fix typos in comments.
24265 (propagate): Doscover readonly and nonaddressable first;
24266 update for new datastructures; share global bitmaps.
24267 * ipa-reference.h (ipa_reference_get_read_global,
24268 ipa_reference_get_written_global): Remove.
24269 * ipa-pure-const.c (check_stmt): Do not use memory_identifier_string.
24270 * Makefile.in: Remove ipa-refereference from GT files.
24271
24272 2010-05-14 Jakub Jelinek <jakub@redhat.com>
24273
24274 PR debug/44112
24275 * dwarf2out.c (resolve_one_addr): Check TREE_ASM_WRITTEN
24276 for all SYMBOL_REF_DECLs.
24277
24278 2010-05-14 Jan Hubicka <jh@suse.cz>
24279
24280 * cgraph.h (ipa_discover_readonly_nonaddressable_vars): Declare.
24281 (varpool_all_refs_explicit_p): New inline function.
24282 * ipa-reference.c: Update comment.
24283 (module_statics_written): Remove.
24284 (get_static_decl): Remove.
24285 (ipa_init): Do not initialize module_statics_written.
24286 (analyze_function): Likewise.
24287 (generate_summary): Likewise; do not compute module_statics_readonly
24288 and do not update variable flags.
24289 (propagate): Call ipa_discover_readonly_nonaddressable_vars.
24290 * ipa.c: Inlucde flags.h
24291 (cgraph_local_node_p): New.
24292 (cgraph_remove_unreachable_nodes): Return early when not optimizing;
24293 promote functions to local.
24294 (ipa_discover_readonly_nonaddressable_vars): New function.
24295 (function_and_variable_visibility): Use cgraph_local_node_p.
24296 * varpool.c (varpool_finalize_decl): Set force_output for
24297 DECL_PRESERVE_P vars.
24298
24299 2010-05-14 Jan Hubicka <jh@suse.cz>
24300
24301 * ipa.c (cgraph_remove_unreachable_nodes): Revert accidental commit.
24302
24303 2010-05-14 Richard Guenther <rguenther@suse.de>
24304
24305 PR tree-optimization/44119
24306 * tree-ssa-pre.c (eliminate): Properly mark replacement of
24307 a PHI node necessary.
24308
24309 2010-05-14 Eric Botcazou <ebotcazou@adacore.com>
24310
24311 * tree.h (TREE_ADDRESSABLE): Remove bogus usage for FIELD_DECL.
24312
24313 2010-05-14 Jason Merrill <jason@redhat.com>
24314
24315 PR c++/44127
24316 * gimple.h (enum gf_mask): Add GF_CALL_NOTHROW.
24317 (gimple_call_set_nothrow): New.
24318 * gimple.c (gimple_build_call_from_tree): Call it.
24319 (gimple_call_flags): Set ECF_NOTHROW from GF_CALL_NOTHROW.
24320
24321 PR c++/44127
24322 * gimplify.c (gimplify_seq_add_stmt): No longer static.
24323 * gimple.h: Declare it.
24324 * gimple.c (gimple_build_eh_filter): No ops.
24325
24326 2010-05-14 Jan Hubicka <jh@suse.cz>
24327
24328 * ipa.c (enqueue_cgraph_node): Update comment; do not re-enqueue
24329 nodes already in queue.
24330 (cgraph_remove_unreachable_nodes): Cleanup; fix problem with
24331 re-enqueueing node.
24332
24333 2010-05-14 Jakub Jelinek <jakub@redhat.com>
24334
24335 PR debug/44136
24336 * cfgexpand.c (expand_debug_expr): If non-memory op0
24337 has BLKmode, return NULL.
24338
24339 2010-05-14 Harsha Jagasia <harsha.jagasia@amd.com>
24340
24341 * config.gcc: Add support for --with-cpu option for bdver1.
24342 * config/i386/i386.h (TARGET_BDVER1): New macro.
24343 (ix86_tune_indices): Change SSE_UNALIGNED_MOVE_OPTIMAL
24344 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
24345 (ix86_tune_features) :Change SSE_UNALIGNED_MOVE_OPTIMAL
24346 to SSE_UNALIGNED_LOAD_OPTIMAL. Add SSE_UNALIGNED_STORE_OPTIMAL.
24347 Add SSE_PACKED_SINGLE_INSN_OPTIMAL.
24348 (TARGET_CPU_DEFAULT_NAMES): Add bdver1.
24349 (processor_type): Add PROCESSOR_BDVER1.
24350 * config/i386/i386.md: Add bdver1 as a new cpu attribute to match
24351 processor_type in config/i386/i386.h.
24352 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit
24353 movaps <reg, reg> instead of movapd <reg, reg> when replacing
24354 movsd <reg, reg> or movss <reg, reg> for SSE and AVX.
24355 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL
24356 to emit packed xor instead of packed double/packed integer
24357 xor for SSE and AVX when moving a zero value.
24358 * config/i386/sse.md: Add check for
24359 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movaps instead of
24360 movapd/movdqa for SSE and AVX.
24361 Add check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed
24362 single logical operations i.e and, or and xor instead of packed double
24363 logical operations for SSE and AVX.
24364 * config/i386/i386-c.c (ix86_target_macros_internal):
24365 Add PROCESSOR_BDVER1.
24366 * config/i386/driver-i386.c: Turn on -mtune=native for BDVER1.
24367 (has_fma4, has_xop): New.
24368 * config/i386/i386.c (bdver1_cost): New variable.
24369 (m_BDVER1): New macro.
24370 (m_AMD_MULTIPLE): Add m_BDVER1.
24371 (x86_tune_use_leave, x86_tune_push_memory, x86_tune_unroll_strlen,
24372 x86_tune_deep_branch_prediction, x86_tune_use_sahf, x86_tune_movx,
24373 x86_tune_use_simode_fiop, x86_tune_promote_qimode,
24374 x86_tune_add_esp_8, x86_tune_tune_sub_esp_4, x86_tune_sub_esp_8,
24375 x86_tune_integer_dfmode_moves, x86_tune_partial_reg_dependency,
24376 x86_tune_sse_partial_reg_dependency,
24377 x86_tune_sse_unaligned_load_optimal,
24378 x86_tune_sse_unaligned_store_optimal, x86_tune_sse_typeless_stores,
24379 x86_tune_memory_mismatch_stall, x86_tune_use_ffreep,
24380 x86_tune_inter_unit_moves, x86_tune_inter_unit_conversions,
24381 x86_tune_use_bt, x86_tune_pad_returns, x86_tune_slow_imul_imm32_mem,
24382 x86_tune_slow_imul_imm8, x86_tune_fuse_cmp_and_branch):
24383 Enable/disable for bdver1.
24384 (processor_target_table): Add bdver1_cost.
24385 (cpu_names): Add bdver1.
24386 (override_options): Set up PROCESSOR_BDVER1 for bdver1 entry in
24387 processor_alias_table.
24388 (ix86_expand_vector_move_misalign): Change.
24389 TARGET_SSE_UNALIGNED_MOVE_OPTIMAL to TARGET_SSE_UNALIGNED_LOAD_OPTIMAL.
24390 Check for TARGET_SSE_UNALIGNED_STORE_OPTIMAL.
24391 Check for TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit movups instead
24392 of movupd/movdqu for SSE and AVX.
24393 (ix86_tune_issue_rate): Add PROCESSOR_BDVER1.
24394 (ix86_tune_adjust_cost): Add code for bdver1.
24395 (standard_sse_constant_opcode): Add check for
24396 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL to emit packed single xor instead
24397 of packed double xor for SSE and AVX.
24398
24399 2010-05-14 Pat Haugen <pthaugen@us.ibm.com>
24400
24401 * tree-ssa-loop.prefetch.c (prune_ref_by_group_reuse): Cast abs()
24402 result to unsigned.
24403
24404 2010-05-14 Tristan Gingold <gingold@adacore.com>
24405
24406 * toplev.c (default_debug_hooks): Remove this variable.
24407 (process_options): Remove assignments to default_debug_hooks.
24408
24409 2010-05-14 Martin Jambor <mjambor@suse.cz>
24410
24411 * langhooks-def.h (LANG_HOOKS_FOLD_OBJ_TYPE_REF): Remove.
24412 (LANG_HOOKS_INITIALIZER): Remove LANG_HOOKS_FOLD_OBJ_TYPE_REF.
24413 * langhooks.h (struct lang_hooks_for_decls): Removed field
24414 fold_obj_type_ref.
24415 * tree.c (free_lang_data): Remove assignment to
24416 lang_hooks.fold_obj_type_ref.
24417 * tree.def (OBJ_TYPE_REF): Update comment.
24418
24419 2010-05-14 Richard Guenther <rguenther@suse.de>
24420
24421 PR tree-optimization/44124
24422 * tree-ssa-sccvn.c (vn_nary_may_trap): Fix invalid memory access.
24423
24424 2010-05-14 Alan Modra <amodra@gmail.com>
24425
24426 PR target/44075
24427 * config/rs6000/rs6000.c (struct machine_function): Reorder
24428 fields for better packing. Add lr_save_state.
24429 (rs6000_ra_ever_killed): Return lr_save_state if set.
24430 (rs6000_emit_eh_reg_restore): Set lr_save_state.
24431
24432 2010-05-13 Jan Hubicka <jh@suse.cz>
24433
24434 * varpool.c (decide_is_variable_needed): Drop code checking
24435 TREE_SYMBOL_REFERENCED.
24436
24437 2010-05-13 Jan Hubicka <jh@suse.cz>
24438
24439 * final.c (output_addr_const): Do not call mark_decl_referenced.
24440 * cgraphunit.c (process_function_and_variable_attributes): Use
24441 mark_needed_node dirrectly.
24442 (assemble_thunk): Do not call mark_decl_referenced.
24443
24444 2010-05-13 Anatoly Sokolov <aesok@post.ru>
24445
24446 * targhooks.c (default_mode_dependent_address_p): Cast 'addr' to rtx.
24447
24448 2010-05-13 Jeff Law <law@redhat.com>
24449
24450 * ira-conflicts.c (print_allocno_conflicts): New function broken out
24451 from...
24452 (print_conflicts): Call print_allocno_conflicts.
24453
24454 2010-05-13 Jakub Jelinek <jakub@redhat.com>
24455
24456 PR debug/44104
24457 * dwarf2out.c (modified_type_die): Don't dereference mod_type_die
24458 if it is NULL.
24459
24460 2010-05-13 Kai Tietz <kai.tietz@onevision.com>
24461
24462 * config.gcc (i[34567]86-*-mingw* | x86_64-*-mingw*): Choose
24463 t-mingw-w64 or t-mingw-w32 for multilib configuration.
24464 * config/i386/t-mingw-w32: New.
24465 * config/i386/t-mingw-w64 (MULTILIB_OSDIRNAMES): Change lib64 to lib.
24466
24467 2010-05-13 Martin Jambor <mjambor@suse.cz>
24468
24469 * gimple.c (gimple_fold_obj_type_ref): Removed (a replacement moved to
24470 gimple-fold.c).
24471 * gimple-fold.c (get_base_binfo_for_type): New function.
24472 (gimple_get_relevant_ref_binfo): Likewise.
24473 (gimple_fold_obj_type_ref_known_binfo): Likewise.
24474 (gimple_fold_obj_type_ref): Likewise.
24475 (fold_gimple_call): Simplify condition for folding virtual calls
24476 and call gimple_fold_obj_type_ref.
24477 * gimple.h (gimple_get_relevant_ref_binfo): Declare.
24478 (gimple_fold_obj_type_ref_known_binfo): Likewise.
24479
24480 2010-05-13 Andreas Schwab <schwab@linux-m68k.org>
24481
24482 * config/rs6000/rs6000-protos.h
24483 (rs6000_mode_dependent_address_ptr): Change argument to const_rtx.
24484 * config/rs6000/rs6000.c (rs6000_mode_dependent_address)
24485 (rs6000_debug_mode_dependent_address)
24486 (rs6000_mode_dependent_address_ptr): Likewise.
24487
24488 2010-05-13 Jakub Jelinek <jakub@redhat.com>
24489
24490 PR debug/43983
24491 * var-tracking.c (track_expr_p): Allow tracking of variables optimized
24492 by SRA.
24493 * Makefile.in (dwarf2out.o): Depend on $(TREE_FLOW_H).
24494 * tree-sra.c (create_access_replacement): Call unshare_expr before
24495 passing expr to SET_DECL_DEBUG_EXPR, and remove any SSA_NAMEs from it.
24496 * dwarf2out.c: Include tree-flow.h.
24497 (struct var_loc_node): Rename var_loc_note field to loc, add comment.
24498 (size_of_loc_descr, output_loc_operands, output_loc_operands_raw):
24499 Handle DW_OP_bit_piece.
24500 (decl_piece_bitsize, decl_piece_varloc_ptr, decl_piece_node,
24501 construct_piece_list, adjust_piece_list): New functions.
24502 (add_var_loc_to_decl): Handle SRA optimized variables.
24503 Adjust for var_loc_note to loc field renaming.
24504 (dw_loc_list_1): For WANT_ADDRESS == 2 prefer DECL_MODE of decl
24505 in VAR_LOCATION note.
24506 (new_loc_descr_op_bit_piece): New function.
24507 (dw_sra_loc_expr): New function.
24508 (dw_loc_list): Use it. Don't handle the last range after the
24509 loop, handle it inside of the loop. Adjust for var_loc_note
24510 to loc field renaming.
24511 (add_location_or_const_value_attribute): Only special case
24512 single entry loc lists if loc is NOTE_P. Adjust for
24513 var_loc_note to loc field renaming.
24514 (dwarf2out_var_location): Don't set newloc->var_loc_note
24515 and newloc->next here.
24516
24517 2010-05-12 Jan Hubicka <jh@suse.cz>
24518
24519 * cgraph.c (cgraph_mark_address_taken_node): No longer imply needed
24520 flag.
24521 * cgraph.h (cgraph_only_called_directly_p,
24522 cgraph_can_remove_if_no_direct_calls_p): test address_taken flag.
24523 (cgraph_can_remove_if_no_direct_calls_and_refs_p): New function.
24524 * cgraphunit.c (cgraph_mark_functions_to_output): Test address_taken.
24525 (assemble
24526 * ipa.c (cgraph_remove_unreachable_nodes): Use
24527 cgraph_can_remove_if_no_direct_calls_and_refs_p; clear address_taken
24528 flags.
24529 * tree-inline.c (copy_bb): Check address_taken flag.
24530 * tree-profile.c (tree_gen_ic_func_profiler): Check address_taken and
24531 externally_visible flag.
24532
24533 2010-05-12 Jason Merrill <jason@redhat.com>
24534
24535 PR bootstrap/44048
24536 PR target/44099
24537 * dbxout.c (dbxout_type): Remove NULLPTR_TYPE handling.
24538 * sdbout.c (plain_type_1): Likewise.
24539 * dwarf2out.c (is_base_type): Likewise.
24540 (gen_type_die_with_usage): Likewise. Generate
24541 DW_TAG_unspecified_type for any LANG_TYPE.
24542
24543 2010-05-12 Jan Hubicka <jh@suse.cz>
24544
24545 * cgraphbuild.c (build_cgraph_edges, rebuild_cgraph_edges): Build
24546 indrect edges too.
24547 * cgraph.c (cgraph_create_indirect_edge): Take ecf_flags argument.
24548 (cgraph_clone_edge): Update.
24549 (cgraph_node_remove_callees): Remove indirect calls too.
24550 * cgraph.h (cgraph_indirect_call_info): Add ecf_flags.
24551 (cgraph_create_indirect_edge): Update prototype.
24552 * ipa-reference.c (has_proper_scope_for_analysis): Rename to
24553 is_proper_for_analysis.
24554 (add_new_function, visited_nodes, function_insertion_hook_holder,
24555 get_local_reference_vars_info, mark_address_taken, mark_address,
24556 mark_load, mark_store, check_asm_memory_clobber, check_call,
24557 scan_stmt_for_static_refs, scan_initializer_for_static_refs): Remove.
24558 (ipa_init): Do not initialize visited_nodes;
24559 function_insertion_hook_holder.
24560 (analyze_variable): Rewrite.
24561 (analyze_function): Rewrite.
24562 (copy_local_bitmap): Remove.
24563 (duplicate_node_dat): Do not duplicate local info.
24564 (generate_summary): Simplify to only walk cgraph.
24565 (write_node_summary_p, ipa_reference_write_summary,
24566 ipa_reference_read_summary): Remove.
24567 (propagate): Do not remove function insertion;
24568 generate summary.
24569 (pass_ipa_reference): NULLify summary handling fields.
24570 * lto-cgraph.c (lto_output_edge): Output ecf_flags.
24571 (input_edge): Input ecf_flags.
24572 * ipa-prop.c (ipa_note_parm_call): Expect edge to be around.
24573 (update_indirect_edges_after_inlining): Ignore edges with unknown
24574 param.
24575
24576 2010-05-12 Sriraman Tallam <tmsriram@google.com>
24577
24578 * implicit-zee.c: New file.
24579 * tree-pass.h (pass_implicit_zee): Declare.
24580 * passes.c (init_optimization_passes): Add zee pass.
24581 * common.opt (fzee): New flag.
24582 * timevar.def (TV_ZEE): Define.
24583 * config/i386/i386.c (optimization_options): Turn on ZEE for level 2
24584 and beyond.
24585 * Makefile.in (implicit-zee.o): Add new build file.
24586
24587 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
24588 Nathan Froyd <froydnj@codesourcery.com>
24589
24590 * c-common.c (sync_resolve_params): Remove write-only variable.
24591
24592 2010-05-12 Anatoly Sokolov <aesok@post.ru>
24593
24594 * target.h (struct gcc_target): Add mode_dependent_address_p field.
24595 * target-def.h (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
24596 (TARGET_INITIALIZER): Use TARGET_MODE_DEPENDENT_ADDRESS_P.
24597 * targhooks.c (default_mode_dependent_address_p): New function.
24598 * targhooks.h (default_mode_dependent_address_p): Declare function.
24599 * doc/tm.texi (TARGET_MODE_DEPENDENT_ADDRESS_P): New.
24600 (GO_IF_MODE_DEPENDENT_ADDRESS): Update.
24601 * recog.c (mode_dependent_address_p): Call mode_dependent_address_p
24602 target hook. Change return type to bool.
24603 * recog.h (mode_dependent_address_p): Change return type to bool.
24604
24605 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
24606 Nathan Froyd <froydnj@codesourcery.com>
24607
24608 * tree-mudflap.c (build_function_type_0, build_function_type_1,
24609 build_function_type_2, build_function_type_3): Remove.
24610 (mudflap_init): Use build_function_type_list.
24611
24612 2010-05-12 Kazu Hirata <kazu@codesourcery.com>
24613 Nathan Froyd <froydnj@codesourcery.com>
24614
24615 * coverage.c (build_fn_info_value): Call build_constructor instead of
24616 build_constructor_from_list.
24617 (build_ctr_info_value): Likewise.
24618 (build_gcov_info): Likewise.
24619
24620 2010-05-12 Nathan Froyd <froydnj@codesourcery.com>
24621
24622 * tree.c (build_constructor): Compute TREE_CONSTANT for the
24623 resultant constructor.
24624 (build_constructor_single): Don't set TREE_CONSTANT.
24625 (build_constructor_from_list): Don't compute TREE_CONSTANT.
24626
24627 2010-05-12 Jan Hubicka <jh@suse.cz>
24628
24629 * cgraph.h (struct varpool_node): Add aux.
24630 * varasm.c (find_decl_and_mark_needed): Force output of varpool nodes.
24631 * varpool.c (varpool_remove_node): Do not remove initializer.
24632 (varpool_reset_queue): Export.
24633 (varpool_finalize_decl): Volatile vars are forced to be output.
24634 * lto-symtab.c (lto_varpool_replace_node): Clear out initializer of
24635 replaced decl.
24636 * ipa.c (enqueue_cgraph_node, enqueue_varpool_node,
24637 process_references, varpool_can_remove_if_no_refs): New functions.
24638 (cgraph_remove_unreachable_nodes): Handle variables too.
24639
24640 2010-05-12 H.J. Lu <hongjiu.lu@intel.com>
24641
24642 PR target/44088
24643 * config/i386/sse.md (*avx_vmmaskcmp<mode>3): New.
24644
24645 2010-05-12 Jakub Jelinek <jakub@redhat.com>
24646
24647 PR middle-end/44085
24648 * gimplify.c (enum omp_region_type): Add ORT_UNTIED_TASK,
24649 change value of ORT_TASK.
24650 (new_omp_context): Handle ORT_UNTIED_TASK like ORT_TASK.
24651 (omp_notice_threadprivate_variable): New function.
24652 (omp_notice_variable): Call it for threadprivate variables.
24653 If enclosing ctx is a task, print enclosing task rather than
24654 enclosing parallel. Handle ORT_UNTIED_TASK like ORT_TASK.
24655 (gimplify_omp_task): Pass ORT_UNTIED_TASK instead of ORT_TASK
24656 if task has untied clause.
24657
24658 PR debug/42278
24659 * dwarf2out.c (base_type_die): Don't add name attribute here.
24660 (modified_type_die): Instead of sizetype use
24661 its underlying original type. If a DW_TAG_base_type doesn't
24662 have name added, add __unknown__.
24663 (dwarf2out_imported_module_or_decl_1): Don't call base_type_die,
24664 always call force_type_die instead.
24665
24666 2010-05-12 Maxim Kuvyrkov <maxim@codesourcery.com>
24667
24668 * targhooks.c (default_stack_protect_guard): Avoid sharing RTL
24669 for __stack_chk_guard.
24670
24671 2010-05-11 Jakub Jelinek <jakub@redhat.com>
24672
24673 * c-opts.c (c_common_parse_file): If start_end_main_source_file,
24674 don't call start_source_file debug hook here...
24675 (finish_options): ... but here, after outputting predefined and
24676 command line defines and undefs.
24677
24678 PR middle-end/44071
24679 * cfglayout.c (fixup_reorder_chain): Allow asm goto to have
24680 no fallthru edge.
24681 * cfgcleanup.c (try_optimize_cfg): When in cfglayout mode
24682 optimizing away empty bb with no successors, move over its
24683 footer chain to fallthru predecessor.
24684 * cfgrtl.c (patch_jump_insn): Update also REG_LABEL_OPERAND.
24685 (rtl_split_edge): For asm goto call patch_jump_insn even if
24686 splitting fallthru edge.
24687
24688 PR c++/44059
24689 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use qnu_unique_object
24690 even for DECL_ONE_ONLY DECL_ARTIFICIAL !TREE_READONLY decls.
24691 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Likewise.
24692 * dwarf2asm.c (dw2_output_indirect_constant_1): Set TREE_READONLY
24693 on DW.ref.* decls.
24694
24695 PR c++/44062
24696 * c-parser.c (c_parser_expression): Mark LHS of a comma
24697 expression as read if it is a decl, handled component or
24698 COMPOUND_EXPR with that on the RHS.
24699 * c-typeck.c (c_process_expr_stmt): Mark RHS of COMPOUND_EXPR
24700 if it is a decl or handled component.
24701
24702 2010-05-11 Jan Hubicka <jh@suse.cz>
24703
24704 * lto-symtab.c (lto_symtab_free): New function.
24705 * lto-streamer.h (lto_symtab_free): Declare.
24706
24707 2010-05-11 Jan Hubicka <jh@suse.cz>
24708
24709 * lto-cgraph.c (reachable_from_other_partition_p): Export; do not assume
24710 that if function is needed it is reachable.
24711 (lto_output_node): See if it the function is reachable or referenced.
24712 (output_cgraph): Update call of lto_output_node.
24713 * lto-streamer.h (reachable_from_other_partition_p): Declare.
24714
24715 2010-05-11 Jan Hubicka <jh@suse.cz>
24716
24717 * crtstuff.c (__JCR_LIST__, __DTOR_END__, __JCR_END__, __FRAME_END__):
24718 Mark as used.
24719
24720 2010-05-11 Jan Hubicka <jh@suse.cz>
24721
24722 PR tree-optimize/44063
24723 * ipa-inline.c (cgraph_edge_badness): Move always inlines to top of
24724 queue.
24725 (cgraph_decide_inlining_of_small_function): Skip check when disrgarding
24726 limits.
24727 (estimate_function_body_sizes): Compute sizes even when disregarding.
24728
24729 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
24730
24731 * collect2.c (maybe_lto_object_file): Add x64-coff magic and check.
24732
24733 2010-05-11 Jan Hubicka <jh@suse.cz>
24734
24735 * lto-cgraph.c (output_cgraph): Remove loop adding all varpool nodes
24736 into every boundary.
24737
24738 2010-05-11 Jan Hubicka <jh@suse.cz>
24739
24740 * matrix-reorg.c (matrix_reorg): Rebuild edges.
24741
24742 2010-05-11 Jan Hubicka <jh@suse.cz>
24743
24744 * lto-streamer.c (lto_streamer_cache_add_to_node_array,
24745 lto_streamer_cache_delete): Put nodes into heap.
24746 * lto-streamer.h (struct lto_streamer_cache_d): Nodes vector is in
24747 heap.
24748
24749 2010-05-11 Jan Hubicka <jh@suse.cz>
24750
24751 * cgraphbuild.c (cgraph_rebuild_references): New.
24752 * cgraph.c (cgraph_mark_reachable_node): Accept references to optimized
24753 out extern inlines.
24754 * cgraph.h (cgraph_rebuild_references): Declare.
24755 * tree-inline.c (tree_function_versioning): Use it.
24756 * ipa-struct-reorg.c (do_reorg_for_func): Likewise.
24757
24758 2010-05-11 Jan Hubicka <jh@suse.cz>
24759
24760 * cgraph.c: Include ipa-utils.h
24761 (cgraph_create_virtual_clone): Update references.
24762 * Makefile.in (cgraph.o): Add dependency at ipa-utils.h
24763
24764 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
24765
24766 * tree-ssa-loop-prefetch.c (prune_ref_by_group_reuse): Reset
24767 prefetch_before to PREFETCH_ALL if to accesses "meet" beyond
24768 cache size.
24769
24770 2010-05-11 Christian Borntraeger <borntraeger@de.ibm.com>
24771
24772 * tree-ssa-loop-prefetch.c: Add debug for dropped prefetches.
24773
24774 2010-05-11 Jakub Jelinek <jakub@redhat.com>
24775
24776 * gcc.c (execute): For -### don't quote arguments that
24777 contain just alphanumerics and _/-. characters.
24778 * doc/invoke.texi: Document that change for -###.
24779
24780 PR debug/44023
24781 * df-problems.c (struct dead_debug): Add to_rescan field.
24782 (dead_debug_init): Clear to_rescan field.
24783 (dead_debug_finish): Rescan all debug insns in to_rescan
24784 bitmap and free the bitmap.
24785 (dead_debug_insert_before): Instead of rescanning debug insns
24786 immediately queue their rescanning until dead_debug_finish.
24787 (df_note_bb_compute): After dead_debug_add do continue instead
24788 of break.
24789
24790 2010-05-10 Jakub Jelinek <jakub@redhat.com>
24791
24792 PR debug/44028
24793 * haifa-sched.c (schedule_insn): When clearing INSN_VAR_LOCATION_LOC,
24794 clear also INSN_REG_USE_LIST.
24795
24796 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24797
24798 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Undef.
24799
24800 2010-05-10 Jan Hubicka <jh@suse.cz>
24801
24802 * lto-stramer-out.c (produce_asm_for_decls): Correct accidentally
24803 commited change.
24804
24805 2010-05-10 Jan Hubicka <jh@suse.cz>
24806
24807 * passes.c (ipa_write_summaries_1, ipa_write_optimization_summaries):
24808 Allocate encoders.
24809 * lto-section-out.c (lto_new_out_decl_state): Do not allocate it here.
24810 * lto-streamer.c (lto_streamer_cache_insert_1): Use alloc pool.
24811 (lto_streamer_cache_create): Init alloc pool.
24812 (lto_streamer_cache_delete): Free alloc pool.
24813 * lto-streamer.h: Include alloc pool.
24814 (lto_streamer_cache_d): Use alloc pool.
24815 * lto-stramer-out.c (produce_asm_for_decls): Delete fn_out_states.
24816
24817 2010-05-10 Jan Hubicka <jh@suse.cz>
24818
24819 * Makefile.in (cgraphbuild.o): Add dependency on except.h.
24820 * cgraphbuild.c: Include except.h
24821 (record_type_list, record_eh_tables): New function.
24822 (build_cgraph_edges, rebuild_cgraph_edges): Use it.
24823
24824 2010-05-10 Jan Hubicka <jh@suse.cz>
24825
24826 * crtstuff.c (force_to_data, __do_global_dtors_aux_fini_array_entry,
24827 __frame_dummy_init_array_entry, force_to_data): Attribute as used
24828 rather than unused.
24829
24830 2010-05-10 Michael Matz <matz@suse.de>
24831
24832 * tree-ssa-reassoc.c (undistribute_ops_list): Use create_tmp_reg.
24833 (can_reassociate_p): Use FLOAT_TYPE_P.
24834 * tree-vectorizer.h (vect_is_simple_reduction): Rename to ...
24835 (vect_force_simple_reduction): ... this.
24836 * tree-parloops.c (gather_scalar_reductions): Use
24837 vect_force_simple_reduction.
24838 * tree-vect-loop.c (vect_is_simple_reduction_1): Rename from
24839 vect_is_simple_reduction, add modify argument, if true rewrite
24840 "a-b" into "a+(-b)".
24841 (vect_is_simple_reduction, vect_force_simple_reduction): New
24842 functions.
24843 (vect_analyze_scalar_cycles_1): Use vect_force_simple_reduction.
24844
24845 2010-05-10 H.J. Lu <hongjiu.lu@intel.com>
24846 Vladimir Makarov <vmakarov@redhat.com>
24847
24848 PR rtl-optimization/44012
24849 * ira-build.c (remove_unnecessary_allocnos): Nullify
24850 regno_allocno_map of the removed allocno.
24851
24852 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24853
24854 * configure.ac (gcc_cv_ld_eh_gc_sections): Redirect objdump errors
24855 to /dev/null.
24856 * configure: Regenerate.
24857
24858 2010-05-10 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24859
24860 * config/sol2.c (solaris_assemble_visibility): Declare decl, vis
24861 unused.
24862 Define visibility_types, name, type inside HAVE_GAS_HIDDEN.
24863 * configure.ac (gcc_cv_ld_hidden): Explain stages of visibility
24864 support in Sun ld.
24865 * configure: Regenerate.
24866
24867 2010-05-10 Richard Guenther <rguenther@suse.de>
24868
24869 * lto-symtab.c (lto_symtab_entry_marked_p): Make entry
24870 marked if the entry identifier is marked.
24871
24872 2010-05-10 Richard Guenther <rguenther@suse.de>
24873
24874 * c-common.c (struct c_common_attributes): Add fnspec attribute.
24875 (handle_fnspec_attribute): New function.
24876 * gimple.h (gimple_call_return_flags): Declare.
24877 (gimple_call_arg_flags): Likewise.
24878 * gimple.c (gimple_call_arg_flags): New function.
24879 (gimple_call_return_flags): Likewise.
24880 * tree.h (EAF_DIRECT, EAF_NOCLOBBER, EAF_NOESCAPE, EAF_UNUSED):
24881 New argument flags.
24882 (ERF_RETURN_ARG_MASK, ERF_RETURNS_ARG, ERF_NOALIAS): New function
24883 return value flags.
24884 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Skip unused args.
24885 * tree-ssa-structalias.c (make_constraint_from_heapvar): Split
24886 main work to ...
24887 (make_heapvar_for): ... this new function.
24888 (handle_rhs_call): Handle fnspec attribute argument specifiers.
24889 (handle_lhs_call): Likewise.
24890 (find_func_aliases): Adjust.
24891
24892 2010-05-10 Richard Guenther <rguenther@suse.de>
24893
24894 PR tree-optimization/44050
24895 * tree-inline.c (tree_function_versioning): Clone the ipa-pta flag.
24896
24897 2010-05-10 Wei Guozhi <carrot@google.com>
24898
24899 PR target/42879
24900 * config/arm/thumb2.md (thumb2_tlobits_cbranch): New insn pattern.
24901
24902 2010-05-09 Joseph Myers <joseph@codesourcery.com>
24903
24904 PR c/10676
24905 * c-typeck.c (lookup_field): Take a type directly. Update
24906 recursive calls.
24907 (build_component_ref): Update call to lookup_field.
24908 (set_init_label): Use lookup_field to find initialized field.
24909 Handle returned list of fields like a sequence of designators.
24910
24911 2010-05-09 Richard Guenther <rguenther@suse.de>
24912
24913 PR middle-end/44024
24914 * fold-const.c (tree_single_nonzero_warnv_p): Properly
24915 handle &FUNCTION_DECL.
24916
24917 2010-05-09 Joseph Myers <joseph@codesourcery.com>
24918
24919 PR c/4784
24920 * c-decl.c (detect_field_duplicates_hash): New. Handle anonymous
24921 structures and unions recursively.
24922 (detect_field_duplicates): Move duplicate detection with a hash to
24923 detect_field_duplicates_hash. Always use a hash if anonymous
24924 structures or unions are present.
24925 * doc/extend.texi (Unnamed Fields): Document that duplicate fields
24926 give errors.
24927
24928 2010-05-09 H.J. Lu <hongjiu.lu@intel.com>
24929
24930 PR target/44046
24931 * config/i386/driver-i386.c (host_detect_local_cpu): Properly
24932 detect Atom, Core 2 and Core i7.
24933
24934 2010-05-09 Richard Guenther <rguenther@suse.de>
24935
24936 * gcc.c (store_arg): Handle temporary file deletion for
24937 joined arguments.
24938
24939 2010-05-09 Richard Guenther <rguenther@suse.de>
24940
24941 PR middle-end/44043
24942 * ipa-inline.c (estimate_function_body_sizes): Return after
24943 disregarding inline limits.
24944
24945 2010-05-09 Richard Guenther <rguenther@suse.de>
24946
24947 * gcc.c (store_arg): Revert last change.
24948
24949 2010-05-08 Sandra Loosemore <sandra@codesourcery.com>
24950
24951 PR middle-end/28685
24952 * tree-ssa-reassoc.c (eliminate_redundant_comparison): New function.
24953 (optimize_ops_list): Call it.
24954
24955 2010-05-08 Richard Guenther <rguenther@suse.de>
24956
24957 PR tree-optimization/44030
24958 * tree-ssa-pre.c (eliminate): Copy NECESSARY flag. Set
24959 NECESSARY flag if we propagate from a inserted expression.
24960
24961 2010-05-08 Eric Botcazou <ebotcazou@adacore.com>
24962
24963 * gimple.c (gimple_types_compatible_p) <ARRAY_TYPE>: Treat bounds of
24964 domain types as equal if they are both PLACEHOLDER_EXPRs.
24965
24966 2010-05-08 Richard Guenther <rguenther@suse.de>
24967
24968 * lto-wrapper.c (run_gcc): Remove linker output from
24969 command line for LTRANS invocation.
24970
24971 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
24972
24973 * config.gcc (i[34567]86-*-darwin*, x86_64-*-darwin*): Add
24974 lto-macho as lto_binary_reader.
24975 * target.h (struct gcc_target): New hooks lto_start and lto_end.
24976 * target-def.h (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Define.
24977 * cgraphunit.c (ipa_passes): Wrap LTO assembler output generation
24978 in lto_start and lto_end calls.
24979 (is_elf_or_coff): Rename to maybe_lto_object_file. Add Mach-O
24980 magic numbers.
24981 (scan_prog_file): Update is_elf_or_coff call.
24982 * doc/tm.text (TARGET_ASM_LTO_START, TARGET_ASM_LTO_END): Document.
24983
24984 * collect2.c (main): Fix enum comparison.
24985
24986 * config/darwin-protos.h (darwin_asm_lto_start, darwin_asm_lto_end):
24987 Add prototypes.
24988 * darwin9.h (LINK_COMMAND_SPEC): Pass -flto and -fwhopr to the linker.
24989 * darwin.h (LINK_COMMAND_SPEC): Likewise. Define TARGET_ASM_LTO_START
24990 and TARGET_ASM_LTO_END.
24991 * darwin.c: Include obstack.h and lto-streamer.h.
24992 (lto_section_names_offset, lto_section_names_obstack,
24993 lto_asm_out_file, lto_asm_out_name, saved_asm_out_file): New static
24994 global variables.
24995 (LTO_SEGMENT_NAME, LTO_NAMES_SECTION): New defines.
24996 (darwin_asm_lto_start): New function. Redirect output to asm_out_file
24997 to a temporary file.
24998 (darwin_asm_lto_end): New function. Restore asm_out_file.
24999 (darwin_asm_named_section): For LTO sections, replace the name with
25000 the offset of the section name in a string table, and build this
25001 table.
25002 (darwin_file_start): Initialize global vars for LTO support.
25003 (darwin_file_end): If output to asm_out_file was redirected, append it
25004 to the proper asm_out_file here. Add the section names section.
25005
25006 2010-05-07 Steven Bosscher <steven@gcc.gnu.org>
25007
25008 * c-pragma.c (pending_weak_d, pending_weak): New.
25009 (pending_weaks): Change the type to VEC((pending_weak,gc) *.
25010 (maybe_apply_pragma_weak, maybe_apply_pending_pragma_weaks,
25011 handle_pragma_weak): Update the uses of pending_weaks.
25012
25013 2010-05-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25014
25015 PR documentation/44016
25016 * doc/standards.texi (Standards): Link to unversioned
25017 cxx0x_status.html page.
25018
25019 2010-05-07 Iain Sandoe <iains@gcc.gnu.org>
25020
25021 PR target/43708
25022 * config/darwin-c.c (darwin_pragma_unused): Set DECL_READ_P
25023 in addition to TREE_USED, to avoid "set but unused" warnings.
25024
25025 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
25026
25027 * tree-ssa-loop-prefetch.c (TRIP_COUNT_TO_AHEAD_RATIO): New.
25028 (is_loop_prefetching_profitable): Do not insert prefetches
25029 when the trip count is not at least TRIP_COUNT_TO_AHEAD_RATIO
25030 times the prefetch ahead distance.
25031
25032 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
25033
25034 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable):
25035 Account for loop unrolling in the insn-to-prefetch ratio heuristic.
25036 (loop_prefetch_arrays): Pass to is_loop_prefetching_profitable
25037 the unroll_factor.
25038
25039 2010-05-07 Changpeng Fang <changpeng.fang@amd.com>
25040
25041 * tree-ssa-loop-prefetch.c (is_loop_prefetching_profitable): Dump
25042 a diagnostic info when the insn-to-mem ratio is too small.
25043
25044 2010-05-07 Richard Guenther <rguenther@suse.de>
25045
25046 * gcc.c (LINK_COMMAND_SPEC): Provide a resolution file to
25047 the linker plugin.
25048 (store_arg): Queue temp_filename for deletion instead of
25049 the whole argument.
25050
25051 2010-05-07 Richard Guenther <rguenther@suse.de>
25052
25053 * lto-wrapper.c (DUMPBASE_SUFFIX): Define.
25054 (run_gcc): Handle LTRANS phase invocation.
25055 * collect2.c (maybe_run_lto_and_relink): Do not set WPA_SAVE_LTRANS.
25056
25057 2010-05-07 Jakub Jelinek <jakub@redhat.com>
25058
25059 * tree.h (TREE_ADDRESSABLE): Adjust comment to say that
25060 this is also meaningful on PARM_DECLs and RESULT_DECLs.
25061
25062 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25063
25064 * config/mips/iris6.h (LINK_SPEC): Don't pass -init, -fini with -r.
25065
25066 2010-05-07 Richard Guenther <rguenther@suse.de>
25067
25068 PR tree-optimization/44020
25069 * tree-ssa-pre.c (execute_pre): Do not remove dead inserted
25070 code when PRE is not yet initialized.
25071
25072 2010-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25073
25074 * config/mips/dbxmdebug.h: Remove.
25075 * config.gcc (mips-sgi-irix6.5*): Remove mips/dbxmdebug.h.
25076
25077 2010-05-07 Shujing Zhao <pearly.zhao@oracle.com>
25078
25079 * c-typeck.c (build_binary_op): Warn ordered comparison of pointer
25080 with null pointer and also warn about ordered comparison of zero with
25081 pointer if -Wextra.
25082
25083 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
25084
25085 * graphite-blocking.c
25086 (pbb_strip_mine_profitable_p): Replace Value with mpz_t.
25087 * graphite-clast-to-gimple.c
25088 (clast_to_gcc_expression): Same.
25089 (precision_for_value): Same.
25090 (precision_for_interval): Same.
25091 (gcc_type_for_interval): Same.
25092 (graphite_create_new_guard): Same.
25093 (compute_bounds_for_level): Same.
25094 (graphite_create_new_loop_guard): Same.
25095 * graphite-interchange.c
25096 (build_linearized_memory_access): Same.
25097 (pdr_stride_in_loop): Same.
25098 (memory_strides_in_loop_1): Same.
25099 (memory_strides_in_loop): Same.
25100 (extend_scattering): Same.
25101 (psct_scattering_dim_for_loop_depth): Same.
25102 (pbb_number_of_iterations): Same.
25103 * graphite-poly.h
25104 (debug_iteration_domains): Same.
25105 * graphite-ppl.c
25106 (new_Cloog_Domain_from_ppl_Pointset_Powerset): Same.
25107 (ppl_set_inhomogeneous_gmp): Same.
25108 (ppl_strip_loop): Same.
25109 (ppl_lexico_compare_linear_expressions): Same.
25110 (ppl_read_polyhedron_matrix): Same.
25111 (ppl_max_for_le_pointset): Same.
25112 * graphite-ppl.h
25113 (ppl_read_polyhedron_matrix): Same.
25114 (tree_int_to_gmp): Same.
25115 (gmp_cst_to_tree): Same.
25116 (ppl_set_inhomogeneous): Same.
25117 (ppl_set_inhomogeneous_tree): Same.
25118 (ppl_set_coef): Same.
25119 (ppl_set_coef_tree): Same.
25120 * graphite-sese-to-poly.c
25121 (build_pbb_scattering_polyhedrons): Same.
25122 (build_scop_scattering): Same.
25123 (scan_tree_for_params_right_scev): Same.
25124 (scan_tree_for_params): Same.
25125 (find_params_in_bb): Same.
25126 (find_scop_parameters): Same.
25127 (add_upper_bounds_from_estimated_nit): Same.
25128 (build_loop_iteration_domains): Same.
25129 (add_condition_to_domain): Same.
25130 (pdr_add_memory_accesses): Same.
25131
25132 2010-05-05 Andreas Simbuerger <simbuerg@fim.uni-passau.de>
25133
25134 * graphite-blocking.c (pbb_strip_mine_profitable_p): Resolve
25135 CLooG's value_* macros to their respective mpz_* counterparts.
25136 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Same.
25137 (graphite_create_new_loop_guard): Same.
25138 * graphite-interchange.c (build_linearized_memory_access): Same.
25139 (pdr_stride_in_loop): Same.
25140 (memory_strides_in_loop_1): Same.
25141 (1st_interchange_profitable_p): Same.
25142 * graphite-poly.c (extend_scattering): Same.
25143 (psct_scattering_dim_for_loop_depth): Same.
25144 (pbb_number_of_iterations): Same.
25145 (pbb_number_of_iterations_at_time): Same.
25146 * graphite-poly.h (new_1st_loop): Same.
25147 * graphite-ppl.c (cloog_matrix_to_ppl_constraint): Same.
25148 (oppose_constraint): Same.
25149 (insert_constraint_into_matrix): Same.
25150 (ppl_set_inhomogeneous_gmp): Same.
25151 (ppl_set_coef_gmp): Same.
25152 (ppl_strip_loop): Same.
25153 (ppl_lexico_compare_linear_expressions): Same.
25154 (ppl_max_for_le_pointset): Same.
25155 (ppl_min_for_le_pointset): Same.
25156 (ppl_build_realtion): Same.
25157 * graphite-ppl.h (gmp_cst_to_tree): Same.
25158 (ppl_set_inhomogeneous): Same.
25159 (ppl_set_inhomogeneous_tree): Same.
25160 (ppl_set_coef): Same.
25161 (ppl_set_coef_tree): Same.
25162 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
25163 (build_scop_scattering): Same.
25164 (add_value_to_dim): Same.
25165 (scan_tree_for_params_right_scev): Same.
25166 (scan_tree_for_params_int): Same.
25167 (scan_tree_for_params): Same.
25168 (find_params_in_bb): Same.
25169 (find_scop_parameters): Same.
25170 (add_upper_bounds_from_estimated_nit): Same.
25171 (build_loop_iteration_domains): Same.
25172 (create_linear_expr_from_tree): Same.
25173 (add_condition_to_domain): Same.
25174 (pdr_add_memory_accesses): Same.
25175
25176 2010-05-06 Magnus Fromreide <magfr@lysator.liu.se>
25177 Jason Merrill <jason@redhat.com>
25178
25179 * c-common.c (c_common_reswords): Add nullptr.
25180 * c-common.h: Add RID_NULLPTR. Reorganize C++0x rids.
25181 * dwarf2out.c (is_base_type): Handle NULLPTR_TYPE.
25182 (gen_type_die_with_usage): Likewise.
25183 * dbxout.c (dbxout_type): Likewise.
25184 * sdbout.c (plain_type_1): Likewise.
25185
25186 2010-05-06 Jason Merrill <jason@redhat.com>
25187
25188 * gimplify.c (gimplify_expr): Set GS_ALL_DONE when appropriate.
25189 Don't change GS_OK to GS_ALL_DONE. Make sure that all cases set
25190 ret appropriately.
25191 (gimplify_compound_lval): Return GS_ALL_DONE as appropriate.
25192
25193 * gimplify.c (gimplify_modify_expr_rhs): Don't return GS_OK for
25194 stripping WITH_SIZE_EXPR.
25195 (gimplify_expr) [MODIFY_EXPR]: Trust GS_OK even if the rhs didn't
25196 change.
25197
25198 2010-05-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25199
25200 * config.gcc: Removed mips-sgi-irix5*, mips-sgi-irix6.[0-4]* from
25201 list of obsolete configurations.
25202 Disabled check for obsolete configurations.
25203 (mips-sgi-irix[56]*): Restrict to mips-sgi-irix6.5*.
25204 Removed support for previous versions.
25205 * config/mips/iris.h: Removed.
25206 * config/mips/iris5.h: Removed.
25207 * config/mips/iris6.h: Merged old iris.h contents.
25208 (TARGET_IRIX): Removed.
25209 (DRIVER_SELF_SPECS): Removed mabi=32.
25210 (IDENT_ASM_OP): Removed undef.
25211 (STARTFILE_SPEC): Removed mabi=32.
25212 (ENDFILE_SPEC): Likewise.
25213 (IRIX_SUBTARGET_LINK_SPEC): Likewise.
25214 (MACHINE_TYPE): Update for IRIX 6.5.
25215 * config/mips/mips.c (mips_build_builtin_va_list): Replaced
25216 TARGET_IRIX by TARGET_IRIX6.
25217 (mips_file_start): Likewise.
25218 (mips_output_external): Remove IRIX 5/6 O32 support.
25219 (mips_output_function_prologue): Likewise.
25220 * config/mips/mips.h (TARGET_GPWORD): Replaced TARGET_IRIX by
25221 TARGET_IRIX6.
25222 (TARGET_CPU_CPP_BUILTINS): Likewise.
25223 (TARGET_IRIX): Removed.
25224 * config/mips/t-iris6 (MULTILIB_OPTIONS): Removed mabi=32.
25225 (MULTILIB_DIRNAMES): Removed 32.
25226 (MULTILIB_OSDIRNAMES): Removed ../lib.
25227 * doc/install.texi (Prerequisites): Don't reference IRIX before 6.5.
25228 (Specific, mips-sgi-irix5): Document removal.
25229 (Specific, mips-sgi-irix6): Document IRIX 6.[0-4] and O32 ABI removal.
25230 Remove references to older IRIX 6 releases and the O32 ABI.
25231
25232 2010-05-06 Jakub Jelinek <jakub@redhat.com>
25233
25234 PR bootstrap/43994
25235 * df-problems.c (dead_debug_insert_before): Use *DF_REF_REAL_LOC
25236 instead of DF_REF_REAL_REG.
25237
25238 2010-05-06 Dave Korn <dave.korn.cygwin@gmail.com>
25239
25240 PR target/43888
25241 * config/i386/winnt.c (i386_pe_binds_local_p): Tweak weak symbol
25242 handling to still return true for x64 targets.
25243
25244 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
25245
25246 * config/m68k/uclinux.h (LIB_SPEC): Bring in sync with config/linux.h.
25247
25248 2010-05-06 Jan Hubicka <jh@suse.cz>
25249
25250 PR tree-optimization/43791
25251 * ipa-inline.c (update_caller_keys): Remove bogus
25252 disregard_inline_limits check.
25253
25254 2010-05-06 Michael Matz <matz@suse.de>
25255
25256 PR tree-optimization/43984
25257 * tree-ssa-pre.c (inserted_phi_names): Remove.
25258 (inserted_exprs): Change to bitmap.
25259 (create_expression_by_pieces): Set bits, don't append to vector.
25260 (insert_into_preds_of_block): Don't handle inserted_phi_names.
25261 (eliminate): Don't look at inserted_phi_names, remove deleted
25262 insns from inserted_exprs.
25263 (remove_dead_inserted_code): Adjust to use bitmaps instead of vectors.
25264 (init_pre, fini_pre): Allocate and free bitmaps.
25265 (execute_pre): Insert insns on edges before elimination.
25266
25267 2010-05-06 Maxim Kuvyrkov <maxim@codesourcery.com>
25268
25269 * tree.c (initializer_zerop): Handle STRING_CST.
25270
25271 2010-05-06 Manuel López-Ibáñez <manu@gcc.gnu.org>
25272
25273 PR 40989
25274 * doc/invoke.texi (Wimplicit): Document as C only.
25275 * opts.c (common_handle_option): Add argument kind.
25276 (handle_option): Rename as read_cmdline_option. Factor out code to...
25277 (handle_option): ... here. New.
25278 (handle_options): Rename as read_cmdline_options.
25279 (decode_options): Update call.
25280 (set_option): Use option index instead of option pointer. Classify
25281 diagnostics correctly.
25282 (enable_warning_as_error): Call handle_option.
25283 * opts.h (set_option): Update declaration.
25284 (handle_option): Declare.
25285 * langhooks.h (struct lang_hooks): Add argument kind to handle_option.
25286 * c.opt (Wimplicit,Wimplicit-int): Initialize to -1.
25287 * c-opts.c (set_Wimplicit): Delete.
25288 (c_family_lang_mask): New static constant.
25289 (c_common_handle_option): Add argument kind. Use handle_option
25290 instead of set_Wimplicit.
25291 (c_common_post_options): warn_implicit and warn_implicit_int
25292 are disabled by default.
25293 * c-common.c (warn_implicit): Do not define here.
25294 * c-common.h (warn_implicit): Do not declare here.
25295 (c_common_handle_option): Update declaration.
25296 * lto-opts.c (lto_reissue_options): Update call to set_option.
25297
25298 2010-05-06 Richard Guenther <rguenther@suse.de>
25299
25300 PR tree-optimization/43571
25301 * domwalk.c (walk_dominator_tree): Walk the dominator
25302 sons in more optimal order.
25303
25304 2010-05-06 Richard Guenther <rguenther@suse.de>
25305
25306 PR tree-optimization/43934
25307 * tree-ssa-loop-im.c (movement_possibility): Handle PHI nodes.
25308 (stmt_cost): Likewise.
25309 (extract_true_false_args_from_phi): New helper.
25310 (determine_max_movement): For PHI nodes verify we can hoist them
25311 and compute their cost.
25312 (determine_invariantness_stmt): Handle PHI nodes.
25313 (move_computations_stmt): Likewise. Hoist PHI nodes in
25314 if-converted form using COND_EXPRs.
25315 (move_computations): Return TODO_cleanup_cfg if we hoisted PHI nodes.
25316 (tree_ssa_lim): Likewise.
25317 * tree-flow.h (tree_ssa_lim): Adjust prototype.
25318 * tree-ssa-loop.c (tree_ssa_loop_im): Return todo.
25319
25320 2010-05-06 Richard Guenther <rguenther@suse.de>
25321
25322 PR tree-optimization/43987
25323 * tree-ssa-structalias.c (could_have_pointers): For possibly
25324 address-taken variables force pointers to be recorded.
25325 (create_variable_info_for_1): Likewise.
25326 (push_fields_onto_fieldstack): Pass in wheter all fields
25327 must have pointers.
25328 (find_func_aliases): Query types instead of vars whether
25329 they contain pointers where appropriate.
25330
25331 2010-05-06 Jan Hubicka <jh@suse.cz>
25332
25333 * cgraphbuild.c (record_reference_ctx): Add varpool_node.
25334 (record_reference, mark_address, mark_load, mark_store): Record
25335 references.
25336 (record_references_in_initializer): Update call of record_references.
25337 (rebuild_cgraph_edges): Remove all references before rebuiding.
25338 * cgraph.c (cgraph_create_node): Clear ref list.
25339 (cgraph_remove_node): Remove references.
25340 (dump_cgraph_node): Dump references.
25341 (cgraph_clone_node): Clone references.
25342 * cgraph.h: Include ipa-ref.h and ipa-ref-inline.h
25343 (struct cgraph_node, varpool_node): Add ref_lst.
25344 * ipa-ref.c: New file.
25345 * ipa-ref.h: New file.
25346 * ipa-ref-inline.h: New file.
25347 * lto-cgraph.c (output_varpool): Take cgrag node set argument.
25348 (referenced_from_other_partition_p): New function.
25349 (lto_output_varpool_node): Take set arugment; call
25350 referenced_from_other_partition.
25351 (lto_output_ref): New.
25352 (add_references): New.
25353 (output_refs): New.
25354 (output_cgraph): Compute boundary based on references; output refs.
25355 (output_varpool): Accept cgraph_node_set argument.
25356 (input_ref): New.
25357 (input_refs): New.
25358 (input_cgraph): Call input_refs.
25359 * lto-section-in.c (lto_section_name): Add refs.
25360 * Makefile.in (cgraph.h): Include ipa-ref.h and ipa-ref-inline.h
25361 (ipa-ref.o): New file.
25362 * varpool.c (varpool_node): Clear ipa ref list.
25363 (varpool_remove_node): Remove references.
25364 (dump_varpool_node): Dump references.
25365 (varpool_assemble_decl): Only compile finalized ones.
25366 (varpool_extra_name_alias): Initialize ref list.
25367 * lto-streamer.c (lto-get_section_name): Add .refs section.
25368 * lto-streamer.h (lto_section_type): Add LTO_section_refs.
25369 (referenced_from_other_partition_p): Declared.
25370
25371 2010-05-06 Ira Rosen <irar@il.ibm.com>
25372
25373 PR tree-optimization/43901
25374 * tree-vect-stmts.c (vectorizable_call): Assert that vector
25375 type is not NULL if it's transformation phase, and return
25376 FALSE if it's analysis.
25377 (vectorizable_conversion, vectorizable_operation,
25378 vectorizable_type_demotion, vectorizable_type_promotion): Likewise.
25379
25380 2010-05-05 Andrew Pinski <andrew.pinski@caviumnetworks.com>
25381
25382 * config/mips/mips.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
25383 Delete.
25384 * config/mips/mips.c (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P):
25385 New define.
25386 * config/mips/mips-protos.h
25387 (mips_small_register_classes_for_mode_p): Delete prototype.
25388
25389 2010-05-06 Bernd Schmidt <bernds@codesourcery.com>
25390
25391 * config/arm/arm.h (MAX_LDM_STM_OPS): New macro.
25392 * config/arm/arm.c (multiple_operation_profitable_p,
25393 compute_offset_order): New static functions.
25394 (load_multiple_sequence, store_multiple_sequence): Use them.
25395 Replace constant 4 with MAX_LDM_STM_OPS. Compute order[0] from
25396 memory offsets, not register numbers.
25397 (emit_ldm_seq, emit_stm_seq): Replace constant 4 with MAX_LDM_STM_OPS.
25398
25399 2010-05-05 Steven Bosscher <steven@gcc.gnu.org>
25400
25401 * stor-layout.c (pending_sizes): Change the type to VEC(tree,gc) *.
25402 (get_pending_sizes, put_pending_size, put_pending_sizes):
25403 Update the uses of pending_sizes.
25404 * c-decl.c (store_parm_decls): Likewise.
25405 * c-tree.h (struct c_arg_info): Likewise.
25406 * tree.h: Update the prototype for get_pending_sizes and
25407 put_pending_sizes.
25408
25409 2010-05-05 Jason Merrill <jason@redhat.com>
25410
25411 PR debug/43370
25412 * c-common.c (handle_aligned_attribute): Respect
25413 ATTR_FLAG_TYPE_IN_PLACE.
25414
25415 PR testsuite/43758
25416 * target.h (struct gcc_target): Add attribute_takes_identifier_p.
25417 * target_def.h (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
25418 (TARGET_INITIALIZER): Use it.
25419 * c-common.c (attribute_takes_identifier_p): Call it.
25420 * c-common.h: Update prototype.
25421 * config/rs6000/rs6000.c (rs6000_attribute_takes_identifier_p): New.
25422 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
25423
25424 2010-05-05 Jakub Jelinek <jakub@redhat.com>
25425
25426 PR debug/43950
25427 * dwarf2out.c (gen_compile_unit_die): Add DW_AT_identifier_case
25428 DW_ID_down_case for Fortran compilation units.
25429
25430 2010-05-05 Jan Hubicka <jh@suse.cz>
25431
25432 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Correctly
25433 handle aliases.
25434
25435 2010-05-05 Eric Botcazou <ebotcazou@adacore.com>
25436
25437 * gimplify.c (gimplify_return_expr): Gimplify the size expressions of
25438 a variable-sized RESULT_DECL.
25439
25440 2010-05-05 Maxim Kuvyrkov <maxim@codesourcery.com>
25441
25442 * doc/invoke.texi (-mfix-cortex-m3-ldrd): Move from ARC section to ARM.
25443
25444 2010-05-05 Jason Merrill <jason@redhat.com>
25445
25446 PR c++/43787
25447 * gimplify.c (gimplify_expr): Keep working if gimplify_modify_expr
25448 returns GS_OK.
25449 (gimplify_modify_expr_rhs): Return GS_OK if anything changed.
25450
25451 2010-05-05 Alexandre Oliva <aoliva@redhat.com>
25452 Jakub Jelinek <jakub@redhat.com>
25453
25454 PR debug/43478
25455 * df-problems.c (struct dead_debug_use, struct dead_debug): New.
25456 (dead_debug_init, dead_debug_finish): New functions.
25457 (dead_debug_add, dead_debug_insert_before): Likewise.
25458 (df_note_bb_compute): Initialize a dead_debug object, add dead
25459 debug uses to it, insert debug bind insns before death insns,
25460 reset debug insns that refer to pending uses at the end.
25461 * rtl.h (make_debug_expr_from_rtl): New prototype.
25462 * varasm.c (make_debug_expr_from_rtl): New function.
25463
25464 2010-05-05 Jan Hubicka <jh@suse.cz>
25465
25466 * lto-cgraph.c (output_varpool): Forward declare; work on encoder.
25467 (lto_varpool_encoder_new, lto_varpool_encoder_delete,
25468 lto_varpool_encoder_encode, lto_varpool_encoder_lookup,
25469 lto_varpool_encoder_deref, lto_varpool_encoder_size,
25470 lto_varpool_encoder_encode_initializer_p,
25471 lto_set_varpool_encoder_encode_initializer): New functions.
25472 (lto_output_cgraph): Take vset parameter too; compute varpool encoder;
25473 call output_varpool.
25474 (input_varpool_node): Do not always set analyzed.
25475 (input_cgraph_1): Return vector of cgraph nodes.
25476 (input_varpool_1): Return vector of varpools.
25477 (input_cgraph): Free the vectors.
25478 * lto-streamer-out.c (lto_output_ts_decl_common_tree_pointers):
25479 output only initializers needed.
25480 (lto_output): Only call output_cgraph.
25481 (produce_asm_for_decls): Call lto_varpool_encoder_delete.
25482 * lto-section-out.c (lto_new_out_decl_state): Initialize
25483 state->varpool_node_encoder.
25484 * lto-streamer.h (lto_varpool_encoder_d): New.
25485 (lto_out_decl_state, lto_file_decl_data): Add varpool_node_encoder.
25486 (lto_cgraph_encoder_delete, output_cgraph): Update prototype.
25487 (lto_varpool_encoder_deref, lto_varpool_encoder_lookup,
25488 lto_varpool_encoder_encode, lto_varpool_encoder_delete,
25489 lto_varpool_encoder_encode_initializer_p, lto_varpool_encoder_new):
25490 Declare.
25491 (output_varpool, input_varpool): Remove declarations.
25492
25493 2010-05-05 Jan Hubicka <jh@suse.cz>
25494
25495 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Alias of variable
25496 with body can prevail.
25497
25498 2010-05-05 Jan Hubicka <jh@suse.cz>
25499
25500 * lto-symtab.c (lto_symtab_merge_decls_1): Prefer declarations with
25501 size.
25502
25503 2010-05-05 Laurynas Biveinis <laurynas.biveinis@gmail.com>
25504
25505 * Makefile.in (build/gengtype.o): Add $(HASHTAB_H) to dependencies.
25506
25507 * gengtype.h (erro_at_line): Constify pos argument.
25508
25509 * gengtype.c: Include hashtab.h.
25510 (enum gc_used): Document GC_MAYBE_POINTED_TO.
25511 (error_at_line): Constify pos argument.
25512 (do_typedef): Initialize p->opt field.
25513 (get_file_gtfilename): Fix comment typo.
25514 (struct walk_type_data): Constify line field.
25515 (get_output_file_for_structure): New function.
25516 (write_local_func_for_structure): Constify orig_s argument.
25517 Use get_output_file_for_structure.
25518 (write_func_for_structure): Use get_output_file_for_structure.
25519 (INDENT): New define.
25520 (dump_pair, dump_type, dump_type_list, dump_typekind)
25521 (dump_gc_used, dump_options, dump_fileloc, dump_type_u_s)
25522 (dump_type_u_a, dump_type_u_param_struct, dump_everything): New
25523 functions.
25524 (seen_types): New variable.
25525 (main): New variable do_dump. Process "-d" command line option.
25526 Call dump_everything if dump requested.
25527
25528 2010-05-05 Jakub Jelinek <jakub@redhat.com>
25529
25530 * var-tracking.c (var_debug_decl): Save DECL_DEBUG_EXPR value
25531 in a temporary instead of invoking the macro multiple times.
25532 (track_expr_p): Likewise.
25533
25534 2010-05-04 Neil Vachharajani <nvachhar@google.com>
25535
25536 * doc/invoke.texi (-Wcoverage-mismatch): Updated documentation as
25537 per new semantics.
25538 * opts.c (decode_options): Enable -Werror=coverage-mismatch.
25539 * coverage.c (get_coverage_counts): Always emit a warning. Adjust
25540 conditions for printing notes.
25541 * common.opt (-Wcoverage-mismatch): Allow negative, default to
25542 true, update documentation.
25543 * Makefile.in (coverage.o): Add dependence on DIAGNOSTIC_H and intl.h.
25544
25545 2010-05-04 Jakub Jelinek <jakub@redhat.com>
25546
25547 PR c/43981
25548 * c-parser.c (c_parser_direct_declarator_inner): Call mark_exp_read
25549 on dimen.
25550
25551 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
25552
25553 PR target/43799
25554 * config/i386/i386.md (sse_prologue_save): Clobber CC register.
25555 (*sse_prologue_save_insn1): Likewise.
25556 (SSE prologue save splitter): Likewise.
25557
25558 2010-05-04 Eric Botcazou <ebotcazou@adacore.com>
25559
25560 * tree.c (free_lang_data_in_one_sizepos): New inline function.
25561 (free_lang_data_in_type): Call it on TYPE_{MIN|MAX}_VALUE of numerical
25562 types. Call it on TYPE_SIZE and TYPE_SIZE_UNIT of all types.
25563 (free_lang_data_in_decl): Call it on DECL_SIZE and DECL_SIZE_UNIT of
25564 all decls. Call it on DECL_FIELD_OFFSET of fields.
25565 (find_decls_types_r): Follow DECL_VALUE_EXPR.
25566 (iterative_hash_expr) <PLACEHOLDER_EXPR>: New case.
25567
25568 2010-05-04 Martin Jambor <mjambor@suse.cz>
25569
25570 * tree-sra.c (build_access_from_expr_1): The first parameter type
25571 changed to simple tree.
25572 (build_access_from_expr): Likewise, gsi parameter was eliminated.
25573 (scan_assign_result): Renamed to assignment_mod_result, enum elements
25574 renamed as well.
25575 (build_accesses_from_assign): Removed all parameters except for a
25576 simple gimple statement. Now returns a simple bool.
25577 (scan_function): All non-analysis parts moved to separate functions
25578 sra_modify_function_body and ipa_sra_modify_function_body. Removed all
25579 parameters and updated both callers.
25580 (sra_modify_expr): Removed parameter data.
25581 (sra_modify_function_body): New function.
25582 (perform_intra_sra): Call sra_modify_function_body to modify the
25583 function body.
25584 (replace_removed_params_ssa_names): Parameter data changed into
25585 adjustments vector.
25586 (sra_ipa_modify_expr): Likewise. Also removed unused parameter gsi and
25587 changed the parameter dont_convert to convert with the opposite
25588 meaning.
25589 (sra_ipa_modify_assign): Parameter data changed into adjustments
25590 vector, return value changed to bool.
25591 (ipa_sra_modify_function_body): New function.
25592 (sra_ipa_reset_debug_stmts): Updated a comment.
25593 (modify_function): Use ipa_sra_modify_function_body to modify function
25594 body.
25595
25596 2010-05-04 H.J. Lu <hongjiu.lu@intel.com>
25597
25598 PR middle-end/43671
25599 * alias.c (true_dependence): Handle the same VALUE in x and mem.
25600 (canon_true_dependence): Likewise.
25601 (write_dependence_p): Likewise.
25602
25603 2010-05-04 Jan Hubicka <jh@suse.cz>
25604
25605 * Makefile.in (cgraphbuild.o): Add dependency on ipa-utils.h
25606 * cgraphbuild.c: Include ipa-utils.h
25607 (record_reference_ctx): New struct.
25608 (record_reference): Simplify to work on initializers; not statements.
25609 (mark_address, mark_load, mark_store): New.
25610 (build_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
25611 walk PHI nodes too.
25612 (record_references_in_initializer): Update use of record_reference.
25613 (rebuild_cgraph_edges): Simplify using walk_stmt_load_store_addr_ops;
25614 walk PHI nodes too.
25615
25616 2010-05-04 Jan Hubicka <jh@suse.cz>
25617
25618 * lto-symtab.c (lto_cgraph_replace_node): Do not remove edges;
25619 node will be removed anyway.
25620 (lto_varpool_replace_node): Allow also unanalyzed nodes;
25621 relink aliases of node into prevailing node.
25622 * varpool.c (varpool_remove_node): Remove aliases properly;
25623 when removing node, remove all its aliases too; remove DECL_INITIAL
25624 of removed node; ggc_free the varpool node.
25625
25626 2010-05-04 Richard Guenther <rguenther@suse.de>
25627
25628 PR tree-optimization/43879
25629 * tree-ssa-structalias.c (alias_get_name): Use
25630 DECL_ASSEMBLER_NAME if available.
25631 (create_function_info_for): Return the varinfo node.
25632 (ipa_pta_execute): Associate same-body aliases and extra names
25633 with their origin nodes varinfo. Dump DECL_ASSEMBLER_NAME.
25634
25635 2010-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
25636
25637 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Remove static.
25638
25639 2010-05-04 Mikael Pettersson <mikpe@it.uu.se>
25640
25641 PR bootstrap/43964
25642 * ira-color.c (assign_hard_reg): Declare rclass and add_cost
25643 only if HONOR_REG_ALLOC_ORDER is not defined.
25644
25645 2010-05-04 Richard Guenther <rguenther@suse.de>
25646
25647 PR tree-optimization/43949
25648 * tree-vrp.c (extract_range_from_binary_expr): Only handle
25649 TRUNC_MOD_EXPR.
25650
25651 2010-04-26 Jason Merrill <jason@redhat.com>
25652
25653 * c.opt (-fstrict-enums): New.
25654 * doc/invoke.texi (C++ Dialect Options): Document -fstrict-enums.
25655
25656 2010-05-03 David Ung <davidu@mips.com>
25657 James E. Wilson <wilson@codesourcery.com>
25658
25659 * config/mips/mips.c (mips_output_division): If GENERATE_DIVIDE_TRAPS,
25660 emit the trap instruction before the divide for TUNE_74K.
25661
25662 2010-05-03 Steven Bosscher <steven@gcc.gnu.org>
25663
25664 * doc/tm.texi (defmac SMALL_REGISTER_CLASSES): Remove.
25665 (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): Add documentation,
25666 based on the above, for new target hook.
25667
25668 * hooks.c (hook_bool_mode_true): New generic hook.
25669 * hooks.h (hook_bool_mode_true): Add prototype.
25670
25671 * target.h (struct gcc_target): Add small_register_classes_for_mode_p
25672 target hook.
25673 * target-def.h (TARGET_SMALL_REGISTER_CLASSES_FOR_MODE_P): New default
25674 target hook, set to hook_bool_mode_false.
25675 * regs.h: Remove default definition of SMALL_REGISTER_CLASSES.
25676 * reload.c (push_secondary_reload): Replace SMALL_REGISTER_CLASSES
25677 with targetm.small_register_classes_for_mode_p.
25678 (find_reusable_reload): Likewise.
25679 (combine_reloads): Likewise.
25680 * reload1.c (reload_as_needed): Likewise.
25681 * cse.c (approx_reg_cost_1, hash_rtx_cb): Likewise.
25682 * ifcvt.c (noce_process_if_block, check_cond_move_block,
25683 dead_or_predicable): Likewise.
25684 * regmove.c (optimize_reg_copy_1): Likewise.
25685 * calls.c (prepare_call_address): Likewise.
25686 (precompute_register_parameters): Likewise.
25687
25688 * config/sh/sh.h: Replace SMALL_REGISTER_CLASSES with new target
25689 hook definition.
25690 * config/sh/sh.c (sh_small_register_classes_for_mode_p): Add
25691 implementation of the hook that considers all register classes
25692 small except for SH64.
25693 (sh_override_options): Use the new hook.
25694 * config/sh/sh-protos.h (sh_small_register_classes_for_mode_p):
25695 Add prototype.
25696
25697 * config/arm/arm.h: Replace SMALL_REGISTER_CLASSES with new target
25698 hook definition.
25699 * config/arm/arm.c (arm_small_register_classes_for_mode_p): Add
25700 implementation of the hook that considers all register classes
25701 small for THUMB1.
25702 * config/arm/arm-protos.h (arm_small_register_classes_for_mode_p):
25703 Add prototype.
25704
25705 * config/mips/mips.h: Replace SMALL_REGISTER_CLASSES with new target
25706 hook definition.
25707 * config/mips/mips.c (mips_small_register_classes_for_mode_p): Add
25708 implementation of the hook that considers all register classes
25709 small for MIPS16.
25710 * config/mips/mips-protos.h (mips_small_register_classes_for_mode_p):
25711 Add prototype.
25712
25713 * config/i386/i386.h: Replace SMALL_REGISTER_CLASSES with new target
25714 hook definition.
25715 * config/m32c/m32c.h: Likewise.
25716 * config/pdp11/pdp11.h: Likewise.
25717 * config/avr/avr.h: Likewise.
25718 * config/xtensa/xtensa.h: Likewise.
25719 * config/m68hc11/m68hc11.h: Likewise.
25720 * config/mn10300/mn10300.h: Likewise.
25721 * config/mcore/mcore.h: Likewise.
25722 * config/h8300/h8300.h: Likewise.
25723 * config/bfin/bfin.h: Likewise.
25724
25725 * config/iq2000/iq2000.h: Remove SMALL_REGISTER_CLASSES definition.
25726 * config/rx/rx.h: Remove SMALL_REGISTER_CLASSES definition.
25727
25728 2010-05-03 Anatoly Sokolov <aesok@post.ru>
25729
25730 * double-int.h (tree_to_double_int): Remove macro.
25731 (double_int_to_tree, double_int_fits_to_tree_p): Move prototypes ...
25732 * tree.h (double_int_to_tree, double_int_fits_to_tree_p): ... here.
25733 (tree_to_double_int): New function.
25734 * double-int.c (double_int_to_tree, double_int_fits_to_tree_p):
25735 Move ...
25736 * tree.c (double_int_to_tree, double_int_fits_to_tree_p): ... here.
25737
25738 2010-05-03 Richard Guenther <rguenther@suse.de>
25739
25740 PR tree-optimization/43971
25741 * tree-ssa-structalias.c (get_constraint_for_1): Fix
25742 constraints in the !flag_delete_null_pointer_checks case.
25743
25744 2010-05-03 Jakub Jelinek <jakub@redhat.com>
25745
25746 PR debug/43972
25747 * config/i386/i386.c (ix86_delegitimize_address): Make sure the
25748 result mode matches original rtl mode.
25749
25750 2010-05-03 Dave Korn <dave.korn.cygwin@gmail.com>
25751
25752 PR target/43888
25753 * config/i386/winnt.c (i386_pe_binds_local_p): Handle weak decls.
25754
25755 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
25756
25757 * config/i386/i386.c (ix86_target_string): Output 'flags', not 'isa',
25758 when processing flag options.
25759
25760 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
25761
25762 * gcov-iov.c (main): Change format string placeholder
25763 from %#08x to 0x%08x.
25764 * genchecksum.c (dosum): Change format string placeholder
25765 from %#02x to 0x%02x.
25766
25767 2010-05-02 Richard Guenther <rguenther@suse.de>
25768
25769 PR tree-optimization/43879
25770 * tree-tailcall.c (find_tail_calls): Clobbers also prevent tail calls.
25771
25772 2010-05-02 Bruno Haible <bruno@clisp.org>
25773
25774 * doc/extend.texi (Function Attributes): Fix a typo.
25775
25776 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
25777
25778 Revert:
25779 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Change format string
25780 placeholder from 0x%x to %#x.
25781 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
25782 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
25783 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
25784 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
25785 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
25786 * config/i386/i386.c (ix86_target_string): Ditto.
25787 * config/i386/i386.c (output_pic_addr_const): Ditto.
25788 (print_operand): Ditto.
25789
25790 2010-05-02 Uros Bizjak <ubizjak@gmail.com>
25791
25792 * vmsdbgout.c (ASM_OUTPUT_DEBUG_DATA1): Change format string
25793 placeholder from 0x%x to %#x.
25794 (ASM_OUTPUT_DEBUG_DATA1): Ditto.
25795 (ASM_OUTPUT_DEBUG_DATA4): Ditto.
25796 (ASM_OUTPUT_DEBUG_DATA): Ditto.
25797 (ASM_OUTPUT_DEBUG_ADDR_DATA): Ditto.
25798 (ASM_OUTPUT_DEBUG_DATA8): Ditto.
25799 * optc-gen.awk: Ditto.
25800 * hwint.h (HOST_WIDE_INT_PRINT_DOUBLE_HEX): Ditto.
25801 (HOST_WIDE_INT_PRINT_HEX): Ditto.
25802 (HOST_WIDEST_INT_PRINT_HEX): Ditto.
25803 (HOST_WIDEST_INT_PRINT_DOUBLE_HEX): Ditto.
25804
25805 2010-05-01 Anatoly Sokolov <aesok@post.ru>
25806
25807 * target.h (struct calls): Add function_value_regno_p field.
25808 * target-def.h (TARGET_FUNCTION_VALUE_REGNO_P): Define.
25809 (TARGET_INITIALIZER): Use TARGET_FUNCTION_VALUE_REGNO_P.
25810 * targhooks.c (default_function_value_regno_p): New function.
25811 * targhooks.h (default_function_value_regno_p): Declare function.
25812 * rtlanal.c (keep_with_call_p): Use function_value_regno_p hook.
25813 * builtins.c. (apply_result_size): (Ditto.).
25814 * combine.c. (likely_spilled_retval_p): (Ditto.).
25815 * mode-switching.c. Include 'target.h'.
25816 (create_pre_exit): Use function_value_regno_p hook.
25817 * Makefile.in (mode-switching.o): Add dependency on TARGET_H.
25818 * doc/tm.texi (FUNCTION_VALUE_REGNO_P,
25819 TARGET_FUNCTION_VALUE_REGNO_P): Revise documentation.
25820
25821 * config/i386/i386.h (TARGET_FUNCTION_VALUE_REGNO_P): Remove macro.
25822 * config/i386/i386.c (TARGET_FUNCTION_VALUE_REGNO_P): Define macro.
25823 (ix86_function_value_regno_p): Declare as static, change argument
25824 type to const unsigned int.
25825 * config/i386/i386-protos.h (ix86_function_value_regno_p): Remove.
25826
25827 2010-05-01 Richard Guenther <rguenther@suse.de>
25828
25829 PR tree-optimization/43949
25830 * tree-vrp.c (ssa_name_nonnegative_p): Return true for unsigned
25831 types.
25832 (extract_range_from_binary_expr): Handle *_MOD_EXPR.
25833
25834 2010-05-01 Anatoly Sokolov <aesok@post.ru>
25835
25836 * rtl.h (CONST_DOUBLE_P): Define.
25837 (rtx_to_double_int): Declare.
25838 * emit-rtl.c (rtx_to_double_int): New function.
25839 * dwarf2out.c (insert_double): New function.
25840 (loc_descriptor, add_const_value_attribute): Clean up, use
25841 rtx_to_double_int and insert_double functions.
25842
25843 2010-05-01 Jonathan Wakely <jwakely.gcc@gmail.com>
25844
25845 * doc/extend.texi (Inline): Add missing return keyword to examples.
25846 (Function Attributes, Variable Attributes, Pragmas): Hyphenate
25847 "command-line".
25848
25849 2010-04-30 Eric Botcazou <ebotcazou@adacore.com>
25850
25851 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Check the alignment of
25852 the variable part of the offset as well. Use highest_pow2_factor for
25853 all alignment checks.
25854
25855 2010-04-30 Richard Guenther <rguenther@suse.de>
25856
25857 PR tree-optimization/43879
25858 * tree-ssa-structalias.c (type_could_have_pointers): Functions
25859 can have pointers.
25860
25861 2010-04-30 Jan Hubicka <jh@suse.cz>
25862
25863 * lto-symtab.c (lto_symtab_resolve_can_prevail_p): Chose var with
25864 varpool.
25865 (lto_symtab_merge_decls_1): Remove logic looking for an initializer.
25866
25867 2010-04-30 Jan Hubicka <jh@suse.cz>
25868
25869 * cgraph.h (cgraph_node_set_nonempty_p, varpool_node_set_nonempty_p):
25870 New.
25871 * lto-cgraph.c (input_cgraph): Remove call to lto_mark_file_for_ltrans.
25872 * lto-streamer.h (lto_file_decl_data): Remove needs_ltrans_p.
25873 (lto_file_needs_ltrans_p, lto_mark_file_for_ltrans,
25874 cgraph_node_set_needs_ltrans_p): Remove.
25875
25876 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
25877
25878 * sdbout.c: Include vec.h, do not include varray.h.
25879 (deferred_global_decls, sdbout_global_decl,
25880 sdbout_finish, sdbout_init): Use VEC instead of VARRAY.
25881 * toplev.c: Do not include varray.h.
25882 (dump_memory_report): Do not dump VARRAY statistics.
25883 * gengtype.c (open_base_file): Ignore varray.h.
25884 * Makefile.in: Update for abovementioned changes.
25885 Remove all traces of varray.c and varray.h.
25886 * varray.c: Remove file.
25887 * varray.h: Remove file.
25888
25889 2010-04-30 Jan Hubicka <jh@suse.cz>
25890
25891 * lto-cgraph.c (lto_output_varpool_node): Always output constant pool
25892 references.
25893
25894 2010-04-30 Jan Hubicka <jh@suse.cz>
25895
25896 * tree-profile.c (tree_init_ic_make_global_vars): Mark new decls as
25897 needed.
25898
25899 2010-04-30 Richard Guenther <rguenther@suse.de>
25900
25901 * tree-ssa-structalias.c (get_constraint_for_1): Generate
25902 constraints for CONSTRUCTOR.
25903
25904 2010-04-30 Richard Guenther <rguenther@suse.de>
25905
25906 PR lto/43946
25907 * passes.c (init_optimization_passes): Move pass_ipa_free_lang_data
25908 first after all lowering passes.
25909
25910 2010-04-30 Steven Bosscher <steven@gcc.gnu.org>
25911
25912 * toplev.c: Include varray.h for statistics dumping.
25913 * tree.h: Do not declare varray_head_tag.
25914 * tree-into-ssa.c, tree-ssa-uninit.c, tree-phinodes.c, omega.c,
25915 regs.h, lto-cgraph.c, tree-ssa-loop-ivopts.c, tree-nomudflap.c,
25916 c-objc-common.c, lto-streamer-out.c, tree-ssa-propagate.c,
25917 gimple-low.c, c-semantics.c, dwarf2out.c, lto-streamer-in.c,
25918 lto-section-in.c, alias.c, tree-if-conv.c, gimplify.c, ggc-zone.c,
25919 tree-ssa.c, tree-ssa-loop-prefetch.c, integrate.h, c-gimplify.c,
25920 c-common.c, c-common.h, reg-stack.c, basic-block.h,
25921 tree-ssa-structalias.c, lto-section-out.c, tree-ssanames.c: Do not
25922 include varray.h.
25923 * Makefile.in: Update for abovementioned changes.
25924
25925 2010-04-30 Jakub Jelinek <jakub@redhat.com>
25926
25927 PR debug/43942
25928 * tree.c (auto_var_in_fn_p): Return false for DECL_EXTERNAL vars.
25929
25930 2010-04-30 Hariharan Sandanagobalane <hariharan@picochip.com>
25931
25932 * config/picochip/picochip.c (picochip_legitimize_address): Define.
25933 Use this function to do machine-specific conversion.
25934 (picochip_legitimize_reload_address): Likewise.
25935 (picochip_legitimate_address_p): Check valid base register only if
25936 strict.
25937 (picochip_check_conditional_copy): Check for modw only if opnd is
25938 register.
25939 * config/picochip/picochip.h (LEGITIMIZE_RELOAD_ADDRESS): Use this
25940 to call the function in c.
25941 * config/picochip/picochip-protos.h
25942 (picochip_legitimize_reload_address): Define.
25943 * config/picochip/picochip.md (supported_compare1): Define.
25944
25945 2010-04-30 Jan Hubicka <jh@suse.cz>
25946
25947 * cgraph.h (cgraph_local_info): Remove for_functions_valid.
25948 (cgraph_global_info): Remove inlined.
25949 (LTO_cgraph_tag_names): Remove.
25950 (LTO_cgraph_tags, LCC_NOT_FOUND): Move to ...
25951 * lto-cgraph.c (LTO_cgraph_tags, LCC_NOT_FOUND): ... here;
25952 simplify cgraph tags and document.
25953 (lto_output_node): Use only LTO_cgraph_unavail_node and
25954 LTO_cgraph_analyzed_node; Do not save analzed, reachable,
25955 for_functions_valid, global info, process and output flags.
25956 (input_overwrite_node): Initialize estimated stack size and
25957 estimated growth. Do not read flags we no longer store.
25958 (input_node): Likewise do not read info no longer stored.
25959 * ipa-inline.c (cgraph_mark_inline_edge): Do not set global.inlined
25960 flag.
25961
25962 2010-04-30 Richard Guenther <rguenther@suse.de>
25963
25964 PR tree-optimization/43879
25965 * tree-ssa-structalias.c (get_constraint_for_1): Properly
25966 handle non-zero initializers.
25967
25968 2010-04-30 Richard Guenther <rguenther@suse.de>
25969
25970 * builtins.c (fold_builtin_1): Delete free (0).
25971
25972 2010-04-29 Jan Hubicka <jh@suse.cz>
25973
25974 * gengtype.c (open_base_files): Add lto-streamer.h
25975 * cgraph.h (cgraph_local_info): lto_file_data is now in GGC.
25976 (pass_ipa_cp): GGC collect.
25977 * toplev. (compile_file): Do not output symbols.
25978 * ipa-inline.c (pass_ipa_inline): Add ggc collect.
25979 * timevar.def (TV_VARPOOL, TV_IPA_LTO_DECL_INIT_IO,
25980 TV_IPA_LTO_DECL_MERGE, TV_IPA_LTO_CGRAPH_MERGE, TV_VAROUT): New.
25981 * lto-section-in.c: Include ggc.h
25982 (lto_new_in_decl_state): Alloc in GGC.
25983 (lto_delete_in_decl_state): Likewise.
25984 * ipa.c (pass_ipa_function_visibility, pass_ipa_whole_program):
25985 Collect.
25986
25987 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
25988
25989 PR target/42895
25990 * doc/tm.texi (ADJUST_REG_ALLOC_ORDER): Renamed from
25991 ORDER_REGS_FOR_LOCAL_ALLOC. All instances of this macro changed.
25992 (HONOR_REG_ALLOC_ORDER): Describe new macro.
25993 * ira.c (setup_alloc_regs): Use ADJUST_REG_ALLOC_ORDER if defined.
25994 * ira-color.c (assign_hard_reg): Take prologue/epilogue costs into
25995 account only if HONOR_REG_ALLOC_ORDER is not defined.
25996 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Define.
25997 * system.h (ORDER_REGS_FOR_LOCAL_ALLOC): Poison.
25998
25999 2010-04-29 Jon Grant <04@jguk.org>
26000
26001 * collect2.c (vflag): Change type from int to bool.
26002 (debug): Likewise.
26003 (helpflag): New global bool.
26004 (main): Set vflag and debug with boolean, not integer truth values.
26005 Accept new "--help" option and output usage text if found.
26006 * collect2.h (vflag): Update prototype.
26007 (debug): Likewise.
26008
26009 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
26010
26011 PR bootstrap/43936
26012 * plugin.h (flag_plugin_added): Moved out of invoke_plugin_callbacks.
26013
26014 2010-04-29 Richard Guenther <rguenther@suse.de>
26015
26016 PR bootstrap/43935
26017 * plugin.h (invoke_plugin_callbacks): Annotate arguments
26018 with ATTRIBUTE_UNUSED.
26019
26020 2010-04-29 H.J. Lu <hongjiu.lu@intel.com>
26021
26022 PR target/43921
26023 * config/i386/i386.c (get_some_local_dynamic_name): Replace
26024 INSN_P with NONDEBUG_INSN_P.
26025 (distance_non_agu_define): Likewise.
26026 (distance_agu_use): Likewise.
26027
26028 2010-04-29 Bernd Schmidt <bernds@codesourcery.com>
26029
26030 From Dominique d'Humieres <dominiq@lps.ens.fr>
26031 PR bootstrap/43858
26032 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs to compute
26033 test_set.
26034
26035 2010-04-29 Brian Hackett <bhackett1024@gmail.com>
26036
26037 * plugin.h (invoke_plugin_callbacks): New inline function.
26038 * plugin.c (flag_plugin_added): New global flag.
26039 (add_new_plugin): Initialize above flag.
26040 (invoke_plugin_callbacks): Rename to ...
26041 (invoke_plugin_callbacks_full): ... this.
26042
26043 2010-04-28 Jan Hubicka <jh@suse.cz>
26044
26045 * lto-symtab.c (lto_symtab_entry_def) Add vnode.
26046 (lto_varpool_replace_node): New.
26047 (lto_symtab_resolve_symbols): Resolve varpool nodes.
26048 (lto_symtab_merge_decls_1): Prefer decls with varpool node.
26049 (lto_symtab_merge_cgraph_nodes_1): Merge varpools.
26050 * cgraph.h (varpool_node_ptr): New type.
26051 (varpool_node_ptr): New vector.
26052 (varpool_node_set_def): New structure.
26053 (varpool_node_set): New type.
26054 (varpool_node_set): New vector.
26055 (varpool_node_set_element_def): New structure.
26056 (varpool_node_set_element, const_varpool_node_set_element): New types.
26057 (varpool_node_set_iterator): New type.
26058 (varpool_node): Add prev pointers, add used_from_other_partition,
26059 in_other_partition.
26060 (varpool_node_set_new, varpool_node_set_find, varpool_node_set_add,
26061 varpool_node_set_remove, dump_varpool_node_set, debug_varpool_node_set,
26062 varpool_get_node, varpool_remove_node): Declare.
26063 (vsi_end_p, vsi_next, vsi_node, vsi_start, varpool_node_in_set_p,
26064 varpool_node_set_size): New inlines.
26065 * cgraph.c (dump_cgraph_node): Dump asm names of aliases.
26066 * tree-pass.h (varpool_node_set_def): Forward declare.
26067 (ipa_opt_pass_d): Summary writting takes vnode sets too.
26068 (ipa_write_optimization_summaries): Update prototype.
26069 * ipa-cp.c (ipcp_write_summary): Update.
26070 * ipa-reference.c (ipa_reference_write_summary): Update.
26071 * lto-cgraph.c (lto_output_varpool_node): New static function.
26072 (output_varpool): New function.
26073 (input_varpool_node): New static function.
26074 (input_varpool_1): New function.
26075 (input_cgraph): Input varpool.
26076 * ipa-pure-const.c (pure_const_write_summary): Update.
26077 * lto-streamer-out.c (lto_output): Update, output varpool too.
26078 (write_global_stream): Kill WPA hack.
26079 (produce_asm_for_decls): Update.
26080 (output_alias_pair_p): Handle variables.
26081 (output_unreferenced_globals): Output only needed partition of varpool.
26082 * ipa-inline.c (inline_write_summary): Update.
26083 * lto-streamer-in.c (lto_input_tree_ref, lto_input_tree): Do not build
26084 cgraph.
26085 * lto-section-in.c (lto_section_name): Add varpool and jump funcs.
26086 * ipa.c (hash_varpool_node_set_element, eq_varpool_node_set_element,
26087 varpool_node_set_new, varpool_node_set_add,
26088 varpool_node_set_remove, varpool_node_set_find, dump_varpool_node_set,
26089 debug_varpool_node_set): New functions.
26090 * passes.c (rest_of_decl_compilation): when in LTO do not finalize.
26091 (execute_one_pass): Process new decls too.
26092 (ipa_write_summaries_2): Pass around vsets.
26093 (ipa_write_summaries_1): Likewise.
26094 (ipa_write_summaries): Build vset; be more selective about cgraph nodes
26095 to add.
26096 (ipa_write_optimization_summaries_1): Pass around vsets.
26097 (ipa_write_optimization_summaries): Likewise.
26098 * varpool.c (varpool_get_node): New.
26099 (varpool_node): Update doubly linked lists.
26100 (varpool_remove_node): New.
26101 (dump_varpool_node): More dumping.
26102 (varpool_enqueue_needed_node): Update doubly linked lists.
26103 (decide_is_variable_needed): Kill ltrans hack.
26104 (varpool_finalize_decl): Kill lto hack.
26105 (varpool_assemble_decl): Skip decls in other partitions.
26106 (varpool_assemble_pending_decls): Update doubly linkes lists.
26107 (varpool_empty_needed_queue): Likewise.
26108 (varpool_extra_name_alias): Likewise.
26109 * lto-streamer.c (lto_get_section_name): Add vars section.
26110 * lto-streamer.h (lto_section_type): Update.
26111 (output_varpool, input_varpool): Declare.
26112
26113 2010-04-28 Mike Stump <mikestump@comcast.net>
26114
26115 * config/i386/darwin.h (CC1_SPEC): Ignore -mdynamic-no-pic for now.
26116
26117 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
26118
26119 * lto-streamer-in.c (unpack_ts_type_value_fields): Replace test for
26120 record or union type with RECORD_OR_UNION_TYPE_P predicate.
26121 (lto_input_ts_type_tree_pointers): Likewise.
26122 * lto-streamer-out.c (pack_ts_type_value_fields): Likewise.
26123 (lto_output_ts_type_tree_pointers): Likewise.
26124
26125 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
26126
26127 Uniquization of constants at the Tree level
26128 * tree.h (DECL_IN_CONSTANT_POOL): New macro.
26129 (tree_decl_with_vis): Add in_constant_pool bit, move shadowed_for_var_p
26130 bit to the end.
26131 (tree_output_constant_def): Declare.
26132 * gimplify.c (gimplify_init_constructor): When using block copy, first
26133 uniquize the constant constructor on the RHS.
26134 * lto-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Deal with
26135 DECL_IN_CONSTANT_POOL flag.
26136 * lto-streamer-out.c (pack_ts_decl_with_vis_value_fields): Likewise.
26137 * varasm.c (make_decl_rtl): Deal with variables belonging to the global
26138 constant pool.
26139 (assemble_variable): Deal with symbols belonging to the tree constant
26140 pool.
26141 (get_constant_section): Add ALIGN parameter and simplify.
26142 (build_constant_desc): Build a VAR_DECL and attach it to the symbol.
26143 (assemble_constant_contents): Use the expression of the VAR_DECL.
26144 (output_constant_def_contents): Use the alignment of the VAR_DECL.
26145 (tree_output_constant_def): New global function.
26146 (mark_constant): Use the expression of the VAR_DECL.
26147 (place_block_symbol): Use the alignment of the VAR_DECL and the size of
26148 its expression.
26149 (output_object_block): Likewise and assemble the expression.
26150
26151 2010-04-28 Eric Botcazou <ebotcazou@adacore.com>
26152
26153 * lto-streamer.c [LTO_STREAMER_DEBUG] (tree_htab, tree_hash_entry,
26154 hash_tree, eq_tree): New tree hash table.
26155 (lto_streamer_init) [LTO_STREAMER_DEBUG]: Initialize it.
26156 [LTO_STREAMER_DEBUG] (lto_orig_address_map, lto_orig_address_get,
26157 lto_orig_address_remove): Reimplement.
26158
26159 2010-04-28 Xinliang David Li <davidxl@google.com>
26160
26161 PR c/42643
26162 * tree-ssa-uninit.c (can_skip_redundant_opnd): New function.
26163 (compute_uninit_opnds_pos): New function.
26164 (is_non_loop_exit_postdominating): New function.
26165 (compute_control_dep_chain): New function.
26166 (find_pdom): New function.
26167 (convert_control_dep_chain_into_preds): New function.
26168 (find_predicates): New function.
26169 (find_control_equiv_block): New function.
26170 (collect_phi_def_edges): New function.
26171 (find_def_preds): New function.
26172 (find_dom): New function.
26173 (dump_predicates): New function.
26174 (get_cmp_code): New function.
26175 (is_value_included_in): New function.
26176 (find_matching_predicate_in_rest_chains): New function.
26177 (use_pred_not_overlap_with_undef_path_pred): New function.
26178 (is_use_properly_guarded): New function.
26179 (normalize_cond_1): New function.
26180 (is_and_or_or): New function.
26181 (normalize_cond): New function.
26182 (is_gcond_subset_of): New function.
26183 (is_subset_of_any): New function.
26184 (is_or_set_subset_of): New function.
26185 (is_and_set_subset_of): New function.
26186 (is_norm_cond_subset_of): New function.
26187 (is_pred_expr_subset_of): New function.
26188 (is_pred_chain_subset_of): New function.
26189 (is_included_in): New function.
26190 (is_superset_of): New function.
26191 (find_uninit_use): New function.
26192 (warn_uninitialized_phi): New function.
26193 (compute_possibly_undefined_names): New function.
26194 (ssa_undefined_value_p): New function.
26195 (execute_late_warn_uninitialized): New function.
26196 * tree-ssa.c (ssa_undefined_value_p): Removed.
26197 (warn_uninit): Changed to extern.
26198 (warn_uninitialized_phi): Removed.
26199 (warn_uninitialized_vars): Changed to extern.
26200 (execute_late_warn_uninitialized): Removed
26201 * tree-flow.h: Add new prototypes.
26202 * timevar.def: Add new time variable.
26203 * Makefile.in: Add new build file.
26204
26205 2010-04-28 Uros Bizjak <ubizjak@gmail.com>
26206
26207 * config/alpha/elf.h (ASM_DECLARE_OBJECT_NAME): Use gnu_unique_object
26208 type if available.
26209
26210 2010-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26211
26212 PR target/22224
26213 * config/alpha/osf5.h (ASM_OUTPUT_LOCAL): Redefine.
26214
26215 2010-04-28 Martin Jambor <mjambor@suse.cz>
26216
26217 * cgraph.h (struct cgraph_node): New field indirect_calls.
26218 (struct cgraph_indirect_call_info): New type.
26219 (struct cgraph_edge): Removed field indirect_call. New fields
26220 indirect_info, indirect_inlining_edge and indirect_unknown_callee.
26221 (cgraph_create_indirect_edge): Declare.
26222 (cgraph_make_edge_direct): Likewise.
26223 (enum LTO_cgraph_tags): New item LTO_cgraph_indirect_edge.
26224 * ipa-prop.h (struct ipa_param_call_note): Removed.
26225 (struct ipa_node_params): Removed field param_calls.
26226 (ipa_create_all_structures_for_iinln): Declare.
26227 * cgraph.c: Described indirect edges and uids in initial comment.
26228 (cgraph_add_edge_to_call_site_hash): New function.
26229 (cgraph_edge): Search also among the indirect edges, use
26230 cgraph_add_edge_to_call_site_hash to add edges to the call site hash.
26231 (cgraph_set_call_stmt): Possibly turn an indirect edge into a direct
26232 one, use cgraph_add_edge_to_call_site_hash to add edges to the call
26233 site hash.
26234 (initialize_inline_failed): Assign a reason to indirect edges.
26235 (cgraph_create_edge_1): New function.
26236 (cgraph_create_edge): Moved some functionality to
26237 cgraph_create_edge_1.
26238 (cgraph_create_indirect_edge): New function.
26239 (cgraph_edge_remove_callee): Add an assert checking for
26240 non-indirectness.
26241 (cgraph_edge_remove_caller): Special-case indirect edges.
26242 (cgraph_remove_edge): Likewise.
26243 (cgraph_set_edge_callee): New function.
26244 (cgraph_redirect_edge_callee): Use cgraph_set_edge_callee.
26245 (cgraph_make_edge_direct): New function.
26246 (cgraph_update_edges_for_call_stmt_node): Do nothing only when also
26247 the declaration of the call statement matches.
26248 (cgraph_node_remove_callees): Special-case indirect edges.
26249 (cgraph_clone_edge): Likewise.
26250 (cgraph_clone_node): Clone also the indirect edges.
26251 (dump_cgraph_node): Dump indirect_inlining_edge flag instead of
26252 indirect_call, dump count of indirect_calls edges.
26253 * ipa-prop.c (iinlining_processed_edges): New variable.
26254 (ipa_note_param_call): Create indirect edges instead of
26255 creating notes. New parameter node.
26256 (ipa_analyze_call_uses): New parameter node, pass it on to
26257 ipa_note_param_call.
26258 (ipa_analyze_stmt_uses): Likewise.
26259 (ipa_analyze_params_uses): Pass node to ipa_analyze_stmt_uses.
26260 (print_edge_addition_message): Work on edges rather than on notes.
26261 (update_call_notes_after_inlining): Likewise, renamed to
26262 update_indirect_edges_after_inlining.
26263 (ipa_create_all_structures_for_iinln): New function.
26264 (ipa_free_node_params_substructures): Do not free notes.
26265 (ipa_edge_duplication_hook): Propagate bits within
26266 iinlining_processed_edges bitmap.
26267 (ipa_node_duplication_hook): Do not duplicate notes.
26268 (free_all_ipa_structures_after_ipa_cp): Renamed to
26269 ipa_free_all_structures_after_ipa_cp.
26270 (free_all_ipa_structures_after_iinln): Renamed to
26271 ipa_free_all_structures_after_iinln.
26272 (ipa_write_param_call_note): Removed.
26273 (ipa_read_param_call_note): Removed.
26274 (ipa_write_indirect_edge_info): New function.
26275 (ipa_read_indirect_edge_info): Likewise.
26276 (ipa_write_node_info): Do not stream notes, do stream information
26277 in indirect edges.
26278 (ipa_read_node_info): Likewise.
26279 (lto_ipa_fixup_call_notes): Removed.
26280 * ipa-cp.c (pass_ipa_cp): Set stmt_fixup to NULL.
26281 * ipa-inline.c (pass_ipa_inline): Likewise.
26282 * cgraphunit.c (verify_cgraph_node): Check also indirect edges.
26283 * cif-code.def (INDIRECT_UNKNOWN_CALL): New reason.
26284 * tree-inline.c (copy_bb): Removed an unnecessary double check for
26285 is_gimple_call.
26286 * tree-inline.c (get_indirect_callee_fndecl): Do not consider indirect
26287 edges.
26288 * lto-cgraph.c (output_outgoing_cgraph_edges): New function.
26289 (output_cgraph): Stream also indirect edges.
26290 (lto_output_edge): Added capability to stream indirect edges.
26291 (input_edge): Likewise.
26292 (input_cgraph_1): Likewise.
26293 * lto-streamer-in.c (fixup_call_stmt_edges_1): Fixup also statements
26294 of indirect edges.
26295
26296 2010-04-28 Richard Guenther <rguenther@suse.de>
26297
26298 PR tree-optimization/43879
26299 PR tree-optimization/43909
26300 * tree-ssa-structalias.c (struct variable_info): Add
26301 only_restrict_pointers flag.
26302 (new_var_info): Initialize it. Increment stats.total_vars here.
26303 (create_function_info_for): Do not increment stats.total_vars here.
26304 (get_function_part_constraint): Fix build with C++.
26305 (insert_into_field_list): Remove.
26306 (push_fields_onto_fieldstack): Properly merge fields.
26307 (create_variable_info_for): Split and simplify.
26308 (create_variable_info_for_1): New piece.
26309 (intra_create_variable_infos): Properly make restrict constraints
26310 from parameters.
26311
26312 2010-04-28 Richard Guenther <rguenther@suse.de>
26313
26314 PR c++/43880
26315 * tree-inline.c (copy_bind_expr): Also copy bind expr vars value-exprs.
26316
26317 2010-04-27 Manuel López-Ibáñez <manu@gcc.gnu.org>
26318 Jan Hubicka <hubicka@ucw.cz>
26319
26320 * doc/invoke.texi (-Wsuggest-attribute=const,
26321 -Wsuggest-attribute=pure): Document.
26322 * ipa-pure-const.c: Include toplev.h, intl.h and opts.h.
26323 (function_always_visible_to_compiler_p,
26324 suggest_attribute, warn_function_pure, warn_function_const):
26325 New functions.
26326 (check_call): Improve debug info.
26327 (analyze_function): Do not check availability.
26328 (add_new_function): Check availability.
26329 (propagate): Output warnings.
26330 (skip_function_for_local_pure_const): New function.
26331 (local_pure_const): Use it; output warnings.
26332 * common.opt (Wsuggest-attribute=const,
26333 Wsuggest-attribute=pure): New.
26334
26335 2010-04-27 Jakub Jelinek <jakub@redhat.com>
26336
26337 * dwarf2out.c (def_cfa_1): After DW_CFA_def_cfa_expression
26338 force using DW_CFA_def_cfa instead of DW_CFA_def_cfa_register
26339 or DW_CFA_def_cfa_offset{,_sf}.
26340
26341 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
26342
26343 * tree.h: Fix truncated long macros.
26344
26345 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
26346
26347 * collect2.c (TARGET_64BIT): Redefine to target's default.
26348 * tlink.c: Likewise.
26349 * config/i386/cygming.h (USER_LABEL_PREFIX): Define
26350 dependent to TARGET_64BIT and USE_MINGW64_LEADING_UNDERSCORES.
26351 * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): Use
26352 for underscoring __USER_LABEL_PREFIX__.
26353 * config/i386/mingw-w64.h (SUB_LINK_ENTRY): New macro.
26354 (SUB_LINK_ENTRY32): New.
26355 (SUB_LINK_ENTRY64): New.
26356 (LINK_SPEC): Replace entry point spec by SUB_LINK_ENTRY.
26357 * config/i386/mingw32 (SUB_LINK_ENTRY32): New.
26358 (SUB_LINK_ENTRY64): New.
26359 (SUB_LINK_ENTRY): New.
26360 (LINK_SPEC): Use SUB_LINK_ENTRY instead of hard-coded entry-point.
26361 (DWARF2_UNWIND_INFO): Error out for use of dw2 unwind when
26362 x64 target is choosen.
26363 * config.in (USE_MINGW64_LEADING_UNDERSCORES): New.
26364 * configure: Regenerated.
26365 * configure.ac (leading-mingw64-underscores): Option added.
26366
26367 2010-04-27 Jan Hubicka <jh@suse.cz>
26368
26369 * doc/invoke.texi (-fipa-profile): Document.
26370 * opts.c (decode_options): Enable ipa-profile at -O1.
26371 * timevar.def (TV_IPA_PROFILE): Define.
26372 * common.opt (fipa-profile): Add.
26373 * cgraph.c (cgraph_clone_node): Set local flag and clear vtable method
26374 flag for clones.
26375 (cgraph_propagate_frequency): Handle only local ones.
26376 * tree-pass.h (pass_ipa_profile): Declare.
26377 * ipa-profile.c (gate_profile): Use flag_ipa_profile.
26378 (pass_ipa_profile): Use TV_IPA_PROFILE.
26379 * ipa.c (ipa_profile): New function.
26380 (gate_ipa_profile): Likewise.
26381 (pass_ipa_profile): New global variable.
26382 * passes.c (pass_ipa_profile): New.
26383
26384 2010-04-27 Nathan Froyd <froydnj@codesourcery.com>
26385
26386 * config/arm/arm.c (arm_expand_builtin): Remove redundant declaration.
26387
26388 2010-04-27 Martin Jambor <mjambor@suse.cz>
26389
26390 PR middle-end/43812
26391 * ipa.c (dissolve_same_comdat_group_list): New function.
26392 (function_and_variable_visibility): Call
26393 dissolve_same_comdat_group_list when comdat group contains external or
26394 newly local nodes.
26395 * cgraphunit.c (verify_cgraph_node): Verify that same_comdat_group
26396 lists are circular and that they contain only DECL_ONE_ONLY nodes.
26397
26398 2010-04-27 Eric Botcazou <ebotcazou@adacore.com>
26399
26400 * varasm.c (decode_addr_const): Handle special case of INDIRECT_REF.
26401 (const_hash_1) <VECTOR_CST>: New case.
26402 (compare_constant) <VECTOR_CST>: Likewise.
26403 <ADDR_EXPR>: Deal with LABEL_REFs.
26404 (copy_constant) <VECTOR_CST>: New case.
26405
26406 2010-04-27 Jan Hubicka <jh@suse.cz>
26407
26408 * cgraph.c (cgraph_propagate_frequency): New function.
26409 * cgraph.h (cgraph_propagate_frequency): Declare.
26410 * ipa-inline.c (cgraph_clone_inlined_nodes): Call
26411 cgraph_propagate_frequency.
26412
26413 2010-04-27 Jakub Jelinek <jakub@redhat.com>
26414
26415 * unwind-dw2.c (_Unwind_DebugHook): Add used and noclone attributes.
26416
26417 2010-04-27 Bernd Schmidt <bernds@codesourcery.com>
26418
26419 PR target/40657
26420 * config/arm/arm.c (thumb1_extra_regs_pushed): New function.
26421 (thumb1_expand_prologue, thumb1_output_function_prologue): Call it
26422 here to determine which regs to push and how much stack to reserve.
26423
26424 2010-04-27 Jie Zhang <jie@codesourcery.com>
26425
26426 * doc/gimple.texi (gimple_statement_with_ops): Remove
26427 addresses_taken field.
26428 (gimple_statement_with_memory_ops): Likewise.
26429
26430 2010-04-27 Jan Hubicka <jh@suse.cz>
26431
26432 * tree-inline.c (eni_inlining_weights): Remove.
26433 (estimate_num_insns): Special case more builtins.
26434
26435 2010-04-27 Shujing Zhao <pearly.zhao@oracle.com>
26436
26437 PR c/32207
26438 * c-typeck.c (build_binary_op): Move forward check for comparison
26439 pointer with null pointer constant and adjust the diagnostic message.
26440
26441 2010-04-27 Dave Korn <dave.korn.cygwin@gmail.com>
26442
26443 PR lto/42776
26444 * configure.ac (gcc_cv_as_section_has_align): Set if installed
26445 binutils supports extended .section directive needed by LTO, or
26446 warn if older binutils found.
26447 (LTO_BINARY_READER): New AC_SUBST'd variable.
26448 (LTO_USE_LIBELF): Likewise.
26449 * config.gcc (lto_binary_reader): New target-specific configure
26450 variable.
26451 * Makefile.in (LTO_BINARY_READER): Import AC_SUBST'd autoconf var.
26452 (LTO_USE_LIBELF): Likewise.
26453 * configure: Regenerate.
26454
26455 * collect2.c (is_elf): Rename from this ...
26456 (is_elf_or_coff): ... to this, and recognize and allow i386 COFF
26457 object files in addition to ELF-formatted ones.
26458 (scan_prog_file): Caller updated. Also allow for LTO info marker
26459 symbol to be prefixed or not by an extra underscore.
26460
26461 * config/i386/t-cygming (winnt.o): Also depend on LTO_STREAMER_H.
26462 * config/i386/winnt.c: Also #include lto-streamer.h
26463 (i386_pe_asm_named_section): Specify 1-byte section alignment for
26464 LTO named sections.
26465 (i386_pe_asm_output_aligned_decl_common): Add comment.
26466 (i386_pe_maybe_record_exported_symbol): Allow decl arg to be NULL.
26467
26468 2010-04-27 Hans-Peter Nilsson <hp@bitrange.com>
26469
26470 PR target/43889
26471 * config/mmix/mmix.md ("*divdi3_nonknuth", "*moddi3_nonknuth"):
26472 Add missing earlyclobber for second alternative.
26473
26474 2010-04-26 Bernd Schmidt <bernds@codesourcery.com>
26475
26476 * df-problems.c (df_simulate_initialize_forwards): Set, don't clear,
26477 bits for artificial defs at the top of the block.
26478 * fwprop.c (single_def_use_enter_block): Don't call it.
26479
26480 2010-04-26 Jack Howarth <howarth@bromo.med.uc.edu>
26481
26482 PR 43715
26483 * configure.ac: Use "$gcc_cv_nm -g" on darwin
26484 instead of "$gcc_cv_objdump -T".
26485 Use "-undefined dynamic_lookup" on darwin.
26486 * configure: Regenerate.
26487
26488 2010-04-26 Jakub Jelinek <jakub@redhat.com>
26489
26490 PR c/43893
26491 * c-omp.c (c_finish_omp_for): Handle also EQ_EXPR.
26492
26493 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
26494
26495 * c-parser.c (struct c_token): Move location field up.
26496 * c-tree.h (struct c_typespec): Move expr_const_operands field up.
26497 (struct c_declspecs): Convert typespec_word, storage_class, and
26498 default_int_p into bitfields.
26499 (struct c_declarator): Move loc field up.
26500
26501 2010-04-26 Nathan Froyd <froydnj@codesourcery.com>
26502
26503 * cfgloop.h (struct loop): Move can_be_parallel field up.
26504 * ipa-prop.h (struct ip_node_params): Move bitfields up.
26505 * tree-ssa-loop-ivopts.c (struct version_info): Move inv_id field
26506 down.
26507 (struct iv_cand): Convert pos field into a bitfield.
26508 * tree-vectorizer.h (struct _loop_vec_info): Move loop_line_number
26509 field up.
26510 (struct _stmt_vec_info): Shuffle fields for better packing.
26511
26512 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
26513
26514 * varasm.c (IN_NAMED_SECTION): Remove guard.
26515 * config/arm/unknown-elf.h (IN_NAMED_SECTION): Rename to...
26516 (IN_NAMED_SECTION_P): ...this.
26517 (ASM_OUTPUT_ALIGNED_BSS): Adjust for above renaming.
26518 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
26519
26520 2010-04-26 Eric Botcazou <ebotcazou@adacore.com>
26521
26522 * gimplify.c (gimplify_cond_expr): Use THEN_ and ELSE_ local variables.
26523 Use VOID_TYPE_P for all void type tests. Adjust TYPE variable instead
26524 of shadowing it. Fix comments.
26525
26526 2010-04-26 Jan Hubicka <jh@suse.cz>
26527
26528 * cgraph.c (cgraph_create_node): Set node frequency to normal.
26529 (cgraph_clone_node): Copy function frequency.
26530 * cgraph.h (node_frequency): New enum
26531 (struct cgraph_node): Add.
26532 * final.c (rest_of_clean_state): Update.
26533 * lto-cgraph.c (lto_output_node): Output node frequency.
26534 (input_overwrite_node): Input node frequency.
26535 * tre-ssa-loop-ivopts (computation_cost): Update.
26536 * lto-streamer-out.c (output_function): Do not output function
26537 frequency.
26538 * predict.c (maybe_hot_frequency_p): Update and handle functions
26539 executed once.
26540 (cgraph_maybe_hot_edge_p): Likewise; use cgraph frequency instead of
26541 attribute lookup.
26542 (probably_never_executed_bb_p, optimize_function_for_size_p): Update.
26543 (compute_function_frequency): Set noreturn functions to be executed
26544 once.
26545 (choose_function_section): Update.
26546 * lto-streamer-in.c (input_function): Do not input function frequency.
26547 * function.c (allocate_struct_function): Do not initialize function
26548 frequency.
26549 * function.h (function_frequency): Remove.
26550 (struct function): Remove function frequency.
26551 * ipa-profile.c (CGRAPH_NODE_FREQUENCY): Remove.
26552 (try_update): Update.
26553 * tree-inline.c (initialize_cfun): Do not update function frequency.
26554 * passes.c (pass_init_dump_file): Update.
26555 * i386.c (ix86_compute_frame_layout): Update.
26556 (ix86_pad_returns): Update.
26557
26558 2010-04-26 Jie Zhang <jie@codesourcery.com>
26559
26560 PR tree-optimization/43833
26561 * tree-vrp.c (range_int_cst_p): New.
26562 (range_int_cst_singleton_p): New.
26563 (extract_range_from_binary_expr): Optimize BIT_AND_EXPR case
26564 when both operands are constants. Use range_int_cst_p in
26565 BIT_IOR_EXPR case.
26566
26567 2010-04-26 Jan Hubicka <jh@suse.cz>
26568
26569 * cgraphunit.c (cgraph_copy_node_for_versioning): Fix profile updating.
26570
26571 2010-04-26 Richard Guenther <rguenther@suse.de>
26572
26573 PR lto/43080
26574 * gimple.c (gimple_decl_printable_name): Deal gracefully
26575 with a NULL DECL_NAME.
26576
26577 2010-04-26 Richard Guenther <rguenther@suse.de>
26578
26579 PR lto/42425
26580 * tree.c (free_lang_data_in_type): Do not free TYPE_CONTEXT
26581 if emitting debug information and it is either a function
26582 or a namespace decl.
26583
26584 2010-04-26 Ira Rosen <irar@il.ibm.com>
26585
26586 * tree-vectorizer.h (struct _stmt_vec_info): Add new field to
26587 determine if the statement is vectorizable, and a macro to access it.
26588 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
26589 Skip statements that can't be vectorized. If the analysis fails,
26590 mark the statement as unvectorizable if vectorizing basic block.
26591 (vect_compute_data_refs_alignment): Likewise.
26592 (vect_verify_datarefs_alignment): Skip statements marked as
26593 unvectorizable. Add print.
26594 (vect_analyze_group_access): Skip statements that can't be
26595 vectorized. If the analysis fails, mark the statement as
26596 unvectorizable if vectorizing basic block.
26597 (vect_analyze_data_ref_accesses, vect_analyze_data_refs): Likewise.
26598 * tree-vect-stmts.c (vectorizable_store): Fix the number of
26599 generated stmts for SLP.
26600 (new_stmt_vec_info): Initialize the new field.
26601 * tree-vect-slp.c (vect_build_slp_tree): Fail to vectorize
26602 statements marked as unvectorizable.
26603
26604 2010-04-25 Joseph Myers <joseph@codesourcery.com>
26605
26606 * c-common.c (flag_isoc1x): New.
26607 (flag_isoc99): Update comment.
26608 * c-common.h (flag_isoc1x): New.
26609 (flag_isoc99): Update comment.
26610 * c-cppbuiltin.c (builtin_define_float_constants): Also define
26611 __<type>_DECIMAL_DIG__.
26612 * c-opts.c (set_std_c1x): New.
26613 (c_common_handle_option): Handle -std=c1x and -std=gnu1x.
26614 (set_std_c89, set_std_c99): Also set flag_isoc1x to 0.
26615 * c.opt (-std=c1x, -std=gnu1x): New options.
26616 * doc/cpp.texi: Mention -std=c1x.
26617 * doc/cppopts.texi (-std=c1x, -std=gnu1x): Document.
26618 * doc/extend.texi: Mention -std=c1x and -std=gnu1x.
26619 * doc/invoke.texi (-std=c1x, -std=gnu1x): Document.
26620 * doc/standards.texi: Mention C1X.
26621 * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG,
26622 LDBL_DECIMAL_DIG, FLT_HAS_SUBNORM, DBL_HAS_SUBNORM,
26623 LDBL_HAS_SUBNORM, FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
26624 Define for C1X.
26625
26626 2010-04-25 Uros Bizjak <ubizjak@gmail.com>
26627
26628 * config/i386/gmon-sol2.c (_mcleanup): Change format string
26629 placeholder from 0x%x to %#x.
26630 * config/i386/i386elf.h (ASM_OUTPUT_ASCII): Ditto.
26631 * config/i386/i386-interix.h (ASM_OUTPUT_ASCII): Ditto.
26632 * config/i386/att.h (ASM_OUTPUT_ASCII): Ditto.
26633 * config/i386/sysv4.h (ASM_OUTPUT_ASCII): Ditto.
26634 * config/i386/i386.c (ix86_target_string): Ditto.
26635 (output_pic_addr_const): Ditto.
26636 (print_operand): Ditto.
26637
26638 2010-04-25 Paolo Bonzini <bonzini@gnu.org>
26639
26640 * combine.c (find_split_point): Add third argument. Use it
26641 to find nested multiply-accumulate instructions. Adjust calls.
26642 (try_combine): Adjust call to find_split_point.
26643
26644 2010-04-24 Gerald Pfeifer <gerald@pfeifer.com>
26645
26646 * doc/contrib.texi (Contributors): Add Dodji Seketeli.
26647
26648 2010-04-24 Bernd Schmidt <bernds@codesourcery.com>
26649
26650 PR tree-optimization/41442
26651 * fold-const.c (merge_truthop_with_opposite_arm): New function.
26652 (fold_binary_loc): Call it.
26653
26654 2010-04-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
26655
26656 * toplev.c (general_init): Set default for fdiagnostics-show-option.
26657 * opts.c (common_handle_option): Allow disabling it.
26658 * common.opt (fdiagnostics-show-option): Add Var. Enabled by default.
26659
26660 2010-04-23 Eric Botcazou <ebotcazou@adacore.com>
26661
26662 * expr.c (expand_expr_real_1) <VIEW_CONVERT_EXPR>: Only use conversion
26663 between modes if both types are integral.
26664
26665 2010-04-23 Richard Guenther <rguenther@suse.de>
26666
26667 PR tree-optimization/43572
26668 * tree-tailcall.c (find_tail_calls): Allow PARM_DECL uses.
26669
26670 2010-04-23 Richard Guenther <rguenther@suse.de>
26671
26672 PR lto/43455
26673 * tree-inline.c (tree_can_inline_p): Also check compatibility
26674 of return types.
26675
26676 2010-04-23 Martin Jambor <mjambor@suse.cz>
26677
26678 PR tree-optimization/43846
26679 * tree-sra.c (struct access): New flag grp_assignment_read.
26680 (build_accesses_from_assign): Set grp_assignment_read.
26681 (sort_and_splice_var_accesses): Propagate grp_assignment_read.
26682 (enum mark_read_status): New type.
26683 (analyze_access_subtree): Propagate grp_assignment_read, create
26684 accesses also if both direct_read and root->grp_assignment_read.
26685
26686 2010-04-23 Martin Jambor <mjambor@suse.cz>
26687
26688 PR middle-end/43835
26689 * tree-sra.c (ipa_sra_preliminary_function_checks): Check that the
26690 function does not have type attributes.
26691
26692 2010-04-23 Richard Guenther <rguenther@suse.de>
26693
26694 PR lto/42653
26695 * tree.c (free_lang_data_in_decl): Do not reset DECL_CONTEXT
26696 of FUNCTION_DECLs.
26697
26698 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
26699
26700 * sese.h (create_if_region_on_edge): Remove.
26701
26702 * sese.c (create_if_region_on_edge): Make static.
26703
26704 * tree-inline.c: Do not include ggc.h.
26705
26706 * expr.c: Do not include ggc.h.
26707
26708 * Makefile.in (tree-inline.o, expr.o): Remove $(GGC_H) from
26709 dependencies.
26710
26711 2010-04-22 Kaz Kojima <kkojima@gcc.gnu.org>
26712
26713 PR target/43744
26714 * config/sh/sh.c (find_barrier): Don't emit a constant pool
26715 in the middle of insns for casesi_worker_2.
26716
26717 2010-04-22 David Edelsohn <edelsohn@gnu.org>
26718
26719 * config/rs6000/x-aix: Override LDFLAGS for all COMPILERS.
26720
26721 2010-04-22 Ira Rosen <irar@il.ibm.com>
26722
26723 PR tree-optimization/43842
26724 * tree-vect-loop.c (vect_create_epilog_for_reduction): Handle
26725 loop unrolling in update of exit phis. Fix comment.
26726 * tree-vect-slp.c (vect_analyze_slp): Check that there are at
26727 least two reduction statements in the loop before starting SLP
26728 analysis.
26729
26730 2010-04-22 Nick Clifton <nickc@redhat.com>
26731
26732 * config/stormy16/stormy16-lib2.c (__ucmpsi2): Fix thinko.
26733
26734 2010-04-22 Alexander Monakov <amonakov@ispras.ru>
26735
26736 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Handle BIT_NOT_EXPR
26737 to simplify a + ~a.
26738
26739 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
26740
26741 * tree-parloops.c (loop_parallel_p): New argument
26742 parloop_obstack. Pass it down.
26743 (parallelize_loops): New variable parloop_obstack. Initialize it,
26744 pass it down, free it.
26745
26746 * tree-loop-linear.c (linear_transform_loops): Pass down
26747 lambda_obstack.
26748
26749 * tree-data-ref.h (lambda_compute_access_matrices): New argument
26750 of type struct obstack *.
26751
26752 * tree-data-ref.c (analyze_subscript_affine_affine): New variable
26753 scratch_obstack. Initialize it, pass down, free it.
26754
26755 * lambda.h (lambda_loop_new): Remove.
26756 (lambda_matrix_new, lambda_matrix_inverse)
26757 (lambda_trans_matrix_new, lambda_trans_matrix_inverse): New
26758 argument of type struct obstack *.
26759
26760 * lambda-trans.c (lambda_trans_matrix_new): New argument
26761 lambda_obstack. Pass it down, use obstack allocation for ret.
26762 (lambda_trans_matrix_inverse): New argument lambda_obstack. Pass
26763 it down.
26764
26765 * lambda-mat.c (lambda_matrix_get_column)
26766 (lambda_matrix_project_to_null): Remove.
26767 (lambda_matrix_new): New argument lambda_obstack. Use obstack
26768 allocation for mat.
26769 (lambda_matrix_inverse_hard, lambda_matrix_inverse): New argument
26770 lambda_obstack.
26771
26772 * lambda-code.c (lambda_loop_new): New function.
26773 (lambda_lattice_new, compute_nest_using_fourier_motzkin)
26774 (lambda_compute_auxillary_space, lambda_compute_target_space)
26775 (lambda_loopnest_transform, gcc_loop_to_lambda_loop)
26776 (lambda_loopnest_to_gcc_loopnest): Pass down lambda_obstack.
26777 (build_access_matrix): New argument lambda_obstack. Use obstack
26778 allocation for am.
26779 (lambda_compute_step_signs, lambda_compute_access_matrices): New
26780 argument lambda_obstack. Pass it down.
26781
26782 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
26783
26784 * optabs.h (expand_widening_mult): Declare.
26785
26786 2010-04-22 Richard Guenther <rguenther@suse.de>
26787
26788 PR tree-optimization/43845
26789 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Properly
26790 lookup the CALL_EXPR function and arguments.
26791
26792 2010-04-22 Nick Clifton <nickc@redhat.com>
26793
26794 * config/stormy16/stormy16.c
26795 (xstormy16_asm_output_aligned_common): Handle a NULL decl parameter.
26796 * config/stormy16/stormy16.h: Tidy up formatting.
26797 (DONT_USE_BUILTIN_SETJMP): Remove definition.
26798 * config/stormy16/stormy16.c (cbranchsi4): Delete pattern.
26799 (ineqbranchsi): Delete pattern.
26800 * config/stormy16/stormy16-lib2-ucmpsi2.c: New file.
26801 * config/stormy16/stormy16-lib2.c (__ucmpsi2): New function.
26802 * config/stormy16/t-stormy16 (LIB2FUNCS_EXTRA): Add
26803 stormy16-lib2-ucmpsi2.c.
26804
26805 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
26806
26807 * ifcvt.c (dead_or_predicable): Use df_simulate_find_defs and
26808 df_simulate_find_noclobber_defs as appropriate. Keep track of an
26809 extra set merge_set_noclobber, and use it to relax the final test
26810 slightly.
26811 * df.h (df_simulate_find_noclobber_defs): Declare.
26812 * df-problems.c (df_simulate_find_defs): Don't ignore partial or
26813 conditional defs.
26814 (df_simulate_find_noclobber_defs): New function.
26815
26816 2010-04-22 Uros Bizjak <ubizjak@gmail.com>
26817
26818 * config/i386/i386.md: Use {} around multi-line preparation statements.
26819
26820 2010-04-22 Laurynas Biveinis <laurynas.biveinis@gmail.com>
26821
26822 * c-tree.h (push_init_level, pop_init_level, set_init_index)
26823 (process_init_element): New argument of type struct obstack *.
26824
26825 * c-typeck.c (push_init_level, pop_init_level, set_designator)
26826 (set_init_index, set_init_label, set_nonincremental_init)
26827 (set_nonincremental_init_from_string, find_init_member)
26828 (output_init_element, output_pending_init_elements)
26829 (process_init_element): New argument braced_init_obstack. Pass it
26830 down.
26831 (push_range_stack, add_pending_init): New argument
26832 braced_init_obstack. Use obstack allocation.
26833
26834 * c-parser.c (c_parser_initelt, c_parser_initval): New argument
26835 braced_init_obstack. Pass it down.
26836 (c_parser_braced_init): New variables ret, braced_init_obstack.
26837 Initialize obstack, pass it down and finally free it.
26838
26839 2010-04-22 Bernd Schmidt <bernds@codesourcery.com>
26840
26841 PR middle-end/29274
26842 * tree-pass.h (pass_optimize_widening_mul): Declare.
26843 * tree-ssa-math-opts.c (execute_optimize_widening_mul,
26844 gate_optimize_widening_mul): New static functions.
26845 (pass_optimize_widening_mul): New.
26846 * expr.c (expand_expr_real_2) <case WIDEN_MULT_EXPR>: New case.
26847 <case MULT_EXPR>: Remove support for widening multiplies.
26848 * tree.def (WIDEN_MULT_EXPR): Tweak comment.
26849 * cfgexpand.c (expand_debug_expr) <case WIDEN_MULT_EXPR>: Use
26850 simplify_gen_unary rather than directly building extensions.
26851 * tree-cfg.c (verify_gimple_assign_binary): Add tests for
26852 WIDEN_MULT_EXPR.
26853 * expmed.c (expand_widening_mult): New function.
26854 * passes.c (init_optimization_passes): Add pass_optimize_widening_mul.
26855
26856 2010-04-21 Jan Hubicka <jh@suse.cz>
26857
26858 * timevar.def (TV_WHOPR_WPA_FIXUP): Remove.
26859 * lto-section-in.c (lto_section_name): Remove wpa_fixup.
26860 * lto-wpa-fixup.c: Remove.
26861 * Makefile.in (lto-wpa-fixup.o): Remove.
26862 * passes.c (init_optimization_passes): Remove pass_ipa_lto_wpa_fixup.
26863 (execute_all_ipa_transforms): Set cgraph_state to CGRAPH_STATE_IPA_SSA.
26864 * lto-streamer.c (lto_get_section_name): Remove wpa_fixup section.
26865
26866 2010-04-21 Jan Hubicka <jh@suse.cz>
26867
26868 * tree-pass.h (ipa_opt_pass_d): Rename function_read_summary;
26869 add write_optimization_summary, read_optimization_summary.
26870 (ipa_write_summaries_of_cgraph_node_set): Remove.
26871 (ipa_write_optimization_summaries): Declare.
26872 (ipa_read_optimization_summaries): Declare.
26873 * ipa-cp.c (pass_ipa_cp): Update.
26874 * ipa-reference.c (pass_ipa_reference): Update.
26875 * ipa-pure-const.c (pass_ipa_pure_const): Update.
26876 * lto-streamer-out.c (pass_ipa_lto_gimple, pass_ipa_lto_finish):
26877 Update.
26878 * ipa-inline.c (pass_ipa_inline): Update.
26879 * ipa.c (pass_ipa_whole_program): Update.
26880 * lto-wpa-fixup.c (pass_ipa_lto_wpa_fixup): Update.
26881 * passes.c (ipa_write_summaries_1): Do not test wpa.
26882 (ipa_write_optimization_summaries_1): New.
26883 (ipa_write_optimization_summaries): New.
26884 (ipa_read_summaries): Do not test ltrans.
26885 (ipa_read_optimization_summaries_1): New.
26886 (ipa_read_optimization_summaries): New.
26887
26888 2010-04-21 Jan Hubicka <jh@suse.cz>
26889
26890 * lto-cgraph.c (lto_output_node): Do not output comdat groups
26891 for boundary nodes.
26892 (output_cgraph): Do not arrange comdat groups for boundary nodes.
26893
26894 2010-04-21 Jakub Jelinek <jakub@redhat.com>
26895
26896 PR debug/40040
26897 * dwarf2out.c (add_name_and_src_coords_attributes): Add
26898 DW_AT_{,MIPS_}linkage_name even for Fortran decls.
26899
26900 2010-04-21 Jan Hubicka <jh@suse.cz>
26901
26902 * ipa-prop.c (ipa_edge_removal_hook): Check for bounds.
26903
26904 2010-04-21 Jan Hubicka <jh@suse.cz>
26905
26906 * varpool.c (decide_is_variable_needed): Variable is always needed
26907 during ltrans.
26908
26909 2010-04-21 Jan Hubicka <jh@suse.cz>
26910
26911 * opts.c (decode_options): Enable pure-const pass for whopr.
26912
26913 2010-04-21 Jan Hubicka <jh@suse.cz>
26914
26915 * cgraph.c (dump_cgraph_node): Dump also assembler name.
26916 * ipa-inline.c (cgraph_decide_inlining_of_small_functions): Do not ice
26917 at WPA dumping.
26918 (cgraph_decide_inlining): Do not expect callee to be removed in all
26919 cases.
26920
26921 2010-04-21 Eric B. Weddington <eric.weddington@atmel.com>
26922
26923 * config/avr/avr-devices.c (avr_mcu_types): Add missing comma.
26924
26925 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
26926
26927 * config/i386/i386.md (x86_shrd): Add athlon_decode and
26928 amdfam10_decode attributes.
26929
26930 2010-04-21 Jakub Jelinek <jakub@redhat.com>
26931
26932 PR middle-end/43570
26933 * omp-low.c (scan_sharing_clauses): Don't scan_omp_op
26934 OMP_CLAUSE_DECL for OMP_CLAUSE_COPYPRIVATE.
26935 (lower_copyprivate_clauses): Use private var in outer
26936 context instead of original var. Make sure the types
26937 are correct for VLAs.
26938
26939 2010-04-21 Richard Guenther <rguenther@suse.de>
26940
26941 * tree-ssa-structalias.c (do_ds_constraint): Avoid escaping
26942 to non-pointer objects.
26943
26944 2010-04-21 Jakub Jelinek <jakub@redhat.com>
26945
26946 * dwarf2out.c (add_var_loc_to_decl): Add LABEL argument. Drop
26947 last chain entry if it starts with the still current label.
26948 (add_location_or_const_value_attribute): Check that
26949 loc_list->first->next is NULL instead of comparing ->first with ->last.
26950 (dwarf2out_var_location): Pass last_label resp. last_postcall_label
26951 to add_var_loc_to_decl.
26952
26953 * dwarf2out.c (output_call_frame_info): For dw_cie_version
26954 >= 4 add also address size and segment size fields into CIE header.
26955
26956 * unwind-dw2.c (extract_cie_info): Handle CIE version 4, as
26957 long as address size is the same as sizeof (void *) and
26958 segment size is 0.
26959 * unwind-dw2-fde.c (get_cie_encoding): Likewise. If
26960 address size or segment size is unexpected, return DW_EH_PE_omit.
26961 (classify_object_over_fdes): If get_cie_encoding returned
26962 DW_EH_PE_omit, return -1.
26963 (init_object): If classify_object_over_fdes returned -1,
26964 pretend there were no FDEs at all.
26965
26966 2010-04-21 Uros Bizjak <ubizjak@gmail.com>
26967
26968 * config/i386/i386.md (bswap<mode>2): Macroize expander from
26969 bswap{si,di}2 using SWI48 mode iterator.
26970 (*bswap<mode>2_movbe): Macroize insn from *bswap{si,di}_movbe using
26971 SWI48 mode iterator. Set type attribute of bswap insn to bitmanip,
26972 set modrm attribute of bswap insn to 0 and remove length attribute.
26973 (*bswap<mode>2_1): Macroize insn from *bswap{si,di}_1 using SWI48 mode
26974 iterator. Set type attribute to bitmanip, set modrm attribute to 0,
26975 set mode attribute to <MODE> and remove length attribute.
26976
26977 2010-04-20 James E. Wilson <wilson@codesourcery.com>
26978
26979 PR rtl-optimization/43520
26980 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Exclude classes with
26981 zero available registers.
26982
26983 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26984
26985 * builtins.c (fold_builtin_cproj): Fold more cases.
26986
26987 2010-04-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
26988
26989 * builtins.c (build_complex_cproj, fold_builtin_cproj): New.
26990 (fold_builtin_1): Fold builtin cproj.
26991 * builtins.def (BUILT_IN_CPROJ, BUILT_IN_CPROJF, BUILT_IN_CPROJL):
26992 Use ATTR_CONST_NOTHROW_LIST.
26993
26994 2010-04-20 Uros Bizjak <ubizjak@gmail.com>
26995
26996 * config/i386/i386.md (ffs<mode>2): Macroize expander from ffs_cmove
26997 and ffsdi2 using SWI48 mode iterator. Expand SImode insn through
26998 ffsi2_no_cmove for !TARGET_CMOVE.
26999 (ffssi2_no_cmove): Rename from *ffs_no_cmove. Make public.
27000 (ffssi2): Remove expander.
27001 (*ffs<mode>_1): Macroize insn from *ffs{si,di} using SWI48
27002 mode iterator.
27003 (ctz<mode>2): Ditto from ctz{si,di}2.
27004 (clz<mode>2): Macroize expander from ctz{hi,si,di}2 using SWI248
27005 mode iterator.
27006 (clz<mode>2_abm): Macroize insn from clz{hi,si,di}2_abm using SWI248
27007 mode iterator.
27008
27009 2010-04-20 Jakub Jelinek <jakub@redhat.com>
27010
27011 * dwarf2out.c (AT_linkage_name): Define.
27012 (clone_as_declaration): Handle DW_AT_linkage_name.
27013 (add_name_and_src_coords_attributes): Use AT_linkage_name instead
27014 of DW_AT_MIPS_linkage_name.
27015 (move_linkage_attr): Likewise.
27016 (dwarf2out_finish): Likewise.
27017
27018 2010-04-20 Xinliang David Li <davidxl@gcc.gnu.org>
27019
27020 PR middle-end/41952
27021 * fold-const.c (fold_comparison): New folding rule.
27022
27023 2010-04-20 Anatoly Sokolov <aesok@post.ru>
27024
27025 * double-int.h (double_int_setbit): Declare.
27026 * double-int.c (double_int_setbit): New function.
27027 * rtl.h (immed_double_int_const): Declare.
27028 * emit-rtl.c (immed_double_int_const): New function.
27029 * builtins.c (expand_builtin_signbit): Clean up, use double_int_*
27030 and immed_double_int_const functions.
27031 * optabs.c (expand_absneg_bit, expand_copysign_absneg,
27032 expand_copysign_bit): (Ditto.).
27033 * simplify-rtx.c (simplify_binary_operation_1): (Ditto.).
27034 * tree-ssa-address.c (addr_for_mem_ref): (Ditto.).
27035 * dojump.c (prefer_and_bit_test): (Ditto.).
27036 * expr.c (convert_modes, reduce_to_bit_field_precision,
27037 const_vector_from_tree): (Ditto.).
27038 * expmed.c (mask_rtx, lshift_value): (Ditto.).
27039
27040 2010-04-20 Jan Hubicka <jh@suse.cz>
27041
27042 * cgraph.c (cgraph_remove_node): Kill bodies in other partitoin.
27043 (dump_cgraph_node): Dump new flags.
27044 * cgraph.h (struct cgraph_node): Add flags
27045 reachable_from_other_partition and in_other_partition.
27046 (cgraph_can_remove_if_no_direct_calls_p): Functions used by
27047 other partition can not be removed.
27048 * cgraphunit.c (cgraph_mark_functions_to_output): Functions used by
27049 the other partition must be output; silence sanity checking on
27050 leaking functions bodies from other paritition.
27051 * lto-cgraph.c (reachable_from_other_partition_p): New function.
27052 (lto_output_node): Output new flags; do not sanity check that inline
27053 clones are output; drop lto_forced_extern_inline_p code; do not mock
27054 visibility flags at partition boundaries.
27055 (add_node_to): New function.
27056 (output_cgraph): Use it to sort functions so masters appear before
27057 clones.
27058 (input_overwrite_node): Input new flags.
27059 * passes.c (ipa_write_summaries): Do not call
27060 lto_new_extern_inline_states.
27061 * lto-section-out.c (forced_extern_inline,
27062 lto_new_extern_inline_states lto_delete_extern_inline_states,
27063 lto_force_functions_extern_inline, lto_forced_extern_inline_p): Kill.
27064 * lto-streamer.h (lto_new_extern_inline_states,
27065 * lto_delete_extern_inline_states, lto_force_functions_extern_inline,
27066 lto_forced_extern_inline_p): Kill.
27067
27068 2010-04-20 Richard Guenther <rguenther@suse.de>
27069
27070 * tree-ssa-structalias.c (do_sd_constraint): Add edges only
27071 from vars that can have pointers.
27072 (process_constraint): Dump useless constraints.
27073
27074 2010-04-20 Richard Guenther <rguenther@suse.de>
27075
27076 * tree-ssa-structalias.c (do_structure_copy): Properly handle DEREF.
27077 (dump_sa_points_to_info): Remove asserts.
27078 (init_base_vars): nothing_id isn't an escape point nor does it
27079 have pointers.
27080
27081 2010-04-20 Jakub Jelinek <jakub@redhat.com>
27082
27083 * tree.h (TYPE_REF_IS_RVALUE): Define.
27084 * dwarf2out.c (attr_checksum_ordered, is_type_die, is_comdat_die,
27085 should_move_die_to_comdat, prune_unused_types_walk): Handle
27086 DW_TAG_rvalue_reference_type like DW_TAG_reference_type.
27087 (modified_type_die, gen_reference_type_die): Emit
27088 DW_TAG_rvalue_reference_type instead of DW_TAG_reference_type
27089 if TYPE_REF_IS_RVALUE and -gdwarf-4.
27090
27091 2010-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27092
27093 PR target/43635
27094 * config/s390/s390.c (s390_emit_call): Turn direct into indirect
27095 calls for -fpic -m31 if they have been sibcall optimized.
27096
27097 2010-04-19 James E. Wilson <wilson@codesourcery.com>
27098
27099 * config/ia64/ia64.h (FIXED_REGISTERS, CALL_USED_REGISTERS): Make
27100 ar.lc fixed and call-used.
27101
27102 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Define.
27103
27104 2010-04-19 Jan Hubicka <jh@suse.cz>
27105
27106 * opts.c (decode_options): Disable whpr incompatible passes.
27107 * lto/lto.c (lto_1_to_1_map): Skip clones.
27108 (read_cgraph_and_symbols): Do not mark everything as needed.
27109 (do_whole_program_analysis): Do map only after optimizing;
27110 set proper cgraph_state; use passmanager.
27111
27112 2010-04-19 DJ Delorie <dj@redhat.com>
27113
27114 * cfgexpand.c (expand_debug_expr): Check for mismatched modes in
27115 POINTER_PLUS_EXPR and fix them.
27116
27117 2010-04-19 Eric B. Weddington <eric.weddington@atmel.com>
27118
27119 * config/avr/avr-devices.c (avr_mcu_types): Add support for new
27120 devices atmega644pa, attiny2313a, attiny24a, attiny261a, attiny4313,
27121 attiny44a, attiny861a, atmega16a, atmega168a, atmega164a, atmega165a,
27122 atmega169a, atmega169pa, atmega16hva2, atmega324a, atmega324pa,
27123 atmega325a, atmega3250a, atmega328, atmega329a, atmega329pa,
27124 atmega3290a, atmega48a, atmega644a, atmega645a, atmega645p,
27125 atmega6450a, atmega6450p, atmega649a, atmega649p, atmega6490a,
27126 atmega6490p, atmega64hve, atmega88a, atmega88pa, attiny461a, attiny84a,
27127 m3000. Remove support for devices atmega8m1, atmega8c1, atmega16c1,
27128 atmega4hvd, atmega8hvd, attiny327, m3000f, m3000s, m3001b.
27129 * config/avr/t-avr.c (MULTILIB_MATCHES): Same.
27130
27131 2010-04-19 Eric Botcazou <ebotcazou@adacore.com>
27132
27133 * ifcvt.c (noce_try_cmove_arith): Fix long lines.
27134 (check_cond_move_block): Likewise.
27135 (cond_move_process_if_block): Likewise.
27136 (noce_find_if_block): Improve formatting.
27137 (find_if_header): Pass 0 to memset and tweak conditions.
27138 (cond_exec_find_if_block): Fix long lines and tweak conditions.
27139
27140 2010-04-19 Jakub Jelinek <jakub@redhat.com>
27141
27142 * dwarf2out.c (lower_bound_default): For DW_LANG_Python return 0
27143 for -gdwarf-4.
27144
27145 PR middle-end/43337
27146 * tree-nested.c (convert_nonlocal_omp_clauses): OMP_CLAUSE_PRIVATE
27147 with non-local decl doesn't need chain.
27148
27149 2010-04-19 Vladimir Makarov <vmakarov@redhat.com>
27150
27151 * ira-color.c (allocno_reload_assign): Avoid accumulating
27152 reload registers in ALLOCNO_TOTAL_CONFLICT_HARD_REGS.
27153
27154 2010-04-19 Martin Jambor <mjambor@suse.cz>
27155
27156 * gimple.h (create_tmp_reg): Declare.
27157 * gimplify.c (create_tmp_reg): New function.
27158 (gimplify_return_expr): Use create_tmp_reg.
27159 (gimplify_omp_atomic): Likewise.
27160 (gimple_regimplify_operands): Likewise.
27161 * tree-dfa.c (make_rename_temp): Likewise.
27162 * tree-predcom.c (predcom_tmp_var): Likewise.
27163 (reassociate_to_the_same_stmt): Likewise.
27164 * tree-sra.c (replace_uses_with_default_def_ssa_name): Likewise.
27165 (get_replaced_param_substitute): Likewise.
27166 * tree-ssa-phiprop.c (phiprop_insert_phi): Likewise.
27167 * tree-ssa-phiopt.c (cond_store_replacement): Likewise.
27168 * tree-ssa-pre.c (get_representative_for): Likewise.
27169 (create_expression_by_pieces): Likewise.
27170 * tree-tailcall.c (adjust_return_value_with_ops): Likewise.
27171 (create_tailcall_accumulator): Likewise.
27172
27173 2010-04-19 Martin Jambor <mjambor@suse.cz>
27174
27175 * cgraphunit.c (cgraph_redirect_edge_call_stmt_to_callee): Update
27176 new_stmt.
27177 (cgraph_materialize_all_clones): Assert !need_ssa_update_p.
27178
27179 2010-04-19 Richard Guenther <rguenther@suse.de>
27180
27181 PR tree-optimization/43796
27182 * tree-vrp.c (adjust_range_with_scev): Lookup init and step
27183 from SCEV in the lattice.
27184 (vrp_visit_phi_node): Dump change.
27185
27186 2010-04-19 Richard Guenther <rguenther@suse.de>
27187
27188 * configure.ac: Fix quoting around elf_getshstrndx ABI check.
27189 * configure: Re-generated.
27190
27191 2010-04-19 Richard Guenther <rguenther@suse.de>
27192
27193 PR tree-optimization/43783
27194 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Drop
27195 constant ARRAY_REF operands two and three if possible.
27196
27197 2010-04-19 Uros Bizjak <ubizjak@gmail.com>
27198
27199 PR target/43766
27200 * config/i386/i386.c (ix86_decompose_address): Handle ASHIFT addends.
27201
27202 2010-04-19 Jie Zhang <jie@codesourcery.com>
27203
27204 PR target/43662
27205 * reginfo.c (reinit_regs): Set caller_save_initialized_p to false.
27206
27207 2010-04-19 Ira Rosen <irar@il.ibm.com>
27208
27209 PR tree-optimization/37027
27210 * tree-vectorizer.h (struct _loop_vec_info): Add new field reductions
27211 and macro to access it.
27212 (vectorizable_reduction): Add argument.
27213 (vect_get_slp_defs): Likewise.
27214 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Collect reduction
27215 statements for possible use in SLP.
27216 (new_loop_vec_info): Initialize LOOP_VINFO_REDUCTIONS.
27217 (destroy_loop_vec_info): Free LOOP_VINFO_REDUCTIONS.
27218 (vect_create_epilog_for_reduction): Handle SLP. Modify documentation,
27219 add new argument.
27220 (vectorizable_reduction): Likewise.
27221 * tree-vect-stmts.c (vect_get_vec_defs): Update call to
27222 vect_get_slp_defs.
27223 (vectorizable_type_demotion, vectorizable_type_promotion,
27224 vectorizable_store): Likewise.
27225 (vect_analyze_stmt): Update call to vectorizable_reduction.
27226 (vect_transform_stmt): Likewise.
27227 * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle reduction.
27228 (vect_build_slp_tree): Fix indentation. Check that there are no loads
27229 from different interleaving chains in same node.
27230 (vect_slp_rearrange_stmts): New function.
27231 (vect_supported_load_permutation_p): Allow load permutations for
27232 reductions. Call vect_slp_rearrange_stmts() to rearrange statements
27233 inside SLP nodes if necessary.
27234 (vect_analyze_slp_instance): Handle reductions.
27235 (vect_analyze_slp): Try to build SLP instances originating from groups
27236 of reductions.
27237 (vect_detect_hybrid_slp_stmts): Skip reduction statements.
27238 (vect_get_constant_vectors): Create initial vectors for reductions
27239 according to reduction code. Add new argument.
27240 (vect_get_slp_defs): Add new argument, pass it to
27241 vect_get_constant_vectors.
27242 (vect_schedule_slp_instance): Remove SLP tree root statements.
27243
27244 2010-04-19 Jakub Jelinek <jakub@redhat.com>
27245
27246 * tree.h (ENUM_IS_SCOPED): Define.
27247 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_enum_class
27248 for ENUM_IS_SCOPED enums.
27249
27250 2010-04-18 Eric Botcazou <ebotcazou@adacore.com>
27251
27252 * fold-const.c (fold_comparison): Use ssizetype.
27253 * gimple-fold.c (maybe_fold_offset_to_array_ref): Likewise.
27254 * ipa-prop.c (ipa_modify_call_arguments): Use sizetype.
27255 * tree-loop-distribution.c (build_size_arg_loc): Likewise.
27256 * tree-object-size.c (compute_object_sizes): Use size_type_node.
27257
27258 * tree.h (initialize_sizetypes): Remove parameter.
27259 (build_common_tree_nodes): Remove second parameter.
27260 * stor-layout.c (initialize_sizetypes): Remove parameter.
27261 Always create an unsigned type.
27262 (set_sizetype): Assert that the passed type is unsigned and simplify.
27263 * tree.c (build_common_tree_nodes): Remove second parameter.
27264 Adjust call to initialize_sizetypes.
27265 * c-decl.c (c_init_decl_processing): Remove second argument in call to
27266 build_common_tree_nodes.
27267
27268 2010-04-18 Matthias Klose <doko@ubuntu.com>
27269
27270 * gcc.c (main): Search for liblto_plugin.so with mode R_OK.
27271
27272 2010-04-18 Ira Rosen <irar@il.ibm.com>
27273
27274 PR tree-optimization/43771
27275 * tree-vect-slp.c (vect_supported_load_permutation_p): Check that
27276 load permutation doesn't have gaps.
27277
27278 2010-04-18 Jan Hubicka <jh@suse.cz>
27279
27280 * i386.md (UNSPEC_SSE_PROLOGUE_SAVE_LOW): New.
27281 (sse_prologue_save_insn expander): Use new pattern.
27282 (sse_prologue_save_insn1): New pattern and splitter.
27283 (sse_prologue_save_insn): Update to deal also with 64bit aligned
27284 blocks.
27285 * i386.c (setup_incoming_varargs_64): Do not compute jump
27286 destination here.
27287 (ix86_gimplify_va_arg): Update alignment needed.
27288 (ix86_local_alignment): Do not align all local arrays to 128bit.
27289
27290 2010-04-17 Jan Hubicka <jh@suse.cz>
27291
27292 * ipa-inline.c (cgraph_early_inlining): Handle flattening too.
27293
27294 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
27295
27296 * arm.md (negdi2): Remove redundant code to force values into a
27297 register.
27298
27299 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
27300
27301 * arm/bpabi.S: Add EABI alignment attributes to objects.
27302 * arm/bpabi-v6m.S: Likewise.
27303 * arm/crti.asm: Likewise.
27304 * arm/crtn.asm: Likewise.
27305 * arm/lib1funcs.asm: Likewise.
27306 * arm/libunwind.S: Likewise.
27307
27308 2010-04-17 Richard Earnshaw <rearnsha@arm.com>
27309
27310 * arm-protos.h (tune_params): New structure.
27311 * arm.c (current_tune): New variable.
27312 (arm_constant_limit): Delete.
27313 (struct processors): Add pointer to the tune parameters.
27314 (arm_slowmul_tune): New tuning option.
27315 (arm_fastmul_tune, arm_xscale_tune, arm_9e_tune): Likewise.
27316 (all_cores): Adjust to pick up the tuning model.
27317 (arm_constant_limit): New function.
27318 (arm_override_options): Select the appropriate tuning model. Delete
27319 initialization of arm_const_limit.
27320 (arm_split_constant): Use the new constant-limit model.
27321 (arm_rtx_costs): Pick up the current tuning model.
27322 * arm.md (is_strongarm, is_xscale): Delete.
27323 * arm-generic.md (load_ldsched_x, load_ldsched): Test explicitly
27324 for Xscale variant architectures.
27325 (mult_ldsched_strongarm, mult_ldsched): Similarly for StrongARM.
27326
27327 2010-04-17 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27328
27329 * config/arm/arm.c (arm_gen_constant): Remove unused variable
27330 can_shift.
27331 (arm_rtx_costs_1): Remove unused variable extra_cost.
27332 (arm_unwind_emit_set): Use variable offset.
27333 (thumb1_output_casesi): Remove unused variable flags.
27334
27335 2010-04-16 Jeff Law <law@redhat.com>
27336
27337 * ira-color.c (ira_reassign_pseudos): Collect and sort all the pseudos
27338 needing assignment rather than doing a two-phase assignment. Remove
27339 unused variable 'm'.
27340
27341 2010-04-16 Jakub Jelinek <jakub@redhat.com>
27342
27343 PR bootstrap/43767
27344 * alias.c (memrefs_conflict_p): Don't crash if CSELIB_VAL_PTR is NULL.
27345
27346 2010-04-16 Doug Kwan <dougkwan@google.com>
27347
27348 * tree-ssa-reassoc.c (struct operand_entry): Add new field ID.
27349 (next_operand_entry_id): New static variable.
27350 (sort_by_operand_rank): Stabilize qsort comparator by using unique IDs.
27351 (add_to_ops_vec): Assigned unique ID to operand entry.
27352 (struct oecount_s): New field ID.
27353 (oecount_cmp): Stabilize qsort comparotor by using unique IDs.
27354 (undistribute_ops_list): Assign unique IDs to oecounts.
27355 (init_reassoc): reset next_operand_entry_id.
27356
27357 2010-04-16 Doug Kwan <dougkwan@google.com>
27358
27359 * config/i386/i386.md (*jcc_bt<mode>): Fix build breakage by adding
27360 missing left parenthesis.
27361
27362 2010-04-16 Uros Bizjak <ubizjak@gmail.com>
27363
27364 * config/i386/i386.md (*bt<mode>): Macroize insn from *btsi and
27365 *btdi_rex64 using SWI48 mode iterator.
27366 (*jcc_bt<mode>): Ditto from *jcc_btsi and *jcc_btdi_rex64.
27367 (*jcc_bt<mode>_mask): Ditto from *jcc_btsi_mask and
27368 *jcc_btdi_mask_rex64.
27369
27370 2010-04-16 Anatoly Sokolov <aesok@post.ru>
27371
27372 * double-int.h (tree_to_double_int): Convert to macro.
27373 * double-int.c (tree_to_double_int): Remove.
27374
27375 2010-04-16 Jakub Jelinek <jakub@redhat.com>
27376
27377 PR debug/43762
27378 * dwarf2out.c (add_bound_info): Always call loc_list_from_tree
27379 with want_address 2 and in case a single element list might be
27380 possible, call it again with want_address 0.
27381
27382 2010-04-12 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
27383
27384 * config/h8300/h8300.c (print_operand) : Modify case 'V' and
27385 case 'W' print operands for HI mode.
27386 * config/h8300/h8300.h (Y0, Y2) : New constraints.
27387 * config/h8300/h8300.md (bclrqi_msx, bclrhi_msx): New patterns
27388 (bsetqi_msx, bsethi_msx, bnotqi_msx, bnothi_msx): Likewise.
27389 * config/h8300/predicate.md (bit_register_indirect_operand): New.
27390
27391 * config/h8300/h8300.h (OK_FOR_U): Support 'U' constraint for H8300SX.
27392
27393 * config/h8300/h8300.md (movqi_h8sx, movhi_h8sx, movsi_h8sx,
27394 cmphi_h8300hs_znvc, cmpsi, addhi3_h8sx) : Emit instructions in
27395 #xx:3 and #xx:4 mode.
27396
27397 * config/h8300/h8300.md (inverted load with HImode dest): Add
27398 support for H8300SX.
27399
27400 * config/h8300/predicate.md (bit_operand): Allow immediate values that
27401 satisfy 'U' constraint.
27402
27403 2010-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27404
27405 * configure.ac: Check for elf_getshdrstrndx or elf_getshstrndx flavor.
27406 * configure: Regenerate.
27407 * config.in: Regenerate.
27408 * doc/install.texi (Prerequisites): Document that Solaris 2 libelf
27409 works.
27410
27411 2010-04-16 Richard Guenther <rguenther@suse.de>
27412
27413 * tree.h (struct tree_decl_minimal): Move pt_uid ...
27414 (struct tree_decl_common): ... here.
27415 (DECL_PT_UID): Adjust.
27416 (SET_DECL_PT_UID): Likewise.
27417 (DECL_PT_UID_SET_P): Likewise.
27418
27419 2010-04-16 Richard Guenther <rguenther@suse.de>
27420
27421 PR tree-optimization/43572
27422 * tree-ssa-alias.h (call_may_clobber_ref_p): Declare.
27423 * tree-ssa-alias.c (call_may_clobber_ref_p): Export.
27424 * tree-flow.h (is_call_clobbered): Remove.
27425 * tree-flow-inline.h (is_call_clobbered): Likewise.
27426 * tree-dfa.c (dump_variable): Do not dump call clobber state.
27427 * tree-nrv.c (dest_safe_for_nrv_p): Use the alias oracle.
27428 (execute_return_slot_opt): Adjust.
27429 * tree-tailcall.c (suitable_for_tail_opt_p): Remove
27430 check for call clobbered vars here.
27431 (find_tail_calls): Move tailcall verification to the
27432 proper place.
27433
27434 2010-04-16 Diego Novillo <dnovillo@google.com>
27435
27436 * doc/invoke.texi: Explain how are unrecognized -Wno- warnings handled.
27437
27438 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
27439
27440 PR target/40603
27441 * config/arm/arm.md (cbranchqi4): New pattern.
27442 * config/arm/predicates.md (const0_operand,
27443 cbranchqi4_comparison_operator): New predicates.
27444
27445 2010-04-16 Richard Guenther <rguenther@suse.de>
27446
27447 * gimple-pretty-print.c (dump_gimple_phi): Dump alias info.
27448 (dump_gimple_stmt): Likewise.
27449
27450 2010-04-16 Bernd Schmidt <bernds@codesourcery.com>
27451
27452 * recog.h (struct recog_data): New field is_operator.
27453 (struct insn_operand_data): New field is_operator.
27454 * recog.c (extract_insn): Set recog_data.is_operator.
27455 * genoutput.c (output_operand_data): Emit code to set the
27456 is_operator field.
27457 * reload.c (find_reloads): Use it rather than testing for an
27458 empty constraint string.
27459
27460 PR target/41514
27461 * config/arm/arm.md (cbranchsi4_insn): Renamed from "*cbranchsi4_insn".
27462 If the previous insn is a cbranchsi4_insn with the same arguments,
27463 omit the compare instruction.
27464
27465 * config/arm/arm.md (addsi3_cbranch): If destination is a high
27466 register, inputs must be low registers and we need a low register
27467 scratch. Handle alternative 2 like alternative 3.
27468
27469 2010-04-16 Jakub Jelinek <jakub@redhat.com>
27470
27471 * alias.c (memrefs_conflict_p): If x and y are the same VALUE,
27472 don't call get_addr on both. If one expression is a VALUE and
27473 the other a REG, check VALUE's locs if the REG isn't among them.
27474
27475 2010-04-16 Christian Bruel <christian.bruel@st.com>
27476
27477 * config/sh/sh.h (sh_frame_pointer_required): New function.
27478 * config/sh/sh.h (TARGET_FRAME_POINTER_REQUIRED): New macro.
27479 (flag_omit_frame_pointer) Set.
27480 (MASK_ACCUMULATE_OUTGOING_ARGS) Define and Set.
27481 (rounded_frame_size): Adjust size with outgoing_args_size.
27482 (sh_set_return_address): Must return from stack pointer.
27483 * config/sh/sh.h (CAN_DEBUG_WITHOUT_FP): Define.
27484 (SUBTARGET_FRAME_POINTER_REQUIRED): Define.
27485 (ACCUMULATE_OUTGOING_ARGS): Define.
27486 * doc/invoke.texi (maccumulate-outgoing-args): Document for SH.
27487 * config/sh/sh.opt (maccumulate-outgoing-args): New option.
27488
27489 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
27490
27491 PR target/43471
27492 * config/sh/sh.c (sh_legitimize_reload_address): Use
27493 MAYBE_BASE_REGISTER_RTX_P instead of BASE_REGISTER_RTX_P.
27494 Remove a unneeded check for offset_base.
27495
27496 2010-04-15 H.J. Lu <hongjiu.lu@intel.com>
27497
27498 * configure: Regenerated.
27499
27500 2010-04-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27501
27502 * config/s390/s390.c (s390_call_save_register_used): Switch back
27503 to HARD_REGNO_NREGS.
27504
27505 2010-04-15 Richard Guenther <rguenther@suse.de>
27506
27507 * alias.c (alias_set_subset_of): Handle alias-set zero
27508 child properly.
27509
27510 2010-04-15 Mark Shinwell <shinwell@codesourcery.com>
27511 Julian Brown <julian@codesourcery.com>
27512
27513 * config/arm/thumb2.md (thumb2_movsi_insn): Split ldr and str
27514 alternatives according to use of high and low regs.
27515 * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
27516 * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Use high regs when
27517 optimizing for size on Thumb-2.
27518
27519 2010-04-15 Thomas Schwinge <tschwinge@gnu.org>
27520
27521 * config.gcc <i[34567]86-*-gnu*>: Handle softfp as for Linux.
27522
27523 2010-04-15 Richard Guenther <rguenther@suse.de>
27524
27525 * tree-ssa-structalias.c (struct variable_info): Add
27526 is_fn_info flag.
27527 (new_var_info): Initialize it.
27528 (dump_constraints): Support printing last added constraints.
27529 (debug_constraints): Adjust.
27530 (dump_constraint_graph): Likewise.
27531 (make_heapvar_for): Check for NULL cfun.
27532 (get_function_part_constraint): New function.
27533 (get_fi_for_callee): Likewise.
27534 (find_func_aliases): Properly implement IPA PTA constraints.
27535 (process_ipa_clobber): New function.
27536 (find_func_clobbers): Likewise.
27537 (insert_into_field_list_sorted): Remove.
27538 (create_function_info_for): Properly allocate vars for IPA mode.
27539 Do not use insert_into_field_list_sorted.
27540 (create_variable_info_for): Properly generate constraints for
27541 global vars in IPA mode.
27542 (dump_solution_for_var): Always dump the solution.
27543 (set_uids_in_ptset): Initialize DECL_PT_UID if in ipa-mode.
27544 (find_what_var_points_to): Adjust.
27545 (pt_solution_set): Change.
27546 (pt_solution_ior_into): New function.
27547 (pt_solution_empty_p): Export.
27548 (pt_solution_includes_global): Adjust.
27549 (pt_solution_includes_1): Likewise.
27550 (pt_solutions_intersect_1): Likewise.
27551 (dump_sa_points_to_info): Check some invariants.
27552 (solve_constraints): Move constraint dumping ...
27553 (compute_points_to_sets): ... here.
27554 (ipa_pta_execute): ... and here.
27555 (compute_may_aliases): Do not re-compute points-to info
27556 locally if IPA info is available.
27557 (ipa_escaped_pt): New global var.
27558 (ipa_pta_execute): Properly implement IPA PTA.
27559 * tree-into-ssa.c (dump_decl_set): Support dumping
27560 decls not in referenced-vars.
27561 * tree-flow.h (struct gimple_df): Add ipa_pta flag.
27562 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Adjust.
27563 (dump_points_to_solution): Likewise.
27564 * tree-dfa.c (dump_variable): Also dump DECL_PT_UID.
27565 * tree-inline.c (remap_ssa_name): Copy IPA points-to solution.
27566 (remap_gimple_stmt): Reset call clobber/use information if necessary.
27567 (copy_decl_to_var): Copy DECL_PT_UID.
27568 (copy_result_decl_to_var): Likewise.
27569 * tree.c (make_node_stat): Initialize DECL_PT_UID.
27570 (copy_node_stat): Copy it.
27571 * tree.h (DECL_PT_UID): New macro.
27572 (SET_DECL_PT_UID): Likewise.
27573 (DECL_PT_UID_SET_P): Likewise.
27574 (struct tree_decl_minimal): Add pt_uid member.
27575 * tree-ssa-alias.h (struct pt_solution): Add ipa_escaped flag.
27576 (pt_solution_empty_p): Declare.
27577 (pt_solution_set): Adjust.
27578 (ipa_escaped_pt): Declare.
27579 * cfgexpand.c (update_alias_info_with_stack_vars): Adjust.
27580 * gimple-pretty-print.c (pp_points_to_solution): New function.
27581 (dump_gimple_call): Dump call clobber/use information.
27582 * tree-dump.c (dump_option_value_in): Add TDF_ALIAS entry.
27583 * tree-pass.h (TDF_ALIAS): New dump option.
27584 * tree-pretty-print.c (dump_decl_name): Dump DECL_PT_UID if asked to.
27585 * doc/invoke.texi (-fipa-pta): Update documentation.
27586
27587 2010-04-15 Richard Guenther <rguenther@suse.de>
27588
27589 * Makefile.in (OBJS-common): Add gimple-fold.o.
27590 (gimple-fold.o): New rule.
27591 * tree.h (maybe_fold_offset_to_reference,
27592 maybe_fold_offset_to_address, maybe_fold_stmt_addition): Move
27593 prototypes ...
27594 * gimple.h: ... here.
27595 * tree-flow.h (fold_stmt, fold_stmt_inplace, get_symbol_constant_value,
27596 may_propagate_address_into_dereference): Move prototypes ...
27597 * gimple.h: ... here.
27598 * tree-ssa-ccp.c (get_symbol_constant_value,
27599 may_propagate_address_into_dereference, maybe_fold_offset_to_array_ref,
27600 maybe_fold_offset_to_component_ref, maybe_fold_offset_to_reference,
27601 maybe_fold_offset_to_address, maybe_fold_stmt_indirect,
27602 maybe_fold_stmt_addition, maybe_fold_reference, get_maxval_strlen,
27603 ccp_fold_builtin, fold_gimple_assign, fold_gimple_cond,
27604 fold_gimple_call, fold_stmt_1, fold_stmt, fold_stmt_inplace,
27605 gimplify_and_update_call_from_tree): Move ...
27606 * gimple-fold.c: ... here. New file.
27607 (ccp_fold_builtin): Rename to ...
27608 (gimple_fold_builtin): ... this.
27609 * tree-ssa-ccp.c (execute_fold_all_builtins): Adjust.
27610
27611 2010-04-15 Richard Guenther <rguenther@suse.de>
27612
27613 * fold-const.c (LOWPART, HIGHPART, BASE, encode, decode,
27614 fit_double_type, force_fit_type_double, add_double_with_sign,
27615 neg_double, mul_double_with_sign, lshift_double, rshift_double,
27616 lrotate_double, rrotate_double, div_and_round_double): Move ...
27617 * double-int.c: ... here.
27618 * tree.h (force_fit_type_double, fit_double_type, add_double_with_sign,
27619 add_double, neg_double, mul_double_with_sign, mul_double,
27620 lshift_double, rshift_double, lrotate_double, rrotate_double,
27621 div_and_round_double): Move prototypes ...
27622 * double-int.h: ... here.
27623
27624 2010-04-15 Bernd Schmidt <bernds@codesourcery.com>
27625
27626 PR target/43742
27627 * config/sh/sh.md (doloop_end_split, dect): Undo previous patch. Use
27628 matching constraints to ensure inputs match the output.
27629
27630 2010-04-15 Kaz Kojima <kkojima@gcc.gnu.org>
27631
27632 PR target/43742
27633 * config/sh/sh.md (doloop_end_split): Remove "+r" constraint
27634 in an input-only operand.
27635
27636 2010-04-15 Anatoly Sokolov <aesok@post.ru>
27637
27638 * double-int.h (HOST_BITS_PER_DOUBLE_INT): Define.
27639 (double_int_not, double_int_lshift, double_int_rshift): Declare.
27640 (double_int_negative_p): Convert to static inline function.
27641 * double-int.c (double_int_lshift, double_int_lshift): New functions.
27642 (double_int_negative_p): Remove.
27643 * tree.h (lshift_double, rshift_double):
27644 * tree.c (build_low_bits_mask): Clean up, use double_int_* functions.
27645 * fold-const.c (fold_convert_const_int_from_real,
27646 fold_convert_const_int_from_fixed, div_if_zero_remainder): (Ditto.).
27647 (lshift_double): Change type of arith argument to bool.
27648 (rshift_double): Change type of arith argument to bool. Correct
27649 comment.
27650 * expmed.c (mask_rtx, lshift_value): (Ditto.).
27651
27652 2010-04-14 Bernd Schmidt <bernds@codesourcery.com>
27653
27654 PR target/21803
27655 * ifcvt.c (cond_exec_process_if_block): Look for identical sequences
27656 at the start and end of the then/else blocks, and omit them from the
27657 conversion.
27658 * cfgcleanup.c (flow_find_cross_jump): No longer static. Remove MODE
27659 argument; all callers changed. Pass zero to old_insns_match_p instead.
27660 (flow_find_head_matching_sequence): New function.
27661 (old_insns_match_p): Check REG_EH_REGION notes for calls.
27662 * basic-block.h (flow_find_cross_jump,
27663 flow_find_head_matching_sequence): Declare functions.
27664
27665 2010-04-14 Jason Merrill <jason@redhat.com>
27666
27667 PR c++/36625
27668 * c-common.c (attribute_takes_identifier_p): New fn.
27669 * c-common.h: Declare it.
27670
27671 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
27672
27673 * config/i386/i386.md (*divmod<mode>4): Remove stray "&&" from
27674 splitter condition.
27675 (*udivmod<mode>4): Ditto.
27676
27677 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
27678
27679 * config/i386/i386.md (maxmin_int): Rename code attribute from
27680 maxminiprefix and update all users.
27681 (maxmin_float): Ditto from maxminfprefix.
27682 (logic): Ditto from logicprefix.
27683 (absneg_mnemonic): Ditto from absnegprefix.
27684 * config/i386/mmx.md: Update all users of maxminiprefix,
27685 maxminfprefix and logicprefix for rename.
27686 * config/i386/sse.md: Ditto.
27687 * config/i386/sync.md (sync_<code><mode>): Update for
27688 logicprefix rename.
27689
27690 2010-04-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
27691
27692 PR 42966
27693 * diagnostics.c (diagnostic_report_diagnostic): Mark specially
27694 warnings converted to errors.
27695
27696 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
27697
27698 * config/alpha/alpha.c (alpha_adjust_cost): Remove set but not
27699 used insn_type variable.
27700 (function_value): Add ATTRIBUTE_UNUSED to dummy variable declaration
27701 to avoid set-but-not-used warning.
27702
27703 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
27704
27705 * df-core.c (df_ref_debug): Change format string placeholder
27706 from 0x%x to %#x.
27707 * dwarf2asm.c (dw2_asm_output_data_raw,
27708 dw2_asm_output_data_uleb128_raw, dw2_asm_output_data_uleb128,
27709 dw2_asm_output_data_sleb128_raw, dw2_asm_output_data_sleb128): Ditto.
27710 * dwarf2out.c (output_cfi, output_cfi_directive,
27711 dwarf2out_do_cfi_startproc, output_loc_sequence_raw,
27712 output_cfa_loc_raw, output_die, output_ranges, output_file_names):
27713 Ditto.
27714 * genattrtab.c (write_test_expr, write_attr_valueq): Ditto.
27715 * print-rtl.c (print_rtx): Ditto.
27716
27717 2010-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
27718
27719 PR middle-end/42694
27720 * builtins.c (expand_builtin_pow_root): New function to expand pow
27721 calls with exponents 0.25, 0.50, 0.75, 1./3., and 1./6. into a
27722 series of sqrt and cbrt calls under -ffast-math.
27723 (expand_builtin_pow): Call it.
27724
27725 2010-04-14 Michael Matz <matz@suse.de>
27726
27727 PR tree-optimization/42963
27728 * tree-cfg.c (touched_switch_bbs): New static variable.
27729 (group_case_labels_stmt): New function broken out from ...
27730 (group_case_labels): ... here, use the above.
27731 (start_recording_case_labels): Allocate touched_switch_bbs.
27732 (end_recording_case_labels): Deallocate it, call
27733 group_case_labels_stmt.
27734 (gimple_redirect_edge_and_branch): Remember index of affected BB.
27735
27736 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
27737
27738 * config/i386/i386.md (*popcountsi2_cmp_zext): Remove mode attribute
27739 from insn template.
27740
27741 2010-04-14 Uros Bizjak <ubizjak@gmail.com>
27742
27743 * config/i386/i386.md (*ashlqi3_1_slp): New insn pattern.
27744
27745 2010-04-13 Jan Hubicka <jh@suse.cz>
27746
27747 * ipa-inline.c (cgraph_mark_inline_edge): Avoid double accounting
27748 of optimized out static functions.
27749 (cgraph_edge_badness): Add DUMP parameter and dump reasons for the
27750 cost computation. Also sanity check for overflows.
27751 (update_caller_keys): Update cgraph_edge_badness call; properly
27752 update fibheap and sanity check that it is up to date.
27753 (add_new_edges_to_heap): Update cgraph_edge_badness.
27754 (cgraph_decide_inlining_of_small_function): Likewise;
27755 add sanity checking that badness in heap is up to date;
27756 improve dumping of reason; Update badness of calls to the
27757 offline copy of function currently inlined; dump badness
27758 of functions not inlined because of unit growth limits.
27759
27760 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
27761
27762 PR middle-end/32628
27763 * c-common.c (pointer_int_sum): Disregard overflow that occured only
27764 because of sign-extension change when converting to sizetype here...
27765 * fold-const.c (fold_convert_const_int_from_int): ...and not here.
27766
27767 * fold-const.c (fold_binary_op_with_conditional_arg): Do not restrict
27768 the folding to constants. Remove redundant final conversion.
27769 (fold_binary) <associate>: Do not associate if the re-association of
27770 constants alone overflows.
27771 (fold_binary) <FLOOR_MOD_EXPR>: Move transformation into BIT_AND_EXPR
27772 to the end of the list.
27773 (multiple_of_p) <COND_EXPR>: New case.
27774
27775 2010-04-13 Manuel López-Ibáñez <manu@gcc.gnu.org>
27776
27777 * opt-functions.awk (opt_sanitized_name): New.
27778 (opt_enum): New.
27779 * optc-gen.awk: Use it
27780 * opth-gen.awk: Use it.
27781
27782 2010-04-13 Martin Jambor <mjambor@suse.cz>
27783
27784 * tree-sra.c (replace_uses_with_default_def_ssa_name): New function.
27785 (sra_modify_assign): Delete stmts loading dead data even if racc has no
27786 children. Call replace_uses_with_default_def_ssa_name to handle
27787 SSA_NAES on lhs.
27788
27789 2010-04-13 Michael Matz <matz@suse.de>
27790
27791 PR middle-end/43730
27792 * builtins.c (expand_builtin_interclass_mathfn): Also create
27793 a register if the predicate doesn't match.
27794
27795 2010-04-13 Diego Novillo <dnovillo@google.com>
27796
27797 * Makefile.in (c-pch.o, ggc-common.o): Depend on timevar.h.
27798 * c-pch.c: Include timevar.h.
27799 (c_common_write_pch): Use TV_PCH_SAVE and TV_PCH_CPP_SAVE timers.
27800 (c_common_read_pch): Use TV_PCH_RESTORE and TV_PCH_CPP_RESTORE timers.
27801 * ggc-common.c: Include timevar.h.
27802 (gt_pch_save): Use TV_PCH_PTR_REALLOC and TV_PCH_PTR_SORT timers.
27803 * timevar.def (TV_PCH_SAVE): Define.
27804 (TV_PCH_CPP_SAVE): Define.
27805 (TV_PCH_PTR_REALLOC): Define.
27806 (TV_PCH_PTR_SORT): Define.
27807 (TV_PCH_RESTORE): Define.
27808 (TV_PCH_CPP_RESTORE): Define.
27809
27810 2010-04-13 Michael Matz <matz@suse.de>
27811
27812 * tree-ssa-reassoc.c (repropagate_negates): Merge negates also
27813 into MINUS_EXPRs.
27814 (can_reassociate_p): New function.
27815 (break_up_subtract_bb, reassociate_bb): Use it.
27816
27817 2010-04-13 Richard Guenther <rguenther@suse.de>
27818
27819 PR bootstrap/43737
27820 * builtins.c (c_readstr): Fix assert.
27821
27822 2010-04-13 Uros Bizjak <ubizjak@gmail.com>
27823
27824 * config/i386/i386.md (extendsidi2 splitter): Also check for DX_REG
27825 when generating cltd insn.
27826
27827 (*ashl<mode>3_1): Remove special handling for register operand 2.
27828 (*ashlsi3_1_zext): Ditto.
27829 (*ashlhi3_1): Ditto.
27830 (*ashlhi3_1_lea): Ditto.
27831 (*ashlqi3_1): Ditto.
27832 (*ashlqi3_1_lea): Ditto.
27833 (*<shiftrt_insn><mode>3_1): Ditto.
27834 (*<shiftrt_insn>si3_1_zext): Ditto.
27835 (*<shiftrt_insn>qi3_1_slp): Ditto.
27836 (*<rotate_insn><mode>3_1): Ditto.
27837 (*<rotate_insn>si3_1_zext): Ditto.
27838 (*<rotate_insn>qi3_1_slp): Ditto.
27839
27840 2010-04-13 Richard Guenther <rguenther@suse.de>
27841
27842 * tree-ssa-structalias.c (callused_id): Remove.
27843 (call_stmt_vars): New.
27844 (get_call_vi): Likewise.
27845 (lookup_call_use_vi): Likewise.
27846 (lookup_call_clobber_vi): Likewise.
27847 (get_call_use_vi): Likewise.
27848 (get_call_clobber_vi): Likewise.
27849 (make_transitive_closure_constraints): Likewise.
27850 (handle_const_call): Adjust to do per-call call-used handling.
27851 (handle_pure_call): Likewise.
27852 (find_what_var_points_to): Remove general callused handling.
27853 (init_base_vars): Likewise.
27854 (init_alias_vars): Initialize call_stmt_vars.
27855 (compute_points_to_sets): Process call-used and call-clobbered
27856 vars for call statements.
27857 (delete_points_to_sets): Free call_stmt_vars.
27858
27859 2010-04-13 Richard Guenther <rguenther@suse.de>
27860
27861 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
27862 Only add RW dependence for dependence distance zero.
27863 Adjust maximal vectorization factor according to dependences.
27864 Move alignment handling ...
27865 (vect_find_same_alignment_drs): ... here. New function.
27866 (vect_analyze_data_ref_dependences): Adjust.
27867 (vect_analyze_data_refs_alignment): Call vect_find_same_alignment_drs.
27868 (vect_analyze_data_refs): Adjust minimal vectorization factor
27869 according to data references.
27870 * tree-vect-loop.c (vect_analyze_loop): Analyze data-ref
27871 dependences before determining the vectorization factor.
27872 Analyze alignment after determining the vectorization factor.
27873 * tree-vect-slp.c ((vect_slp_analyze_bb): Analyze data-ref
27874 dependences before alignment.
27875 * tree-vectorizer.h (vect_analyze_data_ref_dependences):
27876 Adjust prototype.
27877 (vect_analyze_data_refs): Likewise.
27878 (MAX_VECTORIZATION_FACTOR): New define.
27879
27880 2010-04-13 Duncan Sands <baldrick@free.fr>
27881
27882 * except.h (lang_eh_type_covers): Remove.
27883 * except.c (lang_eh_type_covers): Likewise.
27884
27885 2010-04-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27886 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27887
27888 * config/s390/s390.md: Replace TARGET_64BIT with TARGET_ZARCH.
27889 * config/s390/s390.c: Replace UNTIS_PER_WORD with
27890 UNITS_PER_LONG where it is ABI relevant.
27891 (s390_return_addr_rtx): Likewise.
27892 (s390_back_chain_rtx): Likewise.
27893 (s390_frame_area): Likewise.
27894 (s390_frame_info): Likewise.
27895 (s390_initial_elimination_offset): Likewise.
27896 (save_gprs): Likewise.
27897 (s390_emit_prologue): Likewise.
27898 (s390_emit_epilogue): Likewise.
27899 (s390_function_arg_advance): Likewise.
27900 (s390_function_arg): Likewise.
27901 (s390_va_start): Likewise.
27902 (s390_gimplify_va_arg): Likewise.
27903 (s390_function_profiler): Likewise.
27904 (s390_optimize_prologue): Likewise.
27905 (s390_rtx_costs): Likewise.
27906 (s390_secondary_reload): Likewise.
27907 (s390_promote_function_mode): Likewise.
27908 (s390_hard_regno_mode_ok): Replace TARGET_64BIT with TARGET_ZARCH.
27909 (s390_scalar_mode_supported_p): Disallow TImode if no 64 bit
27910 registers available.
27911 (s390_unwind_word_mode): New function.
27912 (s390_function_value): Split 64 bit values into register pair if
27913 used as return value.
27914 (s390_call_saved_register_used): Don't use HARD_REGNO_NREGS for
27915 function call parameters. Handle parallels.
27916 (TARGET_SCALAR_MODE_SUPPORTED_P): New macro.
27917 (HARD_REGNO_CALL_PART_CLOBBERED): New macro.
27918 (DWARF_CIE_DATA_ALIGNMENT): New macro.
27919 (s390_expand_setmem): Remove unused variable src_addr.
27920 * longlong.h: Make smul_ppmm and sdiv_qrnnd inline asms to
27921 deal with 64 bit registers.
27922 * config/s390/s390.h: Define __zarch__ predefined macro.
27923 Replace UNITS_PER_WORD with UNITS_PER_LONG where it is ABI relevant.
27924 (UNITS_PER_LONG): New macro.
27925 * libjava/include/s390-signal.h: Define extended ucontext
27926 structure containing the upper halfs of the 64 bit registers.
27927
27928 2010-04-13 Simon Baldwin <simonb@google.com>
27929
27930 * cfgexpand.c (gimple_expand_cfg): Clarify warning message text.
27931
27932 2010-04-13 Eric Botcazou <ebotcazou@adacore.com>
27933
27934 * gimple.c (walk_gimple_op) <GIMPLE_ASSIGN>: Do not request a pure
27935 rvalue on the RHS if the LHS is of a non-renamable type.
27936 * tree-ssa-ccp.c (maybe_fold_offset_to_component_ref): Fold result.
27937
27938 2010-04-13 Matthias Klose <doko@ubuntu.com>
27939
27940 * gcc.c (cc1_options): Handle -iplugindir before processing
27941 the cc1 spec. Only add -iplugindir once.
27942 (cpp_unique_options): Add -iplugindir option if -fplugin* options
27943 found.
27944 * common.opt (iplugindir): Remove `Separate' property, initialize.
27945 * plugin.c (default_plugin_dir_name): Error with missing -iplugindir
27946 option.
27947 * Makefile.in (check-%, check-parallel-%): Create plugin dir.
27948 (distclean): Remove plugin dir.
27949 * doc/invoke.texi: Document -iplugindir.
27950
27951 2010-04-13 Basile Starynkevitch <basile@starynkevitch.net>
27952
27953 * doc/plugins.texi (Loading Plugins): Document short
27954 -fplugin=foo option.
27955 (Plugin API): Mention default_plugin_dir_name function.
27956
27957 * gcc.c (find_file_spec_function): Add new declaration.
27958 (static_spec_func): Use it for "find-file".
27959 (find_file_spec_function): Add new function.
27960 (cc1_options): Add -iplugindir option if -fplugin* options found.
27961
27962 * gcc-plugin.h (default_plugin_dir_name): Added new declaration.
27963
27964 * plugin.c (add_new_plugin): Updated comment, and handle short
27965 plugin name.
27966 (default_plugin_dir_name): Added new function.
27967
27968 * common.opt (iplugindir): New option to set the plugin directory.
27969
27970 2010-04-12 Uros Bizjak <ubizjak@gmail.com>
27971
27972 * config/i386/i386.md (any_rotate): New code iterator.
27973 (rotate_insn): New code attribute.
27974 (rotate): Ditto.
27975 (SWIM124): New mode iterator.
27976 (<rotate_insn>ti3): New expander.
27977 (<rotate_insn>di3): Macroize expander from {rotl,rotr}di3 using
27978 any_rotate code iterator.
27979 (<rotate_insn><mode>3) Macroize expander from {rotl,rotr}{qi,hi,si}3
27980 using any_rotate code iterator and SWIM124 mode iterator.
27981 (ix86_rotlti3): New insn_and_split pattern.
27982 (ix86_rotrti3): Ditto.
27983 (ix86_rotl<dwi>3_doubleword): Macroize insn_and_split pattern from
27984 ix86_rotl{di,ti}3 patterns.
27985 (ix86_rotr<dwi>3_doubleword): Ditto from ix86_rotr{di,ti}3 patterns.
27986 (*<rotate_insn><mode>3_1): Merge with *{rotl,rotr}{qi,hi,si}3_1_one_bit
27987 and *{rotl,rotr}di3_1_one_bit_rex64. Macroize insn from
27988 *{rotl,rotr}{qi,hi,si}3_1 and *{rotl,rotr}di3_1_rex64 using any_rotate
27989 code iterator and SWI mode iterator.
27990 (*<rotate_insn>si3_1_zext): Merge with *{rotl,rotr}si3_1_one_bit_zext.
27991 Macroize insn from {rotl,rotr}si3_1_zext using any_rotate
27992 code iterator.
27993 (*<rotate_insn>qi3_1_slp): Merge with *{rotl,rotr}qi3_1_one_bit_slp.
27994 Macroize insn from {rotl,rotr}qi3_1_slp using any_rotate code iterator.
27995 (bswap rotatert splitter): Add splitter.
27996 (bswap splitter): Macroize splitter using any_rotate code iterator.
27997 Add insn predicate to split only for TARGET_USE_XCHGB or when
27998 optimizing function for size.
27999
28000 2010-04-12 Steve Ellcey <sje@cup.hp.com>
28001
28002 * config/pa/pa.c (emit_move_sequence): Remove use of
28003 deleted variable flag_argument_noalias.
28004
28005 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28006
28007 * config.gcc: Removed *-*-solaris2.7* from list of obsolete
28008 configurations.
28009 Add to unsupported targets list.
28010 * configure.ac (gcc_cv_as_tls): Removed i[34567]86-*-solaris2.[567]*,
28011 sparc*-sun-solaris2.[567]* from target lists.
28012 * configure: Regenerate.
28013 * doc/install.texi (Specific, *-*-solaris2*): Document Solaris 7
28014 removal.
28015 Remove Solaris 7 patch references.
28016 (Specific, sparc-sun-solaris2.7): Removed.
28017 (sparc-sun-solaris2*): Update Solaris 7 example.
28018 (sparc64-*-solaris2*): Likewise.
28019
28020 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28021
28022 * config.build (alpha*-dec-osf4*): Remove.
28023 * config.gcc: Remove alpha*-dec-osf4*, alpha-dec-osf5.0* from list
28024 of obsolete configurations.
28025 (alpha*-dec-osf[45]*): Remove alpha*-dec-osf4*, alpha-dec-osf5.0*
28026 support.
28027 * config/alpha/t-osf4: Renamed to ...
28028 * config/alpha/t-osf5: ... this.
28029 * config/alpha/osf.h: Renamed to ...
28030 * config/alpha/osf5.h: ... this.
28031 Merged old osf5.h contents.
28032 Update comments.
28033 (ASM_SPEC): Use ASM_OLDAS_SPEC directly.
28034 (EXTRA_SPECS): Removed.
28035 * doc/install.texi (Specific, alpha*-dec-osf5.1): Renamed to
28036 reflect removal of Tru64 UNIX V4.0/V5.0 support.
28037 Document that.
28038
28039 2010-04-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28040
28041 * doc/contrib.texi (Contributors, Rainer Orth): Update.
28042
28043 2010-04-12 Kai Tietz <kai.tietz@onevision.com>
28044
28045 PR/43702
28046 * config/i386/i386.c (x86_this_parameter): Handle aggregate for
28047 __thiscall convention.
28048
28049 2010-04-12 Steve Ellcey <sje@cup.hp.com>
28050
28051 * config/pa/pa.c (hppa_legitimize_address): Remove unused variable
28052 orig_base.
28053 * config/pa/pa.md (call, call_value): Remove unused variable call_insn.
28054
28055 2010-04-12 Steve Ellcey <sje@cup.hp.com>
28056
28057 * function.c (assign_parms_initialize_all): Add unused attribute
28058 to fntype.
28059
28060 2010-04-12 Richard Guenther <rguenther@suse.de>
28061
28062 * gsstruct.def (GSS_CALL): New.
28063 * gimple.def (GIMPLE_CALL): Change to GSS_CALL.
28064 * gimple.h: Include tree-ssa-alias.h.
28065 (struct gimple_statement_call): New.
28066 (union gimple_statement_struct_d): Add gimple_call member.
28067 (gimple_call_reset_alias_info): Declare.
28068 (gimple_call_use_set): New function.
28069 (gimple_call_clobber_set): Likewise.
28070 * Makefile.in (GIMPLE_H): Add tree-ssa-alias.h.
28071 * gimple.c (gimple_call_reset_alias_info): New function.
28072 (gimple_build_call_1): Call it.
28073 * lto-streamer-in.c (input_gimple_stmt): Likewise.
28074 * tree-inline.c (remap_gimple_stmt): Likewise.
28075 (expand_call_inline): Remove callused handling.
28076 * cfgexpand.c (update_alias_info_with_stack_vars): Likewise.
28077 * tree-dfa.c (dump_variable): Likewise.
28078 * tree-parloops.c (parallelize_loops): Likewise.
28079 * tree-ssa.c (init_tree_ssa): Likewise.
28080 (delete_tree_ssa): Likewise.
28081 * tree-flow-inline.h (is_call_used): Remove.
28082 * tree-flow.h (struct gimple_df): Remove callused member.
28083 * tree-nrv.c (dest_safe_for_nrv_p): Adjust predicate.
28084 * tree-ssa-alias.c (dump_alias_info): Remove callused handling.
28085 (ref_maybe_used_by_call_p_1): Simplify.
28086 (call_may_clobber_ref_p_1): Likewise.
28087 * tree-ssa-structalias.c (compute_points_to_sets): Set
28088 the call stmt used and clobbered sets.
28089 * tree-tailcall.c (suitable_for_tail_opt_p): Adjust predicate.
28090 (find_tail_calls): Verify the tail call.
28091
28092 2010-04-12 Richard Guenther <rguenther@suse.de>
28093
28094 * ipa.c (cgraph_postorder): Adjust postorder to guarantee
28095 single-iteration always-inline inlining.
28096 * ipa-inline.c (cgraph_mark_inline): Do not return anything.
28097 (cgraph_decide_inlining): Do not handle always-inline specially.
28098 (try_inline): Remove always-inline cycle detection special case.
28099 Do not recurse on always-inlines.
28100 (cgraph_early_inlining): Do not iterate if not optimizing.
28101 (cgraph_gate_early_inlining): remove.
28102 (pass_early_inline): Run unconditionally.
28103 (gate_cgraph_decide_inlining): New function.
28104 (pass_ipa_inline): Use it. Do not run the IPA inliner if
28105 not inlining or optimizing.
28106 (cgraph_decide_inlining_of_small_functions): Also consider
28107 always-inline functions.
28108 (cgraph_default_inline_p): Return true for nodes which should
28109 disregard inline limits.
28110 (estimate_function_body_sizes): Assume zero size and time for
28111 nodes which are marked as disregarding inline limits.
28112 (cgraph_decide_recursive_inlining): Do not perform recursive
28113 inlining on always-inline nodes.
28114
28115 2010-04-12 Jakub Jelinek <jakub@redhat.com>
28116
28117 PR bootstrap/43699
28118 * c-typeck.c (c_process_expr_stmt): Call mark_exp_read even
28119 for exprs satisfying handled_component_p.
28120
28121 2010-04-12 Eric Botcazou <ebotcazou@adacore.com>
28122
28123 * expr.c (categorize_ctor_elements_1): Properly count sub-elements of
28124 non-constant aggregate elements.
28125
28126 * gimplify.c (gimplify_init_constructor): Do not pre-evaluate if this
28127 is a real initialization.
28128
28129 2010-04-12 Shujing Zhao <pearly.zhao@oracle.com>
28130
28131 PR c/36774
28132 * c-decl.c (start_function): Move forward check for nested function.
28133
28134 2010-04-11 Kaz Kojima <kkojima@gcc.gnu.org>
28135
28136 * config/sh/sh-protos.h (sh_legitimize_reload_address): Declare.
28137 * config/sh/sh.c: Include reload.h.
28138 (sh_legitimize_reload_address): New.
28139 * config/sh/sh.h (LEGITIMIZE_RELOAD_ADDRESS): Use
28140 sh_legitimize_reload_address.
28141
28142 2010-04-11 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
28143
28144 * config/sh/sh.md (*movqi_pop): New insn pattern.
28145 * config/sh/predicates.md (sh_no_delay_pop_operand): New predicate.
28146
28147 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
28148
28149 * config/i386/i386.md (any_shiftrt): New code iterator.
28150 (shiftrt_insn): New code attribute.
28151 (shiftrt): Ditto.
28152 (<shiftrt_insn><mode>3): Macroize expander from {ashr,lshr}<mode>3
28153 using any_shiftrt code iterator.
28154 (*<shiftrt_insn><mode>3_doubleword): Macroize insn_and_split from
28155 *{ashr,lshr}<mode>3_doubleword using any_shiftrt code iterator.
28156 (*<shiftrt_insn><mode>3_doubleword peephole2): Macroize peephole2
28157 pattern from corresponding peephole2 patterns.
28158 (*<shiftrt_insn><mode>3_1): Macroize insn from *{ashr,lshr}<mode>3_1
28159 using any_shiftrt code iterator.
28160 (*<shiftrt_insn>si3_1_zext): Ditto from *{ashr,lshr}si3_1_zext.
28161 (*<shiftrt_insn>qi3_1_slp): Ditto from *{ashr,lshr}qi3_1_slp.
28162 (*<shiftrt_insn><mode>3_cmp): Ditto from *{ashr,lshr}<mode>3_cmp.
28163 (*<shiftrt_insn><mode>3_cmp_zext): Ditto from
28164 *{ashr,lshr}<mode>3_cmp_zext.
28165 (*<shiftrt_insn><mode>3_cconly): Ditto from *{ashr,lshr}<mode>3_cconly.
28166
28167 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
28168
28169 * config/i386/i386.md (*ashr<mode>3_cconly): Fix wrong mode of
28170 scratch register.
28171 (*lshr<mode>3_cconly): Ditto.
28172
28173 2010-04-11 Uros Bizjak <ubizjak@gmail.com>
28174
28175 * config/i386/i386.md (lshr<mode>3): Macroize expander from
28176 lshr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
28177 (*lshr<mode>3_doubleword): New insn_and_split_pattern. Macroize
28178 pattern from *lshr{di,ti}3_1 and corresponding splitters using
28179 DWI mode iterator.
28180 (*lshr<mode>3_doubleword peephole2): Macroize peephole2 pattern
28181 from corresponding peephole2 patterns.
28182 (*lshr<mode>3_1): Merge with *lshr{qi,hi,si}3_1_one_bit and
28183 *lshrdi3_1_one_bit_rex64. Macroize insn from *lshr{qi,hi,si}3_1
28184 and *lshrdi3_1_rex64 using SWI mode iterator.
28185 (*lshrsi3_1_zext): Merge with *lshrsi3_1_one_bit_zext.
28186 (*lshrqi3_1_slp): Merge with *lshrqi3_1_one_bit_slp.
28187 (*lshr<mode>3_cmp): Merge with *lshr{qi,hi,si}3_one_bit_cmp and
28188 *lshrdi3_one_bit_cmp_rex64. Macroize insn from *lshr{qi,hi,si}3_cmp
28189 and *lshrdi3_cmp_rex64 using SWI mode iterator.
28190 (*lshrsi3_cmp_zext): Merge with *lshrsi3_cmp_one_bit_zext.
28191 (*lshr<mode>3_cconly): Merge with *lshr{qi,hi,si}3_one_bit_cconly and
28192 *lshrdi3_one_bit_cconly_rex64. Macroize insn from
28193 *lshr{qi,hi,si}3_cconly and *lshrdi3_cconly_rex64 using
28194 SWI mode iterator.
28195
28196 2010-04-10 Uros Bizjak <ubizjak@gmail.com>
28197
28198 * config/i386/i386.md (ashr<mode>3): Macroize expander from
28199 ashr{qi,hi,si,di,ti}3_1 using SDWIM mode iterator.
28200 (*ashr<mode>3_doubleword): New insn_and_split_pattern. Macroize
28201 pattern from *ashr{di,ti}3_1 and corresponding splitters using
28202 DWI mode iterator.
28203 (*ashr<mode>3_doubleword peephole2): Macroize peephole2 pattern
28204 from corresponding peephole2 patterns.
28205 (ashrdi3_cvt): Rename from ashrdi3_63_rex64.
28206 (ashrsi3_cvt): Rename from ashrsi3_31.
28207 (*ashrsi3_cvt_zext): Rename from *ashrsi3_31_zext.
28208 (x86_shift<mode>_adj_3): Macroize expander from x86_shift_adj_3
28209 and x86_64_shift_adj_3 using SWI48 mode iterator.
28210 (*ashr<mode>3_1): Merge with *ashr{qi,hi,si}3_1_one_bit and
28211 *ashrdi3_1_one_bit_rex64. Macroize insn from *ashr{qi,hi,si}3_1
28212 and *ashrdi3_1_rex64 using SWI mode iterator.
28213 (*ashrsi3_1_zext): Merge with *ashrsi3_1_one_bit_zext.
28214 (*ashrqi3_1_slp): Merge with *ashrqi3_1_one_bit_slp.
28215 (*ashr<mode>3_cmp): Merge with *ashr{qi,hi,si}3_one_bit_cmp and
28216 *ashrdi3_one_bit_cmp_rex64. Macroize insn from *ashr{qi,hi,si}3_cmp
28217 and *ashrdi3_cmp_rex64 using SWI mode iterator.
28218 (*ashrsi3_cmp_zext): Merge with *ashrsi3_cmp_one_bit_zext.
28219 (*ashr<mode>3_cconly): Merge with *ashr{qi,hi,si}3_one_bit_cconly and
28220 *ashrdi3_one_bit_cconly_rex64. Macroize insn from
28221 *ashr{qi,hi,si}3_cconly and *ashrdi3_cconly_rex64 using
28222 SWI mode iterator.
28223 (sign_extend splitters): Update for renamed ashr{di,si}3_cvt patterns.
28224 * config/i386/i386.c (ix86_split_ashr): Update for renamed
28225 x86_shift<mode>_adj_3 expanders.
28226
28227 2010-04-10 Wei Guozhi <carrot@google.com>
28228
28229 PR target/42601
28230 * config/arm/arm.c (arm_pic_static_addr): New function.
28231 (legitimize_pic_address): Call arm_pic_static_addr when it detects
28232 a static symbol.
28233 (arm_output_addr_const_extra): Output expression for new pattern.
28234 * config/arm/arm.md (UNSPEC_SYMBOL_OFFSET): New unspec symbol.
28235
28236 2010-04-10 Bernd Schmidt <bernds@codesourcery.com>
28237
28238 * ira-costs.c (record_reg_classes): Ignore alternatives that are
28239 not enabled.
28240
28241 * Makefile.in (web.o): Depend on insn-config.h and $(RECOG_H).
28242 * web.c: Include "insn-config.h" and "recog.h".
28243 (union_match_dups): New function.
28244 (web_main): Call it.
28245 (union_defs): Don't try to recognize match_dups.
28246
28247 * reload1.c (eliminate_regs_in_insn): Don't restore an operand
28248 if doing so would replace the entire pattern.
28249
28250 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
28251
28252 PR target/43707
28253 PR target/43709
28254 * config/i386/i386.md (*ashl<mode>3_doubleword): Split to insn
28255 and splitter pattern. Change splitter operand 1 predicate to
28256 nonmemory_operand.
28257
28258 2010-04-09 Martin Jambor <mjambor@suse.cz>
28259
28260 * ipa-cp.c (ipcp_lats_are_equal): Return true also if the two
28261 lattices are addresses of CONST_DECLs with the same initial value.
28262 (ipcp_print_all_lattices): Print values of CONST_DECLs.
28263 * ipa-prop.c (ipa_print_node_jump_functions): Likewise.
28264
28265 2010-04-09 Eric Botcazou <ebotcazou@adacore.com>
28266 Bernd Schmidt <bernds@codesourcery.com>
28267
28268 * loop-invariant.c (replace_uses): New static function.
28269 (move_invariant_reg): Use it to ensure we can replace the uses.
28270
28271 2010-04-09 Hariharan Sandanagobalane <hariharan@picochip.com>
28272
28273 * config/picochip/picochip.c (picochip_rtx_costs): Use correct
28274 function template.
28275 (picochip_override_options): Enable section anchors only above -O1.
28276 (picochip_reorg): Fixed a couple of build warnings.
28277
28278 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28279
28280 * configure.ac (plugin -rdynamic test): Log result.
28281 * configure: Regenerate.
28282 * config/sol2.h (LINK_SPEC): Handle -rdynamic.
28283 (RDYNAMIC_SPEC): Define.
28284 * config/sol2-gld.h (RDYNAMIC_SPEC): Redefine.
28285
28286 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28287
28288 * configure.ac: Determine Sun ld version numbers.
28289 (comdat_group): Restrict GNU ld version checks to gld.
28290 (comdat_group, *-*-solaris2.1[1-9]*): Enable for Sun ld > 1.1688.
28291 (enable_comdat): Support --enable-comdat.
28292 * configure: Regenerate.
28293 * doc/install.texi (Configuration): Document --enable-comdat.
28294
28295 2010-04-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28296
28297 * config/sparc/sol2-gld.h: Remove SPARC reference. Rename ...
28298 * config/sol2-gld.h: ... here.
28299 * config.gcc (sparc*-*-solaris2*): Reflect this.
28300 (i[34567]86-*-solaris2*): Use it.
28301
28302 2010-04-09 Steve Ellcey <sje@cup.hp.com>
28303
28304 * config/ia64/ia64.c (ia64_dfa_new_cycle): Remove unused variable
28305 setup_clocks_p.
28306 (final_emit_insn_group_barriers): Remove unused variable prev_insn.
28307
28308 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
28309
28310 PR 42965
28311 * diagnostic.c (diagnostic_initialize): Initialize
28312 some_warnings_are_errors.
28313 (diagnostic_finish): New.
28314 (diagnostic_action_after_output): Call it before exiting.
28315 (diagnostic_report_diagnostic): Do not print message here. Set
28316 some_warnings_are_errors.
28317 * diagnostic.h (diagnostic_context): Delete
28318 issue_warnings_are_errors_message. Add some_warnings_are_errors.
28319 (diagnostic_finish): Declare.
28320 * toplev.c (toplev_main): Call it before exit.
28321
28322 2010-04-09 Jason Merrill <jason@redhat.com>
28323
28324 PR c++/42623
28325 * c-common.c (c_sizeof_or_alignof_type): Return error_mark_node
28326 for incomplete type.
28327
28328 PR c++/41788
28329 * stor-layout.c (finalize_record_size): Don't change TYPE_PACKED
28330 based on a warning flag.
28331
28332 2010-04-09 Richard Guenther <rguenther@suse.de>
28333
28334 * tree-pretty-print.c (dump_generic_node): Dump TYPE_VECTOR_SUBPARTS.
28335
28336 2010-04-09 Iain Sandoe <iains@gcc.gnu.org>
28337
28338 PR bootstrap/43684
28339 * varasm.c (default_assemble_visibility): Wrap vars that are
28340 set, but unused, by targets without GAS.
28341 * config/rs6000/rs6000.c (paired_emit_vector_compare):
28342 Remove set, but unused, vars.
28343 (rs6000_legitimize_tls_address): Likewise.
28344 (altivec_expand_dst_builtin): Likewise.
28345 * config/darwin.c (machopic_classify_symbol): Likewise.
28346 (machopic_indirection_name): Likewise.
28347
28348 2010-04-09 Uros Bizjak <ubizjak@gmail.com>
28349
28350 * config/i386/i386.md (DWI): New mode iterator.
28351 (S): New mode attribute.
28352 (shift_operand): Ditto.
28353 (shift_immediate_operand): Ditto.
28354 (ashl_input_operand): Ditto.
28355 (ashl<mode>3): Macroize expander from ashl{qi,hi,si,di,ti}3_1
28356 using SDWIM mode iterator.
28357 (*ashl<mode>3_doubleword): New insn_and_split_pattern. Macroize
28358 pattern from *ashl{di,ti}3_1 and corresponding splitters using
28359 DWI mode iterator.
28360 (*ashl<mode>3_doubleword peephole2): Macroize peephole2 pattern
28361 from corresponding peephole2 patterns.
28362 (x86_shift<mode>_adj_1): Macroize expander from x86_shift_adj_1
28363 and x86_64_shift_adj_1 using SWI48 mode iterator.
28364 (x86_shift<mode>_adj_2): Ditto.
28365 (*ashldi3_1_rex64): Split TYPE_LEA pattern.
28366 (*ashl<mode>3_1): Macroize insn from *ashlsi3_1 and *ashldi3_1_rex64
28367 using SWI48 mode iterator.
28368 (*ashl<mode>3_cmp): Macroize insn from *ashl{qi,hi,si}3_cmp and
28369 *ashldi3_cmp_rex64 using SWI mode iterator.
28370 (*ashl<mode>3_cconly): Macroize insn from *ashl{qi,hi,si}3_cconly and
28371 *ashldi3_cconly_rex64 using SWI mode iterator.
28372 * config/i386/i386.c (ix86_split_ashl): Update for renamed
28373 x86_shift<mode>_adj_{1,2}.
28374 (ix86_split_ashr): Ditto.
28375 (ix86_split_lshr): Ditto.
28376
28377 2010-04-09 Richard Guenther <rguenther@suse.de>
28378
28379 * target.h (builtin_conversion): Pass in input and output types.
28380 * targhooks.c (default_builtin_vectorized_conversion): Adjust.
28381 * targhooks.h (default_builtin_vectorized_conversion): Likewise.
28382 * tree-vect-stmts.c (vectorizable_conversion): Adjust.
28383 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Adjust.
28384
28385 * config/i386/i386.c (ix86_vectorize_builtin_conversion): Adjust.
28386 Handle AVX modes.
28387 * config/rs6000/rs6000.c (rs6000_builtin_conversion): Adjust.
28388
28389 2010-04-09 Richard Guenther <rguenther@suse.de>
28390
28391 PR target/43152
28392 * config/i386/sse.md (vcond<mode>): Handle AVX modes as well.
28393
28394 2010-04-09 Richard Guenther <rguenther@suse.de>
28395
28396 * tree-vectorizer.h (struct _stmt_vec_info): Document
28397 that vectype is the type of the LHS.
28398 (supportable_widening_operation, supportable_narrowing_operation):
28399 Get both input and output vector types as arguments.
28400 (vect_is_simple_use_1): Declare.
28401 (get_same_sized_vectype): Likewise.
28402 * tree-vect-loop.c (vect_determine_vectorization_factor):
28403 Set STMT_VINFO_VECTYPE to the vector type of the def.
28404 (vectorizable_reduction): Adjust.
28405 * tree-vect-patterns.c (vect_recog_widen_mult_pattern):
28406 Adjust. Specify the output vector type.
28407 (vect_pattern_recog_1): Adjust.
28408 * tree-vect-stmts.c (get_same_sized_vectype): New function.
28409 (vectorizable_call): Adjust.
28410 (vectorizable_conversion): Likewise.
28411 (vectorizable_operation): Likewise.
28412 (vectorizable_type_demotion): Likewise.
28413 (vectorizable_type_promotion): Likewise.
28414 (vect_analyze_stmt): Set STMT_VINFO_VECTYPE to the vector type of
28415 the def.
28416 (vect_is_simple_use_1): New function.
28417 (supportable_widening_operation): Get both input and output
28418 vector types.
28419 (supportable_narrowing_operation): Likewise.
28420 * tree-vect-slp.c (vect_schedule_slp_instance): Adjust.
28421
28422 2010-04-09 Kai Tietz <kai.tietz@onevision.com>
28423
28424 * config/i386/cygming.h (TARGET_OS_CPP_BUILTINS): Add
28425 __thiscall and _thiscall as predefined macros.
28426 * config/i386/i386.c (ix86_handle_cconv_attribute): Add
28427 thiscall attribute handling.
28428 (ix86_comp_type_attributes): Likewise.
28429 (ix86_function_regparm): Likewise.
28430 (ix86_return_pops_args): Likewise.
28431 (init_cumulative_args): Likewise.
28432 (find_drap_reg): Likewise.
28433 (ix86_static_chain): Likewise.
28434 (x86_this_parameter): Likewise.
28435 (x86_output_mi_thunk): Likewise.
28436 (ix86_attribute_table): Add description for thiscall attribute.
28437 * config/i386/i386.h (ix86_args): Adjust comment for member fastcall.
28438 * doc/extend.texi: Add documentation for thiscall.
28439
28440 2010-04-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
28441
28442 PR c++/28584
28443 * c.opt (Wint-to-pointer-cast): Available in C++.
28444 * doc/invoke.texi (Wint-to-pointer-cast): Available in C++.
28445
28446 2010-04-08 Eric Botcazou <ebotcazou@adacore.com>
28447
28448 * tree.h (TREE_ADDRESSABLE): Document its effect for function types.
28449 * calls.c (expand_call): Pass the function type to aggregate_value_p.
28450 * function.c (aggregate_value_p): Do not honor DECL_BY_REFERENCE on
28451 the target function of a CALL_EXPR. Honor TREE_ADDRESSABLE on the
28452 function type instead. Reorder and simplify checks.
28453
28454 * gimplify.c (gimplify_modify_expr_rhs) <WITH_SIZE_EXPR>: New case.
28455
28456 2010-04-08 Jing Yu <jingyu@google.com>
28457 Zdenek Dvorak <ook@ucw.cz>
28458
28459 PR tree-optimization/42720
28460 * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Move one-time
28461 loop unswitch conditions here from ...
28462 (tree_unswitch_single_loop): ... here.
28463
28464 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
28465
28466 * tree-if-conv.c: Fix comments and simplify logic.
28467
28468 2010-04-08 Sebastian Pop <sebastian.pop@amd.com>
28469
28470 * tree-if-conv.c (if_convertible_loop_p): Remove unused parameter.
28471 (tree_if_conversion): Same. Update call to if_convertible_loop_p.
28472 (main_tree_if_conversion): Update call to tree_if_conversion.
28473
28474 2010-04-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
28475
28476 PR 42485
28477 * doc/invoke.texi (-b,-V): Delete.
28478 * doc/tm.texi: Do not mention -b.
28479 * gcc.c (display_help): Delete -b and -V.
28480 (process_command): Delete -b and -V.
28481 * gcc.h (DEFAULT_SWITCH_TAKES_ARG): Delete -b and -V.
28482
28483 2010-04-08 Christian Borntraeger <borntraeger@de.ibm.com>
28484 Wolfgang Gellerich <gellerich@de.ibm.com>
28485
28486 Implement target hook for loop unrolling
28487 * target.h (loop_unroll_adjust): Add a new target hook function.
28488 * target-def.h (TARGET_LOOP_UNROLL_ADJUST): Likewise.
28489 * doc/tm.texi (TARGET_LOOP_UNROLL_ADJUST): Document it.
28490 * config/s390/s390.c (TARGET_LOOP_UNROLL_ADJUST): Define it.
28491 (s390_loop_unroll_adjust): Implement the new target hook for s390.
28492 * loop-unroll.c (decide_unroll_runtime_iterations): Call loop unroll
28493 target hook.
28494 (decide_unroll_stupid): Likewise.
28495
28496 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28497
28498 PR target/43643
28499 * config/i386/gmon-sol2.c [__x86_64__]: Properly restore %rcx.
28500
28501 2010-04-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28502
28503 * doc/install.texi (Specific, i?86-*-solaris2.10): Fix grammar.
28504 (Specific, *-*-solaris2*): Likewise.
28505 Don't prefer Sun as over GNU as.
28506
28507 2010-04-08 Wolfgang Gellerich <gellerich@de.ibm.com>
28508
28509 * config/s390/s390.c (override_options): Adjust the z10 defaults
28510 for max-unroll-times, max-completely-peeled-insns
28511 and max-completely-peel-times.
28512
28513 2010-04-08 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28514
28515 * config/s390/s390.c (s390_expand_movmem): Issue prefetch
28516 instructions for z10.
28517 (s390_expand_setmem): Likewise.
28518 (s390_expand_cmpmem): Likewise.
28519
28520 2010-04-08 Richard Guenther <rguenther@suse.de>
28521
28522 PR tree-optimization/43679
28523 * tree-ssa-pre.c (eliminate): Only propagate copies.
28524
28525 2010-04-08 Jakub Jelinek <jakub@redhat.com>
28526
28527 PR bootstrap/43681
28528 * expr.c (block_move_libcall_safe_for_call_parm): Avoid
28529 set but not used variable warning.
28530
28531 2010-04-08 Wei Guozhi <carrot@google.com>
28532
28533 PR target/41653
28534 * config/arm/arm.c (thumb1_size_rtx_costs): New function.
28535 (arm_size_rtx_costs): Call the new function when optimized for size.
28536
28537 2010-04-08 Jakub Jelinek <jakub@redhat.com>
28538
28539 PR debug/43670
28540 * cfgexpand.c (expand_debug_expr): If for non-NULL offset
28541 op0 is not a MEM, just return NULL instead of assertion
28542 failure.
28543 (discover_nonconstant_array_refs): Don't walk debug stmts.
28544
28545 2010-04-08 Doug Kwan <dougkwan@google.com>
28546
28547 * configure.ac: Recognize gold and do not use its version number
28548 to test ld features.
28549 * configure: Regenerate.
28550
28551 2010-04-08 Maxim Kuvyrkov <maxim@codesourcery.com>
28552
28553 PR middle-end/40815
28554 * tree-ssa-reassoc.c (broken_up_substracts): Rename to plus_negates.
28555 (negate_value): Move code to push elements to broken_up_substracts ...
28556 (eliminate_plus_minus_pair): ... here. Push operands that have no
28557 negative pair to plus_negates.
28558 (repropagate_negates, init_reassoc, fini_reassoc): Update.
28559
28560 2010-04-07 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28561
28562 * doc/install.texi (Configuration): Move description of
28563 --enable-lto, --with-libelf*, --enable-gold from Java section to
28564 general section.
28565
28566 * doc/generic.texi (Working with declarations)
28567 (Function Properties, C and C++ Trees): Fix typos.
28568 * doc/sourcebuild.texi (Top Level): Likewise.
28569
28570 2010-04-07 Jakub Jelinek <jakub@redhat.com>
28571
28572 PR c/18624
28573 * tree.h (DECL_READ_P): Define.
28574 (struct tree_decl_common): Add decl_read_flag.
28575 * c-decl.c (pop_scope): If TREE_USED but !DECL_READ_P, issue
28576 a set but not used warning.
28577 (merge_decls): Merge DECL_READ_P flag.
28578 (finish_decl, build_compound_literal): Set DECL_READ_P flag.
28579 (finish_function): Issue -Wunused-but-set-parameter diagnostics.
28580 * c-common.c (handle_used_attribute, handle_unused_attribute):
28581 Likewise.
28582 * c-tree.h (default_function_array_read_conversion, mark_exp_read):
28583 New prototypes.
28584 * c-typeck.c (default_function_array_read_conversion, mark_exp_read):
28585 New functions.
28586 (default_conversion, c_process_expr_stmt): Call mark_exp_read.
28587 * c-parser.c (c_parser_initializer, c_parser_expr_no_commas,
28588 c_parser_binary_expression, c_parser_cast_expression,
28589 c_parser_expr_list, c_parser_omp_atomic, c_parser_omp_for_loop):
28590 Call default_function_array_read_conversion instead of
28591 default_function_array_conversion where needed.
28592 (c_parser_unary_expression, c_parser_conditional_expression,
28593 c_parser_postfix_expression_after_primary, c_parser_initelt):
28594 Likewise. Call mark_exp_read where needed.
28595 (c_parser_statement_after_labels, c_parser_asm_operands,
28596 c_parser_typeof_specifier, c_parser_sizeof_expression,
28597 c_parser_alignof_expression, c_parser_initval): Call mark_exp_read
28598 where needed.
28599 * common.opt (Wunused-but-set-variable, Wunused-but-set-parameter):
28600 New.
28601 * toplev.c (warn_unused_but_set_variable): Default to warn_unused.
28602 (warn_unused_but_set_parameter): Default to warn_unused
28603 && extra_warnings.
28604 * doc/invoke.texi: Document -Wunused-but-set-variable and
28605 -Wunused-but-set-parameter.
28606
28607 * tree-ssa-pre.c (my_rev_post_order_compute): Remove set but not
28608 used count variable.
28609 * genemit.c (gen_expand, gen_split): Avoid set but not used warnings
28610 when operandN variables aren't used in the body of the expander
28611 or splitter.
28612 * tree-outof-ssa.c (FOR_EACH_ELIM_GRAPH_SUCC,
28613 FOR_EACH_ELIM_GRAPH_PRED): Avoid set but not used warnings.
28614 * tree-ssa-operands.h (FOR_EACH_SSA_TREE_OPERAND): Likewise.
28615 * tree-flow.h (FOR_EACH_IMM_USE_FAST, FOR_EACH_IMM_USE_STMT,
28616 FOR_EACH_IMM_USE_ON_STMT): Likewise.
28617 * tree.h (FOR_EACH_CONSTRUCTOR_ELT): Likewise.
28618 * tree.c (PROCESS_ARG): Likewise.
28619
28620 2010-04-07 Simon Baldwin <simonb@google.com>
28621
28622 * diagnostic.h (diagnostic_override_option_index): New macro to
28623 set a diagnostic's option_index.
28624 * c-tree.h (c_cpp_error): Add warning reason argument.
28625 * opts.c (_warning_as_error_callback): New.
28626 (register_warning_as_error_callback): Store callback for
28627 warnings enabled via enable_warning_as_error.
28628 (enable_warning_as_error): Call callback, minor code tidy.
28629 * opts.h (register_warning_as_error_callback): Declare.
28630 * c-opts.c (warning_as_error_callback): New, set cpp_opts flag in
28631 response to -Werror=.
28632 (c_common_init_options): Register warning_as_error_callback in opts.c.
28633 * common.opt: Add -Wno-cpp option.
28634 * c-common.c (struct reason_option_codes_t): Map cpp warning
28635 reason codes to gcc option indexes.
28636 * (c_option_controlling_cpp_error): New function, lookup the gcc
28637 option index for a cpp warning reason code.
28638 * (c_cpp_error): Add warning reason argument, call
28639 c_option_controlling_cpp_error for diagnostic_override_option_index.
28640 * doc/invoke.texi: Document -Wno-cpp.
28641
28642 2010-04-07 Richard Guenther <rguenther@suse.de>
28643
28644 * ipa-reference.c (mark_load): Use get_base_address.
28645 (mark_store): Likewise.
28646
28647 * tree-ssa-ccp.c (gimplify_and_update_call_from_tree): Avoid
28648 inserting GIMPLE_NOPs into the IL.
28649 * tree-ssa-structalias.c (get_constraint_for_component_ref):
28650 Explicitly strip handled components and indirect references.
28651
28652 * fold-const.c (fold_unary_loc): Do not strip qualifiers when
28653 folding address expressions.
28654 * gimple.c (gimple_ior_addresses_taken_1): Use get_base_address.
28655 * tree-ssa-alias.c (decl_refs_may_alias_p): Do not use
28656 operand_equal_p to compare decls.
28657 (ptr_deref_may_alias_decl_p): Likewise.
28658 * tree-ssa-operands.c (get_asm_expr_operands): Simplify
28659 * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond):
28660 Handle reversed comparison ops.
28661 * tree-sra.c (asm_visit_addr): Use get_base_address.
28662 * ipa-prop.c (visit_store_addr_for_mod_analysis): Use get_base_address.
28663 * ipa-reference.c (mark_address): Use get_base_address.
28664
28665 2010-04-07 Richard Guenther <rguenther@suse.de>
28666
28667 * tree-ssa-forwprop.c (forward_propagate_addr_expr):
28668 Propagate constants everywhere.
28669
28670 2010-04-07 Jakub Jelinek <jakub@redhat.com>
28671
28672 PR debug/43516
28673 * tree.c (MAX_INT_CACHED_PREC): Define.
28674 (nonstandard_integer_type_cache): New array.
28675 (build_nonstandard_integer_type): Cache results for precision
28676 <= MAX_INT_CACHED_PREC.
28677
28678 2010-04-07 Richard Guenther <rguenther@suse.de>
28679
28680 * doc/invoke.texi (-fargument-alias, -fargument-noalias,
28681 -fargument-noalias-global, -fargument-noalias-anything): Remove.
28682 * common.opt: Likewise.
28683 * tree-ssa-structalias.c (intra_create_variable_infos): Adjust comment.
28684 * alias.c (base_alias_check): Remove flag_argument_noalias handling.
28685 (nonoverlapping_memrefs_p): Likewise.
28686 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
28687 * opts.c (common_handle_option): Handle OPT_fargument_alias,
28688 OPT_fargument_noalias, OPT_fargument_noalias_anything and
28689 OPT_fargument_noalias_global for backward compatibility.
28690
28691 2010-04-07 Richard Guenther <rguenther@suse.de>
28692
28693 PR tree-optimization/43270
28694 * tree-vrp.c (check_array_ref): Fix flexible array member detection.
28695 * tree-ssa-sccvn.h (fully_constant_vn_reference_p): Declare.
28696 * tree-ssa-pre.c (phi_translate_1): Adjust.
28697 (fully_constant_expression): Split out vn_reference handling to ...
28698 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): ... here.
28699 Fold reads from constant strings.
28700 (vn_reference_lookup): Handle fully constant references.
28701 (vn_reference_lookup_pieces): Likewise.
28702 * Makefile.in (expmed.o-warn): Add -Wno-error.
28703
28704 2010-04-07 Martin Jambor <mjambor@suse.cz>
28705
28706 * tree-sra.c (find_param_candidates): Allow scalar va_list types.
28707
28708 2010-04-07 Iain Sandoe <iains@gcc.gnu.org>
28709
28710 PR driver/41594
28711 * gcc.c: Add -static-libstdc++ to list of recognized options.
28712
28713 2010-04-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28714
28715 * config.gcc (i[34567]86-*-solaris2*): Default with_tune_32 to generic.
28716
28717 2010-04-07 Richard Guenther <rguenther@suse.de>
28718
28719 PR middle-end/42617
28720 * expr.c (expand_expr_real_1): For TARGET_MEM_REFs with pointer
28721 bases build simple mem attributes to retain points-to information.
28722
28723 2010-04-07 Richard Guenther <rguenther@suse.de>
28724
28725 PR middle-end/42617
28726 * alias.c (ao_ref_from_mem): Without MEM_OFFSET or MEM_SIZE
28727 preserve points-to related information.
28728
28729 2010-04-07 Richard Guenther <rguenther@suse.de>
28730
28731 PR middle-end/42617
28732 * emit-rtl.c (set_mem_attributes_minus_bitpos): Do not
28733 discard plain indirect references.
28734 * fold-const.c (operand_equal_p): Guard against NULL_TREE type.
28735 * tree.c (tree_nop_conversion): Likewise.
28736
28737 2010-04-07 Dodji Seketeli <dodji@redhat.com>
28738
28739 PR debug/43628
28740 * dwarf2out.c (modified_type_die): Ignore artificial typedefs.
28741
28742 2010-04-06 Kai Tietz <kai.tietz@onevision.com>
28743
28744 * config/i386/i386.c (ix86_handle_cconv_attribute): Ignore
28745 calling convention attributes on METHOD_TYPEs for w64 ABI, too.
28746
28747 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
28748
28749 * tree-if-conv.c: Fix indentation and comments.
28750
28751 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
28752
28753 * tree-if-conv.c: Sort static functions in topological order.
28754
28755 2010-04-07 Sebastian Pop <sebastian.pop@amd.com>
28756
28757 * tree-if-conv.c: Fix indentation and comments.
28758
28759 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
28760
28761 PR middle-end/43519
28762 * graphite-clast-to-gimple.c (max_signed_precision_type): Use
28763 lang_hooks.types.type_for_size instead of
28764 build_nonstandard_integer_type.
28765 When converting an unsigned type to signed, double its precision.
28766 (gcc_type_for_interval): Use lang_hooks.types.type_for_size.
28767 (gcc_type_for_iv_of_clast_loop): Call max_signed_precision_type.
28768 (graphite_create_new_loop_guard): When ub + 1 wraps around,
28769 use lb <= ub.
28770
28771 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
28772
28773 PR middle-end/43519
28774 * graphite-clast-to-gimple.c (graphite_create_new_loop_guard): Use
28775 POINTER_PLUS_EXPR for pointer types.
28776
28777 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
28778
28779 PR middle-end/43519
28780 * Makefile.in (graphite-clast-to-gimple.o): Depends on langhooks.h.
28781 * graphite-clast-to-gimple.c: Include langhooks.h.
28782 (max_signed_precision_type): New.
28783 (max_precision_type): Takes two types as arguments.
28784 (precision_for_value): New.
28785 (precision_for_interval): New.
28786 (gcc_type_for_interval): New.
28787 (gcc_type_for_value): New.
28788 (gcc_type_for_clast_term): New.
28789 (gcc_type_for_clast_red): New.
28790 (gcc_type_for_clast_bin): New.
28791 (gcc_type_for_clast_expr): Split up into several functions.
28792 (gcc_type_for_clast_eq): Rewritten.
28793 (compute_bounds_for_level): New.
28794 (compute_type_for_level_1): New.
28795 (compute_type_for_level): New.
28796 (gcc_type_for_cloog_iv): Removed.
28797 (gcc_type_for_iv_of_clast_loop): Rewritten.
28798 (graphite_create_new_loop): Compute the lower and upper bound types
28799 with gcc_type_for_clast_expr.
28800 (graphite_create_new_loop_guard): Same.
28801 (find_cloog_iv_in_expr): Removed.
28802 (compute_cloog_iv_types_1): Removed.
28803 (compute_cloog_iv_types): Removed.
28804 (gloog): Do not call compute_cloog_iv_types.
28805 * graphite-sese-to-poly.c (new_gimple_bb): Do not initialize
28806 GBB_CLOOG_IV_TYPES.
28807 (free_data_refs_aux): Do not free GBB_CLOOG_IV_TYPES.
28808 * sese.h (struct gimple_bb): Removed field cloog_iv_types.
28809 (GBB_CLOOG_IV_TYPES): Removed.
28810
28811 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
28812
28813 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Assert that
28814 gimple_phi_num_args of the loop close SSA phi node is equal to 1.
28815 (detect_commutative_reduction): Same.
28816
28817 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
28818
28819 * graphite-clast-to-gimple.c (graphite_verify): Remove redundant
28820 call to verify_ssa. Invoke verify_loop_closed_ssa with an extra
28821 argument.
28822 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form): Same.
28823 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Same.
28824 (rewrite_commutative_reductions_out_of_ssa): Same.
28825 * passes.c (execute_function_todo): Call verify_ssa for every pass
28826 in the LNO. Invoke verify_loop_closed_ssa with an extra argument.
28827 * tree-flow.h (verify_loop_closed_ssa): Update declaration.
28828 * tree-parloops.c (parallelize_loops): Invoke verify_loop_closed_ssa
28829 with an extra argument.
28830 * tree-ssa-loop-manip.c (check_loop_closed_ssa_stmt): Same. Call
28831 verify_ssa only when the extra argument is true.
28832 (gimple_duplicate_loop_to_header_edge): Invoke verify_loop_closed_ssa
28833 with an extra argument.
28834 (tree_transform_and_unroll_loop): Same.
28835
28836 2010-04-06 Sebastian Pop <sebastian.pop@amd.com>
28837
28838 * passes.c (execute_function_todo): Call verify_loop_closed_ssa
28839 for all the passes of the LNO having LOOP_CLOSED_SSA.
28840 * tree-if-conv.c (pass_if_conversion): Remove TODO_verify_loops.
28841 * tree-loop-distribution.c (pass_loop_distribution): Same.
28842 * tree-pass.h (TODO_verify_loops): Removed.
28843 * tree-ssa-loop.c (pass_tree_loop_init): Same.
28844 (pass_lim): Same.
28845 (pass_tree_unswitch): Same.
28846 (pass_predcom): Same.
28847 (pass_vectorize): Same.
28848 (pass_linear_transform): Same.
28849 (pass_graphite_transforms): Same.
28850 (pass_iv_canon): Same.
28851 (pass_complete_unroll): Same.
28852 (pass_complete_unrolli): Same.
28853 (pass_parallelize_loops): Same.
28854 (pass_loop_prefetch): Same.
28855 (pass_iv_optimize): Same.
28856
28857 2010-04-06 Changpeng Fang <changpeng.fang@amd.com>
28858
28859 PR middle-end/32824
28860 * passes.c (init_optimization_passes): Move pass_lim before
28861 pass_copy_prop and pass_dce_loop.
28862
28863 2010-04-06 Jakub Jelinek <jakub@redhat.com>
28864
28865 PR target/43667
28866 * config/i386/i386.c (bdesc_multi_arg): Use OPTION_MASK_ISA_XOP
28867 instead of OPTION_MASK_ISA_AVX for __builtin_ia32_vpermil2p*.
28868 (ix86_expand_args_builtin): Use V*_FTYPE_* enum codes instead of
28869 MULTI_* defines for 4 argument vpermil2p* builtins.
28870
28871 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
28872
28873 * config/i386/i386-protos.h (x86_maybe_negate_const_int): Declare.
28874 * config/i386/i386.c (x86_maybe_negate_const_int): New.
28875 (x86_output_mi_thunk): Use x86_maybe_negate_const_int.
28876 * config/i386/i386.md (*add<mode>_1, *addsi_1_zext, *addhi_1,
28877 *addhi_1_lea, *addqi_1, *addqi_1_lea, *addqi_1_slp, *add<mode>_2,
28878 *addsi_2_zext, *addhi_2, *addqi_2, *add<mode>_3, *addsi_3_zext,
28879 *addhi_3, *addqi_3,*add<mode>_5, *addhi_5, *addqi_5):
28880 Use x86_maybe_negate_const_int to output insn mnemonic.
28881 (*adddi_4, *addsi_4, *addhi_4, *addqi_4): Ditto. Remove overflow
28882 check from instruction predicate. Update comments.
28883 * config/i386/sync.md (sync_add<mode>): Use
28884 x86_maybe_negate_const_int to output insn mnemonic.
28885
28886 2010-04-06 Jan Hubicka <jh@suse.cz>
28887
28888 PR tree-optimization/42906
28889 * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Add
28890 IGNORE_SELF argument. Set visited_control_parents for fully
28891 processed BBs.
28892 (find_obviously_necessary_stmts): Update call of
28893 mark_control_dependent_edges_necessary.
28894 (propagate_necessity): Likewise. Handle PHI edges more curefully.
28895
28896 2010-04-06 Uros Bizjak <ubizjak@gmail.com>
28897
28898 * config/i386/i386.md: Remove comment about 'e' and 'E'
28899 operand modifier.
28900
28901 2010-04-06 Richard Guenther <rguenther@suse.de>
28902
28903 PR tree-optimization/43627
28904 * tree-vrp.c (extract_range_from_unary_expr): Widenings
28905 of [1, +INF(OVF)] go to [1, +INF(OVF)] of the wider type,
28906 not varying.
28907
28908 2010-04-06 Jakub Jelinek <jakub@redhat.com>
28909
28910 * BASE-VER: Change to 4.6.0.
28911
28912 PR target/43638
28913 * config/i386/i386.c (print_operand): Remove 'e' and 'E' code
28914 handling.
28915
28916 2010-04-06 Richard Guenther <rguenther@suse.de>
28917
28918 PR middle-end/43661
28919 * fold-const.c (fold_comparison): Handle X * 0 CMP 0.
28920
28921 2010-04-05 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28922
28923 * doc/invoke.texi (Optimize Options): Document that LTO
28924 won't remove object access purely due to incompatible
28925 declarations.
28926
28927 2010-04-04 Matthias Klose <doko@ubuntu.com>
28928
28929 * graphite-sese-to-poly.c (translate_scalar_reduction_to_array):
28930 Initialize variable.
28931
28932 2010-04-03 Richard Guenther <rguenther@suse.de>
28933
28934 PR middle-end/42509
28935 * alias.c (nonoverlapping_memrefs_p): For spill-slot accesses
28936 require a non-NULL MEM_OFFSET.
28937
28938 2010-04-02 Steven Bosscher <steven@gcc.gnu.org>
28939
28940 * ada/gcc-interface/Make-lang.in, alias.c, attribs.c, auto-inc-dec.c,
28941 basic-block.h, bb-reorder.c, calls.c, c-common.c, cgraph.h,
28942 collect2.h, config/alpha/alpha.c, config/alpha/alpha.md,
28943 config/alpha/predicates.md, config/arm/arm.md,
28944 config/arm/lib1funcs.asm, config/arm/neon-schedgen.ml,
28945 config/avr/avr.c, config/avr/avr.md, config/bfin/bfin.c,
28946 config/darwin9.h, config/darwin.c, config/darwin.h,
28947 config/h8300/h8300.c, config/i386/cpuid.h, config/i386/cygming.h,
28948 config/i386/cygwin.h, config/i386/mingw32.h, config/i386/msformat-c.c,
28949 config/i386/sol2-10.h, config/i386/xopintrin.h, config/ia64/ia64.c,
28950 config/ia64/ia64.md, config/ia64/sync.md, config/mep/mep.c,
28951 config/mips/mips.md, config/mn10300/mn10300.c,
28952 config/mn10300/mn10300.h, config/pa/pa.c, config/pa/pa.md,
28953 config/rs6000/aix.h, config/rs6000/dfp.md,
28954 config/rs6000/rs6000-builtin.def, config/rs6000/rs6000-c.c,
28955 config/rs6000/vector.md, config/rtems.h, config/rx/rx.md,
28956 config/s390/s390.md, config/sol2-c.c, config/sparc/sol2-bi.h,
28957 config/sparc/sol2-gas.h, config/sparc/sparc.h, config/sparc/sparc.md,
28958 config/sparc/sparc-protos.h, config/spu/spu.c, config/spu/spu-c.c,
28959 config/t-darwin, convert.c, c.opt, c-opts.c, cp/Make-lang.in,
28960 c-pretty-print.c, c-typeck.c, df-core.c, df-scan.c, diagnostic.c,
28961 diagnostic.h, doc/cppopts.texi, doc/cpp.texi, doc/extend.texi,
28962 doc/gimple.texi, doc/languages.texi, doc/plugins.texi, doc/rtl.texi,
28963 doc/standards.texi, doc/tree-ssa.texi, doc/trouble.texi, dominance.c,
28964 fold-const.c, fortran/Make-lang.in, fwprop.c, gcc-plugin.h,
28965 gensupport.c, gimple.h, gimple-iterator.c, graphite.c,
28966 graphite-clast-to-gimple.c, graphite-clast-to-gimple.h,
28967 graphite-dependences.c, graphite-poly.c, graphite-poly.h,
28968 graphite-ppl.c, graphite-ppl.h, graphite-scop-detection.c,
28969 graphite-sese-to-poly.c, graphite-sese-to-poly.h, ifcvt.c, intl.c,
28970 intl.h, ipa.c, ipa-cp.c, ipa-inline.c, ipa-prop.c, ipa-prop.h,
28971 ipa-pure-const.c, ipa-reference.c, ipa-type-escape.c, ira-color.c,
28972 ira-conflicts.c, ira-lives.c, java/Make-lang.in, lambda-code.c,
28973 loop-invariant.c, lto/Make-lang.in, lto-streamer.h, lto-streamer-in.c,
28974 objc/Make-lang.in, objcp/Make-lang.in, omp-low.c, optc-gen.awk,
28975 opt-functions.awk, opth-gen.awk, params.def, passes.c,
28976 postreload-gcse.c, print-tree.c, recog.c, regrename.c, reload.h,
28977 rtl.def, sched-int.h, sched-rgn.c, sel-sched-dump.c, sese.c, sese.h,
28978 store-motion.c, stor-layout.c, tree-cfgcleanup.c, tree-chrec.c,
28979 tree-complex.c, tree-data-ref.c, tree.def, tree-eh.c, tree-flow.h,
28980 tree-flow-inline.h, tree.h, tree-loop-distribution.c, tree-outof-ssa.c,
28981 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
28982 tree-scalar-evolution.c, tree-ssa-address.c, tree-ssa-alias.c,
28983 tree-ssa-coalesce.c, tree-ssa-copy.c, tree-ssa-dce.c, tree-ssa-dom.c,
28984 tree-ssa-dse.c, tree-ssa-loop-im.c, tree-ssa-loop-ivcanon.c,
28985 tree-ssa-loop-manip.c, tree-ssa-math-opts.c, tree-ssa-operands.c,
28986 tree-ssa-pre.c, tree-ssa-sccvn.c, tree-ssa-structalias.c,
28987 tree-ssa-uncprop.c, tree-tailcall.c, tree-vect-data-refs.c,
28988 tree-vect-loop.c, tree-vectorizer.h, tree-vect-slp.c, tree-vrp.c,
28989 unwind-dw2-fde-darwin.c, varpool.c: Update copyright years.
28990
28991 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
28992
28993 PR other/43620
28994 * doc/install.texi (Prerequisites): Bump Automake version to 1.11.1.
28995 * aclocal.m4: Regenerate.
28996
28997 2010-04-02 Richard Guenther <rguenther@suse.de>
28998
28999 PR tree-optimization/43629
29000 * tree-ssa-ccp.c (likely_value): Reset all_undefined_operands
29001 if we have seen a constant value.
29002
29003 2010-04-02 Joseph Myers <joseph@codesourcery.com>
29004
29005 * read-rtl.c (read_rtx_1): Give an error for EOF while looking for ']'.
29006
29007 2010-04-02 Richard Earnshaw <rearnsha@arm.com>
29008
29009 PR target/43469
29010 * arm.c (legitimize_tls_address): Adjust call to
29011 gen_tls_load_dot_plus_four.
29012 (arm_note_pic_base): New function.
29013 (arm_cannot_copy_insn_p): Use it.
29014 * thumb2.md (tls_load_dot_plus_four): Rework to avoid use of '+' in
29015 constraint.
29016
29017 2010-04-02 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29018
29019 PR bootstrap/43531
29020
29021 Revert:
29022 2009-09-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29023
29024 * Makefile.in ($(out_object_file)): Depend on
29025 gt-$(basename $(notdir $(out_file))).h.
29026
29027 2010-04-01 Ralf Corsépius <ralf.corsepius@rtems.org>
29028
29029 * config.gcc (lm32-*-rtems*): Add t-lm32.
29030
29031 2010-04-01 Joel Sherrill <joel.sherrill@oarcorp.com>
29032
29033 * config.gcc: Add lm32-*-rtems*.
29034 * config/lm32/rtems.h: New file.
29035
29036 2010-04-01 Dave Korn <dave.korn.cygwin@gmail.com>
29037
29038 PR target/42609
29039 * config/i386/cygwin.h (CXX_WRAP_SPEC): Disable spec when -mno-cygwin.
29040
29041 2010-04-01 Jakub Jelinek <jakub@redhat.com>
29042
29043 * dwarf2out.c (output_compilation_unit_header): For
29044 -gdwarf-4 use version 4 instead of version 3.
29045 (output_line_info): For version 4 and above emit additional
29046 maximum ops per insn header field.
29047 (DWARF_LINE_DEFAULT_MAX_OPS_PER_INSN): Define.
29048
29049 * dwarf2out.c (is_c_family, is_java): Remove.
29050 (lower_bound_default): New function.
29051 (add_bound_info, gen_descr_array_type_die): Use it.
29052
29053 2010-04-01 Dodji Seketeli <dodji@redhat.com>
29054
29055 PR debug/43325
29056 * dwarf2out.c (gen_variable_die): Allow debug info for variable
29057 re-declaration when it happens in a function.
29058
29059 2010-04-01 Aldy Hernandez <aldyh@redhat.com>
29060
29061 * cgraph.c (cgraph_add_function_insertion_hook): Update comment.
29062 (cgraph_remove_function_insertion_hook): Same.
29063 (cgraph_call_function_insertion_hooks): Same.
29064
29065 2010-04-01 Richard Guenther <rguenther@suse.de>
29066
29067 PR middle-end/43614
29068 * tree-ssa-address.c (copy_mem_ref_info): Copy TREE_SIDE_EFFECTS
29069 and TREE_THIS_VOLATILE.
29070 (copy_ref_info): Likewise.
29071 * tree-ssa-operands.c (get_tmr_operands): Check TREE_THIS_VOLATILE.
29072 * tree.c (build6_stat): Ignore side-effects of all but arg5
29073 for TARGET_MEM_REF. Set TREE_THIS_VOLATILE from arg5 of
29074 TARGET_MEM_REF.
29075
29076 2010-04-01 Richard Guenther <rguenther@suse.de>
29077
29078 PR tree-optimization/43607
29079 * ipa-type-escape.c (check_call): Do not access non-existing
29080 arguments.
29081
29082 2010-04-01 Richard Guenther <rguenther@suse.de>
29083
29084 PR middle-end/43602
29085 Revert
29086 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
29087 Jack Howarth <howarth@bromo.med.uc.edu>
29088
29089 * tree-profile.c (tree_init_ic_make_global_vars): Make static
29090 variables TLS.
29091
29092 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29093
29094 * doc/install.texi (Prerequisites): Document libelf usability on
29095 IRIX 5/6 and Solaris 2.
29096 (Specific, i?86-*-solaris2.10): No 64-bit default configuration.
29097 Update GNU as, GNU ld requirements.
29098 (Specific, *-*-solaris2*): Document Solaris 7 obsoletion, removal.
29099 Document Sun Studio compiler download.
29100 Update and simplify as, ld recommendations.
29101 (Specific, *-*-solaris2.7): Note obsoletion, removal.
29102
29103 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29104
29105 * config.gcc (i[34567]86-*-solaris2*): Default with_arch_32,
29106 with_tune_32 to pentium4.
29107
29108 2010-04-01 Uros Bizjak <ubizjak@gmail.com>
29109
29110 * config/i386/cpuid.h (__get_cpuid_max): Move misplaced comment.
29111
29112 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29113
29114 * doc/install.texi (Specific, mips-sgi-irix5): Document IRIX 5
29115 obsoletion, removal.
29116 Update IDO URL.
29117 Document GNU as requirement.
29118 Update configure requirements.
29119 (Specific, mips-sgi-irix6): Document IRIX 6 < 6.5 obsoletion, removal.
29120 Recomment IRIX 6.5.18+.
29121 Document IDF/IDL requirement.
29122 Document GNU as requirement.
29123 Document GNU ld bootstrap failure.
29124 Remove freeware.sgi.com reference.
29125
29126 2010-04-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29127
29128 * doc/install.texi (Specific, alpha*-dec-osf*): Document Tru64
29129 UNIX V4.0, V5.0 obsoletion, removal.
29130 Remove --with-gc=simple reference.
29131 Update VM requirements during bootstrap.
29132 Remove -oldas bootstrap description.
29133 Update binutils reference.
29134 Remove comparison failure note.
29135
29136 2010-03-31 Richard Guenther <rguenther@suse.de>
29137 Zdenek Dvorak <ook@ucw.cz>
29138 Sebastian Pop <sebastian.pop@amd.com>
29139
29140 PR middle-end/43464
29141 * tree-ssa-copy.c (init_copy_prop): Handle loop close phi nodes
29142 with multiple arguments.
29143 (execute_copy_prop): Remove call to rewrite_into_loop_closed_ssa.
29144
29145 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
29146
29147 * graphite-dependences.c (print_pddr): Call print_pdr with an
29148 extra argument.
29149 * graphite-poly.c (debug_pdr): Add an extra argument for the
29150 verbosity level.
29151 (print_pdr): Same.
29152 (print_pbb_domain): Same.
29153 (print_pbb): Same.
29154 (print_scop_context): Same.
29155 (print_scop): Same.
29156 (print_cloog): Same.
29157 (debug_pbb_domain): Same.
29158 (debug_pbb): Same.
29159 (print_pdrs): Same.
29160 (debug_pdrs): Same.
29161 (debug_scop_context): Same.
29162 (debug_scop): Same.
29163 (debug_cloog): Same.
29164 (print_scop_params): Same.
29165 (debug_scop_params): Same.
29166 (print_iteration_domain): Same.
29167 (print_iteration_domains): Same.
29168 (debug_iteration_domain): Same.
29169 (debug_iteration_domains): Same.
29170 (print_scattering_function): Same.
29171 (print_scattering_functions): Same.
29172 (debug_scattering_function): Same.
29173 (debug_scattering_functions): Same.
29174 * graphite-poly.h (debug_pdr): Update declaration.
29175 (print_pdr): Same.
29176 (print_pbb_domain): Same.
29177 (print_pbb): Same.
29178 (print_scop_context): Same.
29179 (print_scop): Same.
29180 (print_cloog): Same.
29181 (debug_pbb_domain): Same.
29182 (debug_pbb): Same.
29183 (print_pdrs): Same.
29184 (debug_pdrs): Same.
29185 (debug_scop_context): Same.
29186 (debug_scop): Same.
29187 (debug_cloog): Same.
29188 (print_scop_params): Same.
29189 (debug_scop_params): Same.
29190 (print_iteration_domain): Same.
29191 (print_iteration_domains): Same.
29192 (debug_iteration_domain): Same.
29193 (debug_iteration_domains): Same.
29194 (print_scattering_function): Same.
29195 (print_scattering_functions): Same.
29196 (debug_scattering_function): Same.
29197 (debug_scattering_functions): Same.
29198
29199 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
29200
29201 * graphite-poly.c (print_scattering_function_1): New.
29202 (print_scattering_function): Call it.
29203 (print_scop_params): Remove spaces at the end of lines.
29204 (print_cloog): New.
29205 (debug_cloog): New.
29206 * graphite-poly.h (print_cloog): Declared.
29207 (debug_cloog): Declared.
29208
29209 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
29210
29211 * graphite-sese-to-poly.c (graphite_loop_normal_form): Add the IV bump
29212 in loop->header.
29213 * tree-flow.h (canonicalize_loop_ivs): Updated declaration.
29214 * tree-parloops.c (gen_parallel_loop): Add the IV bump in loop->latch.
29215 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Add a new parameter
29216 to switch between adding the IV bump in loop->latch or in loop->header.
29217
29218 2010-03-31 Sebastian Pop <sebastian.pop@amd.com>
29219
29220 * graphite-poly.c (print_scattering_function): Pretty print following
29221 the scoplib format.
29222 (print_pdr): Same.
29223 (print_pbb_domain): Same.
29224 (dump_gbb_cases): Same.
29225 (dump_gbb_conditions): Same.
29226 (print_pdrs): Same.
29227 (print_pbb): Same.
29228 (print_scop_params): Same.
29229 (print_scop_context): Same.
29230 (print_scop): Same.
29231 (print_pbb_body): New.
29232 (lst_indent_to): New.
29233 (print_lst): Start new lines with a #.
29234 * graphite-poly.h (pbb_bb): New.
29235 (pbb_index): Use pbb_bb.
29236 * graphite-ppl.c (ppl_print_powerset_matrix): Print the number of
29237 disjuncts.
29238 * tree-data-ref.c (dump_data_reference): Start new lines with a #.
29239
29240 2010-03-31 Jakub Jelinek <jakub@redhat.com>
29241
29242 * dwarf2out.c (size_of_die): For -gdwarf-4 use
29243 uleb128 size instead of fixed 1 or 2 for dw_val_class_loc
29244 and 0 instead of 1 for dw_val_class_flag.
29245 (value_format): For -gdwarf-4 use DW_FORM_sec_offset for
29246 dw_val_class_range_list, dw_val_class_loc_list,
29247 dw_val_class_lineptr and dw_val_class_macptr, use
29248 DW_FORM_flag_present for dw_val_class_flag and
29249 DW_FORM_exprloc for dw_val_class_loc.
29250 (output_die): For -gdwarf-4 print dw_val_class_loc
29251 size as uleb128 instead of 1 or 2 bytes and don't print
29252 anything for dw_val_class_flag.
29253
29254 * var-tracking.c (vt_init_cfa_base): Use cselib_lookup_from_insn
29255 instead of cselib_lookup following by tweaking locs->setting_insn.
29256
29257 PR bootstrap/43596
29258 * cselib.c (cselib_process_insn): Clear cselib_current_insn
29259 even before returning from label, setjmp call or volatile asm
29260 handling.
29261
29262 2010-03-31 Richard Guenther <rguenther@suse.de>
29263
29264 PR middle-end/43600
29265 * cgraphunit.c (cgraph_output_in_order): Do not allocate
29266 temporary data on stack.
29267
29268 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29269
29270 * config/sparc/sysv4.h (PUSHSECTION_FORMAT): Remove undef.
29271 (PUSHSECTION_ASM_OP): Remove.
29272 (POPSECTION_ASM_OP): Remove.
29273 (PUSHSECTION_FORMAT): Remove.
29274 * config/sol2.h (PUSHSECTION_FORMAT): Define.
29275 * config/sparc/sol2.h [!USE_GAS] (PUSHSECTION_FORMAT): Redefine.
29276 * config/sol2.c (solaris_output_init_fini): Use it.
29277
29278 2010-03-31 Jie Zhang <jie@codesourcery.com>
29279
29280 PR 43574
29281 * opt-functions.awk (var_type_struct): Use signed char type
29282 for simple variables.
29283
29284 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29285
29286 * config/sol2.c: Include output.h.
29287 (solaris_assemble_visibility): New function.
29288 * config/t-sol2 (sol2.o): Add output.h dependency.
29289 * config/sol2-protos.h (solaris_assemble_visibility): Declare.
29290 * config/sol2.h [!USE_GAS] (TARGET_ASM_ASSEMBLE_VISIBILITY):
29291 Redefine.
29292
29293 2010-03-31 Jakub Jelinek <jakub@redhat.com>
29294
29295 PR target/43580
29296 * config/arm/arm.c (arm_save_coproc_regs): Use Pmode instead of
29297 V2SImode or XFmode on PRE_DEC.
29298
29299 PR debug/43557
29300 * cfgexpand.c (expand_debug_expr): Handle VOIDmode mode like
29301 BLKmode.
29302
29303 2010-03-31 Jie Zhang <jie@codesourcery.com>
29304
29305 PR 43562
29306 * reload.h (caller_save_initialized_p): Declare.
29307 * toplev.c (backend_init_target): Don't call
29308 init_caller_save but set caller_save_initialized_p to false.
29309 * caller-save.c (caller_save_initialized_p): Define.
29310 (init_caller_save): Check caller_save_initialized_p.
29311 * ira.c (ira): Call init_caller_save if flag_caller_saves.
29312
29313 2010-03-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29314
29315 PR target/39048
29316 * config.gcc (i[34567]86-*-solaris2*): Add i386/t-fprules-softfp
29317 and soft-fp/t-softfp to tmake_file.
29318 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Redefine.
29319 (LIBGCC2_TF_CEXT): Define.
29320 (TF_SIZE): Define.
29321
29322 2010-03-30 Alexandre Oliva <aoliva@redhat.com>
29323
29324 PR debug/42977
29325 * cselib.c (n_useless_values): Document handling of debug locs.
29326 (n_useless_debug_values, n_debug_values): New variables.
29327 (new_elt_loc_list): Don't add to debug values, keep count.
29328 (promote_debug_loc): New.
29329 (cselib_reset_table): Zero new variables.
29330 (entry_and_rtx_equal_p): Promote debug locs.
29331 (discard_useless_locs): Increment n_useless_debug_values for
29332 debug values.
29333 (remove_useless_values): Adjust n_useless_values and n_debug_values
29334 with n_useless_debug_values.
29335 (add_mem_for_addr): Promote debug locs.
29336 (cselib_lookup_mem): Likewise.
29337 (cselib_lookup_addr): Renamed to...
29338 (cselib_lookup_addr_1): ... this. Promote debug locs. Don't call...
29339 (cselib_log_lookup): ... this. Turn into...
29340 (cselib_lookup_addr): ... new wrapper.
29341 (cselib_lookup_from_insn): New.
29342 (cselib_invalidate_regno): Increment n_useless_debug_values for
29343 debug values.
29344 (cselib_invalidate_mem): Likewise.
29345 (cselib_process_insn): Take n_deleted and n_debug_values into
29346 account to guard remove_useless_value call.
29347 (cselib_finish): Zero n_useless_debug_values.
29348 * cselib.h (cselib_lookup_from_insn): Declare.
29349 * sched-deps.c (sched_analyze_1): Use cselib_lookup_from_insn.
29350 (sched_analyze_2): Likewise.
29351
29352 2010-03-30 Jakub Jelinek <jakub@redhat.com>
29353
29354 * var-tracking.c (use_narrower_mode_test, use_narrower_mode): New
29355 functions.
29356 (adjust_mems): Replace narrowing SUBREG of expression containing
29357 just PLUS, MINUS, MULT and ASHIFT of registers and constants
29358 with operations in the narrower mode.
29359
29360 PR debug/43593
29361 * var-tracking.c (dataflow_set_clear_at_call): Invalidate just
29362 regs_invalidated_by_call instead all call_used_reg_set registers.
29363
29364 2010-03-30 Sebastian Pop <sebastian.pop@amd.com>
29365
29366 PR middle-end/43430
29367 * tree-vect-slp.c (vect_get_and_check_slp_defs): Replace type
29368 pointer comparisons with types_compatible_p.
29369 * tree-vect-stmts.c (vectorizable_call): Same.
29370 (vectorizable_condition): Same.
29371
29372 2010-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
29373
29374 * config/s390/s390.c (s390_emit_prologue): Omit issuing a dynamic
29375 stack check if the mask would be zero.
29376
29377 2010-03-30 Seongbae Park <seongbae.park@gmail.com>
29378 Jack Howarth <howarth@bromo.med.uc.edu>
29379
29380 * tree-profile.c (tree_init_ic_make_global_vars): Make static
29381 variables TLS.
29382
29383 2010-03-30 Joseph Myers <joseph@codesourcery.com>
29384
29385 PR other/25232
29386 * libgcc-std.ver (GCC_4.5.0): Define version. Include __unordxf2
29387 and __unordtf2.
29388 * config/bfin/libgcc-bfin.ver (GCC_4.5.0): Define version.
29389 Include ___unordxf2 and ___unordtf2.
29390 * config/i386/libgcc-glibc.ver: Do not define inheritance from
29391 GCC_4.4.0 here.
29392
29393 2010-03-30 Tarik Graba <tarik.graba@telecom-paristech.fr>
29394
29395 * config/lm32/t-lm32: New file.
29396 * config.gcc: Use the above file when targetting lm32.
29397
29398 2010-03-28 Duncan Sands <baldrick@free.fr>
29399
29400 * Makefile.in (PLUGIN_HEADERS): Add except.h.
29401
29402 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
29403
29404 PR middle-end/43431
29405 * tree-vect-loop.c (vect_estimate_min_profitable_iters):
29406 Improve vectorization cost model diagnostic.
29407
29408 2010-03-29 Sebastian Pop <sebastian.pop@amd.com>
29409
29410 PR middle-end/43436
29411 * tree-vect-data-refs.c (vect_analyze_data_refs): When
29412 compute_data_dependences_for_loop returns false, early exit
29413 and output an extra diagnostic for the failed data reference
29414 analysis.
29415
29416 2010-03-29 Richard Guenther <rguenther@suse.de>
29417
29418 PR tree-optimization/43560
29419 * tree-ssa-loop-im.c (ref_always_accessed_p): Add store_p parameter.
29420 (can_sm_ref_p): Treat stores to readonly locations as trapping.
29421
29422 2010-03-29 Jie Zhang <jie@codesourcery.com>
29423
29424 PR 43564
29425 * toplev.c (process_options): Set optimization_default_node
29426 and optimization_current_node.
29427 * opts.c (decode_options): Don't set optimization_default_node
29428 and optimization_current_node.
29429
29430 2010-03-29 Ralf Corsépius <ralf.corsepius@rtems.org>
29431
29432 * config/rtems.h: Abandon -qrtems_debug.
29433
29434 2010-03-28 Jan Hubicka <jh@suse.cz>
29435
29436 PR tree-optimization/43505
29437 * cgraph.c (cgraph_clone_node): When clonning a clone, replacement
29438 map should not be copied.
29439
29440 2010-03-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29441
29442 PR middle-end/41674
29443 * cgraphunit.c (cgraph_build_static_cdtor): If target doesn't have
29444 cdtors, set DECL_PRESERVE_P.
29445 * ipa.c (cgraph_externally_visible_p): Return true if declaration
29446 should be preseved.
29447
29448 2010-03-27 Uros Bizjak <ubizjak@gmail.com>
29449
29450 PR tree-optimization/43528
29451 * stor-layout.c (place_field): Check that constant fits into
29452 unsigned HWI when skipping calculation of MS bitfield layout.
29453
29454 2010-03-27 Jan Hubicka <jh@suse.cz>
29455
29456 PR middle-end/43391
29457 * varasm.c (make_decl_rtl): Deal with COMMON flag to make
29458 notice_global_symbol work.
29459
29460 2010-03-27 Jakub Jelinek <jakub@redhat.com>
29461
29462 * dwarf2out.c (dwarf2_debug_hooks): Use dwarf2out_function_decl
29463 instead of dwarf2out_decl.
29464 (struct var_loc_node): Remove section_label field.
29465 (dwarf2out_function_decl): New function.
29466 (dwarf2out_var_location): Don't set section_label field.
29467 (dwarf2out_begin_function): Don't empty decl_loc_table here.
29468
29469 2010-03-26 Michael Meissner <meissner@linux.vnet.ibm.com>
29470
29471 PR tree-optimization/43544
29472 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
29473 First argument for builtin vectorized function hook is now a
29474 tree to be able to distinguish between machine specific and
29475 standard builtins.
29476 * targhooks.c (default_builtin_vectorized_function): Ditto.
29477 * targhooks.h (default_builtin_vectorized_function): Ditto.
29478 * target.h (struct gcc_target): Ditto.
29479 * tree-vect-stmts.c (vectorizable_function): Ditto.
29480 * config/i386/i386.c (ix86_builtin_vectorized_function): Ditto.
29481 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function):
29482 Ditto.
29483
29484 2010-03-26 Joseph Myers <joseph@codesourcery.com>
29485
29486 PR c/43381
29487 * c-decl.c (get_parm_info): Assert that decl going in OTHERS has a
29488 nested binding iff it is a FUNCTION_DECL.
29489 (store_parm_decls_newstyle): Pass nested=true to bind for
29490 FUNCTION_DECLs amongst parameters.
29491
29492 2010-03-26 Jakub Jelinek <jakub@redhat.com>
29493
29494 * var-tracking.c (vt_expand_loc_callback): Don't run
29495 cselib_expand_value_rtx_cb in dummy mode if
29496 cselib_dummy_expand_value_rtx_cb returned false.
29497
29498 * var-tracking.c (emit_note_insn_var_location): For one part
29499 notes with offset 0, don't add EXPR_LIST around the location.
29500 * dwarf2out.c (loc_descriptor, dw_loc_list_1,
29501 add_location_or_const_value_attribute): Adjust for that change.
29502
29503 PR debug/43540
29504 * dwarf2out.c (reg_save): For DW_CFA_expression put regnum
29505 into first operand and location into second.
29506 (dw_cfi_oprnd1_desc): Return dw_cfi_oprnd_reg_num instead of
29507 dw_cfi_oprnd_loc for DW_CFA_expression.
29508 (dw_cfi_oprnd2_desc): Return dw_cfi_oprnd_loc for DW_CFA_expression.
29509 (output_cfa_loc, output_cfa_loc_raw): For DW_CFA_expression
29510 assume first argument is regnum and second argument is location.
29511
29512 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
29513
29514 PR target/42113
29515 * config/alpha/alpha.md (*cmp_sadd_si): Change mode
29516 of scratch register to DImode. Split to DImode comparison operator.
29517 Use SImode subreg of scratch register in the multiplication.
29518 (*cmp_sadd_sidi): Ditto.
29519 (*cmp_ssub_si): Ditto.
29520 (*cmp_ssub_sidi): Ditto.
29521
29522 2010-03-26 Uros Bizjak <ubizjak@gmail.com>
29523
29524 PR target/43524
29525 * config/i386/i386.c (ix86_expand_prologue) [TARGET_STACK_PROBE]:
29526 Remove invalid assert and wrong comment.
29527
29528 2010-03-26 Jakub Jelinek <jakub@redhat.com>
29529
29530 PR debug/43516
29531 * flags.h (final_insns_dump_p): New extern.
29532 * final.c (final_insns_dump_p): New variable.
29533 (rest_of_clean_state): Set it before -fdump-final-insns=
29534 dumping, clear afterwards.
29535 * print-rtl.c (print_rtx): If final_insns_dump_p don't dump
29536 MEM_ALIAS_SET on MEMs.
29537
29538 2010-03-26 David S. Miller <davem@davemloft.net>
29539
29540 * configure.ac: Fix sparc GOTDATA_OP bug check.
29541 * configure: Rebuild.
29542
29543 2010-03-26 Alan Modra <amodra@gmail.com>
29544
29545 * config/rs6000/rs6000.md (cmptf_internal2): Correct comparison.
29546
29547 2010-03-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29548
29549 * doc/tm.texi (Sections): Document TLS_COMMON_ASM_OP,
29550 TLS_SECTION_ASM_FLAG.
29551
29552 2010-03-25 Jakub Jelinek <jakub@redhat.com>
29553
29554 PR bootstrap/43511
29555 * config/i386/i386.c (ix86_code_end): Set DECL_WEAK if TARGET_MACHO.
29556 Clear first_function_block_is_cold.
29557
29558 PR c/43385
29559 * gimplify.c (gimple_boolify): Only recurse on __builtin_expect
29560 argument if the argument is truth_value_p.
29561
29562 2010-03-24 Michael Meissner <meissner@linux.vnet.ibm.com>
29563
29564 * config/rs6000/constraints.md: Update copyright year for my changes.
29565
29566 PR target/43484
29567 * config/rs6000/rs6000.c (rs6000_split_multireg_move): If r0 is
29568 used in reg+reg addressing, swap registers.
29569
29570 2010-03-24 Jakub Jelinek <jakub@redhat.com>
29571
29572 PR debug/43293
29573 * target.h (struct gcc_target): Add code_end hook.
29574 * target-def.h (TARGET_ASM_CODE_END): Define to hook_void_void
29575 if not yet defined.
29576 (TARGET_ASM_OUT): Add TARGET_ASM_CODE_END.
29577 * toplev.c (compile_file): Call targetm.asm_out.code_end
29578 hook before unwind info/debug info output.
29579 * config/i386/winnt.c (i386_pe_file_end): Don't call ix86_file_end.
29580 * config/i386/linux.h (NEED_INDICATE_EXEC_STACK): Don't define.
29581 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
29582 * config/i386/linux64.h (NEED_INDICATE_EXEC_STACK): Don't define.
29583 (TARGET_ASM_FILE_END): Define to file_end_indicate_exec_stack.
29584 * config/i386/i386.c (ix86_file_end): Renamed to...
29585 (ix86_code_end): ... this. Make static. Don't call
29586 file_end_indicate_exec_stack. Emit unwind info using
29587 final_start_function/final_end_function.
29588 (darwin_x86_file_end): Remove.
29589 (TARGET_ASM_CODE_END): Define.
29590 * config/i386/i386.h (TARGET_ASM_FILE_END,
29591 NEED_INDICATE_EXEC_STACK): Don't define.
29592 * config/i386/darwin.h (darwin_x86_file_end): Remove prototype.
29593 (TARGET_ASM_FILE_END): Define to darwin_file_end.
29594 * config/i386/i386-protos.h (ix86_file_end): Remove prototype.
29595 * doc/tm.texi (TARGET_ASM_CODE_END): Document.
29596
29597 PR target/43498
29598 * config/i386/i386.c (x86_output_mi_thunk): Call final_start_function
29599 at the beginning and final_end_function at the end.
29600 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
29601
29602 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29603
29604 * configure.ac (i[34567]86-*-*): Handle Solaris 2/x86 TLS support
29605 and Sun as TLS syntax.
29606 (TLS_SECTION_ASM_FLAG) [on_solaris && !gas_flag]: Define.
29607 * configure: Regenerate.
29608 * config.in: Regenerate.
29609 * varasm.c (TLS_SECTION_ASM_FLAG): Define default.
29610 (default_elf_asm_named_section): Use it.
29611 * config/i386/i386.c (output_pic_addr_const): Lowercase @DTPOFF.
29612 (i386_output_dwarf_dtprel): Likewise.
29613 (output_addr_const_extra): Likewise.
29614 (output_pic_addr_const): Lowercase @GOTTPOFF.
29615 (output_addr_const_extra): Likewise.
29616 (output_pic_addr_const): Lowercase @GOTNTPOFF.
29617 (output_addr_const_extra): Likewise.
29618 (output_pic_addr_const): Lowercase @INDNTPOFF.
29619 (output_addr_const_extra): Likewise.
29620 (output_pic_addr_const): Lowercase @NTPOFF.
29621 (output_addr_const_extra): Likewise.
29622 (output_pic_addr_const): Lowercase @TPOFF.
29623 (output_addr_const_extra): Likewise.
29624 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Lowercase @TLSGD.
29625 (*tls_global_dynamic_64): Likewise.
29626 (*tls_local_dynamic_base_32_gnu): Lowercase @TLSLDM.
29627 (*tls_local_dynamic_base_64): Lowercase @TLSLD.
29628
29629 * defaults.h (TLS_COMMON_ASM_OP): Provide default.
29630 (ASM_OUTPUT_TLS_COMMON): Use it.
29631 * config/i386/sol2-gas.h (TLS_COMMON_ASM_OP): Undef.
29632
29633 PR target/38118
29634 * config.gcc (sparc*-*-solaris2*) [$gas=yes]: Add usegas.h to tm_file.
29635 * config/sparc/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Move ...
29636 * config/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): ... here.
29637 * config/i386/sol2-10.h (ASM_OUTPUT_ALIGNED_COMMON): Redefine.
29638 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
29639 (ASM_DECLARE_OBJECT_NAME) [!USE_GAS]: Redefine.
29640
29641 2010-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29642
29643 * config/i386/i386.c (override_options): Don't accept
29644 -mtls-dialect=sun any longer.
29645 * config/i386/i386.h (TARGET_SUN_TLS): Define as 0.
29646 * config/i386/i386.md (*tls_global_dynamic_32_sun): Remove.
29647 (*tls_local_dynamic_base_32_sun): Likewise.
29648 * config/i386/sol2.h (TARGET_SUN_TLS): Redefine.
29649
29650 2010-03-24 Jakub Jelinek <jakub@redhat.com>
29651
29652 PR debug/43508
29653 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
29654 VEC_{MERGE,SELECT,CONCAT,DUPLICATE}.
29655
29656 PR debug/43479
29657 * ira.c (adjust_cleared_regs): New function.
29658 (update_equiv_regs): Adjust cleared_regs in DEBUG_INSNs.
29659
29660 PR debug/19192
29661 PR debug/43479
29662 * cfgexpand.c (gimple_assign_rhs_to_tree): Also set TREE_BLOCK
29663 from gimple_block.
29664 * expr.c (expand_expr_real): Restore previous
29665 curr_insn_source_location and curr_insn_block after
29666 expand_expr_real_1 call.
29667 (expand_expr_real_1) <case SSA_NAME>: Call expand_expr_real
29668 instead of expand_expr_real_1.
29669
29670 2010-03-23 Vladimir Makarov <vmakarov@redhat.com>
29671
29672 PR rtl-optimization/43413
29673 * ira-color.c (setup_allocno_available_regs_num): Count prohibited
29674 hard regs too.
29675
29676 2010-03-22 James E. Wilson <wilson@codesourcery.com>
29677
29678 PR target/43348
29679 * ia64.md (call_nogp, call_value_nogp, sibcall_nogp, call_gp,
29680 call_value_gp, sibcall_gp): Use 's' constraint not 'i'.
29681
29682 2010-03-22 H.J. Lu <hongjiu.lu@intel.com>
29683
29684 * config/i386/i386.c (ix86_target_string): Add -mfma.
29685 Fix a typo in comment.
29686
29687 2010-03-22 Mike Stump <mikestump@comcast.net>
29688
29689 PR target/23071
29690 * config/rs6000/rs6000.c (darwin_rs6000_special_round_type_align):
29691 Don't overly align based upon packed packed fields.
29692
29693 2010-03-22 Jason Merrill <jason@redhat.com>
29694
29695 * c-pretty-print.c (pp_c_specifier_qualifier_list) [VECTOR_TYPE]:
29696 Use () rather than [], and move before the element type.
29697
29698 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29699
29700 * doc/configfiles.texi (Configuration Files): Removed
29701 fixinc/Makefile*, intl/Makefile.*.
29702 * doc/makefile.texi: Fixed markup. Abstract from version
29703 control system used.
29704 (Makefile): Removed obsolete java/parse.y example.
29705 * doc/sourcebuild.texi: Likewise.
29706 (Top Level): Added config, gnattools, libdecnumber, libgcc,
29707 libgomp, libssp. Removed fastjar.
29708 (Miscellaneous Docs): Clarify location.
29709 Added COPYING3, COPYING3.LIB.
29710 (Front End Directory): Moved Make-lang.in entry to new subsubsection.
29711
29712 2010-03-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29713
29714 PR target/38085
29715 * config/i386/i386.c (x86_function_profiler)
29716 [!NO_PROFILE_COUNTERS]: Fix typo.
29717 * config/i386/gmon-sol2.c (_mcleanup) [__x86_64__]: Use call
29718 instead of callq.
29719
29720 2010-03-22 Janis Johnson <janis187@us.ibm.com>
29721 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
29722
29723 * doc/sourcebuild.texi (Test Directives): Split into six
29724 subsections, with most of the current text in new subsections
29725 Directives, Selectors, and Final Actions.
29726 (Directives): Split list of test directives into multiple
29727 subsubsections.
29728 (Selectors): Describe use and syntax of selectors.
29729 (Effective-Target Keywords): Describe all existing keywords.
29730 (Add Options): Describe features for dg-add-options.
29731 (Require Support): Describe variants of dg-require-support.
29732 (Final Actions): Describe commands to use in dg-final.
29733
29734 2010-03-22 Michael Matz <matz@suse.de>
29735
29736 PR middle-end/43475
29737 * recog.c (validate_replace_rtx_group): Replace also in
29738 REG_EQUAL and REG_EQUIV notes.
29739
29740 2010-03-22 Richard Guenther <rguenther@suse.de>
29741
29742 PR tree-optimization/43390
29743 * tree-vect-stmts.c (get_vectype_for_scalar_type): Make
29744 sure vector extracts are type correct.
29745
29746 2010-03-22 Richard Guenther <rguenther@suse.de>
29747
29748 PR middle-end/40106
29749 * builtins.c (expand_builtin_pow): Expand pow (x, 1.5) as
29750 x * sqrt (x) even when optimizing for size if the target
29751 has native support for sqrt.
29752
29753 2010-03-22 Jakub Jelinek <jakub@redhat.com>
29754
29755 * varasm.c (make_decl_rtl_for_debug): Also clear
29756 flag_mudflap for the duration of make_decl_rtl call.
29757
29758 PR debug/43443
29759 * var-tracking.c (add_cselib_value_chains): Remove ASM_OPERANDS
29760 locs from preserved VALUEs.
29761
29762 2010-03-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
29763
29764 PR middle-end/42718
29765 * pa.md (movmemsi): Set align to one if zero.
29766 (movmemdi): Likewise.
29767
29768 2010-03-21 Richard Earnshaw <rearnsha@arm.com>
29769
29770 PR target/42321
29771 * arm.c (arm_output_epilogue): Correctly match VFP pop instructions
29772 with their corresponding prologue pushes.
29773
29774 2010-03-20 Andrew Pinski <pinskia@gmail.com>
29775
29776 PR target/43156
29777 * config/spu/spu.c (spu_expand_prologue): Don't emit NOTE_INSN_DELETED
29778 at the begining or end.
29779 (spu_expand_epilogue): Likewise.
29780
29781 2010-03-20 Richard Guenther <rguenther@suse.de>
29782
29783 PR rtl-optimization/43438
29784 * combine.c (make_extraction): Properly zero-/sign-extend an
29785 extraction of the low part of a CONST_INT. Also handle
29786 CONST_DOUBLE.
29787
29788 2010-03-19 Mike Stump <mikestump@comcast.net>
29789
29790 * config/i386/darwin.h (SUBTARGET32_DEFAULT_CPU): Add.
29791 * config/i386/i386.c (SUBTARGET32_DEFAULT_CPU): Add.
29792 (override_options): Use SUBTARGET32_DEFAULT_CPU.
29793
29794 2010-03-19 Andrew Pinski <andrew_pinski@caviumnetworks.com>
29795
29796 PR c/43211
29797 * c-decl.c (grokparms): Set arg_types to NULL_TREE if there was
29798 an error.
29799
29800 2010-03-19 Bernd Schmidt <bernds@codesourcery.com>
29801
29802 PR rtl-optimization/42258
29803 * ira-lives.c (check_and_make_def_conflict): Ignore conflict for a
29804 use that may match DEF.
29805
29806 PR target/40697
29807 * optabs.c (avoid_expensive_constant): Use rtx_cost to find out
29808 the cost of loading the constant rather than assuming
29809 COSTS_N_INSNS (1).
29810 * config/arm/arm.c (thumb1_rtx_costs) <case CONST_INT>: If the
29811 outer code is AND, do the same tests as the andsi3 expander and
29812 return COSTS_N_INSNS (1) if and is cheap.
29813
29814 * optabs.c (avoid_expensive_constant): Fix formatting.
29815
29816 2010-03-19 Michael Matz <matz@suse.de>
29817
29818 PR c++/43116
29819 * attribs.c (decl_attributes): When rebuilding a function pointer
29820 type use the same qualifiers as the original pointer type.
29821
29822 2010-03-19 Martin Jambor <mjambor@suse.cz>
29823
29824 * doc/gimple.texi (Logical Operators): Describe is_gimple_ip_invariant
29825 and is_gimple_ip_invariant_address.
29826
29827 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29828
29829 Revert
29830 2009-10-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29831
29832 * config/arm/arm.c (arm_override_options): Turn off
29833 flag_dwarf2_cfi_asm for AAPCS variants.
29834
29835 2010-03-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29836
29837 PR target/43399
29838 * config/arm/arm.c (emit_multi_reg_push): Update comments.
29839 Use PRE_MODIFY instead of PRE_DEC.
29840 (emit_sfm): Use PRE_MODIFY instead of PRE_DEC.
29841 (vfp_emit_fstmd): Likewise.
29842
29843 2010-03-19 Michael Matz <matz@suse.de>
29844
29845 PR target/43305
29846 * builtins.c (expand_builtin_interclass_mathfn,
29847 expand_builtin_signbit): Use maybe_emit_unop_insn, emit libcalls
29848 if that fails.
29849
29850 2010-03-19 Richard Guenther <rguenther@suse.de>
29851
29852 PR tree-optimization/43415
29853 * tree-ssa-pre.c (phi_translate): Split out worker to ...
29854 (phi_translate_1): ... this.
29855 (phi_translate): Move all caching here. Cache all NARY
29856 and REFERENCE translations.
29857
29858 2010-03-19 David S. Miller <davem@davemloft.net>
29859
29860 With help from Eric Botcazou.
29861 * config/sparc/sparc.c: Include dwarf2out.h.
29862 (emit_pic_helper): Delete.
29863 (pic_helper_symbol_name): Delete.
29864 (pic_helper_emitted_p): Delete.
29865 (pic_helper_needed): New.
29866 (USE_HIDDEN_LINKONCE): Define to '1' if HAVE_GAS_HIDDEN else '0'.
29867 (get_pc_thunk_name): New.
29868 (load_pic_register): Remove 'delay_pic_helper' arg. Use
29869 get_thunk_pc_name and ggc_strdup to generate PIC thunk symbol.
29870 Set pic_helper_needed to true. Don't call emit_pic_helper.
29871 (sparc_expand_prologue): Update load_pic_register call.
29872 (sparc_output_mi_thunk): Likewise.
29873 (sparc_file_end): Emit a hidden comdat symbol for the PIC
29874 thunk if possible. Output CFI information as needed.
29875
29876 2010-03-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
29877 Jack Howarth <howarth@bromo.med.uc.edu>
29878
29879 PR target/36399
29880 * config/i386/i386.h: Fix ABI on darwin x86-32.
29881
29882 2010-03-18 Aldy Hernandez <aldyh@redhat.com>
29883
29884 * tree.h: Declare make_decl_rtl_for_debug.
29885 * varasm.c (make_decl_rtl_for_debug): New.
29886 * dwarf2out.c (rtl_for_decl_location): Call it.
29887 * cfgexpand.c (expand_debug_expr): Call it.
29888
29889 2010-03-18 Jakub Jelinek <jakub@redhat.com>
29890
29891 PR bootstrap/43399
29892 * var-tracking.c (adjust_mems) <case POST_MODIFY>: Allow BLKmode
29893 mem_mode.
29894
29895 PR bootstrap/43403
29896 * var-tracking.c (vt_init_cfa_base): Do nothing if
29897 cfa_base_rtx would be hard_frame_pointer_rtx or non-fixed register.
29898
29899 2010-03-18 Alexandre Oliva <aoliva@redhat.com>
29900
29901 PR debug/42873
29902 * var-tracking.c (canonicalize_vars_star): New.
29903 (dataflow_post_merge_adjust): Use it.
29904
29905 2010-03-18 Jakub Jelinek <jakub@redhat.com>
29906
29907 PR debug/43058
29908 * var-tracking.c (non_suitable_const): New function.
29909 (add_uses): For DEBUG_INSNs with constants, don't record any
29910 value, instead just the constant value itself.
29911 (compute_bb_dataflow) <case MO_VAL_LOC>: If PAT_VAR_LOCATION_LOC
29912 is not VAR_LOC_UNKNOWN_P, set var to the constant.
29913 (emit_notes_in_bb): Likewise.
29914 (emit_note_insn_var_location): For onepart variables if
29915 cur_loc is a VOIDmode constant, use DECL_MODE.
29916
29917 2010-03-18 Martin Jambor <mjambor@suse.cz>
29918
29919 PR middle-end/42450
29920 * cgraph.h (cgraph_redirect_edge_call_stmt_to_callee): Declare.
29921 * cgraphunit.c (cgraph_materialize_all_clones): Update calls in
29922 all non-clones. Moved call redirection...
29923 (cgraph_redirect_edge_call_stmt_to_callee): ...to this new function.
29924 (cgraph_materialize_all_clones): Dispose of all
29925 combined_args_to_skip bitmaps.
29926 (verify_cgraph_node): Do not check for edges pointing to wrong
29927 nodes in inline clones.
29928 * tree-inline.c (copy_bb): Call
29929 cgraph_redirect_edge_call_stmt_to_callee.
29930 * ipa.c (cgraph_remove_unreachable_nodes): Call
29931 cgraph_node_remove_callees even when there are used clones.
29932
29933 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
29934
29935 * config/i386/libgcc-glibc.ver: Make GCC_4.5.0 inherit GCC_4.4.0.
29936
29937 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
29938
29939 PR target/43383
29940 * config/i386/libgcc-glibc.ver: Add __extendxftf2 to GCC_4.5.0
29941 for 32bit.
29942
29943 2010-03-18 Michael Matz <matz@suse.de>
29944
29945 PR middle-end/43419
29946 * builtins.c (expand_builtin_pow): Don't transform pow(x, 0.5)
29947 into sqrt(x) if we need to preserve signed zeros.
29948
29949 2010-03-18 Steven Bosscher <steven@gcc.gnu.org>
29950 Eric Botcazou <ebotcazou@adacore.com>
29951
29952 PR rtl-optimization/43360
29953 * loop-invariant.c (move_invariant_reg): Remove the REG_EQUAL
29954 note if we don't know its invariant status.
29955
29956 2010-03-18 Michael Matz <matz@suse.de>
29957
29958 PR tree-optimization/43402
29959 * tree-cfgcleanup.c (cleanup_control_expr_graph): Don't follow
29960 PHI chains of ssa names registered for update.
29961
29962 2010-03-17 Peter Bergner <bergner@vnet.ibm.com>
29963
29964 PR target/42427
29965 * config/rs6000/rs6000.c (rs6000_split_multireg_move): Add support for
29966 non-offsettable and pre_modify update addressing.
29967 * config/rs6000/dfp.md (*movdd_hardfloat32): Make the "0", "1"
29968 and "2" alternatives "#".
29969 (*movdd_softfloat32): Make all alternatives "#";
29970 * config/rs6000/rs6000.md (DIFD): New define_mode_iterator.
29971 (*movdf_hardfloat32): Make the "0", "1" and "2" alternatives "#".
29972 (*movdf_softfloat32): Make all alternatives "#";
29973 (movdi): Use the new DIFD mode iterator to create a common splitter
29974 for movdi, movdf and movdd patterns.
29975
29976 2010-03-18 Shujing Zhao <pearly.zhao@oracle.com>
29977
29978 * common.opt (dumpdir): Remove redundant tab.
29979
29980 2010-03-17 Martin Jambor <mjambor@suse.cz>
29981
29982 PR tree-optimization/43347
29983 * tree-sra.c (create_access_replacement): Set TREE_NO_WARNING when the
29984 original base is DECL_ARTIFICIAL or DECL_IGNORED_P.
29985
29986 2010-03-17 Bernd Schmidt <bernd.schmidt@analog.com>
29987
29988 PR rtl-optimization/42216
29989 * regrename.c (create_new_chain): New function, broken out from...
29990 (scan_rtx_reg): ... here. Call it. Handle the case where we are
29991 appending a use to an empty chain.
29992 (build_def_use): Remove previous changes that convert OP_INOUT to
29993 OP_OUT operands; instead detect the case where an OP_INOUT operand
29994 uses a previously untracked register and create an empty chain for it.
29995
29996 2010-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
29997
29998 * doc/extend.texi (Function Attributes): Rewrite unfinished
29999 sentence in ms_abi documentation.
30000
30001 2010-03-17 Alan Modra <amodra@gmail.com>
30002
30003 * config/rs6000/linux64.opt (mprofile-kernel): Use profile_kernel var.
30004 * config/rs6000/linux64.h (TARGET_PROFILE_KERNEL): Define.
30005 (SUBSUBTARGET_OVERRIDE_OPTIONS): Don't use SET_PROFILE_KERNEL.
30006 * config/rs6000/rs6000.c (SET_PROFILE_KERNEL): Don't define.
30007
30008 2010-03-16 Richard Henderson <rth@redhat.com>
30009
30010 PR middle-end/43365
30011 * tree-eh.c (replace_goto_queue): Also replace in the eh_seq.
30012 (lower_try_finally): Save and restore eh_seq around the expansion
30013 of the try-finally.
30014
30015 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
30016
30017 * graphite-sese-to-poly.c (split_reduction_stmt): Skip debug
30018 statements before splitting block.
30019
30020 2010-03-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30021
30022 * doc/sourcebuild.texi (Testsuites): Fix markup.
30023 Use pathnames relative to gcc/testsuite.
30024 (Test Directives): Move description of how timeout is determined.
30025 (Ada Tests): Favor gnat.exp over ada/acats/tests/gcc.
30026 (C Tests): Correct gcc.misc-tests directory.
30027 Framework tests now live in gcc.test-framework.
30028
30029 2010-03-16 Richard Guenther <rguenther@suse.de>
30030
30031 PR middle-end/43379
30032 * tree-cfg.c (gimple_merge_blocks): When propagating virtual PHI
30033 operands make sure to merge SSA_NAME_OCCURS_IN_ABNORMAL_PHI properly.
30034
30035 2010-03-16 Aldy Hernandez <aldyh@redhat.com>
30036 Alexandre Oliva <aoliva@redhat.com>
30037
30038 PR tree-optimization/42917
30039 * lambda-code.c (remove_iv): Skip debug statements.
30040 (lambda_loopnest_to_gcc_loopnest): Likewise.
30041 (not_interesting_stmt): Debug statements are not interesting.
30042
30043 2010-03-16 Jakub Jelinek <jakub@redhat.com>
30044
30045 PR debug/43051
30046 PR debug/43092
30047 * cselib.c (cselib_preserve_constants,
30048 cfa_base_preserved_val): New static variables.
30049 (preserve_only_constants): New function.
30050 (cselib_reset_table): If cfa_base_preserved_val is non-NULL, don't
30051 clear its REG_VALUES. If cselib_preserve_constants, don't
30052 empty the whole hash table, but preserve there VALUEs with constants,
30053 cfa_base_preserved_val and cfa_base_preserved_val plus constant.
30054 (cselib_preserve_cfa_base_value): New function.
30055 (cselib_invalidate_regno): Don't invalidate cfa_base_preserved_val.
30056 (cselib_init): Change argument to int bitfield. Set
30057 cselib_preserve_constants to whether CSELIB_PRESERVE_CONSTANTS
30058 is in it.
30059 (cselib_finish): Clear cselib_preserve_constants and
30060 cfa_base_preserved_val.
30061 * cselib.h (enum cselib_record_what): New enum.
30062 (cselib_init): Change argument to int.
30063 (cselib_preserve_cfa_base_value): New prototype.
30064 * postreload.c (reload_cse_regs_1): Adjust cselib_init caller.
30065 * dse.c (dse_step1): Likewise.
30066 * cfgcleanup.c (thread_jump): Likewise.
30067 * sched-deps.c (sched_analyze): Likewise.
30068 * gcse.c (local_cprop_pass): Likewise.
30069 * simplify-rtx.c (simplify_replace_fn_rtx): Add argument to callback.
30070 If FN is non-NULL, call the callback always and whenever it returns
30071 non-NULL just return that. Only do rtx_equal_p if FN is NULL.
30072 * rtl.h (simplify_replace_fn_rtx): Add argument to callback.
30073 * combine.c (propagate_for_debug_subst): Add old_rtx argument,
30074 compare from with old_rtx and if it isn't rtx_equal_p, return NULL.
30075 * Makefile.in (var-tracking.o): Depend on $(RECOG_H).
30076 * var-tracking.c: Include recog.h.
30077 (bb_stack_adjust_offset): Remove.
30078 (vt_stack_adjustments): Don't call it, instead just gather the
30079 adjustments using insn_stack_adjust_offset_pre_post on each bb insn.
30080 (adjust_stack_reference): Remove.
30081 (compute_cfa_pointer): New function.
30082 (hard_frame_pointer_adjustment, cfa_base_rtx): New static variables.
30083 (struct adjust_mem_data): New type.
30084 (adjust_mems, adjust_mem_uses, adjust_mem_stores, adjust_insn): New
30085 functions.
30086 (get_address_mode): New function.
30087 (replace_expr_with_values): Use it.
30088 (use_type): Don't do cselib_lookup for VAR_LOC_UNKNOWN_P.
30089 Use get_address_mode. For cfa_base_rtx return MO_CLOBBER.
30090 (adjust_sets): Remove.
30091 (add_uses): Don't add extra MO_VAL_USE for cfa_base_rtx plus constant.
30092 Use get_address_mode.
30093 (get_adjusted_src): Remove.
30094 (add_stores): Don't call it. Never reuse expr SET. Don't add extra
30095 MO_VAL_USE for cfa_base_rtx plus constant. Use get_address_mode.
30096 (add_with_sets): Don't call adjust_sets.
30097 (fp_setter, vt_init_cfa_base): New functions.
30098 (vt_initialize): Change return type to bool. Move most of pool etc.
30099 initialization to the beginning of the function from end. Pass
30100 CSELIB_RECORD_MEMORY | CSELIB_PRESERVE_CONSTANTS to cselib_init.
30101 If !frame_pointer_needed, call vt_stack_adjustment before mos
30102 vector is filled, call vt_init_cfa_base if argp/framep has been
30103 eliminated to sp. If frame_pointer_needed and argp/framep has
30104 been eliminated to hard frame pointer, set
30105 hard_frame_pointer_adjustment and call vt_init_cfa_base after
30106 encountering fp setter in the prologue. For MO_ADJUST, call
30107 log_op_type before pusing the op into mos vector, not afterwards.
30108 Call adjust_insn before cselib_process_insn/add_with_sets,
30109 call cancel_changes (0) afterwards.
30110 (variable_tracking_main_1): Adjust for vt_initialize calling
30111 vt_stack_adjustments and returning whether it succeeded or not.
30112
30113 2010-03-15 Aldy Hernandez <aldyh@redhat.com>
30114
30115 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Skip
30116 debug statements.
30117
30118 2010-03-15 Jakub Jelinek <jakub@redhat.com>
30119
30120 * dwarf2out.c (dwarf2out_frame_debug): Don't assert drap_reg
30121 has been set.
30122 (based_loc_descr): Use DW_OP_fbreg for vdrap_reg even when
30123 drap_reg has not been set.
30124
30125 2010-03-15 Michael Matz <matz@suse.de>
30126
30127 PR middle-end/43300
30128 * tree-outof-ssa.c (emit_partition_copy): New argument sizeexp,
30129 use it to expand block copies.
30130 (insert_partition_copy_on_edge, insert_rtx_to_part_on_edge,
30131 insert_part_to_rtx_on_edge): Adjust callers of emit_partition_copy.
30132 (insert_value_copy_on_edge): Use store_expr for BLKmode values.
30133
30134 2010-03-15 Richard Guenther <rguenther@suse.de>
30135
30136 PR tree-optimization/43367
30137 * tree-cfg.c (gimple_can_merge_blocks_p): Simplify PHI
30138 elimination check.
30139
30140 2010-03-15 Richard Guenther <rguenther@suse.de>
30141
30142 PR tree-optimization/43317
30143 * ipa-struct-reorg.c (create_new_general_access): Update stmt.
30144
30145 2010-03-15 Martin Jambor <mjambor@suse.cz>
30146
30147 PR tree-optimization/43141
30148 * tree-sra.c (create_abstract_origin): New function.
30149 (modify_function): Call create_abstract_origin.
30150
30151 2010-03-15 Chris Demetriou <cgd@google.com>
30152
30153 * Makefile.in (stmp-int-hdrs): Don't chmod include/stdint.h if it
30154 wasn't copied.
30155
30156 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30157
30158 PR middle-end/43354
30159 * graphite-sese-to-poly.c (rewrite_close_phi_out_of_ssa): Do not
30160 call insert_out_of_ssa_copy for default definitions.
30161
30162 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30163
30164 * graphite-clast-to-gimple.c (my_long_long): Defined.
30165 (gcc_type_for_cloog_iv): Use it instead of long_long_integer_type_node.
30166 * graphite-sese-to-poly.c (my_long_long): Defined.
30167 (scop_ivs_can_be_represented): Use it.
30168
30169 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30170
30171 * doc/invoke.texi: Fix documentation of graphite-max-nb-scop-params,
30172 graphite-max-bbs-per-function, and loop-block-tile-size.
30173 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Replace "maximal"
30174 with "maximum".
30175 (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Same.
30176
30177 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30178
30179 * graphite-clast-to-gimple.c (gcc_type_for_iv_of_clast_loop): Remove
30180 forward declaration.
30181 * graphite-sese-to-poly.c (reduction_phi_p): Remove FIXME comment.
30182 (add_upper_bounds_from_estimated_nit): New.
30183 (build_loop_iteration_domains): Use it.
30184
30185 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30186
30187 * doc/invoke.texi (PARAM_LOOP_BLOCK_TILE_SIZE): Document.
30188
30189 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30190
30191 PR middle-end/43306
30192 * tree-chrec.c (evolution_function_right_is_integer_cst): CHREC_RIGHT
30193 should be an INTEGER_CST. Also handle CASE_CONVERT.
30194
30195 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30196
30197 * graphite.c (graphite_initialize): To bound the number of bbs per
30198 function, use PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
30199 * params.def (PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION): Declared.
30200 * doc/invoke.texi: Document it.
30201
30202 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30203
30204 * graphite-sese-to-poly.c (build_poly_scop): Do not return bool.
30205 * graphite-sese-to-poly.h (build_poly_scop): Same.
30206
30207 2010-03-13 Sebastian Pop <sebastian.pop@amd.com>
30208
30209 * graphite-sese-to-poly.c (build_poly_scop): Limit scops following
30210 the number of parameters in the scop. Use as an upper bound
30211 PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS.
30212 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Declared.
30213 * doc/invoke.texi: Document it.
30214
30215 2010-03-13 Jerry Quinn <jlquinn@optonline.net>
30216
30217 * Makefile.in (TEXI_GCCINT_FILES): Remove c-tree.texi.
30218 * doc/c-tree.texi: Remove.
30219 * doc/generic.texi: Merge c-tree.texi here.
30220 * doc/gccint.texi (Trees): Remove menu entry.
30221 (c-tree.texi): Remove @include.
30222 * doc/rtl.texi (Reading RTL): Update pxref from Trees to GENERIC.
30223 * doc/languages.texi (Reading RTL): Ditto.
30224
30225 2010-03-12 Steve Ellcey <sje@cup.hp.com>
30226
30227 PR target/42869
30228 * config/ia64/sync.md (sync_compare_and_swap): Move memory fence.
30229
30230 2010-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
30231
30232 PR middle-end/42431
30233 * config/rs6000/rs6000.c (rs6000_emit_move): Delete band-aid
30234 code added to work around reload clobbering CONST insns.
30235
30236 2010-03-12 Jakub Jelinek <jakub@redhat.com>
30237
30238 * cselib.c (LONG_TERM_PRESERVED_VALUE_P): Remove.
30239 (cselib_preserve_definitely, cselib_clear_preserve): Remove.
30240 (cselib_preserve_only_values): Remove retain argument, don't
30241 traverse hash table with cselib_{preserve_definitely,clear_preserve}.
30242 * cselib.h (cselib_preserve_only_values): Remove retain argument.
30243 * var-tracking.c (micro_operation): Move insn field before union.
30244 Add DEF_VEC_O and DEF_VEC_ALLOC_O for this type.
30245 (struct variable_tracking_info_def): Remove n_mos field, change
30246 mos into a vector of micro_operations.
30247 (count_uses, count_uses_1, count_stores, count_with_sets): Remove.
30248 (bb_stack_adjust_offset, log_op_type, add_uses, add_stores,
30249 compute_bb_dataflow, emit_notes_in_bb): Adjust for VTI (bb)->mos
30250 changing into a vector.
30251 (add_with_sets): Likewise. Ensure MO_VAL_USE uops from add_stores
30252 come before all other uops generated by add_stores.
30253 (vt_add_function_parameters): Adjust for cselib_preserve_only_values
30254 argument removal.
30255 (vt_initialize): Likewise. Adjust for VTI (bb)->mos changing into
30256 a vector. Run just one pass over the bbs instead of separate counting
30257 and computation phase.
30258 (vt_finalize): Free VTI (bb)->mos vector instead of array.
30259
30260 PR debug/43329
30261 * tree-inline.c (remap_decls): Put old_var rather than origin_var
30262 into *nonlocalized_list vector.
30263 * dwarf2out.c (gen_formal_parameter_die): Call decl_ultimate_origin
30264 even if origin is non-NULL.
30265 (gen_variable_die): Likewise.
30266 (process_scope_var): Don't change origin.
30267 (gen_decl_die): Likewise.
30268 * tree-cfgcleanup.c (remove_forwarder_block): Check single_pred_p
30269 before adding new edges instead of after it, fix moving over
30270 debug stmts.
30271
30272 2010-03-11 David S. Miller <davem@davemloft.net>
30273
30274 * configure.ac (gcc_cv_as_cfi_advance_working): Skip a multiple
30275 of four.
30276 * configure: Rebuild.
30277
30278 2010-03-11 Martin Jambor <mjambor@suse.cz>
30279
30280 PR tree-optimization/43257
30281 * tree.c (assign_assembler_name_if_neeeded): New function.
30282 (free_lang_data_in_cgraph): Assembler name assignment moved to the
30283 above new function.
30284 * tree.h (assign_assembler_name_if_neeeded): Declare.
30285 * cgraphunit.c (cgraph_analyze_function): Create an assembler name for
30286 the function if needed.
30287
30288 2010-03-11 Chris Demetriou <cgd@google.com>
30289
30290 * Makefile.in (stmp-int-hdrs): Make include/unwind.h,
30291 include/stdint-gcc.h, and include/stdint.h world-readable.
30292
30293 2010-03-11 Richard Guenther <rguenther@suse.de>
30294
30295 PR tree-optimization/43255
30296 * tree-vrp.c (process_assert_insertions_for): Do not insert
30297 asserts for trivial conditions.
30298
30299 2010-03-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30300
30301 PR tree-optimization/43280
30302 * tree-ssa-math-opts.c (find_bswap_1): Modify symbolic number
30303 generation. Move calculation of size out of the if branch.
30304 (find_bswap): Modify compare number generation.
30305
30306 2010-03-11 Richard Guenther <rguenther@suse.de>
30307
30308 PR lto/43200
30309 * lto-streamer-in.c (maybe_fixup_decls): Simplify.
30310 (input_gimple_stmt): Fixup handled component types during
30311 operand read. Also fix up decls in ADDR_EXPRs.
30312
30313 2010-03-10 Eric Botcazou <ebotcazou@adacore.com>
30314
30315 * config/sparc/sol2-bi.h (CC1_SPEC): Default to -mcpu=v9 for -m32.
30316 * config/sparc/t-sol2-64 (MULTILIB_DIRNAMES): Use sparcv8plus.
30317
30318 2010-03-10 Jan Hubicka <jh@suse.cz>
30319
30320 PR c/43288
30321 * ipa.c (function_and_variable_visibility) Normalize COMMON bits.
30322 * varasm.c (get_variable_section): Don't do that here...
30323 (make_decl_rtl): ... and here.
30324 (do_assemble_alias): Produce decl RTL.
30325 (assemble_alias): Likewise.
30326
30327 2010-03-10 Jakub Jelinek <jakub@redhat.com>
30328
30329 PR debug/43290
30330 * reg-notes.def (REG_CFA_SET_VDRAP): New note.
30331 * dwarf2out.c (dwarf2out_frame_debug_expr): Remove rule 20 - setting
30332 of fde->vdrap_reg.
30333 (dwarf2out_frame_debug): Handle REG_CFA_SET_VDRAP note.
30334 (based_loc_descr): Only express drap or vdrap regno based expressions
30335 using DW_OP_fbreg when not optimizing.
30336 * config/i386/i386.c (ix86_get_drap_rtx): When not optimizing,
30337 make the vDRAP = DRAP assignment RTX_FRAME_RELATED_P and add
30338 REG_CFA_SET_VDRAP note.
30339
30340 2010-03-10 Alexander Monakov <amonakov@ispras.ru>
30341
30342 PR tree-optimization/43236
30343 * tree-loop-distribution.c (generate_memset_zero): Fix off-by-one
30344 error in calculation of base address in reverse iteration case.
30345 (generate_builtin): Take number of latch executions if the statement
30346 is in the latch.
30347
30348 2010-03-10 Andrey Belevantsev <abel@ispras.ru>
30349
30350 PR middle-end/42859
30351 * tree-eh.c: Include pointer-set.h.
30352 (lower_eh_dispatch): Filter out duplicate case labels and
30353 remove the unneeded edge when the label is unused. Return
30354 true when some edges are removed.
30355 (execute_lower_eh_dispatch): When any lowering resulted in
30356 removing an edge, also delete unreachable blocks.
30357
30358 2010-03-10 Jakub Jelinek <jakub@redhat.com>
30359
30360 PR bootstrap/43287
30361 * config/rs6000/rs6000.c (rs6000_delegitimize_address): Handle
30362 UNSPEC_MACHOPIC_OFFSET.
30363
30364 2010-03-09 Andreas Schwab <schwab@linux-m68k.org>
30365
30366 PR target/43294
30367 * config/m68k/m68k.c (TARGET_DELEGITIMIZE_ADDRESS): Define.
30368 (m68k_delegitimize_address): New function.
30369
30370 2010-03-09 Jakub Jelinek <jakub@redhat.com>
30371
30372 PR debug/43299
30373 * dwarf2out.c (const_ok_for_output_1): Return 1 for UNSPECs.
30374
30375 PR debug/43299
30376 * var-tracking.c (adjust_sets): New function.
30377 (count_with_sets, add_with_sets): Use it.
30378 (get_adjusted_src): New inline function.
30379 (add_stores): Use it.
30380
30381 PR debug/43304
30382 * var-tracking.c (vt_expand_loc_callback) <case SUBREG>: If dummy,
30383 call cselib_dummy_expand_value_rtx_cb instead of
30384 cselib_expand_value_rtx_cb.
30385
30386 PR debug/43293
30387 * config/i386/t-i386 (i386.o): Depend on debug.h and dwarf2out.h.
30388 * config/i386/i386.c: Include debug.h and dwarf2out.h.
30389 (ix86_file_end): If dwarf2out_do_cfi_asm (), emit .cfi_startproc
30390 and .cfi_endproc around the pic thunks.
30391 (output_set_got): For TARGET_DEEP_BRANCH_PREDICTION pic, ensure
30392 all queued unwind info register saves are saved before the call.
30393 For !TARGET_DEEP_BRANCH_PREDICTION pic, ensure the call is
30394 considered as sp-=4 for unwind info and the pop as sp+=4 which
30395 also clobbers dest, but doesn't actually restore it.
30396
30397 PR debug/43290
30398 * config/i386/i386.c (ix86_get_drap_rtx): Don't set
30399 RTX_FRAME_RELATED_P.
30400
30401 2010-03-09 Jie Zhang <jie@codesourcery.com>
30402
30403 * config/arm/arm.md (thumb_mulsi3_v6): Remove trailing
30404 whitespaces in output template.
30405
30406 2010-03-09 Jie Zhang <jie@codesourcery.com>
30407
30408 * ira-lives.c (check_and_make_def_use_conflict): Don't fall
30409 out array boundary.
30410
30411 2010-03-08 Jakub Jelinek <jakub@redhat.com>
30412
30413 * Makefile.in (check_gcc_parallelize): Run dg-torture.exp and
30414 builtins.exp in a separate job.
30415
30416 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30417
30418 * graphite-sese-to-poly.c (add_param_constraints): Use
30419 lower_bound_in_type and upper_bound_in_type.
30420
30421 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30422
30423 * graphite-sese-to-poly.c (add_param_constraints): Use sizetype
30424 instead of unsigned_type_node.
30425
30426 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30427 Reza Yazdani <reza.yazdani@amd.com>
30428
30429 PR middle-end/43065
30430 * graphite-sese-to-poly.c (add_param_constraints): Insert bounds
30431 on pointer type parameters.
30432
30433 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
30434
30435 PR middle-end/42644
30436 PR middle-end/42130
30437 * graphite-clast-to-gimple.c (clast_to_gcc_expression): Also
30438 handle conversions from pointer to integers.
30439 (gcc_type_for_cloog_iv): Choose the smalles signed integer as an
30440 induction variable, to be able to work with code generated by CLooG.
30441 * graphite-sese-to-poly.c (scop_ivs_can_be_represented): New.
30442 (build_poly_scop): Bail out if we cannot codegen a loop.
30443
30444 2010-03-08 Tobias Grosser <grosser@fim.uni-passau.de>
30445
30446 * graphite-clast-to-gimple.c (translate_clast): Do not short-cut
30447 code generation with gloog_error.
30448
30449 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30450
30451 * sese.c (expand_scalar_variables_ssa_name): Add new argument for type.
30452 Call fold_convert on all the returned values.
30453 (expand_scalar_variables_expr): Pass to
30454 expand_scalar_variables_ssa_name the type of the resulting expression.
30455
30456 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30457
30458 * graphite-ppl.c (ppl_min_for_le_polyhedron): Renamed
30459 ppl_min_for_le_pointset.
30460 Use ppl_Pointset_Powerset_C_Polyhedron_minimize.
30461 * graphite-ppl.h (ppl_min_for_le_polyhedron): Update declaration.
30462
30463 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30464
30465 * graphite-dependences.c (map_into_dep_poly): Removed.
30466 (dependence_polyhedron_1): Use combine_context_id_scat.
30467
30468 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30469
30470 * graphite-poly.h (struct poly_scattering): Add layout documentation.
30471 (struct poly_bb): Same.
30472 (combine_context_id_scat): New.
30473
30474 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30475
30476 PR middle-end/42326
30477 * sese.c (name_defined_in_loop_p): Return false for default
30478 definitions.
30479
30480 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30481
30482 * graphite-clast-to-gimple.c (find_cloog_iv_in_expr): Simplify
30483 and clean up the logic.
30484
30485 2010-03-08 Sebastian Pop <sebastian.pop@amd.com>
30486
30487 * graphite-sese-to-poly.c (add_param_constraints): Enabled: remove
30488 early return.
30489
30490 2010-03-08 Jakub Jelinek <jakub@redhat.com>
30491
30492 * var-tracking.c (remove_cselib_value_chains): Define only for
30493 ENABLE_CHECKING.
30494 (dataflow_set_preserve_mem_locs, dataflow_set_remove_mem_locs,
30495 delete_slot_part, emit_notes_for_differences_1): Don't call
30496 remove_cselib_value_chains here.
30497 (set_slot_part, emit_notes_for_differences_2): Don't call
30498 add_cselib_value_chains here.
30499 (preserved_values): New vector.
30500 (preserve_value): New function.
30501 (add_uses, add_stores, vt_add_function_parameters): Use it
30502 instead of cselib_preserve_value.
30503 (changed_values_stack): New vector.
30504 (check_changed_vars_0): New function.
30505 (check_changed_vars_1, check_changed_vars_2): Use it.
30506 (emit_notes_for_changes): Call set_dv_changed (*, false) on all
30507 changed_values_stack VALUEs.
30508 (vt_emit_notes): For all preserved_values call
30509 add_cselib_value_chains. If ENABLE_CHECKING call
30510 remove_cselib_value_chains before verifying value_chains is empty.
30511 Initialize and free changed_values_stack.
30512 (vt_initialize): Initialize preserved_values.
30513 (vt_finalize): Free preserved_values.
30514
30515 2010-03-08 Richard Guenther <rguenther@suse.de>
30516
30517 PR tree-optimization/43269
30518 * tree-ssa-dse.c (dse_possible_dead_store_p): Fix post-dom
30519 region detection.
30520
30521 2010-03-08 Martin Jambor <mjambor@suse.cz>
30522
30523 * ipa-prop.h (struct ipa_param_descriptor): Removed the called field.
30524 (ipa_is_param_called): Removed.
30525 * ipa-prop.c (ipa_note_param_call): Do not set the called flag.
30526 (ipa_print_node_params): Do not print the called flag.
30527 (ipa_write_node_info): Do not stream the called flag.
30528 (ipa_read_node_info): Likewise.
30529
30530 2010-03-07 Jakub Jelinek <jakub@redhat.com>
30531
30532 PR debug/43176
30533 * Makefile.in (var-tracking.o): Depend on pointer-set.h.
30534 * cselib.c (struct expand_value_data): Add dummy field.
30535 (cselib_expand_value_rtx, cselib_expand_value_rtx_cb): Initialize
30536 dummy to false.
30537 (cselib_dummy_expand_value_rtx_cb): New function.
30538 (cselib_expand_value_rtx_1): If evd->dummy is true, don't allocate
30539 any rtl.
30540 * cselib.h (cselib_dummy_expand_value_rtx_cb): New prototype.
30541 * var-tracking.c: Include pointer-set.h.
30542 (variable): Change n_var_parts to char from int. Add
30543 cur_loc_changed and in_changed_variables fields.
30544 (variable_canonicalize): Remove.
30545 (shared_var_p): New inline function.
30546 (unshare_variable): Maintain cur_loc_changed and
30547 in_changed_variables fields. If var was in changed_variables,
30548 replace it there with new_var. Just copy cur_loc instead of
30549 resetting it to something else.
30550 (variable_union): Don't recompute cur_loc. Use shared_var_p.
30551 (dataflow_set_union): Don't call variable_canonicalize.
30552 (loc_cmp): If both x and y are DEBUG_EXPRs, compare uids
30553 of their DEBUG_EXPR_TREE_DECLs.
30554 (canonicalize_loc_order_check): Verify that cur_loc is NULL
30555 and in_changed_variables and cur_loc_changed is false.
30556 (variable_merge_over_cur): Clear cur_loc, in_changed_variables
30557 and cur_loc_changed. Don't update cur_loc here.
30558 (variable_merge_over_src): Don't call variable_canonicalize.
30559 (dataflow_set_preserve_mem_locs): Use shared_var_p. When
30560 removing loc that is equal to cur_loc, clear cur_loc,
30561 set cur_loc_changed and ensure variable_was_changed is called.
30562 (dataflow_set_remove_mem_locs): Use shared_var_p. Only
30563 compare pointers in cur_loc check, if it is equal to loc,
30564 clear cur_loc and set cur_loc_changed. Don't recompute cur_loc here.
30565 (variable_different_p): Remove compare_current_location argument,
30566 don't compare cur_loc.
30567 (dataflow_set_different_1): Adjust variable_different_p caller.
30568 (variable_was_changed): If dv had some var in changed_variables
30569 already, reset in_changed_variables flag for it and propagate
30570 cur_loc_changed over to the new variable. On empty var
30571 always set cur_loc_changed. Set in_changed_variables on whatever
30572 var is added to changed_variables.
30573 (set_slot_part): Clear cur_loc_changed and in_changed_variables.
30574 Use shared_var_p. When removing loc that is equal to cur_loc,
30575 clear cur_loc and set cur_loc_changed. If cur_loc is NULL at the
30576 end, don't set it to something else, just call variable_was_changed.
30577 (delete_slot_part): Use shared_var_p. When cur_loc equals to
30578 loc being removed, clear cur_loc and set cur_loc_changed.
30579 Set cur_loc_changed if all locations have been removed.
30580 (struct expand_loc_callback_data): New type.
30581 (vt_expand_loc_callback): Add dummy mode in which no rtxes are
30582 allocated. Always create SUBREGs if simplify_subreg failed.
30583 Prefer to use cur_loc, when that fails and still in
30584 changed_variables (and seen first time) recompute it. Set
30585 cur_loc_changed of variables which had to change cur_loc and
30586 compute elcd->cur_loc_changed if any of the subexpressions used
30587 had to change cur_loc.
30588 (vt_expand_loc): Adjust to pass arguments in
30589 expand_loc_callback_data structure.
30590 (vt_expand_loc_dummy): New function.
30591 (emitted_notes): New variable.
30592 (emit_note_insn_var_location): For VALUEs and DEBUG_EXPR_DECLs
30593 that weren't used for any other decl in current
30594 emit_notes_for_changes call call vt_expand_loc_dummy to update
30595 cur_loc. For -fno-var-tracking-assignments, set cur_loc to
30596 first loc_chain location if NULL before. Always use just
30597 cur_loc instead of first loc_chain location. When cur_loc_changed
30598 is false, when not --enable-checking=rtl just don't emit any note.
30599 When rtl checking, compute the note and assert it is the same
30600 as previous note. Clear cur_loc_changed and in_changed_variables
30601 at the end before removing from changed_variables.
30602 (check_changed_vars_3): New function.
30603 (emit_notes_for_changes): Traverse changed_vars to call
30604 check_changed_vars_3 on each changed var.
30605 (emit_notes_for_differences_1): Clear cur_loc_changed and
30606 in_changed_variables. Recompute cur_loc of new_var.
30607 (emit_notes_for_differences_2): Clear cur_loc if new variable appears.
30608 (vt_emit_notes): Initialize and destroy emitted_notes.
30609
30610 2010-03-07 Bernd Schmidt <bernd.schmidt@analog.com>
30611
30612 PR rtl-optimization/42220
30613 * regrename.c (scan_rtx) <case STRICT_LOW_PART, ZERO_EXTRACT>:
30614 Use verify_reg_tracked to determine if we should use OP_OUT rather
30615 than OP_INOUT.
30616 (build_def_use): If we see an in-out operand for a register that we
30617 know nothing about, treat is an output if possible, fail the block if
30618 not.
30619
30620 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
30621
30622 PR debug/42897
30623 * gimple-iterator.c (gsi_remove): Propagate only PHI DEFs removed
30624 permanently.
30625
30626 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
30627
30628 PR debug/42897
30629 * tree-vect-loop.c (vect_transform_loop): Kill out-of-loop debug
30630 uses of relevant DEFs that are dead outside the loop too.
30631
30632 2010-03-06 Alexandre Oliva <aoliva@redhat.com>
30633
30634 * var-tracking.c (dataflow_set_merge): Swap src and src2.
30635 Reverted:
30636 2010-01-13 Jakub Jelinek <jakub@redhat.com>
30637 PR debug/41371
30638 * var-tracking.c (values_to_unmark): New variable.
30639 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
30640 values_to_unmark vector. Moved body to...
30641 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
30642 instead queue it into values_to_unmark vector.
30643 (vt_find_locations): Free values_to_unmark vector.
30644
30645 2010-03-05 Eric Botcazou <ebotcazou@adacore.com>
30646
30647 * Makefile.in (PLUGINCC, PLUGINCFLAGS): New variables.
30648 (site.exp): Export them when plugins are enabled.
30649
30650 2010-03-05 Sebastian Pop <sebastian.pop@amd.com>
30651
30652 PR middle-end/42326
30653 * tree-chrec.c (chrec_fold_plus_1): Do not handle convert expressions
30654 that contain scevs.
30655 (chrec_fold_multiply): Same.
30656
30657 2010-03-04 Andrew Pinski <andrew_pinski@caviumnetworks.com>
30658
30659 PR c/43248
30660 * c-decl.c (build_compound_literal): Return early if init is
30661 an error_mark_node.
30662
30663 2010-03-04 Martin Jambor <mjambor@suse.cz>
30664
30665 PR tree-optimization/43164
30666 PR tree-optimization/43191
30667 * tree-sra.c (type_consists_of_records_p): Reject records with
30668 zero-size bit-fields at the end.
30669
30670 2010-03-04 Mike Stump <mikestump@comcast.net>
30671
30672 * Makefile.in (TAGS): Remove *.y.
30673
30674 2010-03-04 Richard Guenther <rguenther@suse.de>
30675
30676 PR tree-optimization/40761
30677 * tree-ssa-pre.c (compute_antic): Walk reverse postorder
30678 in reverse order.
30679 (my_rev_post_order_compute): New function.
30680 (init_pre): Call it.
30681
30682 2010-03-04 Changpeng Fang <changpeng.fang@amd.com>
30683
30684 PR middle-end/43209
30685 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Do not
30686 decrease the cost of an IV candidate when the cost is infinite.
30687
30688 2010-03-04 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30689
30690 * doc/extend.texi (Vector Extensions, X86 Built-in Functions):
30691 Use '3DNow!' for the extension of that name, ensure normal space
30692 after the string.
30693 * doc/invoke.texi (i386 and x86-64 Options): Likewise.
30694
30695 2010-03-03 Jeff Law <law@redhat.com>
30696
30697 * PR middle-end/32693
30698 * expmed.c (store_bit_field_1): Use gen_lowpart_SUBREG rather
30699 than gen_rtx_SUBREG.
30700 (extract_bit_field_1): Likewise.
30701
30702 2010-03-03 Janis Johnson <janis187@us.ibm.com>
30703
30704 * doc/sourcebuild.texi (Test directives): Document that arguments
30705 include-opts and exclude-opts are now optional for dg-skip-if,
30706 dg-xfail-if, dg-xfail-run-if, and dg-shouldfail.
30707
30708 2010-03-03 Jason Merrill <jason@redhat.com>
30709
30710 PR c++/12909
30711 * cgraph.h (varpool_node): Add extra_name field.
30712 * varpool.c (varpool_extra_name_alias): New.
30713 (varpool_assemble_decl): Emit extra name aliases.
30714 (varpool_mark_needed_node): Look past an extra name alias.
30715 * lto-streamer.h (LTO_tags): Add LTO_var_decl_alias.
30716 * lto-streamer-in.c (lto_input_tree): Read it.
30717 * lto-streamer-out.c (output_unreferenced_globals): Write it.
30718
30719 2010-03-03 Eric Botcazou <ebotcazou@adacore.com>
30720
30721 * config.gcc (sparc64-*-solaris2*, sparc-*-solaris2*): Merge into...
30722 (sparc*-*-solaris2*): ...this.
30723
30724 2010-03-03 Jakub Jelinek <jakub@redhat.com>
30725
30726 PR debug/43229
30727 * cfgexpand.c (expand_debug_expr): Handle DOT_PROD_EXPR,
30728 WIDEN_MULT_EXPR and WIDEN_SUM_EXPR. Return NULL without
30729 ICE for vector expressions, ADDR_SPACE_CONVERT_EXPR,
30730 FIXED_CONVERT_EXPR, OBJ_TYPE_REF and WITH_SIZE_EXPR.
30731
30732 PR debug/43237
30733 * dwarf2out.c (add_bound_info): If a decl bound doesn't have decl_die,
30734 fallthrough to default handling, just with want_address 0 instead of 2.
30735 For single element lists, add_AT_loc directly, otherwise create an
30736 artificial variable DIE and stick location list to it.
30737
30738 PR debug/43177
30739 * var-tracking.c (loc_cmp): Don't assert VALUEs have the same mode.
30740 (VAL_EXPR_HAS_REVERSE): Define.
30741 (reverse_op): New function.
30742 (add_stores): For reversible operations add an extra MO_VAL_USE.
30743
30744 2010-03-02 Jason Merrill <jason@redhat.com>
30745
30746 * c-pretty-print.c (pp_c_specifier_qualifier_list): Print vector size.
30747
30748 2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
30749
30750 * config.gcc (sparc-*-linux*): Do not include sparc/gas.h.
30751 (sparc64-*-linux*): Likewise.
30752 (sparc64-*-solaris2*): Include assembler files before linker ones.
30753 (sparc-*-solaris2*): Simplify and reorder to match previous case.
30754 * config/sparc/gas.h: Delete.
30755 * config/sparc/sol2-64.h: Add copyright notice.
30756 * config/sparc/sol2-gas-bi.h: Likewise.
30757 * config/sparc/sol2-gld.h: Likewise.
30758 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Delete.
30759 * config/sparc/sol2.h (TARGET_ASM_NAMED_SECTION): Redefine.
30760 * config/sparc/sol2-gas.h (TARGET_ASM_NAMED_SECTION): Likewise.
30761 * config/sparc/sparc.c (TARGET_ASM_ALIGNED_SI_OP): Never redefine.
30762 (sparc_elf_asm_named_section): Rename into...
30763 (sparc_solaris_elf_asm_named_section): ...this. Always define.
30764
30765 2010-03-02 Uros Bizjak <ubizjak@gmail.com>
30766
30767 * config/alpha/alpha.c (override_options): Fix -mtune error message.
30768
30769 2010-03-02 Jeff Law <law@redhat.com>
30770
30771 PR middle-end/42431
30772 * reload1.c (rtx_p, substitute_stack): Declare.
30773 (substitute): Record addresses of changed rtxs.
30774 (gen_reload_chain_without_interm_reg_p): Don't use copy_rtx anymore.
30775 Restore the original rtx when complete.
30776 (reload): Free subsitute_stack when complete.
30777
30778 2010-03-02 Janis Johnson <janis187@us.ibm.com>
30779
30780 * doc/gccint.texi (menu): Add Testsuites as a chapter.
30781 * doc/sourcebuild.texi (Testsuites): Move up a level to be a
30782 new chapter.
30783 (Test Idioms, Test Directives, Ada Tests, C Tests, libgcj Tests,
30784 LTO Testing, gcov Testing, profopt Testing, compat Testing,
30785 Torture Tests): Change from subsection to section.
30786
30787 2010-03-02 Jakub Jelinek <jakub@redhat.com>
30788 Steven Bosscher <steven@gcc.gnu.org>
30789
30790 * var-tracking.c (vt_initialize): Scan insns in ebb chunks
30791 instead of bb.
30792
30793 2010-03-02 Reza Yazdani <reza.yazdani@amd.com>
30794
30795 PR middle-end/42640
30796 * tree-loop-distribution.c (update_phis_for_loop_copy): Replaced
30797 the assignment from the new induction variable to the assignment
30798 of the value from the original loop PHI function.
30799
30800 2010-03-01 Janis Johnson <janis187@us.ibm.com>
30801 Daniel Jacobowitz <dan@codesourcery.com>
30802
30803 * doc/sourcebuild.texi (Test directives): Clarify options to
30804 dg-skip-if.
30805
30806 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30807
30808 * configure.ac (gcc_cv_as_cfi_directive) [i?86-*-solaris*]:
30809 Disable cfi directives unless GCC and gas agree on using read-only
30810 .eh_frame sections for 64-bit.
30811 * configure: Regenerate.
30812
30813 2010-03-01 Richard Guenther <rguenther@suse.de>
30814
30815 PR tree-optimization/43220
30816 * tree-ssa-ccp.c (optimize_stack_restore): Do not optimize
30817 BUILT_IN_STACK_{SAVE,RESTORE} around alloca.
30818
30819 2010-03-01 Richard Guenther <rguenther@suse.de>
30820 Martin Jambor <mjambor@suse.cz>
30821
30822 PR middle-end/41250
30823 * gimplify.c (gimplify_body): Unset DECL_HAS_VALUE_EXPR_P on
30824 gimplified parameters.
30825
30826 2010-03-01 Christian Bruel <christian.bruel@st.com>
30827
30828 * except.c (dw2_build_landing_pads): set LABEL_PRESERVE_P.
30829
30830 2010-03-01 H.J. Lu <hongjiu.lu@intel.com>
30831
30832 * config/i386/linux64.h (ASM_SPEC): Use SPEC_32 and SPEC_64.
30833
30834 2010-03-01 Richard Guenther <rguenther@suse.de>
30835
30836 PR middle-end/43213
30837 * expr.c (expand_assignment): Use the alias-oracle to tell
30838 if the rhs aliases the result decl.
30839
30840 2010-03-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30841
30842 PR pch/14940
30843 * config/host-solaris.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Redefine
30844 to sol_gt_pch_get_address.
30845 (TRY_EMPTY_VM_SPACE): Define for all combinations of 32 and
30846 64-bit, SPARC and x86.
30847 (sol_gt_pch_get_address): New function.
30848
30849 2010-03-01 Marco Poletti <poletti.marco@gmail.com>
30850
30851 * toplev.h (inform_n, error_n): Declare.
30852 * diagnostic.c (inform_n, error_n): New function.
30853
30854 2010-03-01 Jakub Jelinek <jakub@redhat.com>
30855
30856 * cfgexpand.c (expand_used_vars): If an artificial non-ignored var
30857 has no rtl yet when processing local_decls, queue it and recheck
30858 if deferred stack allocation hasn't assigned it rtl.
30859
30860 2010-02-28 Kaz Kojima <kkojima@gcc.gnu.org>
30861
30862 * config/sh/sh.c (unspec_bbr_uid): New.
30863 (gen_block_redirect): Use it instead of INSN_UID.
30864 (gen_far_branch): Likewise.
30865
30866 2010-02-28 H.J. Lu <hongjiu.lu@intel.com>
30867
30868 * config/i386/darwin.h (TARGET_SUBTARGET32_ISA_DEFAULT): Make
30869 it the same as TARGET_SUBTARGET64_ISA_DEFAULT.
30870
30871 2010-02-28 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
30872
30873 * doc/invoke.texi (Warning Options, RX Options): Fix typos.
30874 (Warning Options): -Wno-conversion-null is valid for
30875 Objective-C++ as well.
30876 * doc/tm.texi (Named Address Spaces): Likewise.
30877 * doc/plugins.texi (Plugins): Replace TABs with spaces.
30878 * doc/tree-ssa.texi (Tree SSA): Likewise.
30879
30880 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
30881
30882 PR bootstrap/43202
30883 * config.gcc: Don't enable SSE math for i[34567]86-*-darwin*
30884 by default. Don't set the default arch for
30885 i[34567]86-*-darwin*|x86_64-*-darwin*.
30886
30887 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
30888
30889 PR bootstrap/43202
30890 * config.gcc: Enable SSE math for i[34567]86-*-darwin* by
30891 default. Set the default 32bit/64bit archs with $with_arch
30892 instead of $arch for i[34567]86-*-*|x86_64-*-* targets.
30893
30894 2010-02-27 Richard Guenther <rguenther@suse.de>
30895
30896 PR tree-optimization/43186
30897 * params.def (PARAM_MAX_UNROLL_ITERATIONS): New param.
30898 * doc/invoke.texi (max-completely-peel-loop-nest-depth): Document.
30899 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Limit
30900 unroller iterations.
30901
30902 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
30903
30904 * config.gcc: Set the default 32bit/64bit archs if 64bit ISA is
30905 required and i[34567]86-*-* targets don't support 64bit ISA.
30906
30907 2010-02-26 Eric Botcazou <ebotcazou@adacore.com>
30908
30909 PR ada/43096
30910 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
30911 the same alias set.
30912
30913 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
30914
30915 * config.gcc: Set the default arch at least to Prescott for
30916 i[34567]86-*-darwin* and Pentium 4 for i[34567]86-*-* targets
30917 if SSE math is enabled.
30918
30919 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
30920
30921 * diagnostic.c (diagnostic_initialize): Update.
30922 (diagnostic_report_diagnostic): Test inhibit_notes_p for
30923 informative notes.
30924 * diagnostic.h (diagnostic_context): New bool inhibit_notes_p.
30925 (diagnostic_inhibit_notes): New.
30926 * toplev.c (process_options): inhibit notes with -fcompare-debug.
30927
30928 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
30929
30930 PR c/20631
30931 * doc/cpp.texi: Use c90 instead of c89 and gnu90 instead of gnu89.
30932 * doc/standards.texi: Likewise.
30933 * doc/extend.texi: Likewise.
30934 * doc/trouble.texi: Likewise.
30935 * doc/cppopts.texi: Likewise.
30936 * doc/install.texi: Likewise.
30937 * c.opt (std=c90,std=gnu90): New options.
30938 * c-opts.c (c_common_handle_option): Handle them.
30939
30940 2010-02-26 Manuel López-Ibáñez <manu@gcc.gnu.org>
30941
30942 PR c/24577
30943 * c-decl.c (undeclared_variable): Use an informative note.
30944
30945 2010-02-26 Richard Guenther <rguenther@suse.de>
30946
30947 PR tree-optimization/43186
30948 * gimple.h (gimple_fold): Remove.
30949 * gimple.c (gimple_fold): Remove. Inline into single user ...
30950 * tree-cfgcleanup.c (cleanup_control_expr_graph): ... here.
30951 Try harder for conditions.
30952
30953 2010-02-26 Jakub Jelinek <jakub@redhat.com>
30954
30955 PR debug/43190
30956 * function.c (used_types_insert): Don't skip through named pointer
30957 types. Don't use TYPE_MAIN_VARIANT if the original type has a name
30958 and it is different from the main variant's type.
30959
30960 2010-02-26 Nick Clifton <nickc@redhat.com>
30961
30962 * config/rx/rx.md (sminsi3): Remove bogus alternative.
30963
30964 2010-02-26 H.J. Lu <hongjiu.lu@intel.com>
30965
30966 * config.gcc: Support --with-fpmath=sse for x86.
30967
30968 * config/i386/ssemath.h: New.
30969
30970 * doc/install.texi (--with-fpmath=sse): Documented.
30971
30972 2010-02-26 Richard Guenther <rguenther@suse.de>
30973
30974 PR tree-optimization/43188
30975 * tree-vect-stmts.c (get_vectype_for_scalar_type): Do not build
30976 vector types of over-aligned element type.
30977
30978 2010-02-26 Uros Bizjak <ubizjak@gmail.com>
30979
30980 PR target/43175
30981 * config/i386/i386.c (expand_vec_perm_blend): Use correct
30982 operands in V8HImode subregs. Fix operand order in VEC_MERGE rtx.
30983
30984 2010-02-26 Jan Kratochvil <jan.kratochvil@redhat.com>
30985
30986 * doc/invoke.texi (-fvar-tracking-assignments): Fix typo.
30987
30988 2010-02-26 Jakub Jelinek <jakub@redhat.com>
30989
30990 * Makefile.in (var-tracking.o): Depend on $(DIAGNOSTIC_H).
30991 * var-tracking.c: Include diagnostic.h.
30992 (debug_dv): New function.
30993 (dump_var): Print DEBUG_EXPR_DECLs as D#N instead of D.-N.
30994
30995 PR debug/43160
30996 * var-tracking.c (dv_onepart_p): Return true for DEBUG_EXPR_DECLs.
30997 (add_value_chain, add_value_chains, remove_value_chain,
30998 remove_value_chains): Handle DEBUG_EXPRs.
30999 (check_changed_vars_1, check_changed_vars_2): Handle DEBUG_EXPR_DECLs.
31000
31001 PR debug/43161
31002 * regcprop.c (struct queued_debug_insn_change): New type.
31003 (struct value_data_entry): Add debug_insn_changes field.
31004 (struct value_data): Add n_debug_insn_changes field.
31005 (debug_insn_changes_pool): New variable.
31006 (free_debug_insn_changes, apply_debug_insn_changes,
31007 cprop_find_used_regs_1, cprop_find_used_regs): New functions.
31008 (kill_value_one_regno): Call free_debug_insn_changes if needed.
31009 (init_value_data): Clear debug_insn_changes and n_debug_insn_changes
31010 fields.
31011 (replace_oldest_value_reg): Don't change DEBUG_INSNs, instead queue
31012 changes for them.
31013 (copyprop_hardreg_forward_1): Don't call apply_change_group for
31014 DEBUG_INSNs. For a real insn, if there are queued DEBUG_INSN
31015 changes, call cprop_find_used_regs via note_stores.
31016 (copyprop_hardreg_forward): When copying vd from predecessor
31017 which has any queued DEBUG_INSN changes, make sure the pointers are
31018 cleared. At the end call df_analyze and then if there are any
31019 DEBUG_INSN changes queued at the end of some basic block for still
31020 live registers, apply them.
31021 (pass_cprop_hardreg): Set TODO_df_finish in todo_flags_finish.
31022
31023 2010-02-25 Uros Bizjak <ubizjak@gmail.com>
31024
31025 * config.gcc (i[34567]86-*-* | x86_64-*-*): Split long line.
31026 (arm*-*-*): Ditto.
31027
31028 2010-02-25 H.J. Lu <hongjiu.lu@intel.com>
31029
31030 * config.gcc: Set arch/cpu for i[34567]86-*-*|x86_64-*-*
31031 targets. Set the default with_cpu/with_arch from arch/cpu.
31032 Allow x86-64 and native for with_cpu/with_arch.
31033
31034 2010-02-25 Nicolas Benoit <nbenoit@tuxfamily.org>
31035
31036 * ebitmap.c: Change calls to verify_popcount with calls to
31037 sbitmap_verify_popcount.
31038 (ebitmap_clear_bit): Fixed map->cacheindex test and
31039 map>cache update when bit clearing results in an empty
31040 element.
31041
31042 2010-02-25 Michael Meissner <meissner@linux.vnet.ibm.com>
31043
31044 PR target/43154
31045 * config/rs6000/vector.md (VEC_64): New iterator for V2DF, V2DI.
31046 (vec_interleave_high<mode>): Rename from vec_interleave_highv2df
31047 and support both V2DF and V2DI modes.
31048 (vec_interleave_low<mode>): Rename from vec_interleave_lowv2df and
31049 support both V2DF and V2DI modes.
31050 (general): Delete trailing whitespace from a few patterns.
31051
31052 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
31053 V2DF/V2DI interleave high/low builtins.
31054
31055 * config/rs6000/rs6000-builtin.def (VSX_BUILTIN_VEC_MERGE*): Add
31056 new VSX builtins.
31057
31058 * config/rs6000/rs6000.c (bdesc_2arg): Add support for V2DF/V2DI
31059 interleave high/low functions.
31060
31061 2010-02-25 Gerald Pfeifer <gerald@pfeifer.com>
31062
31063 * doc/extend.texi (Symbol-Renaming Pragmas): Fix spelling of
31064 #pragma extern_prefix.
31065
31066 2010-02-25 Jakub Jelinek <jakub@redhat.com>
31067
31068 PR debug/43166
31069 * cfgexpand.c (expand_debug_expr) <case VAR_DECL>: If mode is
31070 BLKmode, assert op0 is a MEM and just adjust its mode.
31071
31072 PR debug/43165
31073 * cfgexpand.c (expand_debug_expr): Don't call simplify_gen_subreg
31074 if bitpos isn't multiple of mode's bitsize.
31075
31076 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
31077
31078 * c.opt (-ftemplate-depth=): New.
31079 (-ftemplate-depth-): Deprecate.
31080 * optc-gen.awk: Handle -ftemplate-depth=.
31081 * opth-gen.awk: Likewise.
31082 * c-opts.c (c_common_handle_option): Likewise.
31083 * doc/invoke.texi (-ftemplate-depth-): Replace with -ftemplate-depth=.
31084
31085 2010-02-24 Jason Merrill <jason@redhat.com>
31086
31087 * doc/invoke.texi: Improve -Wabi and -fabi-version docs.
31088
31089 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31090
31091 * cfg.c (alloc_aux_for_block): Remove inline.
31092 (alloc_aux_for_edge): Likewise.
31093
31094 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31095
31096 * config.gcc: Fix typo in mips-sgi-irix6.[0-4]* obsoletion.
31097
31098 2010-02-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31099
31100 * config/i386/sol2.h (NO_DBX_BNSYM_ENSYM): Define.
31101 * config/i386/sol2-gas.h: New file.
31102 * config.gcc (i[34567]86-*-solaris2*): Use it.
31103
31104 2010-02-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
31105
31106 PR c/43128
31107 * c-typeck.c (ep_convert_and_check): New.
31108 (build_conditional_expr): Use it.
31109 (build_binary_op): Likewise.
31110
31111 2010-02-24 Jakub Jelinek <jakub@redhat.com>
31112
31113 * regcprop.c (copyprop_hardreg_forward_1): Don't call df_insn_rescan.
31114
31115 PR debug/43150
31116 * gimplify.c (gimplify_type_sizes): Clear DECL_IGNORED_P for VLA
31117 bounds even for -O+.
31118 * var-tracking.c (track_expr_p): If !need_rtl, don't mandate
31119 expr needs to have DECL_NAME set.
31120
31121 2010-02-24 Nick Clifton <nickc@redhat.com>
31122
31123 * config/mep/mep.c: Include gimple.h.
31124 (mep_function_uses_sp): Delete unused function.
31125 (mep_gimplify_va_arg_expr): Change types of pre_p and post_p
31126 parameters. Use unsigned integers to count args. Return a
31127 NULL_RTX instead of an error_mark_node. Toidy up formatting.
31128
31129 2010-02-23 Jakub Jelinek <jakub@redhat.com>
31130
31131 PR target/43107
31132 * config/i386/i386.c (avx_vpermilp_parallel): Reject indexes
31133 greater or equal to nelt instead of 2 * nelt.
31134 (expand_vec_perm_1): When op0 and op1 are equal, mask indexes
31135 with nelt - 1.
31136
31137 2010-02-23 Jason Merrill <jason@redhat.com>
31138
31139 PR debug/42800
31140 * cfgexpand.c (expand_used_vars): Keep artificial non-ignored vars
31141 in cfun->local_decls even if they have register types.
31142
31143 PR c++/42837
31144 * stor-layout.c (place_field): Don't warn about unnecessary
31145 DECL_PACKED if the type is packed.
31146
31147 2010-02-23 Jakub Jelinek <jakub@redhat.com>
31148
31149 PR target/43139
31150 * config/i386/i386.c (ix86_delegitimize_address): Delegitimize all
31151 GOTOFF relocs, even when the base reg isn't pic pointer.
31152
31153 2010-02-23 Michael Matz <matz@suse.de>
31154
31155 PR debug/43077
31156 * cfgexpand (expand_debug_expr): Expand TERed ssa names in place.
31157 (expand_gimple_basic_block): Generate and use debug temps if there
31158 are debug uses left after the last real use of TERed ssa names.
31159 Unlink debug immediate uses when they are expanded.
31160
31161 2010-02-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
31162
31163 PR 43123
31164 * config/i386/i386.c (override_options): Reorganise to provide
31165 better error messages.
31166
31167 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
31168
31169 PR middle-end/43083
31170 * graphite-scop-detection.c (create_single_exit_edge): Move
31171 the call to find_single_exit_edge to....
31172 (create_sese_edges): ...here. Don't handle multiple edges
31173 exiting the function.
31174 (build_graphite_scops): Don't handle multiple edges
31175 exiting the function.
31176
31177 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
31178
31179 PR middle-end/43097
31180 * sese.c (get_rename): Assert that old_name is an SSA_NAME.
31181 (rename_variables_in_stmt): Continue when the use is not an SSA_NAME.
31182
31183 2010-02-22 Sebastian Pop <sebastian.pop@amd.com>
31184
31185 PR middle-end/43026
31186 * sese.c (expand_scalar_variables_expr): Handle COMPONENT_REF.
31187
31188 2010-02-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
31189
31190 PR c++/43126
31191 * c-typeck.c (convert_arguments): Print declaration location.
31192 * c-common.c (validate_nargs): Rename as
31193 builtin_function_validate_nargs.
31194 (check_builtin_function_arguments): Update.
31195
31196 2010-02-22 Richard Guenther <rguenther@suse.de>
31197
31198 PR lto/43045
31199 * tree-inline.c (declare_return_variable): Use the type of
31200 the call stmt lhs if available.
31201
31202 2010-02-22 Duncan Sands <baldrick@free.fr>
31203
31204 * passes.c (register_pass): Always consider all pass lists when
31205 ref_pass_instance_number is zero.
31206
31207 2010-02-22 Richard Guenther <rguenther@suse.de>
31208
31209 PR tree-optimization/42749
31210 * tree-tailcall.c (adjust_return_value_with_ops): Drop update
31211 parameter. Do arithmetic in the original type.
31212 (update_accumulator_with_ops): Likewise.
31213 (adjust_accumulator_values): Adjust.
31214
31215 2010-02-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31216
31217 * config/s390/s390.md ("movqi"): Re-add the mem->mem alternative.
31218 (QI to BLKmode splitter): New splitter.
31219
31220 2010-02-22 H.J. Lu <hongjiu.lu@intel.com>
31221
31222 * config/i386/i386.c (initial_ix86_tune_features): Turn on
31223 X86_TUNE_INTER_UNIT_MOVES for m_ATOM.
31224
31225 2010-02-22 Richard Guenther <rguenther@suse.de>
31226
31227 * tree-vect-slp.c (vect_slp_analyze_bb): Fix typo.
31228
31229 2010-02-22 Hans-Peter Nilsson <hp@bitrange.com>
31230
31231 Migrate crti, crtn, crtbegin, crtend build rules to libgcc.
31232 * config/mmix/t-mmix (EXTRA_MULTILIB_PARTS): Don't set.
31233 ($(T)crti.o, $(T)crtn.o): Remove rules.
31234
31235 2010-02-21 Tobias Burnus <burnus@net-b.de>
31236
31237 PR fortran/35259
31238 * doc/invoke.texi (-fassociative-math): Document that this
31239 option is automatically enabled for Fortran.
31240
31241 2010-02-20 David S. Miller <davem@davemloft.net>
31242
31243 * configure.ac: Test if linker and assembler properly support
31244 GOTDATA_OP relocations.
31245 * configure: Rebuild.
31246 * config.in: Likewise.
31247 * config/sparc/sparc.md (UNSPEC_MOVE_GOTDATA): New.
31248 (movsi_lo_sum_pic): Use %gdop_*() relocs if available.
31249 (movsi_high_pic): Likewise.
31250 (movdi_lo_sum_pic): Likewise.
31251 (movdi_high_pic): Likewise.
31252 (movsi_pic_gotdata_op): New pattern.
31253 (movdi_pic_gotdata_op): Likewise.
31254 * config/sparc/sparc.c (legitimize_pic_address): If flag_pic is 2,
31255 emit gen_mov{si,di}_pic_gotdata_op for the GOT slot load.
31256
31257 2010-02-20 Uros Bizjak <ubizjak@gmail.com>
31258
31259 PR target/43067
31260 * config/i386/sse.md (xop_mulv2div2di3_low): Change type
31261 attribute to ssemul.
31262 (xop_mulv2div2di3_high): Ditto.
31263
31264 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
31265
31266 PR c++/35669
31267 * c.opt (Wconversion-null): New option.
31268 * doc/invoke.texi (Wconversion-null): Document.
31269
31270 2010-02-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
31271
31272 * common.opt (Wlarger-than-): Add Undocumented.
31273
31274 2010-02-19 Mike Stump <mikestump@comcast.net>
31275
31276 * config/t-darwin (gt-darwin.h): Remove as Makefile now handles it.
31277
31278 2010-02-19 Jason Merrill <jason@redhat.com>
31279
31280 PR target/40332
31281 * configure.ac (gcc_cv_as_cfi_advance_working): Check 32-bit advance.
31282 * configure: Likewise.
31283
31284 2010-02-20 Alan Modra <amodra@gmail.com>
31285
31286 PR middle-end/42344
31287 * cgraph.h (cgraph_make_decl_local): Declare.
31288 * cgraph.c (cgraph_make_decl_local): New function.
31289 (cgraph_make_node_local): Use it.
31290 * cgraphunit.c (cgraph_function_versioning): Likewise.
31291 * ipa.c (function_and_variable_visibility): Likewise.
31292
31293 2010-02-19 Jakub Jelinek <jakub@redhat.com>
31294
31295 PR bootstrap/43121
31296 * except.c (sjlj_emit_function_enter): Don't call
31297 add_reg_br_prob_note, instead add REG_BR_PROB note to the last insn
31298 directly.
31299 * rtl.h (add_reg_br_prob_note): Remove prototype.
31300
31301 2010-02-19 Manuel López-Ibáñez <manu@gcc.gnu.org>
31302
31303 PR 41779
31304 * c-common.c (conversion_warning): Remove widening conversions
31305 before checking the conversion of integers to reals.
31306
31307 2010-02-19 Mike Stump <mikestump@comcast.net>
31308
31309 PR middle-end/43125
31310 * c-decl.c (merge_decls): Merge DECL_PRESERVE_P.
31311
31312 PR objc/43061
31313 * cgraphunit.c (process_function_and_variable_attributes): Check
31314 DECL_PRESERVE_P instead of looking up attribute "used".
31315 * ipa-pure-const.c (check_decl): Likewise.
31316 * ipa-reference.c (has_proper_scope_for_analysis): Likewise.
31317 * ipa-type-escape.c (has_proper_scope_for_analysis): Likewise.
31318 * config/sol2.c (solaris_insert_attributes): Set DECL_PRESERVE_P
31319 instead of attribute "used".
31320 * config/sol2-c.c (solaris_pragma_init): Likewise.
31321 (solaris_pragma_fini): Likewise.
31322
31323 2010-02-19 Jakub Jelinek <jakub@redhat.com>
31324
31325 * ipa-struct-reorg.c (make_field_acc_node, gen_cluster, peel_field):
31326 Use XCNEW instead of xcalloc.
31327 (add_access_to_acc_sites, create_new_var_node, add_alloc_site): Use
31328 XNEW instead of xmalloc.
31329 (get_fields): Use XNEWVEC instead of xmalloc.
31330
31331 PR debug/43084
31332 * ipa-struct-reorg.c (add_access_to_acc_sites): For debug stmts don't
31333 populate vars array.
31334 (create_new_general_access): For debug stmts just reset value.
31335 (get_stmt_accesses): For accesses within debug stmts just record them
31336 using add_access_to_acc_sites instead of preventing the peeling or
31337 counting them as accesses.
31338
31339 PR middle-end/42233
31340 * dojump.c (do_jump) <case TRUTH_NOT_EXPR>: Invert priority.
31341
31342 2010-02-19 Richard Guenther <rguenther@suse.de>
31343
31344 PR tree-optimization/42916
31345 * tree-vect-slp.c (vect_slp_analyze_bb): Count only real
31346 instructions.
31347
31348 2010-02-19 Andreas Schwab <schwab@linux-m68k.org>
31349
31350 * configure.ac: Replace all uses of changequote in macro arguments
31351 with proper quoting.
31352
31353 2010-02-19 Jakub Jelinek <jakub@redhat.com>
31354
31355 PR middle-end/42233
31356 * loop-doloop.c (add_test): Adjust do_compare_rtx_and_jump caller.
31357
31358 2010-02-19 Richard Guenther <rguenther@suse.de>
31359
31360 PR tree-optimization/42944
31361 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Massage
31362 test for aliasing with errno.
31363
31364 2010-02-19 Jakub Jelinek <jakub@redhat.com>
31365
31366 PR middle-end/42233
31367 * expr.h (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump,
31368 do_jump_1, do_compare_rtx_and_jump): Add PROB argument.
31369 * dojump.c: Include output.h.
31370 (inv): New inline function.
31371 (jumpifnot, jumpifnot_1, jumpif, jumpif_1, do_jump_1, do_jump,
31372 do_jump_by_parts_greater_rtx, do_jump_by_parts_greater,
31373 do_jump_by_parts_zero_rtx, do_jump_by_parts_equality_rtx,
31374 do_jump_by_parts_equality, do_compare_and_jump): Add PROB
31375 argument, pass it down to other calls.
31376 (do_compare_rtx_and_jump): Likewise. If PROB is not -1,
31377 add REG_BR_PROB note to the conditional jump.
31378 * cfgexpand.c (add_reg_br_prob_note): Removed.
31379 (expand_gimple_cond): Don't call it, add the probability
31380 as last argument to jumpif_1/jumpifnot_1.
31381 * Makefile.in (dojump.o): Depend on output.h.
31382 * builtins.c (expand_errno_check): Adjust do_compare_rtx_and_jump
31383 callers.
31384 * expmed.c (emit_store_flag_force, do_cmp_and_jump): Likewise.
31385 * stmt.c (do_jump_if_equal): Likewise.
31386 * cfgrtl.c (rtl_lv_add_condition_to_bb): Likewise.
31387 * loop-unswitch.c (compare_and_jump_seq): Likewise.
31388 * config/rs6000/rs6000.c (rs6000_aix_emit_builtin_unwind_init):
31389 Likewise.
31390 * optabs.c (expand_doubleword_shift, expand_abs): Likewise.
31391 * expr.c (expand_expr_real_1): Adjust do_jump, jumpifnot and
31392 jumpifnot_1 callers.
31393 (expand_expr_real_2): Adjust jumpifnot_1 and do_compare_rtx_and_jump
31394 callers.
31395 (store_expr): Adjust jumpifnot caller.
31396 (store_constructor): Adjust jumpif caller.
31397
31398 PR middle-end/42233
31399 * gimplify.c (gimple_boolify): For __builtin_expect call
31400 gimple_boolify also on its first argument.
31401
31402 2010-02-18 Uros Bizjak <ubizjak@gmail.com>
31403
31404 * configure.ac (gnu-unique-object): Wrap regexps using [] in
31405 changequote block.
31406 (__stack_chk_fail): Ditto. Remove quadrigraphs.
31407 * configure: Regenerated.
31408
31409 2010-02-18 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
31410
31411 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Call
31412 lang_hooks.types_compatible_p instead of comptypes.
31413
31414 2010-02-18 Sebastian Huber <sebastian.huber@embedded-brains.de>
31415
31416 * config/arm/lib1funcs.asm (__prefer_thumb__): New define.
31417 (udivsi3, aeabi_uidivmod, divsi3, aeabi_idivmod): Use Thumb-1 variant
31418 if __prefer_thumb__ is defined.
31419
31420 2010-02-18 Martin Jambor <mjambor@suse.cz>
31421
31422 PR tree-optimization/43066
31423 * tree-sra.c (build_ref_for_offset_1): Return false on encountering an
31424 array with zero-sized element type.
31425
31426 2010-02-18 Jakub Jelinek <jakub@redhat.com>
31427
31428 * dwarf2out.c (add_var_loc_to_decl): Change last argument to
31429 rtx, allocate struct var_loc_node here and return it to the
31430 caller, and only if it is actually needed.
31431 (dwarf2out_var_location): Adjust add_var_loc_to_decl caller,
31432 move it earlier and return immediately if it returns NULL.
31433
31434 2010-02-17 Mikael Pettersson <mikpe@it.uu.se>
31435
31436 * config/sparc/gas.h: New file. Restore
31437 TARGET_ASM_NAMED_SECTION to its ELF default.
31438 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Do not
31439 check !HAVE_GNU_AS.
31440 * config/sparc/sparc.c (sparc_elf_asm_named_section):
31441 Likewise. Add ATTRIBUTE_UNUSED to prototype.
31442 * config.gcc (sparc*-*-linux*): Include sparc/gas.h
31443 after sparc/sysv4.h.
31444
31445 2010-02-17 Dave Korn <dave.korn.cygwin@gmail.com>
31446
31447 * config/i386/mingw32.h (LIBGCJ_SONAME): Fix cut'n'pasto in DLL name.
31448
31449 2010-02-17 Steven Bosscher <steven@gcc.gnu.org>
31450
31451 * gensupport.c (process_one_cond_exec): Derive name for COND_EXEC
31452 patterns from predicated pattern.
31453
31454 2010-02-17 Uros Bizjak <ubizjak@gmail.com>
31455
31456 PR target/43103
31457 * config/i386/sse.md (xop_vpermil2<mode>3): Use avxmodesuffixf2c
31458 for insn mnemonic suffix.
31459
31460 2010-02-17 Richard Guenther <rguenther@suse.de>
31461
31462 * tree-vrp.c (vrp_visit_phi_node): Restrict SCEV analysis
31463 to loop PHI nodes.
31464
31465 2010-02-17 Jakub Jelinek <jakub@redhat.com>
31466
31467 PR debug/42918
31468 * caller-save.c (save_call_clobbered_regs): If BB ends with
31469 a DEBUG_INSN, move any notes in between last real insn and the last
31470 DEBUG_INSN after the last DEBUG_INSN.
31471
31472 2010-02-16 Joern Rennecke <joern.rennecke@embecosm.com>
31473
31474 * tm.texi (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC):
31475 Fix return type. Fix argument type. Explain meaning of return value.
31476
31477 2010-02-16 Richard Guenther <rguenther@suse.de>
31478
31479 PR tree-optimization/41043
31480 * tree-vrp.c (vrp_var_may_overflow): Only ask SCEV for real loops.
31481 (vrp_visit_assignment_or_call): Do not ask SCEV for regular
31482 statements ...
31483 (vrp_visit_phi_node): ... but only for loop PHI nodes.
31484
31485 2010-02-16 Ira Rosen <irar@il.ibm.com>
31486
31487 PR tree-optimization/43074
31488 * tree-vectorizer.h (VECTORIZABLE_CYCLE_DEF): New.
31489 * tree-vect-loop.c (vect_analyze_loop_operations): Add
31490 vectorizable cycles in hybrid SLP check.
31491 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Likewise.
31492
31493 2010-02-16 Richard Guenther <rguenther@suse.de>
31494
31495 * alias.c (memrefs_conflict_p): Distinguish must-alias from don't know.
31496 (true_dependence): If memrefs_conflict_p computes must-alias
31497 trust it. Move TBAA check after offset-based disambiguation.
31498 (canon_true_dependence): Likewise.
31499
31500 2010-02-16 Alexandre Oliva <aoliva@redhat.com>
31501
31502 * params.def (PARAM_MAX_VARTRACK_SIZE): New.
31503 * doc/invoke.texi: Document it.
31504 * var-tracking.c: Include toplev.h and params.h.
31505 (vt_find_locations): Return bool indicating success. Compute
31506 hash sizes unconditionally. Check new parameter, report.
31507 (variable_tracking_main_1): Check vt_find_locations results and
31508 retry. Renamed from...
31509 (variable_tracking_main): ... this. New wrapper to preserve
31510 flag_var_tracking_assignments.
31511 * Makefile.in (var-tracking.o): Adjust dependencies.
31512
31513 2010-02-16 Jack Howarth <howarth@bromo.med.uc.edu>
31514 Jakub Jelinek <jakub@redhat.com>
31515
31516 PR target/42854
31517 * config/darwin.h (ASM_WEAKEN_DECL): Don't check weak attribute
31518 if weak_import attribute is present.
31519 * config/darwin.c (machopic_select_section): Likewise.
31520
31521 2010-02-15 Joern Rennecke <joern.rennecke@embecosm.com>
31522
31523 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZATION_COST): Document.
31524 (TARGET_VECTORIZE_VECTOR_ALIGNMENT_REACHABLE): Likewise.
31525 (TARGET_VECTORIZE_BUILTIN_VEC_PERM): Likewise.
31526 (TARGET_VECTORIZE_BUILTIN_VEC_PERM_OK): Likewise.
31527
31528 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_CONVERSION): Fix argument
31529 types.
31530
31531 * doc/tm.texi (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION):
31532 Fix argument types.
31533
31534 * doc/tm.texi (TARGET_SCHED_DFA_NEW_CYCLE): Add argument names.
31535 Rewrite text to refer to the names.
31536
31537 2010-02-15 Sebastian Pop <sebastian.pop@amd.com>
31538
31539 * config/i386/i386-builtin-types.def
31540 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT): Declared.
31541 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT): Declared.
31542 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT): Declared.
31543 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT): Declared.
31544 * config/i386/i386.c (enum ix86_builtins): Add IX86_BUILTIN_VPERMIL2PD,
31545 IX86_BUILTIN_VPERMIL2PS, IX86_BUILTIN_VPERMIL2PD256, and
31546 IX86_BUILTIN_VPERMIL2PS256.
31547 (MULTI_ARG_4_DF2_DI_I): Defined.
31548 (MULTI_ARG_4_DF2_DI_I1): Defined.
31549 (MULTI_ARG_4_SF2_SI_I): Defined.
31550 (MULTI_ARG_4_SF2_SI_I1): Defined.
31551 (bdesc_multi_arg): Add __builtin_ia32_vpermil2pd,
31552 __builtin_ia32_vpermil2ps, __builtin_ia32_vpermil2pd256, and
31553 __builtin_ia32_vpermil2ps256.
31554 (ix86_expand_multi_arg_builtin): Handle MULTI_ARG_4_DF2_DI_I,
31555 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
31556 MULTI_ARG_4_SF2_SI_I1. Handle builtins with 4 arguments.
31557 (ix86_expand_args_builtin): Handle MULTI_ARG_4_DF2_DI_I,
31558 MULTI_ARG_4_DF2_DI_I1, MULTI_ARG_4_SF2_SI_I, and
31559 MULTI_ARG_4_SF2_SI_I1. Handle CODE_FOR_xop_vpermil2v2df3,
31560 CODE_FOR_xop_vpermil2v4sf3, CODE_FOR_xop_vpermil2v4df3, and
31561 CODE_FOR_xop_vpermil2v8sf3.
31562 * config/i386/i386.md (UNSPEC_VPERMIL2): Declared.
31563 * config/i386/sse.md (xop_vpermil2<mode>3): New insn pattern.
31564 * config/i386/xopintrin.h (_mm_permute2_pd): New.
31565 (_mm256_permute2_pd): New.
31566 (_mm_permute2_ps): New.
31567 (_mm256_permute2_ps): New.
31568
31569 2010-02-15 Nick Clifton <nickc@redhat.com>
31570
31571 * config/h8300/h8300.c (h8300_push_pop): Use bool type for
31572 boolean parameters. Use emit_jump_insn when emitting a pop
31573 instruction containing a return insn.
31574 (push): Use 'true' rather than '1' as second parameter to F.
31575 (h8300_expand_prologue): Likewise.
31576 Use 'true' and 'false' for boolean parameters to h8300_push_pop.
31577 (h8300_expand_epilogue): Likewise.
31578
31579 2010-02-15 Richard Guenther <rguenther@suse.de>
31580
31581 PR middle-end/43068
31582 * cgraphunit.c (thunk_adjust): Skip adjusting by fixed_offset
31583 if that is zero.
31584
31585 2010-02-15 Nick Clifton <nickc@redhat.com>
31586
31587 * config/mn10300/mn10300.h (FUNCTION_ARG_REGNO_P): Revert previous
31588 delta.
31589
31590 2010-02-14 Marco Poletti <poletti.marco@gmail.com>
31591
31592 * intl.c (fake_ngettext): New function.
31593 * intl.h (fake_ngettext): Declare.
31594 (ngettext): Define macro.
31595 * collect2.c (notice_translated): New function.
31596 (main): Use notice_translated and ngettext.
31597 * collect2.h (notice_translated): Declare.
31598
31599 2010-02-14 Steven Bosscher <steven@gcc.gnu.org>
31600
31601 * reorg.c (delete_computation): Comment fixes.
31602 * caller-save.c (setup_save_areas): Idem.
31603 * sel-sched-dump.c (dump_lv_set): Idem.
31604 * rtl.def: Idem.
31605
31606 2010-02-14 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31607
31608 * config/s390/s390.c (s390_sched_init): New function.
31609 (TARGET_SCHED_INIT): Target hook defined.
31610
31611 2010-02-12 Dave Korn <dave.korn.cygwin@gmail.com>
31612 Jack Howarth <howarth@bromo.med.uc.edu>
31613 Iain Sandoe <iain.sandoe@sandoe-acoustics.co.uk>
31614
31615 PR target/42982
31616 Partial revert of unintended change in fix for PR41605.
31617 * config/darwin.h: Fix typo.
31618 * config/darwin9.h: Same.
31619
31620 2010-02-11 Jakub Jelinek <jakub@redhat.com>
31621
31622 * c-pch.c (pch_init): Clear v.
31623
31624 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
31625
31626 PR middle-end/42930
31627 * graphite-scop-detection.c (graphite_can_represent_scev): Call
31628 graphite_can_represent_init for MULT_EXPR.
31629
31630 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
31631
31632 PR middle-end/42914
31633 PR middle-end/42530
31634 * graphite-sese-to-poly.c (remove_phi): New.
31635 (translate_scalar_reduction_to_array): Call remove_phi.
31636
31637 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
31638
31639 PR middle-end/42771
31640 * graphite-clast-to-gimple.c (gloog): Call rename_sese_parameters.
31641 * graphite-clast-to-gimple.h (gloog): Update declaration.
31642 * graphite-poly.c (new_scop): Clear POLY_SCOP_P.
31643 * graphite-poly.h (struct poly_bb): Add missing comments.
31644 (struct scop): Add poly_scop_p field.
31645 (POLY_SCOP_P): New.
31646 * graphite-sese-to-poly.c (build_poly_scop): Set POLY_SCOP_P.
31647 * graphite.c (graphite_transform_loops): Build the polyhedral
31648 representation for each scop before code generation.
31649 * sese.c (rename_variables_in_operand): Removed.
31650 (rename_variables_in_expr): Return the renamed expression.
31651 (rename_sese_parameters): New.
31652 * sese.h (rename_sese_parameters): Declared.
31653
31654 2010-02-11 Richard Guenther <rguenther@suse.de>
31655
31656 PR tree-optimization/42998
31657 * tree-ssa-pre.c (create_expression_by_pieces): Treat
31658 POINTER_PLUS_EXPR properly.
31659
31660 2010-02-11 Sebastian Pop <sebastian.pop@amd.com>
31661 Changpeng Fang <changpeng.fang@amd.com>
31662
31663 PR middle-end/40886
31664 * tree-ssa-loop-ivopts.c (determine_use_iv_cost_condition): Decrement
31665 the cost of an IV candidate when the IV is used in a test against zero.
31666
31667 * gcc.dg/tree-ssa/ivopts-3.c: New.
31668
31669 2010-02-11 Richard Guenther <rguenther@suse.de>
31670
31671 PR lto/41664
31672 * tree-ssa-alias.c (refs_may_alias_p_1): Canonicalize
31673 pointer-vs-decl case by swapping refs. Handle some cases
31674 of pointer-vs-decl disambiguations more conservatively.
31675 * cfgexpand.c (gimple_expand_cfg): Set gimple_df->in_ssa_p
31676 to false after expanding.
31677
31678 2010-02-11 Richard Guenther <rguenther@suse.de>
31679
31680 PR driver/43021
31681 * gcc.c (process_command): Handle LTO file@offset case more
31682 appropriately.
31683
31684 2010-02-11 Jakub Jelinek <jakub@redhat.com>
31685
31686 * reload1.c (eliminate_regs_1): If insn is DEBUG_INSN, avoid any
31687 modifications outside of the DEBUG_INSN. Accept CLOBBERs inside
31688 of DEBUG_INSNs.
31689 (eliminate_regs_in_insn): Eliminate regs even in DEBUG_INSNs.
31690
31691 * dwarf2out.c (mem_loc_descriptor) <case MEM>: Use DW_OP_deref_size
31692 if MEM's mode size isn't DWARF2_ADDR_SIZE.
31693 (mem_loc_descriptor) <do_scompare>: Allow also VOIDmode arguments.
31694 Optimize eq/ne comparisons when both arguments are known to be
31695 zero-extended.
31696 (mem_loc_descriptor) <do_ucompare>: Allow also VOIDmode arguments.
31697 Don't mask operands unnecessarily if they are known to be already
31698 zero-extended.
31699
31700 2010-02-10 Vladimir Makarov <vmakarov@redhat.com>
31701
31702 * ira-conflicts.c (add_insn_allocno_copies): Use find_reg_note
31703 instead of loop.
31704
31705 2010-02-10 Richard Guenther <rguenther@suse.de>
31706
31707 PR tree-optimization/43017
31708 * tree-vrp.c (vrp_int_const_binop): Trust int_const_binop
31709 for wrapping signed arithmetic.
31710
31711 2010-02-10 Jakub Jelinek <jakub@redhat.com>
31712
31713 PR debug/43010
31714 * dwarf2out.c (retry_incomplete_types): Don't call gen_type_die
31715 if no debug info should be emitted for it.
31716
31717 2010-02-10 Kaz Kojima <kkojima@gcc.gnu.org>
31718
31719 * config/sh/sh.c (find_barrier): Skip call insn with a REG_EH_REGION
31720 note when flag_exceptions is set.
31721
31722 2010-02-10 Duncan Sands <baldrick@free.fr>
31723
31724 * Makefile.in (PLUGIN_HEADERS): Add debug.h.
31725
31726 2010-02-10 Richard Guenther <rguenther@suse.de>
31727
31728 PR c/43007
31729 * tree.c (get_unwidened): Handle constants.
31730 * convert.c (convert_to_integer): Handle TRUNC_DIV_EXPR.
31731
31732 2010-02-10 Martin Jambor <mjambor@suse.cz>
31733
31734 PR lto/42985
31735 * ipa-prop.c (ipa_update_after_lto_read): Count parameters and
31736 check for variable argument counts independently.
31737
31738 2010-02-10 Christian Bruel <christian.bruel@st.com>
31739
31740 PR target/42841
31741 * config/sh/sh.c (find_barrier): Increase length for non delayed
31742 conditional branches.
31743
31744 2010-02-10 Christian Bruel <christian.bruel@st.com>
31745
31746 * config/sh/sh.c (find_barrier): Don't emit a CP inside the GP setting.
31747
31748 2010-02-10 Jakub Jelinek <jakub@redhat.com>
31749
31750 * builtins.c (set_builtin_user_assembler_name): Also handle
31751 ffs if int is smaller than word.
31752
31753 2010-02-09 Vladimir Makarov <vmakarov@redhat.com>
31754
31755 PR middle-end/42973
31756 * ira-conflicts.c (get_dup): Remove.
31757 (process_reg_shuffles): Add new parameter. Use it as an
31758 additional guard for copy generation.
31759 (add_insn_allocno_copies): Rewrite.
31760
31761 2010-02-09 Alexander Monakov <amonakov@ispras.ru>
31762
31763 * common.opt (fsched2-use-traces): Preserved for backward
31764 compatibility.
31765 * doc/invoke.texi: Remove the documentation about option
31766 -fsched2-use-traces.
31767 * sched-rgn.c (rest_of_handle_sched2): Remove usage of
31768 flag_sched2_use_traces.
31769 * opts.c (common_handle_option): Add OPT_fsched2_use_traces to
31770 the backward compatibility flag section.
31771
31772 2010-02-09 Richard Guenther <rguenther@suse.de>
31773
31774 PR tree-optimization/43008
31775 * tree-ssa-structalias.c (handle_lhs_call): Pass in the fndecl,
31776 make HEAP variables initialized from global memory if they
31777 are not known builtin functions.
31778 (find_func_aliases): Adjust.
31779
31780 2010-02-09 Richard Guenther <rguenther@suse.de>
31781
31782 PR tree-optimization/43000
31783 * tree-vrp.c (vrp_int_const_binop): Only handle unsigned
31784 arithmetic manually.
31785
31786 2010-02-08 Jakub Jelinek <jakub@redhat.com>
31787
31788 PR tree-optimization/42931
31789 * tree-loop-linear.c (try_interchange_loops): Don't call
31790 double_int_mul if estimated_loop_iterations failed.
31791
31792 2010-02-08 Martin Jambor <mjambor@suse.cz>
31793
31794 PR middle-end/42898
31795 * tree-sra.c (build_accesses_from_assign): Do not mark in
31796 should_scalarize_away_bitmap if stmt has volatile ops.
31797 (sra_modify_assign): Do not process assigns piecemeal if if stmt
31798 has volatile ops.
31799
31800 2010-02-08 Joern Rennecke <joern.rennecke@embecosm.com>
31801
31802 * doc/tm.texi (TARGET_UNWIND_WORD_MODE): Document.
31803
31804 2010-02-07 Adam Nemet <adambnmet@gmail.com>
31805
31806 * config/mips/mips.md (*<optab>_trunc<mode>_exts): Fix comment
31807 before the pattern.
31808
31809 2010-02-07 Andrew Pinski <pinskia@gmail.com>
31810
31811 PR middle-end/42946
31812 * df-core.c (df_finish_pass): Change type of saved_flags to int.
31813
31814 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
31815
31816 PR middle-end/42988
31817 * graphite-dependences.c (dependence_polyhedron): Set PDDR_KIND
31818 to unknown_dependence.
31819 (graphite_legal_transform_dr): Handle the unknown_dependence.
31820 (graphite_carried_dependence_level_k): Same.
31821
31822 2010-02-07 Sebastian Pop <sebastian.pop@amd.com>
31823
31824 * ChangeLog.graphite: Remove testsuite/ or gcc/testsuite/.
31825
31826 2010-02-07 Richard Guenther <rguenther@suse.de>
31827
31828 PR middle-end/42991
31829 * expr.c (get_inner_reference): Always initialize *pbitsize.
31830
31831 2010-02-07 Richard Guenther <rguenther@suse.de>
31832
31833 PR middle-end/42956
31834 * gimplify.c (gimple_fold_indirect_ref): Avoid generating
31835 new ARRAY_REFs on variable size element or minimal index arrays.
31836 Complete.
31837 * tree-ssa-loop-ivopts.c (find_interesting_uses_address): Use
31838 gimple_fold_indirect_ref.
31839
31840 2010-02-06 Richard Earnshaw <rearnsha@arm.com>
31841
31842 PR target/42957
31843 * arm.c (arm_override_options): Just return if the user has specified
31844 an invalid fpu name.
31845
31846 2010-02-03 Jason Merrill <jason@redhat.com>
31847
31848 PR c++/42870
31849 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Call
31850 i386_pe_maybe_record_exported_symbol.
31851
31852 2010-02-05 Steve Ellcey <sje@cup.hp.com>
31853
31854 PR target/42924
31855 * config/pa/pa.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
31856 (pa_delegitimize_address): New function.
31857
31858 2010-02-05 Ozkan Sezer <sezeroz@gmail.com>
31859
31860 * config/i386/msformat-c.c (ms_printf_length_specs): Set the
31861 scalar_identity_flag for the size_t/ptrdiff_t %Id and %Iu specs.
31862
31863 2010-02-05 Richard Guenther <rguenther@suse.de>
31864
31865 PR lto/42762
31866 * lto-streamer-in.c (get_resolution): Deal with references
31867 to undefined functions.
31868
31869 2010-02-05 Richard Guenther <rguenther@suse.de>
31870
31871 * tree-ssa-ccp.c (get_symbol_constant_value): Strip all conversions.
31872 (fold_const_aggregate_ref): Likewise.
31873 (ccp_fold_stmt): Substitute loads.
31874 (maybe_fold_reference): Verify types before substituting.
31875 Unshare properly.
31876 (fold_gimple_assign): Unshare properly.
31877 (fold_stmt_1): Insert conversion if necessary before replacing the RHS.
31878
31879 2010-02-05 Nathan Froyd <froydnj@codesourcery.com>
31880
31881 * config/rs6000/rs6000.c (rs6000_override_options): Invert check
31882 for rs6000_gen_cell_microcode.
31883
31884 2010-02-04 Richard Guenther <rguenther@suse.de>
31885
31886 PR rtl-optimization/42952
31887 * dse.c (const_or_frame_p): Remove MEM handling.
31888
31889 2010-02-04 Nick Clifton <nickc@redhat.com>
31890
31891 * config/mn10300/mn10300.c (TARGET_ASM_OUTPUT_MI_THUNK): Define.
31892 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
31893 (function_arg): Use NULL_RTX and FIRST_ARGUMENT_REGNUM.
31894 (mn10300_asm_output_mi_thunk): New function.
31895 (mn10300_can_output_mu_thunk): New function.
31896 * config/mn10300/mn10300.h (FIRST_ARGUMENT_REGNUM): Define.
31897 (FUNCTION_ARG_REGNO_P): Fix comment. Accept d0 and d1.
31898 (FUNCTION_ARG): Delete incorrect comment.
31899
31900 2010-02-03 Jason Merrill <jason@redhat.com>
31901
31902 PR c++/40138
31903 * fold-const.c (operand_equal_p): Handle erroneous types.
31904
31905 2010-02-03 Kaushik Phatak <kaushik.phatak@kpitcummins.com>
31906
31907 * config/h8300/h8300.md (can_delay): Fix attibute condition.
31908
31909 2010-02-03 Vladimir Makarov <vmakarov@redhat.com>
31910
31911 PR rtl-optimization/42941
31912 * sched-deps.c (setup_insn_reg_pressure_info): Use xcalloc instead
31913 of xmalloc.
31914
31915 2010-02-03 Jason Merrill <jason@redhat.com>
31916
31917 PR c++/35652
31918 * builtins.c (c_strlen): Use EXPR_LOCATION in diagnostics.
31919
31920 2010-02-03 Alexandre Oliva <aoliva@redhat.com>
31921
31922 PR debug/42896
31923 * cselib.h (struct cselib_val_struct): Add uid. Rename value to hash.
31924 (cselib_reset_table): Renamed from...
31925 (cselib_reset_table_with_next_value): ... this.
31926 (cselib_get_next_uid): Renamed from...
31927 (cselib_get_next_unknown_value): ... this.
31928 * cselib.c (next_uid): Renamed from...
31929 (next_unknown_value): ... this.
31930 (cselib_clear_table): Adjust.
31931 (cselib_reset_table): Adjust. Renamed from...
31932 (cselib_reset_table_with_next_value): ... this.
31933 (cselib_get_next_uid): Adjust. Renamed from...
31934 (cselib_get_next_unknown_value): ... this.
31935 (get_value_hash): Use hash.
31936 (cselib_hash_rtx): Likewise.
31937 (new_cselib_val): Adjust. Set and dump uid.
31938 (cselib_lookup_mem): Pass next_uid as hash.
31939 (cselib_subst_to_values): Likewise.
31940 (cselib_log_lookup): Dump uid.
31941 (cselib_lookup): Pass next_uid as hash. Adjust.
31942 (cselib_process_insn): Adjust.
31943 (cselib_init): Initialize next_uid.
31944 (cselib_finish): Adjust.
31945 (dump_cselib_table): Likewise.
31946 * dse.c (canon_address): Dump value uid.
31947 * print-rtl.c (print_rtx): Print value uid.
31948 * var-tracking.c (VARIABLE_HASH_VAL): Dropped.
31949 (dvuid): New type.
31950 (dv_uid): New function, sort of renamed from...
31951 (dv_htab_hash): ... this, reimplemented in terms of it and...
31952 (dv_uid2hash): ... this. New.
31953 (variable_htab_eq): Drop excess assertions.
31954 (tie_break_pointers): Removed.
31955 (canon_value_cmp): Compare uids.
31956 (variable_post_merge_New_vals): Print uids.
31957 (vt_add_function_parameters): Adjust.
31958 (vt_initialize): Reset table. Adjust.
31959
31960 2010-02-03 Richard Guenther <rguenther@suse.de>
31961
31962 PR tree-optimization/42944
31963 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle calloc.
31964 (call_may_clobber_ref_p_1): Likewise. Properly handle
31965 malloc and calloc clobbering errno.
31966
31967 2010-02-03 Steven Bosscher <steven@gcc.gnu.org>
31968
31969 * doc/invoke.texi: Fix name of sched1 dump.
31970
31971 * opts.c (decode_options): Set flag_tree_switch_conversion
31972 only conditionally on optimize >= 2.
31973
31974 * gcse.c: Assorted comment fixes in pass description.
31975
31976 2010-02-03 Anthony Green <green@moxielogic.com>
31977
31978 * config/moxie/moxie.c (moxie_asm_trampoline_template): Introduce
31979 nop padding in order to maintain alignment of storage location of
31980 target function address.
31981 (moxie_trampoline_init): Store target function address at newly
31982 aligned location.
31983 * config/moxie/moxie.h (TRAMPOLINE_ALIGNMENT): Increase alignment
31984 to 32.
31985 (TRAMPOLINE_SIZE): Increase size by 2 bytes for alignment padding.
31986
31987 2010-02-03 Richard Guenther <rguenther@suse.de>
31988
31989 PR middle-end/42927
31990 * tree-cfg.c (verify_gimple_assign_binary): Fix shift verification.
31991
31992 2010-02-03 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31993
31994 * config.gcc: Reenable check for obsolete targets.
31995 Obsolete alpha*-dec-osf4*, alpha*-dec-osf5.0*, mips-sgi-irix5*,
31996 mips-sgi-irix6.[0-4]*.
31997
31998 2010-02-02 Nick Clifton <nickc@redhat.com>
31999
32000 * config/rx/rx.c (rx_is_legitimate_constant): Treat a maximum
32001 constant size of 4 as being the same as 0.
32002 * doc/invoke.texi (RX Options): Document that -mmax-constant-size
32003 can take values in the range 0..4.
32004
32005 2010-02-02 Jack Howarth <howarth@bromo.med.uc.edu>
32006
32007 PR java/41991
32008 * unwind-dw2-fde-darwin.c: Re-export _Unwind_FindEnclosingFunction()
32009 as _darwin10_Unwind_FindEnclosingFunction().
32010 * libgcc-libsystem.ver: New.
32011
32012 2010-02-01 Vladimir Makarov <vmakarov@redhat.com>
32013
32014 PR target/41399
32015 * sched-deps.c (sched_analyze_insn): Ignore fixed registers for
32016 implicitly set registers.
32017
32018 2010-02-01 Richard Earnshaw <rearnsha@arm.com>
32019
32020 * arm.c (FL_FOR_ARCH_7A): is also a superset of ARMv6K.
32021 (arm_override_options): Allow automatic selection of the thread
32022 pointer register if thumb2.
32023 (legitimize_pic_address): Improve code sequences for Thumb2.
32024 (arm_call_tls_get_addr): Likewise.
32025 (legitimize_tls_address): Likewise.
32026 * arm.md (pic_load_addr_arm): Delete. Replace with ...
32027 (pic_load_addr_32bit): ... this. New named pattern.
32028 * thumb2.md (pic_load_addr_thumb2): Delete.
32029 (pic_load_dot_plus_four): Delete.
32030 (tls_load_dot_plus_four): New named pattern.
32031
32032 2010-02-01 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32033
32034 PR libgomp/29986
32035 * doc/install.texi (Specific): Add sparc-sun-solaris2.10 entry.
32036 Document fix for TLS bug.
32037
32038 2010-01-31 Richard Guenther <rguenther@suse.de>
32039
32040 * tree-sra.c (ptr_parm_has_direct_uses): Rewrite to be
32041 conservatively correct.
32042
32043 2010-01-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32044
32045 PR target/42850
32046 Revert:
32047 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
32048
32049 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
32050
32051 2010-01-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
32052
32053 * doc/install.texi: Update recommended GMP/MPFR/MPC versions.
32054
32055 2010-01-31 Kai Tietz <kai.tietz@onevision.com>
32056
32057 * config.gcc: Adjust order of makefile fragments for mingw targets.
32058
32059 2010-01-31 Richard Guenther <rguenther@suse.de>
32060
32061 PR middle-end/42898
32062 * gimplify.c (gimplify_init_constructor): For volatile LHS
32063 initialize a temporary.
32064
32065 2010-01-31 Matthias Klose <doko@ubuntu.com>
32066
32067 * configure.ac: Fix __stack_chk_fail check for cross builds configured
32068 --with-headers
32069 * configure: Regenerate.
32070
32071 2010-01-29 Eric Botcazou <ebotcazou@adacore.com>
32072
32073 * tree-ssa-alias.c (same_type_for_tbaa): Return -1 if the types have
32074 the same alias set and their sizes different constantness.
32075 (aliasing_component_refs_p): Revert 2009-10-24 change.
32076
32077 2010-01-29 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32078
32079 * config/sparc/sparc.c (sparc_elf_asm_named_section): Declare decl
32080 unused.
32081
32082 2010-01-29 Richard Guenther <rguenther@suse.de>
32083
32084 * tree-ssa-ccp.c (ccp_fold_stmt): Unshare values we substitute.
32085 Assert we successfully updated the call.
32086
32087 2010-01-29 Jakub Jelinek <jakub@redhat.com>
32088
32089 PR rtl-optimization/42889
32090 * df.h (df_set_bb_dirty_nonlr): New prototype.
32091 * df-core.c (df_set_bb_dirty_nonlr): New function.
32092 * df-scan.c (df_insn_rescan): Call it instead of
32093 df_set_bb_dirty for DEBUG_INSNs.
32094
32095 2010-01-29 Richard Guenther <rguenther@suse.de>
32096
32097 PR middle-end/37448
32098 * ipa-inline.c (cgraph_decide_inlining_incrementally): Avoid
32099 quadratic behavior in most cases.
32100
32101 2010-01-28 Uros Bizjak <ubizjak@gmail.com>
32102
32103 PR target/42891
32104 * config/i386/i386.c (ix86_expand_int_movcc): Convert tmp to SImode
32105 in the call to gen_x86_movsicc_0_m1.
32106
32107 2010-01-28 Richard Guenther <rguenther@suse.de>
32108
32109 PR tree-optimization/42871
32110 * tree-ssa-pre.c (phi_translate_set): Make sure to retain leaders.
32111
32112 2010-01-28 Richard Guenther <rguenther@suse.de>
32113
32114 * tree-ssa-ccp.c (ccp_fold_stmt): Fold calls and propagate
32115 into call arguments.
32116
32117 2010-01-28 Richard Guenther <rguenther@suse.de>
32118
32119 PR middle-end/42883
32120 * tree-cfgcleanup.c (remove_forwarder_block): Do not remove
32121 the forwarder if the destination is an EH landing pad.
32122
32123 2010-01-28 Razya Ladelsky <razya@il.ibm.com>
32124
32125 * tree-parloops.c (transform_to_exit_first_loop): Update the basic
32126 block list passed to gimple_duplicate_sese_tail.
32127 (parallelize_loops): Avoid parallelization when the function
32128 has_nonlocal_label.
32129 Avoid parallelization when the preheader is IRREDUCIBLE.
32130 Try to optimize when estimated_loop_iterations_int is unresolved.
32131 Add the loop's location to the dump file.
32132 * tree-cfg.c (add_phi_args_after_redirect): Remove.
32133 (gimple_duplicate_sese_tail): Remove the check for the latch.
32134 Redirect nexits to the exit block.
32135 Remove handling of the incoming edges to the latch.
32136 Redirect the backedge from the copied latch to the exit bb.
32137
32138 2010-01-28 Michael Matz <matz@suse.de>
32139
32140 PR target/42881
32141 * config/i386/i386.c (ix86_expand_vector_init_duplicate):
32142 Wrap force_reg into a sequence, emit it before user.
32143
32144 2010-01-28 Stephen Thomas <stephen.thomas@arm.com>
32145
32146 * config/arm/arm.md (bswapsi2): Add support for bswapsi2.
32147 (arm_rev): New.
32148 (arm_legacy_rev): Likewise.
32149 (thumb_legacy_rev): Likewise.
32150
32151 2010-01-27 Jakub Jelinek <jakub@redhat.com>
32152
32153 * dwarf2out.c (mem_loc_descriptor): Remove special casing of
32154 CONSTANT_POOL_ADDRESS_P SYMBOL_REFs. If for MEM recursive call
32155 on MEM's address failed, try avoid_constant_pool_reference and
32156 recurse if it returned something different.
32157 (loc_descriptor): If for MEM mem_loc_descriptor failed on the
32158 address, try avoid_constant_pool_reference and recurse if it
32159 returned something different.
32160 (dw_loc_list_1): If for MEM mem_loc_descriptor failed on the
32161 address and avoid_constant_pool_reference returned something
32162 different, don't set have_address.
32163
32164 2010-01-27 Alexandre Oliva <aoliva@redhat.com>
32165
32166 PR debug/42861
32167 * var-tracking.c (val_store): Add modified argument, obey it.
32168 Adjust callers.
32169 (count_uses): Move down logging of main.
32170 (compute_bb_dataflow): Use val_store for MO_VAL_USEs that
32171 don't need resolution.
32172 (emit_notes_in_bb): Likewise.
32173
32174 2010-01-27 Richard Guenther <rguenther@suse.de>
32175
32176 PR middle-end/42878
32177 * tree-inline.c (remap_decl): Delay remapping of SSA name
32178 default definitions until we need them.
32179
32180 2010-01-27 Jakub Jelinek <jakub@redhat.com>
32181
32182 * config/rs6000/rs6000.c (TARGET_DELEGITIMIZE_ADDRESS): Redefine.
32183 (rs6000_delegitimize_address): New function.
32184
32185 * config/s390/s390.c (s390_delegitimize_address): Call
32186 delegitimize_mem_from_attrs.
32187
32188 PR middle-end/42874
32189 * tree-inline.c (cannot_copy_type_1): Removed.
32190 (copy_forbidden): Don't forbid copying of functions containing
32191 records/unions with variable length fields.
32192
32193 2010-01-27 Christian Bruel <christian.bruel@st.com>
32194
32195 Revert:
32196 PR target/42841
32197 * config/sh/sh.c (find_barrier): Increase length for non delayed
32198 conditional branches.
32199
32200 2010-01-27 Matthias Klose <doko@ubuntu.com>
32201
32202 * configure.ac (gnu-unique-object): Fix ldd version check.
32203 * configure: Regenerate.
32204
32205 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32206
32207 * config/sparc/sparc.c (sparc_elf_asm_named_section): Test for
32208 HAVE_GNU_AS value.
32209 * config/sparc/sysv4.h [HAVE_GNU_AS] (TARGET_ASM_NAMED_SECTION):
32210 Test for HAVE_GNU_AS value.
32211
32212 2010-01-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
32213
32214 * config.gcc (mips-sgi-irix[56]*): Set use_gcc_stdint.
32215 * config/mips/iris.h (INT8_TYPE, INT16_TYPE, INT32_TYPE,
32216 INT64_TYPE): Define.
32217 (UINT8_TYPE, UINT16_TYPE, UINT32_TYPE, UINT64_TYPE): Define.
32218 (INT_LEAST8_TYPE, INT_LEAST16_TYPE, INT_LEAST32_TYPE,
32219 INT_LEAST64_TYPE): Define.
32220 (UINT_LEAST8_TYPE, UINT_LEAST16_TYPE, UINT_LEAST32_TYPE,
32221 UINT_LEAST64_TYPE): Define.
32222 (INT_FAST8_TYPE, INT_FAST16_TYPE, INT_FAST32_TYPE)
32223 INT_FAST64_TYPE): Define.
32224 (UINT_FAST8_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE,
32225 UINT_FAST64_TYPE): Define.
32226 (INTMAX_TYPE, UINTMAX_TYPE): Define.
32227 (INTPTR_TYPE, UINTPTR_TYPE): Define.
32228 (SIG_ATOMIC_TYPE): Define.
32229
32230 2010-01-26 Richard Guenther <rguenther@suse.de>
32231
32232 * df-scan.c (df_scan_set_bb_info): Remove assert.
32233 (df_insn_rescan_debug_internal): Merge asserts.
32234 (df_install_ref): Likewise.
32235 (df_mark_reg): Use bitmap_set_range.
32236 (df_hard_reg_used_p): Remove assert.
32237 (df_hard_reg_used_count): Likewise.
32238
32239 2010-01-26 Richard Guenther <rguenther@suse.de>
32240
32241 PR rtl-optimization/42685
32242 * web.c (web_main): Ignore DEBUG_INSNs.
32243
32244 2010-01-26 Joern Rennecke <amylaar@spamcop.net>
32245
32246 * doc/tm.texi (TARGET_HANDLE_C_OPTION): Explain arguments.
32247
32248 (TARGET_RESOLVE_OVERLOADED_BUILTIN): Add loc parameter.
32249 Fix types of fndecl and arglist parameters.
32250
32251 2010-01-26 Richard Guenther <rguenther@suse.de>
32252
32253 PR middle-end/42806
32254 * tree-eh.c (unsplit_eh): Skip debug insns.
32255
32256 2010-01-26 Richard Guenther <rguenther@suse.de>
32257
32258 PR tree-optimization/42250
32259 * ipa-type-escape.c (type_escape_execute): Do not analyze clones.
32260
32261 2010-01-26 Jakub Jelinek <jakub@redhat.com>
32262
32263 PR fortran/42866
32264 * omp-low.c (expand_omp_sections): Only use single_pred if
32265 l2_bb is single_pred_p.
32266
32267 2010-01-25 Christian Bruel <christian.bruel@st.com>
32268
32269 PR target/42841
32270 * config/sh/sh.c (find_barrier): Increase length for non delayed
32271 conditional branches.
32272 (sh_insn_length_adjustment): Use JUMP_TABLE_DATA_P.
32273
32274 2010-01-24 David S. Miller <davem@davemloft.net>
32275
32276 * config/sparc/sysv4.h (TARGET_ASM_NAMED_SECTION): Only
32277 define if not using GAS.
32278 * config/sparc/sparc.c (sparc_elf_asm_named_section):
32279 Likewise. Delete SECTION_MERGE code, which is only applicable
32280 when using GAS.
32281
32282 2010-01-24 Mark Mitchell <mark@codesourcery.com>
32283
32284 PR c++/42748
32285 * config/arm/arm.c (arm_mangle_type): Do not warn about changes to
32286 mangling of va_list in system headers.
32287
32288 2010-01-23 Toon Moene <toon@moene.org>
32289
32290 * tree-predcom.c (combine_chains): Return NULL, not false.
32291
32292 2010-01-23 Joern Rennecke <amylaar@spamcop.net>
32293
32294 * tree-loop-distribution.c (distribute_loop): Fix declaration and
32295 initialization of variable res to agree with return type.
32296
32297 2010-01-22 Steve Ellcey <sje@cup.hp.com>
32298
32299 * Makefile.in (tree-sra.o): Add $(EXPR_H) dependency.
32300 * tree-sra.c: Add include of expr.h.
32301
32302 2010-01-22 Jakub Jelinek <jakub@redhat.com>
32303
32304 * tree-into-ssa.c (maybe_register_def): If stmt ends the bb,
32305 insert the debug stmt on the single non-EH edge from the stmt.
32306
32307 2010-01-22 Richard Henderson <rth@redhat.com>
32308
32309 PR tree-opt/42833
32310 * tree-sra.c (sra_modify_assign): Delay re-gimplification of
32311 the RHS until after generate_subtree_copies has insertted its
32312 code before the current statement.
32313
32314 2010-01-22 Joern Rennecke <amylaar@spamcop.net>
32315
32316 * doc/tm.texi (TARGET_MIN_DIVISIONS_FOR_RECIP_MUL): Fix return type.
32317
32318 * gcc-plugin.h (plugin_init): Use "C" likage for c++.
32319
32320 2010-01-21 Martin Jambor <mjambor@suse.cz>
32321
32322 PR tree-optimization/42585
32323 * tree-sra.c (struct access): New field grp_total_scalarization.
32324 (dump_access): Dump the new field.
32325 (should_scalarize_away_bitmap): New variable.
32326 (cannot_scalarize_away_bitmap): Likewise.
32327 (sra_initialize): Allocate new bitmaps.
32328 (sra_deinitialize): Free new bitmaps.
32329 (create_access_1): New function.
32330 (create_access): Parts moved to create_access_1.
32331 (type_consists_of_records_p): New function.
32332 (completely_scalarize_record): Likewise.
32333 (build_access_from_expr): Set bit in cannot_scalarize_away_bitmap.
32334 (build_accesses_from_assign): Set bits in should_scalarize_away_bitmap.
32335 (sort_and_splice_var_accesses): Hint groups with a total_scalarization
32336 access.
32337 (analyze_all_variable_accesses): Completely scalarize small eligible
32338 records.
32339
32340 2010-01-21 Martin Jambor <mjambor@suse.cz>
32341
32342 * tree-sra.c (build_ref_for_offset_1): Allow for zero size fields.
32343
32344 2010-01-21 Andrew Haley <aph@redhat.com>
32345
32346 * gcc.c (process_command): Move lang_specific_driver before
32347 setting cc_libexec_prefix.
32348
32349 2010-01-21 Richard Guenther <rguenther@suse.de>
32350
32351 PR middle-end/19988
32352 * fold-const.c (negate_expr_p): Pretend only negative
32353 real constants are easily negatable.
32354
32355 2010-01-20 Janis Johnson <janis187@us.ibm.com>
32356 Jason Merrill <jason@redhat.com>
32357
32358 * tree.h (TYPE_TRANSPARENT_UNION): Replace with ...
32359 (TYPE_TRANSPARENT_AGGR): this, for union and record.
32360 * calls.c (initialize argument_information): Handle it.
32361 * c-common.c (handle_transparent_union_attribute): Use new name.
32362 * c-decl.c (finish_struct): Ditto.
32363 * c-typeck.c (type_lists_compatible_p): Ditto.
32364 (convert_for_assignment): Use new name and also handle record.
32365 * function.c (aggregate_value_p): Handle it.
32366 (pass_by_reference): Ditto.
32367 (assign_parm_data_types): Ditto.
32368 * print-tree.c (print_node): Ditto.
32369 * lto-streamer-in.c (unpack_ts_type_value_fields): Ditto.
32370 * lto-streamer-out.c (pack_ts_type_value_fields): Ditto.
32371 * tree.c (first_field): New fn.
32372
32373 2010-01-21 Dave Korn <dave.korn.cygwin@gmail.com>
32374
32375 PR target/42818
32376 * config/i386/cygwin.h (CXX_WRAP_SPEC_LIST): Always apply wrappers,
32377 even when linking statically, for now.
32378
32379 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
32380
32381 PR debug/42715
32382 * var-tracking.c (use_type): Choose MO_VAL_SET for REGs set
32383 without a cselib val.
32384 (count_uses): Accept MO_VAL_SET with no val on stores.
32385 (add_stores): Likewise.
32386
32387 2010-01-20 Jakub Jelinek <jakub@redhat.com>
32388
32389 * var-tracking.c (check_value_val): Add a compile time assertion.
32390 (dv_is_decl_p): Simplify.
32391 (dv_as_decl, dv_as_value, dv_from_decl, dv_from_value): Only use
32392 gcc_assert if ENABLE_CHECKING.
32393
32394 2010-01-20 Alexandre Oliva <aoliva@redhat.com>
32395
32396 PR debug/42782
32397 * var-tracking.c: Include tree-flow.h.
32398 (mem_dies_at_call): New.
32399 (dataflow_set_preserve_mem_locs): Use it.
32400 (dataflow_set_remove_mem_locs): Likewise.
32401 (dump_var): Renamed from dump_variable. Adjust all callers.
32402 (dump_var_slot): Renamed from dump_variable_slot. Likewise.
32403 * Makefile.in (var-tracking.o): Adjust deps.
32404
32405 2010-01-20 Joern Rennecke <amylaar@spamcop.net>
32406
32407 * doc/tm.texi (TARGET_SCHED_SET_SCHED_FLAGS): Fix argument list.
32408
32409 2010-01-20 Richard Guenther <rguenther@suse.de>
32410
32411 PR tree-optimization/42717
32412 * tree-ssa-dce.c (get_live_post_dom): Remove.
32413 (forward_edge_to_pdom): Take an arbitrary edge to copy
32414 degenerate PHI args from.
32415 (remove_dead_stmt): Use the first post-dominator even if it
32416 does not contain live statements as redirection destination.
32417
32418 2010-01-20 Richard Guenther <rguenther@suse.de>
32419
32420 * tree-inline.c (estimate_num_insns): Handle EH builtins.
32421
32422 2010-01-20 Jakub Jelinek <jakub@redhat.com>
32423
32424 * sel-sched.c (create_speculation_check): Remove set but not used
32425 variable twin.
32426 (try_transformation_cache): Remove set but not used variable ds.
32427 (calculate_privileged_insns): Remove set but not used variables
32428 cur_insn and min_spec_insn.
32429 (find_best_expr): Remove set but not used variable avail_n.
32430 * tree-predcom.c (base_names_in_chain_on): Remove set but not used
32431 variable e.
32432 * cgraphunit.c (assemble_thunk): Remove set but not used variable
32433 false_label.
32434 * haifa-sched.c (remove_notes): Remove set but not used variable prev.
32435 * graphite-clast-to-gimple.c (gloog): Remove set but not used variable
32436 new_scop_exit_edge.
32437
32438 2010-01-20 Felyza Wishbringer <fwishbringer@gmail.com>
32439
32440 PR bootstrap/42786
32441 * config.gcc (i[34567]86-*-*): Fix handling of athlon64 and athlon-fx
32442 cpu types. Add support for *-sse3 cpu types.
32443 (x86_64-*-*): Ditto.
32444
32445 2010-01-20 Jakub Jelinek <jakub@redhat.com>
32446
32447 PR middle-end/42803
32448 * varasm.c (narrowing_initializer_constant_valid_p): Add CACHE
32449 argument, call initializer_constant_valid_p_1 instead of
32450 initializer_constant_valid_p, pass CACHE to it, return NULL
32451 immediately if first call returns NULL.
32452 (initializer_constant_valid_p_1): New function.
32453 (initializer_constant_valid_p): Use it.
32454
32455 2010-01-20 Thomas Quinot <quinot@adacore.com>
32456
32457 * tree.def (PLACEHOLDER_EXPR): Fix comment.
32458
32459 2010-01-20 Jakub Jelinek <jakub@redhat.com>
32460
32461 * dwarf2out.c (mem_loc_descriptor): Use DW_OP_mod for UMOD instead
32462 of MOD, handle MOD using DW_OP_{over,over,div,mul,minus}.
32463 (loc_list_from_tree): Don't handle unsigned division. Handle
32464 signed modulo using DW_OP_{over,over,div,mul,minus}.
32465 * unwind-dw2.c (execute_stack_op): Handle DW_OP_mod using unsigned
32466 modulo instead of signed.
32467
32468 2010-01-20 DJ Delorie <dj@redhat.com>
32469
32470 * config/h8300/h8300.c (F): Add "in_epilogue" flag.
32471 (Fpa): Pass it
32472 (h8300_emit_stack_adjustment): Propogate it.
32473 (push): Pass it.
32474 (h8300_expand_prologue): Likewise.
32475 (h8300_expand_epilogue): Likewise.
32476
32477 2010-01-19 Michael Matz <matz@suse.de>
32478
32479 PR tree-optimization/41783
32480 * tree-data-ref.c (toplevel): Include flags.h.
32481 (dump_data_dependence_relation): Also dump the inputs if the
32482 result will be unknown.
32483 (split_constant_offset_1): Look through some conversions.
32484 * tree-predcom.c (determine_roots_comp): Restart a new chain if
32485 the offset from last element is too large.
32486 (ref_at_iteration): Deal also with MISALIGNED_INDIRECT_REF.
32487 (reassociate_to_the_same_stmt): Handle vector registers.
32488 * tree-vect-data-refs.c (vect_equal_offsets): Handle unary operations
32489 (e.g. conversions).
32490 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop): Add
32491 wide_prolog_niters argument, emit widening instructions.
32492 (vect_do_peeling_for_alignment): Adjust caller, use widened
32493 variant of the iteration cound.
32494 * Makefile.in (tree-data-ref.o): Add $(FLAGS_H).
32495
32496 2010-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32497
32498 PR target/38697
32499 * config/arm/neon-testgen.m (emit_automatics): New parameter
32500 features. Adjust for Fixed_return_reg feature.
32501 (test_intrinsic): Call emit_automatics with new feature.
32502 * config/arm/neon.ml: Update copyright years.
32503 (features): New Fixed_return_reg feature.
32504 (ops): Update feature for Vget_low.
32505
32506 2010-01-19 Jakub Jelinek <jakub@redhat.com>
32507
32508 PR tree-optimization/42719
32509 * tree-outof-ssa.c (trivially_conflicts_p): Don't consider debug
32510 stmt uses.
32511
32512 PR debug/42728
32513 * fwprop.c (all_uses_available_at): Return false if def_set dest
32514 is a REG that is used in def_insn.
32515
32516 2010-01-19 Joern Rennecke <amylaar@spamcop.net>
32517
32518 * doc/tm.texi (TARGET_FIXED_CONDITION_CODE_REGS): Add argument names.
32519
32520 (TARGET_CC_MODES_COMPATIBLE): Put return value in braces.
32521 Add argument names.
32522
32523 (TARGET_SCHED_INIT_SCHED_CONTEXT): Clarify language.
32524
32525 * target.h (struct gcc_target) <secondary_reload>: Change type
32526 of last argument to secondary_reload_info *.
32527
32528 2010-01-18 Uros Bizjak <ubizjak@gmail.com>
32529
32530 PR target/42774
32531 * config/alpha/predicates.md (aligned_memory_operand): Return 0 for
32532 memory references with unaligned offsets. Remove CQImode handling.
32533 (unaligned_memory_operand): Return 1 for memory references with
32534 unaligned offsets. Remove CQImode handling.
32535
32536 2010-01-18 Richard Guenther <rguenther@suse.de>
32537
32538 PR middle-end/39954
32539 * cfgexpand.c (expand_call_stmt): TER pointer arguments in
32540 builtin calls.
32541
32542 2010-01-18 Richard Guenther <rguenther@suse.de>
32543
32544 PR tree-optimization/42781
32545 * tree-ssa-structalias.c (find_what_var_points_to): Skip
32546 restrict processing only if the original variable was artificial.
32547
32548 2010-01-18 Joern Rennecke <amylaar@spamcop.net>
32549
32550 * doc/tm.texi (TARGET_ASM_FUNCTION_EPILOGUE): Update text on where to
32551 find number of popped argument bytes.
32552
32553 (TARGET_INVALID_WITHIN_DOLOOP): Put return value in braces.
32554 Fix the text that describes the return value for invalid insns.
32555
32556 (TARGET_SCHED_NEEDS_BLOCK_P): Fix return type. Fix argument list.
32557
32558 (TARGET_SCHED_IS_COSTLY_DEPENDENCE): Fix argument types.
32559 Clarify what 'cost of the -dependence' is. Fix quoting.
32560
32561 * toplev.c (default_get_pch_validity): Rename argument to "sz".
32562 * doc/tm.texi (TARGET_GET_PCH_VALIDITY): Likewise.
32563
32564 2010-01-17 Jakub Jelinek <jakub@redhat.com>
32565
32566 * dwarf2out.c (mem_loc_descriptor): Don't ICE on
32567 {S,U}S_{PLUS,MINUS,NEG,ABS,ASHIFT}.
32568
32569 2010-01-17 Richard Guenther <rguenther@suse.de>
32570
32571 PR middle-end/42248
32572 * function.c (split_complex_args): Take a VEC to modify.
32573 (assign_parms_augmented_arg_list): Build a VEC instead of
32574 a chain of PARM_DECLs.
32575 (assign_parms_unsplit_complex): Take a VEC of arguments.
32576 Do not fixup unmodified parms.
32577 (assign_parms): Deal with the VEC.
32578 (gimplify_parameters): Likewise.
32579
32580 2010-01-17 Richard Guenther <rguenther@suse.de>
32581
32582 * tree-ssa-uncprop.c (uncprop_into_successor_phis): Fix PHI
32583 node existence check.
32584 * tree-vect-loop.c (vect_analyze_loop_form): Likewise.
32585 * tree-cfgcleanup.c (merge_phi_nodes): Likewise.
32586 * tree-ssa-dce.c (forward_edge_to_pdom): Likewise.
32587 * tree-cfg.c (gimple_execute_on_growing_pred): Likewise.
32588 (gimple_execute_on_growing_pred): Likewise.
32589
32590 2010-01-17 Richard Guenther <rguenther@suse.de>
32591
32592 PR tree-optimization/42773
32593 * tree-ssa-pre.c (phi_translate_set): Fix check for PHI node existence.
32594 (compute_antic_aux): Likewise.
32595 (compute_partial_antic_aux): Likewise.
32596
32597 2010-01-17 Jie Zhang <jie.zhang@analog.com>
32598
32599 PR debug/42767
32600 * dwarf2out.c (mem_loc_descriptor): Handle SS_TRUNCATE
32601 and US_TRUNCATE.
32602
32603 2010-01-17 Joern Rennecke <amylaar@spamcop.net>
32604
32605 * doc/tm.texi (TARGET_INIT_LIBFUNCS): Put @findex entries in order of
32606 appearance.
32607
32608 (TARGET_LEGITIMATE_ADDRESS_P): Add return type.
32609 Fix markup for strict argument.
32610
32611 (TARGET_SCHED_REORDER2): Fix argument types.
32612
32613 (TARGET_SCHED_DFA_PRE_CYCLE_INSN): Fix return type.
32614 (TARGET_SCHED_DFA_POST_CYCLE_INSN): Likewise.
32615
32616 (TARGET_SCHED_DFA_PRE_ADVANCE_CYCLE): Fix name.
32617 (TARGET_SCHED_DFA_POST_ADVANCE_CYCLE): Likewise.
32618
32619 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD):
32620 Add argument name.
32621
32622 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Remove duplicate documentation.
32623 (TARGET_SCHED_INIT_SCHED_CONTEXT): Likewise.
32624 (TARGET_SCHED_SET_SCHED_CONTEXT): Likewise.
32625 (TARGET_SCHED_CLEAR_SCHED_CONTEXT): Likewise.
32626 (TARGET_SCHED_FREE_SCHED_CONTEXT): Likewise.
32627
32628 (TARGET_SCHED_SET_SCHED_CONTEXT): Fix typo.
32629
32630 (TARGET_SCHED_GEN_SPEC_CHECK): Fix name.
32631
32632 (TARGET_ASM_RELOC_RW_MASK): Add return type.
32633 (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Fix return type.
32634
32635 (TARGET_STRIP_NAME_ENCODING): Fix markup of return type and parameter.
32636
32637 (TARGET_ASM_FILE_START): Put @findex before paragraph start.
32638 Use prototype.
32639
32640 (TARGET_ASM_NAMED_SECTION): Fix argument list.
32641
32642 (TARGET_HAVE_NAMED_SECTIONS): Use @deftypevr.
32643 (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Likewise.
32644
32645 (TARGET_ASM_RECORD_GCC_SWITCHES_SECTION): Use @deftypevr.
32646
32647 (TARGET_ASM_ASSEMBLE_VISIBILITY): Fix argument types.
32648
32649 (TARGET_ASM_MARK_DECL_PRESERVED): Fix argument and markup
32650 referring to it. Fix language.
32651
32652 (TARGET_HAVE_CTORS_DTORS): Use @deftypevr.
32653
32654 (TARGET_ASM_FINAL_POSTSCAN_INSN): Adjust name of first argument.
32655
32656 (TARGET_ASM_EMIT_UNWIND_LABEL): Add argument types.
32657
32658 (TARGET_ASM_EMIT_EXCEPT_TABLE_LABEL): Add type to argument.
32659
32660 (TARGET_UNWIND_EMIT): Remove space between 'FILE *' and
32661 '@var{stream}. Remove stray 'and'.
32662
32663 (TARGET_ARM_EABI_UNWINDER): Use @deftypevr.
32664
32665 (TARGET_ASM_OUTPUT_DWARF_DTPREL): Adjust name of first argument.
32666
32667 (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Add missing article.
32668
32669 (TARGET_OPTION_VALID_ATTRIBUTE_P): Fix name, it was
32670 misspelled as TARGET_VALID_OPTION_ATTRIBUTE_P.
32671
32672 (TARGET_GET_PCH_VALIDITY): Put 'void *' in braces.
32673 Fix description of return value.
32674 Rename argument "sz" to "len."
32675
32676 (TARGET_CXX_GUARD_MASK_BIT): Add missing article.
32677 Clarify meaning of 'true' return value.
32678
32679 (TARGET_SHIFT_TRUNCATION_MASK): Fix return type.
32680
32681 (TARGET_MODE_REP_EXTENDED): Fix two inconsisent uses of
32682 rep_mode versus mode_rep.
32683
32684 (TARGET_HANDLE_PRAGMA_EXTERN_PREFIX): Document.
32685
32686 (TARGET_BUILTIN_DECL): Fix name.
32687
32688 (TARGET_COMMUTATIVE_P): Fix type of first argument.
32689
32690 (TARGET_SET_CURRENT_FUNCTION): Mention possibility of cfun being NULL.
32691
32692 (TARGET_BRANCH_TARGET_REGISTER_CLASS): Fix return type.
32693
32694 (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document as macro instead of hook.
32695
32696 (TARGET_RELAXED_ORDERING): Use @deftypevr.
32697
32698 (TARGET_GET_DRAP_RTX): Note that this is a hook.
32699 Clarify language.
32700
32701 (TARGET_BUILTIN_RECIPROCAL): Fix argument types.
32702 Rename argument tm_fn to md_fn.
32703
32704 (TARGET_OPTION_PRINT): Fix argument list.
32705
32706 2010-01-16 Harsha Jagasia <harsha.jagasia@amd.com>
32707
32708 PR target/42664
32709 * config/i386/i386.c (ix86_fixup_binary_operands):
32710 Revert FMA4 fixup of operands.
32711
32712 2010-01-16 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
32713
32714 PR gcc/42525
32715 * Makefile.in (write_entries_to_file, install-plugin):
32716 Use \012 instead of \n with tr.
32717
32718 2010-01-16 Richard Sandiford <r.sandiford@uk.ibm.com>
32719
32720 * configure.ac (HAVE_AS_REF): New C macro.
32721 * configure: Regenerate.
32722 * config.in: Likewise.
32723 * collect2.c (main): Only postpone SCAN_DWEH to the second pass
32724 if HAVE_AS_REF.
32725 * config/rs6000/aix.h (ASM_OUTPUT_DWARF_TABLE_REF): Only define
32726 if HAVE_AS_REF.
32727
32728 2010-01-16 Joern Rennecke <amylaar@spamcop.net>
32729
32730 * doc/tm.texi (TARGET_USE_BLOCKS_FOR_CONSTANT_P): Fix argument types.
32731
32732 (TARGET_SUPPORT_VECTOR_MISALIGNMENT): Fix argument types.
32733
32734 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Fix argument types.
32735
32736 (TARGET_SCHED_ALLOC_SCHED_CONTEXT): Put 'void *' in braces.
32737
32738 (TARGET_IN_SMALL_DATA_P): Fix argument type.
32739
32740 (TARGET_BINDS_LOCAL_P): Fix argument type.
32741
32742 (TARGET_ASM_FILE_END): Use prototype.
32743
32744 (TARGET_ASM_RECORD_GCC_SWITCHES): Don't put 'int' in braces.
32745
32746 (TARGET_DWARF_CALLING_CONVENTION): Fix argument type.
32747
32748 (TARGET_COMP_TYPE_ATTRIBUTES): Fix argument types.
32749
32750 (TARGET_VALID_DLLIMPORT_ATTRIBUTE_P): Fix argument type.
32751
32752 (TARGET_EMUTLS_VAR_ALIGN_FIXED): Don't put 'bool' in braces.
32753 (TARGET_EMUTLS_DEBUG_FORM_TLS_ADDRESS): Likewise.
32754
32755 (TARGET_PCH_VALID_P): Put 'const char *' in braces.
32756 (TARGET_CHECK_PCH_TARGET_FLAGS): Likewise.
32757
32758 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Don't put 'bool' in braces.
32759 (TARGET_ADDR_SPACE_SUBSET_P): Likewise.
32760 (TARGET_ADDR_SPACE_LEGITIMIZE_ADDRESS): Don't put 'rtx' in braces.
32761 (TARGET_ADDR_SPACE_CONVERT): Likewise.
32762
32763 (TARGET_CASE_VALUES_THRESHOLD): Put 'unsigned int' in braces.
32764
32765 (TARGET_MACHINE_DEPENDENT_REORG: Use prototype.
32766
32767 (TARGET_INIT_BUILTINS): Use prototype.
32768
32769 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN):
32770 Put 'const char *' in braces. Fix parameter types.
32771 (TARGET_INVALID_CONVERSION): Fix parameter types.
32772 (TARGET_INVALID_UNARY_OP, TARGET_INVALID_BINARY_OP): Likewise.
32773 (TARGET_INVALID_PARAMETER_TYPE, TARGET_INVALID_RETURN_TYPE): Likewise.
32774
32775 (TARGET_PROMOTED_TYPE): Remove braces around 'tree'.
32776 Fix argument type.
32777
32778 (TARGET_CONVERT_TO_TYPE): Remove braces around 'tree'.
32779
32780 (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Remove braces around 'bool'.
32781
32782 2010-01-15 Joern Rennecke <amylaar@spamcop.net>
32783
32784 * doc/tm.texi (TARGET_HELP): Fix return type.
32785
32786 (TARGET_PROMOTE_FUNCTION_MODE): Put 'enum machine_mode'
32787 in braces. Fix argument types.
32788
32789 (TARGET_LIBGCC_CMP_RETURN_MODE): Use prototype.
32790
32791 (TARGET_LIBGCC_SHIFT_COUNT_MODE): Use prototype.
32792
32793 (TARGET_MS_BITFIELD_LAYOUT_P): Fix argument type.
32794
32795 (TARGET_DECIMAL_FLOAT_SUPPORTED_P): Don't put 'bool' in braces.
32796 (TARGET_FIXED_POINT_SUPPORTED_P): Likewise.
32797
32798 (TARGET_MANGLE_TYPE): Fix argument types.
32799
32800 (TARGET_IRA_COVER_CLASSES): Use prototype.
32801
32802 (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Fix return type. Use prototype.
32803
32804 (TARGET_CAN_ELIMINATE): Use identifiers for argument names.
32805
32806 (TARGET_PROMOTE_PROTOTYPES): Fix argument type.
32807
32808 (TARGET_MUST_PASS_IN_STACK): Fix argument type.
32809
32810 (TARGET_CALLEE_COPIES): Fix argument types.
32811
32812 (TARGET_SPLIT_COMPLEX_ARG): Fix argument type.
32813
32814 (TARGET_GIMPLIFY_VA_ARG_EXPR): Fix argument types.
32815
32816 (TARGET_FUNCTION_VALUE): Fix argument types.
32817
32818 (TARGET_RETURN_IN_MSB): Fix argument type.
32819
32820 (TARGET_RETURN_IN_MEMORY): Fix argument types.
32821
32822 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Fix argument types.
32823
32824 (TARGET_EXTRA_LIVE_ON_ENTRY): Fix argument type.
32825
32826 (TARGET_STRICT_ARGUMENT_NAMING): Make literal in text
32827 agree with return type.
32828
32829 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Add Prototype.
32830
32831 2010-01-15 Jing Yu <jingyu@google.com>
32832
32833 PR rtl-optimization/42691
32834 * combine.c (try_combine): Set changed_i3_dest to 1 when I2 and I3 set
32835 a pseudo to a constant and are merged, and adjust comments.
32836
32837 2010-01-15 Eric Botcazou <ebotcazou@adacore.com>
32838
32839 * config/i386/sse.md (avx_vperm2f128<mode>3): Fix typo.
32840
32841 2010-01-15 Richard Guenther <rguenther@suse.de>
32842
32843 PR middle-end/42739
32844 * tree-cfgcleanup.c (remove_forwarder_block): Move destination
32845 labels of computed or non-local gotos to the destination.
32846 * tree-cfg.c (gimple_verify_flow_info): Verify that a EH
32847 landing pad label is the first label.
32848
32849 2010-01-15 Richard Guenther <rguenther@suse.de>
32850
32851 * tree-ssa-loop-im.c (gen_lsm_tmp_name): Fix bogus fallthru.
32852
32853 2010-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
32854
32855 PR target/42747
32856 * config/rs6000/rs6000.md (sqrtdf2): Split into expander and insn
32857 to allow generation of the xssqrtdp instruction on power7.
32858 (sqrtdf2_fpr): Ditto.
32859
32860 2010-01-14 Jakub Jelinek <jakub@redhat.com>
32861
32862 PR middle-end/42674
32863 * c-decl.c (finish_function): Don't emit -Wreturn-type warnings in
32864 functions with noreturn attribute.
32865
32866 PR c++/42608
32867 * varasm.c (declare_weak): Add weak attribute to decl if it
32868 doesn't have one already.
32869 (assemble_external): Only add decls to weak_decls if they also
32870 have weak attribute.
32871
32872 2010-01-14 Alexandre Oliva <aoliva@redhat.com>
32873
32874 * var-tracking.c (var_reg_delete): Don't delete the association
32875 between REGs and values or one-part variables if the register
32876 isn't clobbered.
32877
32878 2010-01-14 Jakub Jelinek <jakub@redhat.com>
32879
32880 PR debug/42657
32881 * tree-inline.c (copy_debug_stmt): Don't reset debug stmt just
32882 because its first operand is a non-localized variable.
32883
32884 2010-01-14 Martin Jambor <mjambor@suse.cz>
32885
32886 PR tree-optimization/42706
32887 * tree-sra.c (encountered_recursive_call): New variable.
32888 (encountered_unchangable_recursive_call): Likewise.
32889 (sra_initialize): Initialize both new variables.
32890 (callsite_has_enough_arguments_p): New function.
32891 (scan_function): Call decl and flags check only for IPA-SRA, check
32892 whether there is a recursive call and whether it has enough arguments.
32893 (all_callers_have_enough_arguments_p): New function.
32894 (convert_callers): Look for recursive calls only when
32895 encountered_recursive_call is set.
32896 (ipa_early_sra): Bail out either if
32897 !all_callers_have_enough_arguments_p or
32898 encountered_unchangable_recursive_call.
32899
32900 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32901
32902 * sel-sched.c: Add 2010 to copyright years.
32903 * sel-sched-ir.c: Likewise.
32904 * sel-sched-ir.h: Likewise.
32905
32906 2010-01-14 Martin Jambor <mjambor@suse.cz>
32907
32908 PR tree-optimization/42714
32909 * tree-sra.c (sra_ipa_modify_assign): Handle incompatible-type
32910 constructors specially.
32911
32912 2010-01-14 Andi Kleen <ak@linux.intel.com>
32913
32914 * config/i386/drivers-i386.c (detect_caches_intel):
32915 Add l2sizekb parameter and fill in.
32916 (host_detect_local_cpu): Add l2sizekb, fill in.
32917 Add Atom small cache heuristic.
32918
32919 2010-01-14 Andi Kleen <ak@linux.intel.com>
32920
32921 * config/i386/drivers-i386.c (detect_caches_cpuid4):
32922 Add level3 parameter and fill in.
32923 (detect_caches_intel): Handle level3 cache.
32924
32925 2010-01-14 Andi Kleen <ak@linux.intel.com>
32926
32927 * config/i386/drivers-i386.c (host_detect_local_cpu):
32928 Fix core duo detection.
32929
32930 2010-01-14 Andi Kleen <ak@linux.intel.com>
32931
32932 * config/i386/drivers-i386.c (host_detect_local_cpu):
32933 Fix Atom detection.
32934
32935 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32936
32937 * config/rs6000/rs6000.c (rs6000_variable_issue): Rename to...
32938 (rs6000_variable_issue_1): this. Use...
32939 (rs6000_variable_issue): here. Reimplement. Print debug info.
32940
32941 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32942
32943 * sel-sched-ir.c (sel_restore_other_notes): Rename to
32944 sel_restore_notes. Update all callers. Call reemit_notes
32945 for all insns.
32946
32947 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
32948
32949 PR rtl-optimization/42246
32950 * sel-sched-ir.h (get_all_loop_exits): Include exits from inner
32951 loops.
32952
32953 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
32954
32955 * sel-sched.c (compute_av_set_at_bb_end): Do not test that number of
32956 all successors is the same as number of successors in current region.
32957
32958 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32959
32960 * sel-sched.c (maybe_emit_renaming_copy): Exit early when expression
32961 to rename is not separable. Otherwise check that its LHS is not NULL.
32962
32963 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32964
32965 * sel-sched.c (choose_best_reg_1): Loop over all regs for mode.
32966
32967 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
32968
32969 * sel-sched.c (mark_unavailable_hard_regs): Do not try to search
32970 available registers when failed to discover LHS register class.
32971 Fix indentation. Update comment.
32972
32973 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
32974 Alexander Monakov <amonakov@ispras.ru>
32975
32976 PR rtl-optimization/42389
32977 * sel-sched.c (advance_one_cycle): Set FENCE_ISSUE_MORE
32978 to can_issue_more.
32979 (advance_state_on_fence): Likewise.
32980 (sel_target_adjust_priority): Print debug output only when
32981 sched_verbose >= 4, not 2.
32982 (get_expr_cost): Do not issue all unique insns on the next cycle.
32983 (fill_insns): Initialize can_issue_more from the value saved
32984 with the fence.
32985 * sel-sched-ir.c (flist_add): New parameter issue_more.
32986 Init FENCE_ISSUE_MORE with it.
32987 (merge_fences): Likewise.
32988 (init_fences): Update call to flist_add.
32989 (add_to_fences, add_clean_fence_to_fences)
32990 (add_dirty_fence_to_fences): Likewise.
32991 (move_fence_to_fences): Update call to merge_fences.
32992 (invoke_reorder_hooks): Do not reset can_issue_more on insns from
32993 sched groups.
32994 * sel-sched-ir.h (struct _fence): New field issue_more.
32995 (FENCE_ISSUE_MORE): New accessor macro.
32996
32997 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
32998
32999 PR rtl-optimization/42388
33000 * sel-sched-ir.c (maybe_tidy_empty_bb): Do not delete empty blocks
33001 that have no predecessors nor successors. Do not call move_bb_info
33002 for empty blocks outside of current region.
33003
33004 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
33005
33006 PR rtl-optimization/42294
33007 * sel-sched-ir.h (struct _sel_insn_data): Update comment.
33008 * sel-sched.c (move_exprs_to_boundary): Transitively add all
33009 originators' originators.
33010
33011 2010-01-14 Alexander Monakov <amonakov@ispras.ru>
33012
33013 PR rtl-optimization/39453
33014 PR rtl-optimization/42246
33015 * sel-sched-ir.c (considered_for_pipelining_p): Do not test
33016 for pipelining_p.
33017 (sel_add_loop_preheaders): Add preheader to last_added_blocks.
33018
33019 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
33020 Alexander Monakov <amonakov@ispras.ru>
33021
33022 PR middle-end/42245
33023 * sel-sched-ir.c (sel_recompute_toporder): New. Use it...
33024 (maybe_tidy_empty_bb): ... here. Make static. Add new
33025 argument. Update all callers.
33026 (tidy_control_flow): ... and here. Recompute topological order
33027 of basic blocks in region if necessary.
33028 (sel_redirect_edge_and_branch): Change return type. Return true
33029 if topological order might have been invalidated.
33030 (purge_empty_blocks): Export and move from...
33031 * sel-sched.c (purge_empty_blocks): ... here.
33032 * sel-sched-ir.h (sel_redirect_edge_and_branch): Update prototype.
33033 (maybe_tidy_empty_bb): Delete prototype.
33034 (purge_empty_blocks): Declare.
33035
33036 2010-01-14 Andrey Belevantsev <abel@ispras.ru>
33037
33038 PR rtl-optimization/42249
33039 * sel-sched.c (try_replace_dest_reg): When chosen register
33040 and original register is the same, do not bail out early, but
33041 still check all original insns for validity of replacing destination
33042 register. Set EXPR_TARGET_AVAILABLE to 1 before leaving function
33043 in this case.
33044
33045 2010-01-14 Jakub Jelinek <jakub@redhat.com>
33046
33047 PR c/42721
33048 Port from no-undefined-overflow branch:
33049 2009-03-09 Richard Guenther <rguenther@suse.de>
33050
33051 * fold-const.c (add_double_with_sign): Fix unsigned overflow detection.
33052
33053 2010-01-14 Richard Guenther <rguenther@suse.de>
33054
33055 PR lto/42665
33056 * gimple.c (iterative_hash_gimple_type): Avoid hashing error_mark_node.
33057
33058 2010-01-14 Ira Rosen <irar@il.ibm.com>
33059
33060 PR tree-optimization/42709
33061 * tree-vect-slp.c (vect_get_constant_vectors): Use constant's type
33062 as scalar type in creation of constant vector operand.
33063
33064 2010-01-14 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
33065
33066 PR testsuite/42414
33067 * Makefile.in ($(TESTSUITEDIR)/site.exp, check-%)
33068 (check-parallel-%): Match `testsuite' directory component only
33069 at the end.
33070
33071 2010-01-14 Shujing Zhao <pearly.zhao@oracle.com>
33072
33073 PR translation/39521
33074 * gcc.c (do_spec_1): Wrapped the error and notice messages of specs
33075 strings with _().
33076
33077 2010-01-13 Richard Guenther <rguenther@suse.de>
33078
33079 PR tree-optimization/42730
33080 * tree-ssa-ccp.c (maybe_fold_stmt_indirect): Add shortcut for
33081 offset zero.
33082
33083 2010-01-13 Steve Ellcey <sje@cup.hp.com>
33084
33085 PR target/pr42542
33086 * config/ia64/ia64.c (ia64_expand_vecint_compare): Convert GTU to GT
33087 for V2SI by subtracting (-(INT MAX) - 1) from both operands to make
33088 them signed.
33089
33090 2010-01-13 Bernd Schmidt <bernd.schmidt@analog.com>
33091
33092 * config/bfin/libgcc-bfin.ver: Regenerate based on current
33093 libgcc-std.ver. Add entries for ___smulsi3_highpart and
33094 ___umulsi3_highpart.
33095
33096 * config/bfin/bfin.c (bfin_reorg): Call run_selective_scheduling
33097 rather than schedule_insns if the pass is enabled.
33098
33099 2010-01-13 Martin Jambor <mjambor@suse.cz>
33100
33101 PR tree-optimization/42704
33102 * tree-sra.c (sra_modify_assign): Do not delete assignments to
33103 SSA_NAMEs.
33104
33105 2010-01-13 Martin Jambor <mjambor@suse.cz>
33106
33107 PR tree-optimization/42703
33108 * tree-sra.c (analyze_access_subtree): Check that we can build a
33109 reference to the original data within the aggregate.
33110
33111 2010-01-13 Richard Guenther <rguenther@suse.de>
33112
33113 PR tree-optimization/42705
33114 * tree-ssa-reassoc.c (build_and_add_sum): Insert stmts after labels.
33115
33116 2010-01-13 Richard Guenther <rguenther@suse.de>
33117
33118 PR middle-end/42716
33119 * fold-const.c (fold_unary_loc): Fold INDIRECT_REFs.
33120
33121 2010-01-13 Jakub Jelinek <jakub@redhat.com>
33122
33123 PR debug/41371
33124 * var-tracking.c (values_to_unmark): New variable.
33125 (find_loc_in_1pdv): Clear VALUE_RECURSED_INTO of values in
33126 values_to_unmark vector. Moved body to...
33127 (find_loc_in_1pdv_1): ... this. Don't clear VALUE_RECURSED_INTO,
33128 instead queue it into values_to_unmark vector.
33129 (vt_find_locations): Free values_to_unmark vector.
33130
33131 2010-01-13 Wolfgang Gellerich <gellerich@de.ibm.com>
33132
33133 * config/s390/s390.c (override_options): Set
33134 default of max-pending-list-length to 256
33135
33136 2010-01-13 Richard Guenther <rguenther@suse.de>
33137
33138 PR lto/42678
33139 * tree-pass.h (PROP_gimple_lcx): New.
33140 * cfgexpand.c (pass_expand): Require PROP_gimple_lcx.
33141 * passes.c (init_optimization_passes): Move pass_lower_complex_O0
33142 before the final cleanup_eh.
33143 (dump_properties): Dump PROP_gimple_lcx.
33144 * tree-complex.c (pass_lower_complex): Provide PROP_gimple_lcx.
33145 (tree_lower_complex_O0): Remove.
33146 (gate_no_optimization): Run if PROP_gimple_lcx is not set.
33147 (pass_lower_complex_O0): Provide PROP_gimple_lcx. Run
33148 tree_lower_complex, schedule TODO_update_ssa.
33149 * lto-streamer-out.c (output_function): Stream the functions
33150 properties.
33151 * lto-streamer-in.c (input_function): Likewise.
33152 (lto_read_body): Do not override them here.
33153
33154 2010-01-12 Joseph Myers <joseph@codesourcery.com>
33155
33156 PR c/42708
33157 * c-typeck.c (build_c_cast): Fold value cast to union type before
33158 wrapping it in a CONSTRUCTOR.
33159
33160 2010-01-12 Jakub Jelinek <jakub@redhat.com>
33161
33162 PR rtl-optimization/42699
33163 * cse.c (cse_insn): Optimize lhs ZERO_EXTRACT if only CONST_INTs are
33164 involved.
33165
33166 2010-01-12 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33167
33168 * config/mips/iris6.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
33169 SUBTARGET_WARN_UNUSED_SPEC): Move ...
33170 config/mips/iris.h (SUBTARGET_DONT_WARN_UNUSED_SPEC,
33171 SUBTARGET_WARN_UNUSED_SPEC): ... here
33172 * config/mips/iris5.h (LIBGCC_SPEC): Define.
33173
33174 2010-01-12 Julian Brown <julian@codesourcery.com>
33175
33176 * config/arm/neon-schedgen.ml (Utils): Don't try to
33177 open missing module.
33178 (find_with_result): New.
33179
33180 2010-01-12 Jakub Jelinek <jakub@redhat.com>
33181
33182 PR debug/42662
33183 * simplify-rtx.c (simplify_relational_operation_1): Avoid invalid rtx
33184 sharing when canonicalizing ({lt,ge}u (plus a b) b).
33185
33186 PR tree-optimization/42645
33187 * tree-inline.c (processing_debug_stmt): Move earlier. Make static.
33188 (remap_ssa_name): If processing_debug_stmt and name wasn't found in
33189 decl_map, set processing_debug_stmt to -1 and return name without
33190 any remapping.
33191
33192 2010-01-11 Dave Korn <dave.korn.cygwin@gmail.com>
33193
33194 * doc/install.texi (Specific#x-x-cygwin): Document minimum required
33195 binutils version, and reword target configuration description.
33196
33197 2010-01-11 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
33198
33199 * config/avr/avr.h (LINKER_NAME): Remove.
33200
33201 2010-01-11 Janis Johnson <janis187@us.ibm.com>
33202
33203 PR target/42416
33204 * config/rs6000/rs6000.c (rs6000_override_options): On targets
33205 that support VSX, warn for -mno-altivec if vsx is not disabled,
33206 and disable vsx.
33207
33208 2010-01-11 Joseph Myers <joseph@codesourcery.com>
33209 Shujing Zhao <pearly.zhao@oracle.com>
33210
33211 PR translation/42469
33212 * common.opt (Wframe-larger-than=, fcompare-debug=, fdbg-cnt=,
33213 fira-verbose=, flto-compression-level=, fplugin-arg-): Use tab
33214 character between option name and help text.
33215 * c.opt (imultilib): Likewise.
33216
33217 2010-01-10 Rafael Avila de Espindola <espindola@google.com>
33218
33219 * lto-streamer-out.c (output_unreferenced_globals): Output static
33220 variables.
33221
33222 2010-01-10 Steven Bosscher <steven@gcc.gnu.org>
33223
33224 PR rtl-optimization/42621
33225 * bb-reorder.c (gate_duplicated_computed_gotos): Only run if not
33226 optimizing for size.
33227 (duplicate_computed_gotos): Remove now-redundant check.
33228
33229 2010-01-10 Steve Ellcey <sje@cup.hp.com>
33230
33231 PR target/37454
33232 * configure.ac: Save and restore LDFLAGS and LIBS
33233 * configure: Regenerate.
33234
33235 2010-01-10 Richard Guenther <rguenther@suse.de>
33236
33237 PR middle-end/42667
33238 * builtins.c (fold_builtin_strlen): Add type argument and
33239 convert the resulting length to it.
33240 (fold_builtin_1): Adjust.
33241
33242 2010-01-09 Jakub Jelinek <jakub@redhat.com>
33243
33244 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Shorten
33245 sequence for DImode constants >= 0x80000000UL <= 0xFFFFFFFFUL by
33246 1 insn.
33247 (num_insns_constant_wide): Adjust for that change.
33248
33249 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
33250
33251 PR debug/42631
33252 * web.c (union_defs): Add used argument, to combine uses of
33253 uninitialized regs.
33254 (entry_register): Adjust type and tests of used argument.
33255 (web_main): Widen used for new use. Pass it to union_defs.
33256 * df.h (union_defs): Adjust prototype.
33257
33258 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
33259
33260 PR debug/42630
33261 * loop-unroll.c (referenced_in_one_insn_in_loop_p): Count debug
33262 uses in new incoming argument. Free body.
33263 (reset_debug_uses_in_loop): New.
33264 (analyze_insn_to_expand_var): Call the latter if the former found
33265 anything. Fix whitespace. Reject invalid dest overlaps before
33266 going through all insns in the loop.
33267
33268 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
33269
33270 PR debug/42629
33271 * haifa-sched.c (dying_use_p): Debug insns don't count.
33272
33273 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
33274
33275 PR middle-end/42363
33276 * gimplify.c (gimplify_modify_expr): Drop lhs on noreturn calls.
33277 * tree-cfg.c (is_ctrl_altering_stmt): Don't compute flags twice.
33278 (verify_gimple_call): Reject LHS in noreturn calls.
33279
33280 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
33281
33282 PR debug/42604
33283 PR debug/42395
33284 * tree-vect-loop-manip.c (adjust_info): New type.
33285 (adjust_vec): New pointer to vector.
33286 (adjust_debug_stmts_now, adjust_vec_debug_stmts): New.
33287 (adjust_debug_stmts, adjust_phi_and_debug_stmts): New.
33288 (slpeel_update_phis_for_duplicate_loop): Use them.
33289 (slpeel_update_phi_nodes_for_guard1): Likewise.
33290 (slpeel_update_phi_nodes_for_guard2): Likewise.
33291 (slpeel_tree_peel_loop_to_edge): Likewise.
33292 (vect_update_ivs_after_vectorizer): Likewise.
33293
33294 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
33295
33296 * vec.h (DEF_VEC_ALLOC_FUNC_O_STACK): Drop excess paren.
33297 (DEF_VEC_ALLOC_FUNC_I_STACK): Likewise.
33298
33299 2010-01-09 Alexandre Oliva <aoliva@redhat.com>
33300
33301 * config/i386/i386.c (ix86_vectorize_builtin_vec_perm): Silence
33302 bogus uninitialized warning.
33303
33304 2010-01-09 Richard Guenther <rguenther@suse.de>
33305
33306 PR middle-end/42512
33307 * tree-scalar-evolution.c (interpret_loop_phi): Make sure
33308 the evolution is compatible with the initial condition.
33309
33310 2010-01-09 Jakub Jelinek <jakub@redhat.com>
33311
33312 * gcc.c (process_command): Update copyright notice dates.
33313 * gcov.c (print_version): Likewise.
33314 * gcov-dump.c (print_version): Likewise.
33315 * mips-tfile.c (main): Likewise.
33316 * mips-tdump.c (main): Likewise.
33317
33318 2010-01-08 Andy Hutchinson <hutchinsonandy@gcc.gnu.org>
33319
33320 PR target/41885
33321 * config/avr/avr.md (rotlqi3): Add CONST_INT_P check.
33322 (rotlhi3): Delete.
33323 (rotlhi3_8): Delete.
33324 (rotlsi3): Delete.
33325 (rotlsi3_8): Delete.
33326 (rotlsi3_16): Delete.
33327 (rotlsi3_24): Delete.
33328 (rotl<mode>3): New.
33329 (*rotw<mode>3): New.
33330 (*rotb<mode>3): New.
33331 * config/avr/avr.c (avr_rotate_bytes): New function.
33332 * config/avr/avr-proto.h (avr_rotate_bytes): New function.
33333
33334 2010-01-08 Steve Ellcey <sje@cup.hp.com>
33335
33336 PR target/37454
33337 * configure.ac: Modify -rdynamic check.
33338 * configure: Regenerate.
33339
33340 2010-01-08 DJ Delorie <dj@redhat.com>
33341
33342 * config/sh/sh.c (sh_expand_epilogue): Fix interrupt handler
33343 register popping order.
33344
33345 2010-01-08 Richard Guenther <rguenther@suse.de>
33346
33347 PR lto/42528
33348 * c.opt (fsigned-char): Also let LTO handle this option.
33349 (funsigned-char): Likewise.
33350
33351 2010-01-07 Richard Guenther <rguenther@suse.de>
33352
33353 * gimple.h (gss_for_code): Wrap gcc_assert in ENABLE_CHECKING.
33354 (gimple_op): Likewise.
33355 (gimple_op_ptr): Likewise.
33356 (gimple_assign_set_lhs): Remove gcc_assert.
33357 (gimple_assign_set_rhs1): Likewise.
33358 (gimple_assign_set_rhs2): Likewise.
33359 (gimple_call_set_lhs): Likewise.
33360 (gimple_call_set_fn): Likewise.
33361 (gimple_call_set_fndecl): Likewise.
33362 (gimple_call_fndecl): Likewise.
33363 (gimple_call_return_type): Likewise.
33364 (gimple_call_set_chain): Likewise.
33365 (gimple_call_num_args): Likewise.
33366 (gimple_call_set_arg): Likewise.
33367 (gimple_cond_set_code): Likewise.
33368 (gimple_cond_set_lhs): Likewise.
33369 (gimple_cond_set_rhs): Likewise.
33370 (gimple_cond_set_true_label): Likewise.
33371 (gimple_cond_set_false_label): Likewise.
33372 (gimple_label_set_label): Likewise.
33373 (gimple_goto_set_dest): Likewise.
33374 (gimple_debug_bind_get_var): Wrap gcc_assert in ENABLE_CHECKING.
33375 (gimple_debug_bind_get_value): Likewise.
33376 (gimple_debug_bind_get_value_ptr): Likewise.
33377 (gimple_debug_bind_set_var): Likewise.
33378 (gimple_debug_bind_set_value): Likewise.
33379 (gimple_debug_bind_reset_value): Likewise.
33380 (gimple_debug_bind_has_value_p): Likewise.
33381 (gimple_return_retval_ptr): Remove gcc_assert.
33382 (gimple_return_retval): Likewise.
33383 (gimple_return_set_retval): Likewise.
33384 * tree-flow.h (struct gimple_df): Remove nonlocal_all member.
33385 (safe_referenced_var_iterator): Remove.
33386 (FOR_EACH_REFERENCED_VAR_SAFE): Likewise.
33387 * tree-flow-inline.h (gimple_nonlocal_all): Remove.
33388 (fill_referenced_var_vec): Remove.
33389 (first_readonly_imm_use): Remove redundant gcc_assert.
33390 (phi_arg_index_from_use): Combine gcc_asserts.
33391 (move_use_after_head): Wrap gcc_assert in ENABLE_CHECKING.
33392 (first_imm_use_stmt): Remove redundant gcc_assert.
33393 * tree-cfg.c (verify_gimple_call): Verify function and chain
33394 operands. Verify arguments.
33395 (verify_types_in_gimple_stmt): Verify condition code and labels.
33396
33397 2010-01-07 Richard Guenther <rguenther@suse.de>
33398
33399 PR tree-optimization/42641
33400 * sese.c (rename_map_elt_info): Use the SSA name version, do
33401 not hash pointers.
33402
33403 2010-01-07 Jakub Jelinek <jakub@redhat.com>
33404
33405 PR tree-optimization/42625
33406 * cgraph.c (cgraph_make_node_local): Clear DECL_COMDAT*,
33407 TREE_PUBLIC, DECL_WEAK and DECL_EXTERNAL also for same_body aliases.
33408
33409 2010-01-07 Duncan Sands <baldrick@free.fr>
33410
33411 * Makefile.in (PLUGIN_HEADERS): Add version.h.
33412
33413 2010-01-07 Uros Bizjak <ubizjak@gmail.com>
33414
33415 PR target/42511
33416 * ifcvt.c (dead_or_predicable): Also remove REG_EQUAL note when
33417 note itself is not function_invariant_p.
33418
33419 2009-01-07 Steven Bosscher <steven@gcc.gnu.org>
33420
33421 * gcse.c (execute_rtl_cprop, execute_rtl_pre, execute_rtl_hoist):
33422 Do not add the DF_NOTE problem.
33423 * store-motion.c (execute_rtl_store_motion): Likewise.
33424
33425 2010-01-07 Martin Jambor <mjambor@suse.cz>
33426
33427 PR tree-optimization/42157
33428 * tree-sra.c (compare_access_positions): Stabilize sort if both
33429 accesses have integer types, return zero immediately if they are the
33430 same.
33431
33432 2010-01-06 Richard Henderson <rth@redhat.com>
33433
33434 PR middle-end/41883
33435 * haifa-sched.c (add_to_note_list): Merge into ...
33436 (concat_note_lists): ... here, and ...
33437 (unlink_other_notes, rm_other_notes): Merge into...
33438 (remove_notes): ... here. Create REG_SAVE_NOTEs for
33439 NOTE_INSN_EPILOGUE_BEG.
33440
33441 2010-01-06 Richard Guenther <rguenther@suse.de>
33442
33443 * ipa-inline.c (cgraph_decide_inlining_incrementally): Do
33444 not inline regular functions into always-inline functions.
33445
33446 2010-01-06 Nick Clifton <nickc@redhat.com>
33447
33448 * config/rx/rx.h (enum rx_cpu_type): Add RX200.
33449 (CC1_SPEC): Issue an error message if -mcpu=rx200 and -fpu are
33450 used together.
33451 (OVERRIDE_OPTIONS): Delete.
33452 (OPTIMIZATION_OPTIONS): Define.
33453 (ALLOW_RX_FPU_INSNS): Define only in terms of -fpu option.
33454 * config/rx/rx.c (rx_handle_option): Issue an error message if
33455 -mcpu=rx200 and -fpu are used together.
33456 (rx_set_optimization_options): New function. Issue an error
33457 message if an optimization attribute attempts to reset the FPU/
33458 math optimization pairing.
33459 * config/rx/rx-protos.h (rx_set_optimization_options): Prototype.
33460 * config/rx/rx.opt: Set the default to 32-bit doubles.
33461 * config/rx/t-rx: Add multilibs for -nofpu option.
33462 * doc/invoke.texi: Update documentation of RX options.
33463
33464 2010-01-06 Richard Guenther <rguenther@suse.de>
33465
33466 * tree-ssa-pre.c (name_to_id): New global.
33467 (alloc_expression_id): Simplify SSA name handling.
33468 (lookup_expression_id): Likewise.
33469 (init_pre): Zero name_to_id.
33470 (fini_pre): Free it.
33471
33472 2010-01-06 Uros Bizjak <ubizjak@gmail.com>
33473
33474 * ifcvt.c (if_convert): Output slim multiple dumps with TDF_SLIM.
33475
33476 2010-01-05 H.J. Lu <hongjiu.lu@intel.com>
33477
33478 PR target/42542
33479 * config/i386/sse.md (smaxv2di3): New.
33480 (umaxv2di3): Likewise.
33481 (sminv2di3): Likewise.
33482 (uminv2di3): Likewise.
33483
33484 2010-01-05 Eric Botcazou <ebotcazou@adacore.com>
33485
33486 PR target/42564
33487 * config/sparc/sparc.h (SPARC_SYMBOL_REF_TLS_P): Delete.
33488 * config/sparc/sparc-protos.h (legitimize_pic_address): Likewise.
33489 (legitimize_tls_address): Likewise.
33490 (sparc_tls_referenced_p): Likewise.
33491 * config/sparc/sparc.c (sparc_expand_move): Use legitimize_tls_address
33492 and adjust calls to legitimize_pic_address.
33493 (legitimate_constant_p) Use sparc_tls_referenced_p.
33494 (legitimate_pic_operand_p): Likewise.
33495 (sparc_legitimate_address_p): Do not use SPARC_SYMBOL_REF_TLS_P.
33496 (sparc_tls_symbol_ref_1): Delete.
33497 (sparc_tls_referenced_p): Make static, recognize specific patterns.
33498 (legitimize_tls_address): Make static, handle CONST patterns.
33499 (legitimize_pic_address): Make static, remove unused parameter and
33500 adjust recursive calls.
33501 (sparc_legitimize_address): Make static, use sparc_tls_referenced_p
33502 and adjust call to legitimize_pic_address.
33503 (sparc_output_mi_thunk): Likewise.
33504
33505 2010-01-05 Paolo Bonzini <bonzini@gnu.rg>
33506 H.J. Lu <hongjiu.lu@intel.com>
33507
33508 PR target/42542
33509 * config/i386/i386.c (ix86_expand_int_vcond): Convert GTU to GT
33510 for V4SI and V2DI by subtracting (-(INT MAX) - 1) from both
33511 operands to make them signed.
33512
33513 Revert:
33514 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
33515
33516 PR target/42542
33517 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
33518 GTU to GT for V4SI and V2DI.
33519
33520 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
33521 (umin<mode>3): Removed.
33522 (uminv8hi3): New.
33523 (uminv4si3): Likewise.
33524
33525 2010-01-05 Martin Jambor <mjambor@suse.cz>
33526
33527 PR tree-optimization/42462
33528 * ipa-inline.c (compute_inline_parameters): Pass node->decl instead of
33529 current_function_decl to helper functions and macros.
33530
33531 2010-01-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
33532
33533 PR bootstrap/41771
33534 * flags.h: Don't include real.h.
33535 (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS,
33536 HONOR_SIGN_DEPENDENT_ROUNDING): Move ...
33537 * real.h (HONOR_NANS, HONOR_SNANS, HONOR_INFINITIES,
33538 HONOR_SIGNED_ZEROS, HONOR_SIGN_DEPENDENT_ROUNDING): ... here.
33539 * dominance.c: Update copyright.
33540 * gimple.c (walk_gimple_op): Remove inline.
33541 * tree-ssa-reassoc.c: Include real.h.
33542 * Makefile.in (FLAGS_H): Remove $(REAL_H).
33543 (tree-ssa-reassoc.o): Depend on $(REAL_H).
33544
33545 2010-01-05 Nick Clifton <nickc@redhat.com>
33546
33547 * config/rx/rx.c (rx_get_stack_layout): Fix allocation of second
33548 register to push into the stack frame when the accumulator has to
33549 be saved during interrupts.
33550
33551 2010-01-05 Eric Fisher <joefoxreal@gmail.com>
33552
33553 * doc/invoke.texi: Remove the documentation about option
33554 -Wunreachable-code.
33555 * common.opt (Wunreachable-code): Preserved for backward
33556 compatibility.
33557 * tree-cfg.c: Remove the implementation of -Wunreachable-code.
33558 * opts.c (common_handle_option): Add OPT_Wunreachable_code to
33559 the backward compatibility flag section.
33560
33561 2010-01-05 Richard Guenther <rguenther@suse.de>
33562
33563 * tree-ssa-pre.c (bitmap_value_insert_into_set): Optimize.
33564
33565 2010-01-05 Jakub Jelinek <jakub@redhat.com>
33566
33567 PR other/42611
33568 * cfgexpand.c (expand_one_var): Diagnose too large variables.
33569
33570 PR tree-optimization/42508
33571 * tree-sra.c (convert_callers): Check for recursive call
33572 by comparing cgraph nodes instead of decls.
33573 (modify_function): Call ipa_modify_formal_parameters also
33574 on all same_body aliases.
33575
33576 * cgraphunit.c (cgraph_materialize_all_clones): Compare
33577 cgraph nodes when checking for same_body aliases.
33578
33579 2010-01-05 Richard Guenther <rguenther@suse.de>
33580
33581 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Avoid redundant
33582 allocation and lookup.
33583 (get_or_alloc_expr_for_constant): Likewise.
33584 (phi_translate): Sink allocation.
33585
33586 2010-01-04 Richard Guenther <rguenther@suse.de>
33587
33588 * tree-ssa-sccvn.c (get_or_alloc_constant_value_id): Allocate
33589 a new entry only if needed.
33590 * tree-ssa-dom.c (lookup_avail_expr): Likewise.
33591 * tree-ssa-coalesce.c (find_coalesce_pair): Avoid one
33592 hashtable lookup.
33593 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Pre-allocate
33594 the result array.
33595 (phi_translate): Handle CONSTANTs early.
33596
33597 2010-01-04 Martin Jambor <mjambor@suse.cz>
33598
33599 PR tree-optimization/42398
33600 * tree-sra.c (struct access): Removed flag grp_different_types.
33601 (dump_access): Do not dump the removed flag.
33602 (sort_and_splice_var_accesses): Do not set the removed flag.
33603 (sra_modify_expr): Check for type compatibility directly.
33604
33605 2010-01-04 Martin Jambor <mjambor@suse.cz>
33606
33607 PR tree-optimization/42366
33608 * ipa-cp.c (ipcp_init_stage): Always call ipa_compute_jump_functions on
33609 edges with variable number of parameters.
33610 * ipa-prop.c (ipa_write_node_info): Stream out uses_analysis_done
33611 flag instead of asserting it.
33612 (ipa_read_node_info): Read uses_analysis_done flag.
33613
33614 2010-01-04 Richard Guenther <rguenther@suse.de>
33615
33616 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Use
33617 iterative_hash_* as intended.
33618 (vn_reference_compute_hash): Likewise. Simplify hashing
33619 SSA names.
33620 (vn_reference_lookup_2): Likewise.
33621 (vn_nary_op_compute_hash): Likewise.
33622 (vn_phi_compute_hash): Likewise.
33623 (expressions_equal_p): Remove strange code.
33624 * tree-ssa-pre.c (pre_expr_eq): Use gcc_unreachable ().
33625 (pre_expr_hash): Likewise. Simplify hashing SSA names.
33626 (bitmap_insert_into_set_1): Take value-id as parameter.
33627 (add_to_value): Pass it.
33628 (bitmap_insert_into_set): Likewise.
33629 (bitmap_value_insert_into_set): Likewise. Remove redundant check.
33630
33631 2010-01-04 Jakub Jelinek <jakub@redhat.com>
33632
33633 PR driver/42442
33634 * gcc.c (SWITCH_IGNORE_PERMANENTLY): Define.
33635 (do_self_spec): For switches with SWITCH_IGNORE set set also
33636 SWITCH_IGNORE_PERMANENTLY.
33637 (check_live_switch): Check SWITCH_IGNORE_PERMANENTLY instead
33638 of SWITCH_IGNORE.
33639
33640 2010-01-04 Rafael Avila de Espindola <espindola@google.com>
33641
33642 * lto-streamer-out.c (output_unreferenced_globals): Output the full
33643 tree of an unreferenced global var.
33644
33645 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
33646
33647 PR target/42542
33648 * config/i386/i386.c (ix86_expand_int_vcond): Don't convert
33649 GTU to GT for V4SI and V2DI.
33650
33651 * config/i386/sse.md (umaxv4si3): Enabled for SSE4.1 and XOP.
33652 (umin<mode>3): Removed.
33653 (uminv8hi3): New.
33654 (uminv4si3): Likewise.
33655
33656 2010-01-04 H.J. Lu <hongjiu.lu@intel.com>
33657
33658 PR lto/42581
33659 * collect2.c (main): Turn on trace in collect2 if -v is passed
33660 to gcc with LTO.
33661
33662 2010-01-03 Jerry Quinn <jlquinn@optonline.net>
33663
33664 * doc/c-tree.texi (RETURN_STMT): Change to RETURN_EXPR. Update
33665 description of expression operand.
33666
33667 2010-01-03 Andrew Jenner <andrew@codesourcery.com>
33668
33669 * configure.ac: Add install-html to target_list for Make-hooks.
33670 * configure: Regenerate.
33671 * fortran/Make-lang.in (F95_HTMLFILES): New.
33672 (fortran.html): Use it.
33673 (fortran.install-html): New.
33674 * Makefile.in (install-html): Add lang.install-html.
33675 * java/Make-lang.in (JAVA_HTMLFILES): New.
33676 (java.html): Use it.
33677 (java.install-html): New.
33678 * objc/Make-lang.in (objc.install-html): New.
33679 * objcp/Make-lang.in (obj-c++.install-html): New.
33680 * cp/Make-lang.in (c++.install-html): New.
33681 * ada/gcc-interface/Make-lang.in (ada.install-html): New.
33682 * lto/Make-lang.in (lto.install-html): New.
33683
33684 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
33685
33686 PR lto/42520
33687 * gcc.c (LINK_COMMAND_SPEC): Pass -m* and -v to -plugin-opt.
33688
33689 2009-01-03 Steven Bosscher <steven@gcc.gnu.org>
33690
33691 PR rtl-optimization/41862
33692 * store-motion.c (store_killed_in_insn, compute_store_table,
33693 remove_reachable_equiv_notes, replace_store_insn,
33694 build_store_vectors): Ignore all DEBUG_INSNs.
33695
33696 2010-01-03 H.J. Lu <hongjiu.lu@intel.com>
33697
33698 PR lto/41564
33699 * common.opt: Add dumpdir.
33700
33701 * gcc.c (cc1_options): Add "-dumpbase %B" only if -dumpbase
33702 isn't specified.
33703 (option_map): Add --dumpdir.
33704
33705 * gcc.h (DEFAULT_WORD_SWITCH_TAKES_ARG): Add dumpdir.
33706
33707 * lto-wrapper.c (run_gcc): Add -dumpbase and -dumpdir for -o.
33708
33709 * opts.c (decode_options): Try dump_dir_name first if
33710 dump_base_name isn't an absolute path.
33711 (common_handle_option): Handle OPT_dumpdir.
33712
33713 * toplev.c (dump_dir_name): New.
33714 (print_switch_values): Also ignore -dumpdir.
33715
33716 * toplev.h (dump_dir_name): New.
33717
33718 2010-01-03 Richard Guenther <rguenther@suse.de>
33719
33720 PR tree-optimization/42589
33721 * tree-ssa-math-opts.c (execute_optimize_bswap): Allow
33722 double-word expansion of bswap32.
33723
33724 2010-01-03 Steven Bosscher <steven@gcc.gnu.org>
33725
33726 * postreload-gcse.c (insert_expr_in_table): Replace BLOCK_NUM
33727 with BLOCK_FOR_INSN.
33728 * auto-inc-dec.c (attempt_change, get_next_ref, find_inc): Likewise.
33729 * ifcvt.c (noce_get_alt_condition, noce_try_abs,
33730 noce_process_if_block): Likewise.
33731 * gcse.c (compute_local_properties, insert_expr_in_table,
33732 insert_set_in_table, canon_list_insert, find_avail_set,
33733 pre_insert_copy_insn): Likewise.
33734
33735 * basic-block.h (BLOCK_NUM): Move from here...
33736 * sched-int.h (BLOCK_NUM): ... to here to localize it in the scheduler.
33737
33738 2010-01-03 Richard Guenther <rguenther@suse.de>
33739
33740 PR tree-optimization/42438
33741 * tree-ssa-pre.c (struct bb_bitmap_sets): Add
33742 contains_may_not_return_call flag.
33743 (BB_MAY_NOTRETURN): New.
33744 (valid_in_sets): Trapping nary operations are not valid
33745 in blocks that may not return.
33746 (insert_into_preds_of_block): Remove check for trapping expressions.
33747 (compute_avail): Compute also BB_MAY_NOTRETURN.
33748
33749 2010-01-03 Gerald Pfeifer <gerald@pfeifer.com>
33750
33751 * doc/invoke.texi: Add 2010 to copyright years.
33752
33753 2010-01-03 Eric Botcazou <ebotcazou@adacore.com>
33754
33755 * config/sparc/sparc.c: Fix formatting nits.
33756
33757 2010-01-02 Gerald Pfeifer <gerald@pfeifer.com>
33758 Alexander Monakov <amonakov@ispras.ru>
33759
33760 * doc/invoke.texi (Optimize Options): Reword introduction a bit.
33761
33762 2010-01-02 Richard Guenther <rguenther@suse.de>
33763
33764 PR middle-end/42577
33765 * tree-vrp.c (check_all_array_refs): Skip non-excutable blocks.
33766 (simplify_switch_using_ranges): Mark to be removed edges
33767 as non-executable.
33768
33769 2010-01-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
33770
33771 * config/pa/t-slibgcc-dwarf-ver (SHLIB_SOVERSION): Bump by two.
33772
33773 * collect2.c (scan_libraries): Add missing argument in call to
33774 scan_prog_file.
33775
33776 2010-01-02 Uros Bizjak <ubizjak@gmail.com>
33777
33778 PR target/42448
33779 * config/alpha/predicates.md (aligned_memory_operand): Return false
33780 for CQImode.
33781 (unaligned_memory_operand): Return true for CQImode.
33782 * config/alpha/alpha.c (get_aligned_mem): Assert that location
33783 doesn not cross aligned SImode word boundary.
33784
33785 2010-01-02 Anatoly Sokolov <aesok@post.ru>
33786
33787 * config/avr/avr.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P, XEXP_):
33788 Remove.
33789 * config/avr/avr-protos.h (avr_init_once, avr_optimization_options,
33790 avr_change_section, avr_reg_class_from_letter) : Remove declaration.
33791
33792 2010-01-02 Richard Guenther <rguenther@suse.de>
33793
33794 PR lto/41597
33795 * toplev.c (compile_file): Emit LTO marker properly. Change
33796 it to __gnu_lto_v1.
33797 * collect2.c (scan_prog_file): Adjust for changed LTO marker.
33798
33799 2010-01-01 Richard Guenther <rguenther@suse.de>
33800
33801 PR debug/42455
33802 * tree-sra.c (analyze_all_variable_accesses): Work in DECL_UID order.
33803
33804 2010-01-01 Richard Guenther <rguenther@suse.de>
33805
33806 PR c/42570
33807 * c-decl.c (grokdeclarator): For zero-size arrays force
33808 structural equality checks as layout_type does.
33809
33810 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
33811
33812 * builtins.c: Update copyright to 2010.
33813
33814 2010-01-01 H.J. Lu <hongjiu.lu@intel.com>
33815
33816 PR lto/42531
33817 * lto-streamer-out.c (produce_asm): Revert the last change.
33818 (copy_function): Likewise.
33819
33820 * lto-streamer.c (lto_get_section_name): Skip any leading
33821 asterisk in name.
33822
33823 2010-01-01 Richard Guenther <rguenther@suse.de>
33824
33825 PR middle-end/42559
33826 * builtins.c (get_object_alignment): Do not use DECL_ALIGN
33827 for LABEL_DECLs.
33828
33829 \f
33830 Copyright (C) 2010 Free Software Foundation, Inc.
33831
33832 Copying and distribution of this file, with or without modification,
33833 are permitted in any medium without royalty provided the copyright
33834 notice and this notice are preserved.